atom.io 0.33.4 → 0.33.6
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/data/index.d.ts +2 -7
- package/dist/data/index.d.ts.map +1 -1
- package/dist/eslint-plugin/index.d.ts +0 -6
- package/dist/eslint-plugin/index.d.ts.map +1 -1
- package/dist/internal/index.d.ts +12 -100
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +35 -35
- package/dist/internal/index.js.map +1 -1
- package/dist/introspection/index.d.ts +0 -8
- package/dist/introspection/index.d.ts.map +1 -1
- package/dist/introspection/index.js +9 -9
- package/dist/introspection/index.js.map +1 -1
- package/dist/json/index.d.ts +1 -6
- package/dist/json/index.d.ts.map +1 -1
- package/dist/main/index.d.ts +3 -28
- package/dist/main/index.d.ts.map +1 -1
- package/dist/main/index.js +4 -6
- package/dist/main/index.js.map +1 -1
- package/dist/react/index.d.ts +0 -5
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +7 -11
- package/dist/react/index.js.map +1 -1
- package/dist/react-devtools/index.css +9 -7
- package/dist/react-devtools/index.css.map +1 -1
- package/dist/react-devtools/index.d.ts +1 -12
- package/dist/react-devtools/index.d.ts.map +1 -1
- package/dist/react-devtools/index.js +7 -4
- package/dist/react-devtools/index.js.map +1 -1
- package/dist/realtime/index.d.ts +0 -2
- package/dist/realtime/index.d.ts.map +1 -1
- package/dist/realtime/index.js.map +1 -1
- package/dist/realtime-client/index.d.ts +13 -38
- package/dist/realtime-client/index.d.ts.map +1 -1
- package/dist/realtime-client/index.js +4 -6
- package/dist/realtime-client/index.js.map +1 -1
- package/dist/realtime-react/index.d.ts +7 -25
- package/dist/realtime-react/index.d.ts.map +1 -1
- package/dist/realtime-react/index.js +23 -42
- package/dist/realtime-react/index.js.map +1 -1
- package/dist/realtime-server/index.d.ts +11 -31
- package/dist/realtime-server/index.d.ts.map +1 -1
- package/dist/realtime-server/index.js +6 -6
- package/dist/realtime-server/index.js.map +1 -1
- package/dist/realtime-testing/index.d.ts +0 -1
- package/dist/realtime-testing/index.js +1 -1
- package/dist/realtime-testing/index.js.map +1 -1
- package/dist/transceivers/set-rtx/index.d.ts +0 -1
- package/dist/web/index.d.ts +0 -1
- package/package.json +37 -28
- package/src/internal/families/dispose-from-store.ts +1 -1
- package/src/internal/mutable/create-mutable-atom.ts +2 -6
- package/src/internal/set-state/set-into-store.ts +1 -1
- package/src/internal/store/withdraw.ts +13 -13
- package/src/internal/timeline/time-travel.ts +0 -2
- package/src/introspection/attach-type-selectors.ts +1 -1
- package/src/main/index.ts +2 -8
- package/src/main/logger.ts +2 -2
- package/src/react-devtools/AtomIODevtools.tsx +2 -2
- package/src/react-devtools/StateEditor.tsx +1 -5
- package/src/react-devtools/Updates.tsx +3 -5
- package/src/react-devtools/devtools.css +9 -7
- package/src/react-devtools/elastic-input/NumberInput.tsx +1 -1
- package/src/react-devtools/error-boundary/ReactErrorBoundary.tsx +1 -1
- package/src/react-devtools/json-editor/developer-interface.tsx +1 -1
- package/src/react-devtools/json-editor/editors-by-type/utilities/cast-json.ts +1 -1
- package/src/realtime/shared-room-store.ts +0 -3
- package/src/realtime-react/use-pull-selector.ts +0 -1
- package/src/realtime-react/use-single-effect.ts +2 -0
- package/src/realtime-server/continuity/prepare-to-sync-realtime-continuity.ts +1 -1
- package/src/realtime-server/continuity/subscribe-to-continuity-actions.ts +0 -2
- package/src/realtime-server/ipc-sockets/parent-socket.ts +1 -1
package/dist/data/index.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Store } from "atom.io/internal";
|
|
2
2
|
import { Canonical, stringified } from "atom.io/json";
|
|
3
|
-
import * as AtomIO$2 from "atom.io";
|
|
4
|
-
import * as AtomIO$1 from "atom.io";
|
|
5
3
|
import * as AtomIO from "atom.io";
|
|
6
4
|
|
|
7
5
|
//#region src/data/dict.d.ts
|
|
8
|
-
declare function dict<State, Key extends Canonical>(family: AtomIO
|
|
9
|
-
|
|
6
|
+
declare function dict<State, Key extends Canonical>(family: AtomIO.ReadonlyPureSelectorFamilyToken<State, Key> | AtomIO.RegularAtomFamilyToken<State, Key> | AtomIO.WritablePureSelectorFamilyToken<State, Key>, index: AtomIO.ReadonlyPureSelectorToken<Key[]> | AtomIO.RegularAtomToken<Key[]> | AtomIO.WritablePureSelectorToken<Key[]>, store?: Store): AtomIO.ReadonlyPureSelectorToken<{ [K in stringified<Key>]: State }>;
|
|
10
7
|
//#endregion
|
|
11
8
|
//#region src/data/struct.d.ts
|
|
12
9
|
declare function struct<Struct extends {
|
|
@@ -14,15 +11,13 @@ declare function struct<Struct extends {
|
|
|
14
11
|
}, Key extends string>(options: {
|
|
15
12
|
key: Key;
|
|
16
13
|
default: Struct;
|
|
17
|
-
}, store?: Store): [{ [K in keyof Struct as `${Key}${Capitalize<K & string>}State`]: AtomIO
|
|
18
|
-
|
|
14
|
+
}, store?: Store): [{ [K in keyof Struct as `${Key}${Capitalize<K & string>}State`]: AtomIO.RegularAtomToken<Struct[K]> }, AtomIO.ReadonlyPureSelectorToken<Struct>];
|
|
19
15
|
//#endregion
|
|
20
16
|
//#region src/data/struct-family.d.ts
|
|
21
17
|
declare function structFamily<Struct extends object, Key extends string>(options: {
|
|
22
18
|
key: Key;
|
|
23
19
|
default: Struct;
|
|
24
20
|
}): [{ [K in keyof Struct as `find${Capitalize<Key & string>}${Capitalize<K & string>}State`]: AtomIO.RegularAtomFamilyToken<Struct[K], string> }, AtomIO.ReadonlyPureSelectorFamilyToken<Struct, string>];
|
|
25
|
-
|
|
26
21
|
//#endregion
|
|
27
22
|
export { dict, struct, structFamily };
|
|
28
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/data/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["family:\n\t\t| AtomIO.ReadonlyPureSelectorFamilyToken<State, Key>\n\t\t| AtomIO.RegularAtomFamilyToken<State, Key>\n\t\t| AtomIO.WritablePureSelectorFamilyToken<State, Key>","index:\n\t\t| AtomIO.ReadonlyPureSelectorToken<Key[]>\n\t\t| AtomIO.RegularAtomToken<Key[]>\n\t\t| AtomIO.WritablePureSelectorToken<Key[]>","store: Store","options: {\n\t\tkey: Key\n\t\tdefault: Struct\n\t}","store: Store","options: {\n\tkey: Key\n\tdefault: Struct\n}"],"sources":["../../src/data/dict.ts","../../src/data/struct.ts","../../src/data/struct-family.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["family:\n\t\t| AtomIO.ReadonlyPureSelectorFamilyToken<State, Key>\n\t\t| AtomIO.RegularAtomFamilyToken<State, Key>\n\t\t| AtomIO.WritablePureSelectorFamilyToken<State, Key>","index:\n\t\t| AtomIO.ReadonlyPureSelectorToken<Key[]>\n\t\t| AtomIO.RegularAtomToken<Key[]>\n\t\t| AtomIO.WritablePureSelectorToken<Key[]>","store: Store","options: {\n\t\tkey: Key\n\t\tdefault: Struct\n\t}","store: Store","options: {\n\tkey: Key\n\tdefault: Struct\n}"],"sources":["../../src/data/dict.ts","../../src/data/struct.ts","../../src/data/struct-family.ts"],"sourcesContent":[],"mappings":";;;;;iBASgB,YAAhB,YAAwC,SAAxB,CAAA,CAAA,MAAA,EAEZ,MAAA,CAAO,+BAFK,CAE2B,KAF3B,EAEkC,GAFlC,CAAA,GAGZ,MAAA,CAAO,sBAHK,CAGkB,KAHlB,EAGyB,GAHzB,CAAA,GAIZ,MAAA,CAAO,+BAJK,CAI2B,KAJ3B,EAIkC,GAJlC,CAAA,EAAA,KAAA,EAMZ,MAAA,CAAO,yBANK,CAMqB,GANrB,EAAA,CAAA,GAOZ,MAAA,CAAO,gBAPK,CAOY,GAPZ,EAAA,CAAA,GAQZ,MAAA,CAAO,yBARK,CAQqB,GARrB,EAAA,CAAA,EAAA,KAAA,CAAA,EASR,KATQ,CAAA,EAUb,MAAA,CAAO,yBAVM,CAAA,QAU4B,WAV5B,CAUwC,GAVxC,CAAA,GAU+C,KAV/C,EAAA,CAAA;;;iBCAA;;ADAhB,CAAA,EAAgB,YAAA,MAAA,CAAA,CAAA,OAAwB,EAAA;EAAA,GAAA,ECKjC,GDHoC;EAAA,OAAO,ECIvC,MDJuC;CAAA,EAAA,KAAvC,CAAP,ECMI,KDNG,CAAA,EAAA,CAAA,QAAA,MCSG,MDTH,IAAA,GCSgB,GDThB,GCSsB,UDTtB,CCUR,CDVQ,GAAA,MAAA,CAAA,OAAA,GCWE,MAAA,CAAO,gBDXT,CCW0B,MDX1B,CCWiC,CDXjC,CAAA,CAAA,EAAA,ECaV,MAAA,CAAO,yBDbG,CCauB,MDbvB,CAAA,CAAA;;;iBEAK;EFFhB,GAAgB,EEMV,GFNU;EAAA,OAAA,EEON,MFPM;CAAA,CAAA,EAAA,CAAA,QAAwB,MEU1B,MFV0B,IAAA,OEUT,UFVS,CEUE,GFVF,GAAA,MAAA,CAAA,GEUkB,UFVlB,CEWrC,CFXqC,GAAA,MAAA,CAAA,OAAA,GEY3B,MAAA,CAAO,sBFZoB,CEYG,MFZH,CEYU,CFZV,CAAA,EAAA,MAAA,CAAA,EAAA,EEcvC,MAAA,CAAO,+BFdgC,CEcA,MFdA,EAAA,MAAA,CAAA,CAAA"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { __export } from "../chunk-Cl8Af3a2.js";
|
|
2
1
|
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
3
2
|
import { ESLint, Rule } from "eslint";
|
|
4
3
|
import { RuleType } from "@eslint/core";
|
|
5
4
|
|
|
6
5
|
//#region src/eslint-plugin/rules/explicit-state-types.d.ts
|
|
7
6
|
declare const explicitStateTypes: ESLintUtils.RuleModule<`noTypeArgument`, [], unknown, ESLintUtils.RuleListener>;
|
|
8
|
-
|
|
9
7
|
//#endregion
|
|
10
8
|
//#region src/eslint-plugin/rules/synchronous-selector-dependencies.d.ts
|
|
11
9
|
declare const synchronousSelectorDependencies: {
|
|
@@ -21,16 +19,12 @@ declare const synchronousSelectorDependencies: {
|
|
|
21
19
|
};
|
|
22
20
|
create(context: Rule.RuleContext): Rule.NodeListener;
|
|
23
21
|
};
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/eslint-plugin/rules/index.d.ts
|
|
27
22
|
declare namespace index_d_exports {
|
|
28
23
|
export { explicitStateTypes, synchronousSelectorDependencies };
|
|
29
24
|
}
|
|
30
25
|
//#endregion
|
|
31
26
|
//#region src/eslint-plugin/index.d.ts
|
|
32
27
|
declare const plugin: ESLint.Plugin;
|
|
33
|
-
|
|
34
28
|
//#endregion
|
|
35
29
|
export { index_d_exports as Rules, plugin as default };
|
|
36
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["explicitStateTypes: ESLintUtils.RuleModule<\n\t`noTypeArgument`,\n\t[],\n\tunknown,\n\tESLintUtils.RuleListener\n>","synchronousSelectorDependencies: {\n\tmeta: {\n\t\ttype: RuleType\n\t\tdocs: {\n\t\t\tdescription: string\n\t\t\tcategory: string\n\t\t\trecommended: boolean\n\t\t\turl: string\n\t\t}\n\t\tschema: never[]\n\t}\n\tcreate(context: Rule.RuleContext): Rule.NodeListener\n}","context: Rule.RuleContext","plugin: ESLint.Plugin"],"sources":["../../src/eslint-plugin/rules/explicit-state-types.ts","../../src/eslint-plugin/rules/synchronous-selector-dependencies.ts","../../src/eslint-plugin/rules/index.ts","../../src/eslint-plugin/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["explicitStateTypes: ESLintUtils.RuleModule<\n\t`noTypeArgument`,\n\t[],\n\tunknown,\n\tESLintUtils.RuleListener\n>","synchronousSelectorDependencies: {\n\tmeta: {\n\t\ttype: RuleType\n\t\tdocs: {\n\t\t\tdescription: string\n\t\t\tcategory: string\n\t\t\trecommended: boolean\n\t\t\turl: string\n\t\t}\n\t\tschema: never[]\n\t}\n\tcreate(context: Rule.RuleContext): Rule.NodeListener\n}","context: Rule.RuleContext","plugin: ESLint.Plugin"],"sources":["../../src/eslint-plugin/rules/explicit-state-types.ts","../../src/eslint-plugin/rules/synchronous-selector-dependencies.ts","../../src/eslint-plugin/rules/index.ts","../../src/eslint-plugin/index.ts"],"sourcesContent":[],"mappings":";;;;;cASaA,oBAAoB,WAAA,CAAY,0CAI5C,WAAA,CAAY;;;cCNAC;;UAEL;IDAR,IAAaD,EAAAA;MAIA,WAAA,EAAA,MAAA;MAAA,QAAZ,EAAA,MAAY;MAAA,WAJoB,EAAA,OAAY;MAAA,GAAA,EAAA,MAAA;;;;ECF7C,MAAaC,CAAAA,OAAAA,EAWI,IAAA,CAAK,WAXTA,CAAAA,EAWuB,IAAA,CAAK,YACxC;CAAA;AAAA;;;;;cEbKE,QAAQ,MAAA,CAAO"}
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ declare class CircularBuffer<T> {
|
|
|
14
14
|
add(item: T): void;
|
|
15
15
|
copy(): CircularBuffer<T>;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
17
|
//#endregion
|
|
19
18
|
//#region src/internal/store/counterfeit.d.ts
|
|
20
19
|
declare const FAMILY_MEMBER_TOKEN_TYPES: {
|
|
@@ -34,7 +33,6 @@ declare function counterfeit<T, K extends Canonical, Key extends K>(token: Reado
|
|
|
34
33
|
declare function counterfeit<T, K extends Canonical, Key extends K>(token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T>;
|
|
35
34
|
declare function counterfeit<T, K extends Canonical, Key extends K>(token: WritableFamilyToken<T, K>, key: Key): WritableToken<T>;
|
|
36
35
|
declare function counterfeit<T, K extends Canonical, Key extends K>(token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T>;
|
|
37
|
-
|
|
38
36
|
//#endregion
|
|
39
37
|
//#region src/internal/utility-types.d.ts
|
|
40
38
|
type Func = (...parameters: any[]) => any;
|
|
@@ -42,7 +40,6 @@ type Flat<R extends { [K in PropertyKey]: any }> = { [K in keyof R]: R[K] };
|
|
|
42
40
|
type Count<N extends number, A extends any[] = []> = [...A, any][`length`] extends N ? A[`length`] : A[`length`] | Count<N, [...A, any]>;
|
|
43
41
|
type Each<E extends any[]> = { [P in Count<E[`length`]>]: E[P] };
|
|
44
42
|
type Refinement<A, B extends A> = (a: A) => a is B;
|
|
45
|
-
|
|
46
43
|
//#endregion
|
|
47
44
|
//#region src/internal/junction.d.ts
|
|
48
45
|
type JunctionEntriesBase<AType extends string, BType extends string, Content extends Json.Object | null> = {
|
|
@@ -123,23 +120,18 @@ declare class Junction<const ASide extends string, const AType extends string, c
|
|
|
123
120
|
has(a: AType, b?: BType): boolean;
|
|
124
121
|
has(b: BType, a?: AType): boolean;
|
|
125
122
|
}
|
|
126
|
-
|
|
127
123
|
//#endregion
|
|
128
124
|
//#region src/internal/transaction/abort-transaction.d.ts
|
|
129
125
|
declare const abortTransaction: (store: Store) => void;
|
|
130
|
-
|
|
131
126
|
//#endregion
|
|
132
127
|
//#region src/internal/transaction/act-upon-store.d.ts
|
|
133
128
|
declare function actUponStore<F extends Func>(store: Store, token: TransactionToken<F>, id: string): (...parameters: Parameters<F>) => ReturnType<F>;
|
|
134
|
-
|
|
135
129
|
//#endregion
|
|
136
130
|
//#region src/internal/transaction/apply-transaction.d.ts
|
|
137
131
|
declare const applyTransaction: <F extends Func>(output: ReturnType<F>, store: Store) => void;
|
|
138
|
-
|
|
139
132
|
//#endregion
|
|
140
133
|
//#region src/internal/transaction/assign-transaction-to-continuity.d.ts
|
|
141
134
|
declare function assignTransactionToContinuity(store: Store, continuityKey: string, transactionKey: string): void;
|
|
142
|
-
|
|
143
135
|
//#endregion
|
|
144
136
|
//#region src/internal/transaction/is-root-store.d.ts
|
|
145
137
|
interface RootStore extends Store {
|
|
@@ -154,11 +146,9 @@ interface ChildStore extends Store {
|
|
|
154
146
|
}
|
|
155
147
|
declare function isRootStore(store: Store): store is RootStore;
|
|
156
148
|
declare function isChildStore(store: Store): store is ChildStore;
|
|
157
|
-
|
|
158
149
|
//#endregion
|
|
159
150
|
//#region src/internal/transaction/build-transaction.d.ts
|
|
160
151
|
declare const buildTransaction: (store: Store, key: string, params: any[], id: string) => ChildStore;
|
|
161
|
-
|
|
162
152
|
//#endregion
|
|
163
153
|
//#region src/internal/subject.d.ts
|
|
164
154
|
declare class Subject<T> {
|
|
@@ -173,7 +163,6 @@ declare class StatefulSubject<T> extends Subject<T> {
|
|
|
173
163
|
constructor(initialState: T);
|
|
174
164
|
next(value: T): void;
|
|
175
165
|
}
|
|
176
|
-
|
|
177
166
|
//#endregion
|
|
178
167
|
//#region src/internal/transaction/create-transaction.d.ts
|
|
179
168
|
type Transaction<F extends Func> = {
|
|
@@ -184,18 +173,15 @@ type Transaction<F extends Func> = {
|
|
|
184
173
|
run: (parameters: Parameters<F>, id?: string) => ReturnType<F>;
|
|
185
174
|
};
|
|
186
175
|
declare function createTransaction<F extends Func>(store: Store, options: TransactionOptions<F>): TransactionToken<F>;
|
|
187
|
-
|
|
188
176
|
//#endregion
|
|
189
177
|
//#region src/internal/transaction/get-epoch-number.d.ts
|
|
190
178
|
declare function getContinuityKey(store: RootStore, transactionKey: string): string | undefined;
|
|
191
179
|
declare function getEpochNumberOfContinuity(store: RootStore, continuityKey: string): number | undefined;
|
|
192
180
|
declare function getEpochNumberOfAction(store: Store, transactionKey: string): number | undefined;
|
|
193
|
-
|
|
194
181
|
//#endregion
|
|
195
182
|
//#region src/internal/transaction/set-epoch-number.d.ts
|
|
196
183
|
declare function setEpochNumberOfContinuity(store: Store, continuityKey: string, newEpoch: number): void;
|
|
197
184
|
declare function setEpochNumberOfAction(store: Store, transactionKey: string, newEpoch: number): void;
|
|
198
|
-
|
|
199
185
|
//#endregion
|
|
200
186
|
//#region src/internal/transaction/index.d.ts
|
|
201
187
|
declare const TRANSACTION_PHASES: readonly ["idle", "building", "applying"];
|
|
@@ -209,7 +195,6 @@ type TransactionEpoch = {
|
|
|
209
195
|
epoch: Map<string, number>;
|
|
210
196
|
actionContinuities: Junction<`continuity`, string, `action`, string>;
|
|
211
197
|
};
|
|
212
|
-
|
|
213
198
|
//#endregion
|
|
214
199
|
//#region src/internal/store/deposit.d.ts
|
|
215
200
|
declare function deposit<T>(state: RegularAtom<T>): RegularAtomToken<T>;
|
|
@@ -231,19 +216,15 @@ declare function deposit<T>(state: ReadableFamily<T, any>): ReadableFamilyToken<
|
|
|
231
216
|
declare function deposit<T extends Func>(state: Transaction<T>): TransactionToken<T>;
|
|
232
217
|
declare function deposit<M extends TimelineManageable>(state: Timeline<M>): TimelineToken<M>;
|
|
233
218
|
declare function deposit(resource: AtomIOInternalResource): AtomIOToken;
|
|
234
|
-
|
|
235
219
|
//#endregion
|
|
236
220
|
//#region src/internal/join/edit-relations-in-store.d.ts
|
|
237
221
|
declare function editRelationsInStore<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null>(token: JoinToken<ASide, AType, BSide, BType, Cardinality, Content>, change: (relations: Junction<ASide, AType, BSide, BType, Content>) => void, store: Store): void;
|
|
238
|
-
|
|
239
222
|
//#endregion
|
|
240
223
|
//#region src/internal/join/find-relations-in-store.d.ts
|
|
241
224
|
declare function findRelationsInStore<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null>(token: JoinToken<ASide, AType, BSide, BType, Cardinality, Content>, key: AType | BType, store: Store): JoinStates<ASide, AType, BSide, BType, Cardinality, Content>;
|
|
242
|
-
|
|
243
225
|
//#endregion
|
|
244
226
|
//#region src/internal/join/get-internal-relations-from-store.d.ts
|
|
245
227
|
declare function getInternalRelationsFromStore(token: JoinToken<any, any, any, any, any, any>, store: Store): MutableAtomFamilyToken<SetRTX<string>, SetRTXJson<string>, string>;
|
|
246
|
-
|
|
247
228
|
//#endregion
|
|
248
229
|
//#region src/internal/molecule.d.ts
|
|
249
230
|
type Molecule<K extends Canonical> = {
|
|
@@ -256,7 +237,6 @@ declare function allocateIntoStore<H extends Hierarchy, V extends Vassal<H>, A e
|
|
|
256
237
|
declare function fuseWithinStore<H extends Hierarchy, C extends CompoundFrom<H>, T extends (C extends CompoundTypedKey<infer t, any, any> ? t : never), A extends (C extends CompoundTypedKey<any, infer a, any> ? a : never), B extends (C extends CompoundTypedKey<any, any, infer b> ? b : never)>(store: Store, type: T, sideA: SingularTypedKey<A>, sideB: SingularTypedKey<B>): Claim<CompoundTypedKey<T, A, B>>;
|
|
257
238
|
declare function deallocateFromStore<H extends Hierarchy, V extends Vassal<H>>(store: Store, claim: Claim<V>): void;
|
|
258
239
|
declare function claimWithinStore<H extends Hierarchy, V extends Exclude<Vassal<H>, CompoundTypedKey>, A extends Above<V, H>>(store: Store, newProvenance: A, claim: Claim<V>, exclusive?: `exclusive`): Claim<V>;
|
|
259
|
-
|
|
260
240
|
//#endregion
|
|
261
241
|
//#region src/internal/join/join-internal.d.ts
|
|
262
242
|
type JoinStateFamilies<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null> = Cardinality extends `1:1` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntryOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<[AType, Content] | null, BType> } & { readonly [B in BSide as `${B}EntryOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<[BType, Content] | null, AType> } : {}) & { readonly [A in ASide as `${A}KeyOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<AType | null, BType> } & { readonly [B in BSide as `${B}KeyOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<BType | null, AType> } : Cardinality extends `1:n` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntryOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<[AType, Content] | null, BType> } & { readonly [B in BSide as `${B}EntriesOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<[BType, Content][], AType> } : {}) & { readonly [A in ASide as `${A}KeyOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<AType | null, BType> } & { readonly [B in BSide as `${B}KeysOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<BType[], AType> } : Cardinality extends `n:n` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntriesOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<[AType, Content][], BType> } & { readonly [B in BSide as `${B}EntriesOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<[BType, Content][], AType> } : {}) & { readonly [A in ASide as `${A}KeysOf${Capitalize<BSide>}`]: ReadonlyPureSelectorFamilyToken<AType[], BType> } & { readonly [B in BSide as `${B}KeysOf${Capitalize<ASide>}`]: ReadonlyPureSelectorFamilyToken<BType[], AType> } : never;
|
|
@@ -276,11 +256,9 @@ declare class Join<const ASide extends string, const AType extends string, const
|
|
|
276
256
|
[Symbol.dispose](): void;
|
|
277
257
|
constructor(options: JoinOptions<ASide, AType, BSide, BType, Cardinality, Content>, defaultContent: Content | undefined, store?: Store);
|
|
278
258
|
}
|
|
279
|
-
|
|
280
259
|
//#endregion
|
|
281
260
|
//#region src/internal/join/get-join.d.ts
|
|
282
261
|
declare function getJoin<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null>(token: JoinToken<ASide, AType, BSide, BType, Cardinality, Content>, store: Store): Join<ASide, AType, BSide, BType, Cardinality, Content>;
|
|
283
|
-
|
|
284
262
|
//#endregion
|
|
285
263
|
//#region src/internal/lineage.d.ts
|
|
286
264
|
/* eslint-disable @typescript-eslint/no-redundant-type-constituents */
|
|
@@ -289,7 +267,6 @@ interface Lineage {
|
|
|
289
267
|
child: typeof this | null;
|
|
290
268
|
}
|
|
291
269
|
declare function newest<T extends Lineage>(scion: T): T;
|
|
292
|
-
|
|
293
270
|
//#endregion
|
|
294
271
|
//#region src/internal/operation.d.ts
|
|
295
272
|
type OperationProgress = {
|
|
@@ -305,7 +282,6 @@ declare const openOperation: (store: Store, token: WritableToken<any>) => number
|
|
|
305
282
|
declare const closeOperation: (store: Store) => void;
|
|
306
283
|
declare const isDone: (store: Store, key: string) => boolean;
|
|
307
284
|
declare const markDone: (store: Store, key: string) => void;
|
|
308
|
-
|
|
309
285
|
//#endregion
|
|
310
286
|
//#region src/internal/timeline/create-timeline.d.ts
|
|
311
287
|
type TimelineAtomUpdate<ManagedAtom extends TimelineManageable> = Flat<StateUpdate<TokenType<ManagedAtom>> & {
|
|
@@ -351,11 +327,9 @@ type Timeline<ManagedAtom extends TimelineManageable> = {
|
|
|
351
327
|
subscriptions: Map<string, () => void>;
|
|
352
328
|
};
|
|
353
329
|
declare function createTimeline<ManagedAtom extends TimelineManageable>(store: Store, options: TimelineOptions<ManagedAtom>, data?: Timeline<ManagedAtom>): TimelineToken<ManagedAtom>;
|
|
354
|
-
|
|
355
330
|
//#endregion
|
|
356
331
|
//#region src/internal/timeline/time-travel.d.ts
|
|
357
332
|
declare const timeTravel: (store: Store, action: `redo` | `undo`, token: TimelineToken<any>) => void;
|
|
358
|
-
|
|
359
333
|
//#endregion
|
|
360
334
|
//#region src/internal/store/store.d.ts
|
|
361
335
|
declare class Store implements Lineage {
|
|
@@ -420,7 +394,6 @@ declare const IMPLICIT: {
|
|
|
420
394
|
readonly STORE: Store;
|
|
421
395
|
};
|
|
422
396
|
declare const clearStore: (store: Store) => void;
|
|
423
|
-
|
|
424
397
|
//#endregion
|
|
425
398
|
//#region src/internal/store/withdraw.d.ts
|
|
426
399
|
declare function withdraw<T>(store: Store, token: RegularAtomToken<T>): RegularAtom<T>;
|
|
@@ -439,24 +412,23 @@ declare function withdraw<T>(store: Store, token: WritableToken<T>): WritableSta
|
|
|
439
412
|
declare function withdraw<T>(store: Store, token: ReadableToken<T>): ReadableState<T>;
|
|
440
413
|
declare function withdraw<T, K extends Canonical>(store: Store, token: RegularAtomFamilyToken<T, K>): RegularAtomFamily<T, K>;
|
|
441
414
|
declare function withdraw<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical>(store: Store, token: MutableAtomFamilyToken<T, J, K>): MutableAtomFamily<T, J, K>;
|
|
442
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: AtomFamilyToken<T>): AtomFamily<T,
|
|
443
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyHeldSelectorFamilyToken<T, K>): ReadonlyHeldSelectorFamily<T,
|
|
444
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableHeldSelectorFamilyToken<T, K>): WritableHeldSelectorFamily<T,
|
|
445
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K>): ReadonlyPureSelectorFamily<T,
|
|
446
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: WritablePureSelectorFamilyToken<T, K>): WritablePureSelectorFamily<T,
|
|
447
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlySelectorFamilyToken<T, K>): ReadonlySelectorFamily<T,
|
|
448
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableSelectorFamilyToken<T, K>): WritableSelectorFamily<T,
|
|
449
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: HeldSelectorFamilyToken<T, K>): HeldSelectorFamily<T,
|
|
450
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: PureSelectorFamilyToken<T, K>): PureSelectorFamily<T,
|
|
451
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: SelectorFamilyToken<T, K>): SelectorFamily<T,
|
|
452
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadableFamilyToken<T, K>): ReadableFamily<T,
|
|
453
|
-
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableFamilyToken<T, K>): WritableFamily<T,
|
|
415
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: AtomFamilyToken<T, K>): AtomFamily<T, K>;
|
|
416
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyHeldSelectorFamilyToken<T, K>): ReadonlyHeldSelectorFamily<T, K>;
|
|
417
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableHeldSelectorFamilyToken<T, K>): WritableHeldSelectorFamily<T, K>;
|
|
418
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlyPureSelectorFamilyToken<T, K>): ReadonlyPureSelectorFamily<T, K>;
|
|
419
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: WritablePureSelectorFamilyToken<T, K>): WritablePureSelectorFamily<T, K>;
|
|
420
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadonlySelectorFamilyToken<T, K>): ReadonlySelectorFamily<T, K>;
|
|
421
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableSelectorFamilyToken<T, K>): WritableSelectorFamily<T, K>;
|
|
422
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: HeldSelectorFamilyToken<T, K>): HeldSelectorFamily<T, K>;
|
|
423
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: PureSelectorFamilyToken<T, K>): PureSelectorFamily<T, K>;
|
|
424
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: SelectorFamilyToken<T, K>): SelectorFamily<T, K>;
|
|
425
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: ReadableFamilyToken<T, K>): ReadableFamily<T, K>;
|
|
426
|
+
declare function withdraw<T, K extends Canonical>(store: Store, token: WritableFamilyToken<T, K>): WritableFamily<T, K>;
|
|
454
427
|
declare function withdraw<T extends Func>(store: Store, token: TransactionToken<T>): Transaction<T extends Func ? T : never>;
|
|
455
428
|
declare function withdraw<T>(store: Store, token: TimelineToken<T>): Timeline<T extends TimelineManageable ? T : never>;
|
|
456
429
|
declare function withdraw<T>(store: Store, token: WritableToken<T>): WritableState<T>;
|
|
457
430
|
declare function withdraw<T>(store: Store, token: ReadableToken<T>): ReadableState<T>;
|
|
458
431
|
declare function withdraw(store: Store, token: AtomIOToken): AtomIOInternalResource;
|
|
459
|
-
|
|
460
432
|
//#endregion
|
|
461
433
|
//#region src/internal/mutable/transceiver.d.ts
|
|
462
434
|
interface Transceiver<S extends Json.Serializable> {
|
|
@@ -469,31 +441,24 @@ interface Transceiver<S extends Json.Serializable> {
|
|
|
469
441
|
declare function isTransceiver(value: unknown): value is Transceiver<Json.Serializable>;
|
|
470
442
|
type TransceiverMode = `playback` | `record` | `transaction`;
|
|
471
443
|
type Signal$1<TVR extends Transceiver<any>> = TVR extends Transceiver<infer S> ? S : never;
|
|
472
|
-
|
|
473
444
|
//#endregion
|
|
474
445
|
//#region src/internal/mutable/create-mutable-atom.d.ts
|
|
475
446
|
declare function createMutableAtom<T extends Transceiver<any>, J extends Json.Serializable>(store: Store, options: MutableAtomOptions<T, J>, family: FamilyMetadata | undefined): MutableAtomToken<T, J>;
|
|
476
|
-
|
|
477
447
|
//#endregion
|
|
478
448
|
//#region src/internal/mutable/create-mutable-atom-family.d.ts
|
|
479
449
|
declare function createMutableAtomFamily<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical>(store: Store, options: MutableAtomFamilyOptions<T, J, K>, internalRoles?: string[]): MutableAtomFamilyToken<T, J, K>;
|
|
480
|
-
|
|
481
450
|
//#endregion
|
|
482
451
|
//#region src/internal/mutable/get-json-family.d.ts
|
|
483
452
|
declare const getJsonFamily: <Core extends Transceiver<Json.Serializable>, SerializableCore extends Json.Serializable, Key extends Canonical>(mutableAtomFamily: MutableAtomFamilyToken<Core, SerializableCore, Key>, store: Store) => WritablePureSelectorFamily<SerializableCore, Key>;
|
|
484
|
-
|
|
485
453
|
//#endregion
|
|
486
454
|
//#region src/internal/mutable/get-json-token.d.ts
|
|
487
455
|
declare const getJsonToken: <Core extends Transceiver<any>, SerializableCore extends Json.Serializable>(store: Store, mutableAtomToken: MutableAtomToken<Core, SerializableCore>) => WritablePureSelectorToken<SerializableCore>;
|
|
488
|
-
|
|
489
456
|
//#endregion
|
|
490
457
|
//#region src/internal/mutable/get-update-family.d.ts
|
|
491
458
|
declare const getUpdateFamily: <Core extends Transceiver<Json.Serializable>, SerializableCore extends Json.Serializable, Key extends string>(mutableAtomFamily: MutableAtomFamilyToken<Core, SerializableCore, Key>, store: Store) => AtomFamily<Signal$1<Core>, Key>;
|
|
492
|
-
|
|
493
459
|
//#endregion
|
|
494
460
|
//#region src/internal/mutable/get-update-token.d.ts
|
|
495
461
|
declare const getUpdateToken: <Core extends Transceiver<any>, SerializableCore extends Json.Serializable>(mutableAtomToken: MutableAtomToken<Core, SerializableCore>) => RegularAtomToken<Signal$1<Core>>;
|
|
496
|
-
|
|
497
462
|
//#endregion
|
|
498
463
|
//#region src/internal/mutable/tracker.d.ts
|
|
499
464
|
/**
|
|
@@ -512,7 +477,6 @@ declare class Tracker<Mutable extends Transceiver<any>> {
|
|
|
512
477
|
[Symbol.dispose]: () => void;
|
|
513
478
|
constructor(mutableState: MutableAtomToken<Mutable, Json.Serializable>, store: Store);
|
|
514
479
|
}
|
|
515
|
-
|
|
516
480
|
//#endregion
|
|
517
481
|
//#region src/internal/mutable/tracker-family.d.ts
|
|
518
482
|
declare class FamilyTracker<Core extends Transceiver<any>, FamilyMemberKey extends Canonical> {
|
|
@@ -521,30 +485,24 @@ declare class FamilyTracker<Core extends Transceiver<any>, FamilyMemberKey exten
|
|
|
521
485
|
readonly mutableAtoms: MutableAtomFamily<Core, any, FamilyMemberKey>;
|
|
522
486
|
constructor(mutableAtoms: MutableAtomFamily<Core, any, FamilyMemberKey>, store: Store);
|
|
523
487
|
}
|
|
524
|
-
|
|
525
488
|
//#endregion
|
|
526
489
|
//#region src/internal/arbitrary.d.ts
|
|
527
490
|
declare function arbitrary(random?: () => number): string;
|
|
528
|
-
|
|
529
491
|
//#endregion
|
|
530
492
|
//#region src/internal/atom/create-regular-atom.d.ts
|
|
531
493
|
declare function createRegularAtom<T>(store: Store, options: RegularAtomOptions<T>, family: FamilyMetadata | undefined): RegularAtomToken<T>;
|
|
532
|
-
|
|
533
494
|
//#endregion
|
|
534
495
|
//#region src/internal/atom/create-standalone-atom.d.ts
|
|
535
496
|
declare function createStandaloneAtom<T>(store: Store, options: RegularAtomOptions<T>): RegularAtomToken<T>;
|
|
536
497
|
declare function createStandaloneAtom<T extends Transceiver<any>, J extends Json.Serializable>(store: Store, options: MutableAtomOptions<T, J>): MutableAtomToken<T, J>;
|
|
537
|
-
|
|
538
498
|
//#endregion
|
|
539
499
|
//#region src/internal/atom/dispose-atom.d.ts
|
|
540
500
|
declare function disposeAtom(store: Store, atomToken: AtomToken<unknown>): void;
|
|
541
|
-
|
|
542
501
|
//#endregion
|
|
543
502
|
//#region src/internal/atom/is-default.d.ts
|
|
544
503
|
declare const isAtomDefault: (store: Store, key: string) => boolean;
|
|
545
504
|
declare const markAtomAsDefault: (store: Store, key: string) => void;
|
|
546
505
|
declare const markAtomAsNotDefault: (store: Store, key: string) => void;
|
|
547
|
-
|
|
548
506
|
//#endregion
|
|
549
507
|
//#region src/internal/future.d.ts
|
|
550
508
|
/**
|
|
@@ -566,47 +524,38 @@ declare class Future<T> extends Promise<T> {
|
|
|
566
524
|
private fail;
|
|
567
525
|
use(value: Promise<T> | T): void;
|
|
568
526
|
}
|
|
569
|
-
|
|
570
527
|
//#endregion
|
|
571
528
|
//#region src/internal/caching.d.ts
|
|
572
529
|
declare function cacheValue<T>(store: Store, key: string, value: T, subject: Subject<StateUpdate<unknown>>): T;
|
|
573
530
|
declare function cacheValue<T extends Promise<any>>(store: Store, key: string, value: T, subject: Subject<StateUpdate<unknown>>): Future<T>;
|
|
574
531
|
declare const readCachedValue: <T>(token: ReadableState<any>, target: Store) => T;
|
|
575
532
|
declare const evictCachedValue: (key: string, target: Store) => void;
|
|
576
|
-
|
|
577
533
|
//#endregion
|
|
578
534
|
//#region src/internal/capitalize.d.ts
|
|
579
535
|
declare function capitalize<S extends string>(string: S): Capitalize<S>;
|
|
580
|
-
|
|
581
536
|
//#endregion
|
|
582
537
|
//#region src/internal/families/create-atom-family.d.ts
|
|
583
538
|
declare function createAtomFamily<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical>(store: Store, options: MutableAtomFamilyOptions<T, J, K>): MutableAtomFamilyToken<T, J, K>;
|
|
584
539
|
declare function createAtomFamily<T, K extends Canonical>(store: Store, options: RegularAtomFamilyOptions<T, K>): RegularAtomFamilyToken<T, K>;
|
|
585
|
-
|
|
586
540
|
//#endregion
|
|
587
541
|
//#region src/internal/families/create-readonly-pure-selector-family.d.ts
|
|
588
542
|
declare function createReadonlyPureSelectorFamily<T, K extends Canonical>(store: Store, options: ReadonlyPureSelectorFamilyOptions<T, K>, internalRoles?: string[]): ReadonlyPureSelectorFamilyToken<T, K>;
|
|
589
|
-
|
|
590
543
|
//#endregion
|
|
591
544
|
//#region src/internal/families/create-regular-atom-family.d.ts
|
|
592
545
|
declare function createRegularAtomFamily<T, K extends Canonical>(store: Store, options: RegularAtomFamilyOptions<T, K>, internalRoles?: string[]): RegularAtomFamilyToken<T, K>;
|
|
593
|
-
|
|
594
546
|
//#endregion
|
|
595
547
|
//#region src/internal/families/create-selector-family.d.ts
|
|
596
548
|
declare function createSelectorFamily<T extends object, K extends Canonical>(store: Store, options: WritableHeldSelectorFamilyOptions<T, K>): WritableHeldSelectorFamilyToken<T, K>;
|
|
597
549
|
declare function createSelectorFamily<T extends object, K extends Canonical>(store: Store, options: ReadonlyHeldSelectorFamilyOptions<T, K>): ReadonlyHeldSelectorFamilyToken<T, K>;
|
|
598
550
|
declare function createSelectorFamily<T, K extends Canonical>(store: Store, options: WritablePureSelectorFamilyOptions<T, K>): WritablePureSelectorFamilyToken<T, K>;
|
|
599
551
|
declare function createSelectorFamily<T, K extends Canonical>(store: Store, options: ReadonlyPureSelectorFamilyOptions<T, K>): ReadonlyPureSelectorFamilyToken<T, K>;
|
|
600
|
-
|
|
601
552
|
//#endregion
|
|
602
553
|
//#region src/internal/families/create-writable-pure-selector-family.d.ts
|
|
603
554
|
declare function createWritablePureSelectorFamily<T, K extends Canonical>(store: Store, options: WritablePureSelectorFamilyOptions<T, K>, internalRoles?: string[]): WritablePureSelectorFamilyToken<T, K>;
|
|
604
|
-
|
|
605
555
|
//#endregion
|
|
606
556
|
//#region src/internal/families/dispose-from-store.d.ts
|
|
607
557
|
declare function disposeFromStore(store: Store, token: ReadableToken<any>): void;
|
|
608
558
|
declare function disposeFromStore<K extends Canonical>(store: Store, token: ReadableFamilyToken<any, K>, key: K): void;
|
|
609
|
-
|
|
610
559
|
//#endregion
|
|
611
560
|
//#region src/internal/families/find-in-store.d.ts
|
|
612
561
|
declare function findInStore<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical, Key extends K>(store: Store, token: MutableAtomFamilyToken<T, J, K>, key: Key): MutableAtomToken<T, J, K>;
|
|
@@ -617,7 +566,6 @@ declare function findInStore<T, K extends Canonical, Key extends K>(store: Store
|
|
|
617
566
|
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T, K>;
|
|
618
567
|
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritableFamilyToken<T, K>, key: Key): WritableToken<T, K>;
|
|
619
568
|
declare function findInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T, K>;
|
|
620
|
-
|
|
621
569
|
//#endregion
|
|
622
570
|
//#region src/internal/families/init-family-member.d.ts
|
|
623
571
|
declare function initFamilyMemberInStore<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical, Key extends K>(store: Store, token: MutableAtomFamilyToken<T, J, K>, key: Key): MutableAtomToken<T, J, K>;
|
|
@@ -628,7 +576,6 @@ declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(
|
|
|
628
576
|
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T, K>;
|
|
629
577
|
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritableFamilyToken<T, K>, key: Key): WritableToken<T, K>;
|
|
630
578
|
declare function initFamilyMemberInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T, K>;
|
|
631
|
-
|
|
632
579
|
//#endregion
|
|
633
580
|
//#region src/internal/families/seek-in-store.d.ts
|
|
634
581
|
declare function seekInStore<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical, Key extends K>(store: Store, token: MutableAtomFamilyToken<T, J, K>, key: Key): MutableAtomToken<T, J, K> | undefined;
|
|
@@ -639,31 +586,25 @@ declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store
|
|
|
639
586
|
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: SelectorFamilyToken<T, K>, key: Key): SelectorToken<T, K> | undefined;
|
|
640
587
|
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: WritableFamilyToken<T, K>, key: Key): WritableToken<T, K> | undefined;
|
|
641
588
|
declare function seekInStore<T, K extends Canonical, Key extends K>(store: Store, token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T, K> | undefined;
|
|
642
|
-
|
|
643
589
|
//#endregion
|
|
644
590
|
//#region src/internal/get-environment-data.d.ts
|
|
645
591
|
type EnvironmentData = {
|
|
646
592
|
store: Store;
|
|
647
593
|
};
|
|
648
594
|
declare function getEnvironmentData(store: Store): EnvironmentData;
|
|
649
|
-
|
|
650
595
|
//#endregion
|
|
651
596
|
//#region src/internal/get-state/get-from-store.d.ts
|
|
652
597
|
declare function getFromStore<T>(store: Store, token: ReadableToken<T>): T;
|
|
653
598
|
declare function getFromStore<T, K extends Canonical>(store: Store, token: ReadableFamilyToken<T, K>, key: K): T;
|
|
654
|
-
|
|
655
599
|
//#endregion
|
|
656
600
|
//#region src/internal/get-state/read-or-compute-value.d.ts
|
|
657
601
|
declare const readOrComputeValue: <T>(target: Store, state: ReadableState<T>) => T;
|
|
658
|
-
|
|
659
602
|
//#endregion
|
|
660
603
|
//#region src/internal/get-trace.d.ts
|
|
661
604
|
declare function getTrace(error: Error): string;
|
|
662
|
-
|
|
663
605
|
//#endregion
|
|
664
606
|
//#region src/internal/ingest-updates/ingest-atom-update.d.ts
|
|
665
607
|
declare function ingestAtomUpdate(applying: `newValue` | `oldValue`, atomUpdate: KeyedStateUpdate<any>, store: Store): void;
|
|
666
|
-
|
|
667
608
|
//#endregion
|
|
668
609
|
//#region src/internal/ingest-updates/ingest-creation-disposal.d.ts
|
|
669
610
|
declare function ingestCreationEvent(update: StateCreation<any>, applying: `newValue` | `oldValue`, store: Store): void;
|
|
@@ -671,15 +612,12 @@ declare function ingestDisposalEvent(update: StateDisposal<ReadableToken<any>>,
|
|
|
671
612
|
declare function ingestMoleculeCreationEvent(update: MoleculeCreation, applying: `newValue` | `oldValue`, store: Store): void;
|
|
672
613
|
declare function ingestMoleculeDisposalEvent(update: MoleculeDisposal, applying: `newValue` | `oldValue`, store: Store): void;
|
|
673
614
|
declare function ingestMoleculeTransferEvent(update: MoleculeTransfer, applying: `newValue` | `oldValue`, store: Store): void;
|
|
674
|
-
|
|
675
615
|
//#endregion
|
|
676
616
|
//#region src/internal/ingest-updates/ingest-selector-update.d.ts
|
|
677
617
|
declare function ingestSelectorUpdate(applying: `newValue` | `oldValue`, selectorUpdate: TimelineSelectorUpdate<any>, store: Store): void;
|
|
678
|
-
|
|
679
618
|
//#endregion
|
|
680
619
|
//#region src/internal/ingest-updates/ingest-transaction-update.d.ts
|
|
681
620
|
declare function ingestTransactionUpdate(applying: `newValue` | `oldValue`, transactionUpdate: TransactionUpdate<any>, store: Store): void;
|
|
682
|
-
|
|
683
621
|
//#endregion
|
|
684
622
|
//#region src/internal/install-into-store.d.ts
|
|
685
623
|
/**
|
|
@@ -691,7 +629,6 @@ declare function ingestTransactionUpdate(applying: `newValue` | `oldValue`, tran
|
|
|
691
629
|
*
|
|
692
630
|
*/
|
|
693
631
|
declare function installIntoStore(tokens: AtomIOToken[], target: Store, source: Store): void;
|
|
694
|
-
|
|
695
632
|
//#endregion
|
|
696
633
|
//#region src/internal/keys.d.ts
|
|
697
634
|
type AtomKey<T> = string & {
|
|
@@ -711,7 +648,6 @@ declare const isSelectorKey: (store: Store, key: string) => key is SelectorKey<u
|
|
|
711
648
|
declare const isReadonlySelectorKey: (store: Store, key: string) => key is ReadonlySelectorKey<unknown>;
|
|
712
649
|
type StateKey<T> = AtomKey<T> | ReadonlySelectorKey<T> | SelectorKey<T>;
|
|
713
650
|
declare const isStateKey: (store: Store, key: string) => key is StateKey<unknown>;
|
|
714
|
-
|
|
715
651
|
//#endregion
|
|
716
652
|
//#region src/internal/lazy-map.d.ts
|
|
717
653
|
declare class LazyMap<K, V> extends Map<K, V> {
|
|
@@ -724,107 +660,84 @@ declare class LazyMap<K, V> extends Map<K, V> {
|
|
|
724
660
|
has(key: K): boolean;
|
|
725
661
|
delete(key: K): boolean;
|
|
726
662
|
}
|
|
727
|
-
|
|
728
663
|
//#endregion
|
|
729
664
|
//#region src/internal/not-found-error.d.ts
|
|
730
665
|
declare class NotFoundError extends Error {
|
|
731
666
|
constructor(token: AtomIOToken, store: Store);
|
|
732
667
|
}
|
|
733
|
-
|
|
734
668
|
//#endregion
|
|
735
669
|
//#region src/internal/pretty-print.d.ts
|
|
736
670
|
declare function prettyPrintTokenType(token: AtomIOToken): string;
|
|
737
|
-
|
|
738
671
|
//#endregion
|
|
739
672
|
//#region src/internal/reserved-keys.d.ts
|
|
740
673
|
type ReservedIntrospectionKey = `🔍 ${string}`;
|
|
741
674
|
declare function isReservedIntrospectionKey(value: string): value is ReservedIntrospectionKey;
|
|
742
|
-
|
|
743
675
|
//#endregion
|
|
744
676
|
//#region src/internal/selector/create-readonly-held-selector.d.ts
|
|
745
677
|
declare const createReadonlyHeldSelector: <T extends object>(store: Store, options: ReadonlyHeldSelectorOptions<T>, family: FamilyMetadata | undefined) => ReadonlyHeldSelectorToken<T>;
|
|
746
|
-
|
|
747
678
|
//#endregion
|
|
748
679
|
//#region src/internal/selector/create-readonly-pure-selector.d.ts
|
|
749
680
|
declare const createReadonlyPureSelector: <T>(store: Store, options: ReadonlyPureSelectorOptions<T>, family: FamilyMetadata | undefined) => ReadonlyPureSelectorToken<T>;
|
|
750
|
-
|
|
751
681
|
//#endregion
|
|
752
682
|
//#region src/internal/selector/create-standalone-selector.d.ts
|
|
753
683
|
declare function createStandaloneSelector<T extends object>(store: Store, options: WritableHeldSelectorOptions<T>): WritableHeldSelectorToken<T>;
|
|
754
684
|
declare function createStandaloneSelector<T extends object>(store: Store, options: ReadonlyHeldSelectorOptions<T>): ReadonlyHeldSelectorToken<T>;
|
|
755
685
|
declare function createStandaloneSelector<T>(store: Store, options: WritablePureSelectorOptions<T>): WritablePureSelectorToken<T>;
|
|
756
686
|
declare function createStandaloneSelector<T>(store: Store, options: ReadonlyPureSelectorOptions<T>): ReadonlyPureSelectorToken<T>;
|
|
757
|
-
|
|
758
687
|
//#endregion
|
|
759
688
|
//#region src/internal/selector/create-writable-held-selector.d.ts
|
|
760
689
|
declare const createWritableHeldSelector: <T extends object>(store: Store, options: WritableHeldSelectorOptions<T>, family: FamilyMetadata | undefined) => WritableHeldSelectorToken<T>;
|
|
761
|
-
|
|
762
690
|
//#endregion
|
|
763
691
|
//#region src/internal/selector/create-writable-pure-selector.d.ts
|
|
764
692
|
declare const createWritablePureSelector: <T>(store: Store, options: WritablePureSelectorOptions<T>, family: FamilyMetadata | undefined) => WritablePureSelectorToken<T>;
|
|
765
|
-
|
|
766
693
|
//#endregion
|
|
767
694
|
//#region src/internal/selector/dispose-selector.d.ts
|
|
768
695
|
declare function disposeSelector(store: Store, selectorToken: SelectorToken<unknown>): void;
|
|
769
|
-
|
|
770
696
|
//#endregion
|
|
771
697
|
//#region src/internal/selector/get-selector-dependency-keys.d.ts
|
|
772
698
|
declare const getSelectorDependencyKeys: (store: Store, key: string) => (AtomKey<unknown> | ReadonlySelectorKey<unknown> | SelectorKey<unknown>)[];
|
|
773
|
-
|
|
774
699
|
//#endregion
|
|
775
700
|
//#region src/internal/selector/register-selector.d.ts
|
|
776
701
|
declare const registerSelector: (store: Store, selectorType: `readonly_held_selector` | `readonly_pure_selector` | `writable_held_selector` | `writable_pure_selector`, selectorKey: string, covered: Set<string>) => SetterToolkit;
|
|
777
|
-
|
|
778
702
|
//#endregion
|
|
779
703
|
//#region src/internal/selector/trace-selector-atoms.d.ts
|
|
780
704
|
declare const traceSelectorAtoms: (store: Store, directDependencyKey: StateKey<unknown>, covered: Set<string>) => AtomKey<unknown>[];
|
|
781
705
|
declare const traceAllSelectorAtoms: (selector: Selector<any>, store: Store) => AtomKey<unknown>[];
|
|
782
|
-
|
|
783
706
|
//#endregion
|
|
784
707
|
//#region src/internal/selector/update-selector-atoms.d.ts
|
|
785
708
|
declare const updateSelectorAtoms: (store: Store, selectorType: `readonly_held_selector` | `readonly_pure_selector` | `writable_held_selector` | `writable_pure_selector`, selectorKey: string, dependency: ReadonlyPureSelectorToken<unknown> | WritableToken<unknown>, covered: Set<string>) => void;
|
|
786
|
-
|
|
787
709
|
//#endregion
|
|
788
710
|
//#region src/internal/set-state/become.d.ts
|
|
789
711
|
type Modify<T> = (thing: T) => T;
|
|
790
712
|
declare const become: <T>(nextVersionOfThing: Modify<T> | T) => (originalThing: T) => T;
|
|
791
|
-
|
|
792
713
|
//#endregion
|
|
793
714
|
//#region src/internal/set-state/set-atom-or-selector.d.ts
|
|
794
715
|
declare const setAtomOrSelector: <T>(store: Store, state: WritableState<T>, value: T | ((oldValue: T) => T)) => void;
|
|
795
|
-
|
|
796
716
|
//#endregion
|
|
797
717
|
//#region src/internal/set-state/set-into-store.d.ts
|
|
798
718
|
declare function setIntoStore<T, New extends T>(store: Store, token: WritableToken<T>, value: New | ((oldValue: T) => New)): void;
|
|
799
719
|
declare function setIntoStore<T, K extends Canonical, New extends T>(store: Store, token: WritableFamilyToken<T, K>, key: K, value: New | ((oldValue: T) => New)): void;
|
|
800
|
-
|
|
801
720
|
//#endregion
|
|
802
721
|
//#region src/internal/subscribe/recall-state.d.ts
|
|
803
722
|
declare const recallState: <T>(store: Store, state: ReadableState<T>) => T;
|
|
804
|
-
|
|
805
723
|
//#endregion
|
|
806
724
|
//#region src/internal/subscribe/subscribe-in-store.d.ts
|
|
807
725
|
declare function subscribeInStore<T>(store: Store$1, token: ReadableToken<T>, handleUpdate: UpdateHandler<T>, key?: string): () => void;
|
|
808
726
|
declare function subscribeInStore<F extends Func$1>(store: Store$1, token: TransactionToken<F>, handleUpdate: TransactionUpdateHandler<F>, key?: string): () => void;
|
|
809
727
|
declare function subscribeInStore<M extends TimelineManageable>(store: Store$1, token: TimelineToken<M>, handleUpdate: (update: TimelineUpdate<M> | `redo` | `undo`) => void, key?: string): () => void;
|
|
810
728
|
declare function subscribeInStore<M extends TimelineManageable>(store: Store$1, token: ReadableToken<any> | TimelineToken<M> | TransactionToken<any>, handleUpdate: TransactionUpdateHandler<any> | UpdateHandler<any> | ((update: TimelineUpdate<M> | `redo` | `undo`) => void), key?: string): () => void;
|
|
811
|
-
|
|
812
729
|
//#endregion
|
|
813
730
|
//#region src/internal/subscribe/subscribe-to-root-atoms.d.ts
|
|
814
731
|
declare const subscribeToRootAtoms: <T>(store: Store, selector: Selector<T>) => (() => void)[];
|
|
815
|
-
|
|
816
732
|
//#endregion
|
|
817
733
|
//#region src/internal/subscribe/subscribe-to-state.d.ts
|
|
818
734
|
declare function subscribeToState<T>(store: Store, token: ReadableToken<T>, key: string, handleUpdate: UpdateHandler<T>): () => void;
|
|
819
|
-
|
|
820
735
|
//#endregion
|
|
821
736
|
//#region src/internal/subscribe/subscribe-to-timeline.d.ts
|
|
822
737
|
declare const subscribeToTimeline: <ManagedAtom extends TimelineManageable>(store: Store, token: TimelineToken<ManagedAtom>, key: string, handleUpdate: (update: TimelineUpdate<any> | `redo` | `undo`) => void) => (() => void);
|
|
823
|
-
|
|
824
738
|
//#endregion
|
|
825
739
|
//#region src/internal/subscribe/subscribe-to-transaction.d.ts
|
|
826
740
|
declare const subscribeToTransaction: <F extends Func>(store: Store, token: TransactionToken<F>, key: string, handleUpdate: TransactionUpdateHandler<F>) => (() => void);
|
|
827
|
-
|
|
828
741
|
//#endregion
|
|
829
742
|
//#region src/internal/index.d.ts
|
|
830
743
|
type AtomIOState = {
|
|
@@ -925,7 +838,6 @@ type SelectorFamily<T, K extends Canonical> = HeldSelectorFamily<T, K> | PureSel
|
|
|
925
838
|
type WritableFamily<T, K extends Canonical> = AtomFamily<T, K> | WritablePureSelectorFamily<T, K>;
|
|
926
839
|
type ReadableFamily<T, K extends Canonical> = AtomFamily<T, K> | SelectorFamily<T, K>;
|
|
927
840
|
type AtomIOInternalResource = ReadableFamily<any, any> | ReadableState<any> | Timeline<any> | Transaction<any>;
|
|
928
|
-
|
|
929
841
|
//#endregion
|
|
930
842
|
export { Atom, AtomFamily, AtomIOInternalResource, AtomIOState, AtomKey, BaseExternalStoreConfiguration, ChildStore, CircularBuffer, Count, Each, Empty, EnvironmentData, ExternalStoreConfiguration, ExternalStoreWithContentConfiguration, FAMILY_MEMBER_TOKEN_TYPES, FamilyTracker, Flat, Func, Future, HeldSelector, HeldSelectorFamily, IMPLICIT, Join, JoinStateFamilies, Junction, JunctionAdvancedConfiguration, JunctionEntries, JunctionEntriesBase, JunctionJSON, JunctionSchema, JunctionSchemaBase, LazyMap, Lineage, Modify, Molecule, MutableAtom, MutableAtomFamily, NotFoundError, OperationProgress, PureSelector, PureSelectorFamily, ReadableFamily, ReadableState, ReadonlyHeldSelector, ReadonlyHeldSelectorFamily, ReadonlyPureSelector, ReadonlyPureSelectorFamily, ReadonlySelector, ReadonlySelectorFamily, ReadonlySelectorKey, Refinement, RegularAtom, RegularAtomFamily, ReservedIntrospectionKey, RootStore, Selector, SelectorFamily, SelectorKey, Signal$1 as Signal, StateKey, StatefulSubject, Store, StoreEventCarrier, Subject, TRANSACTION_PHASES, Timeline, TimelineAtomUpdate, TimelineMoleculeCreation, TimelineMoleculeDisposal, TimelineSelectorUpdate, TimelineStateCreation, TimelineStateDisposal, TimelineTransactionUpdate, Tracker, Transaction, TransactionEpoch, TransactionPhase, TransactionProgress, Transceiver, TransceiverMode, WritableFamily, WritableHeldSelector, WritableHeldSelectorFamily, WritablePureSelector, WritablePureSelectorFamily, WritableSelector, WritableSelectorFamily, WritableState, abortTransaction, actUponStore, allocateIntoStore, applyTransaction, arbitrary, assignTransactionToContinuity, become, buildTransaction, cacheValue, capitalize, claimWithinStore, clearStore, closeOperation, counterfeit, createAtomFamily, createMutableAtom, createMutableAtomFamily, createReadonlyHeldSelector, createReadonlyPureSelector, createReadonlyPureSelectorFamily, createRegularAtom, createRegularAtomFamily, createSelectorFamily, createStandaloneAtom, createStandaloneSelector, createTimeline, createTransaction, createWritableHeldSelector, createWritablePureSelector, createWritablePureSelectorFamily, deallocateFromStore, deposit, disposeAtom, disposeFromStore, disposeSelector, editRelationsInStore, evictCachedValue, findInStore, findRelationsInStore, fuseWithinStore, getContinuityKey, getEnvironmentData, getEpochNumberOfAction, getEpochNumberOfContinuity, getFromStore, getInternalRelationsFromStore, getJoin, getJsonFamily, getJsonToken, getSelectorDependencyKeys, getTrace, getUpdateFamily, getUpdateToken, ingestAtomUpdate, ingestCreationEvent, ingestDisposalEvent, ingestMoleculeCreationEvent, ingestMoleculeDisposalEvent, ingestMoleculeTransferEvent, ingestSelectorUpdate, ingestTransactionUpdate, initFamilyMemberInStore, installIntoStore, isAtomDefault, isAtomKey, isChildStore, isDone, isReadonlySelectorKey, isReservedIntrospectionKey, isRootStore, isSelectorKey, isStateKey, isTransceiver, makeRootMoleculeInStore, markAtomAsDefault, markAtomAsNotDefault, markDone, newest, openOperation, prettyPrintTokenType, readCachedValue, readOrComputeValue, recallState, registerSelector, seekInStore, setAtomOrSelector, setEpochNumberOfAction, setEpochNumberOfContinuity, setIntoStore, subscribeInStore, subscribeToRootAtoms, subscribeToState, subscribeToTimeline, subscribeToTransaction, timeTravel, traceAllSelectorAtoms, traceSelectorAtoms, updateSelectorAtoms, withdraw };
|
|
931
843
|
//# sourceMappingURL=index.d.ts.map
|