@wix/cli-app 1.1.71 → 1.1.72

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 (70) hide show
  1. package/build/{CreateVersionCommand-NCNK3B4H.js → CreateVersionCommand-I6EHK2T2.js} +14 -14
  2. package/build/{DevCommand-YDLV2KJM.js → DevCommand-DLODMFKI.js} +12 -12
  3. package/build/{GenerateCommand-MHQOLSPN.js → GenerateCommand-5KR6GRHW.js} +707 -509
  4. package/build/GenerateCommand-5KR6GRHW.js.map +1 -0
  5. package/build/{LogsCommand-727BQUJX.js → LogsCommand-EAOVZZG6.js} +4 -4
  6. package/build/PreviewCommand-B6XM6FQV.js +23 -0
  7. package/build/{ReleaseCommand-VU6V7GEV.js → ReleaseCommand-W36AG2IN.js} +15 -15
  8. package/build/{ServeCommand-KBS3RLPD.js → ServeCommand-BEXBK5ZA.js} +14 -14
  9. package/build/ServeCommand-BEXBK5ZA.js.map +1 -0
  10. package/build/{build-E34NPSSH.js → build-KITE7EW3.js} +33 -14
  11. package/build/build-KITE7EW3.js.map +1 -0
  12. package/build/{chunk-P7PN4CHV.js → chunk-4JQ75QTB.js} +3 -3
  13. package/build/{chunk-PZFZCK52.js → chunk-5KBGN6AI.js} +143 -58
  14. package/build/{chunk-PZFZCK52.js.map → chunk-5KBGN6AI.js.map} +1 -1
  15. package/build/{chunk-GTZDYTFO.js → chunk-AKMZVY3B.js} +3 -3
  16. package/build/{chunk-75XWKPKF.js → chunk-AU6RLQTX.js} +3 -3
  17. package/build/{chunk-VVLESE4P.js → chunk-DN2W5I6V.js} +4 -2
  18. package/build/chunk-DN2W5I6V.js.map +1 -0
  19. package/build/{chunk-4R3KUQGQ.js → chunk-EK4R4AAZ.js} +3 -3
  20. package/build/{chunk-EAPMWJ4C.js → chunk-EQX4ZNQY.js} +28 -30
  21. package/build/{chunk-EAPMWJ4C.js.map → chunk-EQX4ZNQY.js.map} +1 -1
  22. package/build/{chunk-A6GRJNEC.js → chunk-EZYYTB4A.js} +16 -8
  23. package/build/chunk-EZYYTB4A.js.map +1 -0
  24. package/build/{chunk-IE6RONCN.js → chunk-F6K4Z645.js} +5 -5
  25. package/build/{chunk-HY44AJBX.js → chunk-FUJL6MQF.js} +10 -2
  26. package/build/chunk-FUJL6MQF.js.map +1 -0
  27. package/build/{chunk-JXZFXR5O.js → chunk-JHRMWYBU.js} +3 -3
  28. package/build/{chunk-FG4PQXAC.js → chunk-JVG7ATK2.js} +3 -3
  29. package/build/{chunk-N4ETYB2B.js → chunk-M7NEF3JI.js} +5 -5
  30. package/build/{chunk-G3X4DX2P.js → chunk-MXNYBCOX.js} +8975 -8690
  31. package/build/chunk-MXNYBCOX.js.map +1 -0
  32. package/build/{chunk-MRMIQOH4.js → chunk-OU2SCVZ4.js} +4 -3
  33. package/build/{chunk-Q2DE27PN.js → chunk-P7Z3QMUB.js} +3 -3
  34. package/build/{chunk-DQXLAGEX.js → chunk-U7NOLQSJ.js} +2 -2
  35. package/build/{chunk-PH2UYNX4.js → chunk-VYH54DVP.js} +8 -8
  36. package/build/index.js +20 -20
  37. package/build/{preview-NOGUOO4T.js → preview-MYW7A4XF.js} +12 -12
  38. package/build/{render-command-WBYARJYH.js → render-command-5UQ5JPA6.js} +6 -6
  39. package/package.json +7 -6
  40. package/templates/blocks-support/dependencies.json +6 -0
  41. package/templates/blocks-widget/files/api.ts.ejs +1 -1
  42. package/templates/blocks-widget/files/widget.ts.ejs +8 -1
  43. package/templates/blocks-widget-panel/files/panel.ts.ejs +8 -0
  44. package/build/GenerateCommand-MHQOLSPN.js.map +0 -1
  45. package/build/PreviewCommand-RZYVEWL4.js +0 -23
  46. package/build/ServeCommand-KBS3RLPD.js.map +0 -1
  47. package/build/build-E34NPSSH.js.map +0 -1
  48. package/build/chunk-A6GRJNEC.js.map +0 -1
  49. package/build/chunk-G3X4DX2P.js.map +0 -1
  50. package/build/chunk-HY44AJBX.js.map +0 -1
  51. package/build/chunk-VVLESE4P.js.map +0 -1
  52. /package/build/{CreateVersionCommand-NCNK3B4H.js.map → CreateVersionCommand-I6EHK2T2.js.map} +0 -0
  53. /package/build/{DevCommand-YDLV2KJM.js.map → DevCommand-DLODMFKI.js.map} +0 -0
  54. /package/build/{LogsCommand-727BQUJX.js.map → LogsCommand-EAOVZZG6.js.map} +0 -0
  55. /package/build/{PreviewCommand-RZYVEWL4.js.map → PreviewCommand-B6XM6FQV.js.map} +0 -0
  56. /package/build/{ReleaseCommand-VU6V7GEV.js.map → ReleaseCommand-W36AG2IN.js.map} +0 -0
  57. /package/build/{chunk-P7PN4CHV.js.map → chunk-4JQ75QTB.js.map} +0 -0
  58. /package/build/{chunk-GTZDYTFO.js.map → chunk-AKMZVY3B.js.map} +0 -0
  59. /package/build/{chunk-75XWKPKF.js.map → chunk-AU6RLQTX.js.map} +0 -0
  60. /package/build/{chunk-4R3KUQGQ.js.map → chunk-EK4R4AAZ.js.map} +0 -0
  61. /package/build/{chunk-IE6RONCN.js.map → chunk-F6K4Z645.js.map} +0 -0
  62. /package/build/{chunk-JXZFXR5O.js.map → chunk-JHRMWYBU.js.map} +0 -0
  63. /package/build/{chunk-FG4PQXAC.js.map → chunk-JVG7ATK2.js.map} +0 -0
  64. /package/build/{chunk-N4ETYB2B.js.map → chunk-M7NEF3JI.js.map} +0 -0
  65. /package/build/{chunk-MRMIQOH4.js.map → chunk-OU2SCVZ4.js.map} +0 -0
  66. /package/build/{chunk-Q2DE27PN.js.map → chunk-P7Z3QMUB.js.map} +0 -0
  67. /package/build/{chunk-DQXLAGEX.js.map → chunk-U7NOLQSJ.js.map} +0 -0
  68. /package/build/{chunk-PH2UYNX4.js.map → chunk-VYH54DVP.js.map} +0 -0
  69. /package/build/{preview-NOGUOO4T.js.map → preview-MYW7A4XF.js.map} +0 -0
  70. /package/build/{render-command-WBYARJYH.js.map → render-command-5UQ5JPA6.js.map} +0 -0
@@ -9,14 +9,14 @@ import {
9
9
  readPackageJson,
10
10
  useProjectModel,
11
11
  writePackageJson
12
- } from "./chunk-PZFZCK52.js";
12
+ } from "./chunk-5KBGN6AI.js";
13
13
  import {
14
14
  CliError,
15
15
  CliErrorCode,
16
16
  require_lib,
17
17
  require_react,
18
18
  z
19
- } from "./chunk-VVLESE4P.js";
19
+ } from "./chunk-DN2W5I6V.js";
20
20
  import {
21
21
  __commonJS,
22
22
  __require,
@@ -9322,6 +9322,7 @@ init_esm_shims();
9322
9322
  export {
9323
9323
  useBackendComponents,
9324
9324
  require_lodash,
9325
+ dependenciesUpdater,
9325
9326
  componentGenerator
9326
9327
  };
9327
9328
  /*! Bundled license information:
@@ -9345,4 +9346,4 @@ ejs/lib/ejs.js:
9345
9346
  * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
9346
9347
  *)
9347
9348
  */
9348
- //# sourceMappingURL=chunk-MRMIQOH4.js.map
9349
+ //# sourceMappingURL=chunk-OU2SCVZ4.js.map
@@ -12,14 +12,14 @@ import {
12
12
  useBiLogger,
13
13
  useHttpClient,
14
14
  wixCliAppsFlowTunnelCreationStatusSrc11Evid5233
15
- } from "./chunk-PZFZCK52.js";
15
+ } from "./chunk-5KBGN6AI.js";
16
16
  import {
17
17
  CliError,
18
18
  CliErrorCode,
19
19
  getTestOverrides,
20
20
  require_react,
21
21
  z
22
- } from "./chunk-VVLESE4P.js";
22
+ } from "./chunk-DN2W5I6V.js";
23
23
  import {
24
24
  __commonJS,
25
25
  __dirname,
@@ -894,4 +894,4 @@ init_esm_shims();
894
894
  export {
895
895
  useTunnel
896
896
  };
897
- //# sourceMappingURL=chunk-Q2DE27PN.js.map
897
+ //# sourceMappingURL=chunk-P7Z3QMUB.js.map
@@ -5,7 +5,7 @@ import {
5
5
  require_SetCache,
6
6
  require_cacheHas,
7
7
  require_setToArray
8
- } from "./chunk-PZFZCK52.js";
8
+ } from "./chunk-5KBGN6AI.js";
9
9
  import {
10
10
  __commonJS,
11
11
  init_esm_shims
@@ -192,4 +192,4 @@ var require_baseUniq = __commonJS({
192
192
  export {
193
193
  require_baseUniq
194
194
  };
195
- //# sourceMappingURL=chunk-DQXLAGEX.js.map
195
+ //# sourceMappingURL=chunk-U7NOLQSJ.js.map
@@ -3,13 +3,13 @@ const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  PlatformViewer,
5
5
  assertBuildOutputExists
6
- } from "./chunk-N4ETYB2B.js";
6
+ } from "./chunk-M7NEF3JI.js";
7
7
  import {
8
8
  SiteProvider
9
- } from "./chunk-IE6RONCN.js";
9
+ } from "./chunk-F6K4Z645.js";
10
10
  import {
11
11
  createPreviewTag
12
- } from "./chunk-A6GRJNEC.js";
12
+ } from "./chunk-EZYYTB4A.js";
13
13
  import {
14
14
  ArmTagProvider,
15
15
  SiteOverrideProvider,
@@ -18,10 +18,10 @@ import {
18
18
  useBlocksServicesClient,
19
19
  useSite,
20
20
  useSiteOverrideClient
21
- } from "./chunk-EAPMWJ4C.js";
21
+ } from "./chunk-EQX4ZNQY.js";
22
22
  import {
23
23
  useBackendComponents
24
- } from "./chunk-MRMIQOH4.js";
24
+ } from "./chunk-OU2SCVZ4.js";
25
25
  import {
26
26
  ComponentType2 as ComponentType,
27
27
  saveAppConfig,
@@ -30,7 +30,7 @@ import {
30
30
  useDevCenterClient,
31
31
  useHttpClient,
32
32
  useProjectModel
33
- } from "./chunk-PZFZCK52.js";
33
+ } from "./chunk-5KBGN6AI.js";
34
34
  import {
35
35
  Alert,
36
36
  Box_default,
@@ -43,7 +43,7 @@ import {
43
43
  useAsync,
44
44
  useAsyncCallback,
45
45
  useTranslation
46
- } from "./chunk-VVLESE4P.js";
46
+ } from "./chunk-DN2W5I6V.js";
47
47
  import {
48
48
  __toESM,
49
49
  init_esm_shims
@@ -185,4 +185,4 @@ var PreviewCommand = ({ baseUrl, siteIdOverride, onPreviewCreated }) => {
185
185
  export {
186
186
  PreviewCommand
187
187
  };
188
- //# sourceMappingURL=chunk-PH2UYNX4.js.map
188
+ //# sourceMappingURL=chunk-VYH54DVP.js.map
package/build/index.js CHANGED
@@ -2,13 +2,13 @@ import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  createI18nT
5
- } from "./chunk-P7PN4CHV.js";
6
- import "./chunk-HY44AJBX.js";
5
+ } from "./chunk-4JQ75QTB.js";
6
+ import "./chunk-FUJL6MQF.js";
7
7
  import {
8
8
  require_react,
9
9
  version,
10
10
  z
11
- } from "./chunk-VVLESE4P.js";
11
+ } from "./chunk-DN2W5I6V.js";
12
12
  import {
13
13
  __commonJS,
14
14
  __require,
@@ -3371,8 +3371,8 @@ var {
3371
3371
  // src/commands/build.ts
3372
3372
  init_esm_shims();
3373
3373
  var buildCommand = (services) => createCommand("build").action(async (_, command) => {
3374
- const { runCommand } = await import("./render-command-WBYARJYH.js");
3375
- const { build } = await import("./build-E34NPSSH.js");
3374
+ const { runCommand } = await import("./render-command-5UQ5JPA6.js");
3375
+ const { build } = await import("./build-KITE7EW3.js");
3376
3376
  await runCommand(command, services, build);
3377
3377
  });
3378
3378
 
@@ -3382,8 +3382,8 @@ var import_react = __toESM(require_react(), 1);
3382
3382
  var devCommand = (services) => {
3383
3383
  const t = createI18nT();
3384
3384
  return createCommand("dev").option("-s, --https", t("dev_command_def.option.https")).action(async (options, command) => {
3385
- const { DevCommand } = await import("./DevCommand-YDLV2KJM.js");
3386
- const { renderCommand } = await import("./render-command-WBYARJYH.js");
3385
+ const { DevCommand } = await import("./DevCommand-DLODMFKI.js");
3386
+ const { renderCommand } = await import("./render-command-5UQ5JPA6.js");
3387
3387
  const { https = false } = options;
3388
3388
  await renderCommand(command, services, /* @__PURE__ */ import_react.default.createElement(DevCommand, { https }), {
3389
3389
  watchForModelChanges: true
@@ -3443,10 +3443,10 @@ var previewCommand = (services) => {
3443
3443
  validateBase
3444
3444
  ).option("--no-input", t("app_preview_command_def.option.no_input")).action(async (options, command) => {
3445
3445
  const { site, baseUrl, input } = options;
3446
- const { renderCommand, runCommand } = await import("./render-command-WBYARJYH.js");
3446
+ const { renderCommand, runCommand } = await import("./render-command-5UQ5JPA6.js");
3447
3447
  if (!input) {
3448
3448
  return runCommand(command, services, async (model) => {
3449
- const { nonInteractivePreview } = await import("./preview-NOGUOO4T.js");
3449
+ const { nonInteractivePreview } = await import("./preview-MYW7A4XF.js");
3450
3450
  return nonInteractivePreview(
3451
3451
  { siteId: site, baseUrl },
3452
3452
  model,
@@ -3454,7 +3454,7 @@ var previewCommand = (services) => {
3454
3454
  );
3455
3455
  });
3456
3456
  }
3457
- const { PreviewCommand } = await import("./PreviewCommand-RZYVEWL4.js");
3457
+ const { PreviewCommand } = await import("./PreviewCommand-B6XM6FQV.js");
3458
3458
  await renderCommand(
3459
3459
  command,
3460
3460
  services,
@@ -3486,8 +3486,8 @@ var createVersionCommand = (services) => {
3486
3486
  validateBase
3487
3487
  ).action(async (options, command) => {
3488
3488
  const { VersionType } = await import("./types.impl-CD4WWRUK.js");
3489
- const { renderCommand } = await import("./render-command-WBYARJYH.js");
3490
- const { CreateVersionCommand, CreateVersionCommandDeprecated } = await import("./CreateVersionCommand-NCNK3B4H.js");
3489
+ const { renderCommand } = await import("./render-command-5UQ5JPA6.js");
3490
+ const { CreateVersionCommand, CreateVersionCommandDeprecated } = await import("./CreateVersionCommand-I6EHK2T2.js");
3491
3491
  const {
3492
3492
  approvePreview = false,
3493
3493
  versionType: versionTypeString,
@@ -3519,8 +3519,8 @@ var createVersionCommand = (services) => {
3519
3519
  init_esm_shims();
3520
3520
  var import_react4 = __toESM(require_react(), 1);
3521
3521
  var serveCommand = (services) => createCommand("serve").action(async (_, command) => {
3522
- const { renderCommand } = await import("./render-command-WBYARJYH.js");
3523
- const { ServeCommand } = await import("./ServeCommand-KBS3RLPD.js");
3522
+ const { renderCommand } = await import("./render-command-5UQ5JPA6.js");
3523
+ const { ServeCommand } = await import("./ServeCommand-BEXBK5ZA.js");
3524
3524
  await renderCommand(command, services, /* @__PURE__ */ import_react4.default.createElement(ServeCommand, null));
3525
3525
  });
3526
3526
 
@@ -3530,8 +3530,8 @@ var import_react5 = __toESM(require_react(), 1);
3530
3530
  var generateCommand = (services) => {
3531
3531
  const t = createI18nT();
3532
3532
  return createCommand("generate").description(t("generate_command.description")).action(async (options, command) => {
3533
- const { GenerateCommand } = await import("./GenerateCommand-MHQOLSPN.js");
3534
- const { renderCommand } = await import("./render-command-WBYARJYH.js");
3533
+ const { GenerateCommand } = await import("./GenerateCommand-5KR6GRHW.js");
3534
+ const { renderCommand } = await import("./render-command-5UQ5JPA6.js");
3535
3535
  await renderCommand(command, services, /* @__PURE__ */ import_react5.default.createElement(GenerateCommand, null), {
3536
3536
  skipProjectValidation: true
3537
3537
  });
@@ -3549,8 +3549,8 @@ var logsCommand = (services) => {
3549
3549
  validateVersion
3550
3550
  ).action(async (options, command) => {
3551
3551
  const { version: version2 } = options;
3552
- const { renderCommand } = await import("./render-command-WBYARJYH.js");
3553
- const { LogsCommand } = await import("./LogsCommand-727BQUJX.js");
3552
+ const { renderCommand } = await import("./render-command-5UQ5JPA6.js");
3553
+ const { LogsCommand } = await import("./LogsCommand-EAOVZZG6.js");
3554
3554
  await renderCommand(command, services, /* @__PURE__ */ import_react6.default.createElement(LogsCommand, { version: version2 }));
3555
3555
  });
3556
3556
  };
@@ -3581,8 +3581,8 @@ var releaseCommand = (services) => {
3581
3581
  "-y, --approve-minor",
3582
3582
  t("release_command_def.option.approve_minor")
3583
3583
  ).action(async (options, command) => {
3584
- const { renderCommand } = await import("./render-command-WBYARJYH.js");
3585
- const { ReleaseCommand, ReleaseVersionType } = await import("./ReleaseCommand-VU6V7GEV.js");
3584
+ const { renderCommand } = await import("./render-command-5UQ5JPA6.js");
3585
+ const { ReleaseCommand, ReleaseVersionType } = await import("./ReleaseCommand-W36AG2IN.js");
3586
3586
  const { baseUrl, site, comment, approveMinor = false } = options;
3587
3587
  const versionType = options.versionType ? {
3588
3588
  major: ReleaseVersionType.MAJOR,
@@ -2,36 +2,36 @@ import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  createPreviewTag
5
- } from "./chunk-A6GRJNEC.js";
5
+ } from "./chunk-EZYYTB4A.js";
6
6
  import {
7
7
  addUserFields
8
- } from "./chunk-JXZFXR5O.js";
9
- import "./chunk-75XWKPKF.js";
8
+ } from "./chunk-JHRMWYBU.js";
9
+ import "./chunk-AU6RLQTX.js";
10
10
  import {
11
11
  ARMClient,
12
12
  SiteListClient,
13
13
  resolveConfiguredSite,
14
14
  resolveDashboardExtensionUrl,
15
15
  resolvePlatformUrl
16
- } from "./chunk-EAPMWJ4C.js";
17
- import "./chunk-MRMIQOH4.js";
18
- import "./chunk-Q2DE27PN.js";
16
+ } from "./chunk-EQX4ZNQY.js";
17
+ import "./chunk-OU2SCVZ4.js";
18
+ import "./chunk-P7Z3QMUB.js";
19
19
  import "./chunk-ZR3N5INU.js";
20
- import "./chunk-4R3KUQGQ.js";
21
- import "./chunk-G3X4DX2P.js";
22
- import "./chunk-DQXLAGEX.js";
20
+ import "./chunk-EK4R4AAZ.js";
21
+ import "./chunk-MXNYBCOX.js";
22
+ import "./chunk-U7NOLQSJ.js";
23
23
  import {
24
24
  DevCenterComponent,
25
25
  PlatformType,
26
26
  createHttpClient,
27
27
  isLoggedInToAccount,
28
28
  uploadApplication
29
- } from "./chunk-PZFZCK52.js";
29
+ } from "./chunk-5KBGN6AI.js";
30
30
  import {
31
31
  CliError,
32
32
  CliErrorCode,
33
33
  require_lib
34
- } from "./chunk-VVLESE4P.js";
34
+ } from "./chunk-DN2W5I6V.js";
35
35
  import {
36
36
  __toESM,
37
37
  init_esm_shims
@@ -135,4 +135,4 @@ async function nonInteractivePreview(options, model, services) {
135
135
  export {
136
136
  nonInteractivePreview
137
137
  };
138
- //# sourceMappingURL=preview-NOGUOO4T.js.map
138
+ //# sourceMappingURL=preview-MYW7A4XF.js.map
@@ -2,14 +2,14 @@ import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  messages_default
5
- } from "./chunk-HY44AJBX.js";
5
+ } from "./chunk-FUJL6MQF.js";
6
6
  import {
7
7
  addUserFields,
8
8
  reportCommandStartEvent
9
- } from "./chunk-JXZFXR5O.js";
9
+ } from "./chunk-JHRMWYBU.js";
10
10
  import {
11
11
  DebugLogProvider
12
- } from "./chunk-4R3KUQGQ.js";
12
+ } from "./chunk-EK4R4AAZ.js";
13
13
  import {
14
14
  AccountAuthProvider,
15
15
  BiProvider,
@@ -17,7 +17,7 @@ import {
17
17
  ProjectModelProvider,
18
18
  getDebugLogFilePath,
19
19
  loadProjectModel
20
- } from "./chunk-PZFZCK52.js";
20
+ } from "./chunk-5KBGN6AI.js";
21
21
  import {
22
22
  CliError,
23
23
  CliErrorCode,
@@ -25,7 +25,7 @@ import {
25
25
  render,
26
26
  require_react,
27
27
  version
28
- } from "./chunk-VVLESE4P.js";
28
+ } from "./chunk-DN2W5I6V.js";
29
29
  import {
30
30
  __toESM,
31
31
  init_esm_shims
@@ -114,4 +114,4 @@ export {
114
114
  renderCommand,
115
115
  runCommand
116
116
  };
117
- //# sourceMappingURL=render-command-WBYARJYH.js.map
117
+ //# sourceMappingURL=render-command-5UQ5JPA6.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wix/cli-app",
3
3
  "description": "CLI tool for Wix apps",
4
- "version": "1.1.71",
4
+ "version": "1.1.72",
5
5
  "author": "Amit Dahan",
6
6
  "dependencies": {
7
7
  "esbuild": "^0.21.3",
@@ -19,9 +19,9 @@
19
19
  "@wix/ambassador-cli-site-override-service-v1-site-override": "^1.0.7",
20
20
  "@wix/ambassador-ctp-app-cloud-backend-service-v1-app-cloud-backend-deployment": "^1.0.8",
21
21
  "@wix/ambassador-ctp-gradual-rollout-v1-app-config": "^1.0.73",
22
- "@wix/ambassador-devcenter-apps-v1-app": "^1.0.540",
23
- "@wix/ambassador-devcenter-components-v1-component": "^1.0.439",
24
- "@wix/app-cloud-uploader": "^1.15.0",
22
+ "@wix/ambassador-devcenter-apps-v1-app": "^1.0.543",
23
+ "@wix/ambassador-devcenter-components-v1-component": "^1.0.441",
24
+ "@wix/app-cloud-uploader": "^1.16.0",
25
25
  "@wix/arm-client": "0.0.0",
26
26
  "@wix/bi-logger-dev-tools-data": "^1.95.0",
27
27
  "@wix/cli-app-definitions": "0.0.0",
@@ -110,7 +110,8 @@
110
110
  ],
111
111
  "peerDependencies": {
112
112
  "react": "^16.14 || ^17 || ^18",
113
- "react-dom": "^16.14 || ^17 || ^18"
113
+ "react-dom": "^16.14 || ^17 || ^18",
114
+ "typescript": ">=5.3.3 <5.8.0"
114
115
  },
115
116
  "peerDependenciesMeta": {
116
117
  "react-dom": {
@@ -152,5 +153,5 @@
152
153
  ]
153
154
  }
154
155
  },
155
- "falconPackageHash": "74ff544744e9bc78ab3666c249d849cd486fb5ad3786b35fbedd2576"
156
+ "falconPackageHash": "6c624388ba67e6f205d556ecdc5b1274292f19dbcb4e133fb8b8f385"
156
157
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "dependencies": {
3
+ "@wix/editor": "^1.354.0",
4
+ "@wix/blocks": "^1.7.0"
5
+ }
6
+ }
@@ -10,7 +10,7 @@ export default defineAPI({
10
10
  },
11
11
  },
12
12
  events: { load: {} },
13
- methods: {
13
+ functions: {
14
14
  myPublicFunction: {},
15
15
  },
16
16
  });
@@ -1,21 +1,28 @@
1
1
  ---
2
2
  to: widget.ts
3
3
  ---
4
+ // This file includes your widget logic.
5
+ // Learn about the widget.ts: https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-cli/supported-extensions/site-extensions/blocks-site-widgets/widget-ts
6
+ // Learn about the Wix CLI and Blocks: https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-blocks/code-in-blocks/using-the-wix-cli-and-blocks
7
+
4
8
  import { defineWidget } from '@wix/blocks';
5
9
 
6
10
  export default defineWidget('<%- id -%>', ($w, $widget) => {
7
11
  $w.onReady(() => {
12
+ // Initialize your widget here. If your widget has properties, this is a good place to read their values.
8
13
  console.log('Widget is ready');
9
14
  });
10
15
 
11
16
  $widget.onPropsChanged((oldProps, newProps) => {
17
+ // If your widget has properties, onPropsChanged is where you should handle changes to their values.
12
18
  console.log('Widget props changed', {
13
19
  oldProps,
14
20
  newProps,
15
21
  });
16
22
  });
17
-
23
+
18
24
  return {
25
+ // If your app exposes a function in the api.ts file, make sure to return it here.
19
26
  myPublicFunction() { }
20
27
  };
21
28
  });
@@ -1,10 +1,18 @@
1
1
  ---
2
2
  to: panel.ts
3
3
  ---
4
+ // This file includes your custom panel logic.
5
+ // Custom panels let users customize your widget in the Editor.
6
+ // Learn about the panel.ts: https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-cli/supported-extensions/site-extensions/blocks-site-widgets/panel-ts
7
+ // Learn about the Wix CLI and Blocks: https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-blocks/code-in-blocks/using-the-wix-cli-and-blocks
8
+
4
9
  import { definePanel } from '@wix/blocks';
10
+ import wixEditor from '@wix/editor'; // The Widget API enables you to get and set the properties and design presets of a site widget
5
11
 
6
12
  export default definePanel('<%- id -%>', ($w) => {
7
13
  $w.onReady(() => {
14
+ // Initialize the panel element values according to your widget's properties.
15
+ // Add event handlers for panel elements to update your widget's properties whenever a user interacts with the panel.
8
16
  console.log("Panel is ready");
9
17
  });
10
18
  });