@llui/dom 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ export { createView, type View } from './view-helpers.js';
4
4
  export { combine, type SliceReducer, type SliceMap, type TopReducer } from './combine.js';
5
5
  export { mountApp, hydrateApp, mountAtAnchor, hydrateAtAnchor, type MountOptions } from './mount.js';
6
6
  export type { BindingDescriptor } from './binding-descriptors.js';
7
- export { __registerScopeVariants } from './binding-descriptors.js';
8
7
  export { tagSend } from './binding-descriptors.js';
9
8
  export type { LluiDebugAPI, ElementReport, MessageRecord, StateDiff } from './devtools.js';
10
9
  export type { CoverageSnapshot } from './tracking/coverage.js';
@@ -37,14 +36,12 @@ export { sample } from './primitives/sample.js';
37
36
  export { selector } from './primitives/selector.js';
38
37
  export { onMount } from './primitives/on-mount.js';
39
38
  export { track, LluiCompilerSkippedError, type TrackOptions } from './primitives/track.js';
40
- export { clientOnly, __clientOnlyStub, type ClientOnlyOptions } from './primitives/client-only.js';
39
+ export { clientOnly, type ClientOnlyOptions } from './primitives/client-only.js';
41
40
  export { errorBoundary } from './primitives/error-boundary.js';
42
41
  export { a, abbr, article, aside, b, blockquote, br, button, canvas, code, dd, details, dialog, div, dl, dt, em, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hr, i, iframe, img, input, label, legend, li, main, mark, nav, ol, optgroup, option, output, p, pre, progress, section, select, small, span, strong, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, tr, ul, video, } from './elements.js';
43
42
  export { svg, g, defs, symbol, use, circle, ellipse, line, path, polygon, polyline, rect, text as svgText, tspan, textPath, clipPath, linearGradient, radialGradient, stop, mask, pattern, marker, filter, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDropShadow, feFlood, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, feSpecularLighting, feTile, feTurbulence, fePointLight, feSpotLight, feDistantLight, feFuncR, feFuncG, feFuncB, feFuncA, image, foreignObject, animate, animateMotion, animateTransform, set, mpath, desc, title as svgTitle, metadata, } from './svg-elements.js';
44
43
  export { math, mi, mn, mo, ms, mtext, mrow, mfrac, msqrt, mroot, msup, msub, msubsup, munder, mover, munderover, mmultiscripts, mprescripts, mnone, mtable, mtr, mtd, mspace, mpadded, mphantom, menclose, merror, maction, semantics, annotation, annotationXml, } from './mathml-elements.js';
45
44
  export { applyField, type FieldMsg } from './form.js';
46
45
  export { elSplit } from './el-split.js';
47
- export { __bindUncertain } from './binding.js';
48
- export { elTemplate, __cloneStaticTemplate } from './el-template.js';
49
- export { _runPhase2 as __runPhase2, _handleMsg as __handleMsg } from './update-loop.js';
46
+ export { elTemplate } from './el-template.js';
50
47
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,YAAY,EACZ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,QAAQ,EACR,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa,EACb,cAAc,GACf,MAAM,YAAY,CAAA;AAInB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAIzF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AACpG,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAKjE,OAAO,EAAE,uBAAuB,E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,EACL,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,MAAM,EACN,KAAK,EACL,UAAU,EACV,aAAa,EACb,WAAW,EACX,KAAK,EACL,MAAM,EACN,GAAG,EACH,GAAG,EACH,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,EACP,SAAS,EACT,UAAU,EACV,aAAa,GACd,MAAM,sBAAsB,CAAA;AAI7B,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAA;AAIrD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
package/dist/index.js CHANGED
@@ -9,7 +9,9 @@ export { mountApp, hydrateApp, mountAtAnchor, hydrateAtAnchor } from './mount.js
9
9
  // pattern. User code never imports this directly — the vite-plugin's
10
10
  // connect-pattern matcher inserts the import + call sites
11
11
  // automatically alongside the existing event-handler tagger.
12
- export { __registerScopeVariants } from './binding-descriptors.js';
12
+ // `__registerScopeVariants` itself moved to `@llui/dom/internal` so the
13
+ // vite-plugin's post-bundle rename pass can't rewrite it inside a
14
+ // module-external import specifier — see internal.ts header.
13
15
  // Library helper for `*.connect` implementations — tags returned
14
16
  // event handlers with the variants they dispatch, so the runtime
15
17
  // binding-descriptor registry surfaces them to the agent layer's
@@ -40,7 +42,7 @@ export { sample } from './primitives/sample.js';
40
42
  export { selector } from './primitives/selector.js';
41
43
  export { onMount } from './primitives/on-mount.js';
42
44
  export { track, LluiCompilerSkippedError } from './primitives/track.js';
43
- export { clientOnly, __clientOnlyStub } from './primitives/client-only.js';
45
+ export { clientOnly } from './primitives/client-only.js';
44
46
  export { errorBoundary } from './primitives/error-boundary.js';
45
47
  // ── Element Helpers ───────────────────────────────────────────────
46
48
  export { a, abbr, article, aside, b, blockquote, br, button, canvas, code, dd, details, dialog, div, dl, dt, em, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hr, i, iframe, img, input, label, legend, li, main, mark, nav, ol, optgroup, option, output, p, pre, progress, section, select, small, span, strong, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, tr, ul, video, } from './elements.js';
@@ -52,7 +54,13 @@ export { math, mi, mn, mo, ms, mtext, mrow, mfrac, msqrt, mroot, msup, msub, msu
52
54
  export { applyField } from './form.js';
53
55
  // ── Compiler Target ───────────────────────────────────────────────
54
56
  export { elSplit } from './el-split.js';
55
- export { __bindUncertain } from './binding.js';
56
- export { elTemplate, __cloneStaticTemplate } from './el-template.js';
57
- export { _runPhase2 as __runPhase2, _handleMsg as __handleMsg } from './update-loop.js';
57
+ export { elTemplate } from './el-template.js';
58
+ // Compiler-emitted runtime helpers (`__bindUncertain`,
59
+ // `__cloneStaticTemplate`, `__runPhase2`, `__handleMsg`,
60
+ // `__registerScopeVariants`, `__clientOnlyStub`) moved to
61
+ // `@llui/dom/internal`. The compiler now emits
62
+ // `import { … } from '@llui/dom/internal'` for those, so the
63
+ // vite-plugin's post-bundle property-rename pass never rewrites a
64
+ // name inside a module-external `@llui/dom` import specifier. See
65
+ // internal.ts for the rationale and issue-#5-follow-up notes.
58
66
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAmBrE,qEAAqE;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAa,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,OAAO,EAAqD,MAAM,cAAc,CAAA;AAEzF,qEAAqE;AAErE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAqB,MAAM,YAAY,CAAA;AAEpG,sEAAsE;AACtE,qEAAqE;AACrE,0DAA0D;AAC1D,6DAA6D;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0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EAAE,UAAU,IAAI,WAAW,EAAE,UAAU,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAA","sourcesContent":["// ── Types ─────────────────────────────────────────────────────────\n\nexport type {\n ComponentDef,\n Send,\n Props,\n AppHandle,\n Lifetime,\n Binding,\n BindingKind,\n TransitionOptions,\n BranchOptions,\n ShowOptions,\n EachOptions,\n ItemAccessor,\n PortalOptions,\n ForeignOptions,\n} from './types.js'\n\n// ── Component ─────────────────────────────────────────────────────\n\nexport { component } from './component.js'\nexport { createView, type View } from './view-helpers.js'\nexport { combine, type SliceReducer, type SliceMap, type TopReducer } from './combine.js'\n\n// ── Mount ─────────────────────────────────────────────────────────\n\nexport { mountApp, hydrateApp, mountAtAnchor, hydrateAtAnchor, type MountOptions } from './mount.js'\nexport type { BindingDescriptor } from './binding-descriptors.js'\n// Compiler-emitted runtime helper for the `*.connect(get, sendFn, …)`\n// pattern. User code never imports this directly — the vite-plugin's\n// connect-pattern matcher inserts the import + call sites\n// automatically alongside the existing event-handler tagger.\nexport { __registerScopeVariants } from './binding-descriptors.js'\n// Library helper for `*.connect` implementations — tags returned\n// event handlers with the variants they dispatch, so the runtime\n// binding-descriptor registry surfaces them to the agent layer's\n// `list_actions`. Library authors call this once per onClick.\nexport { tagSend } from './binding-descriptors.js'\n// installDevTools is NOT re-exported here to keep it out of production bundles.\n// Import directly: import { installDevTools } from '@llui/dom/devtools'\nexport type { LluiDebugAPI, ElementReport, MessageRecord, StateDiff } from './devtools.js'\nexport type { CoverageSnapshot } from './tracking/coverage.js'\nexport type { EachDiff } from './tracking/each-diff.js'\nexport type { DisposerEvent } from './tracking/disposer-log.js'\nexport type { PendingEffect, EffectTimelineEntry, EffectMatch } from './tracking/effect-timeline.js'\nexport type { LifetimeNode } from './types.js'\n\n// ── Runtime ───────────────────────────────────────────────────────\n\nexport { flush } from './runtime.js'\nexport { renderToString, renderNodes, serializeNodes } from './ssr.js'\nexport { browserEnv, type DomEnv } from './dom-env.js'\nexport { mergeHandlers } from './merge-handlers.js'\nexport {\n createContext,\n provide,\n provideValue,\n useContext,\n useContextValue,\n type Context,\n} from './primitives/context.js'\nexport { sliceHandler } from './slice-handler.js'\nexport {\n composeModules,\n type ModulesState,\n type ModulesMsg,\n type ModuleState,\n type ModuleMsg,\n} from './compose.js'\n\n// ── View Primitives ───────────────────────────────────────────────\n\nexport { text } from './primitives/text.js'\nexport { unsafeHtml } from './primitives/unsafe-html.js'\nexport { branch } from './primitives/branch.js'\nexport { each } from './primitives/each.js'\nexport { virtualEach, type VirtualEachOptions } from './primitives/virtual-each.js'\nexport { show } from './primitives/show.js'\nexport { scope } from './primitives/scope.js'\nexport type { ScopeOptions } from './types.js'\nexport { slice } from './primitives/slice.js'\nexport { portal } from './primitives/portal.js'\nexport { foreign } from './primitives/foreign.js'\nexport { lazy, type LazyOptions } from './primitives/lazy.js'\nexport type { LazyDef, AnyComponentDef } from './types.js'\nexport { memo } from './primitives/memo.js'\nexport { sample } from './primitives/sample.js'\nexport { selector } from './primitives/selector.js'\nexport { onMount } from './primitives/on-mount.js'\nexport { track, LluiCompilerSkippedError, type TrackOptions } from './primitives/track.js'\nexport { clientOnly, __clientOnlyStub, type ClientOnlyOptions } from './primitives/client-only.js'\nexport { errorBoundary } from './primitives/error-boundary.js'\n\n// ── Element Helpers ───────────────────────────────────────────────\n\nexport {\n a,\n abbr,\n article,\n aside,\n b,\n blockquote,\n br,\n button,\n canvas,\n code,\n dd,\n details,\n dialog,\n div,\n dl,\n dt,\n em,\n fieldset,\n figcaption,\n figure,\n footer,\n form,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n header,\n hr,\n i,\n iframe,\n img,\n input,\n label,\n legend,\n li,\n main,\n mark,\n nav,\n ol,\n optgroup,\n option,\n output,\n p,\n pre,\n progress,\n section,\n select,\n small,\n span,\n strong,\n sub,\n summary,\n sup,\n table,\n tbody,\n td,\n textarea,\n tfoot,\n th,\n thead,\n time,\n tr,\n ul,\n video,\n} from './elements.js'\n\n// ── SVG Elements ─────────────────────────────────────────────────\n\nexport {\n svg,\n g,\n defs,\n symbol,\n use,\n circle,\n ellipse,\n line,\n path,\n polygon,\n polyline,\n rect,\n text as svgText,\n tspan,\n textPath,\n clipPath,\n linearGradient,\n radialGradient,\n stop,\n mask,\n pattern,\n marker,\n filter,\n feBlend,\n feColorMatrix,\n feComponentTransfer,\n feComposite,\n feConvolveMatrix,\n feDiffuseLighting,\n feDisplacementMap,\n feDropShadow,\n feFlood,\n feGaussianBlur,\n feImage,\n feMerge,\n feMergeNode,\n feMorphology,\n feOffset,\n feSpecularLighting,\n feTile,\n feTurbulence,\n fePointLight,\n feSpotLight,\n feDistantLight,\n feFuncR,\n feFuncG,\n feFuncB,\n feFuncA,\n image,\n foreignObject,\n animate,\n animateMotion,\n animateTransform,\n set,\n mpath,\n desc,\n title as svgTitle,\n metadata,\n} from './svg-elements.js'\n\n// ── MathML Elements ──────────────────────────────────────────────\n\nexport {\n math,\n mi,\n mn,\n mo,\n ms,\n mtext,\n mrow,\n mfrac,\n msqrt,\n mroot,\n msup,\n msub,\n msubsup,\n munder,\n mover,\n munderover,\n mmultiscripts,\n mprescripts,\n mnone,\n mtable,\n mtr,\n mtd,\n mspace,\n mpadded,\n mphantom,\n menclose,\n merror,\n maction,\n semantics,\n annotation,\n annotationXml,\n} from './mathml-elements.js'\n\n// ── Form Utilities ────────────────────────────────────────────────\n\nexport { applyField, type FieldMsg } from './form.js'\n\n// ── Compiler Target ───────────────────────────────────────────────\n\nexport { elSplit } from './el-split.js'\nexport { __bindUncertain } from './binding.js'\nexport { elTemplate, __cloneStaticTemplate } from './el-template.js'\nexport { _runPhase2 as __runPhase2, _handleMsg as __handleMsg } from './update-loop.js'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAmBrE,qEAAqE;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAA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AA;AAE7B,qEAAqE;AAErE,OAAO,EAAE,UAAU,EAAiB,MAAM,WAAW,CAAA;AAErD,qEAAqE;AAErE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,uDAAuD;AACvD,yDAAyD;AACzD,0DAA0D;AAC1D,+CAA+C;AAC/C,6DAA6D;AAC7D,kEAAkE;AAClE,kEAAkE;AAClE,8DAA8D","sourcesContent":["// ── Types ─────────────────────────────────────────────────────────\n\nexport type {\n ComponentDef,\n Send,\n Props,\n AppHandle,\n Lifetime,\n Binding,\n BindingKind,\n TransitionOptions,\n BranchOptions,\n ShowOptions,\n EachOptions,\n ItemAccessor,\n PortalOptions,\n ForeignOptions,\n} from './types.js'\n\n// ── Component ─────────────────────────────────────────────────────\n\nexport { component } from './component.js'\nexport { createView, type View } from './view-helpers.js'\nexport { combine, type SliceReducer, type SliceMap, type TopReducer } from './combine.js'\n\n// ── Mount ─────────────────────────────────────────────────────────\n\nexport { mountApp, hydrateApp, mountAtAnchor, hydrateAtAnchor, type MountOptions } from './mount.js'\nexport type { BindingDescriptor } from './binding-descriptors.js'\n// Compiler-emitted runtime helper for the `*.connect(get, sendFn, …)`\n// pattern. User code never imports this directly — the vite-plugin's\n// connect-pattern matcher inserts the import + call sites\n// automatically alongside the existing event-handler tagger.\n// `__registerScopeVariants` itself moved to `@llui/dom/internal` so the\n// vite-plugin's post-bundle rename pass can't rewrite it inside a\n// module-external import specifier — see internal.ts header.\n// Library helper for `*.connect` implementations — tags returned\n// event handlers with the variants they dispatch, so the runtime\n// binding-descriptor registry surfaces them to the agent layer's\n// `list_actions`. Library authors call this once per onClick.\nexport { tagSend } from './binding-descriptors.js'\n// installDevTools is NOT re-exported here to keep it out of production bundles.\n// Import directly: import { installDevTools } from '@llui/dom/devtools'\nexport type { LluiDebugAPI, ElementReport, MessageRecord, StateDiff } from './devtools.js'\nexport type { CoverageSnapshot } from './tracking/coverage.js'\nexport type { EachDiff } from './tracking/each-diff.js'\nexport type { DisposerEvent } from './tracking/disposer-log.js'\nexport type { PendingEffect, EffectTimelineEntry, EffectMatch } from './tracking/effect-timeline.js'\nexport type { LifetimeNode } from './types.js'\n\n// ── Runtime ───────────────────────────────────────────────────────\n\nexport { flush } from './runtime.js'\nexport { renderToString, renderNodes, serializeNodes } from './ssr.js'\nexport { browserEnv, type DomEnv } from './dom-env.js'\nexport { mergeHandlers } from './merge-handlers.js'\nexport {\n createContext,\n provide,\n provideValue,\n useContext,\n useContextValue,\n type Context,\n} from './primitives/context.js'\nexport { sliceHandler } from './slice-handler.js'\nexport {\n composeModules,\n type ModulesState,\n type ModulesMsg,\n type ModuleState,\n type ModuleMsg,\n} from './compose.js'\n\n// ── View Primitives ───────────────────────────────────────────────\n\nexport { text } from './primitives/text.js'\nexport { unsafeHtml } from './primitives/unsafe-html.js'\nexport { branch } from './primitives/branch.js'\nexport { each } from './primitives/each.js'\nexport { virtualEach, type VirtualEachOptions } from './primitives/virtual-each.js'\nexport { show } from './primitives/show.js'\nexport { scope } from './primitives/scope.js'\nexport type { ScopeOptions } from './types.js'\nexport { slice } from './primitives/slice.js'\nexport { portal } from './primitives/portal.js'\nexport { foreign } from './primitives/foreign.js'\nexport { lazy, type LazyOptions } from './primitives/lazy.js'\nexport type { LazyDef, AnyComponentDef } from './types.js'\nexport { memo } from './primitives/memo.js'\nexport { sample } from './primitives/sample.js'\nexport { selector } from './primitives/selector.js'\nexport { onMount } from './primitives/on-mount.js'\nexport { track, LluiCompilerSkippedError, type TrackOptions } from './primitives/track.js'\nexport { clientOnly, type ClientOnlyOptions } from './primitives/client-only.js'\nexport { errorBoundary } from './primitives/error-boundary.js'\n\n// ── Element Helpers ───────────────────────────────────────────────\n\nexport {\n a,\n abbr,\n article,\n aside,\n b,\n blockquote,\n br,\n button,\n canvas,\n code,\n dd,\n details,\n dialog,\n div,\n dl,\n dt,\n em,\n fieldset,\n figcaption,\n figure,\n footer,\n form,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n header,\n hr,\n i,\n iframe,\n img,\n input,\n label,\n legend,\n li,\n main,\n mark,\n nav,\n ol,\n optgroup,\n option,\n output,\n p,\n pre,\n progress,\n section,\n select,\n small,\n span,\n strong,\n sub,\n summary,\n sup,\n table,\n tbody,\n td,\n textarea,\n tfoot,\n th,\n thead,\n time,\n tr,\n ul,\n video,\n} from './elements.js'\n\n// ── SVG Elements ─────────────────────────────────────────────────\n\nexport {\n svg,\n g,\n defs,\n symbol,\n use,\n circle,\n ellipse,\n line,\n path,\n polygon,\n polyline,\n rect,\n text as svgText,\n tspan,\n textPath,\n clipPath,\n linearGradient,\n radialGradient,\n stop,\n mask,\n pattern,\n marker,\n filter,\n feBlend,\n feColorMatrix,\n feComponentTransfer,\n feComposite,\n feConvolveMatrix,\n feDiffuseLighting,\n feDisplacementMap,\n feDropShadow,\n feFlood,\n feGaussianBlur,\n feImage,\n feMerge,\n feMergeNode,\n feMorphology,\n feOffset,\n feSpecularLighting,\n feTile,\n feTurbulence,\n fePointLight,\n feSpotLight,\n feDistantLight,\n feFuncR,\n feFuncG,\n feFuncB,\n feFuncA,\n image,\n foreignObject,\n animate,\n animateMotion,\n animateTransform,\n set,\n mpath,\n desc,\n title as svgTitle,\n metadata,\n} from './svg-elements.js'\n\n// ── MathML Elements ──────────────────────────────────────────────\n\nexport {\n math,\n mi,\n mn,\n mo,\n ms,\n mtext,\n mrow,\n mfrac,\n msqrt,\n mroot,\n msup,\n msub,\n msubsup,\n munder,\n mover,\n munderover,\n mmultiscripts,\n mprescripts,\n mnone,\n mtable,\n mtr,\n mtd,\n mspace,\n mpadded,\n mphantom,\n menclose,\n merror,\n maction,\n semantics,\n annotation,\n annotationXml,\n} from './mathml-elements.js'\n\n// ── Form Utilities ────────────────────────────────────────────────\n\nexport { applyField, type FieldMsg } from './form.js'\n\n// ── Compiler Target ───────────────────────────────────────────────\n\nexport { elSplit } from './el-split.js'\nexport { elTemplate } from './el-template.js'\n\n// Compiler-emitted runtime helpers (`__bindUncertain`,\n// `__cloneStaticTemplate`, `__runPhase2`, `__handleMsg`,\n// `__registerScopeVariants`, `__clientOnlyStub`) moved to\n// `@llui/dom/internal`. The compiler now emits\n// `import { … } from '@llui/dom/internal'` for those, so the\n// vite-plugin's post-bundle property-rename pass never rewrites a\n// name inside a module-external `@llui/dom` import specifier. See\n// internal.ts for the rationale and issue-#5-follow-up notes.\n"]}
@@ -1,23 +1,39 @@
1
1
  /**
2
- * Internal primitives surface — exported for framework-adapter packages
3
- * (`@llui/vike`, `@llui/router`, `@llui/transitions`) that need to build
4
- * their own structural primitives on top of LLui's scope + render-context
5
- * machinery.
2
+ * Internal surface — exported for two consumer categories:
3
+ *
4
+ * 1. **Framework-adapter packages** (`@llui/vike`, `@llui/router`,
5
+ * `@llui/transitions`) that build their own structural primitives
6
+ * on top of LLui's scope + render-context machinery.
7
+ * 2. **Compiler-emitted runtime helpers** that the LLui compiler
8
+ * synthesizes imports for: `__bindUncertain`, `__cloneStaticTemplate`,
9
+ * `__runPhase2`, `__handleMsg`, `__registerScopeVariants`,
10
+ * `__clientOnlyStub`. These are never written by hand — the compiler's
11
+ * `cleanupImports` pass inserts the import declaration into the
12
+ * transformed module.
6
13
  *
7
14
  * **Not part of the public API.** App authors should not import from
8
15
  * `@llui/dom/internal`. The shapes here are free to change without a
9
16
  * major version bump — the stability contract applies only to the public
10
- * barrel at `@llui/dom`. Reach for this subpath when you're writing a
11
- * primitive like `pageSlot()` (from `@llui/vike`) that has to participate
12
- * in the scope tree, not when you're writing application views.
17
+ * barrel at `@llui/dom`.
13
18
  *
14
- * Added in 0.0.16 to support `@llui/vike`'s persistent-layout feature.
15
- * Any future adapter-level primitive that needs render-context / scope
16
- * access should re-export from this file rather than duplicating the
17
- * low-level glue.
19
+ * Why these helpers live on a subpath instead of the root barrel: when a
20
+ * downstream Vite SSR build externalizes `@llui/dom`, the chunk retains
21
+ * `import { __cloneStaticTemplate } from "@llui/dom"` and the vite-plugin's
22
+ * post-bundle property-rename pass rewrites the identifier. The renamed
23
+ * name (`$a` / `$b` / …) doesn't exist on the package's public export
24
+ * surface, and rolldown fails with `MISSING_EXPORT`. Hosting the helpers
25
+ * at `@llui/dom/internal` keeps the rename pass's regex (which only
26
+ * matches `__`-prefixed identifiers) from rewriting any name that
27
+ * appears in a public-surface import position. See issue #5 follow-up
28
+ * (compiler emit hygiene, 0.3.x dom / 0.4.x compiler).
18
29
  */
19
30
  export { getRenderContext, setRenderContext, clearRenderContext } from './render-context.js';
20
31
  export type { RenderContext } from './render-context.js';
21
32
  export { createLifetime, disposeLifetime, addDisposer } from './lifetime.js';
22
33
  export { defineTestComponentInternal as defineTestComponent, stampTestVersion, type DefineTestComponentInput, } from './internal/test-component-builder.js';
34
+ export { __bindUncertain } from './binding.js';
35
+ export { __cloneStaticTemplate } from './el-template.js';
36
+ export { _runPhase2 as __runPhase2, _handleMsg as __handleMsg } from './update-loop.js';
37
+ export { __registerScopeVariants } from './binding-descriptors.js';
38
+ export { __clientOnlyStub } from './primitives/client-only.js';
23
39
  //# sourceMappingURL=internal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC5F,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC5E,OAAO,EACL,2BAA2B,IAAI,mBAAmB,EAClD,gBAAgB,EAChB,KAAK,wBAAwB,GAC9B,MAAM,sCAAsC,CAAA"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC5F,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC5E,OAAO,EACL,2BAA2B,IAAI,mBAAmB,EAClD,gBAAgB,EAChB,KAAK,wBAAwB,GAC9B,MAAM,sCAAsC,CAAA;AAK7C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,UAAU,IAAI,WAAW,EAAE,UAAU,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA"}
package/dist/internal.js CHANGED
@@ -1,22 +1,41 @@
1
1
  /**
2
- * Internal primitives surface — exported for framework-adapter packages
3
- * (`@llui/vike`, `@llui/router`, `@llui/transitions`) that need to build
4
- * their own structural primitives on top of LLui's scope + render-context
5
- * machinery.
2
+ * Internal surface — exported for two consumer categories:
3
+ *
4
+ * 1. **Framework-adapter packages** (`@llui/vike`, `@llui/router`,
5
+ * `@llui/transitions`) that build their own structural primitives
6
+ * on top of LLui's scope + render-context machinery.
7
+ * 2. **Compiler-emitted runtime helpers** that the LLui compiler
8
+ * synthesizes imports for: `__bindUncertain`, `__cloneStaticTemplate`,
9
+ * `__runPhase2`, `__handleMsg`, `__registerScopeVariants`,
10
+ * `__clientOnlyStub`. These are never written by hand — the compiler's
11
+ * `cleanupImports` pass inserts the import declaration into the
12
+ * transformed module.
6
13
  *
7
14
  * **Not part of the public API.** App authors should not import from
8
15
  * `@llui/dom/internal`. The shapes here are free to change without a
9
16
  * major version bump — the stability contract applies only to the public
10
- * barrel at `@llui/dom`. Reach for this subpath when you're writing a
11
- * primitive like `pageSlot()` (from `@llui/vike`) that has to participate
12
- * in the scope tree, not when you're writing application views.
17
+ * barrel at `@llui/dom`.
13
18
  *
14
- * Added in 0.0.16 to support `@llui/vike`'s persistent-layout feature.
15
- * Any future adapter-level primitive that needs render-context / scope
16
- * access should re-export from this file rather than duplicating the
17
- * low-level glue.
19
+ * Why these helpers live on a subpath instead of the root barrel: when a
20
+ * downstream Vite SSR build externalizes `@llui/dom`, the chunk retains
21
+ * `import { __cloneStaticTemplate } from "@llui/dom"` and the vite-plugin's
22
+ * post-bundle property-rename pass rewrites the identifier. The renamed
23
+ * name (`$a` / `$b` / …) doesn't exist on the package's public export
24
+ * surface, and rolldown fails with `MISSING_EXPORT`. Hosting the helpers
25
+ * at `@llui/dom/internal` keeps the rename pass's regex (which only
26
+ * matches `__`-prefixed identifiers) from rewriting any name that
27
+ * appears in a public-surface import position. See issue #5 follow-up
28
+ * (compiler emit hygiene, 0.3.x dom / 0.4.x compiler).
18
29
  */
19
30
  export { getRenderContext, setRenderContext, clearRenderContext } from './render-context.js';
20
31
  export { createLifetime, disposeLifetime, addDisposer } from './lifetime.js';
21
32
  export { defineTestComponentInternal as defineTestComponent, stampTestVersion, } from './internal/test-component-builder.js';
33
+ // Compiler-emitted runtime helpers. The compiler's `cleanupImports`
34
+ // pass inserts an `import { … } from '@llui/dom/internal'` declaration
35
+ // referencing whichever of these are used in the transformed file.
36
+ export { __bindUncertain } from './binding.js';
37
+ export { __cloneStaticTemplate } from './el-template.js';
38
+ export { _runPhase2 as __runPhase2, _handleMsg as __handleMsg } from './update-loop.js';
39
+ export { __registerScopeVariants } from './binding-descriptors.js';
40
+ export { __clientOnlyStub } from './primitives/client-only.js';
22
41
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE5F,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC5E,OAAO,EACL,2BAA2B,IAAI,mBAAmB,EAClD,gBAAgB,GAEjB,MAAM,sCAAsC,CAAA","sourcesContent":["/**\n * Internal primitives surface — exported for framework-adapter packages\n * (`@llui/vike`, `@llui/router`, `@llui/transitions`) that need to build\n * their own structural primitives on top of LLui's scope + render-context\n * machinery.\n *\n * **Not part of the public API.** App authors should not import from\n * `@llui/dom/internal`. The shapes here are free to change without a\n * major version bump — the stability contract applies only to the public\n * barrel at `@llui/dom`. Reach for this subpath when you're writing a\n * primitive like `pageSlot()` (from `@llui/vike`) that has to participate\n * in the scope tree, not when you're writing application views.\n *\n * Added in 0.0.16 to support `@llui/vike`'s persistent-layout feature.\n * Any future adapter-level primitive that needs render-context / scope\n * access should re-export from this file rather than duplicating the\n * low-level glue.\n */\n\nexport { getRenderContext, setRenderContext, clearRenderContext } from './render-context.js'\nexport type { RenderContext } from './render-context.js'\nexport { createLifetime, disposeLifetime, addDisposer } from './lifetime.js'\nexport {\n defineTestComponentInternal as defineTestComponent,\n stampTestVersion,\n type DefineTestComponentInput,\n} from './internal/test-component-builder.js'\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE5F,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC5E,OAAO,EACL,2BAA2B,IAAI,mBAAmB,EAClD,gBAAgB,GAEjB,MAAM,sCAAsC,CAAA;AAE7C,oEAAoE;AACpE,uEAAuE;AACvE,mEAAmE;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,UAAU,IAAI,WAAW,EAAE,UAAU,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA","sourcesContent":["/**\n * Internal surface — exported for two consumer categories:\n *\n * 1. **Framework-adapter packages** (`@llui/vike`, `@llui/router`,\n * `@llui/transitions`) that build their own structural primitives\n * on top of LLui's scope + render-context machinery.\n * 2. **Compiler-emitted runtime helpers** that the LLui compiler\n * synthesizes imports for: `__bindUncertain`, `__cloneStaticTemplate`,\n * `__runPhase2`, `__handleMsg`, `__registerScopeVariants`,\n * `__clientOnlyStub`. These are never written by hand — the compiler's\n * `cleanupImports` pass inserts the import declaration into the\n * transformed module.\n *\n * **Not part of the public API.** App authors should not import from\n * `@llui/dom/internal`. The shapes here are free to change without a\n * major version bump — the stability contract applies only to the public\n * barrel at `@llui/dom`.\n *\n * Why these helpers live on a subpath instead of the root barrel: when a\n * downstream Vite SSR build externalizes `@llui/dom`, the chunk retains\n * `import { __cloneStaticTemplate } from \"@llui/dom\"` and the vite-plugin's\n * post-bundle property-rename pass rewrites the identifier. The renamed\n * name (`$a` / `$b` / …) doesn't exist on the package's public export\n * surface, and rolldown fails with `MISSING_EXPORT`. Hosting the helpers\n * at `@llui/dom/internal` keeps the rename pass's regex (which only\n * matches `__`-prefixed identifiers) from rewriting any name that\n * appears in a public-surface import position. See issue #5 follow-up\n * (compiler emit hygiene, 0.3.x dom / 0.4.x compiler).\n */\n\nexport { getRenderContext, setRenderContext, clearRenderContext } from './render-context.js'\nexport type { RenderContext } from './render-context.js'\nexport { createLifetime, disposeLifetime, addDisposer } from './lifetime.js'\nexport {\n defineTestComponentInternal as defineTestComponent,\n stampTestVersion,\n type DefineTestComponentInput,\n} from './internal/test-component-builder.js'\n\n// Compiler-emitted runtime helpers. The compiler's `cleanupImports`\n// pass inserts an `import { … } from '@llui/dom/internal'` declaration\n// referencing whichever of these are used in the transformed file.\nexport { __bindUncertain } from './binding.js'\nexport { __cloneStaticTemplate } from './el-template.js'\nexport { _runPhase2 as __runPhase2, _handleMsg as __handleMsg } from './update-loop.js'\nexport { __registerScopeVariants } from './binding-descriptors.js'\nexport { __clientOnlyStub } from './primitives/client-only.js'\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llui/dom",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {