tinybase 5.0.0-beta.27 → 5.0.0-beta.28
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/@types/_internal/ui-react/with-schemas/index.d.cts +274 -0
- package/@types/_internal/ui-react/with-schemas/index.d.ts +274 -0
- package/@types/checkpoints/index.d.cts +30 -1
- package/@types/checkpoints/index.d.ts +30 -1
- package/@types/checkpoints/with-schemas/index.d.cts +30 -1
- package/@types/checkpoints/with-schemas/index.d.ts +30 -1
- package/@types/common/index.d.cts +9 -0
- package/@types/common/index.d.ts +9 -0
- package/@types/common/with-schemas/index.d.cts +9 -0
- package/@types/common/with-schemas/index.d.ts +9 -0
- package/@types/index.d.cts +1 -0
- package/@types/index.d.ts +1 -0
- package/@types/indexes/index.d.cts +32 -1
- package/@types/indexes/index.d.ts +32 -1
- package/@types/indexes/with-schemas/index.d.cts +32 -1
- package/@types/indexes/with-schemas/index.d.ts +32 -1
- package/@types/mergeable-store/index.d.cts +0 -2
- package/@types/mergeable-store/index.d.ts +0 -2
- package/@types/mergeable-store/with-schemas/index.d.cts +2 -2
- package/@types/mergeable-store/with-schemas/index.d.ts +2 -2
- package/@types/metrics/index.d.cts +30 -4
- package/@types/metrics/index.d.ts +30 -4
- package/@types/metrics/with-schemas/index.d.cts +30 -4
- package/@types/metrics/with-schemas/index.d.ts +30 -4
- package/@types/persisters/index.d.cts +87 -25
- package/@types/persisters/index.d.ts +87 -25
- package/@types/persisters/persister-automerge/index.d.cts +4 -4
- package/@types/persisters/persister-automerge/index.d.ts +4 -4
- package/@types/persisters/persister-automerge/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-automerge/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-browser/index.d.cts +7 -4
- package/@types/persisters/persister-browser/index.d.ts +7 -4
- package/@types/persisters/persister-browser/with-schemas/index.d.cts +7 -4
- package/@types/persisters/persister-browser/with-schemas/index.d.ts +7 -4
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.cts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/index.d.ts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-cr-sqlite-wasm/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-electric-sql/index.d.cts +4 -4
- package/@types/persisters/persister-electric-sql/index.d.ts +4 -4
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-electric-sql/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-expo-sqlite/index.d.cts +4 -4
- package/@types/persisters/persister-expo-sqlite/index.d.ts +4 -4
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-expo-sqlite/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-file/index.d.cts +6 -4
- package/@types/persisters/persister-file/index.d.ts +6 -4
- package/@types/persisters/persister-file/with-schemas/index.d.cts +6 -4
- package/@types/persisters/persister-file/with-schemas/index.d.ts +6 -4
- package/@types/persisters/persister-indexed-db/index.d.cts +5 -4
- package/@types/persisters/persister-indexed-db/index.d.ts +5 -4
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-indexed-db/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-libsql/index.d.cts +5 -4
- package/@types/persisters/persister-libsql/index.d.ts +5 -4
- package/@types/persisters/persister-libsql/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-libsql/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-partykit-client/index.d.cts +12 -6
- package/@types/persisters/persister-partykit-client/index.d.ts +12 -6
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.cts +12 -6
- package/@types/persisters/persister-partykit-client/with-schemas/index.d.ts +12 -6
- package/@types/persisters/persister-partykit-server/index.d.cts +11 -3
- package/@types/persisters/persister-partykit-server/index.d.ts +11 -3
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.cts +11 -3
- package/@types/persisters/persister-partykit-server/with-schemas/index.d.ts +11 -3
- package/@types/persisters/persister-powersync/index.d.cts +5 -4
- package/@types/persisters/persister-powersync/index.d.ts +5 -4
- package/@types/persisters/persister-powersync/with-schemas/index.d.cts +5 -4
- package/@types/persisters/persister-powersync/with-schemas/index.d.ts +5 -4
- package/@types/persisters/persister-remote/index.d.cts +6 -4
- package/@types/persisters/persister-remote/index.d.ts +6 -4
- package/@types/persisters/persister-remote/with-schemas/index.d.cts +6 -4
- package/@types/persisters/persister-remote/with-schemas/index.d.ts +6 -4
- package/@types/persisters/persister-sqlite-wasm/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite-wasm/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite-wasm/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite3/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite3/index.d.ts +4 -4
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-sqlite3/with-schemas/index.d.ts +4 -4
- package/@types/persisters/persister-yjs/index.d.cts +4 -4
- package/@types/persisters/persister-yjs/index.d.ts +4 -4
- package/@types/persisters/persister-yjs/with-schemas/index.d.cts +4 -4
- package/@types/persisters/persister-yjs/with-schemas/index.d.ts +4 -4
- package/@types/persisters/with-schemas/index.d.cts +87 -25
- package/@types/persisters/with-schemas/index.d.ts +87 -25
- package/@types/queries/index.d.cts +64 -4
- package/@types/queries/index.d.ts +64 -4
- package/@types/queries/with-schemas/index.d.cts +64 -4
- package/@types/queries/with-schemas/index.d.ts +64 -4
- package/@types/relationships/index.d.cts +34 -1
- package/@types/relationships/index.d.ts +34 -1
- package/@types/relationships/with-schemas/index.d.cts +34 -1
- package/@types/relationships/with-schemas/index.d.ts +34 -1
- package/@types/store/index.d.cts +125 -0
- package/@types/store/index.d.ts +125 -0
- package/@types/store/with-schemas/index.d.cts +125 -0
- package/@types/store/with-schemas/index.d.ts +125 -0
- package/@types/synchronizers/index.d.cts +32 -10
- package/@types/synchronizers/index.d.ts +32 -10
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.cts +114 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/index.d.ts +114 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.cts +128 -0
- package/@types/synchronizers/synchronizer-broadcast-channel/with-schemas/index.d.ts +128 -0
- package/@types/synchronizers/synchronizer-local/index.d.cts +16 -17
- package/@types/synchronizers/synchronizer-local/index.d.ts +16 -17
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.cts +16 -17
- package/@types/synchronizers/synchronizer-local/with-schemas/index.d.ts +16 -17
- package/@types/synchronizers/synchronizer-ws-client/index.d.cts +66 -6
- package/@types/synchronizers/synchronizer-ws-client/index.d.ts +66 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.cts +77 -6
- package/@types/synchronizers/synchronizer-ws-client/with-schemas/index.d.ts +77 -6
- package/@types/synchronizers/synchronizer-ws-server/index.d.cts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/index.d.ts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.cts +486 -7
- package/@types/synchronizers/synchronizer-ws-server/with-schemas/index.d.ts +486 -7
- package/@types/synchronizers/with-schemas/index.d.cts +29 -11
- package/@types/synchronizers/with-schemas/index.d.ts +29 -11
- package/@types/tools/index.d.cts +22 -0
- package/@types/tools/index.d.ts +22 -0
- package/@types/tools/with-schemas/index.d.cts +22 -0
- package/@types/tools/with-schemas/index.d.ts +22 -0
- package/@types/ui-react/index.d.cts +375 -1
- package/@types/ui-react/index.d.ts +375 -1
- package/@types/ui-react/with-schemas/index.d.cts +100 -1
- package/@types/ui-react/with-schemas/index.d.ts +100 -1
- package/@types/ui-react-dom/index.d.cts +112 -0
- package/@types/ui-react-dom/index.d.ts +112 -0
- package/@types/ui-react-dom/with-schemas/index.d.cts +112 -0
- package/@types/ui-react-dom/with-schemas/index.d.ts +112 -0
- package/@types/ui-react-inspector/index.d.cts +6 -2
- package/@types/ui-react-inspector/index.d.ts +6 -2
- package/@types/ui-react-inspector/with-schemas/index.d.cts +118 -2
- package/@types/ui-react-inspector/with-schemas/index.d.ts +118 -2
- package/@types/with-schemas/index.d.cts +1 -0
- package/@types/with-schemas/index.d.ts +1 -0
- package/cjs/es6/index.cjs +2 -2
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
- package/cjs/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/es6/synchronizers/index.cjs +2 -2
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/index.cjs +628 -0
- package/cjs/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +628 -0
- package/cjs/es6/synchronizers/synchronizer-local/index.cjs +4 -4
- package/cjs/es6/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
- package/cjs/es6/synchronizers/synchronizer-ws-client/index.cjs +15 -21
- package/cjs/es6/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
- package/cjs/es6/synchronizers/with-schemas/index.cjs +2 -2
- package/cjs/es6/with-schemas/index.cjs +2 -2
- package/cjs/index.cjs +2 -2
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs +1 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +1 -0
- package/cjs/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/index.cjs.gz +0 -0
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +1 -1
- package/cjs/min/synchronizers/synchronizer-ws-client/with-schemas/index.cjs.gz +0 -0
- package/cjs/synchronizers/index.cjs +2 -2
- package/cjs/synchronizers/synchronizer-broadcast-channel/index.cjs +500 -0
- package/cjs/synchronizers/synchronizer-broadcast-channel/with-schemas/index.cjs +500 -0
- package/cjs/synchronizers/synchronizer-local/index.cjs +4 -4
- package/cjs/synchronizers/synchronizer-local/with-schemas/index.cjs +4 -4
- package/cjs/synchronizers/synchronizer-ws-client/index.cjs +15 -21
- package/cjs/synchronizers/synchronizer-ws-client/with-schemas/index.cjs +15 -21
- package/cjs/synchronizers/with-schemas/index.cjs +2 -2
- package/cjs/with-schemas/index.cjs +2 -2
- package/es6/index.js +2 -2
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/es6/synchronizers/index.js +2 -2
- package/es6/synchronizers/synchronizer-broadcast-channel/index.js +626 -0
- package/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +626 -0
- package/es6/synchronizers/synchronizer-local/index.js +4 -4
- package/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/es6/synchronizers/with-schemas/index.js +2 -2
- package/es6/with-schemas/index.js +2 -2
- package/index.js +2 -2
- package/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/package.json +105 -1
- package/readme.md +9 -9
- package/releases.md +4 -4
- package/synchronizers/index.js +2 -2
- package/synchronizers/synchronizer-broadcast-channel/index.js +498 -0
- package/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +498 -0
- package/synchronizers/synchronizer-local/index.js +4 -4
- package/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/synchronizers/with-schemas/index.js +2 -2
- package/umd/es6/index.js +2 -2
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/umd/es6/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/es6/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/es6/synchronizers/index.js +2 -2
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/index.js +654 -0
- package/umd/es6/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +654 -0
- package/umd/es6/synchronizers/synchronizer-local/index.js +4 -4
- package/umd/es6/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/umd/es6/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/umd/es6/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/umd/es6/synchronizers/with-schemas/index.js +2 -2
- package/umd/es6/with-schemas/index.js +2 -2
- package/umd/index.js +2 -2
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js +1 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +1 -0
- package/umd/min/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/index.js.gz +0 -0
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js +1 -1
- package/umd/min/synchronizers/synchronizer-ws-client/with-schemas/index.js.gz +0 -0
- package/umd/synchronizers/index.js +2 -2
- package/umd/synchronizers/synchronizer-broadcast-channel/index.js +516 -0
- package/umd/synchronizers/synchronizer-broadcast-channel/with-schemas/index.js +516 -0
- package/umd/synchronizers/synchronizer-local/index.js +4 -4
- package/umd/synchronizers/synchronizer-local/with-schemas/index.js +4 -4
- package/umd/synchronizers/synchronizer-ws-client/index.js +15 -21
- package/umd/synchronizers/synchronizer-ws-client/with-schemas/index.js +15 -21
- package/umd/synchronizers/with-schemas/index.js +2 -2
- package/umd/with-schemas/index.js +2 -2
- package/with-schemas/index.js +2 -2
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* of checkpoints change.
|
|
9
9
|
* @packageDocumentation
|
|
10
10
|
* @module checkpoints
|
|
11
|
+
* @since v1.0.0
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
14
|
import type {Id, IdOrNull, Ids} from '../../common/with-schemas/index.d.ts';
|
|
@@ -28,6 +29,7 @@ import type {OptionalSchemas, Store} from '../../store/with-schemas/index.d.ts';
|
|
|
28
29
|
* the checkpoints in the redo stack for this Store). They are in
|
|
29
30
|
* chronological order with the newest checkpoint at the end of the array.
|
|
30
31
|
* @category Identity
|
|
32
|
+
* @since v1.0.0
|
|
31
33
|
*/
|
|
32
34
|
export type CheckpointIds = [Ids, Id | undefined, Ids];
|
|
33
35
|
|
|
@@ -41,6 +43,7 @@ export type CheckpointIds = [Ids, Id | undefined, Ids];
|
|
|
41
43
|
* @param checkpointId The Id of the Checkpoint that the callback can operate
|
|
42
44
|
* on.
|
|
43
45
|
* @category Callback
|
|
46
|
+
* @since v1.0.0
|
|
44
47
|
*/
|
|
45
48
|
export type CheckpointCallback = (checkpointId: Id, label?: string) => void;
|
|
46
49
|
|
|
@@ -61,6 +64,7 @@ export type CheckpointCallback = (checkpointId: Id, label?: string) => void;
|
|
|
61
64
|
* object.
|
|
62
65
|
* @param checkpoints A reference to the Checkpoints object that changed.
|
|
63
66
|
* @category Listener
|
|
67
|
+
* @since v1.0.0
|
|
64
68
|
*/
|
|
65
69
|
export type CheckpointIdsListener<Schemas extends OptionalSchemas> = (
|
|
66
70
|
checkpoints: Checkpoints<Schemas>,
|
|
@@ -87,6 +91,7 @@ export type CheckpointIdsListener<Schemas extends OptionalSchemas> = (
|
|
|
87
91
|
* @param checkpoints A reference to the Checkpoints object that changed.
|
|
88
92
|
* @param checkpointId The Id of the checkpoint that changed.
|
|
89
93
|
* @category Listener
|
|
94
|
+
* @since v1.0.0
|
|
90
95
|
*/
|
|
91
96
|
export type CheckpointListener<Schemas extends OptionalSchemas> = (
|
|
92
97
|
checkpoints: Checkpoints<Schemas>,
|
|
@@ -101,16 +106,21 @@ export type CheckpointListener<Schemas extends OptionalSchemas> = (
|
|
|
101
106
|
* A CheckpointsListenerStats object is returned from the getListenerStats
|
|
102
107
|
* method.
|
|
103
108
|
* @category Development
|
|
109
|
+
* @since v1.0.0
|
|
104
110
|
*/
|
|
105
111
|
export type CheckpointsListenerStats = {
|
|
106
112
|
/**
|
|
107
113
|
* The number of CheckpointIdsListener functions registered with the
|
|
108
114
|
* Checkpoints object.
|
|
115
|
+
* @category Stat
|
|
116
|
+
* @since v1.0.0
|
|
109
117
|
*/
|
|
110
118
|
checkpointIds: number;
|
|
111
119
|
/**
|
|
112
120
|
* The number of CheckpointListener functions registered with the Checkpoints
|
|
113
121
|
* object.
|
|
122
|
+
* @category Stat
|
|
123
|
+
* @since v1.0.0
|
|
114
124
|
*/
|
|
115
125
|
checkpoint: number;
|
|
116
126
|
};
|
|
@@ -181,10 +191,11 @@ export type CheckpointsListenerStats = {
|
|
|
181
191
|
*
|
|
182
192
|
* checkpoints.delListener(listenerId);
|
|
183
193
|
* ```
|
|
184
|
-
* @see
|
|
194
|
+
* @see Using Checkpoints guide
|
|
185
195
|
* @see Todo App demos
|
|
186
196
|
* @see Drawing demo
|
|
187
197
|
* @category Checkpoints
|
|
198
|
+
* @since v1.0.0
|
|
188
199
|
*/
|
|
189
200
|
export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
190
201
|
/**
|
|
@@ -235,6 +246,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
235
246
|
* // -> [['1', '2'], '3', []]
|
|
236
247
|
* ```
|
|
237
248
|
* @category Configuration
|
|
249
|
+
* @since v1.0.0
|
|
238
250
|
*/
|
|
239
251
|
setSize(size: number): Checkpoints<Schemas>;
|
|
240
252
|
|
|
@@ -281,6 +293,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
281
293
|
* // -> 'sale'
|
|
282
294
|
* ```
|
|
283
295
|
* @category Setter
|
|
296
|
+
* @since v1.0.0
|
|
284
297
|
*/
|
|
285
298
|
addCheckpoint(label?: string): Id;
|
|
286
299
|
|
|
@@ -343,6 +356,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
343
356
|
* // -> undefined
|
|
344
357
|
* ```
|
|
345
358
|
* @category Setter
|
|
359
|
+
* @since v1.0.0
|
|
346
360
|
*/
|
|
347
361
|
setCheckpoint(checkpointId: Id, label: string): Checkpoints<Schemas>;
|
|
348
362
|
|
|
@@ -371,6 +385,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
371
385
|
* // -> [['0'], '1', []]
|
|
372
386
|
* ```
|
|
373
387
|
* @category Getter
|
|
388
|
+
* @since v1.0.0
|
|
374
389
|
*/
|
|
375
390
|
getStore(): Store<Schemas>;
|
|
376
391
|
|
|
@@ -412,6 +427,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
412
427
|
* // -> [['0'], '1', []]
|
|
413
428
|
* ```
|
|
414
429
|
* @category Getter
|
|
430
|
+
* @since v1.0.0
|
|
415
431
|
*/
|
|
416
432
|
getCheckpointIds(): CheckpointIds;
|
|
417
433
|
|
|
@@ -443,6 +459,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
443
459
|
* // -> '1:sale'
|
|
444
460
|
* ```
|
|
445
461
|
* @category Iterator
|
|
462
|
+
* @since v1.0.0
|
|
446
463
|
*/
|
|
447
464
|
forEachCheckpoint(checkpointCallback: CheckpointCallback): void;
|
|
448
465
|
|
|
@@ -466,6 +483,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
466
483
|
* // -> false
|
|
467
484
|
* ```
|
|
468
485
|
* @category Getter
|
|
486
|
+
* @since v1.0.0
|
|
469
487
|
*/
|
|
470
488
|
hasCheckpoint(checkpointId: Id): boolean;
|
|
471
489
|
|
|
@@ -520,6 +538,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
520
538
|
* // -> undefined
|
|
521
539
|
* ```
|
|
522
540
|
* @category Getter
|
|
541
|
+
* @since v1.0.0
|
|
523
542
|
*/
|
|
524
543
|
getCheckpoint(checkpointId: Id): string | undefined;
|
|
525
544
|
|
|
@@ -576,6 +595,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
576
595
|
* checkpoints.delListener(listenerId);
|
|
577
596
|
* ```
|
|
578
597
|
* @category Listener
|
|
598
|
+
* @since v1.0.0
|
|
579
599
|
*/
|
|
580
600
|
addCheckpointIdsListener(listener: CheckpointIdsListener<Schemas>): Id;
|
|
581
601
|
|
|
@@ -645,6 +665,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
645
665
|
* checkpoints.delListener(listenerId);
|
|
646
666
|
* ```
|
|
647
667
|
* @category Listener
|
|
668
|
+
* @since v1.0.0
|
|
648
669
|
*/
|
|
649
670
|
addCheckpointListener(
|
|
650
671
|
checkpointId: IdOrNull,
|
|
@@ -695,6 +716,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
695
716
|
* // The listener is not called.
|
|
696
717
|
* ```
|
|
697
718
|
* @category Listener
|
|
719
|
+
* @since v1.0.0
|
|
698
720
|
*/
|
|
699
721
|
delListener(listenerId: Id): Checkpoints<Schemas>;
|
|
700
722
|
|
|
@@ -735,6 +757,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
735
757
|
* // -> [[], '0', ['1']]
|
|
736
758
|
* ```
|
|
737
759
|
* @category Movement
|
|
760
|
+
* @since v1.0.0
|
|
738
761
|
*/
|
|
739
762
|
goBackward(): Checkpoints<Schemas>;
|
|
740
763
|
|
|
@@ -824,6 +847,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
824
847
|
* // The original change cannot be redone.
|
|
825
848
|
* ```
|
|
826
849
|
* @category Movement
|
|
850
|
+
* @since v1.0.0
|
|
827
851
|
*/
|
|
828
852
|
goForward(): Checkpoints<Schemas>;
|
|
829
853
|
|
|
@@ -881,6 +905,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
881
905
|
* // -> [['0'], '1', ['2']]
|
|
882
906
|
* ```
|
|
883
907
|
* @category Movement
|
|
908
|
+
* @since v1.0.0
|
|
884
909
|
*/
|
|
885
910
|
goTo(checkpointId: Id): Checkpoints<Schemas>;
|
|
886
911
|
|
|
@@ -946,6 +971,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
946
971
|
* checkpoints.delListener(listenerId);
|
|
947
972
|
* ```
|
|
948
973
|
* @category Lifecycle
|
|
974
|
+
* @since v1.0.0
|
|
949
975
|
*/
|
|
950
976
|
clear(): Checkpoints<Schemas>;
|
|
951
977
|
|
|
@@ -1039,6 +1065,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
1039
1065
|
* // -> 0
|
|
1040
1066
|
* ```
|
|
1041
1067
|
* @category Lifecycle
|
|
1068
|
+
* @since v1.0.0
|
|
1042
1069
|
*/
|
|
1043
1070
|
destroy(): void;
|
|
1044
1071
|
|
|
@@ -1073,6 +1100,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
1073
1100
|
* // -> {checkpointIds: 1, checkpoint: 1}
|
|
1074
1101
|
* ```
|
|
1075
1102
|
* @category Development
|
|
1103
|
+
* @since v1.0.0
|
|
1076
1104
|
*/
|
|
1077
1105
|
getListenerStats(): CheckpointsListenerStats;
|
|
1078
1106
|
}
|
|
@@ -1117,6 +1145,7 @@ export interface Checkpoints<in out Schemas extends OptionalSchemas> {
|
|
|
1117
1145
|
* // -> true
|
|
1118
1146
|
* ```
|
|
1119
1147
|
* @category Creation
|
|
1148
|
+
* @since v1.0.0
|
|
1120
1149
|
*/
|
|
1121
1150
|
export function createCheckpoints<Schemas extends OptionalSchemas>(
|
|
1122
1151
|
store: Store<Schemas>,
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
* common types used across other modules.
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
* @module common
|
|
6
|
+
* @since v1.0.0
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* The Json type is a simple alias for a string, but is used to indicate that
|
|
10
11
|
* the string should be considered to be a JSON serialization of an object.
|
|
11
12
|
* @category General
|
|
13
|
+
* @since v1.0.0
|
|
12
14
|
*/
|
|
13
15
|
export type Json = string;
|
|
14
16
|
|
|
@@ -17,6 +19,7 @@ export type Json = string;
|
|
|
17
19
|
* indicate that the strings should be considered to be the keys of objects
|
|
18
20
|
* (such as the Row Id strings used in a Table).
|
|
19
21
|
* @category Identity
|
|
22
|
+
* @since v1.0.0
|
|
20
23
|
*/
|
|
21
24
|
export type Ids = Id[];
|
|
22
25
|
|
|
@@ -25,6 +28,7 @@ export type Ids = Id[];
|
|
|
25
28
|
* string should be considered to be the key of an object (such as a Row Id
|
|
26
29
|
* string used in a Table).
|
|
27
30
|
* @category Identity
|
|
31
|
+
* @since v1.0.0
|
|
28
32
|
*/
|
|
29
33
|
export type Id = string;
|
|
30
34
|
|
|
@@ -34,6 +38,7 @@ export type Id = string;
|
|
|
34
38
|
* Row Id string used in a Table), and typically `null` indicates a wildcard -
|
|
35
39
|
* such as when used in the Store addRowListener method.
|
|
36
40
|
* @category Identity
|
|
41
|
+
* @since v1.0.0
|
|
37
42
|
*/
|
|
38
43
|
export type IdOrNull = Id | null;
|
|
39
44
|
|
|
@@ -41,6 +46,7 @@ export type IdOrNull = Id | null;
|
|
|
41
46
|
* The ParameterizedCallback type represents a generic function that will take
|
|
42
47
|
* an optional parameter - such as the handler of a DOM event.
|
|
43
48
|
* @category Callback
|
|
49
|
+
* @since v1.0.0
|
|
44
50
|
*/
|
|
45
51
|
export type ParameterizedCallback<Parameter> = (parameter?: Parameter) => void;
|
|
46
52
|
|
|
@@ -48,12 +54,14 @@ export type ParameterizedCallback<Parameter> = (parameter?: Parameter) => void;
|
|
|
48
54
|
* The Callback type represents a function that is used as a callback and which
|
|
49
55
|
* does not take a parameter.
|
|
50
56
|
* @category Callback
|
|
57
|
+
* @since v1.0.0
|
|
51
58
|
*/
|
|
52
59
|
export type Callback = () => void;
|
|
53
60
|
|
|
54
61
|
/**
|
|
55
62
|
* The SortKey type represents a value that can be used by a sort function.
|
|
56
63
|
* @category Parameter
|
|
64
|
+
* @since v1.0.0
|
|
57
65
|
*/
|
|
58
66
|
export type SortKey = string | number | boolean;
|
|
59
67
|
|
|
@@ -106,6 +114,7 @@ export type SortKey = string | number | boolean;
|
|
|
106
114
|
* // -> ['felix', 'fido']
|
|
107
115
|
* ```
|
|
108
116
|
* @category Convenience
|
|
117
|
+
* @since v1.0.0
|
|
109
118
|
*/
|
|
110
119
|
export function defaultSorter(sortKey1: SortKey, sortKey2: SortKey): number;
|
|
111
120
|
|
package/@types/common/index.d.ts
CHANGED
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
* common types used across other modules.
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
* @module common
|
|
6
|
+
* @since v1.0.0
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* The Json type is a simple alias for a string, but is used to indicate that
|
|
10
11
|
* the string should be considered to be a JSON serialization of an object.
|
|
11
12
|
* @category General
|
|
13
|
+
* @since v1.0.0
|
|
12
14
|
*/
|
|
13
15
|
export type Json = string;
|
|
14
16
|
|
|
@@ -17,6 +19,7 @@ export type Json = string;
|
|
|
17
19
|
* indicate that the strings should be considered to be the keys of objects
|
|
18
20
|
* (such as the Row Id strings used in a Table).
|
|
19
21
|
* @category Identity
|
|
22
|
+
* @since v1.0.0
|
|
20
23
|
*/
|
|
21
24
|
export type Ids = Id[];
|
|
22
25
|
|
|
@@ -25,6 +28,7 @@ export type Ids = Id[];
|
|
|
25
28
|
* string should be considered to be the key of an object (such as a Row Id
|
|
26
29
|
* string used in a Table).
|
|
27
30
|
* @category Identity
|
|
31
|
+
* @since v1.0.0
|
|
28
32
|
*/
|
|
29
33
|
export type Id = string;
|
|
30
34
|
|
|
@@ -34,6 +38,7 @@ export type Id = string;
|
|
|
34
38
|
* Row Id string used in a Table), and typically `null` indicates a wildcard -
|
|
35
39
|
* such as when used in the Store addRowListener method.
|
|
36
40
|
* @category Identity
|
|
41
|
+
* @since v1.0.0
|
|
37
42
|
*/
|
|
38
43
|
export type IdOrNull = Id | null;
|
|
39
44
|
|
|
@@ -41,6 +46,7 @@ export type IdOrNull = Id | null;
|
|
|
41
46
|
* The ParameterizedCallback type represents a generic function that will take
|
|
42
47
|
* an optional parameter - such as the handler of a DOM event.
|
|
43
48
|
* @category Callback
|
|
49
|
+
* @since v1.0.0
|
|
44
50
|
*/
|
|
45
51
|
export type ParameterizedCallback<Parameter> = (parameter?: Parameter) => void;
|
|
46
52
|
|
|
@@ -48,12 +54,14 @@ export type ParameterizedCallback<Parameter> = (parameter?: Parameter) => void;
|
|
|
48
54
|
* The Callback type represents a function that is used as a callback and which
|
|
49
55
|
* does not take a parameter.
|
|
50
56
|
* @category Callback
|
|
57
|
+
* @since v1.0.0
|
|
51
58
|
*/
|
|
52
59
|
export type Callback = () => void;
|
|
53
60
|
|
|
54
61
|
/**
|
|
55
62
|
* The SortKey type represents a value that can be used by a sort function.
|
|
56
63
|
* @category Parameter
|
|
64
|
+
* @since v1.0.0
|
|
57
65
|
*/
|
|
58
66
|
export type SortKey = string | number | boolean;
|
|
59
67
|
|
|
@@ -106,6 +114,7 @@ export type SortKey = string | number | boolean;
|
|
|
106
114
|
* // -> ['felix', 'fido']
|
|
107
115
|
* ```
|
|
108
116
|
* @category Convenience
|
|
117
|
+
* @since v1.0.0
|
|
109
118
|
*/
|
|
110
119
|
export function defaultSorter(sortKey1: SortKey, sortKey2: SortKey): number;
|
|
111
120
|
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
* common types used across other modules.
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
* @module common
|
|
6
|
+
* @since v1.0.0
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* The Json type is a simple alias for a string, but is used to indicate that
|
|
10
11
|
* the string should be considered to be a JSON serialization of an object.
|
|
11
12
|
* @category General
|
|
13
|
+
* @since v1.0.0
|
|
12
14
|
*/
|
|
13
15
|
export type Json = string;
|
|
14
16
|
|
|
@@ -17,6 +19,7 @@ export type Json = string;
|
|
|
17
19
|
* indicate that the strings should be considered to be the keys of objects
|
|
18
20
|
* (such as the Row Id strings used in a Table).
|
|
19
21
|
* @category Identity
|
|
22
|
+
* @since v1.0.0
|
|
20
23
|
*/
|
|
21
24
|
export type Ids = Id[];
|
|
22
25
|
|
|
@@ -25,6 +28,7 @@ export type Ids = Id[];
|
|
|
25
28
|
* string should be considered to be the key of an object (such as a Row Id
|
|
26
29
|
* string used in a Table).
|
|
27
30
|
* @category Identity
|
|
31
|
+
* @since v1.0.0
|
|
28
32
|
*/
|
|
29
33
|
export type Id = string;
|
|
30
34
|
|
|
@@ -34,6 +38,7 @@ export type Id = string;
|
|
|
34
38
|
* Row Id string used in a Table), and typically `null` indicates a wildcard -
|
|
35
39
|
* such as when used in the Store addRowListener method.
|
|
36
40
|
* @category Identity
|
|
41
|
+
* @since v1.0.0
|
|
37
42
|
*/
|
|
38
43
|
export type IdOrNull = Id | null;
|
|
39
44
|
|
|
@@ -41,6 +46,7 @@ export type IdOrNull = Id | null;
|
|
|
41
46
|
* The ParameterizedCallback type represents a generic function that will take
|
|
42
47
|
* an optional parameter - such as the handler of a DOM event.
|
|
43
48
|
* @category Callback
|
|
49
|
+
* @since v1.0.0
|
|
44
50
|
*/
|
|
45
51
|
export type ParameterizedCallback<Parameter> = (parameter?: Parameter) => void;
|
|
46
52
|
|
|
@@ -48,12 +54,14 @@ export type ParameterizedCallback<Parameter> = (parameter?: Parameter) => void;
|
|
|
48
54
|
* The Callback type represents a function that is used as a callback and which
|
|
49
55
|
* does not take a parameter.
|
|
50
56
|
* @category Callback
|
|
57
|
+
* @since v1.0.0
|
|
51
58
|
*/
|
|
52
59
|
export type Callback = () => void;
|
|
53
60
|
|
|
54
61
|
/**
|
|
55
62
|
* The SortKey type represents a value that can be used by a sort function.
|
|
56
63
|
* @category Parameter
|
|
64
|
+
* @since v1.0.0
|
|
57
65
|
*/
|
|
58
66
|
export type SortKey = string | number | boolean;
|
|
59
67
|
|
|
@@ -106,6 +114,7 @@ export type SortKey = string | number | boolean;
|
|
|
106
114
|
* // -> ['felix', 'fido']
|
|
107
115
|
* ```
|
|
108
116
|
* @category Convenience
|
|
117
|
+
* @since v1.0.0
|
|
109
118
|
*/
|
|
110
119
|
export function defaultSorter(sortKey1: SortKey, sortKey2: SortKey): number;
|
|
111
120
|
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
* common types used across other modules.
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
* @module common
|
|
6
|
+
* @since v1.0.0
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* The Json type is a simple alias for a string, but is used to indicate that
|
|
10
11
|
* the string should be considered to be a JSON serialization of an object.
|
|
11
12
|
* @category General
|
|
13
|
+
* @since v1.0.0
|
|
12
14
|
*/
|
|
13
15
|
export type Json = string;
|
|
14
16
|
|
|
@@ -17,6 +19,7 @@ export type Json = string;
|
|
|
17
19
|
* indicate that the strings should be considered to be the keys of objects
|
|
18
20
|
* (such as the Row Id strings used in a Table).
|
|
19
21
|
* @category Identity
|
|
22
|
+
* @since v1.0.0
|
|
20
23
|
*/
|
|
21
24
|
export type Ids = Id[];
|
|
22
25
|
|
|
@@ -25,6 +28,7 @@ export type Ids = Id[];
|
|
|
25
28
|
* string should be considered to be the key of an object (such as a Row Id
|
|
26
29
|
* string used in a Table).
|
|
27
30
|
* @category Identity
|
|
31
|
+
* @since v1.0.0
|
|
28
32
|
*/
|
|
29
33
|
export type Id = string;
|
|
30
34
|
|
|
@@ -34,6 +38,7 @@ export type Id = string;
|
|
|
34
38
|
* Row Id string used in a Table), and typically `null` indicates a wildcard -
|
|
35
39
|
* such as when used in the Store addRowListener method.
|
|
36
40
|
* @category Identity
|
|
41
|
+
* @since v1.0.0
|
|
37
42
|
*/
|
|
38
43
|
export type IdOrNull = Id | null;
|
|
39
44
|
|
|
@@ -41,6 +46,7 @@ export type IdOrNull = Id | null;
|
|
|
41
46
|
* The ParameterizedCallback type represents a generic function that will take
|
|
42
47
|
* an optional parameter - such as the handler of a DOM event.
|
|
43
48
|
* @category Callback
|
|
49
|
+
* @since v1.0.0
|
|
44
50
|
*/
|
|
45
51
|
export type ParameterizedCallback<Parameter> = (parameter?: Parameter) => void;
|
|
46
52
|
|
|
@@ -48,12 +54,14 @@ export type ParameterizedCallback<Parameter> = (parameter?: Parameter) => void;
|
|
|
48
54
|
* The Callback type represents a function that is used as a callback and which
|
|
49
55
|
* does not take a parameter.
|
|
50
56
|
* @category Callback
|
|
57
|
+
* @since v1.0.0
|
|
51
58
|
*/
|
|
52
59
|
export type Callback = () => void;
|
|
53
60
|
|
|
54
61
|
/**
|
|
55
62
|
* The SortKey type represents a value that can be used by a sort function.
|
|
56
63
|
* @category Parameter
|
|
64
|
+
* @since v1.0.0
|
|
57
65
|
*/
|
|
58
66
|
export type SortKey = string | number | boolean;
|
|
59
67
|
|
|
@@ -106,6 +114,7 @@ export type SortKey = string | number | boolean;
|
|
|
106
114
|
* // -> ['felix', 'fido']
|
|
107
115
|
* ```
|
|
108
116
|
* @category Convenience
|
|
117
|
+
* @since v1.0.0
|
|
109
118
|
*/
|
|
110
119
|
export function defaultSorter(sortKey1: SortKey, sortKey2: SortKey): number;
|
|
111
120
|
|
package/@types/index.d.cts
CHANGED