jazz-tools 0.8.21 → 0.8.23
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +11 -0
- package/dist/native/coValues/{coStream.js → coFeed.js} +9 -5
- package/dist/native/coValues/coFeed.js.map +1 -0
- package/dist/native/coValues/coList.js +2 -2
- package/dist/native/coValues/coMap.js +2 -2
- package/dist/native/coValues/deepLoading.js.map +1 -1
- package/dist/native/coValues/extensions/imageDef.js +2 -2
- package/dist/native/coValues/extensions/imageDef.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/internal.js +2 -1
- package/dist/native/internal.js.map +1 -1
- package/dist/web/coValues/{coStream.js → coFeed.js} +9 -5
- package/dist/web/coValues/coFeed.js.map +1 -0
- package/dist/web/coValues/coList.js +2 -2
- package/dist/web/coValues/coMap.js +2 -2
- package/dist/web/coValues/deepLoading.js.map +1 -1
- package/dist/web/coValues/extensions/imageDef.js +2 -2
- package/dist/web/coValues/extensions/imageDef.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/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/dist/native/coValues/coStream.js.map +0 -1
- package/dist/web/coValues/coStream.js.map +0 -1
@@ -3,9 +3,9 @@ import { connectedPeers } from "cojson/src/streamUtils.ts";
|
|
3
3
|
import { describe, expect, expectTypeOf, test } from "vitest";
|
4
4
|
import {
|
5
5
|
Account,
|
6
|
+
CoFeed,
|
6
7
|
CoList,
|
7
8
|
CoMap,
|
8
|
-
CoStream,
|
9
9
|
ID,
|
10
10
|
Profile,
|
11
11
|
SessionID,
|
@@ -28,7 +28,7 @@ class InnerMap extends CoMap {
|
|
28
28
|
stream = co.ref(TestStream);
|
29
29
|
}
|
30
30
|
|
31
|
-
class TestStream extends
|
31
|
+
class TestStream extends CoFeed.Of(co.ref(() => InnermostMap)) {}
|
32
32
|
|
33
33
|
class InnermostMap extends CoMap {
|
34
34
|
value = co.string;
|
@@ -0,0 +1,118 @@
|
|
1
|
+
import { WasmCrypto } from "cojson";
|
2
|
+
import { beforeAll, describe, expect, expectTypeOf, it } from "vitest";
|
3
|
+
import { SchemaUnion } from "../coValues/schemaUnion.js";
|
4
|
+
import {
|
5
|
+
Account,
|
6
|
+
CoMap,
|
7
|
+
co,
|
8
|
+
loadCoValue,
|
9
|
+
subscribeToCoValue,
|
10
|
+
} from "../internal.js";
|
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
|
+
class CheckboxWidget extends BaseWidget {
|
28
|
+
type = co.literal("checkbox");
|
29
|
+
checked = co.boolean;
|
30
|
+
}
|
31
|
+
|
32
|
+
const getWidgetSchemaFromRaw = (raw: BaseWidget["_raw"]) => {
|
33
|
+
switch (raw.get("type")) {
|
34
|
+
case "button":
|
35
|
+
return ButtonWidget;
|
36
|
+
case "slider":
|
37
|
+
return SliderWidget;
|
38
|
+
case "checkbox":
|
39
|
+
return CheckboxWidget;
|
40
|
+
default:
|
41
|
+
throw new Error(`Unknown widget type: ${raw.get("type")}`);
|
42
|
+
}
|
43
|
+
};
|
44
|
+
|
45
|
+
class WidgetUnion extends SchemaUnion.Of<BaseWidget>(getWidgetSchemaFromRaw) {}
|
46
|
+
|
47
|
+
describe("SchemaUnion", () => {
|
48
|
+
let Crypto: WasmCrypto;
|
49
|
+
let me: Account;
|
50
|
+
|
51
|
+
beforeAll(async () => {
|
52
|
+
Crypto = await WasmCrypto.create();
|
53
|
+
me = await Account.create({
|
54
|
+
creationProps: { name: "Hermes Puggington" },
|
55
|
+
crypto: Crypto,
|
56
|
+
});
|
57
|
+
});
|
58
|
+
|
59
|
+
it("should instantiate the correct subclass based on schema and provided data", async () => {
|
60
|
+
const buttonWidget = ButtonWidget.create(
|
61
|
+
{ type: "button", label: "Submit" },
|
62
|
+
{ owner: me },
|
63
|
+
);
|
64
|
+
const sliderWidget = SliderWidget.create(
|
65
|
+
{ type: "slider", min: 0, max: 100 },
|
66
|
+
{ owner: me },
|
67
|
+
);
|
68
|
+
const checkboxWidget = CheckboxWidget.create(
|
69
|
+
{ type: "checkbox", checked: true },
|
70
|
+
{ owner: me },
|
71
|
+
);
|
72
|
+
|
73
|
+
const loadedButtonWidget = await loadCoValue(
|
74
|
+
WidgetUnion,
|
75
|
+
buttonWidget.id,
|
76
|
+
me,
|
77
|
+
{},
|
78
|
+
);
|
79
|
+
const loadedSliderWidget = await loadCoValue(
|
80
|
+
WidgetUnion,
|
81
|
+
sliderWidget.id,
|
82
|
+
me,
|
83
|
+
{},
|
84
|
+
);
|
85
|
+
const loadedCheckboxWidget = await loadCoValue(
|
86
|
+
WidgetUnion,
|
87
|
+
checkboxWidget.id,
|
88
|
+
me,
|
89
|
+
{},
|
90
|
+
);
|
91
|
+
|
92
|
+
expect(loadedButtonWidget).toBeInstanceOf(ButtonWidget);
|
93
|
+
expect(loadedSliderWidget).toBeInstanceOf(SliderWidget);
|
94
|
+
expect(loadedCheckboxWidget).toBeInstanceOf(CheckboxWidget);
|
95
|
+
});
|
96
|
+
|
97
|
+
it("should integrate with subscribeToCoValue correctly", async () => {
|
98
|
+
const buttonWidget = ButtonWidget.create(
|
99
|
+
{ type: "button", label: "Submit" },
|
100
|
+
{ owner: me },
|
101
|
+
);
|
102
|
+
const unsubscribe = subscribeToCoValue(
|
103
|
+
WidgetUnion,
|
104
|
+
buttonWidget.id,
|
105
|
+
me,
|
106
|
+
{},
|
107
|
+
(value: BaseWidget) => {
|
108
|
+
if (value instanceof ButtonWidget) {
|
109
|
+
expect(value.label).toBe("Changed");
|
110
|
+
unsubscribe();
|
111
|
+
} else {
|
112
|
+
throw new Error("Unexpected widget type");
|
113
|
+
}
|
114
|
+
},
|
115
|
+
);
|
116
|
+
buttonWidget.label = "Changed";
|
117
|
+
});
|
118
|
+
});
|
@@ -3,9 +3,9 @@ import { connectedPeers } from "cojson/src/streamUtils.js";
|
|
3
3
|
import { describe, expect, it, onTestFinished, vi } from "vitest";
|
4
4
|
import {
|
5
5
|
Account,
|
6
|
+
CoFeed,
|
6
7
|
CoList,
|
7
8
|
CoMap,
|
8
|
-
CoStream,
|
9
9
|
WasmCrypto,
|
10
10
|
co,
|
11
11
|
createJazzContext,
|
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
isControlledAccount,
|
14
14
|
} from "../index.web.js";
|
15
15
|
import {
|
16
|
-
|
16
|
+
FileStream,
|
17
17
|
Group,
|
18
18
|
randomSessionProvider,
|
19
19
|
subscribeToCoValue,
|
@@ -27,11 +27,11 @@ class ChatRoom extends CoMap {
|
|
27
27
|
class Message extends CoMap {
|
28
28
|
text = co.string;
|
29
29
|
reactions = co.ref(ReactionsStream);
|
30
|
-
attachment = co.optional.ref(
|
30
|
+
attachment = co.optional.ref(FileStream);
|
31
31
|
}
|
32
32
|
|
33
33
|
class MessagesList extends CoList.Of(co.ref(Message)) {}
|
34
|
-
class ReactionsStream extends
|
34
|
+
class ReactionsStream extends CoFeed.Of(co.string) {}
|
35
35
|
|
36
36
|
async function setupAccount() {
|
37
37
|
const me = await Account.create({
|
@@ -1 +0,0 @@
|
|
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,YAAO,MAAM,UAAW,SAAQ,EAAc;gBAAvC;;oBACL,QAAU,GAAG,IAAI,CAAC;gBACpB,CAAC;aAAA;iBADE,EAAE,CAAC,KAAK;eACT;IACJ,CAAC;IAaD,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,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QACjC,CAAC;aAAM,CAAC;YACN,OAAO,SAAS,CAAC;QACnB,CAAC;IACH,CAAC;IAID,IAAI,gBAAgB;QAClB,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YACvC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,SAAU,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACN,OAAO,SAAS,CAAC;QACnB,CA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