@rebasepro/admin 0.11.0 → 0.11.1-canary.g8caabf3

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 (89) hide show
  1. package/README.md +1 -1
  2. package/dist/{CollectionEditorDialog-o7F_zbGY.js → CollectionEditorDialog-id__fOqM.js} +4 -4
  3. package/dist/CollectionEditorDialog-id__fOqM.js.map +1 -0
  4. package/dist/{PropertyEditView-DgB2b22q.js → PropertyEditView-BLPT_e-N.js} +2 -2
  5. package/dist/{PropertyEditView-DgB2b22q.js.map → PropertyEditView-BLPT_e-N.js.map} +1 -1
  6. package/dist/{RouterCollectionsStudioView-DaLRgPkj.js → RouterCollectionsStudioView-DwkGdgyN.js} +4 -4
  7. package/dist/{RouterCollectionsStudioView-DaLRgPkj.js.map → RouterCollectionsStudioView-DwkGdgyN.js.map} +1 -1
  8. package/dist/collection_editor/CollectionEditorDialogsContext.d.ts +1 -1
  9. package/dist/collection_editor/_cms_internals.d.ts +1 -1
  10. package/dist/collection_editor/extensibility_types.d.ts +1 -1
  11. package/dist/collection_editor_ui.js +4 -4
  12. package/dist/components/CollectionEditorDialogs.d.ts +2 -2
  13. package/dist/components/CollectionViewBinding/CollectionListViewBinding.d.ts +2 -2
  14. package/dist/components/DefaultDrawer.d.ts +3 -3
  15. package/dist/components/DrawerNavigationGroup.d.ts +8 -1
  16. package/dist/components/DrawerNavigationItem.d.ts +7 -1
  17. package/dist/components/EditViewBinding.d.ts +1 -1
  18. package/dist/components/RebaseAdmin.d.ts +1 -1
  19. package/dist/components/RebaseAuthGate.d.ts +1 -1
  20. package/dist/components/RebaseLayout.d.ts +5 -1
  21. package/dist/components/RebaseNavigation.d.ts +2 -2
  22. package/dist/components/RebaseRouteDefs.d.ts +1 -1
  23. package/dist/components/RebaseShell.d.ts +6 -1
  24. package/dist/components/SidePanelProvider.d.ts +2 -2
  25. package/dist/components/app/Scaffold.d.ts +11 -0
  26. package/dist/{export-BvqhjdEb.js → export-lZhpezjk.js} +3 -3
  27. package/dist/export-lZhpezjk.js.map +1 -0
  28. package/dist/form/EntityForm.d.ts +2 -2
  29. package/dist/form/EntityFormBinding.d.ts +5 -5
  30. package/dist/{history-Dz20hH38.js → history-DkP1tce0.js} +2 -2
  31. package/dist/{history-Dz20hH38.js.map → history-DkP1tce0.js.map} +1 -1
  32. package/dist/hooks/index.d.ts +1 -1
  33. package/dist/hooks/useAdminContext.d.ts +29 -0
  34. package/dist/{import-DINSB-Vu.js → import-DQPGsiIw.js} +2 -2
  35. package/dist/{import-DINSB-Vu.js.map → import-DQPGsiIw.js.map} +1 -1
  36. package/dist/index.js +60 -38
  37. package/dist/index.js.map +1 -1
  38. package/dist/types/components/EntityFormProps.d.ts +1 -1
  39. package/dist/types/fields.d.ts +1 -1
  40. package/dist/{util-BhhfHY1M.js → util-DBxSfWpl.js} +45 -35
  41. package/dist/util-DBxSfWpl.js.map +1 -0
  42. package/package.json +9 -9
  43. package/src/collection_editor/CollectionEditorDialogsContext.tsx +1 -1
  44. package/src/collection_editor/ConfigControllerProvider.tsx +1 -1
  45. package/src/collection_editor/_cms_internals.ts +1 -1
  46. package/src/collection_editor/extensibility_types.ts +1 -1
  47. package/src/collection_editor/index.ts +2 -2
  48. package/src/collection_editor/ui/collection_editor/EntityActionsEditTab.tsx +1 -1
  49. package/src/collection_editor/ui/collection_editor/GetCodeDialog.tsx +1 -1
  50. package/src/collection_editor/ui/collection_editor/SubcollectionsEditTab.tsx +2 -2
  51. package/src/components/CollectionEditorDialogs.tsx +2 -2
  52. package/src/components/CollectionTableBinding/CollectionRowActions.tsx +5 -4
  53. package/src/components/CollectionViewBinding/CollectionListViewBinding.tsx +8 -7
  54. package/src/components/CollectionViewBinding/CollectionViewActions.tsx +2 -2
  55. package/src/components/CollectionViewBinding/CollectionViewBinding.tsx +2 -2
  56. package/src/components/CollectionViewBinding/CollectionViewStartActions.tsx +2 -2
  57. package/src/components/DefaultDrawer.tsx +19 -8
  58. package/src/components/DeleteEntityDialog.tsx +2 -2
  59. package/src/components/DetailViewBinding.tsx +21 -1
  60. package/src/components/DrawerNavigationGroup.tsx +28 -4
  61. package/src/components/DrawerNavigationItem.tsx +19 -5
  62. package/src/components/EditFormActions.tsx +4 -3
  63. package/src/components/EditViewBinding.tsx +1 -1
  64. package/src/components/HomePage/ContentHomePage.tsx +4 -4
  65. package/src/components/RebaseAdmin.tsx +3 -3
  66. package/src/components/RebaseAuthGate.tsx +1 -1
  67. package/src/components/RebaseLayout.tsx +8 -2
  68. package/src/components/RebaseNavigation.tsx +9 -9
  69. package/src/components/RebaseRouteDefs.tsx +2 -2
  70. package/src/components/RebaseShell.tsx +10 -1
  71. package/src/components/RelationSelector.tsx +2 -2
  72. package/src/components/SidePanelProvider.tsx +2 -2
  73. package/src/components/app/Scaffold.tsx +16 -1
  74. package/src/data_export/export/ExportCollectionAction.tsx +2 -2
  75. package/src/form/EntityForm.tsx +2 -2
  76. package/src/form/EntityFormActions.tsx +2 -1
  77. package/src/form/EntityFormBinding.tsx +7 -7
  78. package/src/hooks/index.ts +1 -1
  79. package/src/hooks/navigation/useNavigationResolution.ts +2 -2
  80. package/src/hooks/{useCMSContext.tsx → useAdminContext.tsx} +10 -10
  81. package/src/hooks/useResolvedNavigationFrom.tsx +2 -2
  82. package/src/index.ts +4 -4
  83. package/src/preview/components/RelationPreview.tsx +1 -1
  84. package/src/types/components/EntityFormProps.tsx +2 -2
  85. package/src/types/fields.tsx +1 -1
  86. package/dist/CollectionEditorDialog-o7F_zbGY.js.map +0 -1
  87. package/dist/export-BvqhjdEb.js.map +0 -1
  88. package/dist/hooks/useCMSContext.d.ts +0 -29
  89. package/dist/util-BhhfHY1M.js.map +0 -1
package/README.md CHANGED
@@ -71,7 +71,7 @@ pnpm add @rebasepro/admin
71
71
  | `useSelectionController` | Row selection state for tables |
72
72
  | `useHistory` | Snapshot change history and version revert |
73
73
  | `useBreadcrumbsController` | Breadcrumb navigation state |
74
- | `useCMSContext` | Access the CMS-level context |
74
+ | `useAdminContext` | Access the admin-level context |
75
75
  | `useResolvedNavigationFrom` | Resolve navigation tree from collection configs |
76
76
 
77
77
  ### Data Import/Export
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
2
- import { $t as CollectionTableBinding, A as getFieldId, Ct as convertDataToEntity, Dt as useImportConfig, Et as getInferenceType, Ft as FieldCaption, In as useCollectionRegistryController, Nt as PropertyConfigBadge, Ot as ImportSaveInProgress, Pt as SearchIconsView, St as DataNewPropertiesMapping, Zt as useSelectionController, _ as useCollectionsConfigController, i as namespaceToPropertiesOrderPath, in as useUrlController, k as getFieldConfig, kt as ImportFileUpload, l as validateCollectionJson, m as toSerializableCollectionConfig, n as getFullIdPath, o as CollectionGenerationApiError, on as useNavigationStateController, r as idToPropertiesPath, t as getFullId, vt as useCollectionEditorController, xt as ImportNewPropertyFieldPreview } from "./util-BhhfHY1M.js";
3
- import { a as updatePropertyFromWidget, c as useAIModifiedPaths, i as supportedFields, l as useSafeSnackbarController, n as PropertyForm, o as PropertyTree, r as PropertyFormDialog, s as AIModifiedPathsProvider } from "./PropertyEditView-DgB2b22q.js";
2
+ import { $t as CollectionTableBinding, A as getFieldId, Ct as convertDataToEntity, Dt as useImportConfig, Et as getInferenceType, Ft as FieldCaption, In as useCollectionRegistryController, Nt as PropertyConfigBadge, Ot as ImportSaveInProgress, Pt as SearchIconsView, St as DataNewPropertiesMapping, Zt as useSelectionController, _ as useCollectionsConfigController, i as namespaceToPropertiesOrderPath, in as useUrlController, k as getFieldConfig, kt as ImportFileUpload, l as validateCollectionJson, m as toSerializableCollectionConfig, n as getFullIdPath, o as CollectionGenerationApiError, on as useNavigationStateController, r as idToPropertiesPath, t as getFullId, vt as useCollectionEditorController, xt as ImportNewPropertyFieldPreview } from "./util-DBxSfWpl.js";
3
+ import { a as updatePropertyFromWidget, c as useAIModifiedPaths, i as supportedFields, l as useSafeSnackbarController, n as PropertyForm, o as PropertyTree, r as PropertyFormDialog, s as AIModifiedPathsProvider } from "./PropertyEditView-BLPT_e-N.js";
4
4
  import * as React$1 from "react";
5
5
  import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
6
6
  import { Alert, AppWindow, ArrowLeftIcon, BooleanSwitchWithLabel, Button, Card, CheckIcon, Chip, CircularProgress, CircularProgressCenter, CodeIcon, ColumnsIcon, Container, CopyIcon, DebouncedTextField, Dialog, DialogActions, DialogContent, DialogTitle, ErrorBoundary, FileIcon, FileSearchIcon, FileTextIcon, IconButton, KanbanIcon, KeyIcon, LayoutGridIcon, ListIcon, LoadingButton, Menu, MultiSelect, MultiSelectItem, PanelLeftIcon, Paper, PlusIcon, Select, SelectItem, ShoppingCartIcon, SquareIcon, Tab, TableIcon, Tabs, TextField, ToggleButtonGroup, Tooltip, Trash2Icon, Typography, UserIcon, XIcon, cls, coolIconKeys, defaultBorderMixin, iconSize } from "@rebasepro/ui";
@@ -696,7 +696,7 @@ function GetCodeDialog({ collection, onOpenChange, open }) {
696
696
  variant: "body2",
697
697
  className: "my-4 mb-8",
698
698
  children: [
699
- "If you want to customise the collection in code, you can add this collection code to your CMS app configuration. More info in the ",
699
+ "If you want to customise the collection in code, you can add this collection code to your admin app configuration. More info in the ",
700
700
  /* @__PURE__ */ jsx("a", {
701
701
  rel: "noopener noreferrer",
702
702
  href: "https://rebase.pro/docs/cloud/quickstart",
@@ -3741,4 +3741,4 @@ var validateId = (value, isNewCollection, existingPaths, existingIds) => {
3741
3741
  //#endregion
3742
3742
  export { CollectionEditorDialog as n, CollectionEditorDialog_exports as r, CollectionEditor as t };
3743
3743
 
3744
- //# sourceMappingURL=CollectionEditorDialog-o7F_zbGY.js.map
3744
+ //# sourceMappingURL=CollectionEditorDialog-id__fOqM.js.map