@rebasepro/admin 0.9.0 → 0.9.1-canary.0fce67c

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 (234) hide show
  1. package/README.md +7 -7
  2. package/dist/{CollectionEditorDialog-B-7uW3iJ.js → CollectionEditorDialog-DbPpDDwb.js} +33 -11
  3. package/dist/CollectionEditorDialog-DbPpDDwb.js.map +1 -0
  4. package/dist/{PropertyEditView-7KMTcrqi.js → PropertyEditView-DfJbZ67t.js} +5 -5
  5. package/dist/PropertyEditView-DfJbZ67t.js.map +1 -0
  6. package/dist/{RouterCollectionsStudioView-epqIbZrJ.js → RouterCollectionsStudioView-C6XQ7Il5.js} +5 -5
  7. package/dist/RouterCollectionsStudioView-C6XQ7Il5.js.map +1 -0
  8. package/dist/collection_editor/api/generateCollectionApi.d.ts +4 -4
  9. package/dist/collection_editor/ui/collection_editor/PropertyEditView.d.ts +1 -1
  10. package/dist/collection_editor/ui/collection_editor/SwitchControl.d.ts +1 -1
  11. package/dist/collection_editor/useSafeSnackbarController.d.ts +1 -1
  12. package/dist/collection_editor_ui.js +5 -5
  13. package/dist/collection_editor_ui.js.map +1 -1
  14. package/dist/components/CollectionTableBinding/CollectionTableBindingProps.d.ts +1 -1
  15. package/dist/components/CollectionTableBinding/internal/EntityTableCell.d.ts +1 -1
  16. package/dist/components/CollectionTableBinding/internal/popup_field/PopupFormField.d.ts +1 -1
  17. package/dist/components/CollectionTableBinding/table_bindings.d.ts +1 -1
  18. package/dist/components/CollectionViewBinding/hooks/useCollectionInlineEditor.d.ts +1 -1
  19. package/dist/components/{RebaseCMS.d.ts → RebaseAdmin.d.ts} +2 -2
  20. package/dist/components/RebaseLayout.d.ts +5 -4
  21. package/dist/components/RebaseShell.d.ts +1 -0
  22. package/dist/components/SelectableTable/SelectableTable.d.ts +1 -1
  23. package/dist/components/SelectableTable/SelectableTableContext.d.ts +1 -1
  24. package/dist/components/SidePanelProvider.d.ts +1 -1
  25. package/dist/components/index.d.ts +1 -1
  26. package/dist/editor.js +1 -1
  27. package/dist/editor.js.map +1 -1
  28. package/dist/form/components/LocalChangesMenu.d.ts +1 -1
  29. package/dist/form/components/StorageUploadProgress.d.ts +1 -1
  30. package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +1 -1
  31. package/dist/{history-7X5bON_n.js → history-GSa4BgDt.js} +5 -5
  32. package/dist/history-GSa4BgDt.js.map +1 -0
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.js +2 -2
  35. package/dist/{src-sUZfe29F.js → src-B8WuGSPZ.js} +160 -56
  36. package/dist/src-B8WuGSPZ.js.map +1 -0
  37. package/dist/types/components/formex.d.ts +1 -1
  38. package/package.json +12 -17
  39. package/src/collection_editor/ConfigControllerProvider.tsx +1 -1
  40. package/src/collection_editor/api/generateCollectionApi.ts +4 -4
  41. package/src/collection_editor/ui/AddKanbanColumnAction.tsx +1 -1
  42. package/src/collection_editor/ui/CollectionViewHeaderAction.tsx +1 -1
  43. package/src/collection_editor/ui/EditorCollectionAction.tsx +1 -1
  44. package/src/collection_editor/ui/EditorCollectionActionStart.tsx +1 -1
  45. package/src/collection_editor/ui/EditorEntityAction.tsx +1 -1
  46. package/src/collection_editor/ui/HomePageEditorCollectionAction.tsx +1 -1
  47. package/src/collection_editor/ui/KanbanSetupAction.tsx +1 -1
  48. package/src/collection_editor/ui/MissingReferenceWidget.tsx +1 -1
  49. package/src/collection_editor/ui/NewCollectionButton.tsx +1 -1
  50. package/src/collection_editor/ui/NewCollectionCard.tsx +1 -1
  51. package/src/collection_editor/ui/PropertyAddColumnComponent.tsx +1 -1
  52. package/src/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.tsx +1 -1
  53. package/src/collection_editor/ui/collection_editor/CollectionDetailsForm.tsx +3 -3
  54. package/src/collection_editor/ui/collection_editor/CollectionEditorDialog.tsx +3 -3
  55. package/src/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.tsx +2 -2
  56. package/src/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.tsx +2 -2
  57. package/src/collection_editor/ui/collection_editor/CollectionRLSTab.tsx +37 -6
  58. package/src/collection_editor/ui/collection_editor/CollectionRelationsTab.tsx +1 -1
  59. package/src/collection_editor/ui/collection_editor/CollectionStudioView.tsx +1 -1
  60. package/src/collection_editor/ui/collection_editor/CollectionsStudioView.tsx +1 -1
  61. package/src/collection_editor/ui/collection_editor/DisplaySettingsForm.tsx +2 -2
  62. package/src/collection_editor/ui/collection_editor/EntityActionsEditTab.tsx +2 -2
  63. package/src/collection_editor/ui/collection_editor/EntityActionsSelectDialog.tsx +1 -1
  64. package/src/collection_editor/ui/collection_editor/EntityCustomViewsSelectDialog.tsx +1 -1
  65. package/src/collection_editor/ui/collection_editor/EnumForm.tsx +2 -2
  66. package/src/collection_editor/ui/collection_editor/GeneralSettingsForm.tsx +2 -2
  67. package/src/collection_editor/ui/collection_editor/GetCodeDialog.tsx +2 -2
  68. package/src/collection_editor/ui/collection_editor/KanbanConfigSection.tsx +2 -2
  69. package/src/collection_editor/ui/collection_editor/PropertyEditView.tsx +2 -2
  70. package/src/collection_editor/ui/collection_editor/PropertyFieldPreview.tsx +1 -1
  71. package/src/collection_editor/ui/collection_editor/PropertyTree.tsx +1 -1
  72. package/src/collection_editor/ui/collection_editor/RouterCollectionStudioView.tsx +1 -1
  73. package/src/collection_editor/ui/collection_editor/SubcollectionsEditTab.tsx +2 -2
  74. package/src/collection_editor/ui/collection_editor/SwitchControl.tsx +1 -1
  75. package/src/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.tsx +1 -1
  76. package/src/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.tsx +2 -2
  77. package/src/collection_editor/ui/collection_editor/properties/BlockPropertyField.tsx +1 -1
  78. package/src/collection_editor/ui/collection_editor/properties/BooleanPropertyField.tsx +1 -1
  79. package/src/collection_editor/ui/collection_editor/properties/CommonPropertyFields.tsx +2 -2
  80. package/src/collection_editor/ui/collection_editor/properties/DateTimePropertyField.tsx +2 -2
  81. package/src/collection_editor/ui/collection_editor/properties/EnumPropertyField.tsx +2 -2
  82. package/src/collection_editor/ui/collection_editor/properties/MapPropertyField.tsx +2 -2
  83. package/src/collection_editor/ui/collection_editor/properties/MarkdownPropertyField.tsx +2 -2
  84. package/src/collection_editor/ui/collection_editor/properties/NumberPropertyField.tsx +2 -2
  85. package/src/collection_editor/ui/collection_editor/properties/ReferencePropertyField.tsx +2 -2
  86. package/src/collection_editor/ui/collection_editor/properties/RelationPropertyField.tsx +1 -1
  87. package/src/collection_editor/ui/collection_editor/properties/RepeatPropertyField.tsx +1 -1
  88. package/src/collection_editor/ui/collection_editor/properties/StoragePropertyField.tsx +2 -2
  89. package/src/collection_editor/ui/collection_editor/properties/StringPropertyField.tsx +2 -2
  90. package/src/collection_editor/ui/collection_editor/properties/UrlPropertyField.tsx +1 -1
  91. package/src/collection_editor/ui/collection_editor/properties/VectorPropertyField.tsx +1 -1
  92. package/src/collection_editor/ui/collection_editor/properties/advanced/AdvancedPropertyValidation.tsx +1 -1
  93. package/src/collection_editor/ui/collection_editor/properties/conditions/ConditionsEditor.tsx +1 -1
  94. package/src/collection_editor/ui/collection_editor/properties/conditions/EnumConditionsEditor.tsx +1 -1
  95. package/src/collection_editor/ui/collection_editor/properties/validation/ArrayPropertyValidation.tsx +2 -2
  96. package/src/collection_editor/ui/collection_editor/properties/validation/GeneralPropertyValidation.tsx +2 -2
  97. package/src/collection_editor/ui/collection_editor/properties/validation/NumberPropertyValidation.tsx +2 -2
  98. package/src/collection_editor/ui/collection_editor/properties/validation/StringPropertyValidation.tsx +2 -2
  99. package/src/collection_editor/useSafeSnackbarController.ts +1 -1
  100. package/src/components/AdminModeSyncer.tsx +1 -1
  101. package/src/components/ArrayContainer.tsx +1 -1
  102. package/src/components/ClearFilterSortButton.tsx +1 -1
  103. package/src/components/CollectionPanel.tsx +1 -1
  104. package/src/components/CollectionTableBinding/CollectionRowActions.tsx +2 -2
  105. package/src/components/CollectionTableBinding/CollectionTableBinding.tsx +3 -3
  106. package/src/components/CollectionTableBinding/CollectionTableBindingProps.tsx +1 -1
  107. package/src/components/CollectionTableBinding/PropertyTableCell.tsx +1 -1
  108. package/src/components/CollectionTableBinding/column_utils.tsx +1 -1
  109. package/src/components/CollectionTableBinding/fields/TableMultipleRelationField.tsx +2 -2
  110. package/src/components/CollectionTableBinding/fields/TableReferenceField.tsx +1 -1
  111. package/src/components/CollectionTableBinding/fields/TableRelationField.tsx +2 -2
  112. package/src/components/CollectionTableBinding/fields/TableStorageUpload.tsx +1 -1
  113. package/src/components/CollectionTableBinding/internal/CollectionTableToolbar.tsx +1 -1
  114. package/src/components/CollectionTableBinding/internal/EntityTableCell.tsx +2 -2
  115. package/src/components/CollectionTableBinding/internal/EntityTableCellActions.tsx +1 -1
  116. package/src/components/CollectionTableBinding/internal/popup_field/PopupFormField.tsx +4 -4
  117. package/src/components/CollectionTableBinding/table_bindings.tsx +1 -1
  118. package/src/components/CollectionViewBinding/BoardCardBinding.tsx +2 -2
  119. package/src/components/CollectionViewBinding/CollectionBoardViewBinding.tsx +3 -3
  120. package/src/components/CollectionViewBinding/CollectionCardViewBinding.tsx +1 -1
  121. package/src/components/CollectionViewBinding/CollectionListViewBinding.tsx +3 -3
  122. package/src/components/CollectionViewBinding/CollectionViewActions.tsx +2 -2
  123. package/src/components/CollectionViewBinding/CollectionViewBinding.tsx +1 -1
  124. package/src/components/CollectionViewBinding/CollectionViewStartActions.tsx +1 -1
  125. package/src/components/CollectionViewBinding/EntityCardBinding.tsx +3 -3
  126. package/src/components/CollectionViewBinding/FiltersDialog.tsx +19 -1
  127. package/src/components/CollectionViewBinding/SplitListView.tsx +1 -1
  128. package/src/components/CollectionViewBinding/ViewModeToggle.tsx +1 -1
  129. package/src/components/CollectionViewBinding/hooks/useCollectionInlineEditor.ts +2 -2
  130. package/src/components/CollectionViewBinding/hooks/useKanbanDragAndDrop.ts +2 -2
  131. package/src/components/CollectionViewBinding/useBoardDataController.tsx +9 -3
  132. package/src/components/CollectionViewBinding/usePreviewSlots.ts +1 -1
  133. package/src/components/DefaultAppBar.tsx +3 -3
  134. package/src/components/DefaultDrawer.tsx +3 -3
  135. package/src/components/DeleteEntityDialog.tsx +1 -1
  136. package/src/components/DetailViewBinding.tsx +3 -3
  137. package/src/components/DrawerNavigationGroup.tsx +2 -2
  138. package/src/components/EditFormActions.tsx +4 -4
  139. package/src/components/EditViewBinding.tsx +6 -6
  140. package/src/components/EntityPreviewBinding.tsx +3 -3
  141. package/src/components/EntityViewBinding.tsx +2 -2
  142. package/src/components/HomePage/ContentHomePage.tsx +4 -4
  143. package/src/components/HomePage/FavouritesView.tsx +1 -1
  144. package/src/components/HomePage/NavigationCardBinding.tsx +3 -3
  145. package/src/components/HomePage/NavigationGroup.tsx +1 -1
  146. package/src/components/HomePage/RenameGroupDialog.tsx +1 -1
  147. package/src/components/JsonPreviewBinding.tsx +1 -1
  148. package/src/components/{RebaseCMS.tsx → RebaseAdmin.tsx} +3 -3
  149. package/src/components/RebaseAuthGate.tsx +2 -2
  150. package/src/components/RebaseLayout.tsx +7 -13
  151. package/src/components/RebaseNavigation.tsx +18 -3
  152. package/src/components/RebaseRouteDefs.tsx +2 -2
  153. package/src/components/RebaseShell.tsx +2 -1
  154. package/src/components/ReferenceTable/SelectionTableBinding.tsx +5 -5
  155. package/src/components/RelationSelector.tsx +1 -1
  156. package/src/components/SearchIconsView.tsx +2 -2
  157. package/src/components/SelectableTable/SelectableTable.tsx +2 -2
  158. package/src/components/SelectableTable/SelectableTableContext.tsx +1 -1
  159. package/src/components/SelectableTable/filters/BooleanFilterField.tsx +1 -1
  160. package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +1 -1
  161. package/src/components/SelectableTable/filters/FilterFieldBinding.tsx +1 -1
  162. package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +1 -1
  163. package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +1 -1
  164. package/src/components/SideDialogs.tsx +1 -1
  165. package/src/components/SidePanelBinding.tsx +1 -1
  166. package/src/components/SidePanelProvider.tsx +2 -2
  167. package/src/components/UserSelector.tsx +1 -1
  168. package/src/components/admin/CreationResultDialog.tsx +6 -3
  169. package/src/components/app/Scaffold.tsx +6 -2
  170. package/src/components/common/default_entity_actions.tsx +123 -25
  171. package/src/components/field_configs.tsx +1 -1
  172. package/src/components/history/EntityHistoryEntry.tsx +1 -1
  173. package/src/components/history/EntityHistoryView.tsx +4 -4
  174. package/src/components/history/LastEditedByIndicator.tsx +2 -2
  175. package/src/components/index.ts +1 -1
  176. package/src/data_export/export/BasicExportAction.tsx +1 -1
  177. package/src/data_export/export/ExportCollectionAction.tsx +1 -1
  178. package/src/data_import/components/DataNewPropertiesMapping.tsx +1 -1
  179. package/src/data_import/components/ImportFileUpload.tsx +1 -1
  180. package/src/data_import/components/ImportNewPropertyFieldPreview.tsx +1 -1
  181. package/src/data_import/components/ImportSaveInProgress.tsx +1 -1
  182. package/src/data_import/import/ImportCollectionAction.tsx +2 -2
  183. package/src/data_import/utils/data.ts +2 -2
  184. package/src/data_import/utils/get_properties_mapping.ts +1 -1
  185. package/src/editor/components/image-bubble.tsx +1 -1
  186. package/src/editor/components/table-bubble.tsx +1 -1
  187. package/src/editor/editor.tsx +1 -1
  188. package/src/editor/selectors/link-selector.tsx +1 -1
  189. package/src/editor/selectors/node-selector.tsx +1 -1
  190. package/src/form/EntityForm.tsx +4 -4
  191. package/src/form/EntityFormActions.tsx +1 -1
  192. package/src/form/EntityFormBinding.tsx +4 -4
  193. package/src/form/PropertyFieldBinding.tsx +3 -3
  194. package/src/form/components/ErrorFocus.tsx +1 -1
  195. package/src/form/components/LocalChangesMenu.tsx +3 -3
  196. package/src/form/components/StorageItemPreview.tsx +1 -1
  197. package/src/form/components/StorageUploadProgress.tsx +3 -3
  198. package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +1 -1
  199. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +1 -1
  200. package/src/form/field_bindings/BlockFieldBinding.tsx +2 -2
  201. package/src/form/field_bindings/DateTimeFieldBinding.tsx +1 -1
  202. package/src/form/field_bindings/KeyValueFieldBinding.tsx +2 -2
  203. package/src/form/field_bindings/MapFieldBinding.tsx +1 -1
  204. package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +2 -2
  205. package/src/form/field_bindings/MultipleRelationFieldBinding.tsx +1 -1
  206. package/src/form/field_bindings/ReferenceFieldBinding.tsx +2 -2
  207. package/src/form/field_bindings/RelationFieldBinding.tsx +1 -1
  208. package/src/form/field_bindings/RepeatFieldBinding.tsx +1 -1
  209. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +3 -3
  210. package/src/form/form_utils.ts +1 -1
  211. package/src/hooks/navigation/useNavigationResolution.ts +19 -4
  212. package/src/hooks/useBuildSidePanel.tsx +2 -2
  213. package/src/hooks/useCMSContext.tsx +1 -1
  214. package/src/hooks/useHistory.ts +1 -1
  215. package/src/hooks/useResolvedNavigationFrom.tsx +4 -2
  216. package/src/index.ts +3 -3
  217. package/src/preview/PropertyPreview.tsx +2 -2
  218. package/src/preview/components/DatePreview.tsx +1 -1
  219. package/src/preview/components/EnumValuesChip.tsx +1 -1
  220. package/src/preview/components/ImagePreview.tsx +1 -1
  221. package/src/preview/components/ReferencePreview.tsx +2 -2
  222. package/src/preview/components/RelationPreview.tsx +1 -1
  223. package/src/preview/components/StorageThumbnail.tsx +1 -1
  224. package/src/preview/property_previews/ArrayOfStorageComponentsPreview.tsx +1 -1
  225. package/src/preview/property_previews/ArrayOneOfPreview.tsx +1 -1
  226. package/src/preview/property_previews/ArrayPropertyPreview.tsx +1 -1
  227. package/src/routes/RebaseRoute.tsx +2 -2
  228. package/src/types/components/formex.tsx +1 -1
  229. package/src/util/previews.ts +4 -2
  230. package/dist/CollectionEditorDialog-B-7uW3iJ.js.map +0 -1
  231. package/dist/PropertyEditView-7KMTcrqi.js.map +0 -1
  232. package/dist/RouterCollectionsStudioView-epqIbZrJ.js.map +0 -1
  233. package/dist/history-7X5bON_n.js.map +0 -1
  234. package/dist/src-sUZfe29F.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import type { Properties } from "@rebasepro/types";
2
2
  import React from "react";
3
- import { FormexController } from "@rebasepro/formex";
3
+ import { FormexController } from "@rebasepro/forms";
4
4
  interface LocalChangesMenuProps<M extends Record<string, unknown>> {
5
5
  cacheKey: string;
6
6
  cachedData: Partial<M>;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { StorageFieldItem } from "@rebasepro/core";
2
+ import { StorageFieldItem } from "@rebasepro/app";
3
3
  import type { StorageSource } from "@rebasepro/types";
4
4
  export interface StorageUploadItemProps {
5
5
  storagePath: string;
@@ -2,7 +2,7 @@ import type { FieldProps } from "../../types/fields";
2
2
  import type { ArrayProperty, StringProperty } from "@rebasepro/types";
3
3
  import React from "react";
4
4
  import { StorageConfig } from "@rebasepro/types";
5
- import { StorageFieldItem } from "@rebasepro/core";
5
+ import { StorageFieldItem } from "@rebasepro/app";
6
6
  export declare function StorageUploadFieldBinding({ propertyKey, value, setValue, error, showError, autoFocus, minimalistView, property, includeDescription, context, isSubmitting }: FieldProps<StringProperty | ArrayProperty>): React.JSX.Element;
7
7
  export interface StorageUploadProps {
8
8
  value: StorageFieldItem[];
@@ -1,7 +1,7 @@
1
- import { Fn as useHistory, V as PropertyPreview, yr as getPropertyInPath } from "./src-sUZfe29F.js";
1
+ import { Fn as useHistory, V as PropertyPreview, yr as getPropertyInPath } from "./src-B8WuGSPZ.js";
2
2
  import { useEffect, useRef, useState } from "react";
3
3
  import { ArrowLeftIcon, Chip, ErrorBoundary, HistoryIcon, IconButton, Label, Tooltip, Typography, cls, defaultBorderMixin, iconSize } from "@rebasepro/ui";
4
- import { ConfirmationDialog, useAuthController, useSnackbarController } from "@rebasepro/core";
4
+ import { ConfirmationDialog, useAuthController, useSnackbarController } from "@rebasepro/app";
5
5
  import { getValueInPath } from "@rebasepro/utils";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/components/history/UserChip.tsx
@@ -194,7 +194,7 @@ function EntityHistoryView({ entity, collection, formContext }) {
194
194
  ]);
195
195
  if (!entity) return /* @__PURE__ */ jsx("div", {
196
196
  className: "flex items-center justify-center h-full",
197
- children: /* @__PURE__ */ jsx(Label, { children: "HistoryIcon is only available for existing entities" })
197
+ children: /* @__PURE__ */ jsx(Label, { children: "History is only available for existing entities" })
198
198
  });
199
199
  async function doRevert(historyId) {
200
200
  setIsReverting(true);
@@ -230,7 +230,7 @@ function EntityHistoryView({ entity, collection, formContext }) {
230
230
  /* @__PURE__ */ jsx(Typography, {
231
231
  variant: "h5",
232
232
  className: "mt-24 ml-4",
233
- children: "HistoryIcon"
233
+ children: "History"
234
234
  }),
235
235
  isLoading && entries.length === 0 && /* @__PURE__ */ jsx("div", {
236
236
  className: "flex flex-col gap-4 mt-8 ml-4",
@@ -308,4 +308,4 @@ function EntityHistoryView({ entity, collection, formContext }) {
308
308
  //#endregion
309
309
  export { EntityHistoryView };
310
310
 
311
- //# sourceMappingURL=history-7X5bON_n.js.map
311
+ //# sourceMappingURL=history-GSa4BgDt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history-GSa4BgDt.js","names":[],"sources":["../src/components/history/UserChip.tsx","../src/components/history/EntityHistoryEntry.tsx","../src/components/history/EntityHistoryView.tsx"],"sourcesContent":["import { User } from \"@rebasepro/types\";\nimport { Chip, Tooltip } from \"@rebasepro/ui\";\n\nexport function UserChip({ user }: { user: User }) {\n return (\n <Tooltip title={user.email ?? user.uid}>\n <Chip size={\"small\"} className={\"flex items-center\"}>\n {user.photoURL && <img\n className={\"rounded-full w-6 h-6 mr-2\"}\n src={user.photoURL} alt={user.displayName ?? \"User picture\"}/>}\n <span>{user.displayName ?? user.email ?? user.uid}</span>\n </Chip>\n </Tooltip>\n );\n}\n","import type { CollectionConfig } from \"@rebasepro/types\";\nimport type { Property } from \"@rebasepro/types\";\nimport * as React from \"react\";\n\nimport { ArrowLeftIcon, Chip, cls, defaultBorderMixin, iconSize, Tooltip, Typography } from \"@rebasepro/ui\";\nimport { PreviewSize } from \"../../types/components/PropertyPreviewProps\";\nimport { getPropertyInPath } from \"../../util/property_utils\";\nimport { PropertyPreview } from \"../../preview/PropertyPreview\";\nimport { SkeletonPropertyComponent } from \"../../preview/property_previews/SkeletonPropertyComponent\";\nimport { useAuthController } from \"@rebasepro/app\";\nimport { UserChip } from \"./UserChip\";\nimport { HistoryEntryData } from \"../../hooks\";\nimport { getValueInPath } from \"@rebasepro/utils\";\n\n/**\n * Recursive deep equality for primitives, arrays and plain objects.\n */\nfunction deepEqual(a: unknown, b: unknown): boolean {\n if (a === b) return true;\n if (a == null || b == null) return a === b;\n if (typeof a !== typeof b) return false;\n if (typeof a !== \"object\") return false;\n\n if (Array.isArray(a)) {\n if (!Array.isArray(b) || a.length !== (b as unknown[]).length) return false;\n return a.every((item, i) => deepEqual(item, (b as unknown[])[i]));\n }\n\n if (Array.isArray(b)) return false;\n\n const aObj = a as Record<string, unknown>;\n const bObj = b as Record<string, unknown>;\n const aKeys = Object.keys(aObj);\n const bKeys = Object.keys(bObj);\n if (aKeys.length !== bKeys.length) return false;\n return aKeys.every(key => key in bObj && deepEqual(aObj[key], bObj[key]));\n}\n\nexport type EntityHistoryEntryProps = {\n size: PreviewSize;\n actions?: React.ReactNode;\n collection?: CollectionConfig;\n hover?: boolean;\n entry: HistoryEntryData;\n onClick?: (e: React.SyntheticEvent) => void;\n};\n\nfunction PreviousValueView({\n previousValueInPath,\n childProperty,\n propertyKey\n}: {\n previousValueInPath: unknown;\n childProperty: Property;\n propertyKey: string;\n}) {\n if (typeof previousValueInPath === \"string\" || typeof previousValueInPath === \"number\") {\n return <Typography variant={\"caption\"} color={\"secondary\"} className=\"line-through\">\n {previousValueInPath}\n </Typography>;\n } else if (typeof previousValueInPath === \"boolean\") {\n return <Typography variant={\"caption\"} color={\"secondary\"} className=\"line-through\">\n {previousValueInPath ? \"true\" : \"false\"}\n </Typography>;\n } else {\n return <Tooltip\n side={\"left\"}\n title={<div className={\"flex flex-col gap-2\"}>\n <Typography variant={\"caption\"} color={\"secondary\"}>\n Previous value\n </Typography>\n <PropertyPreview\n propertyKey={propertyKey as string}\n value={previousValueInPath as never}\n property={childProperty as Property}\n size={\"small\"}/>\n </div>}>\n <ArrowLeftIcon size={iconSize.smallest} color={\"disabled\"} className={\"mb-1\"}/>\n </Tooltip>\n }\n}\n\n/**\n * Displays a single entity history revision entry.\n * Adapted from the entity_history plugin — now reads from backend API data.\n */\nexport function EntityHistoryEntry({\n actions,\n hover,\n collection,\n size,\n entry\n}: EntityHistoryEntryProps) {\n\n const authController = useAuthController();\n\n const changedFields = entry.changed_fields;\n const previousValues = entry.previous_values;\n const updatedOn = new Date(entry.updated_at);\n const updatedBy = entry.updated_by;\n\n // Resolve user display\n const currentUser = authController.user;\n const userDisplay = updatedBy === currentUser?.uid\n ? currentUser\n : undefined;\n\n return <div className={\"w-full flex flex-col gap-2 mt-4\"}>\n <div className={\"ml-4 flex items-center gap-4\"}>\n <Typography variant={\"body2\"} color={\"secondary\"}>\n {updatedOn.toLocaleString()}\n </Typography>\n <Chip size={\"small\"}>\n {entry.action}\n </Chip>\n {!userDisplay && updatedBy && <Chip size={\"small\"}>{updatedBy}</Chip>}\n {userDisplay && <UserChip user={userDisplay}/>}\n </div>\n <div\n className={cls(\n \"bg-white dark:bg-surface-900\",\n \"min-h-[44px]\",\n \"w-full\",\n \"items-center\",\n hover ? \"hover:bg-surface-accent-50 dark:hover:bg-surface-800\" : \"\",\n size === \"small\" ? \"p-1\" : \"px-2 py-1\",\n \"flex border rounded-lg\",\n defaultBorderMixin\n )}>\n\n {actions}\n\n <div className={\"flex flex-col grow w-full m-1 shrink min-w-0\"}>\n\n {changedFields && collection && changedFields.map((key: string) => {\n const childProperty = getPropertyInPath(collection.properties, key);\n const valueInPath = entry.values ? getValueInPath(entry.values, key) : undefined;\n const previousValueInPath = previousValues ? getValueInPath(previousValues, key) : undefined;\n\n const element = childProperty\n ? <PropertyPreview\n propertyKey={key}\n value={valueInPath as never}\n property={childProperty as Property}\n size={\"small\"}/>\n : <Typography variant={\"body2\"}>\n {typeof valueInPath === \"string\" ? valueInPath : JSON.stringify(valueInPath)}\n </Typography>;\n\n return (\n <div key={\"ref_prev_\" + key}\n className=\"flex w-full my-1 items-center\">\n <Typography variant={\"caption\"}\n color={\"secondary\"}\n className=\"min-w-[140px] md:min-w-[200px] w-1/5 pr-8 overflow-hidden text-ellipsis text-right\">\n {key}\n </Typography>\n <div className=\"w-4/5\">\n {previousValueInPath !== undefined && !deepEqual(previousValueInPath, valueInPath) &&\n <PreviousValueView previousValueInPath={previousValueInPath}\n childProperty={childProperty as Property}\n propertyKey={key}/>\n }\n {element}\n </div>\n </div>\n );\n })}\n\n {(!changedFields || changedFields.length === 0) && (\n <Typography variant={\"caption\"} color={\"secondary\"} className=\"ml-4\">\n {entry.action === \"create\" ? \"Entity created\" :\n entry.action === \"delete\" ? \"Entity deleted\" : \"No field changes recorded\"}\n </Typography>\n )}\n\n </div>\n\n </div>\n </div>;\n}\n","\nimport type { EntityCustomViewParams } from \"@rebasepro/types\";\nimport { useRef, useEffect } from \"react\";\nimport { cls, IconButton, Label, Tooltip, Typography } from \"@rebasepro/ui\";\nimport { ErrorBoundary, HistoryIcon } from \"@rebasepro/ui\";\nimport { EntityHistoryEntry } from \"./EntityHistoryEntry\";\nimport { useSnackbarController, useAuthController } from \"@rebasepro/app\";\nimport { ConfirmationDialog } from \"@rebasepro/app\";\nimport { useState } from \"react\";\nimport { useHistory } from \"../../index\";\n\n/**\n * Entity history tab view. Shows a paginated list of entity revisions\n * fetched from the backend API. Supports infinite scroll and revert.\n */\nexport function EntityHistoryView<M extends Record<string, unknown>>({\n entity,\n collection,\n formContext\n}: EntityCustomViewParams<M>) {\n\n const snackbarController = useSnackbarController();\n const authController = useAuthController();\n const dirty = formContext?.formex.dirty;\n\n const slug = collection.slug;\n const entityId = entity?.id;\n\n const {\n entries,\n isLoading,\n hasMore,\n loadMore,\n revert\n } = useHistory({\n slug,\n entityId,\n enabled: !!entityId,\n pageSize: 10\n });\n\n const [revertHistoryId, setRevertHistoryId] = useState<string | undefined>();\n const [isReverting, setIsReverting] = useState(false);\n\n const containerRef = useRef<HTMLDivElement>(null);\n const loadMoreRef = useRef<HTMLDivElement>(null);\n\n // Intersection observer for infinite scroll\n useEffect(() => {\n const currentContainer = containerRef.current;\n const currentLoadMore = loadMoreRef.current;\n\n if (!currentContainer || !currentLoadMore || !hasMore || isLoading) return;\n\n const observer = new IntersectionObserver(\n (observerEntries) => {\n if (observerEntries[0].isIntersecting && hasMore && !isLoading) {\n loadMore();\n }\n },\n {\n root: currentContainer,\n rootMargin: \"0px 0px 200px 0px\",\n threshold: 0.01\n }\n );\n\n observer.observe(currentLoadMore);\n\n return () => observer.disconnect();\n }, [hasMore, isLoading, entries.length, loadMore]);\n\n if (!entity) {\n return <div className=\"flex items-center justify-center h-full\">\n <Label>History is only available for existing entities</Label>\n </div>;\n }\n\n async function doRevert(historyId: string) {\n setIsReverting(true);\n try {\n const revertedValues = await revert(historyId);\n setRevertHistoryId(undefined);\n\n // Reset the form with the reverted values so the UI updates\n // immediately without requiring a page refresh.\n if (formContext?.formex?.resetForm && revertedValues) {\n formContext.formex.resetForm({\n values: revertedValues as M,\n submitCount: 0,\n touched: {}\n });\n }\n\n snackbarController.open({\n message: \"Reverted to selected version\",\n type: \"info\"\n });\n } catch (error) {\n console.error(\"Error reverting entity:\", error);\n snackbarController.open({\n message: \"Error reverting entity\",\n type: \"error\"\n });\n } finally {\n setIsReverting(false);\n }\n }\n\n const revertEntry = revertHistoryId\n ? entries.find(e => e.id === revertHistoryId)\n : undefined;\n\n return <div\n ref={containerRef}\n className={cls(\"relative flex-1 h-full overflow-auto w-full flex flex-col gap-4 p-8\")}>\n <div className=\"flex flex-col gap-2 max-w-6xl mx-auto w-full\">\n\n <Typography variant={\"h5\"} className={\"mt-24 ml-4\"}>\n History\n </Typography>\n\n {isLoading && entries.length === 0 && (\n <div className=\"flex flex-col gap-4 mt-8 ml-4\">\n {[1, 2, 3].map(i => (\n <div key={i} className=\"flex flex-col gap-2 animate-pulse\">\n <div className=\"h-4 w-48 bg-surface-200 dark:bg-surface-700 rounded\"/>\n <div className=\"h-12 w-full bg-surface-100 dark:bg-surface-900 rounded-lg border border-surface-200 dark:border-surface-700\"/>\n </div>\n ))}\n </div>\n )}\n\n {!isLoading && entries.length === 0 && <>\n <Label className={\"ml-4 mt-8\"}>\n No history available\n </Label>\n <Typography variant={\"caption\"} className={\"ml-4\"}>\n When you save a entity, a new version is created and stored in the history.\n </Typography>\n </>}\n\n {entries.map((entry) => (\n <div key={entry.id} className=\"flex flex-cols gap-2 w-full\">\n <EntityHistoryEntry\n entry={entry}\n collection={collection}\n size={\"medium\"}\n actions={\n <Tooltip title={\"Revert to this version\"}\n className={\"m-2 grow-0 self-start\"}>\n <IconButton\n onClick={() => {\n if (dirty) {\n snackbarController.open({\n message: \"Please save or discard your changes before reverting\",\n type: \"warning\"\n });\n } else {\n setRevertHistoryId(entry.id);\n }\n }}>\n <HistoryIcon/>\n </IconButton>\n </Tooltip>\n }\n />\n </div>\n ))}\n\n {/* Load more sentinel */}\n {entries.length > 0 && (\n <div ref={loadMoreRef} className=\"py-4 text-center\">\n {isLoading && <Label>Loading more...</Label>}\n {!hasMore && entries.length > 10 && <Label>No more history available</Label>}\n </div>\n )}\n </div>\n\n <ErrorBoundary>\n <ConfirmationDialog\n open={Boolean(revertHistoryId)}\n onAccept={() => {\n if (revertHistoryId) doRevert(revertHistoryId);\n }}\n onCancel={() => setRevertHistoryId(undefined)}\n title={<Typography variant={\"subtitle2\"}>Revert data to this version?</Typography>}\n body={revertEntry\n ? <div className=\"p-4\">\n <Typography variant={\"caption\"} color={\"secondary\"}>\n This will save the entity with the values from{\" \"}\n {new Date(revertEntry.updated_at).toLocaleString()}.\n A new history entry will be created for the revert.\n </Typography>\n </div>\n : null\n }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AS;cAAa;GAAwC,CAAA;GACjF,MAAM,cACA,oBAAC,OAAD;IAAK,WAAU;cACb,qBAAC,YAAD;KAAY,SAAS;KAAW,OAAO;eAAvC;MAAoD;MACD;MAC9C,IAAI,KAAK,YAAY,UAAU,EAAE,eAAe;MAAE;KAE3C;;GACX,CAAA,IACH;EAET,CAAA,EACU,CAAA,CACd;;AACT"}
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export type { RichTextEditorProps, RichTextEditorTextSize, JSONContent, EditorAI
3
3
  export * from "./form";
4
4
  export * from "./preview";
5
5
  export * from "./routes";
6
- export { EntityViewBinding, SelectionTableBinding, SelectableTable, SelectableTableContext, CollectionViewBinding, CollectionViewActions, CollectionCardViewBinding, EntityCardBinding, useSelectionController, PropertyConfigBadge, PropertyIdCopyTooltip, CollectionTableBinding, CollectionRowActions, VirtualTableInput, ArrayContainer, type ArrayEntryParams, ReferenceWidget, SearchIconsView, FieldCaption, EntityPreviewBinding, getFieldConfig, getFieldId, getDefaultFieldConfig, getDefaultFieldId, DEFAULT_FIELD_CONFIGS, editEntityAction, copyEntityAction, deleteEntityAction, resetPasswordAction, SidePanelProvider, Scaffold, AppBar, Drawer, DefaultDrawer, DrawerFooterActions, AdminModeSyncer, RebaseCMS, RebaseShell, RebaseAuthGate, RebaseNavigation, RebaseLayout, RebaseRouteDefs, SideDialogs, useApp, CollectionPanel } from "./components";
6
+ export { EntityViewBinding, SelectionTableBinding, SelectableTable, SelectableTableContext, CollectionViewBinding, CollectionViewActions, CollectionCardViewBinding, EntityCardBinding, useSelectionController, PropertyConfigBadge, PropertyIdCopyTooltip, CollectionTableBinding, CollectionRowActions, VirtualTableInput, ArrayContainer, type ArrayEntryParams, ReferenceWidget, SearchIconsView, FieldCaption, EntityPreviewBinding, getFieldConfig, getFieldId, getDefaultFieldConfig, getDefaultFieldId, DEFAULT_FIELD_CONFIGS, editEntityAction, copyEntityAction, deleteEntityAction, resetPasswordAction, SidePanelProvider, Scaffold, AppBar, Drawer, DefaultDrawer, DrawerFooterActions, AdminModeSyncer, RebaseAdmin, RebaseShell, RebaseAuthGate, RebaseNavigation, RebaseLayout, RebaseRouteDefs, SideDialogs, useApp, CollectionPanel } from "./components";
7
7
  export type { EntityViewBindingProps, SelectionProps, SelectableTableProps, CollectionPanelProps } from "./components";
8
8
  export * from "./hooks";
9
9
  export { addInitialSlash, removeInitialSlash, removeTrailingSlash, removeInitialAndTrailingSlashes, getLastSegment, getCollectionBySlugWithin, getCollectionPathsCombinations, resolveCollectionPathIds, mergeEntityActions, resolveEntityAction, resolveEntityView, isReferenceProperty, isRelationProperty, getIconForWidget, getIconForProperty, getPropertyInPath, getResolvedPropertyInPath, getBracketNotation, getPropertiesWithPropertiesOrder, getDefaultPropertiesOrder, getEntityPreviewKeys, getEntityTitlePropertyKey } from "./util";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as RelationPreview, $n as SelectableTable, $t as BlockFieldBinding, A as useCollectionDataController, An as removeInitialAndTrailingSlashes, Ar as renderSkeletonIcon, At as useImportConfig, B as ArrayOfMapsPreview, Bn as useUrlController, Bt as getFieldId, C as downloadEntitiesExport, Cn as editEntityAction, Cr as ArrayPropertyPreview, Ct as useCollectionEditorController, D as ImportDataPreview, Dn as getCollectionBySlugWithin, Dr as StorageThumbnailInternal, Dt as flattenEntry, E as ImportCollectionAction, En as addInitialSlash, Er as StorageThumbnail, Et as convertDataToEntity, F as extractTouchedValues, Fn as useHistory, Fr as ImagePreview, Ft as PropertyConfigBadge, G as DatePreview, Gn as useSideDialogsController, Gt as SelectFieldBinding, H as UserPreview, Hn as useNavigationStateController, Ht as TextFieldBinding, I as getChanges, In as resolveNavigationFrom, Ir as EmptyValue, It as DEFAULT_FIELD_CONFIGS, J as ArrayOneOfPreview, Jn as useBuildSidePanel, Jt as MultiSelectFieldBinding, K as KeyValuePreview, Kn as buildSidePanelsFromUrl, Kt as RepeatFieldBinding, L as getInitialEntityValues, Ln as useResolvedNavigationFrom, Lt as getDefaultFieldConfig, M as mapPropertyToConfig, Mn as removeTrailingSlash, Mr as renderSkeletonText, Mt as ImportFileUpload, N as EntityFormBinding, Nn as resolveCollectionPathIds, Nr as UrlComponentPreview, Nt as convertFileToJson, O as PropertySelectEntry, On as getCollectionPathsCombinations, Or as SkeletonPropertyComponent, Ot as processValueMapping, P as EntityForm, Pn as useBuildCollectionRegistryController, Pr as sanitizeUrl, Pt as unflattenObject, Q as ArrayOfStorageComponentsPreview, Qn as CollectionTableBinding, Qt as DateTimeFieldBinding, R as removeEmptyContainers, Rn as useCMSContext, Rt as getDefaultFieldId, S as downloadDataAsCsv, Sn as deleteEntityAction, Sr as isRelationProperty, St as CollectionViewActions, T as getEntityJsonExportableData, Tn as CreationResultDialog, Tr as EnumValuesChip, Tt as DataNewPropertiesMapping, U as NumberPropertyPreview, Un as CollectionRegistryContext, Ut as SwitchFieldBinding, V as PropertyPreview, Vn as NavigationStateContext, Vt as VectorFieldBinding, W as BooleanPreview, Wn as useCollectionRegistryController, Wt as StorageUploadFieldBinding, X as ArrayPropertyEnumPreview, Xn as useSelectionController, Xt as MapFieldBinding, Y as ArrayOfStringsPreview, Yn as mergeEntityActions, Yt as MarkdownEditorFieldBinding, Z as ArrayEnumPreview, Zn as VirtualTableInput, Zt as KeyValueFieldBinding, _ as toSerializableProperty, _n as useBuildNavigationStateController, _r as getIconForWidget, _t as SidePanelProvider, a as namespaceToPropertiesPath, an as FormLayout, ar as useSelectionDialog, at as RebaseLayout, b as BasicExportAction, bn as useResolvedCollections, br as getResolvedPropertyInPath, bt as CollectionCardViewBinding, c as DEFAULT_COLLECTION_GENERATION_ENDPOINT, cn as PropertyIdCopyTooltip, cr as EntityViewBinding, ct as RebaseAuthGate, d as useJsonCollectionsConfigController, dn as SearchIconsView, dr as EntityPreviewBinding, dt as Drawer, en as ArrayOfReferencesFieldBinding, er as CollectionRowActions, et as CollectionPanel, f as fromSerializableCollectionConfig, fn as FieldCaption, fr as getEntityPreviewKeys, ft as DefaultDrawer, g as toSerializableProperties, gn as useBuildUrlController, gr as getIconForProperty, gt as AdminModeSyncer, h as toSerializableCollectionConfig, hn as useBreadcrumbsController, hr as getDefaultPropertiesOrder, ht as useApp, i as namespaceToPropertiesOrderPath, in as ReadOnlyFieldBinding, ir as useSidePanel, it as RebaseRoute, j as mapPropertiesToConfigs, jn as removeInitialSlash, jr as renderSkeletonImageThumbnail, jt as ImportSaveInProgress, k as createStaticDataController, kn as getLastSegment, kr as renderSkeletonCaptionText, kt as getInferenceType, l as buildCollectionGenerationCallback, ln as LabelWithIcon, lr as ArrayOfReferencesPreview, lt as RebaseCMS, m as fromSerializableProperty, mn as SideDialogs, mr as getBracketNotation, mt as AppBar, n as getFullIdPath, nn as ArrayCustomShapedFieldBinding, nr as SelectableTableContext, nt as RebaseRouteDefs, o as MissingReferenceWidget, on as FormEntry, or as resolveEntityAction, ot as RebaseNavigation, p as fromSerializableProperties, pn as SelectionTableBinding, pr as getEntityTitlePropertyKey, pt as DrawerFooterActions, q as MapPropertyPreview, qn as getEntityViewWidth, qt as ReferenceFieldBinding, r as idToPropertiesPath, rn as PropertyFieldBinding, rr as SidePanelControllerContext, rt as CustomViewRoute, s as CollectionGenerationApiError, sn as LabelWithIconAndTooltip, sr as resolveEntityView, st as useLocalCollectionsConfigController, t as getFullId, tn as ArrayContainer, tr as useClearRestoreValue, tt as RebaseShell, u as validateCollectionJson, un as FieldHelperText, ur as ReferencePreview, ut as Scaffold, v as useCollectionsConfigController, vn as useTopLevelNavigation, vr as getPropertiesWithPropertiesOrder, vt as ReferenceWidget, w as getEntityCSVExportableData, wn as resetPasswordAction, wr as StringPropertyPreview, wt as ImportNewPropertyFieldPreview, x as downloadBlob, xn as copyEntityAction, xr as isReferenceProperty, xt as EntityCardBinding, y as ExportCollectionAction, yn as useResolvedViews, yr as getPropertyInPath, yt as CollectionViewBinding, z as zodToFormErrors, zn as UrlContext, zt as getFieldConfig } from "./src-sUZfe29F.js";
2
- export { AdminModeSyncer, AppBar, ArrayContainer, ArrayCustomShapedFieldBinding, ArrayEnumPreview, ArrayOfMapsPreview, ArrayOfReferencesFieldBinding, ArrayOfReferencesPreview, ArrayOfStorageComponentsPreview, ArrayOfStringsPreview, ArrayOneOfPreview, ArrayPropertyEnumPreview, ArrayPropertyPreview, BasicExportAction, BlockFieldBinding, BooleanPreview, CollectionCardViewBinding, CollectionGenerationApiError, CollectionPanel, CollectionRegistryContext, CollectionRowActions, CollectionTableBinding, CollectionViewActions, CollectionViewBinding, CreationResultDialog, CustomViewRoute, DEFAULT_COLLECTION_GENERATION_ENDPOINT, DEFAULT_FIELD_CONFIGS, DataNewPropertiesMapping, DatePreview, DateTimeFieldBinding, DefaultDrawer, Drawer, DrawerFooterActions, EmptyValue, EntityCardBinding, EntityForm, EntityFormBinding, EntityPreviewBinding, EntityViewBinding, EnumValuesChip, ExportCollectionAction, FieldCaption, FieldHelperText, FormEntry, FormLayout, ImagePreview, ImportCollectionAction, ImportDataPreview, ImportFileUpload, ImportNewPropertyFieldPreview, ImportSaveInProgress, KeyValueFieldBinding, KeyValuePreview, LabelWithIcon, LabelWithIconAndTooltip, MapFieldBinding, MapPropertyPreview, MarkdownEditorFieldBinding, MissingReferenceWidget, MultiSelectFieldBinding, NavigationStateContext, NumberPropertyPreview, PropertyConfigBadge, PropertyFieldBinding, PropertyIdCopyTooltip, PropertyPreview, PropertySelectEntry, ReadOnlyFieldBinding, RebaseAuthGate, RebaseCMS, RebaseLayout, RebaseNavigation, RebaseRoute, RebaseRouteDefs, RebaseShell, ReferenceFieldBinding, ReferencePreview, ReferenceWidget, RelationPreview, RepeatFieldBinding, Scaffold, SearchIconsView, SelectFieldBinding, SelectableTable, SelectableTableContext, SelectionTableBinding, SideDialogs, SidePanelControllerContext, SidePanelProvider, SkeletonPropertyComponent, StorageThumbnail, StorageThumbnailInternal, StorageUploadFieldBinding, StringPropertyPreview, SwitchFieldBinding, TextFieldBinding, UrlComponentPreview, UrlContext, UserPreview, VectorFieldBinding, VirtualTableInput, addInitialSlash, buildCollectionGenerationCallback, buildSidePanelsFromUrl, convertDataToEntity, convertFileToJson, copyEntityAction, createStaticDataController, deleteEntityAction, downloadBlob, downloadDataAsCsv, downloadEntitiesExport, editEntityAction, extractTouchedValues, flattenEntry, fromSerializableCollectionConfig, fromSerializableProperties, fromSerializableProperty, getBracketNotation, getChanges, getCollectionBySlugWithin, getCollectionPathsCombinations, getDefaultFieldConfig, getDefaultFieldId, getDefaultPropertiesOrder, getEntityCSVExportableData, getEntityJsonExportableData, getEntityPreviewKeys, getEntityTitlePropertyKey, getEntityViewWidth, getFieldConfig, getFieldId, getFullId, getFullIdPath, getIconForProperty, getIconForWidget, getInferenceType, getInitialEntityValues, getLastSegment, getPropertiesWithPropertiesOrder, getPropertyInPath, getResolvedPropertyInPath, idToPropertiesPath, isReferenceProperty, isRelationProperty, mapPropertiesToConfigs, mapPropertyToConfig, mergeEntityActions, namespaceToPropertiesOrderPath, namespaceToPropertiesPath, processValueMapping, removeEmptyContainers, removeInitialAndTrailingSlashes, removeInitialSlash, removeTrailingSlash, renderSkeletonCaptionText, renderSkeletonIcon, renderSkeletonImageThumbnail, renderSkeletonText, resetPasswordAction, resolveCollectionPathIds, resolveEntityAction, resolveEntityView, resolveNavigationFrom, sanitizeUrl, toSerializableCollectionConfig, toSerializableProperties, toSerializableProperty, unflattenObject, useApp, useBreadcrumbsController, useBuildCollectionRegistryController, useBuildNavigationStateController, useBuildSidePanel, useBuildUrlController, useCMSContext, useClearRestoreValue, useCollectionDataController, useCollectionEditorController, useCollectionRegistryController, useCollectionsConfigController, useHistory, useImportConfig, useJsonCollectionsConfigController, useLocalCollectionsConfigController, useNavigationStateController, useResolvedCollections, useResolvedNavigationFrom, useResolvedViews, useSelectionController, useSelectionDialog, useSideDialogsController, useSidePanel, useTopLevelNavigation, useUrlController, validateCollectionJson, zodToFormErrors };
1
+ import { $ as RelationPreview, $n as SelectableTable, $t as BlockFieldBinding, A as useCollectionDataController, An as removeInitialAndTrailingSlashes, Ar as renderSkeletonIcon, At as useImportConfig, B as ArrayOfMapsPreview, Bn as useUrlController, Bt as getFieldId, C as downloadEntitiesExport, Cn as editEntityAction, Cr as ArrayPropertyPreview, Ct as useCollectionEditorController, D as ImportDataPreview, Dn as getCollectionBySlugWithin, Dr as StorageThumbnailInternal, Dt as flattenEntry, E as ImportCollectionAction, En as addInitialSlash, Er as StorageThumbnail, Et as convertDataToEntity, F as extractTouchedValues, Fn as useHistory, Fr as ImagePreview, Ft as PropertyConfigBadge, G as DatePreview, Gn as useSideDialogsController, Gt as SelectFieldBinding, H as UserPreview, Hn as useNavigationStateController, Ht as TextFieldBinding, I as getChanges, In as resolveNavigationFrom, Ir as EmptyValue, It as DEFAULT_FIELD_CONFIGS, J as ArrayOneOfPreview, Jn as useBuildSidePanel, Jt as MultiSelectFieldBinding, K as KeyValuePreview, Kn as buildSidePanelsFromUrl, Kt as RepeatFieldBinding, L as getInitialEntityValues, Ln as useResolvedNavigationFrom, Lt as getDefaultFieldConfig, M as mapPropertyToConfig, Mn as removeTrailingSlash, Mr as renderSkeletonText, Mt as ImportFileUpload, N as EntityFormBinding, Nn as resolveCollectionPathIds, Nr as UrlComponentPreview, Nt as convertFileToJson, O as PropertySelectEntry, On as getCollectionPathsCombinations, Or as SkeletonPropertyComponent, Ot as processValueMapping, P as EntityForm, Pn as useBuildCollectionRegistryController, Pr as sanitizeUrl, Pt as unflattenObject, Q as ArrayOfStorageComponentsPreview, Qn as CollectionTableBinding, Qt as DateTimeFieldBinding, R as removeEmptyContainers, Rn as useCMSContext, Rt as getDefaultFieldId, S as downloadDataAsCsv, Sn as deleteEntityAction, Sr as isRelationProperty, St as CollectionViewActions, T as getEntityJsonExportableData, Tn as CreationResultDialog, Tr as EnumValuesChip, Tt as DataNewPropertiesMapping, U as NumberPropertyPreview, Un as CollectionRegistryContext, Ut as SwitchFieldBinding, V as PropertyPreview, Vn as NavigationStateContext, Vt as VectorFieldBinding, W as BooleanPreview, Wn as useCollectionRegistryController, Wt as StorageUploadFieldBinding, X as ArrayPropertyEnumPreview, Xn as useSelectionController, Xt as MapFieldBinding, Y as ArrayOfStringsPreview, Yn as mergeEntityActions, Yt as MarkdownEditorFieldBinding, Z as ArrayEnumPreview, Zn as VirtualTableInput, Zt as KeyValueFieldBinding, _ as toSerializableProperty, _n as useBuildNavigationStateController, _r as getIconForWidget, _t as SidePanelProvider, a as namespaceToPropertiesPath, an as FormLayout, ar as useSelectionDialog, at as RebaseLayout, b as BasicExportAction, bn as useResolvedCollections, br as getResolvedPropertyInPath, bt as CollectionCardViewBinding, c as DEFAULT_COLLECTION_GENERATION_ENDPOINT, cn as PropertyIdCopyTooltip, cr as EntityViewBinding, ct as RebaseAuthGate, d as useJsonCollectionsConfigController, dn as SearchIconsView, dr as EntityPreviewBinding, dt as Drawer, en as ArrayOfReferencesFieldBinding, er as CollectionRowActions, et as CollectionPanel, f as fromSerializableCollectionConfig, fn as FieldCaption, fr as getEntityPreviewKeys, ft as DefaultDrawer, g as toSerializableProperties, gn as useBuildUrlController, gr as getIconForProperty, gt as AdminModeSyncer, h as toSerializableCollectionConfig, hn as useBreadcrumbsController, hr as getDefaultPropertiesOrder, ht as useApp, i as namespaceToPropertiesOrderPath, in as ReadOnlyFieldBinding, ir as useSidePanel, it as RebaseRoute, j as mapPropertiesToConfigs, jn as removeInitialSlash, jr as renderSkeletonImageThumbnail, jt as ImportSaveInProgress, k as createStaticDataController, kn as getLastSegment, kr as renderSkeletonCaptionText, kt as getInferenceType, l as buildCollectionGenerationCallback, ln as LabelWithIcon, lr as ArrayOfReferencesPreview, lt as RebaseAdmin, m as fromSerializableProperty, mn as SideDialogs, mr as getBracketNotation, mt as AppBar, n as getFullIdPath, nn as ArrayCustomShapedFieldBinding, nr as SelectableTableContext, nt as RebaseRouteDefs, o as MissingReferenceWidget, on as FormEntry, or as resolveEntityAction, ot as RebaseNavigation, p as fromSerializableProperties, pn as SelectionTableBinding, pr as getEntityTitlePropertyKey, pt as DrawerFooterActions, q as MapPropertyPreview, qn as getEntityViewWidth, qt as ReferenceFieldBinding, r as idToPropertiesPath, rn as PropertyFieldBinding, rr as SidePanelControllerContext, rt as CustomViewRoute, s as CollectionGenerationApiError, sn as LabelWithIconAndTooltip, sr as resolveEntityView, st as useLocalCollectionsConfigController, t as getFullId, tn as ArrayContainer, tr as useClearRestoreValue, tt as RebaseShell, u as validateCollectionJson, un as FieldHelperText, ur as ReferencePreview, ut as Scaffold, v as useCollectionsConfigController, vn as useTopLevelNavigation, vr as getPropertiesWithPropertiesOrder, vt as ReferenceWidget, w as getEntityCSVExportableData, wn as resetPasswordAction, wr as StringPropertyPreview, wt as ImportNewPropertyFieldPreview, x as downloadBlob, xn as copyEntityAction, xr as isReferenceProperty, xt as EntityCardBinding, y as ExportCollectionAction, yn as useResolvedViews, yr as getPropertyInPath, yt as CollectionViewBinding, z as zodToFormErrors, zn as UrlContext, zt as getFieldConfig } from "./src-B8WuGSPZ.js";
2
+ export { AdminModeSyncer, AppBar, ArrayContainer, ArrayCustomShapedFieldBinding, ArrayEnumPreview, ArrayOfMapsPreview, ArrayOfReferencesFieldBinding, ArrayOfReferencesPreview, ArrayOfStorageComponentsPreview, ArrayOfStringsPreview, ArrayOneOfPreview, ArrayPropertyEnumPreview, ArrayPropertyPreview, BasicExportAction, BlockFieldBinding, BooleanPreview, CollectionCardViewBinding, CollectionGenerationApiError, CollectionPanel, CollectionRegistryContext, CollectionRowActions, CollectionTableBinding, CollectionViewActions, CollectionViewBinding, CreationResultDialog, CustomViewRoute, DEFAULT_COLLECTION_GENERATION_ENDPOINT, DEFAULT_FIELD_CONFIGS, DataNewPropertiesMapping, DatePreview, DateTimeFieldBinding, DefaultDrawer, Drawer, DrawerFooterActions, EmptyValue, EntityCardBinding, EntityForm, EntityFormBinding, EntityPreviewBinding, EntityViewBinding, EnumValuesChip, ExportCollectionAction, FieldCaption, FieldHelperText, FormEntry, FormLayout, ImagePreview, ImportCollectionAction, ImportDataPreview, ImportFileUpload, ImportNewPropertyFieldPreview, ImportSaveInProgress, KeyValueFieldBinding, KeyValuePreview, LabelWithIcon, LabelWithIconAndTooltip, MapFieldBinding, MapPropertyPreview, MarkdownEditorFieldBinding, MissingReferenceWidget, MultiSelectFieldBinding, NavigationStateContext, NumberPropertyPreview, PropertyConfigBadge, PropertyFieldBinding, PropertyIdCopyTooltip, PropertyPreview, PropertySelectEntry, ReadOnlyFieldBinding, RebaseAdmin, RebaseAuthGate, RebaseLayout, RebaseNavigation, RebaseRoute, RebaseRouteDefs, RebaseShell, ReferenceFieldBinding, ReferencePreview, ReferenceWidget, RelationPreview, RepeatFieldBinding, Scaffold, SearchIconsView, SelectFieldBinding, SelectableTable, SelectableTableContext, SelectionTableBinding, SideDialogs, SidePanelControllerContext, SidePanelProvider, SkeletonPropertyComponent, StorageThumbnail, StorageThumbnailInternal, StorageUploadFieldBinding, StringPropertyPreview, SwitchFieldBinding, TextFieldBinding, UrlComponentPreview, UrlContext, UserPreview, VectorFieldBinding, VirtualTableInput, addInitialSlash, buildCollectionGenerationCallback, buildSidePanelsFromUrl, convertDataToEntity, convertFileToJson, copyEntityAction, createStaticDataController, deleteEntityAction, downloadBlob, downloadDataAsCsv, downloadEntitiesExport, editEntityAction, extractTouchedValues, flattenEntry, fromSerializableCollectionConfig, fromSerializableProperties, fromSerializableProperty, getBracketNotation, getChanges, getCollectionBySlugWithin, getCollectionPathsCombinations, getDefaultFieldConfig, getDefaultFieldId, getDefaultPropertiesOrder, getEntityCSVExportableData, getEntityJsonExportableData, getEntityPreviewKeys, getEntityTitlePropertyKey, getEntityViewWidth, getFieldConfig, getFieldId, getFullId, getFullIdPath, getIconForProperty, getIconForWidget, getInferenceType, getInitialEntityValues, getLastSegment, getPropertiesWithPropertiesOrder, getPropertyInPath, getResolvedPropertyInPath, idToPropertiesPath, isReferenceProperty, isRelationProperty, mapPropertiesToConfigs, mapPropertyToConfig, mergeEntityActions, namespaceToPropertiesOrderPath, namespaceToPropertiesPath, processValueMapping, removeEmptyContainers, removeInitialAndTrailingSlashes, removeInitialSlash, removeTrailingSlash, renderSkeletonCaptionText, renderSkeletonIcon, renderSkeletonImageThumbnail, renderSkeletonText, resetPasswordAction, resolveCollectionPathIds, resolveEntityAction, resolveEntityView, resolveNavigationFrom, sanitizeUrl, toSerializableCollectionConfig, toSerializableProperties, toSerializableProperty, unflattenObject, useApp, useBreadcrumbsController, useBuildCollectionRegistryController, useBuildNavigationStateController, useBuildSidePanel, useBuildUrlController, useCMSContext, useClearRestoreValue, useCollectionDataController, useCollectionEditorController, useCollectionRegistryController, useCollectionsConfigController, useHistory, useImportConfig, useJsonCollectionsConfigController, useLocalCollectionsConfigController, useNavigationStateController, useResolvedCollections, useResolvedNavigationFrom, useResolvedViews, useSelectionController, useSelectionDialog, useSideDialogsController, useSidePanel, useTopLevelNavigation, useUrlController, validateCollectionJson, zodToFormErrors };