@rebasepro/cms 0.20.0 → 0.21.0
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.
- package/dist/{CollectionEditorDialog-DQjLtp1W.js → CollectionEditorDialog-C-A_NCKB.js} +15 -14
- package/dist/CollectionEditorDialog-C-A_NCKB.js.map +1 -0
- package/dist/JsonPreviewBinding-v0w3H0fp.js +35 -0
- package/dist/JsonPreviewBinding-v0w3H0fp.js.map +1 -0
- package/dist/{PropertyEditView-BMCCD2OI.js → PropertyEditView-Dv7496fx.js} +2 -57
- package/dist/{PropertyEditView-BMCCD2OI.js.map → PropertyEditView-Dv7496fx.js.map} +1 -1
- package/dist/{RouterCollectionsStudioView-DwsbIAqr.js → RouterCollectionsStudioView-DuDFEYuL.js} +4 -4
- package/dist/{RouterCollectionsStudioView-DwsbIAqr.js.map → RouterCollectionsStudioView-DuDFEYuL.js.map} +1 -1
- package/dist/collection_editor/ui/collection_editor/templates/blog_template.d.ts +126 -2
- package/dist/collection_editor/ui/collection_editor/templates/pages_template.d.ts +201 -2
- package/dist/collection_editor/ui/collection_editor/templates/products_template.d.ts +92 -2
- package/dist/collection_editor/ui/collection_editor/templates/users_template.d.ts +43 -2
- package/dist/collection_editor_ui.js +4 -4
- package/dist/components/CollectionViewBinding/CollectionViewStartActions.d.ts +6 -2
- package/dist/components/CollectionViewBinding/EntityCardBinding.d.ts +11 -1
- package/dist/components/DeleteEntityDialog.d.ts +11 -3
- package/dist/data_export/export/ExportCollectionAction.d.ts +1 -1
- package/dist/data_export/export/fetch_export_data.d.ts +10 -16
- package/dist/editor/editor.d.ts +1 -6
- package/dist/editor.js +1 -1
- package/dist/editor.js.map +1 -1
- package/dist/{export-DJoGYb89.js → export-DtSmLT6u.js} +54 -42
- package/dist/export-DtSmLT6u.js.map +1 -0
- package/dist/form/EntityForm.d.ts +1 -1
- package/dist/{history-BBpsdTrJ.js → history-C6kUDQ3f.js} +2 -2
- package/dist/{history-BBpsdTrJ.js.map → history-C6kUDQ3f.js.map} +1 -1
- package/dist/{import-C4VQ0rwO.js → import-BciQBH5t.js} +2 -2
- package/dist/{import-C4VQ0rwO.js.map → import-BciQBH5t.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/selection/SelectionMenu.d.ts +27 -0
- package/dist/selection/index.d.ts +2 -0
- package/dist/selection/resolve_selection.d.ts +62 -0
- package/dist/types/components/EntityFormProps.d.ts +13 -0
- package/dist/util/entity_pages.d.ts +36 -0
- package/dist/util/map_with_concurrency.d.ts +16 -0
- package/dist/{util-4oPxPkbp.js → util-h6jhiiBE.js} +674 -195
- package/dist/util-h6jhiiBE.js.map +1 -0
- package/package.json +9 -9
- package/dist/CollectionEditorDialog-DQjLtp1W.js.map +0 -1
- package/dist/export-DJoGYb89.js.map +0 -1
- 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,
|
|
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-
|
|
2
|
+
import { A as getFieldId, At as convertDataToEntity, Ft as ImportSaveInProgress, Gt as SearchIconsView, Kt as FieldCaption, Nt as getInferenceType, Ot as ImportNewPropertyFieldPreview, Pt as useImportConfig, Rt as ImportFileUpload, S as isSchemaChangeCancelled, Sn as useUrlController, Tt as useCollectionEditorController, Wt as PropertyConfigBadge, _ as useCollectionsConfigController, _n as CollectionTableBinding, ct as useSafeSnackbarController, hn as useSelectionController, 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, tr as useCollectionRegistryController, wn as useNavigationStateController } from "./util-h6jhiiBE.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-Dv7496fx.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";
|
|
@@ -12,8 +12,8 @@ import { RLS_ROLES_SQL, RLS_UID_SQL, getDataSourceCapabilities } from "@rebasepr
|
|
|
12
12
|
import { camelCase, getPolicyNamesForRule, isEmptyObject, mergeDeep, prettifyIdentifier, randomString, removeUndefined, singular, slugify, toSnakeCase, unslugify } from "@rebasepro/utils";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
import { buildEntityPropertiesFromData, buildPropertyFromData } from "@rebasepro/inference";
|
|
15
|
-
import { Highlight, themes } from "prism-react-renderer";
|
|
16
15
|
import JSON5 from "json5";
|
|
16
|
+
import { Highlight, themes } from "prism-react-renderer";
|
|
17
17
|
//#region src/collection_editor/ui/collection_editor/CollectionYupValidation.tsx
|
|
18
18
|
var CollectionEditorSchema = z.object({
|
|
19
19
|
slug: z.string().min(1, "Required"),
|
|
@@ -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:
|
|
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
|
|
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-
|
|
3585
|
+
//# sourceMappingURL=CollectionEditorDialog-C-A_NCKB.js.map
|