jazz-tools 0.7.0-alpha.4 → 0.7.0-alpha.41
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc.cjs +3 -10
- package/.prettierrc.js +9 -0
- package/.turbo/turbo-build.log +3 -19
- package/.turbo/turbo-lint.log +4 -0
- package/.turbo/turbo-test.log +140 -0
- package/CHANGELOG.md +243 -0
- package/README.md +10 -2
- package/dist/coValues/account.js +104 -50
- package/dist/coValues/account.js.map +1 -1
- package/dist/coValues/coList.js +165 -112
- package/dist/coValues/coList.js.map +1 -1
- package/dist/coValues/coMap.js +243 -163
- package/dist/coValues/coMap.js.map +1 -1
- package/dist/coValues/coStream.js +256 -73
- package/dist/coValues/coStream.js.map +1 -1
- package/dist/coValues/deepLoading.js +57 -0
- package/dist/coValues/deepLoading.js.map +1 -0
- package/dist/coValues/extensions/imageDef.js +14 -8
- package/dist/coValues/extensions/imageDef.js.map +1 -1
- package/dist/coValues/group.js +49 -38
- package/dist/coValues/group.js.map +1 -1
- package/dist/coValues/interfaces.js +66 -26
- package/dist/coValues/interfaces.js.map +1 -1
- package/dist/implementation/devtoolsFormatters.js +114 -0
- package/dist/implementation/devtoolsFormatters.js.map +1 -0
- package/dist/implementation/refs.js +60 -19
- package/dist/implementation/refs.js.map +1 -1
- package/dist/implementation/schema.js +44 -1
- package/dist/implementation/schema.js.map +1 -1
- package/dist/implementation/subscriptionScope.js +19 -1
- package/dist/implementation/subscriptionScope.js.map +1 -1
- package/dist/implementation/symbols.js +5 -0
- package/dist/implementation/symbols.js.map +1 -0
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/internal.js +4 -1
- package/dist/internal.js.map +1 -1
- package/dist/tests/coList.test.js +51 -52
- package/dist/tests/coList.test.js.map +1 -1
- package/dist/tests/coMap.test.js +196 -75
- package/dist/tests/coMap.test.js.map +1 -1
- package/dist/tests/coStream.test.js +95 -85
- package/dist/tests/coStream.test.js.map +1 -1
- package/dist/tests/deepLoading.test.js +188 -0
- package/dist/tests/deepLoading.test.js.map +1 -0
- package/dist/tests/groupsAndAccounts.test.js +83 -0
- package/dist/tests/groupsAndAccounts.test.js.map +1 -0
- package/package.json +17 -9
- package/src/coValues/account.ts +183 -152
- package/src/coValues/coList.ts +220 -173
- package/src/coValues/coMap.ts +322 -312
- package/src/coValues/coStream.ts +397 -135
- package/src/coValues/deepLoading.ts +215 -0
- package/src/coValues/extensions/imageDef.ts +16 -17
- package/src/coValues/group.ts +95 -111
- package/src/coValues/interfaces.ts +217 -115
- package/src/implementation/devtoolsFormatters.ts +110 -0
- package/src/implementation/inspect.ts +1 -1
- package/src/implementation/refs.ts +91 -38
- package/src/implementation/schema.ts +87 -46
- package/src/implementation/subscriptionScope.ts +44 -12
- package/src/implementation/symbols.ts +11 -0
- package/src/index.ts +13 -9
- package/src/internal.ts +6 -2
- package/src/tests/coList.test.ts +67 -66
- package/src/tests/coMap.test.ts +226 -123
- package/src/tests/coStream.test.ts +141 -131
- package/src/tests/deepLoading.test.ts +301 -0
- package/src/tests/groupsAndAccounts.test.ts +91 -0
@@ -1,105 +1,84 @@
|
|
1
1
|
var _a;
|
2
|
-
import { cojsonInternals } from "cojson";
|
3
|
-
import { Account, CoValueBase,
|
4
|
-
import {
|
2
|
+
import { MAX_RECOMMENDED_TX_SIZE, cojsonInternals } from "cojson";
|
3
|
+
import { ItemsSym, Account, CoValueBase, Ref, inspect, co, InitValues, SchemaInit, isRefEncoded, } from "../internal.js";
|
4
|
+
import { encodeSync, decodeSync } from "@effect/schema/Schema";
|
5
|
+
/** @category CoValues */
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5
7
|
export class CoStream extends CoValueBase {
|
6
|
-
|
7
|
-
|
8
|
+
static Of(item) {
|
9
|
+
var _b, _c;
|
10
|
+
return _c = class CoStreamOf extends _a {
|
11
|
+
constructor() {
|
12
|
+
super(...arguments);
|
13
|
+
this[_b] = item;
|
14
|
+
}
|
15
|
+
},
|
16
|
+
_b = co.items,
|
17
|
+
_c;
|
18
|
+
}
|
19
|
+
get _schema() {
|
20
|
+
return this.constructor._schema;
|
8
21
|
}
|
9
22
|
get byMe() {
|
10
|
-
return this
|
23
|
+
return this[this._loadedAs.id];
|
11
24
|
}
|
12
25
|
get inCurrentSession() {
|
13
|
-
return this.
|
26
|
+
return this.perSession[this._loadedAs.sessionID];
|
14
27
|
}
|
15
|
-
constructor(
|
28
|
+
constructor(options) {
|
16
29
|
super();
|
17
|
-
this.by = {};
|
18
|
-
this.in = {};
|
19
|
-
let raw;
|
20
30
|
if ("fromRaw" in options) {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
raw = rawOwner.createStream();
|
26
|
-
}
|
27
|
-
Object.defineProperties(this, {
|
28
|
-
id: {
|
29
|
-
value: raw.id,
|
30
|
-
enumerable: false,
|
31
|
-
},
|
32
|
-
_raw: { value: raw, enumerable: false },
|
33
|
-
});
|
34
|
-
if (init !== undefined) {
|
35
|
-
for (const item of init) {
|
36
|
-
this.pushItem(item);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
this.updateEntries();
|
40
|
-
}
|
41
|
-
updateEntries() {
|
42
|
-
for (const accountID of this._raw.accounts()) {
|
43
|
-
Object.defineProperty(this.by, accountID, {
|
44
|
-
get: () => {
|
45
|
-
const rawEntry = this._raw.lastItemBy(accountID);
|
46
|
-
if (!rawEntry)
|
47
|
-
return;
|
48
|
-
return entryFromRawEntry(this, rawEntry, this._loadedAs, accountID, this._encoding._item);
|
31
|
+
Object.defineProperties(this, {
|
32
|
+
id: {
|
33
|
+
value: options.fromRaw.id,
|
34
|
+
enumerable: false,
|
49
35
|
},
|
50
|
-
|
51
|
-
enumerable: true,
|
36
|
+
_raw: { value: options.fromRaw, enumerable: false },
|
52
37
|
});
|
53
38
|
}
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
return;
|
60
|
-
const by = cojsonInternals.accountOrAgentIDfromSessionID(sessionID);
|
61
|
-
return entryFromRawEntry(this, rawEntry, this._loadedAs, cojsonInternals.isAccountID(by)
|
62
|
-
? by
|
63
|
-
: undefined, this._encoding._item);
|
64
|
-
},
|
65
|
-
configurable: true,
|
66
|
-
enumerable: true,
|
67
|
-
});
|
39
|
+
else {
|
40
|
+
this[InitValues] = {
|
41
|
+
init: options.init,
|
42
|
+
owner: options.owner,
|
43
|
+
};
|
68
44
|
}
|
45
|
+
return new Proxy(this, CoStreamProxyHandler);
|
46
|
+
}
|
47
|
+
static create(init, options) {
|
48
|
+
return new this({ init, owner: options.owner });
|
69
49
|
}
|
70
50
|
push(...items) {
|
71
51
|
for (const item of items) {
|
72
52
|
this.pushItem(item);
|
73
53
|
}
|
74
|
-
this.updateEntries();
|
75
54
|
}
|
76
55
|
pushItem(item) {
|
77
|
-
const itemDescriptor = this.
|
56
|
+
const itemDescriptor = this._schema[ItemsSym];
|
78
57
|
if (itemDescriptor === "json") {
|
79
58
|
this._raw.push(item);
|
80
59
|
}
|
81
60
|
else if ("encoded" in itemDescriptor) {
|
82
|
-
this._raw.push(
|
61
|
+
this._raw.push(encodeSync(itemDescriptor.encoded)(item));
|
83
62
|
}
|
84
|
-
else if (
|
63
|
+
else if (isRefEncoded(itemDescriptor)) {
|
85
64
|
this._raw.push(item.id);
|
86
65
|
}
|
87
66
|
}
|
88
67
|
toJSON() {
|
89
|
-
const itemDescriptor = this.
|
68
|
+
const itemDescriptor = this._schema[ItemsSym];
|
90
69
|
const mapper = itemDescriptor === "json"
|
91
70
|
? (v) => v
|
92
71
|
: "encoded" in itemDescriptor
|
93
|
-
?
|
72
|
+
? encodeSync(itemDescriptor.encoded)
|
94
73
|
: (v) => v && v.id;
|
95
74
|
return {
|
96
75
|
id: this.id,
|
97
76
|
_type: this._type,
|
98
|
-
|
77
|
+
...Object.fromEntries(Object.entries(this).map(([account, entry]) => [
|
99
78
|
account,
|
100
79
|
mapper(entry.value),
|
101
80
|
])),
|
102
|
-
in: Object.fromEntries(Object.entries(this.
|
81
|
+
in: Object.fromEntries(Object.entries(this.perSession).map(([session, entry]) => [
|
103
82
|
session,
|
104
83
|
mapper(entry.value),
|
105
84
|
])),
|
@@ -108,9 +87,9 @@ export class CoStream extends CoValueBase {
|
|
108
87
|
[inspect]() {
|
109
88
|
return this.toJSON();
|
110
89
|
}
|
111
|
-
static
|
112
|
-
this.
|
113
|
-
Object.assign(this.
|
90
|
+
static schema(def) {
|
91
|
+
this._schema || (this._schema = {});
|
92
|
+
Object.assign(this._schema, def);
|
114
93
|
}
|
115
94
|
}
|
116
95
|
_a = CoStream;
|
@@ -124,28 +103,188 @@ function entryFromRawEntry(accessFrom, rawEntry, loadedAs, accountID, itemField)
|
|
124
103
|
return rawEntry.value;
|
125
104
|
}
|
126
105
|
else if ("encoded" in itemField) {
|
127
|
-
return
|
106
|
+
return decodeSync(itemField.encoded)(rawEntry.value);
|
128
107
|
}
|
129
|
-
else if (
|
130
|
-
return this.ref?.accessFrom(accessFrom
|
108
|
+
else if (isRefEncoded(itemField)) {
|
109
|
+
return this.ref?.accessFrom(accessFrom, rawEntry.by +
|
110
|
+
rawEntry.tx.sessionID +
|
111
|
+
rawEntry.tx.txIndex +
|
112
|
+
".value");
|
113
|
+
}
|
114
|
+
else {
|
115
|
+
throw new Error("Invalid item field schema");
|
131
116
|
}
|
132
117
|
},
|
133
118
|
get ref() {
|
134
|
-
if (itemField !== "json" &&
|
119
|
+
if (itemField !== "json" && isRefEncoded(itemField)) {
|
135
120
|
const rawId = rawEntry.value;
|
136
|
-
return new
|
121
|
+
return new Ref(rawId, loadedAs, itemField);
|
122
|
+
}
|
123
|
+
else {
|
124
|
+
return undefined;
|
137
125
|
}
|
138
126
|
},
|
139
127
|
get by() {
|
140
128
|
return (accountID &&
|
141
|
-
new
|
129
|
+
new Ref(accountID, loadedAs, Account)?.accessFrom(accessFrom, rawEntry.by +
|
130
|
+
rawEntry.tx.sessionID +
|
131
|
+
rawEntry.tx.txIndex +
|
132
|
+
".by"));
|
142
133
|
},
|
143
134
|
madeAt: rawEntry.at,
|
144
135
|
tx: rawEntry.tx,
|
145
136
|
};
|
146
137
|
}
|
138
|
+
function init(stream) {
|
139
|
+
const init = stream[InitValues];
|
140
|
+
if (!init)
|
141
|
+
return;
|
142
|
+
const raw = init.owner._raw.createStream();
|
143
|
+
Object.defineProperties(stream, {
|
144
|
+
id: {
|
145
|
+
value: raw.id,
|
146
|
+
enumerable: false,
|
147
|
+
},
|
148
|
+
_raw: { value: raw, enumerable: false },
|
149
|
+
});
|
150
|
+
if (init.init) {
|
151
|
+
stream.push(...init.init);
|
152
|
+
}
|
153
|
+
delete stream[InitValues];
|
154
|
+
}
|
155
|
+
export const CoStreamProxyHandler = {
|
156
|
+
get(target, key, receiver) {
|
157
|
+
if (typeof key === "string" && key.startsWith("co_")) {
|
158
|
+
const rawEntry = target._raw.lastItemBy(key);
|
159
|
+
if (!rawEntry)
|
160
|
+
return;
|
161
|
+
const entry = entryFromRawEntry(receiver, rawEntry, target._loadedAs, key, target._schema[ItemsSym]);
|
162
|
+
Object.defineProperty(entry, "all", {
|
163
|
+
get: () => {
|
164
|
+
const allRawEntries = target._raw.itemsBy(key);
|
165
|
+
return (function* () {
|
166
|
+
while (true) {
|
167
|
+
const rawEntry = allRawEntries.next();
|
168
|
+
if (rawEntry.done)
|
169
|
+
return;
|
170
|
+
yield entryFromRawEntry(receiver, rawEntry.value, target._loadedAs, key, target._schema[ItemsSym]);
|
171
|
+
}
|
172
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
173
|
+
})();
|
174
|
+
},
|
175
|
+
});
|
176
|
+
return entry;
|
177
|
+
}
|
178
|
+
else if (key === "perSession") {
|
179
|
+
return new Proxy({}, CoStreamPerSessionProxyHandler(target, receiver));
|
180
|
+
}
|
181
|
+
else {
|
182
|
+
return Reflect.get(target, key, receiver);
|
183
|
+
}
|
184
|
+
},
|
185
|
+
set(target, key, value, receiver) {
|
186
|
+
var _b;
|
187
|
+
if (key === ItemsSym &&
|
188
|
+
typeof value === "object" &&
|
189
|
+
SchemaInit in value) {
|
190
|
+
(_b = target.constructor)._schema || (_b._schema = {});
|
191
|
+
target.constructor._schema[ItemsSym] =
|
192
|
+
value[SchemaInit];
|
193
|
+
init(target);
|
194
|
+
return true;
|
195
|
+
}
|
196
|
+
else {
|
197
|
+
return Reflect.set(target, key, value, receiver);
|
198
|
+
}
|
199
|
+
},
|
200
|
+
defineProperty(target, key, descriptor) {
|
201
|
+
var _b;
|
202
|
+
if (descriptor.value &&
|
203
|
+
key === ItemsSym &&
|
204
|
+
typeof descriptor.value === "object" &&
|
205
|
+
SchemaInit in descriptor.value) {
|
206
|
+
(_b = target.constructor)._schema || (_b._schema = {});
|
207
|
+
target.constructor._schema[ItemsSym] =
|
208
|
+
descriptor.value[SchemaInit];
|
209
|
+
init(target);
|
210
|
+
return true;
|
211
|
+
}
|
212
|
+
else {
|
213
|
+
return Reflect.defineProperty(target, key, descriptor);
|
214
|
+
}
|
215
|
+
},
|
216
|
+
ownKeys(target) {
|
217
|
+
const keys = Reflect.ownKeys(target);
|
218
|
+
for (const accountID of target._raw.accounts()) {
|
219
|
+
keys.push(accountID);
|
220
|
+
}
|
221
|
+
return keys;
|
222
|
+
},
|
223
|
+
getOwnPropertyDescriptor(target, key) {
|
224
|
+
if (typeof key === "string" && key.startsWith("co_")) {
|
225
|
+
return {
|
226
|
+
configurable: true,
|
227
|
+
enumerable: true,
|
228
|
+
writable: false,
|
229
|
+
};
|
230
|
+
}
|
231
|
+
else {
|
232
|
+
return Reflect.getOwnPropertyDescriptor(target, key);
|
233
|
+
}
|
234
|
+
},
|
235
|
+
};
|
236
|
+
const CoStreamPerSessionProxyHandler = (innerTarget, accessFrom) => ({
|
237
|
+
get(_target, key, receiver) {
|
238
|
+
if (typeof key === "string" && key.includes("session")) {
|
239
|
+
const sessionID = key;
|
240
|
+
const rawEntry = innerTarget._raw.lastItemIn(sessionID);
|
241
|
+
if (!rawEntry)
|
242
|
+
return;
|
243
|
+
const by = cojsonInternals.accountOrAgentIDfromSessionID(sessionID);
|
244
|
+
const entry = entryFromRawEntry(accessFrom, rawEntry, innerTarget._loadedAs, cojsonInternals.isAccountID(by)
|
245
|
+
? by
|
246
|
+
: undefined, innerTarget._schema[ItemsSym]);
|
247
|
+
Object.defineProperty(entry, "all", {
|
248
|
+
get: () => {
|
249
|
+
const allRawEntries = innerTarget._raw.itemsIn(sessionID);
|
250
|
+
return (function* () {
|
251
|
+
while (true) {
|
252
|
+
const rawEntry = allRawEntries.next();
|
253
|
+
if (rawEntry.done)
|
254
|
+
return;
|
255
|
+
yield entryFromRawEntry(accessFrom, rawEntry.value, innerTarget._loadedAs, cojsonInternals.isAccountID(by)
|
256
|
+
? by
|
257
|
+
: undefined, innerTarget._schema[ItemsSym]);
|
258
|
+
}
|
259
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
260
|
+
})();
|
261
|
+
},
|
262
|
+
});
|
263
|
+
return entry;
|
264
|
+
}
|
265
|
+
else {
|
266
|
+
return Reflect.get(innerTarget, key, receiver);
|
267
|
+
}
|
268
|
+
},
|
269
|
+
ownKeys() {
|
270
|
+
return innerTarget._raw.sessions();
|
271
|
+
},
|
272
|
+
getOwnPropertyDescriptor(target, key) {
|
273
|
+
if (typeof key === "string" && key.startsWith("co_")) {
|
274
|
+
return {
|
275
|
+
configurable: true,
|
276
|
+
enumerable: true,
|
277
|
+
writable: false,
|
278
|
+
};
|
279
|
+
}
|
280
|
+
else {
|
281
|
+
return Reflect.getOwnPropertyDescriptor(target, key);
|
282
|
+
}
|
283
|
+
},
|
284
|
+
});
|
285
|
+
/** @category CoValues */
|
147
286
|
export class BinaryCoStream extends CoValueBase {
|
148
|
-
constructor(
|
287
|
+
constructor(options) {
|
149
288
|
super();
|
150
289
|
let raw;
|
151
290
|
if ("fromRaw" in options) {
|
@@ -160,9 +299,13 @@ export class BinaryCoStream extends CoValueBase {
|
|
160
299
|
value: raw.id,
|
161
300
|
enumerable: false,
|
162
301
|
},
|
302
|
+
_type: { value: "BinaryCoStream", enumerable: false },
|
163
303
|
_raw: { value: raw, enumerable: false },
|
164
304
|
});
|
165
305
|
}
|
306
|
+
static create(options) {
|
307
|
+
return new this(options);
|
308
|
+
}
|
166
309
|
getChunks(options) {
|
167
310
|
return this._raw.getBinaryChunks(options?.allowUnfinished);
|
168
311
|
}
|
@@ -175,6 +318,46 @@ export class BinaryCoStream extends CoValueBase {
|
|
175
318
|
end() {
|
176
319
|
this._raw.endBinaryStream();
|
177
320
|
}
|
321
|
+
toBlob(options) {
|
322
|
+
const chunks = this.getChunks({
|
323
|
+
allowUnfinished: options?.allowUnfinished,
|
324
|
+
});
|
325
|
+
if (!chunks) {
|
326
|
+
return undefined;
|
327
|
+
}
|
328
|
+
return new Blob(chunks.chunks, { type: chunks.mimeType });
|
329
|
+
}
|
330
|
+
static async loadAsBlob(id, as, options) {
|
331
|
+
const stream = await this.load(id, as, []);
|
332
|
+
return stream?.toBlob({
|
333
|
+
allowUnfinished: options?.allowUnfinished,
|
334
|
+
});
|
335
|
+
}
|
336
|
+
static async createFromBlob(blob, options) {
|
337
|
+
const stream = this.create({ owner: options.owner });
|
338
|
+
const start = Date.now();
|
339
|
+
const data = new Uint8Array(await blob.arrayBuffer());
|
340
|
+
stream.start({
|
341
|
+
mimeType: blob.type,
|
342
|
+
totalSizeBytes: blob.size,
|
343
|
+
fileName: blob instanceof File ? blob.name : undefined,
|
344
|
+
});
|
345
|
+
const chunkSize = MAX_RECOMMENDED_TX_SIZE;
|
346
|
+
let lastProgressUpdate = Date.now();
|
347
|
+
for (let idx = 0; idx < data.length; idx += chunkSize) {
|
348
|
+
stream.push(data.slice(idx, idx + chunkSize));
|
349
|
+
if (Date.now() - lastProgressUpdate > 100) {
|
350
|
+
options.onProgress?.(idx / data.length);
|
351
|
+
lastProgressUpdate = Date.now();
|
352
|
+
}
|
353
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
354
|
+
}
|
355
|
+
stream.end();
|
356
|
+
const end = Date.now();
|
357
|
+
console.debug("Finished creating binary stream in", (end - start) / 1000, "s - Throughput in MB/s", (1000 * (blob.size / (end - start))) / (1024 * 1024));
|
358
|
+
options.onProgress?.(1);
|
359
|
+
return stream;
|
360
|
+
}
|
178
361
|
toJSON() {
|
179
362
|
return {
|
180
363
|
id: this.id,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coStream.js","sourceRoot":"","sources":["../../src/coValues/coStream.ts"],"names":[],"mappings":";AAUA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAUzC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAYxC,MAAM,OAAO,QACT,SAAQ,WAAW;IAanB,IAAI,SAAS;QAGT,OAAQ,IAAI,CAAC,WAA+B,CAAC,SAAS,CAAC;IAC3D,CAAC;IAKD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IAID,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;IAID,YACI,IAAwB,EACxB,OAA8D;QAE9D,KAAK,EAAE,CAAC;QAnBZ,OAAE,GAEE,EAAE,CAAC;QAIP,OAAE,GAEE,EAAE,CAAC;QAaH,IAAI,GAAgB,CAAC;QAErB,IAAI,SAAS,IAAI,OAAO,EAAE,CAAC;YACvB,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;QAC1B,CAAC;aAAM,CAAC;YACJ,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;YAEpC,GAAG,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAClC,CAAC;QAED,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE;YAC1B,EAAE,EAAE;gBACA,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-next-line @typescript-eslint/no-explicit-any
|
2
|
+
export function fulfillsDepth(depth, value) {
|
3
|
+
if (value._type === "CoMap" ||
|
4
|
+
value._type === "Group" ||
|
5
|
+
value._type === "Account") {
|
6
|
+
if (Array.isArray(depth) && depth.length === 1) {
|
7
|
+
return Object.entries(value).every(([key, item]) => {
|
8
|
+
return value._refs[key]
|
9
|
+
? item && fulfillsDepth(depth[0], item)
|
10
|
+
: true;
|
11
|
+
});
|
12
|
+
}
|
13
|
+
else {
|
14
|
+
for (const key of Object.keys(depth)) {
|
15
|
+
const map = value;
|
16
|
+
if (!map._refs[key]) {
|
17
|
+
continue;
|
18
|
+
}
|
19
|
+
if (!map[key]) {
|
20
|
+
return false;
|
21
|
+
}
|
22
|
+
if (!fulfillsDepth(depth[key], map[key])) {
|
23
|
+
return false;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
return true;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
else if (value._type === "CoList") {
|
30
|
+
if (depth.length === 0) {
|
31
|
+
return true;
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
const itemDepth = depth[0];
|
35
|
+
return value.every((item, i) => value._refs[i]
|
36
|
+
? item && fulfillsDepth(itemDepth, item)
|
37
|
+
: true);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
else if (value._type === "CoStream") {
|
41
|
+
if (depth.length === 0) {
|
42
|
+
return true;
|
43
|
+
}
|
44
|
+
else {
|
45
|
+
const itemDepth = depth[0];
|
46
|
+
return Object.values(value.perSession).every((entry) => entry.value && fulfillsDepth(itemDepth, entry.value));
|
47
|
+
}
|
48
|
+
}
|
49
|
+
else if (value._type === "BinaryCoStream") {
|
50
|
+
return true;
|
51
|
+
}
|
52
|
+
else {
|
53
|
+
console.error(value);
|
54
|
+
throw new Error("Unexpected value type: " + value._type);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
//# sourceMappingURL=deepLoading.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deepLoading.js","source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C,MAAM,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAI,CAAC;QAChB,CAAC;aAAM,CAAC;YACJ,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YAC3B,OAAQ,KAAgB,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CACtC,KAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;gBACtB,CAAC,CAAC,IAAI,IAAI,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC;gBACxC,CAAC,CAAC,IAAI,CACb,CAAC;QACN,CAAC;IACL,CAAC;SAAM,IAAI,KAAK,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;QACpC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAI,CAAC;QAChB,CAAC;aAAM,CAAC;YACJ,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YAC3B,OAAO,MAAM,CAAC,MAAM,CAAE,KAAkB,CAAC,UAAU,CAAC,CAAC,KAAK,CACtD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,aAAa,CAAC,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,CAClE,CAAC;QACN,CAAC;IACL,CAAC;SAAM,IAAI,KAAK,CAAC,KAAK,KAAK,gBAAgB,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;SAAM,CAAC;QACJ,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;AACL,CAAC"}
|
@@ -1,10 +1,20 @@
|
|
1
|
-
|
1
|
+
var _a;
|
2
|
+
import { BinaryCoStream, CoMap, co, subscriptionsScopes, } from "../../internal.js";
|
3
|
+
/** @category Media */
|
2
4
|
export class ImageDefinition extends CoMap {
|
3
|
-
|
5
|
+
constructor() {
|
6
|
+
super(...arguments);
|
7
|
+
this.originalSize = co.json();
|
8
|
+
this.placeholderDataURL = co.string;
|
9
|
+
this[_a] = co.ref(BinaryCoStream);
|
10
|
+
}
|
11
|
+
highestResAvailable(options) {
|
4
12
|
if (!subscriptionsScopes.get(this)) {
|
5
13
|
console.warn("highestResAvailable() only makes sense when used within a subscription.");
|
6
14
|
}
|
7
|
-
const resolutions = Object.keys(this).filter((key) => key.match(/^\d+x\d+$/)
|
15
|
+
const resolutions = Object.keys(this).filter((key) => key.match(/^\d+x\d+$/) &&
|
16
|
+
(options?.maxWidth === undefined ||
|
17
|
+
Number(key.split("x")[0]) <= options.maxWidth));
|
8
18
|
resolutions.sort((a, b) => {
|
9
19
|
const aWidth = Number(a.split("x")[0]);
|
10
20
|
const bWidth = Number(b.split("x")[0]);
|
@@ -28,9 +38,5 @@ export class ImageDefinition extends CoMap {
|
|
28
38
|
});
|
29
39
|
}
|
30
40
|
}
|
31
|
-
|
32
|
-
originalSize: "json",
|
33
|
-
placeholderDataURL: "json",
|
34
|
-
[indexSignature]: { ref: () => BinaryCoStream },
|
35
|
-
});
|
41
|
+
_a = co.items;
|
36
42
|
//# sourceMappingURL=imageDef.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"imageDef.js","sourceRoot":"","sources":["../../../src/coValues/extensions/imageDef.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,cAAc,EACd,KAAK,EACL,
|
1
|
+
{"version":3,"file":"imageDef.js","sourceRoot":"","sources":["../../../src/coValues/extensions/imageDef.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,cAAc,EACd,KAAK,EACL,EAAE,EACF,mBAAmB,GACtB,MAAM,mBAAmB,CAAC;AAE3B,sBAAsB;AACtB,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAA1C;;QACI,iBAAY,GAAG,EAAE,CAAC,IAAI,EAAoB,CAAC;QAC3C,uBAAkB,GAAI,EAAE,CAAC,MAAM,CAAC;QAEh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