jazz-tools 0.8.19 → 0.8.23
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -0
- package/dist/native/coValues/account.js +15 -17
- package/dist/native/coValues/account.js.map +1 -1
- package/dist/native/coValues/{coStream.js → coFeed.js} +21 -14
- package/dist/native/coValues/coFeed.js.map +1 -0
- package/dist/native/coValues/coList.js +16 -13
- package/dist/native/coValues/coList.js.map +1 -1
- package/dist/native/coValues/coMap.js +14 -10
- package/dist/native/coValues/coMap.js.map +1 -1
- package/dist/native/coValues/deepLoading.js.map +1 -1
- package/dist/native/coValues/extensions/imageDef.js +9 -4
- package/dist/native/coValues/extensions/imageDef.js.map +1 -1
- package/dist/native/coValues/group.js +23 -20
- package/dist/native/coValues/group.js.map +1 -1
- package/dist/native/coValues/schemaUnion.js +93 -0
- package/dist/native/coValues/schemaUnion.js.map +1 -0
- package/dist/native/exports.js +1 -1
- package/dist/native/exports.js.map +1 -1
- package/dist/native/implementation/createContext.js +1 -2
- package/dist/native/implementation/createContext.js.map +1 -1
- package/dist/native/implementation/refs.js +0 -3
- package/dist/native/implementation/refs.js.map +1 -1
- package/dist/native/implementation/subscriptionScope.js +5 -8
- package/dist/native/implementation/subscriptionScope.js.map +1 -1
- package/dist/native/internal.js +2 -1
- package/dist/native/internal.js.map +1 -1
- package/dist/web/coValues/account.js +15 -17
- package/dist/web/coValues/account.js.map +1 -1
- package/dist/web/coValues/{coStream.js → coFeed.js} +21 -14
- package/dist/web/coValues/coFeed.js.map +1 -0
- package/dist/web/coValues/coList.js +16 -13
- package/dist/web/coValues/coList.js.map +1 -1
- package/dist/web/coValues/coMap.js +14 -10
- package/dist/web/coValues/coMap.js.map +1 -1
- package/dist/web/coValues/deepLoading.js.map +1 -1
- package/dist/web/coValues/extensions/imageDef.js +9 -4
- package/dist/web/coValues/extensions/imageDef.js.map +1 -1
- package/dist/web/coValues/group.js +23 -20
- package/dist/web/coValues/group.js.map +1 -1
- package/dist/web/coValues/schemaUnion.js +93 -0
- package/dist/web/coValues/schemaUnion.js.map +1 -0
- package/dist/web/exports.js +1 -1
- package/dist/web/exports.js.map +1 -1
- package/dist/web/implementation/createContext.js +1 -2
- package/dist/web/implementation/createContext.js.map +1 -1
- package/dist/web/implementation/refs.js +0 -3
- package/dist/web/implementation/refs.js.map +1 -1
- package/dist/web/implementation/subscriptionScope.js +5 -8
- package/dist/web/implementation/subscriptionScope.js.map +1 -1
- package/dist/web/internal.js +2 -1
- package/dist/web/internal.js.map +1 -1
- package/package.json +2 -2
- package/src/coValues/{coStream.ts → coFeed.ts} +50 -38
- package/src/coValues/coList.ts +2 -2
- package/src/coValues/coMap.ts +2 -2
- package/src/coValues/deepLoading.ts +6 -6
- package/src/coValues/extensions/imageDef.ts +4 -9
- package/src/coValues/schemaUnion.ts +106 -0
- package/src/exports.ts +3 -0
- package/src/internal.ts +2 -1
- package/src/tests/{coStream.test.ts → coFeed.test.ts} +21 -30
- package/src/tests/deepLoading.test.ts +2 -2
- package/src/tests/schemaUnion.test.ts +118 -0
- package/src/tests/subscribe.test.ts +4 -4
- package/tsconfig.json +1 -1
- package/dist/native/coValues/coStream.js.map +0 -1
- package/dist/web/coValues/coStream.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# jazz-tools
|
2
2
|
|
3
|
+
## 0.8.23
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- d348c2d: Rename BinaryCoStream to FileStream
|
8
|
+
- 6902b5b: Rename CoStream to CoFeed
|
9
|
+
- 1a0cd3d: Added SchemaUnion.Of(), a new API that lets you express unions of other Schema definitions (often different subclasses of a parent Schema class) that are correctly narrowed in TypeScript and correctly instantiated at runtime based on a discriminating field in the raw loaded CoValue.
|
10
|
+
- Updated dependencies [6f745be]
|
11
|
+
- Updated dependencies [124bf67]
|
12
|
+
- cojson@0.8.23
|
13
|
+
|
14
|
+
## 0.8.21
|
15
|
+
|
16
|
+
### Patch Changes
|
17
|
+
|
18
|
+
- 149ca97: changed jazz-tools TS target to ES2021
|
19
|
+
- Updated dependencies [0f30eea]
|
20
|
+
- cojson@0.8.21
|
21
|
+
|
3
22
|
## 0.8.19
|
4
23
|
|
5
24
|
### Patch Changes
|
@@ -1,25 +1,12 @@
|
|
1
|
+
var _a;
|
1
2
|
import { LocalNode, RawAccount, cojsonInternals, } from "cojson";
|
2
3
|
import { AnonymousJazzAgent, CoMap, CoValueBase, Group, MembersSym, Profile, Ref, SchemaInit, ensureCoValueLoaded, inspect, loadCoValue, subscribeToCoValue, subscribeToExistingCoValue, subscriptionsScopes, } from "../internal.js";
|
3
4
|
import { coValuesCache } from "../lib/cache.js";
|
4
5
|
/** @category Identity & Permissions */
|
5
6
|
export class Account extends CoValueBase {
|
6
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
7
|
-
static _schema;
|
8
7
|
get _schema() {
|
9
8
|
return this.constructor._schema;
|
10
9
|
}
|
11
|
-
static {
|
12
|
-
this._schema = {
|
13
|
-
profile: {
|
14
|
-
ref: () => Profile,
|
15
|
-
optional: false,
|
16
|
-
},
|
17
|
-
root: {
|
18
|
-
ref: () => CoMap,
|
19
|
-
optional: true,
|
20
|
-
},
|
21
|
-
};
|
22
|
-
}
|
23
10
|
get _owner() {
|
24
11
|
return this;
|
25
12
|
}
|
@@ -28,7 +15,7 @@ export class Account extends CoValueBase {
|
|
28
15
|
return this;
|
29
16
|
const rawAccount = this._raw.core.node.account;
|
30
17
|
if (rawAccount instanceof RawAccount) {
|
31
|
-
return coValuesCache.get(rawAccount, () =>
|
18
|
+
return coValuesCache.get(rawAccount, () => _a.fromRaw(rawAccount));
|
32
19
|
}
|
33
20
|
return new AnonymousJazzAgent(this._raw.core.node);
|
34
21
|
}
|
@@ -42,8 +29,6 @@ export class Account extends CoValueBase {
|
|
42
29
|
new Ref(rootID, this._loadedAs, this._schema.root),
|
43
30
|
};
|
44
31
|
}
|
45
|
-
isMe;
|
46
|
-
sessionID;
|
47
32
|
constructor(options) {
|
48
33
|
super();
|
49
34
|
if (!("fromRaw" in options)) {
|
@@ -138,6 +123,19 @@ export class Account extends CoValueBase {
|
|
138
123
|
return subscribeToExistingCoValue(this, depth, listener);
|
139
124
|
}
|
140
125
|
}
|
126
|
+
_a = Account;
|
127
|
+
(() => {
|
128
|
+
_a._schema = {
|
129
|
+
profile: {
|
130
|
+
ref: () => Profile,
|
131
|
+
optional: false,
|
132
|
+
},
|
133
|
+
root: {
|
134
|
+
ref: () => CoMap,
|
135
|
+
optional: true,
|
136
|
+
},
|
137
|
+
};
|
138
|
+
})();
|
141
139
|
export const AccountAndGroupProxyHandler = {
|
142
140
|
get(target, key, receiver) {
|
143
141
|
if (key === "profile") {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/coValues/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,SAAS,EAET,UAAU,EAKV,eAAe,GAChB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,kBAAkB,EAClB,KAAK,EAEL,WAAW,EAIX,KAAK,EAEL,UAAU,EACV,OAAO,EACP,GAAG,EAIH,UAAU,EACV,mBAAmB,EACnB,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,uCAAuC;AACvC,MAAM,OAAO,OAAQ,SAAQ,WAAW;
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/coValues/account.ts"],"names":[],"mappings":";AAAA,OAAO,EAKL,SAAS,EAET,UAAU,EAKV,eAAe,GAChB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,kBAAkB,EAClB,KAAK,EAEL,WAAW,EAIX,KAAK,EAEL,UAAU,EACV,OAAO,EACP,GAAG,EAIH,UAAU,EACV,mBAAmB,EACnB,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,0BAA0B,EAC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,OAAO,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;CACF,CAAC;AAEF,uCAAuC;AACvC,MAAM,UAAU,mBAAmB,CAAC,OAAgB;IAKlD,OAAO,OAAO,CAAC,IAAI,CAAC;AACtB,CAAC"}
|
@@ -1,20 +1,22 @@
|
|
1
|
+
var _a;
|
1
2
|
import { MAX_RECOMMENDED_TX_SIZE, cojsonInternals } from "cojson";
|
2
3
|
import { Account, CoValueBase, ItemsSym, Ref, SchemaInit, co, ensureCoValueLoaded, inspect, isRefEncoded, loadCoValue, subscribeToCoValue, subscribeToExistingCoValue, } from "../internal.js";
|
4
|
+
/** @deprecated Use CoFeed instead */
|
5
|
+
export { CoFeed as CoStream };
|
3
6
|
/** @category CoValues */
|
4
7
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5
|
-
export class
|
8
|
+
export class CoFeed extends CoValueBase {
|
6
9
|
static Of(item) {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
var _b, _c;
|
11
|
+
return _c = class CoFeedOf extends _a {
|
12
|
+
constructor() {
|
13
|
+
super(...arguments);
|
14
|
+
this[_b] = item;
|
15
|
+
}
|
16
|
+
},
|
17
|
+
_b = co.items,
|
18
|
+
_c;
|
13
19
|
}
|
14
|
-
/** @internal This is only a marker type and doesn't exist at runtime */
|
15
|
-
[ItemsSym];
|
16
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
17
|
-
static _schema;
|
18
20
|
get _schema() {
|
19
21
|
return this.constructor._schema;
|
20
22
|
}
|
@@ -26,7 +28,6 @@ export class CoStream extends CoValueBase {
|
|
26
28
|
return undefined;
|
27
29
|
}
|
28
30
|
}
|
29
|
-
perSession;
|
30
31
|
get inCurrentSession() {
|
31
32
|
if (this._loadedAs._type === "Account") {
|
32
33
|
return this.perSession[this._loadedAs.sessionID];
|
@@ -124,6 +125,10 @@ export class CoStream extends CoValueBase {
|
|
124
125
|
return subscribeToExistingCoValue(this, depth, listener);
|
125
126
|
}
|
126
127
|
}
|
128
|
+
_a = CoFeed;
|
129
|
+
(() => {
|
130
|
+
_a.prototype._type = "CoStream";
|
131
|
+
})();
|
127
132
|
function entryFromRawEntry(accessFrom, rawEntry, loadedAs, accountID, itemField) {
|
128
133
|
return {
|
129
134
|
get value() {
|
@@ -284,8 +289,10 @@ const CoStreamPerSessionProxyHandler = (innerTarget, accessFrom) => ({
|
|
284
289
|
}
|
285
290
|
},
|
286
291
|
});
|
292
|
+
/** @deprecated Use CoFeed instead */
|
293
|
+
export { FileStream as BinaryCoStream };
|
287
294
|
/** @category CoValues */
|
288
|
-
export class
|
295
|
+
export class FileStream extends CoValueBase {
|
289
296
|
constructor(options) {
|
290
297
|
super();
|
291
298
|
let raw;
|
@@ -405,4 +412,4 @@ export class BinaryCoStream extends CoValueBase {
|
|
405
412
|
return subscribeToExistingCoValue(this, depth, listener);
|
406
413
|
}
|
407
414
|
}
|
408
|
-
//# sourceMappingURL=
|
415
|
+
//# sourceMappingURL=coFeed.js.map
|
@@ -0,0 +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,MA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AEjD,OAAO,kBAAkB,CAAW,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IACrE,CAAC;IAED,uCAAuC;IACvC,YAAY,CAEV,KAA0B;QAE1B,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,uCAAuC;IACvC,SAAS,CAEP,KAA0B,EAC1B,QAAiD;QAEjD,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
var _a;
|
1
2
|
import { RawAccount } from "cojson";
|
2
3
|
import { Account, AnonymousJazzAgent, Group, ItemsSym, Ref, SchemaInit, co, ensureCoValueLoaded, inspect, isRefEncoded, loadCoValue, makeRefs, subscribeToCoValue, subscribeToExistingCoValue, subscriptionsScopes, } from "../internal.js";
|
3
4
|
import { coValuesCache } from "../lib/cache.js";
|
@@ -36,10 +37,16 @@ export class CoList extends Array {
|
|
36
37
|
* @category Declaration
|
37
38
|
*/
|
38
39
|
static Of(item) {
|
40
|
+
var _b, _c;
|
39
41
|
// TODO: cache superclass for item class
|
40
|
-
return class CoListOf extends
|
41
|
-
|
42
|
-
|
42
|
+
return _c = class CoListOf extends _a {
|
43
|
+
constructor() {
|
44
|
+
super(...arguments);
|
45
|
+
this[_b] = item;
|
46
|
+
}
|
47
|
+
},
|
48
|
+
_b = co.items,
|
49
|
+
_c;
|
43
50
|
}
|
44
51
|
/**
|
45
52
|
* @ignore
|
@@ -47,14 +54,6 @@ export class CoList extends Array {
|
|
47
54
|
static of(..._args) {
|
48
55
|
throw new Error("Can't use Array.of with CoLists");
|
49
56
|
}
|
50
|
-
static {
|
51
|
-
this.prototype._type = "CoList";
|
52
|
-
}
|
53
|
-
/** @internal This is only a marker type and doesn't exist at runtime */
|
54
|
-
[ItemsSym];
|
55
|
-
/** @internal */
|
56
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
57
|
-
static _schema;
|
58
57
|
/** @internal */
|
59
58
|
get _schema() {
|
60
59
|
return this.constructor._schema;
|
@@ -223,7 +222,7 @@ export class CoList extends Array {
|
|
223
222
|
*
|
224
223
|
* You can pass `[]` or for shallowly loading only this CoList, or `[itemDepth]` for recursively loading referenced CoValues.
|
225
224
|
*
|
226
|
-
* Check out the `load` methods on `CoMap`/`CoList`/`
|
225
|
+
* Check out the `load` methods on `CoMap`/`CoList`/`CoFeed`/`Group`/`Account` to see which depth structures are valid to nest.
|
227
226
|
*
|
228
227
|
* @example
|
229
228
|
* ```ts
|
@@ -250,7 +249,7 @@ export class CoList extends Array {
|
|
250
249
|
*
|
251
250
|
* You can pass `[]` or for shallowly loading only this CoList, or `[itemDepth]` for recursively loading referenced CoValues.
|
252
251
|
*
|
253
|
-
* Check out the `load` methods on `CoMap`/`CoList`/`
|
252
|
+
* Check out the `load` methods on `CoMap`/`CoList`/`CoFeed`/`Group`/`Account` to see which depth structures are valid to nest.
|
254
253
|
*
|
255
254
|
* Returns an unsubscribe function that you should call when you no longer need updates.
|
256
255
|
*
|
@@ -303,6 +302,10 @@ export class CoList extends Array {
|
|
303
302
|
return casted;
|
304
303
|
}
|
305
304
|
}
|
305
|
+
_a = CoList;
|
306
|
+
(() => {
|
307
|
+
_a.prototype._type = "CoList";
|
308
|
+
})();
|
306
309
|
function toRawItems(items, itemDescriptor) {
|
307
310
|
const rawItems = itemDescriptor === "json"
|
308
311
|
? items
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coList.js","sourceRoot":"","sources":["../../../src/coValues/coList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAapC,OAAO,EACL,OAAO,EACP,kBAAkB,EAClB,KAAK,EACL,QAAQ,EACR,GAAG,EACH,UAAU,EACV,EAAE,EACF,mBAAmB,EACnB,OAAO,EACP,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,k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AC,MAAM,EAAE,GAAG;QACb,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5C,OAAO,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QACpD,CAAC;aAAM,CAAC;YACN,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;CACF,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
var _a;
|
1
2
|
import { cojsonInternals, } from "cojson";
|
2
3
|
import { Account, CoValueBase, ItemsSym, Ref, SchemaInit, ensureCoValueLoaded, inspect, isRefEncoded, loadCoValue, makeRefs, subscribeToCoValue, subscribeToExistingCoValue, subscriptionsScopes, } from "../internal.js";
|
3
4
|
/**
|
@@ -34,12 +35,6 @@ import { Account, CoValueBase, ItemsSym, Ref, SchemaInit, ensureCoValueLoaded, i
|
|
34
35
|
* @category CoValues
|
35
36
|
* */
|
36
37
|
export class CoMap extends CoValueBase {
|
37
|
-
static {
|
38
|
-
this.prototype._type = "CoMap";
|
39
|
-
}
|
40
|
-
/** @internal */
|
41
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
42
|
-
static _schema;
|
43
38
|
/** @internal */
|
44
39
|
get _schema() {
|
45
40
|
return this.constructor._schema;
|
@@ -231,10 +226,15 @@ export class CoMap extends CoValueBase {
|
|
231
226
|
* @category Declaration
|
232
227
|
*/
|
233
228
|
static Record(value) {
|
229
|
+
var _b;
|
234
230
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
235
|
-
class RecordLikeCoMap extends
|
236
|
-
|
231
|
+
class RecordLikeCoMap extends _a {
|
232
|
+
constructor() {
|
233
|
+
super(...arguments);
|
234
|
+
this[_b] = value;
|
235
|
+
}
|
237
236
|
}
|
237
|
+
_b = ItemsSym;
|
238
238
|
return RecordLikeCoMap;
|
239
239
|
}
|
240
240
|
/**
|
@@ -245,7 +245,7 @@ export class CoMap extends CoValueBase {
|
|
245
245
|
*
|
246
246
|
* You can pass `[]` or `{}` for shallowly loading only this CoMap, or `{ fieldA: depthA, fieldB: depthB }` for recursively loading referenced CoValues.
|
247
247
|
*
|
248
|
-
* Check out the `load` methods on `CoMap`/`CoList`/`
|
248
|
+
* Check out the `load` methods on `CoMap`/`CoList`/`CoFeed`/`Group`/`Account` to see which depth structures are valid to nest.
|
249
249
|
*
|
250
250
|
* @example
|
251
251
|
* ```ts
|
@@ -271,7 +271,7 @@ export class CoMap extends CoValueBase {
|
|
271
271
|
*
|
272
272
|
* You can pass `[]` or `{}` for shallowly loading only this CoMap, or `{ fieldA: depthA, fieldB: depthB }` for recursively loading referenced CoValues.
|
273
273
|
*
|
274
|
-
* Check out the `load` methods on `CoMap`/`CoList`/`
|
274
|
+
* Check out the `load` methods on `CoMap`/`CoList`/`CoFeed`/`Group`/`Account` to see which depth structures are valid to nest.
|
275
275
|
*
|
276
276
|
* Returns an unsubscribe function that you should call when you no longer need updates.
|
277
277
|
*
|
@@ -356,6 +356,10 @@ export class CoMap extends CoValueBase {
|
|
356
356
|
return this;
|
357
357
|
}
|
358
358
|
}
|
359
|
+
_a = CoMap;
|
360
|
+
(() => {
|
361
|
+
_a.prototype._type = "CoMap";
|
362
|
+
})();
|
359
363
|
// TODO: cache handlers per descriptor for performance?
|
360
364
|
const CoMapProxyHandler = {
|
361
365
|
get(target, key, receiver) {
|
@@ -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,QAAQ,EACR,kBAAkB,EAClB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FileStream, co, subscriptionsScopes } from "../../internal.js";
|
2
3
|
/** @category Media */
|
3
4
|
export class ImageDefinition extends CoMap {
|
4
|
-
|
5
|
-
|
6
|
-
|
5
|
+
constructor() {
|
6
|
+
super(...arguments);
|
7
|
+
this.originalSize = co.json();
|
8
|
+
this.placeholderDataURL = co.string;
|
9
|
+
this[_a] = co.ref(FileStream);
|
10
|
+
}
|
7
11
|
highestResAvailable(options) {
|
8
12
|
if (!subscriptionsScopes.get(this)) {
|
9
13
|
console.warn("highestResAvailable() only makes sense when used within a subscription.");
|
@@ -34,4 +38,5 @@ export class ImageDefinition extends CoMap {
|
|
34
38
|
});
|
35
39
|
}
|
36
40
|
}
|
41
|
+
_a = co.items;
|
37
42
|
//# sourceMappingURL=imageDef.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"imageDef.js","sourceRoot":"","sources":["../../../../src/coValues/extensions/imageDef.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"imageDef.js","sourceRoot":"","sources":["../../../../src/coValues/extensions/imageDef.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,sBAAsB;AACtB,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAA1C;;QACE,iBAAY,GAAG,EAAE,CAAC,IAAI,EAAoB,CAAC;QAC3C,uBAAkB,GAAI,EAAE,CAAC,MAAM,CAAC;QAEhC,QAAU,GAAG,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IA8ClC,CAAC;IA3CC,mBAAmB,CAAC,OAEnB;QACC,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACnC,OAAO,CAAC,IAAI,CACV,yEAAyE,CAC1E,CAAC;QACJ,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAA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oaded, isControlledAccount, loadCoValue, subscribeToCoValue, subscribeToExistingCoValue, } from "../internal.js";
|
2
3
|
/** @category Identity & Permissions */
|
3
4
|
export class Profile extends CoMap {
|
4
|
-
|
5
|
+
constructor() {
|
6
|
+
super(...arguments);
|
7
|
+
this.name = co.string;
|
8
|
+
}
|
5
9
|
}
|
6
10
|
/** @category Identity & Permissions */
|
7
11
|
export class Group extends CoValueBase {
|
8
|
-
static {
|
9
|
-
this.prototype._type = "Group";
|
10
|
-
}
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
12
|
-
static _schema;
|
13
12
|
get _schema() {
|
14
13
|
return this.constructor._schema;
|
15
14
|
}
|
16
|
-
static {
|
17
|
-
this._schema = {
|
18
|
-
profile: "json",
|
19
|
-
root: "json",
|
20
|
-
[MembersSym]: {
|
21
|
-
ref: () => Account,
|
22
|
-
optional: false,
|
23
|
-
},
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
25
|
-
};
|
26
|
-
Object.defineProperty(this.prototype, "_schema", {
|
27
|
-
get: () => this._schema,
|
28
|
-
});
|
29
|
-
}
|
30
15
|
get _refs() {
|
31
16
|
const profileID = this._raw.get("profile");
|
32
17
|
const rootID = this._raw.get("root");
|
@@ -114,4 +99,22 @@ export class Group extends CoValueBase {
|
|
114
99
|
return subscribeToExistingCoValue(this, depth, listener);
|
115
100
|
}
|
116
101
|
}
|
102
|
+
_a = Group;
|
103
|
+
(() => {
|
104
|
+
_a.prototype._type = "Group";
|
105
|
+
})();
|
106
|
+
(() => {
|
107
|
+
_a._schema = {
|
108
|
+
profile: "json",
|
109
|
+
root: "json",
|
110
|
+
[MembersSym]: {
|
111
|
+
ref: () => Account,
|
112
|
+
optional: false,
|
113
|
+
},
|
114
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
115
|
+
};
|
116
|
+
Object.defineProperty(_a.prototype, "_schema", {
|
117
|
+
get: () => _a._schema,
|
118
|
+
});
|
119
|
+
})();
|
117
120
|
//# sourceMappingURL=group.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/coValues/group.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,OAAO,EACP,2BAA2B,EAC3B,KAAK,EACL,WAAW,EACX,UAAU,EACV,GAAG,EACH,EAAE,EACF,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AAExB,uCAAuC;AACvC,MAAM,OAAO,OAAQ,SAAQ,KAAK;
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/coValues/group.ts"],"names":[],"mappings":";AAUA,OAAO,EACL,OAAO,EACP,2BAA2B,EAC3B,KAAK,EACL,WAAW,EACX,UAAU,EACV,GAAG,EACH,EAAE,EACF,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AAExB,uCAAuC;AACvC,MAAM,OAAO,OAAQ,SAAQ,KAAK;IAAlC;;QACE,SAAI,GAAG,EAAE,CAAC,MAAM,CAAC;IACnB,CAAC;CAAA;AAED,uCAAuC;AACvC,MAAM,OAAO,KAAM,SAAQ,WAAW;IAUpC,IAAI,OAAO;QAKT,OAAQ,IAAI,CAAC,WAA4B,CAAC,OAAO,CAAC;IACpD,CAAC;IAoBD,IAAI,KAAK;QAIP,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAE5B,CAAC;QACd,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAEtB,CAAC;QACd,OAAO;YACL,OAAO,EACL,SAAS;gBACR,IAAI,GAAG,CACN,SAAS,EACT,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,OAAO,CAAC,OAAmD,CAIxD;YACZ,IAAI,EACF,MAAM;gBACL,IAAI,GAAG,CACN,MAAM,EAC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