@rebasepro/admin 0.16.0 → 0.16.1-canary.g0d7af95

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 (180) hide show
  1. package/dist/{CollectionEditorDialog-D2Vf4C3-.js → CollectionEditorDialog-Dt_Wv20U.js} +7 -3
  2. package/dist/{CollectionEditorDialog-D2Vf4C3-.js.map → CollectionEditorDialog-Dt_Wv20U.js.map} +1 -1
  3. package/dist/{PropertyEditView-D3NBsK9_.js → PropertyEditView-C4IltWX5.js} +2 -2
  4. package/dist/{PropertyEditView-D3NBsK9_.js.map → PropertyEditView-C4IltWX5.js.map} +1 -1
  5. package/dist/{RouterCollectionsStudioView-hPB54l3Q.js → RouterCollectionsStudioView-C-BHWJ0J.js} +4 -4
  6. package/dist/{RouterCollectionsStudioView-hPB54l3Q.js.map → RouterCollectionsStudioView-C-BHWJ0J.js.map} +1 -1
  7. package/dist/SchemaChangeDialog-DceT8QFX.js +394 -0
  8. package/dist/SchemaChangeDialog-DceT8QFX.js.map +1 -0
  9. package/dist/collection_editor/ConfigControllerProvider.d.ts +4 -4
  10. package/dist/collection_editor/_cms_internals.d.ts +23 -23
  11. package/dist/collection_editor/api/index.d.ts +1 -1
  12. package/dist/collection_editor/extensibility_types.d.ts +1 -1
  13. package/dist/collection_editor/index.d.ts +21 -21
  14. package/dist/collection_editor/liveSchemaClient.d.ts +182 -0
  15. package/dist/collection_editor/serializable_types.d.ts +0 -1
  16. package/dist/collection_editor/serializable_utils.d.ts +1 -1
  17. package/dist/collection_editor/types/collection_editor_controller.d.ts +1 -1
  18. package/dist/collection_editor/types/config_controller.d.ts +11 -0
  19. package/dist/collection_editor/ui/collection_editor/AICollectionGeneratorPopover.d.ts +1 -1
  20. package/dist/collection_editor/ui/collection_editor/AIModifiedPathsContext.d.ts +1 -1
  21. package/dist/collection_editor/ui/collection_editor/CollectionEditorDialog.d.ts +4 -4
  22. package/dist/collection_editor/ui/collection_editor/CollectionEditorWelcomeView.d.ts +1 -1
  23. package/dist/collection_editor/ui/collection_editor/CollectionPropertiesEditorForm.d.ts +2 -2
  24. package/dist/collection_editor/ui/collection_editor/CollectionStudioView.d.ts +1 -1
  25. package/dist/collection_editor/ui/collection_editor/CollectionsStudioView.d.ts +2 -2
  26. package/dist/collection_editor/ui/collection_editor/GeneralSettingsForm.d.ts +1 -1
  27. package/dist/collection_editor/ui/collection_editor/PropertyEditView.d.ts +2 -2
  28. package/dist/collection_editor/ui/collection_editor/RouterCollectionStudioView.d.ts +1 -1
  29. package/dist/collection_editor/ui/collection_editor/RouterCollectionsStudioView.d.ts +1 -1
  30. package/dist/collection_editor/ui/collection_editor/SchemaChangeDialog.d.ts +85 -0
  31. package/dist/collection_editor/ui/collection_editor/SubcollectionsEditTab.d.ts +2 -2
  32. package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportDataPreview.d.ts +1 -1
  33. package/dist/collection_editor/ui/collection_editor/import/CollectionEditorImportMapping.d.ts +1 -1
  34. package/dist/collection_editor/ui/collection_editor/import/clean_import_data.d.ts +1 -1
  35. package/dist/collection_editor/ui/collection_editor/properties/conditions/index.d.ts +6 -6
  36. package/dist/collection_editor/useCollectionEditorController.d.ts +1 -1
  37. package/dist/collection_editor/useCollectionsConfigController.d.ts +1 -1
  38. package/dist/collection_editor/useJsonCollectionsConfigController.d.ts +2 -2
  39. package/dist/collection_editor/useLiveSchemaEditing.d.ts +71 -0
  40. package/dist/collection_editor/useLocalCollectionsConfigController.d.ts +1 -1
  41. package/dist/collection_editor_ui.d.ts +12 -12
  42. package/dist/collection_editor_ui.js +4 -4
  43. package/dist/components/CollectionTableBinding/CollectionTableBinding.d.ts +1 -1
  44. package/dist/components/CollectionTableBinding/PropertyTableCell.d.ts +1 -1
  45. package/dist/components/CollectionTableBinding/fields/TableStorageUpload.d.ts +1 -1
  46. package/dist/components/CollectionTableBinding/index.d.ts +5 -5
  47. package/dist/components/CollectionTableBinding/internal/popup_field/PopupFormField.d.ts +1 -1
  48. package/dist/components/CollectionViewBinding/SlotValue.d.ts +2 -2
  49. package/dist/components/CollectionViewBinding/hooks/useKanbanDragAndDrop.d.ts +1 -1
  50. package/dist/components/DrawerNavigationGroup.d.ts +0 -9
  51. package/dist/components/DrawerNavigationItem.d.ts +0 -4
  52. package/dist/components/EditFormActions.d.ts +1 -1
  53. package/dist/components/EditViewBinding.d.ts +3 -3
  54. package/dist/components/EntityInspector.d.ts +1 -1
  55. package/dist/components/EntityPreviewBinding.d.ts +1 -1
  56. package/dist/components/EntityViewBinding.d.ts +1 -1
  57. package/dist/components/HomePage/index.d.ts +4 -4
  58. package/dist/components/PropertyCollectionView.d.ts +1 -1
  59. package/dist/components/ReferenceWidget.d.ts +1 -1
  60. package/dist/components/RelationSelector.d.ts +0 -2
  61. package/dist/components/admin/index.d.ts +1 -1
  62. package/dist/components/app/AppBar.d.ts +1 -1
  63. package/dist/components/app/index.d.ts +4 -4
  64. package/dist/components/common/index.d.ts +1 -1
  65. package/dist/components/field_configs.d.ts +1 -1
  66. package/dist/components/history/EntityHistoryEntry.d.ts +2 -2
  67. package/dist/components/history/index.d.ts +5 -5
  68. package/dist/components/index.d.ts +45 -45
  69. package/dist/data_export/export/index.d.ts +4 -4
  70. package/dist/data_export/index.d.ts +1 -1
  71. package/dist/data_import/components/DataNewPropertiesMapping.d.ts +1 -1
  72. package/dist/data_import/components/ImportSaveInProgress.d.ts +1 -1
  73. package/dist/data_import/components/index.d.ts +4 -4
  74. package/dist/data_import/hooks/index.d.ts +1 -1
  75. package/dist/data_import/hooks/useImportConfig.d.ts +1 -1
  76. package/dist/data_import/import/ImportCollectionAction.d.ts +1 -1
  77. package/dist/data_import/import/index.d.ts +1 -1
  78. package/dist/data_import/index.d.ts +5 -5
  79. package/dist/data_import/types/index.d.ts +1 -1
  80. package/dist/data_import/utils/file_to_json.d.ts +1 -1
  81. package/dist/data_import/utils/index.d.ts +5 -5
  82. package/dist/editor/components/SlashCommandMenu.d.ts +2 -2
  83. package/dist/editor/components/index.d.ts +5 -5
  84. package/dist/editor/editor.d.ts +2 -2
  85. package/dist/editor/index.d.ts +2 -2
  86. package/dist/editor/nodeViews/ImageComponent.d.ts +1 -1
  87. package/dist/editor/nodeViews/TaskItemComponent.d.ts +1 -1
  88. package/dist/editor/types.d.ts +1 -1
  89. package/dist/{export-oauWlxuu.js → export-CF1-p5nY.js} +2 -2
  90. package/dist/{export-oauWlxuu.js.map → export-CF1-p5nY.js.map} +1 -1
  91. package/dist/form/EntityForm.d.ts +1 -1
  92. package/dist/form/EntityFormActions.d.ts +1 -1
  93. package/dist/form/EntityFormBinding.d.ts +1 -1
  94. package/dist/form/PropertyFieldBinding.d.ts +1 -1
  95. package/dist/form/components/StorageItemPreview.d.ts +1 -1
  96. package/dist/form/components/index.d.ts +6 -6
  97. package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +1 -1
  98. package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +1 -1
  99. package/dist/form/field_bindings/BinaryFieldBinding.d.ts +1 -1
  100. package/dist/form/field_bindings/BlockFieldBinding.d.ts +1 -1
  101. package/dist/form/field_bindings/DateTimeFieldBinding.d.ts +1 -1
  102. package/dist/form/field_bindings/GeopointFieldBinding.d.ts +1 -1
  103. package/dist/form/field_bindings/KeyValueFieldBinding.d.ts +1 -1
  104. package/dist/form/field_bindings/MapFieldBinding.d.ts +1 -1
  105. package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +2 -2
  106. package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +1 -1
  107. package/dist/form/field_bindings/MultipleRelationFieldBinding.d.ts +1 -1
  108. package/dist/form/field_bindings/ReadOnlyFieldBinding.d.ts +1 -1
  109. package/dist/form/field_bindings/ReferenceFieldBinding.d.ts +1 -1
  110. package/dist/form/field_bindings/RelationFieldBinding.d.ts +1 -1
  111. package/dist/form/field_bindings/RepeatFieldBinding.d.ts +1 -1
  112. package/dist/form/field_bindings/SelectFieldBinding.d.ts +1 -1
  113. package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +1 -1
  114. package/dist/form/field_bindings/SwitchFieldBinding.d.ts +1 -1
  115. package/dist/form/field_bindings/TextFieldBinding.d.ts +1 -1
  116. package/dist/form/field_bindings/UserSelectFieldBinding.d.ts +1 -1
  117. package/dist/form/field_bindings/VectorFieldBinding.d.ts +1 -1
  118. package/dist/form/index.d.ts +24 -24
  119. package/dist/{history-C2cqc0bw.js → history-BoT8GhO1.js} +2 -2
  120. package/dist/{history-C2cqc0bw.js.map → history-BoT8GhO1.js.map} +1 -1
  121. package/dist/hooks/index.d.ts +16 -16
  122. package/dist/hooks/navigation/contexts/index.d.ts +3 -3
  123. package/dist/hooks/useBuildSideDialogsController.d.ts +1 -1
  124. package/dist/hooks/useSelectionDialog.d.ts +1 -1
  125. package/dist/{import-Bxv5JPm-.js → import-Dg4X01sA.js} +2 -2
  126. package/dist/{import-Bxv5JPm-.js.map → import-Dg4X01sA.js.map} +1 -1
  127. package/dist/index.d.ts +17 -15
  128. package/dist/index.js +262 -21
  129. package/dist/index.js.map +1 -1
  130. package/dist/preview/PropertyPreview.d.ts +1 -1
  131. package/dist/preview/components/ArrayEnumPreview.d.ts +1 -1
  132. package/dist/preview/components/BooleanPreview.d.ts +1 -1
  133. package/dist/preview/components/ImagePreview.d.ts +1 -1
  134. package/dist/preview/components/ReferencePreview.d.ts +1 -1
  135. package/dist/preview/components/RelationPreview.d.ts +1 -1
  136. package/dist/preview/components/StorageThumbnail.d.ts +1 -1
  137. package/dist/preview/components/UrlComponentPreview.d.ts +2 -2
  138. package/dist/preview/components/UserPreview.d.ts +1 -1
  139. package/dist/preview/index.d.ts +24 -24
  140. package/dist/preview/property_previews/ArrayOfMapsPreview.d.ts +1 -1
  141. package/dist/preview/property_previews/ArrayOfReferencesPreview.d.ts +1 -1
  142. package/dist/preview/property_previews/ArrayOfRelationsPreview.d.ts +1 -1
  143. package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +1 -1
  144. package/dist/preview/property_previews/ArrayOfStringsPreview.d.ts +1 -1
  145. package/dist/preview/property_previews/ArrayOneOfPreview.d.ts +1 -1
  146. package/dist/preview/property_previews/ArrayPropertyEnumPreview.d.ts +1 -1
  147. package/dist/preview/property_previews/ArrayPropertyPreview.d.ts +1 -1
  148. package/dist/preview/property_previews/MapPropertyPreview.d.ts +1 -1
  149. package/dist/preview/property_previews/NumberPropertyPreview.d.ts +1 -1
  150. package/dist/preview/property_previews/SkeletonPropertyComponent.d.ts +1 -1
  151. package/dist/preview/property_previews/StringPropertyPreview.d.ts +1 -1
  152. package/dist/preview/util.d.ts +1 -1
  153. package/dist/routes/index.d.ts +2 -2
  154. package/dist/types/components/EntityFormActionsProps.d.ts +2 -2
  155. package/dist/types/components/EntityFormProps.d.ts +3 -3
  156. package/dist/types/components/index.d.ts +3 -3
  157. package/dist/types/fields.d.ts +1 -1
  158. package/dist/types/index.d.ts +2 -2
  159. package/dist/util/index.d.ts +5 -5
  160. package/dist/util/previews.d.ts +2 -2
  161. package/dist/{util-C4qsI1QV.js → util-DUIsQ2zh.js} +132 -9
  162. package/dist/util-DUIsQ2zh.js.map +1 -0
  163. package/package.json +11 -11
  164. package/src/collection_editor/ConfigControllerProvider.tsx +5 -0
  165. package/src/collection_editor/liveSchemaClient.ts +285 -0
  166. package/src/collection_editor/serializable_types.ts +0 -1
  167. package/src/collection_editor/serializable_utils.ts +0 -1
  168. package/src/collection_editor/types/config_controller.tsx +11 -0
  169. package/src/collection_editor/ui/collection_editor/CollectionEditorDialog.tsx +10 -0
  170. package/src/collection_editor/ui/collection_editor/SchemaChangeDialog.tsx +470 -0
  171. package/src/collection_editor/useLiveSchemaEditing.tsx +315 -0
  172. package/src/collection_editor/useLocalCollectionsConfigController.tsx +109 -10
  173. package/src/components/DrawerNavigationGroup.tsx +0 -9
  174. package/src/components/DrawerNavigationItem.tsx +0 -4
  175. package/src/components/RelationSelector.tsx +0 -2
  176. package/src/data_import/utils/data.ts +1 -1
  177. package/src/data_import/utils/file_to_json.ts +0 -3
  178. package/src/index.ts +6 -0
  179. package/src/util/previews.ts +4 -2
  180. package/dist/util-C4qsI1QV.js.map +0 -1
@@ -0,0 +1,71 @@
1
+ /**
2
+ * The plan-then-confirm flow, as a hook.
3
+ *
4
+ * Owns three things that belong together and nothing else: whether the backend
5
+ * can edit its schema, the plan for the change somebody is making, and the
6
+ * dialog they confirm it in. The config controller calls `reviewChange` and
7
+ * awaits it; everything about *how* the confirmation happens stays here.
8
+ *
9
+ * ## Why `reviewChange` returns a promise that can reject
10
+ *
11
+ * Because the editor needs to know. A save that was cancelled must not leave
12
+ * the form thinking it succeeded — the collection on screen would then differ
13
+ * from the one on disk, and the next save would be computed from the wrong
14
+ * `before`. Rejecting with {@link SchemaChangeCancelled} is how "the person
15
+ * said no" reaches the caller as an outcome rather than as silence.
16
+ */
17
+ import React from "react";
18
+ import { type LiveSchemaClient, type LiveSchemaStatus, type ProposedCollectionChange } from "./liveSchemaClient.js";
19
+ export { SchemaChangeCancelled, isSchemaChangeCancelled } from "./liveSchemaClient.js";
20
+ export interface UseLiveSchemaEditingOptions {
21
+ /** Base for the routes, e.g. `https://api.example.com/api/admin/schema`. */
22
+ baseUrl: string;
23
+ getAuthToken?: () => Promise<string | null> | string | null;
24
+ /**
25
+ * Identity of the signed-in user.
26
+ *
27
+ * Only used to re-ask: whether this backend will accept a schema change
28
+ * depends on who is asking, and the answer to an anonymous probe does not
29
+ * survive a sign-in.
30
+ */
31
+ authKey?: string | null;
32
+ /**
33
+ * Write the collection source and leave the database alone — what the
34
+ * editor did before this existed. Offered in the dialog when a change is
35
+ * refused, so a dev can still delete a field from a collection they are
36
+ * designing. Omit it and the fallback is not offered.
37
+ */
38
+ writeSourceOnly?: (change: ProposedCollectionChange) => Promise<void>;
39
+ /** Swappable for the tests, which have no server. */
40
+ client?: LiveSchemaClient;
41
+ }
42
+ export interface LiveSchemaEditing {
43
+ /** `undefined` until the backend has answered. For rendering. */
44
+ status?: LiveSchemaStatus;
45
+ /**
46
+ * The same answer, for deciding.
47
+ *
48
+ * `status` is undefined for one round trip after mount, and a caller that
49
+ * read it to choose a code path would take the "not available" branch for
50
+ * that window — so a save issued quickly after a page load would silently
51
+ * skip the confirmation and write source only, while the same save a second
52
+ * later would not. Timing-dependent behaviour with no visible difference is
53
+ * the worst shape this could have.
54
+ *
55
+ * Resolves once, cached; never rejects, because every way of failing to get
56
+ * an answer means the same thing to whoever is deciding.
57
+ */
58
+ ready: () => Promise<LiveSchemaStatus>;
59
+ /**
60
+ * Plan the change, show it, and settle when the person has decided.
61
+ *
62
+ * Resolves once the change has been applied — or written source-only, if
63
+ * they chose that. Rejects with {@link SchemaChangeCancelled} if they
64
+ * closed the dialog, and with the underlying error if planning or applying
65
+ * failed in a way they did not choose.
66
+ */
67
+ reviewChange: (change: ProposedCollectionChange) => Promise<void>;
68
+ /** Render this once, high enough that a dialog over the editor is not clipped. */
69
+ dialog: React.ReactNode;
70
+ }
71
+ export declare function useLiveSchemaEditing(options: UseLiveSchemaEditingOptions): LiveSchemaEditing;
@@ -1,4 +1,4 @@
1
- import { CollectionsConfigController } from "./types/config_controller";
1
+ import { CollectionsConfigController } from "./types/config_controller.js";
2
2
  import type { AdminCollection } from "@rebasepro/admin-types";
3
3
  export declare function useLocalCollectionsConfigController(clientOrUrl: any, baseCollections?: AdminCollection[], options?: {
4
4
  readOnly?: boolean;
@@ -1,12 +1,12 @@
1
- export { CollectionEditorDialog } from "./collection_editor/ui/collection_editor/CollectionEditorDialog";
2
- export type { CollectionEditorDialogProps } from "./collection_editor/ui/collection_editor/CollectionEditorDialog";
3
- export { PropertyFormDialog, PropertyForm } from "./collection_editor/ui/collection_editor/PropertyEditView";
4
- export type { PropertyFormProps, OnPropertyChangedParams } from "./collection_editor/ui/collection_editor/PropertyEditView";
5
- export { CollectionStudioView } from "./collection_editor/ui/collection_editor/CollectionStudioView";
6
- export type { CollectionStudioViewProps } from "./collection_editor/ui/collection_editor/CollectionStudioView";
7
- export { CollectionsStudioView } from "./collection_editor/ui/collection_editor/CollectionsStudioView";
8
- export type { CollectionsStudioViewProps } from "./collection_editor/ui/collection_editor/CollectionsStudioView";
9
- export { RouterCollectionStudioView } from "./collection_editor/ui/collection_editor/RouterCollectionStudioView";
10
- export type { RouterCollectionStudioViewProps } from "./collection_editor/ui/collection_editor/RouterCollectionStudioView";
11
- export { RouterCollectionsStudioView } from "./collection_editor/ui/collection_editor/RouterCollectionsStudioView";
12
- export type { RouterCollectionsStudioViewProps } from "./collection_editor/ui/collection_editor/RouterCollectionsStudioView";
1
+ export { CollectionEditorDialog } from "./collection_editor/ui/collection_editor/CollectionEditorDialog.js";
2
+ export type { CollectionEditorDialogProps } from "./collection_editor/ui/collection_editor/CollectionEditorDialog.js";
3
+ export { PropertyFormDialog, PropertyForm } from "./collection_editor/ui/collection_editor/PropertyEditView.js";
4
+ export type { PropertyFormProps, OnPropertyChangedParams } from "./collection_editor/ui/collection_editor/PropertyEditView.js";
5
+ export { CollectionStudioView } from "./collection_editor/ui/collection_editor/CollectionStudioView.js";
6
+ export type { CollectionStudioViewProps } from "./collection_editor/ui/collection_editor/CollectionStudioView.js";
7
+ export { CollectionsStudioView } from "./collection_editor/ui/collection_editor/CollectionsStudioView.js";
8
+ export type { CollectionsStudioViewProps } from "./collection_editor/ui/collection_editor/CollectionsStudioView.js";
9
+ export { RouterCollectionStudioView } from "./collection_editor/ui/collection_editor/RouterCollectionStudioView.js";
10
+ export type { RouterCollectionStudioViewProps } from "./collection_editor/ui/collection_editor/RouterCollectionStudioView.js";
11
+ export { RouterCollectionsStudioView } from "./collection_editor/ui/collection_editor/RouterCollectionsStudioView.js";
12
+ export type { RouterCollectionsStudioViewProps } from "./collection_editor/ui/collection_editor/RouterCollectionsStudioView.js";
@@ -1,7 +1,7 @@
1
- import { un as useUrlController } from "./util-C4qsI1QV.js";
2
- import { n as CollectionEditorDialog } from "./CollectionEditorDialog-D2Vf4C3-.js";
3
- import { n as PropertyForm, r as PropertyFormDialog } from "./PropertyEditView-D3NBsK9_.js";
4
- import { i as CollectionStudioView, r as CollectionsStudioView, t as RouterCollectionsStudioView } from "./RouterCollectionsStudioView-hPB54l3Q.js";
1
+ import { mn as useUrlController } from "./util-DUIsQ2zh.js";
2
+ import { n as CollectionEditorDialog } from "./CollectionEditorDialog-Dt_Wv20U.js";
3
+ import { n as PropertyForm, r as PropertyFormDialog } from "./PropertyEditView-C4IltWX5.js";
4
+ import { i as CollectionStudioView, r as CollectionsStudioView, t as RouterCollectionsStudioView } from "./RouterCollectionsStudioView-C-BHWJ0J.js";
5
5
  import "react";
6
6
  import { useSnackbarController } from "@rebasepro/app";
7
7
  import { jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { User } from "@rebasepro/types";
3
- import { CollectionTableBindingProps } from "./CollectionTableBindingProps";
3
+ import { CollectionTableBindingProps } from "./CollectionTableBindingProps.js";
4
4
  /**
5
5
  * This component is in charge of rendering a collection table with a high
6
6
  * degree of customization.
@@ -1,7 +1,7 @@
1
1
  import type { Property } from "@rebasepro/types";
2
2
  import React from "react";
3
3
  import { Entity } from "@rebasepro/types";
4
- import { CustomFieldValidator } from "../../form/validation";
4
+ import { CustomFieldValidator } from "../../form/validation.js";
5
5
  export interface PropertyTableCellProps<T> {
6
6
  propertyKey: string;
7
7
  columnIndex: number;
@@ -1,7 +1,7 @@
1
1
  import type { ArrayProperty, StringProperty } from "@rebasepro/types";
2
2
  import * as React from "react";
3
3
  import { Entity } from "@rebasepro/types";
4
- import { PreviewSize } from "../../../types";
4
+ import { PreviewSize } from "../../../types/index.js";
5
5
  /**
6
6
  * Field that allows to upload files to Google Cloud Storage.
7
7
  *
@@ -1,6 +1,6 @@
1
- export { CollectionTableBinding } from "./CollectionTableBinding";
2
- export type { CollectionTableBindingProps } from "./CollectionTableBindingProps";
3
- export * from "./PropertyTableCell";
4
- export * from "./CollectionRowActions";
5
- export * from "./column_utils";
1
+ export { CollectionTableBinding } from "./CollectionTableBinding.js";
2
+ export type { CollectionTableBindingProps } from "./CollectionTableBindingProps.js";
3
+ export * from "./PropertyTableCell.js";
4
+ export * from "./CollectionRowActions.js";
5
+ export * from "./column_utils.js";
6
6
  export { VirtualTableInput } from "@rebasepro/ui";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Entity } from "@rebasepro/types";
3
- import { CustomFieldValidator } from "../../../../form/validation";
3
+ import { CustomFieldValidator } from "../../../../form/validation.js";
4
4
  import type { OnCellValueChangeParams } from "@rebasepro/app";
5
5
  import type { AdminCollection } from "@rebasepro/admin-types";
6
6
  interface PopupFormFieldProps<M extends Record<string, unknown>> {
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import type { PreviewSize } from "../../types/components/PropertyPreviewProps";
3
- import type { PreviewSlot } from "./usePreviewSlots";
2
+ import type { PreviewSize } from "../../types/components/PropertyPreviewProps.js";
3
+ import type { PreviewSlot } from "./usePreviewSlots.js";
4
4
  export interface SlotValueProps {
5
5
  slot: PreviewSlot | undefined;
6
6
  size: PreviewSize;
@@ -1,7 +1,7 @@
1
1
  import { RebaseData, Entity } from "@rebasepro/types";
2
2
  import { RebaseContext, AnalyticsController, AdminCollection } from "@rebasepro/admin-types";
3
3
  import { BoardItem } from "@rebasepro/ui";
4
- import { BoardDataController } from "../useBoardDataController";
4
+ import { BoardDataController } from "../useBoardDataController.js";
5
5
  /**
6
6
  * The digits a board order key is built from: base36, lower case only.
7
7
  *
@@ -21,15 +21,6 @@ export interface DrawerNavigationGroupProps {
21
21
  * Whether the drawer is in open (expanded) state
22
22
  */
23
23
  drawerOpen: boolean;
24
- /**
25
- * @deprecated No longer read. Entry tooltips are uncontrolled — they follow the
26
- * pointer and focus, and are suppressed wherever the label is already visible.
27
- */
28
- tooltipsOpen?: boolean;
29
- /**
30
- * @deprecated No longer read. See {@link tooltipsOpen}.
31
- */
32
- adminMenuOpen?: boolean;
33
24
  /**
34
25
  * Optional actions to render in the group header (e.g., "Add collection" button)
35
26
  */
@@ -6,11 +6,7 @@ import React from "react";
6
6
  export type DrawerNavigationItemProps = {
7
7
  icon: React.ReactElement;
8
8
  name: string;
9
- /** @deprecated No longer read: the tooltip is uncontrolled. */
10
- tooltipsOpen?: boolean;
11
9
  drawerOpen: boolean;
12
- /** @deprecated No longer read: the tooltip is uncontrolled. */
13
- adminMenuOpen?: boolean;
14
10
  url: string;
15
11
  onClick?: () => void;
16
12
  /**
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { EntityFormActionsProps } from "../types/components/EntityFormActionsProps";
2
+ import type { EntityFormActionsProps } from "../types/components/EntityFormActionsProps.js";
3
3
  /**
4
4
  * The entity form's footer.
5
5
  *
@@ -1,9 +1,9 @@
1
1
  import type { AdminCollection } from "@rebasepro/admin-types";
2
2
  import React from "react";
3
3
  import { Entity, EntityStatus } from "@rebasepro/types";
4
- import type { EntityFormBindingProps } from "../form";
5
- import type { OnUpdateParams } from "../types/components/EntityFormProps";
6
- import { MAIN_TAB_VALUE, JSON_TAB_VALUE, HISTORY_TAB_VALUE } from "../util/view_constants";
4
+ import type { EntityFormBindingProps } from "../form/index.js";
5
+ import type { OnUpdateParams } from "../types/components/EntityFormProps.js";
6
+ import { MAIN_TAB_VALUE, JSON_TAB_VALUE, HISTORY_TAB_VALUE } from "../util/view_constants.js";
7
7
  export { MAIN_TAB_VALUE, JSON_TAB_VALUE, HISTORY_TAB_VALUE };
8
8
  export type BarActionsParams = {
9
9
  values: object;
@@ -1,6 +1,6 @@
1
1
  import type { AdminCollection } from "@rebasepro/admin-types";
2
2
  import type { Entity } from "@rebasepro/types";
3
- import type { FormContext } from "../types/fields";
3
+ import type { FormContext } from "../types/fields.js";
4
4
  import React from "react";
5
5
  export type InspectorTab = "json" | "history";
6
6
  export interface EntityInspectorProps {
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { Entity } from "@rebasepro/types";
3
- import type { PreviewSize } from "../types/components/PropertyPreviewProps";
3
+ import type { PreviewSize } from "../types/components/PropertyPreviewProps.js";
4
4
  import type { AdminCollection } from "@rebasepro/admin-types";
5
5
  export type EntityPreviewBindingProps = {
6
6
  size?: PreviewSize;
@@ -1,5 +1,5 @@
1
1
  import type { AdminCollection } from "@rebasepro/admin-types";
2
- import type { FormContext } from "../types/fields";
2
+ import type { FormContext } from "../types/fields.js";
3
3
  import React from "react";
4
4
  import { Entity } from "@rebasepro/types";
5
5
  /**
@@ -1,4 +1,4 @@
1
- export * from "./ContentHomePage";
2
- export * from "./NavigationGroup";
3
- export * from "./NavigationCard";
4
- export * from "./SmallNavigationCard";
1
+ export * from "./ContentHomePage.js";
2
+ export * from "./NavigationGroup.js";
3
+ export * from "./NavigationCard.js";
4
+ export * from "./SmallNavigationCard.js";
@@ -1,7 +1,7 @@
1
1
  import type { Properties } from "@rebasepro/types";
2
2
  import type { Property } from "@rebasepro/types";
3
3
  import React from "react";
4
- import { PreviewSize } from "../types/components/PropertyPreviewProps";
4
+ import { PreviewSize } from "../types/components/PropertyPreviewProps.js";
5
5
  /**
6
6
  * Build a readable label for a path and resolve the property
7
7
  * Supports map and array (including arrays of maps)
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Entity, EntityReference, FilterValues } from "@rebasepro/types";
3
- import type { PreviewSize } from "../types/components/PropertyPreviewProps";
3
+ import type { PreviewSize } from "../types/components/PropertyPreviewProps.js";
4
4
  export type ReferenceWidgetProps<M extends Record<string, unknown>> = {
5
5
  name?: string;
6
6
  multiselect?: boolean;
@@ -25,8 +25,6 @@ export interface RelationSelectorProps {
25
25
  size?: "small" | "medium" | "large";
26
26
  useChips?: boolean;
27
27
  disabled?: boolean;
28
- error?: boolean;
29
- padding?: boolean;
30
28
  invisible?: boolean;
31
29
  relation: Relation;
32
30
  /**
@@ -1 +1 @@
1
- export * from "./CreationResultDialog";
1
+ export * from "./CreationResultDialog.js";
@@ -1,4 +1,4 @@
1
- import { DefaultAppBarProps } from "../DefaultAppBar";
1
+ import { DefaultAppBarProps } from "../DefaultAppBar.js";
2
2
  /**
3
3
  * This component renders the main app bar of Rebase.
4
4
  */
@@ -1,4 +1,4 @@
1
- export * from "./Drawer";
2
- export * from "./AppBar";
3
- export * from "./Scaffold";
4
- export * from "./useApp";
1
+ export * from "./Drawer.js";
2
+ export * from "./AppBar.js";
3
+ export * from "./Scaffold.js";
4
+ export * from "./useApp.js";
@@ -1 +1 @@
1
- export * from "./default_entity_actions";
1
+ export * from "./default_entity_actions.js";
@@ -1,4 +1,4 @@
1
- import type { DefaultFieldConfig } from "../types/fields";
1
+ import type { DefaultFieldConfig } from "../types/fields.js";
2
2
  import type { Property } from "@rebasepro/types";
3
3
  import type { PropertyConfig } from "@rebasepro/admin-types";
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
- import { PreviewSize } from "../../types/components/PropertyPreviewProps";
3
- import { HistoryEntryData } from "../../hooks";
2
+ import { PreviewSize } from "../../types/components/PropertyPreviewProps.js";
3
+ import { HistoryEntryData } from "../../hooks/index.js";
4
4
  import type { AdminCollection } from "@rebasepro/admin-types";
5
5
  export type EntityHistoryEntryProps = {
6
6
  size: PreviewSize;
@@ -1,5 +1,5 @@
1
- export { EntityHistoryView } from "./EntityHistoryView";
2
- export { EntityHistoryEntry } from "./EntityHistoryEntry";
3
- export { LastEditedByIndicator } from "./LastEditedByIndicator";
4
- export { LastEditedByFormAction } from "./LastEditedByFormAction";
5
- export { UserChip } from "./UserChip";
1
+ export { EntityHistoryView } from "./EntityHistoryView.js";
2
+ export { EntityHistoryEntry } from "./EntityHistoryEntry.js";
3
+ export { LastEditedByIndicator } from "./LastEditedByIndicator.js";
4
+ export { LastEditedByFormAction } from "./LastEditedByFormAction.js";
5
+ export { UserChip } from "./UserChip.js";
@@ -1,45 +1,45 @@
1
- export type { EntityViewBindingProps } from "./EntityViewBinding";
2
- export { EntityViewBinding } from "./EntityViewBinding";
3
- export type { EntityDisplayHeaderProps } from "./EntityDisplayHeader";
4
- export { EntityDisplayHeader, HEADER_DISPLAY_ROLES } from "./EntityDisplayHeader";
5
- export * from "./DetailViewBinding";
6
- export type { SelectionProps } from "./ReferenceTable/SelectionTableBinding";
7
- export { SelectionTableBinding } from "./ReferenceTable/SelectionTableBinding";
8
- export * from "./SelectableTable/SelectableTable";
9
- export * from "./SelectableTable/SelectableTableContext";
10
- export * from "./SelectableTable/filters/FilterFieldBinding";
11
- export * from "./CollectionViewBinding/CollectionViewBinding";
12
- export * from "./CollectionViewBinding/CollectionViewActions";
13
- export * from "./CollectionViewBinding/CollectionCardViewBinding";
14
- export * from "./CollectionViewBinding/EntityCardBinding";
15
- export * from "./CollectionViewBinding/useSelectionController";
16
- export * from "./PropertyConfigBadge";
17
- export * from "./PropertyIdCopyTooltip";
18
- export * from "./CollectionTableBinding";
19
- export * from "./ArrayContainer";
20
- export * from "./ReferenceWidget";
21
- export * from "./SearchIconsView";
22
- export * from "./FieldCaption";
23
- export * from "./EntityPreviewBinding";
24
- export * from "./EntityPreviewNesting";
25
- export * from "./InlineEntityPreview";
26
- export * from "./common";
27
- export * from "./field_configs";
28
- export * from "./SidePanelProvider";
29
- export * from "./AdminModeSyncer";
30
- export * from "./app/AppBar";
31
- export * from "./app/Drawer";
32
- export * from "./app/Scaffold";
33
- export * from "./DefaultAppBar";
34
- export * from "./DefaultDrawer";
35
- export * from "./DrawerNavigationItem";
36
- export * from "./DrawerNavigationGroup";
37
- export * from "./SideDialogs";
38
- export * from "./app/useApp";
39
- export * from "./RebaseAdmin";
40
- export * from "./RebaseShell";
41
- export * from "./RebaseAuthGate";
42
- export * from "./RebaseNavigation";
43
- export * from "./RebaseLayout";
44
- export * from "./RebaseRouteDefs";
45
- export * from "./CollectionPanel";
1
+ export type { EntityViewBindingProps } from "./EntityViewBinding.js";
2
+ export { EntityViewBinding } from "./EntityViewBinding.js";
3
+ export type { EntityDisplayHeaderProps } from "./EntityDisplayHeader.js";
4
+ export { EntityDisplayHeader, HEADER_DISPLAY_ROLES } from "./EntityDisplayHeader.js";
5
+ export * from "./DetailViewBinding.js";
6
+ export type { SelectionProps } from "./ReferenceTable/SelectionTableBinding.js";
7
+ export { SelectionTableBinding } from "./ReferenceTable/SelectionTableBinding.js";
8
+ export * from "./SelectableTable/SelectableTable.js";
9
+ export * from "./SelectableTable/SelectableTableContext.js";
10
+ export * from "./SelectableTable/filters/FilterFieldBinding.js";
11
+ export * from "./CollectionViewBinding/CollectionViewBinding.js";
12
+ export * from "./CollectionViewBinding/CollectionViewActions.js";
13
+ export * from "./CollectionViewBinding/CollectionCardViewBinding.js";
14
+ export * from "./CollectionViewBinding/EntityCardBinding.js";
15
+ export * from "./CollectionViewBinding/useSelectionController.js";
16
+ export * from "./PropertyConfigBadge.js";
17
+ export * from "./PropertyIdCopyTooltip.js";
18
+ export * from "./CollectionTableBinding/index.js";
19
+ export * from "./ArrayContainer.js";
20
+ export * from "./ReferenceWidget.js";
21
+ export * from "./SearchIconsView.js";
22
+ export * from "./FieldCaption.js";
23
+ export * from "./EntityPreviewBinding.js";
24
+ export * from "./EntityPreviewNesting.js";
25
+ export * from "./InlineEntityPreview.js";
26
+ export * from "./common/index.js";
27
+ export * from "./field_configs.js";
28
+ export * from "./SidePanelProvider.js";
29
+ export * from "./AdminModeSyncer.js";
30
+ export * from "./app/AppBar.js";
31
+ export * from "./app/Drawer.js";
32
+ export * from "./app/Scaffold.js";
33
+ export * from "./DefaultAppBar.js";
34
+ export * from "./DefaultDrawer.js";
35
+ export * from "./DrawerNavigationItem.js";
36
+ export * from "./DrawerNavigationGroup.js";
37
+ export * from "./SideDialogs.js";
38
+ export * from "./app/useApp.js";
39
+ export * from "./RebaseAdmin.js";
40
+ export * from "./RebaseShell.js";
41
+ export * from "./RebaseAuthGate.js";
42
+ export * from "./RebaseNavigation.js";
43
+ export * from "./RebaseLayout.js";
44
+ export * from "./RebaseRouteDefs.js";
45
+ export * from "./CollectionPanel.js";
@@ -1,4 +1,4 @@
1
- export * from "./export";
2
- export * from "./fetch_export_data";
3
- export * from "./BasicExportAction";
4
- export * from "./ExportCollectionAction";
1
+ export * from "./export.js";
2
+ export * from "./fetch_export_data.js";
3
+ export * from "./BasicExportAction.js";
4
+ export * from "./ExportCollectionAction.js";
@@ -1 +1 @@
1
- export * from "./export";
1
+ export * from "./export/index.js";
@@ -1,5 +1,5 @@
1
1
  import { Property } from "@rebasepro/types";
2
- import { ImportConfig } from "../types";
2
+ import { ImportConfig } from "../types/index.js";
3
3
  export interface DataPropertyMappingProps {
4
4
  importConfig: ImportConfig;
5
5
  destinationProperties: Record<string, Property>;
@@ -1,4 +1,4 @@
1
- import { ImportConfig } from "../types";
1
+ import { ImportConfig } from "../types/index.js";
2
2
  import type { AdminCollection } from "@rebasepro/admin-types";
3
3
  export declare function ImportSaveInProgress<C extends AdminCollection<any>>({ path, importConfig, collection, onImportSuccess }: {
4
4
  path: string;
@@ -1,4 +1,4 @@
1
- export * from "./DataNewPropertiesMapping";
2
- export * from "./ImportFileUpload";
3
- export * from "./ImportNewPropertyFieldPreview";
4
- export * from "./ImportSaveInProgress";
1
+ export * from "./DataNewPropertiesMapping.js";
2
+ export * from "./ImportFileUpload.js";
3
+ export * from "./ImportNewPropertyFieldPreview.js";
4
+ export * from "./ImportSaveInProgress.js";
@@ -1 +1 @@
1
- export * from "./useImportConfig";
1
+ export * from "./useImportConfig.js";
@@ -1,2 +1,2 @@
1
- import { ImportConfig } from "../types";
1
+ import { ImportConfig } from "../types/index.js";
2
2
  export declare const useImportConfig: () => ImportConfig;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { Properties, Property, User } from "@rebasepro/types";
3
3
  import { CollectionActionsProps } from "@rebasepro/admin-types";
4
- import { ImportConfig } from "../types";
4
+ import { ImportConfig } from "../types/index.js";
5
5
  export declare function ImportCollectionAction<M extends Record<string, unknown>, USER extends User>({ collection, path, onAnalyticsEvent }: CollectionActionsProps<M, USER> & {
6
6
  onAnalyticsEvent?: (event: string, params?: any) => void;
7
7
  }): React.JSX.Element;
@@ -1 +1 @@
1
- export * from "./ImportCollectionAction";
1
+ export * from "./ImportCollectionAction.js";
@@ -1,5 +1,5 @@
1
- export * from "./components";
2
- export * from "./types";
3
- export * from "./utils";
4
- export * from "./hooks";
5
- export * from "./import";
1
+ export * from "./components/index.js";
2
+ export * from "./types/index.js";
3
+ export * from "./utils/index.js";
4
+ export * from "./hooks/index.js";
5
+ export * from "./import/index.js";
@@ -1 +1 @@
1
- export * from "./column_mapping";
1
+ export * from "./column_mapping.js";
@@ -1,6 +1,6 @@
1
- export { unflattenObject } from "./transforms";
2
1
  type ConversionResult = {
3
2
  data: object[];
4
3
  propertiesOrder: string[];
5
4
  };
6
5
  export declare function convertFileToJson(file: File): Promise<ConversionResult>;
6
+ export {};
@@ -1,5 +1,5 @@
1
- export * from "./file_to_json";
2
- export * from "./csv";
3
- export * from "./save_entities";
4
- export * from "./data";
5
- export * from "./get_import_inference_type";
1
+ export * from "./file_to_json.js";
2
+ export * from "./csv.js";
3
+ export * from "./save_entities.js";
4
+ export * from "./data.js";
5
+ export * from "./get_import_inference_type.js";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import type { EditorAIController } from "../types";
3
- import { UploadFn } from "../extensions/Image";
2
+ import type { EditorAIController } from "../types.js";
3
+ import { UploadFn } from "../extensions/Image.js";
4
4
  export declare const SlashCommandMenu: ({ upload, aiController }: {
5
5
  upload: UploadFn;
6
6
  aiController?: EditorAIController;
@@ -1,8 +1,8 @@
1
- export { EditorBubble } from "./editor-bubble";
2
- export { EditorBubbleItem } from "./editor-bubble-item";
3
- export { SlashCommandMenu } from "./SlashCommandMenu";
4
- export { ImageBubble } from "./image-bubble";
5
- export { TableBubble } from "./table-bubble";
1
+ export { EditorBubble } from "./editor-bubble.js";
2
+ export { EditorBubbleItem } from "./editor-bubble-item.js";
3
+ export { SlashCommandMenu } from "./SlashCommandMenu.js";
4
+ export { ImageBubble } from "./image-bubble.js";
5
+ export { TableBubble } from "./table-bubble.js";
6
6
  export type JSONContent = {
7
7
  type?: string;
8
8
  attrs?: Record<string, unknown>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { type JSONContent } from "./components";
3
- import { EditorAIController } from "./types";
2
+ import { type JSONContent } from "./components/index.js";
3
+ import { EditorAIController } from "./types.js";
4
4
  export type CustomEditorComponent = {
5
5
  name: string;
6
6
  component: React.FC;
@@ -1,2 +1,2 @@
1
- export * from "./editor";
2
- export * from "./types";
1
+ export * from "./editor.js";
2
+ export * from "./types.js";
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
- import { ReactNodeViewProps } from "./ReactNodeView";
2
+ import { ReactNodeViewProps } from "./ReactNodeView.js";
3
3
  export declare const ImageComponent: React.FC<ReactNodeViewProps>;