@barefootjs/client 0.9.2 → 0.9.4

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.
Files changed (40) hide show
  1. package/dist/build.d.ts +4 -4
  2. package/dist/build.d.ts.map +1 -1
  3. package/dist/index.d.ts +6 -6
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/runtime/component.d.ts +1 -1
  6. package/dist/runtime/component.d.ts.map +1 -1
  7. package/dist/runtime/context.d.ts +2 -2
  8. package/dist/runtime/context.d.ts.map +1 -1
  9. package/dist/runtime/hydrate.d.ts +1 -1
  10. package/dist/runtime/hydrate.d.ts.map +1 -1
  11. package/dist/runtime/index.d.ts +26 -26
  12. package/dist/runtime/index.d.ts.map +1 -1
  13. package/dist/runtime/registry.d.ts +1 -1
  14. package/dist/runtime/registry.d.ts.map +1 -1
  15. package/dist/runtime/render.d.ts +1 -1
  16. package/dist/runtime/render.d.ts.map +1 -1
  17. package/dist/shims.d.ts +3 -3
  18. package/dist/shims.d.ts.map +1 -1
  19. package/package.json +2 -2
  20. package/src/build.ts +4 -4
  21. package/src/index.ts +6 -6
  22. package/src/runtime/apply-rest-attrs.ts +1 -1
  23. package/src/runtime/branch-slot.ts +1 -1
  24. package/src/runtime/component.ts +6 -6
  25. package/src/runtime/context.ts +2 -2
  26. package/src/runtime/hydrate.ts +6 -6
  27. package/src/runtime/index.ts +26 -26
  28. package/src/runtime/insert.ts +3 -3
  29. package/src/runtime/list.ts +1 -1
  30. package/src/runtime/map-array.ts +1 -1
  31. package/src/runtime/portal.ts +2 -2
  32. package/src/runtime/qsa-item.ts +3 -3
  33. package/src/runtime/query.ts +2 -2
  34. package/src/runtime/reconcile-elements.ts +1 -1
  35. package/src/runtime/registry.ts +5 -5
  36. package/src/runtime/render.ts +6 -6
  37. package/src/runtime/slot-resolver.ts +1 -1
  38. package/src/runtime/spread-attrs.ts +1 -1
  39. package/src/runtime/streaming.ts +1 -1
  40. package/src/shims.ts +3 -3
package/dist/build.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { BarefootPaths, BundleEntry, ExternalSpec, OutputLayout, PostBuildContext, TemplateAdapter } from '@barefootjs/jsx';
2
- import { CSRAdapter } from './csr-adapter';
3
- import type { CSRAdapterOptions } from './csr-adapter';
2
+ import { CSRAdapter } from './csr-adapter.ts';
3
+ import type { CSRAdapterOptions } from './csr-adapter.ts';
4
4
  export interface CSRBuildOptions {
5
5
  /** Project layout paths consumed by registry tooling. */
6
6
  paths?: BarefootPaths;
@@ -51,6 +51,6 @@ export declare function createConfig(options?: CSRBuildOptions): {
51
51
  outputLayout: OutputLayout | undefined;
52
52
  postBuild: ((ctx: PostBuildContext) => Promise<void> | void) | undefined;
53
53
  };
54
- export { CSRAdapter } from './csr-adapter';
55
- export type { CSRAdapterOptions } from './csr-adapter';
54
+ export { CSRAdapter } from './csr-adapter.ts';
55
+ export type { CSRAdapterOptions } from './csr-adapter.ts';
56
56
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,eAAe,EAChB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAEtD,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,+BAA+B;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,sCAAsC;IACtC,YAA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C/C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,sCAAsC;IACtC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,wEAAwE;IACxE,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC3D,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IACxC,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,+DAA+D;IAC/D,aAAa,CAAC,EAAE,WAAW,EAAE,CAAA;IAC7B;;;;OAIG;IACH,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,oFAAoF;IACpF,cAAc,CAAC,EAAE,iBAAiB,CAAA;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,GAAE,eAAoB;;;;;;;;;;;;sBAvBtC,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;EA2C5D;AAED,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { createSignal, createEffect, createDisposableEffect, createMemo, createRoot, onCleanup, onMount, untrack, batch, type Reactive, type Signal, type Memo, type CleanupFn, type EffectFn, } from '@barefootjs/client/reactive';
2
- export { splitProps } from './split-props';
3
- export { __slot, type SlotMarker } from './slot';
4
- export { forwardProps } from './forward-props';
5
- export { unwrap } from './unwrap';
6
- export { createContext, type Context } from './context';
7
- export { useContext, provideContext, createPortal, isSSRPortal, findSiblingSlot, cleanupPortalPlaceholder, type Portal, type PortalChildren, type PortalOptions, type Renderable, } from './shims';
2
+ export { splitProps } from './split-props.ts';
3
+ export { __slot, type SlotMarker } from './slot.ts';
4
+ export { forwardProps } from './forward-props.ts';
5
+ export { unwrap } from './unwrap.ts';
6
+ export { createContext, type Context } from './context.ts';
7
+ export { useContext, provideContext, createPortal, isSSRPortal, findSiblingSlot, cleanupPortalPlaceholder, type Portal, type PortalChildren, type PortalOptions, type Renderable, } from './shims.ts';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,sBAAsB,EACtB,UAAU,EACV,UAAU,EACV,SAAS,EACT,OAAO,EACP,OAAO,EACP,KAAK,EACL,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,QAAQ,GACd,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,QAAQ,CAAA;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAA;AAEvD,OAAO,EACL,UAAU,EACV,cAAc,EACd,YAAY,EACZ,WAAW,EACX,eAAe,EACf,wBAAwB,EACxB,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,UAAU,GAChB,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,sBAAsB,EACtB,UAAU,EACV,UAAU,EACV,SAAS,EACT,OAAO,EACP,OAAO,EACP,KAAK,EACL,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,QAAQ,GACd,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AAE1D,OAAO,EACL,UAAU,EACV,cAAc,EACd,YAAY,EACZ,WAAW,EACX,eAAe,EACf,wBAAwB,EACxB,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,UAAU,GAChB,MAAM,YAAY,CAAA"}
@@ -4,7 +4,7 @@
4
4
  * Functions for dynamically creating component instances at runtime.
5
5
  * Used by reconcileList() when rendering components in loops.
6
6
  */
7
- import type { ComponentDef } from './types';
7
+ import type { ComponentDef } from './types.ts';
8
8
  export declare function setParentScopeId(id: string | null): void;
9
9
  /**
10
10
  * Create a component instance with DOM element and initialized state.
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/runtime/component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAS3C,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAExD;AAWD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;;;GAGG;AACH;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAA;IACd,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,GAAG,YAAY,EAChC,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EACnC,GAAG,CAAC,EAAE,MAAM,G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}
@@ -7,8 +7,8 @@
7
7
  *
8
8
  * A global store is kept as a fallback for non-scoped usage.
9
9
  */
10
- import type { Context } from '../context';
11
- export { createContext, type Context } from '../context';
10
+ import type { Context } from '../context.ts';
11
+ export { createContext, type Context } from '../context.ts';
12
12
  /**
13
13
  * Set the current scope element for context operations.
14
14
  * Called by initChild to scope provideContext/useContext to the correct element.
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/runtime/context.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAA;AAWxD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,CAIrE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CA2BpD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CA0BrE"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/runtime/context.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAE5C,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAA;AAW3D;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,CAIrE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CA2BpD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CA0BrE"}
@@ -36,7 +36,7 @@
36
36
  * normal top-level component. This makes nesting depth a non-issue
37
37
  * — the previous ancestor-walk guard is gone.
38
38
  */
39
- import type { ComponentDef } from './types';
39
+ import type { ComponentDef } from './types.ts';
40
40
  /**
41
41
  * Look up a registered component definition by name. Used by the CSR
42
42
  * `createComponent` path to honour `comment: true` (transparent
@@ -1 +1 @@
1
- {"version":3,"file":"hydrate.d.ts","sourceRoot":"","sources":["../../src/runtime/hydrate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAQH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAS3C;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAEvE;AA8CD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,GAAG,IAAI,CAgB7D;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAKrC"}
1
+ {"version":3,"file":"hydrate.d.ts","sourceRoot":"","sources":["../../src/runtime/hydrate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAQH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAS9C;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAEvE;AA8CD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,GAAG,IAAI,CAgB7D;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAKrC"}
@@ -1,28 +1,28 @@
1
1
  export { createSignal, createEffect, createDisposableEffect, createMemo, createRoot, onCleanup, onMount, untrack, batch, type Reactive, type Signal, type Memo, type CleanupFn, type EffectFn, } from '@barefootjs/client/reactive';
2
- export { splitProps } from '../split-props';
3
- export { __slot, type SlotMarker } from '../slot';
4
- export { forwardProps } from '../forward-props';
5
- export { unwrap } from '../unwrap';
6
- export { createContext, useContext, provideContext, setCurrentScope, type Context, } from './context';
7
- export { createPortal, isSSRPortal, findSiblingSlot, cleanupPortalPlaceholder, type Portal, type PortalOptions, type Renderable, type PortalChildren, } from './portal';
8
- export { reconcileList, type RenderItemFn } from './list';
9
- export { reconcileElements, getLoopChildren, getLoopNodes } from './reconcile-elements';
10
- export { qsaItem, upsertChildItem } from './qsa-item';
11
- export { mapArray, mapArrayAnchored } from './map-array';
12
- export { registerTemplate, getTemplate, hasTemplate, type TemplateFn } from './template';
13
- export { createComponent, renderChild, getPropsUpdateFn, getComponentProps, parseHTML, escapeAttr, escapeText, } from './component';
14
- export { applyRestAttrs } from './apply-rest-attrs';
15
- export { spreadAttrs } from './spread-attrs';
16
- export { styleToCss } from './style';
17
- export { findScope, find, $, $c, $t, qsa, qsaChildScope, qsaChildScopes, cssEscape } from './query';
18
- export { hydrate, rehydrateAll, flushHydration, getRegisteredDef } from './hydrate';
19
- export { registerComponent, getComponentInit, initChild, upsertChild } from './registry';
20
- export { insert, type BranchConfig, type BranchTemplateResult } from './insert';
21
- export { __bfSlot } from './branch-slot';
22
- export { __bfText } from './dynamic-text';
23
- export { updateClientMarker } from './client-marker';
24
- export { hydratedScopes } from './hydration-state';
25
- export { render } from './render';
26
- export { __bf_swap, setupStreaming } from './streaming';
27
- export type { InitFn, ComponentDef } from './types';
2
+ export { splitProps } from '../split-props.ts';
3
+ export { __slot, type SlotMarker } from '../slot.ts';
4
+ export { forwardProps } from '../forward-props.ts';
5
+ export { unwrap } from '../unwrap.ts';
6
+ export { createContext, useContext, provideContext, setCurrentScope, type Context, } from './context.ts';
7
+ export { createPortal, isSSRPortal, findSiblingSlot, cleanupPortalPlaceholder, type Portal, type PortalOptions, type Renderable, type PortalChildren, } from './portal.ts';
8
+ export { reconcileList, type RenderItemFn } from './list.ts';
9
+ export { reconcileElements, getLoopChildren, getLoopNodes } from './reconcile-elements.ts';
10
+ export { qsaItem, upsertChildItem } from './qsa-item.ts';
11
+ export { mapArray, mapArrayAnchored } from './map-array.ts';
12
+ export { registerTemplate, getTemplate, hasTemplate, type TemplateFn } from './template.ts';
13
+ export { createComponent, renderChild, getPropsUpdateFn, getComponentProps, parseHTML, escapeAttr, escapeText, } from './component.ts';
14
+ export { applyRestAttrs } from './apply-rest-attrs.ts';
15
+ export { spreadAttrs } from './spread-attrs.ts';
16
+ export { styleToCss } from './style.ts';
17
+ export { findScope, find, $, $c, $t, qsa, qsaChildScope, qsaChildScopes, cssEscape } from './query.ts';
18
+ export { hydrate, rehydrateAll, flushHydration, getRegisteredDef } from './hydrate.ts';
19
+ export { registerComponent, getComponentInit, initChild, upsertChild } from './registry.ts';
20
+ export { insert, type BranchConfig, type BranchTemplateResult } from './insert.ts';
21
+ export { __bfSlot } from './branch-slot.ts';
22
+ export { __bfText } from './dynamic-text.ts';
23
+ export { updateClientMarker } from './client-marker.ts';
24
+ export { hydratedScopes } from './hydration-state.ts';
25
+ export { render } from './render.ts';
26
+ export { __bf_swap, setupStreaming } from './streaming.ts';
27
+ export type { InitFn, ComponentDef } from './types.ts';
28
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[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E,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACtF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3F,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAGvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAGrD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGpC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAG1D,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA"}
@@ -4,7 +4,7 @@
4
4
  * Component registry for parent-child communication.
5
5
  * Each component registers its init function so parents can initialize children with props.
6
6
  */
7
- import type { InitFn } from './types';
7
+ import type { InitFn } from './types.ts';
8
8
  /**
9
9
  * Register a component's init function for parent initialization.
10
10
  * Also processes any pending child initializations for this component.
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/runtime/registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAarC;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAclE;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEjE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CACvB,IAAI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GAAG,IAAI,CA8BpB"}
@@ -5,7 +5,7 @@
5
5
  * without server-side rendering. Tree-shakeable: SSR-only apps
6
6
  * never import this module.
7
7
  */
8
- import type { ComponentDef } from './types';
8
+ import type { ComponentDef } from './types.ts';
9
9
  /**
10
10
  * Render a component into a container element (CSR mode).
11
11
  *
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/runtime/render.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,KAAK,EAAE,YAAY,EAAU,MAAM,SAAS,CAAA;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,MAAM,CACpB,SAAS,EAAE,WAAW,EACtB,SAAS,EAAE,MAAM,GAAG,YAAY,EAChC,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAClC,IAAI,CAiFN"}
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/runtime/render.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,KAAK,EAAE,YAAY,EAAU,MAAM,YAAY,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,MAAM,CACpB,SAAS,EAAE,WAAW,EACtB,SAAS,EAAE,MAAM,GAAG,YAAY,EAChC,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAClC,IAAI,CAiFN"}
package/dist/shims.d.ts CHANGED
@@ -9,9 +9,9 @@
9
9
  * executed without going through the compiler — or a non-client file
10
10
  * slipped past the `MISSING_USE_CLIENT` check. Either way, it's a bug.
11
11
  */
12
- import type { Context } from './context';
13
- import type { Portal, PortalChildren, PortalOptions } from './runtime/portal';
14
- export type { Portal, PortalChildren, PortalOptions, Renderable } from './runtime/portal';
12
+ import type { Context } from './context.ts';
13
+ import type { Portal, PortalChildren, PortalOptions } from './runtime/portal.ts';
14
+ export type { Portal, PortalChildren, PortalOptions, Renderable } from './runtime/portal.ts';
15
15
  export declare function useContext<T>(_context: Context<T>): T;
16
16
  export declare function provideContext<T>(_context: Context<T>, _value: T): void;
17
17
  export declare function createPortal(_children: PortalChildren, _container?: Element, _options?: PortalOptions): Portal;
@@ -1 +1 @@
1
- {"version":3,"file":"shims.d.ts","sourceRoot":"","sources":["../src/shims.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAE7E,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AASzF,wBAAgB,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAErD;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAEvE;AAED,wBAAgB,YAAY,CAC1B,SAAS,EAAE,cAAc,EACzB,UAAU,CAAC,EAAE,OAAO,EACpB,QAAQ,CAAC,EAAE,aAAa,GACvB,MAAM,CAER;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAE1D;AAED,wBAAgB,eAAe,CAC7B,GAAG,EAAE,WAAW,EAChB,aAAa,EAAE,MAAM,GACpB,WAAW,GAAG,IAAI,CAEpB;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAEhE"}
1
+ {"version":3,"file":"shims.d.ts","sourceRoot":"","sources":["../src/shims.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEhF,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAS5F,wBAAgB,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAErD;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAEvE;AAED,wBAAgB,YAAY,CAC1B,SAAS,EAAE,cAAc,EACzB,UAAU,CAAC,EAAE,OAAO,EACpB,QAAQ,CAAC,EAAE,aAAa,GACvB,MAAM,CAER;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAE1D;AAED,wBAAgB,eAAe,CAC7B,GAAG,EAAE,WAAW,EAChB,aAAa,EAAE,MAAM,GACpB,WAAW,GAAG,IAAI,CAEpB;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAEhE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barefootjs/client",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "BarefootJS client package: reactive primitives (SSR-safe) plus browser runtime under the `/runtime` subpath (compiler target)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -55,7 +55,7 @@
55
55
  "directory": "packages/client"
56
56
  },
57
57
  "dependencies": {
58
- "@barefootjs/shared": "0.9.2"
58
+ "@barefootjs/shared": "0.9.4"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@barefootjs/jsx": ">=0.2.0"
package/src/build.ts CHANGED
@@ -26,8 +26,8 @@ import type {
26
26
  PostBuildContext,
27
27
  TemplateAdapter,
28
28
  } from '@barefootjs/jsx'
29
- import { CSRAdapter } from './csr-adapter'
30
- import type { CSRAdapterOptions } from './csr-adapter'
29
+ import { CSRAdapter } from './csr-adapter.ts'
30
+ import type { CSRAdapterOptions } from './csr-adapter.ts'
31
31
 
32
32
  export interface CSRBuildOptions {
33
33
  /** Project layout paths consumed by registry tooling. */
@@ -88,5 +88,5 @@ export function createConfig(options: CSRBuildOptions = {}) {
88
88
  }
89
89
  }
90
90
 
91
- export { CSRAdapter } from './csr-adapter'
92
- export type { CSRAdapterOptions } from './csr-adapter'
91
+ export { CSRAdapter } from './csr-adapter.ts'
92
+ export type { CSRAdapterOptions } from './csr-adapter.ts'
package/src/index.ts CHANGED
@@ -18,15 +18,15 @@ export {
18
18
  type EffectFn,
19
19
  } from '@barefootjs/client/reactive'
20
20
 
21
- export { splitProps } from './split-props'
21
+ export { splitProps } from './split-props.ts'
22
22
 
23
- export { __slot, type SlotMarker } from './slot'
23
+ export { __slot, type SlotMarker } from './slot.ts'
24
24
 
25
- export { forwardProps } from './forward-props'
25
+ export { forwardProps } from './forward-props.ts'
26
26
 
27
- export { unwrap } from './unwrap'
27
+ export { unwrap } from './unwrap.ts'
28
28
 
29
- export { createContext, type Context } from './context'
29
+ export { createContext, type Context } from './context.ts'
30
30
 
31
31
  export {
32
32
  useContext,
@@ -39,4 +39,4 @@ export {
39
39
  type PortalChildren,
40
40
  type PortalOptions,
41
41
  type Renderable,
42
- } from './shims'
42
+ } from './shims.ts'
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { createEffect } from '@barefootjs/client/reactive'
9
9
  import { classifyDOMProp, type DOMPropClassification } from '@barefootjs/shared'
10
- import { styleToCss } from './style'
10
+ import { styleToCss } from './style.ts'
11
11
 
12
12
  /**
13
13
  * Convert a JSX event prop name to a DOM event name for addEventListener.
@@ -23,7 +23,7 @@
23
23
  * to splice. (Doing it here rather than wrapping the whole `__bfSlot(...)`
24
24
  * call in `escapeText` is what lets the marker path stay raw.)
25
25
  */
26
- import { escapeText } from './component'
26
+ import { escapeText } from './component.ts'
27
27
 
28
28
  export function __bfSlot(value: unknown, slots: Node[]): string {
29
29
  if (value == null || value === false || value === true) return ''
@@ -5,14 +5,14 @@
5
5
  * Used by reconcileList() when rendering components in loops.
6
6
  */
7
7
 
8
- import { getTemplate } from './template'
9
- import { getComponentInit } from './registry'
10
- import { getRegisteredDef } from './hydrate'
11
- import { hydratedScopes } from './hydration-state'
8
+ import { getTemplate } from './template.ts'
9
+ import { getComponentInit } from './registry.ts'
10
+ import { getRegisteredDef } from './hydrate.ts'
11
+ import { hydratedScopes } from './hydration-state.ts'
12
12
  import { untrack } from '@barefootjs/client/reactive'
13
- import { setCurrentScope } from './context'
13
+ import { setCurrentScope } from './context.ts'
14
14
  import { BF_SCOPE, BF_KEY, BF_HOST, BF_AT, BF_PARENT_SCOPE_PLACEHOLDER, BF_PLACEHOLDER } from '@barefootjs/shared'
15
- import type { ComponentDef } from './types'
15
+ import type { ComponentDef } from './types.ts'
16
16
 
17
17
  // Parent scope ID context for renderChild() inside insert() branch templates.
18
18
  // When set, renderChild uses the parent's scope ID as prefix instead of a random ID,
@@ -9,9 +9,9 @@
9
9
  */
10
10
 
11
11
  import { BF_PORTAL_OWNER, BF_SCOPE } from '@barefootjs/shared'
12
- import type { Context } from '../context'
12
+ import type { Context } from '../context.ts'
13
13
 
14
- export { createContext, type Context } from '../context'
14
+ export { createContext, type Context } from '../context.ts'
15
15
 
16
16
  /** Global fallback store for contexts without a DOM scope. */
17
17
  const contextStore = new Map<symbol, unknown>()
@@ -37,13 +37,13 @@
37
37
  * — the previous ancestor-walk guard is gone.
38
38
  */
39
39
 
40
- import { setCurrentScope } from './context'
41
- import { commentScopeRegistry } from './scope'
42
- import { hydratedScopes } from './hydration-state'
43
- import { registerComponent } from './registry'
44
- import { registerTemplate } from './template'
40
+ import { setCurrentScope } from './context.ts'
41
+ import { commentScopeRegistry } from './scope.ts'
42
+ import { hydratedScopes } from './hydration-state.ts'
43
+ import { registerComponent } from './registry.ts'
44
+ import { registerTemplate } from './template.ts'
45
45
  import { BF_SCOPE, BF_PROPS, BF_HOST, BF_SCOPE_COMMENT_PREFIX } from '@barefootjs/shared'
46
- import type { ComponentDef } from './types'
46
+ import type { ComponentDef } from './types.ts'
47
47
 
48
48
  /**
49
49
  * Registry of all hydrated component definitions.
@@ -25,10 +25,10 @@ export {
25
25
  type EffectFn,
26
26
  } from '@barefootjs/client/reactive'
27
27
 
28
- export { splitProps } from '../split-props'
29
- export { __slot, type SlotMarker } from '../slot'
30
- export { forwardProps } from '../forward-props'
31
- export { unwrap } from '../unwrap'
28
+ export { splitProps } from '../split-props.ts'
29
+ export { __slot, type SlotMarker } from '../slot.ts'
30
+ export { forwardProps } from '../forward-props.ts'
31
+ export { unwrap } from '../unwrap.ts'
32
32
 
33
33
  // Context API (real DOM-bound implementations; `createContext` is the
34
34
  // same pure function re-exported from `../context`).
@@ -38,7 +38,7 @@ export {
38
38
  provideContext,
39
39
  setCurrentScope,
40
40
  type Context,
41
- } from './context'
41
+ } from './context.ts'
42
42
 
43
43
  // Portal system
44
44
  export {
@@ -50,16 +50,16 @@ export {
50
50
  type PortalOptions,
51
51
  type Renderable,
52
52
  type PortalChildren,
53
- } from './portal'
53
+ } from './portal.ts'
54
54
 
55
55
  // List reconciliation
56
- export { reconcileList, type RenderItemFn } from './list'
57
- export { reconcileElements, getLoopChildren, getLoopNodes } from './reconcile-elements'
58
- export { qsaItem, upsertChildItem } from './qsa-item'
59
- export { mapArray, mapArrayAnchored } from './map-array'
56
+ export { reconcileList, type RenderItemFn } from './list.ts'
57
+ export { reconcileElements, getLoopChildren, getLoopNodes } from './reconcile-elements.ts'
58
+ export { qsaItem, upsertChildItem } from './qsa-item.ts'
59
+ export { mapArray, mapArrayAnchored } from './map-array.ts'
60
60
 
61
61
  // Template registry
62
- export { registerTemplate, getTemplate, hasTemplate, type TemplateFn } from './template'
62
+ export { registerTemplate, getTemplate, hasTemplate, type TemplateFn } from './template.ts'
63
63
 
64
64
  // Component creation
65
65
  export {
@@ -70,30 +70,30 @@ export {
70
70
  parseHTML,
71
71
  escapeAttr,
72
72
  escapeText,
73
- } from './component'
73
+ } from './component.ts'
74
74
 
75
75
  // Spread props helpers
76
- export { applyRestAttrs } from './apply-rest-attrs'
77
- export { spreadAttrs } from './spread-attrs'
78
- export { styleToCss } from './style'
76
+ export { applyRestAttrs } from './apply-rest-attrs.ts'
77
+ export { spreadAttrs } from './spread-attrs.ts'
78
+ export { styleToCss } from './style.ts'
79
79
 
80
80
  // Runtime helpers
81
- export { findScope, find, $, $c, $t, qsa, qsaChildScope, qsaChildScopes, cssEscape } from './query'
82
- export { hydrate, rehydrateAll, flushHydration, getRegisteredDef } from './hydrate'
83
- export { registerComponent, getComponentInit, initChild, upsertChild } from './registry'
84
- export { insert, type BranchConfig, type BranchTemplateResult } from './insert'
85
- export { __bfSlot } from './branch-slot'
86
- export { __bfText } from './dynamic-text'
87
- export { updateClientMarker } from './client-marker'
81
+ export { findScope, find, $, $c, $t, qsa, qsaChildScope, qsaChildScopes, cssEscape } from './query.ts'
82
+ export { hydrate, rehydrateAll, flushHydration, getRegisteredDef } from './hydrate.ts'
83
+ export { registerComponent, getComponentInit, initChild, upsertChild } from './registry.ts'
84
+ export { insert, type BranchConfig, type BranchTemplateResult } from './insert.ts'
85
+ export { __bfSlot } from './branch-slot.ts'
86
+ export { __bfText } from './dynamic-text.ts'
87
+ export { updateClientMarker } from './client-marker.ts'
88
88
 
89
89
  // Hydration state
90
- export { hydratedScopes } from './hydration-state'
90
+ export { hydratedScopes } from './hydration-state.ts'
91
91
 
92
92
  // CSR entry point
93
- export { render } from './render'
93
+ export { render } from './render.ts'
94
94
 
95
95
  // Streaming (Out-of-Order SSR)
96
- export { __bf_swap, setupStreaming } from './streaming'
96
+ export { __bf_swap, setupStreaming } from './streaming.ts'
97
97
 
98
98
  // Core types
99
- export type { InitFn, ComponentDef } from './types'
99
+ export type { InitFn, ComponentDef } from './types.ts'
@@ -7,9 +7,9 @@
7
7
  */
8
8
 
9
9
  import { createEffect, untrack } from '@barefootjs/client/reactive'
10
- import { find } from './query'
11
- import { setParentScopeId, parseHTML } from './component'
12
- import { commentScopeRegistry, getCommentScopeBoundary } from './scope'
10
+ import { find } from './query.ts'
11
+ import { setParentScopeId, parseHTML } from './component.ts'
12
+ import { commentScopeRegistry, getCommentScopeBoundary } from './scope.ts'
13
13
  import { BF_COND, BF_SCOPE, BF_LOOP_ITEM } from '@barefootjs/shared'
14
14
 
15
15
  /**
@@ -5,7 +5,7 @@
5
5
  * Delegates to reconcileElements for element-based rendering.
6
6
  */
7
7
 
8
- import { reconcileElements } from './reconcile-elements'
8
+ import { reconcileElements } from './reconcile-elements.ts'
9
9
 
10
10
  /**
11
11
  * Render function type for list items.
@@ -19,7 +19,7 @@
19
19
  */
20
20
 
21
21
  import { createSignal, createEffect, createRoot } from '@barefootjs/client/reactive'
22
- import { hydratedScopes } from './hydration-state'
22
+ import { hydratedScopes } from './hydration-state.ts'
23
23
  import {
24
24
  BF_KEY,
25
25
  BF_LOOP_START,
@@ -8,8 +8,8 @@
8
8
  */
9
9
 
10
10
  import { BF_SCOPE, BF_PORTAL_ID, BF_PORTAL_OWNER, BF_PORTAL_PLACEHOLDER } from '@barefootjs/shared'
11
- import { parseHTML } from './component'
12
- import { getPortalScopeId } from './scope'
11
+ import { parseHTML } from './component.ts'
12
+ import { getPortalScopeId } from './scope.ts'
13
13
 
14
14
  export type Portal = {
15
15
  /** The mounted element */
@@ -28,9 +28,9 @@
28
28
  */
29
29
 
30
30
  import { BF_LOOP_ITEM, BF_LOOP_START, BF_LOOP_END } from '@barefootjs/shared'
31
- import { initChild } from './registry'
32
- import { createComponent } from './component'
33
- import { findSsrScopeBySlotIn, buildSlotInfo } from './slot-resolver'
31
+ import { initChild } from './registry.ts'
32
+ import { createComponent } from './component.ts'
33
+ import { findSsrScopeBySlotIn, buildSlotInfo } from './slot-resolver.ts'
34
34
 
35
35
  /** Iterate the elements that belong to an item — primary, in-tree siblings within bounds, then any pre-insertion extras stash. */
36
36
  function* itemRootElements(primaryEl: Element): Iterable<Element> {
@@ -6,8 +6,8 @@
6
6
  * nested scope boundaries and comment-based scopes.
7
7
  */
8
8
 
9
- import { commentScopeRegistry, getCommentScopeBoundary } from './scope'
10
- import { hydratedScopes } from './hydration-state'
9
+ import { commentScopeRegistry, getCommentScopeBoundary } from './scope.ts'
10
+ import { hydratedScopes } from './hydration-state.ts'
11
11
  import { BF_SCOPE, BF_SLOT, BF_PORTAL_OWNER, BF_PARENT_OWNED_PREFIX, BF_SCOPE_COMMENT_PREFIX } from '@barefootjs/shared'
12
12
 
13
13
  /** CSS attribute-value escape with a fallback for environments lacking CSS.escape. */
@@ -5,7 +5,7 @@
5
5
  * Used when renderItem returns HTMLElement (via createComponent).
6
6
  */
7
7
 
8
- import { hydratedScopes } from './hydration-state'
8
+ import { hydratedScopes } from './hydration-state.ts'
9
9
  import { BF_SCOPE, BF_SLOT, BF_COND, BF_KEY, BF_LOOP_START, BF_LOOP_END, loopStartMarker, loopEndMarker } from '@barefootjs/shared'
10
10
 
11
11
  /**
@@ -6,11 +6,11 @@
6
6
  */
7
7
 
8
8
  import { BF_SCOPE, BF_HOST, BF_PLACEHOLDER } from '@barefootjs/shared'
9
- import { hydratedScopes } from './hydration-state'
10
- import { setCurrentScope } from './context'
11
- import { createComponent } from './component'
12
- import { findSsrScopeBySlotIn, buildSlotInfo } from './slot-resolver'
13
- import type { InitFn } from './types'
9
+ import { hydratedScopes } from './hydration-state.ts'
10
+ import { setCurrentScope } from './context.ts'
11
+ import { createComponent } from './component.ts'
12
+ import { findSsrScopeBySlotIn, buildSlotInfo } from './slot-resolver.ts'
13
+ import type { InitFn } from './types.ts'
14
14
 
15
15
  /**
16
16
  * Component registry for parent-child communication.
@@ -7,12 +7,12 @@
7
7
  */
8
8
 
9
9
  import { BF_SCOPE, BF_SCOPE_COMMENT_PREFIX } from '@barefootjs/shared'
10
- import { setParentScopeId } from './component'
11
- import { hydratedScopes } from './hydration-state'
12
- import { getComponentInit } from './registry'
13
- import { commentScopeRegistry } from './scope'
14
- import { getTemplate, type TemplateFn } from './template'
15
- import type { ComponentDef, InitFn } from './types'
10
+ import { setParentScopeId } from './component.ts'
11
+ import { hydratedScopes } from './hydration-state.ts'
12
+ import { getComponentInit } from './registry.ts'
13
+ import { commentScopeRegistry } from './scope.ts'
14
+ import { getTemplate, type TemplateFn } from './template.ts'
15
+ import type { ComponentDef, InitFn } from './types.ts'
16
16
 
17
17
  /**
18
18
  * Render a component into a container element (CSR mode).
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { BF_SCOPE, BF_HOST, BF_AT } from '@barefootjs/shared'
14
- import { cssEscape } from './query'
14
+ import { cssEscape } from './query.ts'
15
15
 
16
16
  /** Resolve the host scope id for a slot lookup. Prefers the explicit
17
17
  * `anchorScope` because the immediate `parent` element may be a freshly-
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { classifyDOMProp } from '@barefootjs/shared'
10
- import { styleToCss } from './style'
10
+ import { styleToCss } from './style.ts'
11
11
 
12
12
  /**
13
13
  * Convert an object to an HTML attribute string.
@@ -14,7 +14,7 @@
14
14
  */
15
15
 
16
16
  import { BF_ASYNC, BF_ASYNC_RESOLVE } from '@barefootjs/shared'
17
- import { rehydrateAll } from './hydrate'
17
+ import { rehydrateAll } from './hydrate.ts'
18
18
 
19
19
  /**
20
20
  * Swap a streaming fallback placeholder with its resolved content.
package/src/shims.ts CHANGED
@@ -10,10 +10,10 @@
10
10
  * slipped past the `MISSING_USE_CLIENT` check. Either way, it's a bug.
11
11
  */
12
12
 
13
- import type { Context } from './context'
14
- import type { Portal, PortalChildren, PortalOptions } from './runtime/portal'
13
+ import type { Context } from './context.ts'
14
+ import type { Portal, PortalChildren, PortalOptions } from './runtime/portal.ts'
15
15
 
16
- export type { Portal, PortalChildren, PortalOptions, Renderable } from './runtime/portal'
16
+ export type { Portal, PortalChildren, PortalOptions, Renderable } from './runtime/portal.ts'
17
17
 
18
18
  function browserOnly(name: string): never {
19
19
  throw new Error(