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
@@ -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,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAexB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgCM;AACN,MAAM,OAAO,KAAM,SAAQ,WAAW;IAOpC;QACE,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,OAAO,CAAC;IACjC,CAAC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AAC,CAAC,IAAI,IAAI,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC;gBACxC,CAAC,CAAG,KAAgB,CAAC,OAAO,CAAC,QAAQ,CAAyB;qBACzD,QAAQ,CAChB,CAAC;QACJ,CAAC;IACH,CAAC;SAAM,IAAI,KAAK,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;QACtC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvB,OAAO,IAAI,CAAC;QACd,CAAC;aAAM,CAAC;YACN,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YAC3B,OAAO,MAAM,CAAC,MAAM,CAAE,KAAgB,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CACjE,KAAK,CAAC,GAAG;gBACP,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,aAAa,CAAC,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC;gBACtD,CAAC,CAAG,KAAgB,CAAC,OAAO,CAAC,QAAQ,CAAyB;qBACzD,QAAQ,CAChB,CAAC;QACJ,CAAC;IACH,CAAC;SAAM,IAAI,KAAK,CAAC,KAAK,KAAK,gBAAgB,EAAE,CAAC;QAC5C,OAAO,IAAI,CAAC;IACd,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC"}
|
@@ -1,9 +1,13 @@
|
|
1
|
-
|
1
|
+
var _a;
|
2
|
+
import { CoMap, 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,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");
|
@@ -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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,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"}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
import { CoValueBase, } from "../internal.js";
|
2
|
+
/**
|
3
|
+
* SchemaUnion allows you to create union types of CoValues that can be discriminated at runtime.
|
4
|
+
*
|
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.
|
8
|
+
*
|
9
|
+
* ```ts
|
10
|
+
* import { SchemaUnion, CoMap } from "jazz-tools";
|
11
|
+
*
|
12
|
+
* class BaseWidget extends CoMap {
|
13
|
+
* type = co.string;
|
14
|
+
* }
|
15
|
+
*
|
16
|
+
* class ButtonWidget extends BaseWidget {
|
17
|
+
* type = co.literal("button");
|
18
|
+
* label = co.string;
|
19
|
+
* }
|
20
|
+
*
|
21
|
+
* class SliderWidget extends BaseWidget {
|
22
|
+
* type = co.literal("slider");
|
23
|
+
* min = co.number;
|
24
|
+
* max = co.number;
|
25
|
+
* }
|
26
|
+
*
|
27
|
+
* const WidgetUnion = SchemaUnion.Of<BaseWidget>((raw) => {
|
28
|
+
* switch (raw.get("type")) {
|
29
|
+
* case "button": return ButtonWidget;
|
30
|
+
* case "slider": return SliderWidget;
|
31
|
+
* default: throw new Error("Unknown widget type");
|
32
|
+
* }
|
33
|
+
* });
|
34
|
+
* ```
|
35
|
+
*
|
36
|
+
* @categoryDescription Loading
|
37
|
+
* When loading a SchemaUnion, the correct subclass will be instantiated based on the discriminator.
|
38
|
+
* You can narrow the returned instance to a subclass by using `instanceof` like so:
|
39
|
+
*
|
40
|
+
* ```ts
|
41
|
+
* const widget = await WidgetUnion.load(id, me, {});
|
42
|
+
* if (widget instanceof ButtonWidget) {
|
43
|
+
* console.log(widget.label);
|
44
|
+
* } else if (widget instanceof SliderWidget) {
|
45
|
+
* console.log(widget.min, widget.max);
|
46
|
+
* }
|
47
|
+
* ```
|
48
|
+
*
|
49
|
+
* @category CoValues
|
50
|
+
*/
|
51
|
+
export class SchemaUnion extends CoValueBase {
|
52
|
+
/**
|
53
|
+
* Create a new union type from a discriminator function.
|
54
|
+
*
|
55
|
+
* The discriminator function receives the raw data and should return the appropriate
|
56
|
+
* concrete class to use for that data.
|
57
|
+
*
|
58
|
+
* @param discriminator - Function that determines which concrete type to use
|
59
|
+
* @returns A new class that can create/load instances of the union type
|
60
|
+
*
|
61
|
+
* @example
|
62
|
+
* ```ts
|
63
|
+
* const WidgetUnion = SchemaUnion.Of<BaseWidget>((raw) => {
|
64
|
+
* switch (raw.get("type")) {
|
65
|
+
* case "button": return ButtonWidget;
|
66
|
+
* case "slider": return SliderWidget;
|
67
|
+
* default: throw new Error("Unknown widget type");
|
68
|
+
* }
|
69
|
+
* });
|
70
|
+
* ```
|
71
|
+
*
|
72
|
+
* @category Creation
|
73
|
+
*/
|
74
|
+
static Of(discriminator) {
|
75
|
+
return class SchemaUnionClass extends SchemaUnion {
|
76
|
+
static fromRaw(raw) {
|
77
|
+
const ResolvedClass = discriminator(raw);
|
78
|
+
return ResolvedClass.fromRaw(raw);
|
79
|
+
}
|
80
|
+
};
|
81
|
+
}
|
82
|
+
/**
|
83
|
+
* Create an instance from raw data. This is called internally and should not be used directly.
|
84
|
+
* Use {@link SchemaUnion.Of} to create a union type instead.
|
85
|
+
*
|
86
|
+
* @internal
|
87
|
+
*/
|
88
|
+
// @ts-ignore
|
89
|
+
static fromRaw(raw) {
|
90
|
+
throw new Error("Not implemented");
|
91
|
+
}
|
92
|
+
}
|
93
|
+
//# sourceMappingURL=schemaUnion.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schemaUnion.js","sourceRoot":"","sources":["../../../src/coValues/schemaUnion.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,GAGZ,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,OAAgB,WAAY,SAAQ,WAAW;IACnD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,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"}
|
package/dist/web/exports.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { Encoders, co } from "./internal.js";
|
2
|
-
export { Account, BinaryCoStream, CoList, CoMap, CoStream, CoValueBase, Group, ImageDefinition, Profile, isControlledAccount, } from "./internal.js";
|
2
|
+
export { Account, FileStream, BinaryCoStream, CoList, CoMap, CoFeed, CoStream, CoValueBase, Group, ImageDefinition, Profile, isControlledAccount, SchemaUnion, } from "./internal.js";
|
3
3
|
export { createCoValueObservable, loadCoValue, subscribeToCoValue, } from "./internal.js";
|
4
4
|
export { AnonymousJazzAgent, createAnonymousJazzContext, createJazzContext, ephemeralCredentialsAuth, fixedCredentialsAuth, randomSessionProvider, } from "./internal.js";
|
5
5
|
//# sourceMappingURL=exports.js.map
|
package/dist/web/exports.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EACL,OAAO,EACP,cAAc,EACd,MAAM,EACN,KAAK,EACL,QAAQ,EACR,WAAW,EACX,KAAK,EACL,eAAe,EACf,OAAO,EACP,mBAAmB,
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EACL,OAAO,EACP,UAAU,EACV,cAAc,EACd,MAAM,EACN,KAAK,EACL,MAAM,EACN,QAAQ,EACR,WAAW,EACX,KAAK,EACL,eAAe,EACf,OAAO,EACP,mBAAmB,EACnB,WAAW,GAIZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,uBAAuB,EACvB,WAAW,EACX,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,GAItB,MAAM,eAAe,CAAC"}
|
@@ -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":["../../../src/implementation/createContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAEf,SAAS,GAKV,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,EAAoB,MAAM,gBAAgB,CAAC;AA8B3D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,WAGpC,EAAc,EAAE;IACf,OAAO;QACL,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YAClB,IAAI,EAAE,UAAU;YAChB,WAAW;YACX,eAAe,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;YAC/B,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;YACnB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;YACjB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;SACjB,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAe,EAAE;IACvD,OAAO;QACL,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YAClB,IAAI,EAAE,KAAK;YACX,aAAa,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;YACpC,eAAe,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;YAC/B,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;YACnB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;YACjB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;SACjB,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,SAAsB,EACtB,MAAsB;IAEtB,OAAO;QACL,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,SAAoC,CAAC;QAC1E,WAAW,EAAE,GAAG,EA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,GAIP;IACC,MAAM,WAAW,GAAG,MAAM,CAAC,oBAAoB,EAAE,CAAC;IAClD,MAAM,QAAQ,GAAG,IAAI,eAAe,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAE1D,MAAM,IAAI,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;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"refs.js","sourceRoot":"","sources":["../../../src/implementation/refs.ts"],"names":[],"mappings":"AASA,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,cAAc,GAAG,KAAK,CAAC;AAE7B,MAAM,OAAO,GAAG;
|
1
|
+
{"version":3,"file":"refs.js","sourceRoot":"","sources":["../../../src/implementation/refs.ts"],"names":[],"mappings":"AASA,OAAO,EACL,qBAAqB,EACrB,YAAY,E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EAAE;gBAAE,OAAO,SAAS,CAAC;YAC1B,OAAO,IAAI,GAAG,CACZ,EAAiB,EACjB,iBAAiB,EACjB,eAAe,CAAC,GAAW,CAAC,CAC7B,CAAC;QACJ,CAAC;QACD,OAAO;YACL,OAAO,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,wBAAwB,CAAC,MAAM,EAAE,GAAG;YAClC,MAAM,EAAE,GAAG,WAAW,CAAC,GAAW,CAAC,CAAC;YACpC,IAAI,EAAE,EAAE,CAAC;gBACP,OAAO;oBACL,UAAU,EAAE,IAAI;oBAChB,YAAY,EAAE,IAAI;oBAClB,QAAQ,EAAE,IAAI;iBACf,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,OAAO,OAAO,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YACvD,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
@@ -1,15 +1,12 @@
|
|
1
1
|
export const subscriptionsScopes = new WeakMap();
|
2
2
|
const TRACE_INVALIDATIONS = false;
|
3
3
|
export class SubscriptionScope {
|
4
|
-
scopeID = `scope-${Math.random().toString(36).slice(2)}`;
|
5
|
-
subscriber;
|
6
|
-
entries = new Map();
|
7
|
-
rootEntry;
|
8
|
-
scheduleUpdate;
|
9
|
-
scheduledUpdate = false;
|
10
|
-
cachedValues = {};
|
11
|
-
parents = {};
|
12
4
|
constructor(root, rootSchema, onUpdate) {
|
5
|
+
this.scopeID = `scope-${Math.random().toString(36).slice(2)}`;
|
6
|
+
this.entries = new Map();
|
7
|
+
this.scheduledUpdate = false;
|
8
|
+
this.cachedValues = {};
|
9
|
+
this.parents = {};
|
13
10
|
this.rootEntry = {
|
14
11
|
state: "loaded",
|
15
12
|
value: root._raw,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"subscriptionScope.js","sourceRoot":"","sources":["../../../src/implementation/subscriptionScope.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAI3C,CAAC;AAEJ,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAElC,MAAM,OAAO,iBAAiB;
|
1
|
+
{"version":3,"file":"subscriptionScope.js","sourceRoot":"","sources":["../../../src/implementation/subscriptionScope.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAI3C,CAAC;AAEJ,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAElC,MAAM,OAAO,iBAAiB;IAkB5B,YACE,IAAU,EACV,UAAqD,EACrD,QAAiC;QApBnC,YAAO,GAAW,SAAS,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAEjE,YAAO,GAAG,IAAI,GAAG,EAId,CAAC;QAOJ,oBAAe,GAAY,KAAK,CAAC;QACjC,iBAAY,GAAmC,EAAE,CAAC;QAClD,YAAO,GAA4C,EAAE,CAAC;QAOpD,IAAI,CAAC,SAAS,GAAG;YACf,KAAK,EAAE,QAAiB;YACxB,KAAK,EAAE,IAAI,CAAC,IAAI;YAChB,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,cAAc;SACnC,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QAE1C,mBAAmB,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAEpC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC;QACjC,IAAI,CAAC,cAAc,GAAG,GAAG,EAAE;YACzB,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAS,CAAC;YAC/D,mBAAmB,CAAC,GAAG,CAA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K,MAAM,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;YAC1C,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC7B,KAAK,CAAC,QAAQ,EAAE,CAAC;YACnB,CAAC;iBAAM,CAAC;gBACN,KAAK,CAAC,gBAAgB,GAAG,IAAI,CAAC;YAChC,CAAC;QACH,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;CACF"}
|
package/dist/web/internal.js
CHANGED
@@ -4,7 +4,8 @@ export * from "./coValues/interfaces.js";
|
|
4
4
|
export * from "./coValues/coMap.js";
|
5
5
|
export * from "./coValues/account.js";
|
6
6
|
export * from "./coValues/coList.js";
|
7
|
-
export * from "./coValues/
|
7
|
+
export * from "./coValues/coFeed.js";
|
8
|
+
export * from "./coValues/schemaUnion.js";
|
8
9
|
export * from "./coValues/group.js";
|
9
10
|
export * from "./implementation/errors.js";
|
10
11
|
export * from "./implementation/refs.js";
|
package/dist/web/internal.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/internal.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/internal.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AAEpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,2BAA2B,CAAC;AAE1C,cAAc,mCAAmC,CAAC;AAElD,cAAc,mCAAmC,CAAC;AAElD,OAAO,wCAAwC,CAAC"}
|
package/package.json
CHANGED