sia-reactor 0.0.17 → 0.0.19
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/adapters/react.d.cts +1 -1
- package/dist/adapters/react.d.ts +1 -1
- package/dist/adapters/vanilla.d.cts +2 -2
- package/dist/adapters/vanilla.d.ts +2 -2
- package/dist/{index-jlxXiocy.d.cts → index-C2hyIh0K.d.cts} +3 -3
- package/dist/{index-jlxXiocy.d.ts → index-C2hyIh0K.d.ts} +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/plugins.d.cts +3 -3
- package/dist/plugins.d.ts +3 -3
- package/dist/super.d.ts +1508 -0
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLayoutEffect } from 'react';
|
|
2
|
-
import { E as EffectOptions, R as Reactor, l as Reactive, W as WildPaths, o as PathValue } from '../index-
|
|
2
|
+
import { E as EffectOptions, R as Reactor, l as Reactive, W as WildPaths, o as PathValue } from '../index-C2hyIh0K.cjs';
|
|
3
3
|
|
|
4
4
|
/** Isomorphic layout effect alias (`useLayoutEffect` in browser, `useEffect` otherwise). */
|
|
5
5
|
declare const useISOLayoutEffect: typeof useLayoutEffect;
|
package/dist/adapters/react.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLayoutEffect } from 'react';
|
|
2
|
-
import { E as EffectOptions, R as Reactor, l as Reactive, W as WildPaths, o as PathValue } from '../index-
|
|
2
|
+
import { E as EffectOptions, R as Reactor, l as Reactive, W as WildPaths, o as PathValue } from '../index-C2hyIh0K.js';
|
|
3
3
|
|
|
4
4
|
/** Isomorphic layout effect alias (`useLayoutEffect` in browser, `useEffect` otherwise). */
|
|
5
5
|
declare const useISOLayoutEffect: typeof useLayoutEffect;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as EffectOptions } from '../index-
|
|
2
|
-
export { A as Autotracker, w as withTracker } from '../index-
|
|
1
|
+
import { E as EffectOptions } from '../index-C2hyIh0K.cjs';
|
|
2
|
+
export { A as Autotracker, w as withTracker } from '../index-C2hyIh0K.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Runs a reactive side effect in vanilla JavaScript.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as EffectOptions } from '../index-
|
|
2
|
-
export { A as Autotracker, w as withTracker } from '../index-
|
|
1
|
+
import { E as EffectOptions } from '../index-C2hyIh0K.js';
|
|
2
|
+
export { A as Autotracker, w as withTracker } from '../index-C2hyIh0K.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Runs a reactive side effect in vanilla JavaScript.
|
|
@@ -724,8 +724,8 @@ declare abstract class BaseReactorPlugin<T extends object = any, Config = any, S
|
|
|
724
724
|
get name(): string;
|
|
725
725
|
protected ac: AbortController;
|
|
726
726
|
readonly signal: AbortSignal;
|
|
727
|
-
|
|
728
|
-
|
|
727
|
+
rtr: Reactor<T>;
|
|
728
|
+
config: Config extends object ? Reactive<Config> : Config;
|
|
729
729
|
state: State extends object ? Reactive<State> : State;
|
|
730
730
|
constructor(config?: Config, rtr?: Reactor<T>, state?: State);
|
|
731
731
|
/** Entry point called to initialize plugin wiring. */
|
|
@@ -1065,4 +1065,4 @@ declare const NIL: any;
|
|
|
1065
1065
|
/** Shared no-operation function. */
|
|
1066
1066
|
declare const NOOP: () => void;
|
|
1067
1067
|
|
|
1068
|
-
export {
|
|
1068
|
+
export { type Payload as $, Autotracker as A, BaseReactorPlugin as B, CTX as C, type DeepKeys as D, type EffectOptions as E, EVT_WARN as F, type Getter as G, type GetterRecord as H, type Inert as I, INDIFFABLE as J, INERTIA as K, type Intent as L, type Listener as M, type ListenerOptions as N, type ListenerOptionsTuple as O, type Paths as P, type ListenerRecord as Q, Reactor as R, type Live as S, NIL as T, NOOP as U, type NoTraverse as V, type WildPaths as W, type PathBranch as X, type PathBranchValue as Y, type PathKey as Z, type PathLeaf as _, type REvent as a, type Primitive as a0, RAW as a1, REJECTABLE as a2, RTR_BATCH as a3, RTR_LOG as a4, type ReactivePreferences as a5, type ReactorBuild as a6, ReactorEvent as a7, SSVERSION as a8, type Setter as a9, stable as aA, state as aB, volatile as aC, type SetterRecord as aa, type Stable as ab, type State as ac, type StrictPathKey as ad, type SyncOptions as ae, type SyncOptionsTuple as af, TERMINATOR as ag, type Target as ah, type Unflatten as ai, type UnionToIntersection as aj, type UpdatePayload as ak, VERSION as al, type Volatile as am, type Watcher as an, type WatcherRecord as ao, getRaw as ap, getSnapshotVersion as aq, getVersion as ar, inert as as, intent as at, isInert as au, isIntent as av, isVolatile as aw, live as ax, methods as ay, reactive as az, type ReactorPluginConstructor as b, canHandle as c, deepClone as d, deleteAny as e, getTrailRecords as f, getAny as g, isObj as h, inAny as i, isPOJO as j, parseEvtOpts as k, type Reactive as l, mergeObjs as m, nuke as n, type PathValue as o, parseAnyObj as p, type ChildPaths as q, type DeepMerge as r, setAny as s, type DeepPartial as t, type DeepRequired as u, type Deleter as v, withTracker as w, type DeleterRecord as x, type DirectPayload as y, EVT_OPTS as z };
|
|
@@ -724,8 +724,8 @@ declare abstract class BaseReactorPlugin<T extends object = any, Config = any, S
|
|
|
724
724
|
get name(): string;
|
|
725
725
|
protected ac: AbortController;
|
|
726
726
|
readonly signal: AbortSignal;
|
|
727
|
-
|
|
728
|
-
|
|
727
|
+
rtr: Reactor<T>;
|
|
728
|
+
config: Config extends object ? Reactive<Config> : Config;
|
|
729
729
|
state: State extends object ? Reactive<State> : State;
|
|
730
730
|
constructor(config?: Config, rtr?: Reactor<T>, state?: State);
|
|
731
731
|
/** Entry point called to initialize plugin wiring. */
|
|
@@ -1065,4 +1065,4 @@ declare const NIL: any;
|
|
|
1065
1065
|
/** Shared no-operation function. */
|
|
1066
1066
|
declare const NOOP: () => void;
|
|
1067
1067
|
|
|
1068
|
-
export {
|
|
1068
|
+
export { type Payload as $, Autotracker as A, BaseReactorPlugin as B, CTX as C, type DeepKeys as D, type EffectOptions as E, EVT_WARN as F, type Getter as G, type GetterRecord as H, type Inert as I, INDIFFABLE as J, INERTIA as K, type Intent as L, type Listener as M, type ListenerOptions as N, type ListenerOptionsTuple as O, type Paths as P, type ListenerRecord as Q, Reactor as R, type Live as S, NIL as T, NOOP as U, type NoTraverse as V, type WildPaths as W, type PathBranch as X, type PathBranchValue as Y, type PathKey as Z, type PathLeaf as _, type REvent as a, type Primitive as a0, RAW as a1, REJECTABLE as a2, RTR_BATCH as a3, RTR_LOG as a4, type ReactivePreferences as a5, type ReactorBuild as a6, ReactorEvent as a7, SSVERSION as a8, type Setter as a9, stable as aA, state as aB, volatile as aC, type SetterRecord as aa, type Stable as ab, type State as ac, type StrictPathKey as ad, type SyncOptions as ae, type SyncOptionsTuple as af, TERMINATOR as ag, type Target as ah, type Unflatten as ai, type UnionToIntersection as aj, type UpdatePayload as ak, VERSION as al, type Volatile as am, type Watcher as an, type WatcherRecord as ao, getRaw as ap, getSnapshotVersion as aq, getVersion as ar, inert as as, intent as at, isInert as au, isIntent as av, isVolatile as aw, live as ax, methods as ay, reactive as az, type ReactorPluginConstructor as b, canHandle as c, deepClone as d, deleteAny as e, getTrailRecords as f, getAny as g, isObj as h, inAny as i, isPOJO as j, parseEvtOpts as k, type Reactive as l, mergeObjs as m, nuke as n, type PathValue as o, parseAnyObj as p, type ChildPaths as q, type DeepMerge as r, setAny as s, type DeepPartial as t, type DeepRequired as u, type Deleter as v, withTracker as w, type DeleterRecord as x, type DirectPayload as y, EVT_OPTS as z };
|
package/dist/index.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CTX, q as ChildPaths, D as DeepKeys, r as DeepMerge, t as DeepPartial, u as DeepRequired, v as Deleter, x as DeleterRecord, y as DirectPayload, z as EVT_OPTS, F as EVT_WARN, E as EffectOptions, G as Getter, H as GetterRecord,
|
|
1
|
+
export { C as CTX, q as ChildPaths, D as DeepKeys, r as DeepMerge, t as DeepPartial, u as DeepRequired, v as Deleter, x as DeleterRecord, y as DirectPayload, z as EVT_OPTS, F as EVT_WARN, E as EffectOptions, G as Getter, H as GetterRecord, J as INDIFFABLE, K as INERTIA, I as Inert, L as Intent, M as Listener, N as ListenerOptions, O as ListenerOptionsTuple, Q as ListenerRecord, S as Live, T as NIL, U as NOOP, V as NoTraverse, X as PathBranch, Y as PathBranchValue, Z as PathKey, _ as PathLeaf, o as PathValue, P as Paths, $ as Payload, a0 as Primitive, a1 as RAW, a2 as REJECTABLE, a as REvent, a3 as RTR_BATCH, a4 as RTR_LOG, l as Reactive, a5 as ReactivePreferences, R as Reactor, a6 as ReactorBuild, a7 as ReactorEvent, a8 as SSVERSION, a9 as Setter, aa as SetterRecord, ab as Stable, ac as State, ad as StrictPathKey, ae as SyncOptions, af as SyncOptionsTuple, ag as TERMINATOR, ah as Target, ai as Unflatten, aj as UnionToIntersection, ak as UpdatePayload, al as VERSION, am as Volatile, an as Watcher, ao as WatcherRecord, W as WildPaths, ap as getRaw, aq as getSnapshotVersion, ar as getVersion, as as inert, at as intent, au as isInert, av as isIntent, aw as isVolatile, ax as live, ay as methods, az as reactive, aA as stable, aB as state, aC as volatile } from './index-C2hyIh0K.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CTX, q as ChildPaths, D as DeepKeys, r as DeepMerge, t as DeepPartial, u as DeepRequired, v as Deleter, x as DeleterRecord, y as DirectPayload, z as EVT_OPTS, F as EVT_WARN, E as EffectOptions, G as Getter, H as GetterRecord,
|
|
1
|
+
export { C as CTX, q as ChildPaths, D as DeepKeys, r as DeepMerge, t as DeepPartial, u as DeepRequired, v as Deleter, x as DeleterRecord, y as DirectPayload, z as EVT_OPTS, F as EVT_WARN, E as EffectOptions, G as Getter, H as GetterRecord, J as INDIFFABLE, K as INERTIA, I as Inert, L as Intent, M as Listener, N as ListenerOptions, O as ListenerOptionsTuple, Q as ListenerRecord, S as Live, T as NIL, U as NOOP, V as NoTraverse, X as PathBranch, Y as PathBranchValue, Z as PathKey, _ as PathLeaf, o as PathValue, P as Paths, $ as Payload, a0 as Primitive, a1 as RAW, a2 as REJECTABLE, a as REvent, a3 as RTR_BATCH, a4 as RTR_LOG, l as Reactive, a5 as ReactivePreferences, R as Reactor, a6 as ReactorBuild, a7 as ReactorEvent, a8 as SSVERSION, a9 as Setter, aa as SetterRecord, ab as Stable, ac as State, ad as StrictPathKey, ae as SyncOptions, af as SyncOptionsTuple, ag as TERMINATOR, ah as Target, ai as Unflatten, aj as UnionToIntersection, ak as UpdatePayload, al as VERSION, am as Volatile, an as Watcher, ao as WatcherRecord, W as WildPaths, ap as getRaw, aq as getSnapshotVersion, ar as getVersion, as as inert, at as intent, au as isInert, av as isIntent, aw as isVolatile, ax as live, ay as methods, az as reactive, aA as stable, aB as state, aC as volatile } from './index-C2hyIh0K.js';
|
package/dist/plugins.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Paths, B as BaseReactorPlugin, R as Reactor, a as REvent } from './index-
|
|
2
|
-
export { b as ReactorPluginConstructor } from './index-
|
|
1
|
+
import { P as Paths, I as Inert, B as BaseReactorPlugin, R as Reactor, a as REvent } from './index-C2hyIh0K.cjs';
|
|
2
|
+
export { b as ReactorPluginConstructor } from './index-C2hyIh0K.cjs';
|
|
3
3
|
|
|
4
4
|
interface StorageAdapterConfig {
|
|
5
5
|
debug: boolean;
|
|
@@ -81,7 +81,7 @@ interface PersistConfig<T extends object> {
|
|
|
81
81
|
/** Specific paths only, no "*"; instead don't pass anything */
|
|
82
82
|
paths: Paths<T>[];
|
|
83
83
|
/** Storage adapter class or instance to use, can satisfy `instanceof` or just definition, cast to `any` if the latter */
|
|
84
|
-
adapter: StorageAdapter | AsyncStorageAdapter | StorageAdapterConstructor | AsyncStorageAdapterConstructor
|
|
84
|
+
adapter: Inert<StorageAdapter> | Inert<AsyncStorageAdapter> | Inert<StorageAdapterConstructor> | Inert<AsyncStorageAdapterConstructor>;
|
|
85
85
|
/** Throttle time for saving changes */
|
|
86
86
|
throttle: number;
|
|
87
87
|
/** Whether to use a clone of the state from `rtr.snapshot()`, incase store doesn't understand proxies */
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Paths, B as BaseReactorPlugin, R as Reactor, a as REvent } from './index-
|
|
2
|
-
export { b as ReactorPluginConstructor } from './index-
|
|
1
|
+
import { P as Paths, I as Inert, B as BaseReactorPlugin, R as Reactor, a as REvent } from './index-C2hyIh0K.js';
|
|
2
|
+
export { b as ReactorPluginConstructor } from './index-C2hyIh0K.js';
|
|
3
3
|
|
|
4
4
|
interface StorageAdapterConfig {
|
|
5
5
|
debug: boolean;
|
|
@@ -81,7 +81,7 @@ interface PersistConfig<T extends object> {
|
|
|
81
81
|
/** Specific paths only, no "*"; instead don't pass anything */
|
|
82
82
|
paths: Paths<T>[];
|
|
83
83
|
/** Storage adapter class or instance to use, can satisfy `instanceof` or just definition, cast to `any` if the latter */
|
|
84
|
-
adapter: StorageAdapter | AsyncStorageAdapter | StorageAdapterConstructor | AsyncStorageAdapterConstructor
|
|
84
|
+
adapter: Inert<StorageAdapter> | Inert<AsyncStorageAdapter> | Inert<StorageAdapterConstructor> | Inert<AsyncStorageAdapterConstructor>;
|
|
85
85
|
/** Throttle time for saving changes */
|
|
86
86
|
throttle: number;
|
|
87
87
|
/** Whether to use a clone of the state from `rtr.snapshot()`, incase store doesn't understand proxies */
|