@wix/cli 1.1.142 → 1.1.144
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.
- package/build/{DevCommand-7BMDJYAY.js → DevCommand-B67NQVMM.js} +13 -13
- package/build/{DevCommand-RSNBI6TA.js → DevCommand-GH744BQU.js} +11 -11
- package/build/{DevCommand-SGPRUVKL.js → DevCommand-UMJHZYQU.js} +11 -11
- package/build/{EnvPullCommand-OGC7JK7G.js → EnvPullCommand-RCZ4ZBXR.js} +10 -10
- package/build/{EnvRemoveCommand-76LOIY6D.js → EnvRemoveCommand-OHBVTWTG.js} +9 -9
- package/build/{EnvSetCommand-K3WC2JIM.js → EnvSetCommand-TRYJAHCF.js} +9 -9
- package/build/{GenerateCommand-CO2INZZT.js → GenerateCommand-YBNWJJ37.js} +2641 -720
- package/build/GenerateCommand-YBNWJJ37.js.map +1 -0
- package/build/{InstallCommand-7MDACNTP.js → InstallCommand-ZWO7JGCA.js} +10 -10
- package/build/{LoginCommand-ISBADDEZ.js → LoginCommand-ZP4S236V.js} +5 -5
- package/build/{LogoutCommand-H25SGWWC.js → LogoutCommand-3X5CHPFY.js} +4 -4
- package/build/{PreviewCommand-ZGXWBI3V.js → PreviewCommand-7SBLOTF7.js} +15 -15
- package/build/{PreviewCommand-CJCZY2JD.js → PreviewCommand-FG6BLCY7.js} +12 -12
- package/build/{PreviewCommand-YFZD7MIS.js → PreviewCommand-URPHIYS3.js} +13 -13
- package/build/{PromoteCommand-ND5SSLLC.js → PromoteCommand-RWEKQ5N2.js} +12 -12
- package/build/{PublishCommand-PRWAXR5F.js → PublishCommand-HO2YF7VE.js} +13 -13
- package/build/{ReleaseCommand-D2CYP755.js → ReleaseCommand-RR7CM3JV.js} +13 -13
- package/build/{UninstallCommand-U6XOQT4T.js → UninstallCommand-QJIMYBS5.js} +10 -10
- package/build/{WhoamiCommand-GGT4PRVH.js → WhoamiCommand-ET5AQQY4.js} +2 -2
- package/build/{chunk-BKY3IKB3.js → chunk-2IGGOIOT.js} +4 -1
- package/build/chunk-2IGGOIOT.js.map +1 -0
- package/build/{chunk-XIMJA744.js → chunk-4NCF2BDQ.js} +5 -5
- package/build/{chunk-SZ4GCQYL.js → chunk-4TL3CDOW.js} +3 -3
- package/build/{chunk-W6PEJALH.js → chunk-53Z75RS5.js} +2 -1
- package/build/{chunk-KGNIRK4S.js → chunk-6HT6FV2E.js} +4 -4
- package/build/{chunk-GJ3FMAEJ.js → chunk-6MDQPBW7.js} +13 -1
- package/build/chunk-6MDQPBW7.js.map +1 -0
- package/build/{chunk-MPVVYJPP.js → chunk-7G64PYOZ.js} +2 -2
- package/build/{chunk-YCSOXW4E.js → chunk-7PPZIL4Q.js} +6 -6
- package/build/{chunk-YCSOXW4E.js.map → chunk-7PPZIL4Q.js.map} +1 -1
- package/build/{chunk-UYPWXOQO.js → chunk-7PXOXZK7.js} +6 -6
- package/build/{chunk-DZWD6YGQ.js → chunk-AZQBBMA5.js} +2 -2
- package/build/{chunk-OCXZ5GDQ.js → chunk-C32YJ52O.js} +7 -7
- package/build/{chunk-PSBMQW7U.js → chunk-CXUAXJIJ.js} +2 -2
- package/build/{chunk-C6TNYPLG.js → chunk-D4NO6SYP.js} +2 -2
- package/build/{chunk-74NPPELF.js → chunk-FA7HYKWQ.js} +2 -2
- package/build/{chunk-IZPIRKJT.js → chunk-GN3BX2BT.js} +2 -2
- package/build/{chunk-GLBXHO24.js → chunk-HC7NRQ36.js} +4 -4
- package/build/{chunk-ZWLBTTW7.js → chunk-HZNQIKRC.js} +11 -2
- package/build/{chunk-ZWLBTTW7.js.map → chunk-HZNQIKRC.js.map} +1 -1
- package/build/{chunk-4DDM5F2Y.js → chunk-INT2DXXL.js} +5 -5
- package/build/{chunk-GIVNKW7V.js → chunk-JQGAYQHL.js} +2 -2
- package/build/{chunk-AAY4DBI2.js → chunk-KEHRSBL3.js} +14 -9
- package/build/chunk-KEHRSBL3.js.map +1 -0
- package/build/{chunk-OKV5CCZE.js → chunk-L4RHGACF.js} +5 -5
- package/build/{chunk-6CKGZQ6Y.js → chunk-L7H3APFI.js} +2 -2
- package/build/{chunk-LG2AMEKY.js → chunk-MPNK33PU.js} +2 -2
- package/build/{chunk-BQDKSF4L.js → chunk-MQU4OXW2.js} +2 -2
- package/build/{chunk-LLSSVC6M.js → chunk-NA5GUZLM.js} +5 -5
- package/build/{chunk-6RNNDF2T.js → chunk-OWKI56M7.js} +2 -2
- package/build/{chunk-54GPX7SR.js → chunk-P2VRJSBQ.js} +5 -5
- package/build/{chunk-6C4RLYLU.js → chunk-PSUUZ5MS.js} +2 -2
- package/build/{chunk-VKYDCBWE.js → chunk-Q2JFFZS2.js} +3 -3
- package/build/{chunk-A6BVUV6V.js → chunk-S5TZQBRX.js} +2 -2
- package/build/{chunk-4FPXYFOR.js → chunk-U66PEPD5.js} +118 -35
- package/build/chunk-U66PEPD5.js.map +1 -0
- package/build/{chunk-BIBBCSLC.js → chunk-WI7RKRCE.js} +3 -3
- package/build/{chunk-4ZDCHQ2A.js → chunk-WREPBGVY.js} +2 -2
- package/build/{chunk-YTUQRVN7.js → chunk-X4NLPRGU.js} +15 -8
- package/build/{chunk-YTUQRVN7.js.map → chunk-X4NLPRGU.js.map} +1 -1
- package/build/{dev-UXKHLKMR.js → dev-FQNQE7OR.js} +17 -17
- package/build/{env-pull-OWFZHTRC.js → env-pull-KJJSM2J6.js} +11 -11
- package/build/index.js +18 -18
- package/build/{install-S5ZXRZJV.js → install-PDTIVIW7.js} +10 -10
- package/build/{preview-VDJVQC6S.js → preview-6FUDYURJ.js} +13 -13
- package/build/{publish-SQVFB7LU.js → publish-2JXKN5RW.js} +12 -12
- package/build/{render-command-KBDAGHGC.js → render-command-L7KRQF4I.js} +8 -8
- package/build/{render-command-BDVLIM63.js → render-command-QCC4RVJ4.js} +6 -6
- package/build/{render-command-BZC3S272.js → render-command-XNT77S4B.js} +6 -6
- package/build/{render-command-YSNCNG2D.js → render-command-XXPCWARG.js} +6 -6
- package/build/{render-command-OJESMEHM.js → render-command-YBXHBKZP.js} +7 -7
- package/build/{src-CWNKJO3M.js → src-2TCCYQ3L.js} +24 -24
- package/build/{src-PDY5SUXV.js → src-E4YVCGFR.js} +11 -11
- package/build/{src-P4NPBH4I.js → src-KTZ2TG7L.js} +13 -13
- package/build/{src-HEGLQ376.js → src-RNBEMCJE.js} +5 -5
- package/build/{src-ZDFXTN36.js → src-SI6O4A5Z.js} +4 -4
- package/build/{sync-types-AZF2FSUW.js → sync-types-BGYXY6YW.js} +7 -7
- package/build/{uninstall-Q5N7ZWG7.js → uninstall-VWLC623U.js} +10 -10
- package/package.json +2 -2
- package/templates/astro/service-plugin/ecom-payment-settings/files/extension.ts.ejs +1 -1
- package/templates/astro/site-plugin/assets/logo.svg +1 -0
- package/templates/astro/site-plugin/dependencies.json +13 -0
- package/templates/astro/site-plugin/files/extension.ts.ejs +23 -0
- package/templates/astro/site-plugin/files/panel.tsx.ejs +49 -0
- package/templates/astro/site-plugin/files/plugin.tsx.ejs +37 -0
- package/build/GenerateCommand-CO2INZZT.js.map +0 -1
- package/build/chunk-4FPXYFOR.js.map +0 -1
- package/build/chunk-AAY4DBI2.js.map +0 -1
- package/build/chunk-BKY3IKB3.js.map +0 -1
- package/build/chunk-GJ3FMAEJ.js.map +0 -1
- /package/build/{DevCommand-7BMDJYAY.js.map → DevCommand-B67NQVMM.js.map} +0 -0
- /package/build/{DevCommand-RSNBI6TA.js.map → DevCommand-GH744BQU.js.map} +0 -0
- /package/build/{DevCommand-SGPRUVKL.js.map → DevCommand-UMJHZYQU.js.map} +0 -0
- /package/build/{EnvPullCommand-OGC7JK7G.js.map → EnvPullCommand-RCZ4ZBXR.js.map} +0 -0
- /package/build/{EnvRemoveCommand-76LOIY6D.js.map → EnvRemoveCommand-OHBVTWTG.js.map} +0 -0
- /package/build/{EnvSetCommand-K3WC2JIM.js.map → EnvSetCommand-TRYJAHCF.js.map} +0 -0
- /package/build/{InstallCommand-7MDACNTP.js.map → InstallCommand-ZWO7JGCA.js.map} +0 -0
- /package/build/{LoginCommand-ISBADDEZ.js.map → LoginCommand-ZP4S236V.js.map} +0 -0
- /package/build/{LogoutCommand-H25SGWWC.js.map → LogoutCommand-3X5CHPFY.js.map} +0 -0
- /package/build/{PreviewCommand-ZGXWBI3V.js.map → PreviewCommand-7SBLOTF7.js.map} +0 -0
- /package/build/{PreviewCommand-CJCZY2JD.js.map → PreviewCommand-FG6BLCY7.js.map} +0 -0
- /package/build/{PreviewCommand-YFZD7MIS.js.map → PreviewCommand-URPHIYS3.js.map} +0 -0
- /package/build/{PromoteCommand-ND5SSLLC.js.map → PromoteCommand-RWEKQ5N2.js.map} +0 -0
- /package/build/{PublishCommand-PRWAXR5F.js.map → PublishCommand-HO2YF7VE.js.map} +0 -0
- /package/build/{ReleaseCommand-D2CYP755.js.map → ReleaseCommand-RR7CM3JV.js.map} +0 -0
- /package/build/{UninstallCommand-U6XOQT4T.js.map → UninstallCommand-QJIMYBS5.js.map} +0 -0
- /package/build/{WhoamiCommand-GGT4PRVH.js.map → WhoamiCommand-ET5AQQY4.js.map} +0 -0
- /package/build/{chunk-XIMJA744.js.map → chunk-4NCF2BDQ.js.map} +0 -0
- /package/build/{chunk-SZ4GCQYL.js.map → chunk-4TL3CDOW.js.map} +0 -0
- /package/build/{chunk-W6PEJALH.js.map → chunk-53Z75RS5.js.map} +0 -0
- /package/build/{chunk-KGNIRK4S.js.map → chunk-6HT6FV2E.js.map} +0 -0
- /package/build/{chunk-MPVVYJPP.js.map → chunk-7G64PYOZ.js.map} +0 -0
- /package/build/{chunk-UYPWXOQO.js.map → chunk-7PXOXZK7.js.map} +0 -0
- /package/build/{chunk-DZWD6YGQ.js.map → chunk-AZQBBMA5.js.map} +0 -0
- /package/build/{chunk-OCXZ5GDQ.js.map → chunk-C32YJ52O.js.map} +0 -0
- /package/build/{chunk-PSBMQW7U.js.map → chunk-CXUAXJIJ.js.map} +0 -0
- /package/build/{chunk-C6TNYPLG.js.map → chunk-D4NO6SYP.js.map} +0 -0
- /package/build/{chunk-74NPPELF.js.map → chunk-FA7HYKWQ.js.map} +0 -0
- /package/build/{chunk-IZPIRKJT.js.map → chunk-GN3BX2BT.js.map} +0 -0
- /package/build/{chunk-GLBXHO24.js.map → chunk-HC7NRQ36.js.map} +0 -0
- /package/build/{chunk-4DDM5F2Y.js.map → chunk-INT2DXXL.js.map} +0 -0
- /package/build/{chunk-GIVNKW7V.js.map → chunk-JQGAYQHL.js.map} +0 -0
- /package/build/{chunk-OKV5CCZE.js.map → chunk-L4RHGACF.js.map} +0 -0
- /package/build/{chunk-6CKGZQ6Y.js.map → chunk-L7H3APFI.js.map} +0 -0
- /package/build/{chunk-LG2AMEKY.js.map → chunk-MPNK33PU.js.map} +0 -0
- /package/build/{chunk-BQDKSF4L.js.map → chunk-MQU4OXW2.js.map} +0 -0
- /package/build/{chunk-LLSSVC6M.js.map → chunk-NA5GUZLM.js.map} +0 -0
- /package/build/{chunk-6RNNDF2T.js.map → chunk-OWKI56M7.js.map} +0 -0
- /package/build/{chunk-54GPX7SR.js.map → chunk-P2VRJSBQ.js.map} +0 -0
- /package/build/{chunk-6C4RLYLU.js.map → chunk-PSUUZ5MS.js.map} +0 -0
- /package/build/{chunk-VKYDCBWE.js.map → chunk-Q2JFFZS2.js.map} +0 -0
- /package/build/{chunk-A6BVUV6V.js.map → chunk-S5TZQBRX.js.map} +0 -0
- /package/build/{chunk-BIBBCSLC.js.map → chunk-WI7RKRCE.js.map} +0 -0
- /package/build/{chunk-4ZDCHQ2A.js.map → chunk-WREPBGVY.js.map} +0 -0
- /package/build/{dev-UXKHLKMR.js.map → dev-FQNQE7OR.js.map} +0 -0
- /package/build/{env-pull-OWFZHTRC.js.map → env-pull-KJJSM2J6.js.map} +0 -0
- /package/build/{install-S5ZXRZJV.js.map → install-PDTIVIW7.js.map} +0 -0
- /package/build/{preview-VDJVQC6S.js.map → preview-6FUDYURJ.js.map} +0 -0
- /package/build/{publish-SQVFB7LU.js.map → publish-2JXKN5RW.js.map} +0 -0
- /package/build/{render-command-KBDAGHGC.js.map → render-command-L7KRQF4I.js.map} +0 -0
- /package/build/{render-command-BDVLIM63.js.map → render-command-QCC4RVJ4.js.map} +0 -0
- /package/build/{render-command-BZC3S272.js.map → render-command-XNT77S4B.js.map} +0 -0
- /package/build/{render-command-YSNCNG2D.js.map → render-command-XXPCWARG.js.map} +0 -0
- /package/build/{render-command-OJESMEHM.js.map → render-command-YBXHBKZP.js.map} +0 -0
- /package/build/{src-CWNKJO3M.js.map → src-2TCCYQ3L.js.map} +0 -0
- /package/build/{src-PDY5SUXV.js.map → src-E4YVCGFR.js.map} +0 -0
- /package/build/{src-P4NPBH4I.js.map → src-KTZ2TG7L.js.map} +0 -0
- /package/build/{src-HEGLQ376.js.map → src-RNBEMCJE.js.map} +0 -0
- /package/build/{src-ZDFXTN36.js.map → src-SI6O4A5Z.js.map} +0 -0
- /package/build/{sync-types-AZF2FSUW.js.map → sync-types-BGYXY6YW.js.map} +0 -0
- /package/build/{uninstall-Q5N7ZWG7.js.map → uninstall-VWLC623U.js.map} +0 -0
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
renderCommand,
|
|
8
8
|
runCommand
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-KEHRSBL3.js";
|
|
10
|
+
import "./chunk-6MDQPBW7.js";
|
|
11
|
+
import "./chunk-D4NO6SYP.js";
|
|
12
12
|
import {
|
|
13
13
|
NO_TTY_JSON_OUTPUT_OPTION
|
|
14
14
|
} from "./chunk-AWPJTA2S.js";
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
Option,
|
|
18
18
|
createCommand
|
|
19
19
|
} from "./chunk-J2EPR7DO.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-2IGGOIOT.js";
|
|
21
21
|
import "./chunk-EVROMEWT.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-4TL3CDOW.js";
|
|
23
23
|
import "./chunk-WMCHVSMU.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-PSUUZ5MS.js";
|
|
25
25
|
import "./chunk-KJ37XZQA.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-53Z75RS5.js";
|
|
27
27
|
import {
|
|
28
28
|
require_react
|
|
29
29
|
} from "./chunk-NRAQAV6T.js";
|
|
@@ -56,7 +56,7 @@ var buildCommand = (services, cliVersion) => createCommand("build").description(
|
|
|
56
56
|
).allowExcessArguments(true).allowUnknownOption(true).passThroughOptions(true).action(async (_, command) => {
|
|
57
57
|
const { execa } = await import("./execa-MR2E3266.js");
|
|
58
58
|
const { getRepoType, createPackageManager } = await import("./src-QRWN3UQZ.js");
|
|
59
|
-
const { runCommand: runCommand2 } = await import("./render-command-
|
|
59
|
+
const { runCommand: runCommand2 } = await import("./render-command-L7KRQF4I.js");
|
|
60
60
|
await runCommand2(command, services, cliVersion, async (model) => {
|
|
61
61
|
const repoType = await getRepoType(model.projectFolder);
|
|
62
62
|
const packageManager = await createPackageManager(repoType);
|
|
@@ -84,11 +84,11 @@ var envPullCommand = (services, cliVersion) => {
|
|
|
84
84
|
).action(async (opts, command) => {
|
|
85
85
|
if (opts.json) {
|
|
86
86
|
return runCommand(command, services, cliVersion, async (model) => {
|
|
87
|
-
const { nonInteractiveEnvPull } = await import("./env-pull-
|
|
87
|
+
const { nonInteractiveEnvPull } = await import("./env-pull-KJJSM2J6.js");
|
|
88
88
|
return nonInteractiveEnvPull(services, model);
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
const { EnvPullCommand } = await import("./EnvPullCommand-
|
|
91
|
+
const { EnvPullCommand } = await import("./EnvPullCommand-RCZ4ZBXR.js");
|
|
92
92
|
await renderCommand(command, services, cliVersion, /* @__PURE__ */ import_react.default.createElement(EnvPullCommand, null));
|
|
93
93
|
});
|
|
94
94
|
};
|
|
@@ -98,7 +98,7 @@ init_esm_shims();
|
|
|
98
98
|
var import_react2 = __toESM(require_react(), 1);
|
|
99
99
|
var envSetCommand = (services, cliVersion) => {
|
|
100
100
|
return createCommand("set").description("Sets environment variable").requiredOption("--key <key>", "Name of the variable").requiredOption("--value <value>", "Value of the variable").action(async (opts, command) => {
|
|
101
|
-
const { EnvSetCommand } = await import("./EnvSetCommand-
|
|
101
|
+
const { EnvSetCommand } = await import("./EnvSetCommand-TRYJAHCF.js");
|
|
102
102
|
const variable = { key: opts.key, value: opts.value };
|
|
103
103
|
await renderCommand(
|
|
104
104
|
command,
|
|
@@ -114,7 +114,7 @@ init_esm_shims();
|
|
|
114
114
|
var import_react3 = __toESM(require_react(), 1);
|
|
115
115
|
var envRemoveCommand = (services, cliVersion) => {
|
|
116
116
|
return createCommand("remove").description("Removes an environment variable").requiredOption("--key <key>", "Name of the variable").action(async (opts, command) => {
|
|
117
|
-
const { EnvRemoveCommand } = await import("./EnvRemoveCommand-
|
|
117
|
+
const { EnvRemoveCommand } = await import("./EnvRemoveCommand-OHBVTWTG.js");
|
|
118
118
|
await renderCommand(
|
|
119
119
|
command,
|
|
120
120
|
services,
|
|
@@ -175,14 +175,14 @@ var previewCommand = (services, cliVersion) => {
|
|
|
175
175
|
new Option(NO_TTY_JSON_OUTPUT_OPTION, "Output in JSON format").hideHelp()
|
|
176
176
|
).action(async (options, command) => {
|
|
177
177
|
const { baseUrl, json, label } = options;
|
|
178
|
-
const { renderCommand: renderCommand2, runCommand: runCommand2 } = await import("./render-command-
|
|
178
|
+
const { renderCommand: renderCommand2, runCommand: runCommand2 } = await import("./render-command-L7KRQF4I.js");
|
|
179
179
|
if (json) {
|
|
180
180
|
return runCommand2(command, services, cliVersion, async (model) => {
|
|
181
|
-
const { nonInteractivePreview } = await import("./preview-
|
|
181
|
+
const { nonInteractivePreview } = await import("./preview-6FUDYURJ.js");
|
|
182
182
|
return nonInteractivePreview(services, model, { baseUrl, label });
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
const { PreviewCommand } = await import("./PreviewCommand-
|
|
185
|
+
const { PreviewCommand } = await import("./PreviewCommand-FG6BLCY7.js");
|
|
186
186
|
await renderCommand2(
|
|
187
187
|
command,
|
|
188
188
|
services,
|
|
@@ -205,8 +205,8 @@ var promoteCommand = (services, cliVersion) => {
|
|
|
205
205
|
new Option("-l, --label <label>", "A custom label for this preview").argParser(validateLabel).hideHelp()
|
|
206
206
|
).action(async (options, command) => {
|
|
207
207
|
const { baseUrl, label } = options;
|
|
208
|
-
const { renderCommand: renderCommand2 } = await import("./render-command-
|
|
209
|
-
const { PromoteCommand } = await import("./PromoteCommand-
|
|
208
|
+
const { renderCommand: renderCommand2 } = await import("./render-command-L7KRQF4I.js");
|
|
209
|
+
const { PromoteCommand } = await import("./PromoteCommand-RWEKQ5N2.js");
|
|
210
210
|
await renderCommand2(
|
|
211
211
|
command,
|
|
212
212
|
services,
|
|
@@ -237,8 +237,8 @@ var releaseCommand = (services, cliVersion) => {
|
|
|
237
237
|
"The type of version you would like to create"
|
|
238
238
|
).choices(["major", "minor"])
|
|
239
239
|
).action(async (options, command) => {
|
|
240
|
-
const { renderCommand: renderCommand2 } = await import("./render-command-
|
|
241
|
-
const { ReleaseCommand } = await import("./ReleaseCommand-
|
|
240
|
+
const { renderCommand: renderCommand2 } = await import("./render-command-L7KRQF4I.js");
|
|
241
|
+
const { ReleaseCommand } = await import("./ReleaseCommand-RR7CM3JV.js");
|
|
242
242
|
const { baseUrl, label, comment } = options;
|
|
243
243
|
const versionType = options.versionType ? {
|
|
244
244
|
major: ReleaseVersionType.MAJOR,
|
|
@@ -280,8 +280,8 @@ var devCommand = (services, cliVersion) => {
|
|
|
280
280
|
"The base url for when static files have been uploaded to an external cdn"
|
|
281
281
|
).argParser(validateBase).hideHelp()
|
|
282
282
|
).action(async (options, command) => {
|
|
283
|
-
const { DevCommand } = await import("./DevCommand-
|
|
284
|
-
const { renderCommand: renderCommand2 } = await import("./render-command-
|
|
283
|
+
const { DevCommand } = await import("./DevCommand-UMJHZYQU.js");
|
|
284
|
+
const { renderCommand: renderCommand2 } = await import("./render-command-L7KRQF4I.js");
|
|
285
285
|
await renderCommand2(
|
|
286
286
|
command,
|
|
287
287
|
services,
|
|
@@ -303,8 +303,8 @@ init_esm_shims();
|
|
|
303
303
|
var import_react8 = __toESM(require_react(), 1);
|
|
304
304
|
var generateCommand = (services, cliVersion) => {
|
|
305
305
|
return createCommand("generate").description("Generate a new extension for your project").action(async (options, command) => {
|
|
306
|
-
const { GenerateCommand } = await import("./GenerateCommand-
|
|
307
|
-
const { renderCommand: renderCommand2 } = await import("./render-command-
|
|
306
|
+
const { GenerateCommand } = await import("./GenerateCommand-YBNWJJ37.js");
|
|
307
|
+
const { renderCommand: renderCommand2 } = await import("./render-command-L7KRQF4I.js");
|
|
308
308
|
await renderCommand2(command, services, cliVersion, /* @__PURE__ */ import_react8.default.createElement(GenerateCommand, null));
|
|
309
309
|
});
|
|
310
310
|
};
|
|
@@ -316,4 +316,4 @@ var getRootCommand = async (services, cliVersion) => {
|
|
|
316
316
|
export {
|
|
317
317
|
getRootCommand
|
|
318
318
|
};
|
|
319
|
-
//# sourceMappingURL=src-
|
|
319
|
+
//# sourceMappingURL=src-2TCCYQ3L.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
|
createI18nT
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AZQBBMA5.js";
|
|
6
6
|
import "./chunk-HEANTKSX.js";
|
|
7
7
|
import {
|
|
8
8
|
Option,
|
|
9
9
|
createCommand,
|
|
10
10
|
require_commander
|
|
11
11
|
} from "./chunk-J2EPR7DO.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-PSUUZ5MS.js";
|
|
13
13
|
import "./chunk-KJ37XZQA.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-53Z75RS5.js";
|
|
15
15
|
import {
|
|
16
16
|
require_react
|
|
17
17
|
} from "./chunk-NRAQAV6T.js";
|
|
@@ -58,7 +58,7 @@ var devCommand = (services, cliVersion) => {
|
|
|
58
58
|
new Option2("--tunnel", t("site_dev_command_def.option.tunnel")).conflicts("https").hideHelp(true)
|
|
59
59
|
).description(t("site_dev_command_def.description")).action(async (options, command) => {
|
|
60
60
|
const { runCommand } = await import("./run-command-JNTKZGIY.js");
|
|
61
|
-
const { dev } = await import("./dev-
|
|
61
|
+
const { dev } = await import("./dev-FQNQE7OR.js");
|
|
62
62
|
await runCommand(
|
|
63
63
|
command,
|
|
64
64
|
services,
|
|
@@ -74,7 +74,7 @@ var installCommand = (services, cliVersion) => {
|
|
|
74
74
|
const t = createI18nT();
|
|
75
75
|
return createCommand("install").description(t("site_install_command_def.description")).argument("[package]", t("site_install_command_def.argument.package")).option("--yarn", t("site_install_command_def.option.yarn")).option("--npm", t("site_install_command_def.option.npm")).action(async (packageName, opts, command) => {
|
|
76
76
|
const { runCommand } = await import("./run-command-JNTKZGIY.js");
|
|
77
|
-
const { install } = await import("./install-
|
|
77
|
+
const { install } = await import("./install-PDTIVIW7.js");
|
|
78
78
|
await runCommand(
|
|
79
79
|
command,
|
|
80
80
|
services,
|
|
@@ -95,8 +95,8 @@ var previewCommand = (services, cliVersion) => {
|
|
|
95
95
|
t("site_preview_command_def.option.source")
|
|
96
96
|
).choices(["local", "remote"])
|
|
97
97
|
).action(async (options, command) => {
|
|
98
|
-
const { renderCommand } = await import("./render-command-
|
|
99
|
-
const { PreviewCommand } = await import("./PreviewCommand-
|
|
98
|
+
const { renderCommand } = await import("./render-command-XNT77S4B.js");
|
|
99
|
+
const { PreviewCommand } = await import("./PreviewCommand-7SBLOTF7.js");
|
|
100
100
|
await renderCommand(
|
|
101
101
|
command,
|
|
102
102
|
services,
|
|
@@ -120,7 +120,7 @@ var publishCommand = (services, cliVersion) => {
|
|
|
120
120
|
t("site_publish_command_def.option.approve_preview")
|
|
121
121
|
).option("-f, --force", t("site_publish_command_def.option.force")).action(async (options, command) => {
|
|
122
122
|
const { runCommand } = await import("./run-command-JNTKZGIY.js");
|
|
123
|
-
const { publish } = await import("./publish-
|
|
123
|
+
const { publish } = await import("./publish-2JXKN5RW.js");
|
|
124
124
|
await runCommand(
|
|
125
125
|
command,
|
|
126
126
|
services,
|
|
@@ -134,7 +134,7 @@ var publishCommand = (services, cliVersion) => {
|
|
|
134
134
|
init_esm_shims();
|
|
135
135
|
var syncTypesCommand = (services, cliVersion) => createCommand("sync-types").action(async (_, command) => {
|
|
136
136
|
const { runCommand } = await import("./run-command-JNTKZGIY.js");
|
|
137
|
-
const { syncTypes } = await import("./sync-types-
|
|
137
|
+
const { syncTypes } = await import("./sync-types-BGYXY6YW.js");
|
|
138
138
|
await runCommand(
|
|
139
139
|
command,
|
|
140
140
|
services,
|
|
@@ -149,7 +149,7 @@ var uninstallCommand = (services, cliVersion) => {
|
|
|
149
149
|
const t = createI18nT();
|
|
150
150
|
return createCommand("uninstall").description(t("site_uninstall_command_def.description")).argument("<package>", t("site_uninstall_command_def.argument.package")).option("--yarn", t("site_uninstall_command_def.option.yarn")).option("--npm", t("site_uninstall_command_def.option.npm")).action(async (packageName, opts, command) => {
|
|
151
151
|
const { runCommand } = await import("./run-command-JNTKZGIY.js");
|
|
152
|
-
const { uninstall } = await import("./uninstall-
|
|
152
|
+
const { uninstall } = await import("./uninstall-VWLC623U.js");
|
|
153
153
|
await runCommand(
|
|
154
154
|
command,
|
|
155
155
|
services,
|
|
@@ -166,4 +166,4 @@ var getRootCommand = async function getRootCommand2(services, cliVersion) {
|
|
|
166
166
|
export {
|
|
167
167
|
getRootCommand
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=src-
|
|
169
|
+
//# sourceMappingURL=src-E4YVCGFR.js.map
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
} from "./chunk-J2EPR7DO.js";
|
|
10
10
|
import {
|
|
11
11
|
createI18n
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PSUUZ5MS.js";
|
|
13
13
|
import "./chunk-KJ37XZQA.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-53Z75RS5.js";
|
|
15
15
|
import {
|
|
16
16
|
require_react
|
|
17
17
|
} from "./chunk-NRAQAV6T.js";
|
|
@@ -46,8 +46,8 @@ var devCommand = (services, cliVersion) => {
|
|
|
46
46
|
const t = createI18nT();
|
|
47
47
|
return createCommand("dev").description(t("site_dev_command_def.description")).option("--tunnel", t("site_dev_command_def.option.tunnel")).action(async (options, command) => {
|
|
48
48
|
const { tunnel = false } = options;
|
|
49
|
-
const { renderCommand } = await import("./render-command-
|
|
50
|
-
const { DevCommand } = await import("./DevCommand-
|
|
49
|
+
const { renderCommand } = await import("./render-command-XXPCWARG.js");
|
|
50
|
+
const { DevCommand } = await import("./DevCommand-B67NQVMM.js");
|
|
51
51
|
await renderCommand(
|
|
52
52
|
command,
|
|
53
53
|
services,
|
|
@@ -64,8 +64,8 @@ var previewCommand = (services, cliVersion) => {
|
|
|
64
64
|
const t = createI18nT();
|
|
65
65
|
return createCommand("preview").description(t("site_preview_command_def.description")).option("-f, --force", t("site_preview_command_def.option.force")).action(async (options, command) => {
|
|
66
66
|
const { force = false } = options;
|
|
67
|
-
const { renderCommand } = await import("./render-command-
|
|
68
|
-
const { PreviewCommand } = await import("./PreviewCommand-
|
|
67
|
+
const { renderCommand } = await import("./render-command-XXPCWARG.js");
|
|
68
|
+
const { PreviewCommand } = await import("./PreviewCommand-URPHIYS3.js");
|
|
69
69
|
await renderCommand(
|
|
70
70
|
command,
|
|
71
71
|
services,
|
|
@@ -87,8 +87,8 @@ var publishCommand = (services, cliVersion) => {
|
|
|
87
87
|
).conflicts("force")
|
|
88
88
|
).option("-f, --force", t("site_publish_command_def.option.force")).action(async (options, command) => {
|
|
89
89
|
const { approvePreview = false, force = false } = options;
|
|
90
|
-
const { renderCommand } = await import("./render-command-
|
|
91
|
-
const { PublishCommand } = await import("./PublishCommand-
|
|
90
|
+
const { renderCommand } = await import("./render-command-XXPCWARG.js");
|
|
91
|
+
const { PublishCommand } = await import("./PublishCommand-HO2YF7VE.js");
|
|
92
92
|
await renderCommand(
|
|
93
93
|
command,
|
|
94
94
|
services,
|
|
@@ -104,8 +104,8 @@ var import_react4 = __toESM(require_react(), 1);
|
|
|
104
104
|
var installCommand = (services, cliVersion) => {
|
|
105
105
|
const t = createI18nT();
|
|
106
106
|
return createCommand("install").description(t("site_install_command_def.description")).argument("[package]", t("site_install_command_def.argument.package")).action(async (packageName, _opts, command) => {
|
|
107
|
-
const { renderCommand } = await import("./render-command-
|
|
108
|
-
const { InstallCommand } = await import("./InstallCommand-
|
|
107
|
+
const { renderCommand } = await import("./render-command-XXPCWARG.js");
|
|
108
|
+
const { InstallCommand } = await import("./InstallCommand-ZWO7JGCA.js");
|
|
109
109
|
await renderCommand(
|
|
110
110
|
command,
|
|
111
111
|
services,
|
|
@@ -121,8 +121,8 @@ var import_react5 = __toESM(require_react(), 1);
|
|
|
121
121
|
var uninstallCommand = (services, cliVersion) => {
|
|
122
122
|
const t = createI18nT();
|
|
123
123
|
return createCommand("uninstall").description(t("site_uninstall_command_def.description")).argument("<package>", t("site_uninstall_command_def.argument.package")).action(async (packageName, _opts, command) => {
|
|
124
|
-
const { renderCommand } = await import("./render-command-
|
|
125
|
-
const { UninstallCommand } = await import("./UninstallCommand-
|
|
124
|
+
const { renderCommand } = await import("./render-command-XXPCWARG.js");
|
|
125
|
+
const { UninstallCommand } = await import("./UninstallCommand-QJIMYBS5.js");
|
|
126
126
|
await renderCommand(
|
|
127
127
|
command,
|
|
128
128
|
services,
|
|
@@ -139,4 +139,4 @@ var getRootCommand = async function getRootCommand2(services, cliVersion) {
|
|
|
139
139
|
export {
|
|
140
140
|
getRootCommand
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=src-
|
|
142
|
+
//# sourceMappingURL=src-KTZ2TG7L.js.map
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
} from "./chunk-J2EPR7DO.js";
|
|
9
9
|
import {
|
|
10
10
|
createI18n
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PSUUZ5MS.js";
|
|
12
12
|
import "./chunk-KJ37XZQA.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-53Z75RS5.js";
|
|
14
14
|
import {
|
|
15
15
|
require_react
|
|
16
16
|
} from "./chunk-NRAQAV6T.js";
|
|
@@ -44,8 +44,8 @@ function createI18nT() {
|
|
|
44
44
|
var devCommand = (services, cliVersion) => {
|
|
45
45
|
const t = createI18nT();
|
|
46
46
|
return createCommand("dev").description(t("site_dev_command_def.description")).action(async (options, command) => {
|
|
47
|
-
const { renderCommand } = await import("./render-command-
|
|
48
|
-
const { DevCommand } = await import("./DevCommand-
|
|
47
|
+
const { renderCommand } = await import("./render-command-QCC4RVJ4.js");
|
|
48
|
+
const { DevCommand } = await import("./DevCommand-GH744BQU.js");
|
|
49
49
|
await renderCommand(command, services, cliVersion, /* @__PURE__ */ import_react.default.createElement(DevCommand, null));
|
|
50
50
|
});
|
|
51
51
|
};
|
|
@@ -57,4 +57,4 @@ var getRootCommand = async function getRootCommand2(services, cliVersion) {
|
|
|
57
57
|
export {
|
|
58
58
|
getRootCommand
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=src-
|
|
60
|
+
//# sourceMappingURL=src-RNBEMCJE.js.map
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
logout,
|
|
12
12
|
useAuth,
|
|
13
13
|
useSiteAuth
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4TL3CDOW.js";
|
|
15
15
|
import "./chunk-WMCHVSMU.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-PSUUZ5MS.js";
|
|
17
17
|
import "./chunk-KJ37XZQA.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-53Z75RS5.js";
|
|
19
19
|
import "./chunk-NRAQAV6T.js";
|
|
20
20
|
import "./chunk-SQ3KPTIH.js";
|
|
21
21
|
import "./chunk-Z4MHKCET.js";
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
useAuth,
|
|
39
39
|
useSiteAuth
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=src-
|
|
41
|
+
//# sourceMappingURL=src-SI6O4A5Z.js.map
|
|
@@ -3,18 +3,18 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
syncTypes,
|
|
5
5
|
syncTypesWithAuth
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-Q2JFFZS2.js";
|
|
7
|
+
import "./chunk-S5TZQBRX.js";
|
|
8
|
+
import "./chunk-WREPBGVY.js";
|
|
9
9
|
import "./chunk-IGHRRWV4.js";
|
|
10
10
|
import "./chunk-MVBGFP6D.js";
|
|
11
11
|
import "./chunk-W54PG6O5.js";
|
|
12
12
|
import "./chunk-EVROMEWT.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4TL3CDOW.js";
|
|
14
14
|
import "./chunk-WMCHVSMU.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-PSUUZ5MS.js";
|
|
16
16
|
import "./chunk-KJ37XZQA.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-53Z75RS5.js";
|
|
18
18
|
import "./chunk-NRAQAV6T.js";
|
|
19
19
|
import "./chunk-SQ3KPTIH.js";
|
|
20
20
|
import "./chunk-Z4MHKCET.js";
|
|
@@ -30,4 +30,4 @@ export {
|
|
|
30
30
|
syncTypes,
|
|
31
31
|
syncTypesWithAuth
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=sync-types-
|
|
33
|
+
//# sourceMappingURL=sync-types-BGYXY6YW.js.map
|
|
@@ -3,33 +3,33 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
resolveNpmDependencies,
|
|
5
5
|
resolvePackageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7PPZIL4Q.js";
|
|
7
7
|
import "./chunk-5AY2TF4R.js";
|
|
8
8
|
import {
|
|
9
9
|
createLogger
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-OWKI56M7.js";
|
|
11
|
+
import "./chunk-MQU4OXW2.js";
|
|
12
12
|
import {
|
|
13
13
|
createI18nT
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AZQBBMA5.js";
|
|
15
15
|
import "./chunk-HEANTKSX.js";
|
|
16
16
|
import "./chunk-6EJNAOBP.js";
|
|
17
17
|
import {
|
|
18
18
|
authenticate
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-S5TZQBRX.js";
|
|
20
20
|
import "./chunk-CH52GF36.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-CXUAXJIJ.js";
|
|
22
22
|
import "./chunk-IRKCE3VI.js";
|
|
23
23
|
import "./chunk-ZWAKRWC6.js";
|
|
24
24
|
import "./chunk-2R5BII2J.js";
|
|
25
25
|
import "./chunk-W54PG6O5.js";
|
|
26
26
|
import "./chunk-YLWTNITT.js";
|
|
27
27
|
import "./chunk-EVROMEWT.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-4TL3CDOW.js";
|
|
29
29
|
import "./chunk-WMCHVSMU.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-PSUUZ5MS.js";
|
|
31
31
|
import "./chunk-KJ37XZQA.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-53Z75RS5.js";
|
|
33
33
|
import "./chunk-NRAQAV6T.js";
|
|
34
34
|
import "./chunk-SQ3KPTIH.js";
|
|
35
35
|
import "./chunk-Z4MHKCET.js";
|
|
@@ -84,4 +84,4 @@ async function uninstall(model, services, options, initialPackageName) {
|
|
|
84
84
|
export {
|
|
85
85
|
uninstall
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=uninstall-
|
|
87
|
+
//# sourceMappingURL=uninstall-VWLC623U.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/cli",
|
|
3
3
|
"description": "CLI tool for building Wix sites and applications",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.144",
|
|
5
5
|
"bin": {
|
|
6
6
|
"wix": "bin/wix.cjs"
|
|
7
7
|
},
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
|
-
"falconPackageHash": "
|
|
95
|
+
"falconPackageHash": "7a2c948ef65c742e7bed193663174311633bef84dadb5f02852eda21"
|
|
96
96
|
}
|
|
@@ -6,6 +6,6 @@ import { extensions } from '@wix/astro/builders';
|
|
|
6
6
|
export default extensions.ecomPaymentSettings({
|
|
7
7
|
id: '<%- config.id -%>',
|
|
8
8
|
name: '<%- route -%>',
|
|
9
|
-
fallbackValueForRequires3dSecure: false
|
|
9
|
+
fallbackValueForRequires3dSecure: false,
|
|
10
10
|
source: '<%- config.source -%>',
|
|
11
11
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="37" height="37" viewBox="0 0 36 36" fill="none"><rect x="0.5" y="0.5" width="35" height="35" rx="3.5" fill="#ECEFF3"></rect><rect x="0.5" y="0.5" width="35" height="35" rx="3.5" stroke="#ECEFF3"></rect><path d="M13.6099 23.6002L12.8999 22.8902C12.342 22.3329 11.8994 21.6712 11.5975 20.9428C11.2956 20.2144 11.1401 19.4337 11.1401 18.6452C11.1401 17.8567 11.2956 17.0759 11.5975 16.3475C11.8994 15.6191 12.342 14.9574 12.8999 14.4002V14.4002L22.0999 23.6002C21.5426 24.158 20.8809 24.6006 20.1525 24.9025C19.4241 25.2045 18.6433 25.3599 17.8549 25.3599C17.0664 25.3599 16.2856 25.2045 15.5572 24.9025C14.8288 24.6006 14.1671 24.158 13.6099 23.6002ZM24.2199 22.8902C24.3136 22.7972 24.388 22.6866 24.4387 22.5648C24.4895 22.4429 24.5157 22.3122 24.5157 22.1802C24.5157 22.0482 24.4895 21.9175 24.4387 21.7956C24.388 21.6737 24.3136 21.5631 24.2199 21.4702L14.9999 12.2802C14.9069 12.1864 14.7963 12.1121 14.6744 12.0613C14.5526 12.0105 14.4219 11.9844 14.2899 11.9844C14.1578 11.9844 14.0271 12.0105 13.9053 12.0613C13.7834 12.1121 13.6728 12.1864 13.5799 12.2802V12.2802C13.4861 12.3731 13.4117 12.4837 13.361 12.6056C13.3102 12.7275 13.2841 12.8582 13.2841 12.9902C13.2841 13.1222 13.3102 13.2529 13.361 13.3747C13.4117 13.4966 13.4861 13.6072 13.5799 13.7002L22.7699 22.8902C22.8633 22.9885 22.9757 23.0668 23.1004 23.1203C23.225 23.1738 23.3592 23.2014 23.4949 23.2014C23.6305 23.2014 23.7647 23.1738 23.8894 23.1203C24.014 23.0668 24.1264 22.9885 24.2199 22.8902ZM21.2799 11.6902C21.4661 11.5028 21.5707 11.2494 21.5707 10.9852C21.5707 10.721 21.4661 10.4675 21.2799 10.2802C21.1869 10.1864 21.0763 10.1121 20.9544 10.0613C20.8326 10.0105 20.7019 9.98438 20.5699 9.98438C20.4378 9.98438 20.3071 10.0105 20.1853 10.0613C20.0634 10.1121 19.9528 10.1864 19.8599 10.2802L17.0699 13.0702L18.4799 14.4802L21.2799 11.6902ZM26.2199 16.6902C26.3136 16.5972 26.388 16.4866 26.4387 16.3647C26.4895 16.2429 26.5157 16.1122 26.5157 15.9802C26.5157 15.8482 26.4895 15.7175 26.4387 15.5956C26.388 15.4737 26.3136 15.3631 26.2199 15.2702C26.0325 15.0839 25.779 14.9794 25.5149 14.9794C25.2507 14.9794 24.9972 15.0839 24.8099 15.2702L21.9999 18.0002L23.4099 19.4102L26.2199 16.6902Z" fill="#3B4057"></path></svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dependencies": {
|
|
3
|
+
"@wix/design-system": "^1.111.0",
|
|
4
|
+
"@wix/editor": "^1.356.0",
|
|
5
|
+
"react-to-webcomponent": "^2.0.0"
|
|
6
|
+
},
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@types/react": "^18.3.1",
|
|
9
|
+
"@types/react-dom": "^18.3.1",
|
|
10
|
+
"react": "^18.3.1",
|
|
11
|
+
"react-dom": "^18.3.1"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
to: <%- route -%>.extension.ts
|
|
3
|
+
---
|
|
4
|
+
import { extensions } from '@wix/astro/builders';
|
|
5
|
+
|
|
6
|
+
export default extensions.sitePlugin({
|
|
7
|
+
id: '<%- config.id -%>',
|
|
8
|
+
name: '<%- config.name -%>',
|
|
9
|
+
marketData: {
|
|
10
|
+
name: '<%- config.name -%>',
|
|
11
|
+
description: 'Marketing Description',
|
|
12
|
+
logoUrl: '{{BASE_URL}}/<%- route -%>-logo.svg',
|
|
13
|
+
},
|
|
14
|
+
placements: [{
|
|
15
|
+
appDefinitionId: '<%- config.placements[0].appDefinitionId -%>',
|
|
16
|
+
widgetId: '<%- config.placements[0].widgetId -%>',
|
|
17
|
+
slotId: '<%- config.placements[0].slotId -%>',
|
|
18
|
+
}],
|
|
19
|
+
installation: { autoAdd: true },
|
|
20
|
+
tagName: '<%- route -%>',
|
|
21
|
+
element: '<%- config.element -%>',
|
|
22
|
+
settings: '<%- config.settings -%>',
|
|
23
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
to: <%- route -%>.panel.tsx
|
|
3
|
+
---
|
|
4
|
+
import React, { type FC, useState, useEffect, useCallback } from 'react';
|
|
5
|
+
import { widget } from '@wix/editor';
|
|
6
|
+
import {
|
|
7
|
+
SidePanel,
|
|
8
|
+
WixDesignSystemProvider,
|
|
9
|
+
Input,
|
|
10
|
+
FormField,
|
|
11
|
+
} from '@wix/design-system';
|
|
12
|
+
import '@wix/design-system/styles.global.css';
|
|
13
|
+
|
|
14
|
+
const Panel: FC = () => {
|
|
15
|
+
const [displayName, setDisplayName] = useState<string>('');
|
|
16
|
+
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
widget.getProp('display-name')
|
|
19
|
+
.then(displayName => setDisplayName(displayName || `Your Plugin's Title`))
|
|
20
|
+
.catch(error => console.error('Failed to fetch display-name:', error));
|
|
21
|
+
}, [setDisplayName]);
|
|
22
|
+
|
|
23
|
+
const handleDisplayNameChange = useCallback((event: React.ChangeEvent<HTMLInputElement>) => {
|
|
24
|
+
const newDisplayName = event.target.value;
|
|
25
|
+
setDisplayName(newDisplayName);
|
|
26
|
+
widget.setProp('display-name', newDisplayName);
|
|
27
|
+
}, [setDisplayName]);
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<WixDesignSystemProvider>
|
|
31
|
+
<SidePanel width="300" height="100vh">
|
|
32
|
+
<SidePanel.Content noPadding stretchVertically>
|
|
33
|
+
<SidePanel.Field>
|
|
34
|
+
<FormField label="Display Name">
|
|
35
|
+
<Input
|
|
36
|
+
type="text"
|
|
37
|
+
value={displayName}
|
|
38
|
+
onChange={handleDisplayNameChange}
|
|
39
|
+
aria-label="Display Name"
|
|
40
|
+
/>
|
|
41
|
+
</FormField>
|
|
42
|
+
</SidePanel.Field>
|
|
43
|
+
</SidePanel.Content>
|
|
44
|
+
</SidePanel>
|
|
45
|
+
</WixDesignSystemProvider>
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export default Panel;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
to: <%- route -%>.tsx
|
|
3
|
+
---
|
|
4
|
+
class MyElement extends HTMLElement {
|
|
5
|
+
static get observedAttributes() {
|
|
6
|
+
return ['display-name'];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
connectedCallback() {
|
|
14
|
+
this.render();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
attributeChangedCallback() {
|
|
18
|
+
this.render();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
render() {
|
|
22
|
+
const displayName = this.getAttribute('display-name') || `Your Widget's Title`;
|
|
23
|
+
|
|
24
|
+
this.innerHTML = `
|
|
25
|
+
<div style="font-size: 16px; padding: 16px; border: 1px solid #ccc; border-radius: 8px; margin: 16px; height: 50%;">
|
|
26
|
+
<h2>${displayName}</h2>
|
|
27
|
+
<hr />
|
|
28
|
+
<p>
|
|
29
|
+
This is a Site Plugin generated by Wix CLI.<br />
|
|
30
|
+
Edit your element's code to change this text.
|
|
31
|
+
</p>
|
|
32
|
+
</div>
|
|
33
|
+
`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export default MyElement;
|