@wix/cli 1.1.113 → 1.1.115
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-5NIZHHC2.js → DevCommand-DR4AJXOZ.js} +19 -18
- package/build/{DevCommand-5NIZHHC2.js.map → DevCommand-DR4AJXOZ.js.map} +1 -1
- package/build/{DevCommand-ALUHGAKA.js → DevCommand-NT7OT5QU.js} +21 -13
- package/build/{DevCommand-ALUHGAKA.js.map → DevCommand-NT7OT5QU.js.map} +1 -1
- package/build/{DevCommand-VRJX6BIL.js → DevCommand-RCGJXMM7.js} +19 -15
- package/build/DevCommand-RCGJXMM7.js.map +1 -0
- package/build/{EnvPullCommand-3MUFE7OO.js → EnvPullCommand-BRHDFMKW.js} +12 -11
- package/build/{EnvRemoveCommand-Z7IW2NBU.js → EnvRemoveCommand-GPZP5SHU.js} +11 -10
- package/build/{EnvRemoveCommand-Z7IW2NBU.js.map → EnvRemoveCommand-GPZP5SHU.js.map} +1 -1
- package/build/{EnvSetCommand-KEXD4HBP.js → EnvSetCommand-S35FDCOQ.js} +11 -10
- package/build/{EnvSetCommand-KEXD4HBP.js.map → EnvSetCommand-S35FDCOQ.js.map} +1 -1
- package/build/{GenerateCommand-O4MYCKA5.js → GenerateCommand-DYBLGFWA.js} +79 -11
- package/build/GenerateCommand-DYBLGFWA.js.map +1 -0
- package/build/{InstallCommand-AEQ7A2JQ.js → InstallCommand-2ALDT6YN.js} +16 -15
- package/build/{InstallCommand-AEQ7A2JQ.js.map → InstallCommand-2ALDT6YN.js.map} +1 -1
- package/build/{LoginCommand-7XCJYN2T.js → LoginCommand-N4SNEZNN.js} +9 -10
- package/build/{LoginCommand-7XCJYN2T.js.map → LoginCommand-N4SNEZNN.js.map} +1 -1
- package/build/{LogoutCommand-7OSTEKYS.js → LogoutCommand-5F2DNV6Y.js} +6 -6
- package/build/{PreviewCommand-7TZKFZ3T.js → PreviewCommand-5MTSSL4Z.js} +13 -12
- package/build/{PreviewCommand-A7B7HRBK.js → PreviewCommand-GTCVAQJW.js} +20 -19
- package/build/{PreviewCommand-A7B7HRBK.js.map → PreviewCommand-GTCVAQJW.js.map} +1 -1
- package/build/{PreviewCommand-WNCU6VVQ.js → PreviewCommand-U4GYNXY3.js} +21 -20
- package/build/{PreviewCommand-WNCU6VVQ.js.map → PreviewCommand-U4GYNXY3.js.map} +1 -1
- package/build/{PublishCommand-Y3EBOR64.js → PublishCommand-N2S4OKDO.js} +20 -19
- package/build/{PublishCommand-Y3EBOR64.js.map → PublishCommand-N2S4OKDO.js.map} +1 -1
- package/build/{ReleaseCommand-NSRK63PO.js → ReleaseCommand-NHCFC2VV.js} +13 -12
- package/build/{ReleaseCommand-NSRK63PO.js.map → ReleaseCommand-NHCFC2VV.js.map} +1 -1
- package/build/{UninstallCommand-BYKH2OD5.js → UninstallCommand-K2RSPKYX.js} +16 -15
- package/build/{UninstallCommand-BYKH2OD5.js.map → UninstallCommand-K2RSPKYX.js.map} +1 -1
- package/build/{WhoamiCommand-CAN3FBQE.js → WhoamiCommand-VEXJA6DQ.js} +3 -3
- package/build/{chunk-PESP4JZP.js → chunk-2LQWIJSH.js} +2 -2
- package/build/{chunk-LUMPVLDL.js → chunk-2ZNKHCEV.js} +13 -10
- package/build/chunk-2ZNKHCEV.js.map +1 -0
- package/build/{chunk-ZAXDMNEH.js → chunk-3GJOQ3LK.js} +2 -2
- package/build/{chunk-R5MKZGVK.js → chunk-3JTAH45Q.js} +3 -3
- package/build/{chunk-TRPFWRJM.js → chunk-4OR6H2VO.js} +2 -2
- package/build/{chunk-6YCIIOBO.js → chunk-4POS6UL7.js} +12 -8
- package/build/chunk-4POS6UL7.js.map +1 -0
- package/build/{chunk-TKDDSH55.js → chunk-4X4EXJQH.js} +39 -4
- package/build/chunk-4X4EXJQH.js.map +1 -0
- package/build/{chunk-34KFPL3O.js → chunk-523KUILJ.js} +3 -3
- package/build/{chunk-G5ARP7YT.js → chunk-6VBFNSVZ.js} +3 -3
- package/build/{chunk-E6PU56ZC.js → chunk-7RESTARM.js} +2 -2
- package/build/{chunk-62BYZXT7.js → chunk-A5I45GO6.js} +2 -2
- package/build/{chunk-OXS2RGRR.js → chunk-AWPJTA2S.js} +1 -1
- package/build/chunk-AWPJTA2S.js.map +1 -0
- package/build/{chunk-FGRHAF2I.js → chunk-AXXPCFCO.js} +2 -2
- package/build/{chunk-QEOFWN5Q.js → chunk-B2SB46TA.js} +9 -5
- package/build/{chunk-QEOFWN5Q.js.map → chunk-B2SB46TA.js.map} +1 -1
- package/build/{chunk-6CF3ST26.js → chunk-B63EKNTL.js} +6 -6
- package/build/{chunk-PXYULYM4.js → chunk-BWDIVEUJ.js} +5 -4
- package/build/{chunk-PXYULYM4.js.map → chunk-BWDIVEUJ.js.map} +1 -1
- package/build/{chunk-EPJT6ZO3.js → chunk-CLGTWFBD.js} +2 -2
- package/build/{chunk-YG4SDLJ3.js → chunk-D7YAQ5Y7.js} +5 -5
- package/build/{chunk-CCTJS4D5.js → chunk-DLB7R7B2.js} +2 -2
- package/build/{chunk-PBYHS4RR.js → chunk-E7LE4X33.js} +2 -2
- package/build/{chunk-ZDLLI3LD.js → chunk-FEMGHWFS.js} +2 -2
- package/build/{chunk-TWBAYQ6U.js → chunk-FGWGAT76.js} +2 -2
- package/build/{chunk-PEJFJI2L.js → chunk-FHY6VKM5.js} +2 -2
- package/build/{chunk-KTIETCHI.js → chunk-IH6JZCGQ.js} +3 -3
- package/build/{chunk-LIMBJP6Z.js → chunk-KN746DTO.js} +2 -2
- package/build/{chunk-OMWR5T2O.js → chunk-LKSKNYYE.js} +2 -2
- package/build/{chunk-WGXHQDL4.js → chunk-MTTHCH3U.js} +2 -2
- package/build/{chunk-UPAHB3KH.js → chunk-MZR22LQJ.js} +1 -1
- package/build/{chunk-UPAHB3KH.js.map → chunk-MZR22LQJ.js.map} +1 -1
- package/build/{chunk-PXSKF3ZH.js → chunk-N7GM3KVR.js} +6 -6
- package/build/{chunk-Z4ASNHNJ.js → chunk-O2JLY6IF.js} +4 -3
- package/build/chunk-O2JLY6IF.js.map +1 -0
- package/build/{chunk-WYHHEOWO.js → chunk-OSPXR5PI.js} +3 -2
- package/build/chunk-OSPXR5PI.js.map +1 -0
- package/build/{chunk-I6WQ34JM.js → chunk-PF2GGJPH.js} +3 -3
- package/build/{chunk-TJ27FIWY.js → chunk-SNW2WAUA.js} +4 -3
- package/build/chunk-SNW2WAUA.js.map +1 -0
- package/build/{chunk-WL33QM7L.js → chunk-SY2CXOCO.js} +11 -8
- package/build/chunk-SY2CXOCO.js.map +1 -0
- package/build/chunk-T3ENMGFO.js +1161 -0
- package/build/chunk-T3ENMGFO.js.map +1 -0
- package/build/{chunk-2HIHYEDM.js → chunk-UFFUGIER.js} +5 -5
- package/build/{chunk-2HIHYEDM.js.map → chunk-UFFUGIER.js.map} +1 -1
- package/build/{chunk-IKRGTML5.js → chunk-VN76ZLGU.js} +14 -7
- package/build/{chunk-IKRGTML5.js.map → chunk-VN76ZLGU.js.map} +1 -1
- package/build/{chunk-CLEB562H.js → chunk-VWRPJLPR.js} +4 -4
- package/build/{chunk-KYCF6FOC.js → chunk-VYBXG5WD.js} +2 -2
- package/build/{chunk-KYCF6FOC.js.map → chunk-VYBXG5WD.js.map} +1 -1
- package/build/{chunk-X3ZNA2FH.js → chunk-WD4M7R5H.js} +3 -3
- package/build/{chunk-UHAOJQIZ.js → chunk-WP74HCGV.js} +11 -7
- package/build/chunk-WP74HCGV.js.map +1 -0
- package/build/{chunk-HVWGXMF3.js → chunk-XJE3OEEX.js} +12 -5
- package/build/chunk-XJE3OEEX.js.map +1 -0
- package/build/{chunk-BHS7KQSN.js → chunk-YQUS7MYP.js} +2 -2
- package/build/{chunk-4JAPOHJE.js → chunk-ZF5SJOED.js} +8 -8
- package/build/{chunk-DLN4ZC34.js → chunk-ZNFMU3VN.js} +8 -8
- package/build/{dev-TGYUMH2A.js → dev-J3BLYGPD.js} +22 -22
- package/build/{env-pull-AZFHDCAT.js → env-pull-22FBKL26.js} +14 -14
- package/build/index.js +38 -29
- package/build/index.js.map +1 -1
- package/build/{install-3WCRDI4P.js → install-RGIIGLQO.js} +16 -17
- package/build/{install-3WCRDI4P.js.map → install-RGIIGLQO.js.map} +1 -1
- package/build/{preview-W4V2ONOV.js → preview-GQJ4L4RP.js} +15 -15
- package/build/{publish-ZOEOS5T6.js → publish-KGBABBNA.js} +18 -19
- package/build/{publish-ZOEOS5T6.js.map → publish-KGBABBNA.js.map} +1 -1
- package/build/{render-command-JGRUUMNE.js → render-command-JOKH6VD3.js} +15 -13
- package/build/render-command-JOKH6VD3.js.map +1 -0
- package/build/{render-command-GCDMLMWE.js → render-command-KLETZECR.js} +16 -14
- package/build/render-command-KLETZECR.js.map +1 -0
- package/build/{render-command-TSTBAITN.js → render-command-SZYWFCZP.js} +16 -14
- package/build/render-command-SZYWFCZP.js.map +1 -0
- package/build/{render-command-MSDRFAEH.js → render-command-VRBZOHYT.js} +15 -13
- package/build/render-command-VRBZOHYT.js.map +1 -0
- package/build/{render-command-RLQKUKVH.js → render-command-XKCMU6BG.js} +12 -12
- package/build/{run-command-JZ5QXQ3I.js → run-command-SFEXOC7O.js} +7 -8
- package/build/{src-UTNR5MXA.js → src-HAEMFHSN.js} +14 -14
- package/build/{src-7UHYYCVW.js → src-JOU63K77.js} +6 -6
- package/build/{src-LEWDR7MP.js → src-OIHZDVI5.js} +27 -27
- package/build/{src-4EKWIVB6.js → src-PNYDHMNN.js} +6 -6
- package/build/{src-GSOEZHCG.js → src-QWXA2OBC.js} +17 -17
- package/build/{src-ZA57ZYD2.js → src-V4D6IFCR.js} +4 -5
- package/build/{sync-types-7AJ7PNPQ.js → sync-types-S74KPBZN.js} +11 -12
- package/build/{uninstall-TBLNEAEU.js → uninstall-LXWHNXHS.js} +16 -17
- package/build/{uninstall-TBLNEAEU.js.map → uninstall-LXWHNXHS.js.map} +1 -1
- package/package.json +3 -2
- package/build/DevCommand-VRJX6BIL.js.map +0 -1
- package/build/GenerateCommand-O4MYCKA5.js.map +0 -1
- package/build/chunk-2YYJVUEY.js +0 -48
- package/build/chunk-2YYJVUEY.js.map +0 -1
- package/build/chunk-6YCIIOBO.js.map +0 -1
- package/build/chunk-HVWGXMF3.js.map +0 -1
- package/build/chunk-LUMPVLDL.js.map +0 -1
- package/build/chunk-OXS2RGRR.js.map +0 -1
- package/build/chunk-TJ27FIWY.js.map +0 -1
- package/build/chunk-TKDDSH55.js.map +0 -1
- package/build/chunk-UHAOJQIZ.js.map +0 -1
- package/build/chunk-WL33QM7L.js.map +0 -1
- package/build/chunk-WYHHEOWO.js.map +0 -1
- package/build/chunk-Z4ASNHNJ.js.map +0 -1
- package/build/render-command-GCDMLMWE.js.map +0 -1
- package/build/render-command-JGRUUMNE.js.map +0 -1
- package/build/render-command-MSDRFAEH.js.map +0 -1
- package/build/render-command-TSTBAITN.js.map +0 -1
- /package/build/{EnvPullCommand-3MUFE7OO.js.map → EnvPullCommand-BRHDFMKW.js.map} +0 -0
- /package/build/{LogoutCommand-7OSTEKYS.js.map → LogoutCommand-5F2DNV6Y.js.map} +0 -0
- /package/build/{PreviewCommand-7TZKFZ3T.js.map → PreviewCommand-5MTSSL4Z.js.map} +0 -0
- /package/build/{WhoamiCommand-CAN3FBQE.js.map → WhoamiCommand-VEXJA6DQ.js.map} +0 -0
- /package/build/{chunk-PESP4JZP.js.map → chunk-2LQWIJSH.js.map} +0 -0
- /package/build/{chunk-ZAXDMNEH.js.map → chunk-3GJOQ3LK.js.map} +0 -0
- /package/build/{chunk-R5MKZGVK.js.map → chunk-3JTAH45Q.js.map} +0 -0
- /package/build/{chunk-TRPFWRJM.js.map → chunk-4OR6H2VO.js.map} +0 -0
- /package/build/{chunk-34KFPL3O.js.map → chunk-523KUILJ.js.map} +0 -0
- /package/build/{chunk-G5ARP7YT.js.map → chunk-6VBFNSVZ.js.map} +0 -0
- /package/build/{chunk-E6PU56ZC.js.map → chunk-7RESTARM.js.map} +0 -0
- /package/build/{chunk-62BYZXT7.js.map → chunk-A5I45GO6.js.map} +0 -0
- /package/build/{chunk-FGRHAF2I.js.map → chunk-AXXPCFCO.js.map} +0 -0
- /package/build/{chunk-6CF3ST26.js.map → chunk-B63EKNTL.js.map} +0 -0
- /package/build/{chunk-EPJT6ZO3.js.map → chunk-CLGTWFBD.js.map} +0 -0
- /package/build/{chunk-YG4SDLJ3.js.map → chunk-D7YAQ5Y7.js.map} +0 -0
- /package/build/{chunk-CCTJS4D5.js.map → chunk-DLB7R7B2.js.map} +0 -0
- /package/build/{chunk-PBYHS4RR.js.map → chunk-E7LE4X33.js.map} +0 -0
- /package/build/{chunk-ZDLLI3LD.js.map → chunk-FEMGHWFS.js.map} +0 -0
- /package/build/{chunk-TWBAYQ6U.js.map → chunk-FGWGAT76.js.map} +0 -0
- /package/build/{chunk-PEJFJI2L.js.map → chunk-FHY6VKM5.js.map} +0 -0
- /package/build/{chunk-KTIETCHI.js.map → chunk-IH6JZCGQ.js.map} +0 -0
- /package/build/{chunk-LIMBJP6Z.js.map → chunk-KN746DTO.js.map} +0 -0
- /package/build/{chunk-OMWR5T2O.js.map → chunk-LKSKNYYE.js.map} +0 -0
- /package/build/{chunk-WGXHQDL4.js.map → chunk-MTTHCH3U.js.map} +0 -0
- /package/build/{chunk-PXSKF3ZH.js.map → chunk-N7GM3KVR.js.map} +0 -0
- /package/build/{chunk-I6WQ34JM.js.map → chunk-PF2GGJPH.js.map} +0 -0
- /package/build/{chunk-CLEB562H.js.map → chunk-VWRPJLPR.js.map} +0 -0
- /package/build/{chunk-X3ZNA2FH.js.map → chunk-WD4M7R5H.js.map} +0 -0
- /package/build/{chunk-BHS7KQSN.js.map → chunk-YQUS7MYP.js.map} +0 -0
- /package/build/{chunk-4JAPOHJE.js.map → chunk-ZF5SJOED.js.map} +0 -0
- /package/build/{chunk-DLN4ZC34.js.map → chunk-ZNFMU3VN.js.map} +0 -0
- /package/build/{dev-TGYUMH2A.js.map → dev-J3BLYGPD.js.map} +0 -0
- /package/build/{env-pull-AZFHDCAT.js.map → env-pull-22FBKL26.js.map} +0 -0
- /package/build/{preview-W4V2ONOV.js.map → preview-GQJ4L4RP.js.map} +0 -0
- /package/build/{render-command-RLQKUKVH.js.map → render-command-XKCMU6BG.js.map} +0 -0
- /package/build/{run-command-JZ5QXQ3I.js.map → run-command-SFEXOC7O.js.map} +0 -0
- /package/build/{src-UTNR5MXA.js.map → src-HAEMFHSN.js.map} +0 -0
- /package/build/{src-7UHYYCVW.js.map → src-JOU63K77.js.map} +0 -0
- /package/build/{src-LEWDR7MP.js.map → src-OIHZDVI5.js.map} +0 -0
- /package/build/{src-4EKWIVB6.js.map → src-PNYDHMNN.js.map} +0 -0
- /package/build/{src-GSOEZHCG.js.map → src-QWXA2OBC.js.map} +0 -0
- /package/build/{src-ZA57ZYD2.js.map → src-V4D6IFCR.js.map} +0 -0
- /package/build/{sync-types-7AJ7PNPQ.js.map → sync-types-S74KPBZN.js.map} +0 -0
|
@@ -0,0 +1,1161 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
require_react
|
|
5
|
+
} from "./chunk-NRAQAV6T.js";
|
|
6
|
+
import {
|
|
7
|
+
readUserConfig
|
|
8
|
+
} from "./chunk-4X4EXJQH.js";
|
|
9
|
+
import {
|
|
10
|
+
getTestOverrides
|
|
11
|
+
} from "./chunk-OSPXR5PI.js";
|
|
12
|
+
import {
|
|
13
|
+
__commonJS,
|
|
14
|
+
__toESM,
|
|
15
|
+
init_esm_shims
|
|
16
|
+
} from "./chunk-4EFJZ3GQ.js";
|
|
17
|
+
|
|
18
|
+
// ../../node_modules/@babel/runtime/helpers/typeof.js
|
|
19
|
+
var require_typeof = __commonJS({
|
|
20
|
+
"../../node_modules/@babel/runtime/helpers/typeof.js"(exports, module) {
|
|
21
|
+
"use strict";
|
|
22
|
+
init_esm_shims();
|
|
23
|
+
function _typeof(o) {
|
|
24
|
+
"@babel/helpers - typeof";
|
|
25
|
+
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
26
|
+
return typeof o2;
|
|
27
|
+
} : function(o2) {
|
|
28
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
29
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
30
|
+
}
|
|
31
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
// ../../node_modules/@babel/runtime/helpers/toPrimitive.js
|
|
36
|
+
var require_toPrimitive = __commonJS({
|
|
37
|
+
"../../node_modules/@babel/runtime/helpers/toPrimitive.js"(exports, module) {
|
|
38
|
+
"use strict";
|
|
39
|
+
init_esm_shims();
|
|
40
|
+
var _typeof = require_typeof()["default"];
|
|
41
|
+
function toPrimitive(t, r) {
|
|
42
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
43
|
+
var e = t[Symbol.toPrimitive];
|
|
44
|
+
if (void 0 !== e) {
|
|
45
|
+
var i = e.call(t, r || "default");
|
|
46
|
+
if ("object" != _typeof(i)) return i;
|
|
47
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
48
|
+
}
|
|
49
|
+
return ("string" === r ? String : Number)(t);
|
|
50
|
+
}
|
|
51
|
+
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// ../../node_modules/@babel/runtime/helpers/toPropertyKey.js
|
|
56
|
+
var require_toPropertyKey = __commonJS({
|
|
57
|
+
"../../node_modules/@babel/runtime/helpers/toPropertyKey.js"(exports, module) {
|
|
58
|
+
"use strict";
|
|
59
|
+
init_esm_shims();
|
|
60
|
+
var _typeof = require_typeof()["default"];
|
|
61
|
+
var toPrimitive = require_toPrimitive();
|
|
62
|
+
function toPropertyKey(t) {
|
|
63
|
+
var i = toPrimitive(t, "string");
|
|
64
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
65
|
+
}
|
|
66
|
+
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// ../../node_modules/@babel/runtime/helpers/defineProperty.js
|
|
71
|
+
var require_defineProperty = __commonJS({
|
|
72
|
+
"../../node_modules/@babel/runtime/helpers/defineProperty.js"(exports, module) {
|
|
73
|
+
"use strict";
|
|
74
|
+
init_esm_shims();
|
|
75
|
+
var toPropertyKey = require_toPropertyKey();
|
|
76
|
+
function _defineProperty7(e, r, t) {
|
|
77
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
78
|
+
value: t,
|
|
79
|
+
enumerable: true,
|
|
80
|
+
configurable: true,
|
|
81
|
+
writable: true
|
|
82
|
+
}) : e[r] = t, e;
|
|
83
|
+
}
|
|
84
|
+
module.exports = _defineProperty7, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
// ../cli-panorama/src/PanoramaContext.tsx
|
|
89
|
+
init_esm_shims();
|
|
90
|
+
var import_react = __toESM(require_react(), 1);
|
|
91
|
+
var PanoramaContext = (0, import_react.createContext)(void 0);
|
|
92
|
+
var PanoramaProvider = (props) => {
|
|
93
|
+
const { value, children } = props;
|
|
94
|
+
return /* @__PURE__ */ import_react.default.createElement(PanoramaContext.Provider, { value }, children);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
// ../cli-panorama/src/createPanorama.ts
|
|
98
|
+
init_esm_shims();
|
|
99
|
+
|
|
100
|
+
// ../../node_modules/@wix/panorama-client-node/dist/esm/index.js
|
|
101
|
+
init_esm_shims();
|
|
102
|
+
|
|
103
|
+
// ../../node_modules/@wix/panorama-client-node/dist/esm/panorama-client-node.js
|
|
104
|
+
init_esm_shims();
|
|
105
|
+
|
|
106
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/index.js
|
|
107
|
+
init_esm_shims();
|
|
108
|
+
|
|
109
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common-shared/dist/esm/types/index.js
|
|
110
|
+
init_esm_shims();
|
|
111
|
+
|
|
112
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common-shared/dist/esm/types/enum-types.js
|
|
113
|
+
init_esm_shims();
|
|
114
|
+
var AlertType;
|
|
115
|
+
(function(AlertType2) {
|
|
116
|
+
AlertType2["SuccessRate"] = "SuccessRate";
|
|
117
|
+
AlertType2["SuccessRateQuality"] = "SuccessRateQuality";
|
|
118
|
+
AlertType2["Duration"] = "Duration";
|
|
119
|
+
AlertType2["ErrorRate"] = "ErrorRate";
|
|
120
|
+
})(AlertType || (AlertType = {}));
|
|
121
|
+
var AlertStatus;
|
|
122
|
+
(function(AlertStatus2) {
|
|
123
|
+
AlertStatus2["Alerting"] = "alerting";
|
|
124
|
+
AlertStatus2["Ok"] = "ok";
|
|
125
|
+
})(AlertStatus || (AlertStatus = {}));
|
|
126
|
+
var LogLevel;
|
|
127
|
+
(function(LogLevel2) {
|
|
128
|
+
LogLevel2["Info"] = "INFO";
|
|
129
|
+
LogLevel2["Warn"] = "WARN";
|
|
130
|
+
LogLevel2["Error"] = "ERROR";
|
|
131
|
+
LogLevel2["Debug"] = "DEBUG";
|
|
132
|
+
})(LogLevel || (LogLevel = {}));
|
|
133
|
+
var TransactionAction;
|
|
134
|
+
(function(TransactionAction2) {
|
|
135
|
+
TransactionAction2["Start"] = "START";
|
|
136
|
+
TransactionAction2["Finish"] = "FINISH";
|
|
137
|
+
})(TransactionAction || (TransactionAction = {}));
|
|
138
|
+
var InternalTransactions = {
|
|
139
|
+
ComponentLoad: "PANORAMA_COMPONENT_LOAD",
|
|
140
|
+
ComponentPhase: "PANORAMA_COMPONENT_PHASE"
|
|
141
|
+
};
|
|
142
|
+
var Platform;
|
|
143
|
+
(function(Platform2) {
|
|
144
|
+
Platform2["Standalone"] = "standalone";
|
|
145
|
+
Platform2["BusinessManager"] = "business-manager";
|
|
146
|
+
Platform2["Viewer"] = "viewer";
|
|
147
|
+
Platform2["Editor"] = "editor";
|
|
148
|
+
Platform2["EditorSettings"] = "editor:settings";
|
|
149
|
+
Platform2["Mobile"] = "mobile";
|
|
150
|
+
Platform2["Standards"] = "standards";
|
|
151
|
+
})(Platform || (Platform = {}));
|
|
152
|
+
var ErrorSeverity;
|
|
153
|
+
(function(ErrorSeverity2) {
|
|
154
|
+
ErrorSeverity2["Fatal"] = "fatal";
|
|
155
|
+
ErrorSeverity2["Error"] = "error";
|
|
156
|
+
ErrorSeverity2["Warning"] = "warning";
|
|
157
|
+
ErrorSeverity2["Log"] = "log";
|
|
158
|
+
ErrorSeverity2["Info"] = "info";
|
|
159
|
+
ErrorSeverity2["Debug"] = "debug";
|
|
160
|
+
ErrorSeverity2["Critical"] = "critical";
|
|
161
|
+
})(ErrorSeverity || (ErrorSeverity = {}));
|
|
162
|
+
|
|
163
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common-shared/dist/esm/types/data-types.js
|
|
164
|
+
init_esm_shims();
|
|
165
|
+
|
|
166
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common-shared/dist/esm/types/interface-types.js
|
|
167
|
+
init_esm_shims();
|
|
168
|
+
|
|
169
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common/dist/esm/global-config/index.js
|
|
170
|
+
init_esm_shims();
|
|
171
|
+
|
|
172
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common/dist/esm/global-config/global-config.js
|
|
173
|
+
init_esm_shims();
|
|
174
|
+
|
|
175
|
+
// ../../node_modules/uuid/dist/esm-node/index.js
|
|
176
|
+
init_esm_shims();
|
|
177
|
+
|
|
178
|
+
// ../../node_modules/uuid/dist/esm-node/rng.js
|
|
179
|
+
init_esm_shims();
|
|
180
|
+
import crypto from "crypto";
|
|
181
|
+
var rnds8Pool = new Uint8Array(256);
|
|
182
|
+
var poolPtr = rnds8Pool.length;
|
|
183
|
+
function rng() {
|
|
184
|
+
if (poolPtr > rnds8Pool.length - 16) {
|
|
185
|
+
crypto.randomFillSync(rnds8Pool);
|
|
186
|
+
poolPtr = 0;
|
|
187
|
+
}
|
|
188
|
+
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// ../../node_modules/uuid/dist/esm-node/stringify.js
|
|
192
|
+
init_esm_shims();
|
|
193
|
+
var byteToHex = [];
|
|
194
|
+
for (let i = 0; i < 256; ++i) {
|
|
195
|
+
byteToHex.push((i + 256).toString(16).slice(1));
|
|
196
|
+
}
|
|
197
|
+
function unsafeStringify(arr, offset = 0) {
|
|
198
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// ../../node_modules/uuid/dist/esm-node/v4.js
|
|
202
|
+
init_esm_shims();
|
|
203
|
+
|
|
204
|
+
// ../../node_modules/uuid/dist/esm-node/native.js
|
|
205
|
+
init_esm_shims();
|
|
206
|
+
import crypto2 from "crypto";
|
|
207
|
+
var native_default = {
|
|
208
|
+
randomUUID: crypto2.randomUUID
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
// ../../node_modules/uuid/dist/esm-node/v4.js
|
|
212
|
+
function v4(options, buf, offset) {
|
|
213
|
+
if (native_default.randomUUID && !buf && !options) {
|
|
214
|
+
return native_default.randomUUID();
|
|
215
|
+
}
|
|
216
|
+
options = options || {};
|
|
217
|
+
const rnds = options.random || (options.rng || rng)();
|
|
218
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
219
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
220
|
+
if (buf) {
|
|
221
|
+
offset = offset || 0;
|
|
222
|
+
for (let i = 0; i < 16; ++i) {
|
|
223
|
+
buf[offset + i] = rnds[i];
|
|
224
|
+
}
|
|
225
|
+
return buf;
|
|
226
|
+
}
|
|
227
|
+
return unsafeStringify(rnds);
|
|
228
|
+
}
|
|
229
|
+
var v4_default = v4;
|
|
230
|
+
|
|
231
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common/dist/esm/duration-tracker/index.js
|
|
232
|
+
init_esm_shims();
|
|
233
|
+
|
|
234
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common/dist/esm/duration-tracker/duration-tracker.js
|
|
235
|
+
init_esm_shims();
|
|
236
|
+
var DELIMITER = " | ";
|
|
237
|
+
var DurationTrackerImpl = class {
|
|
238
|
+
constructor() {
|
|
239
|
+
this.transactionStartTimes = {};
|
|
240
|
+
this.phaseStartTimes = {};
|
|
241
|
+
}
|
|
242
|
+
createKey(...args) {
|
|
243
|
+
return args.filter((x) => !!x).join(DELIMITER);
|
|
244
|
+
}
|
|
245
|
+
markTransactionStart(fullArtifactId, componentId, transactionName, transactionId) {
|
|
246
|
+
const key = this.createKey(fullArtifactId, componentId, transactionName, transactionId);
|
|
247
|
+
this.transactionStartTimes[key] = Date.now();
|
|
248
|
+
}
|
|
249
|
+
markTransactionFinish(fullArtifactId, componentId, transactionName, transactionId) {
|
|
250
|
+
const key = this.createKey(fullArtifactId, componentId, transactionName, transactionId);
|
|
251
|
+
const finishTime = Date.now();
|
|
252
|
+
const startTime = this.transactionStartTimes[key] || finishTime;
|
|
253
|
+
const duration = Math.round(finishTime - startTime);
|
|
254
|
+
this.transactionStartTimes[key] = 0;
|
|
255
|
+
return duration;
|
|
256
|
+
}
|
|
257
|
+
markPhaseStart(fullArtifactId, componentId, phaseName) {
|
|
258
|
+
const key = this.createKey(fullArtifactId, componentId, phaseName);
|
|
259
|
+
this.phaseStartTimes[key] = Date.now();
|
|
260
|
+
}
|
|
261
|
+
markPhaseFinish(fullArtifactId, componentId, phaseName) {
|
|
262
|
+
const key = this.createKey(fullArtifactId, componentId, phaseName);
|
|
263
|
+
const finishTime = Date.now();
|
|
264
|
+
const startTime = this.phaseStartTimes[key] || finishTime;
|
|
265
|
+
const duration = Math.round(finishTime - startTime);
|
|
266
|
+
this.phaseStartTimes[key] = 0;
|
|
267
|
+
return duration;
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
var createDurationTracker = () => new DurationTrackerImpl();
|
|
271
|
+
|
|
272
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common/dist/esm/global-config/global-config.js
|
|
273
|
+
var GlobalConfigImpl = class {
|
|
274
|
+
constructor() {
|
|
275
|
+
this.sessionId = "";
|
|
276
|
+
this.reporter = null;
|
|
277
|
+
this.batchQueue = null;
|
|
278
|
+
this.durationTracker = createDurationTracker();
|
|
279
|
+
this.state = /* @__PURE__ */ new Map();
|
|
280
|
+
this.sessionStart = Date.now();
|
|
281
|
+
}
|
|
282
|
+
getSessionId() {
|
|
283
|
+
this.sessionId = this.sessionId || v4_default();
|
|
284
|
+
return this.sessionId;
|
|
285
|
+
}
|
|
286
|
+
setSessionId(sessionId) {
|
|
287
|
+
this.sessionId = sessionId;
|
|
288
|
+
}
|
|
289
|
+
getSessionTime() {
|
|
290
|
+
return Date.now() - this.sessionStart;
|
|
291
|
+
}
|
|
292
|
+
getReporter() {
|
|
293
|
+
return this.reporter;
|
|
294
|
+
}
|
|
295
|
+
setReporter(reporter) {
|
|
296
|
+
this.reporter = reporter;
|
|
297
|
+
}
|
|
298
|
+
initBatchQueue(batchQueue) {
|
|
299
|
+
this.batchQueue = this.batchQueue ?? batchQueue;
|
|
300
|
+
}
|
|
301
|
+
getBatchQueue() {
|
|
302
|
+
return this.batchQueue;
|
|
303
|
+
}
|
|
304
|
+
getDurationTracker() {
|
|
305
|
+
return this.durationTracker;
|
|
306
|
+
}
|
|
307
|
+
getStateValue(key) {
|
|
308
|
+
return this.state.get(key);
|
|
309
|
+
}
|
|
310
|
+
setStateValue(key, value) {
|
|
311
|
+
this.state.set(key, value);
|
|
312
|
+
}
|
|
313
|
+
clearState() {
|
|
314
|
+
this.state.clear();
|
|
315
|
+
this.durationTracker = createDurationTracker();
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
var createGlobalConfig = () => new GlobalConfigImpl();
|
|
319
|
+
|
|
320
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-client-factory.js
|
|
321
|
+
init_esm_shims();
|
|
322
|
+
var import_defineProperty6 = __toESM(require_defineProperty());
|
|
323
|
+
|
|
324
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common/dist/esm/utils/index.js
|
|
325
|
+
init_esm_shims();
|
|
326
|
+
|
|
327
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common/dist/esm/utils/class-utils.js
|
|
328
|
+
init_esm_shims();
|
|
329
|
+
var bindPrototypeMethodsToSelf = (instance, classFn) => {
|
|
330
|
+
const prototype = classFn ? classFn.prototype : Object.getPrototypeOf(instance);
|
|
331
|
+
const props = Object.getOwnPropertyNames(prototype);
|
|
332
|
+
for (const prop of props) {
|
|
333
|
+
if (prop === "constructor" || typeof prototype[prop] !== "function") {
|
|
334
|
+
continue;
|
|
335
|
+
}
|
|
336
|
+
instance[prop] = prototype[prop].bind(instance);
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/utils/general-utils.js
|
|
341
|
+
init_esm_shims();
|
|
342
|
+
var union = function() {
|
|
343
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
344
|
+
args[_key] = arguments[_key];
|
|
345
|
+
}
|
|
346
|
+
return [...new Set(args.flat()).values()];
|
|
347
|
+
};
|
|
348
|
+
var defaults = function() {
|
|
349
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
350
|
+
args[_key2] = arguments[_key2];
|
|
351
|
+
}
|
|
352
|
+
return args.reduce((res, obj) => Object.entries(obj ?? {}).reduce((_res, _ref) => {
|
|
353
|
+
let [key, value] = _ref;
|
|
354
|
+
if (typeof _res[key] === "undefined" && typeof value !== "undefined") {
|
|
355
|
+
_res[key] = value;
|
|
356
|
+
}
|
|
357
|
+
return _res;
|
|
358
|
+
}, res), {});
|
|
359
|
+
};
|
|
360
|
+
var deepDefaults = function(dest) {
|
|
361
|
+
for (var _len3 = arguments.length, rest = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
362
|
+
rest[_key3 - 1] = arguments[_key3];
|
|
363
|
+
}
|
|
364
|
+
const keys = union(...rest.map((value) => Object.keys(value ?? {})));
|
|
365
|
+
const all = [dest, ...rest];
|
|
366
|
+
return keys.reduce((res, key) => {
|
|
367
|
+
const values = all.map((value) => value == null ? void 0 : value[key]);
|
|
368
|
+
const merged = defaults(...values);
|
|
369
|
+
const hasValues = Object.values(merged).filter((value) => typeof value !== "undefined").length > 0;
|
|
370
|
+
if (hasValues) {
|
|
371
|
+
res = res ?? {};
|
|
372
|
+
res[key] = merged;
|
|
373
|
+
} else {
|
|
374
|
+
var _res2;
|
|
375
|
+
(_res2 = res) == null || delete _res2[key];
|
|
376
|
+
}
|
|
377
|
+
return res;
|
|
378
|
+
}, dest ? {
|
|
379
|
+
...dest
|
|
380
|
+
} : dest);
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-client.js
|
|
384
|
+
init_esm_shims();
|
|
385
|
+
var import_defineProperty3 = __toESM(require_defineProperty());
|
|
386
|
+
|
|
387
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-client-component.js
|
|
388
|
+
init_esm_shims();
|
|
389
|
+
var import_defineProperty = __toESM(require_defineProperty());
|
|
390
|
+
|
|
391
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-error-monitor.js
|
|
392
|
+
init_esm_shims();
|
|
393
|
+
var PanoramaErrorMonitorImpl = class {
|
|
394
|
+
constructor(baseClient, options) {
|
|
395
|
+
this.baseClient = baseClient;
|
|
396
|
+
this.options = options;
|
|
397
|
+
bindPrototypeMethodsToSelf(this);
|
|
398
|
+
}
|
|
399
|
+
reportError(error, data) {
|
|
400
|
+
this.baseClient.reportError(error, data, this.options);
|
|
401
|
+
}
|
|
402
|
+
addBreadcrumb(breadcrumb) {
|
|
403
|
+
this.baseClient.addBreadcrumb(breadcrumb);
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-logger.js
|
|
408
|
+
init_esm_shims();
|
|
409
|
+
var PanoramaLoggerImpl = class {
|
|
410
|
+
constructor(baseClient) {
|
|
411
|
+
this.baseClient = baseClient;
|
|
412
|
+
bindPrototypeMethodsToSelf(this);
|
|
413
|
+
}
|
|
414
|
+
info(message, data) {
|
|
415
|
+
this.baseClient.log(LogLevel.Info, message, data);
|
|
416
|
+
}
|
|
417
|
+
warn(message, data) {
|
|
418
|
+
this.baseClient.log(LogLevel.Warn, message, data);
|
|
419
|
+
}
|
|
420
|
+
error(message, data) {
|
|
421
|
+
this.baseClient.log(LogLevel.Error, message, data);
|
|
422
|
+
}
|
|
423
|
+
debug(message, data) {
|
|
424
|
+
this.baseClient.log(LogLevel.Debug, message, data);
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-transaction.js
|
|
429
|
+
init_esm_shims();
|
|
430
|
+
|
|
431
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common-shared/dist/esm/utils/index.js
|
|
432
|
+
init_esm_shims();
|
|
433
|
+
|
|
434
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common-shared/dist/esm/utils/transaction-utils.js
|
|
435
|
+
init_esm_shims();
|
|
436
|
+
var isCustomTransactionName = (name) => !Object.values(InternalTransactions).includes(name);
|
|
437
|
+
|
|
438
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common-shared/dist/esm/utils/platform-utils.js
|
|
439
|
+
init_esm_shims();
|
|
440
|
+
|
|
441
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common-shared/dist/esm/utils/guid.js
|
|
442
|
+
init_esm_shims();
|
|
443
|
+
|
|
444
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-transaction.js
|
|
445
|
+
var PanoramaTransactionImpl = class {
|
|
446
|
+
constructor(baseClient, name, options) {
|
|
447
|
+
this.baseClient = baseClient;
|
|
448
|
+
this.name = name;
|
|
449
|
+
this.options = options;
|
|
450
|
+
if (!isCustomTransactionName(name)) {
|
|
451
|
+
throw new Error(`"${name}" is an internal transaction and can't be used`);
|
|
452
|
+
}
|
|
453
|
+
this.baseClient = baseClient;
|
|
454
|
+
bindPrototypeMethodsToSelf(this);
|
|
455
|
+
}
|
|
456
|
+
start(data, options) {
|
|
457
|
+
return this.baseClient.reportTransactionStart(this.name, defaults(options, this.options), data);
|
|
458
|
+
}
|
|
459
|
+
finish(data, options) {
|
|
460
|
+
return this.baseClient.reportTransactionFinish(this.name, defaults(options, this.options), data);
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-client-component.js
|
|
465
|
+
var PanoramaClientForComponentImpl = class {
|
|
466
|
+
constructor(_ref) {
|
|
467
|
+
let {
|
|
468
|
+
baseClient
|
|
469
|
+
} = _ref;
|
|
470
|
+
(0, import_defineProperty.default)(this, "baseClient", void 0);
|
|
471
|
+
this.baseClient = baseClient;
|
|
472
|
+
bindPrototypeMethodsToSelf(this);
|
|
473
|
+
}
|
|
474
|
+
transaction(name, options) {
|
|
475
|
+
return new PanoramaTransactionImpl(this.baseClient, name, options);
|
|
476
|
+
}
|
|
477
|
+
errorMonitor(options) {
|
|
478
|
+
return new PanoramaErrorMonitorImpl(this.baseClient, options);
|
|
479
|
+
}
|
|
480
|
+
logger() {
|
|
481
|
+
return new PanoramaLoggerImpl(this.baseClient);
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/plugins/hooks-manager.js
|
|
486
|
+
init_esm_shims();
|
|
487
|
+
var import_defineProperty2 = __toESM(require_defineProperty());
|
|
488
|
+
var Hook = /* @__PURE__ */ function(Hook2) {
|
|
489
|
+
Hook2[Hook2["afterCreateClientForComponent"] = 0] = "afterCreateClientForComponent";
|
|
490
|
+
Hook2[Hook2["beforeReport"] = 1] = "beforeReport";
|
|
491
|
+
Hook2[Hook2["beforeReportTransactionStart"] = 2] = "beforeReportTransactionStart";
|
|
492
|
+
Hook2[Hook2["afterReportTransactionStart"] = 3] = "afterReportTransactionStart";
|
|
493
|
+
Hook2[Hook2["beforeReportTransactionFinish"] = 4] = "beforeReportTransactionFinish";
|
|
494
|
+
Hook2[Hook2["afterReportTransactionFinish"] = 5] = "afterReportTransactionFinish";
|
|
495
|
+
Hook2[Hook2["beforeReportPhaseStart"] = 6] = "beforeReportPhaseStart";
|
|
496
|
+
Hook2[Hook2["afterReportPhaseStart"] = 7] = "afterReportPhaseStart";
|
|
497
|
+
Hook2[Hook2["beforeReportPhaseFinish"] = 8] = "beforeReportPhaseFinish";
|
|
498
|
+
Hook2[Hook2["afterReportPhaseFinish"] = 9] = "afterReportPhaseFinish";
|
|
499
|
+
Hook2[Hook2["beforeReportError"] = 10] = "beforeReportError";
|
|
500
|
+
Hook2[Hook2["afterReportError"] = 11] = "afterReportError";
|
|
501
|
+
Hook2[Hook2["beforeAddBreadcrumb"] = 12] = "beforeAddBreadcrumb";
|
|
502
|
+
Hook2[Hook2["afterAddBreadcrumb"] = 13] = "afterAddBreadcrumb";
|
|
503
|
+
Hook2[Hook2["beforeReportLog"] = 14] = "beforeReportLog";
|
|
504
|
+
Hook2[Hook2["afterReportLog"] = 15] = "afterReportLog";
|
|
505
|
+
Hook2[Hook2["beforeUnhandledError"] = 16] = "beforeUnhandledError";
|
|
506
|
+
return Hook2;
|
|
507
|
+
}({});
|
|
508
|
+
var HooksManager = class {
|
|
509
|
+
constructor() {
|
|
510
|
+
(0, import_defineProperty2.default)(this, "subscribers", {});
|
|
511
|
+
}
|
|
512
|
+
tap(hook, subscriber) {
|
|
513
|
+
this.subscribers[hook] = this.subscribers[hook] || [];
|
|
514
|
+
this.subscribers[hook].push(subscriber);
|
|
515
|
+
}
|
|
516
|
+
invoke(hook) {
|
|
517
|
+
const subscribers = this.subscribers[hook];
|
|
518
|
+
if (!subscribers) {
|
|
519
|
+
return true;
|
|
520
|
+
}
|
|
521
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
522
|
+
args[_key - 1] = arguments[_key];
|
|
523
|
+
}
|
|
524
|
+
for (const subscriber of subscribers) {
|
|
525
|
+
if (subscriber(...args) === false) {
|
|
526
|
+
return false;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
return true;
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-phase.js
|
|
534
|
+
init_esm_shims();
|
|
535
|
+
var PanoramaPhaseImpl = class {
|
|
536
|
+
constructor(name, baseClient) {
|
|
537
|
+
this.name = name;
|
|
538
|
+
this.baseClient = baseClient;
|
|
539
|
+
this.baseClient = baseClient;
|
|
540
|
+
bindPrototypeMethodsToSelf(this);
|
|
541
|
+
}
|
|
542
|
+
start(data) {
|
|
543
|
+
return this.baseClient.reportPhaseStart(this.name, data);
|
|
544
|
+
}
|
|
545
|
+
finish(data) {
|
|
546
|
+
return this.baseClient.reportPhaseFinish(this.name, data);
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-client.js
|
|
551
|
+
var PanoramaClientImpl = class {
|
|
552
|
+
constructor(_ref) {
|
|
553
|
+
let {
|
|
554
|
+
hooksManager,
|
|
555
|
+
baseClient
|
|
556
|
+
} = _ref;
|
|
557
|
+
(0, import_defineProperty3.default)(this, "baseClient", void 0);
|
|
558
|
+
(0, import_defineProperty3.default)(this, "hooksManager", void 0);
|
|
559
|
+
this.baseClient = baseClient;
|
|
560
|
+
this.hooksManager = hooksManager;
|
|
561
|
+
bindPrototypeMethodsToSelf(this);
|
|
562
|
+
}
|
|
563
|
+
onUnhandledError(subscriber) {
|
|
564
|
+
this.hooksManager.tap(Hook.beforeUnhandledError, subscriber);
|
|
565
|
+
}
|
|
566
|
+
reportLoadStart(data, options) {
|
|
567
|
+
const {
|
|
568
|
+
ComponentLoad
|
|
569
|
+
} = InternalTransactions;
|
|
570
|
+
return this.baseClient.reportTransactionStart(ComponentLoad, options, data);
|
|
571
|
+
}
|
|
572
|
+
reportLoadFinish(data, options) {
|
|
573
|
+
const {
|
|
574
|
+
ComponentLoad
|
|
575
|
+
} = InternalTransactions;
|
|
576
|
+
return this.baseClient.reportTransactionFinish(ComponentLoad, options, data);
|
|
577
|
+
}
|
|
578
|
+
phase(name) {
|
|
579
|
+
return new PanoramaPhaseImpl(name, this.baseClient);
|
|
580
|
+
}
|
|
581
|
+
transaction(name, options) {
|
|
582
|
+
return new PanoramaTransactionImpl(this.baseClient, name, options);
|
|
583
|
+
}
|
|
584
|
+
errorMonitor(options) {
|
|
585
|
+
return new PanoramaErrorMonitorImpl(this.baseClient, options);
|
|
586
|
+
}
|
|
587
|
+
logger() {
|
|
588
|
+
return new PanoramaLoggerImpl(this.baseClient);
|
|
589
|
+
}
|
|
590
|
+
createClientForComponent() {
|
|
591
|
+
const client = new PanoramaClientForComponentImpl({
|
|
592
|
+
baseClient: this.baseClient
|
|
593
|
+
});
|
|
594
|
+
this.hooksManager.invoke(Hook.afterCreateClientForComponent, client);
|
|
595
|
+
return client;
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-client-base.js
|
|
600
|
+
init_esm_shims();
|
|
601
|
+
var import_defineProperty4 = __toESM(require_defineProperty());
|
|
602
|
+
|
|
603
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/lib/payload-builder.js
|
|
604
|
+
init_esm_shims();
|
|
605
|
+
|
|
606
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/utils/error-utils.js
|
|
607
|
+
init_esm_shims();
|
|
608
|
+
var extractWixHttpErrorDetailsRec = (error) => {
|
|
609
|
+
var _httpClientError$resp;
|
|
610
|
+
if (!(error instanceof Error)) {
|
|
611
|
+
return {};
|
|
612
|
+
}
|
|
613
|
+
const res = extractWixHttpErrorDetailsRec(error.cause);
|
|
614
|
+
const httpClientError = error;
|
|
615
|
+
return defaults(res, {
|
|
616
|
+
isWixHttpError: httpClientError.isWixHttpError,
|
|
617
|
+
requestId: ((_httpClientError$resp = httpClientError.response) == null || (_httpClientError$resp = _httpClientError$resp.headers) == null ? void 0 : _httpClientError$resp["x-wix-request-id"]) ?? httpClientError.requestId
|
|
618
|
+
});
|
|
619
|
+
};
|
|
620
|
+
var extractWixHttpErrorDetails = (error) => defaults(extractWixHttpErrorDetailsRec(error), {
|
|
621
|
+
isWixHttpError: false,
|
|
622
|
+
requestId: ""
|
|
623
|
+
});
|
|
624
|
+
|
|
625
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/lib/payload-sanitizer.js
|
|
626
|
+
init_esm_shims();
|
|
627
|
+
|
|
628
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/constants.js
|
|
629
|
+
init_esm_shims();
|
|
630
|
+
var MAX_STACK_TRACE_SIZE_BYTES = 32 * 1024;
|
|
631
|
+
var MAX_SESSION_TIME_MS = 24 * 60 * 60 * 1e3;
|
|
632
|
+
|
|
633
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/lib/payload-sanitizer.js
|
|
634
|
+
var sanitizePayload = (payload) => {
|
|
635
|
+
const {
|
|
636
|
+
errorStack,
|
|
637
|
+
sessionTime
|
|
638
|
+
} = payload;
|
|
639
|
+
if (errorStack && errorStack.length > MAX_STACK_TRACE_SIZE_BYTES) {
|
|
640
|
+
const truncationMessage = `...[truncated by Panorama client to ${MAX_STACK_TRACE_SIZE_BYTES / 1024}kb]`;
|
|
641
|
+
const truncatedErrorStack = errorStack.substring(0, MAX_STACK_TRACE_SIZE_BYTES - truncationMessage.length);
|
|
642
|
+
payload = {
|
|
643
|
+
...payload,
|
|
644
|
+
errorStack: `${truncatedErrorStack}${truncationMessage}`
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
if (sessionTime && sessionTime > MAX_SESSION_TIME_MS) {
|
|
648
|
+
payload = {
|
|
649
|
+
...payload,
|
|
650
|
+
sessionTime: MAX_SESSION_TIME_MS
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
return payload;
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/lib/payload-builder.js
|
|
657
|
+
var getSessionParams = (globalConfig2) => {
|
|
658
|
+
const sessionId = globalConfig2.getSessionId();
|
|
659
|
+
const sessionTime = Math.round(globalConfig2.getSessionTime());
|
|
660
|
+
return {
|
|
661
|
+
sessionId,
|
|
662
|
+
sessionTime
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
var buildTransactionPayload = (globalConfig2, baseParams, transactionParams, data) => {
|
|
666
|
+
const {
|
|
667
|
+
transactionName,
|
|
668
|
+
transactionAction
|
|
669
|
+
} = transactionParams;
|
|
670
|
+
const {
|
|
671
|
+
sessionId,
|
|
672
|
+
sessionTime
|
|
673
|
+
} = getSessionParams(globalConfig2);
|
|
674
|
+
const logLevel = LogLevel.Info;
|
|
675
|
+
const message = `Panorama ${transactionName} ${transactionAction}`;
|
|
676
|
+
const requestId = "";
|
|
677
|
+
return sanitizePayload({
|
|
678
|
+
...baseParams,
|
|
679
|
+
...transactionParams,
|
|
680
|
+
sessionId,
|
|
681
|
+
sessionTime,
|
|
682
|
+
logLevel,
|
|
683
|
+
requestId,
|
|
684
|
+
message,
|
|
685
|
+
data
|
|
686
|
+
});
|
|
687
|
+
};
|
|
688
|
+
var buildPhasePayload = (globalConfig2, baseParams, phaseParams, data) => {
|
|
689
|
+
const transactionName = InternalTransactions.ComponentPhase;
|
|
690
|
+
const {
|
|
691
|
+
phaseName,
|
|
692
|
+
transactionAction
|
|
693
|
+
} = phaseParams;
|
|
694
|
+
const {
|
|
695
|
+
sessionId,
|
|
696
|
+
sessionTime
|
|
697
|
+
} = getSessionParams(globalConfig2);
|
|
698
|
+
const logLevel = LogLevel.Info;
|
|
699
|
+
const message = `Panorama ${phaseName} phase ${transactionAction}`;
|
|
700
|
+
const requestId = "";
|
|
701
|
+
return sanitizePayload({
|
|
702
|
+
...baseParams,
|
|
703
|
+
...phaseParams,
|
|
704
|
+
transactionName,
|
|
705
|
+
sessionId,
|
|
706
|
+
sessionTime,
|
|
707
|
+
logLevel,
|
|
708
|
+
requestId,
|
|
709
|
+
message,
|
|
710
|
+
data
|
|
711
|
+
});
|
|
712
|
+
};
|
|
713
|
+
var buildErrorPayload = (globalConfig2, baseParams, error, data) => {
|
|
714
|
+
const {
|
|
715
|
+
sessionId,
|
|
716
|
+
sessionTime
|
|
717
|
+
} = getSessionParams(globalConfig2);
|
|
718
|
+
const {
|
|
719
|
+
constructor,
|
|
720
|
+
message,
|
|
721
|
+
stack = ""
|
|
722
|
+
} = error;
|
|
723
|
+
const logLevel = LogLevel.Error;
|
|
724
|
+
const {
|
|
725
|
+
requestId
|
|
726
|
+
} = extractWixHttpErrorDetails(error);
|
|
727
|
+
return sanitizePayload({
|
|
728
|
+
...baseParams,
|
|
729
|
+
sessionId,
|
|
730
|
+
sessionTime,
|
|
731
|
+
logLevel,
|
|
732
|
+
requestId,
|
|
733
|
+
data,
|
|
734
|
+
errorName: (data == null ? void 0 : data.errorName) ?? constructor.name,
|
|
735
|
+
errorStack: stack,
|
|
736
|
+
message
|
|
737
|
+
});
|
|
738
|
+
};
|
|
739
|
+
var buildLoggerPayload = (globalConfig2, baseParams, loggerParams) => {
|
|
740
|
+
const {
|
|
741
|
+
sessionId,
|
|
742
|
+
sessionTime
|
|
743
|
+
} = getSessionParams(globalConfig2);
|
|
744
|
+
const requestId = "";
|
|
745
|
+
return sanitizePayload({
|
|
746
|
+
...baseParams,
|
|
747
|
+
...loggerParams,
|
|
748
|
+
sessionId,
|
|
749
|
+
sessionTime,
|
|
750
|
+
requestId
|
|
751
|
+
});
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-client-base.js
|
|
755
|
+
var BasePanoramaClient = class {
|
|
756
|
+
constructor(_ref) {
|
|
757
|
+
var _this = this;
|
|
758
|
+
let {
|
|
759
|
+
baseParams,
|
|
760
|
+
globalConfig: globalConfig2,
|
|
761
|
+
reporter,
|
|
762
|
+
hooksManager,
|
|
763
|
+
data,
|
|
764
|
+
isMuted
|
|
765
|
+
} = _ref;
|
|
766
|
+
(0, import_defineProperty4.default)(this, "durationTracker", void 0);
|
|
767
|
+
(0, import_defineProperty4.default)(this, "baseParams", void 0);
|
|
768
|
+
(0, import_defineProperty4.default)(this, "globalConfig", void 0);
|
|
769
|
+
(0, import_defineProperty4.default)(this, "reporter", void 0);
|
|
770
|
+
(0, import_defineProperty4.default)(this, "hooksManager", void 0);
|
|
771
|
+
(0, import_defineProperty4.default)(this, "data", void 0);
|
|
772
|
+
(0, import_defineProperty4.default)(this, "isMuted", void 0);
|
|
773
|
+
(0, import_defineProperty4.default)(this, "getErrorMonitorDataWithDefaults", function() {
|
|
774
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
775
|
+
args[_key] = arguments[_key];
|
|
776
|
+
}
|
|
777
|
+
return _this.data.addDataScope(args).getData();
|
|
778
|
+
});
|
|
779
|
+
this.baseParams = baseParams;
|
|
780
|
+
this.globalConfig = globalConfig2;
|
|
781
|
+
this.reporter = reporter;
|
|
782
|
+
this.hooksManager = hooksManager;
|
|
783
|
+
this.data = data;
|
|
784
|
+
this.isMuted = isMuted;
|
|
785
|
+
this.durationTracker = typeof globalConfig2.getDurationTracker === "function" ? globalConfig2.getDurationTracker() : createDurationTracker();
|
|
786
|
+
}
|
|
787
|
+
report(eventPayload) {
|
|
788
|
+
if (this.isMuted()) {
|
|
789
|
+
return;
|
|
790
|
+
}
|
|
791
|
+
const reporterOverride = this.globalConfig.getReporter();
|
|
792
|
+
const beforeReportHookResult = this.hooksManager.invoke(Hook.beforeReport, eventPayload);
|
|
793
|
+
if (typeof reporterOverride === "function") {
|
|
794
|
+
reporterOverride(eventPayload);
|
|
795
|
+
return;
|
|
796
|
+
}
|
|
797
|
+
if (!beforeReportHookResult) {
|
|
798
|
+
return;
|
|
799
|
+
}
|
|
800
|
+
this.reporter(eventPayload);
|
|
801
|
+
}
|
|
802
|
+
reportTransactionStart(name, options, data) {
|
|
803
|
+
if (options === void 0) {
|
|
804
|
+
options = {};
|
|
805
|
+
}
|
|
806
|
+
const {
|
|
807
|
+
id
|
|
808
|
+
} = options;
|
|
809
|
+
const dataWithDefault = this.data.addDataScope(data).getData();
|
|
810
|
+
if (!this.hooksManager.invoke(Hook.beforeReportTransactionStart, name, dataWithDefault)) {
|
|
811
|
+
return;
|
|
812
|
+
}
|
|
813
|
+
const {
|
|
814
|
+
fullArtifactId,
|
|
815
|
+
componentId
|
|
816
|
+
} = this.baseParams;
|
|
817
|
+
this.durationTracker.markTransactionStart(fullArtifactId, componentId, name, id);
|
|
818
|
+
const payload = buildTransactionPayload(this.globalConfig, this.baseParams, {
|
|
819
|
+
transactionName: name,
|
|
820
|
+
transactionAction: TransactionAction.Start
|
|
821
|
+
}, dataWithDefault);
|
|
822
|
+
this.report(payload);
|
|
823
|
+
this.hooksManager.invoke(Hook.afterReportTransactionStart, name, payload);
|
|
824
|
+
}
|
|
825
|
+
reportTransactionFinish(name, options, data) {
|
|
826
|
+
if (options === void 0) {
|
|
827
|
+
options = {};
|
|
828
|
+
}
|
|
829
|
+
const {
|
|
830
|
+
id
|
|
831
|
+
} = options;
|
|
832
|
+
const dataWithDefault = this.data.addDataScope(data).getData();
|
|
833
|
+
if (!this.hooksManager.invoke(Hook.beforeReportTransactionFinish, name, dataWithDefault)) {
|
|
834
|
+
return;
|
|
835
|
+
}
|
|
836
|
+
const {
|
|
837
|
+
fullArtifactId,
|
|
838
|
+
componentId
|
|
839
|
+
} = this.baseParams;
|
|
840
|
+
const duration = this.durationTracker.markTransactionFinish(fullArtifactId, componentId, name, id);
|
|
841
|
+
const payload = buildTransactionPayload(this.globalConfig, this.baseParams, {
|
|
842
|
+
transactionName: name,
|
|
843
|
+
transactionAction: TransactionAction.Finish,
|
|
844
|
+
transactionDuration: duration
|
|
845
|
+
}, dataWithDefault);
|
|
846
|
+
this.report(payload);
|
|
847
|
+
this.hooksManager.invoke(Hook.afterReportTransactionFinish, name, payload);
|
|
848
|
+
}
|
|
849
|
+
reportPhaseStart(name, data) {
|
|
850
|
+
const dataWithDefault = this.data.addDataScope(data).getData();
|
|
851
|
+
if (!this.hooksManager.invoke(Hook.beforeReportPhaseStart, name, dataWithDefault)) {
|
|
852
|
+
return;
|
|
853
|
+
}
|
|
854
|
+
const {
|
|
855
|
+
fullArtifactId,
|
|
856
|
+
componentId
|
|
857
|
+
} = this.baseParams;
|
|
858
|
+
this.durationTracker.markPhaseStart(fullArtifactId, componentId, name);
|
|
859
|
+
const payload = buildPhasePayload(this.globalConfig, this.baseParams, {
|
|
860
|
+
phaseName: name,
|
|
861
|
+
transactionAction: TransactionAction.Start
|
|
862
|
+
}, dataWithDefault);
|
|
863
|
+
this.report(payload);
|
|
864
|
+
this.hooksManager.invoke(Hook.afterReportPhaseStart, name, payload);
|
|
865
|
+
}
|
|
866
|
+
reportPhaseFinish(name, data) {
|
|
867
|
+
const dataWithDefault = this.data.addDataScope(data).getData();
|
|
868
|
+
if (!this.hooksManager.invoke(Hook.beforeReportPhaseFinish, name, dataWithDefault)) {
|
|
869
|
+
return;
|
|
870
|
+
}
|
|
871
|
+
const {
|
|
872
|
+
fullArtifactId,
|
|
873
|
+
componentId
|
|
874
|
+
} = this.baseParams;
|
|
875
|
+
const duration = this.durationTracker.markPhaseFinish(fullArtifactId, componentId, name);
|
|
876
|
+
const payload = buildPhasePayload(this.globalConfig, this.baseParams, {
|
|
877
|
+
phaseName: name,
|
|
878
|
+
transactionAction: TransactionAction.Finish,
|
|
879
|
+
transactionDuration: duration
|
|
880
|
+
}, dataWithDefault);
|
|
881
|
+
this.report(payload);
|
|
882
|
+
this.hooksManager.invoke(Hook.afterReportPhaseFinish, name, payload);
|
|
883
|
+
}
|
|
884
|
+
reportError(error, data, options) {
|
|
885
|
+
if (!(error instanceof Error)) {
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
data = this.data.addDataScope([data, options == null ? void 0 : options.data]).getData();
|
|
889
|
+
if (!this.hooksManager.invoke(Hook.beforeReportError, error, data, options)) {
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
const payload = buildErrorPayload(this.globalConfig, this.baseParams, error, data);
|
|
893
|
+
this.report(payload);
|
|
894
|
+
this.hooksManager.invoke(Hook.afterReportError, error, data, options);
|
|
895
|
+
}
|
|
896
|
+
addBreadcrumb(breadcrumb) {
|
|
897
|
+
if (!this.hooksManager.invoke(Hook.beforeAddBreadcrumb, breadcrumb)) {
|
|
898
|
+
return;
|
|
899
|
+
}
|
|
900
|
+
this.hooksManager.invoke(Hook.afterAddBreadcrumb, breadcrumb);
|
|
901
|
+
}
|
|
902
|
+
log(logLevel, message, data) {
|
|
903
|
+
if (!message) {
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
const dataWithDefault = this.data.addDataScope(data).getData();
|
|
907
|
+
const loggerParams = {
|
|
908
|
+
message,
|
|
909
|
+
data: dataWithDefault,
|
|
910
|
+
logLevel
|
|
911
|
+
};
|
|
912
|
+
if (!this.hooksManager.invoke(Hook.beforeReportLog, logLevel, message, dataWithDefault)) {
|
|
913
|
+
return;
|
|
914
|
+
}
|
|
915
|
+
const payload = buildLoggerPayload(this.globalConfig, this.baseParams, loggerParams);
|
|
916
|
+
this.report(payload);
|
|
917
|
+
this.hooksManager.invoke(Hook.afterReportLog, logLevel, message, dataWithDefault);
|
|
918
|
+
}
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/lib/scope.js
|
|
922
|
+
init_esm_shims();
|
|
923
|
+
var import_defineProperty5 = __toESM(require_defineProperty());
|
|
924
|
+
var Scope = class _Scope {
|
|
925
|
+
constructor(data) {
|
|
926
|
+
(0, import_defineProperty5.default)(this, "data", void 0);
|
|
927
|
+
this.data = data;
|
|
928
|
+
}
|
|
929
|
+
getEntriesToDeepDefaults(data) {
|
|
930
|
+
if (!data) {
|
|
931
|
+
return void 0;
|
|
932
|
+
}
|
|
933
|
+
return Object.fromEntries(Object.entries(data).filter((_ref) => {
|
|
934
|
+
let [key] = _ref;
|
|
935
|
+
return _Scope.KEYS_TO_DEEP_DEFAULTS.includes(key);
|
|
936
|
+
}));
|
|
937
|
+
}
|
|
938
|
+
addDataScope(data) {
|
|
939
|
+
const outerDataArray = Array.isArray(data) ? data : [data];
|
|
940
|
+
const deepDefaultData = deepDefaults(...outerDataArray.map((_data) => this.getEntriesToDeepDefaults(_data)), this.getEntriesToDeepDefaults(this.data));
|
|
941
|
+
return new _Scope(defaults(deepDefaultData, ...outerDataArray, this.data));
|
|
942
|
+
}
|
|
943
|
+
getData() {
|
|
944
|
+
return this.data;
|
|
945
|
+
}
|
|
946
|
+
};
|
|
947
|
+
(0, import_defineProperty5.default)(Scope, "KEYS_TO_DEEP_DEFAULTS", ["tags", "context"]);
|
|
948
|
+
|
|
949
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/panorama-client-factory.js
|
|
950
|
+
var PanoramaClientFactoryImpl = class {
|
|
951
|
+
constructor(options) {
|
|
952
|
+
this.options = options;
|
|
953
|
+
(0, import_defineProperty6.default)(this, "globalConfig", void 0);
|
|
954
|
+
(0, import_defineProperty6.default)(this, "reporter", () => true);
|
|
955
|
+
(0, import_defineProperty6.default)(this, "plugins", []);
|
|
956
|
+
(0, import_defineProperty6.default)(this, "isMuted", false);
|
|
957
|
+
bindPrototypeMethodsToSelf(this);
|
|
958
|
+
}
|
|
959
|
+
withGlobalConfig(globalConfig2) {
|
|
960
|
+
this.globalConfig = globalConfig2;
|
|
961
|
+
return this;
|
|
962
|
+
}
|
|
963
|
+
withReporter(reporter) {
|
|
964
|
+
this.reporter = reporter;
|
|
965
|
+
return this;
|
|
966
|
+
}
|
|
967
|
+
setMuted(isMuted) {
|
|
968
|
+
this.isMuted = isMuted;
|
|
969
|
+
return this;
|
|
970
|
+
}
|
|
971
|
+
use(plugin) {
|
|
972
|
+
this.plugins.push(plugin);
|
|
973
|
+
return this;
|
|
974
|
+
}
|
|
975
|
+
client(options) {
|
|
976
|
+
if (options === void 0) {
|
|
977
|
+
options = {};
|
|
978
|
+
}
|
|
979
|
+
const {
|
|
980
|
+
pluginParams
|
|
981
|
+
} = options;
|
|
982
|
+
const globalConfig2 = this.globalConfig ?? createGlobalConfig();
|
|
983
|
+
const reporter = this.reporter;
|
|
984
|
+
const hooksManager = new HooksManager();
|
|
985
|
+
const baseParams = defaults(options.baseParams, this.options.baseParams);
|
|
986
|
+
const data = new Scope(this.options.data).addDataScope(options.data);
|
|
987
|
+
const pluginClientParams = pluginParams ?? {};
|
|
988
|
+
const baseClient = new BasePanoramaClient({
|
|
989
|
+
baseParams,
|
|
990
|
+
globalConfig: globalConfig2,
|
|
991
|
+
isMuted: () => this.isMuted,
|
|
992
|
+
reporter,
|
|
993
|
+
hooksManager,
|
|
994
|
+
data
|
|
995
|
+
});
|
|
996
|
+
const client = new PanoramaClientImpl({
|
|
997
|
+
baseClient,
|
|
998
|
+
hooksManager
|
|
999
|
+
});
|
|
1000
|
+
this.plugins.forEach((plugin) => plugin({
|
|
1001
|
+
hooksManager,
|
|
1002
|
+
globalConfig: globalConfig2,
|
|
1003
|
+
reporter,
|
|
1004
|
+
baseClient,
|
|
1005
|
+
baseParams,
|
|
1006
|
+
pluginParams: pluginClientParams
|
|
1007
|
+
}));
|
|
1008
|
+
return client;
|
|
1009
|
+
}
|
|
1010
|
+
};
|
|
1011
|
+
var panoramaClient = function(options) {
|
|
1012
|
+
if (options === void 0) {
|
|
1013
|
+
options = {};
|
|
1014
|
+
}
|
|
1015
|
+
return new PanoramaClientFactoryImpl(options);
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common-shared/dist/esm/constants.js
|
|
1019
|
+
init_esm_shims();
|
|
1020
|
+
var CLICKHOUSE_REPORT_URL = "https://panorama.wixapps.net/api/v1/log";
|
|
1021
|
+
|
|
1022
|
+
// ../../node_modules/@wix/panorama-client-node/dist/esm/reporter.js
|
|
1023
|
+
init_esm_shims();
|
|
1024
|
+
var nodeReporter = function(url, _temp) {
|
|
1025
|
+
let {
|
|
1026
|
+
silent = false
|
|
1027
|
+
} = _temp === void 0 ? {
|
|
1028
|
+
silent: false
|
|
1029
|
+
} : _temp;
|
|
1030
|
+
return (eventPayload) => {
|
|
1031
|
+
const body = JSON.stringify({
|
|
1032
|
+
logMessage: eventPayload
|
|
1033
|
+
});
|
|
1034
|
+
fetch(url, {
|
|
1035
|
+
method: "POST",
|
|
1036
|
+
body
|
|
1037
|
+
}).then((res) => {
|
|
1038
|
+
if (res.ok || silent) {
|
|
1039
|
+
return;
|
|
1040
|
+
}
|
|
1041
|
+
console.error("Panorama report failed", res.statusText);
|
|
1042
|
+
}).catch((e) => {
|
|
1043
|
+
if (silent) {
|
|
1044
|
+
return;
|
|
1045
|
+
}
|
|
1046
|
+
console.error("Panorama report failed", e);
|
|
1047
|
+
});
|
|
1048
|
+
return true;
|
|
1049
|
+
};
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
// ../../node_modules/@wix/panorama-client-node/dist/esm/panorama-client-node.js
|
|
1053
|
+
var panoramaClientFactory = (options) => {
|
|
1054
|
+
const {
|
|
1055
|
+
baseParams,
|
|
1056
|
+
reporterOptions,
|
|
1057
|
+
data
|
|
1058
|
+
} = options;
|
|
1059
|
+
const factory = panoramaClient({
|
|
1060
|
+
baseParams,
|
|
1061
|
+
data
|
|
1062
|
+
}).withReporter(nodeReporter(CLICKHOUSE_REPORT_URL, reporterOptions));
|
|
1063
|
+
factory.use = void 0;
|
|
1064
|
+
return factory;
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
// ../cli-panorama/src/createPanorama.ts
|
|
1068
|
+
var globalConfig = createGlobalConfig();
|
|
1069
|
+
async function createPanorama(options) {
|
|
1070
|
+
const { version, artifact, userId } = options;
|
|
1071
|
+
const userConfig = await readUserConfig();
|
|
1072
|
+
const overrides = getTestOverrides();
|
|
1073
|
+
const factory = panoramaClientFactory({
|
|
1074
|
+
baseParams: {
|
|
1075
|
+
platform: Platform.Standalone,
|
|
1076
|
+
fullArtifactId: `${artifact.groupId}.${artifact.artifactId}`,
|
|
1077
|
+
componentId: "app",
|
|
1078
|
+
// This property is mandatory, there is validation on server side
|
|
1079
|
+
artifactVersion: version,
|
|
1080
|
+
uuid: userId
|
|
1081
|
+
},
|
|
1082
|
+
reporterOptions: {
|
|
1083
|
+
silent: true
|
|
1084
|
+
}
|
|
1085
|
+
}).withGlobalConfig(globalConfig).setMuted(!userConfig.telemetry);
|
|
1086
|
+
if (overrides.panoramaReporterUrl) {
|
|
1087
|
+
return factory.withReporter(nodeReporter2(overrides.panoramaReporterUrl));
|
|
1088
|
+
}
|
|
1089
|
+
return factory;
|
|
1090
|
+
}
|
|
1091
|
+
function nodeReporter2(url) {
|
|
1092
|
+
let queue = Promise.resolve();
|
|
1093
|
+
const noop = () => {
|
|
1094
|
+
};
|
|
1095
|
+
return (logMessage) => {
|
|
1096
|
+
const body = JSON.stringify({ logMessage });
|
|
1097
|
+
queue = queue.then(() => {
|
|
1098
|
+
return fetch(url, {
|
|
1099
|
+
method: "POST",
|
|
1100
|
+
body,
|
|
1101
|
+
headers: {
|
|
1102
|
+
"Content-Type": "application/json"
|
|
1103
|
+
}
|
|
1104
|
+
}).then(noop).catch(noop);
|
|
1105
|
+
});
|
|
1106
|
+
return true;
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
// ../cli-panorama/src/index.ts
|
|
1111
|
+
init_esm_shims();
|
|
1112
|
+
|
|
1113
|
+
// ../cli-panorama/src/usePanoramaMethodLogger.ts
|
|
1114
|
+
init_esm_shims();
|
|
1115
|
+
var import_react2 = __toESM(require_react(), 1);
|
|
1116
|
+
function usePanoramaMethodLogger(target) {
|
|
1117
|
+
const factory = (0, import_react2.useContext)(PanoramaContext);
|
|
1118
|
+
if (factory == null) {
|
|
1119
|
+
throw new Error(
|
|
1120
|
+
"usePanoramaMethodLogger() cannot be used without a <PanoramaProvider />"
|
|
1121
|
+
);
|
|
1122
|
+
}
|
|
1123
|
+
const componentId = target.constructor.name;
|
|
1124
|
+
const clientOptions = (0, import_react2.useMemo)(
|
|
1125
|
+
() => ({ baseParams: { componentId } }),
|
|
1126
|
+
[componentId]
|
|
1127
|
+
);
|
|
1128
|
+
const client = (0, import_react2.useMemo)(() => {
|
|
1129
|
+
return factory.client(clientOptions);
|
|
1130
|
+
}, [factory, clientOptions]);
|
|
1131
|
+
return (0, import_react2.useMemo)(() => {
|
|
1132
|
+
const cache = /* @__PURE__ */ new Map();
|
|
1133
|
+
return new Proxy(target, {
|
|
1134
|
+
get(target2, prop, receiver) {
|
|
1135
|
+
const value = Reflect.get(target2, prop, receiver);
|
|
1136
|
+
const isAsyncMethod = typeof value === "function" && typeof prop === "string" && Object.hasOwn(target2, prop) && value.constructor.name === "AsyncFunction";
|
|
1137
|
+
if (!isAsyncMethod) {
|
|
1138
|
+
return value;
|
|
1139
|
+
}
|
|
1140
|
+
if (!cache.has(prop)) {
|
|
1141
|
+
const wrapped = async function(...args) {
|
|
1142
|
+
const transaction = client.transaction(prop);
|
|
1143
|
+
transaction.start();
|
|
1144
|
+
const result = await value.apply(target2, args);
|
|
1145
|
+
transaction.finish();
|
|
1146
|
+
return result;
|
|
1147
|
+
};
|
|
1148
|
+
cache.set(prop, wrapped);
|
|
1149
|
+
}
|
|
1150
|
+
return cache.get(prop);
|
|
1151
|
+
}
|
|
1152
|
+
});
|
|
1153
|
+
}, [target, client]);
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
export {
|
|
1157
|
+
PanoramaProvider,
|
|
1158
|
+
usePanoramaMethodLogger,
|
|
1159
|
+
createPanorama
|
|
1160
|
+
};
|
|
1161
|
+
//# sourceMappingURL=chunk-T3ENMGFO.js.map
|