@rxdrag/website-studio 0.0.73 → 0.0.74

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 (36) hide show
  1. package/dist/components/ConfigDrawer/StyleConfigModal/ImageSizeTab.d.ts +6 -0
  2. package/dist/{cssMode-19f0a792.js → cssMode-3f92f4fd.js} +2 -2
  3. package/dist/{cssMode-19f0a792.js.map → cssMode-3f92f4fd.js.map} +1 -1
  4. package/dist/{freemarker2-a3361f22.js → freemarker2-69b6ffda.js} +2 -2
  5. package/dist/{freemarker2-a3361f22.js.map → freemarker2-69b6ffda.js.map} +1 -1
  6. package/dist/{handlebars-ce9384eb.js → handlebars-8734dff3.js} +2 -2
  7. package/dist/{handlebars-ce9384eb.js.map → handlebars-8734dff3.js.map} +1 -1
  8. package/dist/{html-5843f82a.js → html-7079f47c.js} +2 -2
  9. package/dist/{html-5843f82a.js.map → html-7079f47c.js.map} +1 -1
  10. package/dist/{htmlMode-badd452c.js → htmlMode-730fac31.js} +2 -2
  11. package/dist/{htmlMode-badd452c.js.map → htmlMode-730fac31.js.map} +1 -1
  12. package/dist/{index-510b5042.js → index-57fb0e65.js} +130 -45
  13. package/dist/{index-510b5042.js.map → index-57fb0e65.js.map} +1 -1
  14. package/dist/index.mjs +1 -1
  15. package/dist/{javascript-3e608e00.js → javascript-f13d0738.js} +3 -3
  16. package/dist/{javascript-3e608e00.js.map → javascript-f13d0738.js.map} +1 -1
  17. package/dist/{jsonMode-20aca4d2.js → jsonMode-ed6e2469.js} +2 -2
  18. package/dist/{jsonMode-20aca4d2.js.map → jsonMode-ed6e2469.js.map} +1 -1
  19. package/dist/{liquid-5e6b3712.js → liquid-dae34526.js} +2 -2
  20. package/dist/{liquid-5e6b3712.js.map → liquid-dae34526.js.map} +1 -1
  21. package/dist/{mdx-2b8b5991.js → mdx-b73e34f7.js} +2 -2
  22. package/dist/{mdx-2b8b5991.js.map → mdx-b73e34f7.js.map} +1 -1
  23. package/dist/{python-03c1ab7c.js → python-e9a25850.js} +2 -2
  24. package/dist/{python-03c1ab7c.js.map → python-e9a25850.js.map} +1 -1
  25. package/dist/{razor-edc80849.js → razor-e614d2cc.js} +2 -2
  26. package/dist/{razor-edc80849.js.map → razor-e614d2cc.js.map} +1 -1
  27. package/dist/{tsMode-9136106b.js → tsMode-216c78a7.js} +2 -2
  28. package/dist/{tsMode-9136106b.js.map → tsMode-216c78a7.js.map} +1 -1
  29. package/dist/{typescript-aa01607f.js → typescript-898ace2f.js} +2 -2
  30. package/dist/{typescript-aa01607f.js.map → typescript-898ace2f.js.map} +1 -1
  31. package/dist/{xml-3a606e67.js → xml-6fbbdc9d.js} +2 -2
  32. package/dist/{xml-3a606e67.js.map → xml-6fbbdc9d.js.map} +1 -1
  33. package/dist/{yaml-8bb35932.js → yaml-4f60abdc.js} +2 -2
  34. package/dist/{yaml-8bb35932.js.map → yaml-4f60abdc.js.map} +1 -1
  35. package/package.json +20 -20
  36. package/dist/components/DocPreview/mock/MockEntify.d.ts +0 -51
@@ -15,8 +15,8 @@ import { compileAstroToReact, transformSchemaToCode, extractVariables, isExpress
15
15
  import clsx$1 from "clsx";
16
16
  import { useDesignerEngine, useActivedDocumentId, Designer, useDocumentModified, useClearModified, useDocConfig, useDocumentCode, useViewMode, useGetDocSchemaTree, ViewMode, useRootNode, IFrameCanvasImpl, KeyboardDriver, DragDropDriver, DragOverDriver, MouseClickDriver, MouseMoveDriver, MouseOverOutDriver, CanvasResizeDriver, CanvasScrollDriver, MouseUpDriver, useDragStore, RelativePosition, AcceptType, useCurrentNode, useSelectedElementsRectsInIframe, useActivedElementRect, useActivedId, useTreeNode, useChangeNodeMeta, useNodeMeta, createNodeHandlerProps, useSelection, useBackup, useSetInsertTargetWithPosition, useComponentOperationStore, NodeRelativePosition, TabType, InsertMode, useGetNode, useNodeMove, useClone, useRemoveSelectedNodes, useSelectedNode, useSelectedParent, useSelectParent, MouseMoveEvent, useCodeModified, RXID_ATTR_NAME, useSchemaTree, useSetChildren, useSetDocConfig, useDeviceType, DeviceType, useHistory, useResourceNode, useCanAccept, useConfigModified, useCreateDocument, useRemoveDocument, ContainerImpl, DocumentRoot } from "@rxdrag/rxcraft";
17
17
  import { staticMaterials, AddablePlaceHolder, ViewKeyProvider, ComponentTreeWidget, VariableProvider, setters, DEFUALT_DEVICE_MAP, DEFAULT_SMALLEST_DEVICE, MetaEdittingProvider, useVariables, useExecuteExpression, classListToClassName, expressionAndName, expressionTernaryName, expressionLoopName, useViewKey, slotContentName } from "@rxdrag/website-materials";
18
- import { Icon, PageLoader, PopoverController, ModalController, AnimateController, TabsController, NumberController, FlipController, CollapseController, AosController, DEFAULT_SAMLL, DEFAULT_MEDIUM, DEFAULT_LARGE } from "@rxdrag/website-lib-core";
19
- import { CheckCircleIcon as CheckCircleIcon$1, CloseIcon, ModalBody, AddIcon as AddIcon$1, TaskStopIcon, AiStarIcon, ConfirmDialog, SettingsIcon, ModalFooter, FavouriteIcon, LightIcon, DarkIcon, EditIcon, TextInput, Drawer, ModalHeader, ModalClose, SearchIcon, ModalContent as ModalContent$1, Modal as Modal$1, ModalOverlay as ModalOverlay$1, WarningIcon, PinIcon, ErrorBoundary, CloneIcon, RemoveIcon, MonacoEditor, RunningIcon, StyledTooltip, PlayIcon, getTheFile, useSave, MoreIcon, CodeSquareIcon, CodeSyncIcon, Logo, PagesIcon, WidgetIcon, SeoIcon, TextIcon, HeadingIcon, StarIcon, ImageIcon, VideoIcon, SplineIcon, CardIcon, TableIcon, GridIcon, BoxIcon, DividerIcon, SpacerIcon, SlotIcon, LinkIcon, BreadcrumbIcon, TabsIcon, PopoverIcon, ModalIcon, FormIcon, LeafNode, GroupNode, TreeView, DesignIcon, ResetIcon, ImportIcon, AstroIcon, AddFolderIcon, MediasIcon, LanguageIcon, SettingsMinimalisticIcon, DownloadIcon, UploadIcon } from "@rxdrag/rxcms-common";
18
+ import { Icon, PageLoader, PopoverController, ModalController, AnimateController, TabsController, NumberController, FlipController, CollapseController, AosController, DEFAULT_SAMLL, DEFAULT_MEDIUM, DEFAULT_LARGE, DEFAULT_PRODUCT_IMAGE_SIZE, DEFAULT_PRODUCT_THUMBNAIL_IMAGE_SIZE, DEFAULT_POST_IMAGE_SIZE, DEFAULT_POST_THUMBNAIL_IMAGE_SIZE } from "@rxdrag/website-lib-core";
19
+ import { CheckCircleIcon as CheckCircleIcon$1, CloseIcon, ModalBody, AddIcon as AddIcon$1, TaskStopIcon, AiStarIcon, ConfirmDialog, SettingsIcon, ModalFooter, FavouriteIcon, LightIcon, DarkIcon, EditIcon, TextInput, Drawer, ModalHeader, ModalClose, SearchIcon, ModalContent as ModalContent$1, Modal as Modal$1, ModalOverlay as ModalOverlay$1, WarningIcon, PinIcon, ErrorBoundary, CloneIcon, RemoveIcon, MonacoEditor, RunningIcon, StyledTooltip, PlayIcon, getTheFile, useSave, MoreIcon, CodeSyncIcon, Logo, PagesIcon, WidgetIcon, SeoIcon, TextIcon, HeadingIcon, StarIcon, ImageIcon, VideoIcon, SplineIcon, CardIcon, TableIcon, GridIcon, BoxIcon, DividerIcon, SpacerIcon, SlotIcon, LinkIcon, BreadcrumbIcon, TabsIcon, PopoverIcon, ModalIcon, FormIcon, LeafNode, GroupNode, TreeView, DesignIcon, ResetIcon, ImportIcon, AstroIcon, AddFolderIcon, MediasIcon, LanguageIcon, SettingsMinimalisticIcon, CodeSquareIcon, DownloadIcon, UploadIcon } from "@rxdrag/rxcms-common";
20
20
  import { create as create$4 } from "zustand";
21
21
  import { Card, CardBody, Button as Button$2, CircularProgress, addToast, CardHeader, Select, SelectItem, Dropdown, DropdownTrigger, DropdownMenu as DropdownMenu$1, DropdownItem, Accordion, AccordionItem, Input, Tabs, Tab, Divider, cn, Checkbox, Chip, Skeleton, CardFooter, Image, useDisclosure, Modal as Modal$2, ModalContent as ModalContent$2, ModalHeader as ModalHeader$1, ModalBody as ModalBody$1, ModalFooter as ModalFooter$1, Tooltip, RadioGroup, Radio } from "@heroui/react";
22
22
  import { Icon as Icon$1 } from "@iconify/react";
@@ -32,7 +32,7 @@ import { DeployType, predefinedTypes, askForQuote } from "@rxdrag/code-templates
32
32
  import { useAiAgent, AiWidget, AiAgentRoot } from "@rxdrag/ai-agent";
33
33
  import { useUpsertEntityWithIndicator } from "@rxdrag/rxcms-entify-wrapper";
34
34
  import dayjs from "dayjs";
35
- import { cn as cn$1, Tabs as Tabs$1, TabsList, TabsTrigger, TabsContent, Button as Button$3, Label as Label$1, AccordionTrigger, Accordion as Accordion$1, AccordionItem as AccordionItem$1, AccordionContent, DialogHeader, DialogTitle, DialogFooter, Dialog, DialogContent } from "@rxdrag/shadcn";
35
+ import { cn as cn$1, Tabs as Tabs$1, TabsList, TabsTrigger, TabsContent, Button as Button$3, Label as Label$1, Input as Input$1, AccordionTrigger, Accordion as Accordion$1, AccordionItem as AccordionItem$1, AccordionContent, DialogHeader, DialogTitle, DialogFooter, Dialog, DialogContent } from "@rxdrag/shadcn";
36
36
  import { isObj, isStr } from "@rxdrag/shared";
37
37
  import { TextNodeName, CommentNodeName } from "@rxdrag/schema-pro";
38
38
  import gsap$2 from "gsap";
@@ -133366,7 +133366,7 @@ registerLanguage({
133366
133366
  aliases: ["FreeMarker2", "Apache FreeMarker2"],
133367
133367
  loader: () => {
133368
133368
  {
133369
- return import("./freemarker2-a3361f22.js").then((m2) => m2.TagAutoInterpolationDollar);
133369
+ return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagAutoInterpolationDollar);
133370
133370
  }
133371
133371
  }
133372
133372
  });
@@ -133375,7 +133375,7 @@ registerLanguage({
133375
133375
  aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
133376
133376
  loader: () => {
133377
133377
  {
133378
- return import("./freemarker2-a3361f22.js").then((m2) => m2.TagAngleInterpolationDollar);
133378
+ return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagAngleInterpolationDollar);
133379
133379
  }
133380
133380
  }
133381
133381
  });
@@ -133384,7 +133384,7 @@ registerLanguage({
133384
133384
  aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
133385
133385
  loader: () => {
133386
133386
  {
133387
- return import("./freemarker2-a3361f22.js").then((m2) => m2.TagBracketInterpolationDollar);
133387
+ return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagBracketInterpolationDollar);
133388
133388
  }
133389
133389
  }
133390
133390
  });
@@ -133393,7 +133393,7 @@ registerLanguage({
133393
133393
  aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
133394
133394
  loader: () => {
133395
133395
  {
133396
- return import("./freemarker2-a3361f22.js").then((m2) => m2.TagAngleInterpolationBracket);
133396
+ return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagAngleInterpolationBracket);
133397
133397
  }
133398
133398
  }
133399
133399
  });
@@ -133402,7 +133402,7 @@ registerLanguage({
133402
133402
  aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
133403
133403
  loader: () => {
133404
133404
  {
133405
- return import("./freemarker2-a3361f22.js").then((m2) => m2.TagBracketInterpolationBracket);
133405
+ return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagBracketInterpolationBracket);
133406
133406
  }
133407
133407
  }
133408
133408
  });
@@ -133411,7 +133411,7 @@ registerLanguage({
133411
133411
  aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
133412
133412
  loader: () => {
133413
133413
  {
133414
- return import("./freemarker2-a3361f22.js").then((m2) => m2.TagAutoInterpolationDollar);
133414
+ return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagAutoInterpolationDollar);
133415
133415
  }
133416
133416
  }
133417
133417
  });
@@ -133420,7 +133420,7 @@ registerLanguage({
133420
133420
  aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
133421
133421
  loader: () => {
133422
133422
  {
133423
- return import("./freemarker2-a3361f22.js").then((m2) => m2.TagAutoInterpolationBracket);
133423
+ return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagAutoInterpolationBracket);
133424
133424
  }
133425
133425
  }
133426
133426
  });
@@ -133470,7 +133470,7 @@ registerLanguage({
133470
133470
  mimetypes: ["text/x-handlebars-template"],
133471
133471
  loader: () => {
133472
133472
  {
133473
- return import("./handlebars-ce9384eb.js");
133473
+ return import("./handlebars-8734dff3.js");
133474
133474
  }
133475
133475
  }
133476
133476
  });
@@ -133503,7 +133503,7 @@ registerLanguage({
133503
133503
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
133504
133504
  loader: () => {
133505
133505
  {
133506
- return import("./html-5843f82a.js");
133506
+ return import("./html-7079f47c.js");
133507
133507
  }
133508
133508
  }
133509
133509
  });
@@ -133556,7 +133556,7 @@ registerLanguage({
133556
133556
  mimetypes: ["text/javascript"],
133557
133557
  loader: () => {
133558
133558
  {
133559
- return import("./javascript-3e608e00.js");
133559
+ return import("./javascript-f13d0738.js");
133560
133560
  }
133561
133561
  }
133562
133562
  });
@@ -133655,7 +133655,7 @@ registerLanguage({
133655
133655
  mimetypes: ["application/liquid"],
133656
133656
  loader: () => {
133657
133657
  {
133658
- return import("./liquid-5e6b3712.js");
133658
+ return import("./liquid-dae34526.js");
133659
133659
  }
133660
133660
  }
133661
133661
  });
@@ -133703,7 +133703,7 @@ registerLanguage({
133703
133703
  aliases: ["MDX", "mdx"],
133704
133704
  loader: () => {
133705
133705
  {
133706
- return import("./mdx-2b8b5991.js");
133706
+ return import("./mdx-b73e34f7.js");
133707
133707
  }
133708
133708
  }
133709
133709
  });
@@ -133962,7 +133962,7 @@ registerLanguage({
133962
133962
  firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
133963
133963
  loader: () => {
133964
133964
  {
133965
- return import("./python-03c1ab7c.js");
133965
+ return import("./python-e9a25850.js");
133966
133966
  }
133967
133967
  }
133968
133968
  });
@@ -134011,7 +134011,7 @@ registerLanguage({
134011
134011
  mimetypes: ["text/x-cshtml"],
134012
134012
  loader: () => {
134013
134013
  {
134014
- return import("./razor-edc80849.js");
134014
+ return import("./razor-e614d2cc.js");
134015
134015
  }
134016
134016
  }
134017
134017
  });
@@ -134347,7 +134347,7 @@ registerLanguage({
134347
134347
  mimetypes: ["text/typescript"],
134348
134348
  loader: () => {
134349
134349
  {
134350
- return import("./typescript-aa01607f.js");
134350
+ return import("./typescript-898ace2f.js");
134351
134351
  }
134352
134352
  }
134353
134353
  });
@@ -134431,7 +134431,7 @@ registerLanguage({
134431
134431
  mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
134432
134432
  loader: () => {
134433
134433
  {
134434
- return import("./xml-3a606e67.js");
134434
+ return import("./xml-6fbbdc9d.js");
134435
134435
  }
134436
134436
  }
134437
134437
  });
@@ -134448,7 +134448,7 @@ registerLanguage({
134448
134448
  mimetypes: ["application/x-yaml", "text/x-yaml"],
134449
134449
  loader: () => {
134450
134450
  {
134451
- return import("./yaml-8bb35932.js");
134451
+ return import("./yaml-4f60abdc.js");
134452
134452
  }
134453
134453
  }
134454
134454
  });
@@ -134572,7 +134572,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3(
134572
134572
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
134573
134573
  function getMode$3() {
134574
134574
  {
134575
- return import("./cssMode-19f0a792.js");
134575
+ return import("./cssMode-3f92f4fd.js");
134576
134576
  }
134577
134577
  }
134578
134578
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -134703,7 +134703,7 @@ monaco_editor_core_exports$2.languages.html = {
134703
134703
  };
134704
134704
  function getMode$2() {
134705
134705
  {
134706
- return import("./htmlMode-badd452c.js");
134706
+ return import("./htmlMode-730fac31.js");
134707
134707
  }
134708
134708
  }
134709
134709
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -134801,7 +134801,7 @@ var getWorker = () => getMode$1().then((mode) => mode.getWorker());
134801
134801
  monaco_editor_core_exports$1.languages.json = { jsonDefaults, getWorker };
134802
134802
  function getMode$1() {
134803
134803
  {
134804
- return import("./jsonMode-20aca4d2.js");
134804
+ return import("./jsonMode-ed6e2469.js");
134805
134805
  }
134806
134806
  }
134807
134807
  monaco_editor_core_exports$1.languages.register({
@@ -135077,7 +135077,7 @@ monaco_editor_core_exports.languages.typescript = {
135077
135077
  };
135078
135078
  function getMode() {
135079
135079
  {
135080
- return import("./tsMode-9136106b.js");
135080
+ return import("./tsMode-216c78a7.js");
135081
135081
  }
135082
135082
  }
135083
135083
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -198688,6 +198688,75 @@ function ExtraCodesTab({
198688
198688
  ] })
198689
198689
  ] });
198690
198690
  }
198691
+ function ImageSizeTab({ value, onChange }) {
198692
+ const handleSizeChange = useCallback(
198693
+ (sizeType, dimension, newValue) => {
198694
+ const numValue = parseInt(newValue) || void 0;
198695
+ const currentSize = value[sizeType] || {};
198696
+ onChange({
198697
+ ...value,
198698
+ [sizeType]: {
198699
+ ...currentSize,
198700
+ [dimension]: numValue
198701
+ }
198702
+ });
198703
+ },
198704
+ [value, onChange]
198705
+ );
198706
+ const renderSizeConfig = (sizeType, title) => {
198707
+ const currentSize = value[sizeType];
198708
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-3", children: [
198709
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { className: "text-sm font-medium", children: title }),
198710
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-2 gap-3", children: [
198711
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-1", children: [
198712
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { className: "text-xs text-muted-foreground", children: "宽度 (px)" }),
198713
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
198714
+ Input$1,
198715
+ {
198716
+ type: "number",
198717
+ placeholder: "宽度",
198718
+ value: (currentSize == null ? void 0 : currentSize.width) || "",
198719
+ onChange: (e) => handleSizeChange(sizeType, "width", e.target.value),
198720
+ min: "1",
198721
+ size: "sm"
198722
+ }
198723
+ )
198724
+ ] }),
198725
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-1", children: [
198726
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { className: "text-xs text-muted-foreground", children: "高度 (px)" }),
198727
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
198728
+ Input$1,
198729
+ {
198730
+ type: "number",
198731
+ placeholder: "高度",
198732
+ value: (currentSize == null ? void 0 : currentSize.height) || "",
198733
+ onChange: (e) => handleSizeChange(sizeType, "height", e.target.value),
198734
+ min: "1",
198735
+ size: "sm"
198736
+ }
198737
+ )
198738
+ ] })
198739
+ ] })
198740
+ ] });
198741
+ };
198742
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-6 p-6", children: [
198743
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "space-y-4", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-1 gap-4", children: [
198744
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-2 gap-6", children: [
198745
+ renderSizeConfig("product", "产品图片"),
198746
+ renderSizeConfig("productThumbnial", "产品缩略图")
198747
+ ] }),
198748
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-2 gap-6", children: [
198749
+ renderSizeConfig("post", "文章图片"),
198750
+ renderSizeConfig("postThumbnial", "文章缩略图")
198751
+ ] })
198752
+ ] }) }),
198753
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-5", children: [
198754
+ renderSizeConfig("small", "小尺寸"),
198755
+ renderSizeConfig("medium", "中尺寸"),
198756
+ renderSizeConfig("large", "大尺寸")
198757
+ ] })
198758
+ ] });
198759
+ }
198691
198760
  function StyleConfigModal(props) {
198692
198761
  var _a3, _b3, _c2, _d2, _e2, _f2, _g2, _h2, _i3;
198693
198762
  const { isOpen, onClose, ...modalProps } = props;
@@ -198696,7 +198765,11 @@ function StyleConfigModal(props) {
198696
198765
  const [imageSizes, setImageSizes] = useState({
198697
198766
  small: DEFAULT_SAMLL,
198698
198767
  medium: DEFAULT_MEDIUM,
198699
- large: DEFAULT_LARGE
198768
+ large: DEFAULT_LARGE,
198769
+ product: DEFAULT_PRODUCT_IMAGE_SIZE,
198770
+ productThumbnial: DEFAULT_PRODUCT_THUMBNAIL_IMAGE_SIZE,
198771
+ post: DEFAULT_POST_IMAGE_SIZE,
198772
+ postThumbnial: DEFAULT_POST_THUMBNAIL_IMAGE_SIZE
198700
198773
  });
198701
198774
  const [headCode, setHeadCode] = useState("");
198702
198775
  const [footCode, setFootCode] = useState("");
@@ -198716,17 +198789,21 @@ function StyleConfigModal(props) {
198716
198789
  setCssVariant((styleConfig == null ? void 0 : styleConfig.cssVariants) || "");
198717
198790
  setCss((styleConfig == null ? void 0 : styleConfig.css) || "");
198718
198791
  setImageSizes(
198719
- ((_a4 = theme == null ? void 0 : theme.settings) == null ? void 0 : _a4.imageSizes) || {
198792
+ ((_a4 = theme == null ? void 0 : theme.styleConfig) == null ? void 0 : _a4.imageSizes) || {
198720
198793
  small: DEFAULT_SAMLL,
198721
198794
  medium: DEFAULT_MEDIUM,
198722
- large: DEFAULT_LARGE
198795
+ large: DEFAULT_LARGE,
198796
+ product: DEFAULT_PRODUCT_IMAGE_SIZE,
198797
+ productThumbnial: DEFAULT_PRODUCT_THUMBNAIL_IMAGE_SIZE,
198798
+ post: DEFAULT_POST_IMAGE_SIZE,
198799
+ postThumbnial: DEFAULT_POST_THUMBNAIL_IMAGE_SIZE
198723
198800
  }
198724
198801
  );
198725
198802
  setHeadCode(((_b4 = theme == null ? void 0 : theme.styleConfig) == null ? void 0 : _b4.headCode) || "");
198726
198803
  setFootCode(((_c3 = theme == null ? void 0 : theme.styleConfig) == null ? void 0 : _c3.footCode) || "");
198727
198804
  }, [
198728
198805
  styleConfig,
198729
- (_a3 = theme == null ? void 0 : theme.settings) == null ? void 0 : _a3.imageSizes,
198806
+ (_a3 = theme == null ? void 0 : theme.styleConfig) == null ? void 0 : _a3.imageSizes,
198730
198807
  (_b3 = theme == null ? void 0 : theme.styleConfig) == null ? void 0 : _b3.headCode,
198731
198808
  (_c2 = theme == null ? void 0 : theme.styleConfig) == null ? void 0 : _c2.footCode
198732
198809
  ]);
@@ -198758,24 +198835,18 @@ function StyleConfigModal(props) {
198758
198835
  headCode,
198759
198836
  footCode
198760
198837
  }
198761
- },
198762
- settings: {
198763
- ...theme.settings,
198764
- imageSizes
198765
198838
  }
198766
198839
  });
198767
198840
  }
198768
198841
  }, [
198769
198842
  theme == null ? void 0 : theme.id,
198770
- theme == null ? void 0 : theme.settings,
198771
198843
  save,
198772
198844
  styleConfig == null ? void 0 : styleConfig.id,
198773
198845
  tailwindConfig,
198774
198846
  cssVariant,
198775
198847
  css,
198776
198848
  headCode,
198777
- footCode,
198778
- imageSizes
198849
+ footCode
198779
198850
  ]);
198780
198851
  const handleReset = useCallback(() => {
198781
198852
  var _a4, _b4, _c3, _d3, _e3, _f3;
@@ -198783,10 +198854,14 @@ function StyleConfigModal(props) {
198783
198854
  setCssVariant(((_b4 = parentTheme == null ? void 0 : parentTheme.styleConfig) == null ? void 0 : _b4.cssVariants) || "");
198784
198855
  setCss(((_c3 = parentTheme == null ? void 0 : parentTheme.styleConfig) == null ? void 0 : _c3.css) || "");
198785
198856
  setImageSizes(
198786
- ((_d3 = parentTheme == null ? void 0 : parentTheme.settings) == null ? void 0 : _d3.imageSizes) || {
198857
+ ((_d3 = parentTheme == null ? void 0 : parentTheme.styleConfig) == null ? void 0 : _d3.imageSizes) || {
198787
198858
  small: DEFAULT_SAMLL,
198788
198859
  medium: DEFAULT_MEDIUM,
198789
- large: DEFAULT_LARGE
198860
+ large: DEFAULT_LARGE,
198861
+ product: DEFAULT_PRODUCT_IMAGE_SIZE,
198862
+ productThumbnial: DEFAULT_PRODUCT_THUMBNAIL_IMAGE_SIZE,
198863
+ post: DEFAULT_POST_IMAGE_SIZE,
198864
+ postThumbnial: DEFAULT_POST_THUMBNAIL_IMAGE_SIZE
198790
198865
  }
198791
198866
  );
198792
198867
  setHeadCode(((_e3 = parentTheme == null ? void 0 : parentTheme.styleConfig) == null ? void 0 : _e3.headCode) || "");
@@ -198797,20 +198872,23 @@ function StyleConfigModal(props) {
198797
198872
  (_f2 = parentTheme == null ? void 0 : parentTheme.styleConfig) == null ? void 0 : _f2.css,
198798
198873
  (_g2 = parentTheme == null ? void 0 : parentTheme.styleConfig) == null ? void 0 : _g2.headCode,
198799
198874
  (_h2 = parentTheme == null ? void 0 : parentTheme.styleConfig) == null ? void 0 : _h2.footCode,
198800
- (_i3 = parentTheme == null ? void 0 : parentTheme.settings) == null ? void 0 : _i3.imageSizes
198875
+ (_i3 = parentTheme == null ? void 0 : parentTheme.styleConfig) == null ? void 0 : _i3.imageSizes
198801
198876
  ]);
198877
+ const handleImageSizesChange = useCallback((value) => {
198878
+ setImageSizes(value);
198879
+ }, []);
198802
198880
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { isOpen, onClose, ...modalProps, children: [
198803
198881
  /* @__PURE__ */ jsxRuntimeExports.jsx(ModalOverlay$1, {}),
198804
198882
  /* @__PURE__ */ jsxRuntimeExports.jsxs(ModalContent$1, { className: "h-[90vh] shadow-lg", width: 1200, children: [
198805
198883
  /* @__PURE__ */ jsxRuntimeExports.jsxs(ModalHeader, { className: "px-4 pr-3 h-14 ", children: [
198806
- "配置代码",
198884
+ "主题配置",
198807
198885
  /* @__PURE__ */ jsxRuntimeExports.jsx(ModalClose, {})
198808
198886
  ] }),
198809
198887
  /* @__PURE__ */ jsxRuntimeExports.jsxs(ModalBody, { className: "flex-1 p-3 border-t border-b border-divider gap-4 flex min-h-0 ", children: [
198810
198888
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-1 flex flex-col h-full min-h-0", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
198811
198889
  Tabs,
198812
198890
  {
198813
- "aria-label": "配置代码",
198891
+ "aria-label": "主题配置",
198814
198892
  variant: "underlined",
198815
198893
  classNames: {
198816
198894
  panel: "flex-1",
@@ -198856,6 +198934,13 @@ function StyleConfigModal(props) {
198856
198934
  onChange: handleCssChange
198857
198935
  }
198858
198936
  ) }) }, "css"),
198937
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Tab, { title: "图片尺寸", className: "min-h-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full overflow-y-auto", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
198938
+ ImageSizeTab,
198939
+ {
198940
+ value: imageSizes,
198941
+ onChange: handleImageSizesChange
198942
+ }
198943
+ ) }) }, "image-size"),
198859
198944
  /* @__PURE__ */ jsxRuntimeExports.jsx(Tab, { title: "附加代码", className: "min-h-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full overflow-y-auto", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
198860
198945
  ExtraCodesTab,
198861
198946
  {
@@ -199375,9 +199460,9 @@ function MoreActions$1() {
199375
199460
  DropdownItem,
199376
199461
  {
199377
199462
  showDivider: true,
199378
- startContent: /* @__PURE__ */ jsxRuntimeExports.jsx(CodeSquareIcon, { className: "size-5" }),
199463
+ startContent: /* @__PURE__ */ jsxRuntimeExports.jsx(SettingsIcon, { className: "size-5" }),
199379
199464
  onPress: onStyleConfigOpen,
199380
- children: "配置代码"
199465
+ children: "主题配置"
199381
199466
  },
199382
199467
  "theme-style"
199383
199468
  ),
@@ -204334,9 +204419,9 @@ function MoreActions() {
204334
204419
  /* @__PURE__ */ jsxRuntimeExports.jsx(
204335
204420
  DropdownItem,
204336
204421
  {
204337
- startContent: /* @__PURE__ */ jsxRuntimeExports.jsx(CodeSquareIcon, { className: "size-5" }),
204422
+ startContent: /* @__PURE__ */ jsxRuntimeExports.jsx(SettingsIcon, { className: "size-5" }),
204338
204423
  onPress: () => setStyleConfigOpen(true),
204339
- children: "配置代码"
204424
+ children: "主题配置"
204340
204425
  },
204341
204426
  "theme-style"
204342
204427
  ),
@@ -204790,4 +204875,4 @@ export {
204790
204875
  typescriptDefaults as t,
204791
204876
  useCustomizedMaterials as u
204792
204877
  };
204793
- //# sourceMappingURL=index-510b5042.js.map
204878
+ //# sourceMappingURL=index-57fb0e65.js.map