@fluidframework/tree 2.41.0-337492 → 2.41.0-338401

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.
Files changed (491) hide show
  1. package/api-report/tree.alpha.api.md +165 -5
  2. package/dist/alpha.d.ts +2 -0
  3. package/dist/codec/codec.d.ts +42 -7
  4. package/dist/codec/codec.d.ts.map +1 -1
  5. package/dist/codec/codec.js +50 -8
  6. package/dist/codec/codec.js.map +1 -1
  7. package/dist/core/change-family/editBuilder.d.ts.map +1 -1
  8. package/dist/core/change-family/editBuilder.js.map +1 -1
  9. package/dist/core/forest/forest.d.ts.map +1 -1
  10. package/dist/core/forest/forest.js.map +1 -1
  11. package/dist/core/schema-stored/schema.d.ts.map +1 -1
  12. package/dist/core/schema-stored/schema.js.map +1 -1
  13. package/dist/core/schema-stored/storedSchemaRepository.d.ts +1 -1
  14. package/dist/core/schema-stored/storedSchemaRepository.d.ts.map +1 -1
  15. package/dist/core/schema-stored/storedSchemaRepository.js +1 -1
  16. package/dist/core/schema-stored/storedSchemaRepository.js.map +1 -1
  17. package/dist/core/tree/anchorSet.d.ts.map +1 -1
  18. package/dist/core/tree/anchorSet.js +2 -2
  19. package/dist/core/tree/anchorSet.js.map +1 -1
  20. package/dist/core/tree/chunk.d.ts.map +1 -1
  21. package/dist/core/tree/chunk.js.map +1 -1
  22. package/dist/core/tree/delta.d.ts.map +1 -1
  23. package/dist/core/tree/delta.js.map +1 -1
  24. package/dist/core/tree/deltaUtil.d.ts.map +1 -1
  25. package/dist/core/tree/deltaUtil.js.map +1 -1
  26. package/dist/core/tree/detachedFieldIndex.d.ts +1 -1
  27. package/dist/core/tree/detachedFieldIndex.d.ts.map +1 -1
  28. package/dist/core/tree/detachedFieldIndex.js.map +1 -1
  29. package/dist/core/tree/detachedFieldIndexCodec.d.ts +1 -1
  30. package/dist/core/tree/detachedFieldIndexCodec.d.ts.map +1 -1
  31. package/dist/core/tree/detachedFieldIndexCodec.js +1 -1
  32. package/dist/core/tree/detachedFieldIndexCodec.js.map +1 -1
  33. package/dist/core/tree/pathTree.d.ts.map +1 -1
  34. package/dist/core/tree/pathTree.js.map +1 -1
  35. package/dist/core/tree/treeTextFormat.d.ts.map +1 -1
  36. package/dist/core/tree/treeTextFormat.js.map +1 -1
  37. package/dist/core/tree/visitDelta.d.ts +1 -1
  38. package/dist/core/tree/visitDelta.d.ts.map +1 -1
  39. package/dist/core/tree/visitDelta.js.map +1 -1
  40. package/dist/core/tree/visitorUtils.d.ts +2 -2
  41. package/dist/core/tree/visitorUtils.d.ts.map +1 -1
  42. package/dist/core/tree/visitorUtils.js.map +1 -1
  43. package/dist/feature-libraries/chunked-forest/chunkTree.d.ts +1 -1
  44. package/dist/feature-libraries/chunked-forest/chunkTree.d.ts.map +1 -1
  45. package/dist/feature-libraries/chunked-forest/chunkTree.js +1 -1
  46. package/dist/feature-libraries/chunked-forest/chunkTree.js.map +1 -1
  47. package/dist/feature-libraries/chunked-forest/chunkedForest.d.ts +1 -1
  48. package/dist/feature-libraries/chunked-forest/chunkedForest.d.ts.map +1 -1
  49. package/dist/feature-libraries/chunked-forest/chunkedForest.js +1 -1
  50. package/dist/feature-libraries/chunked-forest/chunkedForest.js.map +1 -1
  51. package/dist/feature-libraries/chunked-forest/codec/chunkDecoding.d.ts +1 -1
  52. package/dist/feature-libraries/chunked-forest/codec/chunkDecoding.d.ts.map +1 -1
  53. package/dist/feature-libraries/chunked-forest/codec/chunkDecoding.js.map +1 -1
  54. package/dist/feature-libraries/chunked-forest/codec/chunkDecodingGeneric.d.ts +2 -2
  55. package/dist/feature-libraries/chunked-forest/codec/chunkDecodingGeneric.d.ts.map +1 -1
  56. package/dist/feature-libraries/chunked-forest/codec/chunkDecodingGeneric.js.map +1 -1
  57. package/dist/feature-libraries/chunked-forest/codec/chunkEncodingGeneric.d.ts.map +1 -1
  58. package/dist/feature-libraries/chunked-forest/codec/chunkEncodingGeneric.js.map +1 -1
  59. package/dist/feature-libraries/chunked-forest/codec/codecs.d.ts +8 -2
  60. package/dist/feature-libraries/chunked-forest/codec/codecs.d.ts.map +1 -1
  61. package/dist/feature-libraries/chunked-forest/codec/codecs.js +12 -1
  62. package/dist/feature-libraries/chunked-forest/codec/codecs.js.map +1 -1
  63. package/dist/feature-libraries/chunked-forest/codec/compressedEncode.d.ts +1 -1
  64. package/dist/feature-libraries/chunked-forest/codec/compressedEncode.d.ts.map +1 -1
  65. package/dist/feature-libraries/chunked-forest/codec/compressedEncode.js.map +1 -1
  66. package/dist/feature-libraries/chunked-forest/codec/index.d.ts +1 -1
  67. package/dist/feature-libraries/chunked-forest/codec/index.d.ts.map +1 -1
  68. package/dist/feature-libraries/chunked-forest/codec/index.js +2 -1
  69. package/dist/feature-libraries/chunked-forest/codec/index.js.map +1 -1
  70. package/dist/feature-libraries/chunked-forest/codec/nodeShape.d.ts.map +1 -1
  71. package/dist/feature-libraries/chunked-forest/codec/nodeShape.js +1 -1
  72. package/dist/feature-libraries/chunked-forest/codec/nodeShape.js.map +1 -1
  73. package/dist/feature-libraries/chunked-forest/codec/schemaBasedEncode.d.ts +1 -1
  74. package/dist/feature-libraries/chunked-forest/codec/schemaBasedEncode.d.ts.map +1 -1
  75. package/dist/feature-libraries/chunked-forest/codec/schemaBasedEncode.js.map +1 -1
  76. package/dist/feature-libraries/chunked-forest/emptyChunk.d.ts.map +1 -1
  77. package/dist/feature-libraries/chunked-forest/emptyChunk.js.map +1 -1
  78. package/dist/feature-libraries/chunked-forest/index.d.ts +1 -1
  79. package/dist/feature-libraries/chunked-forest/index.d.ts.map +1 -1
  80. package/dist/feature-libraries/chunked-forest/index.js +2 -1
  81. package/dist/feature-libraries/chunked-forest/index.js.map +1 -1
  82. package/dist/feature-libraries/chunked-forest/sequenceChunk.d.ts +1 -1
  83. package/dist/feature-libraries/chunked-forest/sequenceChunk.d.ts.map +1 -1
  84. package/dist/feature-libraries/chunked-forest/sequenceChunk.js +4 -4
  85. package/dist/feature-libraries/chunked-forest/sequenceChunk.js.map +1 -1
  86. package/dist/feature-libraries/chunked-forest/uniformChunk.d.ts +1 -1
  87. package/dist/feature-libraries/chunked-forest/uniformChunk.d.ts.map +1 -1
  88. package/dist/feature-libraries/chunked-forest/uniformChunk.js +1 -1
  89. package/dist/feature-libraries/chunked-forest/uniformChunk.js.map +1 -1
  90. package/dist/feature-libraries/default-schema/defaultEditBuilder.js.map +1 -1
  91. package/dist/feature-libraries/default-schema/defaultFieldKinds.d.ts.map +1 -1
  92. package/dist/feature-libraries/default-schema/defaultFieldKinds.js.map +1 -1
  93. package/dist/feature-libraries/default-schema/index.d.ts +1 -1
  94. package/dist/feature-libraries/default-schema/index.d.ts.map +1 -1
  95. package/dist/feature-libraries/default-schema/index.js +2 -1
  96. package/dist/feature-libraries/default-schema/index.js.map +1 -1
  97. package/dist/feature-libraries/default-schema/mappedEditBuilder.d.ts.map +1 -1
  98. package/dist/feature-libraries/default-schema/mappedEditBuilder.js.map +1 -1
  99. package/dist/feature-libraries/default-schema/schemaChecker.d.ts +4 -0
  100. package/dist/feature-libraries/default-schema/schemaChecker.d.ts.map +1 -1
  101. package/dist/feature-libraries/default-schema/schemaChecker.js +35 -26
  102. package/dist/feature-libraries/default-schema/schemaChecker.js.map +1 -1
  103. package/dist/feature-libraries/flex-tree/context.d.ts +16 -14
  104. package/dist/feature-libraries/flex-tree/context.d.ts.map +1 -1
  105. package/dist/feature-libraries/flex-tree/context.js +12 -18
  106. package/dist/feature-libraries/flex-tree/context.js.map +1 -1
  107. package/dist/feature-libraries/flex-tree/index.d.ts +1 -1
  108. package/dist/feature-libraries/flex-tree/index.d.ts.map +1 -1
  109. package/dist/feature-libraries/flex-tree/index.js +1 -2
  110. package/dist/feature-libraries/flex-tree/index.js.map +1 -1
  111. package/dist/feature-libraries/flex-tree/lazyField.d.ts +1 -5
  112. package/dist/feature-libraries/flex-tree/lazyField.d.ts.map +1 -1
  113. package/dist/feature-libraries/flex-tree/lazyField.js +2 -16
  114. package/dist/feature-libraries/flex-tree/lazyField.js.map +1 -1
  115. package/dist/feature-libraries/flex-tree/utilities.d.ts +6 -6
  116. package/dist/feature-libraries/flex-tree/utilities.d.ts.map +1 -1
  117. package/dist/feature-libraries/flex-tree/utilities.js +6 -7
  118. package/dist/feature-libraries/flex-tree/utilities.js.map +1 -1
  119. package/dist/feature-libraries/index.d.ts +3 -3
  120. package/dist/feature-libraries/index.d.ts.map +1 -1
  121. package/dist/feature-libraries/index.js +3 -2
  122. package/dist/feature-libraries/index.js.map +1 -1
  123. package/dist/feature-libraries/initializeForest.d.ts.map +1 -1
  124. package/dist/feature-libraries/initializeForest.js.map +1 -1
  125. package/dist/feature-libraries/treeCursorUtils.d.ts.map +1 -1
  126. package/dist/feature-libraries/treeCursorUtils.js +1 -1
  127. package/dist/feature-libraries/treeCursorUtils.js.map +1 -1
  128. package/dist/feature-libraries/valueUtilities.d.ts.map +1 -1
  129. package/dist/feature-libraries/valueUtilities.js +6 -6
  130. package/dist/feature-libraries/valueUtilities.js.map +1 -1
  131. package/dist/jsonDomainSchema.d.ts.map +1 -1
  132. package/dist/jsonDomainSchema.js.map +1 -1
  133. package/dist/packageVersion.d.ts +1 -1
  134. package/dist/packageVersion.js +1 -1
  135. package/dist/packageVersion.js.map +1 -1
  136. package/dist/serializableDomainSchema.d.ts.map +1 -1
  137. package/dist/serializableDomainSchema.js.map +1 -1
  138. package/dist/shared-tree/checkoutFlexTreeView.d.ts +7 -3
  139. package/dist/shared-tree/checkoutFlexTreeView.d.ts.map +1 -1
  140. package/dist/shared-tree/checkoutFlexTreeView.js +11 -2
  141. package/dist/shared-tree/checkoutFlexTreeView.js.map +1 -1
  142. package/dist/shared-tree/schematizingTreeView.d.ts +3 -0
  143. package/dist/shared-tree/schematizingTreeView.d.ts.map +1 -1
  144. package/dist/shared-tree/schematizingTreeView.js +10 -5
  145. package/dist/shared-tree/schematizingTreeView.js.map +1 -1
  146. package/dist/shared-tree/treeAlpha.d.ts +9 -4
  147. package/dist/shared-tree/treeAlpha.d.ts.map +1 -1
  148. package/dist/shared-tree/treeAlpha.js +20 -8
  149. package/dist/shared-tree/treeAlpha.js.map +1 -1
  150. package/dist/sharedTreeAttributes.d.ts.map +1 -1
  151. package/dist/sharedTreeAttributes.js.map +1 -1
  152. package/dist/simple-tree/api/create.d.ts +5 -1
  153. package/dist/simple-tree/api/create.d.ts.map +1 -1
  154. package/dist/simple-tree/api/create.js +11 -12
  155. package/dist/simple-tree/api/create.js.map +1 -1
  156. package/dist/simple-tree/api/index.d.ts +3 -3
  157. package/dist/simple-tree/api/index.d.ts.map +1 -1
  158. package/dist/simple-tree/api/index.js +4 -2
  159. package/dist/simple-tree/api/index.js.map +1 -1
  160. package/dist/simple-tree/api/storedSchema.d.ts +1 -8
  161. package/dist/simple-tree/api/storedSchema.d.ts.map +1 -1
  162. package/dist/simple-tree/api/storedSchema.js +3 -14
  163. package/dist/simple-tree/api/storedSchema.js.map +1 -1
  164. package/dist/simple-tree/api/treeNodeApi.d.ts +8 -0
  165. package/dist/simple-tree/api/treeNodeApi.d.ts.map +1 -1
  166. package/dist/simple-tree/api/treeNodeApi.js +3 -1
  167. package/dist/simple-tree/api/treeNodeApi.js.map +1 -1
  168. package/dist/simple-tree/arrayNode.d.ts.map +1 -1
  169. package/dist/simple-tree/arrayNode.js +3 -9
  170. package/dist/simple-tree/arrayNode.js.map +1 -1
  171. package/dist/simple-tree/core/getOrCreateNode.js +1 -1
  172. package/dist/simple-tree/core/getOrCreateNode.js.map +1 -1
  173. package/dist/simple-tree/core/treeNodeKernel.d.ts +5 -17
  174. package/dist/simple-tree/core/treeNodeKernel.d.ts.map +1 -1
  175. package/dist/simple-tree/core/treeNodeKernel.js +17 -48
  176. package/dist/simple-tree/core/treeNodeKernel.js.map +1 -1
  177. package/dist/simple-tree/core/unhydratedFlexTree.d.ts +4 -4
  178. package/dist/simple-tree/core/unhydratedFlexTree.js +4 -4
  179. package/dist/simple-tree/core/unhydratedFlexTree.js.map +1 -1
  180. package/dist/simple-tree/getTreeNodeForField.d.ts +12 -0
  181. package/dist/simple-tree/getTreeNodeForField.d.ts.map +1 -0
  182. package/dist/simple-tree/getTreeNodeForField.js +39 -0
  183. package/dist/simple-tree/getTreeNodeForField.js.map +1 -0
  184. package/dist/simple-tree/index.d.ts +3 -2
  185. package/dist/simple-tree/index.d.ts.map +1 -1
  186. package/dist/simple-tree/index.js +10 -6
  187. package/dist/simple-tree/index.js.map +1 -1
  188. package/dist/simple-tree/mapNode.d.ts.map +1 -1
  189. package/dist/simple-tree/mapNode.js +21 -24
  190. package/dist/simple-tree/mapNode.js.map +1 -1
  191. package/dist/simple-tree/objectNode.d.ts.map +1 -1
  192. package/dist/simple-tree/objectNode.js +5 -7
  193. package/dist/simple-tree/objectNode.js.map +1 -1
  194. package/dist/simple-tree/prepareForInsertion.d.ts +42 -0
  195. package/dist/simple-tree/prepareForInsertion.d.ts.map +1 -0
  196. package/dist/simple-tree/prepareForInsertion.js +166 -0
  197. package/dist/simple-tree/prepareForInsertion.js.map +1 -0
  198. package/dist/simple-tree/toMapTree.d.ts +4 -9
  199. package/dist/simple-tree/toMapTree.d.ts.map +1 -1
  200. package/dist/simple-tree/toMapTree.js +4 -23
  201. package/dist/simple-tree/toMapTree.js.map +1 -1
  202. package/dist/tableSchema.d.ts +201 -104
  203. package/dist/tableSchema.d.ts.map +1 -1
  204. package/dist/tableSchema.js +155 -58
  205. package/dist/tableSchema.js.map +1 -1
  206. package/dist/treeFactory.d.ts.map +1 -1
  207. package/dist/treeFactory.js +2 -2
  208. package/dist/treeFactory.js.map +1 -1
  209. package/lib/alpha.d.ts +2 -0
  210. package/lib/codec/codec.d.ts +42 -7
  211. package/lib/codec/codec.d.ts.map +1 -1
  212. package/lib/codec/codec.js +50 -8
  213. package/lib/codec/codec.js.map +1 -1
  214. package/lib/core/change-family/editBuilder.d.ts.map +1 -1
  215. package/lib/core/change-family/editBuilder.js.map +1 -1
  216. package/lib/core/forest/forest.d.ts.map +1 -1
  217. package/lib/core/forest/forest.js.map +1 -1
  218. package/lib/core/schema-stored/schema.d.ts.map +1 -1
  219. package/lib/core/schema-stored/schema.js.map +1 -1
  220. package/lib/core/schema-stored/storedSchemaRepository.d.ts +1 -1
  221. package/lib/core/schema-stored/storedSchemaRepository.d.ts.map +1 -1
  222. package/lib/core/schema-stored/storedSchemaRepository.js +1 -1
  223. package/lib/core/schema-stored/storedSchemaRepository.js.map +1 -1
  224. package/lib/core/tree/anchorSet.d.ts.map +1 -1
  225. package/lib/core/tree/anchorSet.js +2 -2
  226. package/lib/core/tree/anchorSet.js.map +1 -1
  227. package/lib/core/tree/chunk.d.ts.map +1 -1
  228. package/lib/core/tree/chunk.js.map +1 -1
  229. package/lib/core/tree/delta.d.ts.map +1 -1
  230. package/lib/core/tree/delta.js.map +1 -1
  231. package/lib/core/tree/deltaUtil.d.ts.map +1 -1
  232. package/lib/core/tree/deltaUtil.js.map +1 -1
  233. package/lib/core/tree/detachedFieldIndex.d.ts +1 -1
  234. package/lib/core/tree/detachedFieldIndex.d.ts.map +1 -1
  235. package/lib/core/tree/detachedFieldIndex.js.map +1 -1
  236. package/lib/core/tree/detachedFieldIndexCodec.d.ts +1 -1
  237. package/lib/core/tree/detachedFieldIndexCodec.d.ts.map +1 -1
  238. package/lib/core/tree/detachedFieldIndexCodec.js +1 -1
  239. package/lib/core/tree/detachedFieldIndexCodec.js.map +1 -1
  240. package/lib/core/tree/pathTree.d.ts.map +1 -1
  241. package/lib/core/tree/pathTree.js.map +1 -1
  242. package/lib/core/tree/treeTextFormat.d.ts.map +1 -1
  243. package/lib/core/tree/treeTextFormat.js.map +1 -1
  244. package/lib/core/tree/visitDelta.d.ts +1 -1
  245. package/lib/core/tree/visitDelta.d.ts.map +1 -1
  246. package/lib/core/tree/visitDelta.js.map +1 -1
  247. package/lib/core/tree/visitorUtils.d.ts +2 -2
  248. package/lib/core/tree/visitorUtils.d.ts.map +1 -1
  249. package/lib/core/tree/visitorUtils.js.map +1 -1
  250. package/lib/feature-libraries/chunked-forest/chunkTree.d.ts +1 -1
  251. package/lib/feature-libraries/chunked-forest/chunkTree.d.ts.map +1 -1
  252. package/lib/feature-libraries/chunked-forest/chunkTree.js +1 -1
  253. package/lib/feature-libraries/chunked-forest/chunkTree.js.map +1 -1
  254. package/lib/feature-libraries/chunked-forest/chunkedForest.d.ts +1 -1
  255. package/lib/feature-libraries/chunked-forest/chunkedForest.d.ts.map +1 -1
  256. package/lib/feature-libraries/chunked-forest/chunkedForest.js +1 -1
  257. package/lib/feature-libraries/chunked-forest/chunkedForest.js.map +1 -1
  258. package/lib/feature-libraries/chunked-forest/codec/chunkDecoding.d.ts +1 -1
  259. package/lib/feature-libraries/chunked-forest/codec/chunkDecoding.d.ts.map +1 -1
  260. package/lib/feature-libraries/chunked-forest/codec/chunkDecoding.js.map +1 -1
  261. package/lib/feature-libraries/chunked-forest/codec/chunkDecodingGeneric.d.ts +2 -2
  262. package/lib/feature-libraries/chunked-forest/codec/chunkDecodingGeneric.d.ts.map +1 -1
  263. package/lib/feature-libraries/chunked-forest/codec/chunkDecodingGeneric.js.map +1 -1
  264. package/lib/feature-libraries/chunked-forest/codec/chunkEncodingGeneric.d.ts.map +1 -1
  265. package/lib/feature-libraries/chunked-forest/codec/chunkEncodingGeneric.js.map +1 -1
  266. package/lib/feature-libraries/chunked-forest/codec/codecs.d.ts +8 -2
  267. package/lib/feature-libraries/chunked-forest/codec/codecs.d.ts.map +1 -1
  268. package/lib/feature-libraries/chunked-forest/codec/codecs.js +10 -0
  269. package/lib/feature-libraries/chunked-forest/codec/codecs.js.map +1 -1
  270. package/lib/feature-libraries/chunked-forest/codec/compressedEncode.d.ts +1 -1
  271. package/lib/feature-libraries/chunked-forest/codec/compressedEncode.d.ts.map +1 -1
  272. package/lib/feature-libraries/chunked-forest/codec/compressedEncode.js.map +1 -1
  273. package/lib/feature-libraries/chunked-forest/codec/index.d.ts +1 -1
  274. package/lib/feature-libraries/chunked-forest/codec/index.d.ts.map +1 -1
  275. package/lib/feature-libraries/chunked-forest/codec/index.js +1 -1
  276. package/lib/feature-libraries/chunked-forest/codec/index.js.map +1 -1
  277. package/lib/feature-libraries/chunked-forest/codec/nodeShape.d.ts.map +1 -1
  278. package/lib/feature-libraries/chunked-forest/codec/nodeShape.js +1 -1
  279. package/lib/feature-libraries/chunked-forest/codec/nodeShape.js.map +1 -1
  280. package/lib/feature-libraries/chunked-forest/codec/schemaBasedEncode.d.ts +1 -1
  281. package/lib/feature-libraries/chunked-forest/codec/schemaBasedEncode.d.ts.map +1 -1
  282. package/lib/feature-libraries/chunked-forest/codec/schemaBasedEncode.js.map +1 -1
  283. package/lib/feature-libraries/chunked-forest/emptyChunk.d.ts.map +1 -1
  284. package/lib/feature-libraries/chunked-forest/emptyChunk.js.map +1 -1
  285. package/lib/feature-libraries/chunked-forest/index.d.ts +1 -1
  286. package/lib/feature-libraries/chunked-forest/index.d.ts.map +1 -1
  287. package/lib/feature-libraries/chunked-forest/index.js +1 -1
  288. package/lib/feature-libraries/chunked-forest/index.js.map +1 -1
  289. package/lib/feature-libraries/chunked-forest/sequenceChunk.d.ts +1 -1
  290. package/lib/feature-libraries/chunked-forest/sequenceChunk.d.ts.map +1 -1
  291. package/lib/feature-libraries/chunked-forest/sequenceChunk.js +1 -1
  292. package/lib/feature-libraries/chunked-forest/sequenceChunk.js.map +1 -1
  293. package/lib/feature-libraries/chunked-forest/uniformChunk.d.ts +1 -1
  294. package/lib/feature-libraries/chunked-forest/uniformChunk.d.ts.map +1 -1
  295. package/lib/feature-libraries/chunked-forest/uniformChunk.js +1 -1
  296. package/lib/feature-libraries/chunked-forest/uniformChunk.js.map +1 -1
  297. package/lib/feature-libraries/default-schema/defaultEditBuilder.js.map +1 -1
  298. package/lib/feature-libraries/default-schema/defaultFieldKinds.d.ts.map +1 -1
  299. package/lib/feature-libraries/default-schema/defaultFieldKinds.js.map +1 -1
  300. package/lib/feature-libraries/default-schema/index.d.ts +1 -1
  301. package/lib/feature-libraries/default-schema/index.d.ts.map +1 -1
  302. package/lib/feature-libraries/default-schema/index.js +1 -1
  303. package/lib/feature-libraries/default-schema/index.js.map +1 -1
  304. package/lib/feature-libraries/default-schema/mappedEditBuilder.d.ts.map +1 -1
  305. package/lib/feature-libraries/default-schema/mappedEditBuilder.js.map +1 -1
  306. package/lib/feature-libraries/default-schema/schemaChecker.d.ts +4 -0
  307. package/lib/feature-libraries/default-schema/schemaChecker.d.ts.map +1 -1
  308. package/lib/feature-libraries/default-schema/schemaChecker.js +33 -25
  309. package/lib/feature-libraries/default-schema/schemaChecker.js.map +1 -1
  310. package/lib/feature-libraries/flex-tree/context.d.ts +16 -14
  311. package/lib/feature-libraries/flex-tree/context.d.ts.map +1 -1
  312. package/lib/feature-libraries/flex-tree/context.js +11 -16
  313. package/lib/feature-libraries/flex-tree/context.js.map +1 -1
  314. package/lib/feature-libraries/flex-tree/index.d.ts +1 -1
  315. package/lib/feature-libraries/flex-tree/index.d.ts.map +1 -1
  316. package/lib/feature-libraries/flex-tree/index.js +1 -1
  317. package/lib/feature-libraries/flex-tree/index.js.map +1 -1
  318. package/lib/feature-libraries/flex-tree/lazyField.d.ts +1 -5
  319. package/lib/feature-libraries/flex-tree/lazyField.d.ts.map +1 -1
  320. package/lib/feature-libraries/flex-tree/lazyField.js +1 -14
  321. package/lib/feature-libraries/flex-tree/lazyField.js.map +1 -1
  322. package/lib/feature-libraries/flex-tree/utilities.d.ts +6 -6
  323. package/lib/feature-libraries/flex-tree/utilities.d.ts.map +1 -1
  324. package/lib/feature-libraries/flex-tree/utilities.js +6 -7
  325. package/lib/feature-libraries/flex-tree/utilities.js.map +1 -1
  326. package/lib/feature-libraries/index.d.ts +3 -3
  327. package/lib/feature-libraries/index.d.ts.map +1 -1
  328. package/lib/feature-libraries/index.js +3 -3
  329. package/lib/feature-libraries/index.js.map +1 -1
  330. package/lib/feature-libraries/initializeForest.d.ts.map +1 -1
  331. package/lib/feature-libraries/initializeForest.js.map +1 -1
  332. package/lib/feature-libraries/treeCursorUtils.d.ts.map +1 -1
  333. package/lib/feature-libraries/treeCursorUtils.js +1 -1
  334. package/lib/feature-libraries/treeCursorUtils.js.map +1 -1
  335. package/lib/feature-libraries/valueUtilities.d.ts.map +1 -1
  336. package/lib/feature-libraries/valueUtilities.js +1 -1
  337. package/lib/feature-libraries/valueUtilities.js.map +1 -1
  338. package/lib/jsonDomainSchema.d.ts.map +1 -1
  339. package/lib/jsonDomainSchema.js.map +1 -1
  340. package/lib/packageVersion.d.ts +1 -1
  341. package/lib/packageVersion.js +1 -1
  342. package/lib/packageVersion.js.map +1 -1
  343. package/lib/serializableDomainSchema.d.ts.map +1 -1
  344. package/lib/serializableDomainSchema.js.map +1 -1
  345. package/lib/shared-tree/checkoutFlexTreeView.d.ts +7 -3
  346. package/lib/shared-tree/checkoutFlexTreeView.d.ts.map +1 -1
  347. package/lib/shared-tree/checkoutFlexTreeView.js +12 -3
  348. package/lib/shared-tree/checkoutFlexTreeView.js.map +1 -1
  349. package/lib/shared-tree/schematizingTreeView.d.ts +3 -0
  350. package/lib/shared-tree/schematizingTreeView.d.ts.map +1 -1
  351. package/lib/shared-tree/schematizingTreeView.js +11 -6
  352. package/lib/shared-tree/schematizingTreeView.js.map +1 -1
  353. package/lib/shared-tree/treeAlpha.d.ts +9 -4
  354. package/lib/shared-tree/treeAlpha.d.ts.map +1 -1
  355. package/lib/shared-tree/treeAlpha.js +22 -10
  356. package/lib/shared-tree/treeAlpha.js.map +1 -1
  357. package/lib/sharedTreeAttributes.d.ts.map +1 -1
  358. package/lib/sharedTreeAttributes.js.map +1 -1
  359. package/lib/simple-tree/api/create.d.ts +5 -1
  360. package/lib/simple-tree/api/create.d.ts.map +1 -1
  361. package/lib/simple-tree/api/create.js +9 -11
  362. package/lib/simple-tree/api/create.js.map +1 -1
  363. package/lib/simple-tree/api/index.d.ts +3 -3
  364. package/lib/simple-tree/api/index.d.ts.map +1 -1
  365. package/lib/simple-tree/api/index.js +3 -3
  366. package/lib/simple-tree/api/index.js.map +1 -1
  367. package/lib/simple-tree/api/storedSchema.d.ts +1 -8
  368. package/lib/simple-tree/api/storedSchema.d.ts.map +1 -1
  369. package/lib/simple-tree/api/storedSchema.js +2 -12
  370. package/lib/simple-tree/api/storedSchema.js.map +1 -1
  371. package/lib/simple-tree/api/treeNodeApi.d.ts +8 -0
  372. package/lib/simple-tree/api/treeNodeApi.d.ts.map +1 -1
  373. package/lib/simple-tree/api/treeNodeApi.js +2 -2
  374. package/lib/simple-tree/api/treeNodeApi.js.map +1 -1
  375. package/lib/simple-tree/arrayNode.d.ts.map +1 -1
  376. package/lib/simple-tree/arrayNode.js +4 -10
  377. package/lib/simple-tree/arrayNode.js.map +1 -1
  378. package/lib/simple-tree/core/getOrCreateNode.js +2 -2
  379. package/lib/simple-tree/core/getOrCreateNode.js.map +1 -1
  380. package/lib/simple-tree/core/treeNodeKernel.d.ts +5 -17
  381. package/lib/simple-tree/core/treeNodeKernel.d.ts.map +1 -1
  382. package/lib/simple-tree/core/treeNodeKernel.js +16 -47
  383. package/lib/simple-tree/core/treeNodeKernel.js.map +1 -1
  384. package/lib/simple-tree/core/unhydratedFlexTree.d.ts +4 -4
  385. package/lib/simple-tree/core/unhydratedFlexTree.js +4 -4
  386. package/lib/simple-tree/core/unhydratedFlexTree.js.map +1 -1
  387. package/lib/simple-tree/getTreeNodeForField.d.ts +12 -0
  388. package/lib/simple-tree/getTreeNodeForField.d.ts.map +1 -0
  389. package/lib/simple-tree/getTreeNodeForField.js +35 -0
  390. package/lib/simple-tree/getTreeNodeForField.js.map +1 -0
  391. package/lib/simple-tree/index.d.ts +3 -2
  392. package/lib/simple-tree/index.d.ts.map +1 -1
  393. package/lib/simple-tree/index.js +3 -2
  394. package/lib/simple-tree/index.js.map +1 -1
  395. package/lib/simple-tree/mapNode.d.ts.map +1 -1
  396. package/lib/simple-tree/mapNode.js +3 -6
  397. package/lib/simple-tree/mapNode.js.map +1 -1
  398. package/lib/simple-tree/objectNode.d.ts.map +1 -1
  399. package/lib/simple-tree/objectNode.js +4 -6
  400. package/lib/simple-tree/objectNode.js.map +1 -1
  401. package/lib/simple-tree/prepareForInsertion.d.ts +42 -0
  402. package/lib/simple-tree/prepareForInsertion.d.ts.map +1 -0
  403. package/lib/simple-tree/prepareForInsertion.js +160 -0
  404. package/lib/simple-tree/prepareForInsertion.js.map +1 -0
  405. package/lib/simple-tree/toMapTree.d.ts +4 -9
  406. package/lib/simple-tree/toMapTree.d.ts.map +1 -1
  407. package/lib/simple-tree/toMapTree.js +4 -22
  408. package/lib/simple-tree/toMapTree.js.map +1 -1
  409. package/lib/tableSchema.d.ts +201 -104
  410. package/lib/tableSchema.d.ts.map +1 -1
  411. package/lib/tableSchema.js +156 -59
  412. package/lib/tableSchema.js.map +1 -1
  413. package/lib/treeFactory.d.ts.map +1 -1
  414. package/lib/treeFactory.js +2 -2
  415. package/lib/treeFactory.js.map +1 -1
  416. package/lib/tsdoc-metadata.json +1 -1
  417. package/package.json +25 -25
  418. package/src/codec/codec.ts +54 -8
  419. package/src/core/change-family/editBuilder.ts +1 -0
  420. package/src/core/forest/forest.ts +1 -1
  421. package/src/core/schema-stored/schema.ts +2 -0
  422. package/src/core/schema-stored/storedSchemaRepository.ts +2 -2
  423. package/src/core/tree/anchorSet.ts +4 -4
  424. package/src/core/tree/chunk.ts +2 -1
  425. package/src/core/tree/delta.ts +1 -0
  426. package/src/core/tree/deltaUtil.ts +1 -1
  427. package/src/core/tree/detachedFieldIndex.ts +1 -1
  428. package/src/core/tree/detachedFieldIndexCodec.ts +2 -2
  429. package/src/core/tree/pathTree.ts +1 -1
  430. package/src/core/tree/treeTextFormat.ts +1 -0
  431. package/src/core/tree/visitDelta.ts +1 -1
  432. package/src/core/tree/visitorUtils.ts +3 -2
  433. package/src/feature-libraries/chunked-forest/chunkTree.ts +2 -2
  434. package/src/feature-libraries/chunked-forest/chunkedForest.ts +3 -3
  435. package/src/feature-libraries/chunked-forest/codec/chunkDecoding.ts +5 -5
  436. package/src/feature-libraries/chunked-forest/codec/chunkDecodingGeneric.ts +2 -2
  437. package/src/feature-libraries/chunked-forest/codec/chunkEncodingGeneric.ts +1 -0
  438. package/src/feature-libraries/chunked-forest/codec/codecs.ts +15 -1
  439. package/src/feature-libraries/chunked-forest/codec/compressedEncode.ts +1 -1
  440. package/src/feature-libraries/chunked-forest/codec/index.ts +1 -0
  441. package/src/feature-libraries/chunked-forest/codec/nodeShape.ts +1 -1
  442. package/src/feature-libraries/chunked-forest/codec/schemaBasedEncode.ts +1 -1
  443. package/src/feature-libraries/chunked-forest/emptyChunk.ts +1 -0
  444. package/src/feature-libraries/chunked-forest/index.ts +1 -0
  445. package/src/feature-libraries/chunked-forest/sequenceChunk.ts +1 -1
  446. package/src/feature-libraries/chunked-forest/uniformChunk.ts +2 -3
  447. package/src/feature-libraries/default-schema/defaultEditBuilder.ts +1 -1
  448. package/src/feature-libraries/default-schema/defaultFieldKinds.ts +1 -0
  449. package/src/feature-libraries/default-schema/index.ts +6 -1
  450. package/src/feature-libraries/default-schema/mappedEditBuilder.ts +1 -0
  451. package/src/feature-libraries/default-schema/schemaChecker.ts +37 -26
  452. package/src/feature-libraries/flex-tree/context.ts +18 -20
  453. package/src/feature-libraries/flex-tree/index.ts +0 -1
  454. package/src/feature-libraries/flex-tree/lazyField.ts +2 -14
  455. package/src/feature-libraries/flex-tree/utilities.ts +8 -8
  456. package/src/feature-libraries/index.ts +2 -1
  457. package/src/feature-libraries/initializeForest.ts +1 -1
  458. package/src/feature-libraries/treeCursorUtils.ts +1 -1
  459. package/src/feature-libraries/valueUtilities.ts +1 -1
  460. package/src/jsonDomainSchema.ts +0 -1
  461. package/src/packageVersion.ts +1 -1
  462. package/src/serializableDomainSchema.ts +1 -0
  463. package/src/shared-tree/checkoutFlexTreeView.ts +10 -6
  464. package/src/shared-tree/schematizingTreeView.ts +11 -12
  465. package/src/shared-tree/treeAlpha.ts +50 -13
  466. package/src/sharedTreeAttributes.ts +1 -0
  467. package/src/simple-tree/api/create.ts +17 -16
  468. package/src/simple-tree/api/index.ts +13 -3
  469. package/src/simple-tree/api/storedSchema.ts +2 -19
  470. package/src/simple-tree/api/treeNodeApi.ts +2 -2
  471. package/src/simple-tree/arrayNode.ts +9 -20
  472. package/src/simple-tree/core/getOrCreateNode.ts +2 -2
  473. package/src/simple-tree/core/treeNodeKernel.ts +22 -53
  474. package/src/simple-tree/core/unhydratedFlexTree.ts +4 -4
  475. package/src/simple-tree/getTreeNodeForField.ts +46 -0
  476. package/src/simple-tree/index.ts +8 -5
  477. package/src/simple-tree/mapNode.ts +8 -12
  478. package/src/simple-tree/objectNode.ts +3 -12
  479. package/src/simple-tree/prepareForInsertion.ts +276 -0
  480. package/src/simple-tree/toMapTree.ts +3 -27
  481. package/src/tableSchema.ts +351 -138
  482. package/src/treeFactory.ts +2 -4
  483. package/dist/simple-tree/proxies.d.ts +0 -23
  484. package/dist/simple-tree/proxies.d.ts.map +0 -1
  485. package/dist/simple-tree/proxies.js +0 -135
  486. package/dist/simple-tree/proxies.js.map +0 -1
  487. package/lib/simple-tree/proxies.d.ts +0 -23
  488. package/lib/simple-tree/proxies.d.ts.map +0 -1
  489. package/lib/simple-tree/proxies.js +0 -130
  490. package/lib/simple-tree/proxies.js.map +0 -1
  491. package/src/simple-tree/proxies.ts +0 -191
@@ -1 +1 @@
1
- {"version":3,"file":"tableSchema.d.ts","sourceRoot":"","sources":["../src/tableSchema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EACN,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAEzB,KAAK,0CAA0C,EAC/C,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,aAAa,EACb,KAAK,QAAQ,EACb,KAAK,gCAAgC,EAErC,KAAK,mBAAmB,EACxB,KAAK,QAAQ,EACb,KAAK,0BAA0B,EAC/B,KAAK,oCAAoC,EACzC,KAAK,gBAAgB,EACrB,aAAa,EACb,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,MAAM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,EAAE,KAAK,CAAC,EAElE,MAAM,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG;QACvF,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;KACnB,GACC,kBAAkB,CAAC,eAAe,CACpC,MAAM,EACN,KAAK,EACL,kBAAkB,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,EACvF,IAAI,CACJ,CAAC;IACF;;;;;;;OAOG;IACH,SAAgB,KAAK,CACpB,KAAK,CAAC,MAAM,SAAS,MAAM,GAAG,SAAS,EACvC,KAAK,CAAC,KAAK,SAAS,oBAAoB,EACxC,KAAK,CAAC,OAAO,SAAS,kBAAkB,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,EACxE,KAAK,CAAC,IAAI,SAAS,kBAAkB,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,EAElE,MAAM,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG;QACvF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;QACzB,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;KACnB,GACC,kBAAkB,CAAC,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;CA4BpE"}
@@ -5,7 +5,7 @@
5
5
  import { oob } from "@fluidframework/core-utils/internal";
6
6
  import { UsageError } from "@fluidframework/telemetry-utils/internal";
7
7
  import { Tree } from "./shared-tree/index.js";
8
- import { TreeArrayNode, SchemaFactory, } from "./simple-tree/index.js";
8
+ import { TreeArrayNode, SchemaFactory, isArrayNodeSchema, } from "./simple-tree/index.js";
9
9
  // Future improvement TODOs:
10
10
  // - Omit `cells` property from Row insertion type.
11
11
  // - Record-like type parameters / input parameters?
@@ -16,6 +16,32 @@ import { TreeArrayNode, SchemaFactory, } from "./simple-tree/index.js";
16
16
  * The sub-scope applied to user-provided {@link SchemaFactory}s by table schema factories.
17
17
  */
18
18
  const tableSchemaFactorySubScope = "table";
19
+ /**
20
+ * Gets the table containing the provided row/column node, if the node is part of a table.
21
+ * @remarks Assumes that the table is the grandparent of the row/column node.
22
+ */
23
+ function getParentTable(rowOrColumnNode) {
24
+ const rowListNode = Tree.parent(rowOrColumnNode);
25
+ if (rowListNode === undefined || !isArrayNodeSchema(Tree.schema(rowListNode))) {
26
+ return undefined;
27
+ }
28
+ const tableNode = Tree.parent(rowListNode);
29
+ if (tableNode === undefined || !isTableNode(tableNode)) {
30
+ return undefined;
31
+ }
32
+ return tableNode;
33
+ }
34
+ /**
35
+ * A private symbol put on table schema to help identify them.
36
+ */
37
+ const tableSchemaSymbol = Symbol("tableNode");
38
+ /**
39
+ * Type-guard to determine if a node is a table node.
40
+ * @remarks Uses {@link tableSchemaSymbol} to identify table nodes.
41
+ */
42
+ function isTableNode(node) {
43
+ return tableSchemaSymbol in Tree.schema(node);
44
+ }
19
45
  /**
20
46
  * Not intended for use outside of this package.
21
47
  *
@@ -24,16 +50,16 @@ const tableSchemaFactorySubScope = "table";
24
50
  * This namespace should be strictly type-exported by the package.
25
51
  * All members should be tagged with `@system`.
26
52
  *
27
- * @system @internal
53
+ * @system @alpha
28
54
  */
29
55
  export var System_TableSchema;
30
56
  (function (System_TableSchema) {
31
57
  /**
32
58
  * Factory for creating column schema.
33
- * @system @internal
59
+ * @system @alpha
34
60
  */
35
61
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
36
- function createColumnSchema(inputSchemaFactory, propsSchema) {
62
+ function createColumnSchema(inputSchemaFactory, cellSchema, propsSchema) {
37
63
  const schemaFactory = inputSchemaFactory.scopedFactory(tableSchemaFactorySubScope);
38
64
  // Note: `columnFields` is broken into two parts to work around a TypeScript bug
39
65
  // that results in broken `.d.ts` output.
@@ -66,6 +92,23 @@ export var System_TableSchema;
66
92
  // Will make it easier to evolve this schema in the future.
67
93
  allowUnknownOptionalFields: true,
68
94
  }) {
95
+ getCells() {
96
+ const tableNode = getParentTable(this);
97
+ if (tableNode === undefined) {
98
+ throw new UsageError(`Column with ID "${this.id}" is not contained in a table.`);
99
+ }
100
+ const result = [];
101
+ for (const row of tableNode.rows) {
102
+ const cell = row.getCell(this.id);
103
+ if (cell !== undefined) {
104
+ if (!Tree.is(cell, cellSchema)) {
105
+ throw new UsageError("Parent table contains a cell with incompatible with this column.");
106
+ }
107
+ result.push({ rowId: row.id, cell: cell });
108
+ }
109
+ }
110
+ return result;
111
+ }
69
112
  }
70
113
  // Returning SingletonSchema without a type conversion results in TypeScript generating something like `readonly "__#124291@#brand": unknown;`
71
114
  // for the private brand field of TreeNode.
@@ -78,7 +121,7 @@ export var System_TableSchema;
78
121
  System_TableSchema.createColumnSchema = createColumnSchema;
79
122
  /**
80
123
  * Factory for creating row schema.
81
- * @sealed @internal
124
+ * @sealed @alpha
82
125
  */
83
126
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
84
127
  function createRowSchema(inputSchemaFactory, cellSchema, propsSchema) {
@@ -135,6 +178,18 @@ export var System_TableSchema;
135
178
  this.cells.delete(columnId);
136
179
  return cell;
137
180
  }
181
+ getCells() {
182
+ const result = [];
183
+ for (const [columnId, cell] of this.cells.entries()) {
184
+ if (cell !== undefined) {
185
+ result.push({
186
+ columnId,
187
+ cell,
188
+ });
189
+ }
190
+ }
191
+ return result;
192
+ }
138
193
  }
139
194
  // Returning SingletonSchema without a type conversion results in TypeScript generating something like `readonly "__#124291@#brand": unknown;`
140
195
  // for the private brand field of TreeNode.
@@ -147,7 +202,7 @@ export var System_TableSchema;
147
202
  System_TableSchema.createRowSchema = createRowSchema;
148
203
  /**
149
204
  * Factory for creating table schema.
150
- * @system @internal
205
+ * @system @alpha
151
206
  */
152
207
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- Return type is too complex to be reasonable to specify
153
208
  function createTableSchema(inputSchemaFactory, _cellSchema, columnSchema, rowSchema) {
@@ -168,6 +223,9 @@ export var System_TableSchema;
168
223
  // Will make it easier to evolve this schema in the future.
169
224
  allowUnknownOptionalFields: true,
170
225
  }) {
226
+ static empty() {
227
+ return new this({ columns: [], rows: [] });
228
+ }
171
229
  getColumn(id) {
172
230
  // TypeScript is unable to narrow the types correctly here, hence the casts.
173
231
  // See: https://github.com/microsoft/TypeScript/issues/52144
@@ -198,21 +256,10 @@ export var System_TableSchema;
198
256
  return inserted[0] ?? oob();
199
257
  }
200
258
  insertColumns({ columns, index, }) {
201
- // #region Input validation
202
259
  // Ensure index is valid
203
260
  if (index !== undefined) {
204
261
  Table.validateInsertionIndex(index, this.columns);
205
262
  }
206
- // Check all of the columns being inserted an ensure the table does not already contain any with the same ID.
207
- for (const column of columns) {
208
- // TypeScript is unable to narrow the type of the column type correctly here, hence the casts below.
209
- // See: https://github.com/microsoft/TypeScript/issues/52144
210
- const maybeId = column.id;
211
- if (maybeId !== undefined && this.containsColumnWithId(maybeId)) {
212
- throw new UsageError(`A column with ID "${column.id}" already exists in the table.`);
213
- }
214
- }
215
- // #endregion
216
263
  // TypeScript is unable to narrow the column type correctly here, hence the casts below.
217
264
  // See: https://github.com/microsoft/TypeScript/issues/52144
218
265
  if (index === undefined) {
@@ -242,11 +289,6 @@ export var System_TableSchema;
242
289
  // Note: TypeScript is unable to narrow the type of the row type correctly here, hence the casts below.
243
290
  // See: https://github.com/microsoft/TypeScript/issues/52144
244
291
  for (const newRow of rows) {
245
- // Check all of the rows being inserted an ensure the table does not already contain any with the same ID.
246
- const maybeId = newRow.id;
247
- if (maybeId !== undefined && this.containsRowWithId(maybeId)) {
248
- throw new UsageError(`A row with ID "${newRow.id}" already exists in the table.`);
249
- }
250
292
  // If the row contains cells, verify that the table contains the columns for those cells.
251
293
  // Note: we intentionally hide `cells` on `IRow` to avoid leaking the internal data representation as much as possible, so we have to cast here.
252
294
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -397,13 +439,13 @@ export var System_TableSchema;
397
439
  containsColumnWithId(columnId) {
398
440
  // TypeScript is unable to narrow the types correctly here, hence the cast.
399
441
  // See: https://github.com/microsoft/TypeScript/issues/52144
400
- return (this.columns.find((column) => column.id === columnId) !==
401
- undefined);
442
+ return (this.columns.find((column) => column.id === columnId) !== undefined);
402
443
  }
403
444
  containsRowWithId(rowId) {
404
445
  // TypeScript is unable to narrow the types correctly here, hence the cast.
405
446
  // See: https://github.com/microsoft/TypeScript/issues/52144
406
- return this.rows.find((row) => row.id === rowId) !== undefined;
447
+ return (this.rows.find((row) => row.id === rowId) !==
448
+ undefined);
407
449
  }
408
450
  /**
409
451
  * Ensure that the specified index is a valid location for item insertion in the destination list.
@@ -421,6 +463,12 @@ export var System_TableSchema;
421
463
  }
422
464
  }
423
465
  }
466
+ // Set a private symbol on the schema class that marks it as having been generated by this factory.
467
+ // Column / Row functionality use this to validate that they are being used in a table.
468
+ // This is effectively a work-around that allows columns and rows to invoke table methods
469
+ // without having to pass the table as a parameter to their construction, which isn't possible.
470
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
471
+ Table[tableSchemaSymbol] = true;
424
472
  // Returning SingletonSchema without a type conversion results in TypeScript generating something like `readonly "__#124291@#brand": unknown;`
425
473
  // for the private brand field of TreeNode.
426
474
  // This numeric id doesn't seem to be stable over incremental builds, and thus causes diffs in the API extractor reports.
@@ -438,6 +486,19 @@ export var System_TableSchema;
438
486
  *
439
487
  * @remarks
440
488
  *
489
+ * WARNING: These APIs are in preview and are subject to change.
490
+ * Until these APIs have stabilized, it is not recommended to use them in production code.
491
+ * There may be breaking changes to these APIs and their underlying data format.
492
+ * Using these APIs in production code may result in data loss or corruption.
493
+ *
494
+ * The primary APIs for create tabular data schema are:
495
+ *
496
+ * - {@link TableSchema.(table:1)}
497
+ *
498
+ * - {@link TableSchema.(column:1)}
499
+ *
500
+ * - {@link TableSchema.(row:1)}
501
+ *
441
502
  * Tables created using these APIs are...
442
503
  *
443
504
  * - sparse, meaning that cells may be omitted, and new rows are empty by default.
@@ -451,76 +512,111 @@ export var System_TableSchema;
451
512
  * Column and Row schema created using these APIs are extensible via the `props` field.
452
513
  * This allows association of additional properties with column and row nodes.
453
514
  *
454
- * Note: for now it is possible for table cells to become "orphaned".
515
+ * Cells in the table may become "orphaned."
455
516
  * That is, it is possible to enter a state where one or more rows contain cells with no corresponding column.
456
- * To help avoid this situation, you can manually remove corresponding cells when removing columns.
517
+ * To reduce the likelihood of this, you can manually remove corresponding cells when removing columns.
457
518
  * Either way, it is possible to enter such a state via the merging of edits.
458
519
  * For example: one client might add a row while another concurrently removes a column, orphaning the cell where the column and row intersected.
459
520
  *
460
- * @example Using default Column and Row schema
521
+ * @example Defining a Table schema
461
522
  *
462
523
  * ```typescript
463
- * class Cell extends schemaFactory.object("TableCell", {
464
- * value: schemaFactory.string,
465
- * }) {}
466
- *
467
- * class Table extends TableSchema.table({
524
+ * class MyTable extends TableSchema.table({
468
525
  * schemaFactory,
469
- * cell: Cell,
526
+ * cell: schemaFactory.string,
470
527
  * }) {}
471
528
  *
472
- * const table = new Table({
529
+ * const table = new MyTable({
473
530
  * columns: [{ id: "column-0" }],
474
- * rows: [{ id: "row-0", cells: {} }],
531
+ * rows: [{ id: "row-0", cells: { "column-0": "Hello world!" } }],
475
532
  * });
476
533
  * ```
477
534
  *
478
535
  * @example Customizing Column and Row schema
479
536
  *
480
537
  * ```typescript
481
- * class Cell extends schemaFactory.object("TableCell", {
482
- * value: schemaFactory.string,
483
- * }) {}
484
- *
485
- * class ColumnProps extends schemaFactory.object("TableColumnProps", {
486
- * // Column label to display.
487
- * label: schemaFactory.string,
488
- * // The type of data represented by the cells. Default: string.
489
- * dataType: schemaFactory.optional(schemaFactory.string),
490
- * }) {}
538
+ * const Cell = schemaFactory.string;
491
539
  *
492
- * class Column extends TableSchema.column({
540
+ * class MyColumn extends TableSchema.column({
493
541
  * schemaFactory,
494
- * props: ColumnProps,
542
+ * cell: Cell,
543
+ * props: schemaFactory.object("TableColumnProps", {
544
+ * label: schemaFactory.string,
545
+ * }),
495
546
  * }) {}
496
547
  *
497
- * class Row extends TableSchema.row({
548
+ * class MyRow extends TableSchema.row({
498
549
  * schemaFactory,
499
550
  * cell: Cell,
500
551
  * }) {}
501
552
  *
502
- * class Table extends TableSchema.table({
553
+ * class MyTable extends TableSchema.table({
503
554
  * schemaFactory,
504
555
  * cell: Cell,
505
- * column: Column,
506
- * row: Row,
556
+ * column: MyColumn,
557
+ * row: MyRow,
507
558
  * }) {}
508
559
  *
509
- * const table = new Table({
560
+ * const table = new MyTable({
510
561
  * columns: [
511
- * new Column({ props: { label: "Entry", dataType: "string" } }),
512
- * new Column({ props: { label: "Date", dataType: "date" } }),
513
- * new Column({ props: { label: "Amount", dataType: "number" } }),
562
+ * new MyColumn({ props: { label: "Entry" } }),
563
+ * new MyColumn({ props: { label: "Date" } }),
564
+ * new MyColumn({ props: { label: "Amount" } }),
514
565
  * ],
515
566
  * rows: [],
516
567
  * });
517
568
  * ```
518
569
  *
570
+ * @example Listening for changes in the table
571
+ *
572
+ * ```typescript
573
+ * // Listen for any changes to the table and its children.
574
+ * // The "treeChanged" event will fire when the associated node or any of its descendants change.
575
+ * Tree.on(table, "treeChanged", () => {
576
+ * // Respond to the change.
577
+ * });
578
+ * ```
579
+ *
580
+ * @example Listening for changes to the rows list only
581
+ *
582
+ * ```typescript
583
+ * // Listen for any changes to the list of rows.
584
+ * // The "nodeChanged" event will fire only when the specified node itself changes (i.e., its own properties change).
585
+ * // In this case, the event will fire when a row is added or removed, or the order of the list is changed.
586
+ * // But it won't fire when a row's properties change, or when the row's cells change, etc.
587
+ * Tree.on(table.rows, "nodeChanged", () => {
588
+ * // Respond to the change.
589
+ * });
590
+ * ```
591
+ *
592
+ * @example Removing column and cells in a transaction
593
+ *
594
+ * When removing a column, if you wish to ensure that all of its corresponding cells are also removed (and not
595
+ * orphaned), you can remove the column and all of the relevant cells in a transaction.
596
+ * Note that there are performance implications to this.
597
+ *
598
+ * ```typescript
599
+ * // Remove column1 and all of its cells.
600
+ * // The "transaction" method will ensure that all changes are applied atomically.
601
+ * Tree.runTransaction(table, () => {
602
+ * // Remove column1.
603
+ * table.removeColumn(column1);
604
+ *
605
+ * // Remove the cell at column1 for each row.
606
+ * for (const row of table.rows) {
607
+ * table.removeCell({
608
+ * column: column1,
609
+ * row,
610
+ * });
611
+ * }
612
+ * });
613
+ * ```
614
+ *
519
615
  * @privateRemarks
520
616
  * The above examples are backed by tests in `tableSchema.spec.ts`.
521
617
  * Those tests and these examples should be kept in-sync to ensure that the examples are correct.
522
618
  *
523
- * @internal
619
+ * @alpha
524
620
  */
525
621
  export var TableSchema;
526
622
  (function (TableSchema) {
@@ -528,8 +624,8 @@ export var TableSchema;
528
624
  /**
529
625
  * Overload implementation
530
626
  */
531
- function column({ schemaFactory, props = SchemaFactory.optional(SchemaFactory.null), }) {
532
- return System_TableSchema.createColumnSchema(schemaFactory, props);
627
+ function column({ schemaFactory, cell, props = SchemaFactory.optional(SchemaFactory.null), }) {
628
+ return System_TableSchema.createColumnSchema(schemaFactory, cell, props);
533
629
  }
534
630
  TableSchema.column = column;
535
631
  /**
@@ -544,6 +640,7 @@ export var TableSchema;
544
640
  */
545
641
  function table({ schemaFactory, cell: cellSchema, column: columnSchema = column({
546
642
  schemaFactory,
643
+ cell: cellSchema,
547
644
  }), row: rowSchema = row({
548
645
  schemaFactory,
549
646
  cell: cellSchema,