sibujs 3.2.2 → 3.3.1
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/browser.cjs +217 -27
- package/dist/browser.js +5 -5
- package/dist/build.cjs +236 -105
- package/dist/build.js +14 -14
- package/dist/cdn.global.js +7 -7
- package/dist/{chunk-5N74TKLD.js → chunk-37BUKSLH.js} +1 -1
- package/dist/{chunk-BGNLPNGV.js → chunk-4UUMSLSL.js} +4 -4
- package/dist/{chunk-2UPRY23K.js → chunk-5VGSK6D2.js} +1 -1
- package/dist/{chunk-OYLPZO4N.js → chunk-6LTFHJQG.js} +4 -4
- package/dist/{chunk-VOCE4NNK.js → chunk-AMIKDMLP.js} +5 -5
- package/dist/{chunk-LMLD24FC.js → chunk-COY6PUD2.js} +7 -1
- package/dist/{chunk-YFDGQWDA.js → chunk-F7FXQ3QS.js} +1 -1
- package/dist/{chunk-V2MTG5FT.js → chunk-IKLYI3RF.js} +33 -16
- package/dist/{chunk-HMJFCBRR.js → chunk-L3GAGWCC.js} +10 -1
- package/dist/{chunk-X67UYC74.js → chunk-LU2MQXQQ.js} +14 -24
- package/dist/{chunk-4JCAUOLN.js → chunk-M5KBNOSJ.js} +22 -12
- package/dist/{chunk-FDY42FIU.js → chunk-MHBCEJQO.js} +2 -2
- package/dist/{chunk-RLUJL2MV.js → chunk-NHKQKKZU.js} +6 -7
- package/dist/{chunk-HXMS4SNP.js → chunk-R3QEDXFS.js} +2 -2
- package/dist/{chunk-NPIEEKPT.js → chunk-RYMOSG5B.js} +6 -6
- package/dist/{chunk-H6PCHJZQ.js → chunk-SLMFA3ZZ.js} +11 -3
- package/dist/{chunk-Z2FWAE4B.js → chunk-TEFZT5PJ.js} +84 -16
- package/dist/{chunk-7XDYVJLE.js → chunk-ULLTNDRA.js} +6 -6
- package/dist/{chunk-GOUM4JCT.js → chunk-VOVVTOEA.js} +2 -2
- package/dist/{chunk-FOI23UJL.js → chunk-WL7BIR6O.js} +1 -1
- package/dist/{chunk-JYXOEYI4.js → chunk-WW6DAGGR.js} +5 -5
- package/dist/{chunk-C427DVQF.js → chunk-WZG2SZOT.js} +22 -5
- package/dist/{chunk-NFYWLRUO.js → chunk-XH2RTYEQ.js} +3 -3
- package/dist/{chunk-2C4E3HBM.js → chunk-Z37APKBV.js} +5 -5
- package/dist/{chunk-RDRSWYNP.js → chunk-ZUVLC7TM.js} +1 -1
- package/dist/data.cjs +168 -24
- package/dist/data.js +8 -8
- package/dist/devtools.cjs +252 -32
- package/dist/devtools.js +7 -7
- package/dist/ecosystem.cjs +205 -64
- package/dist/ecosystem.js +10 -10
- package/dist/extras.cjs +245 -112
- package/dist/extras.js +24 -24
- package/dist/index.cjs +236 -105
- package/dist/index.d.cts +72 -8
- package/dist/index.d.ts +72 -8
- package/dist/index.js +14 -14
- package/dist/motion.cjs +336 -14
- package/dist/motion.js +4 -4
- package/dist/patterns.cjs +168 -24
- package/dist/patterns.js +6 -6
- package/dist/performance.cjs +305 -32
- package/dist/performance.js +8 -8
- package/dist/plugins.cjs +268 -69
- package/dist/plugins.js +12 -12
- package/dist/{ssr-2QDQ27EV.js → ssr-6D67RAVB.js} +3 -3
- package/dist/ssr.cjs +205 -63
- package/dist/ssr.js +11 -11
- package/dist/testing.cjs +415 -12
- package/dist/testing.js +16 -10
- package/dist/ui.cjs +248 -36
- package/dist/ui.js +9 -9
- package/dist/widgets.cjs +176 -26
- package/dist/widgets.js +8 -8
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -192,7 +192,7 @@ declare const area: (first?: TagProps | NodeChildren, second?: NodeChildren) =>
|
|
|
192
192
|
declare const audio: TypedTagFunction<AudioProps, HTMLAudioElement>;
|
|
193
193
|
declare const img: TypedTagFunction<ImgProps, HTMLImageElement>;
|
|
194
194
|
declare const map: (first?: TagProps | NodeChildren, second?: NodeChildren) => Element;
|
|
195
|
-
declare const track: (first?: TagProps | NodeChildren, second?: NodeChildren) => Element;
|
|
195
|
+
declare const track$1: (first?: TagProps | NodeChildren, second?: NodeChildren) => Element;
|
|
196
196
|
declare const video: TypedTagFunction<VideoProps, HTMLVideoElement>;
|
|
197
197
|
declare const embed: (first?: TagProps | NodeChildren, second?: NodeChildren) => Element;
|
|
198
198
|
declare const iframe: (first?: TagProps | NodeChildren, second?: NodeChildren) => Element;
|
|
@@ -442,6 +442,15 @@ declare function show<T extends Element>(condition: () => boolean, element: T):
|
|
|
442
442
|
* () => div("Please log in")
|
|
443
443
|
* );
|
|
444
444
|
* ```
|
|
445
|
+
*
|
|
446
|
+
* GOTCHA — branch factories rebuild only when `condition` changes. A signal
|
|
447
|
+
* read *eagerly* inside a branch is captured once and never updates:
|
|
448
|
+
* ```ts
|
|
449
|
+
* when(() => show(), () => div(`Count: ${count()}`)); // ✗ frozen at first count
|
|
450
|
+
* when(() => show(), () => div(() => `Count: ${count()}`)); // ✓ reactive text child
|
|
451
|
+
* ```
|
|
452
|
+
* Drive per-branch reactivity with a nested getter (or a reactive child), not a
|
|
453
|
+
* bare read in the factory body.
|
|
445
454
|
*/
|
|
446
455
|
declare function when<T>(condition: () => T, thenBranch: () => NodeChild, elseBranch?: () => NodeChild): Comment;
|
|
447
456
|
/**
|
|
@@ -465,6 +474,10 @@ declare function when<T>(condition: () => T, thenBranch: () => NodeChild, elseBr
|
|
|
465
474
|
* () => div("Unknown status")
|
|
466
475
|
* );
|
|
467
476
|
* ```
|
|
477
|
+
*
|
|
478
|
+
* GOTCHA — like `when()`, a case factory rebuilds only when the matched key
|
|
479
|
+
* changes. A signal read eagerly inside a case is frozen at build time; use a
|
|
480
|
+
* nested getter (`() => div(() => label())`) for reactive per-case content.
|
|
468
481
|
*/
|
|
469
482
|
declare function match<T extends string | number>(value: () => T, cases: Record<string, () => NodeChild>, fallback?: () => NodeChild): Comment;
|
|
470
483
|
|
|
@@ -1287,16 +1300,24 @@ declare function withSSR<T>(fn: () => T): T;
|
|
|
1287
1300
|
* }); // Only one notification pass, result === "done"
|
|
1288
1301
|
* ```
|
|
1289
1302
|
*/
|
|
1290
|
-
declare function
|
|
1303
|
+
declare function batchImpl<T>(fn: () => T): T;
|
|
1291
1304
|
/**
|
|
1292
1305
|
* Queue a signal for deferred notification during a batch.
|
|
1293
1306
|
* If not batching, returns false so the caller can notify immediately.
|
|
1294
1307
|
*/
|
|
1295
|
-
declare function
|
|
1308
|
+
declare function enqueueBatchedSignalImpl(signal: ReactiveSignal): boolean;
|
|
1296
1309
|
/**
|
|
1297
1310
|
* Check if we're currently inside a batch.
|
|
1298
1311
|
*/
|
|
1299
|
-
declare function
|
|
1312
|
+
declare function isBatchingImpl(): boolean;
|
|
1313
|
+
interface BatchApi {
|
|
1314
|
+
batch: typeof batchImpl;
|
|
1315
|
+
enqueueBatchedSignal: typeof enqueueBatchedSignalImpl;
|
|
1316
|
+
isBatching: typeof isBatchingImpl;
|
|
1317
|
+
}
|
|
1318
|
+
declare const batch: BatchApi["batch"];
|
|
1319
|
+
declare const enqueueBatchedSignal: BatchApi["enqueueBatchedSignal"];
|
|
1320
|
+
declare const isBatching: BatchApi["isBatching"];
|
|
1300
1321
|
|
|
1301
1322
|
/**
|
|
1302
1323
|
* Wait for the next microtask — after any currently-pending reactive updates
|
|
@@ -1372,9 +1393,52 @@ interface TransitionState {
|
|
|
1372
1393
|
declare function transition(): TransitionState;
|
|
1373
1394
|
|
|
1374
1395
|
type Subscriber = () => void;
|
|
1375
|
-
declare function
|
|
1376
|
-
declare function
|
|
1377
|
-
|
|
1396
|
+
declare function suspendTracking(): void;
|
|
1397
|
+
declare function resumeTracking(): void;
|
|
1398
|
+
/** Read the "tracking suspended" flag (used by derived's lazy path). */
|
|
1399
|
+
declare function isTrackingSuspended(): boolean;
|
|
1400
|
+
declare function untracked$1<T>(fn: () => T): T;
|
|
1401
|
+
declare function retrack$1(effectFn: () => void, subscriber: Subscriber): void;
|
|
1402
|
+
declare function track(effectFn: () => void, subscriber?: Subscriber): () => void;
|
|
1403
|
+
declare function reactiveBinding(commit: () => void): () => void;
|
|
1404
|
+
declare function recordDependency(signal: ReactiveSignal): void;
|
|
1405
|
+
declare function cleanup(subscriber: Subscriber): void;
|
|
1406
|
+
declare function setMaxSubscriberRepeats(n: number): number;
|
|
1407
|
+
declare function setMaxDrainIterations$1(n: number): number;
|
|
1408
|
+
declare function drainNotificationQueue(): void;
|
|
1409
|
+
declare function queueSignalNotification(signal: ReactiveSignal): void;
|
|
1410
|
+
declare function notifySubscribers(signal: ReactiveSignal): void;
|
|
1411
|
+
/** O(1) subscriber count for devtools / introspection. */
|
|
1412
|
+
declare function getSubscriberCount(signal: ReactiveSignal): number;
|
|
1413
|
+
/** Return the signals a subscriber currently depends on, in record order. */
|
|
1414
|
+
declare function getSubscriberDeps(subscriber: Subscriber): ReactiveSignal[];
|
|
1415
|
+
/** Iterate subscribers of a signal (devtools graph walk). */
|
|
1416
|
+
declare function forEachSubscriber(signal: ReactiveSignal, visit: (sub: Subscriber) => void): void;
|
|
1417
|
+
|
|
1418
|
+
interface ReactiveApi {
|
|
1419
|
+
suspendTracking: typeof suspendTracking;
|
|
1420
|
+
resumeTracking: typeof resumeTracking;
|
|
1421
|
+
isTrackingSuspended: typeof isTrackingSuspended;
|
|
1422
|
+
untracked: typeof untracked$1;
|
|
1423
|
+
retrack: typeof retrack$1;
|
|
1424
|
+
track: typeof track;
|
|
1425
|
+
reactiveBinding: typeof reactiveBinding;
|
|
1426
|
+
recordDependency: typeof recordDependency;
|
|
1427
|
+
cleanup: typeof cleanup;
|
|
1428
|
+
setMaxSubscriberRepeats: typeof setMaxSubscriberRepeats;
|
|
1429
|
+
setMaxDrainIterations: typeof setMaxDrainIterations$1;
|
|
1430
|
+
drainNotificationQueue: typeof drainNotificationQueue;
|
|
1431
|
+
queueSignalNotification: typeof queueSignalNotification;
|
|
1432
|
+
notifySubscribers: typeof notifySubscribers;
|
|
1433
|
+
getSubscriberCount: typeof getSubscriberCount;
|
|
1434
|
+
getSubscriberDeps: typeof getSubscriberDeps;
|
|
1435
|
+
forEachSubscriber: typeof forEachSubscriber;
|
|
1436
|
+
version: string;
|
|
1437
|
+
__dupWarned?: boolean;
|
|
1438
|
+
}
|
|
1439
|
+
declare const untracked: ReactiveApi["untracked"];
|
|
1440
|
+
declare const retrack: ReactiveApi["retrack"];
|
|
1441
|
+
declare const setMaxDrainIterations: ReactiveApi["setMaxDrainIterations"];
|
|
1378
1442
|
|
|
1379
1443
|
/**
|
|
1380
1444
|
* Bind a dynamic attribute where both name and value can change reactively.
|
|
@@ -1551,4 +1615,4 @@ interface LoadingProps {
|
|
|
1551
1615
|
*/
|
|
1552
1616
|
declare function Loading(props?: LoadingProps): HTMLElement;
|
|
1553
1617
|
|
|
1554
|
-
export { type Accessor, type ActionFn, type AnchorProps, type ArrayActions, type AsyncDerivedState, type AudioProps, type ButtonProps, type Context, DynamicComponent, type EffectBody, type EffectOptions, ErrorBoundary, type ErrorBoundaryOptions, type ErrorBoundaryProps, ErrorDisplay, type ErrorDisplayProps, type ErrorSeverity, type FormProps, Fragment, type ImgProps, type InputProps, type InputType, KeepAlive, type KeepAliveOptions, type LabelProps, Loading, type LoadingProps, type LongPressOptions, type MediaProps, NodeChild, NodeChildren, type OnCleanup, type OptionProps, Portal, type Ref, type SSRStore, type SelectProps, type SignalOptions, type SlotFn, type Slots, type StoreActions, Suspense, type SuspenseProps, TagProps, type TextareaProps, type TypedTagFunction, type VideoProps, __resetIdCounter, a, abbr, action, address, area, array, article, aside, asyncDerived, audio, autoResize, b, base, batch, bdi, bdo, bindDynamic, blockquote, body, br, button, canvas, caption, catchError, catchErrorAsync, center, checkLeaks, circle, cite, clickOutside, clipPath, code, col, colgroup, context, copyOnClick, createId, customElement, data, datalist, dd, deepEqual, deepSignal, defer, defs, del, derived, details, dfn, dialog, disableSSR, dispose, div, dl, dt, each, effect, ellipse, em, embed, enableSSR, enqueueBatchedSignal, fieldset, figcaption, figure, font, footer, form, g, getRequestScopedCache, getSSRStore, getSlot, h1, h2, h3, h4, h5, h6, head, header, hr, html, i, iframe, img, input, ins, isBatching, isSSR, kbd, label, lazy, legend, li, line, linearGradient, link, longPress, main, map, mark, marker, marquee, mask, match, math, menu, meta, meter, mount, nav, nextTick, noscript, object, ol, on, onCleanup, onMount, onUnmount, optgroup, option, output, p, param, path, pattern, picture, polygon, polyline, portal, pre, progress, q, radialGradient, reactiveArray, rect, ref, registerComponent, registerDisposer, resolveComponent, retrack, rp, rt, ruby, runInSSRContext, s, samp, script, section, select, setGlobalErrorHandler, setMaxDrainIterations, show, signal, slot, small, source, span, stop, store, strict, strictEffect, strong, style, sub, summary, sup, svg, symbol, table, takePendingError, tbody, td, template, text, textarea, tfoot, th, thead, time, title, tr, track, transition, trapFocus, tspan, u, ul, unregisterComponent, untracked, use, var_, video, watch, when, withSSR, writable };
|
|
1618
|
+
export { type Accessor, type ActionFn, type AnchorProps, type ArrayActions, type AsyncDerivedState, type AudioProps, type ButtonProps, type Context, DynamicComponent, type EffectBody, type EffectOptions, ErrorBoundary, type ErrorBoundaryOptions, type ErrorBoundaryProps, ErrorDisplay, type ErrorDisplayProps, type ErrorSeverity, type FormProps, Fragment, type ImgProps, type InputProps, type InputType, KeepAlive, type KeepAliveOptions, type LabelProps, Loading, type LoadingProps, type LongPressOptions, type MediaProps, NodeChild, NodeChildren, type OnCleanup, type OptionProps, Portal, type Ref, type SSRStore, type SelectProps, type SignalOptions, type SlotFn, type Slots, type StoreActions, Suspense, type SuspenseProps, TagProps, type TextareaProps, type TypedTagFunction, type VideoProps, __resetIdCounter, a, abbr, action, address, area, array, article, aside, asyncDerived, audio, autoResize, b, base, batch, bdi, bdo, bindDynamic, blockquote, body, br, button, canvas, caption, catchError, catchErrorAsync, center, checkLeaks, circle, cite, clickOutside, clipPath, code, col, colgroup, context, copyOnClick, createId, customElement, data, datalist, dd, deepEqual, deepSignal, defer, defs, del, derived, details, dfn, dialog, disableSSR, dispose, div, dl, dt, each, effect, ellipse, em, embed, enableSSR, enqueueBatchedSignal, fieldset, figcaption, figure, font, footer, form, g, getRequestScopedCache, getSSRStore, getSlot, h1, h2, h3, h4, h5, h6, head, header, hr, html, i, iframe, img, input, ins, isBatching, isSSR, kbd, label, lazy, legend, li, line, linearGradient, link, longPress, main, map, mark, marker, marquee, mask, match, math, menu, meta, meter, mount, nav, nextTick, noscript, object, ol, on, onCleanup, onMount, onUnmount, optgroup, option, output, p, param, path, pattern, picture, polygon, polyline, portal, pre, progress, q, radialGradient, reactiveArray, rect, ref, registerComponent, registerDisposer, resolveComponent, retrack, rp, rt, ruby, runInSSRContext, s, samp, script, section, select, setGlobalErrorHandler, setMaxDrainIterations, show, signal, slot, small, source, span, stop, store, strict, strictEffect, strong, style, sub, summary, sup, svg, symbol, table, takePendingError, tbody, td, template, text, textarea, tfoot, th, thead, time, title, tr, track$1 as track, transition, trapFocus, tspan, u, ul, unregisterComponent, untracked, use, var_, video, watch, when, withSSR, writable };
|
package/dist/index.d.ts
CHANGED
|
@@ -192,7 +192,7 @@ declare const area: (first?: TagProps | NodeChildren, second?: NodeChildren) =>
|
|
|
192
192
|
declare const audio: TypedTagFunction<AudioProps, HTMLAudioElement>;
|
|
193
193
|
declare const img: TypedTagFunction<ImgProps, HTMLImageElement>;
|
|
194
194
|
declare const map: (first?: TagProps | NodeChildren, second?: NodeChildren) => Element;
|
|
195
|
-
declare const track: (first?: TagProps | NodeChildren, second?: NodeChildren) => Element;
|
|
195
|
+
declare const track$1: (first?: TagProps | NodeChildren, second?: NodeChildren) => Element;
|
|
196
196
|
declare const video: TypedTagFunction<VideoProps, HTMLVideoElement>;
|
|
197
197
|
declare const embed: (first?: TagProps | NodeChildren, second?: NodeChildren) => Element;
|
|
198
198
|
declare const iframe: (first?: TagProps | NodeChildren, second?: NodeChildren) => Element;
|
|
@@ -442,6 +442,15 @@ declare function show<T extends Element>(condition: () => boolean, element: T):
|
|
|
442
442
|
* () => div("Please log in")
|
|
443
443
|
* );
|
|
444
444
|
* ```
|
|
445
|
+
*
|
|
446
|
+
* GOTCHA — branch factories rebuild only when `condition` changes. A signal
|
|
447
|
+
* read *eagerly* inside a branch is captured once and never updates:
|
|
448
|
+
* ```ts
|
|
449
|
+
* when(() => show(), () => div(`Count: ${count()}`)); // ✗ frozen at first count
|
|
450
|
+
* when(() => show(), () => div(() => `Count: ${count()}`)); // ✓ reactive text child
|
|
451
|
+
* ```
|
|
452
|
+
* Drive per-branch reactivity with a nested getter (or a reactive child), not a
|
|
453
|
+
* bare read in the factory body.
|
|
445
454
|
*/
|
|
446
455
|
declare function when<T>(condition: () => T, thenBranch: () => NodeChild, elseBranch?: () => NodeChild): Comment;
|
|
447
456
|
/**
|
|
@@ -465,6 +474,10 @@ declare function when<T>(condition: () => T, thenBranch: () => NodeChild, elseBr
|
|
|
465
474
|
* () => div("Unknown status")
|
|
466
475
|
* );
|
|
467
476
|
* ```
|
|
477
|
+
*
|
|
478
|
+
* GOTCHA — like `when()`, a case factory rebuilds only when the matched key
|
|
479
|
+
* changes. A signal read eagerly inside a case is frozen at build time; use a
|
|
480
|
+
* nested getter (`() => div(() => label())`) for reactive per-case content.
|
|
468
481
|
*/
|
|
469
482
|
declare function match<T extends string | number>(value: () => T, cases: Record<string, () => NodeChild>, fallback?: () => NodeChild): Comment;
|
|
470
483
|
|
|
@@ -1287,16 +1300,24 @@ declare function withSSR<T>(fn: () => T): T;
|
|
|
1287
1300
|
* }); // Only one notification pass, result === "done"
|
|
1288
1301
|
* ```
|
|
1289
1302
|
*/
|
|
1290
|
-
declare function
|
|
1303
|
+
declare function batchImpl<T>(fn: () => T): T;
|
|
1291
1304
|
/**
|
|
1292
1305
|
* Queue a signal for deferred notification during a batch.
|
|
1293
1306
|
* If not batching, returns false so the caller can notify immediately.
|
|
1294
1307
|
*/
|
|
1295
|
-
declare function
|
|
1308
|
+
declare function enqueueBatchedSignalImpl(signal: ReactiveSignal): boolean;
|
|
1296
1309
|
/**
|
|
1297
1310
|
* Check if we're currently inside a batch.
|
|
1298
1311
|
*/
|
|
1299
|
-
declare function
|
|
1312
|
+
declare function isBatchingImpl(): boolean;
|
|
1313
|
+
interface BatchApi {
|
|
1314
|
+
batch: typeof batchImpl;
|
|
1315
|
+
enqueueBatchedSignal: typeof enqueueBatchedSignalImpl;
|
|
1316
|
+
isBatching: typeof isBatchingImpl;
|
|
1317
|
+
}
|
|
1318
|
+
declare const batch: BatchApi["batch"];
|
|
1319
|
+
declare const enqueueBatchedSignal: BatchApi["enqueueBatchedSignal"];
|
|
1320
|
+
declare const isBatching: BatchApi["isBatching"];
|
|
1300
1321
|
|
|
1301
1322
|
/**
|
|
1302
1323
|
* Wait for the next microtask — after any currently-pending reactive updates
|
|
@@ -1372,9 +1393,52 @@ interface TransitionState {
|
|
|
1372
1393
|
declare function transition(): TransitionState;
|
|
1373
1394
|
|
|
1374
1395
|
type Subscriber = () => void;
|
|
1375
|
-
declare function
|
|
1376
|
-
declare function
|
|
1377
|
-
|
|
1396
|
+
declare function suspendTracking(): void;
|
|
1397
|
+
declare function resumeTracking(): void;
|
|
1398
|
+
/** Read the "tracking suspended" flag (used by derived's lazy path). */
|
|
1399
|
+
declare function isTrackingSuspended(): boolean;
|
|
1400
|
+
declare function untracked$1<T>(fn: () => T): T;
|
|
1401
|
+
declare function retrack$1(effectFn: () => void, subscriber: Subscriber): void;
|
|
1402
|
+
declare function track(effectFn: () => void, subscriber?: Subscriber): () => void;
|
|
1403
|
+
declare function reactiveBinding(commit: () => void): () => void;
|
|
1404
|
+
declare function recordDependency(signal: ReactiveSignal): void;
|
|
1405
|
+
declare function cleanup(subscriber: Subscriber): void;
|
|
1406
|
+
declare function setMaxSubscriberRepeats(n: number): number;
|
|
1407
|
+
declare function setMaxDrainIterations$1(n: number): number;
|
|
1408
|
+
declare function drainNotificationQueue(): void;
|
|
1409
|
+
declare function queueSignalNotification(signal: ReactiveSignal): void;
|
|
1410
|
+
declare function notifySubscribers(signal: ReactiveSignal): void;
|
|
1411
|
+
/** O(1) subscriber count for devtools / introspection. */
|
|
1412
|
+
declare function getSubscriberCount(signal: ReactiveSignal): number;
|
|
1413
|
+
/** Return the signals a subscriber currently depends on, in record order. */
|
|
1414
|
+
declare function getSubscriberDeps(subscriber: Subscriber): ReactiveSignal[];
|
|
1415
|
+
/** Iterate subscribers of a signal (devtools graph walk). */
|
|
1416
|
+
declare function forEachSubscriber(signal: ReactiveSignal, visit: (sub: Subscriber) => void): void;
|
|
1417
|
+
|
|
1418
|
+
interface ReactiveApi {
|
|
1419
|
+
suspendTracking: typeof suspendTracking;
|
|
1420
|
+
resumeTracking: typeof resumeTracking;
|
|
1421
|
+
isTrackingSuspended: typeof isTrackingSuspended;
|
|
1422
|
+
untracked: typeof untracked$1;
|
|
1423
|
+
retrack: typeof retrack$1;
|
|
1424
|
+
track: typeof track;
|
|
1425
|
+
reactiveBinding: typeof reactiveBinding;
|
|
1426
|
+
recordDependency: typeof recordDependency;
|
|
1427
|
+
cleanup: typeof cleanup;
|
|
1428
|
+
setMaxSubscriberRepeats: typeof setMaxSubscriberRepeats;
|
|
1429
|
+
setMaxDrainIterations: typeof setMaxDrainIterations$1;
|
|
1430
|
+
drainNotificationQueue: typeof drainNotificationQueue;
|
|
1431
|
+
queueSignalNotification: typeof queueSignalNotification;
|
|
1432
|
+
notifySubscribers: typeof notifySubscribers;
|
|
1433
|
+
getSubscriberCount: typeof getSubscriberCount;
|
|
1434
|
+
getSubscriberDeps: typeof getSubscriberDeps;
|
|
1435
|
+
forEachSubscriber: typeof forEachSubscriber;
|
|
1436
|
+
version: string;
|
|
1437
|
+
__dupWarned?: boolean;
|
|
1438
|
+
}
|
|
1439
|
+
declare const untracked: ReactiveApi["untracked"];
|
|
1440
|
+
declare const retrack: ReactiveApi["retrack"];
|
|
1441
|
+
declare const setMaxDrainIterations: ReactiveApi["setMaxDrainIterations"];
|
|
1378
1442
|
|
|
1379
1443
|
/**
|
|
1380
1444
|
* Bind a dynamic attribute where both name and value can change reactively.
|
|
@@ -1551,4 +1615,4 @@ interface LoadingProps {
|
|
|
1551
1615
|
*/
|
|
1552
1616
|
declare function Loading(props?: LoadingProps): HTMLElement;
|
|
1553
1617
|
|
|
1554
|
-
export { type Accessor, type ActionFn, type AnchorProps, type ArrayActions, type AsyncDerivedState, type AudioProps, type ButtonProps, type Context, DynamicComponent, type EffectBody, type EffectOptions, ErrorBoundary, type ErrorBoundaryOptions, type ErrorBoundaryProps, ErrorDisplay, type ErrorDisplayProps, type ErrorSeverity, type FormProps, Fragment, type ImgProps, type InputProps, type InputType, KeepAlive, type KeepAliveOptions, type LabelProps, Loading, type LoadingProps, type LongPressOptions, type MediaProps, NodeChild, NodeChildren, type OnCleanup, type OptionProps, Portal, type Ref, type SSRStore, type SelectProps, type SignalOptions, type SlotFn, type Slots, type StoreActions, Suspense, type SuspenseProps, TagProps, type TextareaProps, type TypedTagFunction, type VideoProps, __resetIdCounter, a, abbr, action, address, area, array, article, aside, asyncDerived, audio, autoResize, b, base, batch, bdi, bdo, bindDynamic, blockquote, body, br, button, canvas, caption, catchError, catchErrorAsync, center, checkLeaks, circle, cite, clickOutside, clipPath, code, col, colgroup, context, copyOnClick, createId, customElement, data, datalist, dd, deepEqual, deepSignal, defer, defs, del, derived, details, dfn, dialog, disableSSR, dispose, div, dl, dt, each, effect, ellipse, em, embed, enableSSR, enqueueBatchedSignal, fieldset, figcaption, figure, font, footer, form, g, getRequestScopedCache, getSSRStore, getSlot, h1, h2, h3, h4, h5, h6, head, header, hr, html, i, iframe, img, input, ins, isBatching, isSSR, kbd, label, lazy, legend, li, line, linearGradient, link, longPress, main, map, mark, marker, marquee, mask, match, math, menu, meta, meter, mount, nav, nextTick, noscript, object, ol, on, onCleanup, onMount, onUnmount, optgroup, option, output, p, param, path, pattern, picture, polygon, polyline, portal, pre, progress, q, radialGradient, reactiveArray, rect, ref, registerComponent, registerDisposer, resolveComponent, retrack, rp, rt, ruby, runInSSRContext, s, samp, script, section, select, setGlobalErrorHandler, setMaxDrainIterations, show, signal, slot, small, source, span, stop, store, strict, strictEffect, strong, style, sub, summary, sup, svg, symbol, table, takePendingError, tbody, td, template, text, textarea, tfoot, th, thead, time, title, tr, track, transition, trapFocus, tspan, u, ul, unregisterComponent, untracked, use, var_, video, watch, when, withSSR, writable };
|
|
1618
|
+
export { type Accessor, type ActionFn, type AnchorProps, type ArrayActions, type AsyncDerivedState, type AudioProps, type ButtonProps, type Context, DynamicComponent, type EffectBody, type EffectOptions, ErrorBoundary, type ErrorBoundaryOptions, type ErrorBoundaryProps, ErrorDisplay, type ErrorDisplayProps, type ErrorSeverity, type FormProps, Fragment, type ImgProps, type InputProps, type InputType, KeepAlive, type KeepAliveOptions, type LabelProps, Loading, type LoadingProps, type LongPressOptions, type MediaProps, NodeChild, NodeChildren, type OnCleanup, type OptionProps, Portal, type Ref, type SSRStore, type SelectProps, type SignalOptions, type SlotFn, type Slots, type StoreActions, Suspense, type SuspenseProps, TagProps, type TextareaProps, type TypedTagFunction, type VideoProps, __resetIdCounter, a, abbr, action, address, area, array, article, aside, asyncDerived, audio, autoResize, b, base, batch, bdi, bdo, bindDynamic, blockquote, body, br, button, canvas, caption, catchError, catchErrorAsync, center, checkLeaks, circle, cite, clickOutside, clipPath, code, col, colgroup, context, copyOnClick, createId, customElement, data, datalist, dd, deepEqual, deepSignal, defer, defs, del, derived, details, dfn, dialog, disableSSR, dispose, div, dl, dt, each, effect, ellipse, em, embed, enableSSR, enqueueBatchedSignal, fieldset, figcaption, figure, font, footer, form, g, getRequestScopedCache, getSSRStore, getSlot, h1, h2, h3, h4, h5, h6, head, header, hr, html, i, iframe, img, input, ins, isBatching, isSSR, kbd, label, lazy, legend, li, line, linearGradient, link, longPress, main, map, mark, marker, marquee, mask, match, math, menu, meta, meter, mount, nav, nextTick, noscript, object, ol, on, onCleanup, onMount, onUnmount, optgroup, option, output, p, param, path, pattern, picture, polygon, polyline, portal, pre, progress, q, radialGradient, reactiveArray, rect, ref, registerComponent, registerDisposer, resolveComponent, retrack, rp, rt, ruby, runInSSRContext, s, samp, script, section, select, setGlobalErrorHandler, setMaxDrainIterations, show, signal, slot, small, source, span, stop, store, strict, strictEffect, strong, style, sub, summary, sup, svg, symbol, table, takePendingError, tbody, td, template, text, textarea, tfoot, th, thead, time, title, tr, track$1 as track, transition, trapFocus, tspan, u, ul, unregisterComponent, untracked, use, var_, video, watch, when, withSSR, writable };
|
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
unregisterComponent,
|
|
45
45
|
when,
|
|
46
46
|
writable
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-IKLYI3RF.js";
|
|
48
48
|
import {
|
|
49
49
|
__resetIdCounter,
|
|
50
50
|
createId
|
|
@@ -186,36 +186,36 @@ import {
|
|
|
186
186
|
use,
|
|
187
187
|
var_,
|
|
188
188
|
video
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-37BUKSLH.js";
|
|
190
190
|
import {
|
|
191
191
|
watch
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-SLMFA3ZZ.js";
|
|
193
193
|
import {
|
|
194
194
|
trustHTML
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-R3QEDXFS.js";
|
|
196
196
|
import {
|
|
197
197
|
context
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-F7FXQ3QS.js";
|
|
199
199
|
import {
|
|
200
200
|
SVG_NS,
|
|
201
201
|
tagFactory
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-LU2MQXQQ.js";
|
|
203
203
|
import {
|
|
204
204
|
bindDynamic
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-NHKQKKZU.js";
|
|
206
206
|
import {
|
|
207
207
|
derived
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-WW6DAGGR.js";
|
|
209
209
|
import {
|
|
210
210
|
checkLeaks,
|
|
211
211
|
dispose,
|
|
212
212
|
registerDisposer
|
|
213
|
-
} from "./chunk-
|
|
214
|
-
import "./chunk-
|
|
213
|
+
} from "./chunk-5VGSK6D2.js";
|
|
214
|
+
import "./chunk-L3GAGWCC.js";
|
|
215
215
|
import {
|
|
216
216
|
effect,
|
|
217
217
|
on
|
|
218
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-MHBCEJQO.js";
|
|
219
219
|
import {
|
|
220
220
|
disableSSR,
|
|
221
221
|
enableSSR,
|
|
@@ -230,13 +230,13 @@ import {
|
|
|
230
230
|
enqueueBatchedSignal,
|
|
231
231
|
isBatching,
|
|
232
232
|
signal
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-WZG2SZOT.js";
|
|
234
234
|
import {
|
|
235
235
|
retrack,
|
|
236
236
|
setMaxDrainIterations,
|
|
237
237
|
untracked
|
|
238
|
-
} from "./chunk-
|
|
239
|
-
import "./chunk-
|
|
238
|
+
} from "./chunk-TEFZT5PJ.js";
|
|
239
|
+
import "./chunk-COY6PUD2.js";
|
|
240
240
|
export {
|
|
241
241
|
DynamicComponent,
|
|
242
242
|
ErrorBoundary,
|