jazz-tools 0.8.19-group-inheritance.0 → 0.8.21
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +11 -4
- package/dist/native/coValues/account.js +15 -17
- package/dist/native/coValues/account.js.map +1 -1
- package/dist/native/coValues/coList.js +14 -11
- package/dist/native/coValues/coList.js.map +1 -1
- package/dist/native/coValues/coMap.js +12 -8
- package/dist/native/coValues/coMap.js.map +1 -1
- package/dist/native/coValues/coStream.js +14 -11
- package/dist/native/coValues/coStream.js.map +1 -1
- package/dist/native/coValues/extensions/imageDef.js +8 -3
- package/dist/native/coValues/extensions/imageDef.js.map +1 -1
- package/dist/native/coValues/group.js +23 -28
- package/dist/native/coValues/group.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/web/coValues/account.js +15 -17
- package/dist/web/coValues/account.js.map +1 -1
- package/dist/web/coValues/coList.js +14 -11
- package/dist/web/coValues/coList.js.map +1 -1
- package/dist/web/coValues/coMap.js +12 -8
- package/dist/web/coValues/coMap.js.map +1 -1
- package/dist/web/coValues/coStream.js +14 -11
- package/dist/web/coValues/coStream.js.map +1 -1
- package/dist/web/coValues/extensions/imageDef.js +8 -3
- package/dist/web/coValues/extensions/imageDef.js.map +1 -1
- package/dist/web/coValues/group.js +23 -28
- package/dist/web/coValues/group.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/package.json +2 -2
- package/src/coValues/group.ts +0 -10
- package/src/tests/groupsAndAccounts.test.ts +0 -93
- package/tsconfig.json +1 -1
- package/.turbo/turbo-build.log +0 -12
- package/.turbo/turbo-lint.log +0 -4
- package/.turbo/turbo-test.log +0 -144
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,19 @@
|
|
1
1
|
# jazz-tools
|
2
2
|
|
3
|
-
## 0.8.
|
3
|
+
## 0.8.21
|
4
4
|
|
5
5
|
### Patch Changes
|
6
6
|
|
7
|
-
-
|
8
|
-
- Updated dependencies [
|
9
|
-
- cojson@0.8.
|
7
|
+
- 149ca97: changed jazz-tools TS target to ES2021
|
8
|
+
- Updated dependencies [0f30eea]
|
9
|
+
- cojson@0.8.21
|
10
|
+
|
11
|
+
## 0.8.19
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- Updated dependencies [9c2aadb]
|
16
|
+
- cojson@0.8.19
|
10
17
|
|
11
18
|
## 0.8.18
|
12
19
|
|
@@ -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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C,IACE,CAAC,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,UAAU,CAAC;YAC3D,OAAO,UAAU,CAAC,KAAK,KAAK,QAAQ;YACpC,UAAU,IAAI,UAAU,CAAC,KAAK,EAC9B,CAAC;YACA,MAAM,CAAC,WAA4B,CAAC,OAAO,KAAK,EAAE,CAAC;YACnD,MAAM,CAAC,WAA4B,CAAC,OAAO,CAAC,GAAG,CAAC;gBAC/C,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YAC/B,OAAO,IAAI,CAAC;QACd,CAAC;aAAM,CAAC;YACN,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,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;
|
@@ -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,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;;;;;;;;;;GAgBG;AACH,8DAA8D;AAC9D,MAAM,OAAO,MAAmB,SAAQ,KAAW;IACjD;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,CAAO,IAAU
|
1
|
+
{"version":3,"file":"coList.js","sourceRoot":"","sources":["../../../src/coValues/coList.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UA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
|
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
|
/**
|
@@ -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/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AA6B,CAAC;YAC/D,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAW,CAAC;QACtC,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,UAAU,EAAE,CAAC;YAC1C,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACxB,OAAO,IAAI,CAAC;QACd,CAAC;aAAM,CAAC;YACN,OAAO,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;CACF,CAAC"}
|
@@ -1,20 +1,20 @@
|
|
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";
|
3
4
|
/** @category CoValues */
|
4
5
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5
6
|
export class CoStream extends CoValueBase {
|
6
7
|
static Of(item) {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
var _b, _c;
|
9
|
+
return _c = class CoStreamOf extends _a {
|
10
|
+
constructor() {
|
11
|
+
super(...arguments);
|
12
|
+
this[_b] = item;
|
13
|
+
}
|
14
|
+
},
|
15
|
+
_b = co.items,
|
16
|
+
_c;
|
13
17
|
}
|
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
18
|
get _schema() {
|
19
19
|
return this.constructor._schema;
|
20
20
|
}
|
@@ -26,7 +26,6 @@ export class CoStream extends CoValueBase {
|
|
26
26
|
return undefined;
|
27
27
|
}
|
28
28
|
}
|
29
|
-
perSession;
|
30
29
|
get inCurrentSession() {
|
31
30
|
if (this._loadedAs._type === "Account") {
|
32
31
|
return this.perSession[this._loadedAs.sessionID];
|
@@ -124,6 +123,10 @@ export class CoStream extends CoValueBase {
|
|
124
123
|
return subscribeToExistingCoValue(this, depth, listener);
|
125
124
|
}
|
126
125
|
}
|
126
|
+
_a = CoStream;
|
127
|
+
(() => {
|
128
|
+
_a.prototype._type = "CoStream";
|
129
|
+
})();
|
127
130
|
function entryFromRawEntry(accessFrom, rawEntry, loadedAs, accountID, itemField) {
|
128
131
|
return {
|
129
132
|
get value() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coStream.js","sourceRoot":"","sources":["../../../src/coValues/coStream.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;AAcxB,yBAAyB;AACzB,8DAA8D;AAC9D,MAAM,OAAO,QAAqB,SAAQ,WAAW;IACnD,MAAM,CAAC,EAAE,CAAO,IAAsB;QACpC,OAAO,MAAM,UAAW,SAAQ,QAAc;YAC5C,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;SACnB,CAAC;IACJ,CAAC;IAID;QACE,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,CAAC;IACpC,CAAC;IAGD,wEAAwE;IACxE,CAAC,QAAQ,CAAC,CAAQ;IAClB,8DAA8D;IAC9D,MAAM,CAAC,OAAO,CAAM;IACpB,IAAI,OAAO;QAGT,OAAQ,IAAI,CAAC,WAA+B,CAAC,OAAO,CAAC;IACvD,CAAC;IAID,IAAI,IAAI;QACN,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YACvC,OAAO,IAAI,CAAC,IAAI,CAA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ACP,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;IACvB,CAAC;IAED,uCAAuC;IACvC,MAAM,CAAC,IAAI,CAET,EAAS,EACT,EAAW,EACX,KAA0B;QAE1B,OAAO,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,uCAAuC;IACvC,MAAM,CAAC,SAAS,CAEd,EAAS,EACT,EAAW,EACX,KAA0B,EAC1B,QAAiD;QAEjD,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,9 +1,13 @@
|
|
1
|
+
var _a;
|
1
2
|
import { BinaryCoStream, CoMap, 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(BinaryCoStream);
|
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,EACL,cAAc,EACd,KAAK,EACL,EAAE,EACF,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAE3B,sBAAsB;AACtB,MAAM,OAAO,eAAgB,SAAQ,KAAK;
|
1
|
+
{"version":3,"file":"imageDef.js","sourceRoot":"","sources":["../../../../src/coValues/extensions/imageDef.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,cAAc,EACd,KAAK,EACL,EAAE,EACF,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAE3B,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,cAAc,CAAC,CAAC;IA8CtC,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,MAAM,CAC1C,CAAC,GAAG,EAAE,EAAE,CACN,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC;YACtB,CAAC,OAAO,EAAE,QAAQ,KAAK,SAAS;gBAC9B,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CACxB,CAAC;QAE7B,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACxB,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvC,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvC,OAAO,MAAM,GAAG,MAAM,CAAC;QACzB,CAAC,CAAC,CAAC;QAEH,IAAI,0BAA6D,CAAC;QAElE,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;YACrC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC;gBACtD,0BAA0B,GAAG,UAAU,CAAC;YAC1C,CAAC;iBAAM,CAAC;gBACN,OAAO,CACL,0BAA0B,IAAI;oBAC5B,GAAG,EAAE,0BAA0B;oBAC/B,MAAM,EAAE,IAAI,CAAC,0BAA0B,CAAE;iBAC1C,CACF,CAAC;YACJ,CAAC;QACH,CAAC;QACD,OAAO,CACL,0BAA0B,IAAI;YAC5B,GAAG,EAAE,0BAA0B;YAC/B,MAAM,EAAE,IAAI,CAAC,0BAA0B,CAAE;SAC1C,CACF,CAAC;IACJ,CAAC;CACF;KA9CE,EAAE,CAAC,KAAK"}
|
@@ -1,32 +1,17 @@
|
|
1
|
+
var _a;
|
1
2
|
import { Account, AccountAndGroupProxyHandler, CoMap, CoValueBase, MembersSym, Ref, co, ensureCoValueLoaded, 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");
|
@@ -75,10 +60,6 @@ export class Group extends CoValueBase {
|
|
75
60
|
this._raw.addMember(member === "everyone" ? member : member._raw, role);
|
76
61
|
return this;
|
77
62
|
}
|
78
|
-
removeMember(member) {
|
79
|
-
this._raw.removeMember(member === "everyone" ? member : member._raw);
|
80
|
-
return this;
|
81
|
-
}
|
82
63
|
get members() {
|
83
64
|
return this._raw
|
84
65
|
.keys()
|
@@ -101,10 +82,6 @@ export class Group extends CoValueBase {
|
|
101
82
|
};
|
102
83
|
});
|
103
84
|
}
|
104
|
-
extend(parent) {
|
105
|
-
this._raw.extend(parent._raw);
|
106
|
-
return this;
|
107
|
-
}
|
108
85
|
/** @category Subscription & Loading */
|
109
86
|
static load(id, as, depth) {
|
110
87
|
return loadCoValue(this, id, as, depth);
|
@@ -122,4 +99,22 @@ export class Group extends CoValueBase {
|
|
122
99
|
return subscribeToExistingCoValue(this, depth, listener);
|
123
100
|
}
|
124
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
|
+
})();
|
125
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,SA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;IAC1C,CAAC;IAED,uCAAuC;IACvC,MAAM,CAAC,SAAS,CAEd,EAAS,EACT,EAAW,EACX,KAA0B,EAC1B,QAAiD;QAEjD,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;;AAjLC;IACE,GAAK,SAAS,CAAC,KAAK,GAAG,OAAO,CAAC;AACjC,CAAC,GAAA,CAAA;AAYD;IACE,GAAK,OAAO,GAAG;QACb,OAAO,EAAE,MAAuB;QAChC,IAAI,EAAE,MAAuB;QAC7B,CAAC,UAAU,CAAC,EAAE;YACZ,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO;YAClB,QAAQ,EAAE,KAAK;SACc;QAC/B,8DAA8D;KACxD,CAAC;IACT,MAAM,CAAC,cAAc,CAAC,GAAK,SAAS,EAAE,SAAS,EAAE;QAC/C,GAAG,EAAE,GAAG,EAAE,CAAC,GAAK,OAAO;KACxB,CAAC,CAAC;AACL,CAAC,GAAA,CAAA"}
|
@@ -136,10 +136,9 @@ export async function createJazzContext(options) {
|
|
136
136
|
}
|
137
137
|
}
|
138
138
|
export class AnonymousJazzAgent {
|
139
|
-
node;
|
140
|
-
_type = "Anonymous";
|
141
139
|
constructor(node) {
|
142
140
|
this.node = node;
|
141
|
+
this._type = "Anonymous";
|
143
142
|
}
|
144
143
|
}
|
145
144
|
export async function createAnonymousJazzContext({ peersToLoadFrom, crypto, }) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createContext.js","sourceRoot":"","sources":["../../../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,GAAG,IAAI,SAAS,CACxB,QAAQ,EACR,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,EACtC,MAAM,CACP,CAAC;IAEF,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;QACnC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,OAAO;QACL,KAAK,EAAE,IAAI,kBAAkB,CAAC,IAAI,CAAC;QACnC,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;QACd,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;KACjB,CAAC;AACJ,CAAC"}
|
@@ -2,9 +2,6 @@ import { instantiateRefEncoded, isRefEncoded, subscriptionsScopes, } from "../in
|
|
2
2
|
import { coValuesCache } from "../lib/cache.js";
|
3
3
|
const TRACE_ACCESSES = false;
|
4
4
|
export class Ref {
|
5
|
-
id;
|
6
|
-
controlledAccount;
|
7
|
-
schema;
|
8
5
|
constructor(id, controlledAccount, schema) {
|
9
6
|
this.id = id;
|
10
7
|
this.controlledAccount = controlledAccount;
|