@contember/react-binding 2.1.0-alpha.8 → 2.1.0-beta.1

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 (558) hide show
  1. package/CLAUDE.md +57 -0
  2. package/dist/development/index.cjs +99 -99
  3. package/dist/development/index.js +48 -48
  4. package/dist/development/src/accessorPropagation/AccessorProvider.cjs.map +1 -1
  5. package/dist/development/src/accessorPropagation/AccessorProvider.js.map +1 -1
  6. package/dist/development/src/accessorPropagation/BindingOperationsContext.cjs.map +1 -1
  7. package/dist/development/src/accessorPropagation/BindingOperationsContext.js.map +1 -1
  8. package/dist/development/src/accessorPropagation/BindingOperationsProvider.cjs.map +1 -1
  9. package/dist/development/src/accessorPropagation/BindingOperationsProvider.js.map +1 -1
  10. package/dist/development/src/accessorPropagation/EntityKeyContext.cjs.map +1 -1
  11. package/dist/development/src/accessorPropagation/EntityKeyContext.js.map +1 -1
  12. package/dist/development/src/accessorPropagation/EntityKeyProvider.cjs.map +1 -1
  13. package/dist/development/src/accessorPropagation/EntityKeyProvider.js.map +1 -1
  14. package/dist/development/src/accessorPropagation/EnvironmentContext.cjs +0 -1
  15. package/dist/development/src/accessorPropagation/EnvironmentContext.cjs.map +1 -1
  16. package/dist/development/src/accessorPropagation/EnvironmentContext.js +1 -2
  17. package/dist/development/src/accessorPropagation/EnvironmentContext.js.map +1 -1
  18. package/dist/development/src/accessorPropagation/TreeRootIdContext.cjs.map +1 -1
  19. package/dist/development/src/accessorPropagation/TreeRootIdContext.js.map +1 -1
  20. package/dist/development/src/accessorPropagation/TreeRootIdProvider.cjs.map +1 -1
  21. package/dist/development/src/accessorPropagation/TreeRootIdProvider.js.map +1 -1
  22. package/dist/development/src/accessorPropagation/useAccessorUpdateSubscription.cjs.map +1 -1
  23. package/dist/development/src/accessorPropagation/useAccessorUpdateSubscription.js.map +1 -1
  24. package/dist/development/src/accessorPropagation/useBindingOperations.cjs.map +1 -1
  25. package/dist/development/src/accessorPropagation/useBindingOperations.js.map +1 -1
  26. package/dist/development/src/accessorPropagation/useDesugaredRelativeEntityList.cjs +1 -2
  27. package/dist/development/src/accessorPropagation/useDesugaredRelativeEntityList.cjs.map +1 -1
  28. package/dist/development/src/accessorPropagation/useDesugaredRelativeEntityList.js +1 -2
  29. package/dist/development/src/accessorPropagation/useDesugaredRelativeEntityList.js.map +1 -1
  30. package/dist/development/src/accessorPropagation/useDesugaredRelativeSingleEntity.cjs +1 -2
  31. package/dist/development/src/accessorPropagation/useDesugaredRelativeSingleEntity.cjs.map +1 -1
  32. package/dist/development/src/accessorPropagation/useDesugaredRelativeSingleEntity.js +1 -2
  33. package/dist/development/src/accessorPropagation/useDesugaredRelativeSingleEntity.js.map +1 -1
  34. package/dist/development/src/accessorPropagation/useDesugaredRelativeSingleField.cjs +1 -2
  35. package/dist/development/src/accessorPropagation/useDesugaredRelativeSingleField.cjs.map +1 -1
  36. package/dist/development/src/accessorPropagation/useDesugaredRelativeSingleField.js +1 -2
  37. package/dist/development/src/accessorPropagation/useDesugaredRelativeSingleField.js.map +1 -1
  38. package/dist/development/src/accessorPropagation/useEntity.cjs.map +1 -1
  39. package/dist/development/src/accessorPropagation/useEntity.js.map +1 -1
  40. package/dist/development/src/accessorPropagation/useEntityKey.cjs.map +1 -1
  41. package/dist/development/src/accessorPropagation/useEntityKey.js.map +1 -1
  42. package/dist/development/src/accessorPropagation/useEntityList.cjs.map +1 -1
  43. package/dist/development/src/accessorPropagation/useEntityList.js.map +1 -1
  44. package/dist/development/src/accessorPropagation/useEntityListSubTree.cjs.map +1 -1
  45. package/dist/development/src/accessorPropagation/useEntityListSubTree.js.map +1 -1
  46. package/dist/development/src/accessorPropagation/useEntityListSubTreeLoader.cjs +1 -1
  47. package/dist/development/src/accessorPropagation/useEntityListSubTreeLoader.cjs.map +1 -1
  48. package/dist/development/src/accessorPropagation/useEntityListSubTreeLoader.js +1 -1
  49. package/dist/development/src/accessorPropagation/useEntityListSubTreeLoader.js.map +1 -1
  50. package/dist/development/src/accessorPropagation/useEntityListSubTreeParameters.cjs.map +1 -1
  51. package/dist/development/src/accessorPropagation/useEntityListSubTreeParameters.js.map +1 -1
  52. package/dist/development/src/accessorPropagation/useEntitySubTree.cjs.map +1 -1
  53. package/dist/development/src/accessorPropagation/useEntitySubTree.js.map +1 -1
  54. package/dist/development/src/accessorPropagation/useEntitySubTreeLoader.cjs +1 -1
  55. package/dist/development/src/accessorPropagation/useEntitySubTreeLoader.cjs.map +1 -1
  56. package/dist/development/src/accessorPropagation/useEntitySubTreeLoader.js +1 -1
  57. package/dist/development/src/accessorPropagation/useEntitySubTreeLoader.js.map +1 -1
  58. package/dist/development/src/accessorPropagation/useEntitySubTreeParameters.cjs.map +1 -1
  59. package/dist/development/src/accessorPropagation/useEntitySubTreeParameters.js.map +1 -1
  60. package/dist/development/src/accessorPropagation/useExtendTree.cjs +1 -4
  61. package/dist/development/src/accessorPropagation/useExtendTree.cjs.map +1 -1
  62. package/dist/development/src/accessorPropagation/useExtendTree.js +1 -4
  63. package/dist/development/src/accessorPropagation/useExtendTree.js.map +1 -1
  64. package/dist/development/src/accessorPropagation/useField.cjs.map +1 -1
  65. package/dist/development/src/accessorPropagation/useField.js.map +1 -1
  66. package/dist/development/src/accessorPropagation/useGetEntityByKey.cjs.map +1 -1
  67. package/dist/development/src/accessorPropagation/useGetEntityByKey.js.map +1 -1
  68. package/dist/development/src/accessorPropagation/useGetEntityListSubTree.cjs.map +1 -1
  69. package/dist/development/src/accessorPropagation/useGetEntityListSubTree.js.map +1 -1
  70. package/dist/development/src/accessorPropagation/useGetEntitySubTree.cjs.map +1 -1
  71. package/dist/development/src/accessorPropagation/useGetEntitySubTree.js.map +1 -1
  72. package/dist/development/src/accessorPropagation/useHasEntity.cjs.map +1 -1
  73. package/dist/development/src/accessorPropagation/useHasEntity.js.map +1 -1
  74. package/dist/development/src/accessorPropagation/usePersist.cjs.map +1 -1
  75. package/dist/development/src/accessorPropagation/usePersist.js.map +1 -1
  76. package/dist/development/src/accessorPropagation/useTreeRootId.cjs.map +1 -1
  77. package/dist/development/src/accessorPropagation/useTreeRootId.js.map +1 -1
  78. package/dist/development/src/accessorSorting/SetOrderFieldOnCreate.cjs +10 -10
  79. package/dist/development/src/accessorSorting/SetOrderFieldOnCreate.cjs.map +1 -1
  80. package/dist/development/src/accessorSorting/SetOrderFieldOnCreate.js +10 -10
  81. package/dist/development/src/accessorSorting/SetOrderFieldOnCreate.js.map +1 -1
  82. package/dist/development/src/accessorSorting/addEntityAtIndex.cjs.map +1 -1
  83. package/dist/development/src/accessorSorting/addEntityAtIndex.js.map +1 -1
  84. package/dist/development/src/accessorSorting/repairEntitiesOrder.cjs.map +1 -1
  85. package/dist/development/src/accessorSorting/repairEntitiesOrder.js.map +1 -1
  86. package/dist/development/src/accessorSorting/sortEntities.cjs.map +1 -1
  87. package/dist/development/src/accessorSorting/sortEntities.js.map +1 -1
  88. package/dist/development/src/accessorTree/AccessorTree.cjs.map +1 -1
  89. package/dist/development/src/accessorTree/AccessorTree.js.map +1 -1
  90. package/dist/development/src/accessorTree/AccessorTreeStateContext.cjs.map +1 -1
  91. package/dist/development/src/accessorTree/AccessorTreeStateContext.js.map +1 -1
  92. package/dist/development/src/accessorTree/DirtinessContext.cjs.map +1 -1
  93. package/dist/development/src/accessorTree/DirtinessContext.js.map +1 -1
  94. package/dist/development/src/accessorTree/MutationStateContext.cjs.map +1 -1
  95. package/dist/development/src/accessorTree/MutationStateContext.js.map +1 -1
  96. package/dist/development/src/accessorTree/useAccessorTreeState.cjs.map +1 -1
  97. package/dist/development/src/accessorTree/useAccessorTreeState.js.map +1 -1
  98. package/dist/development/src/accessorTree/useDataBinding.cjs +17 -13
  99. package/dist/development/src/accessorTree/useDataBinding.cjs.map +1 -1
  100. package/dist/development/src/accessorTree/useDataBinding.js +19 -15
  101. package/dist/development/src/accessorTree/useDataBinding.js.map +1 -1
  102. package/dist/development/src/accessorTree/useDirtinessState.cjs.map +1 -1
  103. package/dist/development/src/accessorTree/useDirtinessState.js.map +1 -1
  104. package/dist/development/src/accessorTree/useEnvironmentWithSchema.cjs.map +1 -1
  105. package/dist/development/src/accessorTree/useEnvironmentWithSchema.js.map +1 -1
  106. package/dist/development/src/accessorTree/useMutationState.cjs.map +1 -1
  107. package/dist/development/src/accessorTree/useMutationState.js.map +1 -1
  108. package/dist/development/src/coreComponents/Component.cjs.map +1 -1
  109. package/dist/development/src/coreComponents/Component.js.map +1 -1
  110. package/dist/development/src/coreComponents/DataBindingProvider.cjs +1 -1
  111. package/dist/development/src/coreComponents/DataBindingProvider.cjs.map +1 -1
  112. package/dist/development/src/coreComponents/DataBindingProvider.js +1 -1
  113. package/dist/development/src/coreComponents/DataBindingProvider.js.map +1 -1
  114. package/dist/development/src/coreComponents/Entity.cjs.map +1 -1
  115. package/dist/development/src/coreComponents/Entity.js.map +1 -1
  116. package/dist/development/src/coreComponents/EntityList.cjs +3 -3
  117. package/dist/development/src/coreComponents/EntityList.cjs.map +1 -1
  118. package/dist/development/src/coreComponents/EntityList.js +3 -3
  119. package/dist/development/src/coreComponents/EntityList.js.map +1 -1
  120. package/dist/development/src/coreComponents/EntityListSubTree.cjs +3 -3
  121. package/dist/development/src/coreComponents/EntityListSubTree.cjs.map +1 -1
  122. package/dist/development/src/coreComponents/EntityListSubTree.js +4 -4
  123. package/dist/development/src/coreComponents/EntityListSubTree.js.map +1 -1
  124. package/dist/development/src/coreComponents/EntitySubTree.cjs.map +1 -1
  125. package/dist/development/src/coreComponents/EntitySubTree.js +1 -1
  126. package/dist/development/src/coreComponents/EntitySubTree.js.map +1 -1
  127. package/dist/development/src/coreComponents/Field.cjs +2 -2
  128. package/dist/development/src/coreComponents/Field.cjs.map +1 -1
  129. package/dist/development/src/coreComponents/Field.js +3 -3
  130. package/dist/development/src/coreComponents/Field.js.map +1 -1
  131. package/dist/development/src/coreComponents/HasMany.cjs +3 -3
  132. package/dist/development/src/coreComponents/HasMany.cjs.map +1 -1
  133. package/dist/development/src/coreComponents/HasMany.js +4 -4
  134. package/dist/development/src/coreComponents/HasMany.js.map +1 -1
  135. package/dist/development/src/coreComponents/HasOne.cjs.map +1 -1
  136. package/dist/development/src/coreComponents/HasOne.js +1 -1
  137. package/dist/development/src/coreComponents/HasOne.js.map +1 -1
  138. package/dist/development/src/coreComponents/ParentEntity.cjs.map +1 -1
  139. package/dist/development/src/coreComponents/ParentEntity.js.map +1 -1
  140. package/dist/development/src/entityEvents/useDataBindingEvent.cjs.map +1 -1
  141. package/dist/development/src/entityEvents/useDataBindingEvent.js.map +1 -1
  142. package/dist/development/src/entityEvents/useDerivedField.cjs.map +1 -1
  143. package/dist/development/src/entityEvents/useDerivedField.js.map +1 -1
  144. package/dist/development/src/entityEvents/useEntityBeforePersist.cjs.map +1 -1
  145. package/dist/development/src/entityEvents/useEntityBeforePersist.js.map +1 -1
  146. package/dist/development/src/entityEvents/useEntityBeforeUpdate.cjs.map +1 -1
  147. package/dist/development/src/entityEvents/useEntityBeforeUpdate.js.map +1 -1
  148. package/dist/development/src/entityEvents/useEntityEvent.cjs.map +1 -1
  149. package/dist/development/src/entityEvents/useEntityEvent.js.map +1 -1
  150. package/dist/development/src/entityEvents/useEntityPersistError.cjs.map +1 -1
  151. package/dist/development/src/entityEvents/useEntityPersistError.js.map +1 -1
  152. package/dist/development/src/entityEvents/useEntityPersistSuccess.cjs.map +1 -1
  153. package/dist/development/src/entityEvents/useEntityPersistSuccess.js.map +1 -1
  154. package/dist/development/src/entityEvents/useOnConnectionUpdate.cjs.map +1 -1
  155. package/dist/development/src/entityEvents/useOnConnectionUpdate.js.map +1 -1
  156. package/dist/development/src/helperComponents/DeferredSubTrees.cjs.map +1 -1
  157. package/dist/development/src/helperComponents/DeferredSubTrees.js.map +1 -1
  158. package/dist/development/src/helperComponents/DeleteEntityTrigger.cjs +1 -1
  159. package/dist/development/src/helperComponents/DeleteEntityTrigger.cjs.map +1 -1
  160. package/dist/development/src/helperComponents/DeleteEntityTrigger.js +1 -1
  161. package/dist/development/src/helperComponents/DeleteEntityTrigger.js.map +1 -1
  162. package/dist/development/src/helperComponents/DimensionRenderer.cjs +4 -4
  163. package/dist/development/src/helperComponents/DimensionRenderer.cjs.map +1 -1
  164. package/dist/development/src/helperComponents/DimensionRenderer.js +4 -4
  165. package/dist/development/src/helperComponents/DimensionRenderer.js.map +1 -1
  166. package/dist/development/src/helperComponents/EntityView.cjs +1 -1
  167. package/dist/development/src/helperComponents/EntityView.cjs.map +1 -1
  168. package/dist/development/src/helperComponents/EntityView.js +1 -1
  169. package/dist/development/src/helperComponents/EntityView.js.map +1 -1
  170. package/dist/development/src/helperComponents/FieldView.cjs +4 -4
  171. package/dist/development/src/helperComponents/FieldView.cjs.map +1 -1
  172. package/dist/development/src/helperComponents/FieldView.js +4 -4
  173. package/dist/development/src/helperComponents/FieldView.js.map +1 -1
  174. package/dist/development/src/helperComponents/If.cjs +20 -23
  175. package/dist/development/src/helperComponents/If.cjs.map +1 -1
  176. package/dist/development/src/helperComponents/If.js +20 -23
  177. package/dist/development/src/helperComponents/If.js.map +1 -1
  178. package/dist/development/src/helperComponents/LabelMiddleware.cjs.map +1 -1
  179. package/dist/development/src/helperComponents/LabelMiddleware.js.map +1 -1
  180. package/dist/development/src/helperComponents/RecursionTerminator.cjs.map +1 -1
  181. package/dist/development/src/helperComponents/RecursionTerminator.js.map +1 -1
  182. package/dist/development/src/helperComponents/RecursionTerminatorPortal.cjs.map +1 -1
  183. package/dist/development/src/helperComponents/RecursionTerminatorPortal.js.map +1 -1
  184. package/dist/development/src/helperComponents/StaticRender.cjs.map +1 -1
  185. package/dist/development/src/helperComponents/StaticRender.js.map +1 -1
  186. package/dist/development/src/helperComponents/SugaredField.cjs.map +1 -1
  187. package/dist/development/src/helperComponents/SugaredField.js.map +1 -1
  188. package/dist/development/src/helperComponents/Variable.cjs.map +1 -1
  189. package/dist/development/src/helperComponents/Variable.js.map +1 -1
  190. package/dist/development/src/helperComponents/helpers/FilterEvaluator.cjs.map +1 -1
  191. package/dist/development/src/helperComponents/helpers/FilterEvaluator.js.map +1 -1
  192. package/dist/development/src/helperComponents/helpers/FilterFieldsCollector.cjs +4 -2
  193. package/dist/development/src/helperComponents/helpers/FilterFieldsCollector.cjs.map +1 -1
  194. package/dist/development/src/helperComponents/helpers/FilterFieldsCollector.js +4 -2
  195. package/dist/development/src/helperComponents/helpers/FilterFieldsCollector.js.map +1 -1
  196. package/dist/development/src/helperComponents/helpers/evaluateCondition.cjs.map +1 -1
  197. package/dist/development/src/helperComponents/helpers/evaluateCondition.js.map +1 -1
  198. package/dist/development/src/helperComponents/persist/PersistOnFieldChange.cjs +1 -1
  199. package/dist/development/src/helperComponents/persist/PersistOnFieldChange.cjs.map +1 -1
  200. package/dist/development/src/helperComponents/persist/PersistOnFieldChange.js +1 -1
  201. package/dist/development/src/helperComponents/persist/PersistOnFieldChange.js.map +1 -1
  202. package/dist/development/src/helperComponents/persist/PersistOnHasOneChange.cjs +1 -1
  203. package/dist/development/src/helperComponents/persist/PersistOnHasOneChange.cjs.map +1 -1
  204. package/dist/development/src/helperComponents/persist/PersistOnHasOneChange.js +1 -1
  205. package/dist/development/src/helperComponents/persist/PersistOnHasOneChange.js.map +1 -1
  206. package/dist/development/src/helperComponents/persist/PersistOnKey.cjs.map +1 -1
  207. package/dist/development/src/helperComponents/persist/PersistOnKey.js.map +1 -1
  208. package/dist/development/src/helperComponents/persist/PersistTrigger.cjs +1 -1
  209. package/dist/development/src/helperComponents/persist/PersistTrigger.cjs.map +1 -1
  210. package/dist/development/src/helperComponents/persist/PersistTrigger.js +1 -1
  211. package/dist/development/src/helperComponents/persist/PersistTrigger.js.map +1 -1
  212. package/dist/development/src/helperComponents/persist/useDecoratedPersist.cjs.map +1 -1
  213. package/dist/development/src/helperComponents/persist/useDecoratedPersist.js.map +1 -1
  214. package/dist/development/src/markers/IncrementalMarkerBuilder.cjs +47 -44
  215. package/dist/development/src/markers/IncrementalMarkerBuilder.cjs.map +1 -1
  216. package/dist/development/src/markers/IncrementalMarkerBuilder.js +47 -44
  217. package/dist/development/src/markers/IncrementalMarkerBuilder.js.map +1 -1
  218. package/dist/development/src/markers/MarkerStaticAnalyzer.cjs +19 -19
  219. package/dist/development/src/markers/MarkerStaticAnalyzer.cjs.map +1 -1
  220. package/dist/development/src/markers/MarkerStaticAnalyzer.js +19 -19
  221. package/dist/development/src/markers/MarkerStaticAnalyzer.js.map +1 -1
  222. package/dist/development/src/markers/MarkerTreeGenerator.cjs.map +1 -1
  223. package/dist/development/src/markers/MarkerTreeGenerator.js.map +1 -1
  224. package/dist/production/index.cjs +99 -99
  225. package/dist/production/index.js +48 -48
  226. package/dist/production/src/accessorPropagation/AccessorProvider.cjs.map +1 -1
  227. package/dist/production/src/accessorPropagation/AccessorProvider.js.map +1 -1
  228. package/dist/production/src/accessorPropagation/BindingOperationsContext.cjs.map +1 -1
  229. package/dist/production/src/accessorPropagation/BindingOperationsContext.js.map +1 -1
  230. package/dist/production/src/accessorPropagation/BindingOperationsProvider.cjs.map +1 -1
  231. package/dist/production/src/accessorPropagation/BindingOperationsProvider.js.map +1 -1
  232. package/dist/production/src/accessorPropagation/EntityKeyContext.cjs.map +1 -1
  233. package/dist/production/src/accessorPropagation/EntityKeyContext.js.map +1 -1
  234. package/dist/production/src/accessorPropagation/EntityKeyProvider.cjs.map +1 -1
  235. package/dist/production/src/accessorPropagation/EntityKeyProvider.js.map +1 -1
  236. package/dist/production/src/accessorPropagation/EnvironmentContext.cjs +0 -1
  237. package/dist/production/src/accessorPropagation/EnvironmentContext.cjs.map +1 -1
  238. package/dist/production/src/accessorPropagation/EnvironmentContext.js +1 -2
  239. package/dist/production/src/accessorPropagation/EnvironmentContext.js.map +1 -1
  240. package/dist/production/src/accessorPropagation/TreeRootIdContext.cjs.map +1 -1
  241. package/dist/production/src/accessorPropagation/TreeRootIdContext.js.map +1 -1
  242. package/dist/production/src/accessorPropagation/TreeRootIdProvider.cjs.map +1 -1
  243. package/dist/production/src/accessorPropagation/TreeRootIdProvider.js.map +1 -1
  244. package/dist/production/src/accessorPropagation/useAccessorUpdateSubscription.cjs.map +1 -1
  245. package/dist/production/src/accessorPropagation/useAccessorUpdateSubscription.js.map +1 -1
  246. package/dist/production/src/accessorPropagation/useBindingOperations.cjs.map +1 -1
  247. package/dist/production/src/accessorPropagation/useBindingOperations.js.map +1 -1
  248. package/dist/production/src/accessorPropagation/useDesugaredRelativeEntityList.cjs +1 -2
  249. package/dist/production/src/accessorPropagation/useDesugaredRelativeEntityList.cjs.map +1 -1
  250. package/dist/production/src/accessorPropagation/useDesugaredRelativeEntityList.js +1 -2
  251. package/dist/production/src/accessorPropagation/useDesugaredRelativeEntityList.js.map +1 -1
  252. package/dist/production/src/accessorPropagation/useDesugaredRelativeSingleEntity.cjs +1 -2
  253. package/dist/production/src/accessorPropagation/useDesugaredRelativeSingleEntity.cjs.map +1 -1
  254. package/dist/production/src/accessorPropagation/useDesugaredRelativeSingleEntity.js +1 -2
  255. package/dist/production/src/accessorPropagation/useDesugaredRelativeSingleEntity.js.map +1 -1
  256. package/dist/production/src/accessorPropagation/useDesugaredRelativeSingleField.cjs +1 -2
  257. package/dist/production/src/accessorPropagation/useDesugaredRelativeSingleField.cjs.map +1 -1
  258. package/dist/production/src/accessorPropagation/useDesugaredRelativeSingleField.js +1 -2
  259. package/dist/production/src/accessorPropagation/useDesugaredRelativeSingleField.js.map +1 -1
  260. package/dist/production/src/accessorPropagation/useEntity.cjs.map +1 -1
  261. package/dist/production/src/accessorPropagation/useEntity.js.map +1 -1
  262. package/dist/production/src/accessorPropagation/useEntityKey.cjs.map +1 -1
  263. package/dist/production/src/accessorPropagation/useEntityKey.js.map +1 -1
  264. package/dist/production/src/accessorPropagation/useEntityList.cjs.map +1 -1
  265. package/dist/production/src/accessorPropagation/useEntityList.js.map +1 -1
  266. package/dist/production/src/accessorPropagation/useEntityListSubTree.cjs.map +1 -1
  267. package/dist/production/src/accessorPropagation/useEntityListSubTree.js.map +1 -1
  268. package/dist/production/src/accessorPropagation/useEntityListSubTreeLoader.cjs +1 -1
  269. package/dist/production/src/accessorPropagation/useEntityListSubTreeLoader.cjs.map +1 -1
  270. package/dist/production/src/accessorPropagation/useEntityListSubTreeLoader.js +1 -1
  271. package/dist/production/src/accessorPropagation/useEntityListSubTreeLoader.js.map +1 -1
  272. package/dist/production/src/accessorPropagation/useEntityListSubTreeParameters.cjs.map +1 -1
  273. package/dist/production/src/accessorPropagation/useEntityListSubTreeParameters.js.map +1 -1
  274. package/dist/production/src/accessorPropagation/useEntitySubTree.cjs.map +1 -1
  275. package/dist/production/src/accessorPropagation/useEntitySubTree.js.map +1 -1
  276. package/dist/production/src/accessorPropagation/useEntitySubTreeLoader.cjs +1 -1
  277. package/dist/production/src/accessorPropagation/useEntitySubTreeLoader.cjs.map +1 -1
  278. package/dist/production/src/accessorPropagation/useEntitySubTreeLoader.js +1 -1
  279. package/dist/production/src/accessorPropagation/useEntitySubTreeLoader.js.map +1 -1
  280. package/dist/production/src/accessorPropagation/useEntitySubTreeParameters.cjs.map +1 -1
  281. package/dist/production/src/accessorPropagation/useEntitySubTreeParameters.js.map +1 -1
  282. package/dist/production/src/accessorPropagation/useExtendTree.cjs +1 -4
  283. package/dist/production/src/accessorPropagation/useExtendTree.cjs.map +1 -1
  284. package/dist/production/src/accessorPropagation/useExtendTree.js +1 -4
  285. package/dist/production/src/accessorPropagation/useExtendTree.js.map +1 -1
  286. package/dist/production/src/accessorPropagation/useField.cjs.map +1 -1
  287. package/dist/production/src/accessorPropagation/useField.js.map +1 -1
  288. package/dist/production/src/accessorPropagation/useGetEntityByKey.cjs.map +1 -1
  289. package/dist/production/src/accessorPropagation/useGetEntityByKey.js.map +1 -1
  290. package/dist/production/src/accessorPropagation/useGetEntityListSubTree.cjs.map +1 -1
  291. package/dist/production/src/accessorPropagation/useGetEntityListSubTree.js.map +1 -1
  292. package/dist/production/src/accessorPropagation/useGetEntitySubTree.cjs.map +1 -1
  293. package/dist/production/src/accessorPropagation/useGetEntitySubTree.js.map +1 -1
  294. package/dist/production/src/accessorPropagation/useHasEntity.cjs.map +1 -1
  295. package/dist/production/src/accessorPropagation/useHasEntity.js.map +1 -1
  296. package/dist/production/src/accessorPropagation/usePersist.cjs.map +1 -1
  297. package/dist/production/src/accessorPropagation/usePersist.js.map +1 -1
  298. package/dist/production/src/accessorPropagation/useTreeRootId.cjs.map +1 -1
  299. package/dist/production/src/accessorPropagation/useTreeRootId.js.map +1 -1
  300. package/dist/production/src/accessorSorting/SetOrderFieldOnCreate.cjs +1 -1
  301. package/dist/production/src/accessorSorting/SetOrderFieldOnCreate.cjs.map +1 -1
  302. package/dist/production/src/accessorSorting/SetOrderFieldOnCreate.js +1 -1
  303. package/dist/production/src/accessorSorting/SetOrderFieldOnCreate.js.map +1 -1
  304. package/dist/production/src/accessorSorting/addEntityAtIndex.cjs.map +1 -1
  305. package/dist/production/src/accessorSorting/addEntityAtIndex.js.map +1 -1
  306. package/dist/production/src/accessorSorting/repairEntitiesOrder.cjs.map +1 -1
  307. package/dist/production/src/accessorSorting/repairEntitiesOrder.js.map +1 -1
  308. package/dist/production/src/accessorSorting/sortEntities.cjs.map +1 -1
  309. package/dist/production/src/accessorSorting/sortEntities.js.map +1 -1
  310. package/dist/production/src/accessorTree/AccessorTree.cjs.map +1 -1
  311. package/dist/production/src/accessorTree/AccessorTree.js.map +1 -1
  312. package/dist/production/src/accessorTree/AccessorTreeStateContext.cjs.map +1 -1
  313. package/dist/production/src/accessorTree/AccessorTreeStateContext.js.map +1 -1
  314. package/dist/production/src/accessorTree/DirtinessContext.cjs.map +1 -1
  315. package/dist/production/src/accessorTree/DirtinessContext.js.map +1 -1
  316. package/dist/production/src/accessorTree/MutationStateContext.cjs.map +1 -1
  317. package/dist/production/src/accessorTree/MutationStateContext.js.map +1 -1
  318. package/dist/production/src/accessorTree/useAccessorTreeState.cjs.map +1 -1
  319. package/dist/production/src/accessorTree/useAccessorTreeState.js.map +1 -1
  320. package/dist/production/src/accessorTree/useDataBinding.cjs +17 -13
  321. package/dist/production/src/accessorTree/useDataBinding.cjs.map +1 -1
  322. package/dist/production/src/accessorTree/useDataBinding.js +19 -15
  323. package/dist/production/src/accessorTree/useDataBinding.js.map +1 -1
  324. package/dist/production/src/accessorTree/useDirtinessState.cjs.map +1 -1
  325. package/dist/production/src/accessorTree/useDirtinessState.js.map +1 -1
  326. package/dist/production/src/accessorTree/useEnvironmentWithSchema.cjs.map +1 -1
  327. package/dist/production/src/accessorTree/useEnvironmentWithSchema.js.map +1 -1
  328. package/dist/production/src/accessorTree/useMutationState.cjs.map +1 -1
  329. package/dist/production/src/accessorTree/useMutationState.js.map +1 -1
  330. package/dist/production/src/coreComponents/Component.cjs.map +1 -1
  331. package/dist/production/src/coreComponents/Component.js.map +1 -1
  332. package/dist/production/src/coreComponents/DataBindingProvider.cjs.map +1 -1
  333. package/dist/production/src/coreComponents/DataBindingProvider.js.map +1 -1
  334. package/dist/production/src/coreComponents/Entity.cjs.map +1 -1
  335. package/dist/production/src/coreComponents/Entity.js.map +1 -1
  336. package/dist/production/src/coreComponents/EntityList.cjs.map +1 -1
  337. package/dist/production/src/coreComponents/EntityList.js.map +1 -1
  338. package/dist/production/src/coreComponents/EntityListSubTree.cjs.map +1 -1
  339. package/dist/production/src/coreComponents/EntityListSubTree.js +1 -1
  340. package/dist/production/src/coreComponents/EntityListSubTree.js.map +1 -1
  341. package/dist/production/src/coreComponents/EntitySubTree.cjs.map +1 -1
  342. package/dist/production/src/coreComponents/EntitySubTree.js +1 -1
  343. package/dist/production/src/coreComponents/EntitySubTree.js.map +1 -1
  344. package/dist/production/src/coreComponents/Field.cjs.map +1 -1
  345. package/dist/production/src/coreComponents/Field.js +1 -1
  346. package/dist/production/src/coreComponents/Field.js.map +1 -1
  347. package/dist/production/src/coreComponents/HasMany.cjs.map +1 -1
  348. package/dist/production/src/coreComponents/HasMany.js +1 -1
  349. package/dist/production/src/coreComponents/HasMany.js.map +1 -1
  350. package/dist/production/src/coreComponents/HasOne.cjs.map +1 -1
  351. package/dist/production/src/coreComponents/HasOne.js +1 -1
  352. package/dist/production/src/coreComponents/HasOne.js.map +1 -1
  353. package/dist/production/src/coreComponents/ParentEntity.cjs.map +1 -1
  354. package/dist/production/src/coreComponents/ParentEntity.js.map +1 -1
  355. package/dist/production/src/entityEvents/useDataBindingEvent.cjs.map +1 -1
  356. package/dist/production/src/entityEvents/useDataBindingEvent.js.map +1 -1
  357. package/dist/production/src/entityEvents/useDerivedField.cjs.map +1 -1
  358. package/dist/production/src/entityEvents/useDerivedField.js.map +1 -1
  359. package/dist/production/src/entityEvents/useEntityBeforePersist.cjs.map +1 -1
  360. package/dist/production/src/entityEvents/useEntityBeforePersist.js.map +1 -1
  361. package/dist/production/src/entityEvents/useEntityBeforeUpdate.cjs.map +1 -1
  362. package/dist/production/src/entityEvents/useEntityBeforeUpdate.js.map +1 -1
  363. package/dist/production/src/entityEvents/useEntityEvent.cjs.map +1 -1
  364. package/dist/production/src/entityEvents/useEntityEvent.js.map +1 -1
  365. package/dist/production/src/entityEvents/useEntityPersistError.cjs.map +1 -1
  366. package/dist/production/src/entityEvents/useEntityPersistError.js.map +1 -1
  367. package/dist/production/src/entityEvents/useEntityPersistSuccess.cjs.map +1 -1
  368. package/dist/production/src/entityEvents/useEntityPersistSuccess.js.map +1 -1
  369. package/dist/production/src/entityEvents/useOnConnectionUpdate.cjs.map +1 -1
  370. package/dist/production/src/entityEvents/useOnConnectionUpdate.js.map +1 -1
  371. package/dist/production/src/helperComponents/DeferredSubTrees.cjs.map +1 -1
  372. package/dist/production/src/helperComponents/DeferredSubTrees.js.map +1 -1
  373. package/dist/production/src/helperComponents/DeleteEntityTrigger.cjs.map +1 -1
  374. package/dist/production/src/helperComponents/DeleteEntityTrigger.js.map +1 -1
  375. package/dist/production/src/helperComponents/DimensionRenderer.cjs.map +1 -1
  376. package/dist/production/src/helperComponents/DimensionRenderer.js.map +1 -1
  377. package/dist/production/src/helperComponents/EntityView.cjs.map +1 -1
  378. package/dist/production/src/helperComponents/EntityView.js.map +1 -1
  379. package/dist/production/src/helperComponents/FieldView.cjs.map +1 -1
  380. package/dist/production/src/helperComponents/FieldView.js.map +1 -1
  381. package/dist/production/src/helperComponents/If.cjs +7 -10
  382. package/dist/production/src/helperComponents/If.cjs.map +1 -1
  383. package/dist/production/src/helperComponents/If.js +8 -11
  384. package/dist/production/src/helperComponents/If.js.map +1 -1
  385. package/dist/production/src/helperComponents/LabelMiddleware.cjs.map +1 -1
  386. package/dist/production/src/helperComponents/LabelMiddleware.js.map +1 -1
  387. package/dist/production/src/helperComponents/RecursionTerminator.cjs.map +1 -1
  388. package/dist/production/src/helperComponents/RecursionTerminator.js.map +1 -1
  389. package/dist/production/src/helperComponents/RecursionTerminatorPortal.cjs.map +1 -1
  390. package/dist/production/src/helperComponents/RecursionTerminatorPortal.js.map +1 -1
  391. package/dist/production/src/helperComponents/StaticRender.cjs.map +1 -1
  392. package/dist/production/src/helperComponents/StaticRender.js.map +1 -1
  393. package/dist/production/src/helperComponents/SugaredField.cjs.map +1 -1
  394. package/dist/production/src/helperComponents/SugaredField.js.map +1 -1
  395. package/dist/production/src/helperComponents/Variable.cjs.map +1 -1
  396. package/dist/production/src/helperComponents/Variable.js.map +1 -1
  397. package/dist/production/src/helperComponents/helpers/FilterEvaluator.cjs.map +1 -1
  398. package/dist/production/src/helperComponents/helpers/FilterEvaluator.js.map +1 -1
  399. package/dist/production/src/helperComponents/helpers/FilterFieldsCollector.cjs +4 -2
  400. package/dist/production/src/helperComponents/helpers/FilterFieldsCollector.cjs.map +1 -1
  401. package/dist/production/src/helperComponents/helpers/FilterFieldsCollector.js +4 -2
  402. package/dist/production/src/helperComponents/helpers/FilterFieldsCollector.js.map +1 -1
  403. package/dist/production/src/helperComponents/helpers/evaluateCondition.cjs.map +1 -1
  404. package/dist/production/src/helperComponents/helpers/evaluateCondition.js.map +1 -1
  405. package/dist/production/src/helperComponents/persist/PersistOnFieldChange.cjs.map +1 -1
  406. package/dist/production/src/helperComponents/persist/PersistOnFieldChange.js.map +1 -1
  407. package/dist/production/src/helperComponents/persist/PersistOnHasOneChange.cjs.map +1 -1
  408. package/dist/production/src/helperComponents/persist/PersistOnHasOneChange.js.map +1 -1
  409. package/dist/production/src/helperComponents/persist/PersistOnKey.cjs.map +1 -1
  410. package/dist/production/src/helperComponents/persist/PersistOnKey.js.map +1 -1
  411. package/dist/production/src/helperComponents/persist/PersistTrigger.cjs.map +1 -1
  412. package/dist/production/src/helperComponents/persist/PersistTrigger.js.map +1 -1
  413. package/dist/production/src/helperComponents/persist/useDecoratedPersist.cjs.map +1 -1
  414. package/dist/production/src/helperComponents/persist/useDecoratedPersist.js.map +1 -1
  415. package/dist/production/src/markers/IncrementalMarkerBuilder.cjs +47 -44
  416. package/dist/production/src/markers/IncrementalMarkerBuilder.cjs.map +1 -1
  417. package/dist/production/src/markers/IncrementalMarkerBuilder.js +47 -44
  418. package/dist/production/src/markers/IncrementalMarkerBuilder.js.map +1 -1
  419. package/dist/production/src/markers/MarkerStaticAnalyzer.cjs +19 -19
  420. package/dist/production/src/markers/MarkerStaticAnalyzer.cjs.map +1 -1
  421. package/dist/production/src/markers/MarkerStaticAnalyzer.js +19 -19
  422. package/dist/production/src/markers/MarkerStaticAnalyzer.js.map +1 -1
  423. package/dist/production/src/markers/MarkerTreeGenerator.cjs.map +1 -1
  424. package/dist/production/src/markers/MarkerTreeGenerator.js.map +1 -1
  425. package/dist/types/accessorPropagation/BindingOperationsContext.d.ts +1 -1
  426. package/dist/types/accessorPropagation/BindingOperationsContext.d.ts.map +1 -1
  427. package/dist/types/accessorPropagation/EntityKeyContext.d.ts +1 -1
  428. package/dist/types/accessorPropagation/EntityKeyContext.d.ts.map +1 -1
  429. package/dist/types/accessorPropagation/EnvironmentContext.d.ts +1 -1
  430. package/dist/types/accessorPropagation/EnvironmentContext.d.ts.map +1 -1
  431. package/dist/types/accessorPropagation/TreeRootIdContext.d.ts +1 -1
  432. package/dist/types/accessorPropagation/TreeRootIdContext.d.ts.map +1 -1
  433. package/dist/types/accessorPropagation/useAccessorUpdateSubscription.d.ts.map +1 -1
  434. package/dist/types/accessorPropagation/useDesugaredRelativeEntityList.d.ts.map +1 -1
  435. package/dist/types/accessorPropagation/useDesugaredRelativeSingleEntity.d.ts.map +1 -1
  436. package/dist/types/accessorPropagation/useDesugaredRelativeSingleField.d.ts.map +1 -1
  437. package/dist/types/accessorPropagation/useEntity.d.ts.map +1 -1
  438. package/dist/types/accessorPropagation/useEntityList.d.ts.map +1 -1
  439. package/dist/types/accessorPropagation/useEntityListSubTreeLoader.d.ts.map +1 -1
  440. package/dist/types/accessorPropagation/useEntitySubTreeLoader.d.ts.map +1 -1
  441. package/dist/types/accessorPropagation/useExtendTree.d.ts.map +1 -1
  442. package/dist/types/accessorPropagation/useField.d.ts.map +1 -1
  443. package/dist/types/accessorPropagation/useGetEntityListSubTree.d.ts +1 -1
  444. package/dist/types/accessorPropagation/useGetEntityListSubTree.d.ts.map +1 -1
  445. package/dist/types/accessorPropagation/useGetEntitySubTree.d.ts +1 -1
  446. package/dist/types/accessorPropagation/useGetEntitySubTree.d.ts.map +1 -1
  447. package/dist/types/accessorSorting/SetOrderFieldOnCreate.d.ts +1 -1
  448. package/dist/types/accessorSorting/SetOrderFieldOnCreate.d.ts.map +1 -1
  449. package/dist/types/accessorTree/AccessorTreeStateAction.d.ts.map +1 -1
  450. package/dist/types/accessorTree/AccessorTreeStateContext.d.ts +1 -1
  451. package/dist/types/accessorTree/AccessorTreeStateContext.d.ts.map +1 -1
  452. package/dist/types/accessorTree/DirtinessContext.d.ts +1 -1
  453. package/dist/types/accessorTree/DirtinessContext.d.ts.map +1 -1
  454. package/dist/types/accessorTree/MutationStateContext.d.ts +1 -1
  455. package/dist/types/accessorTree/MutationStateContext.d.ts.map +1 -1
  456. package/dist/types/accessorTree/useDataBinding.d.ts.map +1 -1
  457. package/dist/types/accessorTree/useEnvironmentWithSchema.d.ts.map +1 -1
  458. package/dist/types/coreComponents/Component.d.ts.map +1 -1
  459. package/dist/types/coreComponents/DataBindingProvider.d.ts.map +1 -1
  460. package/dist/types/coreComponents/Entity.d.ts +1 -1
  461. package/dist/types/coreComponents/Entity.d.ts.map +1 -1
  462. package/dist/types/coreComponents/EntityList.d.ts.map +1 -1
  463. package/dist/types/coreComponents/EntityListSubTree.d.ts.map +1 -1
  464. package/dist/types/coreComponents/Field.d.ts.map +1 -1
  465. package/dist/types/coreComponents/HasMany.d.ts.map +1 -1
  466. package/dist/types/coreComponents/HasOne.d.ts.map +1 -1
  467. package/dist/types/coreComponents/ParentEntity.d.ts +1 -1
  468. package/dist/types/coreComponents/ParentEntity.d.ts.map +1 -1
  469. package/dist/types/helperComponents/DeferredSubTrees.d.ts +1 -1
  470. package/dist/types/helperComponents/DeferredSubTrees.d.ts.map +1 -1
  471. package/dist/types/helperComponents/DeleteEntityTrigger.d.ts.map +1 -1
  472. package/dist/types/helperComponents/DimensionRenderer.d.ts.map +1 -1
  473. package/dist/types/helperComponents/EntityView.d.ts.map +1 -1
  474. package/dist/types/helperComponents/FieldView.d.ts +13 -2
  475. package/dist/types/helperComponents/FieldView.d.ts.map +1 -1
  476. package/dist/types/helperComponents/If.d.ts +1 -1
  477. package/dist/types/helperComponents/If.d.ts.map +1 -1
  478. package/dist/types/helperComponents/LabelMiddleware.d.ts +1 -1
  479. package/dist/types/helperComponents/LabelMiddleware.d.ts.map +1 -1
  480. package/dist/types/helperComponents/RecursionTerminator.d.ts +1 -1
  481. package/dist/types/helperComponents/RecursionTerminator.d.ts.map +1 -1
  482. package/dist/types/helperComponents/RecursionTerminatorPortal.d.ts +1 -1
  483. package/dist/types/helperComponents/RecursionTerminatorPortal.d.ts.map +1 -1
  484. package/dist/types/helperComponents/StaticRender.d.ts +1 -1
  485. package/dist/types/helperComponents/StaticRender.d.ts.map +1 -1
  486. package/dist/types/helperComponents/Variable.d.ts +1 -1
  487. package/dist/types/helperComponents/Variable.d.ts.map +1 -1
  488. package/dist/types/helperComponents/helpers/FilterEvaluator.d.ts.map +1 -1
  489. package/dist/types/helperComponents/helpers/FilterFieldsCollector.d.ts.map +1 -1
  490. package/dist/types/helperComponents/persist/PersistOnFieldChange.d.ts +1 -1
  491. package/dist/types/helperComponents/persist/PersistOnFieldChange.d.ts.map +1 -1
  492. package/dist/types/helperComponents/persist/PersistOnHasOneChange.d.ts +1 -1
  493. package/dist/types/helperComponents/persist/PersistOnHasOneChange.d.ts.map +1 -1
  494. package/dist/types/helperComponents/persist/PersistTrigger.d.ts.map +1 -1
  495. package/dist/types/markers/IncrementalMarkerBuilder.d.ts.map +1 -1
  496. package/dist/types/markers/MarkerProvider.d.ts.map +1 -1
  497. package/dist/types/markers/MarkerStaticAnalyzer.d.ts.map +1 -1
  498. package/dist/types/markers/MarkerTreeGenerator.d.ts.map +1 -1
  499. package/dist/types/tsconfig.tsbuildinfo +1 -1
  500. package/package.json +18 -13
  501. package/src/accessorPropagation/BindingOperationsContext.ts +3 -3
  502. package/src/accessorPropagation/EnvironmentContext.tsx +1 -1
  503. package/src/accessorPropagation/useAccessorUpdateSubscription.ts +5 -3
  504. package/src/accessorPropagation/useDesugaredRelativeEntityList.ts +2 -3
  505. package/src/accessorPropagation/useDesugaredRelativeSingleEntity.ts +2 -3
  506. package/src/accessorPropagation/useDesugaredRelativeSingleField.ts +2 -3
  507. package/src/accessorPropagation/useEntity.ts +0 -7
  508. package/src/accessorPropagation/useEntityKey.ts +2 -2
  509. package/src/accessorPropagation/useEntityList.ts +0 -3
  510. package/src/accessorPropagation/useEntityListSubTreeLoader.ts +12 -8
  511. package/src/accessorPropagation/useEntityListSubTreeParameters.ts +0 -6
  512. package/src/accessorPropagation/useEntitySubTreeLoader.ts +12 -9
  513. package/src/accessorPropagation/useEntitySubTreeParameters.ts +0 -6
  514. package/src/accessorPropagation/useExtendTree.ts +1 -3
  515. package/src/accessorPropagation/useField.ts +0 -3
  516. package/src/accessorPropagation/useGetEntityListSubTree.ts +3 -8
  517. package/src/accessorPropagation/useGetEntitySubTree.ts +3 -8
  518. package/src/accessorSorting/SetOrderFieldOnCreate.tsx +2 -4
  519. package/src/accessorTree/AccessorTreeStateAction.ts +2 -2
  520. package/src/accessorTree/useDataBinding.ts +18 -21
  521. package/src/accessorTree/useEnvironmentWithSchema.ts +1 -2
  522. package/src/coreComponents/Component.tsx +4 -3
  523. package/src/coreComponents/DataBindingProvider.tsx +0 -1
  524. package/src/coreComponents/Entity.tsx +1 -1
  525. package/src/coreComponents/EntityList.tsx +9 -8
  526. package/src/coreComponents/EntityListSubTree.tsx +14 -12
  527. package/src/coreComponents/Field.tsx +3 -5
  528. package/src/coreComponents/HasMany.tsx +14 -12
  529. package/src/coreComponents/HasOne.tsx +1 -2
  530. package/src/coreComponents/ParentEntity.tsx +1 -2
  531. package/src/entityEvents/useDataBindingEvent.ts +1 -1
  532. package/src/entityEvents/useEntityEvent.ts +1 -1
  533. package/src/helperComponents/DeferredSubTrees.tsx +2 -2
  534. package/src/helperComponents/DeleteEntityTrigger.tsx +1 -3
  535. package/src/helperComponents/DimensionRenderer.tsx +12 -10
  536. package/src/helperComponents/EntityView.tsx +0 -1
  537. package/src/helperComponents/FieldView.tsx +33 -20
  538. package/src/helperComponents/If.tsx +16 -14
  539. package/src/helperComponents/RecursionTerminator.tsx +1 -7
  540. package/src/helperComponents/helpers/FilterEvaluator.ts +0 -3
  541. package/src/helperComponents/helpers/FilterFieldsCollector.ts +5 -6
  542. package/src/helperComponents/helpers/evaluateCondition.ts +1 -1
  543. package/src/helperComponents/persist/PersistOnFieldChange.tsx +0 -1
  544. package/src/helperComponents/persist/PersistOnHasOneChange.tsx +1 -2
  545. package/src/helperComponents/persist/PersistOnKey.tsx +2 -2
  546. package/src/helperComponents/persist/PersistTrigger.tsx +3 -1
  547. package/src/markers/IncrementalMarkerBuilder.ts +50 -45
  548. package/src/markers/MarkerProvider.ts +6 -6
  549. package/src/markers/MarkerStaticAnalyzer.ts +16 -14
  550. package/src/markers/MarkerTreeGenerator.ts +0 -2
  551. package/src/typings/react-fix.d.ts +2 -4
  552. package/tests/cases/unit/core/entityOperations.test.tsx +18 -17
  553. package/tests/cases/unit/core/eventManager.test.tsx +15 -7
  554. package/tests/cases/unit/helperComponents/evaluateCondition.spec.ts +0 -2
  555. package/tests/cases/unit/helperComponents/schema.ts +1 -2
  556. package/tests/cases/unit/model/markerTreeGenerator.spec.tsx +103 -81
  557. package/tests/lib/bindingFactory.ts +11 -1
  558. package/tests/lib/convertModelToAdminSchema.ts +109 -107
@@ -1 +1 @@
1
- {"version":3,"file":"useDecoratedPersist.js","sources":["../../../../../../packages/react-binding/src/helperComponents/persist/useDecoratedPersist.ts"],"sourcesContent":["import { useCallback } from 'react'\nimport { usePersist } from '../../accessorPropagation'\nimport { ErrorPersistResult, isErrorPersistResult, SuccessfulPersistResult } from '@contember/binding'\nimport { useReferentiallyStableCallback } from '@contember/react-utils'\n\nexport interface UseDecoratedPersistOptions {\n\tonPersistSuccess?: (result: SuccessfulPersistResult) => void\n\tonPersistError?: (result: ErrorPersistResult) => void\n}\n\nexport const useDecoratedPersist = ({ onPersistSuccess, onPersistError }: UseDecoratedPersistOptions = {}) => {\n\tconst triggerPersist = usePersist()\n\n\treturn useReferentiallyStableCallback(async () => {\n\t\ttry {\n\t\t\tconst result = await triggerPersist()\n\t\t\tonPersistSuccess?.(result)\n\t\t} catch (e) {\n\t\t\tif (isErrorPersistResult(e)) {\n\t\t\t\tonPersistError?.(e)\n\t\t\t} else {\n\t\t\t\tthrow e\n\t\t\t}\n\t\t}\n\t})\n}\n"],"names":[],"mappings":";;;AAUO,MAAM,sBAAsB,CAAC,EAAE,kBAAkB,eAAe,IAAgC,CAAA,MAAO;AAC7G,QAAM,iBAAiB,WAAW;AAElC,SAAO,+BAA+B,YAAY;AAC7C,QAAA;AACG,YAAA,SAAS,MAAM,eAAe;AACpC,yBAAmB,MAAM;AAAA,aACjB,GAAG;AACP,UAAA,qBAAqB,CAAC,GAAG;AAC5B,yBAAiB,CAAC;AAAA,MAAA,OACZ;AACA,cAAA;AAAA,MAAA;AAAA,IACP;AAAA,EACD,CACA;AACF;"}
1
+ {"version":3,"file":"useDecoratedPersist.js","sources":["../../../../../../packages/react-binding/src/helperComponents/persist/useDecoratedPersist.ts"],"sourcesContent":["import { useCallback } from 'react'\nimport { usePersist } from '../../accessorPropagation'\nimport { ErrorPersistResult, isErrorPersistResult, SuccessfulPersistResult } from '@contember/binding'\nimport { useReferentiallyStableCallback } from '@contember/react-utils'\n\nexport interface UseDecoratedPersistOptions {\n\tonPersistSuccess?: (result: SuccessfulPersistResult) => void\n\tonPersistError?: (result: ErrorPersistResult) => void\n}\n\nexport const useDecoratedPersist = ({ onPersistSuccess, onPersistError }: UseDecoratedPersistOptions = {}) => {\n\tconst triggerPersist = usePersist()\n\n\treturn useReferentiallyStableCallback(async () => {\n\t\ttry {\n\t\t\tconst result = await triggerPersist()\n\t\t\tonPersistSuccess?.(result)\n\t\t} catch (e) {\n\t\t\tif (isErrorPersistResult(e)) {\n\t\t\t\tonPersistError?.(e)\n\t\t\t} else {\n\t\t\t\tthrow e\n\t\t\t}\n\t\t}\n\t})\n}\n"],"names":[],"mappings":";;;AAUO,MAAM,sBAAsB,CAAC,EAAE,kBAAkB,eAAA,IAA+C,CAAA,MAAO;AAC7G,QAAM,iBAAiB,WAAA;AAEvB,SAAO,+BAA+B,YAAY;AACjD,QAAI;AACH,YAAM,SAAS,MAAM,eAAA;AACrB,yBAAmB,MAAM;AAAA,IAC1B,SAAS,GAAG;AACX,UAAI,qBAAqB,CAAC,GAAG;AAC5B,yBAAiB,CAAC;AAAA,MACnB,OAAO;AACN,cAAM;AAAA,MACP;AAAA,IACD;AAAA,EACD,CAAC;AACF;"}
@@ -3,53 +3,56 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const binding = require("@contember/binding");
4
4
  class IncrementalMarkerBuilder {
5
5
  static build(markers) {
6
- return markers.reduce((acc, addition) => {
7
- if (addition instanceof binding.EntityFieldMarkersContainer) {
8
- if (acc instanceof binding.EntityFieldMarkersContainer) {
9
- return binding.MarkerMerger.mergeEntityFieldsContainers(acc, addition);
6
+ return markers.reduce(
7
+ (acc, addition) => {
8
+ if (addition instanceof binding.EntityFieldMarkersContainer) {
9
+ if (acc instanceof binding.EntityFieldMarkersContainer) {
10
+ return binding.MarkerMerger.mergeEntityFieldsContainers(acc, addition);
11
+ } else {
12
+ return new binding.EntityFieldsWithHoistablesMarker(
13
+ binding.MarkerMerger.mergeEntityFieldsContainers(acc.fields, addition),
14
+ acc.subTrees,
15
+ acc.parentReference
16
+ );
17
+ }
18
+ } else if (addition instanceof binding.EntityFieldsWithHoistablesMarker) {
19
+ if (acc instanceof binding.EntityFieldMarkersContainer) {
20
+ return new binding.EntityFieldsWithHoistablesMarker(
21
+ binding.MarkerMerger.mergeEntityFieldsContainers(acc, addition.fields),
22
+ addition.subTrees,
23
+ addition.parentReference
24
+ );
25
+ } else {
26
+ return new binding.EntityFieldsWithHoistablesMarker(
27
+ binding.MarkerMerger.mergeEntityFieldsContainers(acc.fields, addition.fields),
28
+ binding.MarkerMerger.mergeSubTreeMarkers(acc.subTrees, addition.subTrees),
29
+ binding.TreeParameterMerger.mergeParentEntityParameters(acc.parentReference, addition.parentReference)
30
+ );
31
+ }
10
32
  } else {
11
- return new binding.EntityFieldsWithHoistablesMarker(
12
- binding.MarkerMerger.mergeEntityFieldsContainers(acc.fields, addition),
13
- acc.subTrees,
14
- acc.parentReference
15
- );
16
- }
17
- } else if (addition instanceof binding.EntityFieldsWithHoistablesMarker) {
18
- if (acc instanceof binding.EntityFieldMarkersContainer) {
19
- return new binding.EntityFieldsWithHoistablesMarker(
20
- binding.MarkerMerger.mergeEntityFieldsContainers(acc, addition.fields),
21
- addition.subTrees,
22
- addition.parentReference
23
- );
24
- } else {
25
- return new binding.EntityFieldsWithHoistablesMarker(
26
- binding.MarkerMerger.mergeEntityFieldsContainers(acc.fields, addition.fields),
27
- binding.MarkerMerger.mergeSubTreeMarkers(acc.subTrees, addition.subTrees),
28
- binding.TreeParameterMerger.mergeParentEntityParameters(acc.parentReference, addition.parentReference)
29
- );
30
- }
31
- } else {
32
- if (acc instanceof binding.EntityFieldMarkersContainer) {
33
- return binding.MarkerMerger.mergeEntityFieldsContainers(
34
- acc,
35
- binding.MarkerFactory.createEntityFieldMarkersContainer(addition)
36
- );
37
- } else {
38
- return new binding.EntityFieldsWithHoistablesMarker(
39
- binding.MarkerMerger.mergeEntityFieldsContainers(
40
- acc.fields,
33
+ if (acc instanceof binding.EntityFieldMarkersContainer) {
34
+ return binding.MarkerMerger.mergeEntityFieldsContainers(
35
+ acc,
41
36
  binding.MarkerFactory.createEntityFieldMarkersContainer(addition)
42
- ),
43
- acc.subTrees,
44
- acc.parentReference
45
- );
37
+ );
38
+ } else {
39
+ return new binding.EntityFieldsWithHoistablesMarker(
40
+ binding.MarkerMerger.mergeEntityFieldsContainers(
41
+ acc.fields,
42
+ binding.MarkerFactory.createEntityFieldMarkersContainer(addition)
43
+ ),
44
+ acc.subTrees,
45
+ acc.parentReference
46
+ );
47
+ }
46
48
  }
47
- }
48
- }, new binding.EntityFieldMarkersContainer(
49
- false,
50
- /* @__PURE__ */ new Map(),
51
- /* @__PURE__ */ new Map()
52
- ));
49
+ },
50
+ new binding.EntityFieldMarkersContainer(
51
+ false,
52
+ /* @__PURE__ */ new Map(),
53
+ /* @__PURE__ */ new Map()
54
+ )
55
+ );
53
56
  }
54
57
  }
55
58
  exports.IncrementalMarkerBuilder = IncrementalMarkerBuilder;
@@ -1 +1 @@
1
- {"version":3,"file":"IncrementalMarkerBuilder.cjs","sources":["../../../../../packages/react-binding/src/markers/IncrementalMarkerBuilder.ts"],"sourcesContent":["import {\n\tEntityFieldMarker,\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tMarkerFactory,\n\tMarkerMerger,\n\tTreeParameterMerger,\n} from '@contember/binding'\n\nexport class IncrementalMarkerBuilder {\n\tpublic static build(markers: (EntityFieldMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker)[]): EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer {\n\t\treturn markers.reduce<EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer>((acc, addition) => {\n\t\t\tif (addition instanceof EntityFieldMarkersContainer) {\n\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\treturn MarkerMerger.mergeEntityFieldsContainers(acc, addition)\n\t\t\t\t} else {\n\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc.fields, addition),\n\t\t\t\t\t\tacc.subTrees,\n\t\t\t\t\t\tacc.parentReference,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t} else if (addition instanceof EntityFieldsWithHoistablesMarker) {\n\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc, addition.fields),\n\t\t\t\t\t\taddition.subTrees,\n\t\t\t\t\t\taddition.parentReference,\n\t\t\t\t\t)\n\t\t\t\t} else {\n\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc.fields, addition.fields),\n\t\t\t\t\t\tMarkerMerger.mergeSubTreeMarkers(acc.subTrees, addition.subTrees),\n\t\t\t\t\t\tTreeParameterMerger.mergeParentEntityParameters(acc.parentReference, addition.parentReference),\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\treturn MarkerMerger.mergeEntityFieldsContainers(\n\t\t\t\t\t\tacc,\n\t\t\t\t\t\tMarkerFactory.createEntityFieldMarkersContainer(addition),\n\t\t\t\t\t)\n\t\t\t\t} else {\n\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(\n\t\t\t\t\t\t\tacc.fields,\n\t\t\t\t\t\t\tMarkerFactory.createEntityFieldMarkersContainer(addition),\n\t\t\t\t\t\t),\n\t\t\t\t\t\tacc.subTrees,\n\t\t\t\t\t\tacc.parentReference,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t}, new EntityFieldMarkersContainer(\n\t\t\tfalse,\n\t\t\tnew Map(),\n\t\t\tnew Map(),\n\t\t))\n\t}\n}\n"],"names":["EntityFieldMarkersContainer","MarkerMerger","EntityFieldsWithHoistablesMarker","TreeParameterMerger","MarkerFactory"],"mappings":";;;AASO,MAAM,yBAAyB;AAAA,EACrC,OAAc,MAAM,SAAiK;AACpL,WAAO,QAAQ,OAAuE,CAAC,KAAK,aAAa;AACxG,UAAI,oBAAoBA,QAAAA,6BAA6B;AACpD,YAAI,eAAeA,QAAAA,6BAA6B;AACxC,iBAAAC,qBAAa,4BAA4B,KAAK,QAAQ;AAAA,QAAA,OACvD;AACN,iBAAO,IAAIC,QAAA;AAAA,YACVD,QAAAA,aAAa,4BAA4B,IAAI,QAAQ,QAAQ;AAAA,YAC7D,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,QAAA;AAAA,MACD,WACU,oBAAoBC,0CAAkC;AAChE,YAAI,eAAeF,QAAAA,6BAA6B;AAC/C,iBAAO,IAAIE,QAAA;AAAA,YACVD,QAAAA,aAAa,4BAA4B,KAAK,SAAS,MAAM;AAAA,YAC7D,SAAS;AAAA,YACT,SAAS;AAAA,UACV;AAAA,QAAA,OACM;AACN,iBAAO,IAAIC,QAAA;AAAA,YACVD,QAAAA,aAAa,4BAA4B,IAAI,QAAQ,SAAS,MAAM;AAAA,YACpEA,QAAAA,aAAa,oBAAoB,IAAI,UAAU,SAAS,QAAQ;AAAA,YAChEE,QAAAA,oBAAoB,4BAA4B,IAAI,iBAAiB,SAAS,eAAe;AAAA,UAC9F;AAAA,QAAA;AAAA,MACD,OACM;AACN,YAAI,eAAeH,QAAAA,6BAA6B;AAC/C,iBAAOC,QAAa,aAAA;AAAA,YACnB;AAAA,YACAG,QAAA,cAAc,kCAAkC,QAAQ;AAAA,UACzD;AAAA,QAAA,OACM;AACN,iBAAO,IAAIF,QAAA;AAAA,YACVD,QAAAA,aAAa;AAAA,cACZ,IAAI;AAAA,cACJG,QAAA,cAAc,kCAAkC,QAAQ;AAAA,YACzD;AAAA,YACA,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,QAAA;AAAA,MACD;AAAA,OAEC,IAAIJ,QAAA;AAAA,MACN;AAAA,0BACI,IAAI;AAAA,0BACJ,IAAI;AAAA,IAAA,CACR;AAAA,EAAA;AAEH;;"}
1
+ {"version":3,"file":"IncrementalMarkerBuilder.cjs","sources":["../../../../../packages/react-binding/src/markers/IncrementalMarkerBuilder.ts"],"sourcesContent":["import {\n\tEntityFieldMarker,\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tMarkerFactory,\n\tMarkerMerger,\n\tTreeParameterMerger,\n} from '@contember/binding'\n\nexport class IncrementalMarkerBuilder {\n\tpublic static build(\n\t\tmarkers: (EntityFieldMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker)[],\n\t): EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer {\n\t\treturn markers.reduce<EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer>(\n\t\t\t(acc, addition) => {\n\t\t\t\tif (addition instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\t\treturn MarkerMerger.mergeEntityFieldsContainers(acc, addition)\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc.fields, addition),\n\t\t\t\t\t\t\tacc.subTrees,\n\t\t\t\t\t\t\tacc.parentReference,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t} else if (addition instanceof EntityFieldsWithHoistablesMarker) {\n\t\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc, addition.fields),\n\t\t\t\t\t\t\taddition.subTrees,\n\t\t\t\t\t\t\taddition.parentReference,\n\t\t\t\t\t\t)\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc.fields, addition.fields),\n\t\t\t\t\t\t\tMarkerMerger.mergeSubTreeMarkers(acc.subTrees, addition.subTrees),\n\t\t\t\t\t\t\tTreeParameterMerger.mergeParentEntityParameters(acc.parentReference, addition.parentReference),\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\t\treturn MarkerMerger.mergeEntityFieldsContainers(\n\t\t\t\t\t\t\tacc,\n\t\t\t\t\t\t\tMarkerFactory.createEntityFieldMarkersContainer(addition),\n\t\t\t\t\t\t)\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(\n\t\t\t\t\t\t\t\tacc.fields,\n\t\t\t\t\t\t\t\tMarkerFactory.createEntityFieldMarkersContainer(addition),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tacc.subTrees,\n\t\t\t\t\t\t\tacc.parentReference,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tnew EntityFieldMarkersContainer(\n\t\t\t\tfalse,\n\t\t\t\tnew Map(),\n\t\t\t\tnew Map(),\n\t\t\t),\n\t\t)\n\t}\n}\n"],"names":["EntityFieldMarkersContainer","MarkerMerger","EntityFieldsWithHoistablesMarker","TreeParameterMer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ACA,IAAIJ,QAAAA;AAAAA,QACH;AAAA,4BACI,IAAA;AAAA,4BACA,IAAA;AAAA,MAAI;AAAA,IACT;AAAA,EAEF;AACD;;"}
@@ -1,53 +1,56 @@
1
1
  import { EntityFieldMarkersContainer, MarkerMerger, EntityFieldsWithHoistablesMarker, TreeParameterMerger, MarkerFactory } from "@contember/binding";
2
2
  class IncrementalMarkerBuilder {
3
3
  static build(markers) {
4
- return markers.reduce((acc, addition) => {
5
- if (addition instanceof EntityFieldMarkersContainer) {
6
- if (acc instanceof EntityFieldMarkersContainer) {
7
- return MarkerMerger.mergeEntityFieldsContainers(acc, addition);
4
+ return markers.reduce(
5
+ (acc, addition) => {
6
+ if (addition instanceof EntityFieldMarkersContainer) {
7
+ if (acc instanceof EntityFieldMarkersContainer) {
8
+ return MarkerMerger.mergeEntityFieldsContainers(acc, addition);
9
+ } else {
10
+ return new EntityFieldsWithHoistablesMarker(
11
+ MarkerMerger.mergeEntityFieldsContainers(acc.fields, addition),
12
+ acc.subTrees,
13
+ acc.parentReference
14
+ );
15
+ }
16
+ } else if (addition instanceof EntityFieldsWithHoistablesMarker) {
17
+ if (acc instanceof EntityFieldMarkersContainer) {
18
+ return new EntityFieldsWithHoistablesMarker(
19
+ MarkerMerger.mergeEntityFieldsContainers(acc, addition.fields),
20
+ addition.subTrees,
21
+ addition.parentReference
22
+ );
23
+ } else {
24
+ return new EntityFieldsWithHoistablesMarker(
25
+ MarkerMerger.mergeEntityFieldsContainers(acc.fields, addition.fields),
26
+ MarkerMerger.mergeSubTreeMarkers(acc.subTrees, addition.subTrees),
27
+ TreeParameterMerger.mergeParentEntityParameters(acc.parentReference, addition.parentReference)
28
+ );
29
+ }
8
30
  } else {
9
- return new EntityFieldsWithHoistablesMarker(
10
- MarkerMerger.mergeEntityFieldsContainers(acc.fields, addition),
11
- acc.subTrees,
12
- acc.parentReference
13
- );
14
- }
15
- } else if (addition instanceof EntityFieldsWithHoistablesMarker) {
16
- if (acc instanceof EntityFieldMarkersContainer) {
17
- return new EntityFieldsWithHoistablesMarker(
18
- MarkerMerger.mergeEntityFieldsContainers(acc, addition.fields),
19
- addition.subTrees,
20
- addition.parentReference
21
- );
22
- } else {
23
- return new EntityFieldsWithHoistablesMarker(
24
- MarkerMerger.mergeEntityFieldsContainers(acc.fields, addition.fields),
25
- MarkerMerger.mergeSubTreeMarkers(acc.subTrees, addition.subTrees),
26
- TreeParameterMerger.mergeParentEntityParameters(acc.parentReference, addition.parentReference)
27
- );
28
- }
29
- } else {
30
- if (acc instanceof EntityFieldMarkersContainer) {
31
- return MarkerMerger.mergeEntityFieldsContainers(
32
- acc,
33
- MarkerFactory.createEntityFieldMarkersContainer(addition)
34
- );
35
- } else {
36
- return new EntityFieldsWithHoistablesMarker(
37
- MarkerMerger.mergeEntityFieldsContainers(
38
- acc.fields,
31
+ if (acc instanceof EntityFieldMarkersContainer) {
32
+ return MarkerMerger.mergeEntityFieldsContainers(
33
+ acc,
39
34
  MarkerFactory.createEntityFieldMarkersContainer(addition)
40
- ),
41
- acc.subTrees,
42
- acc.parentReference
43
- );
35
+ );
36
+ } else {
37
+ return new EntityFieldsWithHoistablesMarker(
38
+ MarkerMerger.mergeEntityFieldsContainers(
39
+ acc.fields,
40
+ MarkerFactory.createEntityFieldMarkersContainer(addition)
41
+ ),
42
+ acc.subTrees,
43
+ acc.parentReference
44
+ );
45
+ }
44
46
  }
45
- }
46
- }, new EntityFieldMarkersContainer(
47
- false,
48
- /* @__PURE__ */ new Map(),
49
- /* @__PURE__ */ new Map()
50
- ));
47
+ },
48
+ new EntityFieldMarkersContainer(
49
+ false,
50
+ /* @__PURE__ */ new Map(),
51
+ /* @__PURE__ */ new Map()
52
+ )
53
+ );
51
54
  }
52
55
  }
53
56
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"IncrementalMarkerBuilder.js","sources":["../../../../../packages/react-binding/src/markers/IncrementalMarkerBuilder.ts"],"sourcesContent":["import {\n\tEntityFieldMarker,\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tMarkerFactory,\n\tMarkerMerger,\n\tTreeParameterMerger,\n} from '@contember/binding'\n\nexport class IncrementalMarkerBuilder {\n\tpublic static build(markers: (EntityFieldMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker)[]): EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer {\n\t\treturn markers.reduce<EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer>((acc, addition) => {\n\t\t\tif (addition instanceof EntityFieldMarkersContainer) {\n\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\treturn MarkerMerger.mergeEntityFieldsContainers(acc, addition)\n\t\t\t\t} else {\n\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc.fields, addition),\n\t\t\t\t\t\tacc.subTrees,\n\t\t\t\t\t\tacc.parentReference,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t} else if (addition instanceof EntityFieldsWithHoistablesMarker) {\n\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc, addition.fields),\n\t\t\t\t\t\taddition.subTrees,\n\t\t\t\t\t\taddition.parentReference,\n\t\t\t\t\t)\n\t\t\t\t} else {\n\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc.fields, addition.fields),\n\t\t\t\t\t\tMarkerMerger.mergeSubTreeMarkers(acc.subTrees, addition.subTrees),\n\t\t\t\t\t\tTreeParameterMerger.mergeParentEntityParameters(acc.parentReference, addition.parentReference),\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\treturn MarkerMerger.mergeEntityFieldsContainers(\n\t\t\t\t\t\tacc,\n\t\t\t\t\t\tMarkerFactory.createEntityFieldMarkersContainer(addition),\n\t\t\t\t\t)\n\t\t\t\t} else {\n\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(\n\t\t\t\t\t\t\tacc.fields,\n\t\t\t\t\t\t\tMarkerFactory.createEntityFieldMarkersContainer(addition),\n\t\t\t\t\t\t),\n\t\t\t\t\t\tacc.subTrees,\n\t\t\t\t\t\tacc.parentReference,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t}, new EntityFieldMarkersContainer(\n\t\t\tfalse,\n\t\t\tnew Map(),\n\t\t\tnew Map(),\n\t\t))\n\t}\n}\n"],"names":[],"mappings":";AASO,MAAM,yBAAyB;AAAA,EACrC,OAAc,MAAM,SAAiK;AACpL,WAAO,QAAQ,OAAuE,CAAC,KAAK,aAAa;AACxG,UAAI,oBAAoB,6BAA6B;AACpD,YAAI,eAAe,6BAA6B;AACxC,iBAAA,aAAa,4BAA4B,KAAK,QAAQ;AAAA,QAAA,OACvD;AACN,iBAAO,IAAI;AAAA,YACV,aAAa,4BAA4B,IAAI,QAAQ,QAAQ;AAAA,YAC7D,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,QAAA;AAAA,MACD,WACU,oBAAoB,kCAAkC;AAChE,YAAI,eAAe,6BAA6B;AAC/C,iBAAO,IAAI;AAAA,YACV,aAAa,4BAA4B,KAAK,SAAS,MAAM;AAAA,YAC7D,SAAS;AAAA,YACT,SAAS;AAAA,UACV;AAAA,QAAA,OACM;AACN,iBAAO,IAAI;AAAA,YACV,aAAa,4BAA4B,IAAI,QAAQ,SAAS,MAAM;AAAA,YACpE,aAAa,oBAAoB,IAAI,UAAU,SAAS,QAAQ;AAAA,YAChE,oBAAoB,4BAA4B,IAAI,iBAAiB,SAAS,eAAe;AAAA,UAC9F;AAAA,QAAA;AAAA,MACD,OACM;AACN,YAAI,eAAe,6BAA6B;AAC/C,iBAAO,aAAa;AAAA,YACnB;AAAA,YACA,cAAc,kCAAkC,QAAQ;AAAA,UACzD;AAAA,QAAA,OACM;AACN,iBAAO,IAAI;AAAA,YACV,aAAa;AAAA,cACZ,IAAI;AAAA,cACJ,cAAc,kCAAkC,QAAQ;AAAA,YACzD;AAAA,YACA,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,QAAA;AAAA,MACD;AAAA,OAEC,IAAI;AAAA,MACN;AAAA,0BACI,IAAI;AAAA,0BACJ,IAAI;AAAA,IAAA,CACR;AAAA,EAAA;AAEH;"}
1
+ {"version":3,"file":"IncrementalMarkerBuilder.js","sources":["../../../../../packages/react-binding/src/markers/IncrementalMarkerBuilder.ts"],"sourcesContent":["import {\n\tEntityFieldMarker,\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tMarkerFactory,\n\tMarkerMerger,\n\tTreeParameterMerger,\n} from '@contember/binding'\n\nexport class IncrementalMarkerBuilder {\n\tpublic static build(\n\t\tmarkers: (EntityFieldMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker)[],\n\t): EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer {\n\t\treturn markers.reduce<EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer>(\n\t\t\t(acc, addition) => {\n\t\t\t\tif (addition instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\t\treturn MarkerMerger.mergeEntityFieldsContainers(acc, addition)\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc.fields, addition),\n\t\t\t\t\t\t\tacc.subTrees,\n\t\t\t\t\t\t\tacc.parentReference,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t} else if (addition instanceof EntityFieldsWithHoistablesMarker) {\n\t\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc, addition.fields),\n\t\t\t\t\t\t\taddition.subTrees,\n\t\t\t\t\t\t\taddition.parentReference,\n\t\t\t\t\t\t)\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(acc.fields, addition.fields),\n\t\t\t\t\t\t\tMarkerMerger.mergeSubTreeMarkers(acc.subTrees, addition.subTrees),\n\t\t\t\t\t\t\tTreeParameterMerger.mergeParentEntityParameters(acc.parentReference, addition.parentReference),\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (acc instanceof EntityFieldMarkersContainer) {\n\t\t\t\t\t\treturn MarkerMerger.mergeEntityFieldsContainers(\n\t\t\t\t\t\t\tacc,\n\t\t\t\t\t\t\tMarkerFactory.createEntityFieldMarkersContainer(addition),\n\t\t\t\t\t\t)\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn new EntityFieldsWithHoistablesMarker(\n\t\t\t\t\t\t\tMarkerMerger.mergeEntityFieldsContainers(\n\t\t\t\t\t\t\t\tacc.fields,\n\t\t\t\t\t\t\t\tMarkerFactory.createEntityFieldMarkersContainer(addition),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tacc.subTrees,\n\t\t\t\t\t\t\tacc.parentReference,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tnew EntityFieldMarkersContainer(\n\t\t\t\tfalse,\n\t\t\t\tnew Map(),\n\t\t\t\tnew Map(),\n\t\t\t),\n\t\t)\n\t}\n}\n"],"names":[],"mappings":";AASO,MAAM,yBAAyB;AAAA,EACrC,OAAc,MACb,SACiE;AACjE,WAAO,QAAQ;AAAA,MACd,CAAC,KAAK,aAAa;AAClB,YAAI,oBAAoB,6BAA6B;AACpD,cAAI,eAAe,6BAA6B;AAC/C,mBAAO,aAAa,4BAA4B,KAAK,QAAQ;AAAA,UAC9D,OAAO;AACN,mBAAO,IAAI;AAAA,cACV,aAAa,4BAA4B,IAAI,QAAQ,QAAQ;AAAA,cAC7D,IAAI;AAAA,cACJ,IAAI;AAAA,YAAA;AAAA,UAEN;AAAA,QACD,WAAW,oBAAoB,kCAAkC;AAChE,cAAI,eAAe,6BAA6B;AAC/C,mBAAO,IAAI;AAAA,cACV,aAAa,4BAA4B,KAAK,SAAS,MAAM;AAAA,cAC7D,SAAS;AAAA,cACT,SAAS;AAAA,YAAA;AAAA,UAEX,OAAO;AACN,mBAAO,IAAI;AAAA,cACV,aAAa,4BAA4B,IAAI,QAAQ,SAAS,MAAM;AAAA,cACpE,aAAa,oBAAoB,IAAI,UAAU,SAAS,QAAQ;AAAA,cAChE,oBAAoB,4BAA4B,IAAI,iBAAiB,SAAS,eAAe;AAAA,YAAA;AAAA,UAE/F;AAAA,QACD,OAAO;AACN,cAAI,eAAe,6BAA6B;AAC/C,mBAAO,aAAa;AAAA,cACnB;AAAA,cACA,cAAc,kCAAkC,QAAQ;AAAA,YAAA;AAAA,UAE1D,OAAO;AACN,mBAAO,IAAI;AAAA,cACV,aAAa;AAAA,gBACZ,IAAI;AAAA,gBACJ,cAAc,kCAAkC,QAAQ;AAAA,cAAA;AAAA,cAEzD,IAAI;AAAA,cACJ,IAAI;AAAA,YAAA;AAAA,UAEN;AAAA,QACD;AAAA,MACD;AAAA,MACA,IAAI;AAAA,QACH;AAAA,4BACI,IAAA;AAAA,4BACA,IAAA;AAAA,MAAI;AAAA,IACT;AAAA,EAEF;AACD;"}
@@ -18,16 +18,19 @@ class MarkerStaticAnalyzer {
18
18
  return [];
19
19
  }
20
20
  if (typeof node === "function") {
21
- throw new ChildrenAnalyzerError(`Render props (functions as React component children) are not supported within the schema. You have likely used a bare custom component as opposed to wrapping in with \`Component\` from the \`@contember/admin\` package. Please refer to the documentation.`);
21
+ throw new ChildrenAnalyzerError(
22
+ `Render props (functions as React component children) are not supported within the schema. You have likely used a bare custom component as opposed to wrapping in with \`Component\` from the \`@contember/admin\` package. Please refer to the documentation.`
23
+ );
22
24
  }
23
25
  if (Array.isArray(node)) {
24
26
  return node.flatMap((subNode) => this.processNode(subNode, env, componentPath));
25
27
  }
26
- if (!("type" in node)) {
28
+ if (typeof node !== "object" || !("type" in node)) {
27
29
  return [];
28
30
  }
31
+ const props = node.props;
29
32
  if (typeof node.type === "symbol" || typeof node.type === "string") {
30
- return this.processNode(node.props.children, env, componentPath);
33
+ return this.processNode(props.children, env, componentPath);
31
34
  }
32
35
  const nodeDisplayName = "displayName" in node.type ? node.type.displayName : "???";
33
36
  componentPath = [...componentPath, node];
@@ -36,18 +39,18 @@ class MarkerStaticAnalyzer {
36
39
  }
37
40
  try {
38
41
  if ("generateEnvironment" in node.type) {
39
- env = node.type.generateEnvironment(node.props, env);
42
+ env = node.type.generateEnvironment(props, env);
40
43
  }
41
44
  } catch (e) {
42
45
  wrapError(e, nodeDisplayName, "static context factory", componentPath);
43
46
  }
44
47
  if ("generateLeafMarker" in node.type) {
45
- return [node.type.generateLeafMarker(node.props, env)];
48
+ return [node.type.generateLeafMarker(props, env)];
46
49
  }
47
- let children = node.props.children;
50
+ let children = props.children;
48
51
  try {
49
52
  if ("staticRender" in node.type) {
50
- children = node.type.staticRender(node.props, env);
53
+ children = node.type.staticRender(props, env);
51
54
  }
52
55
  } catch (e) {
53
56
  wrapError(e, nodeDisplayName, "static render", componentPath);
@@ -55,7 +58,7 @@ class MarkerStaticAnalyzer {
55
58
  const processedChildren = this.processNode(children, env, componentPath);
56
59
  if ("generateBranchMarker" in node.type) {
57
60
  const marker = IncrementalMarkerBuilder.IncrementalMarkerBuilder.build(processedChildren);
58
- return [node.type.generateBranchMarker(node.props, marker, env)];
61
+ return [node.type.generateBranchMarker(props, marker, env)];
59
62
  }
60
63
  return processedChildren;
61
64
  }
@@ -80,18 +83,15 @@ const wrapError = (e, currentComponentName, methodName, path) => {
80
83
  continue;
81
84
  }
82
85
  try {
83
- const valuePrinted = JSON.stringify(
84
- value,
85
- (key2, value2) => {
86
- if (typeof value2 === "function") {
87
- return "(function)";
88
- }
89
- if (React.isValidElement(value2)) {
90
- return "(react element)";
91
- }
92
- return value2;
86
+ const valuePrinted = JSON.stringify(value, (key2, value2) => {
87
+ if (typeof value2 === "function") {
88
+ return "(function)";
93
89
  }
94
- );
90
+ if (React.isValidElement(value2)) {
91
+ return "(react element)";
92
+ }
93
+ return value2;
94
+ });
95
95
  result += ` ${key}=${valuePrinted}`;
96
96
  } catch {
97
97
  result += ` ${key}=(failed to print a value)`;
@@ -1 +1 @@
1
- {"version":3,"file":"MarkerStaticAnalyzer.cjs","sources":["../../../../../packages/react-binding/src/markers/MarkerStaticAnalyzer.ts"],"sourcesContent":["import React, { ReactElement, ReactNode } from 'react'\nimport { BranchMarkerProvider, EnvironmentDeltaProvider, LeafMarkerProvider, StaticRenderProvider } from './MarkerProvider'\nimport {\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tEnvironment,\n\tFieldMarker,\n\tHasManyRelationMarker,\n\tHasOneRelationMarker,\n} from '@contember/binding'\nimport { IncrementalMarkerBuilder } from './IncrementalMarkerBuilder'\n\ntype Markers = FieldMarker | HasOneRelationMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker | HasManyRelationMarker\n\nexport class MarkerStaticAnalyzer {\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tenv: Environment,\n\t): EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer | undefined {\n\t\tconst markers = this.processNode(children, env, [])\n\t\tif (markers.length === 0) {\n\t\t\treturn undefined\n\t\t}\n\t\treturn IncrementalMarkerBuilder.build(markers)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode,\n\t\tenv: Environment,\n\t\tcomponentPath: ReactElement[],\n\t): Markers[] {\n\t\tif (node === false || node === undefined || node === null || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\treturn []\n\t\t}\n\t\tif (typeof node === 'function') {\n\t\t\tthrow new ChildrenAnalyzerError(`Render props (functions as React component children) are not supported within the schema. ` +\n\t\t\t\t`You have likely used a bare custom component as opposed to wrapping in with \\`Component\\` ` +\n\t\t\t\t`from the \\`@contember/admin\\` package. Please refer to the documentation.`)\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\treturn node.flatMap(subNode => this.processNode(subNode, env, componentPath))\n\t\t}\n\n\t\tif (!('type' in node)) {\n\t\t\treturn []\n\t\t}\n\n\t\tif (typeof node.type === 'symbol' || typeof node.type === 'string') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(node.props.children, env, componentPath)\n\t\t}\n\n\t\tconst nodeDisplayName = 'displayName' in node.type ? (node.type.displayName as string) : '???'\n\n\t\tcomponentPath = [...componentPath, node]\n\t\tif (componentPath.length > 1000) {\n\t\t\twrapError(new ChildrenAnalyzerError('Component path too long, likely a circular reference'), nodeDisplayName, '[NONE]', componentPath)\n\t\t}\n\n\n\t\ttry {\n\t\t\tif ('generateEnvironment' in node.type) {\n\t\t\t\tenv = (node.type as EnvironmentDeltaProvider).generateEnvironment(node.props, env)\n\t\t\t}\n\t\t} catch (e) {\n\t\t\twrapError(e, nodeDisplayName, 'static context factory', componentPath)\n\t\t}\n\t\tif ('generateLeafMarker' in node.type) {\n\t\t\treturn [(node.type as LeafMarkerProvider).generateLeafMarker(node.props, env)]\n\t\t}\n\t\tlet children: ReactNode = node.props.children\n\t\ttry {\n\t\t\tif ('staticRender' in node.type) {\n\t\t\t\tchildren = (node.type as StaticRenderProvider).staticRender(node.props, env)\n\t\t\t}\n\t\t} catch (e) {\n\t\t\twrapError(e, nodeDisplayName, 'static render', componentPath)\n\t\t}\n\t\tconst processedChildren = this.processNode(children, env, componentPath)\n\t\tif ('generateBranchMarker' in node.type) {\n\t\t\tconst marker = IncrementalMarkerBuilder.build(processedChildren)\n\t\t\treturn [(node.type as BranchMarkerProvider).generateBranchMarker(node.props, marker, env)]\n\t\t}\n\t\treturn processedChildren\n\t}\n}\n\nexport class ChildrenAnalyzerError extends Error {\n\tpublic details?: string\n\n\tconstructor(message: string, options?: { cause: Error; details?: string }) {\n\t\tsuper(message, options)\n\t\tthis.details = options?.details\n\t}\n}\n\nconst wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {\n\tif (!(e instanceof Error)) {\n\t\tthrow e\n\t}\n\n\tconst componentPath = path.map((it, index) => {\n\t\tconst { children, ...props } = it.props\n\t\tconst printProps = (props: any) => {\n\t\t\tlet result = ''\n\t\t\tfor (const [key, value] of Object.entries(props)) {\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst valuePrinted = JSON.stringify(value, (key, value) => {\n\t\t\t\t\t\tif (typeof value === 'function') {\n\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn value\n\t\t\t\t\t},\n\t\t\t\t\t)\n\t\t\t\t\tresult += ` ${key}=${valuePrinted}`\n\t\t\t\t} catch {\n\t\t\t\t\tresult += ` ${key}=(failed to print a value)`\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result\n\t\t}\n\t\tconst componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null\n\t\tconst propsPrinted = printProps(props)\n\t\tconst indent = ' '.repeat(index)\n\t\treturn `${indent}<${componentName ?? '???'}${propsPrinted}>`\n\t})\n\tconst errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\\n${e.message || 'unknown error'}`\n\n\tthrow new ChildrenAnalyzerError(errorMessage, {\n\t\tcause: e,\n\t\tdetails: `Component path:\\n${componentPath.join('\\n')}`,\n\t})\n}\n"],"names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AA;AAAA,cAAA;AAEDA,qBAAAA;AAAAA,YAAA;AAAA,UAER;AACU,oBAAA,IAAI,GAAG,IAAI,YAAY;AAAA,QAAA,QAC1B;AACP,oBAAU,IAAI,GAAG;AAAA,QAAA;AAAA,MAClB;AAEM,aAAA;AAAA,IACR;AACM,UAAA,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AACzG,UAAA,eAAe,WAAW,KAAK;AAC/B,UAAA,SAAS,KAAK,OAAO,KAAK;AAChC,WAAO,GAAG,MAAM,IAAI,iBAAiB,KAAK,GAAG,YAAY;AAAA,EAAA,CACzD;AACD,QAAM,eAAe,iCAAiC,oBAAoB,OAAO,UAAU;AAAA,EAAM,EAAE,WAAW,eAAe;AAEvH,QAAA,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI,CAAC;AAAA,EAAA,CACrD;AACF;;;"}
1
+ {"version":3,"file":"MarkerStaticAnalyzer.cjs","sources":["../../../../../packages/react-binding/src/markers/MarkerStaticAnalyzer.ts"],"sourcesContent":["import React, { ReactElement, ReactNode } from 'react'\nimport { BranchMarkerProvider, EnvironmentDeltaProvider, LeafMarkerProvider, StaticRenderProvider } from './MarkerProvider'\nimport {\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tEnvironment,\n\tFieldMarker,\n\tHasManyRelationMarker,\n\tHasOneRelationMarker,\n} from '@contember/binding'\nimport { IncrementalMarkerBuilder } from './IncrementalMarkerBuilder'\n\ntype Markers = FieldMarker | HasOneRelationMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker | HasManyRelationMarker\n\nexport class MarkerStaticAnalyzer {\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tenv: Environment,\n\t): EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer | undefined {\n\t\tconst markers = this.processNode(children, env, [])\n\t\tif (markers.length === 0) {\n\t\t\treturn undefined\n\t\t}\n\t\treturn IncrementalMarkerBuilder.build(markers)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode,\n\t\tenv: Environment,\n\t\tcomponentPath: ReactElement[],\n\t): Markers[] {\n\t\tif (node === false || node === undefined || node === null || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\treturn []\n\t\t}\n\t\tif (typeof node === 'function') {\n\t\t\tthrow new ChildrenAnalyzerError(\n\t\t\t\t`Render props (functions as React component children) are not supported within the schema. `\n\t\t\t\t\t+ `You have likely used a bare custom component as opposed to wrapping in with \\`Component\\` `\n\t\t\t\t\t+ `from the \\`@contember/admin\\` package. Please refer to the documentation.`,\n\t\t\t)\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\treturn node.flatMap(subNode => this.processNode(subNode, env, componentPath))\n\t\t}\n\n\t\tif (typeof node !== 'object' || !('type' in node)) {\n\t\t\treturn []\n\t\t}\n\n\t\tconst props = node.props as Record<string, any>\n\n\t\tif (typeof node.type === 'symbol' || typeof node.type === 'string') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(props.children, env, componentPath)\n\t\t}\n\n\t\tconst nodeDisplayName = 'displayName' in node.type ? (node.type.displayName as string) : '???'\n\n\t\tcomponentPath = [...componentPath, node]\n\t\tif (componentPath.length > 1000) {\n\t\t\twrapError(new ChildrenAnalyzerError('Component path too long, likely a circular reference'), nodeDisplayName, '[NONE]', componentPath)\n\t\t}\n\n\t\ttry {\n\t\t\tif ('generateEnvironment' in node.type) {\n\t\t\t\tenv = (node.type as EnvironmentDeltaProvider).generateEnvironment(props, env)\n\t\t\t}\n\t\t} catch (e) {\n\t\t\twrapError(e, nodeDisplayName, 'static context factory', componentPath)\n\t\t}\n\t\tif ('generateLeafMarker' in node.type) {\n\t\t\treturn [(node.type as LeafMarkerProvider).generateLeafMarker(props, env)]\n\t\t}\n\t\tlet children: ReactNode = props.children\n\t\ttry {\n\t\t\tif ('staticRender' in node.type) {\n\t\t\t\tchildren = (node.type as StaticRenderProvider).staticRender(props, env)\n\t\t\t}\n\t\t} catch (e) {\n\t\t\twrapError(e, nodeDisplayName, 'static render', componentPath)\n\t\t}\n\t\tconst processedChildren = this.processNode(children, env, componentPath)\n\t\tif ('generateBranchMarker' in node.type) {\n\t\t\tconst marker = IncrementalMarkerBuilder.build(processedChildren)\n\t\t\treturn [(node.type as BranchMarkerProvider).generateBranchMarker(props, marker, env)]\n\t\t}\n\t\treturn processedChildren\n\t}\n}\n\nexport class ChildrenAnalyzerError extends Error {\n\tpublic details?: string\n\n\tconstructor(message: string, options?: { cause: Error; details?: string }) {\n\t\tsuper(message, options)\n\t\tthis.details = options?.details\n\t}\n}\n\nconst wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {\n\tif (!(e instanceof Error)) {\n\t\tthrow e\n\t}\n\n\tconst componentPath = path.map((it, index) => {\n\t\tconst { children, ...props } = it.props as Record<string, any>\n\t\tconst printProps = (props: any) => {\n\t\t\tlet result = ''\n\t\t\tfor (const [key, value] of Object.entries(props)) {\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst valuePrinted = JSON.stringify(value, (key, value) => {\n\t\t\t\t\t\tif (typeof value === 'function') {\n\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn value\n\t\t\t\t\t})\n\t\t\t\t\tresult += ` ${key}=${valuePrinted}`\n\t\t\t\t} catch {\n\t\t\t\t\tresult += ` ${key}=(failed to print a value)`\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result\n\t\t}\n\t\tconst componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null\n\t\tconst propsPrinted = printProps(props)\n\t\tconst indent = ' '.repeat(index)\n\t\treturn `${indent}<${componentName ?? '???'}${propsPrinted}>`\n\t})\n\tconst errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\\n${e.message || 'unknown error'}`\n\n\tthrow new ChildrenAnalyzerError(errorMessage, {\n\t\tcause: e,\n\t\tdetails: `Component path:\\n${componentPath.join('\\n')}`,\n\t})\n}\n"],"names":["IncrementalMarkerBuilder","props","key","value"],"mappings":";;;;;;;AAcO,MAAM,qBAAqB;AAAA,EAC1B,gBACN,UACA,KAC6E;AAC7E,UAAM,UAAU,KAAK,YAAY,UAAU,KAAK,CAAA,CAAE;AAClD,QAAI,QAAQ,WAAW,GAAG;AACzB,aAAO;AAAA,IACR;AACA,WAAOA,yBAAAA,yBAAyB,MAAM,OAAO;AAAA,EAC9C;AAAA,EAEQ,YACP,MACA,KACA,eACY;AACZ,QAAI,SAAS,SAAS,SAAS,UAAa,SAAS,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY,OAAO,SAAS,WAAW;AAC/I,aAAO,CAAA;AAAA,IACR;AACA,QAAI,OAAO,SAAS,YAAY;AAC/B,YAAM,IAAI;AAAA,QACT;AAAA,MAAA;AAAA,IAIF;AAEA,QAAI,MAAM,QAAQ,IAAI,GAAG;AACxB,aAAO,KAAK,QAAQ,CAAA,YAAW,KAAK,YAAY,SAAS,KAAK,aAAa,CAAC;AAAA,IAC7E;AAEA,QAAI,OAAO,SAAS,YAAY,EAAE,UAAU,OAAO;AAClD,aAAO,CAAA;AAAA,IACR;AAEA,UAAM,QAAQ,KAAK;AAEnB,QAAI,OAAO,KAAK,SAAS,YAAY,OAAO,KAAK,SAAS,UAAU;AAEnE,aAAO,KAAK,YAAY,MAAM,UAAU,KAAK,aAAa;AAAA,IAC3D;AAEA,UAAM,kBAAkB,iBAAiB,KAAK,OAAQ,KAAK,KAAK,cAAyB;AAEzF,oBAAgB,CAAC,GAAG,eAAe,IAAI;AACvC,QAAI,cAAc,SAAS,KAAM;AAChC,gBAAU,IAAI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AAK,GAAG;AACjD,YAAI,UAAU,QAAW;AACxB;AAAA,QACD;AACA,YAAI;AACH,gBAAM,eAAe,KAAK,UAAU,OAAO,CAACC,MAAKC,WAAU;AAC1D,gBAAI,OAAOA,WAAU,YAAY;AAChC,qBAAO;AAAA,YACR;AACA,gBAAI,MAAM,eAAeA,MAAK,GAAG;AAChC,qBAAO;AAAA,YACR;AACA,mBAAOA;AAAAA,UACR,CAAC;AACD,oBAAU,IAAI,GAAG,IAAI,YAAY;AAAA,QAClC,QAAQ;AACP,oBAAU,IAAI,GAAG;AAAA,QAClB;AAAA,MACD;AACA,aAAO;AAAA,IACR;AACA,UAAM,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AAC/G,UAAM,eAAe,WAAW,KAAK;AACrC,UAAM,SAAS,KAAK,OAAO,KAAK;AAChC,WAAO,GAAG,MAAM,IAAI,iBAAiB,KAAK,GAAG,YAAY;AAAA,EAC1D,CAAC;AACD,QAAM,eAAe,iCAAiC,oBAAoB,OAAO,UAAU;AAAA,EAAM,EAAE,WAAW,eAAe;AAE7H,QAAM,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI,CAAC;AAAA,EAAA,CACrD;AACF;;;"}
@@ -16,16 +16,19 @@ class MarkerStaticAnalyzer {
16
16
  return [];
17
17
  }
18
18
  if (typeof node === "function") {
19
- throw new ChildrenAnalyzerError(`Render props (functions as React component children) are not supported within the schema. You have likely used a bare custom component as opposed to wrapping in with \`Component\` from the \`@contember/admin\` package. Please refer to the documentation.`);
19
+ throw new ChildrenAnalyzerError(
20
+ `Render props (functions as React component children) are not supported within the schema. You have likely used a bare custom component as opposed to wrapping in with \`Component\` from the \`@contember/admin\` package. Please refer to the documentation.`
21
+ );
20
22
  }
21
23
  if (Array.isArray(node)) {
22
24
  return node.flatMap((subNode) => this.processNode(subNode, env, componentPath));
23
25
  }
24
- if (!("type" in node)) {
26
+ if (typeof node !== "object" || !("type" in node)) {
25
27
  return [];
26
28
  }
29
+ const props = node.props;
27
30
  if (typeof node.type === "symbol" || typeof node.type === "string") {
28
- return this.processNode(node.props.children, env, componentPath);
31
+ return this.processNode(props.children, env, componentPath);
29
32
  }
30
33
  const nodeDisplayName = "displayName" in node.type ? node.type.displayName : "???";
31
34
  componentPath = [...componentPath, node];
@@ -34,18 +37,18 @@ class MarkerStaticAnalyzer {
34
37
  }
35
38
  try {
36
39
  if ("generateEnvironment" in node.type) {
37
- env = node.type.generateEnvironment(node.props, env);
40
+ env = node.type.generateEnvironment(props, env);
38
41
  }
39
42
  } catch (e) {
40
43
  wrapError(e, nodeDisplayName, "static context factory", componentPath);
41
44
  }
42
45
  if ("generateLeafMarker" in node.type) {
43
- return [node.type.generateLeafMarker(node.props, env)];
46
+ return [node.type.generateLeafMarker(props, env)];
44
47
  }
45
- let children = node.props.children;
48
+ let children = props.children;
46
49
  try {
47
50
  if ("staticRender" in node.type) {
48
- children = node.type.staticRender(node.props, env);
51
+ children = node.type.staticRender(props, env);
49
52
  }
50
53
  } catch (e) {
51
54
  wrapError(e, nodeDisplayName, "static render", componentPath);
@@ -53,7 +56,7 @@ class MarkerStaticAnalyzer {
53
56
  const processedChildren = this.processNode(children, env, componentPath);
54
57
  if ("generateBranchMarker" in node.type) {
55
58
  const marker = IncrementalMarkerBuilder.build(processedChildren);
56
- return [node.type.generateBranchMarker(node.props, marker, env)];
59
+ return [node.type.generateBranchMarker(props, marker, env)];
57
60
  }
58
61
  return processedChildren;
59
62
  }
@@ -78,18 +81,15 @@ const wrapError = (e, currentComponentName, methodName, path) => {
78
81
  continue;
79
82
  }
80
83
  try {
81
- const valuePrinted = JSON.stringify(
82
- value,
83
- (key2, value2) => {
84
- if (typeof value2 === "function") {
85
- return "(function)";
86
- }
87
- if (React__default.isValidElement(value2)) {
88
- return "(react element)";
89
- }
90
- return value2;
84
+ const valuePrinted = JSON.stringify(value, (key2, value2) => {
85
+ if (typeof value2 === "function") {
86
+ return "(function)";
91
87
  }
92
- );
88
+ if (React__default.isValidElement(value2)) {
89
+ return "(react element)";
90
+ }
91
+ return value2;
92
+ });
93
93
  result += ` ${key}=${valuePrinted}`;
94
94
  } catch {
95
95
  result += ` ${key}=(failed to print a value)`;
@@ -1 +1 @@
1
- {"version":3,"file":"MarkerStaticAnalyzer.js","sources":["../../../../../packages/react-binding/src/markers/MarkerStaticAnalyzer.ts"],"sourcesContent":["import React, { ReactElement, ReactNode } from 'react'\nimport { BranchMarkerProvider, EnvironmentDeltaProvider, LeafMarkerProvider, StaticRenderProvider } from './MarkerProvider'\nimport {\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tEnvironment,\n\tFieldMarker,\n\tHasManyRelationMarker,\n\tHasOneRelationMarker,\n} from '@contember/binding'\nimport { IncrementalMarkerBuilder } from './IncrementalMarkerBuilder'\n\ntype Markers = FieldMarker | HasOneRelationMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker | HasManyRelationMarker\n\nexport class MarkerStaticAnalyzer {\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tenv: Environment,\n\t): EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer | undefined {\n\t\tconst markers = this.processNode(children, env, [])\n\t\tif (markers.length === 0) {\n\t\t\treturn undefined\n\t\t}\n\t\treturn IncrementalMarkerBuilder.build(markers)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode,\n\t\tenv: Environment,\n\t\tcomponentPath: ReactElement[],\n\t): Markers[] {\n\t\tif (node === false || node === undefined || node === null || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\treturn []\n\t\t}\n\t\tif (typeof node === 'function') {\n\t\t\tthrow new ChildrenAnalyzerError(`Render props (functions as React component children) are not supported within the schema. ` +\n\t\t\t\t`You have likely used a bare custom component as opposed to wrapping in with \\`Component\\` ` +\n\t\t\t\t`from the \\`@contember/admin\\` package. Please refer to the documentation.`)\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\treturn node.flatMap(subNode => this.processNode(subNode, env, componentPath))\n\t\t}\n\n\t\tif (!('type' in node)) {\n\t\t\treturn []\n\t\t}\n\n\t\tif (typeof node.type === 'symbol' || typeof node.type === 'string') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(node.props.children, env, componentPath)\n\t\t}\n\n\t\tconst nodeDisplayName = 'displayName' in node.type ? (node.type.displayName as string) : '???'\n\n\t\tcomponentPath = [...componentPath, node]\n\t\tif (componentPath.length > 1000) {\n\t\t\twrapError(new ChildrenAnalyzerError('Component path too long, likely a circular reference'), nodeDisplayName, '[NONE]', componentPath)\n\t\t}\n\n\n\t\ttry {\n\t\t\tif ('generateEnvironment' in node.type) {\n\t\t\t\tenv = (node.type as EnvironmentDeltaProvider).generateEnvironment(node.props, env)\n\t\t\t}\n\t\t} catch (e) {\n\t\t\twrapError(e, nodeDisplayName, 'static context factory', componentPath)\n\t\t}\n\t\tif ('generateLeafMarker' in node.type) {\n\t\t\treturn [(node.type as LeafMarkerProvider).generateLeafMarker(node.props, env)]\n\t\t}\n\t\tlet children: ReactNode = node.props.children\n\t\ttry {\n\t\t\tif ('staticRender' in node.type) {\n\t\t\t\tchildren = (node.type as StaticRenderProvider).staticRender(node.props, env)\n\t\t\t}\n\t\t} catch (e) {\n\t\t\twrapError(e, nodeDisplayName, 'static render', componentPath)\n\t\t}\n\t\tconst processedChildren = this.processNode(children, env, componentPath)\n\t\tif ('generateBranchMarker' in node.type) {\n\t\t\tconst marker = IncrementalMarkerBuilder.build(processedChildren)\n\t\t\treturn [(node.type as BranchMarkerProvider).generateBranchMarker(node.props, marker, env)]\n\t\t}\n\t\treturn processedChildren\n\t}\n}\n\nexport class ChildrenAnalyzerError extends Error {\n\tpublic details?: string\n\n\tconstructor(message: string, options?: { cause: Error; details?: string }) {\n\t\tsuper(message, options)\n\t\tthis.details = options?.details\n\t}\n}\n\nconst wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {\n\tif (!(e instanceof Error)) {\n\t\tthrow e\n\t}\n\n\tconst componentPath = path.map((it, index) => {\n\t\tconst { children, ...props } = it.props\n\t\tconst printProps = (props: any) => {\n\t\t\tlet result = ''\n\t\t\tfor (const [key, value] of Object.entries(props)) {\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst valuePrinted = JSON.stringify(value, (key, value) => {\n\t\t\t\t\t\tif (typeof value === 'function') {\n\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn value\n\t\t\t\t\t},\n\t\t\t\t\t)\n\t\t\t\t\tresult += ` ${key}=${valuePrinted}`\n\t\t\t\t} catch {\n\t\t\t\t\tresult += ` ${key}=(failed to print a value)`\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result\n\t\t}\n\t\tconst componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null\n\t\tconst propsPrinted = printProps(props)\n\t\tconst indent = ' '.repeat(index)\n\t\treturn `${indent}<${componentName ?? '???'}${propsPrinted}>`\n\t})\n\tconst errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\\n${e.message || 'unknown error'}`\n\n\tthrow new ChildrenAnalyzerError(errorMessage, {\n\t\tcause: e,\n\t\tdetails: `Component path:\\n${componentPath.join('\\n')}`,\n\t})\n}\n"],"names":["props","key","value","React"],"mappings":";;;;;AAcO,MAAM,qBAAqB;AAAA,EAC1B,gBACN,UACA,KAC6E;AAC7E,UAAM,UAAU,KAAK,YAAY,UAAU,KAAK,CAAA,CAAE;AAC9C,QAAA,QAAQ,WAAW,GAAG;AAClB,aAAA;AAAA,IAAA;AAED,WAAA,yBAAyB,MAAM,OAAO;AAAA,EAAA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;AACzG,UAAA,eAAe,WAAW,KAAK;AAC/B,UAAA,SAAS,KAAK,OAAO,KAAK;AAChC,WAAO,GAAG,MAAM,IAAI,iBAAiB,KAAK,GAAG,YAAY;AAAA,EAAA,CACzD;AACD,QAAM,eAAe,iCAAiC,oBAAoB,OAAO,UAAU;AAAA,EAAM,EAAE,WAAW,eAAe;AAEvH,QAAA,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI,CAAC;AAAA,EAAA,CACrD;AACF;"}
1
+ {"version":3,"file":"MarkerStaticAnalyzer.js","sources":["../../../../../packages/react-binding/src/markers/MarkerStaticAnalyzer.ts"],"sourcesContent":["import React, { ReactElement, ReactNode } from 'react'\nimport { BranchMarkerProvider, EnvironmentDeltaProvider, LeafMarkerProvider, StaticRenderProvider } from './MarkerProvider'\nimport {\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tEnvironment,\n\tFieldMarker,\n\tHasManyRelationMarker,\n\tHasOneRelationMarker,\n} from '@contember/binding'\nimport { IncrementalMarkerBuilder } from './IncrementalMarkerBuilder'\n\ntype Markers = FieldMarker | HasOneRelationMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker | HasManyRelationMarker\n\nexport class MarkerStaticAnalyzer {\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tenv: Environment,\n\t): EntityFieldsWithHoistablesMarker | EntityFieldMarkersContainer | undefined {\n\t\tconst markers = this.processNode(children, env, [])\n\t\tif (markers.length === 0) {\n\t\t\treturn undefined\n\t\t}\n\t\treturn IncrementalMarkerBuilder.build(markers)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode,\n\t\tenv: Environment,\n\t\tcomponentPath: ReactElement[],\n\t): Markers[] {\n\t\tif (node === false || node === undefined || node === null || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\treturn []\n\t\t}\n\t\tif (typeof node === 'function') {\n\t\t\tthrow new ChildrenAnalyzerError(\n\t\t\t\t`Render props (functions as React component children) are not supported within the schema. `\n\t\t\t\t\t+ `You have likely used a bare custom component as opposed to wrapping in with \\`Component\\` `\n\t\t\t\t\t+ `from the \\`@contember/admin\\` package. Please refer to the documentation.`,\n\t\t\t)\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\treturn node.flatMap(subNode => this.processNode(subNode, env, componentPath))\n\t\t}\n\n\t\tif (typeof node !== 'object' || !('type' in node)) {\n\t\t\treturn []\n\t\t}\n\n\t\tconst props = node.props as Record<string, any>\n\n\t\tif (typeof node.type === 'symbol' || typeof node.type === 'string') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(props.children, env, componentPath)\n\t\t}\n\n\t\tconst nodeDisplayName = 'displayName' in node.type ? (node.type.displayName as string) : '???'\n\n\t\tcomponentPath = [...componentPath, node]\n\t\tif (componentPath.length > 1000) {\n\t\t\twrapError(new ChildrenAnalyzerError('Component path too long, likely a circular reference'), nodeDisplayName, '[NONE]', componentPath)\n\t\t}\n\n\t\ttry {\n\t\t\tif ('generateEnvironment' in node.type) {\n\t\t\t\tenv = (node.type as EnvironmentDeltaProvider).generateEnvironment(props, env)\n\t\t\t}\n\t\t} catch (e) {\n\t\t\twrapError(e, nodeDisplayName, 'static context factory', componentPath)\n\t\t}\n\t\tif ('generateLeafMarker' in node.type) {\n\t\t\treturn [(node.type as LeafMarkerProvider).generateLeafMarker(props, env)]\n\t\t}\n\t\tlet children: ReactNode = props.children\n\t\ttry {\n\t\t\tif ('staticRender' in node.type) {\n\t\t\t\tchildren = (node.type as StaticRenderProvider).staticRender(props, env)\n\t\t\t}\n\t\t} catch (e) {\n\t\t\twrapError(e, nodeDisplayName, 'static render', componentPath)\n\t\t}\n\t\tconst processedChildren = this.processNode(children, env, componentPath)\n\t\tif ('generateBranchMarker' in node.type) {\n\t\t\tconst marker = IncrementalMarkerBuilder.build(processedChildren)\n\t\t\treturn [(node.type as BranchMarkerProvider).generateBranchMarker(props, marker, env)]\n\t\t}\n\t\treturn processedChildren\n\t}\n}\n\nexport class ChildrenAnalyzerError extends Error {\n\tpublic details?: string\n\n\tconstructor(message: string, options?: { cause: Error; details?: string }) {\n\t\tsuper(message, options)\n\t\tthis.details = options?.details\n\t}\n}\n\nconst wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {\n\tif (!(e instanceof Error)) {\n\t\tthrow e\n\t}\n\n\tconst componentPath = path.map((it, index) => {\n\t\tconst { children, ...props } = it.props as Record<string, any>\n\t\tconst printProps = (props: any) => {\n\t\t\tlet result = ''\n\t\t\tfor (const [key, value] of Object.entries(props)) {\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst valuePrinted = JSON.stringify(value, (key, value) => {\n\t\t\t\t\t\tif (typeof value === 'function') {\n\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn value\n\t\t\t\t\t})\n\t\t\t\t\tresult += ` ${key}=${valuePrinted}`\n\t\t\t\t} catch {\n\t\t\t\t\tresult += ` ${key}=(failed to print a value)`\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result\n\t\t}\n\t\tconst componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null\n\t\tconst propsPrinted = printProps(props)\n\t\tconst indent = ' '.repeat(index)\n\t\treturn `${indent}<${componentName ?? '???'}${propsPrinted}>`\n\t})\n\tconst errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\\n${e.message || 'unknown error'}`\n\n\tthrow new ChildrenAnalyzerError(errorMessage, {\n\t\tcause: e,\n\t\tdetails: `Component path:\\n${componentPath.join('\\n')}`,\n\t})\n}\n"],"names":["props","key","value","React"],"mappings":";;;;;AAcO,MAAM,qBAA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Y;AAAA,QAClC,QAAQ;AACP,oBAAU,IAAI,GAAG;AAAA,QAClB;AAAA,MACD;AACA,aAAO;AAAA,IACR;AACA,UAAM,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AAC/G,UAAM,eAAe,WAAW,KAAK;AACrC,UAAM,SAAS,KAAK,OAAO,KAAK;AAChC,WAAO,GAAG,MAAM,IAAI,iBAAiB,KAAK,GAAG,YAAY;AAAA,EAC1D,CAAC;AACD,QAAM,eAAe,iCAAiC,oBAAoB,OAAO,UAAU;AAAA,EAAM,EAAE,WAAW,eAAe;AAE7H,QAAM,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI,CAAC;AAAA,EAAA,CACrD;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarkerTreeGenerator.cjs","sources":["../../../../../packages/react-binding/src/markers/MarkerTreeGenerator.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { Alias } from '@contember/binding'\nimport {\n\tBindingError,\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tEntityListSubTreeMarker,\n\tEntitySubTreeMarker,\n\tEnvironment,\n\tFieldMarker,\n\tHasManyRelationMarker,\n\tHasOneRelationMarker,\n\tMarkerTreeRoot,\n} from '@contember/binding'\nimport { MarkerStaticAnalyzer } from './MarkerStaticAnalyzer'\n\ntype Markers = FieldMarker | HasOneRelationMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker | HasManyRelationMarker\n\nexport class MarkerTreeGenerator {\n\n\tpublic constructor(private sourceTree: ReactNode, private environment: Environment = Environment.create()) {}\n\n\tpublic generate(): MarkerTreeRoot {\n\t\tconst analyzer = new MarkerStaticAnalyzer()\n\t\tconst collectedMarkers = analyzer.processChildren(this.sourceTree, this.environment)\n\t\tif (collectedMarkers === undefined) {\n\t\t\treturn new MarkerTreeRoot(new Map(), new Map())\n\t\t}\n\n\t\tif (collectedMarkers instanceof EntityFieldMarkersContainer) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.fields.markers.size) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.parentReference !== undefined) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.subTrees === undefined) {\n\t\t\tthrow new BindingError()\n\t\t}\n\n\t\tconst subTrees = collectedMarkers.subTrees\n\n\t\treturn new MarkerTreeRoot(subTrees, this.generatePlaceholdersByAliases(subTrees))\n\t}\n\n\tprivate generatePlaceholdersByAliases(\n\t\thoistedSubTrees: ReadonlyMap<string, EntitySubTreeMarker | EntityListSubTreeMarker>,\n\t): Map<Alias, string> {\n\t\tconst placeholders = new Map<Alias, string>()\n\n\t\tfor (const [placeholderName, subTree] of hoistedSubTrees) {\n\t\t\tconst aliases = subTree.parameters.alias\n\t\t\tif (aliases === undefined || aliases.size === 0) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tfor (const alias of aliases) {\n\t\t\t\tconst existingPlaceholder = placeholders.get(alias)\n\t\t\t\tif (existingPlaceholder !== undefined) {\n\t\t\t\t\tif (existingPlaceholder === placeholderName) {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`Detected the same sub-tree alias '${alias}' referring to sub-trees with different parameters!`,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tplaceholders.set(alias, placeholderName)\n\t\t\t}\n\t\t}\n\n\t\treturn placeholders\n\t}\n\n}\n"],"names":["Environment","MarkerStaticAnalyzer","MarkerTreeRoot","EntityFieldMarkersContainer","BindingError"],"mappings":";;;;AAkBO,MAAM,oBAAoB;AAAA,EAEzB,YAAoB,YAA+B,cAA2BA,QAAA,YAAY,UAAU;AAAhF,SAAA,aAAA;AAA+B,SAAA,cAAA;AAAA,EAAA;AAAA,EAEnD,WAA2B;AAC3B,UAAA,WAAW,IAAIC,0CAAqB;AAC1C,UAAM,mBAAmB,SAAS,gBAAgB,KAAK,YAAY,KAAK,WAAW;AACnF,QAAI,qBAAqB,QAAW;AACnC,aAAO,IAAIC,QAAAA,eAAe,oBAAI,OAAO,oBAAI,KAAK;AAAA,IAAA;AAG/C,QAAI,4BAA4BC,QAAAA,6BAA6B;AAC5D,YAAM,IAAIC,QAAAA,aAAa;AAAA,IAAA;AAEpB,QAAA,iBAAiB,OAAO,QAAQ,MAAM;AACzC,YAAM,IAAIA,QAAAA,aAAa;AAAA,IAAA;AAEpB,QAAA,iBAAiB,oBAAoB,QAAW;AACnD,YAAM,IAAIA,QAAAA,aAAa;AAAA,IAAA;AAEpB,QAAA,iBAAiB,aAAa,QAAW;AAC5C,YAAM,IAAIA,QAAAA,aAAa;AAAA,IAAA;AAGxB,UAAM,WAAW,iBAAiB;AAElC,WAAO,IAAIF,QAAe,eAAA,UAAU,KAAK,8BAA8B,QAAQ,CAAC;AAAA,EAAA;AAAA,EAGzE,8BACP,iBACqB;AACf,UAAA,mCAAmB,IAAmB;AAE5C,eAAW,CAAC,iBAAiB,OAAO,KAAK,iBAAiB;AACnD,YAAA,UAAU,QAAQ,WAAW;AACnC,UAAI,YAAY,UAAa,QAAQ,SAAS,GAAG;AAChD;AAAA,MAAA;AAED,iBAAW,SAAS,SAAS;AACtB,cAAA,sBAAsB,aAAa,IAAI,KAAK;AAClD,YAAI,wBAAwB,QAAW;AACtC,cAAI,wBAAwB,iBAAiB;AAC5C;AAAA,UAAA;AAED,gBAAM,IAAIE,QAAA;AAAA,YACT,qCAAqC,KAAK;AAAA,UAC3C;AAAA,QAAA;AAEY,qBAAA,IAAI,OAAO,eAAe;AAAA,MAAA;AAAA,IACxC;AAGM,WAAA;AAAA,EAAA;AAGT;;"}
1
+ {"version":3,"file":"MarkerTreeGenerator.cjs","sources":["../../../../../packages/react-binding/src/markers/MarkerTreeGenerator.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { Alias } from '@contember/binding'\nimport {\n\tBindingError,\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tEntityListSubTreeMarker,\n\tEntitySubTreeMarker,\n\tEnvironment,\n\tFieldMarker,\n\tHasManyRelationMarker,\n\tHasOneRelationMarker,\n\tMarkerTreeRoot,\n} from '@contember/binding'\nimport { MarkerStaticAnalyzer } from './MarkerStaticAnalyzer'\n\ntype Markers = FieldMarker | HasOneRelationMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker | HasManyRelationMarker\n\nexport class MarkerTreeGenerator {\n\tpublic constructor(private sourceTree: ReactNode, private environment: Environment = Environment.create()) {}\n\n\tpublic generate(): MarkerTreeRoot {\n\t\tconst analyzer = new MarkerStaticAnalyzer()\n\t\tconst collectedMarkers = analyzer.processChildren(this.sourceTree, this.environment)\n\t\tif (collectedMarkers === undefined) {\n\t\t\treturn new MarkerTreeRoot(new Map(), new Map())\n\t\t}\n\n\t\tif (collectedMarkers instanceof EntityFieldMarkersContainer) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.fields.markers.size) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.parentReference !== undefined) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.subTrees === undefined) {\n\t\t\tthrow new BindingError()\n\t\t}\n\n\t\tconst subTrees = collectedMarkers.subTrees\n\n\t\treturn new MarkerTreeRoot(subTrees, this.generatePlaceholdersByAliases(subTrees))\n\t}\n\n\tprivate generatePlaceholdersByAliases(\n\t\thoistedSubTrees: ReadonlyMap<string, EntitySubTreeMarker | EntityListSubTreeMarker>,\n\t): Map<Alias, string> {\n\t\tconst placeholders = new Map<Alias, string>()\n\n\t\tfor (const [placeholderName, subTree] of hoistedSubTrees) {\n\t\t\tconst aliases = subTree.parameters.alias\n\t\t\tif (aliases === undefined || aliases.size === 0) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tfor (const alias of aliases) {\n\t\t\t\tconst existingPlaceholder = placeholders.get(alias)\n\t\t\t\tif (existingPlaceholder !== undefined) {\n\t\t\t\t\tif (existingPlaceholder === placeholderName) {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`Detected the same sub-tree alias '${alias}' referring to sub-trees with different parameters!`,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tplaceholders.set(alias, placeholderName)\n\t\t\t}\n\t\t}\n\n\t\treturn placeholders\n\t}\n}\n"],"names":["Environment","MarkerStaticAnalyzer","MarkerTreeRoot","EntityFieldMarkersContainer","BindingError"],"mappings":";;;;AAkBO,MAAM,oBAAoB;AAAA,EACzB,YAAoB,YAA+B,cAA2BA,QAAAA,YAAY,UAAU;AAAhF,SAAA,aAAA;AAA+B,SAAA,cAAA;AAAA,EAAkD;AAAA,EAErG,WAA2B;AACjC,UAAM,WAAW,IAAIC,0CAAA;AACrB,UAAM,mBAAmB,SAAS,gBAAgB,KAAK,YAAY,KAAK,WAAW;AACnF,QAAI,qBAAqB,QAAW;AACnC,aAAO,IAAIC,QAAAA,eAAe,oBAAI,OAAO,oBAAI,KAAK;AAAA,IAC/C;AAEA,QAAI,4BAA4BC,QAAAA,6BAA6B;AAC5D,YAAM,IAAIC,QAAAA,aAAA;AAAA,IACX;AACA,QAAI,iBAAiB,OAAO,QAAQ,MAAM;AACzC,YAAM,IAAIA,QAAAA,aAAA;AAAA,IACX;AACA,QAAI,iBAAiB,oBAAoB,QAAW;AACnD,YAAM,IAAIA,QAAAA,aAAA;AAAA,IACX;AACA,QAAI,iBAAiB,aAAa,QAAW;AAC5C,YAAM,IAAIA,QAAAA,aAAA;AAAA,IACX;AAEA,UAAM,WAAW,iBAAiB;AAElC,WAAO,IAAIF,QAAAA,eAAe,UAAU,KAAK,8BAA8B,QAAQ,CAAC;AAAA,EACjF;AAAA,EAEQ,8BACP,iBACqB;AACrB,UAAM,mCAAmB,IAAA;AAEzB,eAAW,CAAC,iBAAiB,OAAO,KAAK,iBAAiB;AACzD,YAAM,UAAU,QAAQ,WAAW;AACnC,UAAI,YAAY,UAAa,QAAQ,SAAS,GAAG;AAChD;AAAA,MACD;AACA,iBAAW,SAAS,SAAS;AAC5B,cAAM,sBAAsB,aAAa,IAAI,KAAK;AAClD,YAAI,wBAAwB,QAAW;AACtC,cAAI,wBAAwB,iBAAiB;AAC5C;AAAA,UACD;AACA,gBAAM,IAAIE,QAAAA;AAAAA,YACT,qCAAqC,KAAK;AAAA,UAAA;AAAA,QAE5C;AACA,qBAAa,IAAI,OAAO,eAAe;AAAA,MACxC;AAAA,IACD;AAEA,WAAO;AAAA,EACR;AACD;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarkerTreeGenerator.js","sources":["../../../../../packages/react-binding/src/markers/MarkerTreeGenerator.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { Alias } from '@contember/binding'\nimport {\n\tBindingError,\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tEntityListSubTreeMarker,\n\tEntitySubTreeMarker,\n\tEnvironment,\n\tFieldMarker,\n\tHasManyRelationMarker,\n\tHasOneRelationMarker,\n\tMarkerTreeRoot,\n} from '@contember/binding'\nimport { MarkerStaticAnalyzer } from './MarkerStaticAnalyzer'\n\ntype Markers = FieldMarker | HasOneRelationMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker | HasManyRelationMarker\n\nexport class MarkerTreeGenerator {\n\n\tpublic constructor(private sourceTree: ReactNode, private environment: Environment = Environment.create()) {}\n\n\tpublic generate(): MarkerTreeRoot {\n\t\tconst analyzer = new MarkerStaticAnalyzer()\n\t\tconst collectedMarkers = analyzer.processChildren(this.sourceTree, this.environment)\n\t\tif (collectedMarkers === undefined) {\n\t\t\treturn new MarkerTreeRoot(new Map(), new Map())\n\t\t}\n\n\t\tif (collectedMarkers instanceof EntityFieldMarkersContainer) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.fields.markers.size) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.parentReference !== undefined) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.subTrees === undefined) {\n\t\t\tthrow new BindingError()\n\t\t}\n\n\t\tconst subTrees = collectedMarkers.subTrees\n\n\t\treturn new MarkerTreeRoot(subTrees, this.generatePlaceholdersByAliases(subTrees))\n\t}\n\n\tprivate generatePlaceholdersByAliases(\n\t\thoistedSubTrees: ReadonlyMap<string, EntitySubTreeMarker | EntityListSubTreeMarker>,\n\t): Map<Alias, string> {\n\t\tconst placeholders = new Map<Alias, string>()\n\n\t\tfor (const [placeholderName, subTree] of hoistedSubTrees) {\n\t\t\tconst aliases = subTree.parameters.alias\n\t\t\tif (aliases === undefined || aliases.size === 0) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tfor (const alias of aliases) {\n\t\t\t\tconst existingPlaceholder = placeholders.get(alias)\n\t\t\t\tif (existingPlaceholder !== undefined) {\n\t\t\t\t\tif (existingPlaceholder === placeholderName) {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`Detected the same sub-tree alias '${alias}' referring to sub-trees with different parameters!`,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tplaceholders.set(alias, placeholderName)\n\t\t\t}\n\t\t}\n\n\t\treturn placeholders\n\t}\n\n}\n"],"names":[],"mappings":";;AAkBO,MAAM,oBAAoB;AAAA,EAEzB,YAAoB,YAA+B,cAA2B,YAAY,UAAU;AAAhF,SAAA,aAAA;AAA+B,SAAA,cAAA;AAAA,EAAA;AAAA,EAEnD,WAA2B;AAC3B,UAAA,WAAW,IAAI,qBAAqB;AAC1C,UAAM,mBAAmB,SAAS,gBAAgB,KAAK,YAAY,KAAK,WAAW;AACnF,QAAI,qBAAqB,QAAW;AACnC,aAAO,IAAI,eAAe,oBAAI,OAAO,oBAAI,KAAK;AAAA,IAAA;AAG/C,QAAI,4BAA4B,6BAA6B;AAC5D,YAAM,IAAI,aAAa;AAAA,IAAA;AAEpB,QAAA,iBAAiB,OAAO,QAAQ,MAAM;AACzC,YAAM,IAAI,aAAa;AAAA,IAAA;AAEpB,QAAA,iBAAiB,oBAAoB,QAAW;AACnD,YAAM,IAAI,aAAa;AAAA,IAAA;AAEpB,QAAA,iBAAiB,aAAa,QAAW;AAC5C,YAAM,IAAI,aAAa;AAAA,IAAA;AAGxB,UAAM,WAAW,iBAAiB;AAElC,WAAO,IAAI,eAAe,UAAU,KAAK,8BAA8B,QAAQ,CAAC;AAAA,EAAA;AAAA,EAGzE,8BACP,iBACqB;AACf,UAAA,mCAAmB,IAAmB;AAE5C,eAAW,CAAC,iBAAiB,OAAO,KAAK,iBAAiB;AACnD,YAAA,UAAU,QAAQ,WAAW;AACnC,UAAI,YAAY,UAAa,QAAQ,SAAS,GAAG;AAChD;AAAA,MAAA;AAED,iBAAW,SAAS,SAAS;AACtB,cAAA,sBAAsB,aAAa,IAAI,KAAK;AAClD,YAAI,wBAAwB,QAAW;AACtC,cAAI,wBAAwB,iBAAiB;AAC5C;AAAA,UAAA;AAED,gBAAM,IAAI;AAAA,YACT,qCAAqC,KAAK;AAAA,UAC3C;AAAA,QAAA;AAEY,qBAAA,IAAI,OAAO,eAAe;AAAA,MAAA;AAAA,IACxC;AAGM,WAAA;AAAA,EAAA;AAGT;"}
1
+ {"version":3,"file":"MarkerTreeGenerator.js","sources":["../../../../../packages/react-binding/src/markers/MarkerTreeGenerator.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { Alias } from '@contember/binding'\nimport {\n\tBindingError,\n\tEntityFieldMarkersContainer,\n\tEntityFieldsWithHoistablesMarker,\n\tEntityListSubTreeMarker,\n\tEntitySubTreeMarker,\n\tEnvironment,\n\tFieldMarker,\n\tHasManyRelationMarker,\n\tHasOneRelationMarker,\n\tMarkerTreeRoot,\n} from '@contember/binding'\nimport { MarkerStaticAnalyzer } from './MarkerStaticAnalyzer'\n\ntype Markers = FieldMarker | HasOneRelationMarker | EntityFieldMarkersContainer | EntityFieldsWithHoistablesMarker | HasManyRelationMarker\n\nexport class MarkerTreeGenerator {\n\tpublic constructor(private sourceTree: ReactNode, private environment: Environment = Environment.create()) {}\n\n\tpublic generate(): MarkerTreeRoot {\n\t\tconst analyzer = new MarkerStaticAnalyzer()\n\t\tconst collectedMarkers = analyzer.processChildren(this.sourceTree, this.environment)\n\t\tif (collectedMarkers === undefined) {\n\t\t\treturn new MarkerTreeRoot(new Map(), new Map())\n\t\t}\n\n\t\tif (collectedMarkers instanceof EntityFieldMarkersContainer) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.fields.markers.size) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.parentReference !== undefined) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\tif (collectedMarkers.subTrees === undefined) {\n\t\t\tthrow new BindingError()\n\t\t}\n\n\t\tconst subTrees = collectedMarkers.subTrees\n\n\t\treturn new MarkerTreeRoot(subTrees, this.generatePlaceholdersByAliases(subTrees))\n\t}\n\n\tprivate generatePlaceholdersByAliases(\n\t\thoistedSubTrees: ReadonlyMap<string, EntitySubTreeMarker | EntityListSubTreeMarker>,\n\t): Map<Alias, string> {\n\t\tconst placeholders = new Map<Alias, string>()\n\n\t\tfor (const [placeholderName, subTree] of hoistedSubTrees) {\n\t\t\tconst aliases = subTree.parameters.alias\n\t\t\tif (aliases === undefined || aliases.size === 0) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tfor (const alias of aliases) {\n\t\t\t\tconst existingPlaceholder = placeholders.get(alias)\n\t\t\t\tif (existingPlaceholder !== undefined) {\n\t\t\t\t\tif (existingPlaceholder === placeholderName) {\n\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`Detected the same sub-tree alias '${alias}' referring to sub-trees with different parame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AAI,OAAO,eAAe;AAAA,MACxC;AAAA,IACD;AAEA,WAAO;AAAA,EACR;AACD;"}
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
2
  import type { BindingOperations } from '@contember/binding';
3
3
  export declare const defaultBindingOperations: Readonly<BindingOperations<ReactNode>>;
4
- export declare const BindingOperationsContext: React.Context<BindingOperations<ReactNode>>;
4
+ export declare const BindingOperationsContext: import("react").Context<BindingOperations<ReactNode>>;
5
5
  //# sourceMappingURL=BindingOperationsContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BindingOperationsContext.d.ts","sourceRoot":"","sources":["../../../src/accessorPropagation/BindingOperationsContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAW3D,eAAO,MAAM,wBAAwB,wCAkBnC,CAAA;AAEF,eAAO,MAAM,wBAAwB,6CAAwE,CAAA"}
1
+ {"version":3,"file":"BindingOperationsContext.d.ts","sourceRoot":"","sources":["../../../src/accessorPropagation/BindingOperationsContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAW3D,eAAO,MAAM,wBAAwB,wCAkBnC,CAAA;AAEF,eAAO,MAAM,wBAAwB,uDAAwE,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import { EntityAccessor } from '@contember/binding';
2
- export declare const EntityKeyContext: React.Context<string | (() => EntityAccessor) | undefined>;
2
+ export declare const EntityKeyContext: import("react").Context<string | (() => EntityAccessor) | undefined>;
3
3
  //# sourceMappingURL=EntityKeyContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityKeyContext.d.ts","sourceRoot":"","sources":["../../../src/accessorPropagation/EntityKeyContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAGnD,eAAO,MAAM,gBAAgB,gCAA6C,cAAc,cAAa,CAAA"}
1
+ {"version":3,"file":"EntityKeyContext.d.ts","sourceRoot":"","sources":["../../../src/accessorPropagation/EntityKeyContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAGnD,eAAO,MAAM,gBAAgB,0CAA6C,cAAc,cAAa,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Environment } from '@contember/binding';
3
- export declare const EnvironmentContext: React.Context<Environment<Environment.AnyNode | undefined>>;
3
+ export declare const EnvironmentContext: import("react").Context<Environment<Environment.AnyNode | undefined>>;
4
4
  export interface EnvironmentMiddlewareProps<T extends unknown[]> {
5
5
  children: ReactNode;
6
6
  create: (env: Environment, args: T) => Environment;
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentContext.d.ts","sourceRoot":"","sources":["../../../src/accessorPropagation/EnvironmentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,SAAS,EAAwB,MAAM,OAAO,CAAA;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAIhD,eAAO,MAAM,kBAAkB,6DAAmD,CAAA;AAGlF,MAAM,WAAW,0BAA0B,CAAC,CAAC,SAAS,OAAO,EAAE;IAC9D,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,KAAK,WAAW,CAAA;IAClD,IAAI,CAAC,EAAE,CAAC,CAAA;CACR;AAED,eAAO,MAAM,qBAAqB,EAmB7B,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,KAAK,SAAS,CAAA;AAE7E,MAAM,WAAW,6BAA6B,CAAC,CAAC,EAAE,CAAC;IAClD,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACtC,KAAK,EAAE,CAAC,CAAA;CACR;AAED,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,SAShG,CAAA"}
1
+ {"version":3,"file":"EnvironmentContext.d.ts","sourceRoot":"","sources":["../../../src/accessorPropagation/EnvironmentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,SAAS,EAAwB,MAAM,OAAO,CAAA;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAIhD,eAAO,MAAM,kBAAkB,uEAAmD,CAAA;AAGlF,MAAM,WAAW,0BAA0B,CAAC,CAAC,SAAS,OAAO,EAAE;IAC9D,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,KAAK,WAAW,CAAA;IAClD,IAAI,CAAC,EAAE,CAAC,CAAA;CACR;AAED,eAAO,MAAM,qBAAqB,EAmB7B,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,KAAK,EAAE,0BAA0B,CAAC,CAAC,CAAC,KAAK,SAAS,CAAA;AAE7E,MAAM,WAAW,6BAA6B,CAAC,CAAC,EAAE,CAAC;IAClD,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACtC,KAAK,EAAE,CAAC,CAAA;CACR;AAED,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,SAShG,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const TreeRootIdContext: React.Context<string | undefined>;
1
+ export declare const TreeRootIdContext: import("react").Context<string | undefined>;
2
2
  //# sourceMappingURL=TreeRootIdContext.d.ts.map