@rebasepro/cms 0.0.1-canary.4d4fb3e → 0.16.1-canary.g37d7b4f

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 (875) hide show
  1. package/LICENSE +21 -6
  2. package/README.md +139 -0
  3. package/dist/CollectionEditorDialog-B-akreOU.js +3573 -0
  4. package/dist/CollectionEditorDialog-B-akreOU.js.map +1 -0
  5. package/dist/PropertyEditView-CiY84wkR.js +3860 -0
  6. package/dist/PropertyEditView-CiY84wkR.js.map +1 -0
  7. package/dist/RouterCollectionsStudioView-DkAWda4N.js +188 -0
  8. package/dist/RouterCollectionsStudioView-DkAWda4N.js.map +1 -0
  9. package/dist/SchemaChangeDialog-DceT8QFX.js +394 -0
  10. package/dist/SchemaChangeDialog-DceT8QFX.js.map +1 -0
  11. package/dist/collection_editor/CollectionEditorDialogsContext.d.ts +1 -1
  12. package/dist/collection_editor/ConfigControllerProvider.d.ts +6 -15
  13. package/dist/collection_editor/_cms_internals.d.ts +25 -25
  14. package/dist/collection_editor/api/generateCollectionApi.d.ts +8 -7
  15. package/dist/collection_editor/api/index.d.ts +1 -1
  16. package/dist/collection_editor/extensibility_types.d.ts +135 -0
  17. package/dist/collection_editor/index.d.ts +21 -16
  18. package/dist/collection_editor/liveSchemaClient.d.ts +182 -0
  19. package/dist/collection_editor/relation_kinds.d.ts +23 -0
  20. package/dist/collection_editor/serializable_types.d.ts +447 -0
  21. package/dist/collection_editor/serializable_utils.d.ts +72 -0
  22. package/dist/collection_editor/types/collection_editor_controller.d.ts +13 -11
  23. package/dist/collection_editor/types/collection_inference.d.ts +3 -2
  24. package/dist/collection_editor/types/config_controller.d.ts +33 -14
  25. package/dist/collection_editor/ui/AddKanbanColumnAction.d.ts +7 -5
  26. package/dist/collection_editor/ui/CollectionViewHeaderAction.d.ts +8 -5
  27. package/dist/collection_editor/ui/EditorCollectionAction.d.ts +2 -2
  28. package/dist/collection_editor/ui/EditorCollectionActionStart.d.ts +2 -2
  29. package/dist/collection_editor/ui/EditorEntityAction.d.ts +2 -2
  30. package/dist/collection_editor/ui/HomePageEditorCollectionAction.d.ts +2 -2
  31. package/dist/collection_editor/ui/KanbanSetupAction.d.ts +7 -5
  32. package/dist/collection_editor/ui/MissingReferenceWidget.d.ts +1 -1
  33. package/dist/collection_editor/ui/NewCollectionButton.d.ts +1 -1
  34. package/dist/collection_editor/ui/NewCollectionCard.d.ts +2 -2
  35. package/dist/collection_editor/ui/PropertyAddColumnComponent.d.ts +6 -5
  36. package/dist/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.d.ts +5 -5
  37. package/dist/collection_editor/ui/collection_editor/AIModifiedPathsContext.d.ts +2 -2
  38. package/dist/collection_editor/ui/collection_editor/CollectionDetailsForm.d.ts +7 -7
  39. package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.d.ts +14 -14
  40. package/dist/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.d.ts +5 -5
  41. package/dist/collection_editor/ui/collection_editor/CollectionJsonImportDialog.d.ts +4 -3
  42. package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +18 -7
  43. package/dist/collection_editor/ui/collection_editor/CollectionRLSTab.d.ts +3 -12
  44. package/dist/collection_editor/ui/collection_editor/CollectionRelationsTab.d.ts +61 -1
  45. package/dist/collection_editor/ui/collection_editor/CollectionStudioView.d.ts +15 -2
  46. package/dist/collection_editor/ui/collection_editor/CollectionYupValidation.d.ts +1 -9
  47. package/dist/collection_editor/ui/collection_editor/CollectionsStudioView.d.ts +26 -3
  48. package/dist/collection_editor/ui/collection_editor/DisplaySettingsForm.d.ts +4 -2
  49. package/dist/collection_editor/ui/collection_editor/EntityActionsEditTab.d.ts +4 -3
  50. package/dist/collection_editor/ui/collection_editor/EntityActionsSelectDialog.d.ts +2 -1
  51. package/dist/collection_editor/ui/collection_editor/EntityCustomViewsSelectDialog.d.ts +2 -1
  52. package/dist/collection_editor/ui/collection_editor/EnumForm.d.ts +2 -1
  53. package/dist/collection_editor/ui/collection_editor/GeneralSettingsForm.d.ts +8 -4
  54. package/dist/collection_editor/ui/collection_editor/GetCodeDialog.d.ts +4 -3
  55. package/dist/collection_editor/ui/collection_editor/KanbanConfigSection.d.ts +2 -1
  56. package/dist/collection_editor/ui/collection_editor/LayoutModeSwitch.d.ts +3 -3
  57. package/dist/collection_editor/ui/collection_editor/PropertyEditView.d.ts +18 -5
  58. package/dist/collection_editor/ui/collection_editor/PropertyFieldPreview.d.ts +2 -2
  59. package/dist/collection_editor/ui/collection_editor/PropertyTree.d.ts +4 -3
  60. package/dist/collection_editor/ui/collection_editor/RouterCollectionStudioView.d.ts +15 -0
  61. package/dist/collection_editor/ui/collection_editor/RouterCollectionsStudioView.d.ts +14 -0
  62. package/dist/collection_editor/ui/collection_editor/SchemaChangeDialog.d.ts +85 -0
  63. package/dist/collection_editor/ui/collection_editor/SubcollectionsEditTab.d.ts +11 -8
  64. package/dist/collection_editor/ui/collection_editor/SwitchControl.d.ts +3 -2
  65. package/dist/collection_editor/ui/collection_editor/ViewModeSwitch.d.ts +2 -2
  66. package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.d.ts +2 -2
  67. package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.d.ts +5 -4
  68. package/dist/collection_editor/ui/collection_editor/import/clean_import_data.d.ts +1 -1
  69. package/dist/collection_editor/ui/collection_editor/properties/BlockPropertyField.d.ts +3 -2
  70. package/dist/collection_editor/ui/collection_editor/properties/BooleanPropertyField.d.ts +2 -1
  71. package/dist/collection_editor/ui/collection_editor/properties/DateTimePropertyField.d.ts +2 -1
  72. package/dist/collection_editor/ui/collection_editor/properties/EnumPropertyField.d.ts +2 -1
  73. package/dist/collection_editor/ui/collection_editor/properties/KeyValuePropertyField.d.ts +2 -1
  74. package/dist/collection_editor/ui/collection_editor/properties/MapPropertyField.d.ts +3 -2
  75. package/dist/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.d.ts +2 -1
  76. package/dist/collection_editor/ui/collection_editor/properties/NumberPropertyField.d.ts +2 -1
  77. package/dist/collection_editor/ui/collection_editor/properties/ReferencePropertyField.d.ts +3 -2
  78. package/dist/collection_editor/ui/collection_editor/properties/RelationPropertyField.d.ts +3 -8
  79. package/dist/collection_editor/ui/collection_editor/properties/RepeatPropertyField.d.ts +3 -2
  80. package/dist/collection_editor/ui/collection_editor/properties/StoragePropertyField.d.ts +2 -1
  81. package/dist/collection_editor/ui/collection_editor/properties/StringPropertyField.d.ts +2 -1
  82. package/dist/collection_editor/ui/collection_editor/properties/UrlPropertyField.d.ts +2 -1
  83. package/dist/collection_editor/ui/collection_editor/properties/VectorPropertyField.d.ts +4 -0
  84. package/dist/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.d.ts +2 -1
  85. package/dist/collection_editor/ui/collection_editor/properties/conditions/ConditionsEditor.d.ts +2 -1
  86. package/dist/collection_editor/ui/collection_editor/properties/conditions/ConditionsPanel.d.ts +1 -1
  87. package/dist/collection_editor/ui/collection_editor/properties/conditions/EnumConditionsEditor.d.ts +2 -1
  88. package/dist/collection_editor/ui/collection_editor/properties/conditions/index.d.ts +6 -6
  89. package/dist/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.d.ts +2 -1
  90. package/dist/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.d.ts +2 -1
  91. package/dist/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.d.ts +2 -1
  92. package/dist/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.d.ts +2 -1
  93. package/dist/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.d.ts +1 -1
  94. package/dist/collection_editor/ui/collection_editor/templates/blog_template.d.ts +2 -2
  95. package/dist/collection_editor/ui/collection_editor/templates/pages_template.d.ts +2 -2
  96. package/dist/collection_editor/ui/collection_editor/templates/products_template.d.ts +2 -2
  97. package/dist/collection_editor/ui/collection_editor/templates/users_template.d.ts +2 -2
  98. package/dist/collection_editor/ui/collection_editor/utils/strings.d.ts +1 -1
  99. package/dist/collection_editor/ui/collection_editor/utils/supported_fields.d.ts +1 -1
  100. package/dist/collection_editor/ui/collection_editor/utils/update_property_for_widget.d.ts +2 -1
  101. package/dist/collection_editor/useCollectionEditorController.d.ts +1 -1
  102. package/dist/collection_editor/useCollectionsConfigController.d.ts +1 -1
  103. package/dist/collection_editor/useJsonCollectionsConfigController.d.ts +37 -0
  104. package/dist/collection_editor/useLiveSchemaEditing.d.ts +71 -0
  105. package/dist/collection_editor/useLocalCollectionsConfigController.d.ts +11 -3
  106. package/dist/collection_editor/useSafeSnackbarController.d.ts +2 -0
  107. package/dist/collection_editor/validateCollectionJson.d.ts +2 -2
  108. package/dist/collection_editor_ui.d.ts +12 -8
  109. package/dist/collection_editor_ui.js +33 -11
  110. package/dist/collection_editor_ui.js.map +1 -1
  111. package/dist/components/AdditionalFieldValue.d.ts +25 -0
  112. package/dist/components/AdminModeSyncer.d.ts +1 -1
  113. package/dist/components/ArrayContainer.d.ts +6 -7
  114. package/dist/components/ClearFilterSortButton.d.ts +9 -3
  115. package/dist/components/CollectionEditorDialogs.d.ts +4 -3
  116. package/dist/components/CollectionPanel.d.ts +58 -0
  117. package/dist/components/{EntityCollectionTable/EntityCollectionRowActions.d.ts → CollectionTableBinding/CollectionRowActions.d.ts} +7 -7
  118. package/dist/components/CollectionTableBinding/CollectionTableBinding.d.ts +28 -0
  119. package/dist/components/{EntityCollectionTable/EntityCollectionTableProps.d.ts → CollectionTableBinding/CollectionTableBindingProps.d.ts} +7 -6
  120. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/PropertyTableCell.d.ts +1 -1
  121. package/dist/components/CollectionTableBinding/column_utils.d.ts +39 -0
  122. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/fields/TableMultipleRelationField.d.ts +7 -7
  123. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/fields/TableReferenceField.d.ts +7 -7
  124. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/fields/TableRelationField.d.ts +7 -7
  125. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/fields/TableRelationSelectorField.d.ts +3 -2
  126. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/fields/TableStorageUpload.d.ts +5 -5
  127. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/fields/VirtualTableSelect.d.ts +1 -1
  128. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/fields/VirtualTableUserSelect.d.ts +1 -1
  129. package/dist/components/CollectionTableBinding/index.d.ts +6 -0
  130. package/dist/components/CollectionTableBinding/internal/CollectionTableToolbar.d.ts +25 -0
  131. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/internal/EntityTableCell.d.ts +3 -3
  132. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/internal/EntityTableCellActions.d.ts +1 -1
  133. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/internal/common.d.ts +2 -2
  134. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/internal/popup_field/PopupFormField.d.ts +8 -7
  135. package/dist/components/{EntityCollectionTable → CollectionTableBinding}/table_bindings.d.ts +4 -3
  136. package/dist/components/CollectionViewBinding/BoardCardBinding.d.ts +31 -0
  137. package/dist/components/CollectionViewBinding/CollectionBoardViewBinding.d.ts +22 -0
  138. package/dist/components/{EntityCollectionView/EntityCollectionCardView.d.ts → CollectionViewBinding/CollectionCardViewBinding.d.ts} +6 -6
  139. package/dist/components/CollectionViewBinding/CollectionListViewBinding.d.ts +50 -0
  140. package/dist/components/CollectionViewBinding/CollectionViewActions.d.ts +24 -0
  141. package/dist/components/CollectionViewBinding/CollectionViewBinding.d.ts +58 -0
  142. package/dist/components/CollectionViewBinding/CollectionViewStartActions.d.ts +33 -0
  143. package/dist/components/CollectionViewBinding/EntityCardBinding.d.ts +23 -0
  144. package/dist/components/CollectionViewBinding/FilterPresetsButton.d.ts +23 -0
  145. package/dist/components/{EntityCollectionView → CollectionViewBinding}/FiltersDialog.d.ts +3 -2
  146. package/dist/components/CollectionViewBinding/SearchExplanation.d.ts +48 -0
  147. package/dist/components/CollectionViewBinding/SearchHighlight.d.ts +101 -0
  148. package/dist/components/CollectionViewBinding/SlotValue.d.ts +63 -0
  149. package/dist/components/CollectionViewBinding/SortButton.d.ts +40 -0
  150. package/dist/components/CollectionViewBinding/SplitListCloseButton.d.ts +23 -0
  151. package/dist/components/CollectionViewBinding/SplitListShowButton.d.ts +12 -0
  152. package/dist/components/CollectionViewBinding/SplitListView.d.ts +58 -0
  153. package/dist/components/CollectionViewBinding/SplitViewContext.d.ts +23 -0
  154. package/dist/components/{EntityCollectionView → CollectionViewBinding}/ViewModeToggle.d.ts +12 -5
  155. package/dist/components/{EntityCollectionView → CollectionViewBinding}/hooks/useCollectionInlineEditor.d.ts +4 -3
  156. package/dist/components/CollectionViewBinding/hooks/useKanbanDragAndDrop.d.ts +47 -0
  157. package/dist/components/{EntityCollectionView → CollectionViewBinding}/useBoardDataController.d.ts +4 -4
  158. package/dist/components/CollectionViewBinding/usePreviewSlots.d.ts +154 -0
  159. package/dist/components/{EntityCollectionView → CollectionViewBinding}/useSelectionController.d.ts +2 -1
  160. package/dist/components/DefaultAppBar.d.ts +18 -1
  161. package/dist/components/DefaultDrawer.d.ts +55 -7
  162. package/dist/components/DeleteEntityDialog.d.ts +14 -5
  163. package/dist/components/DetailViewBinding.d.ts +48 -0
  164. package/dist/components/DrawerNavigationGroup.d.ts +11 -10
  165. package/dist/components/DrawerNavigationItem.d.ts +16 -4
  166. package/dist/components/EditFormActions.d.ts +14 -0
  167. package/dist/components/EditViewBinding.d.ts +92 -0
  168. package/dist/components/EntityDisplayHeader.d.ts +53 -0
  169. package/dist/components/EntityIdentityBar.d.ts +95 -0
  170. package/dist/components/EntityInspector.d.ts +35 -0
  171. package/dist/components/{EntityPreview.d.ts → EntityPreviewBinding.d.ts} +15 -15
  172. package/dist/components/EntityPreviewNesting.d.ts +25 -0
  173. package/dist/components/EntityViewBinding.d.ts +76 -0
  174. package/dist/components/FieldCaption.d.ts +1 -1
  175. package/dist/components/HomePage/ContentHomePage.d.ts +2 -2
  176. package/dist/components/HomePage/FavouritesView.d.ts +1 -1
  177. package/dist/components/HomePage/HomePageDnD.d.ts +8 -8
  178. package/dist/components/HomePage/NavigationCard.d.ts +2 -1
  179. package/dist/components/HomePage/NavigationCardBinding.d.ts +3 -2
  180. package/dist/components/HomePage/NavigationGroup.d.ts +2 -2
  181. package/dist/components/HomePage/RenameGroupDialog.d.ts +2 -1
  182. package/dist/components/HomePage/SmallNavigationCard.d.ts +1 -1
  183. package/dist/components/HomePage/index.d.ts +4 -4
  184. package/dist/components/InlineEntityPreview.d.ts +47 -0
  185. package/dist/components/JsonPreviewBinding.d.ts +4 -0
  186. package/dist/components/PropertyCollectionView.d.ts +4 -3
  187. package/dist/components/PropertyConfigBadge.d.ts +1 -1
  188. package/dist/components/PropertyIdCopyTooltip.d.ts +4 -4
  189. package/dist/components/RebaseAuthGate.d.ts +2 -2
  190. package/dist/components/RebaseCMS.d.ts +3 -3
  191. package/dist/components/RebaseLayout.d.ts +12 -7
  192. package/dist/components/RebaseNavigation.d.ts +4 -4
  193. package/dist/components/RebaseRouteDefs.d.ts +3 -3
  194. package/dist/components/RebaseShell.d.ts +8 -2
  195. package/dist/components/ReferenceTable/{EntitySelectionTable.d.ts → SelectionTableBinding.d.ts} +6 -6
  196. package/dist/components/ReferenceWidget.d.ts +4 -3
  197. package/dist/components/RelationSelector.d.ts +44 -4
  198. package/dist/components/SearchIconsView.d.ts +2 -1
  199. package/dist/components/SelectableTable/SelectableTable.d.ts +18 -11
  200. package/dist/components/SelectableTable/SelectableTableContext.d.ts +3 -3
  201. package/dist/components/SelectableTable/SelectionStore.d.ts +20 -0
  202. package/dist/components/SelectableTable/filters/BooleanFilterField.d.ts +9 -3
  203. package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +10 -3
  204. package/dist/components/SelectableTable/filters/FilterFieldBinding.d.ts +40 -0
  205. package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +10 -3
  206. package/dist/components/SelectableTable/filters/RelationFilterField.d.ts +35 -1
  207. package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +10 -3
  208. package/dist/components/SelectableTable/filters/null_filter.d.ts +46 -0
  209. package/dist/components/SideDialogs.d.ts +2 -2
  210. package/dist/components/SidePanelBinding.d.ts +11 -0
  211. package/dist/components/{SideEntityProvider.d.ts → SidePanelProvider.d.ts} +9 -9
  212. package/dist/components/UserSelector.d.ts +25 -0
  213. package/dist/components/admin/CreationResultDialog.d.ts +6 -0
  214. package/dist/components/admin/index.d.ts +1 -3
  215. package/dist/components/app/AppBar.d.ts +2 -2
  216. package/dist/components/app/Drawer.d.ts +9 -2
  217. package/dist/components/app/Scaffold.d.ts +18 -1
  218. package/dist/components/app/index.d.ts +4 -4
  219. package/dist/components/common/default_entity_actions.d.ts +14 -1
  220. package/dist/components/common/index.d.ts +1 -1
  221. package/dist/components/field_configs.d.ts +21 -3
  222. package/dist/components/history/EntityHistoryEntry.d.ts +5 -5
  223. package/dist/components/history/EntityHistoryView.d.ts +5 -2
  224. package/dist/components/history/LastEditedByFormAction.d.ts +3 -2
  225. package/dist/components/history/LastEditedByIndicator.d.ts +4 -3
  226. package/dist/components/history/UserChip.d.ts +1 -1
  227. package/dist/components/history/index.d.ts +5 -5
  228. package/dist/components/index.d.ts +45 -42
  229. package/dist/contexts/BreacrumbsContext.d.ts +1 -1
  230. package/dist/contexts/SideDialogsControllerContext.d.ts +1 -1
  231. package/dist/contexts/SidePanelControllerContext.d.ts +3 -0
  232. package/dist/data_export/export/BasicExportAction.d.ts +2 -1
  233. package/dist/data_export/export/ExportCollectionAction.d.ts +5 -4
  234. package/dist/data_export/export/export.d.ts +10 -3
  235. package/dist/data_export/export/fetch_export_data.d.ts +48 -0
  236. package/dist/data_export/export/index.d.ts +4 -3
  237. package/dist/data_export/index.d.ts +1 -1
  238. package/dist/data_import/components/DataNewPropertiesMapping.d.ts +2 -2
  239. package/dist/data_import/components/ImportFileUpload.d.ts +1 -1
  240. package/dist/data_import/components/ImportNewPropertyFieldPreview.d.ts +2 -1
  241. package/dist/data_import/components/ImportSaveInProgress.d.ts +4 -4
  242. package/dist/data_import/components/index.d.ts +4 -4
  243. package/dist/data_import/hooks/index.d.ts +1 -1
  244. package/dist/data_import/hooks/useImportConfig.d.ts +1 -1
  245. package/dist/data_import/import/ImportCollectionAction.d.ts +7 -5
  246. package/dist/data_import/import/index.d.ts +1 -1
  247. package/dist/data_import/index.d.ts +5 -5
  248. package/dist/data_import/types/index.d.ts +1 -1
  249. package/dist/data_import/utils/csv.d.ts +30 -0
  250. package/dist/data_import/utils/data.d.ts +3 -2
  251. package/dist/data_import/utils/file_headers.d.ts +6 -1
  252. package/dist/data_import/utils/file_to_json.d.ts +0 -10
  253. package/dist/data_import/utils/index.d.ts +5 -3
  254. package/dist/data_import/utils/save_entities.d.ts +38 -0
  255. package/dist/data_import/utils/transforms.d.ts +20 -0
  256. package/dist/editor/components/SlashCommandMenu.d.ts +4 -3
  257. package/dist/editor/components/editor-bubble.d.ts +5 -1
  258. package/dist/editor/components/image-bubble.d.ts +5 -1
  259. package/dist/editor/components/index.d.ts +8 -8
  260. package/dist/editor/components/table-bubble.d.ts +5 -1
  261. package/dist/editor/editor.d.ts +6 -6
  262. package/dist/editor/index.d.ts +2 -2
  263. package/dist/editor/nodeViews/ImageComponent.d.ts +1 -1
  264. package/dist/editor/nodeViews/ReactNodeView.d.ts +4 -1
  265. package/dist/editor/nodeViews/TaskItemComponent.d.ts +1 -1
  266. package/dist/editor/plugins/index.d.ts +1 -1
  267. package/dist/editor/selectors/color-selector.d.ts +1 -1
  268. package/dist/editor/selectors/link-selector.d.ts +1 -1
  269. package/dist/editor/selectors/node-selector.d.ts +1 -1
  270. package/dist/editor/selectors/text-buttons.d.ts +1 -1
  271. package/dist/editor/types.d.ts +1 -1
  272. package/dist/editor/useProseMirror.d.ts +2 -2
  273. package/dist/editor/utils/remove_classes.d.ts +1 -1
  274. package/dist/editor.js +2901 -0
  275. package/dist/editor.js.map +1 -0
  276. package/dist/export-Ben8E355.js +654 -0
  277. package/dist/export-Ben8E355.js.map +1 -0
  278. package/dist/form/EntityForm.d.ts +12 -10
  279. package/dist/form/EntityFormActions.d.ts +13 -2
  280. package/dist/form/EntityFormBinding.d.ts +27 -0
  281. package/dist/form/PropertyFieldBinding.d.ts +3 -3
  282. package/dist/form/components/FieldBlock.d.ts +84 -0
  283. package/dist/form/components/FieldHelperText.d.ts +1 -1
  284. package/dist/form/components/FormRail.d.ts +31 -0
  285. package/dist/form/components/FormSections.d.ts +30 -0
  286. package/dist/form/components/LabelWithIconAndTooltip.d.ts +1 -1
  287. package/dist/form/components/LocalChangesMenu.d.ts +3 -2
  288. package/dist/form/components/StorageItemPreview.d.ts +3 -2
  289. package/dist/form/components/StorageUploadProgress.d.ts +10 -4
  290. package/dist/form/components/index.d.ts +6 -5
  291. package/dist/form/components/useRailVisible.d.ts +25 -0
  292. package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +3 -2
  293. package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +3 -2
  294. package/dist/form/field_bindings/BinaryFieldBinding.d.ts +25 -0
  295. package/dist/form/field_bindings/BlockFieldBinding.d.ts +3 -2
  296. package/dist/form/field_bindings/DateTimeFieldBinding.d.ts +3 -2
  297. package/dist/form/field_bindings/GeopointFieldBinding.d.ts +34 -0
  298. package/dist/form/field_bindings/KeyValueFieldBinding.d.ts +3 -2
  299. package/dist/form/field_bindings/MapFieldBinding.d.ts +3 -2
  300. package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +5 -4
  301. package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +3 -2
  302. package/dist/form/field_bindings/MultipleRelationFieldBinding.d.ts +3 -2
  303. package/dist/form/field_bindings/ReadOnlyFieldBinding.d.ts +3 -2
  304. package/dist/form/field_bindings/ReferenceFieldBinding.d.ts +3 -2
  305. package/dist/form/field_bindings/RelationFieldBinding.d.ts +3 -2
  306. package/dist/form/field_bindings/RepeatFieldBinding.d.ts +3 -2
  307. package/dist/form/field_bindings/SelectFieldBinding.d.ts +3 -2
  308. package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +6 -5
  309. package/dist/form/field_bindings/SwitchFieldBinding.d.ts +3 -2
  310. package/dist/form/field_bindings/TextFieldBinding.d.ts +3 -2
  311. package/dist/form/field_bindings/UserSelectFieldBinding.d.ts +5 -3
  312. package/dist/form/field_bindings/VectorFieldBinding.d.ts +12 -0
  313. package/dist/form/form_utils.d.ts +46 -0
  314. package/dist/form/index.d.ts +24 -20
  315. package/dist/form/useUndoableDiscard.d.ts +15 -0
  316. package/dist/form/validation.d.ts +3 -3
  317. package/dist/history-DIEVd26f.js +313 -0
  318. package/dist/history-DIEVd26f.js.map +1 -0
  319. package/dist/hooks/index.d.ts +16 -15
  320. package/dist/hooks/navigation/contexts/CollectionRegistryContext.d.ts +2 -2
  321. package/dist/hooks/navigation/contexts/NavigationStateContext.d.ts +1 -1
  322. package/dist/hooks/navigation/contexts/UrlContext.d.ts +1 -1
  323. package/dist/hooks/navigation/contexts/index.d.ts +3 -3
  324. package/dist/hooks/navigation/useAsyncResolver.d.ts +26 -0
  325. package/dist/hooks/navigation/useBuildCollectionRegistryController.d.ts +4 -1
  326. package/dist/hooks/navigation/useBuildNavigationStateController.d.ts +10 -10
  327. package/dist/hooks/navigation/useBuildUrlController.d.ts +1 -1
  328. package/dist/hooks/navigation/useNavigationResolution.d.ts +7 -7
  329. package/dist/hooks/navigation/useResolvedCollections.d.ts +13 -8
  330. package/dist/hooks/navigation/useResolvedViews.d.ts +6 -7
  331. package/dist/hooks/navigation/useTopLevelNavigation.d.ts +4 -4
  332. package/dist/hooks/navigation/utils.d.ts +21 -5
  333. package/dist/hooks/useAdminContext.d.ts +29 -0
  334. package/dist/hooks/useBreadcrumbsController.d.ts +2 -32
  335. package/dist/hooks/useBuildSideDialogsController.d.ts +1 -1
  336. package/dist/hooks/useBuildSidePanel.d.ts +20 -0
  337. package/dist/hooks/useChildViewSource.d.ts +16 -0
  338. package/dist/hooks/useEntityDisplay.d.ts +102 -0
  339. package/dist/hooks/useEntityDisplayTitle.d.ts +27 -0
  340. package/dist/hooks/useHistory.d.ts +33 -0
  341. package/dist/hooks/useRecordActions.d.ts +17 -0
  342. package/dist/hooks/useResolvedNavigationFrom.d.ts +5 -4
  343. package/dist/hooks/useResolvedUsers.d.ts +8 -0
  344. package/dist/hooks/{useEntitySelectionDialog.d.ts → useSelectionDialog.d.ts} +2 -2
  345. package/dist/hooks/useSideDialogsController.d.ts +2 -2
  346. package/dist/hooks/useSidePanel.d.ts +11 -0
  347. package/dist/import-D25x7ko-.js +329 -0
  348. package/dist/import-D25x7ko-.js.map +1 -0
  349. package/dist/index.d.ts +17 -12
  350. package/dist/index.js +3706 -2845
  351. package/dist/index.js.map +1 -1
  352. package/dist/markdown-CklalUUk.js +526 -0
  353. package/dist/markdown-CklalUUk.js.map +1 -0
  354. package/dist/preview/PropertyPreview.d.ts +1 -1
  355. package/dist/preview/compact_text.d.ts +23 -0
  356. package/dist/preview/components/ArrayEnumPreview.d.ts +3 -2
  357. package/dist/preview/components/BooleanPreview.d.ts +4 -2
  358. package/dist/preview/components/EmptyValue.d.ts +2 -1
  359. package/dist/preview/components/EnumValuesChip.d.ts +1 -1
  360. package/dist/preview/components/ImagePreview.d.ts +3 -2
  361. package/dist/preview/components/InlineEntityListPreview.d.ts +15 -0
  362. package/dist/preview/components/ReferencePreview.d.ts +3 -2
  363. package/dist/preview/components/RelationPreview.d.ts +3 -2
  364. package/dist/preview/components/StorageThumbnail.d.ts +4 -2
  365. package/dist/preview/components/UrlComponentPreview.d.ts +4 -2
  366. package/dist/preview/components/UserPreview.d.ts +8 -4
  367. package/dist/preview/components/date_fns_locales.d.ts +9 -0
  368. package/dist/preview/index.d.ts +24 -23
  369. package/dist/preview/property_previews/ArrayOfMapsPreview.d.ts +3 -2
  370. package/dist/preview/property_previews/ArrayOfReferencesPreview.d.ts +2 -2
  371. package/dist/preview/property_previews/ArrayOfRelationsPreview.d.ts +2 -2
  372. package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +3 -2
  373. package/dist/preview/property_previews/ArrayOfStringsPreview.d.ts +3 -2
  374. package/dist/preview/property_previews/ArrayOneOfPreview.d.ts +3 -2
  375. package/dist/preview/property_previews/ArrayPropertyEnumPreview.d.ts +2 -2
  376. package/dist/preview/property_previews/ArrayPropertyPreview.d.ts +3 -2
  377. package/dist/preview/property_previews/MapPropertyPreview.d.ts +4 -3
  378. package/dist/preview/property_previews/NumberPropertyPreview.d.ts +1 -1
  379. package/dist/preview/property_previews/SkeletonPropertyComponent.d.ts +6 -5
  380. package/dist/preview/property_previews/StringPropertyPreview.d.ts +2 -2
  381. package/dist/preview/util.d.ts +3 -2
  382. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  383. package/dist/routes/CustomViewRoute.d.ts +3 -2
  384. package/dist/routes/RebaseRoute.d.ts +1 -1
  385. package/dist/routes/index.d.ts +2 -2
  386. package/dist/types/components/EntityFormActionsProps.d.ts +6 -7
  387. package/dist/types/components/EntityFormProps.d.ts +68 -13
  388. package/dist/types/components/PropertyPreviewProps.d.ts +25 -1
  389. package/dist/types/components/formex.d.ts +1 -40
  390. package/dist/types/components/index.d.ts +3 -3
  391. package/dist/types/fields.d.ts +49 -14
  392. package/dist/types/index.d.ts +2 -2
  393. package/dist/util/dataControllerAdapter.d.ts +27 -0
  394. package/dist/util/entity_actions.d.ts +1 -1
  395. package/dist/util/index.d.ts +5 -5
  396. package/dist/util/navigation_utils.d.ts +18 -23
  397. package/dist/util/number_format.d.ts +14 -0
  398. package/dist/util/previews.d.ts +34 -4
  399. package/dist/util/propertyConfigMapper.d.ts +17 -0
  400. package/dist/util/property_utils.d.ts +6 -4
  401. package/dist/util/resolutions.d.ts +10 -2
  402. package/dist/util/view_constants.d.ts +30 -0
  403. package/dist/util/view_mode.d.ts +90 -0
  404. package/dist/util-DVqnqlLn.js +24889 -0
  405. package/dist/util-DVqnqlLn.js.map +1 -0
  406. package/package.json +164 -163
  407. package/src/collection_editor/CollectionEditorDialogsContext.tsx +1 -1
  408. package/src/collection_editor/ConfigControllerProvider.tsx +59 -69
  409. package/src/collection_editor/_cms_internals.ts +5 -5
  410. package/src/collection_editor/api/generateCollectionApi.ts +8 -7
  411. package/src/collection_editor/extensibility_types.ts +168 -0
  412. package/src/collection_editor/index.ts +50 -5
  413. package/src/collection_editor/liveSchemaClient.ts +285 -0
  414. package/src/collection_editor/relation_kinds.ts +44 -0
  415. package/src/collection_editor/serializable_types.ts +535 -0
  416. package/src/collection_editor/serializable_utils.ts +729 -0
  417. package/src/collection_editor/types/collection_editor_controller.tsx +9 -11
  418. package/src/collection_editor/types/collection_inference.ts +3 -2
  419. package/src/collection_editor/types/config_controller.tsx +26 -14
  420. package/src/collection_editor/ui/AddKanbanColumnAction.tsx +17 -13
  421. package/src/collection_editor/ui/CollectionViewHeaderAction.tsx +10 -8
  422. package/src/collection_editor/ui/EditorCollectionAction.tsx +11 -14
  423. package/src/collection_editor/ui/EditorCollectionActionStart.tsx +19 -21
  424. package/src/collection_editor/ui/EditorEntityAction.tsx +11 -14
  425. package/src/collection_editor/ui/HomePageEditorCollectionAction.tsx +19 -24
  426. package/src/collection_editor/ui/KanbanSetupAction.tsx +9 -6
  427. package/src/collection_editor/ui/MissingReferenceWidget.tsx +9 -14
  428. package/src/collection_editor/ui/NewCollectionButton.tsx +5 -4
  429. package/src/collection_editor/ui/NewCollectionCard.tsx +10 -14
  430. package/src/collection_editor/ui/PropertyAddColumnComponent.tsx +15 -18
  431. package/src/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.tsx +25 -18
  432. package/src/collection_editor/ui/collection_editor/AIModifiedPathsContext.tsx +11 -9
  433. package/src/collection_editor/ui/collection_editor/CollectionDetailsForm.tsx +48 -97
  434. package/src/collection_editor/ui/collection_editor/CollectionEditorDialog.tsx +285 -178
  435. package/src/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.tsx +37 -27
  436. package/src/collection_editor/ui/collection_editor/CollectionJsonImportDialog.tsx +23 -22
  437. package/src/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.tsx +140 -120
  438. package/src/collection_editor/ui/collection_editor/CollectionRLSTab.tsx +289 -90
  439. package/src/collection_editor/ui/collection_editor/CollectionRelationsTab.tsx +308 -70
  440. package/src/collection_editor/ui/collection_editor/CollectionStudioView.tsx +29 -28
  441. package/src/collection_editor/ui/collection_editor/CollectionYupValidation.tsx +1 -1
  442. package/src/collection_editor/ui/collection_editor/CollectionsStudioView.tsx +111 -49
  443. package/src/collection_editor/ui/collection_editor/DisplaySettingsForm.tsx +46 -43
  444. package/src/collection_editor/ui/collection_editor/EntityActionsEditTab.tsx +16 -16
  445. package/src/collection_editor/ui/collection_editor/EntityActionsSelectDialog.tsx +1 -1
  446. package/src/collection_editor/ui/collection_editor/EntityCustomViewsSelectDialog.tsx +2 -2
  447. package/src/collection_editor/ui/collection_editor/EnumForm.tsx +20 -17
  448. package/src/collection_editor/ui/collection_editor/GeneralSettingsForm.tsx +52 -41
  449. package/src/collection_editor/ui/collection_editor/GetCodeDialog.tsx +16 -17
  450. package/src/collection_editor/ui/collection_editor/KanbanConfigSection.tsx +22 -23
  451. package/src/collection_editor/ui/collection_editor/LayoutModeSwitch.tsx +24 -6
  452. package/src/collection_editor/ui/collection_editor/PropertyEditView.tsx +247 -57
  453. package/src/collection_editor/ui/collection_editor/PropertyFieldPreview.tsx +67 -62
  454. package/src/collection_editor/ui/collection_editor/PropertyTree.tsx +26 -22
  455. package/src/collection_editor/ui/collection_editor/RouterCollectionStudioView.tsx +44 -0
  456. package/src/collection_editor/ui/collection_editor/RouterCollectionsStudioView.tsx +41 -0
  457. package/src/collection_editor/ui/collection_editor/SchemaChangeDialog.tsx +470 -0
  458. package/src/collection_editor/ui/collection_editor/SubcollectionsEditTab.tsx +26 -25
  459. package/src/collection_editor/ui/collection_editor/SwitchControl.tsx +2 -2
  460. package/src/collection_editor/ui/collection_editor/ViewModeSwitch.tsx +33 -6
  461. package/src/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.tsx +7 -6
  462. package/src/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.tsx +21 -21
  463. package/src/collection_editor/ui/collection_editor/import/clean_import_data.ts +7 -4
  464. package/src/collection_editor/ui/collection_editor/properties/BlockPropertyField.tsx +9 -8
  465. package/src/collection_editor/ui/collection_editor/properties/BooleanPropertyField.tsx +3 -3
  466. package/src/collection_editor/ui/collection_editor/properties/CommonPropertyFields.tsx +12 -10
  467. package/src/collection_editor/ui/collection_editor/properties/DateTimePropertyField.tsx +103 -58
  468. package/src/collection_editor/ui/collection_editor/properties/EnumPropertyField.tsx +16 -14
  469. package/src/collection_editor/ui/collection_editor/properties/MapPropertyField.tsx +14 -11
  470. package/src/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.tsx +20 -18
  471. package/src/collection_editor/ui/collection_editor/properties/NumberPropertyField.tsx +12 -10
  472. package/src/collection_editor/ui/collection_editor/properties/ReferencePropertyField.tsx +26 -59
  473. package/src/collection_editor/ui/collection_editor/properties/RelationPropertyField.tsx +113 -122
  474. package/src/collection_editor/ui/collection_editor/properties/RepeatPropertyField.tsx +8 -7
  475. package/src/collection_editor/ui/collection_editor/properties/StoragePropertyField.tsx +64 -27
  476. package/src/collection_editor/ui/collection_editor/properties/StringPropertyField.tsx +16 -14
  477. package/src/collection_editor/ui/collection_editor/properties/UrlPropertyField.tsx +5 -4
  478. package/src/collection_editor/ui/collection_editor/properties/VectorPropertyField.tsx +34 -0
  479. package/src/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.tsx +10 -8
  480. package/src/collection_editor/ui/collection_editor/properties/conditions/ConditionsEditor.tsx +125 -53
  481. package/src/collection_editor/ui/collection_editor/properties/conditions/ConditionsPanel.tsx +1 -1
  482. package/src/collection_editor/ui/collection_editor/properties/conditions/EnumConditionsEditor.tsx +66 -33
  483. package/src/collection_editor/ui/collection_editor/properties/conditions/property_paths.ts +4 -4
  484. package/src/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.tsx +10 -8
  485. package/src/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.tsx +12 -10
  486. package/src/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.tsx +22 -23
  487. package/src/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.tsx +24 -22
  488. package/src/collection_editor/ui/collection_editor/properties/validation/ValidationPanel.tsx +2 -2
  489. package/src/collection_editor/ui/collection_editor/templates/blog_template.ts +5 -5
  490. package/src/collection_editor/ui/collection_editor/templates/pages_template.ts +6 -6
  491. package/src/collection_editor/ui/collection_editor/templates/products_template.ts +6 -6
  492. package/src/collection_editor/ui/collection_editor/templates/users_template.ts +4 -4
  493. package/src/collection_editor/ui/collection_editor/utils/strings.ts +1 -16
  494. package/src/collection_editor/ui/collection_editor/utils/supported_fields.tsx +11 -5
  495. package/src/collection_editor/ui/collection_editor/utils/update_property_for_widget.ts +32 -37
  496. package/src/collection_editor/useJsonCollectionsConfigController.tsx +297 -0
  497. package/src/collection_editor/useLiveSchemaEditing.tsx +315 -0
  498. package/src/collection_editor/useLocalCollectionsConfigController.tsx +261 -31
  499. package/src/collection_editor/useSafeSnackbarController.ts +9 -0
  500. package/src/collection_editor/validateCollectionJson.ts +77 -16
  501. package/src/collection_editor_ui.ts +6 -0
  502. package/src/components/AdditionalFieldValue.tsx +68 -0
  503. package/src/components/AdminModeSyncer.tsx +7 -7
  504. package/src/components/ArrayContainer.tsx +34 -43
  505. package/src/components/ClearFilterSortButton.tsx +18 -9
  506. package/src/components/CollectionEditorDialogs.tsx +7 -6
  507. package/src/components/CollectionPanel.tsx +179 -0
  508. package/src/components/{EntityCollectionTable/EntityCollectionRowActions.tsx → CollectionTableBinding/CollectionRowActions.tsx} +39 -27
  509. package/src/components/{EntityCollectionTable/EntityCollectionTable.tsx → CollectionTableBinding/CollectionTableBinding.tsx} +67 -53
  510. package/src/components/{EntityCollectionTable/EntityCollectionTableProps.tsx → CollectionTableBinding/CollectionTableBindingProps.tsx} +7 -6
  511. package/src/components/{EntityCollectionTable → CollectionTableBinding}/PropertyTableCell.tsx +29 -21
  512. package/src/components/CollectionTableBinding/column_utils.tsx +155 -0
  513. package/src/components/{EntityCollectionTable → CollectionTableBinding}/fields/TableMultipleRelationField.tsx +21 -20
  514. package/src/components/{EntityCollectionTable → CollectionTableBinding}/fields/TableReferenceField.tsx +49 -28
  515. package/src/components/{EntityCollectionTable → CollectionTableBinding}/fields/TableRelationField.tsx +33 -22
  516. package/src/components/{EntityCollectionTable → CollectionTableBinding}/fields/TableRelationSelectorField.tsx +4 -4
  517. package/src/components/{EntityCollectionTable → CollectionTableBinding}/fields/TableStorageUpload.tsx +37 -33
  518. package/src/components/{EntityCollectionTable → CollectionTableBinding}/fields/VirtualTableSelect.tsx +3 -4
  519. package/src/components/CollectionTableBinding/fields/VirtualTableUserSelect.tsx +41 -0
  520. package/src/components/CollectionTableBinding/index.tsx +14 -0
  521. package/src/components/CollectionTableBinding/internal/CollectionTableToolbar.tsx +96 -0
  522. package/src/components/{EntityCollectionTable → CollectionTableBinding}/internal/EntityTableCell.tsx +9 -11
  523. package/src/components/{EntityCollectionTable → CollectionTableBinding}/internal/EntityTableCellActions.tsx +5 -7
  524. package/src/components/{EntityCollectionTable → CollectionTableBinding}/internal/common.tsx +8 -7
  525. package/src/components/{EntityCollectionTable → CollectionTableBinding}/internal/popup_field/PopupFormField.tsx +27 -23
  526. package/src/components/{EntityCollectionTable → CollectionTableBinding}/internal/popup_field/useDraggable.tsx +5 -2
  527. package/src/components/{EntityCollectionTable → CollectionTableBinding}/internal/popup_field/useWindowSize.tsx +4 -2
  528. package/src/components/{EntityCollectionTable → CollectionTableBinding}/table_bindings.tsx +118 -113
  529. package/src/components/CollectionViewBinding/BoardCardBinding.tsx +263 -0
  530. package/src/components/{EntityCollectionView/EntityCollectionBoardView.tsx → CollectionViewBinding/CollectionBoardViewBinding.tsx} +134 -81
  531. package/src/components/CollectionViewBinding/CollectionCardViewBinding.tsx +159 -0
  532. package/src/components/CollectionViewBinding/CollectionListViewBinding.tsx +1430 -0
  533. package/src/components/CollectionViewBinding/CollectionViewActions.tsx +227 -0
  534. package/src/components/CollectionViewBinding/CollectionViewBinding.tsx +1603 -0
  535. package/src/components/CollectionViewBinding/CollectionViewStartActions.tsx +240 -0
  536. package/src/components/CollectionViewBinding/EntityCardBinding.tsx +239 -0
  537. package/src/components/CollectionViewBinding/FilterPresetsButton.tsx +298 -0
  538. package/src/components/{EntityCollectionView → CollectionViewBinding}/FiltersDialog.tsx +60 -91
  539. package/src/components/CollectionViewBinding/SearchExplanation.tsx +106 -0
  540. package/src/components/CollectionViewBinding/SearchHighlight.tsx +311 -0
  541. package/src/components/CollectionViewBinding/SlotValue.tsx +156 -0
  542. package/src/components/CollectionViewBinding/SortButton.tsx +354 -0
  543. package/src/components/CollectionViewBinding/SplitListCloseButton.tsx +49 -0
  544. package/src/components/CollectionViewBinding/SplitListShowButton.tsx +28 -0
  545. package/src/components/CollectionViewBinding/SplitListView.tsx +488 -0
  546. package/src/components/CollectionViewBinding/SplitViewContext.tsx +34 -0
  547. package/src/components/CollectionViewBinding/ViewModeToggle.tsx +250 -0
  548. package/src/components/{EntityCollectionView → CollectionViewBinding}/hooks/useCollectionInlineEditor.ts +14 -12
  549. package/src/components/CollectionViewBinding/hooks/useKanbanDragAndDrop.ts +181 -0
  550. package/src/components/CollectionViewBinding/useBoardDataController.tsx +802 -0
  551. package/src/components/CollectionViewBinding/usePreviewSlots.ts +703 -0
  552. package/src/components/CollectionViewBinding/useSelectionController.tsx +40 -0
  553. package/src/components/{EntityCollectionView → CollectionViewBinding}/utils.ts +7 -4
  554. package/src/components/DefaultAppBar.tsx +83 -99
  555. package/src/components/DefaultDrawer.tsx +423 -106
  556. package/src/components/DeleteEntityDialog.tsx +39 -16
  557. package/src/components/DetailViewBinding.tsx +731 -0
  558. package/src/components/DrawerNavigationGroup.tsx +43 -30
  559. package/src/components/DrawerNavigationItem.tsx +74 -24
  560. package/src/components/{EntityEditViewFormActions.tsx → EditFormActions.tsx} +127 -169
  561. package/src/components/EditViewBinding.tsx +1069 -0
  562. package/src/components/EntityDisplayHeader.tsx +170 -0
  563. package/src/components/EntityIdentityBar.tsx +428 -0
  564. package/src/components/EntityInspector.tsx +156 -0
  565. package/src/components/{EntityPreview.tsx → EntityPreviewBinding.tsx} +134 -68
  566. package/src/components/EntityPreviewNesting.tsx +50 -0
  567. package/src/components/EntityViewBinding.tsx +374 -0
  568. package/src/components/HomePage/ContentHomePage.tsx +52 -19
  569. package/src/components/HomePage/FavouritesView.tsx +7 -7
  570. package/src/components/HomePage/HomePageDnD.tsx +5 -4
  571. package/src/components/HomePage/NavigationCard.tsx +17 -15
  572. package/src/components/HomePage/NavigationCardBinding.tsx +15 -18
  573. package/src/components/HomePage/NavigationGroup.tsx +6 -6
  574. package/src/components/HomePage/RenameGroupDialog.tsx +1 -1
  575. package/src/components/HomePage/SmallNavigationCard.tsx +3 -7
  576. package/src/components/InlineEntityPreview.tsx +149 -0
  577. package/src/components/{EntityJsonPreview.tsx → JsonPreviewBinding.tsx} +3 -3
  578. package/src/components/PropertyCollectionView.tsx +5 -4
  579. package/src/components/PropertyConfigBadge.tsx +3 -2
  580. package/src/components/PropertyIdCopyTooltip.tsx +10 -10
  581. package/src/components/RebaseAuthGate.tsx +8 -6
  582. package/src/components/RebaseCMS.tsx +15 -7
  583. package/src/components/RebaseLayout.tsx +26 -19
  584. package/src/components/RebaseNavigation.tsx +210 -38
  585. package/src/components/RebaseRouteDefs.tsx +28 -28
  586. package/src/components/RebaseShell.tsx +30 -17
  587. package/src/components/ReferenceTable/{EntitySelectionTable.tsx → SelectionTableBinding.tsx} +105 -74
  588. package/src/components/ReferenceWidget.tsx +11 -10
  589. package/src/components/RelationSelector.tsx +433 -119
  590. package/src/components/SearchIconsView.tsx +24 -26
  591. package/src/components/SelectableTable/SelectableTable.tsx +97 -128
  592. package/src/components/SelectableTable/SelectableTableContext.tsx +4 -3
  593. package/src/components/SelectableTable/SelectionStore.ts +43 -0
  594. package/src/components/SelectableTable/filters/BooleanFilterField.tsx +13 -5
  595. package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +37 -16
  596. package/src/components/SelectableTable/filters/FilterFieldBinding.tsx +190 -0
  597. package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +67 -25
  598. package/src/components/SelectableTable/filters/RelationFilterField.tsx +117 -17
  599. package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +102 -44
  600. package/src/components/SelectableTable/filters/null_filter.ts +63 -0
  601. package/src/components/SideDialogs.tsx +88 -57
  602. package/src/components/SidePanelBinding.tsx +361 -0
  603. package/src/components/SidePanelProvider.tsx +80 -0
  604. package/src/components/UserSelector.tsx +513 -0
  605. package/src/components/admin/CreationResultDialog.tsx +138 -0
  606. package/src/components/admin/index.ts +1 -3
  607. package/src/components/app/AppBar.tsx +1 -1
  608. package/src/components/app/Drawer.tsx +9 -1
  609. package/src/components/app/Scaffold.tsx +163 -36
  610. package/src/components/common/default_entity_actions.tsx +345 -60
  611. package/src/components/field_configs.tsx +148 -84
  612. package/src/components/history/EntityHistoryEntry.tsx +56 -28
  613. package/src/components/history/EntityHistoryView.tsx +52 -43
  614. package/src/components/history/LastEditedByFormAction.tsx +2 -2
  615. package/src/components/history/LastEditedByIndicator.tsx +15 -18
  616. package/src/components/history/UserChip.tsx +1 -1
  617. package/src/components/index.ts +27 -16
  618. package/src/contexts/BreacrumbsContext.tsx +13 -13
  619. package/src/contexts/SideDialogsControllerContext.tsx +1 -1
  620. package/src/contexts/SidePanelControllerContext.tsx +5 -0
  621. package/src/data_export/export/BasicExportAction.tsx +34 -44
  622. package/src/data_export/export/ExportCollectionAction.tsx +153 -107
  623. package/src/data_export/export/export.ts +86 -35
  624. package/src/data_export/export/fetch_export_data.ts +90 -0
  625. package/src/data_export/export/index.ts +1 -0
  626. package/src/data_import/components/DataNewPropertiesMapping.tsx +30 -12
  627. package/src/data_import/components/ImportFileUpload.tsx +4 -4
  628. package/src/data_import/components/ImportNewPropertyFieldPreview.tsx +8 -9
  629. package/src/data_import/components/ImportSaveInProgress.tsx +40 -40
  630. package/src/data_import/import/ImportCollectionAction.tsx +45 -32
  631. package/src/data_import/utils/csv.ts +153 -0
  632. package/src/data_import/utils/data.ts +49 -13
  633. package/src/data_import/utils/file_headers.ts +13 -89
  634. package/src/data_import/utils/file_to_json.ts +112 -69
  635. package/src/data_import/utils/get_import_inference_type.ts +6 -0
  636. package/src/data_import/utils/get_properties_mapping.ts +1 -1
  637. package/src/data_import/utils/index.ts +2 -0
  638. package/src/data_import/utils/save_entities.ts +138 -0
  639. package/src/data_import/utils/transforms.ts +70 -0
  640. package/src/editor/components/SlashCommandMenu.tsx +71 -55
  641. package/src/editor/components/editor-bubble-item.tsx +1 -1
  642. package/src/editor/components/editor-bubble.tsx +34 -9
  643. package/src/editor/components/image-bubble.tsx +40 -15
  644. package/src/editor/components/index.ts +3 -3
  645. package/src/editor/components/table-bubble.tsx +89 -23
  646. package/src/editor/editor.tsx +145 -71
  647. package/src/editor/extensions/HighlightDecorationExtension.ts +3 -2
  648. package/src/editor/extensions/Image.ts +5 -5
  649. package/src/editor/extensions/clipboard.ts +2 -2
  650. package/src/editor/extensions/custom-keymap.ts +1 -1
  651. package/src/editor/extensions/drag-and-drop.tsx +32 -16
  652. package/src/editor/hooks/useProseMirror.ts +8 -6
  653. package/src/editor/hooks/useProseMirrorContext.ts +1 -1
  654. package/src/editor/markdown-it-plugins.d.ts +24 -0
  655. package/src/editor/markdown.ts +55 -23
  656. package/src/editor/nodeViews/ReactNodeView.tsx +2 -2
  657. package/src/editor/nodeViews/TaskItemComponent.tsx +9 -8
  658. package/src/editor/nodeViews/index.ts +1 -1
  659. package/src/editor/plugins/index.ts +2 -2
  660. package/src/editor/plugins/inputrules.ts +2 -2
  661. package/src/editor/plugins/slashCommandPlugin.ts +8 -4
  662. package/src/editor/schema.ts +160 -61
  663. package/src/editor/selectors/ai-selector.tsx +0 -1
  664. package/src/editor/selectors/color-selector.tsx +25 -26
  665. package/src/editor/selectors/link-selector.tsx +14 -10
  666. package/src/editor/selectors/node-selector.tsx +35 -33
  667. package/src/editor/selectors/text-buttons.tsx +10 -17
  668. package/src/editor/useProseMirror.ts +7 -8
  669. package/src/editor/utils/prosemirror-utils.ts +9 -9
  670. package/src/editor/utils/remove_classes.ts +6 -5
  671. package/src/form/EntityForm.tsx +480 -519
  672. package/src/form/EntityFormActions.tsx +79 -123
  673. package/src/form/EntityFormBinding.tsx +342 -0
  674. package/src/form/PropertyFieldBinding.tsx +91 -87
  675. package/src/form/components/ErrorFocus.tsx +1 -1
  676. package/src/form/components/FieldBlock.tsx +189 -0
  677. package/src/form/components/FieldHelperText.tsx +43 -4
  678. package/src/form/components/FormRail.tsx +153 -0
  679. package/src/form/components/FormSections.tsx +145 -0
  680. package/src/form/components/LocalChangesMenu.tsx +16 -14
  681. package/src/form/components/StorageItemPreview.tsx +6 -6
  682. package/src/form/components/StorageUploadProgress.tsx +29 -16
  683. package/src/form/components/index.tsx +3 -2
  684. package/src/form/components/useRailVisible.tsx +47 -0
  685. package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +12 -10
  686. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +24 -21
  687. package/src/form/field_bindings/BinaryFieldBinding.tsx +177 -0
  688. package/src/form/field_bindings/BlockFieldBinding.tsx +74 -66
  689. package/src/form/field_bindings/DateTimeFieldBinding.tsx +13 -7
  690. package/src/form/field_bindings/GeopointFieldBinding.tsx +200 -0
  691. package/src/form/field_bindings/KeyValueFieldBinding.tsx +313 -306
  692. package/src/form/field_bindings/MapFieldBinding.tsx +19 -61
  693. package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +142 -25
  694. package/src/form/field_bindings/MultiSelectFieldBinding.tsx +17 -9
  695. package/src/form/field_bindings/MultipleRelationFieldBinding.tsx +34 -21
  696. package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +35 -7
  697. package/src/form/field_bindings/ReferenceFieldBinding.tsx +35 -29
  698. package/src/form/field_bindings/RelationFieldBinding.tsx +177 -158
  699. package/src/form/field_bindings/RepeatFieldBinding.tsx +18 -14
  700. package/src/form/field_bindings/SelectFieldBinding.tsx +12 -10
  701. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +149 -121
  702. package/src/form/field_bindings/SwitchFieldBinding.tsx +25 -20
  703. package/src/form/field_bindings/TextFieldBinding.tsx +120 -86
  704. package/src/form/field_bindings/UserSelectFieldBinding.tsx +44 -71
  705. package/src/form/field_bindings/VectorFieldBinding.tsx +209 -0
  706. package/src/form/form_utils.ts +243 -0
  707. package/src/form/index.tsx +15 -6
  708. package/src/form/useClearRestoreValue.tsx +1 -1
  709. package/src/form/useUndoableDiscard.ts +39 -0
  710. package/src/form/validation.ts +122 -131
  711. package/src/hooks/index.ts +6 -5
  712. package/src/hooks/navigation/contexts/CollectionRegistryContext.tsx +7 -5
  713. package/src/hooks/navigation/contexts/NavigationStateContext.tsx +2 -2
  714. package/src/hooks/navigation/contexts/UrlContext.tsx +2 -3
  715. package/src/hooks/navigation/useAsyncResolver.ts +100 -0
  716. package/src/hooks/navigation/useBuildCollectionRegistryController.tsx +100 -37
  717. package/src/hooks/navigation/useBuildNavigationStateController.tsx +37 -26
  718. package/src/hooks/navigation/useBuildUrlController.tsx +4 -4
  719. package/src/hooks/navigation/useNavigationResolution.ts +196 -55
  720. package/src/hooks/navigation/useResolvedCollections.ts +49 -80
  721. package/src/hooks/navigation/useResolvedViews.tsx +66 -124
  722. package/src/hooks/navigation/useTopLevelNavigation.ts +42 -26
  723. package/src/hooks/navigation/utils.ts +39 -10
  724. package/src/hooks/{useCMSContext.tsx → useAdminContext.tsx} +28 -22
  725. package/src/hooks/useBreadcrumbsController.tsx +2 -34
  726. package/src/hooks/useBuildSideDialogsController.tsx +7 -7
  727. package/src/hooks/{useBuildSideEntityController.tsx → useBuildSidePanel.tsx} +99 -93
  728. package/src/hooks/useChildViewSource.ts +46 -0
  729. package/src/hooks/useEntityDisplay.tsx +262 -0
  730. package/src/hooks/useEntityDisplayTitle.tsx +49 -0
  731. package/src/hooks/{useEntityHistory.ts → useHistory.ts} +47 -37
  732. package/src/hooks/useRecordActions.tsx +69 -0
  733. package/src/hooks/useResolvedNavigationFrom.tsx +29 -17
  734. package/src/hooks/useResolvedUsers.ts +148 -0
  735. package/src/hooks/{useEntitySelectionDialog.tsx → useSelectionDialog.tsx} +13 -12
  736. package/src/hooks/useSideDialogsController.tsx +2 -2
  737. package/src/hooks/useSidePanel.tsx +13 -0
  738. package/src/index.ts +49 -20
  739. package/src/preview/PropertyPreview.tsx +126 -86
  740. package/src/preview/compact_text.ts +68 -0
  741. package/src/preview/components/ArrayEnumPreview.tsx +1 -1
  742. package/src/preview/components/BooleanPreview.tsx +6 -3
  743. package/src/preview/components/DatePreview.tsx +17 -4
  744. package/src/preview/components/EnumValuesChip.tsx +1 -1
  745. package/src/preview/components/ImagePreview.tsx +18 -16
  746. package/src/preview/components/InlineEntityListPreview.tsx +42 -0
  747. package/src/preview/components/ReferencePreview.tsx +105 -36
  748. package/src/preview/components/RelationPreview.tsx +148 -35
  749. package/src/preview/components/StorageThumbnail.tsx +68 -11
  750. package/src/preview/components/UrlComponentPreview.tsx +13 -11
  751. package/src/preview/components/UserPreview.tsx +15 -14
  752. package/src/preview/components/date_fns_locales.ts +125 -0
  753. package/src/preview/index.ts +1 -0
  754. package/src/preview/property_previews/ArrayOfMapsPreview.tsx +7 -7
  755. package/src/preview/property_previews/ArrayOfReferencesPreview.tsx +31 -8
  756. package/src/preview/property_previews/ArrayOfRelationsPreview.tsx +36 -9
  757. package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +5 -5
  758. package/src/preview/property_previews/ArrayOfStringsPreview.tsx +31 -5
  759. package/src/preview/property_previews/ArrayOneOfPreview.tsx +30 -19
  760. package/src/preview/property_previews/ArrayPropertyEnumPreview.tsx +2 -2
  761. package/src/preview/property_previews/ArrayPropertyPreview.tsx +15 -6
  762. package/src/preview/property_previews/MapPropertyPreview.tsx +62 -10
  763. package/src/preview/property_previews/NumberPropertyPreview.tsx +15 -5
  764. package/src/preview/property_previews/SkeletonPropertyComponent.tsx +37 -38
  765. package/src/preview/property_previews/StringPropertyPreview.tsx +31 -20
  766. package/src/preview/util.ts +10 -1
  767. package/src/routes/CustomViewRoute.tsx +16 -7
  768. package/src/routes/RebaseRoute.tsx +264 -62
  769. package/src/types/components/EntityFormActionsProps.tsx +5 -5
  770. package/src/types/components/EntityFormProps.tsx +76 -11
  771. package/src/types/components/PropertyPreviewProps.tsx +27 -1
  772. package/src/types/components/formex.tsx +1 -45
  773. package/src/types/fields.tsx +57 -16
  774. package/src/util/dataControllerAdapter.ts +88 -0
  775. package/src/util/entity_actions.ts +1 -1
  776. package/src/util/navigation_utils.ts +44 -178
  777. package/src/util/number_format.ts +46 -0
  778. package/src/util/previews.ts +123 -42
  779. package/src/util/propertyConfigMapper.ts +134 -0
  780. package/src/util/property_utils.tsx +53 -32
  781. package/src/util/resolutions.ts +36 -9
  782. package/src/util/view_constants.ts +33 -0
  783. package/src/util/view_mode.ts +176 -0
  784. package/dist/CollectionEditorDialog-DiZYNmYV.js +0 -4731
  785. package/dist/CollectionEditorDialog-DiZYNmYV.js.map +0 -1
  786. package/dist/CollectionsStudioView-BHVTfAuK.js +0 -224
  787. package/dist/CollectionsStudioView-BHVTfAuK.js.map +0 -1
  788. package/dist/PropertyEditView-BC5GO9AI.js +0 -7776
  789. package/dist/PropertyEditView-BC5GO9AI.js.map +0 -1
  790. package/dist/collection_editor/pgColumnToProperty.d.ts +0 -6
  791. package/dist/collection_editor/types/config_permissions.d.ts +0 -19
  792. package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +0 -27
  793. package/dist/components/EntityCollectionTable/column_utils.d.ts +0 -16
  794. package/dist/components/EntityCollectionTable/fields/VirtualTableDateField.d.ts +0 -12
  795. package/dist/components/EntityCollectionTable/fields/VirtualTableInput.d.ts +0 -9
  796. package/dist/components/EntityCollectionTable/fields/VirtualTableNumberInput.d.ts +0 -8
  797. package/dist/components/EntityCollectionTable/fields/VirtualTableSwitch.d.ts +0 -7
  798. package/dist/components/EntityCollectionTable/index.d.ts +0 -6
  799. package/dist/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +0 -14
  800. package/dist/components/EntityCollectionView/Board.d.ts +0 -2
  801. package/dist/components/EntityCollectionView/BoardColumn.d.ts +0 -42
  802. package/dist/components/EntityCollectionView/BoardColumnTitle.d.ts +0 -9
  803. package/dist/components/EntityCollectionView/BoardSortableList.d.ts +0 -14
  804. package/dist/components/EntityCollectionView/EntityBoardCard.d.ts +0 -27
  805. package/dist/components/EntityCollectionView/EntityCard.d.ts +0 -20
  806. package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +0 -21
  807. package/dist/components/EntityCollectionView/EntityCollectionView.d.ts +0 -54
  808. package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +0 -15
  809. package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +0 -17
  810. package/dist/components/EntityCollectionView/board_types.d.ts +0 -105
  811. package/dist/components/EntityCollectionView/hooks/useKanbanDragAndDrop.d.ts +0 -20
  812. package/dist/components/EntityEditView.d.ts +0 -48
  813. package/dist/components/EntityEditViewFormActions.d.ts +0 -2
  814. package/dist/components/EntityJsonPreview.d.ts +0 -3
  815. package/dist/components/EntitySidePanel.d.ts +0 -10
  816. package/dist/components/EntityView.d.ts +0 -12
  817. package/dist/components/admin/RoleChip.d.ts +0 -4
  818. package/dist/components/admin/RolesView.d.ts +0 -4
  819. package/dist/components/admin/UsersView.d.ts +0 -4
  820. package/dist/contexts/SideEntityControllerContext.d.ts +0 -3
  821. package/dist/editor/extensions/Image/index.d.ts +0 -6
  822. package/dist/form/components/FormEntry.d.ts +0 -6
  823. package/dist/form/components/FormLayout.d.ts +0 -5
  824. package/dist/form/field_bindings/ReferenceAsStringFieldBinding.d.ts +0 -10
  825. package/dist/hooks/navigation/useNavigationRegistry.d.ts +0 -11
  826. package/dist/hooks/navigation/useNavigationURLs.d.ts +0 -11
  827. package/dist/hooks/useBuildSideEntityController.d.ts +0 -6
  828. package/dist/hooks/useCMSContext.d.ts +0 -27
  829. package/dist/hooks/useEntityHistory.d.ts +0 -30
  830. package/dist/hooks/useSideEntityController.d.ts +0 -11
  831. package/dist/util-W5Lh0Emr.js +0 -32604
  832. package/dist/util-W5Lh0Emr.js.map +0 -1
  833. package/src/collection_editor/pgColumnToProperty.ts +0 -274
  834. package/src/collection_editor/types/config_permissions.ts +0 -20
  835. package/src/components/EntityCollectionTable/column_utils.tsx +0 -75
  836. package/src/components/EntityCollectionTable/fields/VirtualTableDateField.tsx +0 -39
  837. package/src/components/EntityCollectionTable/fields/VirtualTableInput.tsx +0 -90
  838. package/src/components/EntityCollectionTable/fields/VirtualTableNumberInput.tsx +0 -80
  839. package/src/components/EntityCollectionTable/fields/VirtualTableSwitch.tsx +0 -32
  840. package/src/components/EntityCollectionTable/fields/VirtualTableUserSelect.tsx +0 -112
  841. package/src/components/EntityCollectionTable/index.tsx +0 -14
  842. package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +0 -72
  843. package/src/components/EntityCollectionView/Board.tsx +0 -324
  844. package/src/components/EntityCollectionView/BoardColumn.tsx +0 -158
  845. package/src/components/EntityCollectionView/BoardColumnTitle.tsx +0 -45
  846. package/src/components/EntityCollectionView/BoardSortableList.tsx +0 -172
  847. package/src/components/EntityCollectionView/EntityBoardCard.tsx +0 -204
  848. package/src/components/EntityCollectionView/EntityCard.tsx +0 -219
  849. package/src/components/EntityCollectionView/EntityCollectionCardView.tsx +0 -249
  850. package/src/components/EntityCollectionView/EntityCollectionView.tsx +0 -1143
  851. package/src/components/EntityCollectionView/EntityCollectionViewActions.tsx +0 -149
  852. package/src/components/EntityCollectionView/EntityCollectionViewStartActions.tsx +0 -122
  853. package/src/components/EntityCollectionView/ViewModeToggle.tsx +0 -197
  854. package/src/components/EntityCollectionView/board_types.ts +0 -113
  855. package/src/components/EntityCollectionView/hooks/useKanbanDragAndDrop.ts +0 -151
  856. package/src/components/EntityCollectionView/useBoardDataController.tsx +0 -510
  857. package/src/components/EntityCollectionView/useSelectionController.tsx +0 -43
  858. package/src/components/EntityEditView.tsx +0 -576
  859. package/src/components/EntitySidePanel.tsx +0 -159
  860. package/src/components/EntityView.tsx +0 -69
  861. package/src/components/SideEntityProvider.tsx +0 -76
  862. package/src/components/admin/RoleChip.tsx +0 -23
  863. package/src/components/admin/RolesView.tsx +0 -424
  864. package/src/components/admin/UsersView.tsx +0 -707
  865. package/src/contexts/SideEntityControllerContext.tsx +0 -5
  866. package/src/editor/extensions/Image/index.ts +0 -133
  867. package/src/form/components/FormEntry.tsx +0 -22
  868. package/src/form/components/FormLayout.tsx +0 -16
  869. package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +0 -140
  870. package/src/hooks/navigation/useNavigationRegistry.ts +0 -146
  871. package/src/hooks/navigation/useNavigationURLs.ts +0 -56
  872. package/src/hooks/useSideEntityController.tsx +0 -13
  873. /package/dist/components/{EntityCollectionTable → CollectionTableBinding}/internal/popup_field/useDraggable.d.ts +0 -0
  874. /package/dist/components/{EntityCollectionTable → CollectionTableBinding}/internal/popup_field/useWindowSize.d.ts +0 -0
  875. /package/dist/components/{EntityCollectionView → CollectionViewBinding}/utils.d.ts +0 -0
package/LICENSE CHANGED
@@ -1,6 +1,21 @@
1
- Source code in this repository is variously licensed under the Business Source
2
- License 1.1 (BSL), Apache version 2.0 and the MIT license. A copy of each
3
- license can be found in each one of the packages under the folder packages
4
- under a file called License. Source code in a given file is licensed under the
5
- BSL and the copyright belongs to Rebase Authors unless otherwise noted at the
6
- beginning of the file.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rebase
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,139 @@
1
+ # @rebasepro/cms
2
+
3
+ CMS frontend — content management views, forms, routing, visual schema editor, and data import/export for Rebase.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pnpm add @rebasepro/cms
9
+ ```
10
+
11
+ **Peer dependencies:** `react >= 19.2.7`, `react-dom >= 19.2.7`, `react-router ^8`
12
+
13
+ ## What This Package Does
14
+
15
+ `@rebasepro/cms` is the complete CMS layer of Rebase. It provides the admin panel UI — collection table/card views, snapshot editing forms, side-panel navigation, the visual collection (schema) editor, data import/export (CSV, JSON, Excel), and the app shell with auth gating, routing, and drawer layout. It sits on top of `@rebasepro/app` (runtime hooks/providers) and `@rebasepro/ui` (design system components).
16
+
17
+ ## Key Exports
18
+
19
+ ### App Shell & Layout
20
+
21
+ | Export | Description |
22
+ |---|---|
23
+ | `RebaseCMS` | Top-level CMS component — wires routing, auth, and layout together |
24
+ | `RebaseShell` | Outer shell (providers + chrome) without opinionated routing |
25
+ | `RebaseAuthGate` | Auth-gated wrapper — shows login or the CMS based on session state |
26
+ | `RebaseNavigation` | Renders the sidebar navigation from resolved collections/views |
27
+ | `RebaseLayout` | Main content layout (header + body area) |
28
+ | `RebaseRouteDefs` | Route definitions for react-router integration |
29
+ | `Scaffold` | Page-level layout wrapper (header, content, footer) |
30
+ | `AppBar` | Top application bar |
31
+ | `Drawer` / `DefaultDrawer` | Sidebar drawer components |
32
+ | `DrawerFooterActions` | Footer action buttons inside the drawer |
33
+ | `SideDialogs` | Stacked side-panel dialog system |
34
+ | `AdminModeSyncer` | Syncs admin/content mode state |
35
+ | `CollectionPanel` | Standalone collection browser panel |
36
+
37
+ ### Snapshot & Collection Views
38
+
39
+ | Export | Description |
40
+ |---|---|
41
+ | `SnapshotCustomView` | Full snapshot detail/edit view |
42
+ | `DataCollectionView` | Primary collection list view (table + toolbar) |
43
+ | `DataCollectionTable` | Virtualized spreadsheet table for a collection |
44
+ | `SnapshotCollectionCardView` | Card/grid layout for a collection |
45
+ | `SnapshotCard` | Individual snapshot card |
46
+ | `DataCollectionViewActions` | Toolbar actions (filters, search, create) |
47
+ | `SnapshotCollectionRowActions` | Per-row action buttons |
48
+ | `SnapshotSelectionTable` | Table for multi-snapshot selection dialogs |
49
+ | `SelectableTable` | Generic selectable table component |
50
+ | `SnapshotPreview` | Compact snapshot preview widget |
51
+ | `VirtualTableInput` | Inline-edit input rendered inside the virtual table |
52
+ | `ArrayContainer` | Renders array/repeated property fields |
53
+ | `ReferenceWidget` | Reference (foreign key) picker widget |
54
+
55
+ ### Snapshot Actions
56
+
57
+ | Export | Description |
58
+ |---|---|
59
+ | `editSnapshotAction` | Built-in action to open a snapshot for editing |
60
+ | `copySnapshotAction` | Built-in action to duplicate a snapshot |
61
+ | `deleteSnapshotAction` | Built-in action to delete a snapshot |
62
+ | `resetPasswordAction` | Action to reset a user's password |
63
+
64
+ ### Hooks
65
+
66
+ | Export | Description |
67
+ |---|---|
68
+ | `useApp` | Access the app-level context (navigation, mode, config) |
69
+ | `useSidePanelController` | Open/close snapshot side panels programmatically |
70
+ | `useSelectionDialog` | Launch a multi-snapshot selection dialog |
71
+ | `useSelectionController` | Row selection state for tables |
72
+ | `useHistory` | Snapshot change history and version revert |
73
+ | `useBreadcrumbsController` | Breadcrumb navigation state |
74
+ | `useAdminContext` | Access the admin-level context |
75
+ | `useResolvedNavigationFrom` | Resolve navigation tree from collection configs |
76
+
77
+ ### Data Import/Export
78
+
79
+ All exports from `./data_import` and `./data_export` — utilities for importing CSV/JSON/Excel data with field mapping, and exporting collection data in multiple formats.
80
+
81
+ ### Collection Editor (Visual Schema Editor)
82
+
83
+ All exports from `./collection_editor` — the visual schema editor UI for creating and editing collection definitions (properties, relations, validation rules) from within the CMS.
84
+
85
+ Also available as a separate entry point:
86
+
87
+ ```ts
88
+ import { ... } from "@rebasepro/cms/collection_editor_ui";
89
+ ```
90
+
91
+ ### Rich Text Editor (`RichTextEditor`)
92
+
93
+ A full-featured WYSIWYG editor built on ProseMirror with support for **Markdown**, **JSON** (ProseMirror document tree), and **HTML** output formats. Includes slash commands, bubble menus, image uploads, tables, AI completions, and a raw Markdown toggle.
94
+
95
+ Type exports only from the main entry point (`RichTextEditorProps`, `JSONContent`, `EditorAIController`). The full ProseMirror editor is a heavy import (~300 KB) and available as a separate entry point:
96
+
97
+ ```ts
98
+ import { RichTextEditor } from "@rebasepro/cms/editor";
99
+ ```
100
+
101
+ > **Note:** The previous name `RebaseEditor` still works but is deprecated.
102
+
103
+ ### Utilities
104
+
105
+ | Export | Description |
106
+ |---|---|
107
+ | `getFieldConfig` / `getDefaultFieldConfig` | Resolve field config for a property type |
108
+ | `getIconForWidget` / `getIconForProperty` | Get the display icon for a property or widget |
109
+ | `getPropertyInPath` / `getResolvedPropertyInPath` | Navigate nested property paths |
110
+ | `getPropertiesWithPropertiesOrder` | Apply display ordering to properties |
111
+ | `getSnapshotPreviewKeys` / `getSnapshotTitlePropertyKey` | Determine preview/title fields |
112
+ | `isReferenceProperty` / `isRelationProperty` | Property type guards |
113
+ | `mergeSnapshotActions` / `resolveSnapshotAction` / `resolveSnapshotView` | Action & view resolution |
114
+ | Path helpers | `addInitialSlash`, `removeInitialSlash`, `removeTrailingSlash`, etc. |
115
+
116
+ ## Quick Start
117
+
118
+ ```tsx
119
+ import { RebaseCMS } from "@rebasepro/cms";
120
+
121
+ function App() {
122
+ return (
123
+ <RebaseCMS
124
+ collections={[/* your collection configs */]}
125
+ authController={authController}
126
+ dataSource={dataSource}
127
+ />
128
+ );
129
+ }
130
+ ```
131
+
132
+ ## Related Packages
133
+
134
+ - [`@rebasepro/app`](../app) — Runtime hooks, providers, auth components, and context
135
+ - [`@rebasepro/ui`](../ui) — Design system components (buttons, dialogs, inputs, etc.)
136
+ - [`@rebasepro/common`](../common) — Shared utilities, collection registry, query builder
137
+ - [`@rebasepro/types`](../types) — TypeScript type definitions
138
+ - [`@rebasepro/forms`](../forms) — Form state management
139
+ - [`@rebasepro/inference`](../inference) — Schema introspection from databases