atom.io 0.14.0 → 0.14.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/data/dist/index.cjs +1473 -52
- package/data/dist/index.cjs.map +1 -1
- package/data/dist/index.d.cts +315 -16
- package/data/dist/index.js +10 -267
- package/data/dist/index.js.map +1 -1
- package/data/package.json +5 -5
- package/data/src/join.ts +3 -3
- package/dist/chunk-5VJ77LZE.js +176 -0
- package/dist/chunk-5VJ77LZE.js.map +1 -0
- package/dist/chunk-CK7GNCU5.js +309 -0
- package/dist/chunk-CK7GNCU5.js.map +1 -0
- package/dist/chunk-KW7RA7IM.js +67 -0
- package/dist/chunk-KW7RA7IM.js.map +1 -0
- package/dist/chunk-LFXB7Y6M.js +68 -0
- package/dist/chunk-LFXB7Y6M.js.map +1 -0
- package/dist/chunk-NYCVSXQB.js +181 -0
- package/dist/chunk-NYCVSXQB.js.map +1 -0
- package/dist/chunk-TE3ZSTQ6.js +2516 -0
- package/dist/chunk-TE3ZSTQ6.js.map +1 -0
- package/dist/index.cjs +2244 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +268 -21
- package/dist/index.js +1 -152
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/internal/dist/index.cjs +208 -79
- package/internal/dist/index.cjs.map +1 -1
- package/internal/dist/index.d.cts +226 -27
- package/internal/dist/index.js +1 -2240
- package/internal/dist/index.js.map +1 -1
- package/internal/package.json +5 -5
- package/introspection/dist/index.cjs +1618 -46
- package/introspection/dist/index.cjs.map +1 -1
- package/introspection/dist/index.d.cts +374 -4
- package/introspection/dist/index.js +2 -316
- package/introspection/dist/index.js.map +1 -1
- package/introspection/package.json +5 -5
- package/json/dist/index.cjs +1560 -8
- package/json/dist/index.cjs.map +1 -1
- package/json/dist/index.d.cts +371 -7
- package/json/dist/index.js +1 -76
- package/json/dist/index.js.map +1 -1
- package/json/package.json +5 -5
- package/package.json +5 -4
- package/react/dist/index.cjs +1604 -14
- package/react/dist/index.cjs.map +1 -1
- package/react/dist/index.d.cts +375 -4
- package/react/dist/index.js +2 -68
- package/react/dist/index.js.map +1 -1
- package/react/package.json +5 -5
- package/react-devtools/dist/index.cjs +2268 -198
- package/react-devtools/dist/index.cjs.map +1 -1
- package/react-devtools/dist/index.css +2 -2
- package/react-devtools/dist/index.d.cts +148 -24
- package/react-devtools/dist/index.js +57 -297
- package/react-devtools/dist/index.js.map +1 -1
- package/react-devtools/package.json +5 -5
- package/realtime-client/dist/index.cjs +1585 -35
- package/realtime-client/dist/index.cjs.map +1 -1
- package/realtime-client/dist/index.d.cts +382 -12
- package/realtime-client/dist/index.js +2 -165
- package/realtime-client/dist/index.js.map +1 -1
- package/realtime-client/package.json +5 -5
- package/realtime-react/dist/index.cjs +1782 -35
- package/realtime-react/dist/index.cjs.map +1 -1
- package/realtime-react/dist/index.d.cts +49 -9
- package/realtime-react/dist/index.js +4 -66
- package/realtime-react/dist/index.js.map +1 -1
- package/realtime-react/package.json +5 -5
- package/realtime-server/dist/index.cjs +1604 -58
- package/realtime-server/dist/index.cjs.map +1 -1
- package/realtime-server/dist/index.d.cts +391 -11
- package/realtime-server/dist/index.js +27 -21
- package/realtime-server/dist/index.js.map +1 -1
- package/realtime-server/package.json +6 -6
- package/realtime-testing/dist/index.cjs +2352 -16
- package/realtime-testing/dist/index.cjs.map +1 -1
- package/realtime-testing/dist/index.d.cts +486 -3
- package/realtime-testing/dist/index.js +10 -31
- package/realtime-testing/dist/index.js.map +1 -1
- package/realtime-testing/package.json +5 -5
- package/transceivers/set-rtx/dist/index.cjs +31 -10
- package/transceivers/set-rtx/dist/index.cjs.map +1 -1
- package/transceivers/set-rtx/dist/index.d.cts +29 -3
- package/transceivers/set-rtx/dist/index.js +2 -3
- package/transceivers/set-rtx/dist/index.js.map +1 -1
- package/transceivers/set-rtx/package.json +6 -6
- package/data/dist/index.d.ts +0 -158
- package/data/dist/metafile-cjs.json +0 -1
- package/data/dist/metafile-esm.json +0 -1
- package/dist/index.d.ts +0 -243
- package/dist/metafile-esm.json +0 -1
- package/internal/dist/index.d.ts +0 -421
- package/internal/dist/metafile-cjs.json +0 -1
- package/internal/dist/metafile-esm.json +0 -1
- package/introspection/dist/index.d.ts +0 -24
- package/introspection/dist/metafile-cjs.json +0 -1
- package/introspection/dist/metafile-esm.json +0 -1
- package/json/dist/index.d.ts +0 -51
- package/json/dist/metafile-cjs.json +0 -1
- package/json/dist/metafile-esm.json +0 -1
- package/react/dist/index.d.ts +0 -23
- package/react/dist/metafile-cjs.json +0 -1
- package/react/dist/metafile-esm.json +0 -1
- package/react-devtools/dist/index.d.ts +0 -341
- package/react-devtools/dist/metafile-cjs.json +0 -1
- package/react-devtools/dist/metafile-esm.json +0 -1
- package/realtime-client/dist/index.d.ts +0 -22
- package/realtime-client/dist/metafile-cjs.json +0 -1
- package/realtime-client/dist/metafile-esm.json +0 -1
- package/realtime-react/dist/index.d.ts +0 -27
- package/realtime-react/dist/metafile-cjs.json +0 -1
- package/realtime-react/dist/metafile-esm.json +0 -1
- package/realtime-server/dist/index.d.ts +0 -25
- package/realtime-server/dist/metafile-cjs.json +0 -1
- package/realtime-server/dist/metafile-esm.json +0 -1
- package/realtime-testing/dist/index.d.ts +0 -49
- package/realtime-testing/dist/metafile-cjs.json +0 -1
- package/realtime-testing/dist/metafile-esm.json +0 -1
- package/transceivers/set-rtx/dist/index.d.ts +0 -40
- package/transceivers/set-rtx/dist/metafile-cjs.json +0 -1
- package/transceivers/set-rtx/dist/metafile-esm.json +0 -1
package/internal/dist/index.d.ts
DELETED
|
@@ -1,421 +0,0 @@
|
|
|
1
|
-
import { FamilyMetadata, SelectorOptions, SelectorToken, ReadonlySelectorOptions, ReadonlySelectorToken, Transactors, StateToken, ƒn, TransactionUpdate, TransactionOptions, TransactionToken, AtomToken, MutableAtomOptions, MutableAtomToken, MutableAtomFamilyOptions, MutableAtomFamily, SelectorFamily, AtomFamily, StateUpdate, TimelineUpdate, TimelineOptions, TimelineToken, ReadonlySelectorFamily, AtomIOLogger, Logger, AtomOptions, AtomFamilyOptions, ReadonlySelectorFamilyOptions, SelectorFamilyOptions, UpdateHandler, TransactionUpdateHandler } from 'atom.io';
|
|
2
|
-
import { Json } from 'atom.io/json';
|
|
3
|
-
import { Store as Store$1 } from 'atom.io/internal';
|
|
4
|
-
|
|
5
|
-
declare class Subject<T> {
|
|
6
|
-
Subscriber: (value: T) => void;
|
|
7
|
-
subscribers: Map<string, this[`Subscriber`]>;
|
|
8
|
-
subscribe(key: string, subscriber: this[`Subscriber`]): () => void;
|
|
9
|
-
private unsubscribe;
|
|
10
|
-
next(value: T): void;
|
|
11
|
-
}
|
|
12
|
-
declare class StatefulSubject<T> extends Subject<T> {
|
|
13
|
-
state: T;
|
|
14
|
-
constructor(initialState: T);
|
|
15
|
-
next(value: T): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type Selector<T> = {
|
|
19
|
-
key: string;
|
|
20
|
-
type: `selector`;
|
|
21
|
-
family?: FamilyMetadata;
|
|
22
|
-
install: (store: Store) => void;
|
|
23
|
-
subject: Subject<{
|
|
24
|
-
newValue: T;
|
|
25
|
-
oldValue: T;
|
|
26
|
-
}>;
|
|
27
|
-
get: () => T;
|
|
28
|
-
set: (newValue: T | ((oldValue: T) => T)) => void;
|
|
29
|
-
};
|
|
30
|
-
type ReadonlySelector<T> = {
|
|
31
|
-
key: string;
|
|
32
|
-
type: `readonly_selector`;
|
|
33
|
-
family?: FamilyMetadata;
|
|
34
|
-
install: (store: Store) => void;
|
|
35
|
-
subject: Subject<{
|
|
36
|
-
newValue: T;
|
|
37
|
-
oldValue: T;
|
|
38
|
-
}>;
|
|
39
|
-
get: () => T;
|
|
40
|
-
};
|
|
41
|
-
declare function createSelector<T>(options: SelectorOptions<T>, family: FamilyMetadata | undefined, store: Store): SelectorToken<T>;
|
|
42
|
-
declare function createSelector<T>(options: ReadonlySelectorOptions<T>, family: FamilyMetadata | undefined, store: Store): ReadonlySelectorToken<T>;
|
|
43
|
-
|
|
44
|
-
declare function deleteSelector(selectorToken: ReadonlySelectorToken<unknown> | SelectorToken<unknown>, store: Store): void;
|
|
45
|
-
|
|
46
|
-
type AtomKey<T> = string & {
|
|
47
|
-
__atomKey?: never;
|
|
48
|
-
__brand?: T;
|
|
49
|
-
};
|
|
50
|
-
type SelectorKey<T> = string & {
|
|
51
|
-
__selectorKey?: never;
|
|
52
|
-
__brand?: T;
|
|
53
|
-
};
|
|
54
|
-
type ReadonlySelectorKey<T> = string & {
|
|
55
|
-
__readonlySelectorKey?: never;
|
|
56
|
-
__brand?: T;
|
|
57
|
-
};
|
|
58
|
-
declare const isAtomKey: (key: string, store: Store) => key is AtomKey<unknown>;
|
|
59
|
-
declare const isSelectorKey: (key: string, store: Store) => key is SelectorKey<unknown>;
|
|
60
|
-
declare const isReadonlySelectorKey: (key: string, store: Store) => key is ReadonlySelectorKey<unknown>;
|
|
61
|
-
type StateKey<T> = AtomKey<T> | ReadonlySelectorKey<T> | SelectorKey<T>;
|
|
62
|
-
declare const isStateKey: (key: string, store: Store) => key is StateKey<unknown>;
|
|
63
|
-
|
|
64
|
-
declare const getSelectorDependencyKeys: (key: string, store: Store) => (AtomKey<unknown> | ReadonlySelectorKey<unknown> | SelectorKey<unknown>)[];
|
|
65
|
-
|
|
66
|
-
declare const registerSelector: (selectorKey: string, store: Store) => Transactors;
|
|
67
|
-
|
|
68
|
-
declare const traceSelectorAtoms: (selectorKey: string, directDependencyKey: StateKey<unknown>, store: Store) => AtomKey<unknown>[];
|
|
69
|
-
declare const traceAllSelectorAtoms: (selectorKey: string, store: Store) => AtomKey<unknown>[];
|
|
70
|
-
|
|
71
|
-
declare const updateSelectorAtoms: (selectorKey: string, dependency: ReadonlySelectorToken<unknown> | StateToken<unknown>, store: Store) => void;
|
|
72
|
-
|
|
73
|
-
declare const abortTransaction: (store: Store) => void;
|
|
74
|
-
|
|
75
|
-
declare const applyTransaction: <ƒ extends ƒn>(output: ReturnType<ƒ>, store: Store) => void;
|
|
76
|
-
|
|
77
|
-
declare const buildTransaction: (key: string, params: any[], store: Store) => void;
|
|
78
|
-
|
|
79
|
-
type Transaction<ƒ extends ƒn> = {
|
|
80
|
-
key: string;
|
|
81
|
-
type: `transaction`;
|
|
82
|
-
install: (store: Store) => void;
|
|
83
|
-
subject: Subject<TransactionUpdate<ƒ>>;
|
|
84
|
-
run: (...parameters: Parameters<ƒ>) => ReturnType<ƒ>;
|
|
85
|
-
};
|
|
86
|
-
declare function createTransaction<ƒ extends ƒn>(options: TransactionOptions<ƒ>, store: Store): TransactionToken<ƒ>;
|
|
87
|
-
|
|
88
|
-
declare const redoTransactionUpdate: <ƒ extends ƒn>(transactionUpdate: TransactionUpdate<ƒ>, store: Store) => void;
|
|
89
|
-
|
|
90
|
-
declare const undoTransactionUpdate: <ƒ extends ƒn>(transactionUpdate: TransactionUpdate<ƒ>, store: Store) => void;
|
|
91
|
-
|
|
92
|
-
declare const TRANSACTION_PHASES: readonly ["idle", "building", "applying"];
|
|
93
|
-
type TransactionPhase = (typeof TRANSACTION_PHASES)[number];
|
|
94
|
-
type TransactionMeta<ƒ extends ƒn> = {
|
|
95
|
-
phase: `applying` | `building`;
|
|
96
|
-
time: number;
|
|
97
|
-
update: TransactionUpdate<ƒ>;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
declare function deposit<T>(state: Atom<T>): AtomToken<T>;
|
|
101
|
-
declare function deposit<T>(state: Selector<T>): SelectorToken<T>;
|
|
102
|
-
declare function deposit<T>(state: Atom<T> | Selector<T>): StateToken<T>;
|
|
103
|
-
declare function deposit<T>(state: ReadonlySelector<T>): ReadonlySelectorToken<T>;
|
|
104
|
-
declare function deposit<T>(state: Transaction<T extends ƒn ? T : never>): TransactionToken<T>;
|
|
105
|
-
declare function deposit<T>(state: Atom<T> | ReadonlySelector<T> | Selector<T>): ReadonlySelectorToken<T> | StateToken<T>;
|
|
106
|
-
|
|
107
|
-
type primitive = boolean | number | string | null;
|
|
108
|
-
|
|
109
|
-
type Serializable = primitive | Readonly<{
|
|
110
|
-
[key: string]: Serializable;
|
|
111
|
-
}> | ReadonlyArray<Serializable>;
|
|
112
|
-
type Object$1<Key extends string = string, Value extends Serializable = Serializable> = Record<Key, Value>;
|
|
113
|
-
|
|
114
|
-
type Refinement<Unrefined, Refined extends Unrefined> = (value: Unrefined) => value is Refined;
|
|
115
|
-
type Cardinality = `1:1` | `1:n` | `n:n`;
|
|
116
|
-
|
|
117
|
-
interface JunctionEntries<Content extends Object$1 | null> extends Object$1 {
|
|
118
|
-
readonly relations: [string, string[]][];
|
|
119
|
-
readonly contents: [string, Content][];
|
|
120
|
-
}
|
|
121
|
-
interface JunctionSchema<ASide extends string, BSide extends string> extends Object$1 {
|
|
122
|
-
readonly between: [a: ASide, b: BSide];
|
|
123
|
-
readonly cardinality: Cardinality;
|
|
124
|
-
}
|
|
125
|
-
type BaseExternalStoreConfiguration = {
|
|
126
|
-
addRelation: (a: string, b: string) => void;
|
|
127
|
-
deleteRelation: (a: string, b: string) => void;
|
|
128
|
-
replaceRelationsSafely: (a: string, bs: string[]) => void;
|
|
129
|
-
replaceRelationsUnsafely: (a: string, bs: string[]) => void;
|
|
130
|
-
getRelatedKeys: (key: string) => Set<string> | undefined;
|
|
131
|
-
has: (a: string, b?: string) => boolean;
|
|
132
|
-
};
|
|
133
|
-
type ExternalStoreWithContentConfiguration<Content extends Object$1> = {
|
|
134
|
-
getContent: (contentKey: string) => Content | undefined;
|
|
135
|
-
setContent: (contentKey: string, content: Content) => void;
|
|
136
|
-
deleteContent: (contentKey: string) => void;
|
|
137
|
-
};
|
|
138
|
-
type Empty<Obj extends object> = {
|
|
139
|
-
[Key in keyof Obj]?: undefined;
|
|
140
|
-
};
|
|
141
|
-
type ExternalStoreConfiguration<Content extends Object$1 | null> = Content extends Object$1 ? BaseExternalStoreConfiguration & ExternalStoreWithContentConfiguration<Content> : BaseExternalStoreConfiguration & Empty<ExternalStoreWithContentConfiguration<Object$1>>;
|
|
142
|
-
type JunctionAdvancedConfiguration<Content extends Object$1 | null> = {
|
|
143
|
-
externalStore?: ExternalStoreConfiguration<Content>;
|
|
144
|
-
isContent?: Refinement<unknown, Content>;
|
|
145
|
-
makeContentKey?: (a: string, b: string) => string;
|
|
146
|
-
};
|
|
147
|
-
type JunctionJSON<ASide extends string, BSide extends string, Content extends Object$1 | null> = JunctionEntries<Content> & JunctionSchema<ASide, BSide>;
|
|
148
|
-
declare class Junction<const ASide extends string, const BSide extends string, const Content extends Object$1 | null = null> {
|
|
149
|
-
readonly a: ASide;
|
|
150
|
-
readonly b: BSide;
|
|
151
|
-
readonly cardinality: Cardinality;
|
|
152
|
-
readonly relations: Map<string, Set<string>>;
|
|
153
|
-
readonly contents: Map<string, Content>;
|
|
154
|
-
isContent: Refinement<unknown, Content> | null;
|
|
155
|
-
makeContentKey: (a: string, b: string) => string;
|
|
156
|
-
getRelatedKeys(key: string): Set<string> | undefined;
|
|
157
|
-
protected addRelation(a: string, b: string): void;
|
|
158
|
-
protected deleteRelation(a: string, b: string): void;
|
|
159
|
-
protected replaceRelationsUnsafely(a: string, bs: string[]): void;
|
|
160
|
-
protected replaceRelationsSafely(a: string, bs: string[]): void;
|
|
161
|
-
protected getContentInternal(contentKey: string): Content | undefined;
|
|
162
|
-
protected setContent(contentKey: string, content: Content): void;
|
|
163
|
-
protected deleteContent(contentKey: string): void;
|
|
164
|
-
constructor(data: JunctionSchema<ASide, BSide> & Partial<JunctionEntries<Content>>, config?: JunctionAdvancedConfiguration<Content>);
|
|
165
|
-
toJSON(): JunctionJSON<ASide, BSide, Content>;
|
|
166
|
-
set(a: string, ...rest: Content extends null ? [b: string] : [b: string, content: Content]): this;
|
|
167
|
-
set(relation: {
|
|
168
|
-
[Key in ASide | BSide]: string;
|
|
169
|
-
}, ...rest: Content extends null ? [] | [b?: undefined] : [content: Content]): this;
|
|
170
|
-
delete(a: string, b?: string): this;
|
|
171
|
-
delete(relation: Record<ASide | BSide, string> | Record<ASide, string> | Record<BSide, string>, b?: undefined): this;
|
|
172
|
-
getRelatedKey(key: string): string | undefined;
|
|
173
|
-
replaceRelations(a: string, relations: Content extends null ? string[] : Record<string, Content>, config?: {
|
|
174
|
-
reckless: boolean;
|
|
175
|
-
}): this;
|
|
176
|
-
getContent(a: string, b: string): Content | undefined;
|
|
177
|
-
getRelationEntries(input: Record<ASide, string> | Record<BSide, string>): [string, Content][];
|
|
178
|
-
has(a: string, b?: string): boolean;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
interface Lineage {
|
|
182
|
-
parent: typeof this | null;
|
|
183
|
-
child: typeof this | null;
|
|
184
|
-
}
|
|
185
|
-
declare function newest<T extends Lineage>(scion: T): T;
|
|
186
|
-
declare function eldest<T extends Lineage>(scion: T): T;
|
|
187
|
-
|
|
188
|
-
interface Transceiver<Signal extends Json.Serializable> {
|
|
189
|
-
do: (update: Signal) => void;
|
|
190
|
-
undo: (update: Signal) => void;
|
|
191
|
-
subscribe: (key: string, fn: (update: Signal) => void) => () => void;
|
|
192
|
-
cacheUpdateNumber: number;
|
|
193
|
-
getUpdateNumber: (update: Signal) => number;
|
|
194
|
-
}
|
|
195
|
-
declare function isTransceiver(value: unknown): value is Transceiver<Json.Serializable>;
|
|
196
|
-
type TransceiverMode = `playback` | `record` | `transaction`;
|
|
197
|
-
type Signal<TVR extends Transceiver<any>> = TVR extends Transceiver<infer Signal> ? Signal : never;
|
|
198
|
-
|
|
199
|
-
declare function createMutableAtom<Core extends Transceiver<any>, SerializableCore extends Json.Serializable>(options: MutableAtomOptions<Core, SerializableCore>, store: Store): MutableAtomToken<Core, SerializableCore>;
|
|
200
|
-
|
|
201
|
-
declare function createMutableAtomFamily<Core extends Transceiver<any>, SerializableCore extends Json.Serializable, Key extends string>(options: MutableAtomFamilyOptions<Core, SerializableCore, Key>, store: Store): MutableAtomFamily<Core, SerializableCore, Key>;
|
|
202
|
-
|
|
203
|
-
declare const getJsonFamily: <Core extends Transceiver<Json.Serializable>, SerializableCore extends Json.Serializable, Key extends string>(mutableAtomFamily: MutableAtomFamily<Core, SerializableCore, Key>, store: Store) => SelectorFamily<SerializableCore, Key>;
|
|
204
|
-
|
|
205
|
-
declare const getJsonToken: <Core extends Transceiver<Json.Serializable>, SerializableCore extends Json.Serializable>(mutableAtomToken: MutableAtomToken<Core, SerializableCore>) => SelectorToken<SerializableCore>;
|
|
206
|
-
|
|
207
|
-
declare const getUpdateToken: <Core extends Transceiver<Json.Serializable>, SerializableCore extends Json.Serializable>(mutableAtomToken: MutableAtomToken<Core, SerializableCore>) => AtomToken<Signal<Core>>;
|
|
208
|
-
|
|
209
|
-
declare function isAtomTokenMutable(token: AtomToken<any>): token is MutableAtomToken<any, any>;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* @internal Give the tracker a transceiver state and a store, and it will
|
|
213
|
-
* subscribe to the transceiver's inner value. When the inner value changes,
|
|
214
|
-
* the tracker will update its own state to reflect the change.
|
|
215
|
-
*/
|
|
216
|
-
declare class Tracker<Mutable extends Transceiver<any>> {
|
|
217
|
-
private Update;
|
|
218
|
-
private initializeState;
|
|
219
|
-
private unsubscribeFromInnerValue;
|
|
220
|
-
private observeCore;
|
|
221
|
-
private updateCore;
|
|
222
|
-
mutableState: MutableAtomToken<Mutable, Json.Serializable>;
|
|
223
|
-
latestUpdateState: AtomToken<typeof this.Update | null>;
|
|
224
|
-
constructor(mutableState: MutableAtomToken<Mutable, Json.Serializable>, store: Store);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
declare class FamilyTracker<Core extends Transceiver<any>, FamilyMemberKey extends Json.Serializable> {
|
|
228
|
-
private readonly Update;
|
|
229
|
-
readonly findLatestUpdateState: AtomFamily<typeof this.Update | null, FamilyMemberKey>;
|
|
230
|
-
readonly findMutableState: AtomFamily<Core, FamilyMemberKey>;
|
|
231
|
-
constructor(findMutableState: AtomFamily<Core, FamilyMemberKey>, store: Store);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
interface MutableAtom<T> extends Atom<T> {
|
|
235
|
-
mutable: true;
|
|
236
|
-
}
|
|
237
|
-
declare const isAtomMutable: <T>(atom: Atom<T>) => atom is MutableAtom<T>;
|
|
238
|
-
|
|
239
|
-
type OperationProgress = {
|
|
240
|
-
open: false;
|
|
241
|
-
} | {
|
|
242
|
-
open: true;
|
|
243
|
-
done: Set<string>;
|
|
244
|
-
prev: Map<string, any>;
|
|
245
|
-
time: number;
|
|
246
|
-
token: StateToken<any>;
|
|
247
|
-
};
|
|
248
|
-
declare const openOperation: (token: StateToken<any>, store: Store) => `rejection` | undefined;
|
|
249
|
-
declare const closeOperation: (store: Store) => void;
|
|
250
|
-
declare const isDone: (key: string, store: Store) => boolean;
|
|
251
|
-
declare const markDone: (key: string, store: Store) => void;
|
|
252
|
-
|
|
253
|
-
type TimelineAtomUpdate = StateUpdate<unknown> & {
|
|
254
|
-
key: string;
|
|
255
|
-
type: `atom_update`;
|
|
256
|
-
timestamp: number;
|
|
257
|
-
family?: FamilyMetadata;
|
|
258
|
-
};
|
|
259
|
-
type TimelineSelectorUpdate = {
|
|
260
|
-
key: string;
|
|
261
|
-
type: `selector_update`;
|
|
262
|
-
timestamp: number;
|
|
263
|
-
atomUpdates: Omit<TimelineAtomUpdate, `timestamp`>[];
|
|
264
|
-
};
|
|
265
|
-
type TimelineTransactionUpdate = TransactionUpdate<ƒn> & {
|
|
266
|
-
key: string;
|
|
267
|
-
type: `transaction_update`;
|
|
268
|
-
timestamp: number;
|
|
269
|
-
};
|
|
270
|
-
type Timeline = {
|
|
271
|
-
type: `timeline`;
|
|
272
|
-
key: string;
|
|
273
|
-
at: number;
|
|
274
|
-
shouldCapture?: (update: TimelineUpdate, timeline: Timeline) => boolean;
|
|
275
|
-
timeTraveling: `into_future` | `into_past` | null;
|
|
276
|
-
history: TimelineUpdate[];
|
|
277
|
-
selectorTime: number | null;
|
|
278
|
-
transactionKey: string | null;
|
|
279
|
-
install: (store: Store) => void;
|
|
280
|
-
subject: Subject<TimelineAtomUpdate | TimelineSelectorUpdate | TimelineTransactionUpdate | `redo` | `undo`>;
|
|
281
|
-
};
|
|
282
|
-
declare function createTimeline(options: TimelineOptions, store: Store, data?: Timeline): TimelineToken;
|
|
283
|
-
|
|
284
|
-
declare const addAtomToTimeline: (atomToken: AtomToken<any>, tl: Timeline, store: Store) => void;
|
|
285
|
-
|
|
286
|
-
declare const timeTravel: (direction: `backward` | `forward`, token: TimelineToken, store: Store) => void;
|
|
287
|
-
|
|
288
|
-
declare class Store implements Lineage {
|
|
289
|
-
parent: Store | null;
|
|
290
|
-
child: Store | null;
|
|
291
|
-
valueMap: Map<string, any>;
|
|
292
|
-
atoms: Map<string, Atom<any> | MutableAtom<any>>;
|
|
293
|
-
selectors: Map<string, Selector<any>>;
|
|
294
|
-
readonlySelectors: Map<string, ReadonlySelector<any>>;
|
|
295
|
-
trackers: Map<string, Tracker<Transceiver<any>>>;
|
|
296
|
-
families: Map<string, AtomFamily<any, any> | ReadonlySelectorFamily<any, any> | SelectorFamily<any, any>>;
|
|
297
|
-
timelines: Map<string, Timeline>;
|
|
298
|
-
transactions: Map<string, Transaction<ƒn>>;
|
|
299
|
-
atomsThatAreDefault: Set<string>;
|
|
300
|
-
timelineAtoms: Junction<"timelineKey", "atomKey", null>;
|
|
301
|
-
selectorAtoms: Junction<"selectorKey", "atomKey", null>;
|
|
302
|
-
selectorGraph: Junction<"upstreamSelectorKey", "downstreamSelectorKey", {
|
|
303
|
-
source: string;
|
|
304
|
-
}>;
|
|
305
|
-
subject: {
|
|
306
|
-
atomCreation: Subject<AtomToken<unknown>>;
|
|
307
|
-
selectorCreation: Subject<ReadonlySelectorToken<unknown> | SelectorToken<unknown>>;
|
|
308
|
-
transactionCreation: Subject<TransactionToken<ƒn>>;
|
|
309
|
-
timelineCreation: Subject<TimelineToken>;
|
|
310
|
-
transactionApplying: StatefulSubject<TransactionMeta<ƒn> | null>;
|
|
311
|
-
operationStatus: Subject<OperationProgress>;
|
|
312
|
-
};
|
|
313
|
-
operation: OperationProgress;
|
|
314
|
-
transactionMeta: TransactionMeta<ƒn> | null;
|
|
315
|
-
config: {
|
|
316
|
-
name: string;
|
|
317
|
-
};
|
|
318
|
-
loggers: AtomIOLogger[];
|
|
319
|
-
logger: Logger;
|
|
320
|
-
constructor(name: string, store?: Store | null);
|
|
321
|
-
}
|
|
322
|
-
declare const IMPLICIT: {
|
|
323
|
-
STORE_INTERNAL: Store | undefined;
|
|
324
|
-
readonly STORE: Store;
|
|
325
|
-
};
|
|
326
|
-
declare const clearStore: (store: Store) => void;
|
|
327
|
-
|
|
328
|
-
declare function withdraw<T>(token: AtomToken<T>, store: Store): Atom<T> | undefined;
|
|
329
|
-
declare function withdraw<T>(token: SelectorToken<T>, store: Store): Selector<T> | undefined;
|
|
330
|
-
declare function withdraw<T>(token: StateToken<T>, store: Store): Atom<T> | Selector<T> | undefined;
|
|
331
|
-
declare function withdraw<T>(token: ReadonlySelectorToken<T>, store: Store): ReadonlySelector<T> | undefined;
|
|
332
|
-
declare function withdraw<T>(token: TransactionToken<T>, store: Store): Transaction<T extends ƒn ? T : never> | undefined;
|
|
333
|
-
declare function withdraw<T>(token: ReadonlySelectorToken<T> | StateToken<T>, store: Store): Atom<T> | ReadonlySelector<T> | Selector<T> | undefined;
|
|
334
|
-
declare function withdraw<T>(token: TimelineToken, store: Store): Timeline | undefined;
|
|
335
|
-
|
|
336
|
-
declare function withdrawNewFamilyMember<T>(token: AtomToken<T>, store: Store): Atom<T> | undefined;
|
|
337
|
-
declare function withdrawNewFamilyMember<T>(token: SelectorToken<T>, store: Store): Selector<T> | undefined;
|
|
338
|
-
declare function withdrawNewFamilyMember<T>(token: ReadonlySelectorToken<T>, store: Store): ReadonlySelector<T> | undefined;
|
|
339
|
-
declare function withdrawNewFamilyMember<T>(token: StateToken<T>, store: Store): Atom<T> | Selector<T> | undefined;
|
|
340
|
-
declare function withdrawNewFamilyMember<T>(token: ReadonlySelectorToken<T> | StateToken<T>, store: Store): Atom<T> | ReadonlySelector<T> | Selector<T> | undefined;
|
|
341
|
-
|
|
342
|
-
type Atom<T> = {
|
|
343
|
-
key: string;
|
|
344
|
-
type: `atom`;
|
|
345
|
-
family?: FamilyMetadata;
|
|
346
|
-
install: (store: Store) => void;
|
|
347
|
-
subject: Subject<{
|
|
348
|
-
newValue: T;
|
|
349
|
-
oldValue: T;
|
|
350
|
-
}>;
|
|
351
|
-
default: T | (() => T);
|
|
352
|
-
cleanup?: () => void;
|
|
353
|
-
};
|
|
354
|
-
declare function createAtom<T>(options: AtomOptions<T> | MutableAtomOptions<any, any>, family: FamilyMetadata | undefined, store: Store): AtomToken<T>;
|
|
355
|
-
|
|
356
|
-
declare function deleteAtom(atomToken: AtomToken<unknown>, store: Store): void;
|
|
357
|
-
|
|
358
|
-
declare const isAtomDefault: (key: string, store: Store) => boolean;
|
|
359
|
-
declare const markAtomAsDefault: (key: string, store: Store) => void;
|
|
360
|
-
declare const markAtomAsNotDefault: (key: string, store: Store) => void;
|
|
361
|
-
declare const isSelectorDefault: (key: string, store: Store) => boolean;
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* A Promise that can be canceled.
|
|
365
|
-
* @internal
|
|
366
|
-
* @private
|
|
367
|
-
* @typeParam T The type of the value that the promise will resolve to.
|
|
368
|
-
*
|
|
369
|
-
* @remarks
|
|
370
|
-
* Can be constructed like a Promise, or from an existing Promise.
|
|
371
|
-
*/
|
|
372
|
-
declare class Future<T> extends Promise<T> {
|
|
373
|
-
isCanceled: boolean;
|
|
374
|
-
constructor(executor: Promise<T> | ((resolve: (value: T) => void, reject: (reason?: any) => void) => void));
|
|
375
|
-
cancel(): void;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
declare function cacheValue<T>(key: string, value: T, subject: Subject<StateUpdate<unknown>>, store: Store): T;
|
|
379
|
-
declare function cacheValue<T extends Promise<any>>(key: string, value: T, subject: Subject<StateUpdate<unknown>>, store: Store): Future<T>;
|
|
380
|
-
declare const readCachedValue: <T>(key: string, store: Store) => T;
|
|
381
|
-
declare const isValueCached: (key: string, store: Store) => boolean;
|
|
382
|
-
declare const evictCachedValue: (key: string, store: Store) => void;
|
|
383
|
-
|
|
384
|
-
declare function createAtomFamily<T, K extends Json.Serializable>(options: AtomFamilyOptions<T, K>, store: Store): AtomFamily<T, K>;
|
|
385
|
-
|
|
386
|
-
declare function createReadonlySelectorFamily<T, K extends Json.Serializable>(options: ReadonlySelectorFamilyOptions<T, K>, store: Store): ReadonlySelectorFamily<T, K>;
|
|
387
|
-
|
|
388
|
-
declare function createSelectorFamily<T, K extends Json.Serializable>(options: SelectorFamilyOptions<T, K>, store: Store): SelectorFamily<T, K>;
|
|
389
|
-
declare function createSelectorFamily<T, K extends Json.Serializable>(options: ReadonlySelectorFamilyOptions<T, K>, store: Store): ReadonlySelectorFamily<T, K>;
|
|
390
|
-
|
|
391
|
-
declare class LazyMap<K, V> extends Map<K, V> {
|
|
392
|
-
protected readonly source: Map<K, V>;
|
|
393
|
-
deleted: Set<K>;
|
|
394
|
-
constructor(source: Map<K, V>);
|
|
395
|
-
get(key: K): V | undefined;
|
|
396
|
-
set(key: K, value: V): this;
|
|
397
|
-
hasOwn(key: K): boolean;
|
|
398
|
-
has(key: K): boolean;
|
|
399
|
-
delete(key: K): boolean;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
declare class NotFoundError extends Error {
|
|
403
|
-
constructor(token: ReadonlySelectorToken<any> | StateToken<any>, store: Store);
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
declare const readOrComputeValue: <T>(state: Atom<T> | ReadonlySelector<T> | Selector<T>, store: Store) => T;
|
|
407
|
-
|
|
408
|
-
type Modify<T> = (thing: T) => T;
|
|
409
|
-
declare const become: <T>(nextVersionOfThing: T | Modify<T>) => (originalThing: T) => T;
|
|
410
|
-
|
|
411
|
-
declare const setAtomOrSelector: <T>(state: Atom<T> | Selector<T>, value: T | ((oldValue: T) => T), store: Store) => void;
|
|
412
|
-
|
|
413
|
-
declare const subscribeToRootAtoms: <T>(state: ReadonlySelector<T> | Selector<T>, store: Store) => (() => void)[] | null;
|
|
414
|
-
|
|
415
|
-
declare function subscribeToState<T>(token: ReadonlySelectorToken<T> | StateToken<T>, handleUpdate: UpdateHandler<T>, key: string, store: Store$1): () => void;
|
|
416
|
-
|
|
417
|
-
declare const subscribeToTimeline: (token: TimelineToken, handleUpdate: (update: TimelineUpdate | `redo` | `undo`) => void, key: string, store: Store$1) => (() => void);
|
|
418
|
-
|
|
419
|
-
declare const subscribeToTransaction: <ƒ extends ƒn>(token: TransactionToken<ƒ>, handleUpdate: TransactionUpdateHandler<ƒ>, key: string, store: Store$1) => (() => void);
|
|
420
|
-
|
|
421
|
-
export { type Atom, type AtomKey, FamilyTracker, Future, IMPLICIT, LazyMap, type Lineage, type Modify, type MutableAtom, NotFoundError, type OperationProgress, type ReadonlySelector, type ReadonlySelectorKey, type Selector, type SelectorKey, type Signal, type StateKey, StatefulSubject, Store, Subject, TRANSACTION_PHASES, type Timeline, type TimelineAtomUpdate, type TimelineSelectorUpdate, type TimelineTransactionUpdate, Tracker, type Transaction, type TransactionMeta, type TransactionPhase, type Transceiver, type TransceiverMode, abortTransaction, addAtomToTimeline, applyTransaction, become, buildTransaction, cacheValue, clearStore, closeOperation, createAtom, createAtomFamily, createMutableAtom, createMutableAtomFamily, createReadonlySelectorFamily, createSelector, createSelectorFamily, createTimeline, createTransaction, deleteAtom, deleteSelector, deposit, eldest, evictCachedValue, getJsonFamily, getJsonToken, getSelectorDependencyKeys, getUpdateToken, isAtomDefault, isAtomKey, isAtomMutable, isAtomTokenMutable, isDone, isReadonlySelectorKey, isSelectorDefault, isSelectorKey, isStateKey, isTransceiver, isValueCached, markAtomAsDefault, markAtomAsNotDefault, markDone, newest, openOperation, readCachedValue, readOrComputeValue, redoTransactionUpdate, registerSelector, setAtomOrSelector, subscribeToRootAtoms, subscribeToState, subscribeToTimeline, subscribeToTransaction, timeTravel, traceAllSelectorAtoms, traceSelectorAtoms, undoTransactionUpdate, updateSelectorAtoms, withdraw, withdrawNewFamilyMember };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/future.ts":{"bytes":813,"imports":[],"format":"esm"},"src/lineage.ts":{"bytes":348,"imports":[],"format":"esm"},"src/caching.ts":{"bytes":1836,"imports":[{"path":"src/future.ts","kind":"import-statement","original":"./future"},{"path":"src/lineage.ts","kind":"import-statement","original":"./lineage"}],"format":"esm"},"src/read-or-compute-value.ts":{"bytes":877,"imports":[{"path":"src/caching.ts","kind":"import-statement","original":"./caching"}],"format":"esm"},"src/operation.ts":{"bytes":1941,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"./lineage"}],"format":"esm"},"src/set-state/become.ts":{"bytes":303,"imports":[],"format":"esm"},"src/subject.ts":{"bytes":742,"imports":[],"format":"esm"},"src/set-state/copy-mutable-if-needed.ts":{"bytes":710,"imports":[{"path":"src/mutable/index.ts","kind":"import-statement","original":"../mutable"}],"format":"esm"},"src/set-state/copy-mutable-in-transaction.ts":{"bytes":1347,"imports":[{"path":"src/index.ts","kind":"import-statement","original":".."},{"path":"src/set-state/copy-mutable-if-needed.ts","kind":"import-statement","original":"./copy-mutable-if-needed"}],"format":"esm"},"src/set-state/emit-update.ts":{"bytes":523,"imports":[],"format":"esm"},"src/set-state/evict-downstream.ts":{"bytes":915,"imports":[{"path":"src/caching.ts","kind":"import-statement","original":"../caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/operation.ts","kind":"import-statement","original":"../operation"}],"format":"esm"},"src/set-state/stow-update.ts":{"bytes":1332,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/mutable/index.ts","kind":"import-statement","original":"../mutable"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/set-state/set-atom.ts":{"bytes":1341,"imports":[{"path":"src/atom/index.ts","kind":"import-statement","original":"../atom"},{"path":"src/caching.ts","kind":"import-statement","original":"../caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/operation.ts","kind":"import-statement","original":"../operation"},{"path":"src/read-or-compute-value.ts","kind":"import-statement","original":"../read-or-compute-value"},{"path":"src/set-state/become.ts","kind":"import-statement","original":"./become"},{"path":"src/set-state/copy-mutable-in-transaction.ts","kind":"import-statement","original":"./copy-mutable-in-transaction"},{"path":"src/set-state/emit-update.ts","kind":"import-statement","original":"./emit-update"},{"path":"src/set-state/evict-downstream.ts","kind":"import-statement","original":"./evict-downstream"},{"path":"src/set-state/stow-update.ts","kind":"import-statement","original":"./stow-update"}],"format":"esm"},"src/set-state/set-atom-or-selector.ts":{"bytes":386,"imports":[{"path":"src/set-state/set-atom.ts","kind":"import-statement","original":"./set-atom"}],"format":"esm"},"src/set-state/index.ts":{"bytes":64,"imports":[{"path":"src/set-state/become.ts","kind":"import-statement","original":"./become"},{"path":"src/set-state/set-atom-or-selector.ts","kind":"import-statement","original":"./set-atom-or-selector"}],"format":"esm"},"src/store/deposit.ts":{"bytes":1134,"imports":[],"format":"esm"},"../../rel8/junction/src/junction.ts":{"bytes":10655,"imports":[],"format":"esm"},"../../rel8/junction/src/index.ts":{"bytes":27,"imports":[{"path":"../../rel8/junction/src/junction.ts","kind":"import-statement","original":"./junction"}],"format":"esm"},"src/store/store.ts":{"bytes":4316,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"../../rel8/junction/src/index.ts","kind":"import-statement","original":"~/packages/rel8/junction/src"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/store/withdraw.ts":{"bytes":3229,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/store/withdraw-new-family-member.ts":{"bytes":1458,"imports":[{"path":"src/index.ts","kind":"import-statement","original":".."}],"format":"esm"},"src/store/index.ts":{"bytes":122,"imports":[{"path":"src/store/deposit.ts","kind":"import-statement","original":"./deposit"},{"path":"src/store/store.ts","kind":"import-statement","original":"./store"},{"path":"src/store/withdraw.ts","kind":"import-statement","original":"./withdraw"},{"path":"src/store/withdraw-new-family-member.ts","kind":"import-statement","original":"./withdraw-new-family-member"}],"format":"esm"},"src/keys.ts":{"bytes":963,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"./lineage"}],"format":"esm"},"src/selector/get-selector-dependency-keys.ts":{"bytes":596,"imports":[{"path":"src/keys.ts","kind":"import-statement","original":"../keys"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/selector/trace-selector-atoms.ts":{"bytes":1467,"imports":[{"path":"src/keys.ts","kind":"import-statement","original":"../keys"},{"path":"src/selector/get-selector-dependency-keys.ts","kind":"import-statement","original":"./get-selector-dependency-keys"}],"format":"esm"},"src/selector/update-selector-atoms.ts":{"bytes":986,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/selector/trace-selector-atoms.ts","kind":"import-statement","original":"./trace-selector-atoms"}],"format":"esm"},"src/selector/register-selector.ts":{"bytes":1712,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/read-or-compute-value.ts","kind":"import-statement","original":"../read-or-compute-value"},{"path":"src/set-state/index.ts","kind":"import-statement","original":"../set-state"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/selector/update-selector-atoms.ts","kind":"import-statement","original":"./update-selector-atoms"}],"format":"esm"},"src/selector/create-read-write-selector.ts":{"bytes":2001,"imports":[{"path":"src/caching.ts","kind":"import-statement","original":"../caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/operation.ts","kind":"import-statement","original":"../operation"},{"path":"src/set-state/become.ts","kind":"import-statement","original":"../set-state/become"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/selector/create-selector.ts","kind":"import-statement","original":"./create-selector"},{"path":"src/selector/register-selector.ts","kind":"import-statement","original":"./register-selector"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/selector/create-readonly-selector.ts":{"bytes":1463,"imports":[{"path":"src/caching.ts","kind":"import-statement","original":"../caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/selector/create-selector.ts","kind":"import-statement","original":"./create-selector"},{"path":"src/selector/register-selector.ts","kind":"import-statement","original":"./register-selector"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/selector/create-selector.ts":{"bytes":1896,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/selector/create-read-write-selector.ts","kind":"import-statement","original":"./create-read-write-selector"},{"path":"src/selector/create-readonly-selector.ts","kind":"import-statement","original":"./create-readonly-selector"}],"format":"esm"},"src/selector/delete-selector.ts":{"bytes":1082,"imports":[{"path":"src/index.ts","kind":"import-statement","original":".."}],"format":"esm"},"src/selector/index.ts":{"bytes":230,"imports":[{"path":"src/selector/create-selector.ts","kind":"import-statement","original":"./create-selector"},{"path":"src/selector/delete-selector.ts","kind":"import-statement","original":"./delete-selector"},{"path":"src/selector/get-selector-dependency-keys.ts","kind":"import-statement","original":"./get-selector-dependency-keys"},{"path":"src/selector/register-selector.ts","kind":"import-statement","original":"./register-selector"},{"path":"src/selector/trace-selector-atoms.ts","kind":"import-statement","original":"./trace-selector-atoms"},{"path":"src/selector/update-selector-atoms.ts","kind":"import-statement","original":"./update-selector-atoms"}],"format":"esm"},"src/subscribe/recall-state.ts":{"bytes":434,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/subscribe/subscribe-to-root-atoms.ts":{"bytes":1511,"imports":[{"path":"src/read-or-compute-value.ts","kind":"import-statement","original":"../read-or-compute-value"},{"path":"src/selector/index.ts","kind":"import-statement","original":"../selector"},{"path":"src/subscribe/recall-state.ts","kind":"import-statement","original":"./recall-state"}],"format":"esm"},"src/subscribe/subscribe-to-state.ts":{"bytes":1329,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/subscribe/subscribe-to-timeline.ts":{"bytes":814,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/subscribe/subscribe-to-transaction.ts":{"bytes":846,"imports":[{"path":"atom.io/internal","kind":"import-statement","external":true}],"format":"esm"},"src/subscribe/index.ts":{"bytes":162,"imports":[{"path":"src/subscribe/subscribe-to-root-atoms.ts","kind":"import-statement","original":"./subscribe-to-root-atoms"},{"path":"src/subscribe/subscribe-to-state.ts","kind":"import-statement","original":"./subscribe-to-state"},{"path":"src/subscribe/subscribe-to-timeline.ts","kind":"import-statement","original":"./subscribe-to-timeline"},{"path":"src/subscribe/subscribe-to-transaction.ts","kind":"import-statement","original":"./subscribe-to-transaction"}],"format":"esm"},"src/mutable/tracker.ts":{"bytes":5117,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":".."},{"path":"src/atom/index.ts","kind":"import-statement","original":"../atom"}],"format":"esm"},"src/mutable/create-mutable-atom.ts":{"bytes":1337,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/atom/index.ts","kind":"import-statement","original":"../atom"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/subscribe/index.ts","kind":"import-statement","original":"../subscribe"},{"path":"src/mutable/tracker.ts","kind":"import-statement","original":"./tracker"}],"format":"esm"},"src/families/create-atom-family.ts":{"bytes":1653,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/atom/index.ts","kind":"import-statement","original":"../atom"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"}],"format":"esm"},"src/families/create-readonly-selector-family.ts":{"bytes":1243,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/selector/index.ts","kind":"import-statement","original":"../selector"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"}],"format":"esm"},"src/families/create-selector-family.ts":{"bytes":1938,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/selector/index.ts","kind":"import-statement","original":"../selector"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/families/create-readonly-selector-family.ts","kind":"import-statement","original":"./create-readonly-selector-family"}],"format":"esm"},"src/families/index.ts":{"bytes":128,"imports":[{"path":"src/families/create-atom-family.ts","kind":"import-statement","original":"./create-atom-family"},{"path":"src/families/create-readonly-selector-family.ts","kind":"import-statement","original":"./create-readonly-selector-family"},{"path":"src/families/create-selector-family.ts","kind":"import-statement","original":"./create-selector-family"}],"format":"esm"},"src/mutable/tracker-family.ts":{"bytes":1644,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/families/index.ts","kind":"import-statement","original":"../families"},{"path":"src/mutable/tracker.ts","kind":"import-statement","original":"./tracker"}],"format":"esm"},"src/mutable/create-mutable-atom-family.ts":{"bytes":852,"imports":[{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"src/index.ts","kind":"import-statement","original":".."},{"path":"src/mutable/tracker-family.ts","kind":"import-statement","original":"./tracker-family"}],"format":"esm"},"src/mutable/get-json-family.ts":{"bytes":733,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/mutable/get-json-token.ts":{"bytes":779,"imports":[],"format":"esm"},"src/mutable/get-update-token.ts":{"bytes":657,"imports":[],"format":"esm"},"src/mutable/is-atom-token-mutable.ts":{"bytes":203,"imports":[],"format":"esm"},"src/mutable/transceiver.ts":{"bytes":3768,"imports":[],"format":"esm"},"src/mutable/index.ts":{"bytes":516,"imports":[{"path":"src/mutable/create-mutable-atom.ts","kind":"import-statement","original":"./create-mutable-atom"},{"path":"src/mutable/create-mutable-atom-family.ts","kind":"import-statement","original":"./create-mutable-atom-family"},{"path":"src/mutable/get-json-family.ts","kind":"import-statement","original":"./get-json-family"},{"path":"src/mutable/get-json-token.ts","kind":"import-statement","original":"./get-json-token"},{"path":"src/mutable/get-update-token.ts","kind":"import-statement","original":"./get-update-token"},{"path":"src/mutable/is-atom-token-mutable.ts","kind":"import-statement","original":"./is-atom-token-mutable"},{"path":"src/mutable/tracker.ts","kind":"import-statement","original":"./tracker"},{"path":"src/mutable/tracker-family.ts","kind":"import-statement","original":"./tracker-family"},{"path":"src/mutable/transceiver.ts","kind":"import-statement","original":"./transceiver"}],"format":"esm"},"src/atom/is-default.ts":{"bytes":856,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/selector/index.ts","kind":"import-statement","original":"../selector"}],"format":"esm"},"src/atom/create-atom.ts":{"bytes":2579,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/caching.ts","kind":"import-statement","original":"../caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/mutable/index.ts","kind":"import-statement","original":"../mutable"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/subscribe/index.ts","kind":"import-statement","original":"../subscribe"},{"path":"src/atom/is-default.ts","kind":"import-statement","original":"./is-default"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/atom/delete-atom.ts":{"bytes":966,"imports":[{"path":"src/index.ts","kind":"import-statement","original":".."}],"format":"esm"},"src/atom/index.ts":{"bytes":89,"imports":[{"path":"src/atom/create-atom.ts","kind":"import-statement","original":"./create-atom"},{"path":"src/atom/delete-atom.ts","kind":"import-statement","original":"./delete-atom"},{"path":"src/atom/is-default.ts","kind":"import-statement","original":"./is-default"}],"format":"esm"},"src/lazy-map.ts":{"bytes":761,"imports":[],"format":"esm"},"src/not-found-error.ts":{"bytes":637,"imports":[],"format":"esm"},"src/timeline/add-atom-to-timeline.ts":{"bytes":6674,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/timeline/create-timeline.ts":{"bytes":3151,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/timeline/add-atom-to-timeline.ts","kind":"import-statement","original":"./add-atom-to-timeline"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/timeline/time-travel.ts":{"bytes":2576,"imports":[{"path":"atom.io","kind":"import-statement","external":true}],"format":"esm"},"src/timeline/index.ts":{"bytes":103,"imports":[{"path":"src/timeline/add-atom-to-timeline.ts","kind":"import-statement","original":"./add-atom-to-timeline"},{"path":"src/timeline/create-timeline.ts","kind":"import-statement","original":"./create-timeline"},{"path":"src/timeline/time-travel.ts","kind":"import-statement","original":"./time-travel"}],"format":"esm"},"src/transaction/abort-transaction.ts":{"bytes":538,"imports":[{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/transaction/apply-transaction.ts":{"bytes":2902,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"}],"format":"esm"},"src/transaction/build-transaction.ts":{"bytes":1378,"imports":[{"path":"../../rel8/junction/src/index.ts","kind":"import-statement","original":"~/packages/rel8/junction/src"},{"path":"src/lazy-map.ts","kind":"import-statement","original":"../lazy-map"},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"}],"format":"esm"},"src/transaction/create-transaction.ts":{"bytes":1704,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/lineage.ts","kind":"import-statement","original":"../lineage"},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"},{"path":"src/subject.ts","kind":"import-statement","original":"../subject"},{"path":"src/transaction/abort-transaction.ts","kind":"import-statement","original":"./abort-transaction"},{"path":"src/transaction/apply-transaction.ts","kind":"import-statement","original":"./apply-transaction"},{"path":"src/transaction/build-transaction.ts","kind":"import-statement","original":"./build-transaction"}],"format":"esm"},"src/transaction/redo-transaction.ts":{"bytes":877,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"}],"format":"esm"},"src/transaction/undo-transaction.ts":{"bytes":887,"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"src/store/index.ts","kind":"import-statement","original":"../store"}],"format":"esm"},"src/transaction/index.ts":{"bytes":542,"imports":[{"path":"src/transaction/abort-transaction.ts","kind":"import-statement","original":"./abort-transaction"},{"path":"src/transaction/apply-transaction.ts","kind":"import-statement","original":"./apply-transaction"},{"path":"src/transaction/build-transaction.ts","kind":"import-statement","original":"./build-transaction"},{"path":"src/transaction/create-transaction.ts","kind":"import-statement","original":"./create-transaction"},{"path":"src/transaction/redo-transaction.ts","kind":"import-statement","original":"./redo-transaction"},{"path":"src/transaction/undo-transaction.ts","kind":"import-statement","original":"./undo-transaction"}],"format":"esm"},"src/index.ts":{"bytes":495,"imports":[{"path":"src/atom/index.ts","kind":"import-statement","original":"./atom"},{"path":"src/caching.ts","kind":"import-statement","original":"./caching"},{"path":"src/lineage.ts","kind":"import-statement","original":"./lineage"},{"path":"src/families/index.ts","kind":"import-statement","original":"./families"},{"path":"src/future.ts","kind":"import-statement","original":"./future"},{"path":"src/keys.ts","kind":"import-statement","original":"./keys"},{"path":"src/lazy-map.ts","kind":"import-statement","original":"./lazy-map"},{"path":"src/mutable/index.ts","kind":"import-statement","original":"./mutable"},{"path":"src/not-found-error.ts","kind":"import-statement","original":"./not-found-error"},{"path":"src/operation.ts","kind":"import-statement","original":"./operation"},{"path":"src/read-or-compute-value.ts","kind":"import-statement","original":"./read-or-compute-value"},{"path":"src/selector/index.ts","kind":"import-statement","original":"./selector"},{"path":"src/set-state/index.ts","kind":"import-statement","original":"./set-state"},{"path":"src/store/index.ts","kind":"import-statement","original":"./store"},{"path":"src/subject.ts","kind":"import-statement","original":"./subject"},{"path":"src/subscribe/index.ts","kind":"import-statement","original":"./subscribe"},{"path":"src/timeline/index.ts","kind":"import-statement","original":"./timeline"},{"path":"src/transaction/index.ts","kind":"import-statement","original":"./transaction"}],"format":"esm"}},"outputs":{"dist/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":159869},"dist/index.cjs":{"imports":[{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io/internal","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io/json","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true},{"path":"atom.io","kind":"import-statement","external":true}],"exports":["FamilyTracker","Future","IMPLICIT","LazyMap","NotFoundError","StatefulSubject","Store","Subject","TRANSACTION_PHASES","Tracker","abortTransaction","addAtomToTimeline","applyTransaction","become","buildTransaction","cacheValue","clearStore","closeOperation","createAtom","createAtomFamily","createMutableAtom","createMutableAtomFamily","createReadonlySelectorFamily","createSelector","createSelectorFamily","createTimeline","createTransaction","deleteAtom","deleteSelector","deposit","eldest","evictCachedValue","getJsonFamily","getJsonToken","getSelectorDependencyKeys","getUpdateToken","isAtomDefault","isAtomKey","isAtomMutable","isAtomTokenMutable","isDone","isReadonlySelectorKey","isSelectorDefault","isSelectorKey","isStateKey","isTransceiver","isValueCached","markAtomAsDefault","markAtomAsNotDefault","markDone","newest","openOperation","readCachedValue","readOrComputeValue","redoTransactionUpdate","registerSelector","setAtomOrSelector","subscribeToRootAtoms","subscribeToState","subscribeToTimeline","subscribeToTransaction","timeTravel","traceAllSelectorAtoms","traceSelectorAtoms","undoTransactionUpdate","updateSelectorAtoms","withdraw","withdrawNewFamilyMember"],"entryPoint":"src/index.ts","inputs":{"src/atom/create-atom.ts":{"bytesInOutput":1924},"src/future.ts":{"bytesInOutput":488},"src/lineage.ts":{"bytesInOutput":212},"src/caching.ts":{"bytesInOutput":1276},"src/mutable/create-mutable-atom.ts":{"bytesInOutput":806},"src/read-or-compute-value.ts":{"bytesInOutput":658},"src/operation.ts":{"bytesInOutput":1666},"src/set-state/become.ts":{"bytesInOutput":211},"src/subject.ts":{"bytesInOutput":614},"src/set-state/index.ts":{"bytesInOutput":0},"src/set-state/copy-mutable-if-needed.ts":{"bytesInOutput":517},"src/set-state/copy-mutable-in-transaction.ts":{"bytesInOutput":946},"src/set-state/emit-update.ts":{"bytesInOutput":270},"src/set-state/evict-downstream.ts":{"bytesInOutput":772},"src/set-state/stow-update.ts":{"bytesInOutput":965},"src/set-state/set-atom.ts":{"bytesInOutput":739},"src/set-state/set-atom-or-selector.ts":{"bytesInOutput":160},"src/store/deposit.ts":{"bytesInOutput":172},"src/store/index.ts":{"bytesInOutput":0},"src/store/store.ts":{"bytesInOutput":3189},"../../rel8/junction/src/junction.ts":{"bytesInOutput":7828},"../../rel8/junction/src/index.ts":{"bytesInOutput":0},"src/store/withdraw.ts":{"bytesInOutput":416},"src/store/withdraw-new-family-member.ts":{"bytesInOutput":509},"src/keys.ts":{"bytesInOutput":340},"src/selector/get-selector-dependency-keys.ts":{"bytesInOutput":292},"src/selector/trace-selector-atoms.ts":{"bytesInOutput":1115},"src/selector/update-selector-atoms.ts":{"bytesInOutput":764},"src/selector/register-selector.ts":{"bytesInOutput":1447},"src/selector/create-read-write-selector.ts":{"bytesInOutput":1397},"src/selector/create-readonly-selector.ts":{"bytesInOutput":957},"src/selector/create-selector.ts":{"bytesInOutput":673},"src/selector/index.ts":{"bytesInOutput":0},"src/selector/delete-selector.ts":{"bytesInOutput":959},"src/subscribe/recall-state.ts":{"bytesInOutput":199},"src/subscribe/subscribe-to-root-atoms.ts":{"bytesInOutput":1115},"src/subscribe/index.ts":{"bytesInOutput":0},"src/subscribe/subscribe-to-state.ts":{"bytesInOutput":1146},"src/subscribe/subscribe-to-timeline.ts":{"bytesInOutput":654},"src/subscribe/subscribe-to-transaction.ts":{"bytesInOutput":675},"src/mutable/tracker.ts":{"bytesInOutput":4324},"src/mutable/index.ts":{"bytesInOutput":51},"src/mutable/create-mutable-atom-family.ts":{"bytesInOutput":295},"src/mutable/tracker-family.ts":{"bytesInOutput":994},"src/families/create-atom-family.ts":{"bytesInOutput":1057},"src/families/index.ts":{"bytesInOutput":0},"src/families/create-readonly-selector-family.ts":{"bytesInOutput":747},"src/families/create-selector-family.ts":{"bytesInOutput":1006},"src/mutable/get-json-family.ts":{"bytesInOutput":210},"src/mutable/get-json-token.ts":{"bytesInOutput":424},"src/mutable/get-update-token.ts":{"bytesInOutput":319},"src/mutable/is-atom-token-mutable.ts":{"bytesInOutput":81},"src/mutable/transceiver.ts":{"bytesInOutput":148},"src/atom/is-default.ts":{"bytesInOutput":622},"src/atom/index.ts":{"bytesInOutput":0},"src/atom/delete-atom.ts":{"bytesInOutput":960},"src/index.ts":{"bytesInOutput":0},"src/lazy-map.ts":{"bytesInOutput":702},"src/not-found-error.ts":{"bytesInOutput":411},"src/timeline/add-atom-to-timeline.ts":{"bytesInOutput":7521},"src/timeline/index.ts":{"bytesInOutput":0},"src/timeline/create-timeline.ts":{"bytesInOutput":2238},"src/timeline/time-travel.ts":{"bytesInOutput":2489},"src/transaction/abort-transaction.ts":{"bytesInOutput":487},"src/transaction/index.ts":{"bytesInOutput":59},"src/transaction/apply-transaction.ts":{"bytesInOutput":2904},"src/transaction/build-transaction.ts":{"bytesInOutput":1272},"src/transaction/create-transaction.ts":{"bytesInOutput":1113},"src/transaction/redo-transaction.ts":{"bytesInOutput":718},"src/transaction/undo-transaction.ts":{"bytesInOutput":728}},"bytes":72368}}}
|