@fluidframework/tree 2.63.0-359286 → 2.63.0-359734

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 (379) hide show
  1. package/.mocharc.cjs +9 -1
  2. package/api-report/tree.alpha.api.md +93 -98
  3. package/api-report/tree.beta.api.md +37 -2
  4. package/api-report/tree.legacy.beta.api.md +37 -2
  5. package/api-report/tree.legacy.public.api.md +9 -2
  6. package/api-report/tree.public.api.md +9 -2
  7. package/dist/alpha.d.ts +11 -13
  8. package/dist/beta.d.ts +5 -0
  9. package/dist/feature-libraries/treeCursorUtils.d.ts.map +1 -1
  10. package/dist/feature-libraries/treeCursorUtils.js +17 -15
  11. package/dist/feature-libraries/treeCursorUtils.js.map +1 -1
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/jsonDomainSchema.d.ts +5 -5
  16. package/dist/jsonDomainSchema.js +5 -5
  17. package/dist/jsonDomainSchema.js.map +1 -1
  18. package/dist/legacy.d.ts +5 -0
  19. package/dist/packageVersion.d.ts +1 -1
  20. package/dist/packageVersion.js +1 -1
  21. package/dist/packageVersion.js.map +1 -1
  22. package/dist/public.d.ts +1 -0
  23. package/dist/serializableDomainSchema.d.ts +6 -6
  24. package/dist/serializableDomainSchema.js +5 -5
  25. package/dist/serializableDomainSchema.js.map +1 -1
  26. package/dist/shared-tree/schematizingTreeView.js +1 -1
  27. package/dist/shared-tree/schematizingTreeView.js.map +1 -1
  28. package/dist/shared-tree/treeAlpha.d.ts +20 -28
  29. package/dist/shared-tree/treeAlpha.d.ts.map +1 -1
  30. package/dist/shared-tree/treeAlpha.js +4 -29
  31. package/dist/shared-tree/treeAlpha.js.map +1 -1
  32. package/dist/simple-tree/api/conciseTree.d.ts +1 -1
  33. package/dist/simple-tree/api/conciseTree.js.map +1 -1
  34. package/dist/simple-tree/api/configuration.d.ts +0 -3
  35. package/dist/simple-tree/api/configuration.d.ts.map +1 -1
  36. package/dist/simple-tree/api/configuration.js +1 -4
  37. package/dist/simple-tree/api/configuration.js.map +1 -1
  38. package/dist/simple-tree/api/customTree.d.ts +7 -7
  39. package/dist/simple-tree/api/customTree.js +5 -5
  40. package/dist/simple-tree/api/customTree.js.map +1 -1
  41. package/dist/simple-tree/api/discrepancies.js +2 -2
  42. package/dist/simple-tree/api/discrepancies.js.map +1 -1
  43. package/dist/simple-tree/api/index.d.ts +2 -2
  44. package/dist/simple-tree/api/index.d.ts.map +1 -1
  45. package/dist/simple-tree/api/index.js +4 -1
  46. package/dist/simple-tree/api/index.js.map +1 -1
  47. package/dist/simple-tree/api/schemaFactory.d.ts +12 -4
  48. package/dist/simple-tree/api/schemaFactory.d.ts.map +1 -1
  49. package/dist/simple-tree/api/schemaFactory.js +3 -8
  50. package/dist/simple-tree/api/schemaFactory.js.map +1 -1
  51. package/dist/simple-tree/api/schemaFactoryAlpha.d.ts +27 -26
  52. package/dist/simple-tree/api/schemaFactoryAlpha.d.ts.map +1 -1
  53. package/dist/simple-tree/api/schemaFactoryAlpha.js +11 -0
  54. package/dist/simple-tree/api/schemaFactoryAlpha.js.map +1 -1
  55. package/dist/simple-tree/api/schemaFactoryBeta.d.ts +13 -2
  56. package/dist/simple-tree/api/schemaFactoryBeta.d.ts.map +1 -1
  57. package/dist/simple-tree/api/schemaFactoryBeta.js +14 -0
  58. package/dist/simple-tree/api/schemaFactoryBeta.js.map +1 -1
  59. package/dist/simple-tree/api/schemaStatics.d.ts +9 -14
  60. package/dist/simple-tree/api/schemaStatics.d.ts.map +1 -1
  61. package/dist/simple-tree/api/schemaStatics.js +9 -12
  62. package/dist/simple-tree/api/schemaStatics.js.map +1 -1
  63. package/dist/simple-tree/api/storedSchema.d.ts +2 -2
  64. package/dist/simple-tree/api/storedSchema.d.ts.map +1 -1
  65. package/dist/simple-tree/api/storedSchema.js.map +1 -1
  66. package/dist/simple-tree/api/tree.d.ts +37 -18
  67. package/dist/simple-tree/api/tree.d.ts.map +1 -1
  68. package/dist/simple-tree/api/tree.js.map +1 -1
  69. package/dist/simple-tree/api/treeBeta.d.ts +52 -2
  70. package/dist/simple-tree/api/treeBeta.d.ts.map +1 -1
  71. package/dist/simple-tree/api/treeBeta.js +36 -1
  72. package/dist/simple-tree/api/treeBeta.js.map +1 -1
  73. package/dist/simple-tree/api/treeNodeApi.js +1 -1
  74. package/dist/simple-tree/api/treeNodeApi.js.map +1 -1
  75. package/dist/simple-tree/core/allowedTypes.d.ts +120 -62
  76. package/dist/simple-tree/core/allowedTypes.d.ts.map +1 -1
  77. package/dist/simple-tree/core/allowedTypes.js +162 -84
  78. package/dist/simple-tree/core/allowedTypes.js.map +1 -1
  79. package/dist/simple-tree/core/context.d.ts +2 -2
  80. package/dist/simple-tree/core/context.d.ts.map +1 -1
  81. package/dist/simple-tree/core/context.js.map +1 -1
  82. package/dist/simple-tree/core/index.d.ts +2 -2
  83. package/dist/simple-tree/core/index.d.ts.map +1 -1
  84. package/dist/simple-tree/core/index.js +4 -3
  85. package/dist/simple-tree/core/index.js.map +1 -1
  86. package/dist/simple-tree/core/toStored.d.ts +3 -3
  87. package/dist/simple-tree/core/toStored.d.ts.map +1 -1
  88. package/dist/simple-tree/core/toStored.js +2 -2
  89. package/dist/simple-tree/core/toStored.js.map +1 -1
  90. package/dist/simple-tree/core/treeNode.d.ts +1 -1
  91. package/dist/simple-tree/core/treeNode.js +1 -1
  92. package/dist/simple-tree/core/treeNode.js.map +1 -1
  93. package/dist/simple-tree/core/treeNodeSchema.d.ts +3 -3
  94. package/dist/simple-tree/core/treeNodeSchema.d.ts.map +1 -1
  95. package/dist/simple-tree/core/treeNodeSchema.js.map +1 -1
  96. package/dist/simple-tree/core/treeNodeValid.d.ts +2 -2
  97. package/dist/simple-tree/core/treeNodeValid.d.ts.map +1 -1
  98. package/dist/simple-tree/core/treeNodeValid.js.map +1 -1
  99. package/dist/simple-tree/core/walkSchema.d.ts +3 -3
  100. package/dist/simple-tree/core/walkSchema.d.ts.map +1 -1
  101. package/dist/simple-tree/core/walkSchema.js +1 -1
  102. package/dist/simple-tree/core/walkSchema.js.map +1 -1
  103. package/dist/simple-tree/createContext.js +2 -2
  104. package/dist/simple-tree/createContext.js.map +1 -1
  105. package/dist/simple-tree/fieldSchema.d.ts +9 -32
  106. package/dist/simple-tree/fieldSchema.d.ts.map +1 -1
  107. package/dist/simple-tree/fieldSchema.js +12 -20
  108. package/dist/simple-tree/fieldSchema.js.map +1 -1
  109. package/dist/simple-tree/index.d.ts +4 -4
  110. package/dist/simple-tree/index.d.ts.map +1 -1
  111. package/dist/simple-tree/index.js +6 -2
  112. package/dist/simple-tree/index.js.map +1 -1
  113. package/dist/simple-tree/node-kinds/array/arrayNode.d.ts +2 -2
  114. package/dist/simple-tree/node-kinds/array/arrayNode.d.ts.map +1 -1
  115. package/dist/simple-tree/node-kinds/array/arrayNode.js +5 -6
  116. package/dist/simple-tree/node-kinds/array/arrayNode.js.map +1 -1
  117. package/dist/simple-tree/node-kinds/array/arrayNodeTypes.d.ts +3 -3
  118. package/dist/simple-tree/node-kinds/array/arrayNodeTypes.d.ts.map +1 -1
  119. package/dist/simple-tree/node-kinds/array/arrayNodeTypes.js.map +1 -1
  120. package/dist/simple-tree/node-kinds/common.d.ts.map +1 -1
  121. package/dist/simple-tree/node-kinds/common.js +2 -2
  122. package/dist/simple-tree/node-kinds/common.js.map +1 -1
  123. package/dist/simple-tree/node-kinds/index.d.ts +1 -1
  124. package/dist/simple-tree/node-kinds/index.d.ts.map +1 -1
  125. package/dist/simple-tree/node-kinds/index.js.map +1 -1
  126. package/dist/simple-tree/node-kinds/map/mapNode.d.ts +2 -2
  127. package/dist/simple-tree/node-kinds/map/mapNode.d.ts.map +1 -1
  128. package/dist/simple-tree/node-kinds/map/mapNode.js +3 -3
  129. package/dist/simple-tree/node-kinds/map/mapNode.js.map +1 -1
  130. package/dist/simple-tree/node-kinds/map/mapNodeTypes.d.ts +3 -3
  131. package/dist/simple-tree/node-kinds/map/mapNodeTypes.d.ts.map +1 -1
  132. package/dist/simple-tree/node-kinds/map/mapNodeTypes.js.map +1 -1
  133. package/dist/simple-tree/node-kinds/object/index.d.ts +2 -2
  134. package/dist/simple-tree/node-kinds/object/index.d.ts.map +1 -1
  135. package/dist/simple-tree/node-kinds/object/index.js.map +1 -1
  136. package/dist/simple-tree/node-kinds/object/objectNode.d.ts +5 -18
  137. package/dist/simple-tree/node-kinds/object/objectNode.d.ts.map +1 -1
  138. package/dist/simple-tree/node-kinds/object/objectNode.js +5 -15
  139. package/dist/simple-tree/node-kinds/object/objectNode.js.map +1 -1
  140. package/dist/simple-tree/node-kinds/object/objectNodeTypes.d.ts +4 -11
  141. package/dist/simple-tree/node-kinds/object/objectNodeTypes.d.ts.map +1 -1
  142. package/dist/simple-tree/node-kinds/object/objectNodeTypes.js.map +1 -1
  143. package/dist/simple-tree/node-kinds/record/recordNode.d.ts +3 -3
  144. package/dist/simple-tree/node-kinds/record/recordNode.d.ts.map +1 -1
  145. package/dist/simple-tree/node-kinds/record/recordNode.js +3 -3
  146. package/dist/simple-tree/node-kinds/record/recordNode.js.map +1 -1
  147. package/dist/simple-tree/node-kinds/record/recordNodeTypes.d.ts +5 -5
  148. package/dist/simple-tree/node-kinds/record/recordNodeTypes.d.ts.map +1 -1
  149. package/dist/simple-tree/node-kinds/record/recordNodeTypes.js.map +1 -1
  150. package/dist/simple-tree/prepareForInsertion.d.ts +5 -5
  151. package/dist/simple-tree/prepareForInsertion.d.ts.map +1 -1
  152. package/dist/simple-tree/prepareForInsertion.js.map +1 -1
  153. package/dist/simple-tree/toStoredSchema.d.ts +8 -8
  154. package/dist/simple-tree/toStoredSchema.d.ts.map +1 -1
  155. package/dist/simple-tree/toStoredSchema.js +5 -5
  156. package/dist/simple-tree/toStoredSchema.js.map +1 -1
  157. package/dist/simple-tree/unhydratedFlexTreeFromInsertable.d.ts +2 -2
  158. package/dist/simple-tree/unhydratedFlexTreeFromInsertable.d.ts.map +1 -1
  159. package/dist/simple-tree/unhydratedFlexTreeFromInsertable.js.map +1 -1
  160. package/dist/simple-tree/unsafeUnknownSchema.d.ts.map +1 -1
  161. package/dist/simple-tree/unsafeUnknownSchema.js.map +1 -1
  162. package/dist/simple-tree/walkFieldSchema.js +1 -1
  163. package/dist/simple-tree/walkFieldSchema.js.map +1 -1
  164. package/dist/tableSchema.d.ts +19 -19
  165. package/dist/tableSchema.d.ts.map +1 -1
  166. package/dist/tableSchema.js +2 -2
  167. package/dist/tableSchema.js.map +1 -1
  168. package/lib/alpha.d.ts +11 -13
  169. package/lib/beta.d.ts +5 -0
  170. package/lib/feature-libraries/treeCursorUtils.d.ts.map +1 -1
  171. package/lib/feature-libraries/treeCursorUtils.js +17 -15
  172. package/lib/feature-libraries/treeCursorUtils.js.map +1 -1
  173. package/lib/index.d.ts +1 -1
  174. package/lib/index.d.ts.map +1 -1
  175. package/lib/index.js.map +1 -1
  176. package/lib/jsonDomainSchema.d.ts +5 -5
  177. package/lib/jsonDomainSchema.js +5 -5
  178. package/lib/jsonDomainSchema.js.map +1 -1
  179. package/lib/legacy.d.ts +5 -0
  180. package/lib/packageVersion.d.ts +1 -1
  181. package/lib/packageVersion.js +1 -1
  182. package/lib/packageVersion.js.map +1 -1
  183. package/lib/public.d.ts +1 -0
  184. package/lib/serializableDomainSchema.d.ts +6 -6
  185. package/lib/serializableDomainSchema.js +5 -5
  186. package/lib/serializableDomainSchema.js.map +1 -1
  187. package/lib/shared-tree/schematizingTreeView.js +1 -1
  188. package/lib/shared-tree/schematizingTreeView.js.map +1 -1
  189. package/lib/shared-tree/treeAlpha.d.ts +20 -28
  190. package/lib/shared-tree/treeAlpha.d.ts.map +1 -1
  191. package/lib/shared-tree/treeAlpha.js +3 -28
  192. package/lib/shared-tree/treeAlpha.js.map +1 -1
  193. package/lib/simple-tree/api/conciseTree.d.ts +1 -1
  194. package/lib/simple-tree/api/conciseTree.js.map +1 -1
  195. package/lib/simple-tree/api/configuration.d.ts +0 -3
  196. package/lib/simple-tree/api/configuration.d.ts.map +1 -1
  197. package/lib/simple-tree/api/configuration.js +2 -5
  198. package/lib/simple-tree/api/configuration.js.map +1 -1
  199. package/lib/simple-tree/api/customTree.d.ts +7 -7
  200. package/lib/simple-tree/api/customTree.js +5 -5
  201. package/lib/simple-tree/api/customTree.js.map +1 -1
  202. package/lib/simple-tree/api/discrepancies.js +3 -3
  203. package/lib/simple-tree/api/discrepancies.js.map +1 -1
  204. package/lib/simple-tree/api/index.d.ts +2 -2
  205. package/lib/simple-tree/api/index.d.ts.map +1 -1
  206. package/lib/simple-tree/api/index.js +1 -1
  207. package/lib/simple-tree/api/index.js.map +1 -1
  208. package/lib/simple-tree/api/schemaFactory.d.ts +12 -4
  209. package/lib/simple-tree/api/schemaFactory.d.ts.map +1 -1
  210. package/lib/simple-tree/api/schemaFactory.js +3 -8
  211. package/lib/simple-tree/api/schemaFactory.js.map +1 -1
  212. package/lib/simple-tree/api/schemaFactoryAlpha.d.ts +27 -26
  213. package/lib/simple-tree/api/schemaFactoryAlpha.d.ts.map +1 -1
  214. package/lib/simple-tree/api/schemaFactoryAlpha.js +12 -1
  215. package/lib/simple-tree/api/schemaFactoryAlpha.js.map +1 -1
  216. package/lib/simple-tree/api/schemaFactoryBeta.d.ts +13 -2
  217. package/lib/simple-tree/api/schemaFactoryBeta.d.ts.map +1 -1
  218. package/lib/simple-tree/api/schemaFactoryBeta.js +16 -2
  219. package/lib/simple-tree/api/schemaFactoryBeta.js.map +1 -1
  220. package/lib/simple-tree/api/schemaStatics.d.ts +9 -14
  221. package/lib/simple-tree/api/schemaStatics.d.ts.map +1 -1
  222. package/lib/simple-tree/api/schemaStatics.js +9 -12
  223. package/lib/simple-tree/api/schemaStatics.js.map +1 -1
  224. package/lib/simple-tree/api/storedSchema.d.ts +2 -2
  225. package/lib/simple-tree/api/storedSchema.d.ts.map +1 -1
  226. package/lib/simple-tree/api/storedSchema.js +1 -1
  227. package/lib/simple-tree/api/storedSchema.js.map +1 -1
  228. package/lib/simple-tree/api/tree.d.ts +37 -18
  229. package/lib/simple-tree/api/tree.d.ts.map +1 -1
  230. package/lib/simple-tree/api/tree.js.map +1 -1
  231. package/lib/simple-tree/api/treeBeta.d.ts +52 -2
  232. package/lib/simple-tree/api/treeBeta.d.ts.map +1 -1
  233. package/lib/simple-tree/api/treeBeta.js +33 -1
  234. package/lib/simple-tree/api/treeBeta.js.map +1 -1
  235. package/lib/simple-tree/api/treeNodeApi.js +1 -1
  236. package/lib/simple-tree/api/treeNodeApi.js.map +1 -1
  237. package/lib/simple-tree/core/allowedTypes.d.ts +120 -62
  238. package/lib/simple-tree/core/allowedTypes.d.ts.map +1 -1
  239. package/lib/simple-tree/core/allowedTypes.js +158 -80
  240. package/lib/simple-tree/core/allowedTypes.js.map +1 -1
  241. package/lib/simple-tree/core/context.d.ts +2 -2
  242. package/lib/simple-tree/core/context.d.ts.map +1 -1
  243. package/lib/simple-tree/core/context.js.map +1 -1
  244. package/lib/simple-tree/core/index.d.ts +2 -2
  245. package/lib/simple-tree/core/index.d.ts.map +1 -1
  246. package/lib/simple-tree/core/index.js +1 -1
  247. package/lib/simple-tree/core/index.js.map +1 -1
  248. package/lib/simple-tree/core/toStored.d.ts +3 -3
  249. package/lib/simple-tree/core/toStored.d.ts.map +1 -1
  250. package/lib/simple-tree/core/toStored.js +3 -3
  251. package/lib/simple-tree/core/toStored.js.map +1 -1
  252. package/lib/simple-tree/core/treeNode.d.ts +1 -1
  253. package/lib/simple-tree/core/treeNode.js +1 -1
  254. package/lib/simple-tree/core/treeNode.js.map +1 -1
  255. package/lib/simple-tree/core/treeNodeSchema.d.ts +3 -3
  256. package/lib/simple-tree/core/treeNodeSchema.d.ts.map +1 -1
  257. package/lib/simple-tree/core/treeNodeSchema.js.map +1 -1
  258. package/lib/simple-tree/core/treeNodeValid.d.ts +2 -2
  259. package/lib/simple-tree/core/treeNodeValid.d.ts.map +1 -1
  260. package/lib/simple-tree/core/treeNodeValid.js.map +1 -1
  261. package/lib/simple-tree/core/walkSchema.d.ts +3 -3
  262. package/lib/simple-tree/core/walkSchema.d.ts.map +1 -1
  263. package/lib/simple-tree/core/walkSchema.js +2 -2
  264. package/lib/simple-tree/core/walkSchema.js.map +1 -1
  265. package/lib/simple-tree/createContext.js +3 -3
  266. package/lib/simple-tree/createContext.js.map +1 -1
  267. package/lib/simple-tree/fieldSchema.d.ts +9 -32
  268. package/lib/simple-tree/fieldSchema.d.ts.map +1 -1
  269. package/lib/simple-tree/fieldSchema.js +13 -21
  270. package/lib/simple-tree/fieldSchema.js.map +1 -1
  271. package/lib/simple-tree/index.d.ts +4 -4
  272. package/lib/simple-tree/index.d.ts.map +1 -1
  273. package/lib/simple-tree/index.js +2 -2
  274. package/lib/simple-tree/index.js.map +1 -1
  275. package/lib/simple-tree/node-kinds/array/arrayNode.d.ts +2 -2
  276. package/lib/simple-tree/node-kinds/array/arrayNode.d.ts.map +1 -1
  277. package/lib/simple-tree/node-kinds/array/arrayNode.js +6 -7
  278. package/lib/simple-tree/node-kinds/array/arrayNode.js.map +1 -1
  279. package/lib/simple-tree/node-kinds/array/arrayNodeTypes.d.ts +3 -3
  280. package/lib/simple-tree/node-kinds/array/arrayNodeTypes.d.ts.map +1 -1
  281. package/lib/simple-tree/node-kinds/array/arrayNodeTypes.js.map +1 -1
  282. package/lib/simple-tree/node-kinds/common.d.ts.map +1 -1
  283. package/lib/simple-tree/node-kinds/common.js +3 -3
  284. package/lib/simple-tree/node-kinds/common.js.map +1 -1
  285. package/lib/simple-tree/node-kinds/index.d.ts +1 -1
  286. package/lib/simple-tree/node-kinds/index.d.ts.map +1 -1
  287. package/lib/simple-tree/node-kinds/index.js.map +1 -1
  288. package/lib/simple-tree/node-kinds/map/mapNode.d.ts +2 -2
  289. package/lib/simple-tree/node-kinds/map/mapNode.d.ts.map +1 -1
  290. package/lib/simple-tree/node-kinds/map/mapNode.js +4 -4
  291. package/lib/simple-tree/node-kinds/map/mapNode.js.map +1 -1
  292. package/lib/simple-tree/node-kinds/map/mapNodeTypes.d.ts +3 -3
  293. package/lib/simple-tree/node-kinds/map/mapNodeTypes.d.ts.map +1 -1
  294. package/lib/simple-tree/node-kinds/map/mapNodeTypes.js.map +1 -1
  295. package/lib/simple-tree/node-kinds/object/index.d.ts +2 -2
  296. package/lib/simple-tree/node-kinds/object/index.d.ts.map +1 -1
  297. package/lib/simple-tree/node-kinds/object/index.js.map +1 -1
  298. package/lib/simple-tree/node-kinds/object/objectNode.d.ts +5 -18
  299. package/lib/simple-tree/node-kinds/object/objectNode.d.ts.map +1 -1
  300. package/lib/simple-tree/node-kinds/object/objectNode.js +6 -15
  301. package/lib/simple-tree/node-kinds/object/objectNode.js.map +1 -1
  302. package/lib/simple-tree/node-kinds/object/objectNodeTypes.d.ts +4 -11
  303. package/lib/simple-tree/node-kinds/object/objectNodeTypes.d.ts.map +1 -1
  304. package/lib/simple-tree/node-kinds/object/objectNodeTypes.js.map +1 -1
  305. package/lib/simple-tree/node-kinds/record/recordNode.d.ts +3 -3
  306. package/lib/simple-tree/node-kinds/record/recordNode.d.ts.map +1 -1
  307. package/lib/simple-tree/node-kinds/record/recordNode.js +4 -4
  308. package/lib/simple-tree/node-kinds/record/recordNode.js.map +1 -1
  309. package/lib/simple-tree/node-kinds/record/recordNodeTypes.d.ts +5 -5
  310. package/lib/simple-tree/node-kinds/record/recordNodeTypes.d.ts.map +1 -1
  311. package/lib/simple-tree/node-kinds/record/recordNodeTypes.js.map +1 -1
  312. package/lib/simple-tree/prepareForInsertion.d.ts +5 -5
  313. package/lib/simple-tree/prepareForInsertion.d.ts.map +1 -1
  314. package/lib/simple-tree/prepareForInsertion.js.map +1 -1
  315. package/lib/simple-tree/toStoredSchema.d.ts +8 -8
  316. package/lib/simple-tree/toStoredSchema.d.ts.map +1 -1
  317. package/lib/simple-tree/toStoredSchema.js +5 -5
  318. package/lib/simple-tree/toStoredSchema.js.map +1 -1
  319. package/lib/simple-tree/unhydratedFlexTreeFromInsertable.d.ts +2 -2
  320. package/lib/simple-tree/unhydratedFlexTreeFromInsertable.d.ts.map +1 -1
  321. package/lib/simple-tree/unhydratedFlexTreeFromInsertable.js +1 -1
  322. package/lib/simple-tree/unhydratedFlexTreeFromInsertable.js.map +1 -1
  323. package/lib/simple-tree/unsafeUnknownSchema.d.ts.map +1 -1
  324. package/lib/simple-tree/unsafeUnknownSchema.js.map +1 -1
  325. package/lib/simple-tree/walkFieldSchema.js +1 -1
  326. package/lib/simple-tree/walkFieldSchema.js.map +1 -1
  327. package/lib/tableSchema.d.ts +19 -19
  328. package/lib/tableSchema.d.ts.map +1 -1
  329. package/lib/tableSchema.js +2 -2
  330. package/lib/tableSchema.js.map +1 -1
  331. package/package.json +23 -21
  332. package/src/feature-libraries/treeCursorUtils.ts +34 -19
  333. package/src/index.ts +7 -10
  334. package/src/jsonDomainSchema.ts +5 -5
  335. package/src/packageVersion.ts +1 -1
  336. package/src/serializableDomainSchema.ts +6 -6
  337. package/src/shared-tree/schematizingTreeView.ts +1 -1
  338. package/src/shared-tree/treeAlpha.ts +32 -81
  339. package/src/simple-tree/api/conciseTree.ts +1 -1
  340. package/src/simple-tree/api/configuration.ts +3 -7
  341. package/src/simple-tree/api/customTree.ts +7 -7
  342. package/src/simple-tree/api/discrepancies.ts +3 -3
  343. package/src/simple-tree/api/index.ts +10 -2
  344. package/src/simple-tree/api/schemaFactory.ts +18 -73
  345. package/src/simple-tree/api/schemaFactoryAlpha.ts +45 -12
  346. package/src/simple-tree/api/schemaFactoryBeta.ts +76 -1
  347. package/src/simple-tree/api/schemaStatics.ts +16 -61
  348. package/src/simple-tree/api/storedSchema.ts +2 -6
  349. package/src/simple-tree/api/tree.ts +37 -18
  350. package/src/simple-tree/api/treeBeta.ts +136 -3
  351. package/src/simple-tree/api/treeNodeApi.ts +1 -1
  352. package/src/simple-tree/core/allowedTypes.ts +355 -159
  353. package/src/simple-tree/core/context.ts +2 -2
  354. package/src/simple-tree/core/index.ts +10 -8
  355. package/src/simple-tree/core/toStored.ts +7 -5
  356. package/src/simple-tree/core/treeNode.ts +1 -1
  357. package/src/simple-tree/core/treeNodeSchema.ts +3 -6
  358. package/src/simple-tree/core/treeNodeValid.ts +2 -2
  359. package/src/simple-tree/core/walkSchema.ts +9 -5
  360. package/src/simple-tree/createContext.ts +3 -3
  361. package/src/simple-tree/fieldSchema.ts +24 -98
  362. package/src/simple-tree/index.ts +11 -10
  363. package/src/simple-tree/node-kinds/array/arrayNode.ts +9 -14
  364. package/src/simple-tree/node-kinds/array/arrayNodeTypes.ts +7 -8
  365. package/src/simple-tree/node-kinds/common.ts +5 -3
  366. package/src/simple-tree/node-kinds/index.ts +0 -2
  367. package/src/simple-tree/node-kinds/map/mapNode.ts +5 -13
  368. package/src/simple-tree/node-kinds/map/mapNodeTypes.ts +7 -8
  369. package/src/simple-tree/node-kinds/object/index.ts +0 -2
  370. package/src/simple-tree/node-kinds/object/objectNode.ts +13 -51
  371. package/src/simple-tree/node-kinds/object/objectNodeTypes.ts +5 -19
  372. package/src/simple-tree/node-kinds/record/recordNode.ts +9 -16
  373. package/src/simple-tree/node-kinds/record/recordNodeTypes.ts +7 -11
  374. package/src/simple-tree/prepareForInsertion.ts +5 -5
  375. package/src/simple-tree/toStoredSchema.ts +8 -9
  376. package/src/simple-tree/unhydratedFlexTreeFromInsertable.ts +2 -6
  377. package/src/simple-tree/unsafeUnknownSchema.ts +2 -3
  378. package/src/simple-tree/walkFieldSchema.ts +1 -1
  379. package/src/tableSchema.ts +24 -37
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import type { IFluidHandle } from "@fluidframework/core-interfaces";
6
- import { type ImplicitAnnotatedFieldSchema } from "./fieldSchema.js";
6
+ import { type ImplicitFieldSchema } from "./fieldSchema.js";
7
7
  import { type TreeNode, type TreeNodeSchema, type Unhydrated, UnhydratedFlexTreeNode } from "./core/index.js";
8
8
  /**
9
9
  * Transforms an input {@link TypedNode} tree to an {@link UnhydratedFlexTreeNode}.
@@ -31,7 +31,7 @@ import { type TreeNode, type TreeNodeSchema, type Unhydrated, UnhydratedFlexTree
31
31
  * Output should comply with the provided view schema, but this is not explicitly validated:
32
32
  * validation against stored schema (to guard against document corruption) is done elsewhere.
33
33
  */
34
- export declare function unhydratedFlexTreeFromInsertable<TIn extends InsertableContent | undefined>(data: TIn, allowedTypes: ImplicitAnnotatedFieldSchema): TIn extends undefined ? undefined : UnhydratedFlexTreeNode;
34
+ export declare function unhydratedFlexTreeFromInsertable<TIn extends InsertableContent | undefined>(data: TIn, allowedTypes: ImplicitFieldSchema): TIn extends undefined ? undefined : UnhydratedFlexTreeNode;
35
35
  /**
36
36
  * Copy content from `data` into a UnhydratedFlexTreeNode.
37
37
  */
@@ -1 +1 @@
1
- {"version":3,"file":"unhydratedFlexTreeFromInsertable.d.ts","sourceRoot":"","sources":["../../src/simple-tree/unhydratedFlexTreeFromInsertable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAMpE,OAAO,EAGN,KAAK,4BAA4B,EACjC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAKN,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,sBAAsB,EACtB,MAAM,iBAAiB,CAAC;AAGzB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,gCAAgC,CAAC,GAAG,SAAS,iBAAiB,GAAG,SAAS,EACzF,IAAI,EAAE,GAAG,EACT,YAAY,EAAE,4BAA4B,GACxC,GAAG,SAAS,SAAS,GAAG,SAAS,GAAG,sBAAsB,CAiB5D;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CACnD,IAAI,EAAE,iBAAiB,EACvB,YAAY,EAAE,WAAW,CAAC,cAAc,CAAC,GACvC,sBAAsB,CAoBxB;AA2BD;;GAEG;AACH,wBAAgB,gBAAgB,CAC/B,YAAY,EAAE,WAAW,CAAC,cAAc,CAAC,EACzC,IAAI,E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C,EACzC,IAAI,EAAE,cAAc,GAClB,cAAc,EAAE,CAiBlB;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GACvB,YAAY,GACZ,MAAM,GACN,MAAM,GACN,OAAO,GAEP,IAAI,GACJ,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,GAC9C,SAAS,iBAAiB,EAAE,GAC5B,oBAAoB,CAAC;AAExB;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,EAAE,iBAAiB;CAC1C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,QAAQ,CAAC,GAAG,cAAc,CAAC"}
@@ -5,7 +5,7 @@
5
5
  import { UsageError } from "@fluidframework/telemetry-utils/internal";
6
6
  import { assert } from "@fluidframework/core-utils/internal";
7
7
  import { hasSingle } from "../util/index.js";
8
- import { normalizeFieldSchema, FieldKind, } from "./fieldSchema.js";
8
+ import { normalizeFieldSchema, FieldKind } from "./fieldSchema.js";
9
9
  import { CompatibilityLevel, getKernel, getTreeNodeSchemaPrivateData, isTreeNode, UnhydratedFlexTreeNode, } from "./core/index.js";
10
10
  import { getUnhydratedContext } from "./createContext.js";
11
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"unhydratedFlexTreeFromInsertable.js","sourceRoot":"","sources":["../../src/simple-tree/unhydratedFlexTreeFromInsertable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EACN,oBAAoB,EACpB,SAAS,GAET,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACN,kBAAkB,EAClB,SAAS,EACT,4BAA4B,EAC5B,UAA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CAAC,CAAC,oBAAoB,EAAE,CAAC;QAC5E,MAAM,KAAK,GAAG,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,KAAK,GAAG,IAAI,EAAE,CAAC;YAClB,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;YACzB,IAAI,GAAG,KAAK,CAAC;QACd,CAAC;QACD,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;YACpB,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5B,CAAC;IACF,CAAC;IACD,OAAO,IAAI,KAAK,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;AAC9D,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IFluidHandle } from \"@fluidframework/core-interfaces\";\nimport { UsageError } from \"@fluidframework/telemetry-utils/internal\";\nimport { assert } from \"@fluidframework/core-utils/internal\";\n\nimport { hasSingle } from \"../util/index.js\";\n\nimport {\n\tnormalizeFieldSchema,\n\tFieldKind,\n\ttype ImplicitAnnotatedFieldSchema,\n} from \"./fieldSchema.js\";\nimport {\n\tCompatibilityLevel,\n\tgetKernel,\n\tgetTreeNodeSchemaPrivateData,\n\tisTreeNode,\n\ttype TreeNode,\n\ttype TreeNodeSchema,\n\ttype Unhydrated,\n\tUnhydratedFlexTreeNode,\n} from \"./core/index.js\";\nimport { getUnhydratedContext } from \"./createContext.js\";\n\n/**\n * Transforms an input {@link TypedNode} tree to an {@link UnhydratedFlexTreeNode}.\n * @param data - The input tree to be converted.\n * If the data is an unsupported value (e.g. NaN), a fallback value will be used when supported,\n * otherwise an error will be thrown.\n *\n * Fallbacks:\n *\n * * `NaN` =\\> `null`\n *\n * * `+/-∞` =\\> `null`\n *\n * * `-0` =\\> `+0`\n *\n * For fields with a default value, the field may be omitted.\n * If `context` is not provided, defaults which require a context will be left empty which can be out of schema.\n *\n * @param allowedTypes - The set of types allowed by the parent context. Used to validate the input tree.\n * @remarks\n * The resulting tree will be populated with any defaults from {@link FieldProvider}s in the schema.\n *\n * Often throws UsageErrors for invalid data, but may miss some cases.\n *\n * Output should comply with the provided view schema, but this is not explicitly validated:\n * validation against stored schema (to guard against document corruption) is done elsewhere.\n */\nexport function unhydratedFlexTreeFromInsertable<TIn extends InsertableContent | undefined>(\n\tdata: TIn,\n\tallowedTypes: ImplicitAnnotatedFieldSchema,\n): TIn extends undefined ? undefined : UnhydratedFlexTreeNode {\n\tconst normalizedFieldSchema = normalizeFieldSchema(allowedTypes);\n\n\tif (data === undefined) {\n\t\t// TODO: this code-path should support defaults\n\t\tif (normalizedFieldSchema.kind !== FieldKind.Optional) {\n\t\t\tthrow new UsageError(\"Got undefined for non-optional field.\");\n\t\t}\n\t\treturn undefined as TIn extends undefined ? undefined : UnhydratedFlexTreeNode;\n\t}\n\n\tconst flexTree: UnhydratedFlexTreeNode = unhydratedFlexTreeFromInsertableNode(\n\t\tdata,\n\t\tnormalizedFieldSchema.allowedTypeSet,\n\t);\n\n\treturn flexTree as TIn extends undefined ? undefined : UnhydratedFlexTreeNode;\n}\n\n/**\n * Copy content from `data` into a UnhydratedFlexTreeNode.\n */\nexport function unhydratedFlexTreeFromInsertableNode(\n\tdata: InsertableContent,\n\tallowedTypes: ReadonlySet<TreeNodeSchema>,\n): UnhydratedFlexTreeNode {\n\tif (isTreeNode(data)) {\n\t\tconst kernel = getKernel(data);\n\t\tconst inner = kernel.getInnerNodeIfUnhydrated();\n\t\tif (inner === undefined) {\n\t\t\t// The node is already hydrated, meaning that it already got inserted into the tree previously\n\t\t\tthrow new UsageError(\"A node may not be inserted into the tree more than once\");\n\t\t} else {\n\t\t\tif (!allowedTypes.has(kernel.schema)) {\n\t\t\t\tthrow new UsageError(\"Invalid schema for this context.\");\n\t\t\t}\n\t\t\treturn inner;\n\t\t}\n\t}\n\n\tconst schema = getType(data, allowedTypes);\n\tconst handler = getTreeNodeSchemaPrivateData(schema).idempotentInitialize();\n\tconst result = handler.toFlexContent(data, allowedTypes);\n\n\treturn new UnhydratedFlexTreeNode(...result, getUnhydratedContext(schema));\n}\n\nfunction getType(\n\tdata: FactoryContent,\n\tallowedTypes: ReadonlySet<TreeNodeSchema>,\n): TreeNodeSchema {\n\tconst possibleTypes = getPossibleTypes(allowedTypes, data);\n\tif (possibleTypes.length === 0) {\n\t\tthrow new UsageError(\n\t\t\t`The provided data is incompatible with all of the types allowed by the schema. The set of allowed types is: ${JSON.stringify(\n\t\t\t\t[...allowedTypes].map((schema) => schema.identifier),\n\t\t\t)}.`,\n\t\t);\n\t}\n\tif (!hasSingle(possibleTypes)) {\n\t\tthrow new UsageError(\n\t\t\t`The provided data is compatible with more than one type allowed by the schema.\nThe set of possible types is ${JSON.stringify([\n\t\t\t\t...possibleTypes.map((schema) => schema.identifier),\n\t\t\t])}.\nExplicitly construct an unhydrated node of the desired type to disambiguate.\nFor class-based schema, this can be done by replacing an expression like \"{foo: 1}\" with \"new MySchema({foo: 1})\".`,\n\t\t);\n\t}\n\treturn possibleTypes[0];\n}\n\n/**\n * Returns all types for which the data is schema-compatible.\n */\nexport function getPossibleTypes(\n\tallowedTypes: ReadonlySet<TreeNodeSchema>,\n\tdata: FactoryContent,\n): TreeNodeSchema[] {\n\tassert(data !== undefined, 0x889 /* undefined cannot be used as FactoryContent. */);\n\n\tlet best = CompatibilityLevel.None;\n\tconst possibleTypes: TreeNodeSchema[] = [];\n\tfor (const schema of allowedTypes) {\n\t\tconst handler = getTreeNodeSchemaPrivateData(schema).idempotentInitialize();\n\t\tconst level = handler.shallowCompatibilityTest(data);\n\t\tif (level > best) {\n\t\t\tpossibleTypes.length = 0;\n\t\t\tbest = level;\n\t\t}\n\t\tif (best === level) {\n\t\t\tpossibleTypes.push(schema);\n\t\t}\n\t}\n\treturn best === CompatibilityLevel.None ? [] : possibleTypes;\n}\n\n/**\n * Content which can be used to build a node.\n * @remarks\n * Can contain unhydrated nodes, but can not be an unhydrated node at the root.\n * @system @alpha\n */\nexport type FactoryContent =\n\t| IFluidHandle\n\t| string\n\t| number\n\t| boolean\n\t// eslint-disable-next-line @rushstack/no-new-null\n\t| null\n\t| Iterable<readonly [string, InsertableContent]>\n\t| readonly InsertableContent[]\n\t| FactoryContentObject;\n\n/**\n * Record-like object which can be used to build some kinds of nodes.\n * @remarks\n * Can contain unhydrated nodes, but can not be an unhydrated node at the root.\n *\n * Supports object and map nodes.\n * @system @alpha\n */\nexport type FactoryContentObject = {\n\treadonly [P in string]?: InsertableContent;\n};\n\n/**\n * Content which can be inserted into a tree.\n * @system @alpha\n */\nexport type InsertableContent = Unhydrated<TreeNode> | FactoryContent;\n"]}
1
+ {"version":3,"file":"unhydratedFlexTreeFromInsertable.js","sourceRoot":"","sources":["../../src/simple-tree/unhydratedFlexTreeFromInsertable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAA4B,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EACN,kBAAkB,EAClB,SAAS,EACT,4BAA4B,EAC5B,UAAU,EAIV,sBAAsB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,gCAAgC,CAC/C,IAAS,EACT,YAAiC;IAEjC,MAAM,qBAAqB,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAEjE,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACxB,+CAA+C;QAC/C,IAAI,qBAAqB,CAAC,IAAI,KAAK,SAAS,CAAC,QAAQ,EAAE,CAAC;YACvD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CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;AAC9D,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IFluidHandle } from \"@fluidframework/core-interfaces\";\nimport { UsageError } from \"@fluidframework/telemetry-utils/internal\";\nimport { assert } from \"@fluidframework/core-utils/internal\";\n\nimport { hasSingle } from \"../util/index.js\";\n\nimport { normalizeFieldSchema, FieldKind, type ImplicitFieldSchema } from \"./fieldSchema.js\";\nimport {\n\tCompatibilityLevel,\n\tgetKernel,\n\tgetTreeNodeSchemaPrivateData,\n\tisTreeNode,\n\ttype TreeNode,\n\ttype TreeNodeSchema,\n\ttype Unhydrated,\n\tUnhydratedFlexTreeNode,\n} from \"./core/index.js\";\nimport { getUnhydratedContext } from \"./createContext.js\";\n\n/**\n * Transforms an input {@link TypedNode} tree to an {@link UnhydratedFlexTreeNode}.\n * @param data - The input tree to be converted.\n * If the data is an unsupported value (e.g. NaN), a fallback value will be used when supported,\n * otherwise an error will be thrown.\n *\n * Fallbacks:\n *\n * * `NaN` =\\> `null`\n *\n * * `+/-∞` =\\> `null`\n *\n * * `-0` =\\> `+0`\n *\n * For fields with a default value, the field may be omitted.\n * If `context` is not provided, defaults which require a context will be left empty which can be out of schema.\n *\n * @param allowedTypes - The set of types allowed by the parent context. Used to validate the input tree.\n * @remarks\n * The resulting tree will be populated with any defaults from {@link FieldProvider}s in the schema.\n *\n * Often throws UsageErrors for invalid data, but may miss some cases.\n *\n * Output should comply with the provided view schema, but this is not explicitly validated:\n * validation against stored schema (to guard against document corruption) is done elsewhere.\n */\nexport function unhydratedFlexTreeFromInsertable<TIn extends InsertableContent | undefined>(\n\tdata: TIn,\n\tallowedTypes: ImplicitFieldSchema,\n): TIn extends undefined ? undefined : UnhydratedFlexTreeNode {\n\tconst normalizedFieldSchema = normalizeFieldSchema(allowedTypes);\n\n\tif (data === undefined) {\n\t\t// TODO: this code-path should support defaults\n\t\tif (normalizedFieldSchema.kind !== FieldKind.Optional) {\n\t\t\tthrow new UsageError(\"Got undefined for non-optional field.\");\n\t\t}\n\t\treturn undefined as TIn extends undefined ? undefined : UnhydratedFlexTreeNode;\n\t}\n\n\tconst flexTree: UnhydratedFlexTreeNode = unhydratedFlexTreeFromInsertableNode(\n\t\tdata,\n\t\tnormalizedFieldSchema.allowedTypeSet,\n\t);\n\n\treturn flexTree as TIn extends undefined ? undefined : UnhydratedFlexTreeNode;\n}\n\n/**\n * Copy content from `data` into a UnhydratedFlexTreeNode.\n */\nexport function unhydratedFlexTreeFromInsertableNode(\n\tdata: InsertableContent,\n\tallowedTypes: ReadonlySet<TreeNodeSchema>,\n): UnhydratedFlexTreeNode {\n\tif (isTreeNode(data)) {\n\t\tconst kernel = getKernel(data);\n\t\tconst inner = kernel.getInnerNodeIfUnhydrated();\n\t\tif (inner === undefined) {\n\t\t\t// The node is already hydrated, meaning that it already got inserted into the tree previously\n\t\t\tthrow new UsageError(\"A node may not be inserted into the tree more than once\");\n\t\t} else {\n\t\t\tif (!allowedTypes.has(kernel.schema)) {\n\t\t\t\tthrow new UsageError(\"Invalid schema for this context.\");\n\t\t\t}\n\t\t\treturn inner;\n\t\t}\n\t}\n\n\tconst schema = getType(data, allowedTypes);\n\tconst handler = getTreeNodeSchemaPrivateData(schema).idempotentInitialize();\n\tconst result = handler.toFlexContent(data, allowedTypes);\n\n\treturn new UnhydratedFlexTreeNode(...result, getUnhydratedContext(schema));\n}\n\nfunction getType(\n\tdata: FactoryContent,\n\tallowedTypes: ReadonlySet<TreeNodeSchema>,\n): TreeNodeSchema {\n\tconst possibleTypes = getPossibleTypes(allowedTypes, data);\n\tif (possibleTypes.length === 0) {\n\t\tthrow new UsageError(\n\t\t\t`The provided data is incompatible with all of the types allowed by the schema. The set of allowed types is: ${JSON.stringify(\n\t\t\t\t[...allowedTypes].map((schema) => schema.identifier),\n\t\t\t)}.`,\n\t\t);\n\t}\n\tif (!hasSingle(possibleTypes)) {\n\t\tthrow new UsageError(\n\t\t\t`The provided data is compatible with more than one type allowed by the schema.\nThe set of possible types is ${JSON.stringify([\n\t\t\t\t...possibleTypes.map((schema) => schema.identifier),\n\t\t\t])}.\nExplicitly construct an unhydrated node of the desired type to disambiguate.\nFor class-based schema, this can be done by replacing an expression like \"{foo: 1}\" with \"new MySchema({foo: 1})\".`,\n\t\t);\n\t}\n\treturn possibleTypes[0];\n}\n\n/**\n * Returns all types for which the data is schema-compatible.\n */\nexport function getPossibleTypes(\n\tallowedTypes: ReadonlySet<TreeNodeSchema>,\n\tdata: FactoryContent,\n): TreeNodeSchema[] {\n\tassert(data !== undefined, 0x889 /* undefined cannot be used as FactoryContent. */);\n\n\tlet best = CompatibilityLevel.None;\n\tconst possibleTypes: TreeNodeSchema[] = [];\n\tfor (const schema of allowedTypes) {\n\t\tconst handler = getTreeNodeSchemaPrivateData(schema).idempotentInitialize();\n\t\tconst level = handler.shallowCompatibilityTest(data);\n\t\tif (level > best) {\n\t\t\tpossibleTypes.length = 0;\n\t\t\tbest = level;\n\t\t}\n\t\tif (best === level) {\n\t\t\tpossibleTypes.push(schema);\n\t\t}\n\t}\n\treturn best === CompatibilityLevel.None ? [] : possibleTypes;\n}\n\n/**\n * Content which can be used to build a node.\n * @remarks\n * Can contain unhydrated nodes, but can not be an unhydrated node at the root.\n * @system @alpha\n */\nexport type FactoryContent =\n\t| IFluidHandle\n\t| string\n\t| number\n\t| boolean\n\t// eslint-disable-next-line @rushstack/no-new-null\n\t| null\n\t| Iterable<readonly [string, InsertableContent]>\n\t| readonly InsertableContent[]\n\t| FactoryContentObject;\n\n/**\n * Record-like object which can be used to build some kinds of nodes.\n * @remarks\n * Can contain unhydrated nodes, but can not be an unhydrated node at the root.\n *\n * Supports object and map nodes.\n * @system @alpha\n */\nexport type FactoryContentObject = {\n\treadonly [P in string]?: InsertableContent;\n};\n\n/**\n * Content which can be inserted into a tree.\n * @system @alpha\n */\nexport type InsertableContent = Unhydrated<TreeNode> | FactoryContent;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"unsafeUnknownSchema.d.ts","sourceRoot":"","sources":["../../src/simple-tree/unsafeUnknownSchema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACX,oBAAoB,EACpB,0CAA0C,EAC1C,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACX,mBAAmB,EACnB,oCAAoC,EACpC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;;GAGG;AAEH,eAAO,MAAM,mBAAmB,EAAE,OAAO,MAAsC,CAAC;AAChF;;;;;;;;;;;;;;;;;GAiBG;AAEH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC;AAC7D;;;;;;;GAOG;AAEH,MAAM,MAAM,UAAU,CAAC,OAAO,SAAS,oBAAoB,GAAG,mBAAmB,IAChF,OAAO,SAAS,oBAAoB,GACjC,0CAA0C,CAAC,OAAO,CAAC,GACnD,iBAAiB,CAAC;AAEtB;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,mBAAmB,GAAG,mBAAmB,IAAI;IACxF,OAAO;CACP,SAAS,CAAC,mBAAmB,CAAC,GAC5B,oCAAoC,CAAC,OAAO,CAAC,GAC7C,CAAC,OAAO,CAAC,SAAS,CAAC,mBAAmB,CAAC,GACtC,iBAAiB,GAAG,SAAS,GAC7B,KAAK,CAAC"}
1
+ {"version":3,"file":"unsafeUnknownSchema.d.ts","sourceRoot":"","sources":["../../src/simple-tree/unsafeUnknownSchema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACX,oBAAoB,EACpB,0CAA0C,EAC1C,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACX,mBAAmB,EACnB,oCAAoC,EACpC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAAO,MAAsC,CAAC;AAEhF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,CAAC,OAAO,SAAS,oBAAoB,GAAG,mBAAmB,IAChF,OAAO,SAAS,oBAAoB,GACjC,0CAA0C,CAAC,OAAO,CAAC,GACnD,iBAAiB,CAAC;AAEtB;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,mBAAmB,GAAG,mBAAmB,IAAI;IACxF,OAAO;CACP,SAAS,CAAC,mBAAmB,CAAC,GAC5B,oCAAoC,CAAC,OAAO,CAAC,GAC7C,CAAC,OAAO,CAAC,SAAS,CAAC,mBAAmB,CAAC,GACtC,iBAAiB,GAAG,SAAS,GAC7B,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"unsafeUnknownSchema.js","sourceRoot":"","sources":["../../src/simple-tree/unsafeUnknownSchema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH;;;GAGG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAkB,MAAM,CAAC,qBAAqB,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type {\n\tImplicitAllowedTypes,\n\tInsertableTreeNodeFromImplicitAllowedTypes,\n} from \"./core/index.js\";\nimport type {\n\tImplicitFieldSchema,\n\tInsertableTreeFieldFromImplicitField,\n} from \"./fieldSchema.js\";\nimport type { InsertableContent } from \"./unhydratedFlexTreeFromInsertable.js\";\n\n/**\n * {@inheritdoc (UnsafeUnknownSchema:type)}\n * @alpha\n */\n\nexport const UnsafeUnknownSchema: unique symbol = Symbol(\"UnsafeUnknownSchema\");\n/**\n * A special type which can be provided to some APIs as the schema type parameter when schema cannot easily be provided at compile time and an unsafe (instead of disabled) editing API is desired.\n * @remarks\n * When used, this means the TypeScript typing should err on the side of completeness (allow all inputs that could be valid).\n * This introduces the risk that out-of-schema data could be allowed at compile time, and only error at runtime.\n *\n * @privateRemarks\n * This only applies to APIs which input data which is expected to be in schema, since APIs outputting have easy mechanisms to do so in a type safe way even when the schema is unknown.\n * In most cases that amounts to returning `TreeNode | TreeLeafValue`.\n *\n * This can be contrasted with the default behavior of TypeScript, which is to require the intersection of the possible types for input APIs,\n * which for unknown schema defining input trees results in the `never` type.\n *\n * Any APIs which use this must produce UsageErrors when out of schema data is encountered, and never produce unrecoverable errors,\n * or silently accept invalid data.\n * This is currently only type exported from the package: the symbol is just used as a way to get a named type.\n * @alpha\n */\n\nexport type UnsafeUnknownSchema = typeof UnsafeUnknownSchema;\n/**\n * Content which could be inserted into a tree.\n *\n * @see {@link Input}\n * @remarks\n * Extended version of {@link InsertableTreeNodeFromImplicitAllowedTypes} that also allows {@link (UnsafeUnknownSchema:type)}.\n * @alpha\n */\n\nexport type Insertable<TSchema extends ImplicitAllowedTypes | UnsafeUnknownSchema> =\n\tTSchema extends ImplicitAllowedTypes\n\t\t? InsertableTreeNodeFromImplicitAllowedTypes<TSchema>\n\t\t: InsertableContent;\n\n/**\n * Content which could be inserted into a field within a tree.\n *\n * @see {@link Input}\n * @remarks\n * Extended version of {@link InsertableTreeFieldFromImplicitField} that also allows {@link (UnsafeUnknownSchema:type)}.\n * @alpha\n */\nexport type InsertableField<TSchema extends ImplicitFieldSchema | UnsafeUnknownSchema> = [\n\tTSchema,\n] extends [ImplicitFieldSchema]\n\t? InsertableTreeFieldFromImplicitField<TSchema>\n\t: [TSchema] extends [UnsafeUnknownSchema]\n\t\t? InsertableContent | undefined\n\t\t: never;\n"]}
1
+ {"version":3,"file":"unsafeUnknownSchema.js","sourceRoot":"","sources":["../../src/simple-tree/unsafeUnknownSchema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAkB,MAAM,CAAC,qBAAqB,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type {\n\tImplicitAllowedTypes,\n\tInsertableTreeNodeFromImplicitAllowedTypes,\n} from \"./core/index.js\";\nimport type {\n\tImplicitFieldSchema,\n\tInsertableTreeFieldFromImplicitField,\n} from \"./fieldSchema.js\";\nimport type { InsertableContent } from \"./unhydratedFlexTreeFromInsertable.js\";\n\n/**\n * {@inheritdoc (UnsafeUnknownSchema:type)}\n * @alpha\n */\nexport const UnsafeUnknownSchema: unique symbol = Symbol(\"UnsafeUnknownSchema\");\n\n/**\n * A special type which can be provided to some APIs as the schema type parameter when schema cannot easily be provided at compile time and an unsafe (instead of disabled) editing API is desired.\n * @remarks\n * When used, this means the TypeScript typing should err on the side of completeness (allow all inputs that could be valid).\n * This introduces the risk that out-of-schema data could be allowed at compile time, and only error at runtime.\n *\n * @privateRemarks\n * This only applies to APIs which input data which is expected to be in schema, since APIs outputting have easy mechanisms to do so in a type safe way even when the schema is unknown.\n * In most cases that amounts to returning `TreeNode | TreeLeafValue`.\n *\n * This can be contrasted with the default behavior of TypeScript, which is to require the intersection of the possible types for input APIs,\n * which for unknown schema defining input trees results in the `never` type.\n *\n * Any APIs which use this must produce UsageErrors when out of schema data is encountered, and never produce unrecoverable errors,\n * or silently accept invalid data.\n * This is currently only type exported from the package: the symbol is just used as a way to get a named type.\n * @alpha\n */\nexport type UnsafeUnknownSchema = typeof UnsafeUnknownSchema;\n\n/**\n * Content which could be inserted into a tree.\n *\n * @see {@link Input}\n * @remarks\n * Extended version of {@link InsertableTreeNodeFromImplicitAllowedTypes} that also allows {@link (UnsafeUnknownSchema:type)}.\n * @alpha\n */\nexport type Insertable<TSchema extends ImplicitAllowedTypes | UnsafeUnknownSchema> =\n\tTSchema extends ImplicitAllowedTypes\n\t\t? InsertableTreeNodeFromImplicitAllowedTypes<TSchema>\n\t\t: InsertableContent;\n\n/**\n * Content which could be inserted into a field within a tree.\n *\n * @see {@link Input}\n * @remarks\n * Extended version of {@link InsertableTreeFieldFromImplicitField} that also allows {@link (UnsafeUnknownSchema:type)}.\n * @alpha\n */\nexport type InsertableField<TSchema extends ImplicitFieldSchema | UnsafeUnknownSchema> = [\n\tTSchema,\n] extends [ImplicitFieldSchema]\n\t? InsertableTreeFieldFromImplicitField<TSchema>\n\t: [TSchema] extends [UnsafeUnknownSchema]\n\t\t? InsertableContent | undefined\n\t\t: never;\n"]}
@@ -9,6 +9,6 @@ import { normalizeFieldSchema } from "./fieldSchema.js";
9
9
  * @internal
10
10
  */
11
11
  export function walkFieldSchema(schema, visitor, visitedSet = new Set()) {
12
- walkAllowedTypes(normalizeFieldSchema(schema).annotatedAllowedTypesNormalized, visitor, visitedSet);
12
+ walkAllowedTypes(normalizeFieldSchema(schema).allowedTypesFull.evaluate(), visitor, visitedSet);
13
13
  }
14
14
  //# sourceMappingURL=walkFieldSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"walkFieldSchema.js","sourceRoot":"","sources":["../../src/simple-tree/walkFieldSchema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuB,gBAAgB,EAAsB,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAA4B,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAElF;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC9B,MAA2B,EAC3B,OAAsB,EACtB,aAAkC,IAAI,GAAG,EAAE;IAE3C,gBAAgB,CACf,oBAAoB,CAAC,MAAM,CAAC,CAAC,+BAA+B,EAC5D,OAAO,EACP,UAAU,CACV,CAAC;AACH,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { type TreeNodeSchema, walkAllowedTypes, type SchemaVisitor } from \"./core/index.js\";\nimport { type ImplicitFieldSchema, normalizeFieldSchema } from \"./fieldSchema.js\";\n\n/**\n * Traverses all {@link TreeNodeSchema} schema reachable from `schema`, applying the visitor pattern.\n * @internal\n */\nexport function walkFieldSchema(\n\tschema: ImplicitFieldSchema,\n\tvisitor: SchemaVisitor,\n\tvisitedSet: Set<TreeNodeSchema> = new Set(),\n): void {\n\twalkAllowedTypes(\n\t\tnormalizeFieldSchema(schema).annotatedAllowedTypesNormalized,\n\t\tvisitor,\n\t\tvisitedSet,\n\t);\n}\n"]}
1
+ {"version":3,"file":"walkFieldSchema.js","sourceRoot":"","sources":["../../src/simple-tree/walkFieldSchema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuB,gBAAgB,EAAsB,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAA4B,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAElF;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC9B,MAA2B,EAC3B,OAAsB,EACtB,aAAkC,IAAI,GAAG,EAAE;IAE3C,gBAAgB,CACf,oBAAoB,CAAC,MAAM,CAAC,CAAC,gBAAgB,CAAC,QAAQ,EAAE,EACxD,OAAO,EACP,UAAU,CACV,CAAC;AACH,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { type TreeNodeSchema, walkAllowedTypes, type SchemaVisitor } from \"./core/index.js\";\nimport { type ImplicitFieldSchema, normalizeFieldSchema } from \"./fieldSchema.js\";\n\n/**\n * Traverses all {@link TreeNodeSchema} schema reachable from `schema`, applying the visitor pattern.\n * @internal\n */\nexport function walkFieldSchema(\n\tschema: ImplicitFieldSchema,\n\tvisitor: SchemaVisitor,\n\tvisitedSet: Set<TreeNodeSchema> = new Set(),\n): void {\n\twalkAllowedTypes(\n\t\tnormalizeFieldSchema(schema).allowedTypesFull.evaluate(),\n\t\tvisitor,\n\t\tvisitedSet,\n\t);\n}\n"]}
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { type FieldHasDefault, type ImplicitAllowedTypes, type InsertableTreeNodeFromImplicitAllowedTypes, type NodeKind, type SchemaFactoryAlpha, type ScopedSchemaName, TreeArrayNode, type TreeNode, type TreeNodeFromImplicitAllowedTypes, type TreeNodeSchemaClass, type WithType, type TreeFieldFromImplicitField, type InsertableTreeFieldFromImplicitField, type InternalTreeNode, SchemaFactory, type ImplicitAnnotatedFieldSchema, type UnannotateImplicitFieldSchema } from "./simple-tree/index.js";
5
+ import { type FieldHasDefault, type ImplicitAllowedTypes, type InsertableTreeNodeFromImplicitAllowedTypes, type NodeKind, type SchemaFactoryAlpha, type ScopedSchemaName, TreeArrayNode, type TreeNode, type TreeNodeFromImplicitAllowedTypes, type TreeNodeSchemaClass, type WithType, type TreeFieldFromImplicitField, type InsertableTreeFieldFromImplicitField, type InternalTreeNode, SchemaFactory, type ImplicitFieldSchema } from "./simple-tree/index.js";
6
6
  /**
7
7
  * Not intended for use outside of this package.
8
8
  *
@@ -58,20 +58,20 @@ export declare namespace System_TableSchema {
58
58
  * Factory for creating column schema.
59
59
  * @system @alpha
60
60
  */
61
- function createColumnSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TPropsSchema extends ImplicitAnnotatedFieldSchema>(inputSchemaFactory: SchemaFactoryAlpha<TInputScope>, cellSchema: TCellSchema, propsSchema: TPropsSchema): TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Column">, NodeKind.Object, TreeNode & TableSchema.Column<TCellSchema, TPropsSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Column">, NodeKind, unknown>, object & {
61
+ function createColumnSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TPropsSchema extends ImplicitFieldSchema>(inputSchemaFactory: SchemaFactoryAlpha<TInputScope>, cellSchema: TCellSchema, propsSchema: TPropsSchema): TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Column">, NodeKind.Object, TreeNode & TableSchema.Column<TCellSchema, TPropsSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Column">, NodeKind, unknown>, object & {
62
62
  readonly id?: string | undefined;
63
- } & (FieldHasDefault<UnannotateImplicitFieldSchema<TPropsSchema>> extends true ? {
63
+ } & (FieldHasDefault<TPropsSchema> extends true ? {
64
64
  /**
65
65
  * The column's properties.
66
66
  * @remarks This is a user-defined schema that can be used to store additional information about the column.
67
67
  */
68
- props?: InsertableTreeFieldFromImplicitField<UnannotateImplicitFieldSchema<TPropsSchema>> | undefined;
68
+ props?: InsertableTreeFieldFromImplicitField<TPropsSchema> | undefined;
69
69
  } : {
70
70
  /**
71
71
  * The column's properties.
72
72
  * @remarks This is a user-defined schema that can be used to store additional information about the column.
73
73
  */
74
- props: InsertableTreeFieldFromImplicitField<UnannotateImplicitFieldSchema<TPropsSchema>>;
74
+ props: InsertableTreeFieldFromImplicitField<TPropsSchema>;
75
75
  }), true, {
76
76
  readonly props: TPropsSchema;
77
77
  readonly id: import("./simple-tree/fieldSchema.js").FieldSchema<import("./simple-tree/fieldSchema.js").FieldKind.Identifier, import("./simple-tree/leafNodeSchema.js").LeafSchema<"string", string>, unknown>;
@@ -80,7 +80,7 @@ export declare namespace System_TableSchema {
80
80
  * Base column schema type.
81
81
  * @sealed @system @alpha
82
82
  */
83
- type ColumnSchemaBase<TScope extends string | undefined = string | undefined, TCellSchema extends ImplicitAllowedTypes = ImplicitAllowedTypes, TPropsSchema extends ImplicitAnnotatedFieldSchema = ImplicitAnnotatedFieldSchema> = ReturnType<typeof createColumnSchema<TScope, TCellSchema, TPropsSchema>>;
83
+ type ColumnSchemaBase<TScope extends string | undefined = string | undefined, TCellSchema extends ImplicitAllowedTypes = ImplicitAllowedTypes, TPropsSchema extends ImplicitFieldSchema = ImplicitFieldSchema> = ReturnType<typeof createColumnSchema<TScope, TCellSchema, TPropsSchema>>;
84
84
  /**
85
85
  * Base options for creating table row schema.
86
86
  * @remarks Includes parameters common to all row factory overloads.
@@ -91,23 +91,23 @@ export declare namespace System_TableSchema {
91
91
  * Factory for creating row schema.
92
92
  * @sealed @alpha
93
93
  */
94
- function createRowSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TPropsSchema extends ImplicitAnnotatedFieldSchema>(inputSchemaFactory: SchemaFactoryAlpha<TInputScope>, cellSchema: TCellSchema, propsSchema: TPropsSchema): TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row">, NodeKind.Object, TreeNode & TableSchema.Row<TCellSchema, TPropsSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row">, NodeKind, unknown>, object & {
94
+ function createRowSchema<const TInputScope extends string | undefined, const TCellSchema extends ImplicitAllowedTypes, const TPropsSchema extends ImplicitFieldSchema>(inputSchemaFactory: SchemaFactoryAlpha<TInputScope>, cellSchema: TCellSchema, propsSchema: TPropsSchema): TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row">, NodeKind.Object, TreeNode & TableSchema.Row<TCellSchema, TPropsSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row">, NodeKind, unknown>, object & {
95
95
  readonly id?: string | undefined;
96
96
  readonly cells: (import("./simple-tree/index.js").InsertableTypedNode<TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, import("./simple-tree/index.js").TreeRecordNode<TCellSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, unknown>, import("./simple-tree/index.js").RecordNodeInsertableData<TCellSchema>, true, TCellSchema, undefined>> | undefined) & import("./simple-tree/index.js").InsertableTypedNode<TreeNodeSchemaClass<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, import("./simple-tree/index.js").TreeRecordNode<TCellSchema> & WithType<ScopedSchemaName<ScopedSchemaName<TInputScope, "table">, "Row.cells">, NodeKind.Record, unknown>, import("./simple-tree/index.js").RecordNodeInsertableData<TCellSchema>, true, TCellSchema, undefined>>;
97
- } & (FieldHasDefault<UnannotateImplicitFieldSchema<TPropsSchema>> extends true ? {
97
+ } & (FieldHasDefault<TPropsSchema> extends true ? {
98
98
  /**
99
99
  * The row's properties.
100
100
  * @remarks This is a user-defined schema that can be used to store additional information
101
101
  * about the row.
102
102
  */
103
- props?: InsertableTreeFieldFromImplicitField<UnannotateImplicitFieldSchema<TPropsSchema>> | undefined;
103
+ props?: InsertableTreeFieldFromImplicitField<TPropsSchema> | undefined;
104
104
  } : {
105
105
  /**
106
106
  * The row's properties.
107
107
  * @remarks This is a user-defined schema that can be used to store additional information
108
108
  * about the row.
109
109
  */
110
- props: InsertableTreeFieldFromImplicitField<UnannotateImplicitFieldSchema<TPropsSchema>>;
110
+ props: InsertableTreeFieldFromImplicitField<TPropsSchema>;
111
111
  }), true, {
112
112
  readonly props: TPropsSchema;
113
113
  readonly id: import("./simple-tree/fieldSchema.js").FieldSchema<import("./simple-tree/fieldSchema.js").FieldKind.Identifier, import("./simple-tree/leafNodeSchema.js").LeafSchema<"string", string>, unknown>;
@@ -122,7 +122,7 @@ export declare namespace System_TableSchema {
122
122
  * Base row schema type.
123
123
  * @sealed @system @alpha
124
124
  */
125
- type RowSchemaBase<TScope extends string | undefined = string | undefined, TCellSchema extends ImplicitAllowedTypes = ImplicitAllowedTypes, TPropsSchema extends ImplicitAnnotatedFieldSchema = ImplicitAnnotatedFieldSchema> = ReturnType<typeof createRowSchema<TScope, TCellSchema, TPropsSchema>>;
125
+ type RowSchemaBase<TScope extends string | undefined = string | undefined, TCellSchema extends ImplicitAllowedTypes = ImplicitAllowedTypes, TPropsSchema extends ImplicitFieldSchema = ImplicitFieldSchema> = ReturnType<typeof createRowSchema<TScope, TCellSchema, TPropsSchema>>;
126
126
  /**
127
127
  * Base options for creating table schema.
128
128
  * @remarks Includes parameters common to all table factory overloads.
@@ -279,7 +279,7 @@ export declare namespace TableSchema {
279
279
  * @typeParam TProps - Additional properties to associate with the column.
280
280
  * @sealed @alpha
281
281
  */
282
- interface Column<TCell extends ImplicitAllowedTypes, TProps extends ImplicitAnnotatedFieldSchema = ImplicitAnnotatedFieldSchema> {
282
+ interface Column<TCell extends ImplicitAllowedTypes, TProps extends ImplicitFieldSchema = ImplicitFieldSchema> {
283
283
  /**
284
284
  * The unique identifier of the column.
285
285
  * @remarks Uniquely identifies the node within the entire tree, not just the table.
@@ -292,8 +292,8 @@ export declare namespace TableSchema {
292
292
  * Note: these docs are duplicated on the inline type definitions in {@link System_TableSchema.createColumnSchema}.
293
293
  * If you update the docs here, please also update the inline type definitions.
294
294
  */
295
- get props(): TreeFieldFromImplicitField<UnannotateImplicitFieldSchema<TProps>>;
296
- set props(value: InsertableTreeFieldFromImplicitField<UnannotateImplicitFieldSchema<TProps>>);
295
+ get props(): TreeFieldFromImplicitField<TProps>;
296
+ set props(value: InsertableTreeFieldFromImplicitField<TProps>);
297
297
  /**
298
298
  * Gets all of the populated cells in the column, keyed by their associated row IDs.
299
299
  * @throws Throws an error if the column is not in a table.
@@ -317,7 +317,7 @@ export declare namespace TableSchema {
317
317
  * @typeParam TProps - Additional properties to associate with the column.
318
318
  * @alpha
319
319
  */
320
- function column<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TProps extends ImplicitAnnotatedFieldSchema>(params: System_TableSchema.CreateColumnOptionsBase<SchemaFactoryAlpha<TScope>, TCell> & {
320
+ function column<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TProps extends ImplicitFieldSchema>(params: System_TableSchema.CreateColumnOptionsBase<SchemaFactoryAlpha<TScope>, TCell> & {
321
321
  /**
322
322
  * Optional column properties.
323
323
  */
@@ -330,7 +330,7 @@ export declare namespace TableSchema {
330
330
  * @typeParam TProps - Additional properties to associate with the row.
331
331
  * @sealed @alpha
332
332
  */
333
- interface Row<TCell extends ImplicitAllowedTypes, TProps extends ImplicitAnnotatedFieldSchema = ImplicitAnnotatedFieldSchema> {
333
+ interface Row<TCell extends ImplicitAllowedTypes, TProps extends ImplicitFieldSchema = ImplicitFieldSchema> {
334
334
  /**
335
335
  * The unique identifier of the row.
336
336
  * @remarks Uniquely identifies the node within the entire tree, not just the table.
@@ -383,8 +383,8 @@ export declare namespace TableSchema {
383
383
  * Note: these docs are duplicated on the inline type definitions in {@link System_TableSchema.createRowSchema}.
384
384
  * If you update the docs here, please also update the inline type definitions.
385
385
  */
386
- get props(): TreeFieldFromImplicitField<UnannotateImplicitFieldSchema<TProps>>;
387
- set props(value: InsertableTreeFieldFromImplicitField<UnannotateImplicitFieldSchema<TProps>>);
386
+ get props(): TreeFieldFromImplicitField<TProps>;
387
+ set props(value: InsertableTreeFieldFromImplicitField<TProps>);
388
388
  }
389
389
  /**
390
390
  * Factory for creating new table column schema.
@@ -400,7 +400,7 @@ export declare namespace TableSchema {
400
400
  * @typeParam TProps - Additional properties to associate with the row.
401
401
  * @alpha
402
402
  */
403
- function row<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TProps extends ImplicitAnnotatedFieldSchema>(params: System_TableSchema.CreateRowOptionsBase<SchemaFactoryAlpha<TScope>, TCell> & {
403
+ function row<const TScope extends string | undefined, const TCell extends ImplicitAllowedTypes, const TProps extends ImplicitFieldSchema>(params: System_TableSchema.CreateRowOptionsBase<SchemaFactoryAlpha<TScope>, TCell> & {
404
404
  /**
405
405
  * Optional row properties.
406
406
  */
@@ -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,KAA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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,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"}
@@ -88,7 +88,7 @@ export var System_TableSchema;
88
88
  /**
89
89
  * A column in a table.
90
90
  */
91
- class Column extends schemaFactory.objectAlpha("Column", columnFields, {
91
+ class Column extends schemaFactory.object("Column", columnFields, {
92
92
  // Will make it easier to evolve this schema in the future.
93
93
  allowUnknownOptionalFields: true,
94
94
  }) {
@@ -160,7 +160,7 @@ export var System_TableSchema;
160
160
  /**
161
161
  * The Row schema - this is a map of Cells where the key is the column id
162
162
  */
163
- class Row extends schemaFactory.objectAlpha("Row", rowFields, {
163
+ class Row extends schemaFactory.object("Row", rowFields, {
164
164
  // Will make it easier to evolve this schema in the future.
165
165
  allowUnknownOptionalFields: true,
166
166
  }) {