doxum 0.1.20 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -4
- package/dist/{access-B9XDWjHy.js → access-CZXv_DIF.js} +238 -54
- package/dist/access-CZXv_DIF.js.map +1 -0
- package/dist/{access-EQ-XiFyl.cjs → access-D64MFRSm.cjs} +287 -55
- package/dist/access-D64MFRSm.cjs.map +1 -0
- package/dist/{advanced-Bcle5C2M.js → advanced-BTStm2cW.js} +29 -25
- package/dist/advanced-BTStm2cW.js.map +1 -0
- package/dist/{advanced-Du3O8O1A.d.ts → advanced-CqrR_4dh.d.ts} +3 -3
- package/dist/{advanced-CSjF-u_k.d.cts → advanced-CyR5o3Xr.d.cts} +3 -3
- package/dist/{advanced-BIGP86NL.cjs → advanced-GKZ-CZ6a.cjs} +29 -25
- package/dist/advanced-GKZ-CZ6a.cjs.map +1 -0
- package/dist/advanced.cjs +1 -1
- package/dist/advanced.d.cts +1 -1
- package/dist/advanced.d.ts +1 -1
- package/dist/advanced.js +1 -1
- package/dist/{contract-BlEl8Ibo.d.ts → contract-CRrZ-3sF.d.cts} +68 -36
- package/dist/{contract-BDQth1pe.d.cts → contract-CxiNcqMn.d.ts} +68 -36
- package/dist/{driver-DRoWiadc.cjs → driver-BC06FEMF.cjs} +2 -2
- package/dist/{driver-DRoWiadc.cjs.map → driver-BC06FEMF.cjs.map} +1 -1
- package/dist/{driver-DiN-0Mnc.js → driver-BqRjwFmU.js} +2 -2
- package/dist/{driver-DiN-0Mnc.js.map → driver-BqRjwFmU.js.map} +1 -1
- package/dist/index.cjs +482 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +480 -117
- package/dist/index.js.map +1 -1
- package/dist/{integration-DL6dLuu1.cjs → integration-BqDw7e2w.cjs} +3 -4
- package/dist/{integration-DL6dLuu1.cjs.map → integration-BqDw7e2w.cjs.map} +1 -1
- package/dist/{integration-DHxVpbxc.js → integration-CSXaF8HP.js} +2 -3
- package/dist/{integration-DHxVpbxc.js.map → integration-CSXaF8HP.js.map} +1 -1
- package/dist/integration.cjs +5 -4
- package/dist/integration.d.cts +1 -1
- package/dist/integration.d.ts +1 -1
- package/dist/integration.js +4 -3
- package/dist/{issue-DVaGQGeP.js → issue-9U6YLYz3.js} +91 -20
- package/dist/issue-9U6YLYz3.js.map +1 -0
- package/dist/{issue-DhrNdQNg.cjs → issue-Bo0FIO3b.cjs} +116 -27
- package/dist/issue-Bo0FIO3b.cjs.map +1 -0
- package/dist/local-sync.cjs +2 -2
- package/dist/local-sync.d.cts +1 -1
- package/dist/local-sync.d.ts +1 -1
- package/dist/local-sync.js +2 -2
- package/dist/{notification-AXT94XYC.js → notification-CrZHVx3a.js} +3 -59
- package/dist/notification-CrZHVx3a.js.map +1 -0
- package/dist/{notification-DGv-_G9t.cjs → notification-DFoA9bQY.cjs} +3 -77
- package/dist/notification-DFoA9bQY.cjs.map +1 -0
- package/dist/react.cjs +4 -3
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +3 -2
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/skills/doxum-runtime/SKILL.md +7 -0
- package/skills/doxum-runtime/references/guide.en.md +14 -2
- package/skills/doxum-runtime/references/guide.zh-CN.md +13 -2
- package/skills/doxum-runtime/references/projections.en.md +5 -0
- package/skills/doxum-runtime/references/projections.zh-CN.md +5 -0
- package/dist/access-B9XDWjHy.js.map +0 -1
- package/dist/access-EQ-XiFyl.cjs.map +0 -1
- package/dist/advanced-BIGP86NL.cjs.map +0 -1
- package/dist/advanced-Bcle5C2M.js.map +0 -1
- package/dist/issue-DVaGQGeP.js.map +0 -1
- package/dist/issue-DhrNdQNg.cjs.map +0 -1
- package/dist/notification-AXT94XYC.js.map +0 -1
- package/dist/notification-DGv-_G9t.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_issue = require("./issue-
|
|
1
|
+
const require_issue = require("./issue-Bo0FIO3b.cjs");
|
|
2
2
|
//#region core/src/schema-value.ts
|
|
3
3
|
var ParseError = class extends TypeError {
|
|
4
4
|
issues;
|
|
@@ -103,14 +103,29 @@ const checkValue = (node, value, address = [], strict = false) => {
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
if (!require_issue.validate(value)) return issue(address, "Invalid tree structure.", "invalid-tree");
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
if (
|
|
109
|
-
const failure = checkValue(node.value, entry.value, [...address, id], strict);
|
|
110
|
-
if (failure) return failure;
|
|
111
|
-
}
|
|
106
|
+
for (const id of Object.keys(value.nodes)) {
|
|
107
|
+
const failure = checkTreePayload(node.value, value.nodes[id], [...address, id], strict);
|
|
108
|
+
if (failure) return failure;
|
|
112
109
|
}
|
|
113
110
|
};
|
|
111
|
+
const checkTreePayload = (node, value, address, strict = false) => {
|
|
112
|
+
if (!require_issue.isRecord(value)) return issue(address, "Invalid tree node.", "invalid-tree");
|
|
113
|
+
const present = Object.prototype.hasOwnProperty.call(value, "value");
|
|
114
|
+
if (!present && !node.optional) return issue(address, "Tree node value is required.");
|
|
115
|
+
return present ? checkValue(node, value.value, address, strict) : void 0;
|
|
116
|
+
};
|
|
117
|
+
const copyTreeNode = (value) => {
|
|
118
|
+
require_issue.profile.copy.treeNode();
|
|
119
|
+
return {
|
|
120
|
+
...value,
|
|
121
|
+
children: [...value.children]
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
const equalTreeNode = (left, right) => {
|
|
125
|
+
if (left === right) return true;
|
|
126
|
+
if (!left || !right) return false;
|
|
127
|
+
return left.parentId === right.parentId && require_issue.equal(left.children, right.children) && Object.hasOwn(left, "value") === Object.hasOwn(right, "value") && Object.is(left.value, right.value);
|
|
128
|
+
};
|
|
114
129
|
/** Copy editable structure; atomic payloads retain their immutable ownership contract. */
|
|
115
130
|
const copyValue = (node, value) => {
|
|
116
131
|
if (value === void 0 || node.kind === "field") return value;
|
|
@@ -139,10 +154,7 @@ const copyValue = (node, value) => {
|
|
|
139
154
|
const entries = value.nodes;
|
|
140
155
|
return {
|
|
141
156
|
...value,
|
|
142
|
-
nodes: Object.fromEntries(Object.entries(entries).map(([id, n]) => [id,
|
|
143
|
-
...n,
|
|
144
|
-
children: [...n.children]
|
|
145
|
-
}]))
|
|
157
|
+
nodes: Object.fromEntries(Object.entries(entries).map(([id, n]) => [id, copyTreeNode(n)]))
|
|
146
158
|
};
|
|
147
159
|
}
|
|
148
160
|
return value;
|
|
@@ -166,7 +178,7 @@ const equalValue = (node, left, right) => {
|
|
|
166
178
|
if (node.kind === "tree" && require_issue.isRecord(left) && require_issue.isRecord(right)) {
|
|
167
179
|
if (left.rootId !== right.rootId) return false;
|
|
168
180
|
const a = left.nodes, b = right.nodes;
|
|
169
|
-
return Object.keys(a).length === Object.keys(b).length && Object.keys(a).every((id) => Object.hasOwn(b, id) &&
|
|
181
|
+
return Object.keys(a).length === Object.keys(b).length && Object.keys(a).every((id) => Object.hasOwn(b, id) && equalTreeNode(a[id], b[id]));
|
|
170
182
|
}
|
|
171
183
|
if (node.kind === "map" && require_issue.isRecord(left) && require_issue.isRecord(right)) {
|
|
172
184
|
const keys = Object.keys(left);
|
|
@@ -235,12 +247,12 @@ function insert$1(session, container, value, position) {
|
|
|
235
247
|
session.validate(node.value, value, at);
|
|
236
248
|
const id = node.keyOf(value);
|
|
237
249
|
if (typeof id !== "string") return require_issue.fail(at, "invalid-list-key", "List key must be a string.");
|
|
238
|
-
const items = current, keys$
|
|
239
|
-
if (keys$
|
|
240
|
-
if (!require_issue.valid(keys$
|
|
250
|
+
const items = current, keys$1 = require_issue.keys(items, node.keyOf);
|
|
251
|
+
if (keys$1.index(id) >= 0) return require_issue.fail(at, "duplicate-list-item", "List key already exists.");
|
|
252
|
+
if (!require_issue.valid(keys$1, position)) return require_issue.fail(at, "invalid-anchor", "Unknown list anchor.");
|
|
241
253
|
session.recorder.order(container);
|
|
242
254
|
session.recorder.member(container, id, session.definition(container, id), -1);
|
|
243
|
-
require_issue.insert(items, require_issue.index(keys$
|
|
255
|
+
require_issue.insert(items, require_issue.index(keys$1, position), value);
|
|
244
256
|
session.invalidate();
|
|
245
257
|
}
|
|
246
258
|
function replace$2(session, container, id, value) {
|
|
@@ -338,21 +350,185 @@ const move$1 = (session, container, id, position) => {
|
|
|
338
350
|
};
|
|
339
351
|
//#endregion
|
|
340
352
|
//#region core/src/mutation/operations/order.ts
|
|
341
|
-
|
|
342
|
-
const { at, node
|
|
353
|
+
const assertOrdered = (container) => {
|
|
354
|
+
const { at, node } = container;
|
|
343
355
|
if (node.kind !== "table" && node.kind !== "list") return require_issue.fail(at, "invalid-collection", "Expected an ordered container.");
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
356
|
+
return node;
|
|
357
|
+
};
|
|
358
|
+
const plannedOrder = (at, current, selection, position) => {
|
|
359
|
+
const plan = require_issue.moveSelection(current, selection, position);
|
|
360
|
+
switch (plan.kind) {
|
|
361
|
+
case "ok": return plan.order;
|
|
362
|
+
case "duplicate": return require_issue.fail(at, "invalid-key", "Moved keys must be unique.");
|
|
363
|
+
case "missing": return require_issue.fail(at, "missing-entity", "Ordered key does not exist.");
|
|
364
|
+
case "invalid-anchor": return require_issue.fail(at, "invalid-anchor", "Unknown order anchor.");
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
function move(session, container, ids, position) {
|
|
368
|
+
const node = assertOrdered(container);
|
|
369
|
+
const selection = typeof ids === "string" ? [ids] : ids;
|
|
370
|
+
if (!selection.length) return;
|
|
371
|
+
if (node.kind === "table") {
|
|
372
|
+
const order = container.value.ids;
|
|
373
|
+
const next = plannedOrder(container.at, order, selection, position);
|
|
374
|
+
if (require_issue.equal(order, next)) return;
|
|
375
|
+
session.recorder.order(container);
|
|
376
|
+
require_issue.installKeys(order, next);
|
|
377
|
+
} else {
|
|
378
|
+
const items = container.value;
|
|
379
|
+
const sequence = require_issue.listSequence(items, node.keyOf);
|
|
380
|
+
const next = plannedOrder(container.at, sequence.order, selection, position);
|
|
381
|
+
if (require_issue.equal(sequence.order, next)) return;
|
|
382
|
+
session.recorder.order(container);
|
|
383
|
+
require_issue.installList(items, node.keyOf, sequence, next);
|
|
384
|
+
}
|
|
385
|
+
session.invalidate();
|
|
386
|
+
}
|
|
387
|
+
function reorder(session, container, next) {
|
|
388
|
+
const node = assertOrdered(container);
|
|
389
|
+
if (node.kind === "table") {
|
|
390
|
+
const current = container.value.ids;
|
|
391
|
+
if (!require_issue.matches(next, current)) return require_issue.fail(container.at, "invalid-collection", "Order must contain every key exactly once.");
|
|
392
|
+
if (require_issue.equal(current, next)) return;
|
|
393
|
+
session.recorder.order(container);
|
|
394
|
+
require_issue.installKeys(current, next);
|
|
395
|
+
} else {
|
|
396
|
+
const items = container.value;
|
|
397
|
+
const sequence = require_issue.listSequence(items, node.keyOf);
|
|
398
|
+
if (!require_issue.matches(next, sequence.order)) return require_issue.fail(container.at, "invalid-collection", "Order must contain every key exactly once.");
|
|
399
|
+
if (require_issue.equal(sequence.order, next)) return;
|
|
400
|
+
session.recorder.order(container);
|
|
401
|
+
require_issue.installList(items, node.keyOf, sequence, next);
|
|
402
|
+
}
|
|
353
403
|
session.invalidate();
|
|
354
404
|
}
|
|
355
405
|
//#endregion
|
|
406
|
+
//#region core/src/impact-target.ts
|
|
407
|
+
const treeRootSegment = "rootId";
|
|
408
|
+
const treeNodesSegment = "nodes";
|
|
409
|
+
const ordinaryNamespace = "\0value";
|
|
410
|
+
const treeNamespace = "\0tree";
|
|
411
|
+
const tree = (at, selection) => ({
|
|
412
|
+
kind: "value",
|
|
413
|
+
at,
|
|
414
|
+
tree: selection
|
|
415
|
+
});
|
|
416
|
+
const address = (target) => "at" in target ? target.at : target.address;
|
|
417
|
+
const id = (target) => target.kind === "collection" && "id" in target ? target.id : void 0;
|
|
418
|
+
const belongs = (target, schema) => !("schema" in target) || target.schema === schema;
|
|
419
|
+
const treeTarget = (target) => "tree" in target ? target.tree : void 0;
|
|
420
|
+
const sameTreeTarget = (left, right) => {
|
|
421
|
+
if (!left || !right) return left === right;
|
|
422
|
+
if (left.kind !== right.kind) return false;
|
|
423
|
+
return left.kind !== "node" || right.kind === "node" && left.id === right.id;
|
|
424
|
+
};
|
|
425
|
+
const same = (left, right) => {
|
|
426
|
+
if ("schema" in left && "schema" in right && left.schema !== right.schema) return false;
|
|
427
|
+
if (!sameTreeTarget(treeTarget(left), treeTarget(right))) return false;
|
|
428
|
+
if (left.kind !== right.kind) return false;
|
|
429
|
+
const leftAddress = address(left);
|
|
430
|
+
const rightAddress = address(right);
|
|
431
|
+
if (leftAddress.length !== rightAddress.length) return false;
|
|
432
|
+
for (let index = 0; index < leftAddress.length; index += 1) if (leftAddress[index] !== rightAddress[index]) return false;
|
|
433
|
+
return left.kind !== "collection" || id(left) === id(right);
|
|
434
|
+
};
|
|
435
|
+
const indexedAddress = (target) => {
|
|
436
|
+
const tree = treeTarget(target);
|
|
437
|
+
if (tree?.kind === "root") return [
|
|
438
|
+
treeNamespace,
|
|
439
|
+
...address(target),
|
|
440
|
+
treeRootSegment
|
|
441
|
+
];
|
|
442
|
+
if (tree?.kind === "nodes") return [
|
|
443
|
+
treeNamespace,
|
|
444
|
+
...address(target),
|
|
445
|
+
treeNodesSegment
|
|
446
|
+
];
|
|
447
|
+
if (tree?.kind === "node") return [
|
|
448
|
+
treeNamespace,
|
|
449
|
+
...address(target),
|
|
450
|
+
treeNodesSegment,
|
|
451
|
+
tree.id
|
|
452
|
+
];
|
|
453
|
+
const key = id(target);
|
|
454
|
+
return key === void 0 ? [ordinaryNamespace, ...address(target)] : [
|
|
455
|
+
ordinaryNamespace,
|
|
456
|
+
...address(target),
|
|
457
|
+
key
|
|
458
|
+
];
|
|
459
|
+
};
|
|
460
|
+
const visitChangedLocations = (changes, value, order) => {
|
|
461
|
+
for (const change of changes.changes) {
|
|
462
|
+
if (change.kind === "reset") continue;
|
|
463
|
+
if (change.kind === "members") {
|
|
464
|
+
for (const member of change.members) {
|
|
465
|
+
value([
|
|
466
|
+
ordinaryNamespace,
|
|
467
|
+
...change.at,
|
|
468
|
+
member.key
|
|
469
|
+
]);
|
|
470
|
+
value([
|
|
471
|
+
treeNamespace,
|
|
472
|
+
...change.at,
|
|
473
|
+
member.key
|
|
474
|
+
]);
|
|
475
|
+
}
|
|
476
|
+
if (change.order) order([ordinaryNamespace, ...change.at]);
|
|
477
|
+
continue;
|
|
478
|
+
}
|
|
479
|
+
value([ordinaryNamespace, ...change.at]);
|
|
480
|
+
if (change.before !== change.after) value([
|
|
481
|
+
treeNamespace,
|
|
482
|
+
...change.at,
|
|
483
|
+
treeRootSegment
|
|
484
|
+
]);
|
|
485
|
+
for (const node of change.nodes) value([
|
|
486
|
+
treeNamespace,
|
|
487
|
+
...change.at,
|
|
488
|
+
treeNodesSegment,
|
|
489
|
+
node.id
|
|
490
|
+
]);
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
const affected = (target, values, orders) => {
|
|
494
|
+
const at = indexedAddress(target);
|
|
495
|
+
return id(target) !== void 0 ? values.hasAncestor(at) : values.overlaps(at) || orders.hasDescendant(at);
|
|
496
|
+
};
|
|
497
|
+
/** Targets are classified once; commit matching never builds a reverse impact index. */
|
|
498
|
+
var SubscriptionIndex = class {
|
|
499
|
+
ordinary = new require_issue.AddressIndex();
|
|
500
|
+
membership = new require_issue.AddressIndex();
|
|
501
|
+
constructor(schema) {
|
|
502
|
+
this.schema = schema;
|
|
503
|
+
}
|
|
504
|
+
add(target, value) {
|
|
505
|
+
if (!belongs(target, this.schema)) return;
|
|
506
|
+
(id(target) === void 0 ? this.ordinary : this.membership).add(indexedAddress(target), value);
|
|
507
|
+
}
|
|
508
|
+
delete(target, value) {
|
|
509
|
+
if (!belongs(target, this.schema)) return;
|
|
510
|
+
(id(target) === void 0 ? this.ordinary : this.membership).delete(indexedAddress(target), value);
|
|
511
|
+
}
|
|
512
|
+
collect(changes, visit) {
|
|
513
|
+
const values = this.ordinary.query(visit);
|
|
514
|
+
const members = this.membership.query(visit, "descendants");
|
|
515
|
+
const orders = this.ordinary.query(visit, "ancestors");
|
|
516
|
+
if (changes.changes.some((change) => change.kind === "reset")) {
|
|
517
|
+
values([]);
|
|
518
|
+
members([]);
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
visitChangedLocations(changes, (at) => {
|
|
522
|
+
values(at);
|
|
523
|
+
members(at);
|
|
524
|
+
}, orders);
|
|
525
|
+
}
|
|
526
|
+
clear() {
|
|
527
|
+
this.ordinary.clear();
|
|
528
|
+
this.membership.clear();
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
//#endregion
|
|
356
532
|
//#region core/src/access/scope.ts
|
|
357
533
|
const locations = /* @__PURE__ */ new WeakMap();
|
|
358
534
|
const locationOf = (value) => locations.get(value);
|
|
@@ -374,6 +550,7 @@ const collect = (context, at, kind = "value", id) => {
|
|
|
374
550
|
...id === void 0 ? {} : { id }
|
|
375
551
|
});
|
|
376
552
|
};
|
|
553
|
+
const collectTree = (context, at, selection) => context.dependencies?.record(tree(at, selection));
|
|
377
554
|
const snapshot = (value) => {
|
|
378
555
|
const location = value && typeof value === "object" ? locationOf(value) : void 0;
|
|
379
556
|
if (!location) return value;
|
|
@@ -546,9 +723,13 @@ const createAccess = (context, initial = []) => {
|
|
|
546
723
|
if (!location || !Object.hasOwn(location.parent, location.key)) return void 0;
|
|
547
724
|
return childAccess(target, id, location.node, location.parent[location.key]);
|
|
548
725
|
};
|
|
549
|
-
if (property === "move") return (
|
|
726
|
+
if (property === "move") return (ids, position) => {
|
|
727
|
+
const writable = writableCollection(target, node);
|
|
728
|
+
move(context.session, writable, ids, position);
|
|
729
|
+
};
|
|
730
|
+
if (property === "reorder") return (ids) => {
|
|
550
731
|
const writable = writableCollection(target, node);
|
|
551
|
-
|
|
732
|
+
reorder(context.session, writable, ids);
|
|
552
733
|
};
|
|
553
734
|
};
|
|
554
735
|
const tableMethod = (target, property, node) => {
|
|
@@ -608,18 +789,38 @@ const createAccess = (context, initial = []) => {
|
|
|
608
789
|
const writable = writableTree(target, node);
|
|
609
790
|
replace$1(context.session, writable, valueOrId, value);
|
|
610
791
|
};
|
|
611
|
-
const current = () =>
|
|
612
|
-
|
|
613
|
-
|
|
792
|
+
const current = () => collectionValue(target, node);
|
|
793
|
+
if (property === "rootId") return () => {
|
|
794
|
+
collectTree(context, at, { kind: "root" });
|
|
795
|
+
return current().rootId;
|
|
614
796
|
};
|
|
615
|
-
if (property === "rootId") return () => current().rootId;
|
|
616
797
|
if (property === "get") return (id) => {
|
|
798
|
+
collectTree(context, at, {
|
|
799
|
+
kind: "node",
|
|
800
|
+
id
|
|
801
|
+
});
|
|
617
802
|
const value = current();
|
|
618
803
|
return require_issue.contains$1(value, id) ? value.nodes[id].value : void 0;
|
|
619
804
|
};
|
|
620
|
-
if (property === "has") return (id) =>
|
|
621
|
-
|
|
805
|
+
if (property === "has") return (id) => {
|
|
806
|
+
collectTree(context, at, {
|
|
807
|
+
kind: "node",
|
|
808
|
+
id
|
|
809
|
+
});
|
|
810
|
+
return require_issue.contains$1(current(), id);
|
|
811
|
+
};
|
|
812
|
+
if (property === "parent") return (id) => {
|
|
813
|
+
collectTree(context, at, {
|
|
814
|
+
kind: "node",
|
|
815
|
+
id
|
|
816
|
+
});
|
|
817
|
+
return require_issue.parent(current(), id);
|
|
818
|
+
};
|
|
622
819
|
if (property === "children") return (id) => {
|
|
820
|
+
collectTree(context, at, {
|
|
821
|
+
kind: "node",
|
|
822
|
+
id
|
|
823
|
+
});
|
|
623
824
|
const children$1 = require_issue.children(current(), id);
|
|
624
825
|
return children$1 ? [...children$1] : void 0;
|
|
625
826
|
};
|
|
@@ -699,23 +900,6 @@ const createAccess = (context, initial = []) => {
|
|
|
699
900
|
}
|
|
700
901
|
return access(root);
|
|
701
902
|
};
|
|
702
|
-
const collectionAccess = (context, at) => {
|
|
703
|
-
const value = createAccess(context, at);
|
|
704
|
-
if (value === void 0) return {
|
|
705
|
-
get: () => {
|
|
706
|
-
assertActive(context);
|
|
707
|
-
},
|
|
708
|
-
has: () => {
|
|
709
|
-
assertActive(context);
|
|
710
|
-
return false;
|
|
711
|
-
},
|
|
712
|
-
ids: () => {
|
|
713
|
-
assertActive(context);
|
|
714
|
-
return [];
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
|
-
return value;
|
|
718
|
-
};
|
|
719
903
|
//#endregion
|
|
720
904
|
//#region core/src/runtime/contract.ts
|
|
721
905
|
var DocumentReentrancyError = class extends Error {
|
|
@@ -787,6 +971,12 @@ Object.defineProperty(exports, "ParseError", {
|
|
|
787
971
|
return ParseError;
|
|
788
972
|
}
|
|
789
973
|
});
|
|
974
|
+
Object.defineProperty(exports, "SubscriptionIndex", {
|
|
975
|
+
enumerable: true,
|
|
976
|
+
get: function() {
|
|
977
|
+
return SubscriptionIndex;
|
|
978
|
+
}
|
|
979
|
+
});
|
|
790
980
|
Object.defineProperty(exports, "TransactionRejected", {
|
|
791
981
|
enumerable: true,
|
|
792
982
|
get: function() {
|
|
@@ -799,6 +989,18 @@ Object.defineProperty(exports, "accessOf", {
|
|
|
799
989
|
return accessOf;
|
|
800
990
|
}
|
|
801
991
|
});
|
|
992
|
+
Object.defineProperty(exports, "affected", {
|
|
993
|
+
enumerable: true,
|
|
994
|
+
get: function() {
|
|
995
|
+
return affected;
|
|
996
|
+
}
|
|
997
|
+
});
|
|
998
|
+
Object.defineProperty(exports, "belongs", {
|
|
999
|
+
enumerable: true,
|
|
1000
|
+
get: function() {
|
|
1001
|
+
return belongs;
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
802
1004
|
Object.defineProperty(exports, "bindRuntimeAccess", {
|
|
803
1005
|
enumerable: true,
|
|
804
1006
|
get: function() {
|
|
@@ -811,16 +1013,22 @@ Object.defineProperty(exports, "checkKey", {
|
|
|
811
1013
|
return checkKey;
|
|
812
1014
|
}
|
|
813
1015
|
});
|
|
1016
|
+
Object.defineProperty(exports, "checkTreePayload", {
|
|
1017
|
+
enumerable: true,
|
|
1018
|
+
get: function() {
|
|
1019
|
+
return checkTreePayload;
|
|
1020
|
+
}
|
|
1021
|
+
});
|
|
814
1022
|
Object.defineProperty(exports, "checkValue", {
|
|
815
1023
|
enumerable: true,
|
|
816
1024
|
get: function() {
|
|
817
1025
|
return checkValue;
|
|
818
1026
|
}
|
|
819
1027
|
});
|
|
820
|
-
Object.defineProperty(exports, "
|
|
1028
|
+
Object.defineProperty(exports, "copyTreeNode", {
|
|
821
1029
|
enumerable: true,
|
|
822
1030
|
get: function() {
|
|
823
|
-
return
|
|
1031
|
+
return copyTreeNode;
|
|
824
1032
|
}
|
|
825
1033
|
});
|
|
826
1034
|
Object.defineProperty(exports, "copyValue", {
|
|
@@ -835,12 +1043,24 @@ Object.defineProperty(exports, "createAccess", {
|
|
|
835
1043
|
return createAccess;
|
|
836
1044
|
}
|
|
837
1045
|
});
|
|
1046
|
+
Object.defineProperty(exports, "equalTreeNode", {
|
|
1047
|
+
enumerable: true,
|
|
1048
|
+
get: function() {
|
|
1049
|
+
return equalTreeNode;
|
|
1050
|
+
}
|
|
1051
|
+
});
|
|
838
1052
|
Object.defineProperty(exports, "equalValue", {
|
|
839
1053
|
enumerable: true,
|
|
840
1054
|
get: function() {
|
|
841
1055
|
return equalValue;
|
|
842
1056
|
}
|
|
843
1057
|
});
|
|
1058
|
+
Object.defineProperty(exports, "indexedAddress", {
|
|
1059
|
+
enumerable: true,
|
|
1060
|
+
get: function() {
|
|
1061
|
+
return indexedAddress;
|
|
1062
|
+
}
|
|
1063
|
+
});
|
|
844
1064
|
Object.defineProperty(exports, "parse", {
|
|
845
1065
|
enumerable: true,
|
|
846
1066
|
get: function() {
|
|
@@ -859,11 +1079,23 @@ Object.defineProperty(exports, "replace", {
|
|
|
859
1079
|
return replace;
|
|
860
1080
|
}
|
|
861
1081
|
});
|
|
1082
|
+
Object.defineProperty(exports, "same", {
|
|
1083
|
+
enumerable: true,
|
|
1084
|
+
get: function() {
|
|
1085
|
+
return same;
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
862
1088
|
Object.defineProperty(exports, "snapshot", {
|
|
863
1089
|
enumerable: true,
|
|
864
1090
|
get: function() {
|
|
865
1091
|
return snapshot;
|
|
866
1092
|
}
|
|
867
1093
|
});
|
|
1094
|
+
Object.defineProperty(exports, "visitChangedLocations", {
|
|
1095
|
+
enumerable: true,
|
|
1096
|
+
get: function() {
|
|
1097
|
+
return visitChangedLocations;
|
|
1098
|
+
}
|
|
1099
|
+
});
|
|
868
1100
|
|
|
869
|
-
//# sourceMappingURL=access-
|
|
1101
|
+
//# sourceMappingURL=access-D64MFRSm.cjs.map
|