@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.
- package/dist/advanced.cjs +13 -9
- package/dist/advanced.cjs.map +1 -1
- package/dist/advanced.d.cts +4 -4
- package/dist/advanced.d.ts +4 -4
- package/dist/advanced.js +8 -4
- package/dist/advanced.js.map +1 -1
- package/dist/{chunk-D2IWOO4X.js → chunk-4LCHQ7U4.js} +250 -99
- package/dist/chunk-4LCHQ7U4.js.map +1 -0
- package/dist/{chunk-LRFMCJY3.js → chunk-7YQK3XKY.js} +120 -27
- package/dist/chunk-7YQK3XKY.js.map +1 -0
- package/dist/{chunk-QB2UD62G.cjs → chunk-CEV6TO5U.cjs} +8 -8
- package/dist/{chunk-QB2UD62G.cjs.map → chunk-CEV6TO5U.cjs.map} +1 -1
- package/dist/{chunk-ZR435MDC.cjs → chunk-FSCBL7RI.cjs} +120 -27
- package/dist/chunk-FSCBL7RI.cjs.map +1 -0
- package/dist/{chunk-KNGHYGK4.cjs → chunk-HHDHQGJY.cjs} +17 -17
- package/dist/{chunk-KNGHYGK4.cjs.map → chunk-HHDHQGJY.cjs.map} +1 -1
- package/dist/{chunk-Z6M3HKLG.cjs → chunk-PRF4QG73.cjs} +400 -249
- package/dist/chunk-PRF4QG73.cjs.map +1 -0
- package/dist/{chunk-4NUHM77Z.js → chunk-TLDT76RV.js} +3 -3
- package/dist/{chunk-SLFAEVKJ.js → chunk-WRU3IZOA.js} +3 -3
- package/dist/{context-CTBE00S_.d.cts → context-BFbHf9nC.d.cts} +1 -1
- package/dist/{context-lkLhbkFJ.d.ts → context-C4vBQbb4.d.ts} +1 -1
- package/dist/{effect-BpSNEJJz.d.cts → effect-DAzpH7Mm.d.cts} +33 -1
- package/dist/{effect-BpSNEJJz.d.ts → effect-DAzpH7Mm.d.ts} +33 -1
- package/dist/index.cjs +42 -42
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.dev.js +206 -46
- package/dist/index.dev.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/internal.cjs +55 -41
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +3 -3
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +17 -3
- package/dist/internal.js.map +1 -1
- package/dist/loader.cjs +9 -9
- package/dist/loader.js +1 -1
- package/dist/{props-XTHYD19o.d.cts → props-84UJeWO8.d.cts} +1 -1
- package/dist/{props-x-HbI-jX.d.ts → props-BRhFK50f.d.ts} +1 -1
- package/dist/{scope-CdbGmsFf.d.ts → scope-D3DpsfoG.d.ts} +1 -1
- package/dist/{scope-DfcP9I-A.d.cts → scope-DlCBL1Ft.d.cts} +1 -1
- package/package.json +1 -1
- package/src/advanced.ts +1 -1
- package/src/binding.ts +229 -101
- package/src/constants.ts +1 -1
- package/src/cycle-guard.ts +4 -3
- package/src/dom.ts +15 -4
- package/src/hooks.ts +1 -1
- package/src/internal.ts +7 -0
- package/src/lifecycle.ts +1 -1
- package/src/props.ts +60 -1
- package/src/signal.ts +60 -10
- package/src/store.ts +131 -18
- package/src/transition.ts +46 -9
- package/dist/chunk-D2IWOO4X.js.map +0 -1
- package/dist/chunk-LRFMCJY3.js.map +0 -1
- package/dist/chunk-Z6M3HKLG.cjs.map +0 -1
- package/dist/chunk-ZR435MDC.cjs.map +0 -1
- package/dist/jsx-dev-runtime.d.cts +0 -671
- package/dist/jsx-dev-runtime.d.ts +0 -671
- /package/dist/{chunk-4NUHM77Z.js.map → chunk-TLDT76RV.js.map} +0 -0
- /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 {
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
80
|
-
const prev =
|
|
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 =
|
|
84
|
-
nodes =
|
|
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
|
-
|
|
87
|
+
_chunkPRF4QG73cjs.insertNodesBefore.call(void 0, parentNode, nodes, marker);
|
|
88
88
|
}
|
|
89
89
|
} catch (err) {
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
107
|
-
|
|
106
|
+
_chunkFSCBL7RIcjs.popRoot.call(void 0, prev);
|
|
107
|
+
_chunkFSCBL7RIcjs.flushOnMount.call(void 0, root);
|
|
108
108
|
cleanup = () => {
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
158
|
-
const pending =
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
176
|
-
const prev =
|
|
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
|
-
|
|
181
|
+
_chunkFSCBL7RIcjs.__fictPushSSRBoundary.call(void 0, streamBoundaryId);
|
|
182
182
|
boundaryPushed = true;
|
|
183
183
|
}
|
|
184
|
-
const output =
|
|
185
|
-
nodes =
|
|
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
|
-
|
|
189
|
-
|
|
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
|
-
|
|
194
|
+
_chunkPRF4QG73cjs.insertNodesBefore.call(void 0, parentNode, nodes, endMarker);
|
|
195
195
|
}
|
|
196
196
|
} catch (err) {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
if (!
|
|
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
|
-
|
|
205
|
+
_chunkFSCBL7RIcjs.__fictPopSSRBoundary.call(void 0, _nullishCoalesce(streamBoundaryId, () => ( void 0)));
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
_chunkFSCBL7RIcjs.popRoot.call(void 0, prev);
|
|
209
|
+
_chunkFSCBL7RIcjs.flushOnMount.call(void 0, root);
|
|
210
210
|
cleanup = () => {
|
|
211
|
-
|
|
212
|
-
|
|
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
|
-
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
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-
|
|
2
|
-
import { R as RefObject, B as BaseProps, F as FictNode, S as SuspenseToken } from './effect-
|
|
3
|
-
export {
|
|
4
|
-
export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, h as hasContext, u as useContext } from './context-
|
|
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-
|
|
2
|
-
import { R as RefObject, B as BaseProps, F as FictNode, S as SuspenseToken } from './effect-
|
|
3
|
-
export {
|
|
4
|
-
export { C as Context, F as FictDevtoolsHook, P as ProviderProps, c as createContext, h as hasContext, u as useContext } from './context-
|
|
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,
|