@rebasepro/cms 0.19.1 → 0.19.2-canary.g09316f6

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 (39) hide show
  1. package/dist/{CollectionEditorDialog-BeX4b92r.js → CollectionEditorDialog-DQjLtp1W.js} +75 -70
  2. package/dist/CollectionEditorDialog-DQjLtp1W.js.map +1 -0
  3. package/dist/{PropertyEditView-C7thfj4L.js → PropertyEditView-BMCCD2OI.js} +6 -6
  4. package/dist/PropertyEditView-BMCCD2OI.js.map +1 -0
  5. package/dist/{RouterCollectionsStudioView-BtjzvB6E.js → RouterCollectionsStudioView-DwsbIAqr.js} +9 -9
  6. package/dist/RouterCollectionsStudioView-DwsbIAqr.js.map +1 -0
  7. package/dist/{SchemaChangeDialog-CkqK6KOC.js → SchemaChangeDialog-BeP0A4MJ.js} +3 -3
  8. package/dist/SchemaChangeDialog-BeP0A4MJ.js.map +1 -0
  9. package/dist/collection_editor/serializable_types.d.ts +20 -0
  10. package/dist/collection_editor_ui.js +5 -5
  11. package/dist/components/CollectionTableBinding/fields/CompactEntityCellField.d.ts +23 -0
  12. package/dist/components/CollectionTableBinding/fields/TableRelationSelectorField.d.ts +1 -1
  13. package/dist/components/RelationSelector.d.ts +5 -1
  14. package/dist/data_import/utils/file_headers.d.ts +28 -4
  15. package/dist/editor.js +11 -11
  16. package/dist/editor.js.map +1 -1
  17. package/dist/{export--arni_VY.js → export-DJoGYb89.js} +2 -2
  18. package/dist/{export--arni_VY.js.map → export-DJoGYb89.js.map} +1 -1
  19. package/dist/{history-C2TpoQwi.js → history-BBpsdTrJ.js} +4 -4
  20. package/dist/history-BBpsdTrJ.js.map +1 -0
  21. package/dist/{import-DTkXNoBg.js → import-C4VQ0rwO.js} +2 -2
  22. package/dist/{import-DTkXNoBg.js.map → import-C4VQ0rwO.js.map} +1 -1
  23. package/dist/index.js +30 -35
  24. package/dist/index.js.map +1 -1
  25. package/dist/{markdown-CklalUUk.js → markdown-CCqp8ibf.js} +3 -3
  26. package/dist/markdown-CCqp8ibf.js.map +1 -0
  27. package/dist/util/view_constants.d.ts +3 -3
  28. package/dist/{util-DE1WQW6h.js → util-4oPxPkbp.js} +339 -155
  29. package/dist/util-4oPxPkbp.js.map +1 -0
  30. package/dist/{util-CfLFggP7.js → util-DB31IoJE.js} +4 -4
  31. package/dist/{util-CfLFggP7.js.map → util-DB31IoJE.js.map} +1 -1
  32. package/package.json +12 -11
  33. package/dist/CollectionEditorDialog-BeX4b92r.js.map +0 -1
  34. package/dist/PropertyEditView-C7thfj4L.js.map +0 -1
  35. package/dist/RouterCollectionsStudioView-BtjzvB6E.js.map +0 -1
  36. package/dist/SchemaChangeDialog-CkqK6KOC.js.map +0 -1
  37. package/dist/history-C2TpoQwi.js.map +0 -1
  38. package/dist/markdown-CklalUUk.js.map +0 -1
  39. package/dist/util-DE1WQW6h.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
2
- import { A as getFieldId, E as DEFAULT_FIELD_CONFIGS, Jn as useCollectionRegistryController, Kt as FieldCaption, Ut as ArrayContainer, Wt as PropertyConfigBadge, a as namespaceToPropertiesPath, ct as useSafeSnackbarController, g as toSerializableProperty, i as namespaceToPropertiesOrderPath, k as getFieldConfig, m as toSerializableCollectionConfig, n as getFullIdPath, r as idToPropertiesPath, t as getFullId } from "./util-DE1WQW6h.js";
2
+ import { A as getFieldId, E as DEFAULT_FIELD_CONFIGS, Jn as useCollectionRegistryController, Kt as FieldCaption, Ut as ArrayContainer, Wt as PropertyConfigBadge, a as namespaceToPropertiesPath, ct as useSafeSnackbarController, g as toSerializableProperty, i as namespaceToPropertiesOrderPath, k as getFieldConfig, m as toSerializableCollectionConfig, n as getFullIdPath, r as idToPropertiesPath, t as getFullId } from "./util-4oPxPkbp.js";
3
3
  import React, { createContext, useCallback, useContext, useDeferredValue, useEffect, useMemo, useRef, useState } from "react";
4
4
  import { deepEqual } from "fast-equals";
5
5
  import { AlertTriangleIcon, ArrowDownToLineIcon, ArrowUpToLineIcon, Badge, BooleanSwitchWithLabel, Button, Card, CheckSquareIcon, CircularProgress, DebouncedTextField, Dialog, DialogActions, DialogContent, DialogTitle, ErrorBoundary, ExpandablePanel, FileSearchIcon, FunctionSquareIcon, IconButton, InfoLabel, ListIcon, Menu, MenuItem, MinusCircleIcon, MoreVerticalIcon, MultiSelect, MultiSelectItem, Paper, PlusIcon, RefreshCcwIcon, Select, SelectItem, SettingsIcon, TextField, Tooltip, Trash2Icon, Typography, UploadCloudIcon, cls, defaultBorderMixin, iconSize } from "@rebasepro/ui";
@@ -902,7 +902,7 @@ function PropertyFieldPreview({ property, propertyKey, onClick, hasError, includ
902
902
  onClick,
903
903
  className: onClick ? "cursor-pointer" : "",
904
904
  children: /* @__PURE__ */ jsxs("div", {
905
- className: cls("w-full flex flex-row gap-3 items-center px-3 py-2 rounded-lg transition-all duration-200 border bg-white dark:bg-surface-900 shadow-xs", (hasError ? "border-red-500 dark:border-red-500 border-red-500/100 dark:border-red-500/100 ring-0 dark:ring-0" : selected ? "border-primary" : "") || "border-surface-200 dark:border-surface-700", selected ? "bg-primary/10 text-primary dark:bg-primary/20 dark:text-primary-light ring-1 ring-inset ring-primary border-primary/30" : "hover:bg-surface-50 dark:hover:bg-surface-700"),
905
+ className: cls("w-full flex flex-row gap-3 items-center px-3 py-2 rounded-lg transition-all duration-200 border bg-surface-card shadow-xs", (hasError ? "border-red-500 dark:border-red-500 border-red-500/100 dark:border-red-500/100 ring-0 dark:ring-0" : selected ? "border-primary" : "") || "border-hairline-strong", selected ? "bg-primary/10 text-primary dark:bg-primary/20 dark:text-primary-light ring-1 ring-inset ring-primary border-primary/30" : "hover:bg-surface-hover"),
906
906
  children: [
907
907
  /* @__PURE__ */ jsx(PropertyConfigBadge, {
908
908
  propertyConfig,
@@ -962,7 +962,7 @@ function NonEditablePropertyPreview({ name, selected, onClick, property }) {
962
962
  onClick,
963
963
  className: onClick ? "cursor-pointer" : "",
964
964
  children: /* @__PURE__ */ jsxs("div", {
965
- className: cls("w-full flex flex-row gap-3 items-center px-3 py-2 rounded-lg transition-all duration-200 border bg-white dark:bg-surface-900 border-surface-200 dark:border-surface-700 shadow-xs", selected ? "bg-primary/10 text-primary dark:bg-primary/20 dark:text-primary-light ring-1 ring-inset ring-primary border-primary/30" : "hover:bg-surface-50 dark:hover:bg-surface-700"),
965
+ className: cls("w-full flex flex-row gap-3 items-center px-3 py-2 rounded-lg transition-all duration-200 border bg-surface-card border-hairline-strong shadow-xs", selected ? "bg-primary/10 text-primary dark:bg-primary/20 dark:text-primary-light ring-1 ring-inset ring-primary border-primary/30" : "hover:bg-surface-hover"),
966
966
  children: [/* @__PURE__ */ jsxs("div", {
967
967
  className: "relative shrink-0",
968
968
  children: [
@@ -978,7 +978,7 @@ function NonEditablePropertyPreview({ name, selected, onClick, property }) {
978
978
  })
979
979
  }),
980
980
  /* @__PURE__ */ jsx(MinusCircleIcon, {
981
- className: "text-surface-accent-400 absolute -right-2 -top-2 bg-surface-50 dark:bg-surface-900 rounded-full",
981
+ className: "text-surface-accent-400 absolute -right-2 -top-2 bg-surface-card rounded-full",
982
982
  size: iconSize.small
983
983
  })
984
984
  ]
@@ -3752,7 +3752,7 @@ function WidgetSelectView({ initialProperty, value, onValueChange, open, onOpenC
3752
3752
  onClick: () => {
3753
3753
  if (!disabled) onOpenChange(!open, Boolean(value));
3754
3754
  },
3755
- className: cls("select-none rounded-md text-sm py-2 px-1 transition-colors duration-200", !disabled && "hover:bg-surface-50 dark:hover:bg-surface-800 cursor-pointer", "relative flex items-center mb-2"),
3755
+ className: cls("select-none rounded-md text-sm py-2 px-1 transition-colors duration-200", !disabled && "hover:bg-surface-hover cursor-pointer", "relative flex items-center mb-2"),
3756
3756
  children: [!value && /* @__PURE__ */ jsx("em", { children: "Select a property widget" }), value && computedFieldConfig && /* @__PURE__ */ jsxs("div", {
3757
3757
  className: cls("flex items-center"),
3758
3758
  children: [/* @__PURE__ */ jsx("div", {
@@ -3857,4 +3857,4 @@ function WidgetSelectViewItem({ onClick, initialProperty, propertyConfig, existi
3857
3857
  //#endregion
3858
3858
  export { updatePropertyFromWidget as a, useAIModifiedPaths as c, supportedFields as i, PropertyForm as n, PropertyTree as o, PropertyFormDialog as r, AIModifiedPathsProvider as s, PropertyEditView_exports as t };
3859
3859
 
3860
- //# sourceMappingURL=PropertyEditView-C7thfj4L.js.map
3860
+ //# sourceMappingURL=PropertyEditView-BMCCD2OI.js.map