feat(component): add @choojs/component — nanocomponent + on-load as ES classes
Ported from nanocomponent 6.6.0 and on-load 3.4.1 (MIT) with attribution: render/update/morph lifecycle, proxy nodes with isSameNode identity, and the MutationObserver-driven load/unload hooks. This class is the intended island/hydration boundary for later phases. @choojs/core exposes ./timing as a subpath for the instrumentation calls. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014NgfSjHE11oFpoSnLVKLXd
This commit is contained in:
co-authored by
Claude Fable 5
parent
84230b1770
commit
c696e00d4f
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "@choojs/component",
|
||||
"version": "8.0.0-dev",
|
||||
"description": "Native DOM components with lifecycle hooks — the choo island boundary",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./index.js",
|
||||
"./onload": "./onload.js"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"onload.js"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=24"
|
||||
},
|
||||
"dependencies": {
|
||||
"@choojs/core": "*",
|
||||
"@choojs/html": "*"
|
||||
},
|
||||
"repository": "choojs/choo",
|
||||
"keywords": [
|
||||
"component",
|
||||
"dom",
|
||||
"lifecycle",
|
||||
"choo"
|
||||
],
|
||||
"license": "MIT"
|
||||
}
|
||||
Reference in New Issue
Block a user