@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.
- package/build/{CreateVersionCommand-NCNK3B4H.js → CreateVersionCommand-I6EHK2T2.js} +14 -14
- package/build/{DevCommand-YDLV2KJM.js → DevCommand-DLODMFKI.js} +12 -12
- package/build/{GenerateCommand-MHQOLSPN.js → GenerateCommand-5KR6GRHW.js} +707 -509
- package/build/GenerateCommand-5KR6GRHW.js.map +1 -0
- package/build/{LogsCommand-727BQUJX.js → LogsCommand-EAOVZZG6.js} +4 -4
- package/build/PreviewCommand-B6XM6FQV.js +23 -0
- package/build/{ReleaseCommand-VU6V7GEV.js → ReleaseCommand-W36AG2IN.js} +15 -15
- package/build/{ServeCommand-KBS3RLPD.js → ServeCommand-BEXBK5ZA.js} +14 -14
- package/build/ServeCommand-BEXBK5ZA.js.map +1 -0
- package/build/{build-E34NPSSH.js → build-KITE7EW3.js} +33 -14
- package/build/build-KITE7EW3.js.map +1 -0
- package/build/{chunk-P7PN4CHV.js → chunk-4JQ75QTB.js} +3 -3
- package/build/{chunk-PZFZCK52.js → chunk-5KBGN6AI.js} +143 -58
- package/build/{chunk-PZFZCK52.js.map → chunk-5KBGN6AI.js.map} +1 -1
- package/build/{chunk-GTZDYTFO.js → chunk-AKMZVY3B.js} +3 -3
- package/build/{chunk-75XWKPKF.js → chunk-AU6RLQTX.js} +3 -3
- package/build/{chunk-VVLESE4P.js → chunk-DN2W5I6V.js} +4 -2
- package/build/chunk-DN2W5I6V.js.map +1 -0
- package/build/{chunk-4R3KUQGQ.js → chunk-EK4R4AAZ.js} +3 -3
- package/build/{chunk-EAPMWJ4C.js → chunk-EQX4ZNQY.js} +28 -30
- package/build/{chunk-EAPMWJ4C.js.map → chunk-EQX4ZNQY.js.map} +1 -1
- package/build/{chunk-A6GRJNEC.js → chunk-EZYYTB4A.js} +16 -8
- package/build/chunk-EZYYTB4A.js.map +1 -0
- package/build/{chunk-IE6RONCN.js → chunk-F6K4Z645.js} +5 -5
- package/build/{chunk-HY44AJBX.js → chunk-FUJL6MQF.js} +10 -2
- package/build/chunk-FUJL6MQF.js.map +1 -0
- package/build/{chunk-JXZFXR5O.js → chunk-JHRMWYBU.js} +3 -3
- package/build/{chunk-FG4PQXAC.js → chunk-JVG7ATK2.js} +3 -3
- package/build/{chunk-N4ETYB2B.js → chunk-M7NEF3JI.js} +5 -5
- package/build/{chunk-G3X4DX2P.js → chunk-MXNYBCOX.js} +8975 -8690
- package/build/chunk-MXNYBCOX.js.map +1 -0
- package/build/{chunk-MRMIQOH4.js → chunk-OU2SCVZ4.js} +4 -3
- package/build/{chunk-Q2DE27PN.js → chunk-P7Z3QMUB.js} +3 -3
- package/build/{chunk-DQXLAGEX.js → chunk-U7NOLQSJ.js} +2 -2
- package/build/{chunk-PH2UYNX4.js → chunk-VYH54DVP.js} +8 -8
- package/build/index.js +20 -20
- package/build/{preview-NOGUOO4T.js → preview-MYW7A4XF.js} +12 -12
- package/build/{render-command-WBYARJYH.js → render-command-5UQ5JPA6.js} +6 -6
- package/package.json +7 -6
- package/templates/blocks-support/dependencies.json +6 -0
- package/templates/blocks-widget/files/api.ts.ejs +1 -1
- package/templates/blocks-widget/files/widget.ts.ejs +8 -1
- package/templates/blocks-widget-panel/files/panel.ts.ejs +8 -0
- package/build/GenerateCommand-MHQOLSPN.js.map +0 -1
- package/build/PreviewCommand-RZYVEWL4.js +0 -23
- package/build/ServeCommand-KBS3RLPD.js.map +0 -1
- package/build/build-E34NPSSH.js.map +0 -1
- package/build/chunk-A6GRJNEC.js.map +0 -1
- package/build/chunk-G3X4DX2P.js.map +0 -1
- package/build/chunk-HY44AJBX.js.map +0 -1
- package/build/chunk-VVLESE4P.js.map +0 -1
- /package/build/{CreateVersionCommand-NCNK3B4H.js.map → CreateVersionCommand-I6EHK2T2.js.map} +0 -0
- /package/build/{DevCommand-YDLV2KJM.js.map → DevCommand-DLODMFKI.js.map} +0 -0
- /package/build/{LogsCommand-727BQUJX.js.map → LogsCommand-EAOVZZG6.js.map} +0 -0
- /package/build/{PreviewCommand-RZYVEWL4.js.map → PreviewCommand-B6XM6FQV.js.map} +0 -0
- /package/build/{ReleaseCommand-VU6V7GEV.js.map → ReleaseCommand-W36AG2IN.js.map} +0 -0
- /package/build/{chunk-P7PN4CHV.js.map → chunk-4JQ75QTB.js.map} +0 -0
- /package/build/{chunk-GTZDYTFO.js.map → chunk-AKMZVY3B.js.map} +0 -0
- /package/build/{chunk-75XWKPKF.js.map → chunk-AU6RLQTX.js.map} +0 -0
- /package/build/{chunk-4R3KUQGQ.js.map → chunk-EK4R4AAZ.js.map} +0 -0
- /package/build/{chunk-IE6RONCN.js.map → chunk-F6K4Z645.js.map} +0 -0
- /package/build/{chunk-JXZFXR5O.js.map → chunk-JHRMWYBU.js.map} +0 -0
- /package/build/{chunk-FG4PQXAC.js.map → chunk-JVG7ATK2.js.map} +0 -0
- /package/build/{chunk-N4ETYB2B.js.map → chunk-M7NEF3JI.js.map} +0 -0
- /package/build/{chunk-MRMIQOH4.js.map → chunk-OU2SCVZ4.js.map} +0 -0
- /package/build/{chunk-Q2DE27PN.js.map → chunk-P7Z3QMUB.js.map} +0 -0
- /package/build/{chunk-DQXLAGEX.js.map → chunk-U7NOLQSJ.js.map} +0 -0
- /package/build/{chunk-PH2UYNX4.js.map → chunk-VYH54DVP.js.map} +0 -0
- /package/build/{preview-NOGUOO4T.js.map → preview-MYW7A4XF.js.map} +0 -0
- /package/build/{render-command-WBYARJYH.js.map → render-command-5UQ5JPA6.js.map} +0 -0
|
@@ -2,11 +2,11 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
require_index_node
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5KBGN6AI.js";
|
|
6
6
|
import {
|
|
7
7
|
require_react,
|
|
8
8
|
require_verror
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DN2W5I6V.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM,
|
|
12
12
|
init_esm_shims
|
|
@@ -101,4 +101,4 @@ export {
|
|
|
101
101
|
DebugLogProvider,
|
|
102
102
|
useDebugLog
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=chunk-
|
|
104
|
+
//# sourceMappingURL=chunk-EK4R4AAZ.js.map
|
|
@@ -4,22 +4,23 @@ import {
|
|
|
4
4
|
componentGenerator,
|
|
5
5
|
require_lodash,
|
|
6
6
|
useBackendComponents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OU2SCVZ4.js";
|
|
8
8
|
import {
|
|
9
9
|
useTunnel
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-P7Z3QMUB.js";
|
|
11
11
|
import {
|
|
12
12
|
useDebugLog
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EK4R4AAZ.js";
|
|
14
14
|
import {
|
|
15
15
|
createAppManifest,
|
|
16
|
-
|
|
16
|
+
getComponentDevSourceBuilder,
|
|
17
17
|
getViteConfig,
|
|
18
18
|
getViteConfig2,
|
|
19
19
|
getViteServerUrl,
|
|
20
20
|
updateAppManifestWithBaseUrl,
|
|
21
|
-
updateBlocksComponents
|
|
22
|
-
|
|
21
|
+
updateBlocksComponents,
|
|
22
|
+
updateWorkerComponentsWithBaseUrl
|
|
23
|
+
} from "./chunk-MXNYBCOX.js";
|
|
23
24
|
import {
|
|
24
25
|
BLOCKS_WIDGET_PANELS_DIR,
|
|
25
26
|
ComponentType2 as ComponentType,
|
|
@@ -46,7 +47,7 @@ import {
|
|
|
46
47
|
useExtensions,
|
|
47
48
|
useHttpClient,
|
|
48
49
|
useProjectModel
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-5KBGN6AI.js";
|
|
50
51
|
import {
|
|
51
52
|
Alert,
|
|
52
53
|
CliError,
|
|
@@ -64,7 +65,7 @@ import {
|
|
|
64
65
|
useExit,
|
|
65
66
|
useTranslation,
|
|
66
67
|
z
|
|
67
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-DN2W5I6V.js";
|
|
68
69
|
import {
|
|
69
70
|
__commonJS,
|
|
70
71
|
__dirname,
|
|
@@ -23717,16 +23718,19 @@ var createAppManifestWithBaseUrl = async (model, clientDevServerUrl, backendServ
|
|
|
23717
23718
|
const manifest = await createAppManifest({
|
|
23718
23719
|
appId: model.config.appId,
|
|
23719
23720
|
components: model.components,
|
|
23720
|
-
componentSourceBuilder:
|
|
23721
|
+
componentSourceBuilder: getComponentDevSourceBuilder(
|
|
23721
23722
|
model,
|
|
23722
|
-
{ clientDevServerUrl },
|
|
23723
|
+
{ devServerUrl: clientDevServerUrl },
|
|
23723
23724
|
{ backendDevServerUrl: backendServerUrl?.localUrl }
|
|
23724
23725
|
)
|
|
23725
23726
|
});
|
|
23726
|
-
return
|
|
23727
|
-
|
|
23728
|
-
|
|
23729
|
-
|
|
23727
|
+
return updateWorkerComponentsWithBaseUrl(
|
|
23728
|
+
updateAppManifestWithBaseUrl(
|
|
23729
|
+
updateBlocksComponents(manifest, blocksComponents),
|
|
23730
|
+
clientDevServerUrl,
|
|
23731
|
+
backendServerUrl?.tunnelUrl
|
|
23732
|
+
),
|
|
23733
|
+
clientDevServerUrl
|
|
23730
23734
|
);
|
|
23731
23735
|
};
|
|
23732
23736
|
function useArmUpdater() {
|
|
@@ -23841,7 +23845,7 @@ function useClientDevServer({ https }) {
|
|
|
23841
23845
|
const { model } = useProjectModel();
|
|
23842
23846
|
const createDevServer = useViteDevServer({
|
|
23843
23847
|
createConfig: ({ projectModelWatcher, baseBackendUrl, customLogger }) => {
|
|
23844
|
-
return
|
|
23848
|
+
return getViteConfig2(
|
|
23845
23849
|
model,
|
|
23846
23850
|
{
|
|
23847
23851
|
type: "dev" /* dev */,
|
|
@@ -23863,7 +23867,7 @@ function useBackendDevServer({ https }) {
|
|
|
23863
23867
|
const appSecret = await getAppSecret({
|
|
23864
23868
|
appId: model.config.appId
|
|
23865
23869
|
});
|
|
23866
|
-
return
|
|
23870
|
+
return getViteConfig(
|
|
23867
23871
|
model,
|
|
23868
23872
|
{
|
|
23869
23873
|
type: "dev" /* dev */,
|
|
@@ -27874,7 +27878,7 @@ function useBlocksComponentsRef() {
|
|
|
27874
27878
|
|
|
27875
27879
|
// src/components/DevCommand/blocks-cli-dev-server/sync-blocks-components.ts
|
|
27876
27880
|
init_esm_shims();
|
|
27877
|
-
import { dirname } from "node:path";
|
|
27881
|
+
import { dirname, basename } from "node:path";
|
|
27878
27882
|
import { rm } from "node:fs/promises";
|
|
27879
27883
|
|
|
27880
27884
|
// src/components/DevCommand/blocks-cli-dev-server/generate.ts
|
|
@@ -27893,8 +27897,7 @@ async function generateBlocksWidget(projectFolder, id, name) {
|
|
|
27893
27897
|
const cwd = path.join(getBlocksWidgetsDir(projectFolder), (0, import_lodash.kebabCase)(name));
|
|
27894
27898
|
const widgetConfig = {
|
|
27895
27899
|
$schema: "https://dev.wix.com/wix-cli/schemas/blocks-widget.json",
|
|
27896
|
-
id
|
|
27897
|
-
name
|
|
27900
|
+
id
|
|
27898
27901
|
};
|
|
27899
27902
|
const widgetConfigJSON = toJsonString(widgetConfig, { spaces: 2 });
|
|
27900
27903
|
return componentGenerator({
|
|
@@ -27917,10 +27920,7 @@ async function generateBlocksWidgetPanel(projectFolder, id, name, widgetName) {
|
|
|
27917
27920
|
);
|
|
27918
27921
|
const panelConfig = {
|
|
27919
27922
|
$schema: "https://dev.wix.com/wix-cli/schemas/blocks-widget-panel.json",
|
|
27920
|
-
id
|
|
27921
|
-
name,
|
|
27922
|
-
width: "MEDIUM",
|
|
27923
|
-
height: 300
|
|
27923
|
+
id
|
|
27924
27924
|
};
|
|
27925
27925
|
const panelConfigJSON = toJsonString(panelConfig, { spaces: 2 });
|
|
27926
27926
|
return componentGenerator({
|
|
@@ -27981,7 +27981,7 @@ async function syncBlocksComponents(projectFolder, targetWidgets, existingWidget
|
|
|
27981
27981
|
projectFolder,
|
|
27982
27982
|
panel.id,
|
|
27983
27983
|
panel.name,
|
|
27984
|
-
existingWidget
|
|
27984
|
+
existingWidget ? basename(dirname(existingWidget.relativePath)) : widget.name
|
|
27985
27985
|
);
|
|
27986
27986
|
});
|
|
27987
27987
|
actions.push(...addActions);
|
|
@@ -28021,10 +28021,7 @@ var BlocksCLIDevServerProvider = ({ httpServer, children }) => {
|
|
|
28021
28021
|
revisionId: wixConfigRef.current.blocks?.uiRevision ?? "0"
|
|
28022
28022
|
}),
|
|
28023
28023
|
onSyncRevisionHandler: async ({ revisionId, widgets }) => {
|
|
28024
|
-
logger.info("
|
|
28025
|
-
logger.info(`revisionId = ${revisionId}`);
|
|
28026
|
-
logger.info(`widgets = ${JSON.stringify(widgets)}`);
|
|
28027
|
-
logger.info("----------------------");
|
|
28024
|
+
logger.info(t("dev_command.blocks.syncing_revision"));
|
|
28028
28025
|
try {
|
|
28029
28026
|
await sync_blocks_components_default(
|
|
28030
28027
|
model.projectFolder,
|
|
@@ -28505,7 +28502,8 @@ var redirectWithCSMv2FTs = (url2, platformType) => {
|
|
|
28505
28502
|
// TODO: Remove once Blocks on CLI effort is done
|
|
28506
28503
|
"specs.thunderbolt.passWidgetBundleUrls",
|
|
28507
28504
|
"specs.thunderbolt.passBlocksWidgetBundleUrls",
|
|
28508
|
-
"specs.blocks-client.useBundledWidgetCode"
|
|
28505
|
+
"specs.blocks-client.useBundledWidgetCode",
|
|
28506
|
+
"specs.blocks-widget-services.usePanelExtension"
|
|
28509
28507
|
];
|
|
28510
28508
|
for (const spec of petriOvr) {
|
|
28511
28509
|
elgarRedirectUrl.searchParams.append("experiments", `${spec}#true`);
|
|
@@ -28765,4 +28763,4 @@ xmlhttprequest-ssl/lib/XMLHttpRequest.js:
|
|
|
28765
28763
|
* @license MIT
|
|
28766
28764
|
*)
|
|
28767
28765
|
*/
|
|
28768
|
-
//# sourceMappingURL=chunk-
|
|
28766
|
+
//# sourceMappingURL=chunk-EQX4ZNQY.js.map
|