jazz-tools 0.8.31 → 0.8.34
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +15 -0
- package/dist/native/coValues/coFeed.js +152 -12
- package/dist/native/coValues/coFeed.js.map +1 -1
- package/dist/native/coValues/coMap.js +49 -19
- package/dist/native/coValues/coMap.js.map +1 -1
- package/dist/native/coValues/interfaces.js.map +1 -1
- package/dist/native/coValues/schemaUnion.js +15 -21
- package/dist/native/coValues/schemaUnion.js.map +1 -1
- package/dist/web/coValues/coFeed.js +152 -12
- package/dist/web/coValues/coFeed.js.map +1 -1
- package/dist/web/coValues/coMap.js +49 -19
- package/dist/web/coValues/coMap.js.map +1 -1
- package/dist/web/coValues/interfaces.js.map +1 -1
- package/dist/web/coValues/schemaUnion.js +15 -21
- package/dist/web/coValues/schemaUnion.js.map +1 -1
- package/package.json +2 -2
- package/src/coValues/coFeed.ts +192 -12
- package/src/coValues/coMap.ts +86 -39
- package/src/coValues/interfaces.ts +12 -1
- package/src/coValues/schemaUnion.ts +15 -21
- package/src/tests/coMap.test.ts +88 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# jazz-tools
|
2
2
|
|
3
|
+
## 0.8.34
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [e4f110f]
|
8
|
+
- cojson@0.8.34
|
9
|
+
|
10
|
+
## 0.8.32
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- df42b2b: Allow getting all edits for a specific key in a CoMap
|
15
|
+
- Updated dependencies [df42b2b]
|
16
|
+
- cojson@0.8.32
|
17
|
+
|
3
18
|
## 0.8.31
|
4
19
|
|
5
20
|
### Patch Changes
|
@@ -3,9 +3,34 @@ import { MAX_RECOMMENDED_TX_SIZE, cojsonInternals } from "cojson";
|
|
3
3
|
import { Account, CoValueBase, ItemsSym, Ref, SchemaInit, co, ensureCoValueLoaded, inspect, isRefEncoded, loadCoValue, subscribeToCoValue, subscribeToExistingCoValue, } from "../internal.js";
|
4
4
|
/** @deprecated Use CoFeed instead */
|
5
5
|
export { CoFeed as CoStream };
|
6
|
-
/**
|
7
|
-
|
6
|
+
/**
|
7
|
+
* CoFeeds are collaborative logs of data.
|
8
|
+
*
|
9
|
+
* @categoryDescription Content
|
10
|
+
* They are similar to `CoList`s, but with a few key differences:
|
11
|
+
* - They are append-only
|
12
|
+
* - They consist of several internal append-only logs, one per account session (tab, device, app instance, etc.)
|
13
|
+
* - They expose those as a per-account aggregated view (default) or a precise per-session view
|
14
|
+
*
|
15
|
+
* ```ts
|
16
|
+
* favDog.push("Poodle");
|
17
|
+
* favDog.push("Schnowzer");
|
18
|
+
* ```
|
19
|
+
*
|
20
|
+
* @category CoValues
|
21
|
+
*/
|
8
22
|
export class CoFeed extends CoValueBase {
|
23
|
+
/**
|
24
|
+
* Declare a `CoFeed` by subclassing `CoFeed.Of(...)` and passing the item schema using a `co` primitive or a `co.ref`.
|
25
|
+
*
|
26
|
+
* @example
|
27
|
+
* ```ts
|
28
|
+
* class ColorFeed extends CoFeed.Of(co.string) {}
|
29
|
+
* class AnimalFeed extends CoFeed.Of(co.ref(Animal)) {}
|
30
|
+
* ```
|
31
|
+
*
|
32
|
+
* @category Declaration
|
33
|
+
*/
|
9
34
|
static Of(item) {
|
10
35
|
var _b, _c;
|
11
36
|
return _c = class CoFeedOf extends _a {
|
@@ -17,9 +42,14 @@ export class CoFeed extends CoValueBase {
|
|
17
42
|
_b = co.items,
|
18
43
|
_c;
|
19
44
|
}
|
45
|
+
/** @internal */
|
20
46
|
get _schema() {
|
21
47
|
return this.constructor._schema;
|
22
48
|
}
|
49
|
+
/**
|
50
|
+
* The current account's view of this `CoFeed`
|
51
|
+
* @category Content
|
52
|
+
*/
|
23
53
|
get byMe() {
|
24
54
|
if (this._loadedAs._type === "Account") {
|
25
55
|
return this[this._loadedAs.id];
|
@@ -28,6 +58,13 @@ export class CoFeed extends CoValueBase {
|
|
28
58
|
return undefined;
|
29
59
|
}
|
30
60
|
}
|
61
|
+
/**
|
62
|
+
* The current session's view of this `CoFeed`
|
63
|
+
*
|
64
|
+
* This is a shortcut for `this.perSession` where the session ID is the current session ID.
|
65
|
+
*
|
66
|
+
* @category Content
|
67
|
+
*/
|
31
68
|
get inCurrentSession() {
|
32
69
|
if (this._loadedAs._type === "Account") {
|
33
70
|
return this.perSession[this._loadedAs.sessionID];
|
@@ -49,6 +86,10 @@ export class CoFeed extends CoValueBase {
|
|
49
86
|
}
|
50
87
|
return new Proxy(this, CoStreamProxyHandler);
|
51
88
|
}
|
89
|
+
/**
|
90
|
+
* Create a new `CoFeed`
|
91
|
+
* @category Creation
|
92
|
+
*/
|
52
93
|
static create(init, options) {
|
53
94
|
const instance = new this({ init, owner: options.owner });
|
54
95
|
const raw = options.owner._raw.createStream();
|
@@ -64,6 +105,26 @@ export class CoFeed extends CoValueBase {
|
|
64
105
|
}
|
65
106
|
return instance;
|
66
107
|
}
|
108
|
+
/**
|
109
|
+
* Push items to this `CoFeed`
|
110
|
+
*
|
111
|
+
* Items are appended to the current session's log. Each session (tab, device, app instance)
|
112
|
+
* maintains its own append-only log, which is then aggregated into the per-account view.
|
113
|
+
*
|
114
|
+
* @example
|
115
|
+
* ```ts
|
116
|
+
* // Adds items to current session's log
|
117
|
+
* feed.push("item1", "item2");
|
118
|
+
*
|
119
|
+
* // View items from current session
|
120
|
+
* console.log(feed.inCurrentSession);
|
121
|
+
*
|
122
|
+
* // View aggregated items from all sessions for current account
|
123
|
+
* console.log(feed.byMe);
|
124
|
+
* ```
|
125
|
+
*
|
126
|
+
* @category Content
|
127
|
+
*/
|
67
128
|
push(...items) {
|
68
129
|
for (const item of items) {
|
69
130
|
this.pushItem(item);
|
@@ -81,6 +142,10 @@ export class CoFeed extends CoValueBase {
|
|
81
142
|
this._raw.push(item.id);
|
82
143
|
}
|
83
144
|
}
|
145
|
+
/**
|
146
|
+
* Get a JSON representation of the `CoFeed`
|
147
|
+
* @category
|
148
|
+
*/
|
84
149
|
toJSON() {
|
85
150
|
const itemDescriptor = this._schema[ItemsSym];
|
86
151
|
const mapper = itemDescriptor === "json"
|
@@ -101,26 +166,45 @@ export class CoFeed extends CoValueBase {
|
|
101
166
|
])),
|
102
167
|
};
|
103
168
|
}
|
169
|
+
/** @internal */
|
104
170
|
[inspect]() {
|
105
171
|
return this.toJSON();
|
106
172
|
}
|
173
|
+
/** @internal */
|
107
174
|
static schema(def) {
|
108
175
|
this._schema ||= {};
|
109
176
|
Object.assign(this._schema, def);
|
110
177
|
}
|
111
|
-
/**
|
178
|
+
/**
|
179
|
+
* Load a `CoFeed`
|
180
|
+
* @category Subscription & Loading
|
181
|
+
*/
|
112
182
|
static load(id, as, depth) {
|
113
183
|
return loadCoValue(this, id, as, depth);
|
114
184
|
}
|
115
|
-
/**
|
185
|
+
/**
|
186
|
+
* Subscribe to a `CoFeed`, when you have an ID but don't have a `CoFeed` instance yet
|
187
|
+
* @category Subscription & Loading
|
188
|
+
*/
|
116
189
|
static subscribe(id, as, depth, listener) {
|
117
190
|
return subscribeToCoValue(this, id, as, depth, listener);
|
118
191
|
}
|
119
|
-
/**
|
192
|
+
/**
|
193
|
+
* Ensure a `CoFeed` is loaded to the specified depth
|
194
|
+
*
|
195
|
+
* @returns A new instance of the same CoFeed that's loaded to the specified depth,
|
196
|
+
* or undefined if it cannot be loaded that deeply
|
197
|
+
* @category Subscription & Loading
|
198
|
+
*/
|
120
199
|
ensureLoaded(depth) {
|
121
200
|
return ensureCoValueLoaded(this, depth);
|
122
201
|
}
|
123
|
-
/**
|
202
|
+
/**
|
203
|
+
* An instance method to subscribe to an existing `CoFeed`
|
204
|
+
*
|
205
|
+
* No need to provide an ID or Account since they're already part of the instance.
|
206
|
+
* @category Subscription & Loading
|
207
|
+
*/
|
124
208
|
subscribe(depth, listener) {
|
125
209
|
return subscribeToExistingCoValue(this, depth, listener);
|
126
210
|
}
|
@@ -129,6 +213,10 @@ _a = CoFeed;
|
|
129
213
|
(() => {
|
130
214
|
_a.prototype._type = "CoStream";
|
131
215
|
})();
|
216
|
+
/**
|
217
|
+
* Converts a raw stream entry into a formatted CoFeed entry with proper typing and accessors.
|
218
|
+
* @internal
|
219
|
+
*/
|
132
220
|
function entryFromRawEntry(accessFrom, rawEntry, loadedAs, accountID, itemField) {
|
133
221
|
return {
|
134
222
|
get value() {
|
@@ -165,6 +253,10 @@ function entryFromRawEntry(accessFrom, rawEntry, loadedAs, accountID, itemField)
|
|
165
253
|
tx: rawEntry.tx,
|
166
254
|
};
|
167
255
|
}
|
256
|
+
/**
|
257
|
+
* The proxy handler for `CoFeed` instances
|
258
|
+
* @internal
|
259
|
+
*/
|
168
260
|
export const CoStreamProxyHandler = {
|
169
261
|
get(target, key, receiver) {
|
170
262
|
if (typeof key === "string" && key.startsWith("co_")) {
|
@@ -240,6 +332,10 @@ export const CoStreamProxyHandler = {
|
|
240
332
|
}
|
241
333
|
},
|
242
334
|
};
|
335
|
+
/**
|
336
|
+
* The proxy handler for the per-session view of a `CoFeed`
|
337
|
+
* @internal
|
338
|
+
*/
|
243
339
|
const CoStreamPerSessionProxyHandler = (innerTarget, accessFrom) => ({
|
244
340
|
get(_target, key, receiver) {
|
245
341
|
if (typeof key === "string" && key.includes("session")) {
|
@@ -289,9 +385,24 @@ const CoStreamPerSessionProxyHandler = (innerTarget, accessFrom) => ({
|
|
289
385
|
}
|
290
386
|
},
|
291
387
|
});
|
292
|
-
/** @deprecated Use
|
388
|
+
/** @deprecated Use FileStream instead */
|
293
389
|
export { FileStream as BinaryCoStream };
|
294
|
-
/**
|
390
|
+
/**
|
391
|
+
* FileStreams are `CoFeed`s that contain binary data, collaborative versions of `Blob`s.
|
392
|
+
*
|
393
|
+
* @categoryDescription Declaration
|
394
|
+
* `FileStream` can be referenced in schemas.
|
395
|
+
*
|
396
|
+
* ```ts
|
397
|
+
* import { co, FileStream } from "jazz-tools";
|
398
|
+
*
|
399
|
+
* class MyCoMap extends CoMap {
|
400
|
+
* file = co.ref(FileStream);
|
401
|
+
* }
|
402
|
+
* ```
|
403
|
+
*
|
404
|
+
* @category CoValues
|
405
|
+
*/
|
295
406
|
export class FileStream extends CoValueBase {
|
296
407
|
constructor(options) {
|
297
408
|
super();
|
@@ -340,6 +451,11 @@ export class FileStream extends CoValueBase {
|
|
340
451
|
// @ts-ignore
|
341
452
|
return new Blob(chunks.chunks, { type: chunks.mimeType });
|
342
453
|
}
|
454
|
+
/**
|
455
|
+
* Load a `FileStream` as a `Blob`
|
456
|
+
*
|
457
|
+
* @category Content
|
458
|
+
*/
|
343
459
|
static async loadAsBlob(id, as, options) {
|
344
460
|
let stream = await this.load(id, as, []);
|
345
461
|
/**
|
@@ -360,6 +476,17 @@ export class FileStream extends CoValueBase {
|
|
360
476
|
allowUnfinished: options?.allowUnfinished,
|
361
477
|
});
|
362
478
|
}
|
479
|
+
/**
|
480
|
+
* Create a `FileStream` from a `Blob` or `File`
|
481
|
+
*
|
482
|
+
* @example
|
483
|
+
* ```ts
|
484
|
+
* import { co, FileStream } from "jazz-tools";
|
485
|
+
*
|
486
|
+
* const fileStream = await FileStream.createFromBlob(file, {owner: group})
|
487
|
+
* ```
|
488
|
+
* @category Content
|
489
|
+
*/
|
363
490
|
static async createFromBlob(blob, options) {
|
364
491
|
const stream = this.create({ owner: options.owner });
|
365
492
|
const start = Date.now();
|
@@ -385,6 +512,10 @@ export class FileStream extends CoValueBase {
|
|
385
512
|
options.onProgress?.(1);
|
386
513
|
return stream;
|
387
514
|
}
|
515
|
+
/**
|
516
|
+
* Get a JSON representation of the `FileStream`
|
517
|
+
* @category Content
|
518
|
+
*/
|
388
519
|
toJSON() {
|
389
520
|
return {
|
390
521
|
id: this.id,
|
@@ -392,22 +523,31 @@ export class FileStream extends CoValueBase {
|
|
392
523
|
...this.getChunks(),
|
393
524
|
};
|
394
525
|
}
|
526
|
+
/** @internal */
|
395
527
|
[inspect]() {
|
396
528
|
return this.toJSON();
|
397
529
|
}
|
398
|
-
/**
|
530
|
+
/**
|
531
|
+
* Load a `FileStream`
|
532
|
+
* @category Subscription & Loading
|
533
|
+
*/
|
399
534
|
static load(id, as, depth) {
|
400
535
|
return loadCoValue(this, id, as, depth);
|
401
536
|
}
|
402
|
-
/**
|
537
|
+
/**
|
538
|
+
* Subscribe to a `FileStream`, when you have an ID but don't have a `FileStream` instance yet
|
539
|
+
* @category Subscription & Loading
|
540
|
+
*/
|
403
541
|
static subscribe(id, as, depth, listener) {
|
404
542
|
return subscribeToCoValue(this, id, as, depth, listener);
|
405
543
|
}
|
406
|
-
/** @category Subscription & Loading */
|
407
544
|
ensureLoaded(depth) {
|
408
545
|
return ensureCoValueLoaded(this, depth);
|
409
546
|
}
|
410
|
-
/**
|
547
|
+
/**
|
548
|
+
* An instance method to subscribe to an existing `FileStream`
|
549
|
+
* @category Subscription & Loading
|
550
|
+
*/
|
411
551
|
subscribe(depth, listener) {
|
412
552
|
return subscribeToExistingCoValue(this, depth, listener);
|
413
553
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coFeed.js","sourceRoot":"","sources":["../../../src/coValues/coFeed.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAclE,OAAO,EACL,OAAO,EACP,WAAW,EACX,QAAQ,EACR,GAAG,EACH,UAAU,EACV,EAAE,EACF,mBAAmB,EACnB,OAAO,EACP,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AAoBxB,qCAAqC;AACrC,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,CAAC;AAE9B,yBAAyB;AACzB,8DAA8D;AAC9D,MAAM,OAAO,MAAmB,SAAQ,WAAW;IACjD,MAAM,CAAC,EAAE,CAAO,IAAsB;;QACpC,YAAO,MAAM,QAAS,SAAQ,EAAY;gBAAnC;;oBACL,QAAU,GAAG,IAAI,CAAC;gBACpB,CAAC;aAAA;iBADE,EAAE,CAAC,KAAK;eACT;IACJ,CA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ED;;;OAGG;IACH,SAAS,CAEP,KAA0B,EAC1B,QAAiD;QAEjD,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
@@ -65,29 +65,52 @@ export class CoMap extends CoValueBase {
|
|
65
65
|
return keys;
|
66
66
|
}, this._loadedAs, (key) => (this._schema[key] || this._schema[ItemsSym]));
|
67
67
|
}
|
68
|
+
/** @internal */
|
69
|
+
getEditFromRaw(target, rawEdit, descriptor, key) {
|
70
|
+
return {
|
71
|
+
value: descriptor === "json"
|
72
|
+
? rawEdit.value
|
73
|
+
: "encoded" in descriptor
|
74
|
+
? rawEdit.value === null || rawEdit.value === undefined
|
75
|
+
? rawEdit.value
|
76
|
+
: descriptor.encoded.decode(rawEdit.value)
|
77
|
+
: new Ref(rawEdit.value, target._loadedAs, descriptor).accessFrom(target, "_edits." + key + ".value"),
|
78
|
+
ref: descriptor !== "json" && isRefEncoded(descriptor)
|
79
|
+
? new Ref(rawEdit.value, target._loadedAs, descriptor)
|
80
|
+
: undefined,
|
81
|
+
by: rawEdit.by &&
|
82
|
+
new Ref(rawEdit.by, target._loadedAs, {
|
83
|
+
ref: Account,
|
84
|
+
optional: false,
|
85
|
+
}).accessFrom(target, "_edits." + key + ".by"),
|
86
|
+
madeAt: rawEdit.at,
|
87
|
+
};
|
88
|
+
}
|
68
89
|
/** @category Collaboration */
|
69
90
|
get _edits() {
|
70
|
-
|
71
|
-
|
72
|
-
|
91
|
+
const map = this;
|
92
|
+
return new Proxy({}, {
|
93
|
+
get(_target, key) {
|
94
|
+
const rawEdit = map._raw.lastEditAt(key);
|
73
95
|
if (!rawEdit)
|
74
96
|
return undefined;
|
75
|
-
const descriptor =
|
97
|
+
const descriptor = map._schema[key];
|
76
98
|
return {
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
99
|
+
...map.getEditFromRaw(map, rawEdit, descriptor, key),
|
100
|
+
get all() {
|
101
|
+
return [...map._raw.editsAt(key)].map((rawEdit) => map.getEditFromRaw(map, rawEdit, descriptor, key));
|
102
|
+
},
|
103
|
+
};
|
104
|
+
},
|
105
|
+
ownKeys(_target) {
|
106
|
+
return map._raw.keys();
|
107
|
+
},
|
108
|
+
getOwnPropertyDescriptor(target, key) {
|
109
|
+
return {
|
110
|
+
value: Reflect.get(target, key),
|
111
|
+
writable: false,
|
112
|
+
enumerable: true,
|
113
|
+
configurable: true,
|
91
114
|
};
|
92
115
|
},
|
93
116
|
});
|
@@ -143,6 +166,10 @@ export class CoMap extends CoValueBase {
|
|
143
166
|
});
|
144
167
|
return instance;
|
145
168
|
}
|
169
|
+
/**
|
170
|
+
* Return a JSON representation of the `CoMap`
|
171
|
+
* @category Content
|
172
|
+
*/
|
146
173
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
147
174
|
toJSON(_key, seenAbove) {
|
148
175
|
const jsonedFields = this._raw.keys().map((key) => {
|
@@ -178,7 +205,10 @@ export class CoMap extends CoValueBase {
|
|
178
205
|
[inspect]() {
|
179
206
|
return this.toJSON();
|
180
207
|
}
|
181
|
-
/**
|
208
|
+
/**
|
209
|
+
* Create a new `RawCoMap` from an initialization object
|
210
|
+
* @internal
|
211
|
+
*/
|
182
212
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
183
213
|
rawFromInit(init, owner, uniqueness) {
|
184
214
|
const rawOwner = owner._raw;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coMap.js","sourceRoot":"","sources":["../../../src/coValues/coMap.ts"],"names":[],"mappings":";AAAA,OAAO,EAIL,eAAe,GAChB,MAAM,QAAQ,CAAC;AAehB,OAAO,EACL,OAAO,EACP,WAAW,EACX,QAAQ,EACR,GAAG,EACH,UAAU,EACV,mBAAmB,EACnB,OAAO,EACP,YAAY,EACZ,WAAW,EACX,QA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AAC;YACrB,QAAQ,EAAE,CAAC;QACb,CAAC,EACD,aAAa,CACd,CAAC;QAEF,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,MAAM,UAAU,GAAG;QACjB,eAAe,EAAE,GAAG,EAAE,CAAC,YAAY;QACnC,SAAS;KACV,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,QAAW,EACX,KAA0B,EAC1B,QAAiD;IAEjD,OAAO,kBAAkB,CACvB,QAAQ,CAAC,WAA8B,EACvC,QAAQ,CAAC,EAAE,EACX,QAAQ,CAAC,SAAS,EAClB,KAAK,EACL,QAAQ,CACT,CAAC;AACJ,CAAC"}
|
@@ -3,10 +3,8 @@ import { CoValueBase, } from "../internal.js";
|
|
3
3
|
* SchemaUnion allows you to create union types of CoValues that can be discriminated at runtime.
|
4
4
|
*
|
5
5
|
* @categoryDescription Declaration
|
6
|
-
* Declare your union types by extending `SchemaUnion.Of(...)` and passing a discriminator function
|
7
|
-
* that determines which concrete type to use based on the raw data.
|
6
|
+
* Declare your union types by extending `SchemaUnion.Of(...)` and passing a discriminator function that determines which concrete type to use based on the raw data.
|
8
7
|
*
|
9
|
-
* @example
|
10
8
|
* ```ts
|
11
9
|
* import { SchemaUnion, CoMap } from "jazz-tools";
|
12
10
|
*
|
@@ -34,28 +32,15 @@ import { CoValueBase, } from "../internal.js";
|
|
34
32
|
* });
|
35
33
|
* ```
|
36
34
|
*
|
37
|
-
* @categoryDescription Loading
|
38
|
-
* When loading a SchemaUnion, the correct subclass will be instantiated based on the discriminator.
|
39
|
-
* You can narrow the returned instance to a subclass by using `instanceof` like so:
|
40
|
-
*
|
41
|
-
* @example
|
42
|
-
* ```ts
|
43
|
-
* const widget = await loadCoValue(WidgetUnion, id, me, {});
|
44
|
-
* if (widget instanceof ButtonWidget) {
|
45
|
-
* console.log(widget.label);
|
46
|
-
* } else if (widget instanceof SliderWidget) {
|
47
|
-
* console.log(widget.min, widget.max);
|
48
|
-
* }
|
49
|
-
* ```
|
50
|
-
*
|
51
35
|
* @category CoValues
|
52
36
|
*/
|
53
37
|
export class SchemaUnion extends CoValueBase {
|
54
38
|
/**
|
55
39
|
* Create a new union type from a discriminator function.
|
56
40
|
*
|
57
|
-
* The discriminator function receives the raw data and should return the appropriate
|
58
|
-
*
|
41
|
+
* The discriminator function receives the raw data and should return the appropriate concrete class to use for that data.
|
42
|
+
*
|
43
|
+
* When loading a SchemaUnion, the correct subclass will be instantiated based on the discriminator.
|
59
44
|
*
|
60
45
|
* @param discriminator - Function that determines which concrete type to use
|
61
46
|
* @returns A new class that can create/load instances of the union type
|
@@ -69,10 +54,19 @@ export class SchemaUnion extends CoValueBase {
|
|
69
54
|
* default: throw new Error("Unknown widget type");
|
70
55
|
* }
|
71
56
|
* });
|
57
|
+
*
|
58
|
+
* const widget = await loadCoValue(WidgetUnion, id, me, {});
|
59
|
+
*
|
60
|
+
* // You can narrow the returned instance to a subclass by using `instanceof`
|
61
|
+
* if (widget instanceof ButtonWidget) {
|
62
|
+
* console.log(widget.label);
|
63
|
+
* } else if (widget instanceof SliderWidget) {
|
64
|
+
* console.log(widget.min, widget.max);
|
65
|
+
* }
|
72
66
|
* ```
|
73
67
|
*
|
74
|
-
* @category
|
75
|
-
|
68
|
+
* @category Declaration
|
69
|
+
**/
|
76
70
|
static Of(discriminator) {
|
77
71
|
return class SchemaUnionClass extends SchemaUnion {
|
78
72
|
static fromRaw(raw) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schemaUnion.js","sourceRoot":"","sources":["../../../src/coValues/schemaUnion.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,GAGZ,MAAM,gBAAgB,CAAC;AAExB
|
1
|
+
{"version":3,"file":"schemaUnion.js","sourceRoot":"","sources":["../../../src/coValues/schemaUnion.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,GAGZ,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,OAAgB,WAAY,SAAQ,WAAW;IACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA+BI;IACJ,MAAM,CAAC,EAAE,CACP,aAAsE;QAEtE,OAAO,MAAM,gBAAiB,SAAQ,WAAW;YAC/C,MAAM,CAAU,OAAO,CAErB,GAAc;gBAEd,MAAM,aAAa,GAAG,aAAa,CACjC,GAAgB,CACiC,CAAC;gBACpD,OAAO,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YACpC,CAAC;SACiD,CAAC;IACvD,CAAC;IAED;;;;;OAKG;IACH,aAAa;IACb,MAAM,CAAC,OAAO,CAA2C,GAAc;QACrE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrC,CAAC;CACF"}
|