@rebasepro/cms 0.20.0 → 0.20.1-canary.g4d882ca

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 (25) hide show
  1. package/dist/{CollectionEditorDialog-DQjLtp1W.js → CollectionEditorDialog-Dqj1H2J1.js} +14 -13
  2. package/dist/{CollectionEditorDialog-DQjLtp1W.js.map → CollectionEditorDialog-Dqj1H2J1.js.map} +1 -1
  3. package/dist/{PropertyEditView-BMCCD2OI.js → PropertyEditView-6bPyDphj.js} +2 -57
  4. package/dist/{PropertyEditView-BMCCD2OI.js.map → PropertyEditView-6bPyDphj.js.map} +1 -1
  5. package/dist/{RouterCollectionsStudioView-DwsbIAqr.js → RouterCollectionsStudioView-DcVBjsxs.js} +4 -4
  6. package/dist/{RouterCollectionsStudioView-DwsbIAqr.js.map → RouterCollectionsStudioView-DcVBjsxs.js.map} +1 -1
  7. package/dist/collection_editor/ui/collection_editor/templates/blog_template.d.ts +126 -2
  8. package/dist/collection_editor/ui/collection_editor/templates/pages_template.d.ts +201 -2
  9. package/dist/collection_editor/ui/collection_editor/templates/products_template.d.ts +92 -2
  10. package/dist/collection_editor/ui/collection_editor/templates/users_template.d.ts +43 -2
  11. package/dist/collection_editor_ui.js +4 -4
  12. package/dist/editor/editor.d.ts +1 -6
  13. package/dist/editor.js +1 -1
  14. package/dist/editor.js.map +1 -1
  15. package/dist/{export-DJoGYb89.js → export-uKD4QlR9.js} +2 -2
  16. package/dist/{export-DJoGYb89.js.map → export-uKD4QlR9.js.map} +1 -1
  17. package/dist/{history-BBpsdTrJ.js → history-BGkpUl0-.js} +2 -2
  18. package/dist/{history-BBpsdTrJ.js.map → history-BGkpUl0-.js.map} +1 -1
  19. package/dist/{import-C4VQ0rwO.js → import-jRh_je8w.js} +2 -2
  20. package/dist/{import-C4VQ0rwO.js.map → import-jRh_je8w.js.map} +1 -1
  21. package/dist/index.js +6 -6
  22. package/dist/{util-4oPxPkbp.js → util-CSqO4I0b.js} +9 -9
  23. package/dist/util-CSqO4I0b.js.map +1 -0
  24. package/package.json +9 -9
  25. package/dist/util-4oPxPkbp.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
2
- import { A as getFieldId, At as convertDataToEntity, Ft as ImportSaveInProgress, Gt as SearchIconsView, Jn as useCollectionRegistryController, Kt as FieldCaption, Nt as getInferenceType, Ot as ImportNewPropertyFieldPreview, Pt as useImportConfig, Rt as ImportFileUpload, S as isSchemaChangeCancelled, Tt as useCollectionEditorController, Wt as PropertyConfigBadge, _ as useCollectionsConfigController, _n as useNavigationStateController, cn as useSelectionController, ct as useSafeSnackbarController, hn as useUrlController, i as namespaceToPropertiesOrderPath, k as getFieldConfig, kt as DataNewPropertiesMapping, l as validateCollectionJson, m as toSerializableCollectionConfig, n as getFullIdPath, o as CollectionGenerationApiError, r as idToPropertiesPath, t as getFullId, un as CollectionTableBinding } from "./util-4oPxPkbp.js";
3
- import { a as updatePropertyFromWidget, c as useAIModifiedPaths, i as supportedFields, n as PropertyForm, o as PropertyTree, r as PropertyFormDialog, s as AIModifiedPathsProvider } from "./PropertyEditView-BMCCD2OI.js";
2
+ import { A as getFieldId, At as convertDataToEntity, Ft as ImportSaveInProgress, Gt as SearchIconsView, Jn as useCollectionRegistryController, Kt as FieldCaption, Nt as getInferenceType, Ot as ImportNewPropertyFieldPreview, Pt as useImportConfig, Rt as ImportFileUpload, S as isSchemaChangeCancelled, Tt as useCollectionEditorController, Wt as PropertyConfigBadge, _ as useCollectionsConfigController, _n as useNavigationStateController, cn as useSelectionController, ct as useSafeSnackbarController, hn as useUrlController, i as namespaceToPropertiesOrderPath, k as getFieldConfig, kt as DataNewPropertiesMapping, l as validateCollectionJson, m as toSerializableCollectionConfig, n as getFullIdPath, o as CollectionGenerationApiError, r as idToPropertiesPath, t as getFullId, un as CollectionTableBinding } from "./util-CSqO4I0b.js";
3
+ import { a as updatePropertyFromWidget, c as useAIModifiedPaths, i as supportedFields, n as PropertyForm, o as PropertyTree, r as PropertyFormDialog, s as AIModifiedPathsProvider } from "./PropertyEditView-6bPyDphj.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";
@@ -1332,7 +1332,7 @@ var productsCollectionTemplate = {
1332
1332
  type: "string",
1333
1333
  name: "Description",
1334
1334
  description: "Description of this product, supports markdown",
1335
- markdown: true
1335
+ admin: { markdown: true }
1336
1336
  },
1337
1337
  main_image: {
1338
1338
  type: "string",
@@ -1428,12 +1428,12 @@ var blogCollectionTemplate = {
1428
1428
  text: {
1429
1429
  type: "string",
1430
1430
  name: "Text",
1431
- markdown: true
1431
+ admin: { markdown: true }
1432
1432
  },
1433
1433
  quote: {
1434
1434
  type: "string",
1435
1435
  name: "Quote",
1436
- multiline: true
1436
+ admin: { multiline: true }
1437
1437
  },
1438
1438
  images: {
1439
1439
  name: "Images",
@@ -1454,7 +1454,7 @@ var blogCollectionTemplate = {
1454
1454
  of: {
1455
1455
  type: "reference",
1456
1456
  path: "products",
1457
- previewProperties: ["name", "main_image"]
1457
+ admin: { previewProperties: ["name", "main_image"] }
1458
1458
  }
1459
1459
  }
1460
1460
  },
@@ -1499,7 +1499,7 @@ var blogCollectionTemplate = {
1499
1499
  type: "array",
1500
1500
  of: {
1501
1501
  type: "string",
1502
- previewAsTag: true
1502
+ admin: { previewAsTag: true }
1503
1503
  }
1504
1504
  }
1505
1505
  }
@@ -1542,7 +1542,8 @@ var usersCollectionTemplate = {
1542
1542
  photoURL: {
1543
1543
  name: "Photo URL",
1544
1544
  type: "string",
1545
- url: "image"
1545
+ url: true,
1546
+ admin: { urlPreview: "image" }
1546
1547
  }
1547
1548
  }
1548
1549
  };
@@ -1619,7 +1620,7 @@ var pagesCollectionTemplate = {
1619
1620
  content: {
1620
1621
  type: "string",
1621
1622
  name: "Section Content",
1622
- markdown: true
1623
+ admin: { markdown: true }
1623
1624
  },
1624
1625
  image: {
1625
1626
  type: "string",
@@ -1679,7 +1680,7 @@ var pagesCollectionTemplate = {
1679
1680
  content: {
1680
1681
  type: "string",
1681
1682
  name: "Sidebar Content",
1682
- markdown: true
1683
+ admin: { markdown: true }
1683
1684
  }
1684
1685
  }
1685
1686
  },
@@ -1705,7 +1706,7 @@ var pagesCollectionTemplate = {
1705
1706
  footer_override: {
1706
1707
  type: "string",
1707
1708
  name: "Footer Override",
1708
- markdown: true
1709
+ admin: { markdown: true }
1709
1710
  },
1710
1711
  publish_date: {
1711
1712
  type: "date",
@@ -2714,7 +2715,7 @@ function InlinePolicyEditor({ policy, table, availableRoles, rolesUnavailable, o
2714
2715
  children: [policy ? "Edit Policy" : "Create Policy", /* @__PURE__ */ jsxs("div", {
2715
2716
  className: "text-sm font-normal text-text-secondary dark:text-text-secondary-dark tracking-wide mt-1",
2716
2717
  children: ["Define RLS rules for ", /* @__PURE__ */ jsxs("span", {
2717
- className: "font-mono text-primary bg-primary-bg dark:bg-primary-bg-dark px-1 py-0.5 rounded",
2718
+ className: "font-mono text-primary bg-primary-bg px-1 py-0.5 rounded",
2718
2719
  children: ["public.", table]
2719
2720
  })]
2720
2721
  })]
@@ -3581,4 +3582,4 @@ var validateId = (value, isNewCollection, existingPaths, existingIds) => {
3581
3582
  //#endregion
3582
3583
  export { CollectionEditorDialog as n, CollectionEditorDialog_exports as r, CollectionEditor as t };
3583
3584
 
3584
- //# sourceMappingURL=CollectionEditorDialog-DQjLtp1W.js.map
3585
+ //# sourceMappingURL=CollectionEditorDialog-Dqj1H2J1.js.map