@fluidframework/tree 2.40.0-336023 → 2.40.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.
Files changed (445) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/api-report/tree.alpha.api.md +4 -1
  3. package/dist/alpha.d.ts +1 -0
  4. package/dist/codec/codec.d.ts +5 -1
  5. package/dist/codec/codec.d.ts.map +1 -1
  6. package/dist/codec/codec.js +6 -2
  7. package/dist/codec/codec.js.map +1 -1
  8. package/dist/codec/index.d.ts +1 -1
  9. package/dist/codec/index.d.ts.map +1 -1
  10. package/dist/codec/index.js +2 -1
  11. package/dist/codec/index.js.map +1 -1
  12. package/dist/core/index.d.ts +2 -2
  13. package/dist/core/index.d.ts.map +1 -1
  14. package/dist/core/index.js +2 -3
  15. package/dist/core/index.js.map +1 -1
  16. package/dist/core/schema-stored/{format.d.ts → formatV1.d.ts} +1 -1
  17. package/dist/core/schema-stored/formatV1.d.ts.map +1 -0
  18. package/dist/core/schema-stored/{format.js → formatV1.js} +1 -1
  19. package/dist/core/schema-stored/formatV1.js.map +1 -0
  20. package/dist/core/schema-stored/index.d.ts +3 -3
  21. package/dist/core/schema-stored/index.d.ts.map +1 -1
  22. package/dist/core/schema-stored/index.js +3 -3
  23. package/dist/core/schema-stored/index.js.map +1 -1
  24. package/dist/core/schema-stored/schema.d.ts +3 -1
  25. package/dist/core/schema-stored/schema.d.ts.map +1 -1
  26. package/dist/core/schema-stored/schema.js +8 -6
  27. package/dist/core/schema-stored/schema.js.map +1 -1
  28. package/dist/core/schema-stored/storedSchemaRepository.d.ts +1 -1
  29. package/dist/core/schema-stored/storedSchemaRepository.d.ts.map +1 -1
  30. package/dist/core/schema-stored/storedSchemaRepository.js.map +1 -1
  31. package/dist/core/schema-view/index.d.ts +1 -1
  32. package/dist/core/schema-view/index.d.ts.map +1 -1
  33. package/dist/core/schema-view/index.js +1 -2
  34. package/dist/core/schema-view/index.js.map +1 -1
  35. package/dist/core/schema-view/view.d.ts +0 -27
  36. package/dist/core/schema-view/view.d.ts.map +1 -1
  37. package/dist/core/schema-view/view.js +1 -35
  38. package/dist/core/schema-view/view.js.map +1 -1
  39. package/dist/core/tree/persistedTreeTextFormat.d.ts +4 -4
  40. package/dist/core/tree/persistedTreeTextFormat.d.ts.map +1 -1
  41. package/dist/core/tree/persistedTreeTextFormat.js +1 -1
  42. package/dist/core/tree/persistedTreeTextFormat.js.map +1 -1
  43. package/dist/feature-libraries/forest-summary/format.d.ts +2 -2
  44. package/dist/feature-libraries/forest-summary/format.d.ts.map +1 -1
  45. package/dist/feature-libraries/forest-summary/format.js +1 -1
  46. package/dist/feature-libraries/forest-summary/format.js.map +1 -1
  47. package/dist/feature-libraries/index.d.ts +1 -1
  48. package/dist/feature-libraries/index.d.ts.map +1 -1
  49. package/dist/feature-libraries/index.js +4 -2
  50. package/dist/feature-libraries/index.js.map +1 -1
  51. package/dist/feature-libraries/mapTreeCursor.d.ts +3 -3
  52. package/dist/feature-libraries/mapTreeCursor.d.ts.map +1 -1
  53. package/dist/feature-libraries/mapTreeCursor.js +2 -2
  54. package/dist/feature-libraries/mapTreeCursor.js.map +1 -1
  55. package/dist/feature-libraries/modular-schema/modularChangeFormat.d.ts +9 -9
  56. package/dist/feature-libraries/modular-schema/modularChangeFormat.d.ts.map +1 -1
  57. package/dist/feature-libraries/modular-schema/modularChangeFormat.js +2 -2
  58. package/dist/feature-libraries/modular-schema/modularChangeFormat.js.map +1 -1
  59. package/dist/feature-libraries/schema-edits/schemaChangeCodecs.d.ts +14 -1
  60. package/dist/feature-libraries/schema-edits/schemaChangeCodecs.d.ts.map +1 -1
  61. package/dist/feature-libraries/schema-edits/schemaChangeCodecs.js +26 -5
  62. package/dist/feature-libraries/schema-edits/schemaChangeCodecs.js.map +1 -1
  63. package/dist/feature-libraries/schema-edits/schemaChangeFormat.d.ts +2 -2
  64. package/dist/feature-libraries/schema-edits/schemaChangeFormat.d.ts.map +1 -1
  65. package/dist/feature-libraries/schema-edits/schemaChangeFormat.js.map +1 -1
  66. package/dist/feature-libraries/schema-index/codec.d.ts +34 -5
  67. package/dist/feature-libraries/schema-index/codec.d.ts.map +1 -1
  68. package/dist/feature-libraries/schema-index/codec.js +63 -9
  69. package/dist/feature-libraries/schema-index/codec.js.map +1 -1
  70. package/{lib/feature-libraries/schema-index/format.d.ts → dist/feature-libraries/schema-index/formatV1.d.ts} +9 -9
  71. package/dist/feature-libraries/schema-index/formatV1.d.ts.map +1 -0
  72. package/dist/feature-libraries/schema-index/{format.js → formatV1.js} +4 -4
  73. package/dist/feature-libraries/schema-index/formatV1.js.map +1 -0
  74. package/dist/feature-libraries/schema-index/index.d.ts +2 -2
  75. package/dist/feature-libraries/schema-index/index.d.ts.map +1 -1
  76. package/dist/feature-libraries/schema-index/index.js +6 -3
  77. package/dist/feature-libraries/schema-index/index.js.map +1 -1
  78. package/dist/feature-libraries/schema-index/schemaSummarizer.d.ts +5 -5
  79. package/dist/feature-libraries/schema-index/schemaSummarizer.d.ts.map +1 -1
  80. package/dist/feature-libraries/schema-index/schemaSummarizer.js +4 -4
  81. package/dist/feature-libraries/schema-index/schemaSummarizer.js.map +1 -1
  82. package/dist/index.d.ts +1 -0
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +10 -8
  85. package/dist/index.js.map +1 -1
  86. package/dist/packageVersion.d.ts +1 -1
  87. package/dist/packageVersion.d.ts.map +1 -1
  88. package/dist/packageVersion.js +1 -1
  89. package/dist/packageVersion.js.map +1 -1
  90. package/dist/shared-tree/independentView.d.ts.map +1 -1
  91. package/dist/shared-tree/independentView.js +1 -1
  92. package/dist/shared-tree/independentView.js.map +1 -1
  93. package/dist/shared-tree/index.d.ts +1 -1
  94. package/dist/shared-tree/index.d.ts.map +1 -1
  95. package/dist/shared-tree/index.js +2 -1
  96. package/dist/shared-tree/index.js.map +1 -1
  97. package/dist/shared-tree/schematizeTree.d.ts +8 -9
  98. package/dist/shared-tree/schematizeTree.d.ts.map +1 -1
  99. package/dist/shared-tree/schematizeTree.js +9 -33
  100. package/dist/shared-tree/schematizeTree.js.map +1 -1
  101. package/dist/shared-tree/schematizingTreeView.d.ts.map +1 -1
  102. package/dist/shared-tree/schematizingTreeView.js +1 -4
  103. package/dist/shared-tree/schematizingTreeView.js.map +1 -1
  104. package/dist/shared-tree/sharedTree.d.ts +28 -3
  105. package/dist/shared-tree/sharedTree.d.ts.map +1 -1
  106. package/dist/shared-tree/sharedTree.js +29 -3
  107. package/dist/shared-tree/sharedTree.js.map +1 -1
  108. package/dist/shared-tree/tree.d.ts +24 -0
  109. package/dist/shared-tree/tree.d.ts.map +1 -1
  110. package/dist/shared-tree/tree.js.map +1 -1
  111. package/dist/shared-tree/treeAlpha.d.ts +2 -0
  112. package/dist/shared-tree/treeAlpha.d.ts.map +1 -1
  113. package/dist/shared-tree/treeAlpha.js +3 -2
  114. package/dist/shared-tree/treeAlpha.js.map +1 -1
  115. package/dist/shared-tree-core/branchCommitEnricher.d.ts +0 -1
  116. package/dist/shared-tree-core/branchCommitEnricher.d.ts.map +1 -1
  117. package/dist/shared-tree-core/branchCommitEnricher.js +0 -1
  118. package/dist/shared-tree-core/branchCommitEnricher.js.map +1 -1
  119. package/dist/shared-tree-core/transactionEnricher.d.ts +1 -1
  120. package/dist/shared-tree-core/transactionEnricher.d.ts.map +1 -1
  121. package/dist/shared-tree-core/transactionEnricher.js +4 -1
  122. package/dist/shared-tree-core/transactionEnricher.js.map +1 -1
  123. package/dist/simple-tree/api/index.d.ts +2 -1
  124. package/dist/simple-tree/api/index.d.ts.map +1 -1
  125. package/dist/simple-tree/api/index.js +2 -1
  126. package/dist/simple-tree/api/index.js.map +1 -1
  127. package/dist/simple-tree/api/schemaFactory.d.ts +9 -0
  128. package/dist/simple-tree/api/schemaFactory.d.ts.map +1 -1
  129. package/dist/simple-tree/api/schemaFactory.js +7 -0
  130. package/dist/simple-tree/api/schemaFactory.js.map +1 -1
  131. package/dist/simple-tree/api/storedSchema.d.ts +8 -7
  132. package/dist/simple-tree/api/storedSchema.d.ts.map +1 -1
  133. package/dist/simple-tree/api/storedSchema.js +13 -9
  134. package/dist/simple-tree/api/storedSchema.js.map +1 -1
  135. package/dist/simple-tree/api/tree.d.ts +25 -0
  136. package/dist/simple-tree/api/tree.d.ts.map +1 -1
  137. package/dist/simple-tree/api/tree.js.map +1 -1
  138. package/dist/simple-tree/api/treeBeta.d.ts +4 -1
  139. package/dist/simple-tree/api/treeBeta.d.ts.map +1 -1
  140. package/dist/simple-tree/api/treeBeta.js.map +1 -1
  141. package/dist/simple-tree/api/treeChangeEvents.d.ts +83 -0
  142. package/dist/simple-tree/api/treeChangeEvents.d.ts.map +1 -0
  143. package/dist/simple-tree/api/treeChangeEvents.js +7 -0
  144. package/dist/simple-tree/api/treeChangeEvents.js.map +1 -0
  145. package/dist/simple-tree/api/treeNodeApi.d.ts +2 -1
  146. package/dist/simple-tree/api/treeNodeApi.d.ts.map +1 -1
  147. package/dist/simple-tree/api/treeNodeApi.js.map +1 -1
  148. package/dist/simple-tree/arrayNode.d.ts +28 -0
  149. package/dist/simple-tree/arrayNode.d.ts.map +1 -1
  150. package/dist/simple-tree/arrayNode.js.map +1 -1
  151. package/dist/simple-tree/core/getOrCreateNode.d.ts +1 -1
  152. package/dist/simple-tree/core/getOrCreateNode.d.ts.map +1 -1
  153. package/dist/simple-tree/core/getOrCreateNode.js.map +1 -1
  154. package/dist/simple-tree/core/index.d.ts +2 -1
  155. package/dist/simple-tree/core/index.d.ts.map +1 -1
  156. package/dist/simple-tree/core/index.js +5 -5
  157. package/dist/simple-tree/core/index.js.map +1 -1
  158. package/dist/simple-tree/core/treeNode.d.ts +94 -0
  159. package/dist/simple-tree/core/treeNode.d.ts.map +1 -0
  160. package/dist/simple-tree/core/treeNode.js +123 -0
  161. package/dist/simple-tree/core/treeNode.js.map +1 -0
  162. package/dist/simple-tree/core/treeNodeKernel.d.ts +2 -1
  163. package/dist/simple-tree/core/treeNodeKernel.d.ts.map +1 -1
  164. package/dist/simple-tree/core/treeNodeKernel.js.map +1 -1
  165. package/dist/simple-tree/core/treeNodeSchema.d.ts +3 -1
  166. package/dist/simple-tree/core/treeNodeSchema.d.ts.map +1 -1
  167. package/dist/simple-tree/core/treeNodeSchema.js.map +1 -1
  168. package/dist/simple-tree/core/types.d.ts +0 -165
  169. package/dist/simple-tree/core/types.d.ts.map +1 -1
  170. package/dist/simple-tree/core/types.js +1 -113
  171. package/dist/simple-tree/core/types.js.map +1 -1
  172. package/dist/simple-tree/core/withType.d.ts +1 -1
  173. package/dist/simple-tree/core/withType.d.ts.map +1 -1
  174. package/dist/simple-tree/core/withType.js.map +1 -1
  175. package/dist/simple-tree/index.d.ts +2 -2
  176. package/dist/simple-tree/index.d.ts.map +1 -1
  177. package/dist/simple-tree/index.js +3 -2
  178. package/dist/simple-tree/index.js.map +1 -1
  179. package/dist/simple-tree/schemaTypes.d.ts +1 -0
  180. package/dist/simple-tree/schemaTypes.d.ts.map +1 -1
  181. package/dist/simple-tree/schemaTypes.js.map +1 -1
  182. package/dist/simple-tree/toStoredSchema.d.ts +8 -8
  183. package/dist/simple-tree/toStoredSchema.d.ts.map +1 -1
  184. package/dist/simple-tree/toStoredSchema.js +27 -32
  185. package/dist/simple-tree/toStoredSchema.js.map +1 -1
  186. package/dist/tableSchema.d.ts +302 -83
  187. package/dist/tableSchema.d.ts.map +1 -1
  188. package/dist/tableSchema.js +299 -57
  189. package/dist/tableSchema.js.map +1 -1
  190. package/dist/treeFactory.d.ts +1 -1
  191. package/dist/treeFactory.d.ts.map +1 -1
  192. package/dist/treeFactory.js +30 -75
  193. package/dist/treeFactory.js.map +1 -1
  194. package/lib/alpha.d.ts +1 -0
  195. package/lib/codec/codec.d.ts +5 -1
  196. package/lib/codec/codec.d.ts.map +1 -1
  197. package/lib/codec/codec.js +5 -1
  198. package/lib/codec/codec.js.map +1 -1
  199. package/lib/codec/index.d.ts +1 -1
  200. package/lib/codec/index.d.ts.map +1 -1
  201. package/lib/codec/index.js +1 -1
  202. package/lib/codec/index.js.map +1 -1
  203. package/lib/core/index.d.ts +2 -2
  204. package/lib/core/index.d.ts.map +1 -1
  205. package/lib/core/index.js +2 -2
  206. package/lib/core/index.js.map +1 -1
  207. package/lib/core/schema-stored/{format.d.ts → formatV1.d.ts} +1 -1
  208. package/lib/core/schema-stored/formatV1.d.ts.map +1 -0
  209. package/lib/core/schema-stored/{format.js → formatV1.js} +1 -1
  210. package/lib/core/schema-stored/formatV1.js.map +1 -0
  211. package/lib/core/schema-stored/index.d.ts +3 -3
  212. package/lib/core/schema-stored/index.d.ts.map +1 -1
  213. package/lib/core/schema-stored/index.js +2 -2
  214. package/lib/core/schema-stored/index.js.map +1 -1
  215. package/lib/core/schema-stored/schema.d.ts +3 -1
  216. package/lib/core/schema-stored/schema.d.ts.map +1 -1
  217. package/lib/core/schema-stored/schema.js +3 -1
  218. package/lib/core/schema-stored/schema.js.map +1 -1
  219. package/lib/core/schema-stored/storedSchemaRepository.d.ts +1 -1
  220. package/lib/core/schema-stored/storedSchemaRepository.d.ts.map +1 -1
  221. package/lib/core/schema-stored/storedSchemaRepository.js.map +1 -1
  222. package/lib/core/schema-view/index.d.ts +1 -1
  223. package/lib/core/schema-view/index.d.ts.map +1 -1
  224. package/lib/core/schema-view/index.js +1 -1
  225. package/lib/core/schema-view/index.js.map +1 -1
  226. package/lib/core/schema-view/view.d.ts +0 -27
  227. package/lib/core/schema-view/view.d.ts.map +1 -1
  228. package/lib/core/schema-view/view.js +0 -34
  229. package/lib/core/schema-view/view.js.map +1 -1
  230. package/lib/core/tree/persistedTreeTextFormat.d.ts +4 -4
  231. package/lib/core/tree/persistedTreeTextFormat.d.ts.map +1 -1
  232. package/lib/core/tree/persistedTreeTextFormat.js +2 -2
  233. package/lib/core/tree/persistedTreeTextFormat.js.map +1 -1
  234. package/lib/feature-libraries/forest-summary/format.d.ts +2 -2
  235. package/lib/feature-libraries/forest-summary/format.d.ts.map +1 -1
  236. package/lib/feature-libraries/forest-summary/format.js +2 -2
  237. package/lib/feature-libraries/forest-summary/format.js.map +1 -1
  238. package/lib/feature-libraries/index.d.ts +1 -1
  239. package/lib/feature-libraries/index.d.ts.map +1 -1
  240. package/lib/feature-libraries/index.js +1 -1
  241. package/lib/feature-libraries/index.js.map +1 -1
  242. package/lib/feature-libraries/mapTreeCursor.d.ts +3 -3
  243. package/lib/feature-libraries/mapTreeCursor.d.ts.map +1 -1
  244. package/lib/feature-libraries/mapTreeCursor.js +2 -2
  245. package/lib/feature-libraries/mapTreeCursor.js.map +1 -1
  246. package/lib/feature-libraries/modular-schema/modularChangeFormat.d.ts +9 -9
  247. package/lib/feature-libraries/modular-schema/modularChangeFormat.d.ts.map +1 -1
  248. package/lib/feature-libraries/modular-schema/modularChangeFormat.js +3 -3
  249. package/lib/feature-libraries/modular-schema/modularChangeFormat.js.map +1 -1
  250. package/lib/feature-libraries/schema-edits/schemaChangeCodecs.d.ts +14 -1
  251. package/lib/feature-libraries/schema-edits/schemaChangeCodecs.d.ts.map +1 -1
  252. package/lib/feature-libraries/schema-edits/schemaChangeCodecs.js +26 -6
  253. package/lib/feature-libraries/schema-edits/schemaChangeCodecs.js.map +1 -1
  254. package/lib/feature-libraries/schema-edits/schemaChangeFormat.d.ts +2 -2
  255. package/lib/feature-libraries/schema-edits/schemaChangeFormat.d.ts.map +1 -1
  256. package/lib/feature-libraries/schema-edits/schemaChangeFormat.js +3 -3
  257. package/lib/feature-libraries/schema-edits/schemaChangeFormat.js.map +1 -1
  258. package/lib/feature-libraries/schema-index/codec.d.ts +34 -5
  259. package/lib/feature-libraries/schema-index/codec.d.ts.map +1 -1
  260. package/lib/feature-libraries/schema-index/codec.js +61 -9
  261. package/lib/feature-libraries/schema-index/codec.js.map +1 -1
  262. package/{dist/feature-libraries/schema-index/format.d.ts → lib/feature-libraries/schema-index/formatV1.d.ts} +9 -9
  263. package/lib/feature-libraries/schema-index/formatV1.d.ts.map +1 -0
  264. package/lib/feature-libraries/schema-index/{format.js → formatV1.js} +5 -5
  265. package/lib/feature-libraries/schema-index/formatV1.js.map +1 -0
  266. package/lib/feature-libraries/schema-index/index.d.ts +2 -2
  267. package/lib/feature-libraries/schema-index/index.d.ts.map +1 -1
  268. package/lib/feature-libraries/schema-index/index.js +2 -2
  269. package/lib/feature-libraries/schema-index/index.js.map +1 -1
  270. package/lib/feature-libraries/schema-index/schemaSummarizer.d.ts +5 -5
  271. package/lib/feature-libraries/schema-index/schemaSummarizer.d.ts.map +1 -1
  272. package/lib/feature-libraries/schema-index/schemaSummarizer.js +5 -5
  273. package/lib/feature-libraries/schema-index/schemaSummarizer.js.map +1 -1
  274. package/lib/index.d.ts +1 -0
  275. package/lib/index.d.ts.map +1 -1
  276. package/lib/index.js +1 -0
  277. package/lib/index.js.map +1 -1
  278. package/lib/packageVersion.d.ts +1 -1
  279. package/lib/packageVersion.d.ts.map +1 -1
  280. package/lib/packageVersion.js +1 -1
  281. package/lib/packageVersion.js.map +1 -1
  282. package/lib/shared-tree/independentView.d.ts.map +1 -1
  283. package/lib/shared-tree/independentView.js +2 -2
  284. package/lib/shared-tree/independentView.js.map +1 -1
  285. package/lib/shared-tree/index.d.ts +1 -1
  286. package/lib/shared-tree/index.d.ts.map +1 -1
  287. package/lib/shared-tree/index.js +1 -1
  288. package/lib/shared-tree/index.js.map +1 -1
  289. package/lib/shared-tree/schematizeTree.d.ts +8 -9
  290. package/lib/shared-tree/schematizeTree.d.ts.map +1 -1
  291. package/lib/shared-tree/schematizeTree.js +10 -34
  292. package/lib/shared-tree/schematizeTree.js.map +1 -1
  293. package/lib/shared-tree/schematizingTreeView.d.ts.map +1 -1
  294. package/lib/shared-tree/schematizingTreeView.js +2 -5
  295. package/lib/shared-tree/schematizingTreeView.js.map +1 -1
  296. package/lib/shared-tree/sharedTree.d.ts +28 -3
  297. package/lib/shared-tree/sharedTree.d.ts.map +1 -1
  298. package/lib/shared-tree/sharedTree.js +29 -4
  299. package/lib/shared-tree/sharedTree.js.map +1 -1
  300. package/lib/shared-tree/tree.d.ts +24 -0
  301. package/lib/shared-tree/tree.d.ts.map +1 -1
  302. package/lib/shared-tree/tree.js.map +1 -1
  303. package/lib/shared-tree/treeAlpha.d.ts +2 -0
  304. package/lib/shared-tree/treeAlpha.d.ts.map +1 -1
  305. package/lib/shared-tree/treeAlpha.js +4 -3
  306. package/lib/shared-tree/treeAlpha.js.map +1 -1
  307. package/lib/shared-tree-core/branchCommitEnricher.d.ts +0 -1
  308. package/lib/shared-tree-core/branchCommitEnricher.d.ts.map +1 -1
  309. package/lib/shared-tree-core/branchCommitEnricher.js +0 -1
  310. package/lib/shared-tree-core/branchCommitEnricher.js.map +1 -1
  311. package/lib/shared-tree-core/transactionEnricher.d.ts +1 -1
  312. package/lib/shared-tree-core/transactionEnricher.d.ts.map +1 -1
  313. package/lib/shared-tree-core/transactionEnricher.js +4 -1
  314. package/lib/shared-tree-core/transactionEnricher.js.map +1 -1
  315. package/lib/simple-tree/api/index.d.ts +2 -1
  316. package/lib/simple-tree/api/index.d.ts.map +1 -1
  317. package/lib/simple-tree/api/index.js +1 -1
  318. package/lib/simple-tree/api/index.js.map +1 -1
  319. package/lib/simple-tree/api/schemaFactory.d.ts +9 -0
  320. package/lib/simple-tree/api/schemaFactory.d.ts.map +1 -1
  321. package/lib/simple-tree/api/schemaFactory.js +7 -0
  322. package/lib/simple-tree/api/schemaFactory.js.map +1 -1
  323. package/lib/simple-tree/api/storedSchema.d.ts +8 -7
  324. package/lib/simple-tree/api/storedSchema.d.ts.map +1 -1
  325. package/lib/simple-tree/api/storedSchema.js +17 -11
  326. package/lib/simple-tree/api/storedSchema.js.map +1 -1
  327. package/lib/simple-tree/api/tree.d.ts +25 -0
  328. package/lib/simple-tree/api/tree.d.ts.map +1 -1
  329. package/lib/simple-tree/api/tree.js.map +1 -1
  330. package/lib/simple-tree/api/treeBeta.d.ts +4 -1
  331. package/lib/simple-tree/api/treeBeta.d.ts.map +1 -1
  332. package/lib/simple-tree/api/treeBeta.js.map +1 -1
  333. package/lib/simple-tree/api/treeChangeEvents.d.ts +83 -0
  334. package/lib/simple-tree/api/treeChangeEvents.d.ts.map +1 -0
  335. package/lib/simple-tree/api/treeChangeEvents.js +6 -0
  336. package/lib/simple-tree/api/treeChangeEvents.js.map +1 -0
  337. package/lib/simple-tree/api/treeNodeApi.d.ts +2 -1
  338. package/lib/simple-tree/api/treeNodeApi.d.ts.map +1 -1
  339. package/lib/simple-tree/api/treeNodeApi.js.map +1 -1
  340. package/lib/simple-tree/arrayNode.d.ts +28 -0
  341. package/lib/simple-tree/arrayNode.d.ts.map +1 -1
  342. package/lib/simple-tree/arrayNode.js.map +1 -1
  343. package/lib/simple-tree/core/getOrCreateNode.d.ts +1 -1
  344. package/lib/simple-tree/core/getOrCreateNode.d.ts.map +1 -1
  345. package/lib/simple-tree/core/getOrCreateNode.js.map +1 -1
  346. package/lib/simple-tree/core/index.d.ts +2 -1
  347. package/lib/simple-tree/core/index.d.ts.map +1 -1
  348. package/lib/simple-tree/core/index.js +1 -1
  349. package/lib/simple-tree/core/index.js.map +1 -1
  350. package/lib/simple-tree/core/treeNode.d.ts +94 -0
  351. package/lib/simple-tree/core/treeNode.d.ts.map +1 -0
  352. package/lib/simple-tree/core/treeNode.js +118 -0
  353. package/lib/simple-tree/core/treeNode.js.map +1 -0
  354. package/lib/simple-tree/core/treeNodeKernel.d.ts +2 -1
  355. package/lib/simple-tree/core/treeNodeKernel.d.ts.map +1 -1
  356. package/lib/simple-tree/core/treeNodeKernel.js.map +1 -1
  357. package/lib/simple-tree/core/treeNodeSchema.d.ts +3 -1
  358. package/lib/simple-tree/core/treeNodeSchema.d.ts.map +1 -1
  359. package/lib/simple-tree/core/treeNodeSchema.js.map +1 -1
  360. package/lib/simple-tree/core/types.d.ts +0 -165
  361. package/lib/simple-tree/core/types.d.ts.map +1 -1
  362. package/lib/simple-tree/core/types.js +0 -110
  363. package/lib/simple-tree/core/types.js.map +1 -1
  364. package/lib/simple-tree/core/withType.d.ts +1 -1
  365. package/lib/simple-tree/core/withType.d.ts.map +1 -1
  366. package/lib/simple-tree/core/withType.js.map +1 -1
  367. package/lib/simple-tree/index.d.ts +2 -2
  368. package/lib/simple-tree/index.d.ts.map +1 -1
  369. package/lib/simple-tree/index.js +1 -1
  370. package/lib/simple-tree/index.js.map +1 -1
  371. package/lib/simple-tree/schemaTypes.d.ts +1 -0
  372. package/lib/simple-tree/schemaTypes.d.ts.map +1 -1
  373. package/lib/simple-tree/schemaTypes.js.map +1 -1
  374. package/lib/simple-tree/toStoredSchema.d.ts +8 -8
  375. package/lib/simple-tree/toStoredSchema.d.ts.map +1 -1
  376. package/lib/simple-tree/toStoredSchema.js +26 -31
  377. package/lib/simple-tree/toStoredSchema.js.map +1 -1
  378. package/lib/tableSchema.d.ts +302 -83
  379. package/lib/tableSchema.d.ts.map +1 -1
  380. package/lib/tableSchema.js +299 -57
  381. package/lib/tableSchema.js.map +1 -1
  382. package/lib/treeFactory.d.ts +1 -1
  383. package/lib/treeFactory.d.ts.map +1 -1
  384. package/lib/treeFactory.js +30 -75
  385. package/lib/treeFactory.js.map +1 -1
  386. package/package.json +21 -21
  387. package/src/codec/codec.ts +6 -1
  388. package/src/codec/index.ts +1 -0
  389. package/src/core/index.ts +1 -2
  390. package/src/core/schema-stored/index.ts +3 -3
  391. package/src/core/schema-stored/schema.ts +3 -1
  392. package/src/core/schema-stored/storedSchemaRepository.ts +1 -1
  393. package/src/core/schema-view/index.ts +0 -1
  394. package/src/core/schema-view/view.ts +0 -31
  395. package/src/core/tree/persistedTreeTextFormat.ts +2 -2
  396. package/src/feature-libraries/forest-summary/format.ts +2 -2
  397. package/src/feature-libraries/index.ts +7 -1
  398. package/src/feature-libraries/mapTreeCursor.ts +3 -3
  399. package/src/feature-libraries/modular-schema/modularChangeFormat.ts +3 -3
  400. package/src/feature-libraries/schema-edits/schemaChangeCodecs.ts +38 -9
  401. package/src/feature-libraries/schema-edits/schemaChangeFormat.ts +3 -4
  402. package/src/feature-libraries/schema-index/codec.ts +80 -12
  403. package/src/feature-libraries/schema-index/{format.ts → formatV1.ts} +4 -4
  404. package/src/feature-libraries/schema-index/index.ts +7 -2
  405. package/src/feature-libraries/schema-index/schemaSummarizer.ts +9 -9
  406. package/src/index.ts +1 -0
  407. package/src/packageVersion.ts +1 -1
  408. package/src/shared-tree/independentView.ts +3 -2
  409. package/src/shared-tree/index.ts +2 -0
  410. package/src/shared-tree/schematizeTree.ts +5 -35
  411. package/src/shared-tree/schematizingTreeView.ts +2 -10
  412. package/src/shared-tree/sharedTree.ts +67 -6
  413. package/src/shared-tree/tree.ts +24 -0
  414. package/src/shared-tree/treeAlpha.ts +6 -3
  415. package/src/shared-tree-core/branchCommitEnricher.ts +0 -1
  416. package/src/shared-tree-core/transactionEnricher.ts +4 -1
  417. package/src/simple-tree/api/index.ts +2 -0
  418. package/src/simple-tree/api/schemaFactory.ts +9 -0
  419. package/src/simple-tree/api/storedSchema.ts +24 -13
  420. package/src/simple-tree/api/tree.ts +25 -0
  421. package/src/simple-tree/api/treeBeta.ts +3 -1
  422. package/src/simple-tree/api/treeChangeEvents.ts +84 -0
  423. package/src/simple-tree/api/treeNodeApi.ts +1 -1
  424. package/src/simple-tree/arrayNode.ts +28 -0
  425. package/src/simple-tree/core/getOrCreateNode.ts +1 -1
  426. package/src/simple-tree/core/index.ts +5 -4
  427. package/src/simple-tree/core/treeNode.ts +163 -0
  428. package/src/simple-tree/core/treeNodeKernel.ts +2 -1
  429. package/src/simple-tree/core/treeNodeSchema.ts +3 -1
  430. package/src/simple-tree/core/types.ts +0 -234
  431. package/src/simple-tree/core/withType.ts +1 -1
  432. package/src/simple-tree/index.ts +2 -1
  433. package/src/simple-tree/schemaTypes.ts +1 -0
  434. package/src/simple-tree/toStoredSchema.ts +42 -41
  435. package/src/tableSchema.ts +665 -197
  436. package/src/treeFactory.ts +56 -173
  437. package/dist/core/schema-stored/format.d.ts.map +0 -1
  438. package/dist/core/schema-stored/format.js.map +0 -1
  439. package/dist/feature-libraries/schema-index/format.d.ts.map +0 -1
  440. package/dist/feature-libraries/schema-index/format.js.map +0 -1
  441. package/lib/core/schema-stored/format.d.ts.map +0 -1
  442. package/lib/core/schema-stored/format.js.map +0 -1
  443. package/lib/feature-libraries/schema-index/format.d.ts.map +0 -1
  444. package/lib/feature-libraries/schema-index/format.js.map +0 -1
  445. /package/src/core/schema-stored/{format.ts → formatV1.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"tableSchema.d.ts","sourceRoot":"","sources":["../src/tableSchema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EACN,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EAExB,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,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,MAAM,wBAAwB,CAAC;AAQhC;;;;;;;;;GASG;AACH,yBAAiB,kBAAkB,CAAC;IACnC;;;;;OAKG;IACH,UAAiB,wBAAwB,CACxC,MAAM,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS;QAEtD;;;WAGG;QACH,QAAQ,CAAC,aAAa,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;KACnD;IAED;;;;;OAKG;IACH,UAAiB,qBAAqB,CACrC,WAAW,SAAS,oBAAoB,GAAG,oBAAoB;QAE/D;;WAEG;QACH,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;KAC3B;IAID;;;;OAIG;IACH,KAAY,uBAAuB,CAClC,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,IACxD,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sBrE"}
@@ -6,11 +6,18 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.TableSchema = exports.System_TableSchema = void 0;
8
8
  const internal_1 = require("@fluidframework/core-utils/internal");
9
+ const internal_2 = require("@fluidframework/telemetry-utils/internal");
9
10
  const index_js_1 = require("./shared-tree/index.js");
10
11
  const index_js_2 = require("./simple-tree/index.js");
11
- // Future improvement TODOs (ideally to be done before promoting these APIs to `@alpha`):
12
+ // Future improvement TODOs:
13
+ // - Omit `cells` property from Row insertion type.
12
14
  // - Record-like type parameters / input parameters?
13
15
  // - Omit `props` properties from Row and Column schemas when not provided?
16
+ // Longer-term work:
17
+ // - Add constraint APIs to make it possible to avoid situations that could yield "orphaned" cells.
18
+ /**
19
+ * The sub-scope applied to user-provided {@link SchemaFactory}s by table schema factories.
20
+ */
14
21
  const tableSchemaFactorySubScope = "table";
15
22
  /**
16
23
  * Not intended for use outside of this package.
@@ -118,15 +125,19 @@ var System_TableSchema;
118
125
  return this.cells.get(columnId);
119
126
  }
120
127
  setCell(columnOrId, value) {
128
+ // TODO: throw if column does not exist in the owning table.
121
129
  const columnId = typeof columnOrId === "string" ? columnOrId : columnOrId.id;
122
130
  this.cells.set(columnId, value);
123
131
  }
124
132
  removeCell(columnOrId) {
133
+ // TODO: throw if column does not exist in the owning table.
125
134
  const columnId = typeof columnOrId === "string" ? columnOrId : columnOrId.id;
126
- if (!this.cells.has(columnId)) {
127
- return;
135
+ const cell = this.cells.get(columnId);
136
+ if (cell === undefined) {
137
+ return undefined;
128
138
  }
129
139
  this.cells.delete(columnId);
140
+ return cell;
130
141
  }
131
142
  }
132
143
  // Returning SingletonSchema without a type conversion results in TypeScript generating something like `readonly "__#124291@#brand": unknown;`
@@ -172,98 +183,245 @@ var System_TableSchema;
172
183
  return this.rows.find((_row) => _row.id === id);
173
184
  }
174
185
  getCell(key) {
175
- const { columnId, rowId } = key;
176
- const row = this.getRow(rowId);
177
- if (row !== undefined) {
178
- const column = this.getColumn(columnId);
179
- if (column !== undefined) {
180
- return row.getCell(column.id);
181
- }
186
+ const { column: columnOrId, row: rowOrId } = key;
187
+ const row = this._getRow(rowOrId);
188
+ if (row === undefined) {
189
+ return undefined;
182
190
  }
183
- // If the cell does not exist return undefined
184
- return undefined;
191
+ const column = this._getColumn(columnOrId);
192
+ if (column === undefined) {
193
+ return undefined;
194
+ }
195
+ return row.getCell(column);
185
196
  }
186
197
  insertColumn({ column, index, }) {
187
- if (index === undefined) {
188
- // TypeScript is unable to narrow the types correctly here, hence the cast.
198
+ const inserted = this.insertColumns({
199
+ columns: [column],
200
+ index,
201
+ });
202
+ return inserted[0] ?? (0, internal_1.oob)();
203
+ }
204
+ insertColumns({ columns, index, }) {
205
+ // #region Input validation
206
+ // Ensure index is valid
207
+ if (index !== undefined) {
208
+ Table.validateInsertionIndex(index, this.columns);
209
+ }
210
+ // Check all of the columns being inserted an ensure the table does not already contain any with the same ID.
211
+ for (const column of columns) {
212
+ // TypeScript is unable to narrow the type of the column type correctly here, hence the casts below.
189
213
  // See: https://github.com/microsoft/TypeScript/issues/52144
214
+ const maybeId = column.id;
215
+ if (maybeId !== undefined && this.containsColumnWithId(maybeId)) {
216
+ throw new internal_2.UsageError(`A column with ID "${column.id}" already exists in the table.`);
217
+ }
218
+ }
219
+ // #endregion
220
+ // TypeScript is unable to narrow the column type correctly here, hence the casts below.
221
+ // See: https://github.com/microsoft/TypeScript/issues/52144
222
+ if (index === undefined) {
190
223
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
191
- this.columns.insertAtEnd(column);
224
+ this.columns.insertAtEnd(index_js_2.TreeArrayNode.spread(columns));
192
225
  }
193
226
  else {
194
- // TypeScript is unable to narrow the types correctly here, hence the cast.
195
- // See: https://github.com/microsoft/TypeScript/issues/52144
196
227
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
197
- this.columns.insertAt(index, column);
228
+ this.columns.insertAt(index, index_js_2.TreeArrayNode.spread(columns));
198
229
  }
199
- // Inserting the input node into the tree hydrates it, making it usable as a node.
200
- return column;
230
+ // Inserting the input nodes into the tree hydrates them, making them usable as nodes.
231
+ return columns;
232
+ }
233
+ insertRow({ row, index, }) {
234
+ const inserted = this.insertRows({
235
+ rows: [row],
236
+ index,
237
+ });
238
+ return inserted[0] ?? (0, internal_1.oob)();
201
239
  }
202
240
  insertRows({ index, rows, }) {
241
+ // #region Input validation
242
+ // Ensure index is valid
243
+ if (index !== undefined) {
244
+ Table.validateInsertionIndex(index, this.rows);
245
+ }
246
+ // Note: TypeScript is unable to narrow the type of the row type correctly here, hence the casts below.
247
+ // See: https://github.com/microsoft/TypeScript/issues/52144
248
+ for (const newRow of rows) {
249
+ // Check all of the rows being inserted an ensure the table does not already contain any with the same ID.
250
+ const maybeId = newRow.id;
251
+ if (maybeId !== undefined && this.containsRowWithId(maybeId)) {
252
+ throw new internal_2.UsageError(`A row with ID "${newRow.id}" already exists in the table.`);
253
+ }
254
+ // If the row contains cells, verify that the table contains the columns for those cells.
255
+ // Note: we intentionally hide `cells` on `IRow` to avoid leaking the internal data representation as much as possible, so we have to cast here.
256
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
257
+ if (newRow.cells !== undefined) {
258
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
259
+ const keys = Object.keys(newRow.cells);
260
+ for (const key of keys) {
261
+ if (!this.containsColumnWithId(key)) {
262
+ throw new internal_2.UsageError(`Attempted to insert row a cell under column ID "${key}", but the table does not contain a column with that ID.`);
263
+ }
264
+ }
265
+ }
266
+ }
267
+ // #endregion
268
+ // TypeScript is unable to narrow the row type correctly here, hence the casts below.
269
+ // See: https://github.com/microsoft/TypeScript/issues/52144
203
270
  if (index === undefined) {
204
- // TypeScript is unable to narrow the types correctly here, hence the cast.
205
- // See: https://github.com/microsoft/TypeScript/issues/52144
206
271
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
207
272
  this.rows.insertAtEnd(index_js_2.TreeArrayNode.spread(rows));
208
273
  }
209
274
  else {
210
- // TypeScript is unable to narrow the types correctly here, hence the cast.
211
- // See: https://github.com/microsoft/TypeScript/issues/52144
212
275
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
213
276
  this.rows.insertAt(index, index_js_2.TreeArrayNode.spread(rows));
214
277
  }
215
278
  // Inserting the input nodes into the tree hydrates them, making them usable as nodes.
216
279
  return rows;
217
280
  }
218
- setCell({ key, cell }) {
219
- const { columnId, rowId } = key;
220
- const row = this.getRow(rowId);
221
- if (row !== undefined) {
222
- const column = this.getColumn(columnId);
223
- if (column !== undefined) {
224
- row.setCell(column.id, cell);
225
- }
281
+ setCell({ key, cell, }) {
282
+ const { column: columnOrId, row: rowOrId } = key;
283
+ const row = this._getRow(rowOrId);
284
+ if (row === undefined) {
285
+ const rowId = this._getRowId(rowOrId);
286
+ throw new internal_2.UsageError(`No row with ID "${rowId}" exists in the table.`);
287
+ }
288
+ const column = this._getColumn(columnOrId);
289
+ if (column === undefined) {
290
+ const columnId = this._getColumnId(columnOrId);
291
+ throw new internal_2.UsageError(`No column with ID "${columnId}" exists in the table.`);
226
292
  }
293
+ row.setCell(column, cell);
227
294
  }
228
- removeColumn(column) {
229
- const index = this.columns.indexOf(column);
230
- // If the column is not in the table, do nothing
231
- if (index === -1)
232
- return;
295
+ removeColumns(columns) {
296
+ // If there are no columns to remove, do nothing
297
+ if (columns.length === 0) {
298
+ return [];
299
+ }
300
+ // If there is only one column to remove, remove it (and don't incur cost of transaction)
301
+ if (columns.length === 1) {
302
+ const removedColumn = this.removeColumn(columns[0] ?? (0, internal_1.oob)());
303
+ return [removedColumn];
304
+ }
305
+ // If there are multiple columns to remove, remove them in a transaction.
306
+ const removedColumns = [];
307
+ index_js_1.Tree.runTransaction(this, () => {
308
+ // Note, throwing an error within a transaction will abort the entire transaction.
309
+ // So if we throw an error here for any row, no columns will be removed.
310
+ for (const columnToRemove of columns) {
311
+ const removedRow = this.removeColumn(columnToRemove);
312
+ removedColumns.push(removedRow);
313
+ }
314
+ });
315
+ return removedColumns;
316
+ }
317
+ removeColumn(columnOrId) {
318
+ const column = this._getColumn(columnOrId);
319
+ const index = column === undefined ? -1 : this.columns.indexOf(column);
320
+ if (index === -1) {
321
+ const columnId = this._getColumnId(columnOrId);
322
+ throw new internal_2.UsageError(`Specified column with ID "${columnId}" does not exist in the table.`);
323
+ }
233
324
  this.columns.removeAt(index);
325
+ return column;
326
+ }
327
+ removeAllColumns() {
328
+ // TypeScript is unable to narrow the row type correctly here, hence the cast.
329
+ // See: https://github.com/microsoft/TypeScript/issues/52144
330
+ return this.removeColumns(this.columns);
234
331
  }
235
332
  removeRows(rows) {
236
333
  // If there are no rows to remove, do nothing
237
334
  if (rows.length === 0) {
238
- return;
335
+ return [];
239
336
  }
240
- // If there is only one row to remove, remove it
337
+ // If there is only one row to remove, remove it (and don't incur cost of transaction)
241
338
  if (rows.length === 1) {
242
- const index = this.rows.indexOf(rows[0] ?? (0, internal_1.oob)());
243
- this.rows.removeAt(index);
244
- return;
339
+ const removedRow = this.removeRow(rows[0] ?? (0, internal_1.oob)());
340
+ return [removedRow];
245
341
  }
246
- // If there are multiple rows to remove, remove them in a transaction
247
- // This is to avoid the performance issues of deleting multiple rows at once
342
+ // If there are multiple rows to remove, remove them in a transaction.
343
+ const removedRows = [];
248
344
  index_js_1.Tree.runTransaction(this, () => {
249
- // Iterate over the rows and remove them
250
- for (const row of rows) {
251
- const index = this.rows.indexOf(row);
252
- this.rows.removeAt(index);
345
+ // Note, throwing an error within a transaction will abort the entire transaction.
346
+ // So if we throw an error here for any row, no rows will be removed.
347
+ for (const rowToRemove of rows) {
348
+ const removedRow = this.removeRow(rowToRemove);
349
+ removedRows.push(removedRow);
253
350
  }
254
351
  });
352
+ return removedRows;
353
+ }
354
+ removeRow(rowOrId) {
355
+ const rowToRemove = this._getRow(rowOrId);
356
+ const index = rowToRemove === undefined ? -1 : this.rows.indexOf(rowToRemove);
357
+ // If the row does not exist in the table, throw an error.
358
+ if (index === -1) {
359
+ const rowId = this._getRowId(rowOrId);
360
+ throw new internal_2.UsageError(`Specified row with ID "${rowId}" does not exist in the table.`);
361
+ }
362
+ this.rows.removeAt(index);
363
+ return rowToRemove;
255
364
  }
256
365
  removeAllRows() {
257
- this.rows.removeRange();
366
+ // TypeScript is unable to narrow the row type correctly here, hence the cast.
367
+ // See: https://github.com/microsoft/TypeScript/issues/52144
368
+ return this.removeRows(this.rows);
258
369
  }
259
370
  removeCell(key) {
260
- const { columnId, rowId } = key;
261
- const row = this.getRow(rowId);
262
- if (row !== undefined) {
263
- const column = this.getColumn(columnId);
264
- if (column !== undefined) {
265
- row.removeCell(column.id);
266
- }
371
+ const { column: columnOrId, row: rowOrId } = key;
372
+ const row = this._getRow(rowOrId);
373
+ if (row === undefined) {
374
+ const rowId = this._getRowId(rowOrId);
375
+ throw new internal_2.UsageError(`Specified row with ID "${rowId}" does not exist in the table.`);
376
+ }
377
+ const column = this._getColumn(columnOrId);
378
+ if (column === undefined) {
379
+ const columnId = this._getColumnId(columnOrId);
380
+ throw new internal_2.UsageError(`Specified column with ID "${columnId}" does not exist in the table.`);
381
+ }
382
+ const cell = row.getCell(column.id);
383
+ if (cell === undefined) {
384
+ return undefined;
385
+ }
386
+ row.removeCell(column.id);
387
+ return cell;
388
+ }
389
+ _getColumn(columnOrId) {
390
+ return typeof columnOrId === "string" ? this.getColumn(columnOrId) : columnOrId;
391
+ }
392
+ _getColumnId(columnOrId) {
393
+ return typeof columnOrId === "string" ? columnOrId : columnOrId.id;
394
+ }
395
+ _getRow(rowOrId) {
396
+ return typeof rowOrId === "string" ? this.getRow(rowOrId) : rowOrId;
397
+ }
398
+ _getRowId(rowOrId) {
399
+ return typeof rowOrId === "string" ? rowOrId : rowOrId.id;
400
+ }
401
+ containsColumnWithId(columnId) {
402
+ // TypeScript is unable to narrow the types correctly here, hence the cast.
403
+ // See: https://github.com/microsoft/TypeScript/issues/52144
404
+ return (this.columns.find((column) => column.id === columnId) !==
405
+ undefined);
406
+ }
407
+ containsRowWithId(rowId) {
408
+ // TypeScript is unable to narrow the types correctly here, hence the cast.
409
+ // See: https://github.com/microsoft/TypeScript/issues/52144
410
+ return this.rows.find((row) => row.id === rowId) !== undefined;
411
+ }
412
+ /**
413
+ * Ensure that the specified index is a valid location for item insertion in the destination list.
414
+ * @throws Throws a usage error if the destination is invalid.
415
+ */
416
+ static validateInsertionIndex(index, destinationList) {
417
+ if (index < 0) {
418
+ throw new internal_2.UsageError("The index must be greater than or equal to 0.");
419
+ }
420
+ if (index > destinationList.length) {
421
+ throw new internal_2.UsageError("The index specified for insertion is out of bounds.");
422
+ }
423
+ if (!Number.isInteger(index)) {
424
+ throw new internal_2.UsageError("The index must be an integer.");
267
425
  }
268
426
  }
269
427
  }
@@ -281,7 +439,91 @@ var System_TableSchema;
281
439
  })(System_TableSchema || (exports.System_TableSchema = System_TableSchema = {}));
282
440
  /**
283
441
  * Contains types and factories for creating schema to represent dynamic tabular data.
284
- * @privateRemarks TODO: document in more detail and add `@example`s.
442
+ *
443
+ * @remarks
444
+ *
445
+ * Tables created using these APIs are...
446
+ *
447
+ * - sparse, meaning that cells may be omitted, and new rows are empty by default.
448
+ *
449
+ * - dynamic, meaning that their structure can be modified at runtime.
450
+ * Columns and rows can be inserted, removed, modified, and reordered.
451
+ * Cells can be inserted, removed, and modified.
452
+ *
453
+ * - row-major, meaning that operating on rows (including inserts, removal, moves, and traversal) is more efficient than operating on columns.
454
+ *
455
+ * Column and Row schema created using these APIs are extensible via the `props` field.
456
+ * This allows association of additional properties with column and row nodes.
457
+ *
458
+ * Note: for now it is possible for table cells to become "orphaned".
459
+ * That is, it is possible to enter a state where one or more rows contain cells with no corresponding column.
460
+ * To help avoid this situation, you can manually remove corresponding cells when removing columns.
461
+ * Either way, it is possible to enter such a state via the merging of edits.
462
+ * For example: one client might add a row while another concurrently removes a column, orphaning the cell where the column and row intersected.
463
+ *
464
+ * @example Using default Column and Row schema
465
+ *
466
+ * ```typescript
467
+ * class Cell extends schemaFactory.object("TableCell", {
468
+ * value: schemaFactory.string,
469
+ * }) {}
470
+ *
471
+ * class Table extends TableSchema.createTable({
472
+ * schemaFactory,
473
+ * cell: Cell,
474
+ * }) {}
475
+ *
476
+ * const table = new Table({
477
+ * columns: [{ id: "column-0" }],
478
+ * rows: [{ id: "row-0", cells: {} }],
479
+ * });
480
+ * ```
481
+ *
482
+ * @example Customizing Column and Row schema
483
+ *
484
+ * ```typescript
485
+ * class Cell extends schemaFactory.object("TableCell", {
486
+ * value: schemaFactory.string,
487
+ * }) {}
488
+ *
489
+ * class ColumnProps extends schemaFactory.object("TableColumnProps", {
490
+ * // Column label to display.
491
+ * label: schemaFactory.string,
492
+ * // The type of data represented by the cells. Default: string.
493
+ * dataType: schemaFactory.optional(schemaFactory.string),
494
+ * }) {}
495
+ *
496
+ * class Column extends TableSchema.createColumn({
497
+ * schemaFactory,
498
+ * props: ColumnProps,
499
+ * }) {}
500
+ *
501
+ * class Row extends TableSchema.createRow({
502
+ * schemaFactory,
503
+ * cell: Cell,
504
+ * }) {}
505
+ *
506
+ * class Table extends TableSchema.createTable({
507
+ * schemaFactory,
508
+ * cell: Cell,
509
+ * column: Column,
510
+ * row: Row,
511
+ * }) {}
512
+ *
513
+ * const table = new Table({
514
+ * columns: [
515
+ * new Column({ props: { label: "Entry", dataType: "string" } }),
516
+ * new Column({ props: { label: "Date", dataType: "date" } }),
517
+ * new Column({ props: { label: "Amount", dataType: "number" } }),
518
+ * ],
519
+ * rows: [],
520
+ * });
521
+ * ```
522
+ *
523
+ * @privateRemarks
524
+ * The above examples are backed by tests in `tableSchema.spec.ts`.
525
+ * Those tests and these examples should be kept in-sync to ensure that the examples are correct.
526
+ *
285
527
  * @internal
286
528
  */
287
529
  var TableSchema;