@fictjs/runtime 0.5.2 → 0.7.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.
Files changed (63) hide show
  1. package/dist/advanced.cjs +13 -9
  2. package/dist/advanced.cjs.map +1 -1
  3. package/dist/advanced.d.cts +4 -4
  4. package/dist/advanced.d.ts +4 -4
  5. package/dist/advanced.js +8 -4
  6. package/dist/advanced.js.map +1 -1
  7. package/dist/{chunk-D2IWOO4X.js → chunk-4LCHQ7U4.js} +250 -99
  8. package/dist/chunk-4LCHQ7U4.js.map +1 -0
  9. package/dist/{chunk-LRFMCJY3.js → chunk-7YQK3XKY.js} +120 -27
  10. package/dist/chunk-7YQK3XKY.js.map +1 -0
  11. package/dist/{chunk-QB2UD62G.cjs → chunk-CEV6TO5U.cjs} +8 -8
  12. package/dist/{chunk-QB2UD62G.cjs.map → chunk-CEV6TO5U.cjs.map} +1 -1
  13. package/dist/{chunk-ZR435MDC.cjs → chunk-FSCBL7RI.cjs} +120 -27
  14. package/dist/chunk-FSCBL7RI.cjs.map +1 -0
  15. package/dist/{chunk-KNGHYGK4.cjs → chunk-HHDHQGJY.cjs} +17 -17
  16. package/dist/{chunk-KNGHYGK4.cjs.map → chunk-HHDHQGJY.cjs.map} +1 -1
  17. package/dist/{chunk-Z6M3HKLG.cjs → chunk-PRF4QG73.cjs} +400 -249
  18. package/dist/chunk-PRF4QG73.cjs.map +1 -0
  19. package/dist/{chunk-4NUHM77Z.js → chunk-TLDT76RV.js} +3 -3
  20. package/dist/{chunk-SLFAEVKJ.js → chunk-WRU3IZOA.js} +3 -3
  21. package/dist/{context-CTBE00S_.d.cts → context-BFbHf9nC.d.cts} +1 -1
  22. package/dist/{context-lkLhbkFJ.d.ts → context-C4vBQbb4.d.ts} +1 -1
  23. package/dist/{effect-BpSNEJJz.d.cts → effect-DAzpH7Mm.d.cts} +33 -1
  24. package/dist/{effect-BpSNEJJz.d.ts → effect-DAzpH7Mm.d.ts} +33 -1
  25. package/dist/index.cjs +42 -42
  26. package/dist/index.d.cts +5 -5
  27. package/dist/index.d.ts +5 -5
  28. package/dist/index.dev.js +206 -46
  29. package/dist/index.dev.js.map +1 -1
  30. package/dist/index.js +3 -3
  31. package/dist/internal.cjs +55 -41
  32. package/dist/internal.cjs.map +1 -1
  33. package/dist/internal.d.cts +3 -3
  34. package/dist/internal.d.ts +3 -3
  35. package/dist/internal.js +17 -3
  36. package/dist/internal.js.map +1 -1
  37. package/dist/loader.cjs +9 -9
  38. package/dist/loader.js +1 -1
  39. package/dist/{props-XTHYD19o.d.cts → props-84UJeWO8.d.cts} +1 -1
  40. package/dist/{props-x-HbI-jX.d.ts → props-BRhFK50f.d.ts} +1 -1
  41. package/dist/{scope-CdbGmsFf.d.ts → scope-D3DpsfoG.d.ts} +1 -1
  42. package/dist/{scope-DfcP9I-A.d.cts → scope-DlCBL1Ft.d.cts} +1 -1
  43. package/package.json +1 -1
  44. package/src/advanced.ts +1 -1
  45. package/src/binding.ts +229 -101
  46. package/src/constants.ts +1 -1
  47. package/src/cycle-guard.ts +4 -3
  48. package/src/dom.ts +15 -4
  49. package/src/hooks.ts +1 -1
  50. package/src/internal.ts +7 -0
  51. package/src/lifecycle.ts +1 -1
  52. package/src/props.ts +60 -1
  53. package/src/signal.ts +60 -10
  54. package/src/store.ts +131 -18
  55. package/src/transition.ts +46 -9
  56. package/dist/chunk-D2IWOO4X.js.map +0 -1
  57. package/dist/chunk-LRFMCJY3.js.map +0 -1
  58. package/dist/chunk-Z6M3HKLG.cjs.map +0 -1
  59. package/dist/chunk-ZR435MDC.cjs.map +0 -1
  60. package/dist/jsx-dev-runtime.d.cts +0 -671
  61. package/dist/jsx-dev-runtime.d.ts +0 -671
  62. /package/dist/{chunk-4NUHM77Z.js.map → chunk-TLDT76RV.js.map} +0 -0
  63. /package/dist/{chunk-SLFAEVKJ.js.map → chunk-WRU3IZOA.js.map} +0 -0
@@ -113,6 +113,17 @@ interface BindingHandle {
113
113
  * ```
114
114
  */
115
115
  declare function isReactive(value: unknown): value is () => unknown;
116
+ /**
117
+ * Mark a function as non-reactive so runtime bindings won't treat it as a getter.
118
+ * Useful for callback props / function-as-child patterns that must remain callbacks.
119
+ */
120
+ declare function nonReactive<T extends (...args: unknown[]) => unknown>(fn: T): T;
121
+ /**
122
+ * Mark a zero-arg function as an explicit reactive getter.
123
+ * Useful when authoring runtime code manually and you need function values
124
+ * to participate in reactive binding without relying on heuristics.
125
+ */
126
+ declare function reactive<T>(fn: () => T): () => T;
116
127
  /**
117
128
  * Unwrap a potentially reactive value to get the actual value
118
129
  */
@@ -141,6 +152,11 @@ declare function createTextBinding(value: MaybeReactive<unknown>): Text;
141
152
  * This is a convenience function for binding to existing DOM nodes.
142
153
  */
143
154
  declare function bindText(textNode: Text, getValue: () => unknown): Cleanup;
155
+ /**
156
+ * Patch text node content with per-node value caching.
157
+ * This is the low-level primitive used by compiled render effects.
158
+ */
159
+ declare function setText(textNode: Text, value: unknown): void;
144
160
  /** Attribute setter function type */
145
161
  type AttributeSetter = (el: Element, key: string, value: unknown) => void;
146
162
  /**
@@ -160,10 +176,18 @@ declare function createAttributeBinding(el: Element, key: string, value: MaybeRe
160
176
  * Bind a reactive value to an element's attribute.
161
177
  */
162
178
  declare function bindAttribute(el: Element, key: string, getValue: () => unknown): Cleanup;
179
+ /**
180
+ * Patch attribute value with per-node, per-attribute cache.
181
+ */
182
+ declare function setAttr(el: Element, key: string, value: unknown): void;
163
183
  /**
164
184
  * Bind a reactive value to an element's property.
165
185
  */
166
186
  declare function bindProperty(el: Element, key: string, getValue: () => unknown): Cleanup;
187
+ /**
188
+ * Patch DOM property with per-node, per-property cache.
189
+ */
190
+ declare function setProp(el: Element, key: string, value: unknown): void;
167
191
  /**
168
192
  * Apply styles to an element, supporting reactive style objects/strings.
169
193
  */
@@ -172,6 +196,10 @@ declare function createStyleBinding(el: Element, value: MaybeReactive<string | R
172
196
  * Bind a reactive style value to an existing element.
173
197
  */
174
198
  declare function bindStyle(el: Element, getValue: () => string | Record<string, string | number> | null | undefined): Cleanup;
199
+ /**
200
+ * Patch style value with cached previous style payload.
201
+ */
202
+ declare function setStyle(el: Element, value: string | Record<string, string | number> | null | undefined): void;
175
203
  /**
176
204
  * Apply class to an element, supporting reactive class values.
177
205
  */
@@ -180,6 +208,10 @@ declare function createClassBinding(el: Element, value: MaybeReactive<string | R
180
208
  * Bind a reactive class value to an existing element.
181
209
  */
182
210
  declare function bindClass(el: Element, getValue: () => string | Record<string, boolean> | null | undefined): Cleanup;
211
+ /**
212
+ * Patch class value using per-node cached class state.
213
+ */
214
+ declare function setClass(el: Element, value: string | Record<string, boolean> | null | undefined): void;
183
215
  /**
184
216
  * Exported classList function for direct use (compatible with dom-expressions)
185
217
  */
@@ -387,4 +419,4 @@ type Effect = () => void | Cleanup;
387
419
  declare function createEffect(fn: Effect): () => void;
388
420
  declare function createRenderEffect(fn: Effect): () => void;
389
421
 
390
- export { bindStyle as A, type BaseProps as B, type Cleanup as C, type DOMElement as D, type Effect as E, type FictNode as F, bindClass as G, bindEvent as H, callEventHandler as I, bindProperty as J, bindRef as K, insert as L, insertBetween as M, createConditional as N, spread as O, type PropsWithChildren as P, assign as Q, type RefObject as R, type SuspenseToken as S, classList as T, delegateEvents as U, clearDelegatedEvents as V, addEventListener as W, type MaybeReactive as X, type BindingHandle as Y, type CreateElementFn as Z, type AttributeSetter as _, createChildBinding as a, createAttributeBinding as b, createTextBinding as c, createStyleBinding as d, createClassBinding as e, createShow as f, createRenderEffect as g, createEffect as h, isReactive as i, onDestroy as j, onCleanup as k, createRoot as l, createPortal as m, type FictVNode as n, onMount as o, type Component as p, type Ref as q, registerErrorHandler as r, type RefCallback as s, type StyleProp as t, unwrap as u, type ClassProp as v, type EventHandler as w, type ErrorInfo as x, bindText as y, bindAttribute as z };
422
+ export { delegateEvents as $, bindText as A, type BaseProps as B, type Cleanup as C, type DOMElement as D, type Effect as E, type FictNode as F, bindAttribute as G, bindStyle as H, bindClass as I, setText as J, setAttr as K, setProp as L, setStyle as M, setClass as N, bindEvent as O, type PropsWithChildren as P, callEventHandler as Q, type RefObject as R, type SuspenseToken as S, bindProperty as T, bindRef as U, insert as V, insertBetween as W, createConditional as X, spread as Y, assign as Z, classList as _, createChildBinding as a, clearDelegatedEvents as a0, addEventListener as a1, type MaybeReactive as a2, type BindingHandle as a3, type CreateElementFn as a4, type AttributeSetter as a5, createAttributeBinding as b, createTextBinding as c, createStyleBinding as d, createClassBinding as e, createShow as f, registerErrorHandler as g, createRenderEffect as h, isReactive as i, createEffect as j, onDestroy as k, onCleanup as l, createRoot as m, nonReactive as n, onMount as o, createPortal as p, type FictVNode as q, reactive as r, type Component as s, type Ref as t, unwrap as u, type RefCallback as v, type StyleProp as w, type ClassProp as x, type EventHandler as y, type ErrorInfo as z };
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkKNGHYGK4cjs = require('./chunk-KNGHYGK4.cjs');
5
+ var _chunkHHDHQGJYcjs = require('./chunk-HHDHQGJY.cjs');
6
6
 
7
7
 
8
8
 
@@ -19,7 +19,7 @@ var _chunkKNGHYGK4cjs = require('./chunk-KNGHYGK4.cjs');
19
19
 
20
20
 
21
21
 
22
- var _chunkZ6M3HKLGcjs = require('./chunk-Z6M3HKLG.cjs');
22
+ var _chunkPRF4QG73cjs = require('./chunk-PRF4QG73.cjs');
23
23
 
24
24
 
25
25
 
@@ -40,7 +40,7 @@ var _chunkZ6M3HKLGcjs = require('./chunk-Z6M3HKLG.cjs');
40
40
 
41
41
 
42
42
 
43
- var _chunkZR435MDCcjs = require('./chunk-ZR435MDC.cjs');
43
+ var _chunkFSCBL7RIcjs = require('./chunk-FSCBL7RI.cjs');
44
44
 
45
45
  // src/ref.ts
46
46
  function createRef() {
@@ -52,7 +52,7 @@ function ErrorBoundary(props) {
52
52
  const fragment = document.createDocumentFragment();
53
53
  const marker = document.createComment("fict:error-boundary");
54
54
  fragment.appendChild(marker);
55
- const hostRoot = _chunkZR435MDCcjs.getCurrentRoot.call(void 0, );
55
+ const hostRoot = _chunkFSCBL7RIcjs.getCurrentRoot.call(void 0, );
56
56
  let cleanup;
57
57
  let activeNodes = [];
58
58
  let renderingFallback = false;
@@ -70,25 +70,25 @@ function ErrorBoundary(props) {
70
70
  cleanup = void 0;
71
71
  }
72
72
  if (activeNodes.length) {
73
- _chunkZ6M3HKLGcjs.removeNodes.call(void 0, activeNodes);
73
+ _chunkPRF4QG73cjs.removeNodes.call(void 0, activeNodes);
74
74
  activeNodes = [];
75
75
  }
76
76
  if (value == null || value === false) {
77
77
  return;
78
78
  }
79
- const root = _chunkZR435MDCcjs.createRootContext.call(void 0, hostRoot);
80
- const prev = _chunkZR435MDCcjs.pushRoot.call(void 0, root);
79
+ const root = _chunkFSCBL7RIcjs.createRootContext.call(void 0, hostRoot);
80
+ const prev = _chunkFSCBL7RIcjs.pushRoot.call(void 0, root);
81
81
  let nodes = [];
82
82
  try {
83
- const output = _chunkZ6M3HKLGcjs.createElement.call(void 0, value);
84
- nodes = _chunkZ6M3HKLGcjs.toNodeArray.call(void 0, output);
83
+ const output = _chunkPRF4QG73cjs.createElement.call(void 0, value);
84
+ nodes = _chunkPRF4QG73cjs.toNodeArray.call(void 0, output);
85
85
  const parentNode = marker.parentNode;
86
86
  if (parentNode) {
87
- _chunkZ6M3HKLGcjs.insertNodesBefore.call(void 0, parentNode, nodes, marker);
87
+ _chunkPRF4QG73cjs.insertNodesBefore.call(void 0, parentNode, nodes, marker);
88
88
  }
89
89
  } catch (err) {
90
- _chunkZR435MDCcjs.popRoot.call(void 0, prev);
91
- _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
90
+ _chunkFSCBL7RIcjs.popRoot.call(void 0, prev);
91
+ _chunkFSCBL7RIcjs.destroyRoot.call(void 0, root);
92
92
  if (renderingFallback) {
93
93
  throw err;
94
94
  }
@@ -103,11 +103,11 @@ function ErrorBoundary(props) {
103
103
  }
104
104
  return;
105
105
  }
106
- _chunkZR435MDCcjs.popRoot.call(void 0, prev);
107
- _chunkZR435MDCcjs.flushOnMount.call(void 0, root);
106
+ _chunkFSCBL7RIcjs.popRoot.call(void 0, prev);
107
+ _chunkFSCBL7RIcjs.flushOnMount.call(void 0, root);
108
108
  cleanup = () => {
109
- _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
110
- _chunkZ6M3HKLGcjs.removeNodes.call(void 0, nodes);
109
+ _chunkFSCBL7RIcjs.destroyRoot.call(void 0, root);
110
+ _chunkPRF4QG73cjs.removeNodes.call(void 0, nodes);
111
111
  };
112
112
  activeNodes = nodes;
113
113
  };
@@ -116,7 +116,7 @@ function ErrorBoundary(props) {
116
116
  renderValue(toView(null));
117
117
  };
118
118
  renderValue(_nullishCoalesce(props.children, () => ( null)));
119
- _chunkZR435MDCcjs.registerErrorHandler.call(void 0, (err) => {
119
+ _chunkFSCBL7RIcjs.registerErrorHandler.call(void 0, (err) => {
120
120
  renderValue(toView(err));
121
121
  _optionalChain([props, 'access', _5 => _5.onError, 'optionalCall', _6 => _6(err)]);
122
122
  return true;
@@ -125,7 +125,7 @@ function ErrorBoundary(props) {
125
125
  const isGetter = typeof props.resetKeys === "function" && props.resetKeys.length === 0;
126
126
  const getter = isGetter ? props.resetKeys : void 0;
127
127
  let prev = isGetter ? getter() : props.resetKeys;
128
- _chunkZR435MDCcjs.createEffect.call(void 0, () => {
128
+ _chunkFSCBL7RIcjs.createEffect.call(void 0, () => {
129
129
  const next = getter ? getter() : props.resetKeys;
130
130
  if (prev !== next) {
131
131
  prev = next;
@@ -154,11 +154,11 @@ function createSuspenseToken() {
154
154
  }
155
155
  var isThenable = (value) => typeof value === "object" && value !== null && typeof value.then === "function";
156
156
  function Suspense(props) {
157
- const streamHooks = _chunkZR435MDCcjs.__fictGetSSRStreamHooks.call(void 0, );
158
- const pending = _chunkZR435MDCcjs.signal.call(void 0, 0);
157
+ const streamHooks = _chunkFSCBL7RIcjs.__fictGetSSRStreamHooks.call(void 0, );
158
+ const pending = _chunkFSCBL7RIcjs.signal.call(void 0, 0);
159
159
  let resolvedOnce = false;
160
160
  let epoch = 0;
161
- const hostRoot = _chunkZR435MDCcjs.getCurrentRoot.call(void 0, );
161
+ const hostRoot = _chunkFSCBL7RIcjs.getCurrentRoot.call(void 0, );
162
162
  const toFallback = (err) => typeof props.fallback === "function" ? props.fallback(err) : props.fallback;
163
163
  const renderView = (view) => {
164
164
  if (cleanup) {
@@ -166,50 +166,50 @@ function Suspense(props) {
166
166
  cleanup = void 0;
167
167
  }
168
168
  if (activeNodes.length) {
169
- _chunkZ6M3HKLGcjs.removeNodes.call(void 0, activeNodes);
169
+ _chunkPRF4QG73cjs.removeNodes.call(void 0, activeNodes);
170
170
  activeNodes = [];
171
171
  }
172
172
  if (view == null || view === false) {
173
173
  return;
174
174
  }
175
- const root = _chunkZR435MDCcjs.createRootContext.call(void 0, hostRoot);
176
- const prev = _chunkZR435MDCcjs.pushRoot.call(void 0, root);
175
+ const root = _chunkFSCBL7RIcjs.createRootContext.call(void 0, hostRoot);
176
+ const prev = _chunkFSCBL7RIcjs.pushRoot.call(void 0, root);
177
177
  let nodes = [];
178
178
  let boundaryPushed = false;
179
179
  try {
180
180
  if (streamBoundaryId) {
181
- _chunkZR435MDCcjs.__fictPushSSRBoundary.call(void 0, streamBoundaryId);
181
+ _chunkFSCBL7RIcjs.__fictPushSSRBoundary.call(void 0, streamBoundaryId);
182
182
  boundaryPushed = true;
183
183
  }
184
- const output = _chunkZ6M3HKLGcjs.createElement.call(void 0, view);
185
- nodes = _chunkZ6M3HKLGcjs.toNodeArray.call(void 0, output);
184
+ const output = _chunkPRF4QG73cjs.createElement.call(void 0, view);
185
+ nodes = _chunkPRF4QG73cjs.toNodeArray.call(void 0, output);
186
186
  const suspendedAttempt = root.suspended || nodes.length > 0 && nodes.every((node) => node instanceof Comment && node.data === "fict:suspend");
187
187
  if (suspendedAttempt) {
188
- _chunkZR435MDCcjs.popRoot.call(void 0, prev);
189
- _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
188
+ _chunkFSCBL7RIcjs.popRoot.call(void 0, prev);
189
+ _chunkFSCBL7RIcjs.destroyRoot.call(void 0, root);
190
190
  return;
191
191
  }
192
192
  const parentNode = endMarker.parentNode;
193
193
  if (parentNode) {
194
- _chunkZ6M3HKLGcjs.insertNodesBefore.call(void 0, parentNode, nodes, endMarker);
194
+ _chunkPRF4QG73cjs.insertNodesBefore.call(void 0, parentNode, nodes, endMarker);
195
195
  }
196
196
  } catch (err) {
197
- _chunkZR435MDCcjs.popRoot.call(void 0, prev);
198
- _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
199
- if (!_chunkZR435MDCcjs.handleError.call(void 0, err, { source: "render" }, hostRoot)) {
197
+ _chunkFSCBL7RIcjs.popRoot.call(void 0, prev);
198
+ _chunkFSCBL7RIcjs.destroyRoot.call(void 0, root);
199
+ if (!_chunkFSCBL7RIcjs.handleError.call(void 0, err, { source: "render" }, hostRoot)) {
200
200
  throw err;
201
201
  }
202
202
  return;
203
203
  } finally {
204
204
  if (boundaryPushed) {
205
- _chunkZR435MDCcjs.__fictPopSSRBoundary.call(void 0, _nullishCoalesce(streamBoundaryId, () => ( void 0)));
205
+ _chunkFSCBL7RIcjs.__fictPopSSRBoundary.call(void 0, _nullishCoalesce(streamBoundaryId, () => ( void 0)));
206
206
  }
207
207
  }
208
- _chunkZR435MDCcjs.popRoot.call(void 0, prev);
209
- _chunkZR435MDCcjs.flushOnMount.call(void 0, root);
208
+ _chunkFSCBL7RIcjs.popRoot.call(void 0, prev);
209
+ _chunkFSCBL7RIcjs.flushOnMount.call(void 0, root);
210
210
  cleanup = () => {
211
- _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
212
- _chunkZ6M3HKLGcjs.removeNodes.call(void 0, nodes);
211
+ _chunkFSCBL7RIcjs.destroyRoot.call(void 0, root);
212
+ _chunkPRF4QG73cjs.removeNodes.call(void 0, nodes);
213
213
  };
214
214
  activeNodes = nodes;
215
215
  };
@@ -235,7 +235,7 @@ function Suspense(props) {
235
235
  _optionalChain([props, 'access', _8 => _8.onResolve, 'optionalCall', _9 => _9()]);
236
236
  }
237
237
  };
238
- _chunkZR435MDCcjs.registerSuspenseHandler.call(void 0, (token) => {
238
+ _chunkFSCBL7RIcjs.registerSuspenseHandler.call(void 0, (token) => {
239
239
  const tokenEpoch = epoch;
240
240
  if (!streamPending && streamBoundaryId && _optionalChain([streamHooks, 'optionalAccess', _10 => _10.boundaryPending])) {
241
241
  streamPending = true;
@@ -273,7 +273,7 @@ function Suspense(props) {
273
273
  } catch (callbackError) {
274
274
  rejectionError = callbackError;
275
275
  }
276
- const handled = _chunkZR435MDCcjs.handleError.call(void 0, rejectionError, { source: "render" }, hostRoot);
276
+ const handled = _chunkFSCBL7RIcjs.handleError.call(void 0, rejectionError, { source: "render" }, hostRoot);
277
277
  if (!handled) {
278
278
  if (_optionalChain([streamHooks, 'optionalAccess', _14 => _14.onError])) {
279
279
  streamHooks.onError(rejectionError, _nullishCoalesce(streamBoundaryId, () => ( void 0)));
@@ -296,7 +296,7 @@ function Suspense(props) {
296
296
  const isGetter = typeof props.resetKeys === "function" && props.resetKeys.length === 0;
297
297
  const getter = isGetter ? props.resetKeys : void 0;
298
298
  let prev = isGetter ? getter() : props.resetKeys;
299
- _chunkZR435MDCcjs.createEffect.call(void 0, () => {
299
+ _chunkFSCBL7RIcjs.createEffect.call(void 0, () => {
300
300
  const next = getter ? getter() : props.resetKeys;
301
301
  if (prev !== next) {
302
302
  prev = next;
@@ -338,5 +338,5 @@ function Suspense(props) {
338
338
 
339
339
 
340
340
 
341
- exports.ErrorBoundary = ErrorBoundary; exports.Fragment = _chunkZ6M3HKLGcjs.Fragment; exports.Suspense = Suspense; exports.batch = _chunkZ6M3HKLGcjs.batch; exports.createContext = _chunkKNGHYGK4cjs.createContext; exports.createEffect = _chunkZR435MDCcjs.createEffect; exports.createElement = _chunkZ6M3HKLGcjs.createElement; exports.createMemo = _chunkZR435MDCcjs.createMemo; exports.createPortal = _chunkZ6M3HKLGcjs.createPortal; exports.createRef = createRef; exports.createRoot = _chunkZR435MDCcjs.createRoot; exports.createSuspenseToken = createSuspenseToken; exports.hasContext = _chunkKNGHYGK4cjs.hasContext; exports.keyed = _chunkZ6M3HKLGcjs.keyed; exports.mergeProps = _chunkZ6M3HKLGcjs.mergeProps; exports.onCleanup = _chunkZR435MDCcjs.onCleanup; exports.onDestroy = _chunkZR435MDCcjs.onDestroy; exports.onMount = _chunkZR435MDCcjs.onMount; exports.prop = _chunkZ6M3HKLGcjs.prop; exports.render = _chunkZ6M3HKLGcjs.render; exports.startTransition = _chunkZ6M3HKLGcjs.startTransition; exports.untrack = _chunkZ6M3HKLGcjs.untrack; exports.useContext = _chunkKNGHYGK4cjs.useContext; exports.useDeferredValue = _chunkZ6M3HKLGcjs.useDeferredValue; exports.useTransition = _chunkZ6M3HKLGcjs.useTransition;
341
+ exports.ErrorBoundary = ErrorBoundary; exports.Fragment = _chunkPRF4QG73cjs.Fragment; exports.Suspense = Suspense; exports.batch = _chunkPRF4QG73cjs.batch; exports.createContext = _chunkHHDHQGJYcjs.createContext; exports.createEffect = _chunkFSCBL7RIcjs.createEffect; exports.createElement = _chunkPRF4QG73cjs.createElement; exports.createMemo = _chunkFSCBL7RIcjs.createMemo; exports.createPortal = _chunkPRF4QG73cjs.createPortal; exports.createRef = createRef; exports.createRoot = _chunkFSCBL7RIcjs.createRoot; exports.createSuspenseToken = createSuspenseToken; exports.hasContext = _chunkHHDHQGJYcjs.hasContext; exports.keyed = _chunkPRF4QG73cjs.keyed; exports.mergeProps = _chunkPRF4QG73cjs.mergeProps; exports.onCleanup = _chunkFSCBL7RIcjs.onCleanup; exports.onDestroy = _chunkFSCBL7RIcjs.onDestroy; exports.onMount = _chunkFSCBL7RIcjs.onMount; exports.prop = _chunkPRF4QG73cjs.prop; exports.render = _chunkPRF4QG73cjs.render; exports.startTransition = _chunkPRF4QG73cjs.startTransition; exports.untrack = _chunkPRF4QG73cjs.untrack; exports.useContext = _chunkHHDHQGJYcjs.useContext; exports.useDeferredValue = _chunkPRF4QG73cjs.useDeferredValue; exports.useTransition = _chunkPRF4QG73cjs.useTransition;
342
342
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- export { F as Fragment, J as JSX, M as Memo, a as createElement, c as createMemo, k as keyed, m as mergeProps, p as prop, r as render } from './props-XTHYD19o.cjs';
2
- import { R as RefObject, B as BaseProps, F as FictNode, S as SuspenseToken } from './effect-BpSNEJJz.cjs';
3
- export { v as ClassProp, C as Cleanup, p as Component, D as DOMElement, E as Effect, x as ErrorInfo, w as EventHandler, n as FictVNode, P as PropsWithChildren, q as Ref, s as RefCallback, t as StyleProp, h as createEffect, m as createPortal, l as createRoot, k as onCleanup, j as onDestroy, o as onMount } from './effect-BpSNEJJz.cjs';
4
- export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, h as hasContext, u as useContext } from './context-CTBE00S_.cjs';
1
+ export { F as Fragment, J as JSX, M as Memo, a as createElement, c as createMemo, k as keyed, m as mergeProps, p as prop, r as render } from './props-84UJeWO8.cjs';
2
+ import { R as RefObject, B as BaseProps, F as FictNode, S as SuspenseToken } from './effect-DAzpH7Mm.cjs';
3
+ export { x as ClassProp, C as Cleanup, s as Component, D as DOMElement, E as Effect, z as ErrorInfo, y as EventHandler, q as FictVNode, P as PropsWithChildren, t as Ref, v as RefCallback, w as StyleProp, j as createEffect, p as createPortal, m as createRoot, l as onCleanup, k as onDestroy, o as onMount } from './effect-DAzpH7Mm.cjs';
4
+ export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, h as hasContext, u as useContext } from './context-BFbHf9nC.cjs';
5
5
  import './signal-C4ISF17w.cjs';
6
6
 
7
7
  /**
@@ -75,7 +75,7 @@ declare function startTransition(fn: () => void): void;
75
75
  * }
76
76
  * ```
77
77
  */
78
- declare function useTransition(): [() => boolean, (fn: () => void) => void];
78
+ declare function useTransition(): [() => boolean, (fn: () => void | PromiseLike<unknown>) => void];
79
79
  /**
80
80
  * Creates a deferred version of a value that updates with low priority.
81
81
  * The returned accessor will lag behind the source value during rapid updates,
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { F as Fragment, J as JSX, M as Memo, a as createElement, c as createMemo, k as keyed, m as mergeProps, p as prop, r as render } from './props-x-HbI-jX.js';
2
- import { R as RefObject, B as BaseProps, F as FictNode, S as SuspenseToken } from './effect-BpSNEJJz.js';
3
- export { v as ClassProp, C as Cleanup, p as Component, D as DOMElement, E as Effect, x as ErrorInfo, w as EventHandler, n as FictVNode, P as PropsWithChildren, q as Ref, s as RefCallback, t as StyleProp, h as createEffect, m as createPortal, l as createRoot, k as onCleanup, j as onDestroy, o as onMount } from './effect-BpSNEJJz.js';
4
- export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, h as hasContext, u as useContext } from './context-lkLhbkFJ.js';
1
+ export { F as Fragment, J as JSX, M as Memo, a as createElement, c as createMemo, k as keyed, m as mergeProps, p as prop, r as render } from './props-BRhFK50f.js';
2
+ import { R as RefObject, B as BaseProps, F as FictNode, S as SuspenseToken } from './effect-DAzpH7Mm.js';
3
+ export { x as ClassProp, C as Cleanup, s as Component, D as DOMElement, E as Effect, z as ErrorInfo, y as EventHandler, q as FictVNode, P as PropsWithChildren, t as Ref, v as RefCallback, w as StyleProp, j as createEffect, p as createPortal, m as createRoot, l as onCleanup, k as onDestroy, o as onMount } from './effect-DAzpH7Mm.js';
4
+ export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, h as hasContext, u as useContext } from './context-C4vBQbb4.js';
5
5
  import './signal-C4ISF17w.js';
6
6
 
7
7
  /**
@@ -75,7 +75,7 @@ declare function startTransition(fn: () => void): void;
75
75
  * }
76
76
  * ```
77
77
  */
78
- declare function useTransition(): [() => boolean, (fn: () => void) => void];
78
+ declare function useTransition(): [() => boolean, (fn: () => void | PromiseLike<unknown>) => void];
79
79
  /**
80
80
  * Creates a deferred version of a value that updates with low priority.
81
81
  * The returned accessor will lag behind the source value during rapid updates,