@fluidframework/tree 2.81.1 → 2.82.0
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/CHANGELOG.md +125 -0
- package/api-report/tree.alpha.api.md +54 -22
- package/api-report/tree.beta.api.md +150 -1
- package/api-report/tree.legacy.beta.api.md +150 -1
- package/api-report/tree.legacy.public.api.md +1 -0
- package/api-report/tree.public.api.md +1 -0
- package/dist/alpha.d.ts +8 -2
- package/dist/beta.d.ts +3 -0
- package/dist/codec/codec.d.ts +17 -8
- package/dist/codec/codec.d.ts.map +1 -1
- package/dist/codec/codec.js +8 -1
- package/dist/codec/codec.js.map +1 -1
- package/dist/codec/index.d.ts +1 -1
- package/dist/codec/index.d.ts.map +1 -1
- package/dist/codec/index.js +2 -1
- package/dist/codec/index.js.map +1 -1
- package/dist/codec/versioned/codec.d.ts +1 -1
- package/dist/codec/versioned/codec.d.ts.map +1 -1
- package/dist/codec/versioned/codec.js.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +4 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/rebase/changeRebaser.d.ts +3 -2
- package/dist/core/rebase/changeRebaser.d.ts.map +1 -1
- package/dist/core/rebase/changeRebaser.js.map +1 -1
- package/dist/core/rebase/index.d.ts +1 -1
- package/dist/core/rebase/index.d.ts.map +1 -1
- package/dist/core/rebase/index.js +4 -2
- package/dist/core/rebase/index.js.map +1 -1
- package/dist/core/rebase/types.d.ts +23 -3
- package/dist/core/rebase/types.d.ts.map +1 -1
- package/dist/core/rebase/types.js +30 -16
- package/dist/core/rebase/types.js.map +1 -1
- package/dist/core/schema-stored/formatV1.d.ts +2 -2
- package/dist/core/schema-stored/formatV1.d.ts.map +1 -1
- package/dist/core/schema-stored/formatV1.js +0 -5
- package/dist/core/schema-stored/formatV1.js.map +1 -1
- package/dist/core/schema-stored/formatV2.d.ts +11 -10
- package/dist/core/schema-stored/formatV2.d.ts.map +1 -1
- package/dist/core/schema-stored/formatV2.js +1 -6
- package/dist/core/schema-stored/formatV2.js.map +1 -1
- package/dist/core/schema-stored/index.d.ts.map +1 -1
- package/dist/core/schema-stored/index.js.map +1 -1
- package/dist/core/schema-stored/schema.d.ts.map +1 -1
- package/dist/core/schema-stored/schema.js.map +1 -1
- package/dist/core/tree/anchorSet.d.ts.map +1 -1
- package/dist/core/tree/anchorSet.js.map +1 -1
- package/dist/core/tree/delta.d.ts +9 -7
- package/dist/core/tree/delta.d.ts.map +1 -1
- package/dist/core/tree/delta.js.map +1 -1
- package/dist/core/tree/deltaUtil.js +1 -1
- package/dist/core/tree/deltaUtil.js.map +1 -1
- package/dist/core/tree/visitDelta.js +2 -2
- package/dist/core/tree/visitDelta.js.map +1 -1
- package/dist/extensibleSchemaUnion.d.ts +72 -0
- package/dist/extensibleSchemaUnion.d.ts.map +1 -0
- package/dist/extensibleSchemaUnion.js +79 -0
- package/dist/extensibleSchemaUnion.js.map +1 -0
- package/dist/feature-libraries/changeAtomIdBTree.d.ts +4 -2
- package/dist/feature-libraries/changeAtomIdBTree.d.ts.map +1 -1
- package/dist/feature-libraries/changeAtomIdBTree.js +9 -1
- package/dist/feature-libraries/changeAtomIdBTree.js.map +1 -1
- package/dist/feature-libraries/default-schema/defaultFieldKinds.d.ts +1 -3
- package/dist/feature-libraries/default-schema/defaultFieldKinds.d.ts.map +1 -1
- package/dist/feature-libraries/default-schema/defaultFieldKinds.js +20 -21
- package/dist/feature-libraries/default-schema/defaultFieldKinds.js.map +1 -1
- package/dist/feature-libraries/default-schema/index.d.ts +1 -1
- package/dist/feature-libraries/default-schema/index.d.ts.map +1 -1
- package/dist/feature-libraries/default-schema/index.js.map +1 -1
- package/dist/feature-libraries/forest-summary/codec.d.ts +2 -1
- package/dist/feature-libraries/forest-summary/codec.d.ts.map +1 -1
- package/dist/feature-libraries/forest-summary/codec.js.map +1 -1
- package/dist/feature-libraries/forest-summary/forestSummarizer.d.ts.map +1 -1
- package/dist/feature-libraries/forest-summary/forestSummarizer.js +5 -2
- package/dist/feature-libraries/forest-summary/forestSummarizer.js.map +1 -1
- package/dist/feature-libraries/forest-summary/formatCommon.d.ts +1 -39
- package/dist/feature-libraries/forest-summary/formatCommon.d.ts.map +1 -1
- package/dist/feature-libraries/forest-summary/formatCommon.js +1 -2
- package/dist/feature-libraries/forest-summary/formatCommon.js.map +1 -1
- package/dist/feature-libraries/forest-summary/formatV1.d.ts +1 -39
- package/dist/feature-libraries/forest-summary/formatV1.d.ts.map +1 -1
- package/dist/feature-libraries/forest-summary/formatV2.d.ts +1 -39
- package/dist/feature-libraries/forest-summary/formatV2.d.ts.map +1 -1
- package/dist/feature-libraries/forest-summary/incrementalSummaryBuilder.d.ts +1 -1
- package/dist/feature-libraries/forest-summary/incrementalSummaryBuilder.d.ts.map +1 -1
- package/dist/feature-libraries/forest-summary/incrementalSummaryBuilder.js +1 -1
- package/dist/feature-libraries/forest-summary/incrementalSummaryBuilder.js.map +1 -1
- package/dist/feature-libraries/index.d.ts +3 -3
- package/dist/feature-libraries/index.d.ts.map +1 -1
- package/dist/feature-libraries/index.js +4 -3
- package/dist/feature-libraries/index.js.map +1 -1
- package/dist/feature-libraries/modular-schema/defaultRevisionReplacer.d.ts +2 -2
- package/dist/feature-libraries/modular-schema/defaultRevisionReplacer.d.ts.map +1 -1
- package/dist/feature-libraries/modular-schema/defaultRevisionReplacer.js +42 -22
- package/dist/feature-libraries/modular-schema/defaultRevisionReplacer.js.map +1 -1
- package/dist/feature-libraries/modular-schema/genericFieldKind.js +1 -1
- package/dist/feature-libraries/modular-schema/genericFieldKind.js.map +1 -1
- package/dist/feature-libraries/modular-schema/index.d.ts +1 -1
- package/dist/feature-libraries/modular-schema/index.d.ts.map +1 -1
- package/dist/feature-libraries/modular-schema/index.js +2 -1
- package/dist/feature-libraries/modular-schema/index.js.map +1 -1
- package/dist/feature-libraries/modular-schema/modularChangeCodecV1.d.ts +1 -1
- package/dist/feature-libraries/modular-schema/modularChangeCodecV1.d.ts.map +1 -1
- package/dist/feature-libraries/modular-schema/modularChangeCodecV1.js +9 -5
- package/dist/feature-libraries/modular-schema/modularChangeCodecV1.js.map +1 -1
- package/dist/feature-libraries/modular-schema/modularChangeCodecs.d.ts +11 -1
- package/dist/feature-libraries/modular-schema/modularChangeCodecs.d.ts.map +1 -1
- package/dist/feature-libraries/modular-schema/modularChangeCodecs.js +30 -7
- package/dist/feature-libraries/modular-schema/modularChangeCodecs.js.map +1 -1
- package/dist/feature-libraries/modular-schema/modularChangeFamily.d.ts.map +1 -1
- package/dist/feature-libraries/modular-schema/modularChangeFamily.js +38 -27
- package/dist/feature-libraries/modular-schema/modularChangeFamily.js.map +1 -1
- package/dist/feature-libraries/modular-schema/modularChangeFormatV1.d.ts +10 -127
- package/dist/feature-libraries/modular-schema/modularChangeFormatV1.d.ts.map +1 -1
- package/dist/feature-libraries/modular-schema/modularChangeFormatV1.js +2 -4
- package/dist/feature-libraries/modular-schema/modularChangeFormatV1.js.map +1 -1
- package/dist/feature-libraries/modular-schema/modularChangeFormatV2.d.ts +3 -79
- package/dist/feature-libraries/modular-schema/modularChangeFormatV2.d.ts.map +1 -1
- package/dist/feature-libraries/optional-field/optionalField.js +1 -1
- package/dist/feature-libraries/optional-field/optionalField.js.map +1 -1
- package/dist/feature-libraries/optional-field/requiredField.d.ts.map +1 -1
- package/dist/feature-libraries/optional-field/requiredField.js.map +1 -1
- package/dist/feature-libraries/schema-edits/schemaChangeFormat.d.ts +2 -2
- package/dist/feature-libraries/schema-index/codec.js.map +1 -1
- package/dist/feature-libraries/schema-index/formatV2.d.ts +4 -4
- package/dist/feature-libraries/schema-index/schemaSummarizer.js +1 -1
- package/dist/feature-libraries/schema-index/schemaSummarizer.js.map +1 -1
- package/dist/feature-libraries/sequence-field/invert.js +2 -2
- package/dist/feature-libraries/sequence-field/invert.js.map +1 -1
- package/dist/feature-libraries/sequence-field/replaceRevisions.js +16 -16
- package/dist/feature-libraries/sequence-field/replaceRevisions.js.map +1 -1
- package/dist/feature-libraries/sequence-field/sequenceFieldToDelta.js +1 -1
- package/dist/feature-libraries/sequence-field/sequenceFieldToDelta.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/legacy.d.ts +3 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/shared-tree/independentView.d.ts +36 -13
- package/dist/shared-tree/independentView.d.ts.map +1 -1
- package/dist/shared-tree/independentView.js +1 -0
- package/dist/shared-tree/independentView.js.map +1 -1
- package/dist/shared-tree/index.d.ts +1 -1
- package/dist/shared-tree/index.d.ts.map +1 -1
- package/dist/shared-tree/index.js.map +1 -1
- package/dist/shared-tree/schematizingTreeView.d.ts +10 -0
- package/dist/shared-tree/schematizingTreeView.d.ts.map +1 -1
- package/dist/shared-tree/schematizingTreeView.js +25 -9
- package/dist/shared-tree/schematizingTreeView.js.map +1 -1
- package/dist/shared-tree/sharedTree.d.ts +3 -3
- package/dist/shared-tree/sharedTree.d.ts.map +1 -1
- package/dist/shared-tree/sharedTree.js +8 -32
- package/dist/shared-tree/sharedTree.js.map +1 -1
- package/dist/shared-tree/sharedTreeChangeCodecs.d.ts +11 -3
- package/dist/shared-tree/sharedTreeChangeCodecs.d.ts.map +1 -1
- package/dist/shared-tree/sharedTreeChangeCodecs.js +38 -4
- package/dist/shared-tree/sharedTreeChangeCodecs.js.map +1 -1
- package/dist/shared-tree/sharedTreeChangeFormat.d.ts +4 -4
- package/dist/shared-tree/tree.js +1 -1
- package/dist/shared-tree/tree.js.map +1 -1
- package/dist/shared-tree/treeCheckout.d.ts +20 -0
- package/dist/shared-tree/treeCheckout.d.ts.map +1 -1
- package/dist/shared-tree/treeCheckout.js +39 -3
- package/dist/shared-tree/treeCheckout.js.map +1 -1
- package/dist/shared-tree-core/editManagerSummarizer.js +1 -1
- package/dist/shared-tree-core/editManagerSummarizer.js.map +1 -1
- package/dist/shared-tree-core/messageCodecV1ToV4.d.ts.map +1 -1
- package/dist/shared-tree-core/messageCodecV1ToV4.js +2 -2
- package/dist/shared-tree-core/messageCodecV1ToV4.js.map +1 -1
- package/dist/shared-tree-core/transaction.d.ts +14 -3
- package/dist/shared-tree-core/transaction.d.ts.map +1 -1
- package/dist/shared-tree-core/transaction.js +59 -16
- package/dist/shared-tree-core/transaction.js.map +1 -1
- package/dist/shared-tree-core/versionedSummarizer.d.ts.map +1 -1
- package/dist/shared-tree-core/versionedSummarizer.js +1 -1
- package/dist/shared-tree-core/versionedSummarizer.js.map +1 -1
- package/dist/simple-tree/api/index.d.ts +1 -1
- package/dist/simple-tree/api/index.d.ts.map +1 -1
- package/dist/simple-tree/api/index.js +3 -2
- package/dist/simple-tree/api/index.js.map +1 -1
- package/dist/simple-tree/api/schemaCreationUtilities.d.ts +9 -0
- package/dist/simple-tree/api/schemaCreationUtilities.d.ts.map +1 -1
- package/dist/simple-tree/api/schemaCreationUtilities.js +16 -1
- package/dist/simple-tree/api/schemaCreationUtilities.js.map +1 -1
- package/dist/simple-tree/api/simpleTreeIndex.js.map +1 -1
- package/dist/simple-tree/api/transactionTypes.d.ts +10 -0
- package/dist/simple-tree/api/transactionTypes.d.ts.map +1 -1
- package/dist/simple-tree/api/transactionTypes.js.map +1 -1
- package/dist/simple-tree/api/tree.d.ts +81 -6
- package/dist/simple-tree/api/tree.d.ts.map +1 -1
- package/dist/simple-tree/api/tree.js.map +1 -1
- package/dist/simple-tree/core/treeNodeSchema.d.ts.map +1 -1
- package/dist/simple-tree/core/treeNodeSchema.js.map +1 -1
- package/dist/simple-tree/index.d.ts +2 -2
- package/dist/simple-tree/index.d.ts.map +1 -1
- package/dist/simple-tree/index.js +4 -2
- package/dist/simple-tree/index.js.map +1 -1
- package/dist/simple-tree/leafNodeSchema.d.ts.map +1 -1
- package/dist/simple-tree/leafNodeSchema.js.map +1 -1
- package/dist/simple-tree/node-kinds/array/arrayNode.d.ts +63 -0
- package/dist/simple-tree/node-kinds/array/arrayNode.d.ts.map +1 -1
- package/dist/simple-tree/node-kinds/array/arrayNode.js +43 -1
- package/dist/simple-tree/node-kinds/array/arrayNode.js.map +1 -1
- package/dist/simple-tree/node-kinds/array/index.d.ts +1 -1
- package/dist/simple-tree/node-kinds/array/index.d.ts.map +1 -1
- package/dist/simple-tree/node-kinds/array/index.js +2 -1
- package/dist/simple-tree/node-kinds/array/index.js.map +1 -1
- package/dist/simple-tree/node-kinds/index.d.ts +1 -1
- package/dist/simple-tree/node-kinds/index.d.ts.map +1 -1
- package/dist/simple-tree/node-kinds/index.js +2 -1
- package/dist/simple-tree/node-kinds/index.js.map +1 -1
- package/dist/simple-tree/node-kinds/object/objectNode.d.ts.map +1 -1
- package/dist/simple-tree/node-kinds/object/objectNode.js.map +1 -1
- package/dist/tableSchema.d.ts +71 -48
- package/dist/tableSchema.d.ts.map +1 -1
- package/dist/tableSchema.js +200 -98
- package/dist/tableSchema.js.map +1 -1
- package/dist/text/textDomainFormatted.js +1 -1
- package/dist/text/textDomainFormatted.js.map +1 -1
- package/dist/util/bTreeUtils.d.ts +30 -4
- package/dist/util/bTreeUtils.d.ts.map +1 -1
- package/dist/util/bTreeUtils.js +29 -17
- package/dist/util/bTreeUtils.js.map +1 -1
- package/dist/util/brand.d.ts.map +1 -1
- package/dist/util/brand.js.map +1 -1
- package/dist/util/brandedMap.d.ts.map +1 -1
- package/dist/util/brandedMap.js.map +1 -1
- package/dist/util/breakable.d.ts.map +1 -1
- package/dist/util/breakable.js +2 -1
- package/dist/util/breakable.js.map +1 -1
- package/dist/util/index.d.ts +2 -2
- package/dist/util/index.d.ts.map +1 -1
- package/dist/util/index.js +6 -3
- package/dist/util/index.js.map +1 -1
- package/dist/util/opaque.d.ts.map +1 -1
- package/dist/util/opaque.js.map +1 -1
- package/dist/util/rangeMap.d.ts +3 -2
- package/dist/util/rangeMap.d.ts.map +1 -1
- package/dist/util/rangeMap.js +7 -1
- package/dist/util/rangeMap.js.map +1 -1
- package/dist/util/readSnapshotBlob.d.ts +1 -1
- package/dist/util/readSnapshotBlob.d.ts.map +1 -1
- package/dist/util/readSnapshotBlob.js.map +1 -1
- package/dist/util/typeCheck.d.ts.map +1 -1
- package/dist/util/typeCheck.js.map +1 -1
- package/dist/util/utils.d.ts +20 -16
- package/dist/util/utils.d.ts.map +1 -1
- package/dist/util/utils.js +49 -17
- package/dist/util/utils.js.map +1 -1
- package/eslint.config.mts +0 -9
- package/lib/alpha.d.ts +8 -2
- package/lib/beta.d.ts +3 -0
- package/lib/codec/codec.d.ts +17 -8
- package/lib/codec/codec.d.ts.map +1 -1
- package/lib/codec/codec.js +6 -0
- package/lib/codec/codec.js.map +1 -1
- package/lib/codec/index.d.ts +1 -1
- package/lib/codec/index.d.ts.map +1 -1
- package/lib/codec/index.js +1 -1
- package/lib/codec/index.js.map +1 -1
- package/lib/codec/versioned/codec.d.ts +1 -1
- package/lib/codec/versioned/codec.d.ts.map +1 -1
- package/lib/codec/versioned/codec.js.map +1 -1
- package/lib/core/index.d.ts +1 -1
- package/lib/core/index.d.ts.map +1 -1
- package/lib/core/index.js +1 -1
- package/lib/core/index.js.map +1 -1
- package/lib/core/rebase/changeRebaser.d.ts +3 -2
- package/lib/core/rebase/changeRebaser.d.ts.map +1 -1
- package/lib/core/rebase/changeRebaser.js.map +1 -1
- package/lib/core/rebase/index.d.ts +1 -1
- package/lib/core/rebase/index.d.ts.map +1 -1
- package/lib/core/rebase/index.js +1 -1
- package/lib/core/rebase/index.js.map +1 -1
- package/lib/core/rebase/types.d.ts +23 -3
- package/lib/core/rebase/types.d.ts.map +1 -1
- package/lib/core/rebase/types.js +27 -15
- package/lib/core/rebase/types.js.map +1 -1
- package/lib/core/schema-stored/formatV1.d.ts +2 -2
- package/lib/core/schema-stored/formatV1.d.ts.map +1 -1
- package/lib/core/schema-stored/formatV1.js +0 -5
- package/lib/core/schema-stored/formatV1.js.map +1 -1
- package/lib/core/schema-stored/formatV2.d.ts +11 -10
- package/lib/core/schema-stored/formatV2.d.ts.map +1 -1
- package/lib/core/schema-stored/formatV2.js +1 -6
- package/lib/core/schema-stored/formatV2.js.map +1 -1
- package/lib/core/schema-stored/index.d.ts.map +1 -1
- package/lib/core/schema-stored/index.js +2 -0
- package/lib/core/schema-stored/index.js.map +1 -1
- package/lib/core/schema-stored/schema.d.ts.map +1 -1
- package/lib/core/schema-stored/schema.js.map +1 -1
- package/lib/core/tree/anchorSet.d.ts.map +1 -1
- package/lib/core/tree/anchorSet.js.map +1 -1
- package/lib/core/tree/delta.d.ts +9 -7
- package/lib/core/tree/delta.d.ts.map +1 -1
- package/lib/core/tree/delta.js.map +1 -1
- package/lib/core/tree/deltaUtil.js +1 -1
- package/lib/core/tree/deltaUtil.js.map +1 -1
- package/lib/core/tree/visitDelta.js +2 -2
- package/lib/core/tree/visitDelta.js.map +1 -1
- package/lib/extensibleSchemaUnion.d.ts +72 -0
- package/lib/extensibleSchemaUnion.d.ts.map +1 -0
- package/lib/extensibleSchemaUnion.js +76 -0
- package/lib/extensibleSchemaUnion.js.map +1 -0
- package/lib/feature-libraries/changeAtomIdBTree.d.ts +4 -2
- package/lib/feature-libraries/changeAtomIdBTree.d.ts.map +1 -1
- package/lib/feature-libraries/changeAtomIdBTree.js +7 -0
- package/lib/feature-libraries/changeAtomIdBTree.js.map +1 -1
- package/lib/feature-libraries/default-schema/defaultFieldKinds.d.ts +1 -3
- package/lib/feature-libraries/default-schema/defaultFieldKinds.d.ts.map +1 -1
- package/lib/feature-libraries/default-schema/defaultFieldKinds.js +4 -5
- package/lib/feature-libraries/default-schema/defaultFieldKinds.js.map +1 -1
- package/lib/feature-libraries/default-schema/index.d.ts +1 -1
- package/lib/feature-libraries/default-schema/index.d.ts.map +1 -1
- package/lib/feature-libraries/default-schema/index.js.map +1 -1
- package/lib/feature-libraries/forest-summary/codec.d.ts +2 -1
- package/lib/feature-libraries/forest-summary/codec.d.ts.map +1 -1
- package/lib/feature-libraries/forest-summary/codec.js.map +1 -1
- package/lib/feature-libraries/forest-summary/forestSummarizer.d.ts.map +1 -1
- package/lib/feature-libraries/forest-summary/forestSummarizer.js +6 -3
- package/lib/feature-libraries/forest-summary/forestSummarizer.js.map +1 -1
- package/lib/feature-libraries/forest-summary/formatCommon.d.ts +1 -39
- package/lib/feature-libraries/forest-summary/formatCommon.d.ts.map +1 -1
- package/lib/feature-libraries/forest-summary/formatCommon.js +2 -3
- package/lib/feature-libraries/forest-summary/formatCommon.js.map +1 -1
- package/lib/feature-libraries/forest-summary/formatV1.d.ts +1 -39
- package/lib/feature-libraries/forest-summary/formatV1.d.ts.map +1 -1
- package/lib/feature-libraries/forest-summary/formatV2.d.ts +1 -39
- package/lib/feature-libraries/forest-summary/formatV2.d.ts.map +1 -1
- package/lib/feature-libraries/forest-summary/incrementalSummaryBuilder.d.ts +1 -1
- package/lib/feature-libraries/forest-summary/incrementalSummaryBuilder.d.ts.map +1 -1
- package/lib/feature-libraries/forest-summary/incrementalSummaryBuilder.js +1 -1
- package/lib/feature-libraries/forest-summary/incrementalSummaryBuilder.js.map +1 -1
- package/lib/feature-libraries/index.d.ts +3 -3
- package/lib/feature-libraries/index.d.ts.map +1 -1
- package/lib/feature-libraries/index.js +3 -3
- package/lib/feature-libraries/index.js.map +1 -1
- package/lib/feature-libraries/modular-schema/defaultRevisionReplacer.d.ts +2 -2
- package/lib/feature-libraries/modular-schema/defaultRevisionReplacer.d.ts.map +1 -1
- package/lib/feature-libraries/modular-schema/defaultRevisionReplacer.js +41 -21
- package/lib/feature-libraries/modular-schema/defaultRevisionReplacer.js.map +1 -1
- package/lib/feature-libraries/modular-schema/genericFieldKind.js +1 -1
- package/lib/feature-libraries/modular-schema/genericFieldKind.js.map +1 -1
- package/lib/feature-libraries/modular-schema/index.d.ts +1 -1
- package/lib/feature-libraries/modular-schema/index.d.ts.map +1 -1
- package/lib/feature-libraries/modular-schema/index.js +1 -1
- package/lib/feature-libraries/modular-schema/index.js.map +1 -1
- package/lib/feature-libraries/modular-schema/modularChangeCodecV1.d.ts +1 -1
- package/lib/feature-libraries/modular-schema/modularChangeCodecV1.d.ts.map +1 -1
- package/lib/feature-libraries/modular-schema/modularChangeCodecV1.js +10 -6
- package/lib/feature-libraries/modular-schema/modularChangeCodecV1.js.map +1 -1
- package/lib/feature-libraries/modular-schema/modularChangeCodecs.d.ts +11 -1
- package/lib/feature-libraries/modular-schema/modularChangeCodecs.d.ts.map +1 -1
- package/lib/feature-libraries/modular-schema/modularChangeCodecs.js +29 -6
- package/lib/feature-libraries/modular-schema/modularChangeCodecs.js.map +1 -1
- package/lib/feature-libraries/modular-schema/modularChangeFamily.d.ts.map +1 -1
- package/lib/feature-libraries/modular-schema/modularChangeFamily.js +41 -30
- package/lib/feature-libraries/modular-schema/modularChangeFamily.js.map +1 -1
- package/lib/feature-libraries/modular-schema/modularChangeFormatV1.d.ts +10 -127
- package/lib/feature-libraries/modular-schema/modularChangeFormatV1.d.ts.map +1 -1
- package/lib/feature-libraries/modular-schema/modularChangeFormatV1.js +2 -4
- package/lib/feature-libraries/modular-schema/modularChangeFormatV1.js.map +1 -1
- package/lib/feature-libraries/modular-schema/modularChangeFormatV2.d.ts +3 -79
- package/lib/feature-libraries/modular-schema/modularChangeFormatV2.d.ts.map +1 -1
- package/lib/feature-libraries/optional-field/optionalField.js +1 -1
- package/lib/feature-libraries/optional-field/optionalField.js.map +1 -1
- package/lib/feature-libraries/optional-field/requiredField.d.ts.map +1 -1
- package/lib/feature-libraries/optional-field/requiredField.js.map +1 -1
- package/lib/feature-libraries/schema-edits/schemaChangeFormat.d.ts +2 -2
- package/lib/feature-libraries/schema-index/codec.js.map +1 -1
- package/lib/feature-libraries/schema-index/formatV2.d.ts +4 -4
- package/lib/feature-libraries/schema-index/schemaSummarizer.js +1 -1
- package/lib/feature-libraries/schema-index/schemaSummarizer.js.map +1 -1
- package/lib/feature-libraries/sequence-field/invert.js +2 -2
- package/lib/feature-libraries/sequence-field/invert.js.map +1 -1
- package/lib/feature-libraries/sequence-field/replaceRevisions.js +16 -16
- package/lib/feature-libraries/sequence-field/replaceRevisions.js.map +1 -1
- package/lib/feature-libraries/sequence-field/sequenceFieldToDelta.js +1 -1
- package/lib/feature-libraries/sequence-field/sequenceFieldToDelta.js.map +1 -1
- package/lib/index.d.ts +5 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -3
- package/lib/index.js.map +1 -1
- package/lib/legacy.d.ts +3 -0
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/shared-tree/independentView.d.ts +36 -13
- package/lib/shared-tree/independentView.d.ts.map +1 -1
- package/lib/shared-tree/independentView.js +1 -0
- package/lib/shared-tree/independentView.js.map +1 -1
- package/lib/shared-tree/index.d.ts +1 -1
- package/lib/shared-tree/index.d.ts.map +1 -1
- package/lib/shared-tree/index.js.map +1 -1
- package/lib/shared-tree/schematizingTreeView.d.ts +10 -0
- package/lib/shared-tree/schematizingTreeView.d.ts.map +1 -1
- package/lib/shared-tree/schematizingTreeView.js +25 -9
- package/lib/shared-tree/schematizingTreeView.js.map +1 -1
- package/lib/shared-tree/sharedTree.d.ts +3 -3
- package/lib/shared-tree/sharedTree.d.ts.map +1 -1
- package/lib/shared-tree/sharedTree.js +10 -34
- package/lib/shared-tree/sharedTree.js.map +1 -1
- package/lib/shared-tree/sharedTreeChangeCodecs.d.ts +11 -3
- package/lib/shared-tree/sharedTreeChangeCodecs.d.ts.map +1 -1
- package/lib/shared-tree/sharedTreeChangeCodecs.js +39 -5
- package/lib/shared-tree/sharedTreeChangeCodecs.js.map +1 -1
- package/lib/shared-tree/sharedTreeChangeFormat.d.ts +4 -4
- package/lib/shared-tree/tree.js +1 -1
- package/lib/shared-tree/tree.js.map +1 -1
- package/lib/shared-tree/treeCheckout.d.ts +20 -0
- package/lib/shared-tree/treeCheckout.d.ts.map +1 -1
- package/lib/shared-tree/treeCheckout.js +39 -3
- package/lib/shared-tree/treeCheckout.js.map +1 -1
- package/lib/shared-tree-core/editManagerSummarizer.js +1 -1
- package/lib/shared-tree-core/editManagerSummarizer.js.map +1 -1
- package/lib/shared-tree-core/messageCodecV1ToV4.d.ts.map +1 -1
- package/lib/shared-tree-core/messageCodecV1ToV4.js +2 -2
- package/lib/shared-tree-core/messageCodecV1ToV4.js.map +1 -1
- package/lib/shared-tree-core/transaction.d.ts +14 -3
- package/lib/shared-tree-core/transaction.d.ts.map +1 -1
- package/lib/shared-tree-core/transaction.js +61 -18
- package/lib/shared-tree-core/transaction.js.map +1 -1
- package/lib/shared-tree-core/versionedSummarizer.d.ts.map +1 -1
- package/lib/shared-tree-core/versionedSummarizer.js +1 -1
- package/lib/shared-tree-core/versionedSummarizer.js.map +1 -1
- package/lib/simple-tree/api/index.d.ts +1 -1
- package/lib/simple-tree/api/index.d.ts.map +1 -1
- package/lib/simple-tree/api/index.js +1 -1
- package/lib/simple-tree/api/index.js.map +1 -1
- package/lib/simple-tree/api/schemaCreationUtilities.d.ts +9 -0
- package/lib/simple-tree/api/schemaCreationUtilities.d.ts.map +1 -1
- package/lib/simple-tree/api/schemaCreationUtilities.js +14 -0
- package/lib/simple-tree/api/schemaCreationUtilities.js.map +1 -1
- package/lib/simple-tree/api/simpleTreeIndex.js.map +1 -1
- package/lib/simple-tree/api/transactionTypes.d.ts +10 -0
- package/lib/simple-tree/api/transactionTypes.d.ts.map +1 -1
- package/lib/simple-tree/api/transactionTypes.js.map +1 -1
- package/lib/simple-tree/api/tree.d.ts +81 -6
- package/lib/simple-tree/api/tree.d.ts.map +1 -1
- package/lib/simple-tree/api/tree.js.map +1 -1
- package/lib/simple-tree/core/treeNodeSchema.d.ts.map +1 -1
- package/lib/simple-tree/core/treeNodeSchema.js.map +1 -1
- package/lib/simple-tree/index.d.ts +2 -2
- package/lib/simple-tree/index.d.ts.map +1 -1
- package/lib/simple-tree/index.js +2 -2
- package/lib/simple-tree/index.js.map +1 -1
- package/lib/simple-tree/leafNodeSchema.d.ts.map +1 -1
- package/lib/simple-tree/leafNodeSchema.js.map +1 -1
- package/lib/simple-tree/node-kinds/array/arrayNode.d.ts +63 -0
- package/lib/simple-tree/node-kinds/array/arrayNode.d.ts.map +1 -1
- package/lib/simple-tree/node-kinds/array/arrayNode.js +41 -0
- package/lib/simple-tree/node-kinds/array/arrayNode.js.map +1 -1
- package/lib/simple-tree/node-kinds/array/index.d.ts +1 -1
- package/lib/simple-tree/node-kinds/array/index.d.ts.map +1 -1
- package/lib/simple-tree/node-kinds/array/index.js +1 -1
- package/lib/simple-tree/node-kinds/array/index.js.map +1 -1
- package/lib/simple-tree/node-kinds/index.d.ts +1 -1
- package/lib/simple-tree/node-kinds/index.d.ts.map +1 -1
- package/lib/simple-tree/node-kinds/index.js +1 -1
- package/lib/simple-tree/node-kinds/index.js.map +1 -1
- package/lib/simple-tree/node-kinds/object/objectNode.d.ts.map +1 -1
- package/lib/simple-tree/node-kinds/object/objectNode.js.map +1 -1
- package/lib/tableSchema.d.ts +71 -48
- package/lib/tableSchema.d.ts.map +1 -1
- package/lib/tableSchema.js +201 -99
- package/lib/tableSchema.js.map +1 -1
- package/lib/text/textDomainFormatted.js +1 -1
- package/lib/text/textDomainFormatted.js.map +1 -1
- package/lib/util/bTreeUtils.d.ts +30 -4
- package/lib/util/bTreeUtils.d.ts.map +1 -1
- package/lib/util/bTreeUtils.js +27 -16
- package/lib/util/bTreeUtils.js.map +1 -1
- package/lib/util/brand.d.ts.map +1 -1
- package/lib/util/brand.js.map +1 -1
- package/lib/util/brandedMap.d.ts.map +1 -1
- package/lib/util/brandedMap.js.map +1 -1
- package/lib/util/breakable.d.ts.map +1 -1
- package/lib/util/breakable.js +2 -1
- package/lib/util/breakable.js.map +1 -1
- package/lib/util/index.d.ts +2 -2
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +2 -2
- package/lib/util/index.js.map +1 -1
- package/lib/util/opaque.d.ts.map +1 -1
- package/lib/util/opaque.js.map +1 -1
- package/lib/util/rangeMap.d.ts +3 -2
- package/lib/util/rangeMap.d.ts.map +1 -1
- package/lib/util/rangeMap.js +7 -1
- package/lib/util/rangeMap.js.map +1 -1
- package/lib/util/readSnapshotBlob.d.ts +1 -1
- package/lib/util/readSnapshotBlob.d.ts.map +1 -1
- package/lib/util/readSnapshotBlob.js.map +1 -1
- package/lib/util/typeCheck.d.ts.map +1 -1
- package/lib/util/typeCheck.js.map +1 -1
- package/lib/util/utils.d.ts +20 -16
- package/lib/util/utils.d.ts.map +1 -1
- package/lib/util/utils.js +44 -15
- package/lib/util/utils.js.map +1 -1
- package/package.json +22 -22
- package/src/codec/codec.ts +30 -11
- package/src/codec/index.ts +2 -0
- package/src/codec/versioned/codec.ts +9 -13
- package/src/core/index.ts +3 -1
- package/src/core/rebase/changeRebaser.ts +3 -2
- package/src/core/rebase/index.ts +3 -1
- package/src/core/rebase/types.ts +51 -13
- package/src/core/schema-stored/formatV1.ts +2 -4
- package/src/core/schema-stored/formatV2.ts +9 -7
- package/src/core/schema-stored/index.ts +2 -0
- package/src/core/schema-stored/schema.ts +4 -1
- package/src/core/tree/anchorSet.ts +1 -3
- package/src/core/tree/delta.ts +9 -7
- package/src/core/tree/deltaUtil.ts +1 -1
- package/src/core/tree/visitDelta.ts +2 -2
- package/src/extensibleSchemaUnion.ts +135 -0
- package/src/feature-libraries/changeAtomIdBTree.ts +17 -2
- package/src/feature-libraries/default-schema/defaultFieldKinds.ts +5 -6
- package/src/feature-libraries/default-schema/index.ts +0 -1
- package/src/feature-libraries/forest-summary/codec.ts +7 -2
- package/src/feature-libraries/forest-summary/forestSummarizer.ts +15 -3
- package/src/feature-libraries/forest-summary/formatCommon.ts +2 -3
- package/src/feature-libraries/forest-summary/incrementalSummaryBuilder.ts +4 -5
- package/src/feature-libraries/index.ts +3 -2
- package/src/feature-libraries/modular-schema/defaultRevisionReplacer.ts +57 -31
- package/src/feature-libraries/modular-schema/genericFieldKind.ts +1 -1
- package/src/feature-libraries/modular-schema/index.ts +4 -1
- package/src/feature-libraries/modular-schema/modularChangeCodecV1.ts +7 -6
- package/src/feature-libraries/modular-schema/modularChangeCodecs.ts +32 -7
- package/src/feature-libraries/modular-schema/modularChangeFamily.ts +54 -33
- package/src/feature-libraries/modular-schema/modularChangeFormatV1.ts +2 -4
- package/src/feature-libraries/optional-field/optionalField.ts +1 -1
- package/src/feature-libraries/optional-field/requiredField.ts +2 -4
- package/src/feature-libraries/schema-index/codec.ts +1 -1
- package/src/feature-libraries/schema-index/schemaSummarizer.ts +1 -1
- package/src/feature-libraries/sequence-field/invert.ts +2 -2
- package/src/feature-libraries/sequence-field/replaceRevisions.ts +17 -10
- package/src/feature-libraries/sequence-field/sequenceFieldToDelta.ts +1 -1
- package/src/index.ts +12 -7
- package/src/packageVersion.ts +1 -1
- package/src/shared-tree/independentView.ts +42 -6
- package/src/shared-tree/index.ts +2 -0
- package/src/shared-tree/schematizingTreeView.ts +63 -18
- package/src/shared-tree/sharedTree.ts +19 -37
- package/src/shared-tree/sharedTreeChangeCodecs.ts +43 -9
- package/src/shared-tree/tree.ts +1 -1
- package/src/shared-tree/treeCheckout.ts +50 -3
- package/src/shared-tree-core/editManagerSummarizer.ts +1 -1
- package/src/shared-tree-core/messageCodecV1ToV4.ts +4 -3
- package/src/shared-tree-core/transaction.ts +125 -23
- package/src/shared-tree-core/versionedSummarizer.ts +3 -2
- package/src/simple-tree/api/index.ts +1 -0
- package/src/simple-tree/api/schemaCreationUtilities.ts +35 -5
- package/src/simple-tree/api/simpleTreeIndex.ts +1 -1
- package/src/simple-tree/api/transactionTypes.ts +10 -0
- package/src/simple-tree/api/tree.ts +88 -6
- package/src/simple-tree/core/treeNodeSchema.ts +5 -8
- package/src/simple-tree/index.ts +3 -0
- package/src/simple-tree/leafNodeSchema.ts +3 -2
- package/src/simple-tree/node-kinds/array/arrayNode.ts +86 -0
- package/src/simple-tree/node-kinds/array/index.ts +2 -0
- package/src/simple-tree/node-kinds/index.ts +2 -0
- package/src/simple-tree/node-kinds/object/objectNode.ts +19 -18
- package/src/tableSchema.ts +280 -140
- package/src/text/textDomainFormatted.ts +1 -1
- package/src/util/bTreeUtils.ts +45 -26
- package/src/util/brand.ts +4 -12
- package/src/util/brandedMap.ts +2 -6
- package/src/util/breakable.ts +3 -2
- package/src/util/index.ts +9 -3
- package/src/util/opaque.ts +2 -6
- package/src/util/rangeMap.ts +11 -5
- package/src/util/readSnapshotBlob.ts +3 -3
- package/src/util/typeCheck.ts +11 -9
- package/src/util/utils.ts +57 -28
- package/biome.jsonc +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableSchema.d.ts","sourceRoot":"","sources":["../src/tableSchema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAO,EACN,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAEzB,KAAK,0CAA0C,EAC/C,KAAK,QAAQ,EACb,iBAAiB,EACjB,KAAK,gBAAgB,EAErB,KAAK,QAAQ,EACb,KAAK,gCAAgC,EAErC,KAAK,mBAAmB,EACxB,KAAK,QAAQ,EACb,KAAK,0BAA0B,EAC/B,KAAK,oCAAoC,EACzC,KAAK,gBAAgB,EACrB,aAAa,EAEb,KAAK,mBAAmB,EAExB,KAAK,cAAc,EAInB,kBAAkB,EAClB,MAAM,wBAAwB,CAAC;AAsBhC;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU,CAC1B,WAAW,SAAS,oBAAoB,EACxC,YAAY,SAAS,mBAAmB,GAAG,mBAAmB,CAC7D,SAAQ,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,YAAY,CAAC;IACnD;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CAC5C;AAED;;;;;;;;;GASG;AACH,yBAAiB,kBAAkB,CAAC;IACnC;;;;;;;;;OASG;IACH,KAAY,iBAAiB,CAAC,WAAW,SAAS,oBAAoB,IAAI,QAAQ,GACjF,SAAS,gCA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AS,oBAAoB,EACxC,KAAK,CAAC,IAAI,SAAS,kBAAkB,CAAC,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,EAEtE,MAAM,EAAE,kBAAkB,CAAC,uBAAuB,CACjD,UAAU,EACV,iBAAiB,CAAC,UAAU,CAAC,EAC7B,KAAK,CACL,GAAG;QACH,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;KACnB,GACC,kBAAkB,CAAC,eAAe,CACpC,UAAU,EACV,KAAK,EACL,kBAAkB,CAAC,gBAAgB,CAClC,UAAU,EACV,KAAK,EACL,kBAAkB,CAAC,gBAAgB,CACnC,EACD,IAAI,CACJ,CAAC;IACF;;;;;;;;OAQG;IACH,SAAgB,KAAK,CACpB,KAAK,CAAC,UAAU,SAAS,MAAM,EAC/B,KAAK,CAAC,KAAK,SAAS,oBAAoB,EACxC,KAAK,CAAC,OAAO,SAAS,kBAAkB,CAAC,gBAAgB,CAAC,UAAU,EAAE,KAAK,CAAC,EAC5E,KAAK,CAAC,IAAI,SAAS,kBAAkB,CAAC,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,EAEtE,MAAM,EAAE,kBAAkB,CAAC,uBAAuB,CACjD,UAAU,EACV,iBAAiB,CAAC,UAAU,CAAC,EAC7B,KAAK,CACL,GAAG;QACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;QACzB,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;KACnB,GACC,kBAAkB,CAAC,eAAe,CAAC,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;CA4BxE"}
|
package/dist/tableSchema.js
CHANGED
|
@@ -10,28 +10,12 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TableSchema = exports.System_TableSchema = void 0;
|
|
13
|
-
/* eslint-disable @typescript-eslint/no-unsafe-member-access -- This file uses intentional `as any` casts to access hidden internal properties (cells, tableSchemaSymbol) */
|
|
14
13
|
const internal_1 = require("@fluidframework/core-utils/internal");
|
|
15
14
|
const internal_2 = require("@fluidframework/telemetry-utils/internal");
|
|
16
15
|
const index_js_1 = require("./core/index.js");
|
|
17
16
|
const index_js_2 = require("./shared-tree/index.js");
|
|
18
17
|
const index_js_3 = require("./simple-tree/index.js");
|
|
19
18
|
const index_js_4 = require("./util/index.js");
|
|
20
|
-
// Future improvement TODOs:
|
|
21
|
-
// - Omit `cells` property from Row insertion type.
|
|
22
|
-
// - Record-like type parameters / input parameters?
|
|
23
|
-
// - Omit `props` properties from Row and Column schemas when not provided?
|
|
24
|
-
// Longer-term work:
|
|
25
|
-
// - Add constraint APIs to make it possible to avoid situations that could yield "orphaned" cells.
|
|
26
|
-
/**
|
|
27
|
-
* Scope for table schema built-in types.
|
|
28
|
-
* @remarks User-provided factory scoping will be applied as `com.fluidframework.table<user-scope>`.
|
|
29
|
-
*/
|
|
30
|
-
const baseSchemaScope = "com.fluidframework.table";
|
|
31
|
-
/**
|
|
32
|
-
* A private symbol put on table schema to help identify them.
|
|
33
|
-
*/
|
|
34
|
-
const tableSchemaSymbol = Symbol("tableNode");
|
|
35
19
|
/**
|
|
36
20
|
* Not intended for use outside of this package.
|
|
37
21
|
*
|
|
@@ -40,13 +24,20 @@ const tableSchemaSymbol = Symbol("tableNode");
|
|
|
40
24
|
* This namespace should be strictly type-exported by the package.
|
|
41
25
|
* All members should be tagged with `@system`.
|
|
42
26
|
*
|
|
43
|
-
*
|
|
27
|
+
* Orphaned Cells:
|
|
28
|
+
* Without safeguards, it is possible for cells to become "orphaned".
|
|
29
|
+
* An orphaned cell is a cell that does not correspond to a valid row and column.
|
|
30
|
+
* In order to preserve the invariant that all cells must have a valid row and column, table operations
|
|
31
|
+
* (eg, inserting/removing rows/columns, or setting/removing a cell) will automatically include constraints that
|
|
32
|
+
* guard transactions from producing orphaned cells.
|
|
33
|
+
*
|
|
34
|
+
* @system @beta
|
|
44
35
|
*/
|
|
45
36
|
var System_TableSchema;
|
|
46
37
|
(function (System_TableSchema) {
|
|
47
38
|
/**
|
|
48
39
|
* Factory for creating column schema.
|
|
49
|
-
* @system @
|
|
40
|
+
* @system @beta
|
|
50
41
|
*/
|
|
51
42
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
|
|
52
43
|
function createColumnSchema(inputSchemaFactory, propsSchema) {
|
|
@@ -94,7 +85,7 @@ var System_TableSchema;
|
|
|
94
85
|
System_TableSchema.createColumnSchema = createColumnSchema;
|
|
95
86
|
/**
|
|
96
87
|
* Factory for creating row schema.
|
|
97
|
-
* @
|
|
88
|
+
* @system @beta
|
|
98
89
|
*/
|
|
99
90
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
|
|
100
91
|
function createRowSchema(inputSchemaFactory, cellSchema, propsSchema) {
|
|
@@ -149,7 +140,7 @@ var System_TableSchema;
|
|
|
149
140
|
System_TableSchema.createRowSchema = createRowSchema;
|
|
150
141
|
/**
|
|
151
142
|
* Factory for creating table schema.
|
|
152
|
-
* @system @
|
|
143
|
+
* @system @beta
|
|
153
144
|
*/
|
|
154
145
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
|
|
155
146
|
function createTableSchema(inputSchemaFactory, _cellSchema, columnSchema, rowSchema) {
|
|
@@ -254,16 +245,34 @@ var System_TableSchema;
|
|
|
254
245
|
// Ensure the new columns being inserted are valid
|
|
255
246
|
__classPrivateFieldGet(this, _Table_instances, "m", _Table_validateNewColumns).call(this, columns);
|
|
256
247
|
// #endregion
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
248
|
+
__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
|
|
249
|
+
applyEdits: () => {
|
|
250
|
+
// TypeScript is unable to narrow the column type correctly here, hence the casts below.
|
|
251
|
+
// See: https://github.com/microsoft/TypeScript/issues/52144
|
|
252
|
+
if (index === undefined) {
|
|
253
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
254
|
+
this.table.columns.insertAtEnd(index_js_3.TreeArrayNode.spread(columns));
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
258
|
+
this.table.columns.insertAt(index, index_js_3.TreeArrayNode.spread(columns));
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
// Relevant invariant: each cell corresponds to an existing row and column
|
|
262
|
+
// Scenarios that this constraint is intended to prevent:
|
|
263
|
+
// * Client A inserts a column, then client B adds row with a cell for that column, then client A reverts the column insertion.
|
|
264
|
+
// * Client A inserts a column, then client B populates a cell for that column within an existing row, then client A reverts the column insertion.
|
|
265
|
+
// Notes:
|
|
266
|
+
// * In either scenario, A and B may be the same client.
|
|
267
|
+
// * In either scenario, B's edit and the revert may or may not be concurrent.
|
|
268
|
+
// Collateral scenarios that this constraint also prevents:
|
|
269
|
+
// * Any other scenario where client A inserts a column, then client B edits _any_ part of the tree, then client A reverts the column insertion.
|
|
270
|
+
// Future improvements:
|
|
271
|
+
// Use both...
|
|
272
|
+
// * A "no attach on revert" constraint on the row array
|
|
273
|
+
// * A "no shallow change" constraint on every cell that corresponds to the new column in every existing row
|
|
274
|
+
preconditionsOnRevert: [{ type: "noChange" }],
|
|
275
|
+
});
|
|
267
276
|
// Inserting the input nodes into the tree hydrates them, making them usable as nodes.
|
|
268
277
|
return columns;
|
|
269
278
|
}
|
|
@@ -276,16 +285,31 @@ var System_TableSchema;
|
|
|
276
285
|
// Ensure the new rows being inserted are valid
|
|
277
286
|
__classPrivateFieldGet(this, _Table_instances, "m", _Table_validateNewRows).call(this, rows);
|
|
278
287
|
// #endregion
|
|
279
|
-
//
|
|
280
|
-
//
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
288
|
+
// Relevant invariant: each cell corresponds to an existing row and column
|
|
289
|
+
// Prevents cell leaks from concurrently removed columns.
|
|
290
|
+
// Example scenario: Client A removes a column while concurrently Client B adds a row with cells for those columns (including the one A removed).
|
|
291
|
+
// If client B is sequenced after A, then B's row could have cells that do not correspond to existing columns.
|
|
292
|
+
// This constraint ensures all columns that existed when creating the row still exist when the row insertion is applied.
|
|
293
|
+
// TODO: Replace with "no detach" constraint on the column array when available.
|
|
294
|
+
const columnConstraints = this.table.columns.map((column) => ({
|
|
295
|
+
type: "nodeInDocument",
|
|
296
|
+
node: column,
|
|
297
|
+
}));
|
|
298
|
+
__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
|
|
299
|
+
applyEdits: () => {
|
|
300
|
+
// TypeScript is unable to narrow the row type correctly here, hence the casts below.
|
|
301
|
+
// See: https://github.com/microsoft/TypeScript/issues/52144
|
|
302
|
+
if (index === undefined) {
|
|
303
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
304
|
+
this.table.rows.insertAtEnd(index_js_3.TreeArrayNode.spread(rows));
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
308
|
+
this.table.rows.insertAt(index, index_js_3.TreeArrayNode.spread(rows));
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
preconditions: columnConstraints.length > 0 ? columnConstraints : undefined,
|
|
312
|
+
});
|
|
289
313
|
// Inserting the input nodes into the tree hydrates them, making them usable as nodes.
|
|
290
314
|
return rows;
|
|
291
315
|
}
|
|
@@ -293,9 +317,42 @@ var System_TableSchema;
|
|
|
293
317
|
const { column: columnOrId, row: rowOrId } = key;
|
|
294
318
|
const row = __classPrivateFieldGet(this, _Table_instances, "m", _Table_getRow).call(this, rowOrId);
|
|
295
319
|
const column = __classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumn).call(this, columnOrId);
|
|
296
|
-
|
|
320
|
+
__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
|
|
321
|
+
applyEdits: () => {
|
|
322
|
+
row.cells[column.id] = cell;
|
|
323
|
+
},
|
|
324
|
+
// Relevant invariant: each cell corresponds to an existing row and column
|
|
325
|
+
// Prevents cell leaks from concurrently removed columns in earlier-sequenced edits.
|
|
326
|
+
// Example scenario: Client A removes a column, then Client B concurrently sets a cell in that column (sequenced after A's edit).
|
|
327
|
+
// If both edits are applied, B's cell would not correspond to an existing column.
|
|
328
|
+
preconditions: [
|
|
329
|
+
{
|
|
330
|
+
type: "nodeInDocument",
|
|
331
|
+
node: column,
|
|
332
|
+
},
|
|
333
|
+
],
|
|
334
|
+
// Relevant invariant: each cell corresponds to an existing row and column
|
|
335
|
+
// Example scenario: Client A overwrites a populated cell, then Client B removes the column associated with the A's cell (this clears the cell).
|
|
336
|
+
// If Client A then reverts their edit, the overwritten value is restored in the cell despite the absence of column for that cell.
|
|
337
|
+
preconditionsOnRevert: row.cells[column.id] === undefined
|
|
338
|
+
? undefined
|
|
339
|
+
: [
|
|
340
|
+
{
|
|
341
|
+
type: "nodeInDocument",
|
|
342
|
+
node: column,
|
|
343
|
+
},
|
|
344
|
+
],
|
|
345
|
+
});
|
|
297
346
|
}
|
|
298
347
|
removeColumns(indexOrColumns, count = undefined) {
|
|
348
|
+
// Relevant invariant: each cell corresponds to an existing row and column
|
|
349
|
+
// Prevents cell leaks from concurrently added rows in earlier-sequenced edits.
|
|
350
|
+
// Example scenario: Client A adds a row, Client B concurrently removes a column that is populated in A's row.
|
|
351
|
+
// If Client A's edit is sequenced before Client B's edit, then B's removal would orphan the cell in A's row.
|
|
352
|
+
// We have the same problem if Client A populates a cell for one of the columns removed by B
|
|
353
|
+
// This constraint ensures no rows were added.
|
|
354
|
+
// TODO: Replace with "no attach" constraint on the row array when available.
|
|
355
|
+
const preconditions = [{ type: "noChange" }];
|
|
299
356
|
if (typeof indexOrColumns === "number" || indexOrColumns === undefined) {
|
|
300
357
|
let removedColumns;
|
|
301
358
|
const startIndex = indexOrColumns ?? 0;
|
|
@@ -305,15 +362,18 @@ var System_TableSchema;
|
|
|
305
362
|
return [];
|
|
306
363
|
}
|
|
307
364
|
(0, index_js_4.validateIndexRange)(startIndex, endIndex, this.table.columns, "Table.removeColumns");
|
|
308
|
-
__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this,
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
365
|
+
__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
|
|
366
|
+
applyEdits: () => {
|
|
367
|
+
const columnsToRemove = this.table.columns.slice(startIndex, endIndex);
|
|
368
|
+
// First, remove all cells that correspond to each column from each row:
|
|
369
|
+
for (const column of columnsToRemove) {
|
|
370
|
+
__classPrivateFieldGet(this, _Table_instances, "m", _Table_removeCells).call(this, column);
|
|
371
|
+
}
|
|
372
|
+
// Second, remove the column nodes:
|
|
373
|
+
removeRangeFromArray(startIndex, endIndex, this.table.columns, "Table.removeColumns");
|
|
374
|
+
removedColumns = columnsToRemove;
|
|
375
|
+
},
|
|
376
|
+
preconditions,
|
|
317
377
|
});
|
|
318
378
|
return removedColumns ?? (0, internal_1.fail)(0xc1f /* Transaction did not complete. */);
|
|
319
379
|
}
|
|
@@ -329,35 +389,56 @@ var System_TableSchema;
|
|
|
329
389
|
for (const columnOrIdToRemove of indexOrColumns) {
|
|
330
390
|
columnsToRemove.push(__classPrivateFieldGet(this, _Table_instances, "m", _Table_getColumn).call(this, columnOrIdToRemove));
|
|
331
391
|
}
|
|
332
|
-
__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this,
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
392
|
+
__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
|
|
393
|
+
applyEdits: () => {
|
|
394
|
+
// Note, throwing an error within a transaction will abort the entire transaction.
|
|
395
|
+
// So if we throw an error here for any column, no columns will be removed.
|
|
396
|
+
for (const columnToRemove of columnsToRemove) {
|
|
397
|
+
// Remove the corresponding cell from all rows.
|
|
398
|
+
for (const row of this.table.rows) {
|
|
399
|
+
// TypeScript is unable to narrow the row type correctly here, hence the cast.
|
|
400
|
+
// See: https://github.com/microsoft/TypeScript/issues/52144
|
|
401
|
+
this.removeCell({
|
|
402
|
+
column: columnToRemove,
|
|
403
|
+
row: row,
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
// We have already validated that all of the columns exist above, so this is safe.
|
|
407
|
+
this.table.columns.removeAt(this.table.columns.indexOf(columnToRemove));
|
|
344
408
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}
|
|
409
|
+
},
|
|
410
|
+
preconditions,
|
|
348
411
|
});
|
|
349
412
|
return columnsToRemove;
|
|
350
413
|
}
|
|
351
414
|
}
|
|
352
415
|
removeRows(indexOrRows, count) {
|
|
416
|
+
// Relevant invariant: each cell corresponds to an existing row and column
|
|
417
|
+
// Adding a constraint on columns here to prevent cells being orphaned. The relevant scenario is:
|
|
418
|
+
// Client A removes rows
|
|
419
|
+
// Client B (either concurrently or not, so long as B's edit is sequenced after A's edit) removes a column,
|
|
420
|
+
// Client A reverts the removal of the rows
|
|
421
|
+
// TODO: Replace with "no detach on revert" constraint on the column array when available.
|
|
422
|
+
const columnConstraints = this.table.columns.map((column) => ({
|
|
423
|
+
type: "nodeInDocument",
|
|
424
|
+
node: column,
|
|
425
|
+
}));
|
|
353
426
|
if (typeof indexOrRows === "number" || indexOrRows === undefined) {
|
|
427
|
+
let removedRows;
|
|
354
428
|
const startIndex = indexOrRows ?? 0;
|
|
355
429
|
const endIndex = count === undefined ? this.table.rows.length : startIndex + count;
|
|
356
430
|
// If there are no rows to remove, do nothing
|
|
357
431
|
if (startIndex === endIndex) {
|
|
358
432
|
return [];
|
|
359
433
|
}
|
|
360
|
-
|
|
434
|
+
(0, index_js_4.validateIndexRange)(startIndex, endIndex, this.table.rows, "Table.removeRows");
|
|
435
|
+
__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
|
|
436
|
+
applyEdits: () => {
|
|
437
|
+
removedRows = removeRangeFromArray(startIndex, endIndex, this.table.rows, "Table.removeRows");
|
|
438
|
+
},
|
|
439
|
+
preconditionsOnRevert: columnConstraints.length > 0 ? columnConstraints : undefined,
|
|
440
|
+
});
|
|
441
|
+
return removedRows ?? (0, internal_1.fail)(0xccd /* Transaction did not complete */);
|
|
361
442
|
}
|
|
362
443
|
// If there are no rows to remove, do nothing
|
|
363
444
|
if (indexOrRows.length === 0) {
|
|
@@ -370,14 +451,17 @@ var System_TableSchema;
|
|
|
370
451
|
for (const rowToRemove of indexOrRows) {
|
|
371
452
|
rowsToRemove.push(__classPrivateFieldGet(this, _Table_instances, "m", _Table_getRow).call(this, rowToRemove));
|
|
372
453
|
}
|
|
373
|
-
__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this,
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
454
|
+
__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
|
|
455
|
+
applyEdits: () => {
|
|
456
|
+
// Note, throwing an error within a transaction will abort the entire transaction.
|
|
457
|
+
// So if we throw an error here for any row, no rows will be removed.
|
|
458
|
+
for (const rowToRemove of rowsToRemove) {
|
|
459
|
+
// We have already validated that all of the rows exist above, so this is safe.
|
|
460
|
+
const index = this.table.rows.indexOf(rowToRemove);
|
|
461
|
+
this.table.rows.removeAt(index);
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
preconditionsOnRevert: columnConstraints.length > 0 ? columnConstraints : undefined,
|
|
381
465
|
});
|
|
382
466
|
return rowsToRemove;
|
|
383
467
|
}
|
|
@@ -389,8 +473,23 @@ var System_TableSchema;
|
|
|
389
473
|
if (cell === undefined) {
|
|
390
474
|
return undefined;
|
|
391
475
|
}
|
|
392
|
-
|
|
393
|
-
|
|
476
|
+
__classPrivateFieldGet(this, _Table_instances, "m", _Table_applyEditsInBatch).call(this, {
|
|
477
|
+
applyEdits: () => {
|
|
478
|
+
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
479
|
+
delete row.cells[column.id];
|
|
480
|
+
},
|
|
481
|
+
// Relevant invariant: each cell corresponds to an existing row and column
|
|
482
|
+
// Prevents cell leaks from concurrently removed columns in earlier-sequenced edits when this cell removal is reverted.
|
|
483
|
+
// Example scenario: Client A removes a cell, then Client B removes the column for that cell.
|
|
484
|
+
// If A's cell removal is later reverted, the cell would be restored but B's column removal means there's no column for it.
|
|
485
|
+
// This constraint on revert ensures the column still exists, ensuring restored cells correspond to existing columns.
|
|
486
|
+
preconditionsOnRevert: [
|
|
487
|
+
{
|
|
488
|
+
type: "nodeInDocument",
|
|
489
|
+
node: column,
|
|
490
|
+
},
|
|
491
|
+
],
|
|
492
|
+
});
|
|
394
493
|
return cell;
|
|
395
494
|
}
|
|
396
495
|
/**
|
|
@@ -445,9 +544,9 @@ var System_TableSchema;
|
|
|
445
544
|
// #endregion
|
|
446
545
|
// #region If the row contains cells, verify that the table contains the columns for those cells
|
|
447
546
|
// Note: we intentionally hide `cells` on `IRow` to avoid leaking the internal data representation as much as possible, so we have to cast here.
|
|
448
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
547
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
|
|
449
548
|
if (newRow.cells !== undefined) {
|
|
450
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
549
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
|
|
451
550
|
const keys = Object.keys(newRow.cells);
|
|
452
551
|
for (const key of keys) {
|
|
453
552
|
if (!columnIds.has(key)) {
|
|
@@ -480,7 +579,8 @@ var System_TableSchema;
|
|
|
480
579
|
row: row,
|
|
481
580
|
});
|
|
482
581
|
}
|
|
483
|
-
}, _Table_applyEditsInBatch = function _Table_applyEditsInBatch(
|
|
582
|
+
}, _Table_applyEditsInBatch = function _Table_applyEditsInBatch(options) {
|
|
583
|
+
const { applyEdits, preconditions, preconditionsOnRevert } = options;
|
|
484
584
|
const branch = index_js_2.TreeAlpha.branch(this);
|
|
485
585
|
// Ensure events are paused until all of the edits are applied.
|
|
486
586
|
// This ensures that the user sees the corresponding table-level edit as atomic,
|
|
@@ -495,7 +595,10 @@ var System_TableSchema;
|
|
|
495
595
|
else {
|
|
496
596
|
branch.runTransaction(() => {
|
|
497
597
|
applyEdits();
|
|
498
|
-
|
|
598
|
+
if (preconditionsOnRevert !== undefined) {
|
|
599
|
+
return { preconditionsOnRevert };
|
|
600
|
+
}
|
|
601
|
+
}, preconditions === undefined ? undefined : { preconditions });
|
|
499
602
|
}
|
|
500
603
|
});
|
|
501
604
|
}, _Table_tryGetColumn = function _Table_tryGetColumn(columnOrIdOrIndex) {
|
|
@@ -555,12 +658,6 @@ var System_TableSchema;
|
|
|
555
658
|
}, _Table_validateNewRows = function _Table_validateNewRows(newRows) {
|
|
556
659
|
return _a._validateNewRows(newRows, new Set(this.table.rows.map((row) => row.id)), new Set(this.table.columns.map((column) => column.id)));
|
|
557
660
|
};
|
|
558
|
-
// Set a private symbol on the schema class that marks it as having been generated by this factory.
|
|
559
|
-
// Column / Row functionality use this to validate that they are being used in a table.
|
|
560
|
-
// This is effectively a work-around that allows columns and rows to invoke table methods
|
|
561
|
-
// without having to pass the table as a parameter to their construction, which isn't possible.
|
|
562
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
563
|
-
Table[tableSchemaSymbol] = true;
|
|
564
661
|
// Returning SingletonSchema without a type conversion results in TypeScript generating something like `readonly "__#124291@#brand": unknown;`
|
|
565
662
|
// for the private brand field of TreeNode.
|
|
566
663
|
// This numeric id doesn't seem to be stable over incremental builds, and thus causes diffs in the API extractor reports.
|
|
@@ -573,8 +670,13 @@ var System_TableSchema;
|
|
|
573
670
|
System_TableSchema.createTableSchema = createTableSchema;
|
|
574
671
|
// #endregion
|
|
575
672
|
})(System_TableSchema || (exports.System_TableSchema = System_TableSchema = {}));
|
|
673
|
+
/**
|
|
674
|
+
* Sets up scope for table schema built-in types.
|
|
675
|
+
* @remarks User-provided factory scoping will be applied as `com.fluidframework.table<user-scope>`.
|
|
676
|
+
*/
|
|
677
|
+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
576
678
|
function createTableScopedFactory(inputSchemaFactory) {
|
|
577
|
-
return
|
|
679
|
+
return (0, index_js_3.createCustomizedFluidFrameworkScopedFactory)(inputSchemaFactory, "tableV2");
|
|
578
680
|
}
|
|
579
681
|
/**
|
|
580
682
|
* Removes the specified range of elements from the array.
|
|
@@ -593,10 +695,16 @@ function removeRangeFromArray(startIndex, endIndex, array, methodName) {
|
|
|
593
695
|
*
|
|
594
696
|
* @remarks
|
|
595
697
|
*
|
|
596
|
-
*
|
|
597
|
-
*
|
|
598
|
-
*
|
|
599
|
-
*
|
|
698
|
+
* Note: the APIs produced by this module ensure various tabular data invariants are maintained that the raw, underlying tree structures do not.
|
|
699
|
+
* For example, they ensure that cells always correspond to existing rows and columns (and do not become "orphaned" due to row/column deletion, etc.).
|
|
700
|
+
* For this reason, direct manipulation of the underlying tree structures is not supported.
|
|
701
|
+
* To modify the data, only the APIs provided here may be used.
|
|
702
|
+
*
|
|
703
|
+
* Also note: these APIs leverage `SharedTree` functionality that was added in version `2.80.0`,
|
|
704
|
+
* which is not compatible with previous versions of this library.
|
|
705
|
+
* To ensure safe collaboration, you will need to configure the {@link @fluidframework/runtime-definitions#MinimumVersionForCollab}
|
|
706
|
+
* for the Fluid Runtime and/or `SharedTree` to at least `2.80.0`.
|
|
707
|
+
* To set this minimum version for `SharedTree`, use {@link configuredSharedTreeBeta}.
|
|
600
708
|
*
|
|
601
709
|
* The primary APIs for create tabular data schema are:
|
|
602
710
|
*
|
|
@@ -619,12 +727,6 @@ function removeRangeFromArray(startIndex, endIndex, array, methodName) {
|
|
|
619
727
|
* Column and Row schema created using these APIs are extensible via the `props` field.
|
|
620
728
|
* This allows association of additional properties with column and row nodes.
|
|
621
729
|
*
|
|
622
|
-
* Cells in the table may become "orphaned."
|
|
623
|
-
* That is, it is possible to enter a state where one or more rows contain cells with no corresponding column.
|
|
624
|
-
* To reduce the likelihood of this, you can manually remove corresponding cells when removing columns.
|
|
625
|
-
* Either way, it is possible to enter such a state via the merging of edits.
|
|
626
|
-
* For example: one client might add a row while another concurrently removes a column, orphaning the cell where the column and row intersected.
|
|
627
|
-
*
|
|
628
730
|
* @example Defining a Table schema
|
|
629
731
|
*
|
|
630
732
|
* ```typescript
|
|
@@ -700,7 +802,7 @@ function removeRangeFromArray(startIndex, endIndex, array, methodName) {
|
|
|
700
802
|
* The above examples are backed by tests in `tableSchema.spec.ts`.
|
|
701
803
|
* Those tests and these examples should be kept in-sync to ensure that the examples are correct.
|
|
702
804
|
*
|
|
703
|
-
* @
|
|
805
|
+
* @beta
|
|
704
806
|
*/
|
|
705
807
|
var TableSchema;
|
|
706
808
|
(function (TableSchema) {
|