doxum 0.1.7 → 0.1.8
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 +29 -1
- package/dist/{contract-DNZ4D53r.d.ts → contract-CIcftgR3.d.ts} +25 -27
- package/dist/{contract-j3SLGAwh.d.cts → contract-b87yPRDp.d.cts} +25 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js.map +1 -1
- package/dist/integration.d.cts +2 -2
- package/dist/integration.d.ts +2 -2
- package/dist/local-sync.cjs.map +1 -1
- package/dist/local-sync.d.cts +1 -1
- package/dist/local-sync.d.ts +1 -1
- package/dist/local-sync.js.map +1 -1
- package/dist/runtime-0mOFbe_H.cjs.map +1 -1
- package/dist/{runtime-BFmhzPpZ.d.ts → runtime-BzxODO9Q.d.ts} +2 -2
- package/dist/{runtime-B22tuj9A.d.cts → runtime-CRVMB9n1.d.cts} +2 -2
- package/dist/runtime-DF1q9Gje.js.map +1 -1
- package/package.json +1 -1
- package/skills/doxum-runtime/references/guide.en.md +7 -0
- package/skills/doxum-runtime/references/guide.zh-CN.md +5 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $ as DocumentOperation,
|
|
2
|
-
import { a as DocumentSource, c as ProjectionError, d as ProjectionSource, f as ProjectionValue, i as DocumentCollectionSource, l as ProjectionInput, o as ProjectionCollection, p as ValueSpec, r as CollectionSpec, s as ProjectionDisposedError, t as createProjectionRuntime, u as ProjectionRuntime } from "./runtime-
|
|
1
|
+
import { $ as DocumentOperation, A as CollectionImpact, At as Infer, B as TreeWriter, Bt as VariantNode, Ct as DocumentNode, Dt as EntitySchemaNode, Et as DocumentTreeValue, F as DictionaryWriter, Ft as OptionalNode, G as FieldReader, Gt as map, H as CollectionReader, Ht as dict, I as DocumentWriter, It as SchemaPath, J as TreeReader, Jt as schema, K as ListReader, Kt as object, L as FieldWriter, Lt as TableNode, M as MutationIssue, Mt as MapNode, N as MutationIssueCode, Nt as ObjectNode, Ot as FieldNode, P as CollectionWriter, Pt as ObjectShape, Q as DocumentAnchor, R as ListWriter, Rt as TreeNode, St as DocumentListConfig, Tt as DocumentTreeNode, U as DictionaryReader, Ut as field, V as WriterOfNode, Vt as VariantShape, W as DocumentReader, Wt as list, X as DictReplaceOperation, Xt as tree, Y as DictDeleteOperation, Yt as table, Z as DictSetOperation, Zt as variant, _ as Unsubscribe, _t as CollectionNode, a as DocumentProblem, at as FieldSetOperation, bt as DictNode, c as DocumentRuntime, ct as ListRemoveOperation, d as LocalHistory, dt as TreeMoveOperation, et as EntityCreateOperation, f as ObserverError, ft as TreeRemoveOperation, g as TransactionResult, gt as VariantReplaceOperation, ht as ValueClearOperation, i as DocumentDisposedError, it as FieldClearOperation, j as DocumentImpact, jt as ListNode, kt as ImpactTarget, l as DocumentTransaction, lt as ListReplaceOperation, m as PreparedUpdateResult, mt as TreeSetOperation, n as DocumentCommit, nt as EntityMoveOperation, o as DocumentReadable, ot as ListInsertOperation, p as OperationResult, pt as TreeReplaceOperation, q as ReaderOfNode, qt as optional, r as DocumentDiagnostic, rt as EntityRemoveOperation, s as DocumentReentrancyError, st as ListMoveOperation, t as CommitSource, tt as EntityEntry, u as HistoryState, ut as TreeInsertOperation, v as Readable, wt as DocumentSchema, xt as DocumentAddress, yt as CollectionSelector, z as MapWriter, zt as ValueSelector } from "./contract-b87yPRDp.cjs";
|
|
2
|
+
import { a as DocumentSource, c as ProjectionError, d as ProjectionSource, f as ProjectionValue, i as DocumentCollectionSource, l as ProjectionInput, o as ProjectionCollection, p as ValueSpec, r as CollectionSpec, s as ProjectionDisposedError, t as createProjectionRuntime, u as ProjectionRuntime } from "./runtime-CRVMB9n1.cjs";
|
|
3
3
|
|
|
4
4
|
//#region \0rolldown/runtime.js
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region core/src/runtime.d.ts
|
|
7
7
|
declare const createDocument: <TSchema extends DocumentSchema>(input: {
|
|
8
8
|
readonly schema: TSchema;
|
|
9
|
-
readonly initial:
|
|
9
|
+
readonly initial: Infer<TSchema>;
|
|
10
10
|
readonly history?: {
|
|
11
11
|
readonly capacity?: number;
|
|
12
12
|
} | false;
|
|
@@ -27,5 +27,5 @@ declare const bucket: (target: ImpactTarget<unknown>) => string | undefined;
|
|
|
27
27
|
type DocumentSelector<TSchema extends DocumentSchema, TResult> = (read: DocumentReader<TSchema>) => TResult;
|
|
28
28
|
declare const select: <TSchema extends DocumentSchema, TResult>(runtime: DocumentReadable<TSchema>, selector: DocumentSelector<TSchema, TResult>) => TResult;
|
|
29
29
|
//#endregion
|
|
30
|
-
export { type CollectionImpact, type CollectionNode, type CollectionReader, type CollectionSelector, type CollectionSpec, type CollectionWriter, type CommitSource, type DictDeleteOperation, type DictNode, type DictReplaceOperation, type DictSetOperation, type DictionaryReader, type DictionaryWriter, type DocumentAddress, type DocumentAnchor, type DocumentCollectionSource, type DocumentCommit, type DocumentDiagnostic, DocumentDisposedError, type DocumentImpact, type DocumentListConfig, type DocumentNode, type DocumentOperation, type DocumentProblem, type DocumentReadable, type DocumentReader, DocumentReentrancyError, type DocumentRuntime, type DocumentSchema, type DocumentSelector, type DocumentSource, type DocumentTransaction, type DocumentTreeNode, type DocumentTreeValue, type
|
|
30
|
+
export { type CollectionImpact, type CollectionNode, type CollectionReader, type CollectionSelector, type CollectionSpec, type CollectionWriter, type CommitSource, type DictDeleteOperation, type DictNode, type DictReplaceOperation, type DictSetOperation, type DictionaryReader, type DictionaryWriter, type DocumentAddress, type DocumentAnchor, type DocumentCollectionSource, type DocumentCommit, type DocumentDiagnostic, DocumentDisposedError, type DocumentImpact, type DocumentListConfig, type DocumentNode, type DocumentOperation, type DocumentProblem, type DocumentReadable, type DocumentReader, DocumentReentrancyError, type DocumentRuntime, type DocumentSchema, type DocumentSelector, type DocumentSource, type DocumentTransaction, type DocumentTreeNode, type DocumentTreeValue, type DocumentWriter, type EntityCreateOperation, type EntityEntry, type EntityMoveOperation, type EntityRemoveOperation, type EntitySchemaNode, type FieldClearOperation, type FieldNode, type FieldReader, type FieldSetOperation, type FieldWriter, type HistoryState, type ImpactTarget, type Infer, type ListInsertOperation, type ListMoveOperation, type ListNode, type ListReader, type ListRemoveOperation, type ListReplaceOperation, type ListWriter, type LocalHistory, type MapNode, type MapWriter, type MutationIssue, type MutationIssueCode, type ObjectNode, type ObjectShape, type ObserverError, type OperationResult, type OptionalNode, type PreparedUpdateResult, type ProjectionCollection, ProjectionDisposedError, ProjectionError, type ProjectionInput, type ProjectionRuntime, type ProjectionSource, type ProjectionValue, type Readable, type ReaderOfNode, type SchemaPath, type TableNode, type TransactionResult, type TreeInsertOperation, type TreeMoveOperation, type TreeNode, type TreeReader, type TreeRemoveOperation, type TreeReplaceOperation, type TreeSetOperation, type TreeWriter, type Unsubscribe, type ValueClearOperation, type ValueSelector, type ValueSpec, type VariantNode, type VariantReplaceOperation, type VariantShape, type WriterOfNode, asReadable, createDocument, createProjectionRuntime, dict, field, list, map, object, optional, schema, select, table, impact_target_d_exports as target, tree, variant };
|
|
31
31
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as DocumentOperation,
|
|
2
|
-
import { a as DocumentSource, c as ProjectionError, d as ProjectionSource, f as ProjectionValue, i as DocumentCollectionSource, l as ProjectionInput, o as ProjectionCollection, p as ValueSpec, r as CollectionSpec, s as ProjectionDisposedError, t as createProjectionRuntime, u as ProjectionRuntime } from "./runtime-
|
|
1
|
+
import { $ as DocumentOperation, A as CollectionImpact, At as Infer, B as TreeWriter, Bt as VariantNode, Ct as DocumentNode, Dt as EntitySchemaNode, Et as DocumentTreeValue, F as DictionaryWriter, Ft as OptionalNode, G as FieldReader, Gt as map, H as CollectionReader, Ht as dict, I as DocumentWriter, It as SchemaPath, J as TreeReader, Jt as schema, K as ListReader, Kt as object, L as FieldWriter, Lt as TableNode, M as MutationIssue, Mt as MapNode, N as MutationIssueCode, Nt as ObjectNode, Ot as FieldNode, P as CollectionWriter, Pt as ObjectShape, Q as DocumentAnchor, R as ListWriter, Rt as TreeNode, St as DocumentListConfig, Tt as DocumentTreeNode, U as DictionaryReader, Ut as field, V as WriterOfNode, Vt as VariantShape, W as DocumentReader, Wt as list, X as DictReplaceOperation, Xt as tree, Y as DictDeleteOperation, Yt as table, Z as DictSetOperation, Zt as variant, _ as Unsubscribe, _t as CollectionNode, a as DocumentProblem, at as FieldSetOperation, bt as DictNode, c as DocumentRuntime, ct as ListRemoveOperation, d as LocalHistory, dt as TreeMoveOperation, et as EntityCreateOperation, f as ObserverError, ft as TreeRemoveOperation, g as TransactionResult, gt as VariantReplaceOperation, ht as ValueClearOperation, i as DocumentDisposedError, it as FieldClearOperation, j as DocumentImpact, jt as ListNode, kt as ImpactTarget, l as DocumentTransaction, lt as ListReplaceOperation, m as PreparedUpdateResult, mt as TreeSetOperation, n as DocumentCommit, nt as EntityMoveOperation, o as DocumentReadable, ot as ListInsertOperation, p as OperationResult, pt as TreeReplaceOperation, q as ReaderOfNode, qt as optional, r as DocumentDiagnostic, rt as EntityRemoveOperation, s as DocumentReentrancyError, st as ListMoveOperation, t as CommitSource, tt as EntityEntry, u as HistoryState, ut as TreeInsertOperation, v as Readable, wt as DocumentSchema, xt as DocumentAddress, yt as CollectionSelector, z as MapWriter, zt as ValueSelector } from "./contract-CIcftgR3.js";
|
|
2
|
+
import { a as DocumentSource, c as ProjectionError, d as ProjectionSource, f as ProjectionValue, i as DocumentCollectionSource, l as ProjectionInput, o as ProjectionCollection, p as ValueSpec, r as CollectionSpec, s as ProjectionDisposedError, t as createProjectionRuntime, u as ProjectionRuntime } from "./runtime-BzxODO9Q.js";
|
|
3
3
|
|
|
4
4
|
//#region core/src/runtime.d.ts
|
|
5
5
|
declare const createDocument: <TSchema extends DocumentSchema>(input: {
|
|
6
6
|
readonly schema: TSchema;
|
|
7
|
-
readonly initial:
|
|
7
|
+
readonly initial: Infer<TSchema>;
|
|
8
8
|
readonly history?: {
|
|
9
9
|
readonly capacity?: number;
|
|
10
10
|
} | false;
|
|
@@ -25,5 +25,5 @@ declare const bucket: (target: ImpactTarget<unknown>) => string | undefined;
|
|
|
25
25
|
type DocumentSelector<TSchema extends DocumentSchema, TResult> = (read: DocumentReader<TSchema>) => TResult;
|
|
26
26
|
declare const select: <TSchema extends DocumentSchema, TResult>(runtime: DocumentReadable<TSchema>, selector: DocumentSelector<TSchema, TResult>) => TResult;
|
|
27
27
|
//#endregion
|
|
28
|
-
export { type CollectionImpact, type CollectionNode, type CollectionReader, type CollectionSelector, type CollectionSpec, type CollectionWriter, type CommitSource, type DictDeleteOperation, type DictNode, type DictReplaceOperation, type DictSetOperation, type DictionaryReader, type DictionaryWriter, type DocumentAddress, type DocumentAnchor, type DocumentCollectionSource, type DocumentCommit, type DocumentDiagnostic, DocumentDisposedError, type DocumentImpact, type DocumentListConfig, type DocumentNode, type DocumentOperation, type DocumentProblem, type DocumentReadable, type DocumentReader, DocumentReentrancyError, type DocumentRuntime, type DocumentSchema, type DocumentSelector, type DocumentSource, type DocumentTransaction, type DocumentTreeNode, type DocumentTreeValue, type
|
|
28
|
+
export { type CollectionImpact, type CollectionNode, type CollectionReader, type CollectionSelector, type CollectionSpec, type CollectionWriter, type CommitSource, type DictDeleteOperation, type DictNode, type DictReplaceOperation, type DictSetOperation, type DictionaryReader, type DictionaryWriter, type DocumentAddress, type DocumentAnchor, type DocumentCollectionSource, type DocumentCommit, type DocumentDiagnostic, DocumentDisposedError, type DocumentImpact, type DocumentListConfig, type DocumentNode, type DocumentOperation, type DocumentProblem, type DocumentReadable, type DocumentReader, DocumentReentrancyError, type DocumentRuntime, type DocumentSchema, type DocumentSelector, type DocumentSource, type DocumentTransaction, type DocumentTreeNode, type DocumentTreeValue, type DocumentWriter, type EntityCreateOperation, type EntityEntry, type EntityMoveOperation, type EntityRemoveOperation, type EntitySchemaNode, type FieldClearOperation, type FieldNode, type FieldReader, type FieldSetOperation, type FieldWriter, type HistoryState, type ImpactTarget, type Infer, type ListInsertOperation, type ListMoveOperation, type ListNode, type ListReader, type ListRemoveOperation, type ListReplaceOperation, type ListWriter, type LocalHistory, type MapNode, type MapWriter, type MutationIssue, type MutationIssueCode, type ObjectNode, type ObjectShape, type ObserverError, type OperationResult, type OptionalNode, type PreparedUpdateResult, type ProjectionCollection, ProjectionDisposedError, ProjectionError, type ProjectionInput, type ProjectionRuntime, type ProjectionSource, type ProjectionValue, type Readable, type ReaderOfNode, type SchemaPath, type TableNode, type TransactionResult, type TreeInsertOperation, type TreeMoveOperation, type TreeNode, type TreeReader, type TreeRemoveOperation, type TreeReplaceOperation, type TreeSetOperation, type TreeWriter, type Unsubscribe, type ValueClearOperation, type ValueSelector, type ValueSpec, type VariantNode, type VariantReplaceOperation, type VariantShape, type WriterOfNode, asReadable, createDocument, createProjectionRuntime, dict, field, list, map, object, optional, schema, select, table, impact_target_d_exports as target, tree, variant };
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|