@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,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-4oPxPkbp.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-CSqO4I0b.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";
@@ -3086,21 +3086,8 @@ function MarkdownPropertyField({ disabled, showErrors }) {
3086
3086
  const fileNameValue = getIn(values, fileName) ?? "{rand}_{file}";
3087
3087
  const storagePathValue = getIn(values, storagePath) ?? "/";
3088
3088
  const maxSizeValue = getIn(values, maxSize);
3089
- const markdownValue = getIn(values, "markdown");
3090
- const isMarkdownObject = typeof markdownValue === "object" && markdownValue !== null;
3091
- const htmlValue = isMarkdownObject ? markdownValue.html ?? true : true;
3092
- const transformPastedTextValue = isMarkdownObject ? markdownValue.transformPastedText ?? false : false;
3093
3089
  const hasFilenameCallback = typeof fileNameValue === "function";
3094
3090
  const hasStoragePathCallback = typeof storagePathValue === "function";
3095
- const updateMarkdownConfig = useCallback((key, value) => {
3096
- const currentMarkdown = getIn(values, "markdown");
3097
- if (typeof currentMarkdown === "object" && currentMarkdown !== null) setFieldValue(`markdown.${key}`, value);
3098
- else setFieldValue("markdown", {
3099
- html: true,
3100
- transformPastedText: false,
3101
- [key]: value
3102
- });
3103
- }, [values, setFieldValue]);
3104
3091
  return /* @__PURE__ */ jsxs(Fragment, { children: [
3105
3092
  /* @__PURE__ */ jsx("div", {
3106
3093
  className: "col-span-12",
@@ -3115,48 +3102,6 @@ function MarkdownPropertyField({ disabled, showErrors }) {
3115
3102
  showErrors
3116
3103
  }) })
3117
3104
  }),
3118
- /* @__PURE__ */ jsx("div", {
3119
- className: "col-span-12",
3120
- children: /* @__PURE__ */ jsx(ExpandablePanel, {
3121
- title: /* @__PURE__ */ jsxs("div", {
3122
- className: "flex flex-row text-surface-500",
3123
- children: [/* @__PURE__ */ jsx(SettingsIcon, {}), /* @__PURE__ */ jsx(Typography, {
3124
- variant: "subtitle2",
3125
- className: "ml-4",
3126
- children: "Paste behavior"
3127
- })]
3128
- }),
3129
- children: /* @__PURE__ */ jsxs("div", {
3130
- className: "flex flex-col gap-2 p-4",
3131
- children: [
3132
- /* @__PURE__ */ jsx(BooleanSwitchWithLabel, {
3133
- size: "small",
3134
- disabled,
3135
- value: !htmlValue,
3136
- onValueChange: (value) => updateMarkdownConfig("html", !value),
3137
- label: t("markdown_strip_html")
3138
- }),
3139
- /* @__PURE__ */ jsx(Typography, {
3140
- variant: "caption",
3141
- className: "ml-3.5 mt-1 mb-2",
3142
- children: "Remove HTML tags and inline styles when pasting content from external sources"
3143
- }),
3144
- /* @__PURE__ */ jsx(BooleanSwitchWithLabel, {
3145
- size: "small",
3146
- disabled,
3147
- value: transformPastedTextValue,
3148
- onValueChange: (value) => updateMarkdownConfig("transformPastedText", value),
3149
- label: t("markdown_convert_pasted")
3150
- }),
3151
- /* @__PURE__ */ jsx(Typography, {
3152
- variant: "caption",
3153
- className: "ml-3.5 mt-1 mb-2",
3154
- children: "Convert rich text (from Google Docs, Word, etc.) to clean markdown format"
3155
- })
3156
- ]
3157
- })
3158
- })
3159
- }),
3160
3105
  /* @__PURE__ */ jsx("div", {
3161
3106
  className: "col-span-12",
3162
3107
  children: /* @__PURE__ */ jsx(ExpandablePanel, {
@@ -3857,4 +3802,4 @@ function WidgetSelectViewItem({ onClick, initialProperty, propertyConfig, existi
3857
3802
  //#endregion
3858
3803
  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
3804
 
3860
- //# sourceMappingURL=PropertyEditView-BMCCD2OI.js.map
3805
+ //# sourceMappingURL=PropertyEditView-6bPyDphj.js.map