@wix/cli-app 1.1.66 → 1.1.67
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-3APRL3VU.js → CreateVersionCommand-OCHQTS2X.js} +14 -14
- package/build/{DevCommand-ETOGX7TQ.js → DevCommand-4IXIFS3I.js} +12 -12
- package/build/{GenerateCommand-WI4QHFLI.js → GenerateCommand-A3NZ4E7M.js} +7 -7
- package/build/{LogsCommand-EI2OGC45.js → LogsCommand-VI4SOYOF.js} +4 -4
- package/build/PreviewCommand-EDVLRBLK.js +23 -0
- package/build/{ReleaseCommand-A7OLS7VK.js → ReleaseCommand-5JSMZ6UB.js} +15 -15
- package/build/{ServeCommand-HZFAQ76D.js → ServeCommand-47UYGAUR.js} +13 -13
- package/build/{build-3YQ4WRAD.js → build-WH5DNJQG.js} +7 -7
- package/build/{chunk-YV7I3J5W.js → chunk-2APJDT7U.js} +3 -3
- package/build/{chunk-ONNVSN6Z.js → chunk-2QNFVJOZ.js} +3 -3
- package/build/{chunk-CXSHOO4P.js → chunk-72RQ3EPK.js} +8 -8
- package/build/{chunk-THBDIBD6.js → chunk-7KWGY5JA.js} +3 -3
- package/build/{chunk-NKZUVIGH.js → chunk-FG7KTOQN.js} +2 -2
- package/build/{chunk-NKZUVIGH.js.map → chunk-FG7KTOQN.js.map} +1 -1
- package/build/{chunk-UGZ4HW7C.js → chunk-FGRGEANM.js} +3 -3
- package/build/{chunk-IEPRQY35.js → chunk-HIP3A6XH.js} +2 -2
- package/build/{chunk-B2ICYFSY.js → chunk-JVYYEP4B.js} +4 -4
- package/build/{chunk-JRT7D3FW.js → chunk-L5ETMB4Z.js} +5 -5
- package/build/{chunk-NU2C42KF.js → chunk-LEVI3PK6.js} +3 -3
- package/build/{chunk-GAJ7KUCP.js → chunk-LTAUYL4H.js} +3 -3
- package/build/{chunk-EXLMLNEA.js → chunk-NTI35N6X.js} +7 -7
- package/build/{chunk-NOA57HIN.js → chunk-RSMM6AJY.js} +2 -2
- package/build/{chunk-R25C65PI.js → chunk-VSBG2V5M.js} +3 -3
- package/build/{chunk-UPFJUERL.js → chunk-WRJRTFOI.js} +3 -3
- package/build/{chunk-YAB2U4Z2.js → chunk-YG3BFHRO.js} +2 -2
- package/build/{chunk-KCNDPIBT.js → chunk-ZRS3UMNA.js} +5 -5
- package/build/cloudflare-runtime/entry.js +5 -5
- package/build/cloudflare-runtime/getRegisteredExtensions.js +5 -5
- 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-CR7DIEFQ.js +2 -0
- package/build/platform-sdk/chunk-CR7DIEFQ.js.map +1 -0
- package/build/platform-sdk/{chunk-XYIDODIB.js → chunk-EERHWVVD.js} +2 -2
- package/build/platform-sdk/dashboard.js +1 -1
- package/build/platform-sdk/editor.js +1 -1
- package/build/platform-sdk/sdk-context.js +1 -1
- package/build/platform-sdk/sdk-context.js.map +1 -1
- package/build/platform-sdk/site.js +1 -1
- package/build/{preview-CYO6EQDP.js → preview-6X7F4EFT.js} +12 -12
- package/build/{render-command-NFVEABET.js → render-command-SSMPKWYD.js} +5 -5
- package/package.json +2 -2
- package/build/PreviewCommand-NELA5NRX.js +0 -23
- package/build/platform-sdk/chunk-BGTZ3RNN.js +0 -2
- package/build/platform-sdk/chunk-BGTZ3RNN.js.map +0 -1
- package/build/platform-sdk/chunk-BY4JACX6.js +0 -2
- package/build/platform-sdk/chunk-BY4JACX6.js.map +0 -1
- /package/build/{CreateVersionCommand-3APRL3VU.js.map → CreateVersionCommand-OCHQTS2X.js.map} +0 -0
- /package/build/{DevCommand-ETOGX7TQ.js.map → DevCommand-4IXIFS3I.js.map} +0 -0
- /package/build/{GenerateCommand-WI4QHFLI.js.map → GenerateCommand-A3NZ4E7M.js.map} +0 -0
- /package/build/{LogsCommand-EI2OGC45.js.map → LogsCommand-VI4SOYOF.js.map} +0 -0
- /package/build/{PreviewCommand-NELA5NRX.js.map → PreviewCommand-EDVLRBLK.js.map} +0 -0
- /package/build/{ReleaseCommand-A7OLS7VK.js.map → ReleaseCommand-5JSMZ6UB.js.map} +0 -0
- /package/build/{ServeCommand-HZFAQ76D.js.map → ServeCommand-47UYGAUR.js.map} +0 -0
- /package/build/{build-3YQ4WRAD.js.map → build-WH5DNJQG.js.map} +0 -0
- /package/build/{chunk-YV7I3J5W.js.map → chunk-2APJDT7U.js.map} +0 -0
- /package/build/{chunk-ONNVSN6Z.js.map → chunk-2QNFVJOZ.js.map} +0 -0
- /package/build/{chunk-CXSHOO4P.js.map → chunk-72RQ3EPK.js.map} +0 -0
- /package/build/{chunk-THBDIBD6.js.map → chunk-7KWGY5JA.js.map} +0 -0
- /package/build/{chunk-UGZ4HW7C.js.map → chunk-FGRGEANM.js.map} +0 -0
- /package/build/{chunk-IEPRQY35.js.map → chunk-HIP3A6XH.js.map} +0 -0
- /package/build/{chunk-B2ICYFSY.js.map → chunk-JVYYEP4B.js.map} +0 -0
- /package/build/{chunk-JRT7D3FW.js.map → chunk-L5ETMB4Z.js.map} +0 -0
- /package/build/{chunk-NU2C42KF.js.map → chunk-LEVI3PK6.js.map} +0 -0
- /package/build/{chunk-GAJ7KUCP.js.map → chunk-LTAUYL4H.js.map} +0 -0
- /package/build/{chunk-EXLMLNEA.js.map → chunk-NTI35N6X.js.map} +0 -0
- /package/build/{chunk-NOA57HIN.js.map → chunk-RSMM6AJY.js.map} +0 -0
- /package/build/{chunk-R25C65PI.js.map → chunk-VSBG2V5M.js.map} +0 -0
- /package/build/{chunk-UPFJUERL.js.map → chunk-WRJRTFOI.js.map} +0 -0
- /package/build/{chunk-YAB2U4Z2.js.map → chunk-YG3BFHRO.js.map} +0 -0
- /package/build/{chunk-KCNDPIBT.js.map → chunk-ZRS3UMNA.js.map} +0 -0
- /package/build/platform-sdk/{chunk-XYIDODIB.js.map → chunk-EERHWVVD.js.map} +0 -0
- /package/build/{preview-CYO6EQDP.js.map → preview-6X7F4EFT.js.map} +0 -0
- /package/build/{render-command-NFVEABET.js.map → render-command-SSMPKWYD.js.map} +0 -0
|
@@ -2,11 +2,11 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readAppManifest
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JVYYEP4B.js";
|
|
6
6
|
import {
|
|
7
7
|
getAppManifestPath,
|
|
8
8
|
writeJson
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RSMM6AJY.js";
|
|
10
10
|
import {
|
|
11
11
|
init_esm_shims
|
|
12
12
|
} from "./chunk-PYIAC2GK.js";
|
|
@@ -29,4 +29,4 @@ export {
|
|
|
29
29
|
writeAppManifestFile,
|
|
30
30
|
readAppManifestFile
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-FGRGEANM.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-P4IYXOMH.js";
|
|
6
6
|
import {
|
|
7
7
|
createI18n
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FG7KTOQN.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esm_shims
|
|
11
11
|
} from "./chunk-PYIAC2GK.js";
|
|
@@ -20,4 +20,4 @@ function createI18nT() {
|
|
|
20
20
|
export {
|
|
21
21
|
createI18nT
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-HIP3A6XH.js.map
|
|
@@ -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-YG3BFHRO.js";
|
|
6
6
|
import {
|
|
7
7
|
BLOCKS_WIDGETS_PANELS_PATTERN,
|
|
8
8
|
BLOCKS_WIDGETS_PATTERN,
|
|
@@ -57,14 +57,14 @@ import {
|
|
|
57
57
|
virtualModuleIdForScriptAsset,
|
|
58
58
|
virtualPathForCustomElementPanelHTMLAsset,
|
|
59
59
|
virtualPathForHTMLAsset
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-RSMM6AJY.js";
|
|
61
61
|
import {
|
|
62
62
|
CliError,
|
|
63
63
|
CliErrorCode,
|
|
64
64
|
getTestOverrides,
|
|
65
65
|
require_lib,
|
|
66
66
|
z
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-FG7KTOQN.js";
|
|
68
68
|
import {
|
|
69
69
|
__commonJS,
|
|
70
70
|
__esm,
|
|
@@ -40122,4 +40122,4 @@ export {
|
|
|
40122
40122
|
he/he.js:
|
|
40123
40123
|
(*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
|
|
40124
40124
|
*/
|
|
40125
|
-
//# sourceMappingURL=chunk-
|
|
40125
|
+
//# sourceMappingURL=chunk-JVYYEP4B.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
SiteState,
|
|
6
6
|
resolveConfiguredSite,
|
|
7
7
|
useSiteListClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NTI35N6X.js";
|
|
9
9
|
import {
|
|
10
10
|
useDebugLog
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LTAUYL4H.js";
|
|
12
12
|
import {
|
|
13
13
|
APP_CONFIG_PATH,
|
|
14
14
|
BiProvider,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
useProjectModel,
|
|
23
23
|
wixCliAction,
|
|
24
24
|
wixCliAppFlowStepsAnswers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RSMM6AJY.js";
|
|
26
26
|
import {
|
|
27
27
|
Alert,
|
|
28
28
|
Badge,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
useExit,
|
|
44
44
|
useTranslation,
|
|
45
45
|
use_input_default
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-FG7KTOQN.js";
|
|
47
47
|
import {
|
|
48
48
|
__toESM,
|
|
49
49
|
init_esm_shims
|
|
@@ -576,4 +576,4 @@ export {
|
|
|
576
576
|
SiteProvider,
|
|
577
577
|
usePlatform
|
|
578
578
|
};
|
|
579
|
-
//# sourceMappingURL=chunk-
|
|
579
|
+
//# sourceMappingURL=chunk-L5ETMB4Z.js.map
|
|
@@ -2,12 +2,12 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ErrorViewer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RSMM6AJY.js";
|
|
6
6
|
import {
|
|
7
7
|
createRendererToString,
|
|
8
8
|
isCliError,
|
|
9
9
|
require_react
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FG7KTOQN.js";
|
|
11
11
|
import {
|
|
12
12
|
__toESM,
|
|
13
13
|
init_esm_shims
|
|
@@ -60,4 +60,4 @@ function createLogger({
|
|
|
60
60
|
export {
|
|
61
61
|
createLogger
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-LEVI3PK6.js.map
|
|
@@ -2,11 +2,11 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
require_index_node
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RSMM6AJY.js";
|
|
6
6
|
import {
|
|
7
7
|
require_react,
|
|
8
8
|
require_verror
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FG7KTOQN.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM,
|
|
12
12
|
init_esm_shims
|
|
@@ -101,4 +101,4 @@ export {
|
|
|
101
101
|
DebugLogProvider,
|
|
102
102
|
useDebugLog
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=chunk-
|
|
104
|
+
//# sourceMappingURL=chunk-LTAUYL4H.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
componentGenerator,
|
|
5
5
|
require_lodash,
|
|
6
6
|
useBackendComponents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WRJRTFOI.js";
|
|
8
8
|
import {
|
|
9
9
|
useTunnel
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2APJDT7U.js";
|
|
11
11
|
import {
|
|
12
12
|
useDebugLog
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LTAUYL4H.js";
|
|
14
14
|
import {
|
|
15
15
|
createAppManifest,
|
|
16
16
|
getComponentSourceBuilder,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
getViteServerUrl,
|
|
20
20
|
updateAppManifestWithBaseUrl,
|
|
21
21
|
updateBlocksComponents
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JVYYEP4B.js";
|
|
23
23
|
import {
|
|
24
24
|
BLOCKS_WIDGET_PANELS_DIR,
|
|
25
25
|
ComponentType2 as ComponentType,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
useExtensions,
|
|
45
45
|
useHttpClient,
|
|
46
46
|
useProjectModel
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-RSMM6AJY.js";
|
|
48
48
|
import {
|
|
49
49
|
Alert,
|
|
50
50
|
CliError,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
useExit,
|
|
63
63
|
useTranslation,
|
|
64
64
|
z
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-FG7KTOQN.js";
|
|
66
66
|
import {
|
|
67
67
|
__commonJS,
|
|
68
68
|
__dirname,
|
|
@@ -27763,4 +27763,4 @@ xmlhttprequest-ssl/lib/XMLHttpRequest.js:
|
|
|
27763
27763
|
* @license MIT
|
|
27764
27764
|
*)
|
|
27765
27765
|
*/
|
|
27766
|
-
//# sourceMappingURL=chunk-
|
|
27766
|
+
//# sourceMappingURL=chunk-NTI35N6X.js.map
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
use_input_default,
|
|
38
38
|
version,
|
|
39
39
|
z
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FG7KTOQN.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__dirname,
|
|
@@ -146316,4 +146316,4 @@ mustache/mustache.mjs:
|
|
|
146316
146316
|
* http://github.com/janl/mustache.js
|
|
146317
146317
|
*)
|
|
146318
146318
|
*/
|
|
146319
|
-
//# sourceMappingURL=chunk-
|
|
146319
|
+
//# sourceMappingURL=chunk-RSMM6AJY.js.map
|
|
@@ -3,12 +3,12 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
wixCliCliCommand,
|
|
5
5
|
wixCliCliCommandStatus
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RSMM6AJY.js";
|
|
7
7
|
import {
|
|
8
8
|
isCliError,
|
|
9
9
|
isCliSystemError,
|
|
10
10
|
require_is_ci
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FG7KTOQN.js";
|
|
12
12
|
import {
|
|
13
13
|
__toESM,
|
|
14
14
|
init_esm_shims
|
|
@@ -148,4 +148,4 @@ export {
|
|
|
148
148
|
addUserFields,
|
|
149
149
|
reportCommandStartEvent
|
|
150
150
|
};
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
151
|
+
//# sourceMappingURL=chunk-VSBG2V5M.js.map
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
readPackageJson,
|
|
10
10
|
useProjectModel,
|
|
11
11
|
writePackageJson
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RSMM6AJY.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError,
|
|
15
15
|
CliErrorCode,
|
|
16
16
|
require_lib,
|
|
17
17
|
require_react,
|
|
18
18
|
z
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FG7KTOQN.js";
|
|
20
20
|
import {
|
|
21
21
|
__commonJS,
|
|
22
22
|
__require,
|
|
@@ -9345,4 +9345,4 @@ ejs/lib/ejs.js:
|
|
|
9345
9345
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
9346
9346
|
*)
|
|
9347
9347
|
*/
|
|
9348
|
-
//# sourceMappingURL=chunk-
|
|
9348
|
+
//# sourceMappingURL=chunk-WRJRTFOI.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
require_SetCache,
|
|
6
6
|
require_cacheHas,
|
|
7
7
|
require_setToArray
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RSMM6AJY.js";
|
|
9
9
|
import {
|
|
10
10
|
__commonJS,
|
|
11
11
|
init_esm_shims
|
|
@@ -192,4 +192,4 @@ var require_baseUniq = __commonJS({
|
|
|
192
192
|
export {
|
|
193
193
|
require_baseUniq
|
|
194
194
|
};
|
|
195
|
-
//# sourceMappingURL=chunk-
|
|
195
|
+
//# sourceMappingURL=chunk-YG3BFHRO.js.map
|
|
@@ -2,19 +2,19 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
usePlatform
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L5ETMB4Z.js";
|
|
6
6
|
import {
|
|
7
7
|
useResolveDashboardExtensionUrl,
|
|
8
8
|
useResolvePlatformUrl,
|
|
9
9
|
useSite
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NTI35N6X.js";
|
|
11
11
|
import {
|
|
12
12
|
PlatformType,
|
|
13
13
|
getAppBuildFolder,
|
|
14
14
|
getAppManifestPath,
|
|
15
15
|
pathExists,
|
|
16
16
|
useExtensions
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RSMM6AJY.js";
|
|
18
18
|
import {
|
|
19
19
|
Box_default,
|
|
20
20
|
CliError,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
Trans,
|
|
26
26
|
require_react,
|
|
27
27
|
useTranslation
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FG7KTOQN.js";
|
|
29
29
|
import {
|
|
30
30
|
__toESM,
|
|
31
31
|
init_esm_shims
|
|
@@ -93,4 +93,4 @@ export {
|
|
|
93
93
|
assertBuildOutputExists,
|
|
94
94
|
PlatformViewer
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=chunk-
|
|
96
|
+
//# sourceMappingURL=chunk-ZRS3UMNA.js.map
|
|
@@ -11613,7 +11613,7 @@ function objectToKeyValue(input) {
|
|
|
11613
11613
|
return Object.entries(input).filter(([_, value]) => Boolean(value)).map(([key, value]) => `${key}=${value}`).join(",");
|
|
11614
11614
|
}
|
|
11615
11615
|
|
|
11616
|
-
// ../../node_modules/@wix/sdk
|
|
11616
|
+
// ../../node_modules/@wix/sdk-runtime/build/context.js
|
|
11617
11617
|
function runWithoutContext(fn) {
|
|
11618
11618
|
const globalContext = globalThis.__wix_context__;
|
|
11619
11619
|
const moduleContext = {
|
|
@@ -12142,7 +12142,7 @@ function AppStrategy(opts) {
|
|
|
12142
12142
|
})
|
|
12143
12143
|
});
|
|
12144
12144
|
if (tokensRes.status !== 200) {
|
|
12145
|
-
throw new Error(`Failed to exchange authorization code for refresh token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
|
|
12145
|
+
throw new Error(`Failed to exchange authorization code for refresh token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get("x-wix-request-id")}`);
|
|
12146
12146
|
}
|
|
12147
12147
|
const tokens = await tokensRes.json();
|
|
12148
12148
|
refreshToken = tokens.refresh_token;
|
|
@@ -12177,7 +12177,7 @@ function AppStrategy(opts) {
|
|
|
12177
12177
|
})
|
|
12178
12178
|
});
|
|
12179
12179
|
if (tokensRes.status !== 200) {
|
|
12180
|
-
throw new Error(`Failed to exchange refresh token for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
|
|
12180
|
+
throw new Error(`Failed to exchange refresh token for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get("x-wix-request-id")}`);
|
|
12181
12181
|
}
|
|
12182
12182
|
const tokens = await tokensRes.json();
|
|
12183
12183
|
refreshToken = tokens.refresh_token;
|
|
@@ -12203,7 +12203,7 @@ function AppStrategy(opts) {
|
|
|
12203
12203
|
})
|
|
12204
12204
|
});
|
|
12205
12205
|
if (tokensRes.status !== 200) {
|
|
12206
|
-
throw new Error(`Failed to exchange instance ID for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
|
|
12206
|
+
throw new Error(`Failed to exchange instance ID for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get("x-wix-request-id")}`);
|
|
12207
12207
|
}
|
|
12208
12208
|
const tokens = await tokensRes.json();
|
|
12209
12209
|
cachedToken = {
|
|
@@ -12228,7 +12228,7 @@ function AppStrategy(opts) {
|
|
|
12228
12228
|
})
|
|
12229
12229
|
});
|
|
12230
12230
|
if (tokenRes.status !== 200) {
|
|
12231
|
-
throw new Error(`Failed to get unbound token. Unexpected status code from Wix OAuth API: ${tokenRes.status}`);
|
|
12231
|
+
throw new Error(`Failed to get unbound token. Unexpected status code from Wix OAuth API: ${tokenRes.status}, request id: ${tokenRes.headers.get("x-wix-request-id")}`);
|
|
12232
12232
|
}
|
|
12233
12233
|
const { access_token, expires_in } = await tokenRes.json();
|
|
12234
12234
|
cachedToken = {
|
|
@@ -4414,7 +4414,7 @@ function objectToKeyValue(input) {
|
|
|
4414
4414
|
return Object.entries(input).filter(([_, value]) => Boolean(value)).map(([key, value]) => `${key}=${value}`).join(",");
|
|
4415
4415
|
}
|
|
4416
4416
|
|
|
4417
|
-
// ../../node_modules/@wix/sdk
|
|
4417
|
+
// ../../node_modules/@wix/sdk-runtime/build/context.js
|
|
4418
4418
|
function runWithoutContext(fn) {
|
|
4419
4419
|
const globalContext = globalThis.__wix_context__;
|
|
4420
4420
|
const moduleContext = {
|
|
@@ -4943,7 +4943,7 @@ function AppStrategy(opts) {
|
|
|
4943
4943
|
})
|
|
4944
4944
|
});
|
|
4945
4945
|
if (tokensRes.status !== 200) {
|
|
4946
|
-
throw new Error(`Failed to exchange authorization code for refresh token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
|
|
4946
|
+
throw new Error(`Failed to exchange authorization code for refresh token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get("x-wix-request-id")}`);
|
|
4947
4947
|
}
|
|
4948
4948
|
const tokens = await tokensRes.json();
|
|
4949
4949
|
refreshToken = tokens.refresh_token;
|
|
@@ -4978,7 +4978,7 @@ function AppStrategy(opts) {
|
|
|
4978
4978
|
})
|
|
4979
4979
|
});
|
|
4980
4980
|
if (tokensRes.status !== 200) {
|
|
4981
|
-
throw new Error(`Failed to exchange refresh token for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
|
|
4981
|
+
throw new Error(`Failed to exchange refresh token for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get("x-wix-request-id")}`);
|
|
4982
4982
|
}
|
|
4983
4983
|
const tokens = await tokensRes.json();
|
|
4984
4984
|
refreshToken = tokens.refresh_token;
|
|
@@ -5004,7 +5004,7 @@ function AppStrategy(opts) {
|
|
|
5004
5004
|
})
|
|
5005
5005
|
});
|
|
5006
5006
|
if (tokensRes.status !== 200) {
|
|
5007
|
-
throw new Error(`Failed to exchange instance ID for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}`);
|
|
5007
|
+
throw new Error(`Failed to exchange instance ID for access token. Unexpected status code from Wix OAuth API: ${tokensRes.status}, request id: ${tokensRes.headers.get("x-wix-request-id")}`);
|
|
5008
5008
|
}
|
|
5009
5009
|
const tokens = await tokensRes.json();
|
|
5010
5010
|
cachedToken = {
|
|
@@ -5029,7 +5029,7 @@ function AppStrategy(opts) {
|
|
|
5029
5029
|
})
|
|
5030
5030
|
});
|
|
5031
5031
|
if (tokenRes.status !== 200) {
|
|
5032
|
-
throw new Error(`Failed to get unbound token. Unexpected status code from Wix OAuth API: ${tokenRes.status}`);
|
|
5032
|
+
throw new Error(`Failed to get unbound token. Unexpected status code from Wix OAuth API: ${tokenRes.status}, request id: ${tokenRes.headers.get("x-wix-request-id")}`);
|
|
5033
5033
|
}
|
|
5034
5034
|
const { access_token, expires_in } = await tokenRes.json();
|
|
5035
5035
|
cachedToken = {
|
package/build/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createI18nT
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HIP3A6XH.js";
|
|
6
6
|
import "./chunk-P4IYXOMH.js";
|
|
7
7
|
import {
|
|
8
8
|
require_react,
|
|
9
9
|
version,
|
|
10
10
|
z
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FG7KTOQN.js";
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
@@ -3371,8 +3371,8 @@ var {
|
|
|
3371
3371
|
// src/commands/build.ts
|
|
3372
3372
|
init_esm_shims();
|
|
3373
3373
|
var buildCommand = (services) => createCommand("build").action(async (_, command) => {
|
|
3374
|
-
const { runCommand } = await import("./render-command-
|
|
3375
|
-
const { build } = await import("./build-
|
|
3374
|
+
const { runCommand } = await import("./render-command-SSMPKWYD.js");
|
|
3375
|
+
const { build } = await import("./build-WH5DNJQG.js");
|
|
3376
3376
|
await runCommand(command, services, build);
|
|
3377
3377
|
});
|
|
3378
3378
|
|
|
@@ -3382,8 +3382,8 @@ var import_react = __toESM(require_react(), 1);
|
|
|
3382
3382
|
var devCommand = (services) => {
|
|
3383
3383
|
const t = createI18nT();
|
|
3384
3384
|
return createCommand("dev").option("-s, --https", t("dev_command_def.option.https")).action(async (options, command) => {
|
|
3385
|
-
const { DevCommand } = await import("./DevCommand-
|
|
3386
|
-
const { renderCommand } = await import("./render-command-
|
|
3385
|
+
const { DevCommand } = await import("./DevCommand-4IXIFS3I.js");
|
|
3386
|
+
const { renderCommand } = await import("./render-command-SSMPKWYD.js");
|
|
3387
3387
|
const { https = false } = options;
|
|
3388
3388
|
await renderCommand(command, services, /* @__PURE__ */ import_react.default.createElement(DevCommand, { https }), {
|
|
3389
3389
|
watchForModelChanges: true
|
|
@@ -3443,10 +3443,10 @@ var previewCommand = (services) => {
|
|
|
3443
3443
|
validateBase
|
|
3444
3444
|
).option("--no-input", t("app_preview_command_def.option.no_input")).action(async (options, command) => {
|
|
3445
3445
|
const { site, baseUrl, input } = options;
|
|
3446
|
-
const { renderCommand, runCommand } = await import("./render-command-
|
|
3446
|
+
const { renderCommand, runCommand } = await import("./render-command-SSMPKWYD.js");
|
|
3447
3447
|
if (!input) {
|
|
3448
3448
|
return runCommand(command, services, async (model) => {
|
|
3449
|
-
const { nonInteractivePreview } = await import("./preview-
|
|
3449
|
+
const { nonInteractivePreview } = await import("./preview-6X7F4EFT.js");
|
|
3450
3450
|
return nonInteractivePreview(
|
|
3451
3451
|
{ siteId: site, baseUrl },
|
|
3452
3452
|
model,
|
|
@@ -3454,7 +3454,7 @@ var previewCommand = (services) => {
|
|
|
3454
3454
|
);
|
|
3455
3455
|
});
|
|
3456
3456
|
}
|
|
3457
|
-
const { PreviewCommand } = await import("./PreviewCommand-
|
|
3457
|
+
const { PreviewCommand } = await import("./PreviewCommand-EDVLRBLK.js");
|
|
3458
3458
|
await renderCommand(
|
|
3459
3459
|
command,
|
|
3460
3460
|
services,
|
|
@@ -3486,8 +3486,8 @@ var createVersionCommand = (services) => {
|
|
|
3486
3486
|
validateBase
|
|
3487
3487
|
).action(async (options, command) => {
|
|
3488
3488
|
const { VersionType } = await import("./types.impl-CD4WWRUK.js");
|
|
3489
|
-
const { renderCommand } = await import("./render-command-
|
|
3490
|
-
const { CreateVersionCommand } = await import("./CreateVersionCommand-
|
|
3489
|
+
const { renderCommand } = await import("./render-command-SSMPKWYD.js");
|
|
3490
|
+
const { CreateVersionCommand } = await import("./CreateVersionCommand-OCHQTS2X.js");
|
|
3491
3491
|
const {
|
|
3492
3492
|
approvePreview = false,
|
|
3493
3493
|
versionType: versionTypeString,
|
|
@@ -3519,8 +3519,8 @@ var createVersionCommand = (services) => {
|
|
|
3519
3519
|
init_esm_shims();
|
|
3520
3520
|
var import_react4 = __toESM(require_react(), 1);
|
|
3521
3521
|
var serveCommand = (services) => createCommand("serve").action(async (_, command) => {
|
|
3522
|
-
const { renderCommand } = await import("./render-command-
|
|
3523
|
-
const { ServeCommand } = await import("./ServeCommand-
|
|
3522
|
+
const { renderCommand } = await import("./render-command-SSMPKWYD.js");
|
|
3523
|
+
const { ServeCommand } = await import("./ServeCommand-47UYGAUR.js");
|
|
3524
3524
|
await renderCommand(command, services, /* @__PURE__ */ import_react4.default.createElement(ServeCommand, null));
|
|
3525
3525
|
});
|
|
3526
3526
|
|
|
@@ -3530,8 +3530,8 @@ var import_react5 = __toESM(require_react(), 1);
|
|
|
3530
3530
|
var generateCommand = (services) => {
|
|
3531
3531
|
const t = createI18nT();
|
|
3532
3532
|
return createCommand("generate").description(t("generate_command.description")).action(async (options, command) => {
|
|
3533
|
-
const { GenerateCommand } = await import("./GenerateCommand-
|
|
3534
|
-
const { renderCommand } = await import("./render-command-
|
|
3533
|
+
const { GenerateCommand } = await import("./GenerateCommand-A3NZ4E7M.js");
|
|
3534
|
+
const { renderCommand } = await import("./render-command-SSMPKWYD.js");
|
|
3535
3535
|
await renderCommand(command, services, /* @__PURE__ */ import_react5.default.createElement(GenerateCommand, null), {
|
|
3536
3536
|
skipProjectValidation: true
|
|
3537
3537
|
});
|
|
@@ -3549,8 +3549,8 @@ var logsCommand = (services) => {
|
|
|
3549
3549
|
validateVersion
|
|
3550
3550
|
).action(async (options, command) => {
|
|
3551
3551
|
const { version: version2 } = options;
|
|
3552
|
-
const { renderCommand } = await import("./render-command-
|
|
3553
|
-
const { LogsCommand } = await import("./LogsCommand-
|
|
3552
|
+
const { renderCommand } = await import("./render-command-SSMPKWYD.js");
|
|
3553
|
+
const { LogsCommand } = await import("./LogsCommand-VI4SOYOF.js");
|
|
3554
3554
|
await renderCommand(command, services, /* @__PURE__ */ import_react6.default.createElement(LogsCommand, { version: version2 }));
|
|
3555
3555
|
});
|
|
3556
3556
|
};
|
|
@@ -3581,8 +3581,8 @@ var releaseCommand = (services) => {
|
|
|
3581
3581
|
"-y, --approve-minor",
|
|
3582
3582
|
t("release_command_def.option.approve_minor")
|
|
3583
3583
|
).action(async (options, command) => {
|
|
3584
|
-
const { renderCommand } = await import("./render-command-
|
|
3585
|
-
const { ReleaseCommand, ReleaseVersionType } = await import("./ReleaseCommand-
|
|
3584
|
+
const { renderCommand } = await import("./render-command-SSMPKWYD.js");
|
|
3585
|
+
const { ReleaseCommand, ReleaseVersionType } = await import("./ReleaseCommand-5JSMZ6UB.js");
|
|
3586
3586
|
const { baseUrl, site, comment, approveMinor = false } = options;
|
|
3587
3587
|
const versionType = options.versionType ? {
|
|
3588
3588
|
major: ReleaseVersionType.MAJOR,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{wixContext as l}from"@wix/sdk-context";function d(i,t){return{...i,...Object.fromEntries(t.map(n=>[n,(...e)=>{let o=r();if(!o)throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");return o.initWixModules(i)[n].apply(void 0,e)}]))}}function c(i,t){return(...n)=>{let e=r();return e?e.initWixModules(i,t).apply(void 0,n):i.apply(void 0,n)}}function r(){let i=typeof $wixContext<"u"&&$wixContext.initWixModules?$wixContext.initWixModules:typeof globalThis.__wix_context__<"u"&&globalThis.__wix_context__.initWixModules?globalThis.__wix_context__.initWixModules:void 0;if(i)return{initWixModules(e,o){return x(()=>i(e,o))},fetchWithAuth(){throw new Error("fetchWithAuth is not available in this context")},graphql(){throw new Error("graphql is not available in this context")}};let t=typeof $wixContext<"u"?$wixContext.client:typeof l.client<"u"?l.client:typeof globalThis.__wix_context__<"u"?globalThis.__wix_context__.client:void 0,n=typeof $wixContext<"u"?$wixContext.elevatedClient:typeof l.elevatedClient<"u"?l.elevatedClient:typeof globalThis.__wix_context__<"u"?globalThis.__wix_context__.elevatedClient:void 0;if(!(!t&&!n))return{initWixModules(e,o){if(o){if(!n)throw new Error("An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules");return x(()=>n.use(e))}if(!t)throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");return x(()=>t.use(e))},fetchWithAuth:(e,o)=>{if(!t)throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");return t.fetchWithAuth(e,o)},async graphql(e,o,u){if(!t)throw new Error("Wix context is not available. Make sure to initialize the Wix context before using SDK modules");return t.graphql(e,o,u)}}}function x(i){let t=globalThis.__wix_context__,n={client:l.client,elevatedClient:l.elevatedClient},e;globalThis.__wix_context__=void 0,l.client=void 0,l.elevatedClient=void 0,typeof $wixContext<"u"&&(e={client:$wixContext?.client,elevatedClient:$wixContext?.elevatedClient},delete $wixContext.client,delete $wixContext.elevatedClient);try{return i()}finally{globalThis.__wix_context__=t,l.client=n.client,l.elevatedClient=n.elevatedClient,typeof $wixContext<"u"&&($wixContext.client=e.client,$wixContext.elevatedClient=e.elevatedClient)}}export{d as a,c as b,x as c};
|
|
2
|
+
//# sourceMappingURL=chunk-42XIZ4MH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/@wix/sdk-runtime/build/context.js","../../../node_modules/@wix/sdk-runtime/build/context-v2.js"],"sourcesContent":["import { wixContext } from '@wix/sdk-context';\nexport function resolveContext() {\n const oldContext = typeof $wixContext !== 'undefined' && $wixContext.initWixModules\n ? $wixContext.initWixModules\n : typeof globalThis.__wix_context__ !== 'undefined' &&\n globalThis.__wix_context__.initWixModules\n ? globalThis.__wix_context__.initWixModules\n : undefined;\n if (oldContext) {\n return {\n // @ts-expect-error\n initWixModules(modules, elevated) {\n return runWithoutContext(() => oldContext(modules, elevated));\n },\n fetchWithAuth() {\n throw new Error('fetchWithAuth is not available in this context');\n },\n graphql() {\n throw new Error('graphql is not available in this context');\n },\n };\n }\n const contextualClient = typeof $wixContext !== 'undefined'\n ? $wixContext.client\n : typeof wixContext.client !== 'undefined'\n ? wixContext.client\n : typeof globalThis.__wix_context__ !== 'undefined'\n ? globalThis.__wix_context__.client\n : undefined;\n const elevatedClient = typeof $wixContext !== 'undefined'\n ? $wixContext.elevatedClient\n : typeof wixContext.elevatedClient !== 'undefined'\n ? wixContext.elevatedClient\n : typeof globalThis.__wix_context__ !== 'undefined'\n ? globalThis.__wix_context__.elevatedClient\n : undefined;\n if (!contextualClient && !elevatedClient) {\n return;\n }\n return {\n initWixModules(wixModules, elevated) {\n if (elevated) {\n if (!elevatedClient) {\n throw new Error('An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules');\n }\n return runWithoutContext(() => elevatedClient.use(wixModules));\n }\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return runWithoutContext(() => contextualClient.use(wixModules));\n },\n fetchWithAuth: (urlOrRequest, requestInit) => {\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return contextualClient.fetchWithAuth(urlOrRequest, requestInit);\n },\n async graphql(query, variables, opts) {\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return contextualClient.graphql(query, variables, opts);\n },\n };\n}\nexport function contextualizeHostModule(hostModule, prop) {\n return (...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(hostModule)[prop].apply(undefined, args);\n };\n}\nexport function contextualizeRESTModule(restModule, expectedArgsLength) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context\n .initWixModules(restModule, args[expectedArgsLength]?.suppressAuth ? true : false)\n .apply(undefined, args);\n });\n}\nexport function contextualizeEventDefinitionModule(eventDefinition) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(eventDefinition).apply(undefined, args);\n });\n}\nexport function contextualizeSerivcePluginModule(servicePlugin) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(servicePlugin).apply(undefined, args);\n });\n}\nexport * from './context-v2.js';\nexport function runWithoutContext(fn) {\n const globalContext = globalThis.__wix_context__;\n const moduleContext = {\n client: wixContext.client,\n elevatedClient: wixContext.elevatedClient,\n };\n let closureContext;\n globalThis.__wix_context__ = undefined;\n wixContext.client = undefined;\n wixContext.elevatedClient = undefined;\n if (typeof $wixContext !== 'undefined') {\n closureContext = {\n client: $wixContext?.client,\n elevatedClient: $wixContext?.elevatedClient,\n };\n delete $wixContext.client;\n delete $wixContext.elevatedClient;\n }\n try {\n return fn();\n }\n finally {\n globalThis.__wix_context__ = globalContext;\n wixContext.client = moduleContext.client;\n wixContext.elevatedClient = moduleContext.elevatedClient;\n if (typeof $wixContext !== 'undefined') {\n $wixContext.client = closureContext.client;\n $wixContext.elevatedClient = closureContext.elevatedClient;\n }\n }\n}\n","import { EventDefinition, ServicePluginDefinition, } from '@wix/sdk-types';\nimport { resolveContext } from './context.js';\nexport { EventDefinition, ServicePluginDefinition, };\nexport function contextualizeHostModuleV2(hostModule, props) {\n return {\n ...hostModule,\n ...Object.fromEntries(props.map((prop) => [\n prop,\n (...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context\n .initWixModules(hostModule)[prop].apply(undefined, args);\n },\n ])),\n };\n}\nexport function contextualizeRESTModuleV2(restModule, elevated) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n // @ts-expect-error - if there is no context, we want to behave like the original module\n return restModule.apply(undefined, args);\n }\n return (context\n .initWixModules(restModule, elevated)\n // @ts-expect-error - we know the args here are meant to be passed to the initalized module\n .apply(undefined, args));\n });\n}\nexport function contextualizeEventDefinitionModuleV2(eventDefinition) {\n const contextualMethod = ((...args) => {\n const context = resolveContext();\n if (!context) {\n // this line should throw, but this would be a breaking change for older SDK versions\n // this is because in wixClient there's code that calls any function it detects and checks\n // if it's an ambassador module (see isAmbassadorModule)\n return () => { };\n }\n return context.initWixModules(eventDefinition).apply(undefined, args);\n });\n contextualMethod.__type = eventDefinition.__type;\n contextualMethod.type = eventDefinition.type;\n contextualMethod.isDomainEvent = eventDefinition.isDomainEvent;\n contextualMethod.transformations = eventDefinition.transformations;\n return contextualMethod;\n}\nexport function contextualizeSerivcePluginModuleV2(servicePlugin) {\n const contextualMethod = ((...args) => {\n const context = resolveContext();\n if (!context) {\n // this line should throw, but this would be a breaking change for older SDK versions\n // this is because in wixClient there's code that calls any function it detects and checks\n // if it's an ambassador module (see isAmbassadorModule)\n return () => { };\n }\n return context.initWixModules(servicePlugin).apply(undefined, args);\n });\n contextualMethod.__type = servicePlugin.__type;\n contextualMethod.componentType = servicePlugin.componentType;\n contextualMethod.methods = servicePlugin.methods;\n return contextualMethod;\n}\n"],"mappings":"AAAA,OAAS,cAAAA,MAAkB,mBCGpB,SAASC,EAA0BC,EAAYC,EAAO,CACzD,MAAO,CACH,GAAGD,EACH,GAAG,OAA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H,EAAkB,IAAMG,EAAe,IAAIC,CAAU,CAAC,CACjE,CACA,GAAI,CAACH,EACD,MAAM,IAAI,MAAM,gGAAgG,EAEpH,OAAOD,EAAkB,IAAMC,EAAiB,IAAIG,CAAU,CAAC,CACnE,EACA,cAAe,CAACC,EAAcC,IAAgB,CAC1C,GAAI,CAACL,EACD,MAAM,IAAI,MAAM,gGAAgG,EAEpH,OAAOA,EAAiB,cAAcI,EAAcC,CAAW,CACnE,EACA,MAAM,QAAQC,EAAOC,EAAWC,EAAM,CAClC,GAAI,CAACR,EACD,MAAM,IAAI,MAAM,gGAAgG,EAEpH,OAAOA,EAAiB,QAAQM,EAAOC,EAAWC,CAAI,CAC1D,CACJ,CACJ,CAwCO,SAASC,EAAkBC,EAAI,CAClC,IAAMC,EAAgB,WAAW,gBAC3BC,EAAgB,CAClB,OAAQC,EAAW,OACnB,eAAgBA,EAAW,cAC/B,EACIC,EACJ,WAAW,gBAAkB,OAC7BD,EAAW,OAAS,OACpBA,EAAW,eAAiB,OACxB,OAAO,YAAgB,MACvBC,EAAiB,CACb,OAAQ,aAAa,OACrB,eAAgB,aAAa,cACjC,EACA,OAAO,YAAY,OACnB,OAAO,YAAY,gBAEvB,GAAI,CACA,OAAOJ,EAAG,CACd,QACA,CACI,WAAW,gBAAkBC,EAC7BE,EAAW,OAASD,EAAc,OAClCC,EAAW,eAAiBD,EAAc,eACtC,OAAO,YAAgB,MACvB,YAAY,OAASE,EAAe,OACpC,YAAY,eAAiBA,EAAe,eAEpD,CACJ","names":["wixContext","contextualizeHostModuleV2","hostModule","props","prop","args","context","resolveContext","contextualizeRESTModuleV2","restModule","elevated","resolveContext","oldContext","modules","elevated","runWithoutContext","contextualClient","wixContext","elevatedClient","wixModules","urlOrRequest","requestInit","query","variables","opts","runWithoutContext","fn","globalContext","moduleContext","wixContext","closureContext"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as p}from"./chunk-42XIZ4MH.js";function T(e){return p({__type:"host",create:t=>Object.entries(e).reduce((r,[n,s])=>({...r,[n]:s(t)}),{})},Object.keys(e))}var k=e=>e!=null&&e!=="",a=e=>u(e,k);function u(e,t=r=>!!r){if(!e)return{};let r={};for(let n in e)t(e[n],n)&&(r[n]=e[n]);return r}var d=e=>{let t=a({"app.id":e.appId,"app.version":e.appVersion,"app.instanceId":e.appInstanceId,"extension.id":e.extensionId,"extension.name":e.extensionName,"extension.type":e.extensionType,platform:e.platform}),r=u({"extension.data":a({...e.extensionData}),site:a({url:e.siteUrl,id:e.tenantType==="SITE"?e.tenantId:void 0}),account:a({id:e.tenantType==="ACCOUNT"?e.tenantId:void 0})},n=>!!n&&Object.keys(n).length>0);return{tags:t,contexts:r}},x=class{constructor(e){this.message=e,this.captureException=()=>(console.error(this.message),""),this.captureMessage=()=>(console.error(this.message),""),this.startSpan=()=>(console.error(this.message),{}),this.addBreadcrumb=()=>{console.error(this.message)}}},i=e=>new x(e);var y=(e,{tags:t,contexts:r})=>{t&&e.setTags(t),r&&Object.entries(r).forEach(([n,s])=>typeof s<"u"&&e.setContext(n,s))},w=(e,t)=>{if(!t)return;let{tags:r,contexts:n}=d(t);y(e,{tags:r,contexts:n})},g=(e,t,r,n={},s="info",o)=>{let l=new r.Hub(e,t);return l.withScope(c=>{let{level:S=s,tags:f,contexts:C}=n;return c.setLevel(S),y(c,{tags:f,contexts:C}),o(c,l)})},m=class{constructor(e){this.sentry=e.sentrySDK,this.scope=new this.sentry.Scope,this.sentryClient=new this.sentry.BrowserClient({dsn:e.dsn,transport:e.transport??this.sentry.makeFetchTransport,integrations:this.sentry.getDefaultIntegrations({}),stackParser:this.sentry.defaultStackParser,tracesSampleRate:e.tracesSampleRate||1,debug:e.debug??!1,environment:e.environment,release:e.release}),w(this.scope,e.hostContext),this.scope.setClient(this.sentryClient),this.sentryClient.init()}},B=class extends m{constructor(){super(...arguments),this.addBreadcrumb=e=>{let t={type:e.type,category:e.category,message:e.message,level:e.level,data:e.data};this.scope.addBreadcrumb(t)},this.captureException=(e,t)=>g(this.sentryClient,this.scope,this.sentry,t,"error",r=>r.captureException(e)),this.captureMessage=(e,t)=>g(this.sentryClient,this.scope,this.sentry,t,"info",r=>r.captureMessage(e)),this.startSpan=(e,t)=>{let r={name:e.name,tags:e.tags};return this.sentry.startSpan({...r,scope:this.scope},t)}}},M=class extends m{constructor(){super(...arguments),this.addBreadcrumb=e=>{let t={type:e.type,category:e.category,message:e.message,level:e.level,data:e.data};this.scope.addBreadcrumb(t)},this.captureException=(e,t)=>this.sentryClient.captureException(e,{captureContext:{level:t?.level??"error",tags:t?.tags,contexts:t?.contexts}},this.scope),this.captureMessage=(e,t)=>this.sentryClient.captureMessage(e,t?.level??"error",{captureContext:{level:t?.level??"error",tags:t?.tags,contexts:t?.contexts}},this.scope),this.startSpan=(e,t)=>{let r={name:e.name,tags:e.tags};return this.sentry.startSpan({...r,scope:this.scope},t)}}},h=e=>`Sentry SDK version "${e}" is not supported. Please make sure to use monitoring SDK only in supported environments.`,I=e=>{try{return parseInt(e.split(".")[0],10)}catch{console.warn("Failed to parse Sentry SDK version");return}},v=({microFrontendEnvironment:e,sentrySDK:t,dsn:r,...n})=>{if(!t)return i("Unsupported environment - Sentry SDK is not loaded into the environment. Please make sure to use monitoring SDK only in supported environments.");if(!r)return i("Missing Sentry DSN in the app's monitoring configuration. Please make sure to set it.");try{let s=t.SDK_VERSION&&I(t.SDK_VERSION);return e?s&&s!==7?i(h(t.SDK_VERSION)):new B({...n,dsn:r,sentrySDK:t}):s&&s<7?i(h(t.SDK_VERSION)):new M({...n,dsn:r,sentrySDK:t})}catch(s){return i(`Failed to initialize monitoring client: ${s.message}`)}};var E=e=>e?.type==="SENTRY",U=({sentrySDK:e,sentryTransport:t,monitoringConfig:r,hostContext:n,microFrontendEnvironment:s})=>{if(E(r)){let{sentryOptions:o}=r;return()=>v({microFrontendEnvironment:s,dsn:o?.dsn,hostContext:n,sentrySDK:e,transport:t})}return()=>i("Invalid monitoring configuration. Please check the monitoring setup of your application.")};export{T as a,U as b};
|
|
2
|
+
//# sourceMappingURL=chunk-CR7DIEFQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/@wix/sdk-runtime/build/host-modules.js","../../../node_modules/@wix/monitoring/build/index.js","../../../node_modules/@wix/monitoring-browser-sentry/build/index.js","../../../node_modules/@wix/monitoring-browser-sdk-host/build/index.js"],"sourcesContent":["import { contextualizeHostModuleV2 } from './context-v2.js';\nexport function createHostModule(hostModuleAPI) {\n return contextualizeHostModuleV2({\n __type: 'host',\n create: (host) => Object.entries(hostModuleAPI).reduce((acc, [key, fn]) => ({\n ...acc,\n [key]: fn(host),\n }), {}),\n }, Object.keys(hostModuleAPI));\n}\n","// src/context/context-utils.ts\nvar validValue = (value) => value !== void 0 && value !== null && value !== \"\";\nvar pickByValidValues = (obj) => pickBy(obj, validValue);\nfunction pickBy(object, predicate = (value) => !!value) {\n if (!object) {\n return {};\n }\n const result = {};\n for (const key in object) {\n if (predicate(object[key], key)) {\n result[key] = object[key];\n }\n }\n return result;\n}\nvar generateTagsAndContext = (context) => {\n const tags = pickByValidValues({\n \"app.id\": context.appId,\n \"app.version\": context.appVersion,\n \"app.instanceId\": context.appInstanceId,\n \"extension.id\": context.extensionId,\n \"extension.name\": context.extensionName,\n \"extension.type\": context.extensionType,\n platform: context.platform\n });\n const contexts = pickBy(\n {\n \"extension.data\": pickByValidValues({\n ...context.extensionData\n }),\n site: pickByValidValues({\n url: context.siteUrl,\n id: context.tenantType === \"SITE\" ? context.tenantId : void 0\n }),\n account: pickByValidValues({\n id: context.tenantType === \"ACCOUNT\" ? context.tenantId : void 0\n })\n },\n (value) => !!value && Object.keys(value).length > 0\n );\n return {\n tags,\n contexts\n };\n};\n\n// src/fallback-client.ts\nvar FallbackMonitoringClient = class {\n constructor(message) {\n this.message = message;\n this.captureException = () => {\n console.error(this.message);\n return \"\";\n };\n this.captureMessage = () => {\n console.error(this.message);\n return \"\";\n };\n this.startSpan = () => {\n console.error(this.message);\n return {};\n };\n this.addBreadcrumb = () => {\n console.error(this.message);\n };\n }\n};\nvar createFallbackMonitoringClient = (message) => {\n return new FallbackMonitoringClient(message);\n};\nexport {\n createFallbackMonitoringClient,\n generateTagsAndContext\n};\n","// src/factory.ts\nimport { createFallbackMonitoringClient } from \"@wix/monitoring\";\n\n// src/utils.ts\nimport { generateTagsAndContext } from \"@wix/monitoring\";\nvar setTagsAndContextsOnScope = (scope, { tags, contexts }) => {\n if (tags) {\n scope.setTags(tags);\n }\n if (contexts) {\n Object.entries(contexts).forEach(\n ([key, value]) => typeof value !== \"undefined\" && scope.setContext(key, value)\n );\n }\n};\nvar setHostContextOnScope = (scope, hostContext) => {\n if (!hostContext) {\n return;\n }\n const { tags, contexts } = generateTagsAndContext(hostContext);\n setTagsAndContextsOnScope(scope, { tags, contexts });\n};\n\n// src/micro-frontend/utils.ts\nvar withCaptureScope = (client, scope, sentry, captureContext = {}, defaultLevel = \"info\", callback) => {\n const hub = new sentry.Hub(client, scope);\n return hub.withScope((_scope) => {\n const { level = defaultLevel, tags, contexts } = captureContext;\n _scope.setLevel(level);\n setTagsAndContextsOnScope(_scope, { tags, contexts });\n return callback(_scope, hub);\n });\n};\n\n// src/abstract-browser-client.ts\nvar AbstractSentryBrowserClient = class {\n constructor(options) {\n this.sentry = options.sentrySDK;\n this.scope = new this.sentry.Scope();\n this.sentryClient = new this.sentry.BrowserClient({\n dsn: options.dsn,\n transport: options.transport ?? this.sentry.makeFetchTransport,\n integrations: this.sentry.getDefaultIntegrations({}),\n stackParser: this.sentry.defaultStackParser,\n tracesSampleRate: options.tracesSampleRate || 1,\n debug: options.debug ?? false,\n environment: options.environment,\n release: options.release\n });\n setHostContextOnScope(this.scope, options.hostContext);\n this.scope.setClient(this.sentryClient);\n this.sentryClient.init();\n }\n};\n\n// src/micro-frontend/client.ts\nvar SentryBrowserMicroFrontendClient = class extends AbstractSentryBrowserClient {\n constructor() {\n super(...arguments);\n /**\n * Records a new breadcrumb which will be attached to future events.\n * Breadcrumbs will be added to subsequent events to provide more context on user's actions prior to an error or crash.\n * @param breadcrumb The breadcrumb to record.\n */\n this.addBreadcrumb = (breadcrumb) => {\n const filteredBreadcrumb = {\n type: breadcrumb.type,\n category: breadcrumb.category,\n message: breadcrumb.message,\n level: breadcrumb.level,\n data: breadcrumb.data\n };\n this.scope.addBreadcrumb(filteredBreadcrumb);\n };\n /**\n * Captures an exception event and sends it to Sentry.\n * @param error The error to capture\n * @param captureContext Optional additional data to attach to the Sentry e vent.\n * @returns the id of the captured Sentry event.\n */\n this.captureException = (error, captureContext) => {\n return withCaptureScope(\n this.sentryClient,\n this.scope,\n this.sentry,\n captureContext,\n \"error\",\n (scope) => scope.captureException(error)\n );\n };\n /**\n * Captures a message event and sends it to Sentry.\n * @param message The message to capture\n * @param captureContext Define the level of the message or pass in additional data to attach to the message.\n * @returns the id of the captured message.\n */\n this.captureMessage = (message, captureContext) => {\n return withCaptureScope(\n this.sentryClient,\n this.scope,\n this.sentry,\n captureContext,\n \"info\",\n (scope) => scope.captureMessage(message)\n );\n };\n /**\n * Wraps a function with a span and finishes the span after the function is done. The created span is the active span and will be used as parent by other spans created inside the function, as long as the function is executed while the scope is active.\n * @param spanOptions The options for the span\n * @param callback The function to wrap with a span\n * @returns The return value of the callback\n */\n this.startSpan = (spanOptions, callback) => {\n const filteredSpanOptions = {\n name: spanOptions.name,\n tags: spanOptions.tags\n };\n return this.sentry.startSpan(\n { ...filteredSpanOptions, scope: this.scope },\n callback\n );\n };\n }\n};\n\n// src/browser/client.ts\nvar SentryBrowserClient = class extends AbstractSentryBrowserClient {\n constructor() {\n super(...arguments);\n /**\n * Records a new breadcrumb which will be attached to future events.\n * Breadcrumbs will be added to subsequent events to provide more context on user's actions prior to an error or crash.\n * @param breadcrumb The breadcrumb to record.\n */\n this.addBreadcrumb = (breadcrumb) => {\n const filteredBreadcrumb = {\n type: breadcrumb.type,\n category: breadcrumb.category,\n message: breadcrumb.message,\n level: breadcrumb.level,\n data: breadcrumb.data\n };\n this.scope.addBreadcrumb(filteredBreadcrumb);\n };\n /**\n * Captures an exception event and sends it to Sentry.\n * @param error The error to capture\n * @param captureContext Optional additional data to attach to the Sentry e vent.\n * @returns the id of the captured Sentry event.\n */\n this.captureException = (error, captureContext) => {\n return this.sentryClient.captureException(\n error,\n {\n captureContext: {\n level: captureContext?.level ?? \"error\",\n tags: captureContext?.tags,\n contexts: captureContext?.contexts\n }\n },\n this.scope\n );\n };\n /**\n * Captures a message event and sends it to Sentry.\n * @param message The message to capture\n * @param captureContext Define the level of the message or pass in additional data to attach to the message.\n * @returns the id of the captured message.\n */\n this.captureMessage = (message, captureContext) => {\n return this.sentryClient.captureMessage(\n message,\n captureContext?.level ?? \"error\",\n {\n captureContext: {\n level: captureContext?.level ?? \"error\",\n tags: captureContext?.tags,\n contexts: captureContext?.contexts\n }\n },\n this.scope\n );\n };\n /**\n * Wraps a function with a span and finishes the span after the function is done. The created span is the active span and will be used as parent by other spans created inside the function, as long as the function is executed while the scope is active.\n * @param spanOptions The options for the span\n * @param callback The function to wrap with a span\n * @returns The return value of the callback\n */\n this.startSpan = (spanOptions, callback) => {\n const filteredSpanOptions = {\n name: spanOptions.name,\n tags: spanOptions.tags\n };\n return this.sentry.startSpan(\n { ...filteredSpanOptions, scope: this.scope },\n callback\n );\n };\n }\n};\n\n// src/factory.ts\nvar unsupportedEnvironmentMessage = (version) => `Sentry SDK version \"${version}\" is not supported. Please make sure to use monitoring SDK only in supported environments.`;\nvar major = (version) => {\n try {\n return parseInt(version.split(\".\")[0], 10);\n } catch {\n console.warn(\"Failed to parse Sentry SDK version\");\n return void 0;\n }\n};\nvar createSentryBrowserClient = ({\n microFrontendEnvironment,\n sentrySDK,\n dsn,\n ...options\n}) => {\n if (!sentrySDK) {\n return createFallbackMonitoringClient(\n \"Unsupported environment - Sentry SDK is not loaded into the environment. Please make sure to use monitoring SDK only in supported environments.\"\n );\n }\n if (!dsn) {\n return createFallbackMonitoringClient(\n \"Missing Sentry DSN in the app's monitoring configuration. Please make sure to set it.\"\n );\n }\n try {\n const sentrySdkMajorVersion = sentrySDK.SDK_VERSION && major(sentrySDK.SDK_VERSION);\n if (microFrontendEnvironment) {\n if (sentrySdkMajorVersion && sentrySdkMajorVersion !== 7) {\n return createFallbackMonitoringClient(\n unsupportedEnvironmentMessage(sentrySDK.SDK_VERSION)\n );\n }\n return new SentryBrowserMicroFrontendClient({\n ...options,\n dsn,\n sentrySDK\n });\n }\n if (sentrySdkMajorVersion && sentrySdkMajorVersion < 7) {\n return createFallbackMonitoringClient(\n unsupportedEnvironmentMessage(sentrySDK.SDK_VERSION)\n );\n }\n return new SentryBrowserClient({ ...options, dsn, sentrySDK });\n } catch (e) {\n return createFallbackMonitoringClient(\n `Failed to initialize monitoring client: ${e.message}`\n );\n }\n};\nexport {\n createSentryBrowserClient\n};\n","// src/monitoring-client.ts\nimport { createFallbackMonitoringClient } from \"@wix/monitoring\";\nimport { createSentryBrowserClient } from \"@wix/monitoring-browser-sentry\";\nvar isSentryConfig = (monitoringConfig) => monitoringConfig?.type === \"SENTRY\";\nvar getMonitoringClientFunction = ({\n sentrySDK,\n sentryTransport,\n monitoringConfig,\n hostContext,\n microFrontendEnvironment\n}) => {\n if (isSentryConfig(monitoringConfig)) {\n const { sentryOptions } = monitoringConfig;\n return () => createSentryBrowserClient({\n microFrontendEnvironment,\n dsn: sentryOptions?.dsn,\n hostContext,\n sentrySDK,\n transport: sentryTransport\n });\n }\n return () => createFallbackMonitoringClient(\n \"Invalid monitoring configuration. Please check the monitoring setup of your application.\"\n );\n};\nexport {\n getMonitoringClientFunction\n};\n"],"mappings":"wCACO,SAASA,EAAiBC,EAAe,CAC5C,OAAOC,EAA0B,CAC7B,OAAQ,OACR,OAASC,GAAS,OAAO,QAAQF,CAAa,EAAE,OAAO,CAACG,EAAK,CAACC,EAAKC,CAAE,KAAO,CACxE,GAAGF,EACH,CAACC,CAAG,EAAGC,EAAGH,CAAI,CAClB,GAAI,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IAAIC,EAAkBC,GAAqBA,GAAkB,OAAS,SAClEC,EAA8B,CAAC,CACjC,UAAAC,EACA,gBAAAC,EACA,iBAAAH,EACA,YAAAI,EACA,yBAAAC,CACF,IAAM,CACJ,GAAIN,EAAeC,CAAgB,EAAG,CACpC,GAAM,CAAE,cAAAM,CAAc,EAAIN,EAC1B,MAAO,IAAMO,EAA0B,CACrC,yBAAAF,EACA,IAAKC,GAAe,IACpB,YAAAF,EACA,UAAAF,EACA,UAAWC,CACb,CAAC,CACH,CACA,MAAO,IAAMK,EACX,0FACF,CACF","names":["createHostModule","hostModuleAPI","contextualizeHostModuleV2","host","acc","key","fn","validValue","value","pickByValidValues","obj","pickBy","object","predicate","result","key","generateTagsAndContext","context","tags","contexts","FallbackMonitoringClient","message","createFallbackMonitoringClient","setTagsAndContextsOnScope","scope","tags","contexts","key","value","setHostContextOnScope","hostContext","generateTagsAndContext","withCaptureScope","client","sentry","captureContext","defaultLevel","callback","hub","_scope","level","AbstractSentryBrowserClient","options","SentryBrowserMicroFrontendClient","breadcrumb","filteredBreadcrumb","error","message","spanOptions","filteredSpanOptions","SentryBrowserClient","unsupportedEnvironmentMessage","version","major","createSentryBrowserClient","microFrontendEnvironment","sentrySDK","dsn","createFallbackMonitoringClient","sentrySdkMajorVersion","e","isSentryConfig","monitoringConfig","getMonitoringClientFunction","sentrySDK","sentryTransport","hostContext","microFrontendEnvironment","sentryOptions","createSentryBrowserClient","createFallbackMonitoringClient"]}
|