@wix/cli-app 1.1.57 → 1.1.58
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-AIXBHCYB.js → CreateVersionCommand-NNN5WEDG.js} +14 -14
- package/build/{DevCommand-TOFPM7DZ.js → DevCommand-DTV4QLZX.js} +12 -12
- package/build/{GenerateCommand-HB46FNMR.js → GenerateCommand-3EILY6GU.js} +29 -21
- package/build/{GenerateCommand-HB46FNMR.js.map → GenerateCommand-3EILY6GU.js.map} +1 -1
- package/build/{LogsCommand-Q2HRBR6G.js → LogsCommand-GBLWWXA4.js} +4 -4
- package/build/PreviewCommand-A2C52TVM.js +23 -0
- package/build/{ServeCommand-ZEXPLXTI.js → ServeCommand-HBKGVBCD.js} +13 -13
- package/build/{build-3AJU7FWE.js → build-NYCCEFPM.js} +7 -7
- package/build/{chunk-MGPAOFO3.js → chunk-2ROHQF53.js} +77 -59
- package/build/chunk-2ROHQF53.js.map +1 -0
- package/build/{chunk-6A37LXDJ.js → chunk-CDB46GX7.js} +2 -2
- package/build/{chunk-JZVNLHD3.js → chunk-DKKXEKW7.js} +3 -3
- package/build/{chunk-BMVZ7QCF.js → chunk-FQ554CIC.js} +3 -3
- package/build/{chunk-FOKCY5BR.js → chunk-IWJPJJEU.js} +4 -4
- package/build/{chunk-HL4K6RV3.js → chunk-JSDDG7MC.js} +2 -2
- package/build/{chunk-F2XRLYHS.js → chunk-MVNY3M6D.js} +5 -5
- package/build/{chunk-2BYVOUAH.js → chunk-NTTJJSCK.js} +3 -3
- package/build/{chunk-4JP2XRKG.js → chunk-P5P6YINI.js} +28 -40
- package/build/{chunk-4JP2XRKG.js.map → chunk-P5P6YINI.js.map} +1 -1
- package/build/{chunk-Y6SGP7TM.js → chunk-PUIMS4NQ.js} +3 -3
- package/build/{chunk-2CUJME55.js → chunk-QVLKHYBX.js} +3 -3
- package/build/{chunk-QG2TLAMS.js → chunk-RFDDKVTR.js} +5 -5
- package/build/{chunk-IJVKSYIY.js → chunk-SE6QML7T.js} +3 -2
- package/build/{chunk-IJVKSYIY.js.map → chunk-SE6QML7T.js.map} +1 -1
- package/build/{chunk-FTNALO4B.js → chunk-TQB6XTPS.js} +3 -3
- package/build/{chunk-77XREOLU.js → chunk-UGZFZOEU.js} +8 -8
- package/build/{chunk-N6O7J2WO.js → chunk-XIKZ45R2.js} +7 -7
- package/build/{chunk-XQ2F7ZVH.js → chunk-XRPBC4UX.js} +3 -3
- package/build/{chunk-2GIVAXZY.js → chunk-ZDKKDXHS.js} +3 -3
- package/build/index.js +18 -18
- package/build/platform-sdk/editor.js +5 -5
- package/build/platform-sdk/editor.js.map +1 -1
- package/build/{preview-C7XYH7BB.js → preview-CCEFGOHW.js} +12 -12
- package/build/{render-command-BMSK4YLL.js → render-command-T2HCJX3F.js} +6 -6
- package/package.json +2 -2
- package/schemas/site-plugin.json +1 -0
- package/build/PreviewCommand-XBSTVGWT.js +0 -23
- package/build/chunk-MGPAOFO3.js.map +0 -1
- /package/build/{CreateVersionCommand-AIXBHCYB.js.map → CreateVersionCommand-NNN5WEDG.js.map} +0 -0
- /package/build/{DevCommand-TOFPM7DZ.js.map → DevCommand-DTV4QLZX.js.map} +0 -0
- /package/build/{LogsCommand-Q2HRBR6G.js.map → LogsCommand-GBLWWXA4.js.map} +0 -0
- /package/build/{PreviewCommand-XBSTVGWT.js.map → PreviewCommand-A2C52TVM.js.map} +0 -0
- /package/build/{ServeCommand-ZEXPLXTI.js.map → ServeCommand-HBKGVBCD.js.map} +0 -0
- /package/build/{build-3AJU7FWE.js.map → build-NYCCEFPM.js.map} +0 -0
- /package/build/{chunk-6A37LXDJ.js.map → chunk-CDB46GX7.js.map} +0 -0
- /package/build/{chunk-JZVNLHD3.js.map → chunk-DKKXEKW7.js.map} +0 -0
- /package/build/{chunk-BMVZ7QCF.js.map → chunk-FQ554CIC.js.map} +0 -0
- /package/build/{chunk-FOKCY5BR.js.map → chunk-IWJPJJEU.js.map} +0 -0
- /package/build/{chunk-HL4K6RV3.js.map → chunk-JSDDG7MC.js.map} +0 -0
- /package/build/{chunk-F2XRLYHS.js.map → chunk-MVNY3M6D.js.map} +0 -0
- /package/build/{chunk-2BYVOUAH.js.map → chunk-NTTJJSCK.js.map} +0 -0
- /package/build/{chunk-Y6SGP7TM.js.map → chunk-PUIMS4NQ.js.map} +0 -0
- /package/build/{chunk-2CUJME55.js.map → chunk-QVLKHYBX.js.map} +0 -0
- /package/build/{chunk-QG2TLAMS.js.map → chunk-RFDDKVTR.js.map} +0 -0
- /package/build/{chunk-FTNALO4B.js.map → chunk-TQB6XTPS.js.map} +0 -0
- /package/build/{chunk-77XREOLU.js.map → chunk-UGZFZOEU.js.map} +0 -0
- /package/build/{chunk-N6O7J2WO.js.map → chunk-XIKZ45R2.js.map} +0 -0
- /package/build/{chunk-XQ2F7ZVH.js.map → chunk-XRPBC4UX.js.map} +0 -0
- /package/build/{chunk-2GIVAXZY.js.map → chunk-ZDKKDXHS.js.map} +0 -0
- /package/build/{preview-C7XYH7BB.js.map → preview-CCEFGOHW.js.map} +0 -0
- /package/build/{render-command-BMSK4YLL.js.map → render-command-T2HCJX3F.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
useTunnel
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QVLKHYBX.js";
|
|
6
6
|
import "./chunk-QZOQAFHK.js";
|
|
7
7
|
import {
|
|
8
8
|
ComponentType2 as ComponentType,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useErrorReporter,
|
|
13
13
|
useHttpClient,
|
|
14
14
|
useProjectModel
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-P5P6YINI.js";
|
|
16
16
|
import {
|
|
17
17
|
Box_default,
|
|
18
18
|
CliError,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
useAsync,
|
|
26
26
|
useTranslation,
|
|
27
27
|
z
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2ROHQF53.js";
|
|
29
29
|
import {
|
|
30
30
|
__toESM,
|
|
31
31
|
init_esm_shims
|
|
@@ -281,4 +281,4 @@ var LogsCommand = ({ version }) => {
|
|
|
281
281
|
export {
|
|
282
282
|
LogsCommand
|
|
283
283
|
};
|
|
284
|
-
//# sourceMappingURL=LogsCommand-
|
|
284
|
+
//# sourceMappingURL=LogsCommand-GBLWWXA4.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
PreviewCommand
|
|
5
|
+
} from "./chunk-UGZFZOEU.js";
|
|
6
|
+
import "./chunk-RFDDKVTR.js";
|
|
7
|
+
import "./chunk-MVNY3M6D.js";
|
|
8
|
+
import "./chunk-NTTJJSCK.js";
|
|
9
|
+
import "./chunk-ZDKKDXHS.js";
|
|
10
|
+
import "./chunk-XIKZ45R2.js";
|
|
11
|
+
import "./chunk-TQB6XTPS.js";
|
|
12
|
+
import "./chunk-QVLKHYBX.js";
|
|
13
|
+
import "./chunk-QZOQAFHK.js";
|
|
14
|
+
import "./chunk-FQ554CIC.js";
|
|
15
|
+
import "./chunk-IWJPJJEU.js";
|
|
16
|
+
import "./chunk-JSDDG7MC.js";
|
|
17
|
+
import "./chunk-P5P6YINI.js";
|
|
18
|
+
import "./chunk-2ROHQF53.js";
|
|
19
|
+
import "./chunk-PYIAC2GK.js";
|
|
20
|
+
export {
|
|
21
|
+
PreviewCommand
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=PreviewCommand-A2C52TVM.js.map
|
|
@@ -3,16 +3,16 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PlatformViewer,
|
|
5
5
|
assertBuildOutputExists
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RFDDKVTR.js";
|
|
7
7
|
import {
|
|
8
8
|
SiteProvider
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MVNY3M6D.js";
|
|
10
10
|
import {
|
|
11
11
|
createLogger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CDB46GX7.js";
|
|
13
13
|
import {
|
|
14
14
|
readAppManifestFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZDKKDXHS.js";
|
|
16
16
|
import {
|
|
17
17
|
ArmTagProvider,
|
|
18
18
|
SiteOverrideProvider,
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
useARMClient,
|
|
21
21
|
useSite,
|
|
22
22
|
useSiteOverrideClient
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-XIKZ45R2.js";
|
|
24
|
+
import "./chunk-TQB6XTPS.js";
|
|
25
|
+
import "./chunk-QVLKHYBX.js";
|
|
26
26
|
import "./chunk-QZOQAFHK.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-FQ554CIC.js";
|
|
28
28
|
import {
|
|
29
29
|
getViteConfig,
|
|
30
30
|
getViteServerUrl,
|
|
31
31
|
updateAppManifestWithBaseUrl
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-IWJPJJEU.js";
|
|
33
|
+
import "./chunk-JSDDG7MC.js";
|
|
34
34
|
import {
|
|
35
35
|
useProjectModel
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-P5P6YINI.js";
|
|
37
37
|
import {
|
|
38
38
|
Box_default,
|
|
39
39
|
InfoIcon,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
require_react,
|
|
48
48
|
useAsync,
|
|
49
49
|
useTranslation
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-2ROHQF53.js";
|
|
51
51
|
import {
|
|
52
52
|
__toESM,
|
|
53
53
|
init_esm_shims
|
|
@@ -162,4 +162,4 @@ export {
|
|
|
162
162
|
ServeEnvironmentProvider,
|
|
163
163
|
useServeEnvironment
|
|
164
164
|
};
|
|
165
|
-
//# sourceMappingURL=ServeCommand-
|
|
165
|
+
//# sourceMappingURL=ServeCommand-HBKGVBCD.js.map
|
|
@@ -2,27 +2,27 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createLogger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CDB46GX7.js";
|
|
6
6
|
import {
|
|
7
7
|
writeAppManifestFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZDKKDXHS.js";
|
|
9
9
|
import {
|
|
10
10
|
createAppManifest,
|
|
11
11
|
getComponentSourceBuilder,
|
|
12
12
|
getViteConfig,
|
|
13
13
|
getViteConfig2,
|
|
14
14
|
validateComponents
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-IWJPJJEU.js";
|
|
16
|
+
import "./chunk-JSDDG7MC.js";
|
|
17
17
|
import {
|
|
18
18
|
API_BASEURL_PLACEHOLDER,
|
|
19
19
|
DevCenterComponent
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-P5P6YINI.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError,
|
|
23
23
|
CliErrorCode,
|
|
24
24
|
require_lib
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2ROHQF53.js";
|
|
26
26
|
import {
|
|
27
27
|
__toESM,
|
|
28
28
|
init_esm_shims
|
|
@@ -94,4 +94,4 @@ async function build(projectModel) {
|
|
|
94
94
|
export {
|
|
95
95
|
build
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=build-
|
|
97
|
+
//# sourceMappingURL=build-NYCCEFPM.js.map
|
|
@@ -11518,7 +11518,7 @@ var init_tslib_es6 = __esm({
|
|
|
11518
11518
|
});
|
|
11519
11519
|
|
|
11520
11520
|
// package.json
|
|
11521
|
-
var version = "1.1.
|
|
11521
|
+
var version = "1.1.58";
|
|
11522
11522
|
|
|
11523
11523
|
// ../cli-error/src/cli-error.ts
|
|
11524
11524
|
init_esm_shims();
|
|
@@ -22209,13 +22209,30 @@ var ErrorDetails = ({
|
|
|
22209
22209
|
hint
|
|
22210
22210
|
}) => /* @__PURE__ */ import_react58.default.createElement(Box_default, { flexDirection: "column" }, /* @__PURE__ */ import_react58.default.createElement(Alert, { type: "error" }, message), explanation && /* @__PURE__ */ import_react58.default.createElement(Alert, { type: "warning" }, explanation), hint && /* @__PURE__ */ import_react58.default.createElement(Box_default, { paddingTop: 1 }, /* @__PURE__ */ import_react58.default.createElement(Alert, { type: "insight" }, hint)));
|
|
22211
22211
|
|
|
22212
|
+
// ../cli-ui-kit/src/components/Notification.tsx
|
|
22213
|
+
init_esm_shims();
|
|
22214
|
+
var import_react59 = __toESM(require_react(), 1);
|
|
22215
|
+
var Notification = ({ children }) => {
|
|
22216
|
+
return /* @__PURE__ */ import_react59.default.createElement(Box_default, null, /* @__PURE__ */ import_react59.default.createElement(
|
|
22217
|
+
Box_default,
|
|
22218
|
+
{
|
|
22219
|
+
padding: 1,
|
|
22220
|
+
alignItems: "center",
|
|
22221
|
+
flexDirection: "column",
|
|
22222
|
+
borderColor: "yellowBright",
|
|
22223
|
+
borderStyle: "round"
|
|
22224
|
+
},
|
|
22225
|
+
children
|
|
22226
|
+
));
|
|
22227
|
+
};
|
|
22228
|
+
|
|
22212
22229
|
// ../cli-ui-kit/src/hooks/use-async.ts
|
|
22213
22230
|
init_esm_shims();
|
|
22214
22231
|
var import_variant14 = __toESM(require_lib(), 1);
|
|
22215
22232
|
|
|
22216
22233
|
// ../../node_modules/react-async-hook/dist/react-async-hook.esm.js
|
|
22217
22234
|
init_esm_shims();
|
|
22218
|
-
var
|
|
22235
|
+
var import_react60 = __toESM(require_react());
|
|
22219
22236
|
function _extends() {
|
|
22220
22237
|
_extends = Object.assign || function(target) {
|
|
22221
22238
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
@@ -22232,13 +22249,13 @@ function _extends() {
|
|
|
22232
22249
|
}
|
|
22233
22250
|
var _iteratorSymbol = typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
22234
22251
|
var _asyncIteratorSymbol = typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
22235
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined" ?
|
|
22252
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined" ? import_react60.useLayoutEffect : import_react60.useEffect;
|
|
22236
22253
|
var useGetter = function useGetter2(t3) {
|
|
22237
|
-
var ref = (0,
|
|
22254
|
+
var ref = (0, import_react60.useRef)(t3);
|
|
22238
22255
|
useIsomorphicLayoutEffect(function() {
|
|
22239
22256
|
ref.current = t3;
|
|
22240
22257
|
});
|
|
22241
|
-
return (0,
|
|
22258
|
+
return (0, import_react60.useCallback)(function() {
|
|
22242
22259
|
return ref.current;
|
|
22243
22260
|
}, [ref]);
|
|
22244
22261
|
};
|
|
@@ -22291,22 +22308,22 @@ var normalizeOptions = function normalizeOptions2(options) {
|
|
|
22291
22308
|
return _extends({}, DefaultOptions, {}, options);
|
|
22292
22309
|
};
|
|
22293
22310
|
var useAsyncState = function useAsyncState2(options) {
|
|
22294
|
-
var _useState = (0,
|
|
22311
|
+
var _useState = (0, import_react60.useState)(function() {
|
|
22295
22312
|
return options.initialState(options);
|
|
22296
22313
|
}), value2 = _useState[0], setValue = _useState[1];
|
|
22297
|
-
var reset = (0,
|
|
22314
|
+
var reset = (0, import_react60.useCallback)(function() {
|
|
22298
22315
|
return setValue(options.initialState(options));
|
|
22299
22316
|
}, [setValue, options]);
|
|
22300
|
-
var setLoading = (0,
|
|
22317
|
+
var setLoading = (0, import_react60.useCallback)(function() {
|
|
22301
22318
|
return setValue(options.setLoading(value2));
|
|
22302
22319
|
}, [value2, setValue]);
|
|
22303
|
-
var setResult = (0,
|
|
22320
|
+
var setResult = (0, import_react60.useCallback)(function(result) {
|
|
22304
22321
|
return setValue(options.setResult(result, value2));
|
|
22305
22322
|
}, [value2, setValue]);
|
|
22306
|
-
var setError = (0,
|
|
22323
|
+
var setError = (0, import_react60.useCallback)(function(error) {
|
|
22307
22324
|
return setValue(options.setError(error, value2));
|
|
22308
22325
|
}, [value2, setValue]);
|
|
22309
|
-
var merge = (0,
|
|
22326
|
+
var merge = (0, import_react60.useCallback)(function(state) {
|
|
22310
22327
|
return setValue(_extends({}, value2, {}, state));
|
|
22311
22328
|
}, [value2, setValue]);
|
|
22312
22329
|
return {
|
|
@@ -22320,8 +22337,8 @@ var useAsyncState = function useAsyncState2(options) {
|
|
|
22320
22337
|
};
|
|
22321
22338
|
};
|
|
22322
22339
|
var useIsMounted = function useIsMounted2() {
|
|
22323
|
-
var ref = (0,
|
|
22324
|
-
(0,
|
|
22340
|
+
var ref = (0, import_react60.useRef)(false);
|
|
22341
|
+
(0, import_react60.useEffect)(function() {
|
|
22325
22342
|
ref.current = true;
|
|
22326
22343
|
return function() {
|
|
22327
22344
|
ref.current = false;
|
|
@@ -22332,7 +22349,7 @@ var useIsMounted = function useIsMounted2() {
|
|
|
22332
22349
|
};
|
|
22333
22350
|
};
|
|
22334
22351
|
var useCurrentPromise = function useCurrentPromise2() {
|
|
22335
|
-
var ref = (0,
|
|
22352
|
+
var ref = (0, import_react60.useRef)(null);
|
|
22336
22353
|
return {
|
|
22337
22354
|
set: function set(promise) {
|
|
22338
22355
|
return ref.current = promise;
|
|
@@ -22348,7 +22365,7 @@ var useCurrentPromise = function useCurrentPromise2() {
|
|
|
22348
22365
|
var useAsyncInternal = function useAsyncInternal2(asyncFunction, params, options) {
|
|
22349
22366
|
!params && (params = []);
|
|
22350
22367
|
var normalizedOptions = normalizeOptions(options);
|
|
22351
|
-
var _useState2 = (0,
|
|
22368
|
+
var _useState2 = (0, import_react60.useState)(null), currentParams = _useState2[0], setCurrentParams = _useState2[1];
|
|
22352
22369
|
var AsyncState = useAsyncState(normalizedOptions);
|
|
22353
22370
|
var isMounted = useIsMounted();
|
|
22354
22371
|
var CurrentPromise = useCurrentPromise();
|
|
@@ -22391,11 +22408,11 @@ var useAsyncInternal = function useAsyncInternal2(asyncFunction, params, options
|
|
|
22391
22408
|
return promise;
|
|
22392
22409
|
};
|
|
22393
22410
|
var getLatestExecuteAsyncOperation = useGetter(executeAsyncOperation);
|
|
22394
|
-
var executeAsyncOperationMemo = (0,
|
|
22411
|
+
var executeAsyncOperationMemo = (0, import_react60.useCallback)(function() {
|
|
22395
22412
|
return getLatestExecuteAsyncOperation().apply(void 0, arguments);
|
|
22396
22413
|
}, [getLatestExecuteAsyncOperation]);
|
|
22397
22414
|
var isMounting = !isMounted();
|
|
22398
|
-
(0,
|
|
22415
|
+
(0, import_react60.useEffect)(function() {
|
|
22399
22416
|
var execute = function execute2() {
|
|
22400
22417
|
return getLatestExecuteAsyncOperation().apply(void 0, params);
|
|
22401
22418
|
};
|
|
@@ -22428,7 +22445,7 @@ var useAsyncCallback = function useAsyncCallback2(asyncFunction, options) {
|
|
|
22428
22445
|
};
|
|
22429
22446
|
|
|
22430
22447
|
// ../cli-ui-kit/src/hooks/use-async.ts
|
|
22431
|
-
var
|
|
22448
|
+
var import_react61 = __toESM(require_react(), 1);
|
|
22432
22449
|
var AsyncStatus = (0, import_variant14.variant)(
|
|
22433
22450
|
(0, import_variant14.onTerms)(({ T: _T }) => ({
|
|
22434
22451
|
Error: (error) => ({ error }),
|
|
@@ -22446,7 +22463,7 @@ var AsyncCallbackStatus = (0, import_variant14.variant)(
|
|
|
22446
22463
|
);
|
|
22447
22464
|
var useAsync2 = (fn, args, options) => {
|
|
22448
22465
|
const exit = useExit();
|
|
22449
|
-
const abortController = (0,
|
|
22466
|
+
const abortController = (0, import_react61.useMemo)(() => new AbortController(), []);
|
|
22450
22467
|
const { result, error, status, merge } = useAsync(
|
|
22451
22468
|
fn.bind(null, { signal: abortController.signal }),
|
|
22452
22469
|
args,
|
|
@@ -22455,7 +22472,7 @@ var useAsync2 = (fn, args, options) => {
|
|
|
22455
22472
|
...options ?? {}
|
|
22456
22473
|
}
|
|
22457
22474
|
);
|
|
22458
|
-
(0,
|
|
22475
|
+
(0, import_react61.useEffect)(() => {
|
|
22459
22476
|
return () => {
|
|
22460
22477
|
abortController.abort();
|
|
22461
22478
|
};
|
|
@@ -22475,7 +22492,7 @@ var useAsync2 = (fn, args, options) => {
|
|
|
22475
22492
|
};
|
|
22476
22493
|
var useAsyncCallback3 = (fn, options) => {
|
|
22477
22494
|
const exit = useExit();
|
|
22478
|
-
const abortController = (0,
|
|
22495
|
+
const abortController = (0, import_react61.useMemo)(() => new AbortController(), []);
|
|
22479
22496
|
const { result, error, status, merge, execute } = useAsyncCallback(
|
|
22480
22497
|
fn.bind(null, { signal: abortController.signal }),
|
|
22481
22498
|
{
|
|
@@ -22483,7 +22500,7 @@ var useAsyncCallback3 = (fn, options) => {
|
|
|
22483
22500
|
...options ?? {}
|
|
22484
22501
|
}
|
|
22485
22502
|
);
|
|
22486
|
-
(0,
|
|
22503
|
+
(0, import_react61.useEffect)(() => {
|
|
22487
22504
|
return () => {
|
|
22488
22505
|
abortController.abort();
|
|
22489
22506
|
};
|
|
@@ -22513,18 +22530,18 @@ var useAsyncCallback3 = (fn, options) => {
|
|
|
22513
22530
|
|
|
22514
22531
|
// ../cli-i18n/src/I18nProvider.tsx
|
|
22515
22532
|
init_esm_shims();
|
|
22516
|
-
var
|
|
22533
|
+
var import_react70 = __toESM(require_react(), 1);
|
|
22517
22534
|
|
|
22518
22535
|
// ../../node_modules/react-i18next/dist/es/index.js
|
|
22519
22536
|
init_esm_shims();
|
|
22520
22537
|
|
|
22521
22538
|
// ../../node_modules/react-i18next/dist/es/Trans.js
|
|
22522
22539
|
init_esm_shims();
|
|
22523
|
-
var
|
|
22540
|
+
var import_react64 = __toESM(require_react(), 1);
|
|
22524
22541
|
|
|
22525
22542
|
// ../../node_modules/react-i18next/dist/es/TransWithoutContext.js
|
|
22526
22543
|
init_esm_shims();
|
|
22527
|
-
var
|
|
22544
|
+
var import_react62 = __toESM(require_react(), 1);
|
|
22528
22545
|
|
|
22529
22546
|
// ../../node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
|
|
22530
22547
|
init_esm_shims();
|
|
@@ -22739,7 +22756,7 @@ var getChildren = (node) => {
|
|
|
22739
22756
|
const children = node.props ? node.props.children : node.children;
|
|
22740
22757
|
return node.props && node.props.i18nIsDynamicList ? getAsArray(children) : children;
|
|
22741
22758
|
};
|
|
22742
|
-
var hasValidReactChildren = (children) => Array.isArray(children) && children.every(
|
|
22759
|
+
var hasValidReactChildren = (children) => Array.isArray(children) && children.every(import_react62.isValidElement);
|
|
22743
22760
|
var getAsArray = (data) => Array.isArray(data) ? data : [data];
|
|
22744
22761
|
var mergeProps = (source, target) => {
|
|
22745
22762
|
const newTarget = {
|
|
@@ -22756,7 +22773,7 @@ var nodesToString = (children, i18nOptions) => {
|
|
|
22756
22773
|
childrenArray.forEach((child, childIndex) => {
|
|
22757
22774
|
if (isString(child)) {
|
|
22758
22775
|
stringNode += `${child}`;
|
|
22759
|
-
} else if ((0,
|
|
22776
|
+
} else if ((0, import_react62.isValidElement)(child)) {
|
|
22760
22777
|
const {
|
|
22761
22778
|
props,
|
|
22762
22779
|
type
|
|
@@ -22805,7 +22822,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
22805
22822
|
childrenArray.forEach((child) => {
|
|
22806
22823
|
if (isString(child)) return;
|
|
22807
22824
|
if (hasChildren(child)) getData(getChildren(child));
|
|
22808
|
-
else if (isObject(child) && !(0,
|
|
22825
|
+
else if (isObject(child) && !(0, import_react62.isValidElement)(child)) Object.assign(data, child);
|
|
22809
22826
|
});
|
|
22810
22827
|
};
|
|
22811
22828
|
getData(children);
|
|
@@ -22822,16 +22839,16 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
22822
22839
|
const pushTranslatedJSX = (child, inner, mem, i2, isVoid) => {
|
|
22823
22840
|
if (child.dummy) {
|
|
22824
22841
|
child.children = inner;
|
|
22825
|
-
mem.push((0,
|
|
22842
|
+
mem.push((0, import_react62.cloneElement)(child, {
|
|
22826
22843
|
key: i2
|
|
22827
22844
|
}, isVoid ? void 0 : inner));
|
|
22828
22845
|
} else {
|
|
22829
|
-
mem.push(...
|
|
22846
|
+
mem.push(...import_react62.Children.map([child], (c2) => {
|
|
22830
22847
|
const props = {
|
|
22831
22848
|
...c2.props
|
|
22832
22849
|
};
|
|
22833
22850
|
delete props.i18nIsDynamicList;
|
|
22834
|
-
return (0,
|
|
22851
|
+
return (0, import_react62.createElement)(c2.type, {
|
|
22835
22852
|
...props,
|
|
22836
22853
|
key: i2,
|
|
22837
22854
|
ref: c2.ref
|
|
@@ -22851,7 +22868,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
22851
22868
|
const child = Object.keys(node.attrs).length !== 0 ? mergeProps({
|
|
22852
22869
|
props: node.attrs
|
|
22853
22870
|
}, tmp) : tmp;
|
|
22854
|
-
const isElement = (0,
|
|
22871
|
+
const isElement = (0, import_react62.isValidElement)(child);
|
|
22855
22872
|
const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
|
|
22856
22873
|
const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && isObject(child) && child.dummy && !isElement;
|
|
22857
22874
|
const isKnownComponent = isObject(children) && Object.hasOwnProperty.call(children, node.name);
|
|
@@ -22870,12 +22887,12 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
22870
22887
|
pushTranslatedJSX(child, inner, mem, i2, node.voidElement);
|
|
22871
22888
|
} else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
|
|
22872
22889
|
if (node.voidElement) {
|
|
22873
|
-
mem.push((0,
|
|
22890
|
+
mem.push((0, import_react62.createElement)(node.name, {
|
|
22874
22891
|
key: `${node.name}-${i2}`
|
|
22875
22892
|
}));
|
|
22876
22893
|
} else {
|
|
22877
22894
|
const inner = mapAST(reactNodes, node.children, rootReactNode);
|
|
22878
|
-
mem.push((0,
|
|
22895
|
+
mem.push((0, import_react62.createElement)(node.name, {
|
|
22879
22896
|
key: `${node.name}-${i2}`
|
|
22880
22897
|
}, inner));
|
|
22881
22898
|
}
|
|
@@ -22895,7 +22912,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
22895
22912
|
const wrapTextNodes = i18nOptions.transWrapTextNodes;
|
|
22896
22913
|
const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
|
|
22897
22914
|
if (wrapTextNodes) {
|
|
22898
|
-
mem.push((0,
|
|
22915
|
+
mem.push((0, import_react62.createElement)(wrapTextNodes, {
|
|
22899
22916
|
key: `${node.name}-${i2}`
|
|
22900
22917
|
}, content));
|
|
22901
22918
|
} else {
|
|
@@ -22976,19 +22993,19 @@ function Trans(_ref) {
|
|
|
22976
22993
|
const comp = components[c2];
|
|
22977
22994
|
if (typeof comp.type === "function" || !comp.props || !comp.props.children || translation.indexOf(`${c2}/>`) < 0 && translation.indexOf(`${c2} />`) < 0) return;
|
|
22978
22995
|
function Componentized() {
|
|
22979
|
-
return (0,
|
|
22996
|
+
return (0, import_react62.createElement)(import_react62.Fragment, null, comp);
|
|
22980
22997
|
}
|
|
22981
|
-
components[c2] = (0,
|
|
22998
|
+
components[c2] = (0, import_react62.createElement)(Componentized);
|
|
22982
22999
|
});
|
|
22983
23000
|
}
|
|
22984
23001
|
const content = renderNodes(components || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
|
|
22985
23002
|
const useAsParent = parent !== void 0 ? parent : reactI18nextOptions.defaultTransParent;
|
|
22986
|
-
return useAsParent ? (0,
|
|
23003
|
+
return useAsParent ? (0, import_react62.createElement)(useAsParent, additionalProps, content) : content;
|
|
22987
23004
|
}
|
|
22988
23005
|
|
|
22989
23006
|
// ../../node_modules/react-i18next/dist/es/context.js
|
|
22990
23007
|
init_esm_shims();
|
|
22991
|
-
var
|
|
23008
|
+
var import_react63 = __toESM(require_react(), 1);
|
|
22992
23009
|
|
|
22993
23010
|
// ../../node_modules/react-i18next/dist/es/initReactI18next.js
|
|
22994
23011
|
init_esm_shims();
|
|
@@ -23001,7 +23018,7 @@ var initReactI18next = {
|
|
|
23001
23018
|
};
|
|
23002
23019
|
|
|
23003
23020
|
// ../../node_modules/react-i18next/dist/es/context.js
|
|
23004
|
-
var I18nContext = (0,
|
|
23021
|
+
var I18nContext = (0, import_react63.createContext)();
|
|
23005
23022
|
var ReportNamespaces = class {
|
|
23006
23023
|
constructor() {
|
|
23007
23024
|
this.usedNamespaces = {};
|
|
@@ -23035,7 +23052,7 @@ function Trans2(_ref) {
|
|
|
23035
23052
|
const {
|
|
23036
23053
|
i18n: i18nFromContext,
|
|
23037
23054
|
defaultNS: defaultNSFromContext
|
|
23038
|
-
} = (0,
|
|
23055
|
+
} = (0, import_react64.useContext)(I18nContext) || {};
|
|
23039
23056
|
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
|
23040
23057
|
const t3 = tFromProps || i18n && i18n.t.bind(i18n);
|
|
23041
23058
|
return Trans({
|
|
@@ -23058,16 +23075,16 @@ function Trans2(_ref) {
|
|
|
23058
23075
|
|
|
23059
23076
|
// ../../node_modules/react-i18next/dist/es/useTranslation.js
|
|
23060
23077
|
init_esm_shims();
|
|
23061
|
-
var
|
|
23078
|
+
var import_react65 = __toESM(require_react(), 1);
|
|
23062
23079
|
var usePrevious = (value2, ignore) => {
|
|
23063
|
-
const ref = (0,
|
|
23064
|
-
(0,
|
|
23080
|
+
const ref = (0, import_react65.useRef)();
|
|
23081
|
+
(0, import_react65.useEffect)(() => {
|
|
23065
23082
|
ref.current = ignore ? ref.current : value2;
|
|
23066
23083
|
}, [value2, ignore]);
|
|
23067
23084
|
return ref.current;
|
|
23068
23085
|
};
|
|
23069
23086
|
var alwaysNewT = (i18n, language, namespace, keyPrefix) => i18n.getFixedT(language, namespace, keyPrefix);
|
|
23070
|
-
var useMemoizedT = (i18n, language, namespace, keyPrefix) => (0,
|
|
23087
|
+
var useMemoizedT = (i18n, language, namespace, keyPrefix) => (0, import_react65.useCallback)(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
|
|
23071
23088
|
var useTranslation = function(ns) {
|
|
23072
23089
|
let props = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
23073
23090
|
const {
|
|
@@ -23076,7 +23093,7 @@ var useTranslation = function(ns) {
|
|
|
23076
23093
|
const {
|
|
23077
23094
|
i18n: i18nFromContext,
|
|
23078
23095
|
defaultNS: defaultNSFromContext
|
|
23079
|
-
} = (0,
|
|
23096
|
+
} = (0, import_react65.useContext)(I18nContext) || {};
|
|
23080
23097
|
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
|
23081
23098
|
if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
|
|
23082
23099
|
if (!i18n) {
|
|
@@ -23109,12 +23126,12 @@ var useTranslation = function(ns) {
|
|
|
23109
23126
|
const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
23110
23127
|
const getT = () => memoGetT;
|
|
23111
23128
|
const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
23112
|
-
const [t3, setT] = (0,
|
|
23129
|
+
const [t3, setT] = (0, import_react65.useState)(getT);
|
|
23113
23130
|
let joinedNS = namespaces.join();
|
|
23114
23131
|
if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
|
|
23115
23132
|
const previousJoinedNS = usePrevious(joinedNS);
|
|
23116
|
-
const isMounted = (0,
|
|
23117
|
-
(0,
|
|
23133
|
+
const isMounted = (0, import_react65.useRef)(true);
|
|
23134
|
+
(0, import_react65.useEffect)(() => {
|
|
23118
23135
|
const {
|
|
23119
23136
|
bindI18n,
|
|
23120
23137
|
bindI18nStore
|
|
@@ -23145,7 +23162,7 @@ var useTranslation = function(ns) {
|
|
|
23145
23162
|
if (bindI18nStore && i18n) bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, boundReset));
|
|
23146
23163
|
};
|
|
23147
23164
|
}, [i18n, joinedNS]);
|
|
23148
|
-
(0,
|
|
23165
|
+
(0, import_react65.useEffect)(() => {
|
|
23149
23166
|
if (isMounted.current && ready) {
|
|
23150
23167
|
setT(getT);
|
|
23151
23168
|
}
|
|
@@ -23167,36 +23184,36 @@ var useTranslation = function(ns) {
|
|
|
23167
23184
|
|
|
23168
23185
|
// ../../node_modules/react-i18next/dist/es/withTranslation.js
|
|
23169
23186
|
init_esm_shims();
|
|
23170
|
-
var
|
|
23187
|
+
var import_react66 = __toESM(require_react(), 1);
|
|
23171
23188
|
|
|
23172
23189
|
// ../../node_modules/react-i18next/dist/es/Translation.js
|
|
23173
23190
|
init_esm_shims();
|
|
23174
23191
|
|
|
23175
23192
|
// ../../node_modules/react-i18next/dist/es/I18nextProvider.js
|
|
23176
23193
|
init_esm_shims();
|
|
23177
|
-
var
|
|
23194
|
+
var import_react67 = __toESM(require_react(), 1);
|
|
23178
23195
|
function I18nextProvider(_ref) {
|
|
23179
23196
|
let {
|
|
23180
23197
|
i18n,
|
|
23181
23198
|
defaultNS,
|
|
23182
23199
|
children
|
|
23183
23200
|
} = _ref;
|
|
23184
|
-
const value2 = (0,
|
|
23201
|
+
const value2 = (0, import_react67.useMemo)(() => ({
|
|
23185
23202
|
i18n,
|
|
23186
23203
|
defaultNS
|
|
23187
23204
|
}), [i18n, defaultNS]);
|
|
23188
|
-
return (0,
|
|
23205
|
+
return (0, import_react67.createElement)(I18nContext.Provider, {
|
|
23189
23206
|
value: value2
|
|
23190
23207
|
}, children);
|
|
23191
23208
|
}
|
|
23192
23209
|
|
|
23193
23210
|
// ../../node_modules/react-i18next/dist/es/withSSR.js
|
|
23194
23211
|
init_esm_shims();
|
|
23195
|
-
var
|
|
23212
|
+
var import_react69 = __toESM(require_react(), 1);
|
|
23196
23213
|
|
|
23197
23214
|
// ../../node_modules/react-i18next/dist/es/useSSR.js
|
|
23198
23215
|
init_esm_shims();
|
|
23199
|
-
var
|
|
23216
|
+
var import_react68 = __toESM(require_react(), 1);
|
|
23200
23217
|
|
|
23201
23218
|
// ../cli-i18n/src/create-i18n.ts
|
|
23202
23219
|
init_esm_shims();
|
|
@@ -29120,8 +29137,8 @@ var I18nProvider = ({
|
|
|
29120
29137
|
messages,
|
|
29121
29138
|
i18n: initialI18n
|
|
29122
29139
|
}) => {
|
|
29123
|
-
const [i18n] = (0,
|
|
29124
|
-
return /* @__PURE__ */
|
|
29140
|
+
const [i18n] = (0, import_react70.useState)(() => initialI18n ?? createI18n(messages));
|
|
29141
|
+
return /* @__PURE__ */ import_react70.default.createElement(I18nextProvider, { i18n }, children);
|
|
29125
29142
|
};
|
|
29126
29143
|
|
|
29127
29144
|
// ../cli-i18n/src/index.ts
|
|
@@ -29171,6 +29188,7 @@ export {
|
|
|
29171
29188
|
Link,
|
|
29172
29189
|
Spinner2 as Spinner,
|
|
29173
29190
|
ErrorDetails,
|
|
29191
|
+
Notification,
|
|
29174
29192
|
useExit,
|
|
29175
29193
|
AsyncCallbackStatus,
|
|
29176
29194
|
useAsync2 as useAsync,
|
|
@@ -29228,4 +29246,4 @@ react-reconciler/cjs/react-reconciler-constants.production.min.js:
|
|
|
29228
29246
|
* LICENSE file in the root directory of this source tree.
|
|
29229
29247
|
*)
|
|
29230
29248
|
*/
|
|
29231
|
-
//# sourceMappingURL=chunk-
|
|
29249
|
+
//# sourceMappingURL=chunk-2ROHQF53.js.map
|