sia-reactor 0.0.37 → 0.0.38
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/{TimeTravelConsole-B1du_ohf.d.ts → TimeTravelConsole-DSifvt2z.d.ts} +2 -2
- package/dist/{TimeTravelConsole-C9eSXGTz.d.cts → TimeTravelConsole-nYAqg57U.d.cts} +2 -2
- package/dist/adapters/react.cjs +2 -1
- package/dist/adapters/react.d.cts +3 -3
- package/dist/adapters/react.d.ts +3 -3
- package/dist/adapters/react.js +3 -3
- package/dist/adapters/vanilla.cjs +2 -1
- package/dist/adapters/vanilla.d.cts +4 -4
- package/dist/adapters/vanilla.d.ts +4 -4
- package/dist/adapters/vanilla.js +3 -3
- package/dist/{chunk-WYSENFHG.js → chunk-DCUPDG7B.js} +2 -1
- package/dist/{chunk-EA3LQVCI.js → chunk-FOD32N6J.js} +1 -1
- package/dist/{chunk-OFH4X3QD.js → chunk-GDTGCQ2Q.js} +2 -2
- package/dist/{index-D0NxfxUv.d.cts → index-BsH8KkqG.d.cts} +3 -2
- package/dist/{index-D0NxfxUv.d.ts → index-BsH8KkqG.d.ts} +3 -2
- package/dist/{index-lo6ft5Zu.d.ts → index-D4DGBS2N.d.ts} +1 -1
- package/dist/{index-CQNn1GIg.d.cts → index-DBx4TIVW.d.cts} +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modules.cjs +2 -1
- package/dist/modules.d.cts +4 -4
- package/dist/modules.d.ts +4 -4
- package/dist/modules.js +2 -2
- package/dist/super.d.ts +3 -2
- package/dist/super.global.js +2 -1
- package/dist/utils.cjs +2 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as Reactive } from './index-
|
|
2
|
-
import { T as TimeTravelModule } from './index-
|
|
1
|
+
import { R as Reactive } from './index-BsH8KkqG.js';
|
|
2
|
+
import { T as TimeTravelModule } from './index-D4DGBS2N.js';
|
|
3
3
|
|
|
4
4
|
/** Reactive options for the TimeTravel overlay instance. */
|
|
5
5
|
interface TimeTravelConsoleConfig {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as Reactive } from './index-
|
|
2
|
-
import { T as TimeTravelModule } from './index-
|
|
1
|
+
import { R as Reactive } from './index-BsH8KkqG.cjs';
|
|
2
|
+
import { T as TimeTravelModule } from './index-DBx4TIVW.cjs';
|
|
3
3
|
|
|
4
4
|
/** Reactive options for the TimeTravel overlay instance. */
|
|
5
5
|
interface TimeTravelConsoleConfig {
|
package/dist/adapters/react.cjs
CHANGED
|
@@ -58,7 +58,7 @@ try {
|
|
|
58
58
|
isDevEnv = process.env.NODE_ENV !== "production";
|
|
59
59
|
} catch (e) {
|
|
60
60
|
}
|
|
61
|
-
var
|
|
61
|
+
var CTX_BUILD = {
|
|
62
62
|
/** Flag indicating whether the application is running in development mode. */
|
|
63
63
|
isDevEnv,
|
|
64
64
|
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
@@ -79,6 +79,7 @@ var CTX = {
|
|
|
79
79
|
batchingFunction: RTR_BATCH
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
+
var CTX = globalThis[/* @__PURE__ */ Symbol.for("S.I.A_CTX")] ??= CTX_BUILD;
|
|
82
83
|
|
|
83
84
|
// src/ts/utils/obj.ts
|
|
84
85
|
var arrRegex = /^([^\[\]]+)\[(\d+)\]$/;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as EffectOptions, d as Reactor, R as Reactive, J as ReactorBuild, K as DeepReadonly, W as WildPaths, a as PathValue } from '../index-
|
|
1
|
+
import { E as EffectOptions, d as Reactor, R as Reactive, J as ReactorBuild, K as DeepReadonly, W as WildPaths, a as PathValue } from '../index-BsH8KkqG.cjs';
|
|
2
2
|
import { useLayoutEffect } from 'react';
|
|
3
|
-
import { T as TimeTravelModule } from '../index-
|
|
4
|
-
import { a as TimeTravelConsoleConfig } from '../TimeTravelConsole-
|
|
3
|
+
import { T as TimeTravelModule } from '../index-DBx4TIVW.cjs';
|
|
4
|
+
import { a as TimeTravelConsoleConfig } from '../TimeTravelConsole-nYAqg57U.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Subscribes a component to desired Reactor state and returns it.
|
package/dist/adapters/react.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as EffectOptions, d as Reactor, R as Reactive, J as ReactorBuild, K as DeepReadonly, W as WildPaths, a as PathValue } from '../index-
|
|
1
|
+
import { E as EffectOptions, d as Reactor, R as Reactive, J as ReactorBuild, K as DeepReadonly, W as WildPaths, a as PathValue } from '../index-BsH8KkqG.js';
|
|
2
2
|
import { useLayoutEffect } from 'react';
|
|
3
|
-
import { T as TimeTravelModule } from '../index-
|
|
4
|
-
import { a as TimeTravelConsoleConfig } from '../TimeTravelConsole-
|
|
3
|
+
import { T as TimeTravelModule } from '../index-D4DGBS2N.js';
|
|
4
|
+
import { a as TimeTravelConsoleConfig } from '../TimeTravelConsole-DSifvt2z.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Subscribes a component to desired Reactor state and returns it.
|
package/dist/adapters/react.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
Autotracker,
|
|
3
3
|
TimeTravelConsole,
|
|
4
4
|
withTracker
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-GDTGCQ2Q.js";
|
|
6
|
+
import "../chunk-FOD32N6J.js";
|
|
7
7
|
import "../chunk-ORK3EGB6.js";
|
|
8
8
|
import {
|
|
9
9
|
CTX,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
NOOP,
|
|
12
12
|
getPath,
|
|
13
13
|
getReactor
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-DCUPDG7B.js";
|
|
15
15
|
|
|
16
16
|
// src/ts/adapters/react/hooks/useReactor.ts
|
|
17
17
|
import { useRef, useCallback, useSyncExternalStore, useMemo } from "react";
|
|
@@ -46,7 +46,7 @@ try {
|
|
|
46
46
|
isDevEnv = process.env.NODE_ENV !== "production";
|
|
47
47
|
} catch (e) {
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var CTX_BUILD = {
|
|
50
50
|
/** Flag indicating whether the application is running in development mode. */
|
|
51
51
|
isDevEnv,
|
|
52
52
|
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
@@ -67,6 +67,7 @@ var CTX = {
|
|
|
67
67
|
batchingFunction: RTR_BATCH
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
+
var CTX = globalThis[/* @__PURE__ */ Symbol.for("S.I.A_CTX")] ??= CTX_BUILD;
|
|
70
71
|
|
|
71
72
|
// src/ts/core/event.ts
|
|
72
73
|
var ReactorEvent = class _ReactorEvent {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as EffectOptions } from '../index-
|
|
2
|
-
export { A as Autotracker, w as withTracker } from '../index-
|
|
3
|
-
export { T as TimeTravelConsole, a as TimeTravelConsoleConfig } from '../TimeTravelConsole-
|
|
4
|
-
import '../index-
|
|
1
|
+
import { E as EffectOptions } from '../index-BsH8KkqG.cjs';
|
|
2
|
+
export { A as Autotracker, w as withTracker } from '../index-BsH8KkqG.cjs';
|
|
3
|
+
export { T as TimeTravelConsole, a as TimeTravelConsoleConfig } from '../TimeTravelConsole-nYAqg57U.cjs';
|
|
4
|
+
import '../index-DBx4TIVW.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Runs a reactive side effect in vanilla JavaScript.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as EffectOptions } from '../index-
|
|
2
|
-
export { A as Autotracker, w as withTracker } from '../index-
|
|
3
|
-
export { T as TimeTravelConsole, a as TimeTravelConsoleConfig } from '../TimeTravelConsole-
|
|
4
|
-
import '../index-
|
|
1
|
+
import { E as EffectOptions } from '../index-BsH8KkqG.js';
|
|
2
|
+
export { A as Autotracker, w as withTracker } from '../index-BsH8KkqG.js';
|
|
3
|
+
export { T as TimeTravelConsole, a as TimeTravelConsoleConfig } from '../TimeTravelConsole-DSifvt2z.js';
|
|
4
|
+
import '../index-D4DGBS2N.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Runs a reactive side effect in vanilla JavaScript.
|
package/dist/adapters/vanilla.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
TimeTravelConsole,
|
|
4
4
|
effect,
|
|
5
5
|
withTracker
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-GDTGCQ2Q.js";
|
|
7
|
+
import "../chunk-FOD32N6J.js";
|
|
8
8
|
import "../chunk-ORK3EGB6.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-DCUPDG7B.js";
|
|
10
10
|
export {
|
|
11
11
|
Autotracker,
|
|
12
12
|
TimeTravelConsole,
|
|
@@ -17,7 +17,7 @@ try {
|
|
|
17
17
|
isDevEnv = process.env.NODE_ENV !== "production";
|
|
18
18
|
} catch (e) {
|
|
19
19
|
}
|
|
20
|
-
var
|
|
20
|
+
var CTX_BUILD = {
|
|
21
21
|
/** Flag indicating whether the application is running in development mode. */
|
|
22
22
|
isDevEnv,
|
|
23
23
|
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
@@ -38,6 +38,7 @@ var CTX = {
|
|
|
38
38
|
batchingFunction: RTR_BATCH
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
+
var CTX = globalThis[/* @__PURE__ */ Symbol.for("S.I.A_CTX")] ??= CTX_BUILD;
|
|
41
42
|
|
|
42
43
|
// src/ts/modules/timeTravel/transaction.ts
|
|
43
44
|
var txId = 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
wpArr
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FOD32N6J.js";
|
|
4
4
|
import {
|
|
5
5
|
KEYS_BLOCKS,
|
|
6
6
|
createEl,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
canHandle,
|
|
16
16
|
nuke,
|
|
17
17
|
reactive
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DCUPDG7B.js";
|
|
19
19
|
|
|
20
20
|
// src/ts/adapters/autotracker.ts
|
|
21
21
|
var Autotracker = class {
|
|
@@ -1344,8 +1344,7 @@ declare const EVT_OPTS: {
|
|
|
1344
1344
|
declare const NIL: any;
|
|
1345
1345
|
/** Shared no-operation function. */
|
|
1346
1346
|
declare const NOOP: () => void;
|
|
1347
|
-
|
|
1348
|
-
declare const CTX: {
|
|
1347
|
+
declare const CTX_BUILD: {
|
|
1349
1348
|
/** Flag indicating whether the application is running in development mode. */
|
|
1350
1349
|
isDevEnv: boolean;
|
|
1351
1350
|
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
@@ -1357,5 +1356,7 @@ declare const CTX: {
|
|
|
1357
1356
|
/** Default configuration for new `Reactor` instances and also fallback for utils that need and are called without these options. */
|
|
1358
1357
|
defaults: Partial<ReactorBuild<any>>;
|
|
1359
1358
|
};
|
|
1359
|
+
/** Global context object for sharing state across the reactor runtime. */
|
|
1360
|
+
declare const CTX: typeof CTX_BUILD;
|
|
1360
1361
|
|
|
1361
1362
|
export { type DeepMerge as $, Autotracker as A, BaseReactorModule as B, parseEvtOpts as C, parsePathObj as D, type EffectOptions as E, type FanoutOptionsTuple as F, resetMeta as G, setPath as H, withMeta as I, type ReactorBuild as J, type DeepReadonly as K, type Inert as L, type ModulePaths as M, type ReactorModuleConstructor as N, endTx as O, type Paths as P, startTx as Q, type Reactive as R, transaction as S, type Transaction as T, txId as U, type APIKey as V, type WildPaths as W, type AddDepth as X, CTX as Y, type ChildPaths as Z, type DeepKeys as _, type PathValue as a, live as a$, type DeepPartial as a0, type DeepRequired as a1, type Deleter as a2, type DeleterRecord as a3, type DepthConfig as a4, type DirectPayload as a5, EVT_OPTS as a6, type Getter as a7, type GetterRecord as a8, INDIFFABLE as a9, SSVERSION as aA, type Setter as aB, type SetterRecord as aC, type Stable as aD, type State as aE, type StrictPathKey as aF, type SubtractDepth as aG, type SyncOptions as aH, type SyncOptionsTuple as aI, TERMINATOR as aJ, type Target as aK, type Unflatten as aL, type UnionToIntersection as aM, type UpdatePayload as aN, VERSION as aO, type Volatile as aP, type Watcher as aQ, type WatcherRecord as aR, getRaw as aS, getReactor as aT, getSnapshotVersion as aU, getVersion as aV, inert as aW, intent as aX, isInert as aY, isIntent as aZ, isVolatile as a_, INERTIA as aa, type Intent as ab, type Listener as ac, type ListenerOptions as ad, type ListenerOptionsTuple as ae, type ListenerRecord as af, type Live as ag, type MaxDepth as ah, NIL as ai, NOOP as aj, type NextDepth as ak, type NoTraverse as al, type PathBranch as am, type PathBranchValue as an, type PathDepth as ao, type PathKey as ap, type PathLeaf as aq, type PrevDepth as ar, type Primitive as as, type Pure as at, RAW as au, REJECTABLE as av, RTR_BATCH as aw, RTR_LOG as ax, type ReactivePreferences as ay, ReactorEvent as az, type ReactorModuleId as b, methods as b0, reactive as b1, stable as b2, state as b3, volatile as b4, type ReactorModulePathConfig as c, Reactor as d, type REvent as e, type Payload as f, arrRegex as g, canHandle as h, createReactorSync as i, deepClone as j, deletePath as k, fanout as l, fanoutOptsArr as m, force as n, getDepth as o, getPath as p, getPaths as q, getTrailRecords as r, hasPath as s, isLeafPath as t, isObj as u, isPOJO as v, withTracker as w, matchPaths as x, mergeObjs as y, nuke as z };
|
|
@@ -1344,8 +1344,7 @@ declare const EVT_OPTS: {
|
|
|
1344
1344
|
declare const NIL: any;
|
|
1345
1345
|
/** Shared no-operation function. */
|
|
1346
1346
|
declare const NOOP: () => void;
|
|
1347
|
-
|
|
1348
|
-
declare const CTX: {
|
|
1347
|
+
declare const CTX_BUILD: {
|
|
1349
1348
|
/** Flag indicating whether the application is running in development mode. */
|
|
1350
1349
|
isDevEnv: boolean;
|
|
1351
1350
|
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
@@ -1357,5 +1356,7 @@ declare const CTX: {
|
|
|
1357
1356
|
/** Default configuration for new `Reactor` instances and also fallback for utils that need and are called without these options. */
|
|
1358
1357
|
defaults: Partial<ReactorBuild<any>>;
|
|
1359
1358
|
};
|
|
1359
|
+
/** Global context object for sharing state across the reactor runtime. */
|
|
1360
|
+
declare const CTX: typeof CTX_BUILD;
|
|
1360
1361
|
|
|
1361
1362
|
export { type DeepMerge as $, Autotracker as A, BaseReactorModule as B, parseEvtOpts as C, parsePathObj as D, type EffectOptions as E, type FanoutOptionsTuple as F, resetMeta as G, setPath as H, withMeta as I, type ReactorBuild as J, type DeepReadonly as K, type Inert as L, type ModulePaths as M, type ReactorModuleConstructor as N, endTx as O, type Paths as P, startTx as Q, type Reactive as R, transaction as S, type Transaction as T, txId as U, type APIKey as V, type WildPaths as W, type AddDepth as X, CTX as Y, type ChildPaths as Z, type DeepKeys as _, type PathValue as a, live as a$, type DeepPartial as a0, type DeepRequired as a1, type Deleter as a2, type DeleterRecord as a3, type DepthConfig as a4, type DirectPayload as a5, EVT_OPTS as a6, type Getter as a7, type GetterRecord as a8, INDIFFABLE as a9, SSVERSION as aA, type Setter as aB, type SetterRecord as aC, type Stable as aD, type State as aE, type StrictPathKey as aF, type SubtractDepth as aG, type SyncOptions as aH, type SyncOptionsTuple as aI, TERMINATOR as aJ, type Target as aK, type Unflatten as aL, type UnionToIntersection as aM, type UpdatePayload as aN, VERSION as aO, type Volatile as aP, type Watcher as aQ, type WatcherRecord as aR, getRaw as aS, getReactor as aT, getSnapshotVersion as aU, getVersion as aV, inert as aW, intent as aX, isInert as aY, isIntent as aZ, isVolatile as a_, INERTIA as aa, type Intent as ab, type Listener as ac, type ListenerOptions as ad, type ListenerOptionsTuple as ae, type ListenerRecord as af, type Live as ag, type MaxDepth as ah, NIL as ai, NOOP as aj, type NextDepth as ak, type NoTraverse as al, type PathBranch as am, type PathBranchValue as an, type PathDepth as ao, type PathKey as ap, type PathLeaf as aq, type PrevDepth as ar, type Primitive as as, type Pure as at, RAW as au, REJECTABLE as av, RTR_BATCH as aw, RTR_LOG as ax, type ReactivePreferences as ay, ReactorEvent as az, type ReactorModuleId as b, methods as b0, reactive as b1, stable as b2, state as b3, volatile as b4, type ReactorModulePathConfig as c, Reactor as d, type REvent as e, type Payload as f, arrRegex as g, canHandle as h, createReactorSync as i, deepClone as j, deletePath as k, fanout as l, fanoutOptsArr as m, force as n, getDepth as o, getPath as p, getPaths as q, getTrailRecords as r, hasPath as s, isLeafPath as t, isObj as u, isPOJO as v, withTracker as w, matchPaths as x, mergeObjs as y, nuke as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Paths, a as PathValue, b as ReactorModuleId, c as ReactorModulePathConfig, B as BaseReactorModule, T as Transaction, d as Reactor, e as REvent, f as Payload } from './index-
|
|
1
|
+
import { P as Paths, a as PathValue, b as ReactorModuleId, c as ReactorModulePathConfig, B as BaseReactorModule, T as Transaction, d as Reactor, e as REvent, f as Payload } from './index-BsH8KkqG.js';
|
|
2
2
|
|
|
3
3
|
interface StorageAdapterConstructor<Config extends StorageAdapterConfig = StorageAdapterConfig> {
|
|
4
4
|
new (config?: Partial<Config>): StorageAdapter<any, Config>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Paths, a as PathValue, b as ReactorModuleId, c as ReactorModulePathConfig, B as BaseReactorModule, T as Transaction, d as Reactor, e as REvent, f as Payload } from './index-
|
|
1
|
+
import { P as Paths, a as PathValue, b as ReactorModuleId, c as ReactorModulePathConfig, B as BaseReactorModule, T as Transaction, d as Reactor, e as REvent, f as Payload } from './index-BsH8KkqG.cjs';
|
|
2
2
|
|
|
3
3
|
interface StorageAdapterConstructor<Config extends StorageAdapterConfig = StorageAdapterConfig> {
|
|
4
4
|
new (config?: Partial<Config>): StorageAdapter<any, Config>;
|
package/dist/index.cjs
CHANGED
|
@@ -72,7 +72,7 @@ try {
|
|
|
72
72
|
isDevEnv = process.env.NODE_ENV !== "production";
|
|
73
73
|
} catch (e) {
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var CTX_BUILD = {
|
|
76
76
|
/** Flag indicating whether the application is running in development mode. */
|
|
77
77
|
isDevEnv,
|
|
78
78
|
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
@@ -93,6 +93,7 @@ var CTX = {
|
|
|
93
93
|
batchingFunction: RTR_BATCH
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
+
var CTX = globalThis[/* @__PURE__ */ Symbol.for("S.I.A_CTX")] ??= CTX_BUILD;
|
|
96
97
|
|
|
97
98
|
// src/ts/core/mixins.ts
|
|
98
99
|
var methods = ["tick", "stall", "nostall", "get", "gonce", "noget", "set", "sonce", "noset", "delete", "donce", "nodelete", "watch", "wonce", "nowatch", "on", "once", "off", "snapshot", "use", "reset", "destroy"];
|
package/dist/index.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { V as APIKey, X as AddDepth, Y as CTX, Z as ChildPaths, _ as DeepKeys, $ as DeepMerge, a0 as DeepPartial, K as DeepReadonly, a1 as DeepRequired, a2 as Deleter, a3 as DeleterRecord, a4 as DepthConfig, a5 as DirectPayload, a6 as EVT_OPTS, E as EffectOptions, a7 as Getter, a8 as GetterRecord, a9 as INDIFFABLE, aa as INERTIA, L as Inert, ab as Intent, ac as Listener, ad as ListenerOptions, ae as ListenerOptionsTuple, af as ListenerRecord, ag as Live, ah as MaxDepth, ai as NIL, aj as NOOP, ak as NextDepth, al as NoTraverse, am as PathBranch, an as PathBranchValue, ao as PathDepth, ap as PathKey, aq as PathLeaf, a as PathValue, P as Paths, f as Payload, ar as PrevDepth, as as Primitive, at as Pure, au as RAW, av as REJECTABLE, e as REvent, aw as RTR_BATCH, ax as RTR_LOG, R as Reactive, ay as ReactivePreferences, d as Reactor, J as ReactorBuild, az as ReactorEvent, aA as SSVERSION, aB as Setter, aC as SetterRecord, aD as Stable, aE as State, aF as StrictPathKey, aG as SubtractDepth, aH as SyncOptions, aI as SyncOptionsTuple, aJ as TERMINATOR, aK as Target, aL as Unflatten, aM as UnionToIntersection, aN as UpdatePayload, aO as VERSION, aP as Volatile, aQ as Watcher, aR as WatcherRecord, W as WildPaths, aS as getRaw, aT as getReactor, aU as getSnapshotVersion, aV as getVersion, aW as inert, aX as intent, aY as isInert, aZ as isIntent, a_ as isVolatile, a$ as live, b0 as methods, b1 as reactive, b2 as stable, b3 as state, b4 as volatile } from './index-
|
|
1
|
+
export { V as APIKey, X as AddDepth, Y as CTX, Z as ChildPaths, _ as DeepKeys, $ as DeepMerge, a0 as DeepPartial, K as DeepReadonly, a1 as DeepRequired, a2 as Deleter, a3 as DeleterRecord, a4 as DepthConfig, a5 as DirectPayload, a6 as EVT_OPTS, E as EffectOptions, a7 as Getter, a8 as GetterRecord, a9 as INDIFFABLE, aa as INERTIA, L as Inert, ab as Intent, ac as Listener, ad as ListenerOptions, ae as ListenerOptionsTuple, af as ListenerRecord, ag as Live, ah as MaxDepth, ai as NIL, aj as NOOP, ak as NextDepth, al as NoTraverse, am as PathBranch, an as PathBranchValue, ao as PathDepth, ap as PathKey, aq as PathLeaf, a as PathValue, P as Paths, f as Payload, ar as PrevDepth, as as Primitive, at as Pure, au as RAW, av as REJECTABLE, e as REvent, aw as RTR_BATCH, ax as RTR_LOG, R as Reactive, ay as ReactivePreferences, d as Reactor, J as ReactorBuild, az as ReactorEvent, aA as SSVERSION, aB as Setter, aC as SetterRecord, aD as Stable, aE as State, aF as StrictPathKey, aG as SubtractDepth, aH as SyncOptions, aI as SyncOptionsTuple, aJ as TERMINATOR, aK as Target, aL as Unflatten, aM as UnionToIntersection, aN as UpdatePayload, aO as VERSION, aP as Volatile, aQ as Watcher, aR as WatcherRecord, W as WildPaths, aS as getRaw, aT as getReactor, aU as getSnapshotVersion, aV as getVersion, aW as inert, aX as intent, aY as isInert, aZ as isIntent, a_ as isVolatile, a$ as live, b0 as methods, b1 as reactive, b2 as stable, b3 as state, b4 as volatile } from './index-BsH8KkqG.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { V as APIKey, X as AddDepth, Y as CTX, Z as ChildPaths, _ as DeepKeys, $ as DeepMerge, a0 as DeepPartial, K as DeepReadonly, a1 as DeepRequired, a2 as Deleter, a3 as DeleterRecord, a4 as DepthConfig, a5 as DirectPayload, a6 as EVT_OPTS, E as EffectOptions, a7 as Getter, a8 as GetterRecord, a9 as INDIFFABLE, aa as INERTIA, L as Inert, ab as Intent, ac as Listener, ad as ListenerOptions, ae as ListenerOptionsTuple, af as ListenerRecord, ag as Live, ah as MaxDepth, ai as NIL, aj as NOOP, ak as NextDepth, al as NoTraverse, am as PathBranch, an as PathBranchValue, ao as PathDepth, ap as PathKey, aq as PathLeaf, a as PathValue, P as Paths, f as Payload, ar as PrevDepth, as as Primitive, at as Pure, au as RAW, av as REJECTABLE, e as REvent, aw as RTR_BATCH, ax as RTR_LOG, R as Reactive, ay as ReactivePreferences, d as Reactor, J as ReactorBuild, az as ReactorEvent, aA as SSVERSION, aB as Setter, aC as SetterRecord, aD as Stable, aE as State, aF as StrictPathKey, aG as SubtractDepth, aH as SyncOptions, aI as SyncOptionsTuple, aJ as TERMINATOR, aK as Target, aL as Unflatten, aM as UnionToIntersection, aN as UpdatePayload, aO as VERSION, aP as Volatile, aQ as Watcher, aR as WatcherRecord, W as WildPaths, aS as getRaw, aT as getReactor, aU as getSnapshotVersion, aV as getVersion, aW as inert, aX as intent, aY as isInert, aZ as isIntent, a_ as isVolatile, a$ as live, b0 as methods, b1 as reactive, b2 as stable, b3 as state, b4 as volatile } from './index-
|
|
1
|
+
export { V as APIKey, X as AddDepth, Y as CTX, Z as ChildPaths, _ as DeepKeys, $ as DeepMerge, a0 as DeepPartial, K as DeepReadonly, a1 as DeepRequired, a2 as Deleter, a3 as DeleterRecord, a4 as DepthConfig, a5 as DirectPayload, a6 as EVT_OPTS, E as EffectOptions, a7 as Getter, a8 as GetterRecord, a9 as INDIFFABLE, aa as INERTIA, L as Inert, ab as Intent, ac as Listener, ad as ListenerOptions, ae as ListenerOptionsTuple, af as ListenerRecord, ag as Live, ah as MaxDepth, ai as NIL, aj as NOOP, ak as NextDepth, al as NoTraverse, am as PathBranch, an as PathBranchValue, ao as PathDepth, ap as PathKey, aq as PathLeaf, a as PathValue, P as Paths, f as Payload, ar as PrevDepth, as as Primitive, at as Pure, au as RAW, av as REJECTABLE, e as REvent, aw as RTR_BATCH, ax as RTR_LOG, R as Reactive, ay as ReactivePreferences, d as Reactor, J as ReactorBuild, az as ReactorEvent, aA as SSVERSION, aB as Setter, aC as SetterRecord, aD as Stable, aE as State, aF as StrictPathKey, aG as SubtractDepth, aH as SyncOptions, aI as SyncOptionsTuple, aJ as TERMINATOR, aK as Target, aL as Unflatten, aM as UnionToIntersection, aN as UpdatePayload, aO as VERSION, aP as Volatile, aQ as Watcher, aR as WatcherRecord, W as WildPaths, aS as getRaw, aT as getReactor, aU as getSnapshotVersion, aV as getVersion, aW as inert, aX as intent, aY as isInert, aZ as isIntent, a_ as isVolatile, a$ as live, b0 as methods, b1 as reactive, b2 as stable, b3 as state, b4 as volatile } from './index-BsH8KkqG.js';
|
package/dist/index.js
CHANGED
package/dist/modules.cjs
CHANGED
|
@@ -66,7 +66,7 @@ try {
|
|
|
66
66
|
isDevEnv = process.env.NODE_ENV !== "production";
|
|
67
67
|
} catch (e) {
|
|
68
68
|
}
|
|
69
|
-
var
|
|
69
|
+
var CTX_BUILD = {
|
|
70
70
|
/** Flag indicating whether the application is running in development mode. */
|
|
71
71
|
isDevEnv,
|
|
72
72
|
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
@@ -87,6 +87,7 @@ var CTX = {
|
|
|
87
87
|
batchingFunction: RTR_BATCH
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
|
+
var CTX = globalThis[/* @__PURE__ */ Symbol.for("S.I.A_CTX")] ??= CTX_BUILD;
|
|
90
91
|
|
|
91
92
|
// src/ts/modules/timeTravel/transaction.ts
|
|
92
93
|
var txId = 0;
|
package/dist/modules.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as Paths, c as ReactorModulePathConfig, L as Inert, F as FanoutOptionsTuple, B as BaseReactorModule, b as ReactorModuleId, d as Reactor, e as REvent } from './index-
|
|
2
|
-
export { M as ModulePaths, N as ReactorModuleConstructor, T as Transaction, O as endTx, Q as startTx, S as transaction, U as txId } from './index-
|
|
3
|
-
import { S as StorageAdapterConfig, a as StorageAdapter, J as JSONReviver, b as JSONReplacer, A as AsyncStorageAdapter, c as StorageAdapterConstructor, d as AsyncStorageAdapterConstructor, e as TimeTravelConfig, H as HistoryEntry, f as HistoryNode } from './index-
|
|
4
|
-
export { B as BaseStorageAdapter, g as HistoryTransaction, T as TimeTravelModule, h as TimeTravelState } from './index-
|
|
1
|
+
import { P as Paths, c as ReactorModulePathConfig, L as Inert, F as FanoutOptionsTuple, B as BaseReactorModule, b as ReactorModuleId, d as Reactor, e as REvent } from './index-BsH8KkqG.cjs';
|
|
2
|
+
export { M as ModulePaths, N as ReactorModuleConstructor, T as Transaction, O as endTx, Q as startTx, S as transaction, U as txId } from './index-BsH8KkqG.cjs';
|
|
3
|
+
import { S as StorageAdapterConfig, a as StorageAdapter, J as JSONReviver, b as JSONReplacer, A as AsyncStorageAdapter, c as StorageAdapterConstructor, d as AsyncStorageAdapterConstructor, e as TimeTravelConfig, H as HistoryEntry, f as HistoryNode } from './index-DBx4TIVW.cjs';
|
|
4
|
+
export { B as BaseStorageAdapter, g as HistoryTransaction, T as TimeTravelModule, h as TimeTravelState } from './index-DBx4TIVW.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* - The LocalStorage Adapter (~5MB per origin, browser-dependent).
|
package/dist/modules.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as Paths, c as ReactorModulePathConfig, L as Inert, F as FanoutOptionsTuple, B as BaseReactorModule, b as ReactorModuleId, d as Reactor, e as REvent } from './index-
|
|
2
|
-
export { M as ModulePaths, N as ReactorModuleConstructor, T as Transaction, O as endTx, Q as startTx, S as transaction, U as txId } from './index-
|
|
3
|
-
import { S as StorageAdapterConfig, a as StorageAdapter, J as JSONReviver, b as JSONReplacer, A as AsyncStorageAdapter, c as StorageAdapterConstructor, d as AsyncStorageAdapterConstructor, e as TimeTravelConfig, H as HistoryEntry, f as HistoryNode } from './index-
|
|
4
|
-
export { B as BaseStorageAdapter, g as HistoryTransaction, T as TimeTravelModule, h as TimeTravelState } from './index-
|
|
1
|
+
import { P as Paths, c as ReactorModulePathConfig, L as Inert, F as FanoutOptionsTuple, B as BaseReactorModule, b as ReactorModuleId, d as Reactor, e as REvent } from './index-BsH8KkqG.js';
|
|
2
|
+
export { M as ModulePaths, N as ReactorModuleConstructor, T as Transaction, O as endTx, Q as startTx, S as transaction, U as txId } from './index-BsH8KkqG.js';
|
|
3
|
+
import { S as StorageAdapterConfig, a as StorageAdapter, J as JSONReviver, b as JSONReplacer, A as AsyncStorageAdapter, c as StorageAdapterConstructor, d as AsyncStorageAdapterConstructor, e as TimeTravelConfig, H as HistoryEntry, f as HistoryNode } from './index-D4DGBS2N.js';
|
|
4
|
+
export { B as BaseStorageAdapter, g as HistoryTransaction, T as TimeTravelModule, h as TimeTravelState } from './index-D4DGBS2N.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* - The LocalStorage Adapter (~5MB per origin, browser-dependent).
|
package/dist/modules.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-JGEI2Q4M.js";
|
|
6
6
|
import {
|
|
7
7
|
BaseReactorModule
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FOD32N6J.js";
|
|
9
9
|
import "./chunk-ORK3EGB6.js";
|
|
10
10
|
import {
|
|
11
11
|
CTX,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
transaction,
|
|
28
28
|
txId,
|
|
29
29
|
withMeta
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-DCUPDG7B.js";
|
|
31
31
|
|
|
32
32
|
// src/ts/modules/persist/storage/base/index.ts
|
|
33
33
|
var BaseStorageAdapter = class {
|
package/dist/super.d.ts
CHANGED
|
@@ -1344,8 +1344,7 @@ declare const EVT_OPTS: {
|
|
|
1344
1344
|
declare const NIL: any;
|
|
1345
1345
|
/** Shared no-operation function. */
|
|
1346
1346
|
declare const NOOP: () => void;
|
|
1347
|
-
|
|
1348
|
-
declare const CTX: {
|
|
1347
|
+
declare const CTX_BUILD: {
|
|
1349
1348
|
/** Flag indicating whether the application is running in development mode. */
|
|
1350
1349
|
isDevEnv: boolean;
|
|
1351
1350
|
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
@@ -1357,6 +1356,8 @@ declare const CTX: {
|
|
|
1357
1356
|
/** Default configuration for new `Reactor` instances and also fallback for utils that need and are called without these options. */
|
|
1358
1357
|
defaults: Partial<ReactorBuild<any>>;
|
|
1359
1358
|
};
|
|
1359
|
+
/** Global context object for sharing state across the reactor runtime. */
|
|
1360
|
+
declare const CTX: typeof CTX_BUILD;
|
|
1360
1361
|
|
|
1361
1362
|
declare function clamp(min: number | undefined, val: number, max?: number): number;
|
|
1362
1363
|
|
package/dist/super.global.js
CHANGED
|
@@ -75,7 +75,7 @@ var sia = (() => {
|
|
|
75
75
|
isDevEnv = process.env.NODE_ENV !== "production";
|
|
76
76
|
} catch (e) {
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var CTX_BUILD = {
|
|
79
79
|
/** Flag indicating whether the application is running in development mode. */
|
|
80
80
|
isDevEnv,
|
|
81
81
|
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
@@ -96,6 +96,7 @@ var sia = (() => {
|
|
|
96
96
|
batchingFunction: RTR_BATCH
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
+
var CTX = globalThis[/* @__PURE__ */ Symbol.for("S.I.A_CTX")] ??= CTX_BUILD;
|
|
99
100
|
|
|
100
101
|
// src/ts/core/mixins.ts
|
|
101
102
|
var methods = ["tick", "stall", "nostall", "get", "gonce", "noget", "set", "sonce", "noset", "delete", "donce", "nodelete", "watch", "wonce", "nowatch", "on", "once", "off", "snapshot", "use", "reset", "destroy"];
|
package/dist/utils.cjs
CHANGED
|
@@ -87,7 +87,7 @@ try {
|
|
|
87
87
|
isDevEnv = process.env.NODE_ENV !== "production";
|
|
88
88
|
} catch (e) {
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var CTX_BUILD = {
|
|
91
91
|
/** Flag indicating whether the application is running in development mode. */
|
|
92
92
|
isDevEnv,
|
|
93
93
|
/** Flag indicating whether an operation is bypassing checks so reactors can allow all writes. */
|
|
@@ -108,6 +108,7 @@ var CTX = {
|
|
|
108
108
|
batchingFunction: RTR_BATCH
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
+
var CTX = globalThis[/* @__PURE__ */ Symbol.for("S.I.A_CTX")] ??= CTX_BUILD;
|
|
111
112
|
|
|
112
113
|
// src/ts/core/event.ts
|
|
113
114
|
var ReactorEvent = class _ReactorEvent {
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FanoutOptionsTuple, g as arrRegex, h as canHandle, i as createReactorSync, j as deepClone, k as deletePath, l as fanout, m as fanoutOptsArr, n as force, o as getDepth, p as getPath, q as getPaths, r as getTrailRecords, s as hasPath, t as isLeafPath, u as isObj, v as isPOJO, x as matchPaths, y as mergeObjs, z as nuke, C as parseEvtOpts, D as parsePathObj, G as resetMeta, H as setPath, I as withMeta } from './index-
|
|
1
|
+
export { F as FanoutOptionsTuple, g as arrRegex, h as canHandle, i as createReactorSync, j as deepClone, k as deletePath, l as fanout, m as fanoutOptsArr, n as force, o as getDepth, p as getPath, q as getPaths, r as getTrailRecords, s as hasPath, t as isLeafPath, u as isObj, v as isPOJO, x as matchPaths, y as mergeObjs, z as nuke, C as parseEvtOpts, D as parsePathObj, G as resetMeta, H as setPath, I as withMeta } from './index-BsH8KkqG.cjs';
|
|
2
2
|
|
|
3
3
|
declare function clamp(min: number | undefined, val: number, max?: number): number;
|
|
4
4
|
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FanoutOptionsTuple, g as arrRegex, h as canHandle, i as createReactorSync, j as deepClone, k as deletePath, l as fanout, m as fanoutOptsArr, n as force, o as getDepth, p as getPath, q as getPaths, r as getTrailRecords, s as hasPath, t as isLeafPath, u as isObj, v as isPOJO, x as matchPaths, y as mergeObjs, z as nuke, C as parseEvtOpts, D as parsePathObj, G as resetMeta, H as setPath, I as withMeta } from './index-
|
|
1
|
+
export { F as FanoutOptionsTuple, g as arrRegex, h as canHandle, i as createReactorSync, j as deepClone, k as deletePath, l as fanout, m as fanoutOptsArr, n as force, o as getDepth, p as getPath, q as getPaths, r as getTrailRecords, s as hasPath, t as isLeafPath, u as isObj, v as isPOJO, x as matchPaths, y as mergeObjs, z as nuke, C as parseEvtOpts, D as parsePathObj, G as resetMeta, H as setPath, I as withMeta } from './index-BsH8KkqG.js';
|
|
2
2
|
|
|
3
3
|
declare function clamp(min: number | undefined, val: number, max?: number): number;
|
|
4
4
|
|
package/dist/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sia-reactor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"description": "The Programmable Data DOM. A high-performance State & Intent Architecture (S.I.A.) engine that gives your data transactional mutation routing and multi-phase state observation.",
|
|
5
5
|
"author": "Oketade Oluwatobiloba <tobioketade007@gmail.com>",
|
|
6
6
|
"license": "MIT",
|