@wix/create-headless-site 0.0.7 → 0.0.9
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/{build-LO6DVUZE.js → build-6IMWAXMA.js} +3 -3
- package/build/{chunk-PYIAC2GK.js → chunk-4EFJZ3GQ.js} +3 -3
- package/build/chunk-4EFJZ3GQ.js.map +1 -0
- package/build/{chunk-XMTHMR2B.js → chunk-C4SUTB4O.js} +2 -2
- package/build/{chunk-XMTHMR2B.js.map → chunk-C4SUTB4O.js.map} +1 -1
- package/build/{chunk-YU54OBFT.js → chunk-Z4MHKCET.js} +2 -2
- package/build/{devtools-JB2HYTEA.js → devtools-ZMIKPDMD.js} +2 -2
- package/build/{esm-CPSMWZLI.js → esm-KPR2HWDF.js} +4 -4
- package/build/{esm-CPSMWZLI.js.map → esm-KPR2HWDF.js.map} +1 -1
- package/build/index.js +408 -108
- package/build/index.js.map +1 -1
- package/package.json +4 -4
- package/build/chunk-PYIAC2GK.js.map +0 -1
- /package/build/{build-LO6DVUZE.js.map → build-6IMWAXMA.js.map} +0 -0
- /package/build/{chunk-YU54OBFT.js.map → chunk-Z4MHKCET.js.map} +0 -0
- /package/build/{devtools-JB2HYTEA.js.map → devtools-ZMIKPDMD.js.map} +0 -0
package/build/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
metrics,
|
|
24
24
|
propagation,
|
|
25
25
|
trace
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Z4MHKCET.js";
|
|
27
27
|
import {
|
|
28
28
|
LRUMap,
|
|
29
29
|
SDK_VERSION,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
stripUrlQueryAndFragment,
|
|
74
74
|
suppressTracing,
|
|
75
75
|
truncate
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-C4SUTB4O.js";
|
|
77
77
|
import {
|
|
78
78
|
__commonJS,
|
|
79
79
|
__dirname,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
__toCommonJS,
|
|
84
84
|
__toESM,
|
|
85
85
|
init_esm_shims
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-4EFJZ3GQ.js";
|
|
87
87
|
|
|
88
88
|
// ../../node_modules/react/cjs/react.production.min.js
|
|
89
89
|
var require_react_production_min = __commonJS({
|
|
@@ -6919,12 +6919,12 @@ var require_isType = __commonJS({
|
|
|
6919
6919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6920
6920
|
exports.isTypeImpl = void 0;
|
|
6921
6921
|
function isTypeImpl(key) {
|
|
6922
|
-
function
|
|
6922
|
+
function isType13(instanceOrType, type) {
|
|
6923
6923
|
if (instanceOrType != void 0) {
|
|
6924
6924
|
if (typeof instanceOrType === "function" || typeof instanceOrType === "string") {
|
|
6925
6925
|
const typeArg = instanceOrType;
|
|
6926
6926
|
const typeStr = typeof typeArg === "string" ? typeArg : typeArg.output.type;
|
|
6927
|
-
return (o) =>
|
|
6927
|
+
return (o) => isType13(o, typeStr);
|
|
6928
6928
|
} else {
|
|
6929
6929
|
const instance2 = instanceOrType;
|
|
6930
6930
|
const typeStr = typeof type === "string" ? type : type.output.type;
|
|
@@ -6934,7 +6934,7 @@ var require_isType = __commonJS({
|
|
|
6934
6934
|
return false;
|
|
6935
6935
|
}
|
|
6936
6936
|
}
|
|
6937
|
-
return { isType:
|
|
6937
|
+
return { isType: isType13 };
|
|
6938
6938
|
}
|
|
6939
6939
|
exports.isTypeImpl = isTypeImpl;
|
|
6940
6940
|
}
|
|
@@ -7201,13 +7201,13 @@ var require_remote = __commonJS({
|
|
|
7201
7201
|
CompareResult2[CompareResult2["Greater"] = 1] = "Greater";
|
|
7202
7202
|
})(CompareResult = exports.CompareResult || (exports.CompareResult = {}));
|
|
7203
7203
|
function remoteImpl(key) {
|
|
7204
|
-
const { isType:
|
|
7204
|
+
const { isType: isType13 } = (0, isType_1.isTypeImpl)(key);
|
|
7205
7205
|
const { match: match20 } = (0, match_1.matchImpl)(key);
|
|
7206
7206
|
const { variantList } = (0, variant_1.variantImpl)(key);
|
|
7207
7207
|
function isFunctions(vmod) {
|
|
7208
7208
|
const keys = Object.keys(vmod);
|
|
7209
7209
|
return keys.reduce((acc, key2) => {
|
|
7210
|
-
return Object.assign(Object.assign({}, acc), { [key2]:
|
|
7210
|
+
return Object.assign(Object.assign({}, acc), { [key2]: isType13(key2) });
|
|
7211
7211
|
}, {});
|
|
7212
7212
|
}
|
|
7213
7213
|
function remote(vmod) {
|
|
@@ -7475,11 +7475,11 @@ var require_cosmos = __commonJS({
|
|
|
7475
7475
|
var typed_1 = require_typed();
|
|
7476
7476
|
var matcher_1 = require_matcher();
|
|
7477
7477
|
function variantCosmos({ key }) {
|
|
7478
|
-
const { isType:
|
|
7478
|
+
const { isType: isType13 } = (0, isType_1.isTypeImpl)(key);
|
|
7479
7479
|
const { flags } = (0, flags_1.flagsImpl)(key);
|
|
7480
7480
|
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
7481
7481
|
key,
|
|
7482
|
-
isType:
|
|
7482
|
+
isType: isType13,
|
|
7483
7483
|
flags
|
|
7484
7484
|
}, (0, isOfVariant_1.isOfVariantImpl)(key)), (0, match_1.matchImpl)(key)), (0, matcher_1.matcherImpl)(key)), (0, remote_1.remoteImpl)(key)), (0, typed_1.typedImpl)(key)), (0, types_1.typesImpl)(key)), (0, variant_1.variantImpl)(key));
|
|
7485
7485
|
}
|
|
@@ -8125,12 +8125,12 @@ var require_lodash = __commonJS({
|
|
|
8125
8125
|
Stack.prototype.has = stackHas;
|
|
8126
8126
|
Stack.prototype.set = stackSet;
|
|
8127
8127
|
function arrayLikeKeys(value2, inherited) {
|
|
8128
|
-
var isArr = isArray3(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2),
|
|
8128
|
+
var isArr = isArray3(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType13 = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType13, result = skipIndexes ? baseTimes(value2.length, String) : [], length = result.length;
|
|
8129
8129
|
for (var key in value2) {
|
|
8130
8130
|
if ((inherited || hasOwnProperty3.call(value2, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
8131
8131
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
8132
8132
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
8133
|
-
|
|
8133
|
+
isType13 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
8134
8134
|
isIndex(key, length)))) {
|
|
8135
8135
|
result.push(key);
|
|
8136
8136
|
}
|
|
@@ -10651,6 +10651,7 @@ var require_extsprintf = __commonJS({
|
|
|
10651
10651
|
break;
|
|
10652
10652
|
case "d":
|
|
10653
10653
|
arg = Math.floor(arg);
|
|
10654
|
+
/*jsl:fallthru*/
|
|
10654
10655
|
case "f":
|
|
10655
10656
|
sign = sign && arg > 0 ? "+" : "";
|
|
10656
10657
|
ret += sign + doPad(
|
|
@@ -14249,6 +14250,7 @@ var require_http = __commonJS({
|
|
|
14249
14250
|
var lastRequest = res.req || req;
|
|
14250
14251
|
if (res.statusCode !== 204 && lastRequest.method !== "HEAD" && config.decompress !== false) {
|
|
14251
14252
|
switch (res.headers["content-encoding"]) {
|
|
14253
|
+
/*eslint default-case:0*/
|
|
14252
14254
|
case "gzip":
|
|
14253
14255
|
case "compress":
|
|
14254
14256
|
case "deflate":
|
|
@@ -18204,6 +18206,8 @@ var require_semver = __commonJS({
|
|
|
18204
18206
|
this.inc("patch", identifier, identifierBase);
|
|
18205
18207
|
this.inc("pre", identifier, identifierBase);
|
|
18206
18208
|
break;
|
|
18209
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
18210
|
+
// prepatch.
|
|
18207
18211
|
case "prerelease":
|
|
18208
18212
|
if (this.prerelease.length === 0) {
|
|
18209
18213
|
this.inc("patch", identifier, identifierBase);
|
|
@@ -18237,6 +18241,8 @@ var require_semver = __commonJS({
|
|
|
18237
18241
|
}
|
|
18238
18242
|
this.prerelease = [];
|
|
18239
18243
|
break;
|
|
18244
|
+
// This probably shouldn't be used publicly.
|
|
18245
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
18240
18246
|
case "pre": {
|
|
18241
18247
|
const base = Number(identifierBase) ? 1 : 0;
|
|
18242
18248
|
if (this.prerelease.length === 0) {
|
|
@@ -19338,6 +19344,7 @@ var require_min_version = __commonJS({
|
|
|
19338
19344
|
compver.prerelease.push(0);
|
|
19339
19345
|
}
|
|
19340
19346
|
compver.raw = compver.format();
|
|
19347
|
+
/* fallthrough */
|
|
19341
19348
|
case "":
|
|
19342
19349
|
case ">=":
|
|
19343
19350
|
if (!setMin || gt(compver, setMin)) {
|
|
@@ -19347,6 +19354,7 @@ var require_min_version = __commonJS({
|
|
|
19347
19354
|
case "<":
|
|
19348
19355
|
case "<=":
|
|
19349
19356
|
break;
|
|
19357
|
+
/* istanbul ignore next */
|
|
19350
19358
|
default:
|
|
19351
19359
|
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
19352
19360
|
}
|
|
@@ -41954,6 +41962,7 @@ var require_util3 = __commonJS({
|
|
|
41954
41962
|
return true;
|
|
41955
41963
|
}
|
|
41956
41964
|
switch (field) {
|
|
41965
|
+
// eslint-disable-line default-case
|
|
41957
41966
|
case "true": {
|
|
41958
41967
|
return true;
|
|
41959
41968
|
}
|
|
@@ -43807,12 +43816,12 @@ var require_lodash2 = __commonJS({
|
|
|
43807
43816
|
Stack.prototype.has = stackHas;
|
|
43808
43817
|
Stack.prototype.set = stackSet;
|
|
43809
43818
|
function arrayLikeKeys(value2, inherited) {
|
|
43810
|
-
var isArr = isArray3(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2),
|
|
43819
|
+
var isArr = isArray3(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType13 = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType13, result2 = skipIndexes ? baseTimes(value2.length, String2) : [], length = result2.length;
|
|
43811
43820
|
for (var key in value2) {
|
|
43812
43821
|
if ((inherited || hasOwnProperty3.call(value2, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
43813
43822
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
43814
43823
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
43815
|
-
|
|
43824
|
+
isType13 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
43816
43825
|
isIndex(key, length)))) {
|
|
43817
43826
|
result2.push(key);
|
|
43818
43827
|
}
|
|
@@ -48934,17 +48943,21 @@ var require_ejs = __commonJS({
|
|
|
48934
48943
|
}
|
|
48935
48944
|
}
|
|
48936
48945
|
switch (this.mode) {
|
|
48946
|
+
// Just executing code
|
|
48937
48947
|
case Template.modes.EVAL:
|
|
48938
48948
|
this.source += " ; " + line + "\n";
|
|
48939
48949
|
break;
|
|
48950
|
+
// Exec, esc, and output
|
|
48940
48951
|
case Template.modes.ESCAPED:
|
|
48941
48952
|
this.source += " ; __append(escapeFn(" + stripSemi(line) + "))\n";
|
|
48942
48953
|
break;
|
|
48954
|
+
// Exec and output
|
|
48943
48955
|
case Template.modes.RAW:
|
|
48944
48956
|
this.source += " ; __append(" + stripSemi(line) + ")\n";
|
|
48945
48957
|
break;
|
|
48946
48958
|
case Template.modes.COMMENT:
|
|
48947
48959
|
break;
|
|
48960
|
+
// Literal <%% mode, append as raw output
|
|
48948
48961
|
case Template.modes.LITERAL:
|
|
48949
48962
|
this._addOutput(line);
|
|
48950
48963
|
break;
|
|
@@ -70508,7 +70521,7 @@ var styles_default = styles2;
|
|
|
70508
70521
|
// ../../node_modules/ink/build/reconciler.js
|
|
70509
70522
|
if (process3.env["DEV"] === "true") {
|
|
70510
70523
|
try {
|
|
70511
|
-
await import("./devtools-
|
|
70524
|
+
await import("./devtools-ZMIKPDMD.js");
|
|
70512
70525
|
} catch (error) {
|
|
70513
70526
|
if (error.code === "MODULE_NOT_FOUND") {
|
|
70514
70527
|
console.warn(`
|
|
@@ -73932,6 +73945,7 @@ function SelectInput2({
|
|
|
73932
73945
|
info,
|
|
73933
73946
|
options,
|
|
73934
73947
|
isActive,
|
|
73948
|
+
value: value2,
|
|
73935
73949
|
onSubmit,
|
|
73936
73950
|
limit = 10,
|
|
73937
73951
|
initialIndex
|
|
@@ -73940,19 +73954,19 @@ function SelectInput2({
|
|
|
73940
73954
|
throw new Error("SelectInput: options cannot be empty");
|
|
73941
73955
|
}
|
|
73942
73956
|
const [inputState, setInputState] = (0, import_react48.useState)(
|
|
73943
|
-
() => InputState.NotSubmitted()
|
|
73957
|
+
() => value2 ?? InputState.NotSubmitted()
|
|
73944
73958
|
);
|
|
73945
73959
|
const handleHighlight = (0, import_react48.useCallback)(
|
|
73946
|
-
({ value:
|
|
73947
|
-
setInputState(InputState.NotSubmitted(
|
|
73960
|
+
({ value: value3 }) => {
|
|
73961
|
+
setInputState(InputState.NotSubmitted(value3));
|
|
73948
73962
|
},
|
|
73949
73963
|
[]
|
|
73950
73964
|
);
|
|
73951
73965
|
const handleSelect = (0, import_react48.useCallback)(
|
|
73952
|
-
({ value:
|
|
73953
|
-
if (!(0, import_variant7.isType)(
|
|
73954
|
-
setInputState(InputState.Submitted(
|
|
73955
|
-
onSubmit(
|
|
73966
|
+
({ value: value3 }) => {
|
|
73967
|
+
if (!(0, import_variant7.isType)(value3.availability, SelectOptionAvailability.Disabled)) {
|
|
73968
|
+
setInputState(InputState.Submitted(value3));
|
|
73969
|
+
onSubmit(value3);
|
|
73956
73970
|
}
|
|
73957
73971
|
},
|
|
73958
73972
|
[onSubmit]
|
|
@@ -73970,6 +73984,11 @@ function SelectInput2({
|
|
|
73970
73984
|
setInputState(InputState.NotSubmitted(inputState.value));
|
|
73971
73985
|
}
|
|
73972
73986
|
}, [isActive]);
|
|
73987
|
+
(0, import_react48.useEffect)(() => {
|
|
73988
|
+
if (value2) {
|
|
73989
|
+
setInputState(value2);
|
|
73990
|
+
}
|
|
73991
|
+
}, [value2, setInputState]);
|
|
73973
73992
|
return /* @__PURE__ */ import_react48.default.createElement(import_react48.default.Fragment, null, /* @__PURE__ */ import_react48.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react48.default.createElement(Text2, null, /* @__PURE__ */ import_react48.default.createElement(InputLabel, null, label), " ", info && (0, import_variant7.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react48.default.createElement(Text2, { skin: "secondary" }, info))), /* @__PURE__ */ import_react48.default.createElement(Placeholder2, { inputState }), (0, import_variant7.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react48.default.createElement(Box_default, null, /* @__PURE__ */ import_react48.default.createElement(
|
|
73974
73993
|
SelectInput_default,
|
|
73975
73994
|
{
|
|
@@ -78821,6 +78840,7 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
78821
78840
|
UploadApplicationFailed: {},
|
|
78822
78841
|
FailedToCreateDevCenterApp: {},
|
|
78823
78842
|
FailedToCreateDevCenterOAuthApp: {},
|
|
78843
|
+
FailedToUpdateDevCenterOAuthApp: {},
|
|
78824
78844
|
FailedToAddPermission: {},
|
|
78825
78845
|
FailedToGetPlacements: {},
|
|
78826
78846
|
FailedToGetAppSecret: {},
|
|
@@ -79024,7 +79044,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
79024
79044
|
FailedToCleanDistFolder: {},
|
|
79025
79045
|
FailedToIdentifyProgramFlow: (0, import_variant11.fields)(),
|
|
79026
79046
|
BuildOutputMissing: (0, import_variant11.fields)(),
|
|
79027
|
-
FailedToCreateMonitoringVitePlugin: (0, import_variant11.fields)()
|
|
79047
|
+
FailedToCreateMonitoringVitePlugin: (0, import_variant11.fields)(),
|
|
79048
|
+
FailedToSyncVeloCLIServerDocumentUpdate: {}
|
|
79028
79049
|
});
|
|
79029
79050
|
var CliErrorCode = (0, import_variant11.variant)({
|
|
79030
79051
|
...CliSystemErrorCode,
|
|
@@ -79785,6 +79806,12 @@ function resolveComWixpressAccountApiAccountServiceUrl(opts) {
|
|
|
79785
79806
|
srcPath: "/_api/account-server",
|
|
79786
79807
|
destPath: ""
|
|
79787
79808
|
}
|
|
79809
|
+
],
|
|
79810
|
+
"twins._base_domain_": [
|
|
79811
|
+
{
|
|
79812
|
+
srcPath: "/_api/account-server",
|
|
79813
|
+
destPath: ""
|
|
79814
|
+
}
|
|
79788
79815
|
]
|
|
79789
79816
|
};
|
|
79790
79817
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -80258,7 +80285,7 @@ var AuthClient = class {
|
|
|
80258
80285
|
const { data } = await httpClient.request(getMyAccount({}));
|
|
80259
80286
|
return getMyAccountSchema.parse(data).account;
|
|
80260
80287
|
} catch (error) {
|
|
80261
|
-
if (isHttpError(error) && error.response?.status === 428 && error.response.data?.details?.applicationError?.code === 48876) {
|
|
80288
|
+
if (isHttpError(error) && error.response?.status === 428 && error.response.data?.details?.applicationError?.code === "48876") {
|
|
80262
80289
|
throw new CliError({
|
|
80263
80290
|
code: CliErrorCode.InvalidApiKey(),
|
|
80264
80291
|
cause: error
|
|
@@ -82111,9 +82138,11 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
82111
82138
|
skeleton.replace(DATE_TIME_REGEX, function(match20) {
|
|
82112
82139
|
var len = match20.length;
|
|
82113
82140
|
switch (match20[0]) {
|
|
82141
|
+
// Era
|
|
82114
82142
|
case "G":
|
|
82115
82143
|
result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
|
|
82116
82144
|
break;
|
|
82145
|
+
// Year
|
|
82117
82146
|
case "y":
|
|
82118
82147
|
result.year = len === 2 ? "2-digit" : "numeric";
|
|
82119
82148
|
break;
|
|
@@ -82122,13 +82151,16 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
82122
82151
|
case "U":
|
|
82123
82152
|
case "r":
|
|
82124
82153
|
throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
82154
|
+
// Quarter
|
|
82125
82155
|
case "q":
|
|
82126
82156
|
case "Q":
|
|
82127
82157
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
82158
|
+
// Month
|
|
82128
82159
|
case "M":
|
|
82129
82160
|
case "L":
|
|
82130
82161
|
result.month = ["numeric", "2-digit", "short", "long", "narrow"][len - 1];
|
|
82131
82162
|
break;
|
|
82163
|
+
// Week
|
|
82132
82164
|
case "w":
|
|
82133
82165
|
case "W":
|
|
82134
82166
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
@@ -82139,6 +82171,7 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
82139
82171
|
case "F":
|
|
82140
82172
|
case "g":
|
|
82141
82173
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
82174
|
+
// Weekday
|
|
82142
82175
|
case "E":
|
|
82143
82176
|
result.weekday = len === 4 ? "long" : len === 5 ? "narrow" : "short";
|
|
82144
82177
|
break;
|
|
@@ -82154,12 +82187,15 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
82154
82187
|
}
|
|
82155
82188
|
result.weekday = ["short", "long", "narrow", "short"][len - 4];
|
|
82156
82189
|
break;
|
|
82190
|
+
// Period
|
|
82157
82191
|
case "a":
|
|
82158
82192
|
result.hour12 = true;
|
|
82159
82193
|
break;
|
|
82160
82194
|
case "b":
|
|
82195
|
+
// am, pm, noon, midnight
|
|
82161
82196
|
case "B":
|
|
82162
82197
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
82198
|
+
// Hour
|
|
82163
82199
|
case "h":
|
|
82164
82200
|
result.hourCycle = "h12";
|
|
82165
82201
|
result.hour = ["numeric", "2-digit"][len - 1];
|
|
@@ -82180,23 +82216,31 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
82180
82216
|
case "J":
|
|
82181
82217
|
case "C":
|
|
82182
82218
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
82219
|
+
// Minute
|
|
82183
82220
|
case "m":
|
|
82184
82221
|
result.minute = ["numeric", "2-digit"][len - 1];
|
|
82185
82222
|
break;
|
|
82223
|
+
// Second
|
|
82186
82224
|
case "s":
|
|
82187
82225
|
result.second = ["numeric", "2-digit"][len - 1];
|
|
82188
82226
|
break;
|
|
82189
82227
|
case "S":
|
|
82190
82228
|
case "A":
|
|
82191
82229
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
82230
|
+
// Zone
|
|
82192
82231
|
case "z":
|
|
82193
82232
|
result.timeZoneName = len < 4 ? "short" : "long";
|
|
82194
82233
|
break;
|
|
82195
82234
|
case "Z":
|
|
82235
|
+
// 1..3, 4, 5: The ISO8601 varios formats
|
|
82196
82236
|
case "O":
|
|
82237
|
+
// 1, 4: milliseconds in day short, long
|
|
82197
82238
|
case "v":
|
|
82239
|
+
// 1, 4: generic non-location format
|
|
82198
82240
|
case "V":
|
|
82241
|
+
// 1, 2, 3, 4: time zone ID or city
|
|
82199
82242
|
case "X":
|
|
82243
|
+
// 1, 2, 3, 4: The ISO8601 varios formats
|
|
82200
82244
|
case "x":
|
|
82201
82245
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
82202
82246
|
}
|
|
@@ -82399,6 +82443,7 @@ function parseNumberSkeleton(tokens) {
|
|
|
82399
82443
|
case "notation-simple":
|
|
82400
82444
|
result.notation = "standard";
|
|
82401
82445
|
continue;
|
|
82446
|
+
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
82402
82447
|
case "unit-width-narrow":
|
|
82403
82448
|
result.currencyDisplay = "narrowSymbol";
|
|
82404
82449
|
result.unitDisplay = "narrow";
|
|
@@ -82438,6 +82483,7 @@ function parseNumberSkeleton(tokens) {
|
|
|
82438
82483
|
case "rounding-mode-half-up":
|
|
82439
82484
|
result.roundingMode = "halfExpand";
|
|
82440
82485
|
continue;
|
|
82486
|
+
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
82441
82487
|
case "integer-width":
|
|
82442
82488
|
if (token2.options.length > 1) {
|
|
82443
82489
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
@@ -84282,6 +84328,7 @@ var Parser = (
|
|
|
84282
84328
|
this.bump();
|
|
84283
84329
|
this.bump();
|
|
84284
84330
|
return "'";
|
|
84331
|
+
// '{', '<', '>', '}'
|
|
84285
84332
|
case 123:
|
|
84286
84333
|
case 60:
|
|
84287
84334
|
case 62:
|
|
@@ -84347,6 +84394,7 @@ var Parser = (
|
|
|
84347
84394
|
return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
|
|
84348
84395
|
}
|
|
84349
84396
|
switch (this.char()) {
|
|
84397
|
+
// Simple argument: `{name}`
|
|
84350
84398
|
case 125: {
|
|
84351
84399
|
this.bump();
|
|
84352
84400
|
return {
|
|
@@ -84359,6 +84407,7 @@ var Parser = (
|
|
|
84359
84407
|
err: null
|
|
84360
84408
|
};
|
|
84361
84409
|
}
|
|
84410
|
+
// Argument with options: `{name, format, ...}`
|
|
84362
84411
|
case 44: {
|
|
84363
84412
|
this.bump();
|
|
84364
84413
|
this.bumpSpace();
|
|
@@ -88564,6 +88613,9 @@ function getErrorComponent(code, cause) {
|
|
|
88564
88613
|
FailedToCreateDevCenterOAuthApp: () => {
|
|
88565
88614
|
return () => /* @__PURE__ */ import_react79.default.createElement(SystemErrorMessage, { message: "Failed to register your oauth application in Wix" });
|
|
88566
88615
|
},
|
|
88616
|
+
FailedToUpdateDevCenterOAuthApp: () => {
|
|
88617
|
+
return () => /* @__PURE__ */ import_react79.default.createElement(SystemErrorMessage, { message: "Failed to update your oauth application in Wix" });
|
|
88618
|
+
},
|
|
88567
88619
|
FailedToAddPermission: () => {
|
|
88568
88620
|
return () => /* @__PURE__ */ import_react79.default.createElement(SystemErrorMessage, { message: "Failed to add permission" });
|
|
88569
88621
|
},
|
|
@@ -89495,6 +89547,15 @@ function getErrorComponent(code, cause) {
|
|
|
89495
89547
|
}
|
|
89496
89548
|
);
|
|
89497
89549
|
},
|
|
89550
|
+
FailedToSyncVeloCLIServerDocumentUpdate: () => {
|
|
89551
|
+
return () => /* @__PURE__ */ import_react79.default.createElement(
|
|
89552
|
+
ErrorMessage,
|
|
89553
|
+
{
|
|
89554
|
+
cause,
|
|
89555
|
+
message: "Failed to sync local file system document updates with the Editor."
|
|
89556
|
+
}
|
|
89557
|
+
);
|
|
89558
|
+
},
|
|
89498
89559
|
CreateVersionDeprecated: ({ packageManagerRunCmd }) => {
|
|
89499
89560
|
return () => /* @__PURE__ */ import_react79.default.createElement(
|
|
89500
89561
|
CreateVersionDeprecationMessage,
|
|
@@ -90091,7 +90152,7 @@ var _nativeNodeFetchIntegration = (options = {}) => {
|
|
|
90091
90152
|
return;
|
|
90092
90153
|
}
|
|
90093
90154
|
try {
|
|
90094
|
-
const pkg = await import("./build-
|
|
90155
|
+
const pkg = await import("./build-6IMWAXMA.js");
|
|
90095
90156
|
const { FetchInstrumentation } = pkg;
|
|
90096
90157
|
class SentryNodeFetchInstrumentation extends FetchInstrumentation {
|
|
90097
90158
|
// We extend this method so we have access to request _and_ response for the breadcrumb
|
|
@@ -92491,7 +92552,7 @@ function createErrorReporter({ dsn, release: release2 }) {
|
|
|
92491
92552
|
return result;
|
|
92492
92553
|
},
|
|
92493
92554
|
reportUserFeedback: async ({ userId, eventId, feedback }) => {
|
|
92494
|
-
const { BrowserClient } = await import("./esm-
|
|
92555
|
+
const { BrowserClient } = await import("./esm-KPR2HWDF.js");
|
|
92495
92556
|
const client2 = new BrowserClient({
|
|
92496
92557
|
enabled: sentryClient.getOptions().enabled,
|
|
92497
92558
|
dsn: sentryClient.getOptions().dsn,
|
|
@@ -92619,6 +92680,7 @@ var UserFeedbackForm = ({ onSubmit }) => {
|
|
|
92619
92680
|
return /* @__PURE__ */ import_react82.default.createElement(import_react82.default.Fragment, null, /* @__PURE__ */ import_react82.default.createElement(Box_default, { flexDirection: "column", marginTop: 1, marginBottom: 1 }, /* @__PURE__ */ import_react82.default.createElement(Text2, null, t3("user_feedback.title")), /* @__PURE__ */ import_react82.default.createElement(Text2, { skin: "secondary" }, t3("user_feedback.subtitle"))), /* @__PURE__ */ import_react82.default.createElement(
|
|
92620
92681
|
ConfirmInput,
|
|
92621
92682
|
{
|
|
92683
|
+
initialValue: false,
|
|
92622
92684
|
label: t3("user_feedback.consent.label"),
|
|
92623
92685
|
onSubmit: handleConsentSubmit
|
|
92624
92686
|
}
|
|
@@ -93235,16 +93297,16 @@ function wixCliCliError(params) {
|
|
|
93235
93297
|
var package_default = {
|
|
93236
93298
|
name: "@wix/create-headless-site",
|
|
93237
93299
|
description: "Headless site creation wizard",
|
|
93238
|
-
version: "0.0.
|
|
93300
|
+
version: "0.0.9",
|
|
93239
93301
|
bin: "bin/index.cjs",
|
|
93240
93302
|
devDependencies: {
|
|
93241
93303
|
"@commander-js/extra-typings": "^13.0.0",
|
|
93242
93304
|
"@types/react": "^18.3.3",
|
|
93243
93305
|
"@types/semver": "^7.5.8",
|
|
93244
93306
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
93245
|
-
"@wix/ambassador-metasite-api-v1-meta-site": "^1.0.
|
|
93307
|
+
"@wix/ambassador-metasite-api-v1-meta-site": "^1.0.115",
|
|
93246
93308
|
"@wix/backend-as-a-service-client": "workspace:*",
|
|
93247
|
-
"@wix/bi-logger-dev-tools-data": "^1.
|
|
93309
|
+
"@wix/bi-logger-dev-tools-data": "^1.112.0",
|
|
93248
93310
|
"@wix/cli-astro-definitions": "workspace:*",
|
|
93249
93311
|
"@wix/cli-auth": "workspace:*",
|
|
93250
93312
|
"@wix/cli-core-definitions": "workspace:*",
|
|
@@ -93350,7 +93412,7 @@ var createBiLogger2 = async (errorReporter2, userId) => {
|
|
|
93350
93412
|
// src/components/CreateHeadlessSiteCommand.tsx
|
|
93351
93413
|
init_esm_shims();
|
|
93352
93414
|
var import_react109 = __toESM(require_react(), 1);
|
|
93353
|
-
var
|
|
93415
|
+
var import_variant38 = __toESM(require_lib(), 1);
|
|
93354
93416
|
|
|
93355
93417
|
// ../package-manager/src/index.ts
|
|
93356
93418
|
init_esm_shims();
|
|
@@ -97301,6 +97363,11 @@ init_esm_shims();
|
|
|
97301
97363
|
var _createOAuthAppRequest = { oAuthApp: "_oAuthApp" };
|
|
97302
97364
|
var _createOAuthAppResponse = { oAuthApp: "_oAuthApp" };
|
|
97303
97365
|
var _oAuthApp = { createdDate: "google.protobuf.Timestamp" };
|
|
97366
|
+
var _updateOAuthAppRequest = {
|
|
97367
|
+
mask: "google.protobuf.FieldMask",
|
|
97368
|
+
oAuthApp: "_oAuthApp"
|
|
97369
|
+
};
|
|
97370
|
+
var _updateOAuthAppResponse = { oAuthApp: "_oAuthApp" };
|
|
97304
97371
|
function resolveWixHeadlessV1OAuthAppServiceUrl(opts) {
|
|
97305
97372
|
var domainToMappings = {
|
|
97306
97373
|
"manage._base_domain_": [
|
|
@@ -97354,6 +97421,32 @@ function createOAuthApp(payload5) {
|
|
|
97354
97421
|
__createOAuthApp.__isAmbassador = true;
|
|
97355
97422
|
return __createOAuthApp;
|
|
97356
97423
|
}
|
|
97424
|
+
function updateOAuthApp(payload5) {
|
|
97425
|
+
var _a3 = serializer(_updateOAuthAppRequest, { _oAuthApp }), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
97426
|
+
var fromRes = serializer(_updateOAuthAppResponse, {
|
|
97427
|
+
_oAuthApp
|
|
97428
|
+
}).fromJSON;
|
|
97429
|
+
function __updateOAuthApp(_a4) {
|
|
97430
|
+
var host = _a4.host;
|
|
97431
|
+
var serializedData = toReq(payload5);
|
|
97432
|
+
var metadata = {
|
|
97433
|
+
entityFqdn: "wix.headless.v1.o_auth_app",
|
|
97434
|
+
method: "PATCH",
|
|
97435
|
+
methodFqn: "wix.headless.v1.OAuthAppService.UpdateOAuthApp",
|
|
97436
|
+
url: resolveWixHeadlessV1OAuthAppServiceUrl({
|
|
97437
|
+
protoPath: "/v1/oauth-apps/{oAuthApp.id}",
|
|
97438
|
+
data: serializedData,
|
|
97439
|
+
host
|
|
97440
|
+
}),
|
|
97441
|
+
data: serializedData,
|
|
97442
|
+
transformResponse: fromRes
|
|
97443
|
+
};
|
|
97444
|
+
return metadata;
|
|
97445
|
+
}
|
|
97446
|
+
__updateOAuthApp.fromReq = fromReq;
|
|
97447
|
+
__updateOAuthApp.__isAmbassador = true;
|
|
97448
|
+
return __updateOAuthApp;
|
|
97449
|
+
}
|
|
97357
97450
|
|
|
97358
97451
|
// ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-version/build/es/http.impl.js
|
|
97359
97452
|
init_esm_shims();
|
|
@@ -97517,12 +97610,12 @@ var Action;
|
|
|
97517
97610
|
Action2["DELETED"] = "DELETED";
|
|
97518
97611
|
})(Action || (Action = {}));
|
|
97519
97612
|
var WebhookIdentityType;
|
|
97520
|
-
(function(
|
|
97521
|
-
|
|
97522
|
-
|
|
97523
|
-
|
|
97524
|
-
|
|
97525
|
-
|
|
97613
|
+
(function(WebhookIdentityType4) {
|
|
97614
|
+
WebhookIdentityType4["UNKNOWN"] = "UNKNOWN";
|
|
97615
|
+
WebhookIdentityType4["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
97616
|
+
WebhookIdentityType4["MEMBER"] = "MEMBER";
|
|
97617
|
+
WebhookIdentityType4["WIX_USER"] = "WIX_USER";
|
|
97618
|
+
WebhookIdentityType4["APP"] = "APP";
|
|
97526
97619
|
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
97527
97620
|
|
|
97528
97621
|
// ../../node_modules/@wix/ambassador-devcenter-myapps-v1-my-app/build/es/http.impl.js
|
|
@@ -98731,6 +98824,9 @@ var ComponentType;
|
|
|
98731
98824
|
ComponentType3["BACKEND_WORKER"] = "BACKEND_WORKER";
|
|
98732
98825
|
ComponentType3["EVENT_TIME_SLOTS_CONFIGURATION_PROVIDER"] = "EVENT_TIME_SLOTS_CONFIGURATION_PROVIDER";
|
|
98733
98826
|
ComponentType3["WIX_HOSTING_APP_ENVIRONMENT_PROVIDER"] = "WIX_HOSTING_APP_ENVIRONMENT_PROVIDER";
|
|
98827
|
+
ComponentType3["SDK_EXPORTS"] = "SDK_EXPORTS";
|
|
98828
|
+
ComponentType3["VIEWER_SERVICE"] = "VIEWER_SERVICE";
|
|
98829
|
+
ComponentType3["WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN"] = "WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN";
|
|
98734
98830
|
})(ComponentType || (ComponentType = {}));
|
|
98735
98831
|
var WidgetVertical;
|
|
98736
98832
|
(function(WidgetVertical3) {
|
|
@@ -99122,6 +99218,7 @@ var Tag;
|
|
|
99122
99218
|
Tag3["ECOM_CREATE_PAY_LINK"] = "ECOM_CREATE_PAY_LINK";
|
|
99123
99219
|
Tag3["ECOM_DELIVERY_PROFILES"] = "ECOM_DELIVERY_PROFILES";
|
|
99124
99220
|
Tag3["ADD_TO_CATEGORY"] = "ADD_TO_CATEGORY";
|
|
99221
|
+
Tag3["MY_BUSINESS"] = "MY_BUSINESS";
|
|
99125
99222
|
})(Tag || (Tag = {}));
|
|
99126
99223
|
var FilterSelectionType;
|
|
99127
99224
|
(function(FilterSelectionType3) {
|
|
@@ -99374,6 +99471,8 @@ var DecorationType;
|
|
|
99374
99471
|
DecorationType3["FONT_SIZE"] = "FONT_SIZE";
|
|
99375
99472
|
DecorationType3["EXTERNAL"] = "EXTERNAL";
|
|
99376
99473
|
DecorationType3["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
99474
|
+
DecorationType3["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
99475
|
+
DecorationType3["SUBSCRIPT"] = "SUBSCRIPT";
|
|
99377
99476
|
})(DecorationType || (DecorationType = {}));
|
|
99378
99477
|
var FontType;
|
|
99379
99478
|
(function(FontType3) {
|
|
@@ -99944,6 +100043,7 @@ var FactorType;
|
|
|
99944
100043
|
FactorType3["EMAIL"] = "EMAIL";
|
|
99945
100044
|
FactorType3["TOTP"] = "TOTP";
|
|
99946
100045
|
FactorType3["PUSH"] = "PUSH";
|
|
100046
|
+
FactorType3["WEBAUTHN"] = "WEBAUTHN";
|
|
99947
100047
|
})(FactorType || (FactorType = {}));
|
|
99948
100048
|
var MonitoringType;
|
|
99949
100049
|
(function(MonitoringType3) {
|
|
@@ -100039,6 +100139,7 @@ var CssPropertyType;
|
|
|
100039
100139
|
CssPropertyType3["backgroundRepeat"] = "backgroundRepeat";
|
|
100040
100140
|
CssPropertyType3["backgroundAttachment"] = "backgroundAttachment";
|
|
100041
100141
|
CssPropertyType3["fill"] = "fill";
|
|
100142
|
+
CssPropertyType3["fillOpacity"] = "fillOpacity";
|
|
100042
100143
|
CssPropertyType3["margin"] = "margin";
|
|
100043
100144
|
CssPropertyType3["marginTop"] = "marginTop";
|
|
100044
100145
|
CssPropertyType3["marginRight"] = "marginRight";
|
|
@@ -100105,6 +100206,7 @@ var CssPropertyType;
|
|
|
100105
100206
|
CssPropertyType3["textTransform"] = "textTransform";
|
|
100106
100207
|
CssPropertyType3["textShadow"] = "textShadow";
|
|
100107
100208
|
CssPropertyType3["textOverflow"] = "textOverflow";
|
|
100209
|
+
CssPropertyType3["textIndent"] = "textIndent";
|
|
100108
100210
|
CssPropertyType3["textDecoration"] = "textDecoration";
|
|
100109
100211
|
CssPropertyType3["textDecorationColor"] = "textDecorationColor";
|
|
100110
100212
|
CssPropertyType3["textDecorationLine"] = "textDecorationLine";
|
|
@@ -100129,6 +100231,9 @@ var CssPropertyType;
|
|
|
100129
100231
|
CssPropertyType3["objectPosition"] = "objectPosition";
|
|
100130
100232
|
CssPropertyType3["mixBlendMode"] = "mixBlendMode";
|
|
100131
100233
|
CssPropertyType3["isolation"] = "isolation";
|
|
100234
|
+
CssPropertyType3["stroke"] = "stroke";
|
|
100235
|
+
CssPropertyType3["strokeWidth"] = "strokeWidth";
|
|
100236
|
+
CssPropertyType3["strokeOpacity"] = "strokeOpacity";
|
|
100132
100237
|
})(CssPropertyType || (CssPropertyType = {}));
|
|
100133
100238
|
var CssDataType;
|
|
100134
100239
|
(function(CssDataType3) {
|
|
@@ -100142,6 +100247,7 @@ var CssDataType;
|
|
|
100142
100247
|
CssDataType3["blendMode"] = "blendMode";
|
|
100143
100248
|
CssDataType3["customEnum"] = "customEnum";
|
|
100144
100249
|
CssDataType3["string"] = "string";
|
|
100250
|
+
CssDataType3["time"] = "time";
|
|
100145
100251
|
})(CssDataType || (CssDataType = {}));
|
|
100146
100252
|
var FilterFunction;
|
|
100147
100253
|
(function(FilterFunction3) {
|
|
@@ -100184,6 +100290,11 @@ var WritingModeValue;
|
|
|
100184
100290
|
WritingModeValue3["sidewaysRl"] = "sidewaysRl";
|
|
100185
100291
|
WritingModeValue3["sidewaysLr"] = "sidewaysLr";
|
|
100186
100292
|
})(WritingModeValue || (WritingModeValue = {}));
|
|
100293
|
+
var BackgroundModeEnum;
|
|
100294
|
+
(function(BackgroundModeEnum3) {
|
|
100295
|
+
BackgroundModeEnum3["UNKNOWN_BackgroundModeEnum"] = "UNKNOWN_BackgroundModeEnum";
|
|
100296
|
+
BackgroundModeEnum3["shapeDividerSvg"] = "shapeDividerSvg";
|
|
100297
|
+
})(BackgroundModeEnum || (BackgroundModeEnum = {}));
|
|
100187
100298
|
var DataType;
|
|
100188
100299
|
(function(DataType3) {
|
|
100189
100300
|
DataType3["UNKNOWN_DataType"] = "UNKNOWN_DataType";
|
|
@@ -100211,6 +100322,7 @@ var DataType;
|
|
|
100211
100322
|
DataType3["container"] = "container";
|
|
100212
100323
|
DataType3["arrayItems"] = "arrayItems";
|
|
100213
100324
|
DataType3["direction"] = "direction";
|
|
100325
|
+
DataType3["menuItems"] = "menuItems";
|
|
100214
100326
|
})(DataType || (DataType = {}));
|
|
100215
100327
|
var A11yAttributes;
|
|
100216
100328
|
(function(A11yAttributes3) {
|
|
@@ -100263,7 +100375,17 @@ var ContainerType;
|
|
|
100263
100375
|
ContainerType3["simple"] = "simple";
|
|
100264
100376
|
ContainerType3["slot"] = "slot";
|
|
100265
100377
|
ContainerType3["placeholder"] = "placeholder";
|
|
100378
|
+
ContainerType3["template"] = "template";
|
|
100266
100379
|
})(ContainerType || (ContainerType = {}));
|
|
100380
|
+
var ResizeDirection;
|
|
100381
|
+
(function(ResizeDirection3) {
|
|
100382
|
+
ResizeDirection3["UNKNOWN_ResizeDirection"] = "UNKNOWN_ResizeDirection";
|
|
100383
|
+
ResizeDirection3["horizontal"] = "horizontal";
|
|
100384
|
+
ResizeDirection3["vertical"] = "vertical";
|
|
100385
|
+
ResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
100386
|
+
ResizeDirection3["aspectRatio"] = "aspectRatio";
|
|
100387
|
+
ResizeDirection3["none"] = "none";
|
|
100388
|
+
})(ResizeDirection || (ResizeDirection = {}));
|
|
100267
100389
|
var ElementTypeEnumElementType;
|
|
100268
100390
|
(function(ElementTypeEnumElementType2) {
|
|
100269
100391
|
ElementTypeEnumElementType2["UNKNOWN_ElementType"] = "UNKNOWN_ElementType";
|
|
@@ -100343,15 +100465,14 @@ var Archetype;
|
|
|
100343
100465
|
Archetype3["VectorArt"] = "VectorArt";
|
|
100344
100466
|
Archetype3["AnimatedGraphic"] = "AnimatedGraphic";
|
|
100345
100467
|
})(Archetype || (Archetype = {}));
|
|
100346
|
-
var
|
|
100347
|
-
(function(
|
|
100348
|
-
|
|
100349
|
-
|
|
100350
|
-
|
|
100351
|
-
|
|
100352
|
-
|
|
100353
|
-
|
|
100354
|
-
})(ResizeDirection || (ResizeDirection = {}));
|
|
100468
|
+
var NativeStateType;
|
|
100469
|
+
(function(NativeStateType3) {
|
|
100470
|
+
NativeStateType3["UNKNOWN_NativeStateType"] = "UNKNOWN_NativeStateType";
|
|
100471
|
+
NativeStateType3["hover"] = "hover";
|
|
100472
|
+
NativeStateType3["focus"] = "focus";
|
|
100473
|
+
NativeStateType3["disabled"] = "disabled";
|
|
100474
|
+
NativeStateType3["invalid"] = "invalid";
|
|
100475
|
+
})(NativeStateType || (NativeStateType = {}));
|
|
100355
100476
|
var ContentResizeDirection;
|
|
100356
100477
|
(function(ContentResizeDirection3) {
|
|
100357
100478
|
ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
|
|
@@ -100360,6 +100481,17 @@ var ContentResizeDirection;
|
|
|
100360
100481
|
ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
100361
100482
|
ContentResizeDirection3["none"] = "none";
|
|
100362
100483
|
})(ContentResizeDirection || (ContentResizeDirection = {}));
|
|
100484
|
+
var InteractionsTrigger;
|
|
100485
|
+
(function(InteractionsTrigger3) {
|
|
100486
|
+
InteractionsTrigger3["UNKNOWN_TRIGGER"] = "UNKNOWN_TRIGGER";
|
|
100487
|
+
InteractionsTrigger3["hover"] = "hover";
|
|
100488
|
+
InteractionsTrigger3["click"] = "click";
|
|
100489
|
+
InteractionsTrigger3["viewEnter"] = "viewEnter";
|
|
100490
|
+
InteractionsTrigger3["pageVisible"] = "pageVisible";
|
|
100491
|
+
InteractionsTrigger3["viewProgress"] = "viewProgress";
|
|
100492
|
+
InteractionsTrigger3["pointerMove"] = "pointerMove";
|
|
100493
|
+
InteractionsTrigger3["animationEnd"] = "animationEnd";
|
|
100494
|
+
})(InteractionsTrigger || (InteractionsTrigger = {}));
|
|
100363
100495
|
var RestrictionLevel;
|
|
100364
100496
|
(function(RestrictionLevel3) {
|
|
100365
100497
|
RestrictionLevel3["UNKNOWN_RESTRICTION_TYPE"] = "UNKNOWN_RESTRICTION_TYPE";
|
|
@@ -100694,6 +100826,8 @@ var ComponentType2;
|
|
|
100694
100826
|
ComponentType3["EVENT_TIME_SLOTS_CONFIGURATION_PROVIDER"] = "EVENT_TIME_SLOTS_CONFIGURATION_PROVIDER";
|
|
100695
100827
|
ComponentType3["WIX_HOSTING_APP_ENVIRONMENT_PROVIDER"] = "WIX_HOSTING_APP_ENVIRONMENT_PROVIDER";
|
|
100696
100828
|
ComponentType3["SDK_EXPORTS"] = "SDK_EXPORTS";
|
|
100829
|
+
ComponentType3["VIEWER_SERVICE"] = "VIEWER_SERVICE";
|
|
100830
|
+
ComponentType3["WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN"] = "WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN";
|
|
100697
100831
|
})(ComponentType2 || (ComponentType2 = {}));
|
|
100698
100832
|
var WidgetVertical2;
|
|
100699
100833
|
(function(WidgetVertical3) {
|
|
@@ -101085,6 +101219,7 @@ var Tag2;
|
|
|
101085
101219
|
Tag3["ECOM_CREATE_PAY_LINK"] = "ECOM_CREATE_PAY_LINK";
|
|
101086
101220
|
Tag3["ECOM_DELIVERY_PROFILES"] = "ECOM_DELIVERY_PROFILES";
|
|
101087
101221
|
Tag3["ADD_TO_CATEGORY"] = "ADD_TO_CATEGORY";
|
|
101222
|
+
Tag3["MY_BUSINESS"] = "MY_BUSINESS";
|
|
101088
101223
|
})(Tag2 || (Tag2 = {}));
|
|
101089
101224
|
var FilterSelectionType2;
|
|
101090
101225
|
(function(FilterSelectionType3) {
|
|
@@ -101337,6 +101472,8 @@ var DecorationType2;
|
|
|
101337
101472
|
DecorationType3["FONT_SIZE"] = "FONT_SIZE";
|
|
101338
101473
|
DecorationType3["EXTERNAL"] = "EXTERNAL";
|
|
101339
101474
|
DecorationType3["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
101475
|
+
DecorationType3["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
101476
|
+
DecorationType3["SUBSCRIPT"] = "SUBSCRIPT";
|
|
101340
101477
|
})(DecorationType2 || (DecorationType2 = {}));
|
|
101341
101478
|
var FontType2;
|
|
101342
101479
|
(function(FontType3) {
|
|
@@ -101907,6 +102044,7 @@ var FactorType2;
|
|
|
101907
102044
|
FactorType3["EMAIL"] = "EMAIL";
|
|
101908
102045
|
FactorType3["TOTP"] = "TOTP";
|
|
101909
102046
|
FactorType3["PUSH"] = "PUSH";
|
|
102047
|
+
FactorType3["WEBAUTHN"] = "WEBAUTHN";
|
|
101910
102048
|
})(FactorType2 || (FactorType2 = {}));
|
|
101911
102049
|
var MonitoringType2;
|
|
101912
102050
|
(function(MonitoringType3) {
|
|
@@ -102002,6 +102140,7 @@ var CssPropertyType2;
|
|
|
102002
102140
|
CssPropertyType3["backgroundRepeat"] = "backgroundRepeat";
|
|
102003
102141
|
CssPropertyType3["backgroundAttachment"] = "backgroundAttachment";
|
|
102004
102142
|
CssPropertyType3["fill"] = "fill";
|
|
102143
|
+
CssPropertyType3["fillOpacity"] = "fillOpacity";
|
|
102005
102144
|
CssPropertyType3["margin"] = "margin";
|
|
102006
102145
|
CssPropertyType3["marginTop"] = "marginTop";
|
|
102007
102146
|
CssPropertyType3["marginRight"] = "marginRight";
|
|
@@ -102068,6 +102207,7 @@ var CssPropertyType2;
|
|
|
102068
102207
|
CssPropertyType3["textTransform"] = "textTransform";
|
|
102069
102208
|
CssPropertyType3["textShadow"] = "textShadow";
|
|
102070
102209
|
CssPropertyType3["textOverflow"] = "textOverflow";
|
|
102210
|
+
CssPropertyType3["textIndent"] = "textIndent";
|
|
102071
102211
|
CssPropertyType3["textDecoration"] = "textDecoration";
|
|
102072
102212
|
CssPropertyType3["textDecorationColor"] = "textDecorationColor";
|
|
102073
102213
|
CssPropertyType3["textDecorationLine"] = "textDecorationLine";
|
|
@@ -102092,6 +102232,9 @@ var CssPropertyType2;
|
|
|
102092
102232
|
CssPropertyType3["objectPosition"] = "objectPosition";
|
|
102093
102233
|
CssPropertyType3["mixBlendMode"] = "mixBlendMode";
|
|
102094
102234
|
CssPropertyType3["isolation"] = "isolation";
|
|
102235
|
+
CssPropertyType3["stroke"] = "stroke";
|
|
102236
|
+
CssPropertyType3["strokeWidth"] = "strokeWidth";
|
|
102237
|
+
CssPropertyType3["strokeOpacity"] = "strokeOpacity";
|
|
102095
102238
|
})(CssPropertyType2 || (CssPropertyType2 = {}));
|
|
102096
102239
|
var CssDataType2;
|
|
102097
102240
|
(function(CssDataType3) {
|
|
@@ -102148,6 +102291,11 @@ var WritingModeValue2;
|
|
|
102148
102291
|
WritingModeValue3["sidewaysRl"] = "sidewaysRl";
|
|
102149
102292
|
WritingModeValue3["sidewaysLr"] = "sidewaysLr";
|
|
102150
102293
|
})(WritingModeValue2 || (WritingModeValue2 = {}));
|
|
102294
|
+
var BackgroundModeEnum2;
|
|
102295
|
+
(function(BackgroundModeEnum3) {
|
|
102296
|
+
BackgroundModeEnum3["UNKNOWN_BackgroundModeEnum"] = "UNKNOWN_BackgroundModeEnum";
|
|
102297
|
+
BackgroundModeEnum3["shapeDividerSvg"] = "shapeDividerSvg";
|
|
102298
|
+
})(BackgroundModeEnum2 || (BackgroundModeEnum2 = {}));
|
|
102151
102299
|
var DataType2;
|
|
102152
102300
|
(function(DataType3) {
|
|
102153
102301
|
DataType3["UNKNOWN_DataType"] = "UNKNOWN_DataType";
|
|
@@ -102175,6 +102323,7 @@ var DataType2;
|
|
|
102175
102323
|
DataType3["container"] = "container";
|
|
102176
102324
|
DataType3["arrayItems"] = "arrayItems";
|
|
102177
102325
|
DataType3["direction"] = "direction";
|
|
102326
|
+
DataType3["menuItems"] = "menuItems";
|
|
102178
102327
|
})(DataType2 || (DataType2 = {}));
|
|
102179
102328
|
var A11yAttributes2;
|
|
102180
102329
|
(function(A11yAttributes3) {
|
|
@@ -102227,7 +102376,17 @@ var ContainerType2;
|
|
|
102227
102376
|
ContainerType3["simple"] = "simple";
|
|
102228
102377
|
ContainerType3["slot"] = "slot";
|
|
102229
102378
|
ContainerType3["placeholder"] = "placeholder";
|
|
102379
|
+
ContainerType3["template"] = "template";
|
|
102230
102380
|
})(ContainerType2 || (ContainerType2 = {}));
|
|
102381
|
+
var ResizeDirection2;
|
|
102382
|
+
(function(ResizeDirection3) {
|
|
102383
|
+
ResizeDirection3["UNKNOWN_ResizeDirection"] = "UNKNOWN_ResizeDirection";
|
|
102384
|
+
ResizeDirection3["horizontal"] = "horizontal";
|
|
102385
|
+
ResizeDirection3["vertical"] = "vertical";
|
|
102386
|
+
ResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
102387
|
+
ResizeDirection3["aspectRatio"] = "aspectRatio";
|
|
102388
|
+
ResizeDirection3["none"] = "none";
|
|
102389
|
+
})(ResizeDirection2 || (ResizeDirection2 = {}));
|
|
102231
102390
|
var ElementType2;
|
|
102232
102391
|
(function(ElementType3) {
|
|
102233
102392
|
ElementType3["UNKNOWN_ElementType"] = "UNKNOWN_ElementType";
|
|
@@ -102307,15 +102466,14 @@ var Archetype2;
|
|
|
102307
102466
|
Archetype3["VectorArt"] = "VectorArt";
|
|
102308
102467
|
Archetype3["AnimatedGraphic"] = "AnimatedGraphic";
|
|
102309
102468
|
})(Archetype2 || (Archetype2 = {}));
|
|
102310
|
-
var
|
|
102311
|
-
(function(
|
|
102312
|
-
|
|
102313
|
-
|
|
102314
|
-
|
|
102315
|
-
|
|
102316
|
-
|
|
102317
|
-
|
|
102318
|
-
})(ResizeDirection2 || (ResizeDirection2 = {}));
|
|
102469
|
+
var NativeStateType2;
|
|
102470
|
+
(function(NativeStateType3) {
|
|
102471
|
+
NativeStateType3["UNKNOWN_NativeStateType"] = "UNKNOWN_NativeStateType";
|
|
102472
|
+
NativeStateType3["hover"] = "hover";
|
|
102473
|
+
NativeStateType3["focus"] = "focus";
|
|
102474
|
+
NativeStateType3["disabled"] = "disabled";
|
|
102475
|
+
NativeStateType3["invalid"] = "invalid";
|
|
102476
|
+
})(NativeStateType2 || (NativeStateType2 = {}));
|
|
102319
102477
|
var ContentResizeDirection2;
|
|
102320
102478
|
(function(ContentResizeDirection3) {
|
|
102321
102479
|
ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
|
|
@@ -102324,6 +102482,17 @@ var ContentResizeDirection2;
|
|
|
102324
102482
|
ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
102325
102483
|
ContentResizeDirection3["none"] = "none";
|
|
102326
102484
|
})(ContentResizeDirection2 || (ContentResizeDirection2 = {}));
|
|
102485
|
+
var InteractionsTrigger2;
|
|
102486
|
+
(function(InteractionsTrigger3) {
|
|
102487
|
+
InteractionsTrigger3["UNKNOWN_TRIGGER"] = "UNKNOWN_TRIGGER";
|
|
102488
|
+
InteractionsTrigger3["hover"] = "hover";
|
|
102489
|
+
InteractionsTrigger3["click"] = "click";
|
|
102490
|
+
InteractionsTrigger3["viewEnter"] = "viewEnter";
|
|
102491
|
+
InteractionsTrigger3["pageVisible"] = "pageVisible";
|
|
102492
|
+
InteractionsTrigger3["viewProgress"] = "viewProgress";
|
|
102493
|
+
InteractionsTrigger3["pointerMove"] = "pointerMove";
|
|
102494
|
+
InteractionsTrigger3["animationEnd"] = "animationEnd";
|
|
102495
|
+
})(InteractionsTrigger2 || (InteractionsTrigger2 = {}));
|
|
102327
102496
|
var RestrictionLevel2;
|
|
102328
102497
|
(function(RestrictionLevel3) {
|
|
102329
102498
|
RestrictionLevel3["UNKNOWN_RESTRICTION_TYPE"] = "UNKNOWN_RESTRICTION_TYPE";
|
|
@@ -102396,12 +102565,12 @@ var TranslationType;
|
|
|
102396
102565
|
TranslationType2["COMPONENT"] = "COMPONENT";
|
|
102397
102566
|
})(TranslationType || (TranslationType = {}));
|
|
102398
102567
|
var WebhookIdentityType2;
|
|
102399
|
-
(function(
|
|
102400
|
-
|
|
102401
|
-
|
|
102402
|
-
|
|
102403
|
-
|
|
102404
|
-
|
|
102568
|
+
(function(WebhookIdentityType4) {
|
|
102569
|
+
WebhookIdentityType4["UNKNOWN"] = "UNKNOWN";
|
|
102570
|
+
WebhookIdentityType4["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
102571
|
+
WebhookIdentityType4["MEMBER"] = "MEMBER";
|
|
102572
|
+
WebhookIdentityType4["WIX_USER"] = "WIX_USER";
|
|
102573
|
+
WebhookIdentityType4["APP"] = "APP";
|
|
102405
102574
|
})(WebhookIdentityType2 || (WebhookIdentityType2 = {}));
|
|
102406
102575
|
|
|
102407
102576
|
// ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-template/build/es/types.impl.js
|
|
@@ -102666,6 +102835,22 @@ var DevCenterClient = class {
|
|
|
102666
102835
|
});
|
|
102667
102836
|
}
|
|
102668
102837
|
};
|
|
102838
|
+
updateOAuthApp = async (oAuthApp) => {
|
|
102839
|
+
try {
|
|
102840
|
+
const { data } = await this.httpClient.request(
|
|
102841
|
+
updateOAuthApp({
|
|
102842
|
+
oAuthApp,
|
|
102843
|
+
mask: ["allowedDomains", "allowedRedirectUris"]
|
|
102844
|
+
})
|
|
102845
|
+
);
|
|
102846
|
+
return createOAuthAppSchema.parse(data).oAuthApp;
|
|
102847
|
+
} catch (e2) {
|
|
102848
|
+
throw new CliError({
|
|
102849
|
+
code: CliErrorCode.FailedToUpdateDevCenterOAuthApp(),
|
|
102850
|
+
cause: e2
|
|
102851
|
+
});
|
|
102852
|
+
}
|
|
102853
|
+
};
|
|
102669
102854
|
getAppSecret = async (req) => {
|
|
102670
102855
|
try {
|
|
102671
102856
|
const { data } = await pRetry(
|
|
@@ -103294,6 +103479,18 @@ function resolveWixVeloBackendV1AppProjectLifecycleUrl(opts) {
|
|
|
103294
103479
|
srcPath: "/_api/wix-code-app-projects",
|
|
103295
103480
|
destPath: ""
|
|
103296
103481
|
}
|
|
103482
|
+
],
|
|
103483
|
+
"www._base_domain_": [
|
|
103484
|
+
{
|
|
103485
|
+
srcPath: "/_api/wix-code-app-projects",
|
|
103486
|
+
destPath: ""
|
|
103487
|
+
}
|
|
103488
|
+
],
|
|
103489
|
+
"vibe._base_domain_": [
|
|
103490
|
+
{
|
|
103491
|
+
srcPath: "/_api/wix-code-app-projects",
|
|
103492
|
+
destPath: ""
|
|
103493
|
+
}
|
|
103297
103494
|
]
|
|
103298
103495
|
};
|
|
103299
103496
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -103647,24 +103844,26 @@ function useBackendAsAServiceClient() {
|
|
|
103647
103844
|
// src/components/CreateProject.tsx
|
|
103648
103845
|
var DEFAULT_ENVIRONMENT_NAME = "system_global";
|
|
103649
103846
|
var CreateProject = ({ onSubmit, businessId }) => {
|
|
103650
|
-
const { createOAuthApp: createOAuthApp2, getAppSecret } = useDevCenterClient();
|
|
103847
|
+
const { createOAuthApp: createOAuthApp2, updateOAuthApp: updateOAuthApp2, getAppSecret } = useDevCenterClient();
|
|
103651
103848
|
const { getInstalledAppInstanceId } = useMetasiteManagerClient();
|
|
103652
103849
|
const { createAppProject: createAppProject2, upsertAppEnvironment: upsertAppEnvironment2 } = useBackendAsAServiceClient();
|
|
103653
103850
|
const { status, execute } = useAsyncCallback3(
|
|
103654
103851
|
async (_2, { projectName }) => {
|
|
103655
103852
|
const { id: projectId } = await createOAuthApp2({
|
|
103656
|
-
name: `Private App for: ${projectName}
|
|
103657
|
-
allowedRedirectDomains: [`http://localhost:4321`],
|
|
103658
|
-
allowedRedirectUris: [
|
|
103659
|
-
"http://localhost:4321/api/auth/callback",
|
|
103660
|
-
"http://localhost:4321/api/auth/logout-callback"
|
|
103661
|
-
]
|
|
103853
|
+
name: `Private App for: ${projectName}`
|
|
103662
103854
|
});
|
|
103663
103855
|
const [publicKeyAndSecret, instanceId] = await Promise.all([
|
|
103664
103856
|
getAppSecret({ appId: projectId }),
|
|
103665
103857
|
getInstalledAppInstanceId({ metaSiteId: businessId, appId: projectId })
|
|
103666
103858
|
]);
|
|
103667
103859
|
const { appProject } = await createAppProject2(projectId, projectName);
|
|
103860
|
+
const loginRoute = `api/auth/callback`;
|
|
103861
|
+
const logoutRoute = `api/auth/logout-callback`;
|
|
103862
|
+
const projectBaseURL = new URL(appProject.baseUrl);
|
|
103863
|
+
const localBaseDomain = `http://localhost:4321`;
|
|
103864
|
+
const previewBaseDomain = `https://(.*)-${projectBaseURL.hostname}`;
|
|
103865
|
+
const previewBaseRedirect = `https://*-${projectBaseURL.hostname}`;
|
|
103866
|
+
const prodBaseDomain = projectBaseURL.toString();
|
|
103668
103867
|
const { variables } = await upsertAppEnvironment2(
|
|
103669
103868
|
appProject.id,
|
|
103670
103869
|
DEFAULT_ENVIRONMENT_NAME,
|
|
@@ -103675,6 +103874,18 @@ var CreateProject = ({ onSubmit, businessId }) => {
|
|
|
103675
103874
|
WIX_CLIENT_INSTANCE_ID: instanceId
|
|
103676
103875
|
}
|
|
103677
103876
|
);
|
|
103877
|
+
await updateOAuthApp2({
|
|
103878
|
+
id: projectId,
|
|
103879
|
+
allowedDomains: [localBaseDomain, previewBaseDomain, prodBaseDomain],
|
|
103880
|
+
allowedRedirectUris: [
|
|
103881
|
+
`${localBaseDomain}/${loginRoute}`,
|
|
103882
|
+
`${localBaseDomain}/${logoutRoute}`,
|
|
103883
|
+
`${previewBaseRedirect}/${loginRoute}`,
|
|
103884
|
+
`${previewBaseRedirect}/${logoutRoute}`,
|
|
103885
|
+
`${prodBaseDomain}/${loginRoute}`,
|
|
103886
|
+
`${prodBaseDomain}/${logoutRoute}`
|
|
103887
|
+
]
|
|
103888
|
+
});
|
|
103678
103889
|
const projectData = {
|
|
103679
103890
|
projectId,
|
|
103680
103891
|
projectName,
|
|
@@ -103714,7 +103925,7 @@ var CreateProject = ({ onSubmit, businessId }) => {
|
|
|
103714
103925
|
init_esm_shims();
|
|
103715
103926
|
import { mkdir as mkdir3 } from "node:fs/promises";
|
|
103716
103927
|
var import_react103 = __toESM(require_react(), 1);
|
|
103717
|
-
var
|
|
103928
|
+
var import_variant35 = __toESM(require_lib(), 1);
|
|
103718
103929
|
|
|
103719
103930
|
// ../gena/src/index.ts
|
|
103720
103931
|
init_esm_shims();
|
|
@@ -105771,8 +105982,8 @@ function pathVisitorPlugin(fork2) {
|
|
|
105771
105982
|
return this._changeReported;
|
|
105772
105983
|
};
|
|
105773
105984
|
function makeContextConstructor(visitor) {
|
|
105774
|
-
function
|
|
105775
|
-
if (!(this instanceof
|
|
105985
|
+
function Context2(path8) {
|
|
105986
|
+
if (!(this instanceof Context2)) {
|
|
105776
105987
|
throw new Error("");
|
|
105777
105988
|
}
|
|
105778
105989
|
if (!(this instanceof PathVisitor2)) {
|
|
@@ -105794,10 +106005,10 @@ function pathVisitorPlugin(fork2) {
|
|
|
105794
106005
|
if (!(visitor instanceof PathVisitor2)) {
|
|
105795
106006
|
throw new Error("");
|
|
105796
106007
|
}
|
|
105797
|
-
var Cp =
|
|
105798
|
-
Cp.constructor =
|
|
106008
|
+
var Cp = Context2.prototype = Object.create(visitor);
|
|
106009
|
+
Cp.constructor = Context2;
|
|
105799
106010
|
extend3(Cp, sharedContextProtoMethods);
|
|
105800
|
-
return
|
|
106011
|
+
return Context2;
|
|
105801
106012
|
}
|
|
105802
106013
|
var sharedContextProtoMethods = /* @__PURE__ */ Object.create(null);
|
|
105803
106014
|
sharedContextProtoMethods.reset = function reset(path8) {
|
|
@@ -112923,6 +113134,7 @@ async function extend2(projectFolder) {
|
|
|
112923
113134
|
init_esm_shims();
|
|
112924
113135
|
import { join as join17 } from "node:path";
|
|
112925
113136
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
113137
|
+
var import_variant33 = __toESM(require_lib(), 1);
|
|
112926
113138
|
|
|
112927
113139
|
// ../cli-project-extender/src/clone-templates-repo.ts
|
|
112928
113140
|
init_esm_shims();
|
|
@@ -113093,9 +113305,23 @@ async function cloneTemplatesRepo(url2) {
|
|
|
113093
113305
|
|
|
113094
113306
|
// ../cli-project-extender/src/add-files-from-template.ts
|
|
113095
113307
|
var TEMPLATE_REPO = "git@github.com:wix-incubator/headless-cli-templates.git";
|
|
113096
|
-
async function addFilesFromTemplate(projectFolder, templateId) {
|
|
113308
|
+
async function addFilesFromTemplate(projectFolder, templateId, packageManager, repoType) {
|
|
113097
113309
|
const repoRoot = await cloneTemplatesRepo(TEMPLATE_REPO);
|
|
113098
113310
|
const templateExtensionRoot = join17(repoRoot, "templates", templateId);
|
|
113311
|
+
const sharedTemplate = join17(repoRoot, "templates-shared");
|
|
113312
|
+
if (await pathExists(sharedTemplate)) {
|
|
113313
|
+
await componentGenerator({
|
|
113314
|
+
template: sharedTemplate,
|
|
113315
|
+
projectFolder,
|
|
113316
|
+
cwd: projectFolder,
|
|
113317
|
+
data: {
|
|
113318
|
+
packageManager: {
|
|
113319
|
+
name: packageManager.name
|
|
113320
|
+
},
|
|
113321
|
+
isMonorepo: (0, import_variant33.isType)(repoType, RepoType.Monorepo)
|
|
113322
|
+
}
|
|
113323
|
+
});
|
|
113324
|
+
}
|
|
113099
113325
|
if (!await pathExists(templateExtensionRoot)) {
|
|
113100
113326
|
return;
|
|
113101
113327
|
}
|
|
@@ -113128,8 +113354,8 @@ async function getUniqueExtensionPath(projectFolder, extensionPath, suffix) {
|
|
|
113128
113354
|
// src/task-runner.ts
|
|
113129
113355
|
init_esm_shims();
|
|
113130
113356
|
var import_react101 = __toESM(require_react(), 1);
|
|
113131
|
-
var
|
|
113132
|
-
var TaskRunnerStatus = (0,
|
|
113357
|
+
var import_variant34 = __toESM(require_lib(), 1);
|
|
113358
|
+
var TaskRunnerStatus = (0, import_variant34.variant)({
|
|
113133
113359
|
Idle: {},
|
|
113134
113360
|
Running: (runningTasks, totalTaskCount) => {
|
|
113135
113361
|
const taskStatuses = runningTasks.map((task, index) => {
|
|
@@ -113229,6 +113455,7 @@ var GenerationProgress = ({ tasks, totalTaskCount }) => {
|
|
|
113229
113455
|
return /* @__PURE__ */ import_react103.default.createElement(import_react103.default.Fragment, null, /* @__PURE__ */ import_react103.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react103.default.createElement(Text2, null, "Generating your headless site...")), /* @__PURE__ */ import_react103.default.createElement(TaskList, { tasks, totalTaskCount }));
|
|
113230
113456
|
};
|
|
113231
113457
|
var GenerateProject = ({
|
|
113458
|
+
repoType,
|
|
113232
113459
|
packageManager,
|
|
113233
113460
|
targetParentFolder: targetParentFolder2,
|
|
113234
113461
|
folderName,
|
|
@@ -113285,12 +113512,20 @@ var GenerateProject = ({
|
|
|
113285
113512
|
try {
|
|
113286
113513
|
await addFilesFromTemplate(
|
|
113287
113514
|
packageFolder,
|
|
113288
|
-
selectedTemplate.siteTemplateId
|
|
113515
|
+
selectedTemplate.siteTemplateId,
|
|
113516
|
+
packageManager,
|
|
113517
|
+
repoType
|
|
113289
113518
|
);
|
|
113290
113519
|
} catch (error) {
|
|
113291
113520
|
reportError2(error);
|
|
113292
113521
|
}
|
|
113293
|
-
}, [
|
|
113522
|
+
}, [
|
|
113523
|
+
packageFolder,
|
|
113524
|
+
selectedTemplate.siteTemplateId,
|
|
113525
|
+
reportError2,
|
|
113526
|
+
packageManager,
|
|
113527
|
+
repoType
|
|
113528
|
+
]);
|
|
113294
113529
|
const initializeGit = (0, import_react103.useCallback)(async () => {
|
|
113295
113530
|
try {
|
|
113296
113531
|
await gitInit(packageFolder);
|
|
@@ -113369,7 +113604,7 @@ var GenerateProject = ({
|
|
|
113369
113604
|
await executeTaskRunner(tasks);
|
|
113370
113605
|
onDone(true);
|
|
113371
113606
|
}, []);
|
|
113372
|
-
return (0,
|
|
113607
|
+
return (0, import_variant35.match)(taskRunnerStatus, {
|
|
113373
113608
|
Idle: () => null,
|
|
113374
113609
|
Running: (status) => /* @__PURE__ */ import_react103.default.createElement(GenerationProgress, { ...status }),
|
|
113375
113610
|
Done: (status) => /* @__PURE__ */ import_react103.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ import_react103.default.createElement(GenerationProgress, { ...status }), /* @__PURE__ */ import_react103.default.createElement(Box_default, { marginLeft: -2, marginTop: 1 }, /* @__PURE__ */ import_react103.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react103.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react103.default.createElement(Text2, null, "Project set up successfully"))))
|
|
@@ -113379,7 +113614,7 @@ var GenerateProject = ({
|
|
|
113379
113614
|
// src/components/CreateBusiness.tsx
|
|
113380
113615
|
init_esm_shims();
|
|
113381
113616
|
var import_react104 = __toESM(require_react(), 1);
|
|
113382
|
-
var
|
|
113617
|
+
var import_variant36 = __toESM(require_lib(), 1);
|
|
113383
113618
|
|
|
113384
113619
|
// ../../node_modules/@wix/ambassador-metasite-api-v1-meta-site/build/es/types.impl.js
|
|
113385
113620
|
init_esm_shims();
|
|
@@ -113424,26 +113659,6 @@ var Namespace;
|
|
|
113424
113659
|
Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
113425
113660
|
Namespace2["MIMIR"] = "MIMIR";
|
|
113426
113661
|
})(Namespace || (Namespace = {}));
|
|
113427
|
-
var Cause;
|
|
113428
|
-
(function(Cause2) {
|
|
113429
|
-
Cause2["EMPTY"] = "EMPTY";
|
|
113430
|
-
Cause2["NAMESPACE_LIMIT_REACHED"] = "NAMESPACE_LIMIT_REACHED";
|
|
113431
|
-
Cause2["AUTOMATION_USER_LIMIT_REACHED"] = "AUTOMATION_USER_LIMIT_REACHED";
|
|
113432
|
-
Cause2["WIX_EMPLOYEE_LIMIT_REACHED"] = "WIX_EMPLOYEE_LIMIT_REACHED";
|
|
113433
|
-
})(Cause || (Cause = {}));
|
|
113434
|
-
var DeleteStatus;
|
|
113435
|
-
(function(DeleteStatus2) {
|
|
113436
|
-
DeleteStatus2["UNKNOWN"] = "UNKNOWN";
|
|
113437
|
-
DeleteStatus2["TRASH"] = "TRASH";
|
|
113438
|
-
DeleteStatus2["DELETED"] = "DELETED";
|
|
113439
|
-
DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
|
|
113440
|
-
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
113441
|
-
})(DeleteStatus || (DeleteStatus = {}));
|
|
113442
|
-
var UrlFilter;
|
|
113443
|
-
(function(UrlFilter2) {
|
|
113444
|
-
UrlFilter2["NO_URL_TYPE_FILTER"] = "NO_URL_TYPE_FILTER";
|
|
113445
|
-
UrlFilter2["FREE"] = "FREE";
|
|
113446
|
-
})(UrlFilter || (UrlFilter = {}));
|
|
113447
113662
|
var DocumentType;
|
|
113448
113663
|
(function(DocumentType2) {
|
|
113449
113664
|
DocumentType2["UNKNOWN_DOCUMENT_TYPE"] = "UNKNOWN_DOCUMENT_TYPE";
|
|
@@ -113542,12 +113757,96 @@ var ResolutionMethod;
|
|
|
113542
113757
|
ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
|
|
113543
113758
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
113544
113759
|
})(ResolutionMethod || (ResolutionMethod = {}));
|
|
113760
|
+
var DeleteStatus;
|
|
113761
|
+
(function(DeleteStatus2) {
|
|
113762
|
+
DeleteStatus2["UNKNOWN"] = "UNKNOWN";
|
|
113763
|
+
DeleteStatus2["TRASH"] = "TRASH";
|
|
113764
|
+
DeleteStatus2["DELETED"] = "DELETED";
|
|
113765
|
+
DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
|
|
113766
|
+
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
113767
|
+
})(DeleteStatus || (DeleteStatus = {}));
|
|
113768
|
+
var Context;
|
|
113769
|
+
(function(Context2) {
|
|
113770
|
+
Context2["UNKNOWN"] = "UNKNOWN";
|
|
113771
|
+
Context2["CREATE"] = "CREATE";
|
|
113772
|
+
Context2["UPDATE"] = "UPDATE";
|
|
113773
|
+
Context2["HARD_DELETE"] = "HARD_DELETE";
|
|
113774
|
+
Context2["ARCHIVE"] = "ARCHIVE";
|
|
113775
|
+
Context2["RESTORE"] = "RESTORE";
|
|
113776
|
+
Context2["UPDATE_DELETED"] = "UPDATE_DELETED";
|
|
113777
|
+
Context2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
113778
|
+
})(Context || (Context = {}));
|
|
113779
|
+
var SiteCreatedContext;
|
|
113780
|
+
(function(SiteCreatedContext2) {
|
|
113781
|
+
SiteCreatedContext2["OTHER"] = "OTHER";
|
|
113782
|
+
SiteCreatedContext2["FROM_TEMPLATE"] = "FROM_TEMPLATE";
|
|
113783
|
+
SiteCreatedContext2["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
|
|
113784
|
+
SiteCreatedContext2["DUPLICATE"] = "DUPLICATE";
|
|
113785
|
+
SiteCreatedContext2["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
|
|
113786
|
+
SiteCreatedContext2["FLASH"] = "FLASH";
|
|
113787
|
+
})(SiteCreatedContext || (SiteCreatedContext = {}));
|
|
113788
|
+
var AssetState;
|
|
113789
|
+
(function(AssetState2) {
|
|
113790
|
+
AssetState2["UNKNOWN"] = "UNKNOWN";
|
|
113791
|
+
AssetState2["ENABLED"] = "ENABLED";
|
|
113792
|
+
AssetState2["DISABLED"] = "DISABLED";
|
|
113793
|
+
AssetState2["PENDING"] = "PENDING";
|
|
113794
|
+
AssetState2["DEMO"] = "DEMO";
|
|
113795
|
+
})(AssetState || (AssetState = {}));
|
|
113796
|
+
var PlacementType;
|
|
113797
|
+
(function(PlacementType2) {
|
|
113798
|
+
PlacementType2["BEFORE"] = "BEFORE";
|
|
113799
|
+
PlacementType2["AFTER"] = "AFTER";
|
|
113800
|
+
PlacementType2["REPLACE"] = "REPLACE";
|
|
113801
|
+
})(PlacementType || (PlacementType = {}));
|
|
113802
|
+
var DayOfWeek;
|
|
113803
|
+
(function(DayOfWeek2) {
|
|
113804
|
+
DayOfWeek2["MONDAY"] = "MONDAY";
|
|
113805
|
+
DayOfWeek2["TUESDAY"] = "TUESDAY";
|
|
113806
|
+
DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
|
|
113807
|
+
DayOfWeek2["THURSDAY"] = "THURSDAY";
|
|
113808
|
+
DayOfWeek2["FRIDAY"] = "FRIDAY";
|
|
113809
|
+
DayOfWeek2["SATURDAY"] = "SATURDAY";
|
|
113810
|
+
DayOfWeek2["SUNDAY"] = "SUNDAY";
|
|
113811
|
+
})(DayOfWeek || (DayOfWeek = {}));
|
|
113812
|
+
var V4ResolutionMethod;
|
|
113813
|
+
(function(V4ResolutionMethod2) {
|
|
113814
|
+
V4ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
|
|
113815
|
+
V4ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
|
|
113816
|
+
V4ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
113817
|
+
})(V4ResolutionMethod || (V4ResolutionMethod = {}));
|
|
113818
|
+
var WebhookIdentityType3;
|
|
113819
|
+
(function(WebhookIdentityType4) {
|
|
113820
|
+
WebhookIdentityType4["UNKNOWN"] = "UNKNOWN";
|
|
113821
|
+
WebhookIdentityType4["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
113822
|
+
WebhookIdentityType4["MEMBER"] = "MEMBER";
|
|
113823
|
+
WebhookIdentityType4["WIX_USER"] = "WIX_USER";
|
|
113824
|
+
WebhookIdentityType4["APP"] = "APP";
|
|
113825
|
+
})(WebhookIdentityType3 || (WebhookIdentityType3 = {}));
|
|
113826
|
+
var Cause;
|
|
113827
|
+
(function(Cause2) {
|
|
113828
|
+
Cause2["EMPTY"] = "EMPTY";
|
|
113829
|
+
Cause2["NAMESPACE_LIMIT_REACHED"] = "NAMESPACE_LIMIT_REACHED";
|
|
113830
|
+
Cause2["AUTOMATION_USER_LIMIT_REACHED"] = "AUTOMATION_USER_LIMIT_REACHED";
|
|
113831
|
+
Cause2["WIX_EMPLOYEE_LIMIT_REACHED"] = "WIX_EMPLOYEE_LIMIT_REACHED";
|
|
113832
|
+
})(Cause || (Cause = {}));
|
|
113833
|
+
var UrlFilter;
|
|
113834
|
+
(function(UrlFilter2) {
|
|
113835
|
+
UrlFilter2["NO_URL_TYPE_FILTER"] = "NO_URL_TYPE_FILTER";
|
|
113836
|
+
UrlFilter2["FREE"] = "FREE";
|
|
113837
|
+
})(UrlFilter || (UrlFilter = {}));
|
|
113545
113838
|
var MigrationResult;
|
|
113546
113839
|
(function(MigrationResult2) {
|
|
113547
113840
|
MigrationResult2["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
113548
113841
|
MigrationResult2["OK"] = "OK";
|
|
113549
113842
|
MigrationResult2["SKIP"] = "SKIP";
|
|
113550
113843
|
})(MigrationResult || (MigrationResult = {}));
|
|
113844
|
+
var MigrateEmbeddedServiceToTpaResponseMigrationResult;
|
|
113845
|
+
(function(MigrateEmbeddedServiceToTpaResponseMigrationResult2) {
|
|
113846
|
+
MigrateEmbeddedServiceToTpaResponseMigrationResult2["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
113847
|
+
MigrateEmbeddedServiceToTpaResponseMigrationResult2["OK"] = "OK";
|
|
113848
|
+
MigrateEmbeddedServiceToTpaResponseMigrationResult2["SKIP"] = "SKIP";
|
|
113849
|
+
})(MigrateEmbeddedServiceToTpaResponseMigrationResult || (MigrateEmbeddedServiceToTpaResponseMigrationResult = {}));
|
|
113551
113850
|
|
|
113552
113851
|
// src/components/CreateBusiness.tsx
|
|
113553
113852
|
var CreateBusiness = ({ businessName, businessTemplateId, onDone }) => {
|
|
@@ -113562,7 +113861,7 @@ var CreateBusiness = ({ businessName, businessTemplateId, onDone }) => {
|
|
|
113562
113861
|
});
|
|
113563
113862
|
onDone({ businessId: metaSiteId });
|
|
113564
113863
|
}, []);
|
|
113565
|
-
return /* @__PURE__ */ import_react104.default.createElement(import_react104.default.Fragment, null, (0,
|
|
113864
|
+
return /* @__PURE__ */ import_react104.default.createElement(import_react104.default.Fragment, null, (0, import_variant36.match)(status, {
|
|
113566
113865
|
Error: () => null,
|
|
113567
113866
|
Loading: () => /* @__PURE__ */ import_react104.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react104.default.createElement(Spinner2, { text: "Creating your business..." })),
|
|
113568
113867
|
Success: () => /* @__PURE__ */ import_react104.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react104.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react104.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react104.default.createElement(Text2, null, "Business created successfully"))),
|
|
@@ -113643,7 +113942,7 @@ var ChooseTemplate = ({ onSubmit }) => {
|
|
|
113643
113942
|
// src/components/ReleaseProject.tsx
|
|
113644
113943
|
init_esm_shims();
|
|
113645
113944
|
var import_react108 = __toESM(require_react(), 1);
|
|
113646
|
-
var
|
|
113945
|
+
var import_variant37 = __toESM(require_lib(), 1);
|
|
113647
113946
|
import { join as join20 } from "node:path";
|
|
113648
113947
|
|
|
113649
113948
|
// src/components/FinishedSuccessfullyMessage.tsx
|
|
@@ -113669,10 +113968,10 @@ var FinishedSuccessfullyMessage = ({ packageManager, folderName, projectData, is
|
|
|
113669
113968
|
};
|
|
113670
113969
|
|
|
113671
113970
|
// src/components/ReleaseProject.tsx
|
|
113672
|
-
var ReleaseStateVariant = (0,
|
|
113971
|
+
var ReleaseStateVariant = (0, import_variant37.variant)({
|
|
113673
113972
|
NotStarted: {},
|
|
113674
113973
|
Releasing: {},
|
|
113675
|
-
Done: (0,
|
|
113974
|
+
Done: (0, import_variant37.fields)()
|
|
113676
113975
|
});
|
|
113677
113976
|
var ReleaseProject = ({ folderName, packageManager, targetParentFolder: targetParentFolder2, projectData }) => {
|
|
113678
113977
|
const [releaseState, setReleaseState] = (0, import_react108.useState)(
|
|
@@ -113718,10 +114017,10 @@ var ReleaseProject = ({ folderName, packageManager, targetParentFolder: targetPa
|
|
|
113718
114017
|
}
|
|
113719
114018
|
}
|
|
113720
114019
|
}
|
|
113721
|
-
)), (0,
|
|
114020
|
+
)), (0, import_variant37.match)(releaseState, {
|
|
113722
114021
|
NotStarted: () => null,
|
|
113723
114022
|
Releasing: () => /* @__PURE__ */ import_react108.default.createElement(Spinner2, { text: "Publishing your site..." }),
|
|
113724
|
-
Done: ({ status }) => /* @__PURE__ */ import_react108.default.createElement(import_react108.default.Fragment, null, (0,
|
|
114023
|
+
Done: ({ status }) => /* @__PURE__ */ import_react108.default.createElement(import_react108.default.Fragment, null, (0, import_variant37.match)(status, {
|
|
113725
114024
|
Success: () => /* @__PURE__ */ import_react108.default.createElement(Box_default, { marginLeft: -2 }, /* @__PURE__ */ import_react108.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react108.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react108.default.createElement(Text2, null, "Site published successfully"))),
|
|
113726
114025
|
Error: () => /* @__PURE__ */ import_react108.default.createElement(Box_default, { flexDirection: "column", gap: 1 }, /* @__PURE__ */ import_react108.default.createElement(Alert, { type: "error" }, "Failed to release your site"), /* @__PURE__ */ import_react108.default.createElement(Text2, null, `No worries, you can release your site later by running ${packageManager.getRunCmd()} release`)),
|
|
113727
114026
|
Skipped: () => /* @__PURE__ */ import_react108.default.createElement(Text2, null, `No worries, you can release your site later by running ${packageManager.getRunCmd()} release`)
|
|
@@ -113751,10 +114050,10 @@ var CreateHeadlessSiteCommand = ({ targetParentFolder: targetParentFolder2, comm
|
|
|
113751
114050
|
await validateForLatestVersion(package_default, packageManager);
|
|
113752
114051
|
return { repoType, packageManager };
|
|
113753
114052
|
}, []);
|
|
113754
|
-
return (0,
|
|
114053
|
+
return (0, import_variant38.match)(status, {
|
|
113755
114054
|
Error: () => null,
|
|
113756
114055
|
Loading: () => /* @__PURE__ */ import_react109.default.createElement(Spinner2, { text: "Loading..." }),
|
|
113757
|
-
Success: ({ result: { packageManager } }) => {
|
|
114056
|
+
Success: ({ result: { packageManager, repoType } }) => {
|
|
113758
114057
|
return /* @__PURE__ */ import_react109.default.createElement(
|
|
113759
114058
|
Box_default,
|
|
113760
114059
|
{
|
|
@@ -113810,6 +114109,7 @@ var CreateHeadlessSiteCommand = ({ targetParentFolder: targetParentFolder2, comm
|
|
|
113810
114109
|
folderName,
|
|
113811
114110
|
businessId,
|
|
113812
114111
|
projectData,
|
|
114112
|
+
repoType,
|
|
113813
114113
|
packageManager,
|
|
113814
114114
|
targetParentFolder: targetParentFolder2,
|
|
113815
114115
|
commandOptions,
|