@wix/cli-app 1.1.59 → 1.1.60
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-6HJGN4WS.js → CreateVersionCommand-Z6F5IKH5.js} +14 -14
- package/build/{DevCommand-U7PV4HW6.js → DevCommand-YFEZ4QV5.js} +12 -12
- package/build/{GenerateCommand-M3T6OD4B.js → GenerateCommand-KCV4YDNN.js} +15 -9
- package/build/{GenerateCommand-M3T6OD4B.js.map → GenerateCommand-KCV4YDNN.js.map} +1 -1
- package/build/{LogsCommand-ECPZQ3LE.js → LogsCommand-VBMGVYNU.js} +4 -4
- package/build/PreviewCommand-3OMHWDW6.js +23 -0
- package/build/{ReleaseCommand-KLZWNOVY.js → ReleaseCommand-5F3FPBXT.js} +14 -14
- package/build/{ServeCommand-I65XXTLM.js → ServeCommand-G4FF4PT3.js} +13 -13
- package/build/{build-HZ5LVFAS.js → build-XZI3USNB.js} +7 -7
- package/build/{chunk-BNROT2BN.js → chunk-2PTCXTKF.js} +5 -5
- package/build/{chunk-DXNFLVQP.js → chunk-36W5H7IG.js} +9 -4
- package/build/chunk-36W5H7IG.js.map +1 -0
- package/build/{chunk-IDWDZWLM.js → chunk-4VTDNX5T.js} +2 -2
- package/build/{chunk-QW4WBWJK.js → chunk-5QZS3HT7.js} +3 -3
- package/build/{chunk-FHMCCDCY.js → chunk-7CGRTCDC.js} +3 -3
- package/build/{chunk-OCC6MO6R.js → chunk-CNZ3Q5PF.js} +5 -5
- package/build/{chunk-FMM24YL4.js → chunk-DGTJGIY2.js} +233 -74
- package/build/chunk-DGTJGIY2.js.map +1 -0
- package/build/{chunk-ZXHKA32C.js → chunk-FTC5AK3Y.js} +7 -7
- package/build/{chunk-PAWIUC26.js → chunk-HUWYF2ET.js} +8 -8
- package/build/{chunk-U72IPCQR.js → chunk-IG6IV6VM.js} +3 -3
- package/build/{chunk-4JDHJDA5.js → chunk-O42QDBJU.js} +2 -2
- package/build/{chunk-EZLVJJON.js → chunk-PKSGXFYA.js} +3 -3
- package/build/{chunk-ZJYRE4BT.js → chunk-USAOCISL.js} +3 -3
- package/build/{chunk-W4HI7DI3.js → chunk-VXE3IWKR.js} +2 -2
- package/build/{chunk-ACN6EZGH.js → chunk-VZJZSWRE.js} +3 -3
- package/build/{chunk-AQKGIDJO.js → chunk-WRPV7SLY.js} +242 -172
- package/build/chunk-WRPV7SLY.js.map +1 -0
- package/build/{chunk-UQBZVJDQ.js → chunk-WRWNJYKZ.js} +3 -3
- package/build/cloudflare-runtime/entry.js +8 -1
- package/build/index.js +19 -19
- package/build/platform-sdk/chunk-42XIZ4MH.js +2 -0
- package/build/platform-sdk/chunk-42XIZ4MH.js.map +1 -0
- package/build/platform-sdk/chunk-EERHWVVD.js +2 -0
- package/build/platform-sdk/chunk-EERHWVVD.js.map +1 -0
- package/build/platform-sdk/{chunk-LO6MZPZE.js → chunk-QV4VBCJB.js} +2 -2
- package/build/platform-sdk/dashboard.js +1 -1
- package/build/platform-sdk/dashboard.js.map +1 -1
- package/build/platform-sdk/editor.js +2 -2
- package/build/platform-sdk/editor.js.map +1 -1
- package/build/platform-sdk/sdk-context.js +2 -0
- package/build/platform-sdk/sdk-context.js.map +1 -0
- package/build/platform-sdk/site.js +1 -1
- package/build/platform-sdk/site.js.map +1 -1
- package/build/{preview-FI6WYZUP.js → preview-VAHHFTRZ.js} +12 -12
- package/build/{render-command-UKYXN7C7.js → render-command-3AYSQXHN.js} +5 -5
- package/package.json +3 -3
- package/schemas/site-plugin.json +1 -1
- package/schemas/wix-config.json +1 -1
- package/build/PreviewCommand-ZQ3OUOKW.js +0 -23
- package/build/chunk-AQKGIDJO.js.map +0 -1
- package/build/chunk-DXNFLVQP.js.map +0 -1
- package/build/chunk-FMM24YL4.js.map +0 -1
- package/build/platform-sdk/chunk-EVF6HSFE.js +0 -2
- package/build/platform-sdk/chunk-EVF6HSFE.js.map +0 -1
- /package/build/{CreateVersionCommand-6HJGN4WS.js.map → CreateVersionCommand-Z6F5IKH5.js.map} +0 -0
- /package/build/{DevCommand-U7PV4HW6.js.map → DevCommand-YFEZ4QV5.js.map} +0 -0
- /package/build/{LogsCommand-ECPZQ3LE.js.map → LogsCommand-VBMGVYNU.js.map} +0 -0
- /package/build/{PreviewCommand-ZQ3OUOKW.js.map → PreviewCommand-3OMHWDW6.js.map} +0 -0
- /package/build/{ReleaseCommand-KLZWNOVY.js.map → ReleaseCommand-5F3FPBXT.js.map} +0 -0
- /package/build/{ServeCommand-I65XXTLM.js.map → ServeCommand-G4FF4PT3.js.map} +0 -0
- /package/build/{build-HZ5LVFAS.js.map → build-XZI3USNB.js.map} +0 -0
- /package/build/{chunk-BNROT2BN.js.map → chunk-2PTCXTKF.js.map} +0 -0
- /package/build/{chunk-IDWDZWLM.js.map → chunk-4VTDNX5T.js.map} +0 -0
- /package/build/{chunk-QW4WBWJK.js.map → chunk-5QZS3HT7.js.map} +0 -0
- /package/build/{chunk-FHMCCDCY.js.map → chunk-7CGRTCDC.js.map} +0 -0
- /package/build/{chunk-OCC6MO6R.js.map → chunk-CNZ3Q5PF.js.map} +0 -0
- /package/build/{chunk-ZXHKA32C.js.map → chunk-FTC5AK3Y.js.map} +0 -0
- /package/build/{chunk-PAWIUC26.js.map → chunk-HUWYF2ET.js.map} +0 -0
- /package/build/{chunk-U72IPCQR.js.map → chunk-IG6IV6VM.js.map} +0 -0
- /package/build/{chunk-4JDHJDA5.js.map → chunk-O42QDBJU.js.map} +0 -0
- /package/build/{chunk-EZLVJJON.js.map → chunk-PKSGXFYA.js.map} +0 -0
- /package/build/{chunk-ZJYRE4BT.js.map → chunk-USAOCISL.js.map} +0 -0
- /package/build/{chunk-W4HI7DI3.js.map → chunk-VXE3IWKR.js.map} +0 -0
- /package/build/{chunk-ACN6EZGH.js.map → chunk-VZJZSWRE.js.map} +0 -0
- /package/build/{chunk-UQBZVJDQ.js.map → chunk-WRWNJYKZ.js.map} +0 -0
- /package/build/platform-sdk/{chunk-LO6MZPZE.js.map → chunk-QV4VBCJB.js.map} +0 -0
- /package/build/{preview-FI6WYZUP.js.map → preview-VAHHFTRZ.js.map} +0 -0
- /package/build/{render-command-UKYXN7C7.js.map → render-command-3AYSQXHN.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
require_baseUniq
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VXE3IWKR.js";
|
|
6
6
|
import {
|
|
7
7
|
BLOCKS_WIDGETS_PANELS_PATTERN,
|
|
8
8
|
BLOCKS_WIDGETS_PATTERN,
|
|
@@ -21,7 +21,9 @@ import {
|
|
|
21
21
|
ExtendingComponentType,
|
|
22
22
|
HeightMode,
|
|
23
23
|
MonitoringType,
|
|
24
|
+
PanelContentType,
|
|
24
25
|
PanelSizeWidth,
|
|
26
|
+
RELATIVE_ASSET_PATH_REGEX,
|
|
25
27
|
RegionType,
|
|
26
28
|
SERVICE_PLUGINS_PATTERN,
|
|
27
29
|
SITE_PLUGINS_PANEL_PATTERN,
|
|
@@ -37,6 +39,7 @@ import {
|
|
|
37
39
|
getBackendEventSlug,
|
|
38
40
|
getBackendOptimizedDir,
|
|
39
41
|
getDataDirPath,
|
|
42
|
+
readFile,
|
|
40
43
|
replaceExtension,
|
|
41
44
|
require_picomatch,
|
|
42
45
|
virtualBlocksWidgetPanelScriptAssets,
|
|
@@ -52,14 +55,14 @@ import {
|
|
|
52
55
|
virtualModuleIdForScriptAsset,
|
|
53
56
|
virtualPathForCustomElementPanelHTMLAsset,
|
|
54
57
|
virtualPathForHTMLAsset
|
|
55
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-DGTJGIY2.js";
|
|
56
59
|
import {
|
|
57
60
|
CliError,
|
|
58
61
|
CliErrorCode,
|
|
59
62
|
getTestOverrides,
|
|
60
63
|
require_lib,
|
|
61
64
|
z
|
|
62
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-36W5H7IG.js";
|
|
63
66
|
import {
|
|
64
67
|
__commonJS,
|
|
65
68
|
__esm,
|
|
@@ -153,14 +156,14 @@ var require_polyfills = __commonJS({
|
|
|
153
156
|
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
154
157
|
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
155
158
|
if (fs2.chmod && !fs2.lchmod) {
|
|
156
|
-
fs2.lchmod = function(
|
|
159
|
+
fs2.lchmod = function(path7, mode, cb) {
|
|
157
160
|
if (cb) process.nextTick(cb);
|
|
158
161
|
};
|
|
159
162
|
fs2.lchmodSync = function() {
|
|
160
163
|
};
|
|
161
164
|
}
|
|
162
165
|
if (fs2.chown && !fs2.lchown) {
|
|
163
|
-
fs2.lchown = function(
|
|
166
|
+
fs2.lchown = function(path7, uid, gid, cb) {
|
|
164
167
|
if (cb) process.nextTick(cb);
|
|
165
168
|
};
|
|
166
169
|
fs2.lchownSync = function() {
|
|
@@ -227,9 +230,9 @@ var require_polyfills = __commonJS({
|
|
|
227
230
|
};
|
|
228
231
|
}(fs2.readSync);
|
|
229
232
|
function patchLchmod(fs3) {
|
|
230
|
-
fs3.lchmod = function(
|
|
233
|
+
fs3.lchmod = function(path7, mode, callback) {
|
|
231
234
|
fs3.open(
|
|
232
|
-
|
|
235
|
+
path7,
|
|
233
236
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
234
237
|
mode,
|
|
235
238
|
function(err, fd) {
|
|
@@ -245,8 +248,8 @@ var require_polyfills = __commonJS({
|
|
|
245
248
|
}
|
|
246
249
|
);
|
|
247
250
|
};
|
|
248
|
-
fs3.lchmodSync = function(
|
|
249
|
-
var fd = fs3.openSync(
|
|
251
|
+
fs3.lchmodSync = function(path7, mode) {
|
|
252
|
+
var fd = fs3.openSync(path7, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
250
253
|
var threw = true;
|
|
251
254
|
var ret;
|
|
252
255
|
try {
|
|
@@ -267,8 +270,8 @@ var require_polyfills = __commonJS({
|
|
|
267
270
|
}
|
|
268
271
|
function patchLutimes(fs3) {
|
|
269
272
|
if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
|
|
270
|
-
fs3.lutimes = function(
|
|
271
|
-
fs3.open(
|
|
273
|
+
fs3.lutimes = function(path7, at2, mt, cb) {
|
|
274
|
+
fs3.open(path7, constants.O_SYMLINK, function(er, fd) {
|
|
272
275
|
if (er) {
|
|
273
276
|
if (cb) cb(er);
|
|
274
277
|
return;
|
|
@@ -280,8 +283,8 @@ var require_polyfills = __commonJS({
|
|
|
280
283
|
});
|
|
281
284
|
});
|
|
282
285
|
};
|
|
283
|
-
fs3.lutimesSync = function(
|
|
284
|
-
var fd = fs3.openSync(
|
|
286
|
+
fs3.lutimesSync = function(path7, at2, mt) {
|
|
287
|
+
var fd = fs3.openSync(path7, constants.O_SYMLINK);
|
|
285
288
|
var ret;
|
|
286
289
|
var threw = true;
|
|
287
290
|
try {
|
|
@@ -401,11 +404,11 @@ var require_legacy_streams = __commonJS({
|
|
|
401
404
|
ReadStream,
|
|
402
405
|
WriteStream
|
|
403
406
|
};
|
|
404
|
-
function ReadStream(
|
|
405
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
407
|
+
function ReadStream(path7, options) {
|
|
408
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path7, options);
|
|
406
409
|
Stream.call(this);
|
|
407
410
|
var self2 = this;
|
|
408
|
-
this.path =
|
|
411
|
+
this.path = path7;
|
|
409
412
|
this.fd = null;
|
|
410
413
|
this.readable = true;
|
|
411
414
|
this.paused = false;
|
|
@@ -450,10 +453,10 @@ var require_legacy_streams = __commonJS({
|
|
|
450
453
|
self2._read();
|
|
451
454
|
});
|
|
452
455
|
}
|
|
453
|
-
function WriteStream(
|
|
454
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
456
|
+
function WriteStream(path7, options) {
|
|
457
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path7, options);
|
|
455
458
|
Stream.call(this);
|
|
456
|
-
this.path =
|
|
459
|
+
this.path = path7;
|
|
457
460
|
this.fd = null;
|
|
458
461
|
this.writable = true;
|
|
459
462
|
this.flags = "w";
|
|
@@ -598,15 +601,15 @@ var require_graceful_fs = __commonJS({
|
|
|
598
601
|
fs3.createReadStream = createReadStream;
|
|
599
602
|
fs3.createWriteStream = createWriteStream;
|
|
600
603
|
var fs$readFile = fs3.readFile;
|
|
601
|
-
fs3.readFile =
|
|
602
|
-
function
|
|
604
|
+
fs3.readFile = readFile5;
|
|
605
|
+
function readFile5(path7, options, cb) {
|
|
603
606
|
if (typeof options === "function")
|
|
604
607
|
cb = options, options = null;
|
|
605
|
-
return go$readFile(
|
|
606
|
-
function go$readFile(
|
|
607
|
-
return fs$readFile(
|
|
608
|
+
return go$readFile(path7, options, cb);
|
|
609
|
+
function go$readFile(path8, options2, cb2, startTime) {
|
|
610
|
+
return fs$readFile(path8, options2, function(err) {
|
|
608
611
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
609
|
-
enqueue([go$readFile, [
|
|
612
|
+
enqueue([go$readFile, [path8, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
610
613
|
else {
|
|
611
614
|
if (typeof cb2 === "function")
|
|
612
615
|
cb2.apply(this, arguments);
|
|
@@ -616,14 +619,14 @@ var require_graceful_fs = __commonJS({
|
|
|
616
619
|
}
|
|
617
620
|
var fs$writeFile = fs3.writeFile;
|
|
618
621
|
fs3.writeFile = writeFile3;
|
|
619
|
-
function writeFile3(
|
|
622
|
+
function writeFile3(path7, data2, options, cb) {
|
|
620
623
|
if (typeof options === "function")
|
|
621
624
|
cb = options, options = null;
|
|
622
|
-
return go$writeFile(
|
|
623
|
-
function go$writeFile(
|
|
624
|
-
return fs$writeFile(
|
|
625
|
+
return go$writeFile(path7, data2, options, cb);
|
|
626
|
+
function go$writeFile(path8, data3, options2, cb2, startTime) {
|
|
627
|
+
return fs$writeFile(path8, data3, options2, function(err) {
|
|
625
628
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
626
|
-
enqueue([go$writeFile, [
|
|
629
|
+
enqueue([go$writeFile, [path8, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
627
630
|
else {
|
|
628
631
|
if (typeof cb2 === "function")
|
|
629
632
|
cb2.apply(this, arguments);
|
|
@@ -634,14 +637,14 @@ var require_graceful_fs = __commonJS({
|
|
|
634
637
|
var fs$appendFile = fs3.appendFile;
|
|
635
638
|
if (fs$appendFile)
|
|
636
639
|
fs3.appendFile = appendFile;
|
|
637
|
-
function appendFile(
|
|
640
|
+
function appendFile(path7, data2, options, cb) {
|
|
638
641
|
if (typeof options === "function")
|
|
639
642
|
cb = options, options = null;
|
|
640
|
-
return go$appendFile(
|
|
641
|
-
function go$appendFile(
|
|
642
|
-
return fs$appendFile(
|
|
643
|
+
return go$appendFile(path7, data2, options, cb);
|
|
644
|
+
function go$appendFile(path8, data3, options2, cb2, startTime) {
|
|
645
|
+
return fs$appendFile(path8, data3, options2, function(err) {
|
|
643
646
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
644
|
-
enqueue([go$appendFile, [
|
|
647
|
+
enqueue([go$appendFile, [path8, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
645
648
|
else {
|
|
646
649
|
if (typeof cb2 === "function")
|
|
647
650
|
cb2.apply(this, arguments);
|
|
@@ -672,31 +675,31 @@ var require_graceful_fs = __commonJS({
|
|
|
672
675
|
var fs$readdir = fs3.readdir;
|
|
673
676
|
fs3.readdir = readdir;
|
|
674
677
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
675
|
-
function readdir(
|
|
678
|
+
function readdir(path7, options, cb) {
|
|
676
679
|
if (typeof options === "function")
|
|
677
680
|
cb = options, options = null;
|
|
678
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
679
|
-
return fs$readdir(
|
|
680
|
-
|
|
681
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path8, options2, cb2, startTime) {
|
|
682
|
+
return fs$readdir(path8, fs$readdirCallback(
|
|
683
|
+
path8,
|
|
681
684
|
options2,
|
|
682
685
|
cb2,
|
|
683
686
|
startTime
|
|
684
687
|
));
|
|
685
|
-
} : function go$readdir2(
|
|
686
|
-
return fs$readdir(
|
|
687
|
-
|
|
688
|
+
} : function go$readdir2(path8, options2, cb2, startTime) {
|
|
689
|
+
return fs$readdir(path8, options2, fs$readdirCallback(
|
|
690
|
+
path8,
|
|
688
691
|
options2,
|
|
689
692
|
cb2,
|
|
690
693
|
startTime
|
|
691
694
|
));
|
|
692
695
|
};
|
|
693
|
-
return go$readdir(
|
|
694
|
-
function fs$readdirCallback(
|
|
696
|
+
return go$readdir(path7, options, cb);
|
|
697
|
+
function fs$readdirCallback(path8, options2, cb2, startTime) {
|
|
695
698
|
return function(err, files) {
|
|
696
699
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
697
700
|
enqueue([
|
|
698
701
|
go$readdir,
|
|
699
|
-
[
|
|
702
|
+
[path8, options2, cb2],
|
|
700
703
|
err,
|
|
701
704
|
startTime || Date.now(),
|
|
702
705
|
Date.now()
|
|
@@ -767,7 +770,7 @@ var require_graceful_fs = __commonJS({
|
|
|
767
770
|
enumerable: true,
|
|
768
771
|
configurable: true
|
|
769
772
|
});
|
|
770
|
-
function ReadStream(
|
|
773
|
+
function ReadStream(path7, options) {
|
|
771
774
|
if (this instanceof ReadStream)
|
|
772
775
|
return fs$ReadStream.apply(this, arguments), this;
|
|
773
776
|
else
|
|
@@ -787,7 +790,7 @@ var require_graceful_fs = __commonJS({
|
|
|
787
790
|
}
|
|
788
791
|
});
|
|
789
792
|
}
|
|
790
|
-
function WriteStream(
|
|
793
|
+
function WriteStream(path7, options) {
|
|
791
794
|
if (this instanceof WriteStream)
|
|
792
795
|
return fs$WriteStream.apply(this, arguments), this;
|
|
793
796
|
else
|
|
@@ -805,22 +808,22 @@ var require_graceful_fs = __commonJS({
|
|
|
805
808
|
}
|
|
806
809
|
});
|
|
807
810
|
}
|
|
808
|
-
function createReadStream(
|
|
809
|
-
return new fs3.ReadStream(
|
|
811
|
+
function createReadStream(path7, options) {
|
|
812
|
+
return new fs3.ReadStream(path7, options);
|
|
810
813
|
}
|
|
811
|
-
function createWriteStream(
|
|
812
|
-
return new fs3.WriteStream(
|
|
814
|
+
function createWriteStream(path7, options) {
|
|
815
|
+
return new fs3.WriteStream(path7, options);
|
|
813
816
|
}
|
|
814
817
|
var fs$open = fs3.open;
|
|
815
818
|
fs3.open = open;
|
|
816
|
-
function open(
|
|
819
|
+
function open(path7, flags, mode, cb) {
|
|
817
820
|
if (typeof mode === "function")
|
|
818
821
|
cb = mode, mode = null;
|
|
819
|
-
return go$open(
|
|
820
|
-
function go$open(
|
|
821
|
-
return fs$open(
|
|
822
|
+
return go$open(path7, flags, mode, cb);
|
|
823
|
+
function go$open(path8, flags2, mode2, cb2, startTime) {
|
|
824
|
+
return fs$open(path8, flags2, mode2, function(err, fd) {
|
|
822
825
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
823
|
-
enqueue([go$open, [
|
|
826
|
+
enqueue([go$open, [path8, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
824
827
|
else {
|
|
825
828
|
if (typeof cb2 === "function")
|
|
826
829
|
cb2.apply(this, arguments);
|
|
@@ -992,10 +995,10 @@ var require_utils = __commonJS({
|
|
|
992
995
|
"../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
|
|
993
996
|
"use strict";
|
|
994
997
|
init_esm_shims();
|
|
995
|
-
var
|
|
998
|
+
var path7 = __require("path");
|
|
996
999
|
module.exports.checkPath = function checkPath(pth) {
|
|
997
1000
|
if (process.platform === "win32") {
|
|
998
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
1001
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path7.parse(pth).root, ""));
|
|
999
1002
|
if (pathHasInvalidWinCharacters) {
|
|
1000
1003
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
1001
1004
|
error.code = "EINVAL";
|
|
@@ -1062,8 +1065,8 @@ var require_path_exists = __commonJS({
|
|
|
1062
1065
|
init_esm_shims();
|
|
1063
1066
|
var u = require_universalify().fromPromise;
|
|
1064
1067
|
var fs2 = require_fs();
|
|
1065
|
-
function pathExists(
|
|
1066
|
-
return fs2.access(
|
|
1068
|
+
function pathExists(path7) {
|
|
1069
|
+
return fs2.access(path7).then(() => true).catch(() => false);
|
|
1067
1070
|
}
|
|
1068
1071
|
module.exports = {
|
|
1069
1072
|
pathExists: u(pathExists),
|
|
@@ -1078,8 +1081,8 @@ var require_utimes = __commonJS({
|
|
|
1078
1081
|
"use strict";
|
|
1079
1082
|
init_esm_shims();
|
|
1080
1083
|
var fs2 = require_graceful_fs();
|
|
1081
|
-
function utimesMillis(
|
|
1082
|
-
fs2.open(
|
|
1084
|
+
function utimesMillis(path7, atime, mtime, callback) {
|
|
1085
|
+
fs2.open(path7, "r+", (err, fd) => {
|
|
1083
1086
|
if (err) return callback(err);
|
|
1084
1087
|
fs2.futimes(fd, atime, mtime, (futimesErr) => {
|
|
1085
1088
|
fs2.close(fd, (closeErr) => {
|
|
@@ -1088,8 +1091,8 @@ var require_utimes = __commonJS({
|
|
|
1088
1091
|
});
|
|
1089
1092
|
});
|
|
1090
1093
|
}
|
|
1091
|
-
function utimesMillisSync(
|
|
1092
|
-
const fd = fs2.openSync(
|
|
1094
|
+
function utimesMillisSync(path7, atime, mtime) {
|
|
1095
|
+
const fd = fs2.openSync(path7, "r+");
|
|
1093
1096
|
fs2.futimesSync(fd, atime, mtime);
|
|
1094
1097
|
return fs2.closeSync(fd);
|
|
1095
1098
|
}
|
|
@@ -1106,7 +1109,7 @@ var require_stat = __commonJS({
|
|
|
1106
1109
|
"use strict";
|
|
1107
1110
|
init_esm_shims();
|
|
1108
1111
|
var fs2 = require_fs();
|
|
1109
|
-
var
|
|
1112
|
+
var path7 = __require("path");
|
|
1110
1113
|
var util = __require("util");
|
|
1111
1114
|
function getStats(src, dest, opts) {
|
|
1112
1115
|
const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
|
|
@@ -1136,8 +1139,8 @@ var require_stat = __commonJS({
|
|
|
1136
1139
|
const { srcStat, destStat } = stats;
|
|
1137
1140
|
if (destStat) {
|
|
1138
1141
|
if (areIdentical(srcStat, destStat)) {
|
|
1139
|
-
const srcBaseName =
|
|
1140
|
-
const destBaseName =
|
|
1142
|
+
const srcBaseName = path7.basename(src);
|
|
1143
|
+
const destBaseName = path7.basename(dest);
|
|
1141
1144
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1142
1145
|
return cb(null, { srcStat, destStat, isChangingCase: true });
|
|
1143
1146
|
}
|
|
@@ -1160,8 +1163,8 @@ var require_stat = __commonJS({
|
|
|
1160
1163
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
1161
1164
|
if (destStat) {
|
|
1162
1165
|
if (areIdentical(srcStat, destStat)) {
|
|
1163
|
-
const srcBaseName =
|
|
1164
|
-
const destBaseName =
|
|
1166
|
+
const srcBaseName = path7.basename(src);
|
|
1167
|
+
const destBaseName = path7.basename(dest);
|
|
1165
1168
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1166
1169
|
return { srcStat, destStat, isChangingCase: true };
|
|
1167
1170
|
}
|
|
@@ -1180,9 +1183,9 @@ var require_stat = __commonJS({
|
|
|
1180
1183
|
return { srcStat, destStat };
|
|
1181
1184
|
}
|
|
1182
1185
|
function checkParentPaths(src, srcStat, dest, funcName, cb) {
|
|
1183
|
-
const srcParent =
|
|
1184
|
-
const destParent =
|
|
1185
|
-
if (destParent === srcParent || destParent ===
|
|
1186
|
+
const srcParent = path7.resolve(path7.dirname(src));
|
|
1187
|
+
const destParent = path7.resolve(path7.dirname(dest));
|
|
1188
|
+
if (destParent === srcParent || destParent === path7.parse(destParent).root) return cb();
|
|
1186
1189
|
fs2.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
1187
1190
|
if (err) {
|
|
1188
1191
|
if (err.code === "ENOENT") return cb();
|
|
@@ -1195,9 +1198,9 @@ var require_stat = __commonJS({
|
|
|
1195
1198
|
});
|
|
1196
1199
|
}
|
|
1197
1200
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
1198
|
-
const srcParent =
|
|
1199
|
-
const destParent =
|
|
1200
|
-
if (destParent === srcParent || destParent ===
|
|
1201
|
+
const srcParent = path7.resolve(path7.dirname(src));
|
|
1202
|
+
const destParent = path7.resolve(path7.dirname(dest));
|
|
1203
|
+
if (destParent === srcParent || destParent === path7.parse(destParent).root) return;
|
|
1201
1204
|
let destStat;
|
|
1202
1205
|
try {
|
|
1203
1206
|
destStat = fs2.statSync(destParent, { bigint: true });
|
|
@@ -1214,8 +1217,8 @@ var require_stat = __commonJS({
|
|
|
1214
1217
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
1215
1218
|
}
|
|
1216
1219
|
function isSrcSubdir(src, dest) {
|
|
1217
|
-
const srcArr =
|
|
1218
|
-
const destArr =
|
|
1220
|
+
const srcArr = path7.resolve(src).split(path7.sep).filter((i) => i);
|
|
1221
|
+
const destArr = path7.resolve(dest).split(path7.sep).filter((i) => i);
|
|
1219
1222
|
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
|
|
1220
1223
|
}
|
|
1221
1224
|
function errMsg(src, dest, funcName) {
|
|
@@ -1238,7 +1241,7 @@ var require_copy = __commonJS({
|
|
|
1238
1241
|
"use strict";
|
|
1239
1242
|
init_esm_shims();
|
|
1240
1243
|
var fs2 = require_graceful_fs();
|
|
1241
|
-
var
|
|
1244
|
+
var path7 = __require("path");
|
|
1242
1245
|
var mkdirs = require_mkdirs().mkdirs;
|
|
1243
1246
|
var pathExists = require_path_exists().pathExists;
|
|
1244
1247
|
var utimesMillis = require_utimes().utimesMillis;
|
|
@@ -1273,7 +1276,7 @@ var require_copy = __commonJS({
|
|
|
1273
1276
|
});
|
|
1274
1277
|
}
|
|
1275
1278
|
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
1276
|
-
const destParent =
|
|
1279
|
+
const destParent = path7.dirname(dest);
|
|
1277
1280
|
pathExists(destParent, (err, dirExists) => {
|
|
1278
1281
|
if (err) return cb(err);
|
|
1279
1282
|
if (dirExists) return getStats(destStat, src, dest, opts, cb);
|
|
@@ -1381,8 +1384,8 @@ var require_copy = __commonJS({
|
|
|
1381
1384
|
return copyDirItem(items, item, src, dest, opts, cb);
|
|
1382
1385
|
}
|
|
1383
1386
|
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
1384
|
-
const srcItem =
|
|
1385
|
-
const destItem =
|
|
1387
|
+
const srcItem = path7.join(src, item);
|
|
1388
|
+
const destItem = path7.join(dest, item);
|
|
1386
1389
|
stat2.checkPaths(srcItem, destItem, "copy", opts, (err, stats) => {
|
|
1387
1390
|
if (err) return cb(err);
|
|
1388
1391
|
const { destStat } = stats;
|
|
@@ -1396,7 +1399,7 @@ var require_copy = __commonJS({
|
|
|
1396
1399
|
fs2.readlink(src, (err, resolvedSrc) => {
|
|
1397
1400
|
if (err) return cb(err);
|
|
1398
1401
|
if (opts.dereference) {
|
|
1399
|
-
resolvedSrc =
|
|
1402
|
+
resolvedSrc = path7.resolve(process.cwd(), resolvedSrc);
|
|
1400
1403
|
}
|
|
1401
1404
|
if (!destStat) {
|
|
1402
1405
|
return fs2.symlink(resolvedSrc, dest, cb);
|
|
@@ -1407,7 +1410,7 @@ var require_copy = __commonJS({
|
|
|
1407
1410
|
return cb(err2);
|
|
1408
1411
|
}
|
|
1409
1412
|
if (opts.dereference) {
|
|
1410
|
-
resolvedDest =
|
|
1413
|
+
resolvedDest = path7.resolve(process.cwd(), resolvedDest);
|
|
1411
1414
|
}
|
|
1412
1415
|
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1413
1416
|
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
@@ -1436,7 +1439,7 @@ var require_copy_sync = __commonJS({
|
|
|
1436
1439
|
"use strict";
|
|
1437
1440
|
init_esm_shims();
|
|
1438
1441
|
var fs2 = require_graceful_fs();
|
|
1439
|
-
var
|
|
1442
|
+
var path7 = __require("path");
|
|
1440
1443
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
1441
1444
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
1442
1445
|
var stat2 = require_stat();
|
|
@@ -1460,7 +1463,7 @@ var require_copy_sync = __commonJS({
|
|
|
1460
1463
|
}
|
|
1461
1464
|
function handleFilterAndCopy(destStat, src, dest, opts) {
|
|
1462
1465
|
if (opts.filter && !opts.filter(src, dest)) return;
|
|
1463
|
-
const destParent =
|
|
1466
|
+
const destParent = path7.dirname(dest);
|
|
1464
1467
|
if (!fs2.existsSync(destParent)) mkdirsSync(destParent);
|
|
1465
1468
|
return getStats(destStat, src, dest, opts);
|
|
1466
1469
|
}
|
|
@@ -1525,15 +1528,15 @@ var require_copy_sync = __commonJS({
|
|
|
1525
1528
|
fs2.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
1526
1529
|
}
|
|
1527
1530
|
function copyDirItem(item, src, dest, opts) {
|
|
1528
|
-
const srcItem =
|
|
1529
|
-
const destItem =
|
|
1531
|
+
const srcItem = path7.join(src, item);
|
|
1532
|
+
const destItem = path7.join(dest, item);
|
|
1530
1533
|
const { destStat } = stat2.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
1531
1534
|
return startCopy(destStat, srcItem, destItem, opts);
|
|
1532
1535
|
}
|
|
1533
1536
|
function onLink(destStat, src, dest, opts) {
|
|
1534
1537
|
let resolvedSrc = fs2.readlinkSync(src);
|
|
1535
1538
|
if (opts.dereference) {
|
|
1536
|
-
resolvedSrc =
|
|
1539
|
+
resolvedSrc = path7.resolve(process.cwd(), resolvedSrc);
|
|
1537
1540
|
}
|
|
1538
1541
|
if (!destStat) {
|
|
1539
1542
|
return fs2.symlinkSync(resolvedSrc, dest);
|
|
@@ -1546,7 +1549,7 @@ var require_copy_sync = __commonJS({
|
|
|
1546
1549
|
throw err;
|
|
1547
1550
|
}
|
|
1548
1551
|
if (opts.dereference) {
|
|
1549
|
-
resolvedDest =
|
|
1552
|
+
resolvedDest = path7.resolve(process.cwd(), resolvedDest);
|
|
1550
1553
|
}
|
|
1551
1554
|
if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
1552
1555
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -1584,7 +1587,7 @@ var require_rimraf = __commonJS({
|
|
|
1584
1587
|
"use strict";
|
|
1585
1588
|
init_esm_shims();
|
|
1586
1589
|
var fs2 = require_graceful_fs();
|
|
1587
|
-
var
|
|
1590
|
+
var path7 = __require("path");
|
|
1588
1591
|
var assert = __require("assert");
|
|
1589
1592
|
var isWindows = process.platform === "win32";
|
|
1590
1593
|
function defaults2(options) {
|
|
@@ -1729,7 +1732,7 @@ var require_rimraf = __commonJS({
|
|
|
1729
1732
|
let errState;
|
|
1730
1733
|
if (n3 === 0) return options.rmdir(p, cb);
|
|
1731
1734
|
files.forEach((f) => {
|
|
1732
|
-
rimraf(
|
|
1735
|
+
rimraf(path7.join(p, f), options, (er2) => {
|
|
1733
1736
|
if (errState) {
|
|
1734
1737
|
return;
|
|
1735
1738
|
}
|
|
@@ -1794,7 +1797,7 @@ var require_rimraf = __commonJS({
|
|
|
1794
1797
|
function rmkidsSync(p, options) {
|
|
1795
1798
|
assert(p);
|
|
1796
1799
|
assert(options);
|
|
1797
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
1800
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path7.join(p, f), options));
|
|
1798
1801
|
if (isWindows) {
|
|
1799
1802
|
const startTime = Date.now();
|
|
1800
1803
|
do {
|
|
@@ -1822,13 +1825,13 @@ var require_remove = __commonJS({
|
|
|
1822
1825
|
var fs2 = require_graceful_fs();
|
|
1823
1826
|
var u = require_universalify().fromCallback;
|
|
1824
1827
|
var rimraf = require_rimraf();
|
|
1825
|
-
function remove2(
|
|
1826
|
-
if (fs2.rm) return fs2.rm(
|
|
1827
|
-
rimraf(
|
|
1828
|
+
function remove2(path7, callback) {
|
|
1829
|
+
if (fs2.rm) return fs2.rm(path7, { recursive: true, force: true }, callback);
|
|
1830
|
+
rimraf(path7, callback);
|
|
1828
1831
|
}
|
|
1829
|
-
function removeSync(
|
|
1830
|
-
if (fs2.rmSync) return fs2.rmSync(
|
|
1831
|
-
rimraf.sync(
|
|
1832
|
+
function removeSync(path7) {
|
|
1833
|
+
if (fs2.rmSync) return fs2.rmSync(path7, { recursive: true, force: true });
|
|
1834
|
+
rimraf.sync(path7);
|
|
1832
1835
|
}
|
|
1833
1836
|
module.exports = {
|
|
1834
1837
|
remove: u(remove2),
|
|
@@ -1844,7 +1847,7 @@ var require_empty = __commonJS({
|
|
|
1844
1847
|
init_esm_shims();
|
|
1845
1848
|
var u = require_universalify().fromPromise;
|
|
1846
1849
|
var fs2 = require_fs();
|
|
1847
|
-
var
|
|
1850
|
+
var path7 = __require("path");
|
|
1848
1851
|
var mkdir = require_mkdirs();
|
|
1849
1852
|
var remove2 = require_remove();
|
|
1850
1853
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -1854,7 +1857,7 @@ var require_empty = __commonJS({
|
|
|
1854
1857
|
} catch {
|
|
1855
1858
|
return mkdir.mkdirs(dir);
|
|
1856
1859
|
}
|
|
1857
|
-
return Promise.all(items.map((item) => remove2.remove(
|
|
1860
|
+
return Promise.all(items.map((item) => remove2.remove(path7.join(dir, item))));
|
|
1858
1861
|
});
|
|
1859
1862
|
function emptyDirSync2(dir) {
|
|
1860
1863
|
let items;
|
|
@@ -1864,7 +1867,7 @@ var require_empty = __commonJS({
|
|
|
1864
1867
|
return mkdir.mkdirsSync(dir);
|
|
1865
1868
|
}
|
|
1866
1869
|
items.forEach((item) => {
|
|
1867
|
-
item =
|
|
1870
|
+
item = path7.join(dir, item);
|
|
1868
1871
|
remove2.removeSync(item);
|
|
1869
1872
|
});
|
|
1870
1873
|
}
|
|
@@ -1883,7 +1886,7 @@ var require_file = __commonJS({
|
|
|
1883
1886
|
"use strict";
|
|
1884
1887
|
init_esm_shims();
|
|
1885
1888
|
var u = require_universalify().fromCallback;
|
|
1886
|
-
var
|
|
1889
|
+
var path7 = __require("path");
|
|
1887
1890
|
var fs2 = require_graceful_fs();
|
|
1888
1891
|
var mkdir = require_mkdirs();
|
|
1889
1892
|
function createFile(file, callback) {
|
|
@@ -1895,7 +1898,7 @@ var require_file = __commonJS({
|
|
|
1895
1898
|
}
|
|
1896
1899
|
fs2.stat(file, (err, stats) => {
|
|
1897
1900
|
if (!err && stats.isFile()) return callback();
|
|
1898
|
-
const dir =
|
|
1901
|
+
const dir = path7.dirname(file);
|
|
1899
1902
|
fs2.stat(dir, (err2, stats2) => {
|
|
1900
1903
|
if (err2) {
|
|
1901
1904
|
if (err2.code === "ENOENT") {
|
|
@@ -1922,7 +1925,7 @@ var require_file = __commonJS({
|
|
|
1922
1925
|
} catch {
|
|
1923
1926
|
}
|
|
1924
1927
|
if (stats && stats.isFile()) return;
|
|
1925
|
-
const dir =
|
|
1928
|
+
const dir = path7.dirname(file);
|
|
1926
1929
|
try {
|
|
1927
1930
|
if (!fs2.statSync(dir).isDirectory()) {
|
|
1928
1931
|
fs2.readdirSync(dir);
|
|
@@ -1946,7 +1949,7 @@ var require_link = __commonJS({
|
|
|
1946
1949
|
"use strict";
|
|
1947
1950
|
init_esm_shims();
|
|
1948
1951
|
var u = require_universalify().fromCallback;
|
|
1949
|
-
var
|
|
1952
|
+
var path7 = __require("path");
|
|
1950
1953
|
var fs2 = require_graceful_fs();
|
|
1951
1954
|
var mkdir = require_mkdirs();
|
|
1952
1955
|
var pathExists = require_path_exists().pathExists;
|
|
@@ -1965,7 +1968,7 @@ var require_link = __commonJS({
|
|
|
1965
1968
|
return callback(err);
|
|
1966
1969
|
}
|
|
1967
1970
|
if (dstStat && areIdentical(srcStat, dstStat)) return callback(null);
|
|
1968
|
-
const dir =
|
|
1971
|
+
const dir = path7.dirname(dstpath);
|
|
1969
1972
|
pathExists(dir, (err2, dirExists) => {
|
|
1970
1973
|
if (err2) return callback(err2);
|
|
1971
1974
|
if (dirExists) return makeLink(srcpath, dstpath);
|
|
@@ -1990,7 +1993,7 @@ var require_link = __commonJS({
|
|
|
1990
1993
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
1991
1994
|
throw err;
|
|
1992
1995
|
}
|
|
1993
|
-
const dir =
|
|
1996
|
+
const dir = path7.dirname(dstpath);
|
|
1994
1997
|
const dirExists = fs2.existsSync(dir);
|
|
1995
1998
|
if (dirExists) return fs2.linkSync(srcpath, dstpath);
|
|
1996
1999
|
mkdir.mkdirsSync(dir);
|
|
@@ -2008,11 +2011,11 @@ var require_symlink_paths = __commonJS({
|
|
|
2008
2011
|
"../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
2009
2012
|
"use strict";
|
|
2010
2013
|
init_esm_shims();
|
|
2011
|
-
var
|
|
2014
|
+
var path7 = __require("path");
|
|
2012
2015
|
var fs2 = require_graceful_fs();
|
|
2013
2016
|
var pathExists = require_path_exists().pathExists;
|
|
2014
2017
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
2015
|
-
if (
|
|
2018
|
+
if (path7.isAbsolute(srcpath)) {
|
|
2016
2019
|
return fs2.lstat(srcpath, (err) => {
|
|
2017
2020
|
if (err) {
|
|
2018
2021
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
@@ -2024,8 +2027,8 @@ var require_symlink_paths = __commonJS({
|
|
|
2024
2027
|
});
|
|
2025
2028
|
});
|
|
2026
2029
|
} else {
|
|
2027
|
-
const dstdir =
|
|
2028
|
-
const relativeToDst =
|
|
2030
|
+
const dstdir = path7.dirname(dstpath);
|
|
2031
|
+
const relativeToDst = path7.join(dstdir, srcpath);
|
|
2029
2032
|
return pathExists(relativeToDst, (err, exists) => {
|
|
2030
2033
|
if (err) return callback(err);
|
|
2031
2034
|
if (exists) {
|
|
@@ -2041,7 +2044,7 @@ var require_symlink_paths = __commonJS({
|
|
|
2041
2044
|
}
|
|
2042
2045
|
return callback(null, {
|
|
2043
2046
|
toCwd: srcpath,
|
|
2044
|
-
toDst:
|
|
2047
|
+
toDst: path7.relative(dstdir, srcpath)
|
|
2045
2048
|
});
|
|
2046
2049
|
});
|
|
2047
2050
|
}
|
|
@@ -2050,7 +2053,7 @@ var require_symlink_paths = __commonJS({
|
|
|
2050
2053
|
}
|
|
2051
2054
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
2052
2055
|
let exists;
|
|
2053
|
-
if (
|
|
2056
|
+
if (path7.isAbsolute(srcpath)) {
|
|
2054
2057
|
exists = fs2.existsSync(srcpath);
|
|
2055
2058
|
if (!exists) throw new Error("absolute srcpath does not exist");
|
|
2056
2059
|
return {
|
|
@@ -2058,8 +2061,8 @@ var require_symlink_paths = __commonJS({
|
|
|
2058
2061
|
toDst: srcpath
|
|
2059
2062
|
};
|
|
2060
2063
|
} else {
|
|
2061
|
-
const dstdir =
|
|
2062
|
-
const relativeToDst =
|
|
2064
|
+
const dstdir = path7.dirname(dstpath);
|
|
2065
|
+
const relativeToDst = path7.join(dstdir, srcpath);
|
|
2063
2066
|
exists = fs2.existsSync(relativeToDst);
|
|
2064
2067
|
if (exists) {
|
|
2065
2068
|
return {
|
|
@@ -2071,7 +2074,7 @@ var require_symlink_paths = __commonJS({
|
|
|
2071
2074
|
if (!exists) throw new Error("relative srcpath does not exist");
|
|
2072
2075
|
return {
|
|
2073
2076
|
toCwd: srcpath,
|
|
2074
|
-
toDst:
|
|
2077
|
+
toDst: path7.relative(dstdir, srcpath)
|
|
2075
2078
|
};
|
|
2076
2079
|
}
|
|
2077
2080
|
}
|
|
@@ -2122,7 +2125,7 @@ var require_symlink = __commonJS({
|
|
|
2122
2125
|
"use strict";
|
|
2123
2126
|
init_esm_shims();
|
|
2124
2127
|
var u = require_universalify().fromCallback;
|
|
2125
|
-
var
|
|
2128
|
+
var path7 = __require("path");
|
|
2126
2129
|
var fs2 = require_fs();
|
|
2127
2130
|
var _mkdirs = require_mkdirs();
|
|
2128
2131
|
var mkdirs = _mkdirs.mkdirs;
|
|
@@ -2156,7 +2159,7 @@ var require_symlink = __commonJS({
|
|
|
2156
2159
|
srcpath = relative.toDst;
|
|
2157
2160
|
symlinkType(relative.toCwd, type, (err2, type2) => {
|
|
2158
2161
|
if (err2) return callback(err2);
|
|
2159
|
-
const dir =
|
|
2162
|
+
const dir = path7.dirname(dstpath);
|
|
2160
2163
|
pathExists(dir, (err3, dirExists) => {
|
|
2161
2164
|
if (err3) return callback(err3);
|
|
2162
2165
|
if (dirExists) return fs2.symlink(srcpath, dstpath, type2, callback);
|
|
@@ -2182,7 +2185,7 @@ var require_symlink = __commonJS({
|
|
|
2182
2185
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
2183
2186
|
srcpath = relative.toDst;
|
|
2184
2187
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
2185
|
-
const dir =
|
|
2188
|
+
const dir = path7.dirname(dstpath);
|
|
2186
2189
|
const exists = fs2.existsSync(dir);
|
|
2187
2190
|
if (exists) return fs2.symlinkSync(srcpath, dstpath, type);
|
|
2188
2191
|
mkdirsSync(dir);
|
|
@@ -2275,7 +2278,7 @@ var require_jsonfile = __commonJS({
|
|
|
2275
2278
|
}
|
|
2276
2279
|
return obj;
|
|
2277
2280
|
}
|
|
2278
|
-
var
|
|
2281
|
+
var readFile5 = universalify.fromPromise(_readFile);
|
|
2279
2282
|
function readFileSync(file, options = {}) {
|
|
2280
2283
|
if (typeof options === "string") {
|
|
2281
2284
|
options = { encoding: options };
|
|
@@ -2307,7 +2310,7 @@ var require_jsonfile = __commonJS({
|
|
|
2307
2310
|
return fs2.writeFileSync(file, str, options);
|
|
2308
2311
|
}
|
|
2309
2312
|
var jsonfile = {
|
|
2310
|
-
readFile:
|
|
2313
|
+
readFile: readFile5,
|
|
2311
2314
|
readFileSync,
|
|
2312
2315
|
writeFile: writeFile3,
|
|
2313
2316
|
writeFileSync
|
|
@@ -2339,7 +2342,7 @@ var require_output_file = __commonJS({
|
|
|
2339
2342
|
init_esm_shims();
|
|
2340
2343
|
var u = require_universalify().fromCallback;
|
|
2341
2344
|
var fs2 = require_graceful_fs();
|
|
2342
|
-
var
|
|
2345
|
+
var path7 = __require("path");
|
|
2343
2346
|
var mkdir = require_mkdirs();
|
|
2344
2347
|
var pathExists = require_path_exists().pathExists;
|
|
2345
2348
|
function outputFile(file, data2, encoding, callback) {
|
|
@@ -2347,7 +2350,7 @@ var require_output_file = __commonJS({
|
|
|
2347
2350
|
callback = encoding;
|
|
2348
2351
|
encoding = "utf8";
|
|
2349
2352
|
}
|
|
2350
|
-
const dir =
|
|
2353
|
+
const dir = path7.dirname(file);
|
|
2351
2354
|
pathExists(dir, (err, itDoes) => {
|
|
2352
2355
|
if (err) return callback(err);
|
|
2353
2356
|
if (itDoes) return fs2.writeFile(file, data2, encoding, callback);
|
|
@@ -2358,7 +2361,7 @@ var require_output_file = __commonJS({
|
|
|
2358
2361
|
});
|
|
2359
2362
|
}
|
|
2360
2363
|
function outputFileSync(file, ...args) {
|
|
2361
|
-
const dir =
|
|
2364
|
+
const dir = path7.dirname(file);
|
|
2362
2365
|
if (fs2.existsSync(dir)) {
|
|
2363
2366
|
return fs2.writeFileSync(file, ...args);
|
|
2364
2367
|
}
|
|
@@ -2427,7 +2430,7 @@ var require_move = __commonJS({
|
|
|
2427
2430
|
"use strict";
|
|
2428
2431
|
init_esm_shims();
|
|
2429
2432
|
var fs2 = require_graceful_fs();
|
|
2430
|
-
var
|
|
2433
|
+
var path7 = __require("path");
|
|
2431
2434
|
var copy = require_copy2().copy;
|
|
2432
2435
|
var remove2 = require_remove().remove;
|
|
2433
2436
|
var mkdirp = require_mkdirs().mkdirp;
|
|
@@ -2446,7 +2449,7 @@ var require_move = __commonJS({
|
|
|
2446
2449
|
stat2.checkParentPaths(src, srcStat, dest, "move", (err2) => {
|
|
2447
2450
|
if (err2) return cb(err2);
|
|
2448
2451
|
if (isParentRoot(dest)) return doRename(src, dest, overwrite2, isChangingCase, cb);
|
|
2449
|
-
mkdirp(
|
|
2452
|
+
mkdirp(path7.dirname(dest), (err3) => {
|
|
2450
2453
|
if (err3) return cb(err3);
|
|
2451
2454
|
return doRename(src, dest, overwrite2, isChangingCase, cb);
|
|
2452
2455
|
});
|
|
@@ -2454,8 +2457,8 @@ var require_move = __commonJS({
|
|
|
2454
2457
|
});
|
|
2455
2458
|
}
|
|
2456
2459
|
function isParentRoot(dest) {
|
|
2457
|
-
const parent =
|
|
2458
|
-
const parsedPath =
|
|
2460
|
+
const parent = path7.dirname(dest);
|
|
2461
|
+
const parsedPath = path7.parse(parent);
|
|
2459
2462
|
return parsedPath.root === parent;
|
|
2460
2463
|
}
|
|
2461
2464
|
function doRename(src, dest, overwrite2, isChangingCase, cb) {
|
|
@@ -2499,7 +2502,7 @@ var require_move_sync = __commonJS({
|
|
|
2499
2502
|
"use strict";
|
|
2500
2503
|
init_esm_shims();
|
|
2501
2504
|
var fs2 = require_graceful_fs();
|
|
2502
|
-
var
|
|
2505
|
+
var path7 = __require("path");
|
|
2503
2506
|
var copySync = require_copy2().copySync;
|
|
2504
2507
|
var removeSync = require_remove().removeSync;
|
|
2505
2508
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -2509,12 +2512,12 @@ var require_move_sync = __commonJS({
|
|
|
2509
2512
|
const overwrite2 = opts.overwrite || opts.clobber || false;
|
|
2510
2513
|
const { srcStat, isChangingCase = false } = stat2.checkPathsSync(src, dest, "move", opts);
|
|
2511
2514
|
stat2.checkParentPathsSync(src, srcStat, dest, "move");
|
|
2512
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
2515
|
+
if (!isParentRoot(dest)) mkdirpSync(path7.dirname(dest));
|
|
2513
2516
|
return doRename(src, dest, overwrite2, isChangingCase);
|
|
2514
2517
|
}
|
|
2515
2518
|
function isParentRoot(dest) {
|
|
2516
|
-
const parent =
|
|
2517
|
-
const parsedPath =
|
|
2519
|
+
const parent = path7.dirname(dest);
|
|
2520
|
+
const parsedPath = path7.parse(parent);
|
|
2518
2521
|
return parsedPath.root === parent;
|
|
2519
2522
|
}
|
|
2520
2523
|
function doRename(src, dest, overwrite2, isChangingCase) {
|
|
@@ -34400,19 +34403,29 @@ var moduleBundle = ({
|
|
|
34400
34403
|
const blocksPanelComponent = virtualBlocksWidgetPanelAssets.get(id);
|
|
34401
34404
|
if (blocksPanelComponent) {
|
|
34402
34405
|
return defaultOutdent`
|
|
34403
|
-
|
|
34404
|
-
|
|
34405
|
-
|
|
34406
|
+
import { enableContext } from '@wix/cli-app/internal/platform-sdk/sdk-context';
|
|
34407
|
+
const init = async function({ $w, onHMRCallback, wixClient }) {
|
|
34408
|
+
enableContext(wixClient, 'module');
|
|
34409
|
+
${// `/@vite/client` is a special module that should be available in dev mode.
|
|
34410
|
+
// For example, via this module Vite will set globals that we put in `define` config.
|
|
34411
|
+
type === "dev" /* dev */ ? defaultOutdent`
|
|
34412
|
+
const { default: wrappedController } = await import(/* @vite-ignore */ \`${getBlocksPathWithHMR(blocksPanelComponent.relativePath, type)}\`);
|
|
34413
|
+
wrappedController?.(onHMRCallback, $w);
|
|
34414
|
+
` : defaultOutdent`
|
|
34415
|
+
const { default: panelController } = await import('/${blocksPanelComponent.relativePath}');
|
|
34416
|
+
panelController?.($w);
|
|
34417
|
+
`}
|
|
34406
34418
|
}
|
|
34407
|
-
export {
|
|
34419
|
+
export { init };
|
|
34408
34420
|
`;
|
|
34409
34421
|
}
|
|
34410
34422
|
const blocksWidgetComponent = virtualBlocksWidgetAssets.get(id);
|
|
34411
34423
|
if (blocksWidgetComponent) {
|
|
34412
34424
|
return defaultOutdent`
|
|
34413
|
-
|
|
34425
|
+
import { enableContext } from '@wix/cli-app/internal/platform-sdk/sdk-context';
|
|
34426
|
+
import api from '/${blocksWidgetComponent.apiPath}';
|
|
34414
34427
|
const init = async function({ $w, $widget, onHMRCallback, wixClient, widgetInstanceId }) {
|
|
34415
|
-
|
|
34428
|
+
enableContext(wixClient, 'module');
|
|
34416
34429
|
${// `/@vite/client` is a special module that should be available in dev mode.
|
|
34417
34430
|
// For example, via this module Vite will set globals that we put in `define` config.
|
|
34418
34431
|
type === "dev" /* dev */ ? defaultOutdent`
|
|
@@ -34527,7 +34540,7 @@ init_esm_shims();
|
|
|
34527
34540
|
// ../cli-ssl/src/index.ts
|
|
34528
34541
|
init_esm_shims();
|
|
34529
34542
|
var import_selfsigned = __toESM(require_selfsigned(), 1);
|
|
34530
|
-
import { readFile, writeFile as writeFile2, stat } from "node:fs/promises";
|
|
34543
|
+
import { readFile as readFile2, writeFile as writeFile2, stat } from "node:fs/promises";
|
|
34531
34544
|
import path2 from "node:path";
|
|
34532
34545
|
var PEM_FILENAME = "wix-cli.pem";
|
|
34533
34546
|
var PEM_MAX_DAYS = 30;
|
|
@@ -34574,7 +34587,7 @@ var generateHostCert = async () => {
|
|
|
34574
34587
|
const wixCliPemPath = path2.join(wixDataDir, PEM_FILENAME);
|
|
34575
34588
|
const recreatePem = await shouldRecreatePem(wixCliPemPath);
|
|
34576
34589
|
if (!recreatePem) {
|
|
34577
|
-
const cachedCert = await
|
|
34590
|
+
const cachedCert = await readFile2(wixCliPemPath, {
|
|
34578
34591
|
encoding: "utf-8"
|
|
34579
34592
|
});
|
|
34580
34593
|
return {
|
|
@@ -36009,14 +36022,14 @@ var exportsCustodian = ({
|
|
|
36009
36022
|
if (id === EXPORTS_CUSTODIAN_ENTRY) {
|
|
36010
36023
|
return [
|
|
36011
36024
|
...Array.from(virtualBlocksWidgetAssets.keys()).map(
|
|
36012
|
-
(
|
|
36013
|
-
import { init as init${index} } from '${
|
|
36025
|
+
(path7, index) => `
|
|
36026
|
+
import { init as init${index} } from '${path7}';
|
|
36014
36027
|
init${index}();
|
|
36015
36028
|
`
|
|
36016
36029
|
),
|
|
36017
36030
|
...Array.from(virtualBlocksWidgetPanelAssets.keys()).map(
|
|
36018
|
-
(
|
|
36019
|
-
import {
|
|
36031
|
+
(path7, index) => `
|
|
36032
|
+
import { init as initPanel${index} } from '${path7}';
|
|
36020
36033
|
initPanel${index}();
|
|
36021
36034
|
`
|
|
36022
36035
|
)
|
|
@@ -36027,9 +36040,39 @@ var exportsCustodian = ({
|
|
|
36027
36040
|
};
|
|
36028
36041
|
};
|
|
36029
36042
|
|
|
36043
|
+
// src/vite/plugins/config-extensions-file-emitter.ts
|
|
36044
|
+
init_esm_shims();
|
|
36045
|
+
import path3 from "node:path";
|
|
36046
|
+
function configExtensionsFileEmitter(model) {
|
|
36047
|
+
return {
|
|
36048
|
+
name: "config-extensions-file-emitter",
|
|
36049
|
+
async generateBundle() {
|
|
36050
|
+
for (const component of model.components) {
|
|
36051
|
+
if (component.type === "SitePlugin" && component.marketData.logoUrl?.match(RELATIVE_ASSET_PATH_REGEX)) {
|
|
36052
|
+
const resolved = await this.resolve(
|
|
36053
|
+
component.marketData.logoUrl,
|
|
36054
|
+
component.relativePath
|
|
36055
|
+
);
|
|
36056
|
+
if (resolved == null) {
|
|
36057
|
+
continue;
|
|
36058
|
+
}
|
|
36059
|
+
const content = new Uint8Array(await readFile(resolved.id));
|
|
36060
|
+
const fileName = this.emitFile({
|
|
36061
|
+
type: "asset",
|
|
36062
|
+
name: path3.basename(resolved.id),
|
|
36063
|
+
originalFileName: component.marketData.logoUrl,
|
|
36064
|
+
source: content
|
|
36065
|
+
});
|
|
36066
|
+
component.marketData.logoUrl = `/${this.getFileName(fileName)}`;
|
|
36067
|
+
}
|
|
36068
|
+
}
|
|
36069
|
+
}
|
|
36070
|
+
};
|
|
36071
|
+
}
|
|
36072
|
+
|
|
36030
36073
|
// src/vite/plugins/web-methods-plugin.ts
|
|
36031
36074
|
init_esm_shims();
|
|
36032
|
-
import
|
|
36075
|
+
import path5 from "node:path";
|
|
36033
36076
|
|
|
36034
36077
|
// ../../node_modules/es-module-lexer/dist/lexer.js
|
|
36035
36078
|
init_esm_shims();
|
|
@@ -36760,11 +36803,11 @@ var qmarksTestNoExtDot = ([$0]) => {
|
|
|
36760
36803
|
return (f) => f.length === len && f !== "." && f !== "..";
|
|
36761
36804
|
};
|
|
36762
36805
|
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
36763
|
-
var
|
|
36806
|
+
var path4 = {
|
|
36764
36807
|
win32: { sep: "\\" },
|
|
36765
36808
|
posix: { sep: "/" }
|
|
36766
36809
|
};
|
|
36767
|
-
var sep = defaultPlatform === "win32" ?
|
|
36810
|
+
var sep = defaultPlatform === "win32" ? path4.win32.sep : path4.posix.sep;
|
|
36768
36811
|
minimatch.sep = sep;
|
|
36769
36812
|
var GLOBSTAR = Symbol("globstar **");
|
|
36770
36813
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
@@ -37434,7 +37477,7 @@ function webMethodsPlugin({
|
|
|
37434
37477
|
if (!id.endsWith(".web.ts")) {
|
|
37435
37478
|
return;
|
|
37436
37479
|
}
|
|
37437
|
-
const relativeId =
|
|
37480
|
+
const relativeId = path5.relative(projectFolder, id);
|
|
37438
37481
|
if (!minimatch(relativeId, WEB_METHOD_PATTERN)) {
|
|
37439
37482
|
throw new CliError({
|
|
37440
37483
|
cause: null,
|
|
@@ -37450,7 +37493,7 @@ function webMethodsPlugin({
|
|
|
37450
37493
|
export const ${method} = async (...args) => {
|
|
37451
37494
|
return await callWebMethod({
|
|
37452
37495
|
args,
|
|
37453
|
-
filename: '${
|
|
37496
|
+
filename: '${path5.relative(projectFolder, url)}',
|
|
37454
37497
|
method: '${method}',
|
|
37455
37498
|
baseURL: __webMethodsBaseUrl,
|
|
37456
37499
|
});
|
|
@@ -37497,7 +37540,7 @@ async function getViteConfig(model, options, { baseBackendUrl } = {}) {
|
|
|
37497
37540
|
customLogger: options.customLogger,
|
|
37498
37541
|
clearScreen: false,
|
|
37499
37542
|
logLevel: "info",
|
|
37500
|
-
publicDir:
|
|
37543
|
+
publicDir: false,
|
|
37501
37544
|
optimizeDeps: {
|
|
37502
37545
|
entries: [
|
|
37503
37546
|
DASHBOARD_PAGES_PATTERN,
|
|
@@ -37562,7 +37605,8 @@ async function getViteConfig(model, options, { baseBackendUrl } = {}) {
|
|
|
37562
37605
|
embeddedScriptSDKSupport({
|
|
37563
37606
|
initialModel: model,
|
|
37564
37607
|
...options
|
|
37565
|
-
})
|
|
37608
|
+
}),
|
|
37609
|
+
configExtensionsFileEmitter(model)
|
|
37566
37610
|
],
|
|
37567
37611
|
experimental: {
|
|
37568
37612
|
/*
|
|
@@ -37903,7 +37947,7 @@ init_esm_shims();
|
|
|
37903
37947
|
// ../vite-optimize-backend-dependencies/src/utils.ts
|
|
37904
37948
|
init_esm_shims();
|
|
37905
37949
|
import { join as join3 } from "node:path";
|
|
37906
|
-
import { readFile as
|
|
37950
|
+
import { readFile as readFile3 } from "node:fs/promises";
|
|
37907
37951
|
var postfixRE3 = /[?#].*$/;
|
|
37908
37952
|
var OPTIMIZABLE_ENTRY_RE = /\.[cm]?[jt]s$/;
|
|
37909
37953
|
var interopHelper = (m) => m?.__esModule ? m : { ...typeof m === "object" && !Array.isArray(m) || typeof m === "function" ? m : {}, default: m };
|
|
@@ -37921,7 +37965,7 @@ async function shouldOptimizeDependency(url) {
|
|
|
37921
37965
|
}
|
|
37922
37966
|
async function fileHasModuleSyntax(filePath) {
|
|
37923
37967
|
await init2;
|
|
37924
|
-
const entryContent = await
|
|
37968
|
+
const entryContent = await readFile3(filePath, "utf-8");
|
|
37925
37969
|
const parseResult = parse6(entryContent);
|
|
37926
37970
|
const [, , , hasModuleSyntax] = parseResult;
|
|
37927
37971
|
return hasModuleSyntax;
|
|
@@ -37930,8 +37974,8 @@ async function fileHasModuleSyntax(filePath) {
|
|
|
37930
37974
|
// ../vite-optimize-backend-dependencies/src/optimizeCjsDependency.ts
|
|
37931
37975
|
init_esm_shims();
|
|
37932
37976
|
import esbuild from "esbuild";
|
|
37933
|
-
import { readFile as
|
|
37934
|
-
import
|
|
37977
|
+
import { readFile as readFile4 } from "node:fs/promises";
|
|
37978
|
+
import path6, { join as join4 } from "node:path";
|
|
37935
37979
|
async function optimizeCjsDependency({
|
|
37936
37980
|
url,
|
|
37937
37981
|
projectFolder
|
|
@@ -37958,7 +38002,7 @@ async function optimizeCjsDependency({
|
|
|
37958
38002
|
});
|
|
37959
38003
|
});
|
|
37960
38004
|
const [output] = Object.entries(metafile.outputs).find(
|
|
37961
|
-
([, output2]) => output2.entryPoint &&
|
|
38005
|
+
([, output2]) => output2.entryPoint && path6.resolve(projectFolder, output2.entryPoint) === url
|
|
37962
38006
|
) ?? [];
|
|
37963
38007
|
if (!output) {
|
|
37964
38008
|
throw new CliError({
|
|
@@ -37966,7 +38010,7 @@ async function optimizeCjsDependency({
|
|
|
37966
38010
|
cause: null
|
|
37967
38011
|
});
|
|
37968
38012
|
}
|
|
37969
|
-
return
|
|
38013
|
+
return readFile4(join4(projectFolder, output), "utf-8").catch(
|
|
37970
38014
|
(error) => {
|
|
37971
38015
|
throw new CliError({
|
|
37972
38016
|
code: CliErrorCode.FailedReadingEsbuildOutputFile(),
|
|
@@ -38360,9 +38404,16 @@ init_esm_shims();
|
|
|
38360
38404
|
var import_variant4 = __toESM(require_lib(), 1);
|
|
38361
38405
|
var import_uniqWith = __toESM(require_uniqWith(), 1);
|
|
38362
38406
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
38407
|
+
import { dirname as dirname2, join as join5 } from "node:path";
|
|
38363
38408
|
function isTruthy(x) {
|
|
38364
38409
|
return x != null && x !== false;
|
|
38365
38410
|
}
|
|
38411
|
+
function parseImageField(asset, relativePath) {
|
|
38412
|
+
if (RELATIVE_ASSET_PATH_REGEX.test(asset)) {
|
|
38413
|
+
return join5(dirname2(`/${relativePath}`), asset);
|
|
38414
|
+
}
|
|
38415
|
+
return asset;
|
|
38416
|
+
}
|
|
38366
38417
|
var getExperiment = (component, appId) => {
|
|
38367
38418
|
if (component.experiments) {
|
|
38368
38419
|
return {
|
|
@@ -38561,29 +38612,34 @@ async function createAppManifest({
|
|
|
38561
38612
|
return createCustomElementConfig(component, scriptUrl, settingsUrl);
|
|
38562
38613
|
},
|
|
38563
38614
|
BlocksWidget: async (component) => {
|
|
38564
|
-
const { componentUrl,
|
|
38615
|
+
const { componentUrl, studioWidgetComponentData } = await componentSourceBuilder(component);
|
|
38565
38616
|
return {
|
|
38566
38617
|
compId: component.id,
|
|
38567
38618
|
compType: ComponentType.STUDIO_WIDGET,
|
|
38568
38619
|
compName: component.name,
|
|
38569
38620
|
compData: {
|
|
38570
38621
|
studioWidgetComponentData: {
|
|
38571
|
-
...
|
|
38622
|
+
...studioWidgetComponentData,
|
|
38572
38623
|
widgetBundleUrl: componentUrl
|
|
38573
38624
|
}
|
|
38574
38625
|
}
|
|
38575
38626
|
};
|
|
38576
38627
|
},
|
|
38577
38628
|
BlocksWidgetPanel: async (component) => {
|
|
38578
|
-
const { componentUrl } = await componentSourceBuilder(component);
|
|
38629
|
+
const { componentUrl, panelComponentData } = await componentSourceBuilder(component);
|
|
38630
|
+
const url = new URL(
|
|
38631
|
+
panelComponentData?.url ?? "https://BLOCKS_WIDGET_URL.mock"
|
|
38632
|
+
);
|
|
38633
|
+
url.searchParams.set("codeBundleUrl", componentUrl);
|
|
38579
38634
|
return {
|
|
38580
38635
|
compId: component.id,
|
|
38581
38636
|
compType: ComponentType.PANEL,
|
|
38582
38637
|
compName: component.name,
|
|
38583
38638
|
compData: {
|
|
38584
38639
|
panel: {
|
|
38585
|
-
referenceId:
|
|
38586
|
-
url:
|
|
38640
|
+
referenceId: panelComponentData?.referenceId ?? "",
|
|
38641
|
+
url: url.toString(),
|
|
38642
|
+
contentType: PanelContentType.url,
|
|
38587
38643
|
displayName: component.name,
|
|
38588
38644
|
size: {
|
|
38589
38645
|
width: component.width,
|
|
@@ -38640,7 +38696,13 @@ async function createAppManifest({
|
|
|
38640
38696
|
widgetPlugin: {
|
|
38641
38697
|
referenceComponentId: component.referenceComponentId,
|
|
38642
38698
|
placements: component.placements,
|
|
38643
|
-
marketData:
|
|
38699
|
+
marketData: {
|
|
38700
|
+
...component.marketData,
|
|
38701
|
+
logoUrl: component.marketData.logoUrl && parseImageField(
|
|
38702
|
+
component.marketData.logoUrl,
|
|
38703
|
+
component.relativePath
|
|
38704
|
+
)
|
|
38705
|
+
},
|
|
38644
38706
|
installation: {
|
|
38645
38707
|
base: {
|
|
38646
38708
|
autoAdd: component.installation?.autoAddToSite ?? true
|
|
@@ -38763,7 +38825,7 @@ async function createAppManifest({
|
|
|
38763
38825
|
// src/app-manifest/component-source.ts
|
|
38764
38826
|
init_esm_shims();
|
|
38765
38827
|
var import_variant5 = __toESM(require_lib(), 1);
|
|
38766
|
-
import { join as
|
|
38828
|
+
import { join as join6 } from "node:path";
|
|
38767
38829
|
import { pathToFileURL } from "node:url";
|
|
38768
38830
|
|
|
38769
38831
|
// src/app-manifest/build-output-data-extractor.ts
|
|
@@ -38822,7 +38884,7 @@ async function getEventDevSlugs(component, backendDevServerUrl) {
|
|
|
38822
38884
|
}
|
|
38823
38885
|
async function getRegisteredExtensions(model) {
|
|
38824
38886
|
const backendBuildFolder = getAppBackendBuildFolder(model.projectFolder);
|
|
38825
|
-
const outputFilepath =
|
|
38887
|
+
const outputFilepath = join6(
|
|
38826
38888
|
backendBuildFolder,
|
|
38827
38889
|
"getRegisteredExtensions.mjs"
|
|
38828
38890
|
);
|
|
@@ -38905,7 +38967,8 @@ var blocksComponentBuilder = (component, clientSource, blocksSource) => {
|
|
|
38905
38967
|
);
|
|
38906
38968
|
return {
|
|
38907
38969
|
componentUrl,
|
|
38908
|
-
|
|
38970
|
+
panelComponentData: sourceFromBlocks?.compData?.panel,
|
|
38971
|
+
studioWidgetComponentData: sourceFromBlocks?.compData?.studioWidgetComponentData ?? {}
|
|
38909
38972
|
};
|
|
38910
38973
|
};
|
|
38911
38974
|
function getComponentSourceBuilder(model, clientSource, backendSource, blocksSource) {
|
|
@@ -39260,6 +39323,11 @@ var blocksWidgetPanelComponentData = z.object({
|
|
|
39260
39323
|
referenceId: z.string(),
|
|
39261
39324
|
url: z.string().url(),
|
|
39262
39325
|
displayName: z.string(),
|
|
39326
|
+
contentType: z.enum([
|
|
39327
|
+
PanelContentType.UNKNOWN_PanelContentType,
|
|
39328
|
+
PanelContentType.url,
|
|
39329
|
+
PanelContentType.code
|
|
39330
|
+
]),
|
|
39263
39331
|
size: z.object({
|
|
39264
39332
|
width: z.enum([
|
|
39265
39333
|
PanelSizeWidth.SMALL,
|
|
@@ -39458,10 +39526,7 @@ var overrideSitePluginMarketDataWithNormalizedLogoUrl = (marketData, normalizedB
|
|
|
39458
39526
|
const logoUrl = marketData.logoUrl;
|
|
39459
39527
|
if (logoUrl) {
|
|
39460
39528
|
return {
|
|
39461
|
-
logoUrl: normalizeUrl(
|
|
39462
|
-
logoUrl.replace(/\{\{\s*(PUBLIC_URL|public_url)\s*\}\}/, ""),
|
|
39463
|
-
normalizedBaseUrl
|
|
39464
|
-
)
|
|
39529
|
+
logoUrl: normalizeUrl(logoUrl, normalizedBaseUrl)
|
|
39465
39530
|
};
|
|
39466
39531
|
}
|
|
39467
39532
|
return {};
|
|
@@ -39555,7 +39620,12 @@ var updateAppManifestWithBaseUrl = (appManifest, baseUrl, backendServerUrl) => {
|
|
|
39555
39620
|
);
|
|
39556
39621
|
}
|
|
39557
39622
|
if (compType === ComponentType.PANEL) {
|
|
39558
|
-
|
|
39623
|
+
const bundleUrlQueryParam = "codeBundleUrl";
|
|
39624
|
+
const originUrl = new URL(compData.panel.url);
|
|
39625
|
+
const bundleUrl = originUrl.searchParams.get(bundleUrlQueryParam) ?? "";
|
|
39626
|
+
const normalizedBundleUrl = normalizeUrl(bundleUrl, normalizedBaseUrl);
|
|
39627
|
+
originUrl.searchParams.set(bundleUrlQueryParam, normalizedBundleUrl);
|
|
39628
|
+
compData.panel.url = originUrl.toString();
|
|
39559
39629
|
}
|
|
39560
39630
|
if (compType === ComponentType.WEBHOOK && backendServerUrl) {
|
|
39561
39631
|
compData.webhook = {
|
|
@@ -39659,4 +39729,4 @@ export {
|
|
|
39659
39729
|
he/he.js:
|
|
39660
39730
|
(*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
|
|
39661
39731
|
*/
|
|
39662
|
-
//# sourceMappingURL=chunk-
|
|
39732
|
+
//# sourceMappingURL=chunk-WRPV7SLY.js.map
|