@rxdrag/website-studio 0.0.76 → 0.0.78

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 (40) hide show
  1. package/dist/astro-component/render/ModuleManager.d.ts +5 -2
  2. package/dist/astro-component/render/createDesigner.d.ts +4 -0
  3. package/dist/astro-component/render/factory.d.ts +1 -0
  4. package/dist/astro-component/render/index.d.ts +0 -2
  5. package/dist/astro-component/render/useModuleManager.d.ts +1 -1
  6. package/dist/components/InsertDrawer/SectionsPanel/NewSectionList/resources.d.ts +41 -2
  7. package/dist/{cssMode-3f92f4fd.js → cssMode-b137ae06.js} +4 -4
  8. package/dist/{cssMode-3f92f4fd.js.map → cssMode-b137ae06.js.map} +1 -1
  9. package/dist/{freemarker2-69b6ffda.js → freemarker2-b418373b.js} +4 -4
  10. package/dist/{freemarker2-69b6ffda.js.map → freemarker2-b418373b.js.map} +1 -1
  11. package/dist/{handlebars-8734dff3.js → handlebars-a6c2c4c3.js} +4 -4
  12. package/dist/{handlebars-8734dff3.js.map → handlebars-a6c2c4c3.js.map} +1 -1
  13. package/dist/{html-7079f47c.js → html-b6714726.js} +4 -4
  14. package/dist/{html-7079f47c.js.map → html-b6714726.js.map} +1 -1
  15. package/dist/{htmlMode-730fac31.js → htmlMode-eec2a329.js} +4 -4
  16. package/dist/{htmlMode-730fac31.js.map → htmlMode-eec2a329.js.map} +1 -1
  17. package/dist/{index-57fb0e65.js → index-b0c38706.js} +2410 -295
  18. package/dist/{index-57fb0e65.js.map → index-b0c38706.js.map} +1 -1
  19. package/dist/index.mjs +3 -3
  20. package/dist/{javascript-f13d0738.js → javascript-d2dc0138.js} +5 -5
  21. package/dist/{javascript-f13d0738.js.map → javascript-d2dc0138.js.map} +1 -1
  22. package/dist/{jsonMode-ed6e2469.js → jsonMode-de4e62c5.js} +4 -4
  23. package/dist/{jsonMode-ed6e2469.js.map → jsonMode-de4e62c5.js.map} +1 -1
  24. package/dist/{liquid-dae34526.js → liquid-5b672f51.js} +4 -4
  25. package/dist/{liquid-dae34526.js.map → liquid-5b672f51.js.map} +1 -1
  26. package/dist/{mdx-b73e34f7.js → mdx-9cdb8a93.js} +4 -4
  27. package/dist/{mdx-b73e34f7.js.map → mdx-9cdb8a93.js.map} +1 -1
  28. package/dist/{python-e9a25850.js → python-588cad95.js} +4 -4
  29. package/dist/{python-e9a25850.js.map → python-588cad95.js.map} +1 -1
  30. package/dist/{razor-e614d2cc.js → razor-c607db8f.js} +4 -4
  31. package/dist/{razor-e614d2cc.js.map → razor-c607db8f.js.map} +1 -1
  32. package/dist/{tsMode-216c78a7.js → tsMode-59a6dedd.js} +4 -4
  33. package/dist/{tsMode-216c78a7.js.map → tsMode-59a6dedd.js.map} +1 -1
  34. package/dist/{typescript-898ace2f.js → typescript-7d3e36b8.js} +4 -4
  35. package/dist/{typescript-898ace2f.js.map → typescript-7d3e36b8.js.map} +1 -1
  36. package/dist/{xml-6fbbdc9d.js → xml-7d116d18.js} +4 -4
  37. package/dist/{xml-6fbbdc9d.js.map → xml-7d116d18.js.map} +1 -1
  38. package/dist/{yaml-4f60abdc.js → yaml-e4b218e7.js} +4 -4
  39. package/dist/{yaml-4f60abdc.js.map → yaml-e4b218e7.js.map} +1 -1
  40. package/package.json +21 -21
@@ -10,17 +10,18 @@ import React__default, { createContext, useContext, useMemo, useState, useRef, u
10
10
  import { ThemeBranchFields, PageQueryOptions, PageFields, FrontComponentQueryOptions, FrontComponentFields, MediaQueryOptions, ComponentCategoryFields, SectionTemplateQueryOptions, SectionTemplateFields, ComponentCategoryQueryOptions, TemplateCategoryQueryOptions, TemplateCategoryFields, ThemeBranchQueryOptions, StyleConfigFields, LangFields, ThemeConfigQueryOptions, ThemeConfigFields, ThemeFields, WebsiteQueryOptions, WebsiteFields, PageAssciations, TaskQueryOptions, TaskFields, AppModule, TaskStatus, websiteToInput, TaskType, LangQueryOptions, WebsiteAssciations, ExtendFieldType, ThemeConfigAssciations, WebsiteSettingsQueryOptions, WebsiteSettingsFields, themeConfigToInputCascade, ThemeConfigEntityName, MediaType, themeConfigToInput, websiteSettingsToInput, WebsiteSettingsEntityName, WebsiteSettingsAssciations, PageEntityName, ThemeBranchEntityName, PageType, themeBranchToInputCascade, ThemeQueryOptions, ThemeCategoryFields, FrontComponentEntityName, pageToInputCascade, sectionTemplateToInput, ProductCategoryEntityName, ProductCategoryQueryOptions, ProductCategoryFields, ProductQueryOptions, ProductFields, PublishableStatus, TaskEntityName, ComponentCategoryEntityName, themeBranchToInput, frontComponentToInput, SectionTemplateEntityName, pageToInput, PageMetaQueryOptions, PageMetaFields, PageMetaAssciations, FrontComponentAssciations, componentCategoryToInput } from "@rxdrag/rxcms-models";
11
11
  import { GlobalLoading, EntityForm, SubmitButton, useListData, SearchInput, EntityPagination, useIsLoading, QueryListScope, EntitySelect, useRemoveRow, useEditRow, EntityEditModal, useSelectionsState, EntityTable, EntityListScope, NewButton, EntityRowScope, EntitySelectField, useNewRow } from "@rxdrag/rxcms-models-ui";
12
12
  import { useOneThemeBranch, usePageList, useTemplateCategoryList, useSectionTemplateList, useComponentCategoryList, useFrontComponentList, useOneThemeBranchById, useTaskList, useUpsertOneWebsite, useDeleteThemeBranchById, useUpsertOneThemeBranch, useLangList, useOneWebsiteSettings, useOneThemeConfig, useUpsertOneThemeConfig, useUpsertOneWebsiteSettings, useUpsertOnePage, useUpsertOneSectionTemplate, useUpsertOneFrontComponent, useDeletePageById } from "@rxdrag/rxcms-model-hooks";
13
- import { newPageMetaOptions, useWebsite, useCurrentLangId, ComponentType, MediaSingleSelectField, FullImageSelectField, useSiteId, useCurrentLang, TitleAndSlug, TitleViewField, DescriptionViewField, RxcmsMedias, SiteRoot, usePreviewUrl, LangSelect } from "@rxdrag/biz-components";
13
+ import { newPageMetaOptions, useWebsite, useCurrentLang, useCurrentLangId, ComponentType, MediaSingleSelectField, FullImageSelectField, useSiteId, TitleAndSlug, TitleViewField, DescriptionViewField, RxcmsMedias, SiteRoot, usePreviewUrl, LangSelect } from "@rxdrag/biz-components";
14
14
  import { compileAstroToReact, transformSchemaToCode, extractVariables, isExpression, parseExpressionValue, convertHtmlAttrToJsxAttr, compileCode, AsyncFunction, transformCodeToSchema } from "@rxdrag/astro-compiler";
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, 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";
18
+ import { Icon, Entify, 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 gsap$2 from "gsap";
20
+ import { useCreateEntityClient, useLazyQueryOneEntity, emitEntityChange, useEntifyEndpoint, useEntifyToken } from "@rxdrag/entify-hooks";
21
+ 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, CarouselIcon, PopoverIcon, ModalIcon, FormIcon, LeafNode, GroupNode, TreeView, DesignIcon, ResetIcon, ImportIcon, AstroIcon, AddFolderIcon, MediasIcon, LanguageIcon, SettingsMinimalisticIcon, CodeSquareIcon, DownloadIcon, UploadIcon } from "@rxdrag/rxcms-common";
20
22
  import { create as create$4 } from "zustand";
21
23
  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
24
  import { Icon as Icon$1 } from "@iconify/react";
23
- import { useLazyQueryOneEntity, emitEntityChange, useEntifyEndpoint, useEntifyToken, useCreateEntityClient } from "@rxdrag/entify-hooks";
24
25
  import { useTranslateTheme, TaskManager, useSubscribeTaskEvents, useTranslateBuiltinPage, useTranslateCustomizedPages, useTranlateComponents, useUploadDeploymentFile, WebsiteAddonContext } from "@rxdrag/website-addon";
25
26
  import { InputField, TextareaField, toField, ColorField, SwitchField, SelectField, PasswordField, Form, CheckboxField } from "@rxdrag/fieldy-heroui";
26
27
  import { ObjectField, useFormValue, useForm } from "@rxdrag/react-fieldy-pro";
@@ -35,7 +36,6 @@ import dayjs from "dayjs";
35
36
  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
37
  import { isObj, isStr } from "@rxdrag/shared";
37
38
  import { TextNodeName, CommentNodeName } from "@rxdrag/schema-pro";
38
- import gsap$2 from "gsap";
39
39
  import { emit, EVENT_ENTITY_POSTED } from "@rxdrag/entify-lib";
40
40
  import JSZip from "jszip";
41
41
  import { useExportWebsite, useGenerateWebsiteFiles, traverseFiles as traverseFiles$1 } from "@rxdrag/code-generator";
@@ -703,7 +703,10 @@ function newComponentCategoryQueryOptions(themeId) {
703
703
  },
704
704
  orderBy: [
705
705
  {
706
- [ComponentCategoryFields.seqValue]: "asc"
706
+ [ComponentCategoryFields.title]: "asc"
707
+ },
708
+ {
709
+ [ComponentCategoryFields.name]: "asc"
707
710
  },
708
711
  {
709
712
  [ComponentCategoryFields.updatedAt]: "asc"
@@ -717,20 +720,23 @@ function StudioRoot(props) {
717
720
  const { theme, children, rootPath, navigate } = props;
718
721
  const website = useWebsite();
719
722
  const { data: baseLangThemeData, isLoading: baseLangThemeLoading } = useOneThemeBranch(
720
- new ThemeBranchQueryOptions([ThemeBranchFields.id, ThemeBranchFields.parentThemeId], {
721
- where: {
722
- website: {
723
- id: {
724
- _eq: website == null ? void 0 : website.id
725
- }
726
- },
727
- lang: {
728
- id: {
729
- _eq: (_a3 = website == null ? void 0 : website.baseLang) == null ? void 0 : _a3.id
723
+ new ThemeBranchQueryOptions(
724
+ [ThemeBranchFields.id, ThemeBranchFields.parentThemeId],
725
+ {
726
+ where: {
727
+ website: {
728
+ id: {
729
+ _eq: website == null ? void 0 : website.id
730
+ }
731
+ },
732
+ lang: {
733
+ id: {
734
+ _eq: (_a3 = website == null ? void 0 : website.baseLang) == null ? void 0 : _a3.id
735
+ }
730
736
  }
731
737
  }
732
738
  }
733
- }).setNoQuery(!(website == null ? void 0 : website.id) || !((_b3 = website == null ? void 0 : website.baseLang) == null ? void 0 : _b3.id))
739
+ ).setNoQuery(!(website == null ? void 0 : website.id) || !((_b3 = website == null ? void 0 : website.baseLang) == null ? void 0 : _b3.id))
734
740
  );
735
741
  const { data: pagesData, isLoading: pagesLoading } = usePageList(
736
742
  new PageQueryOptions(
@@ -753,7 +759,10 @@ function StudioRoot(props) {
753
759
  },
754
760
  orderBy: [
755
761
  {
756
- createdAt: "desc"
762
+ [PageFields.title]: "asc"
763
+ },
764
+ {
765
+ [PageFields.slug]: "asc"
757
766
  }
758
767
  ]
759
768
  }
@@ -821,7 +830,10 @@ function StudioRoot(props) {
821
830
  },
822
831
  orderBy: [
823
832
  {
824
- [FrontComponentFields.seqValue]: "asc"
833
+ [FrontComponentFields.title]: "asc"
834
+ },
835
+ {
836
+ [FrontComponentFields.name]: "asc"
825
837
  },
826
838
  {
827
839
  [FrontComponentFields.createdAt]: "asc"
@@ -909,6 +921,43 @@ function StudioRoot(props) {
909
921
  ] });
910
922
  }
911
923
  const createAstroRuntime = () => {
924
+ const AsyncRender = ({ promise }) => {
925
+ const [node, setNode] = React__default.useState(null);
926
+ React__default.useEffect(() => {
927
+ let mounted = true;
928
+ Promise.resolve(promise).then((res) => {
929
+ if (!mounted)
930
+ return;
931
+ if (React__default.isValidElement(res)) {
932
+ setNode(res);
933
+ } else if (res === null || res === void 0) {
934
+ setNode(React__default.createElement(React__default.Fragment));
935
+ } else if (typeof res === "string") {
936
+ setNode(
937
+ React__default.createElement("div", {
938
+ style: { display: "contents" },
939
+ dangerouslySetInnerHTML: { __html: res }
940
+ })
941
+ );
942
+ } else {
943
+ setNode(
944
+ React__default.createElement("div", {
945
+ style: { display: "contents" },
946
+ dangerouslySetInnerHTML: { __html: String(res) }
947
+ })
948
+ );
949
+ }
950
+ }).catch(() => {
951
+ if (!mounted)
952
+ return;
953
+ setNode(React__default.createElement(React__default.Fragment));
954
+ });
955
+ return () => {
956
+ mounted = false;
957
+ };
958
+ }, [promise]);
959
+ return node || React__default.createElement(React__default.Fragment);
960
+ };
912
961
  const astroRuntime = {
913
962
  // 创建元数据
914
963
  createMetadata: (fileURL, metadata) => {
@@ -955,6 +1004,12 @@ const createAstroRuntime = () => {
955
1004
  if (React__default.isValidElement(renderResult)) {
956
1005
  return renderResult;
957
1006
  }
1007
+ if (renderResult) {
1008
+ const maybePromise = renderResult;
1009
+ if (typeof maybePromise.then === "function") {
1010
+ return React__default.createElement(AsyncRender, { promise: renderResult });
1011
+ }
1012
+ }
958
1013
  console.warn("Render result is not a React element:", renderResult);
959
1014
  return React__default.createElement(React__default.Fragment);
960
1015
  };
@@ -1148,6 +1203,19 @@ const createAstroRuntime = () => {
1148
1203
  }
1149
1204
  delete finalProps["class:list"];
1150
1205
  }
1206
+ if ("class" in finalProps) {
1207
+ const cls = String(finalProps["class"]).trim();
1208
+ if (cls) {
1209
+ const existed = finalProps.className ? String(finalProps.className).trim() : "";
1210
+ finalProps.className = existed ? `${existed} ${cls}` : cls;
1211
+ }
1212
+ delete finalProps["class"];
1213
+ }
1214
+ Object.keys(finalProps).forEach((key2) => {
1215
+ if (key2.includes(":") && key2 !== "class:list") {
1216
+ delete finalProps[key2];
1217
+ }
1218
+ });
1151
1219
  if (Component2 && typeof Component2 === "object" && "$$typeof" in Component2) {
1152
1220
  return React__default.createElement(
1153
1221
  Component2,
@@ -1155,17 +1223,27 @@ const createAstroRuntime = () => {
1155
1223
  );
1156
1224
  }
1157
1225
  if (typeof Component2 === "function") {
1158
- if (Component2.prototype && Component2.prototype.isReactComponent) {
1159
- return React__default.createElement(
1160
- Component2,
1161
- finalProps
1162
- );
1163
- }
1164
- const output = Component2(finalProps);
1165
- if (React__default.isValidElement(output)) {
1166
- return output;
1167
- }
1168
- return output;
1226
+ const Wrapped = (p2) => {
1227
+ const out = Component2(p2);
1228
+ if (React__default.isValidElement(out))
1229
+ return out;
1230
+ if (out) {
1231
+ const maybePromise = out;
1232
+ if (typeof maybePromise.then === "function") {
1233
+ return React__default.createElement(AsyncRender, { promise: out });
1234
+ }
1235
+ }
1236
+ if (out === null || out === void 0)
1237
+ return React__default.createElement(React__default.Fragment);
1238
+ if (typeof out === "string") {
1239
+ return React__default.createElement("div", {
1240
+ style: { display: "contents" },
1241
+ dangerouslySetInnerHTML: { __html: out }
1242
+ });
1243
+ }
1244
+ return React__default.createElement(React__default.Fragment);
1245
+ };
1246
+ return React__default.createElement(Wrapped, finalProps);
1169
1247
  }
1170
1248
  return Component2;
1171
1249
  },
@@ -1195,24 +1273,31 @@ const createAstroRuntime = () => {
1195
1273
  if (key2.includes(":")) {
1196
1274
  if (key2 === "class:list") {
1197
1275
  const toClassString = (v2) => {
1198
- if (!v2)
1199
- return "";
1200
- if (typeof v2 === "string")
1201
- return v2;
1202
- if (Array.isArray(v2)) {
1203
- return v2.flatMap(
1204
- (item) => Array.isArray(item) ? item : [item]
1205
- ).filter(Boolean).map((it) => String(it)).join(" ");
1206
- }
1207
- if (typeof v2 === "object") {
1208
- const classes = [];
1209
- for (const [k2, val] of Object.entries(v2)) {
1210
- if (val)
1211
- classes.push(k2);
1276
+ const acc = [];
1277
+ const walk2 = (val) => {
1278
+ if (!val)
1279
+ return;
1280
+ if (typeof val === "string" || typeof val === "number") {
1281
+ const s = String(val).trim();
1282
+ if (s)
1283
+ acc.push(s);
1284
+ return;
1212
1285
  }
1213
- return classes.join(" ");
1214
- }
1215
- return String(v2);
1286
+ if (Array.isArray(val)) {
1287
+ for (const item of val)
1288
+ walk2(item);
1289
+ return;
1290
+ }
1291
+ if (typeof val === "object") {
1292
+ for (const [k2, truth] of Object.entries(val)) {
1293
+ if (truth)
1294
+ acc.push(k2);
1295
+ }
1296
+ return;
1297
+ }
1298
+ };
1299
+ walk2(v2);
1300
+ return acc.join(" ");
1216
1301
  };
1217
1302
  const cls = toClassString(value).replace(/\s*,\s*/g, " ").trim();
1218
1303
  return cls ? ` class="${cls.replace(/"/g, """)}"` : "";
@@ -1291,6 +1376,9 @@ function codeToReact(compiledCode, moduleMgr) {
1291
1376
  if (module2) {
1292
1377
  return module2;
1293
1378
  }
1379
+ if (moduleName.includes("?astro&type=style") || moduleName.endsWith(".css")) {
1380
+ return {};
1381
+ }
1294
1382
  throw new Error(
1295
1383
  `模块未找到: "${moduleName}"
1296
1384
  请确保:
@@ -1335,10 +1423,7 @@ function createAsyncComponent(component, moduleMgr) {
1335
1423
  const cached = componentCache.get(componentName);
1336
1424
  if (cached && updatedAt) {
1337
1425
  if (cached.compiledAt >= updatedAt) {
1338
- console.log(`[createAsyncComponent] 使用缓存: ${componentName} (cached: ${cached.compiledAt}, updated: ${updatedAt})`);
1339
1426
  return cached.component;
1340
- } else {
1341
- console.log(`[createAsyncComponent] 缓存过期: ${componentName} (cached: ${cached.compiledAt}, updated: ${updatedAt})`);
1342
1427
  }
1343
1428
  }
1344
1429
  return function AsyncComponentWrapper(props) {
@@ -1358,12 +1443,10 @@ function createAsyncComponent(component, moduleMgr) {
1358
1443
  let cancelled = false;
1359
1444
  setIsCompiling(true);
1360
1445
  setError(null);
1361
- console.log(`[createAsyncComponent] 开始编译: ${componentName}, updatedAt: ${updatedAt}`);
1362
1446
  compileAstroToReact(component.code).then((result) => {
1363
1447
  if (!cancelled) {
1364
1448
  setCompileResult(result);
1365
1449
  setIsCompiling(false);
1366
- console.log(`[createAsyncComponent] 编译完成: ${componentName}`);
1367
1450
  }
1368
1451
  }).catch((err) => {
1369
1452
  if (!cancelled) {
@@ -1473,7 +1556,6 @@ ${code}
1473
1556
  component: Component2,
1474
1557
  compiledAt: updatedAt
1475
1558
  });
1476
- console.log(`[createAsyncComponent] 缓存组件: ${componentName}`);
1477
1559
  }
1478
1560
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: containerRef, style: { display: "contents" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component2, { ...props }) });
1479
1561
  } catch (err) {
@@ -1490,21 +1572,23 @@ const websiteLibCore = {
1490
1572
  const websiteLib = {};
1491
1573
  const _ModuleManager = class _ModuleManager {
1492
1574
  // 私有构造函数,防止外部直接实例化
1493
- constructor() {
1575
+ constructor(rx) {
1494
1576
  __publicField(this, "components");
1495
1577
  __publicField(this, "parentTheme");
1496
1578
  __publicField(this, "websiteLib");
1497
1579
  __publicField(this, "websiteLibCore");
1580
+ __publicField(this, "lib");
1498
1581
  this.websiteLib = websiteLib;
1499
1582
  this.websiteLibCore = websiteLibCore;
1583
+ this.lib = { rx };
1500
1584
  for (const material of staticMaterials) {
1501
1585
  this.websiteLib[material.componentName] = (material == null ? void 0 : material.preview) || (material == null ? void 0 : material.designer);
1502
1586
  }
1503
1587
  }
1504
1588
  // 获取单例实例
1505
- static getInstance() {
1589
+ static getInstance(rx) {
1506
1590
  if (!_ModuleManager.instance) {
1507
- _ModuleManager.instance = new _ModuleManager();
1591
+ _ModuleManager.instance = new _ModuleManager(rx);
1508
1592
  }
1509
1593
  return _ModuleManager.instance;
1510
1594
  }
@@ -1537,6 +1621,18 @@ const _ModuleManager = class _ModuleManager {
1537
1621
  if (moduleName === "@rxdrag/website-lib") {
1538
1622
  return this.websiteLib;
1539
1623
  }
1624
+ if (moduleName === "../lib" || moduleName === "@/lib") {
1625
+ return this.lib;
1626
+ }
1627
+ if (moduleName === "../config/consts" || moduleName === "@/config/consts") {
1628
+ return { FORM_SALT: "" };
1629
+ }
1630
+ if (moduleName === "clsx") {
1631
+ return clsx$1;
1632
+ }
1633
+ if (moduleName === "gsap") {
1634
+ return gsap$2;
1635
+ }
1540
1636
  return null;
1541
1637
  }
1542
1638
  covertComToReact(com) {
@@ -1546,14 +1642,28 @@ const _ModuleManager = class _ModuleManager {
1546
1642
  __publicField(_ModuleManager, "instance");
1547
1643
  let ModuleManager = _ModuleManager;
1548
1644
  function useModuleManager() {
1645
+ var _a3;
1549
1646
  const components = useAllComponents();
1550
1647
  const parentTheme = useParentTheme();
1648
+ const lang = useCurrentLang();
1649
+ const websiteId = (_a3 = useWebsite()) == null ? void 0 : _a3.id;
1650
+ const entifyClient = useCreateEntityClient();
1651
+ const themeStyle = useThemeStyleConfig();
1551
1652
  const moduleMgr = useMemo(() => {
1552
- const ins = ModuleManager.getInstance();
1653
+ if (!entifyClient) {
1654
+ return null;
1655
+ }
1656
+ const rx = Entify.getInstance({
1657
+ websiteId,
1658
+ entifyServerUrl: entifyClient.getEndpoint(),
1659
+ entifyGuestToken: entifyClient.getToken(),
1660
+ language: lang == null ? void 0 : lang.abbr
1661
+ }, (themeStyle == null ? void 0 : themeStyle.imageSizes) || {});
1662
+ const ins = ModuleManager.getInstance(rx);
1553
1663
  ins.setComponents(components);
1554
1664
  ins.setParentTheme(parentTheme);
1555
1665
  return ins;
1556
- }, [components, parentTheme]);
1666
+ }, [components, entifyClient, lang == null ? void 0 : lang.abbr, parentTheme, themeStyle == null ? void 0 : themeStyle.imageSizes, websiteId]);
1557
1667
  return moduleMgr;
1558
1668
  }
1559
1669
  const ErrorDisplay = ({ title, message, details }) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-4 border border-red-300 bg-red-50 text-red-700 rounded", children: [
@@ -1576,7 +1686,7 @@ function AstroComponentRender(props) {
1576
1686
  const Component2 = useMemo(() => {
1577
1687
  if (!fCom)
1578
1688
  return null;
1579
- return createAsyncComponent(fCom, moduleMgr);
1689
+ return createAsyncComponent(fCom, moduleMgr || void 0);
1580
1690
  }, [fCom, moduleMgr]);
1581
1691
  if (!fCom) {
1582
1692
  return /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingDisplay, { message: "组件加载中..." });
@@ -80941,7 +81051,7 @@ class InputBox2 extends Widget$1 {
80941
81051
  return;
80942
81052
  }
80943
81053
  let div;
80944
- const layout3 = () => div.style.width = getTotalWidth(this.element) + "px";
81054
+ const layout2 = () => div.style.width = getTotalWidth(this.element) + "px";
80945
81055
  this.contextViewProvider.showContextView({
80946
81056
  getAnchor: () => this.element,
80947
81057
  anchorAlignment: 1,
@@ -80950,7 +81060,7 @@ class InputBox2 extends Widget$1 {
80950
81060
  return null;
80951
81061
  }
80952
81062
  div = append$1(container, $$a(".monaco-inputbox-container"));
80953
- layout3();
81063
+ layout2();
80954
81064
  const renderOptions = {
80955
81065
  inline: true,
80956
81066
  className: "monaco-inputbox-message"
@@ -80967,7 +81077,7 @@ class InputBox2 extends Widget$1 {
80967
81077
  onHide: () => {
80968
81078
  this.state = "closed";
80969
81079
  },
80970
- layout: layout3
81080
+ layout: layout2
80971
81081
  });
80972
81082
  let alertText;
80973
81083
  if (this.message.type === 3) {
@@ -112283,8 +112393,8 @@ class RenderData {
112283
112393
  /**
112284
112394
  * Check if the current RenderData matches accurately the new desired layout and no painting is needed.
112285
112395
  */
112286
- linesEquals(layout3) {
112287
- if (!this.scrollEquals(layout3)) {
112396
+ linesEquals(layout2) {
112397
+ if (!this.scrollEquals(layout2)) {
112288
112398
  return false;
112289
112399
  }
112290
112400
  const tmp = this._renderedLines._get();
@@ -112299,8 +112409,8 @@ class RenderData {
112299
112409
  /**
112300
112410
  * Check if the current RenderData matches the new layout's scroll position
112301
112411
  */
112302
- scrollEquals(layout3) {
112303
- return this.renderedLayout.startLineNumber === layout3.startLineNumber && this.renderedLayout.endLineNumber === layout3.endLineNumber;
112412
+ scrollEquals(layout2) {
112413
+ return this.renderedLayout.startLineNumber === layout2.startLineNumber && this.renderedLayout.endLineNumber === layout2.endLineNumber;
112304
112414
  }
112305
112415
  _get() {
112306
112416
  const tmp = this._renderedLines._get();
@@ -113069,23 +113179,23 @@ class InnerMinimap extends Disposable {
113069
113179
  } else {
113070
113180
  this._shadow.setClassName("minimap-shadow-visible");
113071
113181
  }
113072
- const layout3 = MinimapLayout.create(this._model.options, renderingCtx.viewportStartLineNumber, renderingCtx.viewportEndLineNumber, renderingCtx.viewportStartLineNumberVerticalOffset, renderingCtx.viewportHeight, renderingCtx.viewportContainsWhitespaceGaps, this._model.getLineCount(), this._model.getRealLineCount(), renderingCtx.scrollTop, renderingCtx.scrollHeight, this._lastRenderData ? this._lastRenderData.renderedLayout : null);
113073
- this._slider.setDisplay(layout3.sliderNeeded ? "block" : "none");
113074
- this._slider.setTop(layout3.sliderTop);
113075
- this._slider.setHeight(layout3.sliderHeight);
113182
+ const layout2 = MinimapLayout.create(this._model.options, renderingCtx.viewportStartLineNumber, renderingCtx.viewportEndLineNumber, renderingCtx.viewportStartLineNumberVerticalOffset, renderingCtx.viewportHeight, renderingCtx.viewportContainsWhitespaceGaps, this._model.getLineCount(), this._model.getRealLineCount(), renderingCtx.scrollTop, renderingCtx.scrollHeight, this._lastRenderData ? this._lastRenderData.renderedLayout : null);
113183
+ this._slider.setDisplay(layout2.sliderNeeded ? "block" : "none");
113184
+ this._slider.setTop(layout2.sliderTop);
113185
+ this._slider.setHeight(layout2.sliderHeight);
113076
113186
  this._sliderHorizontal.setLeft(0);
113077
113187
  this._sliderHorizontal.setWidth(this._model.options.minimapWidth);
113078
113188
  this._sliderHorizontal.setTop(0);
113079
- this._sliderHorizontal.setHeight(layout3.sliderHeight);
113080
- this.renderDecorations(layout3);
113081
- this._lastRenderData = this.renderLines(layout3);
113189
+ this._sliderHorizontal.setHeight(layout2.sliderHeight);
113190
+ this.renderDecorations(layout2);
113191
+ this._lastRenderData = this.renderLines(layout2);
113082
113192
  }
113083
- renderDecorations(layout3) {
113193
+ renderDecorations(layout2) {
113084
113194
  if (this._renderDecorations) {
113085
113195
  this._renderDecorations = false;
113086
113196
  const selections2 = this._model.getSelections();
113087
113197
  selections2.sort(Range$2.compareRangesUsingStarts);
113088
- const decorations2 = this._model.getMinimapDecorationsInViewport(layout3.startLineNumber, layout3.endLineNumber);
113198
+ const decorations2 = this._model.getMinimapDecorationsInViewport(layout2.startLineNumber, layout2.endLineNumber);
113089
113199
  decorations2.sort((a2, b) => (a2.options.zIndex || 0) - (b.options.zIndex || 0));
113090
113200
  const { canvasInnerWidth, canvasInnerHeight } = this._model.options;
113091
113201
  const minimapLineHeight = this._model.options.minimapLineHeight;
@@ -113093,16 +113203,16 @@ class InnerMinimap extends Disposable {
113093
113203
  const tabSize = this._model.getOptions().tabSize;
113094
113204
  const canvasContext = this._decorationsCanvas.domNode.getContext("2d");
113095
113205
  canvasContext.clearRect(0, 0, canvasInnerWidth, canvasInnerHeight);
113096
- const highlightedLines = new ContiguousLineMap(layout3.startLineNumber, layout3.endLineNumber, false);
113097
- this._renderSelectionLineHighlights(canvasContext, selections2, highlightedLines, layout3, minimapLineHeight);
113098
- this._renderDecorationsLineHighlights(canvasContext, decorations2, highlightedLines, layout3, minimapLineHeight);
113099
- const lineOffsetMap = new ContiguousLineMap(layout3.startLineNumber, layout3.endLineNumber, null);
113100
- this._renderSelectionsHighlights(canvasContext, selections2, lineOffsetMap, layout3, minimapLineHeight, tabSize, minimapCharWidth, canvasInnerWidth);
113101
- this._renderDecorationsHighlights(canvasContext, decorations2, lineOffsetMap, layout3, minimapLineHeight, tabSize, minimapCharWidth, canvasInnerWidth);
113102
- this._renderSectionHeaders(layout3);
113206
+ const highlightedLines = new ContiguousLineMap(layout2.startLineNumber, layout2.endLineNumber, false);
113207
+ this._renderSelectionLineHighlights(canvasContext, selections2, highlightedLines, layout2, minimapLineHeight);
113208
+ this._renderDecorationsLineHighlights(canvasContext, decorations2, highlightedLines, layout2, minimapLineHeight);
113209
+ const lineOffsetMap = new ContiguousLineMap(layout2.startLineNumber, layout2.endLineNumber, null);
113210
+ this._renderSelectionsHighlights(canvasContext, selections2, lineOffsetMap, layout2, minimapLineHeight, tabSize, minimapCharWidth, canvasInnerWidth);
113211
+ this._renderDecorationsHighlights(canvasContext, decorations2, lineOffsetMap, layout2, minimapLineHeight, tabSize, minimapCharWidth, canvasInnerWidth);
113212
+ this._renderSectionHeaders(layout2);
113103
113213
  }
113104
113214
  }
113105
- _renderSelectionLineHighlights(canvasContext, selections2, highlightedLines, layout3, minimapLineHeight) {
113215
+ _renderSelectionLineHighlights(canvasContext, selections2, highlightedLines, layout2, minimapLineHeight) {
113106
113216
  if (!this._selectionColor || this._selectionColor.isTransparent()) {
113107
113217
  return;
113108
113218
  }
@@ -113110,7 +113220,7 @@ class InnerMinimap extends Disposable {
113110
113220
  let y1 = 0;
113111
113221
  let y2 = 0;
113112
113222
  for (const selection of selections2) {
113113
- const intersection2 = layout3.intersectWithViewport(selection);
113223
+ const intersection2 = layout2.intersectWithViewport(selection);
113114
113224
  if (!intersection2) {
113115
113225
  continue;
113116
113226
  }
@@ -113118,8 +113228,8 @@ class InnerMinimap extends Disposable {
113118
113228
  for (let line = startLineNumber; line <= endLineNumber; line++) {
113119
113229
  highlightedLines.set(line, true);
113120
113230
  }
113121
- const yy1 = layout3.getYForLineNumber(startLineNumber, minimapLineHeight);
113122
- const yy2 = layout3.getYForLineNumber(endLineNumber, minimapLineHeight);
113231
+ const yy1 = layout2.getYForLineNumber(startLineNumber, minimapLineHeight);
113232
+ const yy2 = layout2.getYForLineNumber(endLineNumber, minimapLineHeight);
113123
113233
  if (y2 >= yy1) {
113124
113234
  y2 = yy2;
113125
113235
  } else {
@@ -113134,7 +113244,7 @@ class InnerMinimap extends Disposable {
113134
113244
  canvasContext.fillRect(MINIMAP_GUTTER_WIDTH, y1, canvasContext.canvas.width, y2 - y1);
113135
113245
  }
113136
113246
  }
113137
- _renderDecorationsLineHighlights(canvasContext, decorations2, highlightedLines, layout3, minimapLineHeight) {
113247
+ _renderDecorationsLineHighlights(canvasContext, decorations2, highlightedLines, layout2, minimapLineHeight) {
113138
113248
  const highlightColors = /* @__PURE__ */ new Map();
113139
113249
  for (let i2 = decorations2.length - 1; i2 >= 0; i2--) {
113140
113250
  const decoration2 = decorations2[i2];
@@ -113142,7 +113252,7 @@ class InnerMinimap extends Disposable {
113142
113252
  if (!minimapOptions || minimapOptions.position !== 1) {
113143
113253
  continue;
113144
113254
  }
113145
- const intersection2 = layout3.intersectWithViewport(decoration2.range);
113255
+ const intersection2 = layout2.intersectWithViewport(decoration2.range);
113146
113256
  if (!intersection2) {
113147
113257
  continue;
113148
113258
  }
@@ -113162,33 +113272,33 @@ class InnerMinimap extends Disposable {
113162
113272
  continue;
113163
113273
  }
113164
113274
  highlightedLines.set(line, true);
113165
- const y2 = layout3.getYForLineNumber(startLineNumber, minimapLineHeight);
113275
+ const y2 = layout2.getYForLineNumber(startLineNumber, minimapLineHeight);
113166
113276
  canvasContext.fillRect(MINIMAP_GUTTER_WIDTH, y2, canvasContext.canvas.width, minimapLineHeight);
113167
113277
  }
113168
113278
  }
113169
113279
  }
113170
- _renderSelectionsHighlights(canvasContext, selections2, lineOffsetMap, layout3, lineHeight, tabSize, characterWidth, canvasInnerWidth) {
113280
+ _renderSelectionsHighlights(canvasContext, selections2, lineOffsetMap, layout2, lineHeight, tabSize, characterWidth, canvasInnerWidth) {
113171
113281
  if (!this._selectionColor || this._selectionColor.isTransparent()) {
113172
113282
  return;
113173
113283
  }
113174
113284
  for (const selection of selections2) {
113175
- const intersection2 = layout3.intersectWithViewport(selection);
113285
+ const intersection2 = layout2.intersectWithViewport(selection);
113176
113286
  if (!intersection2) {
113177
113287
  continue;
113178
113288
  }
113179
113289
  const [startLineNumber, endLineNumber] = intersection2;
113180
113290
  for (let line = startLineNumber; line <= endLineNumber; line++) {
113181
- this.renderDecorationOnLine(canvasContext, lineOffsetMap, selection, this._selectionColor, layout3, line, lineHeight, lineHeight, tabSize, characterWidth, canvasInnerWidth);
113291
+ this.renderDecorationOnLine(canvasContext, lineOffsetMap, selection, this._selectionColor, layout2, line, lineHeight, lineHeight, tabSize, characterWidth, canvasInnerWidth);
113182
113292
  }
113183
113293
  }
113184
113294
  }
113185
- _renderDecorationsHighlights(canvasContext, decorations2, lineOffsetMap, layout3, minimapLineHeight, tabSize, characterWidth, canvasInnerWidth) {
113295
+ _renderDecorationsHighlights(canvasContext, decorations2, lineOffsetMap, layout2, minimapLineHeight, tabSize, characterWidth, canvasInnerWidth) {
113186
113296
  for (const decoration2 of decorations2) {
113187
113297
  const minimapOptions = decoration2.options.minimap;
113188
113298
  if (!minimapOptions) {
113189
113299
  continue;
113190
113300
  }
113191
- const intersection2 = layout3.intersectWithViewport(decoration2.range);
113301
+ const intersection2 = layout2.intersectWithViewport(decoration2.range);
113192
113302
  if (!intersection2) {
113193
113303
  continue;
113194
113304
  }
@@ -113200,10 +113310,10 @@ class InnerMinimap extends Disposable {
113200
113310
  for (let line = startLineNumber; line <= endLineNumber; line++) {
113201
113311
  switch (minimapOptions.position) {
113202
113312
  case 1:
113203
- this.renderDecorationOnLine(canvasContext, lineOffsetMap, decoration2.range, decorationColor, layout3, line, minimapLineHeight, minimapLineHeight, tabSize, characterWidth, canvasInnerWidth);
113313
+ this.renderDecorationOnLine(canvasContext, lineOffsetMap, decoration2.range, decorationColor, layout2, line, minimapLineHeight, minimapLineHeight, tabSize, characterWidth, canvasInnerWidth);
113204
113314
  continue;
113205
113315
  case 2: {
113206
- const y2 = layout3.getYForLineNumber(line, minimapLineHeight);
113316
+ const y2 = layout2.getYForLineNumber(line, minimapLineHeight);
113207
113317
  const x2 = 2;
113208
113318
  this.renderDecoration(canvasContext, decorationColor, x2, y2, GUTTER_DECORATION_WIDTH, minimapLineHeight);
113209
113319
  continue;
@@ -113212,8 +113322,8 @@ class InnerMinimap extends Disposable {
113212
113322
  }
113213
113323
  }
113214
113324
  }
113215
- renderDecorationOnLine(canvasContext, lineOffsetMap, decorationRange, decorationColor, layout3, lineNumber, height, minimapLineHeight, tabSize, charWidth, canvasInnerWidth) {
113216
- const y2 = layout3.getYForLineNumber(lineNumber, minimapLineHeight);
113325
+ renderDecorationOnLine(canvasContext, lineOffsetMap, decorationRange, decorationColor, layout2, lineNumber, height, minimapLineHeight, tabSize, charWidth, canvasInnerWidth) {
113326
+ const y2 = layout2.getYForLineNumber(lineNumber, minimapLineHeight);
113217
113327
  if (y2 + height < 0 || y2 > this._model.options.canvasInnerHeight) {
113218
113328
  return;
113219
113329
  }
@@ -113259,7 +113369,7 @@ class InnerMinimap extends Disposable {
113259
113369
  canvasContext.fillStyle = decorationColor && decorationColor.toString() || "";
113260
113370
  canvasContext.fillRect(x2, y2, width2, height);
113261
113371
  }
113262
- _renderSectionHeaders(layout3) {
113372
+ _renderSectionHeaders(layout2) {
113263
113373
  var _a3;
113264
113374
  const minimapLineHeight = this._model.options.minimapLineHeight;
113265
113375
  const sectionHeaderFontSize = this._model.options.sectionHeaderFontSize;
@@ -113276,11 +113386,11 @@ class InnerMinimap extends Disposable {
113276
113386
  canvasContext.font = "500 " + sectionHeaderFontSize + "px " + this._model.options.sectionHeaderFontFamily;
113277
113387
  canvasContext.strokeStyle = separatorStroke;
113278
113388
  canvasContext.lineWidth = 0.2;
113279
- const decorations2 = this._model.getSectionHeaderDecorationsInViewport(layout3.startLineNumber, layout3.endLineNumber);
113389
+ const decorations2 = this._model.getSectionHeaderDecorationsInViewport(layout2.startLineNumber, layout2.endLineNumber);
113280
113390
  decorations2.sort((a2, b) => a2.range.startLineNumber - b.range.startLineNumber);
113281
113391
  const fitWidth = InnerMinimap._fitSectionHeader.bind(null, canvasContext, canvasInnerWidth - MINIMAP_GUTTER_WIDTH);
113282
113392
  for (const decoration2 of decorations2) {
113283
- const y2 = layout3.getYForLineNumber(decoration2.range.startLineNumber, minimapLineHeight) + sectionHeaderFontSize;
113393
+ const y2 = layout2.getYForLineNumber(decoration2.range.startLineNumber, minimapLineHeight) + sectionHeaderFontSize;
113284
113394
  const backgroundFillY = y2 - sectionHeaderFontSize;
113285
113395
  const separatorY = backgroundFillY + 2;
113286
113396
  const headerText = this._model.getSectionHeaderText(decoration2, fitWidth);
@@ -113321,19 +113431,19 @@ class InnerMinimap extends Disposable {
113321
113431
  target.stroke();
113322
113432
  }
113323
113433
  }
113324
- renderLines(layout3) {
113325
- const startLineNumber = layout3.startLineNumber;
113326
- const endLineNumber = layout3.endLineNumber;
113434
+ renderLines(layout2) {
113435
+ const startLineNumber = layout2.startLineNumber;
113436
+ const endLineNumber = layout2.endLineNumber;
113327
113437
  const minimapLineHeight = this._model.options.minimapLineHeight;
113328
- if (this._lastRenderData && this._lastRenderData.linesEquals(layout3)) {
113438
+ if (this._lastRenderData && this._lastRenderData.linesEquals(layout2)) {
113329
113439
  const _lastData = this._lastRenderData._get();
113330
- return new RenderData(layout3, _lastData.imageData, _lastData.lines);
113440
+ return new RenderData(layout2, _lastData.imageData, _lastData.lines);
113331
113441
  }
113332
113442
  const imageData = this._getBuffer();
113333
113443
  if (!imageData) {
113334
113444
  return null;
113335
113445
  }
113336
- const [_dirtyY1, _dirtyY2, needed] = InnerMinimap._renderUntouchedLines(imageData, layout3.topPaddingLineCount, startLineNumber, endLineNumber, minimapLineHeight, this._lastRenderData);
113446
+ const [_dirtyY1, _dirtyY2, needed] = InnerMinimap._renderUntouchedLines(imageData, layout2.topPaddingLineCount, startLineNumber, endLineNumber, minimapLineHeight, this._lastRenderData);
113337
113447
  const lineInfo = this._model.getMinimapLinesRenderingData(startLineNumber, endLineNumber, needed);
113338
113448
  const tabSize = this._model.getOptions().tabSize;
113339
113449
  const defaultBackground = this._model.options.defaultBackgroundColor;
@@ -113350,7 +113460,7 @@ class InnerMinimap extends Disposable {
113350
113460
  const innerLinePadding = minimapLineHeight > renderMinimapLineHeight ? Math.floor((minimapLineHeight - renderMinimapLineHeight) / 2) : 0;
113351
113461
  const backgroundA = background.a / 255;
113352
113462
  const renderBackground = new RGBA8(Math.round((background.r - defaultBackground.r) * backgroundA + defaultBackground.r), Math.round((background.g - defaultBackground.g) * backgroundA + defaultBackground.g), Math.round((background.b - defaultBackground.b) * backgroundA + defaultBackground.b), 255);
113353
- let dy = layout3.topPaddingLineCount * minimapLineHeight;
113463
+ let dy = layout2.topPaddingLineCount * minimapLineHeight;
113354
113464
  const renderedLines = [];
113355
113465
  for (let lineIndex = 0, lineCount = endLineNumber - startLineNumber + 1; lineIndex < lineCount; lineIndex++) {
113356
113466
  if (needed[lineIndex]) {
@@ -113364,7 +113474,7 @@ class InnerMinimap extends Disposable {
113364
113474
  const dirtyHeight = dirtyY2 - dirtyY1;
113365
113475
  const ctx = this._canvas.domNode.getContext("2d");
113366
113476
  ctx.putImageData(imageData, 0, 0, 0, dirtyY1, imageData.width, dirtyHeight);
113367
- return new RenderData(layout3, imageData, renderedLines);
113477
+ return new RenderData(layout2, imageData, renderedLines);
113368
113478
  }
113369
113479
  static _renderUntouchedLines(target, topPaddingLineCount, startLineNumber, endLineNumber, minimapLineHeight, lastRenderData) {
113370
113480
  const needed = [];
@@ -127273,14 +127383,14 @@ const _MovedBlocksLinesFeature = class _MovedBlocksLinesFeature extends Disposab
127273
127383
  return { range: new OffsetRange(top, bottom), from, to, fromWithoutScroll: start, toWithoutScroll: end, move };
127274
127384
  });
127275
127385
  lines.sort(tieBreakComparators(compareBy((l2) => l2.fromWithoutScroll > l2.toWithoutScroll, booleanComparator), compareBy((l2) => l2.fromWithoutScroll > l2.toWithoutScroll ? l2.fromWithoutScroll : -l2.toWithoutScroll, numberComparator)));
127276
- const layout3 = LinesLayout.compute(lines.map((l2) => l2.range));
127386
+ const layout2 = LinesLayout.compute(lines.map((l2) => l2.range));
127277
127387
  const padding = 10;
127278
127388
  const lineAreaLeft = infoOrig.verticalScrollbarWidth;
127279
- const lineAreaWidth = (layout3.getTrackCount() - 1) * 10 + padding * 2;
127389
+ const lineAreaWidth = (layout2.getTrackCount() - 1) * 10 + padding * 2;
127280
127390
  const width2 = lineAreaLeft + lineAreaWidth + (infoMod.contentLeft - _MovedBlocksLinesFeature.movedCodeBlockPadding);
127281
127391
  let idx = 0;
127282
127392
  for (const line of lines) {
127283
- const track = layout3.getTrack(idx);
127393
+ const track = layout2.getTrack(idx);
127284
127394
  const verticalY = lineAreaLeft + padding + track * 10;
127285
127395
  const arrowHeight = 15;
127286
127396
  const arrowWidth = 15;
@@ -133366,7 +133476,7 @@ registerLanguage({
133366
133476
  aliases: ["FreeMarker2", "Apache FreeMarker2"],
133367
133477
  loader: () => {
133368
133478
  {
133369
- return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagAutoInterpolationDollar);
133479
+ return import("./freemarker2-b418373b.js").then((m2) => m2.TagAutoInterpolationDollar);
133370
133480
  }
133371
133481
  }
133372
133482
  });
@@ -133375,7 +133485,7 @@ registerLanguage({
133375
133485
  aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
133376
133486
  loader: () => {
133377
133487
  {
133378
- return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagAngleInterpolationDollar);
133488
+ return import("./freemarker2-b418373b.js").then((m2) => m2.TagAngleInterpolationDollar);
133379
133489
  }
133380
133490
  }
133381
133491
  });
@@ -133384,7 +133494,7 @@ registerLanguage({
133384
133494
  aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
133385
133495
  loader: () => {
133386
133496
  {
133387
- return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagBracketInterpolationDollar);
133497
+ return import("./freemarker2-b418373b.js").then((m2) => m2.TagBracketInterpolationDollar);
133388
133498
  }
133389
133499
  }
133390
133500
  });
@@ -133393,7 +133503,7 @@ registerLanguage({
133393
133503
  aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
133394
133504
  loader: () => {
133395
133505
  {
133396
- return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagAngleInterpolationBracket);
133506
+ return import("./freemarker2-b418373b.js").then((m2) => m2.TagAngleInterpolationBracket);
133397
133507
  }
133398
133508
  }
133399
133509
  });
@@ -133402,7 +133512,7 @@ registerLanguage({
133402
133512
  aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
133403
133513
  loader: () => {
133404
133514
  {
133405
- return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagBracketInterpolationBracket);
133515
+ return import("./freemarker2-b418373b.js").then((m2) => m2.TagBracketInterpolationBracket);
133406
133516
  }
133407
133517
  }
133408
133518
  });
@@ -133411,7 +133521,7 @@ registerLanguage({
133411
133521
  aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
133412
133522
  loader: () => {
133413
133523
  {
133414
- return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagAutoInterpolationDollar);
133524
+ return import("./freemarker2-b418373b.js").then((m2) => m2.TagAutoInterpolationDollar);
133415
133525
  }
133416
133526
  }
133417
133527
  });
@@ -133420,7 +133530,7 @@ registerLanguage({
133420
133530
  aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
133421
133531
  loader: () => {
133422
133532
  {
133423
- return import("./freemarker2-69b6ffda.js").then((m2) => m2.TagAutoInterpolationBracket);
133533
+ return import("./freemarker2-b418373b.js").then((m2) => m2.TagAutoInterpolationBracket);
133424
133534
  }
133425
133535
  }
133426
133536
  });
@@ -133470,7 +133580,7 @@ registerLanguage({
133470
133580
  mimetypes: ["text/x-handlebars-template"],
133471
133581
  loader: () => {
133472
133582
  {
133473
- return import("./handlebars-8734dff3.js");
133583
+ return import("./handlebars-a6c2c4c3.js");
133474
133584
  }
133475
133585
  }
133476
133586
  });
@@ -133503,7 +133613,7 @@ registerLanguage({
133503
133613
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
133504
133614
  loader: () => {
133505
133615
  {
133506
- return import("./html-7079f47c.js");
133616
+ return import("./html-b6714726.js");
133507
133617
  }
133508
133618
  }
133509
133619
  });
@@ -133556,7 +133666,7 @@ registerLanguage({
133556
133666
  mimetypes: ["text/javascript"],
133557
133667
  loader: () => {
133558
133668
  {
133559
- return import("./javascript-f13d0738.js");
133669
+ return import("./javascript-d2dc0138.js");
133560
133670
  }
133561
133671
  }
133562
133672
  });
@@ -133655,7 +133765,7 @@ registerLanguage({
133655
133765
  mimetypes: ["application/liquid"],
133656
133766
  loader: () => {
133657
133767
  {
133658
- return import("./liquid-dae34526.js");
133768
+ return import("./liquid-5b672f51.js");
133659
133769
  }
133660
133770
  }
133661
133771
  });
@@ -133703,7 +133813,7 @@ registerLanguage({
133703
133813
  aliases: ["MDX", "mdx"],
133704
133814
  loader: () => {
133705
133815
  {
133706
- return import("./mdx-b73e34f7.js");
133816
+ return import("./mdx-9cdb8a93.js");
133707
133817
  }
133708
133818
  }
133709
133819
  });
@@ -133962,7 +134072,7 @@ registerLanguage({
133962
134072
  firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
133963
134073
  loader: () => {
133964
134074
  {
133965
- return import("./python-e9a25850.js");
134075
+ return import("./python-588cad95.js");
133966
134076
  }
133967
134077
  }
133968
134078
  });
@@ -134011,7 +134121,7 @@ registerLanguage({
134011
134121
  mimetypes: ["text/x-cshtml"],
134012
134122
  loader: () => {
134013
134123
  {
134014
- return import("./razor-e614d2cc.js");
134124
+ return import("./razor-c607db8f.js");
134015
134125
  }
134016
134126
  }
134017
134127
  });
@@ -134347,7 +134457,7 @@ registerLanguage({
134347
134457
  mimetypes: ["text/typescript"],
134348
134458
  loader: () => {
134349
134459
  {
134350
- return import("./typescript-898ace2f.js");
134460
+ return import("./typescript-7d3e36b8.js");
134351
134461
  }
134352
134462
  }
134353
134463
  });
@@ -134431,7 +134541,7 @@ registerLanguage({
134431
134541
  mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
134432
134542
  loader: () => {
134433
134543
  {
134434
- return import("./xml-6fbbdc9d.js");
134544
+ return import("./xml-7d116d18.js");
134435
134545
  }
134436
134546
  }
134437
134547
  });
@@ -134448,7 +134558,7 @@ registerLanguage({
134448
134558
  mimetypes: ["application/x-yaml", "text/x-yaml"],
134449
134559
  loader: () => {
134450
134560
  {
134451
- return import("./yaml-4f60abdc.js");
134561
+ return import("./yaml-e4b218e7.js");
134452
134562
  }
134453
134563
  }
134454
134564
  });
@@ -134572,7 +134682,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3(
134572
134682
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
134573
134683
  function getMode$3() {
134574
134684
  {
134575
- return import("./cssMode-3f92f4fd.js");
134685
+ return import("./cssMode-b137ae06.js");
134576
134686
  }
134577
134687
  }
134578
134688
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -134703,7 +134813,7 @@ monaco_editor_core_exports$2.languages.html = {
134703
134813
  };
134704
134814
  function getMode$2() {
134705
134815
  {
134706
- return import("./htmlMode-730fac31.js");
134816
+ return import("./htmlMode-eec2a329.js");
134707
134817
  }
134708
134818
  }
134709
134819
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -134801,7 +134911,7 @@ var getWorker = () => getMode$1().then((mode) => mode.getWorker());
134801
134911
  monaco_editor_core_exports$1.languages.json = { jsonDefaults, getWorker };
134802
134912
  function getMode$1() {
134803
134913
  {
134804
- return import("./jsonMode-ed6e2469.js");
134914
+ return import("./jsonMode-de4e62c5.js");
134805
134915
  }
134806
134916
  }
134807
134917
  monaco_editor_core_exports$1.languages.register({
@@ -135077,7 +135187,7 @@ monaco_editor_core_exports.languages.typescript = {
135077
135187
  };
135078
135188
  function getMode() {
135079
135189
  {
135080
- return import("./tsMode-216c78a7.js");
135190
+ return import("./tsMode-59a6dedd.js");
135081
135191
  }
135082
135192
  }
135083
135193
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -185856,16 +185966,18 @@ function useFrameInitialHTML(option2) {
185856
185966
  ></div>
185857
185967
  </div>`
185858
185968
  } = option2;
185969
+ const tailwindConfigCode = useMemo(() => {
185970
+ const raw2 = (styleConfig == null ? void 0 : styleConfig.tailwindConfig) || "const theme = {}";
185971
+ return raw2.replace(/^\s*export\s+/, "");
185972
+ }, [styleConfig == null ? void 0 : styleConfig.tailwindConfig]);
185859
185973
  const initialHTML = useMemo(
185860
185974
  () => `
185861
185975
  <!DOCTYPE html>
185862
185976
  <html>
185863
185977
  <head>
185864
- <script src="/tailwind.3.4.16.min.js"><\/script>
185865
- <link href="/typography.min.css" rel="stylesheet">
185866
185978
  <title>${title || "Canvas"}</title>
185867
185979
  <script>
185868
- ${(styleConfig == null ? void 0 : styleConfig.tailwindConfig) || "const theme = {}"}
185980
+ ${tailwindConfigCode}
185869
185981
  tailwind.config = {
185870
185982
  darkMode: "class",
185871
185983
  theme: theme,
@@ -185883,6 +185995,8 @@ function useFrameInitialHTML(option2) {
185883
185995
  ],
185884
185996
  }
185885
185997
  <\/script>
185998
+ <script src="/tailwind.3.4.16.min.js"><\/script>
185999
+ <link href="/typography.min.css" rel="stylesheet">
185886
186000
  <style type="text/tailwindcss">
185887
186001
  ${(styleConfig == null ? void 0 : styleConfig.cssVariants) || ""}
185888
186002
  .rx-node-margin {
@@ -186002,7 +186116,7 @@ function useFrameInitialHTML(option2) {
186002
186116
  `,
186003
186117
  [
186004
186118
  title,
186005
- styleConfig == null ? void 0 : styleConfig.tailwindConfig,
186119
+ tailwindConfigCode,
186006
186120
  styleConfig == null ? void 0 : styleConfig.cssVariants,
186007
186121
  styleConfig == null ? void 0 : styleConfig.css,
186008
186122
  headPlaceholder,
@@ -198525,6 +198639,10 @@ function PreviewContent(props) {
198525
198639
  };
198526
198640
  }, []);
198527
198641
  const scale = containerWidth ? containerWidth / 800 : 1;
198642
+ const sanitizedTailwindConfig = useMemo(() => {
198643
+ const raw2 = tailwindConfig || "const theme = {}";
198644
+ return raw2.replace(/^\s*export\s+/, "");
198645
+ }, [tailwindConfig]);
198528
198646
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
198529
198647
  "div",
198530
198648
  {
@@ -198560,7 +198678,7 @@ function PreviewContent(props) {
198560
198678
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
198561
198679
  <title>ThemeBranch Preview</title>
198562
198680
  <script>
198563
- ${tailwindConfig || "const theme = {}"}
198681
+ ${sanitizedTailwindConfig}
198564
198682
  tailwind.config = {
198565
198683
  darkMode: "class",
198566
198684
  theme: theme,
@@ -198955,10 +199073,7 @@ function StyleConfigModal(props) {
198955
199073
  ) }),
198956
199074
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-[480px] flex flex-col min-h-0 h-full bg-default-100 rounded-lg overflow-hidden", children: [
198957
199075
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "p-4 border-b border-divider flex items-center justify-between", children: [
198958
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
198959
- /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { icon: "solar:palette-bold", className: "text-primary" }),
198960
- /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-sm font-medium", children: "预览" })
198961
- ] }),
199076
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-sm font-medium", children: "预览" }) }),
198962
199077
  /* @__PURE__ */ jsxRuntimeExports.jsx(
198963
199078
  Button$2,
198964
199079
  {
@@ -199376,7 +199491,10 @@ function CodeSyncModal(props) {
199376
199491
  "代码同步链接",
199377
199492
  /* @__PURE__ */ jsxRuntimeExports.jsx(ModalClose, {})
199378
199493
  ] }),
199379
- /* @__PURE__ */ jsxRuntimeExports.jsx(ModalBody, { className: "flex-1 p-3 border-t border-b border-divider gap-4 flex min-h-0 ", children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm text-default-500 border border-divider rounded-md p-2 w-full", children: syncUrl }) }),
199494
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(ModalBody, { className: "flex-1 p-3 border-t border-b border-divider gap-4 flex flex-col min-h-0 ", children: [
199495
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "flex-1 text-sm text-default-500 border border-divider rounded-md p-2 w-full", children: syncUrl }),
199496
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-xs text-default-500", children: "每个语言,不同的代码" })
199497
+ ] }),
199380
199498
  /* @__PURE__ */ jsxRuntimeExports.jsxs(ModalFooter, { children: [
199381
199499
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button$2, { onPress: onClose, variant: "flat", children: "关闭" }),
199382
199500
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -199803,123 +199921,129 @@ function LeftBar(props) {
199803
199921
  setOpenInsertDrawer(true);
199804
199922
  onSelectDrawerType == null ? void 0 : onSelectDrawerType(null);
199805
199923
  };
199806
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Sheet, { className: `w-14 flex flex-col border-r shrink-0 relative z-50 pb-2 items-center`, children: [
199807
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 flex flex-col items-center gap-1 py-2", children: [
199808
- selectedContent && viewMode === ViewMode.Design && /* @__PURE__ */ jsxRuntimeExports.jsx(
199809
- LeftbarButtion,
199810
- {
199811
- title: "插入",
199812
- selected: openInsertDrawer,
199813
- onPress: handleOpenInsertDrawer,
199814
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(AddIcon$1, { className: "size-6" })
199815
- }
199816
- ),
199817
- /* @__PURE__ */ jsxRuntimeExports.jsx(
199818
- LeftbarButtion,
199819
- {
199820
- title: "页面",
199821
- selected: selectedDrawerType === DrawerConentType.Pages,
199822
- onPress: () => handleOpenDrawer(DrawerConentType.Pages),
199823
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(PagesIcon, { className: "size-5" })
199824
- }
199825
- ),
199826
- /* @__PURE__ */ jsxRuntimeExports.jsx(
199827
- LeftbarButtion,
199828
- {
199829
- title: titles[DrawerConentType.Components],
199830
- selected: selectedDrawerType === DrawerConentType.Components,
199831
- onPress: () => handleOpenDrawer(DrawerConentType.Components),
199832
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetIcon, { className: "size-5" })
199833
- }
199834
- ),
199835
- ((selectedContent == null ? void 0 : selectedContent.type) === ContentType.Page || (selectedContent == null ? void 0 : selectedContent.type) === ContentType.PredefinedPage) && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
199836
- /* @__PURE__ */ jsxRuntimeExports.jsx(
199837
- LeftbarButtion,
199838
- {
199839
- title: titles[DrawerConentType.SEO],
199840
- selected: selectedDrawerType === DrawerConentType.SEO,
199841
- onPress: () => handleOpenDrawer(DrawerConentType.SEO),
199842
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(SeoIcon, { className: "size-5" })
199843
- }
199844
- ),
199845
- /* @__PURE__ */ jsxRuntimeExports.jsx(
199846
- LeftbarButtion,
199847
- {
199848
- title: titles[DrawerConentType.SNS],
199849
- selected: selectedDrawerType === DrawerConentType.SNS,
199850
- onPress: () => handleOpenDrawer(DrawerConentType.SNS),
199851
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
199852
- "svg",
199924
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
199925
+ Sheet,
199926
+ {
199927
+ className: `w-14 flex flex-col border-r shrink-0 relative z-50 pb-2 items-center`,
199928
+ children: [
199929
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 flex flex-col items-center gap-1 py-2", children: [
199930
+ selectedContent && viewMode === ViewMode.Design && /* @__PURE__ */ jsxRuntimeExports.jsx(
199931
+ LeftbarButtion,
199932
+ {
199933
+ title: "插入",
199934
+ selected: openInsertDrawer,
199935
+ onPress: handleOpenInsertDrawer,
199936
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(AddIcon$1, { className: "size-6" })
199937
+ }
199938
+ ),
199939
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
199940
+ LeftbarButtion,
199941
+ {
199942
+ title: "页面",
199943
+ selected: selectedDrawerType === DrawerConentType.Pages,
199944
+ onPress: () => handleOpenDrawer(DrawerConentType.Pages),
199945
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(PagesIcon, { className: "size-5" })
199946
+ }
199947
+ ),
199948
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
199949
+ LeftbarButtion,
199950
+ {
199951
+ title: titles[DrawerConentType.Components],
199952
+ selected: selectedDrawerType === DrawerConentType.Components,
199953
+ onPress: () => handleOpenDrawer(DrawerConentType.Components),
199954
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetIcon, { className: "size-5" })
199955
+ }
199956
+ ),
199957
+ (selectedContent == null ? void 0 : selectedContent.type) === ContentType.Page && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
199958
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
199959
+ LeftbarButtion,
199853
199960
  {
199854
- xmlns: "http://www.w3.org/2000/svg",
199855
- className: "size-5",
199856
- viewBox: "0 0 24 24",
199857
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "none", stroke: "currentColor", strokeWidth: 1.5, children: [
199858
- /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M9 12a2.5 2.5 0 1 1-5 0a2.5 2.5 0 0 1 5 0Z" }),
199859
- /* @__PURE__ */ jsxRuntimeExports.jsx(
199860
- "path",
199861
- {
199862
- strokeLinecap: "round",
199863
- d: "M14 6.5L9 10m5 7.5L9 14"
199864
- }
199865
- ),
199866
- /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19 18.5a2.5 2.5 0 1 1-5 0a2.5 2.5 0 0 1 5 0Zm0-13a2.5 2.5 0 1 1-5 0a2.5 2.5 0 0 1 5 0Z" })
199867
- ] })
199961
+ title: titles[DrawerConentType.SEO],
199962
+ selected: selectedDrawerType === DrawerConentType.SEO,
199963
+ onPress: () => handleOpenDrawer(DrawerConentType.SEO),
199964
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(SeoIcon, { className: "size-5" })
199868
199965
  }
199869
- )
199870
- }
199871
- )
199872
- ] }),
199873
- (selectedContent == null ? void 0 : selectedContent.type) === ContentType.Component && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
199874
- /* @__PURE__ */ jsxRuntimeExports.jsx(
199875
- LeftbarButtion,
199876
- {
199877
- title: titles[DrawerConentType.ComponentSchema],
199878
- selected: selectedDrawerType === DrawerConentType.ComponentSchema,
199879
- onPress: () => handleOpenDrawer(DrawerConentType.ComponentSchema),
199880
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
199881
- "svg",
199966
+ ),
199967
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
199968
+ LeftbarButtion,
199882
199969
  {
199883
- xmlns: "http://www.w3.org/2000/svg",
199884
- className: "size-5",
199885
- viewBox: "0 0 24 24",
199886
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd", children: [
199887
- /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 8.25a3.75 3.75 0 1 0 0 7.5a3.75 3.75 0 0 0 0-7.5M9.75 12a2.25 2.25 0 1 1 4.5 0a2.25 2.25 0 0 1-4.5 0" }),
199888
- /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 1.25c-.705 0-1.348.194-2.051.52c-.68.317-1.469.783-2.454 1.367l-.754.446c-.986.584-1.773 1.05-2.38 1.496c-.628.462-1.11.934-1.458 1.553s-.505 1.279-.58 2.063c-.073.76-.073 1.691-.073 2.861v.888c0 1.17 0 2.1.073 2.86c.075.785.232 1.446.58 2.064c.349.619.83 1.091 1.458 1.553c.607.446 1.394.912 2.38 1.496l.754.446c.985.584 1.773 1.05 2.454 1.367c.703.326 1.346.52 2.051.52s1.348-.194 2.051-.52c.68-.317 1.469-.783 2.454-1.367l.754-.446c.986-.584 1.773-1.05 2.38-1.496c.628-.462 1.11-.934 1.458-1.553s.505-1.279.58-2.063c.073-.76.073-1.691.073-2.86v-.889c0-1.17 0-2.1-.073-2.86c-.075-.785-.232-1.446-.58-2.064c-.349-.619-.83-1.091-1.458-1.553c-.607-.446-1.394-.912-2.38-1.496l-.754-.446c-.985-.584-1.773-1.05-2.454-1.367c-.703-.326-1.346-.52-2.051-.52M8.225 4.447c1.027-.608 1.751-1.035 2.356-1.316c.59-.274 1.01-.381 1.419-.381s.83.107 1.42.38c.604.282 1.328.71 2.355 1.317l.686.407c1.027.608 1.75 1.037 2.29 1.434c.526.387.83.71 1.038 1.08c.21.371.33.806.395 1.47c.065.68.066 1.54.066 2.756v.812c0 1.216 0 2.075-.066 2.755c-.064.665-.185 1.1-.395 1.471c-.208.37-.512.693-1.038 1.08c-.54.397-1.263.826-2.29 1.434l-.686.407c-1.027.608-1.751 1.035-2.356 1.316c-.59.274-1.01.381-1.419.381s-.83-.107-1.42-.38c-.604-.282-1.328-.71-2.355-1.317l-.686-.407c-1.027-.608-1.75-1.037-2.29-1.434c-.526-.387-.83-.71-1.038-1.08c-.21-.371-.331-.806-.395-1.47c-.065-.68-.066-1.54-.066-2.756v-.812c0-1.216 0-2.075.066-2.755c.064-.665.185-1.1.394-1.471c.209-.37.513-.693 1.04-1.08c.54-.397 1.262-.826 2.29-1.434z" })
199889
- ] })
199970
+ title: titles[DrawerConentType.SNS],
199971
+ selected: selectedDrawerType === DrawerConentType.SNS,
199972
+ onPress: () => handleOpenDrawer(DrawerConentType.SNS),
199973
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
199974
+ "svg",
199975
+ {
199976
+ xmlns: "http://www.w3.org/2000/svg",
199977
+ className: "size-5",
199978
+ viewBox: "0 0 24 24",
199979
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "none", stroke: "currentColor", strokeWidth: 1.5, children: [
199980
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M9 12a2.5 2.5 0 1 1-5 0a2.5 2.5 0 0 1 5 0Z" }),
199981
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
199982
+ "path",
199983
+ {
199984
+ strokeLinecap: "round",
199985
+ d: "M14 6.5L9 10m5 7.5L9 14"
199986
+ }
199987
+ ),
199988
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19 18.5a2.5 2.5 0 1 1-5 0a2.5 2.5 0 0 1 5 0Zm0-13a2.5 2.5 0 1 1-5 0a2.5 2.5 0 0 1 5 0Z" })
199989
+ ] })
199990
+ }
199991
+ )
199890
199992
  }
199891
199993
  )
199892
- }
199893
- ),
199894
- /* @__PURE__ */ jsxRuntimeExports.jsx(
199895
- LeftbarButtion,
199896
- {
199897
- title: titles[DrawerConentType.ComponentTest],
199898
- selected: selectedDrawerType === DrawerConentType.ComponentTest,
199899
- onPress: () => handleOpenDrawer(DrawerConentType.ComponentTest),
199900
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
199901
- "svg",
199994
+ ] }),
199995
+ (selectedContent == null ? void 0 : selectedContent.type) === ContentType.Component && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
199996
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
199997
+ LeftbarButtion,
199902
199998
  {
199903
- xmlns: "http://www.w3.org/2000/svg",
199904
- className: "size-5",
199905
- viewBox: "0 0 24 24",
199999
+ title: titles[DrawerConentType.ComponentSchema],
200000
+ selected: selectedDrawerType === DrawerConentType.ComponentSchema,
200001
+ onPress: () => handleOpenDrawer(DrawerConentType.ComponentSchema),
199906
200002
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
199907
- "path",
200003
+ "svg",
199908
200004
  {
199909
- fill: "currentColor",
199910
- fillRule: "evenodd",
199911
- d: "M9.295 1.354a.75.75 0 0 0-.764 1.292l.196.116L2.002 14.37a5.577 5.577 0 0 0 2.051 7.632a5.61 5.61 0 0 0 7.652-2.045l6.729-11.614l.192.11a.75.75 0 0 0 .748-1.3l-.84-.483l-8.408-4.824zM3.3 15.122l6.723-11.606l7.11 4.08l-1.505 2.597l-1.91-1.098a.75.75 0 0 0-.748 1.3l1.906 1.096l-.961 1.66l-3.555-2.045a.75.75 0 1 0-.748 1.3l3.55 2.043l-.885 1.528l-1.964-1.13a.75.75 0 0 0-.748 1.3l1.96 1.128l-1.118 1.93a4.11 4.11 0 0 1-5.606 1.496a4.077 4.077 0 0 1-1.501-5.58m17.875-3.019a1.61 1.61 0 0 0-2.35 0a9 9 0 0 0-.986 1.214c-.284.43-.589 1.008-.589 1.6c0 1.536 1.203 2.834 2.75 2.834s2.75-1.298 2.75-2.833c0-.593-.304-1.17-.589-1.601a9 9 0 0 0-.986-1.214m-1.261 1.031c.029-.03.06-.04.086-.04a.12.12 0 0 1 .087.04c.278.294.587.653.823 1.01c.253.383.34.646.34.774c0 .765-.588 1.333-1.25 1.333s-1.25-.568-1.25-1.333c0-.128.087-.39.34-.775c.236-.356.545-.715.824-1.009",
199912
- clipRule: "evenodd"
200005
+ xmlns: "http://www.w3.org/2000/svg",
200006
+ className: "size-5",
200007
+ viewBox: "0 0 24 24",
200008
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "currentColor", fillRule: "evenodd", clipRule: "evenodd", children: [
200009
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 8.25a3.75 3.75 0 1 0 0 7.5a3.75 3.75 0 0 0 0-7.5M9.75 12a2.25 2.25 0 1 1 4.5 0a2.25 2.25 0 0 1-4.5 0" }),
200010
+ /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 1.25c-.705 0-1.348.194-2.051.52c-.68.317-1.469.783-2.454 1.367l-.754.446c-.986.584-1.773 1.05-2.38 1.496c-.628.462-1.11.934-1.458 1.553s-.505 1.279-.58 2.063c-.073.76-.073 1.691-.073 2.861v.888c0 1.17 0 2.1.073 2.86c.075.785.232 1.446.58 2.064c.349.619.83 1.091 1.458 1.553c.607.446 1.394.912 2.38 1.496l.754.446c.985.584 1.773 1.05 2.454 1.367c.703.326 1.346.52 2.051.52s1.348-.194 2.051-.52c.68-.317 1.469-.783 2.454-1.367l.754-.446c.986-.584 1.773-1.05 2.38-1.496c.628-.462 1.11-.934 1.458-1.553s.505-1.279.58-2.063c.073-.76.073-1.691.073-2.86v-.889c0-1.17 0-2.1-.073-2.86c-.075-.785-.232-1.446-.58-2.064c-.349-.619-.83-1.091-1.458-1.553c-.607-.446-1.394-.912-2.38-1.496l-.754-.446c-.985-.584-1.773-1.05-2.454-1.367c-.703-.326-1.346-.52-2.051-.52M8.225 4.447c1.027-.608 1.751-1.035 2.356-1.316c.59-.274 1.01-.381 1.419-.381s.83.107 1.42.38c.604.282 1.328.71 2.355 1.317l.686.407c1.027.608 1.75 1.037 2.29 1.434c.526.387.83.71 1.038 1.08c.21.371.33.806.395 1.47c.065.68.066 1.54.066 2.756v.812c0 1.216 0 2.075-.066 2.755c-.064.665-.185 1.1-.395 1.471c-.208.37-.512.693-1.038 1.08c-.54.397-1.263.826-2.29 1.434l-.686.407c-1.027.608-1.751 1.035-2.356 1.316c-.59.274-1.01.381-1.419.381s-.83-.107-1.42-.38c-.604-.282-1.328-.71-2.355-1.317l-.686-.407c-1.027-.608-1.75-1.037-2.29-1.434c-.526-.387-.83-.71-1.038-1.08c-.21-.371-.331-.806-.395-1.47c-.065-.68-.066-1.54-.066-2.756v-.812c0-1.216 0-2.075.066-2.755c.064-.665.185-1.1.394-1.471c.209-.37.513-.693 1.04-1.08c.54-.397 1.262-.826 2.29-1.434z" })
200011
+ ] })
200012
+ }
200013
+ )
200014
+ }
200015
+ ),
200016
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
200017
+ LeftbarButtion,
200018
+ {
200019
+ title: titles[DrawerConentType.ComponentTest],
200020
+ selected: selectedDrawerType === DrawerConentType.ComponentTest,
200021
+ onPress: () => handleOpenDrawer(DrawerConentType.ComponentTest),
200022
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
200023
+ "svg",
200024
+ {
200025
+ xmlns: "http://www.w3.org/2000/svg",
200026
+ className: "size-5",
200027
+ viewBox: "0 0 24 24",
200028
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
200029
+ "path",
200030
+ {
200031
+ fill: "currentColor",
200032
+ fillRule: "evenodd",
200033
+ d: "M9.295 1.354a.75.75 0 0 0-.764 1.292l.196.116L2.002 14.37a5.577 5.577 0 0 0 2.051 7.632a5.61 5.61 0 0 0 7.652-2.045l6.729-11.614l.192.11a.75.75 0 0 0 .748-1.3l-.84-.483l-8.408-4.824zM3.3 15.122l6.723-11.606l7.11 4.08l-1.505 2.597l-1.91-1.098a.75.75 0 0 0-.748 1.3l1.906 1.096l-.961 1.66l-3.555-2.045a.75.75 0 1 0-.748 1.3l3.55 2.043l-.885 1.528l-1.964-1.13a.75.75 0 0 0-.748 1.3l1.96 1.128l-1.118 1.93a4.11 4.11 0 0 1-5.606 1.496a4.077 4.077 0 0 1-1.501-5.58m17.875-3.019a1.61 1.61 0 0 0-2.35 0a9 9 0 0 0-.986 1.214c-.284.43-.589 1.008-.589 1.6c0 1.536 1.203 2.834 2.75 2.834s2.75-1.298 2.75-2.833c0-.593-.304-1.17-.589-1.601a9 9 0 0 0-.986-1.214m-1.261 1.031c.029-.03.06-.04.086-.04a.12.12 0 0 1 .087.04c.278.294.587.653.823 1.01c.253.383.34.646.34.774c0 .765-.588 1.333-1.25 1.333s-1.25-.568-1.25-1.333c0-.128.087-.39.34-.775c.236-.356.545-.715.824-1.009",
200034
+ clipRule: "evenodd"
200035
+ }
200036
+ )
199913
200037
  }
199914
200038
  )
199915
200039
  }
199916
200040
  )
199917
- }
199918
- )
199919
- ] })
199920
- ] }),
199921
- extra
199922
- ] });
200041
+ ] })
200042
+ ] }),
200043
+ extra
200044
+ ]
200045
+ }
200046
+ );
199923
200047
  }
199924
200048
  function LeftPanel(props) {
199925
200049
  const { hidden, className, children, ...rest } = props;
@@ -200114,7 +200238,7 @@ function NewSectionList(props) {
200114
200238
  ((_a3 = category == null ? void 0 : category.resources) == null ? void 0 : _a3.length) || 0,
200115
200239
  ")"
200116
200240
  ] }),
200117
- category == null ? void 0 : category.resources.map((resource) => /* @__PURE__ */ jsxRuntimeExports.jsx(ResourceCard, { resource }, resource.name))
200241
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid grid-cols-2 gap-3", children: category == null ? void 0 : category.resources.map((resource) => /* @__PURE__ */ jsxRuntimeExports.jsx(ResourceCard, { resource }, resource.name)) })
200118
200242
  ] });
200119
200243
  }
200120
200244
  function useRegisterComponent(component) {
@@ -200265,7 +200389,14 @@ function ThemeSectionList(props) {
200265
200389
  }
200266
200390
  function GridView(props) {
200267
200391
  const { className, children } = props;
200268
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cn("grid gap-1", className || "grid-cols-12"), children });
200392
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
200393
+ "div",
200394
+ {
200395
+ className: cn("grid gap-1", className || "grid-cols-12"),
200396
+ style: { gridAutoRows: "40px" },
200397
+ children
200398
+ }
200399
+ );
200269
200400
  }
200270
200401
  function CellView(props) {
200271
200402
  const { className, children } = props;
@@ -200273,7 +200404,7 @@ function CellView(props) {
200273
200404
  "div",
200274
200405
  {
200275
200406
  className: cn(
200276
- "bg-default-200 rounded-sm h-10",
200407
+ "bg-default-200 rounded-sm h-full",
200277
200408
  "group-hover:bg-blue-500",
200278
200409
  className
200279
200410
  ),
@@ -200281,8 +200412,8 @@ function CellView(props) {
200281
200412
  }
200282
200413
  );
200283
200414
  }
200284
- const layout1 = {
200285
- name: "Layout1",
200415
+ const layout1_1 = {
200416
+ name: "Layout1_1",
200286
200417
  title: "单行区块",
200287
200418
  elements: [
200288
200419
  {
@@ -200307,9 +200438,1528 @@ const layout1 = {
200307
200438
  ],
200308
200439
  view: /* @__PURE__ */ jsxRuntimeExports.jsx(GridView, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-12" }) })
200309
200440
  };
200310
- const layout2 = {
200311
- name: "Layout2",
200312
- title: "双列区块",
200441
+ const layout1_2 = {
200442
+ name: "Layout1_2",
200443
+ title: "单行区块",
200444
+ elements: [
200445
+ {
200446
+ componentName: "Section",
200447
+ children: [
200448
+ {
200449
+ componentName: "Grid",
200450
+ props: {
200451
+ className: "grid-cols-12 gap-6"
200452
+ },
200453
+ children: [
200454
+ {
200455
+ componentName: "GridCell",
200456
+ props: {
200457
+ className: "col-span-6"
200458
+ }
200459
+ },
200460
+ {
200461
+ componentName: "GridCell",
200462
+ props: {
200463
+ className: "col-span-6"
200464
+ }
200465
+ }
200466
+ ]
200467
+ }
200468
+ ]
200469
+ }
200470
+ ],
200471
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
200472
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
200473
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
200474
+ ] })
200475
+ };
200476
+ const layout1_3 = {
200477
+ name: "Layout1_3",
200478
+ title: "单行区块",
200479
+ elements: [
200480
+ {
200481
+ componentName: "Section",
200482
+ children: [
200483
+ {
200484
+ componentName: "Grid",
200485
+ props: {
200486
+ className: "grid-cols-12 gap-6"
200487
+ },
200488
+ children: [
200489
+ {
200490
+ componentName: "GridCell",
200491
+ props: {
200492
+ className: "col-span-4"
200493
+ }
200494
+ },
200495
+ {
200496
+ componentName: "GridCell",
200497
+ props: {
200498
+ className: "col-span-8"
200499
+ }
200500
+ }
200501
+ ]
200502
+ }
200503
+ ]
200504
+ }
200505
+ ],
200506
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
200507
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
200508
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" })
200509
+ ] })
200510
+ };
200511
+ const layout1_4 = {
200512
+ name: "Layout1_4",
200513
+ title: "单行区块",
200514
+ elements: [
200515
+ {
200516
+ componentName: "Section",
200517
+ children: [
200518
+ {
200519
+ componentName: "Grid",
200520
+ props: {
200521
+ className: "grid-cols-12 gap-6"
200522
+ },
200523
+ children: [
200524
+ {
200525
+ componentName: "GridCell",
200526
+ props: {
200527
+ className: "col-span-8"
200528
+ }
200529
+ },
200530
+ {
200531
+ componentName: "GridCell",
200532
+ props: {
200533
+ className: "col-span-4"
200534
+ }
200535
+ }
200536
+ ]
200537
+ }
200538
+ ]
200539
+ }
200540
+ ],
200541
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
200542
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" }),
200543
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" })
200544
+ ] })
200545
+ };
200546
+ const layout1_5 = {
200547
+ name: "Layout1_5",
200548
+ title: "单行区块",
200549
+ elements: [
200550
+ {
200551
+ componentName: "Section",
200552
+ children: [
200553
+ {
200554
+ componentName: "Grid",
200555
+ props: {
200556
+ className: "grid-cols-12 gap-6"
200557
+ },
200558
+ children: [
200559
+ {
200560
+ componentName: "GridCell",
200561
+ props: {
200562
+ className: "col-span-4"
200563
+ }
200564
+ },
200565
+ {
200566
+ componentName: "GridCell",
200567
+ props: {
200568
+ className: "col-span-4"
200569
+ }
200570
+ },
200571
+ {
200572
+ componentName: "GridCell",
200573
+ props: {
200574
+ className: "col-span-4"
200575
+ }
200576
+ }
200577
+ ]
200578
+ }
200579
+ ]
200580
+ }
200581
+ ],
200582
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
200583
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
200584
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
200585
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" })
200586
+ ] })
200587
+ };
200588
+ const layout1_6 = {
200589
+ name: "Layout1_6",
200590
+ title: "单行区块",
200591
+ elements: [
200592
+ {
200593
+ componentName: "Section",
200594
+ children: [
200595
+ {
200596
+ componentName: "Grid",
200597
+ props: {
200598
+ className: "grid-cols-12 gap-6"
200599
+ },
200600
+ children: [
200601
+ {
200602
+ componentName: "GridCell",
200603
+ props: {
200604
+ className: "col-span-6"
200605
+ }
200606
+ },
200607
+ {
200608
+ componentName: "GridCell",
200609
+ props: {
200610
+ className: "col-span-3"
200611
+ }
200612
+ },
200613
+ {
200614
+ componentName: "GridCell",
200615
+ props: {
200616
+ className: "col-span-3"
200617
+ }
200618
+ }
200619
+ ]
200620
+ }
200621
+ ]
200622
+ }
200623
+ ],
200624
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
200625
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
200626
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
200627
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" })
200628
+ ] })
200629
+ };
200630
+ const layout1_7 = {
200631
+ name: "Layout1_7",
200632
+ title: "单行区块",
200633
+ elements: [
200634
+ {
200635
+ componentName: "Section",
200636
+ children: [
200637
+ {
200638
+ componentName: "Grid",
200639
+ props: {
200640
+ className: "grid-cols-12 gap-6"
200641
+ },
200642
+ children: [
200643
+ {
200644
+ componentName: "GridCell",
200645
+ props: {
200646
+ className: "col-span-3"
200647
+ }
200648
+ },
200649
+ {
200650
+ componentName: "GridCell",
200651
+ props: {
200652
+ className: "col-span-3"
200653
+ }
200654
+ },
200655
+ {
200656
+ componentName: "GridCell",
200657
+ props: {
200658
+ className: "col-span-6"
200659
+ }
200660
+ }
200661
+ ]
200662
+ }
200663
+ ]
200664
+ }
200665
+ ],
200666
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
200667
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
200668
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
200669
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
200670
+ ] })
200671
+ };
200672
+ const layout1_8 = {
200673
+ name: "Layout1_8",
200674
+ title: "单行区块",
200675
+ elements: [
200676
+ {
200677
+ componentName: "Section",
200678
+ children: [
200679
+ {
200680
+ componentName: "Grid",
200681
+ props: {
200682
+ className: "grid-cols-12 gap-6"
200683
+ },
200684
+ children: [
200685
+ {
200686
+ componentName: "GridCell",
200687
+ props: {
200688
+ className: "col-span-3"
200689
+ }
200690
+ },
200691
+ {
200692
+ componentName: "GridCell",
200693
+ props: {
200694
+ className: "col-span-3"
200695
+ }
200696
+ },
200697
+ {
200698
+ componentName: "GridCell",
200699
+ props: {
200700
+ className: "col-span-3"
200701
+ }
200702
+ },
200703
+ {
200704
+ componentName: "GridCell",
200705
+ props: {
200706
+ className: "col-span-3"
200707
+ }
200708
+ }
200709
+ ]
200710
+ }
200711
+ ]
200712
+ }
200713
+ ],
200714
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
200715
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
200716
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
200717
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
200718
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" })
200719
+ ] })
200720
+ };
200721
+ const layout1_9 = {
200722
+ name: "Layout1_9",
200723
+ title: "单行区块",
200724
+ elements: [
200725
+ {
200726
+ componentName: "Section",
200727
+ children: [
200728
+ {
200729
+ componentName: "Grid",
200730
+ props: {
200731
+ className: "grid-cols-10 gap-6"
200732
+ },
200733
+ children: [
200734
+ {
200735
+ componentName: "GridCell",
200736
+ props: {
200737
+ className: "col-span-2"
200738
+ }
200739
+ },
200740
+ {
200741
+ componentName: "GridCell",
200742
+ props: {
200743
+ className: "col-span-2"
200744
+ }
200745
+ },
200746
+ {
200747
+ componentName: "GridCell",
200748
+ props: {
200749
+ className: "col-span-2"
200750
+ }
200751
+ },
200752
+ {
200753
+ componentName: "GridCell",
200754
+ props: {
200755
+ className: "col-span-2"
200756
+ }
200757
+ },
200758
+ {
200759
+ componentName: "GridCell",
200760
+ props: {
200761
+ className: "col-span-2"
200762
+ }
200763
+ }
200764
+ ]
200765
+ }
200766
+ ]
200767
+ }
200768
+ ],
200769
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-10", children: [
200770
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-2" }),
200771
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-2" }),
200772
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-2" }),
200773
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-2" }),
200774
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-2" })
200775
+ ] })
200776
+ };
200777
+ const layout1_10 = {
200778
+ name: "Layout1_10",
200779
+ title: "单行区块",
200780
+ elements: [
200781
+ {
200782
+ componentName: "Section",
200783
+ children: [
200784
+ {
200785
+ componentName: "Grid",
200786
+ props: {
200787
+ className: "grid-cols-12 gap-6"
200788
+ },
200789
+ children: [
200790
+ {
200791
+ componentName: "GridCell",
200792
+ props: {
200793
+ className: "col-span-2"
200794
+ }
200795
+ },
200796
+ {
200797
+ componentName: "GridCell",
200798
+ props: {
200799
+ className: "col-span-2"
200800
+ }
200801
+ },
200802
+ {
200803
+ componentName: "GridCell",
200804
+ props: {
200805
+ className: "col-span-2"
200806
+ }
200807
+ },
200808
+ {
200809
+ componentName: "GridCell",
200810
+ props: {
200811
+ className: "col-span-2"
200812
+ }
200813
+ },
200814
+ {
200815
+ componentName: "GridCell",
200816
+ props: {
200817
+ className: "col-span-2"
200818
+ }
200819
+ },
200820
+ {
200821
+ componentName: "GridCell",
200822
+ props: {
200823
+ className: "col-span-2"
200824
+ }
200825
+ }
200826
+ ]
200827
+ }
200828
+ ]
200829
+ }
200830
+ ],
200831
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
200832
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-2" }),
200833
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-2" }),
200834
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-2" }),
200835
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-2" }),
200836
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-2" }),
200837
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-2" })
200838
+ ] })
200839
+ };
200840
+ const layout2_1 = {
200841
+ name: "Layout2_1",
200842
+ title: "两行区块",
200843
+ elements: [
200844
+ {
200845
+ componentName: "Section",
200846
+ children: [
200847
+ {
200848
+ componentName: "Grid",
200849
+ props: {
200850
+ className: "grid-cols-12 gap-6"
200851
+ },
200852
+ children: [
200853
+ {
200854
+ componentName: "GridCell",
200855
+ props: {
200856
+ className: "col-span-4 row-span-2"
200857
+ }
200858
+ },
200859
+ {
200860
+ componentName: "GridCell",
200861
+ props: {
200862
+ className: "col-span-8"
200863
+ }
200864
+ },
200865
+ {
200866
+ componentName: "GridCell",
200867
+ props: {
200868
+ className: "col-span-8"
200869
+ }
200870
+ }
200871
+ ]
200872
+ }
200873
+ ]
200874
+ }
200875
+ ],
200876
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
200877
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4 row-span-2" }),
200878
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" }),
200879
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" })
200880
+ ] })
200881
+ };
200882
+ const layout2_2 = {
200883
+ name: "Layout2_2",
200884
+ title: "两行区块",
200885
+ elements: [
200886
+ {
200887
+ componentName: "Section",
200888
+ children: [
200889
+ {
200890
+ componentName: "Grid",
200891
+ props: {
200892
+ className: "grid-cols-12 gap-6"
200893
+ },
200894
+ children: [
200895
+ {
200896
+ componentName: "GridCell",
200897
+ props: {
200898
+ className: "col-span-8"
200899
+ }
200900
+ },
200901
+ {
200902
+ componentName: "GridCell",
200903
+ props: {
200904
+ className: "col-span-4 row-span-2"
200905
+ }
200906
+ },
200907
+ {
200908
+ componentName: "GridCell",
200909
+ props: {
200910
+ className: "col-span-8"
200911
+ }
200912
+ }
200913
+ ]
200914
+ }
200915
+ ]
200916
+ }
200917
+ ],
200918
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
200919
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" }),
200920
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4 row-span-2" }),
200921
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" })
200922
+ ] })
200923
+ };
200924
+ const layout2_3 = {
200925
+ name: "Layout2_3",
200926
+ title: "两行区块",
200927
+ elements: [
200928
+ {
200929
+ componentName: "Section",
200930
+ children: [
200931
+ {
200932
+ componentName: "Grid",
200933
+ props: {
200934
+ className: "grid-cols-12 gap-6"
200935
+ },
200936
+ children: [
200937
+ {
200938
+ componentName: "GridCell",
200939
+ props: {
200940
+ className: "col-span-6 row-span-2"
200941
+ }
200942
+ },
200943
+ {
200944
+ componentName: "GridCell",
200945
+ props: {
200946
+ className: "col-span-6"
200947
+ }
200948
+ },
200949
+ {
200950
+ componentName: "GridCell",
200951
+ props: {
200952
+ className: "col-span-6"
200953
+ }
200954
+ }
200955
+ ]
200956
+ }
200957
+ ]
200958
+ }
200959
+ ],
200960
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
200961
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6 row-span-2" }),
200962
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
200963
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
200964
+ ] })
200965
+ };
200966
+ const layout2_4 = {
200967
+ name: "Layout2_4",
200968
+ title: "两行区块",
200969
+ elements: [
200970
+ {
200971
+ componentName: "Section",
200972
+ children: [
200973
+ {
200974
+ componentName: "Grid",
200975
+ props: {
200976
+ className: "grid-cols-12 gap-6"
200977
+ },
200978
+ children: [
200979
+ {
200980
+ componentName: "GridCell",
200981
+ props: {
200982
+ className: "col-span-6"
200983
+ }
200984
+ },
200985
+ {
200986
+ componentName: "GridCell",
200987
+ props: {
200988
+ className: "col-span-6 row-span-2"
200989
+ }
200990
+ },
200991
+ {
200992
+ componentName: "GridCell",
200993
+ props: {
200994
+ className: "col-span-6"
200995
+ }
200996
+ }
200997
+ ]
200998
+ }
200999
+ ]
201000
+ }
201001
+ ],
201002
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201003
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
201004
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6 row-span-2" }),
201005
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
201006
+ ] })
201007
+ };
201008
+ const layout2_5 = {
201009
+ name: "Layout2_5",
201010
+ title: "两行区块",
201011
+ elements: [
201012
+ {
201013
+ componentName: "Section",
201014
+ children: [
201015
+ {
201016
+ componentName: "Grid",
201017
+ props: {
201018
+ className: "grid-cols-12 gap-6"
201019
+ },
201020
+ children: [
201021
+ {
201022
+ componentName: "GridCell",
201023
+ props: {
201024
+ className: "col-span-3 row-span-2"
201025
+ }
201026
+ },
201027
+ {
201028
+ componentName: "GridCell",
201029
+ props: {
201030
+ className: "col-span-9"
201031
+ }
201032
+ },
201033
+ {
201034
+ componentName: "GridCell",
201035
+ props: {
201036
+ className: "col-span-9"
201037
+ }
201038
+ }
201039
+ ]
201040
+ }
201041
+ ]
201042
+ }
201043
+ ],
201044
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201045
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3 row-span-2" }),
201046
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-9" }),
201047
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-9" })
201048
+ ] })
201049
+ };
201050
+ const layout2_6 = {
201051
+ name: "Layout2_6",
201052
+ title: "两行区块",
201053
+ elements: [
201054
+ {
201055
+ componentName: "Section",
201056
+ children: [
201057
+ {
201058
+ componentName: "Grid",
201059
+ props: {
201060
+ className: "grid-cols-12 gap-6"
201061
+ },
201062
+ children: [
201063
+ {
201064
+ componentName: "GridCell",
201065
+ props: {
201066
+ className: "col-span-9"
201067
+ }
201068
+ },
201069
+ {
201070
+ componentName: "GridCell",
201071
+ props: {
201072
+ className: "col-span-3 row-span-2"
201073
+ }
201074
+ },
201075
+ {
201076
+ componentName: "GridCell",
201077
+ props: {
201078
+ className: "col-span-9"
201079
+ }
201080
+ }
201081
+ ]
201082
+ }
201083
+ ]
201084
+ }
201085
+ ],
201086
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201087
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-9" }),
201088
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3 row-span-2" }),
201089
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-9" })
201090
+ ] })
201091
+ };
201092
+ const layout2_7 = {
201093
+ name: "Layout2_7",
201094
+ title: "两行区块",
201095
+ elements: [
201096
+ {
201097
+ componentName: "Section",
201098
+ children: [
201099
+ {
201100
+ componentName: "Grid",
201101
+ props: {
201102
+ className: "grid-cols-12 gap-6"
201103
+ },
201104
+ children: [
201105
+ {
201106
+ componentName: "GridCell",
201107
+ props: {
201108
+ className: "col-span-6"
201109
+ }
201110
+ },
201111
+ {
201112
+ componentName: "GridCell",
201113
+ props: {
201114
+ className: "col-span-6"
201115
+ }
201116
+ },
201117
+ {
201118
+ componentName: "GridCell",
201119
+ props: {
201120
+ className: "col-span-12"
201121
+ }
201122
+ }
201123
+ ]
201124
+ }
201125
+ ]
201126
+ }
201127
+ ],
201128
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201129
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
201130
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
201131
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-12" })
201132
+ ] })
201133
+ };
201134
+ const layout2_8 = {
201135
+ name: "Layout2_8",
201136
+ title: "两行区块",
201137
+ elements: [
201138
+ {
201139
+ componentName: "Section",
201140
+ children: [
201141
+ {
201142
+ componentName: "Grid",
201143
+ props: {
201144
+ className: "grid-cols-12 gap-6"
201145
+ },
201146
+ children: [
201147
+ {
201148
+ componentName: "GridCell",
201149
+ props: {
201150
+ className: "col-span-12"
201151
+ }
201152
+ },
201153
+ {
201154
+ componentName: "GridCell",
201155
+ props: {
201156
+ className: "col-span-6"
201157
+ }
201158
+ },
201159
+ {
201160
+ componentName: "GridCell",
201161
+ props: {
201162
+ className: "col-span-6"
201163
+ }
201164
+ }
201165
+ ]
201166
+ }
201167
+ ]
201168
+ }
201169
+ ],
201170
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201171
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-12" }),
201172
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
201173
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
201174
+ ] })
201175
+ };
201176
+ const layout2_9 = {
201177
+ name: "Layout2_9",
201178
+ title: "两行区块",
201179
+ elements: [
201180
+ {
201181
+ componentName: "Section",
201182
+ children: [
201183
+ {
201184
+ componentName: "Grid",
201185
+ props: {
201186
+ className: "grid-cols-12 gap-6"
201187
+ },
201188
+ children: [
201189
+ {
201190
+ componentName: "GridCell",
201191
+ props: {
201192
+ className: "col-span-6 row-span-2"
201193
+ }
201194
+ },
201195
+ {
201196
+ componentName: "GridCell",
201197
+ props: {
201198
+ className: "col-span-3"
201199
+ }
201200
+ },
201201
+ {
201202
+ componentName: "GridCell",
201203
+ props: {
201204
+ className: "col-span-3"
201205
+ }
201206
+ },
201207
+ {
201208
+ componentName: "GridCell",
201209
+ props: {
201210
+ className: "col-span-3"
201211
+ }
201212
+ },
201213
+ {
201214
+ componentName: "GridCell",
201215
+ props: {
201216
+ className: "col-span-3"
201217
+ }
201218
+ }
201219
+ ]
201220
+ }
201221
+ ]
201222
+ }
201223
+ ],
201224
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201225
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6 row-span-2" }),
201226
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201227
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201228
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201229
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" })
201230
+ ] })
201231
+ };
201232
+ const layout2_10 = {
201233
+ name: "Layout2_10",
201234
+ title: "两行区块",
201235
+ elements: [
201236
+ {
201237
+ componentName: "Section",
201238
+ children: [
201239
+ {
201240
+ componentName: "Grid",
201241
+ props: {
201242
+ className: "grid-cols-12 gap-6"
201243
+ },
201244
+ children: [
201245
+ {
201246
+ componentName: "GridCell",
201247
+ props: {
201248
+ className: "col-span-3"
201249
+ }
201250
+ },
201251
+ {
201252
+ componentName: "GridCell",
201253
+ props: {
201254
+ className: "col-span-3"
201255
+ }
201256
+ },
201257
+ {
201258
+ componentName: "GridCell",
201259
+ props: {
201260
+ className: "col-span-6 row-span-2"
201261
+ }
201262
+ },
201263
+ {
201264
+ componentName: "GridCell",
201265
+ props: {
201266
+ className: "col-span-3"
201267
+ }
201268
+ },
201269
+ {
201270
+ componentName: "GridCell",
201271
+ props: {
201272
+ className: "col-span-3"
201273
+ }
201274
+ }
201275
+ ]
201276
+ }
201277
+ ]
201278
+ }
201279
+ ],
201280
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201281
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201282
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201283
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6 row-span-2" }),
201284
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201285
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" })
201286
+ ] })
201287
+ };
201288
+ const layout2_11 = {
201289
+ name: "Layout2_11",
201290
+ title: "两行区块",
201291
+ elements: [
201292
+ {
201293
+ componentName: "Section",
201294
+ children: [
201295
+ {
201296
+ componentName: "Grid",
201297
+ props: {
201298
+ className: "grid-cols-12 gap-6"
201299
+ },
201300
+ children: [
201301
+ {
201302
+ componentName: "GridCell",
201303
+ props: {
201304
+ className: "col-span-4"
201305
+ }
201306
+ },
201307
+ {
201308
+ componentName: "GridCell",
201309
+ props: {
201310
+ className: "col-span-4 row-span-2"
201311
+ }
201312
+ },
201313
+ {
201314
+ componentName: "GridCell",
201315
+ props: {
201316
+ className: "col-span-4 row-span-2"
201317
+ }
201318
+ },
201319
+ {
201320
+ componentName: "GridCell",
201321
+ props: {
201322
+ className: "col-span-4"
201323
+ }
201324
+ }
201325
+ ]
201326
+ }
201327
+ ]
201328
+ }
201329
+ ],
201330
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201331
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201332
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4 row-span-2" }),
201333
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4 row-span-2" }),
201334
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" })
201335
+ ] })
201336
+ };
201337
+ const layout2_12 = {
201338
+ name: "Layout2_12",
201339
+ title: "两行区块",
201340
+ elements: [
201341
+ {
201342
+ componentName: "Section",
201343
+ children: [
201344
+ {
201345
+ componentName: "Grid",
201346
+ props: {
201347
+ className: "grid-cols-12 gap-6"
201348
+ },
201349
+ children: [
201350
+ {
201351
+ componentName: "GridCell",
201352
+ props: {
201353
+ className: "col-span-4 row-span-2"
201354
+ }
201355
+ },
201356
+ {
201357
+ componentName: "GridCell",
201358
+ props: {
201359
+ className: "col-span-4 row-span-2"
201360
+ }
201361
+ },
201362
+ {
201363
+ componentName: "GridCell",
201364
+ props: {
201365
+ className: "col-span-4"
201366
+ }
201367
+ },
201368
+ {
201369
+ componentName: "GridCell",
201370
+ props: {
201371
+ className: "col-span-4"
201372
+ }
201373
+ }
201374
+ ]
201375
+ }
201376
+ ]
201377
+ }
201378
+ ],
201379
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201380
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4 row-span-2" }),
201381
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4 row-span-2" }),
201382
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201383
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" })
201384
+ ] })
201385
+ };
201386
+ const layout2_13 = {
201387
+ name: "Layout2_13",
201388
+ title: "两行区块",
201389
+ elements: [
201390
+ {
201391
+ componentName: "Section",
201392
+ children: [
201393
+ {
201394
+ componentName: "Grid",
201395
+ props: {
201396
+ className: "grid-cols-12 gap-6"
201397
+ },
201398
+ children: [
201399
+ {
201400
+ componentName: "GridCell",
201401
+ props: {
201402
+ className: "col-span-4 row-span-2"
201403
+ }
201404
+ },
201405
+ {
201406
+ componentName: "GridCell",
201407
+ props: {
201408
+ className: "col-span-4"
201409
+ }
201410
+ },
201411
+ {
201412
+ componentName: "GridCell",
201413
+ props: {
201414
+ className: "col-span-4 row-span-2"
201415
+ }
201416
+ },
201417
+ {
201418
+ componentName: "GridCell",
201419
+ props: {
201420
+ className: "col-span-4"
201421
+ }
201422
+ }
201423
+ ]
201424
+ }
201425
+ ]
201426
+ }
201427
+ ],
201428
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201429
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4 row-span-2" }),
201430
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201431
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4 row-span-2" }),
201432
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" })
201433
+ ] })
201434
+ };
201435
+ const layout2_14 = {
201436
+ name: "Layout2_14",
201437
+ title: "两行区块",
201438
+ elements: [
201439
+ {
201440
+ componentName: "Section",
201441
+ children: [
201442
+ {
201443
+ componentName: "Grid",
201444
+ props: {
201445
+ className: "grid-cols-12 gap-6"
201446
+ },
201447
+ children: [
201448
+ {
201449
+ componentName: "GridCell",
201450
+ props: {
201451
+ className: "col-span-6 row-span-2"
201452
+ }
201453
+ },
201454
+ {
201455
+ componentName: "GridCell",
201456
+ props: {
201457
+ className: "col-span-3"
201458
+ }
201459
+ },
201460
+ {
201461
+ componentName: "GridCell",
201462
+ props: {
201463
+ className: "col-span-3"
201464
+ }
201465
+ },
201466
+ {
201467
+ componentName: "GridCell",
201468
+ props: {
201469
+ className: "col-span-6"
201470
+ }
201471
+ }
201472
+ ]
201473
+ }
201474
+ ]
201475
+ }
201476
+ ],
201477
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201478
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6 row-span-2" }),
201479
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201480
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201481
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
201482
+ ] })
201483
+ };
201484
+ const layout2_15 = {
201485
+ name: "Layout2_15",
201486
+ title: "两行区块",
201487
+ elements: [
201488
+ {
201489
+ componentName: "Section",
201490
+ children: [
201491
+ {
201492
+ componentName: "Grid",
201493
+ props: {
201494
+ className: "grid-cols-12 gap-6"
201495
+ },
201496
+ children: [
201497
+ {
201498
+ componentName: "GridCell",
201499
+ props: {
201500
+ className: "col-span-3"
201501
+ }
201502
+ },
201503
+ {
201504
+ componentName: "GridCell",
201505
+ props: {
201506
+ className: "col-span-3"
201507
+ }
201508
+ },
201509
+ {
201510
+ componentName: "GridCell",
201511
+ props: {
201512
+ className: "col-span-6 row-span-2"
201513
+ }
201514
+ },
201515
+ {
201516
+ componentName: "GridCell",
201517
+ props: {
201518
+ className: "col-span-6"
201519
+ }
201520
+ }
201521
+ ]
201522
+ }
201523
+ ]
201524
+ }
201525
+ ],
201526
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201527
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201528
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201529
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6 row-span-2" }),
201530
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
201531
+ ] })
201532
+ };
201533
+ const layout2_16 = {
201534
+ name: "Layout2_16",
201535
+ title: "两行区块",
201536
+ elements: [
201537
+ {
201538
+ componentName: "Section",
201539
+ children: [
201540
+ {
201541
+ componentName: "Grid",
201542
+ props: {
201543
+ className: "grid-cols-12 gap-6"
201544
+ },
201545
+ children: [
201546
+ {
201547
+ componentName: "GridCell",
201548
+ props: {
201549
+ className: "col-span-3"
201550
+ }
201551
+ },
201552
+ {
201553
+ componentName: "GridCell",
201554
+ props: {
201555
+ className: "col-span-6 row-span-2"
201556
+ }
201557
+ },
201558
+ {
201559
+ componentName: "GridCell",
201560
+ props: {
201561
+ className: "col-span-3"
201562
+ }
201563
+ },
201564
+ {
201565
+ componentName: "GridCell",
201566
+ props: {
201567
+ className: "col-span-3"
201568
+ }
201569
+ },
201570
+ {
201571
+ componentName: "GridCell",
201572
+ props: {
201573
+ className: "col-span-3"
201574
+ }
201575
+ }
201576
+ ]
201577
+ }
201578
+ ]
201579
+ }
201580
+ ],
201581
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201582
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201583
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6 row-span-2" }),
201584
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201585
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" }),
201586
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-3" })
201587
+ ] })
201588
+ };
201589
+ const layout2_17 = {
201590
+ name: "Layout2_17",
201591
+ title: "两行区块",
201592
+ elements: [
201593
+ {
201594
+ componentName: "Section",
201595
+ children: [
201596
+ {
201597
+ componentName: "Grid",
201598
+ props: {
201599
+ className: "grid-cols-12 gap-6"
201600
+ },
201601
+ children: [
201602
+ {
201603
+ componentName: "GridCell",
201604
+ props: {
201605
+ className: "col-span-8"
201606
+ }
201607
+ },
201608
+ {
201609
+ componentName: "GridCell",
201610
+ props: {
201611
+ className: "col-span-4"
201612
+ }
201613
+ },
201614
+ {
201615
+ componentName: "GridCell",
201616
+ props: {
201617
+ className: "col-span-4"
201618
+ }
201619
+ },
201620
+ {
201621
+ componentName: "GridCell",
201622
+ props: {
201623
+ className: "col-span-4"
201624
+ }
201625
+ },
201626
+ {
201627
+ componentName: "GridCell",
201628
+ props: {
201629
+ className: "col-span-4"
201630
+ }
201631
+ }
201632
+ ]
201633
+ }
201634
+ ]
201635
+ }
201636
+ ],
201637
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201638
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" }),
201639
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201640
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201641
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201642
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" })
201643
+ ] })
201644
+ };
201645
+ const layout2_18 = {
201646
+ name: "Layout2_18",
201647
+ title: "两行区块",
201648
+ elements: [
201649
+ {
201650
+ componentName: "Section",
201651
+ children: [
201652
+ {
201653
+ componentName: "Grid",
201654
+ props: {
201655
+ className: "grid-cols-12 gap-6"
201656
+ },
201657
+ children: [
201658
+ {
201659
+ componentName: "GridCell",
201660
+ props: {
201661
+ className: "col-span-4"
201662
+ }
201663
+ },
201664
+ {
201665
+ componentName: "GridCell",
201666
+ props: {
201667
+ className: "col-span-8"
201668
+ }
201669
+ },
201670
+ {
201671
+ componentName: "GridCell",
201672
+ props: {
201673
+ className: "col-span-4"
201674
+ }
201675
+ },
201676
+ {
201677
+ componentName: "GridCell",
201678
+ props: {
201679
+ className: "col-span-4"
201680
+ }
201681
+ },
201682
+ {
201683
+ componentName: "GridCell",
201684
+ props: {
201685
+ className: "col-span-4"
201686
+ }
201687
+ }
201688
+ ]
201689
+ }
201690
+ ]
201691
+ }
201692
+ ],
201693
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201694
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201695
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" }),
201696
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201697
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201698
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" })
201699
+ ] })
201700
+ };
201701
+ const layout2_19 = {
201702
+ name: "Layout2_19",
201703
+ title: "两行区块",
201704
+ elements: [
201705
+ {
201706
+ componentName: "Section",
201707
+ children: [
201708
+ {
201709
+ componentName: "Grid",
201710
+ props: {
201711
+ className: "grid-cols-12 gap-6"
201712
+ },
201713
+ children: [
201714
+ {
201715
+ componentName: "GridCell",
201716
+ props: {
201717
+ className: "col-span-4"
201718
+ }
201719
+ },
201720
+ {
201721
+ componentName: "GridCell",
201722
+ props: {
201723
+ className: "col-span-8"
201724
+ }
201725
+ },
201726
+ {
201727
+ componentName: "GridCell",
201728
+ props: {
201729
+ className: "col-span-8"
201730
+ }
201731
+ },
201732
+ {
201733
+ componentName: "GridCell",
201734
+ props: {
201735
+ className: "col-span-4"
201736
+ }
201737
+ }
201738
+ ]
201739
+ }
201740
+ ]
201741
+ }
201742
+ ],
201743
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201744
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201745
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" }),
201746
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" }),
201747
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" })
201748
+ ] })
201749
+ };
201750
+ const layout2_20 = {
201751
+ name: "Layout2_20",
201752
+ title: "两行区块",
201753
+ elements: [
201754
+ {
201755
+ componentName: "Section",
201756
+ children: [
201757
+ {
201758
+ componentName: "Grid",
201759
+ props: {
201760
+ className: "grid-cols-12 gap-6"
201761
+ },
201762
+ children: [
201763
+ {
201764
+ componentName: "GridCell",
201765
+ props: {
201766
+ className: "col-span-8"
201767
+ }
201768
+ },
201769
+ {
201770
+ componentName: "GridCell",
201771
+ props: {
201772
+ className: "col-span-4"
201773
+ }
201774
+ },
201775
+ {
201776
+ componentName: "GridCell",
201777
+ props: {
201778
+ className: "col-span-4"
201779
+ }
201780
+ },
201781
+ {
201782
+ componentName: "GridCell",
201783
+ props: {
201784
+ className: "col-span-8"
201785
+ }
201786
+ }
201787
+ ]
201788
+ }
201789
+ ]
201790
+ }
201791
+ ],
201792
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201793
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" }),
201794
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201795
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201796
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" })
201797
+ ] })
201798
+ };
201799
+ const layout2_21 = {
201800
+ name: "Layout2_21",
201801
+ title: "两行区块",
201802
+ elements: [
201803
+ {
201804
+ componentName: "Section",
201805
+ children: [
201806
+ {
201807
+ componentName: "Grid",
201808
+ props: {
201809
+ className: "grid-cols-12 gap-6"
201810
+ },
201811
+ children: [
201812
+ {
201813
+ componentName: "GridCell",
201814
+ props: {
201815
+ className: "col-span-4"
201816
+ }
201817
+ },
201818
+ {
201819
+ componentName: "GridCell",
201820
+ props: {
201821
+ className: "col-span-4"
201822
+ }
201823
+ },
201824
+ {
201825
+ componentName: "GridCell",
201826
+ props: {
201827
+ className: "col-span-4"
201828
+ }
201829
+ },
201830
+ {
201831
+ componentName: "GridCell",
201832
+ props: {
201833
+ className: "col-span-8"
201834
+ }
201835
+ },
201836
+ {
201837
+ componentName: "GridCell",
201838
+ props: {
201839
+ className: "col-span-4"
201840
+ }
201841
+ }
201842
+ ]
201843
+ }
201844
+ ]
201845
+ }
201846
+ ],
201847
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201848
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201849
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201850
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201851
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" }),
201852
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" })
201853
+ ] })
201854
+ };
201855
+ const layout2_22 = {
201856
+ name: "Layout2_22",
201857
+ title: "两行区块",
201858
+ elements: [
201859
+ {
201860
+ componentName: "Section",
201861
+ children: [
201862
+ {
201863
+ componentName: "Grid",
201864
+ props: {
201865
+ className: "grid-cols-12 gap-6"
201866
+ },
201867
+ children: [
201868
+ {
201869
+ componentName: "GridCell",
201870
+ props: {
201871
+ className: "col-span-4"
201872
+ }
201873
+ },
201874
+ {
201875
+ componentName: "GridCell",
201876
+ props: {
201877
+ className: "col-span-4"
201878
+ }
201879
+ },
201880
+ {
201881
+ componentName: "GridCell",
201882
+ props: {
201883
+ className: "col-span-4"
201884
+ }
201885
+ },
201886
+ {
201887
+ componentName: "GridCell",
201888
+ props: {
201889
+ className: "col-span-4"
201890
+ }
201891
+ },
201892
+ {
201893
+ componentName: "GridCell",
201894
+ props: {
201895
+ className: "col-span-8"
201896
+ }
201897
+ }
201898
+ ]
201899
+ }
201900
+ ]
201901
+ }
201902
+ ],
201903
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201904
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201905
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201906
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201907
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201908
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" })
201909
+ ] })
201910
+ };
201911
+ const layout2_23 = {
201912
+ name: "Layout2_23",
201913
+ title: "两行区块",
201914
+ elements: [
201915
+ {
201916
+ componentName: "Section",
201917
+ children: [
201918
+ {
201919
+ componentName: "Grid",
201920
+ props: {
201921
+ className: "grid-cols-12 gap-6"
201922
+ },
201923
+ children: [
201924
+ {
201925
+ componentName: "GridCell",
201926
+ props: {
201927
+ className: "col-span-12"
201928
+ }
201929
+ },
201930
+ {
201931
+ componentName: "GridCell",
201932
+ props: {
201933
+ className: "col-span-4"
201934
+ }
201935
+ },
201936
+ {
201937
+ componentName: "GridCell",
201938
+ props: {
201939
+ className: "col-span-4"
201940
+ }
201941
+ },
201942
+ {
201943
+ componentName: "GridCell",
201944
+ props: {
201945
+ className: "col-span-4"
201946
+ }
201947
+ }
201948
+ ]
201949
+ }
201950
+ ]
201951
+ }
201952
+ ],
201953
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
201954
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-12" }),
201955
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201956
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
201957
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" })
201958
+ ] })
201959
+ };
201960
+ const layout3_1 = {
201961
+ name: "Layout3_1",
201962
+ title: "三行区块",
200313
201963
  elements: [
200314
201964
  {
200315
201965
  componentName: "Section",
@@ -200320,6 +201970,206 @@ const layout2 = {
200320
201970
  className: "grid-cols-12 gap-6"
200321
201971
  },
200322
201972
  children: [
201973
+ {
201974
+ componentName: "GridCell",
201975
+ props: {
201976
+ className: "col-span-8"
201977
+ }
201978
+ },
201979
+ {
201980
+ componentName: "GridCell",
201981
+ props: {
201982
+ className: "col-span-4"
201983
+ }
201984
+ },
201985
+ {
201986
+ componentName: "GridCell",
201987
+ props: {
201988
+ className: "col-span-12"
201989
+ }
201990
+ },
201991
+ {
201992
+ componentName: "GridCell",
201993
+ props: {
201994
+ className: "col-span-4"
201995
+ }
201996
+ },
201997
+ {
201998
+ componentName: "GridCell",
201999
+ props: {
202000
+ className: "col-span-8"
202001
+ }
202002
+ }
202003
+ ]
202004
+ }
202005
+ ]
202006
+ }
202007
+ ],
202008
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
202009
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" }),
202010
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
202011
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-12" }),
202012
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
202013
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-8" })
202014
+ ] })
202015
+ };
202016
+ const layout3_2 = {
202017
+ name: "Layout3_2",
202018
+ title: "三行区块",
202019
+ elements: [
202020
+ {
202021
+ componentName: "Section",
202022
+ children: [
202023
+ {
202024
+ componentName: "Grid",
202025
+ props: {
202026
+ className: "grid-cols-12 gap-6"
202027
+ },
202028
+ children: [
202029
+ {
202030
+ componentName: "GridCell",
202031
+ props: {
202032
+ className: "col-span-12"
202033
+ }
202034
+ },
202035
+ {
202036
+ componentName: "GridCell",
202037
+ props: {
202038
+ className: "col-span-4"
202039
+ }
202040
+ },
202041
+ {
202042
+ componentName: "GridCell",
202043
+ props: {
202044
+ className: "col-span-4"
202045
+ }
202046
+ },
202047
+ {
202048
+ componentName: "GridCell",
202049
+ props: {
202050
+ className: "col-span-4"
202051
+ }
202052
+ },
202053
+ {
202054
+ componentName: "GridCell",
202055
+ props: {
202056
+ className: "col-span-4"
202057
+ }
202058
+ },
202059
+ {
202060
+ componentName: "GridCell",
202061
+ props: {
202062
+ className: "col-span-4"
202063
+ }
202064
+ },
202065
+ {
202066
+ componentName: "GridCell",
202067
+ props: {
202068
+ className: "col-span-4"
202069
+ }
202070
+ }
202071
+ ]
202072
+ }
202073
+ ]
202074
+ }
202075
+ ],
202076
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
202077
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-12" }),
202078
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
202079
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
202080
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
202081
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
202082
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" }),
202083
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-4" })
202084
+ ] })
202085
+ };
202086
+ const layout3_3 = {
202087
+ name: "Layout3_3",
202088
+ title: "三行区块",
202089
+ elements: [
202090
+ {
202091
+ componentName: "Section",
202092
+ children: [
202093
+ {
202094
+ componentName: "Grid",
202095
+ props: {
202096
+ className: "grid-cols-12 gap-6"
202097
+ },
202098
+ children: [
202099
+ {
202100
+ componentName: "GridCell",
202101
+ props: {
202102
+ className: "col-span-6"
202103
+ }
202104
+ },
202105
+ {
202106
+ componentName: "GridCell",
202107
+ props: {
202108
+ className: "col-span-6"
202109
+ }
202110
+ },
202111
+ {
202112
+ componentName: "GridCell",
202113
+ props: {
202114
+ className: "col-span-6"
202115
+ }
202116
+ },
202117
+ {
202118
+ componentName: "GridCell",
202119
+ props: {
202120
+ className: "col-span-6"
202121
+ }
202122
+ },
202123
+ {
202124
+ componentName: "GridCell",
202125
+ props: {
202126
+ className: "col-span-12"
202127
+ }
202128
+ }
202129
+ ]
202130
+ }
202131
+ ]
202132
+ }
202133
+ ],
202134
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
202135
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202136
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202137
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202138
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202139
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-12" })
202140
+ ] })
202141
+ };
202142
+ const layout3_4 = {
202143
+ name: "Layout3_4",
202144
+ title: "三行区块",
202145
+ elements: [
202146
+ {
202147
+ componentName: "Section",
202148
+ children: [
202149
+ {
202150
+ componentName: "Grid",
202151
+ props: {
202152
+ className: "grid-cols-12 gap-6"
202153
+ },
202154
+ children: [
202155
+ {
202156
+ componentName: "GridCell",
202157
+ props: {
202158
+ className: "col-span-12"
202159
+ }
202160
+ },
202161
+ {
202162
+ componentName: "GridCell",
202163
+ props: {
202164
+ className: "col-span-6"
202165
+ }
202166
+ },
202167
+ {
202168
+ componentName: "GridCell",
202169
+ props: {
202170
+ className: "col-span-6"
202171
+ }
202172
+ },
200323
202173
  {
200324
202174
  componentName: "GridCell",
200325
202175
  props: {
@@ -200338,36 +202188,307 @@ const layout2 = {
200338
202188
  }
200339
202189
  ],
200340
202190
  view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
202191
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-12" }),
202192
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202193
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
200341
202194
  /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
200342
202195
  /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
200343
202196
  ] })
200344
202197
  };
202198
+ const layout3_5 = {
202199
+ name: "Layout3_5",
202200
+ title: "三行区块",
202201
+ elements: [
202202
+ {
202203
+ componentName: "Section",
202204
+ children: [
202205
+ {
202206
+ componentName: "Grid",
202207
+ props: {
202208
+ className: "grid-cols-12 gap-6"
202209
+ },
202210
+ children: [
202211
+ {
202212
+ componentName: "GridCell",
202213
+ props: {
202214
+ className: "col-span-6"
202215
+ }
202216
+ },
202217
+ {
202218
+ componentName: "GridCell",
202219
+ props: {
202220
+ className: "col-span-6"
202221
+ }
202222
+ },
202223
+ {
202224
+ componentName: "GridCell",
202225
+ props: {
202226
+ className: "col-span-12"
202227
+ }
202228
+ },
202229
+ {
202230
+ componentName: "GridCell",
202231
+ props: {
202232
+ className: "col-span-6"
202233
+ }
202234
+ },
202235
+ {
202236
+ componentName: "GridCell",
202237
+ props: {
202238
+ className: "col-span-6"
202239
+ }
202240
+ }
202241
+ ]
202242
+ }
202243
+ ]
202244
+ }
202245
+ ],
202246
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
202247
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202248
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202249
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-12" }),
202250
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202251
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
202252
+ ] })
202253
+ };
202254
+ const layout3_6 = {
202255
+ name: "Layout3_6",
202256
+ title: "三行区块",
202257
+ elements: [
202258
+ {
202259
+ componentName: "Section",
202260
+ children: [
202261
+ {
202262
+ componentName: "Grid",
202263
+ props: {
202264
+ className: "grid-cols-12 gap-6"
202265
+ },
202266
+ children: [
202267
+ {
202268
+ componentName: "GridCell",
202269
+ props: {
202270
+ className: "col-span-6"
202271
+ }
202272
+ },
202273
+ {
202274
+ componentName: "GridCell",
202275
+ props: {
202276
+ className: "col-span-6 row-span-2"
202277
+ }
202278
+ },
202279
+ {
202280
+ componentName: "GridCell",
202281
+ props: {
202282
+ className: "col-span-6"
202283
+ }
202284
+ },
202285
+ {
202286
+ componentName: "GridCell",
202287
+ props: {
202288
+ className: "col-span-6"
202289
+ }
202290
+ },
202291
+ {
202292
+ componentName: "GridCell",
202293
+ props: {
202294
+ className: "col-span-6"
202295
+ }
202296
+ }
202297
+ ]
202298
+ }
202299
+ ]
202300
+ }
202301
+ ],
202302
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
202303
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202304
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6 row-span-2" }),
202305
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202306
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202307
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
202308
+ ] })
202309
+ };
202310
+ const layout3_7 = {
202311
+ name: "Layout3_7",
202312
+ title: "三行区块",
202313
+ elements: [
202314
+ {
202315
+ componentName: "Section",
202316
+ children: [
202317
+ {
202318
+ componentName: "Grid",
202319
+ props: {
202320
+ className: "grid-cols-12 gap-6"
202321
+ },
202322
+ children: [
202323
+ {
202324
+ componentName: "GridCell",
202325
+ props: {
202326
+ className: "col-span-6 row-span-2"
202327
+ }
202328
+ },
202329
+ {
202330
+ componentName: "GridCell",
202331
+ props: {
202332
+ className: "col-span-6"
202333
+ }
202334
+ },
202335
+ {
202336
+ componentName: "GridCell",
202337
+ props: {
202338
+ className: "col-span-6"
202339
+ }
202340
+ },
202341
+ {
202342
+ componentName: "GridCell",
202343
+ props: {
202344
+ className: "col-span-6"
202345
+ }
202346
+ },
202347
+ {
202348
+ componentName: "GridCell",
202349
+ props: {
202350
+ className: "col-span-6"
202351
+ }
202352
+ }
202353
+ ]
202354
+ }
202355
+ ]
202356
+ }
202357
+ ],
202358
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
202359
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6 row-span-2" }),
202360
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202361
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202362
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202363
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
202364
+ ] })
202365
+ };
202366
+ const layout3_8 = {
202367
+ name: "Layout3_8",
202368
+ title: "三行区块",
202369
+ elements: [
202370
+ {
202371
+ componentName: "Section",
202372
+ children: [
202373
+ {
202374
+ componentName: "Grid",
202375
+ props: {
202376
+ className: "grid-cols-12 gap-6"
202377
+ },
202378
+ children: [
202379
+ {
202380
+ componentName: "GridCell",
202381
+ props: {
202382
+ className: "col-span-6"
202383
+ }
202384
+ },
202385
+ {
202386
+ componentName: "GridCell",
202387
+ props: {
202388
+ className: "col-span-6"
202389
+ }
202390
+ },
202391
+ {
202392
+ componentName: "GridCell",
202393
+ props: {
202394
+ className: "col-span-6"
202395
+ }
202396
+ },
202397
+ {
202398
+ componentName: "GridCell",
202399
+ props: {
202400
+ className: "col-span-6 row-span-2"
202401
+ }
202402
+ },
202403
+ {
202404
+ componentName: "GridCell",
202405
+ props: {
202406
+ className: "col-span-6"
202407
+ }
202408
+ }
202409
+ ]
202410
+ }
202411
+ ]
202412
+ }
202413
+ ],
202414
+ view: /* @__PURE__ */ jsxRuntimeExports.jsxs(GridView, { className: "grid-cols-12", children: [
202415
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202416
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202417
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" }),
202418
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6 row-span-2" }),
202419
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CellView, { className: "col-span-6" })
202420
+ ] })
202421
+ };
200345
202422
  const newSectionCategories = [
200346
202423
  {
200347
202424
  id: "single",
200348
202425
  title: "单行",
200349
- resources: [layout1, layout2]
202426
+ resources: [
202427
+ layout1_1,
202428
+ layout1_2,
202429
+ layout1_3,
202430
+ layout1_4,
202431
+ layout1_5,
202432
+ layout1_6,
202433
+ layout1_7,
202434
+ layout1_8,
202435
+ layout1_9,
202436
+ layout1_10
202437
+ ]
200350
202438
  },
200351
202439
  {
200352
202440
  id: "double",
200353
202441
  title: "两行",
200354
- resources: [layout1, layout2]
202442
+ resources: [
202443
+ layout2_1,
202444
+ layout2_2,
202445
+ layout2_3,
202446
+ layout2_4,
202447
+ layout2_5,
202448
+ layout2_6,
202449
+ layout2_7,
202450
+ layout2_8,
202451
+ layout2_9,
202452
+ layout2_10,
202453
+ layout2_11,
202454
+ layout2_12,
202455
+ layout2_13,
202456
+ layout2_14,
202457
+ layout2_15,
202458
+ layout2_16,
202459
+ layout2_17,
202460
+ layout2_18,
202461
+ layout2_19,
202462
+ layout2_20,
202463
+ layout2_21,
202464
+ layout2_22,
202465
+ layout2_23
202466
+ ]
200355
202467
  },
200356
202468
  {
200357
202469
  id: "triple",
200358
202470
  title: "三行",
200359
- resources: [layout1, layout2]
200360
- },
200361
- {
200362
- id: "header",
200363
- title: "页眉",
200364
- resources: [layout1, layout2]
200365
- },
200366
- {
200367
- id: "footer",
200368
- title: "页脚",
200369
- resources: [layout1, layout2]
202471
+ resources: [
202472
+ layout3_1,
202473
+ layout3_2,
202474
+ layout3_3,
202475
+ layout3_4,
202476
+ layout3_5,
202477
+ layout3_6,
202478
+ layout3_7,
202479
+ layout3_8
202480
+ ]
200370
202481
  }
202482
+ // {
202483
+ // id: "header",
202484
+ // title: "页头",
202485
+ // resources: [layout1_1, layout1_2],
202486
+ // },
202487
+ // {
202488
+ // id: "footer",
202489
+ // title: "页脚",
202490
+ // resources: [layout1_1, layout1_2],
202491
+ // },
200371
202492
  ];
200372
202493
  function SectionsPanel(props) {
200373
202494
  const { hidden } = props;
@@ -201215,6 +203336,19 @@ const baseComponents = [
201215
203336
  }
201216
203337
  ]
201217
203338
  },
203339
+ {
203340
+ id: "carousel",
203341
+ name: "Carousel",
203342
+ title: "轮播",
203343
+ description: "轮播组件",
203344
+ categoryId: "navigation",
203345
+ icon: CarouselIcon,
203346
+ elements: [
203347
+ {
203348
+ componentName: "Carousel"
203349
+ }
203350
+ ]
203351
+ },
201218
203352
  // 反馈组件
201219
203353
  {
201220
203354
  id: "popover",
@@ -201839,8 +203973,8 @@ function PropsSchema(props) {
201839
203973
  const setDrawerType = useStudioStore((state) => state.setDrawerType);
201840
203974
  const setInitValue = useCallback(() => {
201841
203975
  var _a3;
201842
- if (editingComponent == null ? void 0 : editingComponent.props) {
201843
- setValue(JSON.stringify((_a3 = editingComponent == null ? void 0 : editingComponent.props) == null ? void 0 : _a3.tabs, null, 2));
203976
+ if (editingComponent == null ? void 0 : editingComponent.propsSchema) {
203977
+ setValue(JSON.stringify((_a3 = editingComponent == null ? void 0 : editingComponent.propsSchema) == null ? void 0 : _a3.tabs, null, 2));
201844
203978
  } else {
201845
203979
  setValue(JSON.stringify([], null, 2));
201846
203980
  }
@@ -201862,8 +203996,8 @@ function PropsSchema(props) {
201862
203996
  if (editingComponent) {
201863
203997
  onChangeComponent({
201864
203998
  ...editingComponent,
201865
- props: {
201866
- ...editingComponent.props,
203999
+ propsSchema: {
204000
+ ...editingComponent.propsSchema,
201867
204001
  tabs: (value == null ? void 0 : value.trim()) ? JSON.parse(value == null ? void 0 : value.trim()) : void 0
201868
204002
  }
201869
204003
  });
@@ -203076,16 +205210,7 @@ function ComponentModal(props) {
203076
205210
  ).setNoQuery(!themeId)
203077
205211
  }
203078
205212
  ),
203079
- /* @__PURE__ */ jsxRuntimeExports.jsx(
203080
- InputField,
203081
- {
203082
- name: "seqValue",
203083
- label: "顺序",
203084
- type: "number",
203085
- labelPlacement: "outside",
203086
- placeholder: "请输入顺序"
203087
- }
203088
- ),
205213
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}),
203089
205214
  /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxField, { label: "区块", name: "isSectionBlock", children: "是区块" })
203090
205215
  ] })
203091
205216
  }
@@ -203421,16 +205546,6 @@ function ComponentCategoryModal(props) {
203421
205546
  labelPlacement: "outside",
203422
205547
  placeholder: "请输入标题"
203423
205548
  }
203424
- ),
203425
- /* @__PURE__ */ jsxRuntimeExports.jsx(
203426
- InputField,
203427
- {
203428
- name: "seqValue",
203429
- label: "顺序",
203430
- type: "number",
203431
- labelPlacement: "outside",
203432
- placeholder: "请输入顺序"
203433
- }
203434
205549
  )
203435
205550
  ] })
203436
205551
  }
@@ -204316,7 +206431,7 @@ function MoreActions() {
204316
206431
  handleConfirm,
204317
206432
  confirmText
204318
206433
  } = useImportTheme();
204319
- const syncUrl = `${enfityEndPoint}$website$${website == null ? void 0 : website.id}`;
206434
+ const syncUrl = `${enfityEndPoint}$website-theme$${theme == null ? void 0 : theme.id}`;
204320
206435
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
204321
206436
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Dropdown, { children: [
204322
206437
  /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownTrigger, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -204875,4 +206990,4 @@ export {
204875
206990
  typescriptDefaults as t,
204876
206991
  useCustomizedMaterials as u
204877
206992
  };
204878
- //# sourceMappingURL=index-57fb0e65.js.map
206993
+ //# sourceMappingURL=index-b0c38706.js.map