@wix/cli-app 1.1.60 → 1.1.61

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 (92) hide show
  1. package/build/{CreateVersionCommand-Z6F5IKH5.js → CreateVersionCommand-27X5XRUT.js} +14 -14
  2. package/build/{DevCommand-YFEZ4QV5.js → DevCommand-6HTMGZ2M.js} +12 -12
  3. package/build/{GenerateCommand-KCV4YDNN.js → GenerateCommand-7IAUS6BH.js} +105 -41
  4. package/build/{GenerateCommand-KCV4YDNN.js.map → GenerateCommand-7IAUS6BH.js.map} +1 -1
  5. package/build/{LogsCommand-VBMGVYNU.js → LogsCommand-WPUUN3JU.js} +4 -4
  6. package/build/PreviewCommand-CU46IAJE.js +23 -0
  7. package/build/{ReleaseCommand-5F3FPBXT.js → ReleaseCommand-KTVVW67B.js} +14 -14
  8. package/build/{ServeCommand-G4FF4PT3.js → ServeCommand-LXJK73IU.js} +13 -13
  9. package/build/{build-XZI3USNB.js → build-KOJIDD4M.js} +38 -9
  10. package/build/build-KOJIDD4M.js.map +1 -0
  11. package/build/{chunk-HUWYF2ET.js → chunk-2GCKBITG.js} +8 -8
  12. package/build/{chunk-O42QDBJU.js → chunk-63EMUDZG.js} +3 -3
  13. package/build/{chunk-5QZS3HT7.js → chunk-A3UPTTKJ.js} +3 -3
  14. package/build/{chunk-WRWNJYKZ.js → chunk-EL6CIFIN.js} +3 -3
  15. package/build/{chunk-QVGYU6D4.js → chunk-ELYFHAX6.js} +5 -2
  16. package/build/chunk-ELYFHAX6.js.map +1 -0
  17. package/build/{chunk-4VTDNX5T.js → chunk-IL6O6OIL.js} +2 -2
  18. package/build/{chunk-VXE3IWKR.js → chunk-KJF6LWGQ.js} +2 -2
  19. package/build/{chunk-WRPV7SLY.js → chunk-KJRYBTZB.js} +192 -19
  20. package/build/chunk-KJRYBTZB.js.map +1 -0
  21. package/build/{chunk-PKSGXFYA.js → chunk-LOLULZLU.js} +3 -3
  22. package/build/{chunk-IG6IV6VM.js → chunk-MEDHLZDL.js} +3 -3
  23. package/build/{chunk-DGTJGIY2.js → chunk-MKPZBVQD.js} +213 -27
  24. package/build/{chunk-DGTJGIY2.js.map → chunk-MKPZBVQD.js.map} +1 -1
  25. package/build/{chunk-2PTCXTKF.js → chunk-OHF42SKC.js} +5 -5
  26. package/build/{chunk-CNZ3Q5PF.js → chunk-PBUNWOQL.js} +7 -7
  27. package/build/chunk-PBUNWOQL.js.map +1 -0
  28. package/build/{chunk-7CGRTCDC.js → chunk-S7UPYDTK.js} +3 -3
  29. package/build/chunk-SJY44CC7.js +19161 -0
  30. package/build/chunk-SJY44CC7.js.map +1 -0
  31. package/build/{chunk-VZJZSWRE.js → chunk-XBBIROHO.js} +3 -3
  32. package/build/{chunk-36W5H7IG.js → chunk-XCKLCHGL.js} +188 -174
  33. package/build/chunk-XCKLCHGL.js.map +1 -0
  34. package/build/{chunk-USAOCISL.js → chunk-Z7MEHVBF.js} +3 -3
  35. package/build/cloudflare-runtime/entry.js +7158 -53
  36. package/build/cloudflare-runtime/getRegisteredExtensions.js +7096 -16
  37. package/build/index.js +20 -20
  38. package/build/platform-sdk/chunk-BGTZ3RNN.js +2 -0
  39. package/build/platform-sdk/chunk-BGTZ3RNN.js.map +1 -0
  40. package/build/platform-sdk/{chunk-QV4VBCJB.js → chunk-FWUYJ3UR.js} +2 -2
  41. package/build/platform-sdk/chunk-NAPHVUFM.js +2 -0
  42. package/build/platform-sdk/{chunk-42XIZ4MH.js.map → chunk-NAPHVUFM.js.map} +1 -1
  43. package/build/platform-sdk/{chunk-EERHWVVD.js → chunk-XYIDODIB.js} +2 -2
  44. package/build/platform-sdk/dashboard.js +1 -1
  45. package/build/platform-sdk/dashboard.js.map +1 -1
  46. package/build/platform-sdk/editor.js +2 -2
  47. package/build/platform-sdk/editor.js.map +1 -1
  48. package/build/platform-sdk/sdk-context.js +1 -1
  49. package/build/platform-sdk/sdk-context.js.map +1 -1
  50. package/build/platform-sdk/site.js +1 -1
  51. package/build/platform-sdk/site.js.map +1 -1
  52. package/build/platform-sdk/web-methods.js +1 -1
  53. package/build/platform-sdk/web-methods.js.map +1 -1
  54. package/build/{preview-VAHHFTRZ.js → preview-YEREVN42.js} +12 -12
  55. package/build/{render-command-3AYSQXHN.js → render-command-H5DHMFOD.js} +6 -6
  56. package/package.json +7 -5
  57. package/schemas/custom-element.json +1 -1
  58. package/templates/custom-element/files/element.module.css.ejs +18 -5
  59. package/templates/custom-element/files/element.tsx.ejs +8 -5
  60. package/templates/custom-element/files/panel.tsx.ejs +25 -12
  61. package/templates/web-method/files/placeholder.ts.ejs +1 -1
  62. package/build/PreviewCommand-3OMHWDW6.js +0 -23
  63. package/build/build-XZI3USNB.js.map +0 -1
  64. package/build/chunk-36W5H7IG.js.map +0 -1
  65. package/build/chunk-CNZ3Q5PF.js.map +0 -1
  66. package/build/chunk-FTC5AK3Y.js +0 -1367
  67. package/build/chunk-FTC5AK3Y.js.map +0 -1
  68. package/build/chunk-QVGYU6D4.js.map +0 -1
  69. package/build/chunk-WRPV7SLY.js.map +0 -1
  70. package/build/platform-sdk/chunk-42XIZ4MH.js +0 -2
  71. /package/build/{CreateVersionCommand-Z6F5IKH5.js.map → CreateVersionCommand-27X5XRUT.js.map} +0 -0
  72. /package/build/{DevCommand-YFEZ4QV5.js.map → DevCommand-6HTMGZ2M.js.map} +0 -0
  73. /package/build/{LogsCommand-VBMGVYNU.js.map → LogsCommand-WPUUN3JU.js.map} +0 -0
  74. /package/build/{PreviewCommand-3OMHWDW6.js.map → PreviewCommand-CU46IAJE.js.map} +0 -0
  75. /package/build/{ReleaseCommand-5F3FPBXT.js.map → ReleaseCommand-KTVVW67B.js.map} +0 -0
  76. /package/build/{ServeCommand-G4FF4PT3.js.map → ServeCommand-LXJK73IU.js.map} +0 -0
  77. /package/build/{chunk-HUWYF2ET.js.map → chunk-2GCKBITG.js.map} +0 -0
  78. /package/build/{chunk-O42QDBJU.js.map → chunk-63EMUDZG.js.map} +0 -0
  79. /package/build/{chunk-5QZS3HT7.js.map → chunk-A3UPTTKJ.js.map} +0 -0
  80. /package/build/{chunk-WRWNJYKZ.js.map → chunk-EL6CIFIN.js.map} +0 -0
  81. /package/build/{chunk-4VTDNX5T.js.map → chunk-IL6O6OIL.js.map} +0 -0
  82. /package/build/{chunk-VXE3IWKR.js.map → chunk-KJF6LWGQ.js.map} +0 -0
  83. /package/build/{chunk-PKSGXFYA.js.map → chunk-LOLULZLU.js.map} +0 -0
  84. /package/build/{chunk-IG6IV6VM.js.map → chunk-MEDHLZDL.js.map} +0 -0
  85. /package/build/{chunk-2PTCXTKF.js.map → chunk-OHF42SKC.js.map} +0 -0
  86. /package/build/{chunk-7CGRTCDC.js.map → chunk-S7UPYDTK.js.map} +0 -0
  87. /package/build/{chunk-VZJZSWRE.js.map → chunk-XBBIROHO.js.map} +0 -0
  88. /package/build/{chunk-USAOCISL.js.map → chunk-Z7MEHVBF.js.map} +0 -0
  89. /package/build/platform-sdk/{chunk-QV4VBCJB.js.map → chunk-FWUYJ3UR.js.map} +0 -0
  90. /package/build/platform-sdk/{chunk-EERHWVVD.js.map → chunk-XYIDODIB.js.map} +0 -0
  91. /package/build/{preview-VAHHFTRZ.js.map → preview-YEREVN42.js.map} +0 -0
  92. /package/build/{render-command-3AYSQXHN.js.map → render-command-H5DHMFOD.js.map} +0 -0
@@ -5,24 +5,24 @@ import {
5
5
  } from "./chunk-FH6U3Y37.js";
6
6
  import {
7
7
  PreviewCommand
8
- } from "./chunk-HUWYF2ET.js";
8
+ } from "./chunk-2GCKBITG.js";
9
9
  import {
10
10
  assertBuildOutputExists
11
- } from "./chunk-2PTCXTKF.js";
12
- import "./chunk-CNZ3Q5PF.js";
13
- import "./chunk-VZJZSWRE.js";
14
- import "./chunk-IG6IV6VM.js";
11
+ } from "./chunk-OHF42SKC.js";
12
+ import "./chunk-PBUNWOQL.js";
13
+ import "./chunk-XBBIROHO.js";
14
+ import "./chunk-MEDHLZDL.js";
15
15
  import {
16
16
  useARMClient
17
- } from "./chunk-FTC5AK3Y.js";
17
+ } from "./chunk-SJY44CC7.js";
18
18
  import {
19
19
  useBackendComponents
20
- } from "./chunk-WRWNJYKZ.js";
21
- import "./chunk-USAOCISL.js";
20
+ } from "./chunk-EL6CIFIN.js";
21
+ import "./chunk-Z7MEHVBF.js";
22
22
  import "./chunk-QZOQAFHK.js";
23
- import "./chunk-5QZS3HT7.js";
24
- import "./chunk-WRPV7SLY.js";
25
- import "./chunk-VXE3IWKR.js";
23
+ import "./chunk-A3UPTTKJ.js";
24
+ import "./chunk-KJRYBTZB.js";
25
+ import "./chunk-KJF6LWGQ.js";
26
26
  import {
27
27
  BackendDeploymentClient,
28
28
  isHttpError,
@@ -31,7 +31,7 @@ import {
31
31
  useDevCenterClient,
32
32
  useHttpClient,
33
33
  useProjectModel
34
- } from "./chunk-DGTJGIY2.js";
34
+ } from "./chunk-MKPZBVQD.js";
35
35
  import {
36
36
  Alert,
37
37
  Box_default,
@@ -48,7 +48,7 @@ import {
48
48
  useAsync,
49
49
  useAsyncCallback,
50
50
  useTranslation
51
- } from "./chunk-36W5H7IG.js";
51
+ } from "./chunk-XCKLCHGL.js";
52
52
  import {
53
53
  __toESM,
54
54
  init_esm_shims
@@ -266,4 +266,4 @@ var CreateVersionCommand = ({ baseUrl, siteIdOverride, preApprovePreview, versio
266
266
  export {
267
267
  CreateVersionCommand
268
268
  };
269
- //# sourceMappingURL=CreateVersionCommand-Z6F5IKH5.js.map
269
+ //# sourceMappingURL=CreateVersionCommand-27X5XRUT.js.map
@@ -2,16 +2,16 @@ import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  useWixCliAppBi
5
- } from "./chunk-PKSGXFYA.js";
5
+ } from "./chunk-LOLULZLU.js";
6
6
  import {
7
7
  SiteProvider,
8
8
  SiteSelector,
9
9
  useMetasiteManagerClient,
10
10
  usePlatform
11
- } from "./chunk-CNZ3Q5PF.js";
11
+ } from "./chunk-PBUNWOQL.js";
12
12
  import {
13
13
  createLogger
14
- } from "./chunk-4VTDNX5T.js";
14
+ } from "./chunk-IL6O6OIL.js";
15
15
  import {
16
16
  DevEnvironmentProvider,
17
17
  redirectWithCSMv2FTs,
@@ -22,17 +22,17 @@ import {
22
22
  useResolveDashboardExtensionDevUrl,
23
23
  useResolvePlatformDevUrl,
24
24
  useSite
25
- } from "./chunk-FTC5AK3Y.js";
25
+ } from "./chunk-SJY44CC7.js";
26
26
  import {
27
27
  useBackendComponents
28
- } from "./chunk-WRWNJYKZ.js";
29
- import "./chunk-USAOCISL.js";
28
+ } from "./chunk-EL6CIFIN.js";
29
+ import "./chunk-Z7MEHVBF.js";
30
30
  import "./chunk-QZOQAFHK.js";
31
- import "./chunk-5QZS3HT7.js";
31
+ import "./chunk-A3UPTTKJ.js";
32
32
  import {
33
33
  createCustomElementConfig
34
- } from "./chunk-WRPV7SLY.js";
35
- import "./chunk-VXE3IWKR.js";
34
+ } from "./chunk-KJRYBTZB.js";
35
+ import "./chunk-KJF6LWGQ.js";
36
36
  import {
37
37
  ComponentType,
38
38
  DevCenterComponent,
@@ -51,7 +51,7 @@ import {
51
51
  useProjectModel,
52
52
  userConfigSchema,
53
53
  writeJson
54
- } from "./chunk-DGTJGIY2.js";
54
+ } from "./chunk-MKPZBVQD.js";
55
55
  import {
56
56
  Alert,
57
57
  Box_default,
@@ -74,7 +74,7 @@ import {
74
74
  useExit,
75
75
  useTranslation,
76
76
  use_input_default
77
- } from "./chunk-36W5H7IG.js";
77
+ } from "./chunk-XCKLCHGL.js";
78
78
  import {
79
79
  __toESM,
80
80
  init_esm_shims
@@ -1165,4 +1165,4 @@ export {
1165
1165
  DevCommand,
1166
1166
  DevEnvironmentProvider
1167
1167
  };
1168
- //# sourceMappingURL=DevCommand-YFEZ4QV5.js.map
1168
+ //# sourceMappingURL=DevCommand-6HTMGZ2M.js.map
@@ -2,20 +2,20 @@ import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  createI18nT
5
- } from "./chunk-O42QDBJU.js";
6
- import "./chunk-QVGYU6D4.js";
5
+ } from "./chunk-63EMUDZG.js";
6
+ import "./chunk-ELYFHAX6.js";
7
7
  import {
8
8
  useWixCliAppBi
9
- } from "./chunk-PKSGXFYA.js";
9
+ } from "./chunk-LOLULZLU.js";
10
10
  import {
11
11
  useBackendComponents
12
- } from "./chunk-WRWNJYKZ.js";
12
+ } from "./chunk-EL6CIFIN.js";
13
13
  import {
14
14
  execaCommand
15
15
  } from "./chunk-QZOQAFHK.js";
16
16
  import {
17
17
  require_baseUniq
18
- } from "./chunk-VXE3IWKR.js";
18
+ } from "./chunk-KJF6LWGQ.js";
19
19
  import {
20
20
  ComponentType,
21
21
  DASHBOARD_MENU_PLUGINS_DIR,
@@ -67,7 +67,7 @@ import {
67
67
  uuidValidation,
68
68
  writeJson,
69
69
  writePackageJson
70
- } from "./chunk-DGTJGIY2.js";
70
+ } from "./chunk-MKPZBVQD.js";
71
71
  import {
72
72
  AsyncCallbackStatus,
73
73
  Box_default,
@@ -76,6 +76,7 @@ import {
76
76
  ConfirmInput,
77
77
  ErrorDetails,
78
78
  InputLabel,
79
+ Learn,
79
80
  Link,
80
81
  SelectGroupsInput,
81
82
  SelectInput,
@@ -91,7 +92,7 @@ import {
91
92
  useAsyncCallback,
92
93
  useTranslation,
93
94
  z
94
- } from "./chunk-36W5H7IG.js";
95
+ } from "./chunk-XCKLCHGL.js";
95
96
  import {
96
97
  __commonJS,
97
98
  __dirname,
@@ -9483,17 +9484,13 @@ var DASHBOARD_PAGE_TEMPLATE = path3.resolve(
9483
9484
  );
9484
9485
  async function generateDashboardPage(projectFolder, route, title, categoryId) {
9485
9486
  const cwd = path3.join(getDashboardPagesDir(projectFolder), route);
9486
- const basePageConfig = {
9487
+ const sidebarConfig = categoryId ? { categoryId } : void 0;
9488
+ const pageConfig = {
9487
9489
  $schema: "https://dev.wix.com/wix-cli/schemas/dashboard-page.json",
9488
9490
  id: randomUUID(),
9489
- title
9491
+ title,
9492
+ sidebar: sidebarConfig
9490
9493
  };
9491
- const pageConfig = categoryId ? {
9492
- ...basePageConfig,
9493
- sidebar: {
9494
- categoryId
9495
- }
9496
- } : basePageConfig;
9497
9494
  const pageConfigJSON = toJsonString(pageConfig, { spaces: 2 });
9498
9495
  const relativeRoutePath = path3.join(DASHBOARD_PAGES_DIR, route, "page.tsx");
9499
9496
  return await componentGenerator({
@@ -10005,7 +10002,7 @@ var GenerateDashboardPage = () => {
10005
10002
  {
10006
10003
  i18nKey: "generate_command.generation.learn_more",
10007
10004
  values: { extensionType },
10008
- components: [/* @__PURE__ */ import_react3.default.createElement(Link, { url: "https://wix.to/7W3nYUg" })]
10005
+ components: [/* @__PURE__ */ import_react3.default.createElement(Learn, null), /* @__PURE__ */ import_react3.default.createElement(Link, { url: "https://wix.to/7W3nYUg" })]
10009
10006
  }
10010
10007
  )));
10011
10008
  };
@@ -10226,7 +10223,7 @@ var GenerateEmbeddedScript = () => {
10226
10223
  {
10227
10224
  i18nKey: "generate_command.generation.learn_more",
10228
10225
  values: { extensionType },
10229
- components: [/* @__PURE__ */ import_react4.default.createElement(Link, { url: "https://wix.to/CDGhNZG" })]
10226
+ components: [/* @__PURE__ */ import_react4.default.createElement(Learn, null), /* @__PURE__ */ import_react4.default.createElement(Link, { url: "https://wix.to/CDGhNZG" })]
10230
10227
  }
10231
10228
  )));
10232
10229
  };
@@ -10321,7 +10318,7 @@ var GenerateSidebarCategory = () => {
10321
10318
  {
10322
10319
  i18nKey: "generate_command.generation.learn_more",
10323
10320
  values: { extensionType },
10324
- components: [/* @__PURE__ */ import_react5.default.createElement(Link, { url: "https://wix.to/7W3nYUg" })]
10321
+ components: [/* @__PURE__ */ import_react5.default.createElement(Learn, null), /* @__PURE__ */ import_react5.default.createElement(Link, { url: "https://wix.to/7W3nYUg" })]
10325
10322
  }
10326
10323
  )));
10327
10324
  };
@@ -10340,23 +10337,29 @@ var CUSTOM_ELEMENT_TEMPLATE = path5.resolve(
10340
10337
  __dirname,
10341
10338
  "../templates/custom-element"
10342
10339
  );
10343
- async function generateCustomElement(projectFolder, folder, name) {
10340
+ async function generateCustomElement(projectFolder, folder, name, dashboardPageId) {
10344
10341
  const readablePath = path5.join(SITE_WIDGETS_DIR, folder);
10345
10342
  const cwd = path5.join(getSiteWidgetsDir(projectFolder), folder);
10343
+ const behaviorsConfig = dashboardPageId ? {
10344
+ dashboard: {
10345
+ dashboardPageComponentId: dashboardPageId
10346
+ }
10347
+ } : void 0;
10346
10348
  const customElementConfig = {
10347
10349
  $schema: "https://dev.wix.com/wix-cli/schemas/custom-element.json",
10348
10350
  id: randomUUID4(),
10349
10351
  name,
10350
10352
  width: {
10351
- defaultWidth: 300,
10353
+ defaultWidth: 450,
10352
10354
  allowStretch: true
10353
10355
  },
10354
10356
  height: {
10355
- defaultHeight: 150
10357
+ defaultHeight: 250
10356
10358
  },
10357
10359
  installation: {
10358
10360
  autoAddToSite: true
10359
- }
10361
+ },
10362
+ behaviors: behaviorsConfig
10360
10363
  };
10361
10364
  const customElementConfigJSON = toJsonString(customElementConfig, {
10362
10365
  spaces: 2
@@ -10380,20 +10383,32 @@ var GenerateCustomElement = () => {
10380
10383
  const { model } = useProjectModel();
10381
10384
  const [elementName, setElementName] = (0, import_react6.useState)();
10382
10385
  const [elementFolder, setElementFolder] = (0, import_react6.useState)();
10386
+ const [linkDashboardPage, setLinkDashboardPage] = (0, import_react6.useState)();
10387
+ const [generationData, setGenerationData] = (0, import_react6.useState)();
10383
10388
  const validateFolderName = useCustomElementDirectoryValidation("Site widget");
10384
10389
  const validateName = useCustomElementNameValidation();
10390
+ const { getExtensions } = useExtensions();
10385
10391
  const [finishedInstallation, setFinishedInstallation] = (0, import_react6.useState)(false);
10386
10392
  const defaultElementFolder = (0, import_lodash3.kebabCase)(elementName);
10393
+ const dashboardPages = getExtensions("DashboardPage");
10394
+ const dashboardPagesOptions = dashboardPages.map(
10395
+ ({ id, title }) => ({
10396
+ value: id,
10397
+ title
10398
+ })
10399
+ );
10400
+ const dashboardPagesExist = Boolean(dashboardPages.length);
10387
10401
  const extensionType = t2("generate_command.flow.custom_element").toLowerCase();
10388
10402
  const generationTask = useGenerationTask(async () => {
10389
- if (elementFolder && elementName) {
10403
+ if (generationData) {
10390
10404
  return generateCustomElement(
10391
10405
  model.projectFolder,
10392
- elementFolder,
10393
- elementName
10406
+ generationData.folder,
10407
+ generationData.name,
10408
+ generationData.dashboardPageId
10394
10409
  );
10395
10410
  }
10396
- }, [elementFolder, elementName]);
10411
+ }, [generationData]);
10397
10412
  return /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(
10398
10413
  TextInput,
10399
10414
  {
@@ -10427,9 +10442,58 @@ var GenerateCustomElement = () => {
10427
10442
  }
10428
10443
  });
10429
10444
  setElementFolder(value);
10445
+ if (!dashboardPagesExist) {
10446
+ setGenerationData({
10447
+ name: elementName,
10448
+ folder: value
10449
+ });
10450
+ }
10430
10451
  },
10431
10452
  validate: validateFolderName
10432
10453
  }
10454
+ ), elementName && elementFolder && dashboardPagesExist && /* @__PURE__ */ import_react6.default.createElement(
10455
+ ConfirmInput,
10456
+ {
10457
+ label: t2("generate_command.custom_element.link_dashboard_page"),
10458
+ onSubmit: (shouldLinkDashboardPage) => {
10459
+ bi.cliFlowStepAnswered({
10460
+ question: t2(
10461
+ "generate_command.custom_element.link_dashboard_page"
10462
+ ),
10463
+ questionKey: "generate_command.custom_element.link_dashboard_page",
10464
+ answer: String(shouldLinkDashboardPage),
10465
+ additionalInfo: { extensionType }
10466
+ });
10467
+ setLinkDashboardPage(shouldLinkDashboardPage);
10468
+ if (!shouldLinkDashboardPage) {
10469
+ setGenerationData({
10470
+ name: elementName,
10471
+ folder: elementFolder
10472
+ });
10473
+ }
10474
+ }
10475
+ }
10476
+ ), elementName && elementFolder && dashboardPagesExist && linkDashboardPage && /* @__PURE__ */ import_react6.default.createElement(
10477
+ SelectInput,
10478
+ {
10479
+ label: t2("generate_command.custom_element.choose_dashboard_page"),
10480
+ options: dashboardPagesOptions,
10481
+ onSubmit: (option) => {
10482
+ bi.cliFlowStepAnswered({
10483
+ question: t2(
10484
+ "generate_command.custom_element.choose_dashboard_page"
10485
+ ),
10486
+ questionKey: "generate_command.custom_element.choose_dashboard_page",
10487
+ answer: option.title,
10488
+ additionalInfo: { extensionType }
10489
+ });
10490
+ setGenerationData({
10491
+ name: elementName,
10492
+ folder: elementFolder,
10493
+ dashboardPageId: option.value
10494
+ });
10495
+ }
10496
+ }
10433
10497
  ), (0, import_react6.useMemo)(
10434
10498
  () => (0, import_variant10.match)(generationTask, {
10435
10499
  Success: ({ hasUpdatedDependencies }) => {
@@ -10463,7 +10527,7 @@ var GenerateCustomElement = () => {
10463
10527
  {
10464
10528
  i18nKey: "generate_command.generation.learn_more",
10465
10529
  values: { extensionType },
10466
- components: [/* @__PURE__ */ import_react6.default.createElement(Link, { url: "https://wix.to/rEfCfbY" })]
10530
+ components: [/* @__PURE__ */ import_react6.default.createElement(Learn, null), /* @__PURE__ */ import_react6.default.createElement(Link, { url: "https://wix.to/rEfCfbY" })]
10467
10531
  }
10468
10532
  )));
10469
10533
  };
@@ -10609,7 +10673,7 @@ var GenerateDashboardModal = () => {
10609
10673
  {
10610
10674
  i18nKey: "generate_command.generation.learn_more",
10611
10675
  values: { extensionType },
10612
- components: [/* @__PURE__ */ import_react7.default.createElement(Link, { url: "https://wix.to/zh5ZfMK" })]
10676
+ components: [/* @__PURE__ */ import_react7.default.createElement(Learn, null), /* @__PURE__ */ import_react7.default.createElement(Link, { url: "https://wix.to/zh5ZfMK" })]
10613
10677
  }
10614
10678
  )));
10615
10679
  };
@@ -10802,7 +10866,7 @@ var GenerateServicePlugin = () => {
10802
10866
  {
10803
10867
  i18nKey: "generate_command.generation.learn_more",
10804
10868
  values: { extensionType },
10805
- components: [/* @__PURE__ */ import_react8.default.createElement(Link, { url: "https://wix.to/YWyluDf" })]
10869
+ components: [/* @__PURE__ */ import_react8.default.createElement(Learn, null), /* @__PURE__ */ import_react8.default.createElement(Link, { url: "https://wix.to/YWyluDf" })]
10806
10870
  }
10807
10871
  )));
10808
10872
  };
@@ -11044,7 +11108,7 @@ var DashboardPluginGeneratedNote = ({ backofficeExtensionWidget }) => {
11044
11108
  {
11045
11109
  i18nKey: "generate_command.generation.learn_more",
11046
11110
  values: { extensionType },
11047
- components: [/* @__PURE__ */ import_react11.default.createElement(Link, { url: "https://wix.to/dFFuEki" })]
11111
+ components: [/* @__PURE__ */ import_react11.default.createElement(Learn, null), /* @__PURE__ */ import_react11.default.createElement(Link, { url: "https://wix.to/dFFuEki" })]
11048
11112
  }
11049
11113
  ));
11050
11114
  };
@@ -11483,7 +11547,7 @@ var DashboardMenuPluginGeneratedNote = ({ backofficeMenuItem }) => {
11483
11547
  {
11484
11548
  i18nKey: "generate_command.generation.learn_more",
11485
11549
  values: { extensionType },
11486
- components: [/* @__PURE__ */ import_react16.default.createElement(Link, { url: "https://wix.to/YwaogfU" })]
11550
+ components: [/* @__PURE__ */ import_react16.default.createElement(Learn, null), /* @__PURE__ */ import_react16.default.createElement(Link, { url: "https://wix.to/YwaogfU" })]
11487
11551
  }
11488
11552
  ));
11489
11553
  };
@@ -12053,7 +12117,7 @@ var SitePluginWizard = ({ placements }) => {
12053
12117
  {
12054
12118
  i18nKey: "generate_command.generation.learn_more",
12055
12119
  values: { extensionType },
12056
- components: [/* @__PURE__ */ import_react20.default.createElement(Link, { url: "https://wix.to/rEfCfbY" })]
12120
+ components: [/* @__PURE__ */ import_react20.default.createElement(Learn, null), /* @__PURE__ */ import_react20.default.createElement(Link, { url: "https://wix.to/rEfCfbY" })]
12057
12121
  }
12058
12122
  )));
12059
12123
  };
@@ -12162,7 +12226,7 @@ var GenerateApi = () => {
12162
12226
  {
12163
12227
  i18nKey: "generate_command.generation.learn_more",
12164
12228
  values: { extensionType },
12165
- components: [/* @__PURE__ */ import_react22.default.createElement(Link, { url: "https://wix.to/BEkD5a1" })]
12229
+ components: [/* @__PURE__ */ import_react22.default.createElement(Learn, null), /* @__PURE__ */ import_react22.default.createElement(Link, { url: "https://wix.to/BEkD5a1" })]
12166
12230
  }
12167
12231
  )));
12168
12232
  };
@@ -12256,7 +12320,7 @@ var GenerateEvent = () => {
12256
12320
  {
12257
12321
  i18nKey: "generate_command.generation.learn_more",
12258
12322
  values: { extensionType },
12259
- components: [/* @__PURE__ */ import_react23.default.createElement(Link, { url: "https://wix.to/BEkD5a1" })]
12323
+ components: [/* @__PURE__ */ import_react23.default.createElement(Learn, null), /* @__PURE__ */ import_react23.default.createElement(Link, { url: "https://wix.to/BEkD5a1" })]
12260
12324
  }
12261
12325
  )));
12262
12326
  };
@@ -12363,7 +12427,7 @@ var GenerateWebMethod = () => {
12363
12427
  {
12364
12428
  i18nKey: "generate_command.generation.learn_more",
12365
12429
  values: { extensionType },
12366
- components: [/* @__PURE__ */ import_react24.default.createElement(Link, { url: "https://wix.to/BEkD5a1" })]
12430
+ components: [/* @__PURE__ */ import_react24.default.createElement(Learn, null), /* @__PURE__ */ import_react24.default.createElement(Link, { url: "https://wix.to/BEkD5a1" })]
12367
12431
  }
12368
12432
  )));
12369
12433
  };
@@ -12435,11 +12499,11 @@ var GenerateCommand = () => {
12435
12499
  title: t2("generate_command.flow.api.title"),
12436
12500
  value: DevCenterGenerateFlow.Api()
12437
12501
  },
12438
- // {
12439
- // key: 'web-method-module',
12440
- // title: t('generate_command.flow.web_method.title'),
12441
- // value: DevCenterGenerateFlow.WebMethod(),
12442
- // },
12502
+ {
12503
+ key: "web-method-module",
12504
+ title: t2("generate_command.flow.web_method.title"),
12505
+ value: DevCenterGenerateFlow.WebMethod()
12506
+ },
12443
12507
  {
12444
12508
  key: "event",
12445
12509
  title: t2("generate_command.flow.event"),
@@ -12517,4 +12581,4 @@ ejs/lib/ejs.js:
12517
12581
  * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
12518
12582
  *)
12519
12583
  */
12520
- //# sourceMappingURL=GenerateCommand-KCV4YDNN.js.map
12584
+ //# sourceMappingURL=GenerateCommand-7IAUS6BH.js.map