doxum 0.1.20 → 0.1.21
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 +10 -2
- package/dist/{access-B9XDWjHy.js → access-BeSV5ve-.js} +61 -19
- package/dist/access-BeSV5ve-.js.map +1 -0
- package/dist/{access-EQ-XiFyl.cjs → access-Bienf28h.cjs} +61 -19
- package/dist/access-Bienf28h.cjs.map +1 -0
- package/dist/{advanced-BIGP86NL.cjs → advanced-BRL5pN0y.cjs} +3 -3
- package/dist/{advanced-BIGP86NL.cjs.map → advanced-BRL5pN0y.cjs.map} +1 -1
- package/dist/{advanced-Bcle5C2M.js → advanced-COFJtWMT.js} +3 -3
- package/dist/{advanced-Bcle5C2M.js.map → advanced-COFJtWMT.js.map} +1 -1
- package/dist/{advanced-CSjF-u_k.d.cts → advanced-DfKc7TZR.d.cts} +2 -2
- package/dist/{advanced-Du3O8O1A.d.ts → advanced-FgdTwu5b.d.ts} +2 -2
- 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-BDQth1pe.d.cts → contract-CdmDHRUq.d.cts} +5 -3
- package/dist/{contract-BlEl8Ibo.d.ts → contract-KG5XnQZt.d.ts} +5 -3
- package/dist/{driver-DiN-0Mnc.js → driver-CLYJOGDQ.js} +2 -2
- package/dist/{driver-DiN-0Mnc.js.map → driver-CLYJOGDQ.js.map} +1 -1
- package/dist/{driver-DRoWiadc.cjs → driver-Djr3BVvo.cjs} +2 -2
- package/dist/{driver-DRoWiadc.cjs.map → driver-Djr3BVvo.cjs.map} +1 -1
- package/dist/index.cjs +7 -7
- 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 +7 -7
- package/dist/index.js.map +1 -1
- package/dist/{integration-DHxVpbxc.js → integration-C4Isp8lJ.js} +3 -3
- package/dist/{integration-DHxVpbxc.js.map → integration-C4Isp8lJ.js.map} +1 -1
- package/dist/{integration-DL6dLuu1.cjs → integration-Z6MsfFI7.cjs} +3 -3
- package/dist/{integration-DL6dLuu1.cjs.map → integration-Z6MsfFI7.cjs.map} +1 -1
- package/dist/integration.cjs +3 -3
- package/dist/integration.d.cts +1 -1
- package/dist/integration.d.ts +1 -1
- package/dist/integration.js +3 -3
- package/dist/{issue-DhrNdQNg.cjs → issue-DjK1xp5K.cjs} +106 -22
- package/dist/issue-DjK1xp5K.cjs.map +1 -0
- package/dist/{issue-DVaGQGeP.js → issue-W0hT8u8D.js} +81 -15
- package/dist/issue-W0hT8u8D.js.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-Bkjau6B6.js} +2 -2
- package/dist/{notification-AXT94XYC.js.map → notification-Bkjau6B6.js.map} +1 -1
- package/dist/{notification-DGv-_G9t.cjs → notification-DJfouMEb.cjs} +2 -2
- package/dist/{notification-DGv-_G9t.cjs.map → notification-DJfouMEb.cjs.map} +1 -1
- package/dist/react.cjs +2 -2
- package/dist/react.js +2 -2
- package/package.json +1 -1
- package/skills/doxum-runtime/SKILL.md +2 -0
- package/skills/doxum-runtime/references/guide.en.md +5 -2
- package/skills/doxum-runtime/references/guide.zh-CN.md +5 -2
- package/dist/access-B9XDWjHy.js.map +0 -1
- package/dist/access-EQ-XiFyl.cjs.map +0 -1
- package/dist/issue-DVaGQGeP.js.map +0 -1
- package/dist/issue-DhrNdQNg.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as OptionalNode, B as DocumentAddress, C as Draft, E as snapshot, F as MemberChange, G as DocumentTreeValue, H as DocumentListConfig, I as ValueTransition, J as Infer, K as FieldNode, N as Change, P as ChangeSet, Q as ObjectShape, S as DocumentImpact, T as replace, U as DocumentNode, V as DocumentAnchor, W as DocumentTreeNode, X as MapNode, Y as ListNode, Z as ObjectNode, _ as Unsubscribe, _t as Validator, a as DocumentDisposedError, at as VariantNode, b as MutationIssueCode, c as DocumentReentrancyError, ct as list, d as LocalHistory, dt as optional, et as PathValueOf, f as ObserverError, ft as table, g as TransactionResult, gt as ParseIssue, h as TransactionRejected, ht as ParseError, i as DocumentDiagnostic, it as TreeNode, l as DocumentRuntime, lt as map, mt as variant, n as CommitSource, nt as SchemaPath, o as DocumentProblem, ot as VariantShape, p as OperationResult, pt as tree, r as DocumentCommit, rt as TableNode, s as DocumentReadable, st as field, tt as ReadonlyValue, u as HistoryState, ut as object, v as Readable, vt as parse, w as Read, x as CollectionImpact, y as MutationIssue } from "./contract-
|
|
2
|
-
import { C as ProjectionError, S as ProjectionDisposedError, _ as ExternalCollectionEvent, b as ExternalValueEvent, d as Input, f as Projection, g as CollectionChange, h as observe, m as input, p as derive, u as incremental, v as ExternalCollectionRead, x as ExternalValueSource, y as ExternalCollectionSource } from "./advanced-
|
|
1
|
+
import { $ as OptionalNode, B as DocumentAddress, C as Draft, E as snapshot, F as MemberChange, G as DocumentTreeValue, H as DocumentListConfig, I as ValueTransition, J as Infer, K as FieldNode, N as Change, P as ChangeSet, Q as ObjectShape, S as DocumentImpact, T as replace, U as DocumentNode, V as DocumentAnchor, W as DocumentTreeNode, X as MapNode, Y as ListNode, Z as ObjectNode, _ as Unsubscribe, _t as Validator, a as DocumentDisposedError, at as VariantNode, b as MutationIssueCode, c as DocumentReentrancyError, ct as list, d as LocalHistory, dt as optional, et as PathValueOf, f as ObserverError, ft as table, g as TransactionResult, gt as ParseIssue, h as TransactionRejected, ht as ParseError, i as DocumentDiagnostic, it as TreeNode, l as DocumentRuntime, lt as map, mt as variant, n as CommitSource, nt as SchemaPath, o as DocumentProblem, ot as VariantShape, p as OperationResult, pt as tree, r as DocumentCommit, rt as TableNode, s as DocumentReadable, st as field, tt as ReadonlyValue, u as HistoryState, ut as object, v as Readable, vt as parse, w as Read, x as CollectionImpact, y as MutationIssue } from "./contract-CdmDHRUq.cjs";
|
|
2
|
+
import { C as ProjectionError, S as ProjectionDisposedError, _ as ExternalCollectionEvent, b as ExternalValueEvent, d as Input, f as Projection, g as CollectionChange, h as observe, m as input, p as derive, u as incremental, v as ExternalCollectionRead, x as ExternalValueSource, y as ExternalCollectionSource } from "./advanced-DfKc7TZR.cjs";
|
|
3
3
|
|
|
4
4
|
//#region core/src/runtime.d.ts
|
|
5
5
|
declare const createDocument: <S extends ObjectNode>(input: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as OptionalNode, B as DocumentAddress, C as Draft, E as snapshot, F as MemberChange, G as DocumentTreeValue, H as DocumentListConfig, I as ValueTransition, J as Infer, K as FieldNode, N as Change, P as ChangeSet, Q as ObjectShape, S as DocumentImpact, T as replace, U as DocumentNode, V as DocumentAnchor, W as DocumentTreeNode, X as MapNode, Y as ListNode, Z as ObjectNode, _ as Unsubscribe, _t as Validator, a as DocumentDisposedError, at as VariantNode, b as MutationIssueCode, c as DocumentReentrancyError, ct as list, d as LocalHistory, dt as optional, et as PathValueOf, f as ObserverError, ft as table, g as TransactionResult, gt as ParseIssue, h as TransactionRejected, ht as ParseError, i as DocumentDiagnostic, it as TreeNode, l as DocumentRuntime, lt as map, mt as variant, n as CommitSource, nt as SchemaPath, o as DocumentProblem, ot as VariantShape, p as OperationResult, pt as tree, r as DocumentCommit, rt as TableNode, s as DocumentReadable, st as field, tt as ReadonlyValue, u as HistoryState, ut as object, v as Readable, vt as parse, w as Read, x as CollectionImpact, y as MutationIssue } from "./contract-
|
|
2
|
-
import { C as ProjectionError, S as ProjectionDisposedError, _ as ExternalCollectionEvent, b as ExternalValueEvent, d as Input, f as Projection, g as CollectionChange, h as observe, m as input, p as derive, u as incremental, v as ExternalCollectionRead, x as ExternalValueSource, y as ExternalCollectionSource } from "./advanced-
|
|
1
|
+
import { $ as OptionalNode, B as DocumentAddress, C as Draft, E as snapshot, F as MemberChange, G as DocumentTreeValue, H as DocumentListConfig, I as ValueTransition, J as Infer, K as FieldNode, N as Change, P as ChangeSet, Q as ObjectShape, S as DocumentImpact, T as replace, U as DocumentNode, V as DocumentAnchor, W as DocumentTreeNode, X as MapNode, Y as ListNode, Z as ObjectNode, _ as Unsubscribe, _t as Validator, a as DocumentDisposedError, at as VariantNode, b as MutationIssueCode, c as DocumentReentrancyError, ct as list, d as LocalHistory, dt as optional, et as PathValueOf, f as ObserverError, ft as table, g as TransactionResult, gt as ParseIssue, h as TransactionRejected, ht as ParseError, i as DocumentDiagnostic, it as TreeNode, l as DocumentRuntime, lt as map, mt as variant, n as CommitSource, nt as SchemaPath, o as DocumentProblem, ot as VariantShape, p as OperationResult, pt as tree, r as DocumentCommit, rt as TableNode, s as DocumentReadable, st as field, tt as ReadonlyValue, u as HistoryState, ut as object, v as Readable, vt as parse, w as Read, x as CollectionImpact, y as MutationIssue } from "./contract-KG5XnQZt.js";
|
|
2
|
+
import { C as ProjectionError, S as ProjectionDisposedError, _ as ExternalCollectionEvent, b as ExternalValueEvent, d as Input, f as Projection, g as CollectionChange, h as observe, m as input, p as derive, u as incremental, v as ExternalCollectionRead, x as ExternalValueSource, y as ExternalCollectionSource } from "./advanced-FgdTwu5b.js";
|
|
3
3
|
|
|
4
4
|
//#region core/src/runtime.d.ts
|
|
5
5
|
declare const createDocument: <S extends ObjectNode>(input: {
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as DocumentReentrancyError, c as createAccess, d as ParseError, f as checkKey, g as parse, h as equalValue, i as DocumentDisposedError, l as replace, m as copyValue, n as bindRuntimeAccess, o as TransactionRejected, p as checkValue, r as readWith, s as collectionAccess, t as accessOf, u as snapshot } from "./access-
|
|
3
|
-
import { C as list, D as table, E as optional, O as tree, S as field, T as object, _ as createScheduler, a as observe, b as collectionEntryNode, c as projectionRef, d as createCollectionOutput, f as mapRead, g as assertSynchronous, h as assertScope, i as isProjection, k as variant, l as collectionChangeBetween, m as stageCollectionRead, n as derive, o as ownProjection, p as snapshotCollectionView, r as input, s as producerOf, t as incremental, u as collectionView, v as ProjectionDisposedError, w as map, x as compilePath, y as ProjectionError } from "./advanced-
|
|
4
|
-
import { a as documentReadableOwner, d as affected, f as belongs, i as disposeNotification, l as subscribeRoot, n as bindDocumentReadable, o as notify, r as createNotification, s as shareNotification, t as attachProjection, u as subscribeTargets } from "./notification-
|
|
5
|
-
import { n as bindRuntimeDriver, o as decodeChanges, r as disposeRuntimeDriver, s as sealChanges, t as assertRuntimeWritable } from "./driver-
|
|
1
|
+
import { A as install, B as profile, E as equal, F as matches, L as remove, O as indexedKeys, R as toArray, _ as resolveTreeContainer, a as compiledShape, c as debugKey, d as overlaps, f as read$1, g as resolveLocated, h as resolveContainer, i as AddressIndex, k as insert, l as memberKey, n as fail, o as contains, p as resolveAddress, r as invalidValue, s as createAddressResolver, t as MutationRejected, u as nodeAt, v as resolveValue } from "./issue-W0hT8u8D.js";
|
|
2
|
+
import { a as DocumentReentrancyError, c as createAccess, d as ParseError, f as checkKey, g as parse, h as equalValue, i as DocumentDisposedError, l as replace, m as copyValue, n as bindRuntimeAccess, o as TransactionRejected, p as checkValue, r as readWith, s as collectionAccess, t as accessOf, u as snapshot } from "./access-BeSV5ve-.js";
|
|
3
|
+
import { C as list, D as table, E as optional, O as tree, S as field, T as object, _ as createScheduler, a as observe, b as collectionEntryNode, c as projectionRef, d as createCollectionOutput, f as mapRead, g as assertSynchronous, h as assertScope, i as isProjection, k as variant, l as collectionChangeBetween, m as stageCollectionRead, n as derive, o as ownProjection, p as snapshotCollectionView, r as input, s as producerOf, t as incremental, u as collectionView, v as ProjectionDisposedError, w as map, x as compilePath, y as ProjectionError } from "./advanced-COFJtWMT.js";
|
|
4
|
+
import { a as documentReadableOwner, d as affected, f as belongs, i as disposeNotification, l as subscribeRoot, n as bindDocumentReadable, o as notify, r as createNotification, s as shareNotification, t as attachProjection, u as subscribeTargets } from "./notification-Bkjau6B6.js";
|
|
5
|
+
import { n as bindRuntimeDriver, o as decodeChanges, r as disposeRuntimeDriver, s as sealChanges, t as assertRuntimeWritable } from "./driver-CLYJOGDQ.js";
|
|
6
6
|
//#region core/src/impact.ts
|
|
7
7
|
const queries = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
const affectsTarget = (impact, value) => queries.get(impact).affects(value);
|
|
@@ -284,7 +284,7 @@ const installMember = (parent, key, present, value) => {
|
|
|
284
284
|
});
|
|
285
285
|
};
|
|
286
286
|
const orderOf = (node, value) => {
|
|
287
|
-
if (node.kind === "list") return value
|
|
287
|
+
if (node.kind === "list") return toArray(indexedKeys(value, node.keyOf));
|
|
288
288
|
if (node.kind === "table") return [...value.ids];
|
|
289
289
|
throw new Error("Order requires a table or list.");
|
|
290
290
|
};
|
|
@@ -426,7 +426,7 @@ const sealMembers = (fact, changes) => {
|
|
|
426
426
|
}
|
|
427
427
|
let order;
|
|
428
428
|
if (fact.order) {
|
|
429
|
-
const current = fact.node.kind === "list" ?
|
|
429
|
+
const current = fact.node.kind === "list" ? indexedKeys(fact.value, fact.node.keyOf) : fact.value.ids;
|
|
430
430
|
if (!equal(fact.order, current)) {
|
|
431
431
|
const after = orderOf(fact.node, fact.value);
|
|
432
432
|
profile.recorder("publishedOrderItems", after.length);
|