@rxdrag/website-studio 0.0.42 → 0.0.43

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 (34) hide show
  1. package/dist/{cssMode-f2090bd3.js → cssMode-f11274aa.js} +2 -2
  2. package/dist/{cssMode-f2090bd3.js.map → cssMode-f11274aa.js.map} +1 -1
  3. package/dist/{freemarker2-8ad8aeb1.js → freemarker2-fa37c278.js} +2 -2
  4. package/dist/{freemarker2-8ad8aeb1.js.map → freemarker2-fa37c278.js.map} +1 -1
  5. package/dist/{handlebars-22c22910.js → handlebars-fd006403.js} +2 -2
  6. package/dist/{handlebars-22c22910.js.map → handlebars-fd006403.js.map} +1 -1
  7. package/dist/{html-60ec2af9.js → html-3604e3ba.js} +2 -2
  8. package/dist/{html-60ec2af9.js.map → html-3604e3ba.js.map} +1 -1
  9. package/dist/{htmlMode-c8640f90.js → htmlMode-89afac94.js} +2 -2
  10. package/dist/{htmlMode-c8640f90.js.map → htmlMode-89afac94.js.map} +1 -1
  11. package/dist/{index-0841cd20.js → index-716d5730.js} +47 -23
  12. package/dist/{index-0841cd20.js.map → index-716d5730.js.map} +1 -1
  13. package/dist/index.mjs +1 -1
  14. package/dist/{javascript-0c8adee5.js → javascript-318c4e10.js} +3 -3
  15. package/dist/{javascript-0c8adee5.js.map → javascript-318c4e10.js.map} +1 -1
  16. package/dist/{jsonMode-8ad9852a.js → jsonMode-45023839.js} +2 -2
  17. package/dist/{jsonMode-8ad9852a.js.map → jsonMode-45023839.js.map} +1 -1
  18. package/dist/{liquid-acc1cf0e.js → liquid-fc2531a6.js} +2 -2
  19. package/dist/{liquid-acc1cf0e.js.map → liquid-fc2531a6.js.map} +1 -1
  20. package/dist/{mdx-85dd6b94.js → mdx-91f5933a.js} +2 -2
  21. package/dist/{mdx-85dd6b94.js.map → mdx-91f5933a.js.map} +1 -1
  22. package/dist/{python-48d1977e.js → python-a455e25d.js} +2 -2
  23. package/dist/{python-48d1977e.js.map → python-a455e25d.js.map} +1 -1
  24. package/dist/{razor-22507fac.js → razor-8f4c02a1.js} +2 -2
  25. package/dist/{razor-22507fac.js.map → razor-8f4c02a1.js.map} +1 -1
  26. package/dist/{tsMode-324fb60b.js → tsMode-b18c77cc.js} +2 -2
  27. package/dist/{tsMode-324fb60b.js.map → tsMode-b18c77cc.js.map} +1 -1
  28. package/dist/{typescript-5f93813d.js → typescript-b387ecba.js} +2 -2
  29. package/dist/{typescript-5f93813d.js.map → typescript-b387ecba.js.map} +1 -1
  30. package/dist/{xml-bda370ff.js → xml-df668467.js} +2 -2
  31. package/dist/{xml-bda370ff.js.map → xml-df668467.js.map} +1 -1
  32. package/dist/{yaml-5915841b.js → yaml-44a8e644.js} +2 -2
  33. package/dist/{yaml-5915841b.js.map → yaml-44a8e644.js.map} +1 -1
  34. package/package.json +20 -20
@@ -20,7 +20,7 @@ import { isHTMLElement as isHTMLElement$1, isStr } from "@rxdrag/shared";
20
20
  import { isFunction as isFunction$2, debounce, keys, uniqueId } from "lodash-es";
21
21
  import { useEntifyEndpoint, useEntifyToken, useLazyQueryEntityList, useLazyQueryOneEntity, useCreateEntityClient, emitEntityChange } from "@rxdrag/entify-hooks";
22
22
  import dayjs from "dayjs";
23
- import { ErrorBoundary, ColorPicker, useSave, 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, MonacoEditor, getTheFile, MoreIcon, LanguageIcon, SeoIcon, SettingsMinimalisticIcon, CodeSquareIcon, DownloadIcon, UploadIcon, StyledTooltip, PlayIcon, Logo, GlobalIcon, SnsIcon, LightBoltIcon, WarningIcon, PinIcon, PredefinedColorPicker, PagesIcon, WidgetIcon, LeafNode, GroupNode, TreeView, DesignIcon, RemoveIcon, ResetIcon, ImportIcon, AstroIcon, AddFolderIcon, TemplateIcon, AddTemplateIcon } from "@rxdrag/rxcms-common";
23
+ import { ErrorBoundary, ColorPicker, useSave, 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, MonacoEditor, getTheFile, MoreIcon, LanguageIcon, SeoIcon, AiIcon, SettingsMinimalisticIcon, CodeSquareIcon, DownloadIcon, UploadIcon, StyledTooltip, PlayIcon, Logo, GlobalIcon, SnsIcon, LightBoltIcon, WarningIcon, PinIcon, PredefinedColorPicker, PagesIcon, WidgetIcon, LeafNode, GroupNode, TreeView, DesignIcon, RemoveIcon, ResetIcon, ImportIcon, AstroIcon, AddFolderIcon, TemplateIcon, AddTemplateIcon } from "@rxdrag/rxcms-common";
24
24
  import { PageLoader, PopoverController, ModalController, AnimateController, TabsController, NumberController, FlipController, CollapseController, AosController } from "@rxdrag/website-lib-core";
25
25
  import gsap$2 from "gsap";
26
26
  import { Input, Textarea, StringArrayInput, ImageSelect, TargetSetter, propSetters, DeviceBreakpoints, DeviceContext } from "@rxdrag/schema-setters";
@@ -138172,7 +138172,7 @@ registerLanguage({
138172
138172
  aliases: ["FreeMarker2", "Apache FreeMarker2"],
138173
138173
  loader: () => {
138174
138174
  {
138175
- return import("./freemarker2-8ad8aeb1.js").then((m2) => m2.TagAutoInterpolationDollar);
138175
+ return import("./freemarker2-fa37c278.js").then((m2) => m2.TagAutoInterpolationDollar);
138176
138176
  }
138177
138177
  }
138178
138178
  });
@@ -138181,7 +138181,7 @@ registerLanguage({
138181
138181
  aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
138182
138182
  loader: () => {
138183
138183
  {
138184
- return import("./freemarker2-8ad8aeb1.js").then((m2) => m2.TagAngleInterpolationDollar);
138184
+ return import("./freemarker2-fa37c278.js").then((m2) => m2.TagAngleInterpolationDollar);
138185
138185
  }
138186
138186
  }
138187
138187
  });
@@ -138190,7 +138190,7 @@ registerLanguage({
138190
138190
  aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
138191
138191
  loader: () => {
138192
138192
  {
138193
- return import("./freemarker2-8ad8aeb1.js").then((m2) => m2.TagBracketInterpolationDollar);
138193
+ return import("./freemarker2-fa37c278.js").then((m2) => m2.TagBracketInterpolationDollar);
138194
138194
  }
138195
138195
  }
138196
138196
  });
@@ -138199,7 +138199,7 @@ registerLanguage({
138199
138199
  aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
138200
138200
  loader: () => {
138201
138201
  {
138202
- return import("./freemarker2-8ad8aeb1.js").then((m2) => m2.TagAngleInterpolationBracket);
138202
+ return import("./freemarker2-fa37c278.js").then((m2) => m2.TagAngleInterpolationBracket);
138203
138203
  }
138204
138204
  }
138205
138205
  });
@@ -138208,7 +138208,7 @@ registerLanguage({
138208
138208
  aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
138209
138209
  loader: () => {
138210
138210
  {
138211
- return import("./freemarker2-8ad8aeb1.js").then((m2) => m2.TagBracketInterpolationBracket);
138211
+ return import("./freemarker2-fa37c278.js").then((m2) => m2.TagBracketInterpolationBracket);
138212
138212
  }
138213
138213
  }
138214
138214
  });
@@ -138217,7 +138217,7 @@ registerLanguage({
138217
138217
  aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
138218
138218
  loader: () => {
138219
138219
  {
138220
- return import("./freemarker2-8ad8aeb1.js").then((m2) => m2.TagAutoInterpolationDollar);
138220
+ return import("./freemarker2-fa37c278.js").then((m2) => m2.TagAutoInterpolationDollar);
138221
138221
  }
138222
138222
  }
138223
138223
  });
@@ -138226,7 +138226,7 @@ registerLanguage({
138226
138226
  aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
138227
138227
  loader: () => {
138228
138228
  {
138229
- return import("./freemarker2-8ad8aeb1.js").then((m2) => m2.TagAutoInterpolationBracket);
138229
+ return import("./freemarker2-fa37c278.js").then((m2) => m2.TagAutoInterpolationBracket);
138230
138230
  }
138231
138231
  }
138232
138232
  });
@@ -138276,7 +138276,7 @@ registerLanguage({
138276
138276
  mimetypes: ["text/x-handlebars-template"],
138277
138277
  loader: () => {
138278
138278
  {
138279
- return import("./handlebars-22c22910.js");
138279
+ return import("./handlebars-fd006403.js");
138280
138280
  }
138281
138281
  }
138282
138282
  });
@@ -138309,7 +138309,7 @@ registerLanguage({
138309
138309
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
138310
138310
  loader: () => {
138311
138311
  {
138312
- return import("./html-60ec2af9.js");
138312
+ return import("./html-3604e3ba.js");
138313
138313
  }
138314
138314
  }
138315
138315
  });
@@ -138362,7 +138362,7 @@ registerLanguage({
138362
138362
  mimetypes: ["text/javascript"],
138363
138363
  loader: () => {
138364
138364
  {
138365
- return import("./javascript-0c8adee5.js");
138365
+ return import("./javascript-318c4e10.js");
138366
138366
  }
138367
138367
  }
138368
138368
  });
@@ -138461,7 +138461,7 @@ registerLanguage({
138461
138461
  mimetypes: ["application/liquid"],
138462
138462
  loader: () => {
138463
138463
  {
138464
- return import("./liquid-acc1cf0e.js");
138464
+ return import("./liquid-fc2531a6.js");
138465
138465
  }
138466
138466
  }
138467
138467
  });
@@ -138509,7 +138509,7 @@ registerLanguage({
138509
138509
  aliases: ["MDX", "mdx"],
138510
138510
  loader: () => {
138511
138511
  {
138512
- return import("./mdx-85dd6b94.js");
138512
+ return import("./mdx-91f5933a.js");
138513
138513
  }
138514
138514
  }
138515
138515
  });
@@ -138768,7 +138768,7 @@ registerLanguage({
138768
138768
  firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
138769
138769
  loader: () => {
138770
138770
  {
138771
- return import("./python-48d1977e.js");
138771
+ return import("./python-a455e25d.js");
138772
138772
  }
138773
138773
  }
138774
138774
  });
@@ -138817,7 +138817,7 @@ registerLanguage({
138817
138817
  mimetypes: ["text/x-cshtml"],
138818
138818
  loader: () => {
138819
138819
  {
138820
- return import("./razor-22507fac.js");
138820
+ return import("./razor-8f4c02a1.js");
138821
138821
  }
138822
138822
  }
138823
138823
  });
@@ -139153,7 +139153,7 @@ registerLanguage({
139153
139153
  mimetypes: ["text/typescript"],
139154
139154
  loader: () => {
139155
139155
  {
139156
- return import("./typescript-5f93813d.js");
139156
+ return import("./typescript-b387ecba.js");
139157
139157
  }
139158
139158
  }
139159
139159
  });
@@ -139237,7 +139237,7 @@ registerLanguage({
139237
139237
  mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
139238
139238
  loader: () => {
139239
139239
  {
139240
- return import("./xml-bda370ff.js");
139240
+ return import("./xml-df668467.js");
139241
139241
  }
139242
139242
  }
139243
139243
  });
@@ -139254,7 +139254,7 @@ registerLanguage({
139254
139254
  mimetypes: ["application/x-yaml", "text/x-yaml"],
139255
139255
  loader: () => {
139256
139256
  {
139257
- return import("./yaml-5915841b.js");
139257
+ return import("./yaml-44a8e644.js");
139258
139258
  }
139259
139259
  }
139260
139260
  });
@@ -139378,7 +139378,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3(
139378
139378
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
139379
139379
  function getMode$3() {
139380
139380
  {
139381
- return import("./cssMode-f2090bd3.js");
139381
+ return import("./cssMode-f11274aa.js");
139382
139382
  }
139383
139383
  }
139384
139384
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -139509,7 +139509,7 @@ monaco_editor_core_exports$2.languages.html = {
139509
139509
  };
139510
139510
  function getMode$2() {
139511
139511
  {
139512
- return import("./htmlMode-c8640f90.js");
139512
+ return import("./htmlMode-89afac94.js");
139513
139513
  }
139514
139514
  }
139515
139515
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -139607,7 +139607,7 @@ var getWorker = () => getMode$1().then((mode) => mode.getWorker());
139607
139607
  monaco_editor_core_exports$1.languages.json = { jsonDefaults, getWorker };
139608
139608
  function getMode$1() {
139609
139609
  {
139610
- return import("./jsonMode-8ad9852a.js");
139610
+ return import("./jsonMode-45023839.js");
139611
139611
  }
139612
139612
  }
139613
139613
  monaco_editor_core_exports$1.languages.register({
@@ -139883,7 +139883,7 @@ monaco_editor_core_exports.languages.typescript = {
139883
139883
  };
139884
139884
  function getMode() {
139885
139885
  {
139886
- return import("./tsMode-324fb60b.js");
139886
+ return import("./tsMode-b18c77cc.js");
139887
139887
  }
139888
139888
  }
139889
139889
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -191322,6 +191322,14 @@ function MoreActions$1() {
191322
191322
  },
191323
191323
  "parent-theme"
191324
191324
  ),
191325
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
191326
+ DropdownItem,
191327
+ {
191328
+ startContent: /* @__PURE__ */ jsxRuntimeExports.jsx(AiIcon, { className: "size-5" }),
191329
+ children: "AI配置"
191330
+ },
191331
+ "ai-config"
191332
+ ),
191325
191333
  /* @__PURE__ */ jsxRuntimeExports.jsx(
191326
191334
  DropdownItem,
191327
191335
  {
@@ -198164,6 +198172,8 @@ function Welcome(props) {
198164
198172
  }
198165
198173
  const WebsiteToolbar = memo(() => {
198166
198174
  var _a3, _b3;
198175
+ const [isDeploying, setIsDeploying] = useState(false);
198176
+ const setError = useEntifyWrapperStore((state) => state.setGlobalError);
198167
198177
  const website = useWebsite();
198168
198178
  const currentLang = useCurrentLang();
198169
198179
  const previewUrl = usePreviewUrl();
@@ -198173,6 +198183,18 @@ const WebsiteToolbar = memo(() => {
198173
198183
  useEffect(() => {
198174
198184
  setSelectedContent(void 0);
198175
198185
  }, [currentLang, setSelectedContent]);
198186
+ const deployWebsite = useCallback(async () => {
198187
+ try {
198188
+ setIsDeploying(true);
198189
+ } catch (e) {
198190
+ const typedE = e;
198191
+ console.error(e);
198192
+ setError(typedE instanceof Error ? typedE.message : typedE);
198193
+ } finally {
198194
+ setIsDeploying(false);
198195
+ }
198196
+ console.log("deployWebsite");
198197
+ }, [setError]);
198176
198198
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
198177
198199
  "div",
198178
198200
  {
@@ -198211,6 +198233,8 @@ const WebsiteToolbar = memo(() => {
198211
198233
  {
198212
198234
  size: "sm",
198213
198235
  variant: "bordered",
198236
+ isLoading: isDeploying,
198237
+ onPress: deployWebsite,
198214
198238
  children: "部署网站"
198215
198239
  }
198216
198240
  ),
@@ -203913,4 +203937,4 @@ export {
203913
203937
  typescriptDefaults as t,
203914
203938
  useCustomizedMaterials as u
203915
203939
  };
203916
- //# sourceMappingURL=index-0841cd20.js.map
203940
+ //# sourceMappingURL=index-716d5730.js.map