@wix/create-headless-site 0.0.22 → 0.0.24
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/index.js +286 -50
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -7033,14 +7033,14 @@ var require_variant = __commonJS({
|
|
|
7033
7033
|
return Object.assign(Object.assign({}, result), { [creator.output.type]: creator });
|
|
7034
7034
|
}, {});
|
|
7035
7035
|
}
|
|
7036
|
-
function
|
|
7036
|
+
function variant16(template) {
|
|
7037
7037
|
if (Array.isArray(template)) {
|
|
7038
7038
|
return variantList(template);
|
|
7039
7039
|
} else {
|
|
7040
7040
|
return variantModule(template);
|
|
7041
7041
|
}
|
|
7042
7042
|
}
|
|
7043
|
-
return { descope, scoped: scope, variant:
|
|
7043
|
+
return { descope, scoped: scope, variant: variant16, variantList, variantModule, variation };
|
|
7044
7044
|
}
|
|
7045
7045
|
exports.variantImpl = variantImpl;
|
|
7046
7046
|
}
|
|
@@ -7170,11 +7170,11 @@ var require_isOfVariant = __commonJS({
|
|
|
7170
7170
|
function isOfVariantImpl(key) {
|
|
7171
7171
|
function isOfVariant3(...args) {
|
|
7172
7172
|
if (args.length === 1) {
|
|
7173
|
-
const [
|
|
7174
|
-
return (instance2) => instance2 != void 0 && Object.values(
|
|
7173
|
+
const [variant16] = args;
|
|
7174
|
+
return (instance2) => instance2 != void 0 && Object.values(variant16).some((vc) => vc.output.type === instance2[key]);
|
|
7175
7175
|
} else if (args.length === 2) {
|
|
7176
|
-
const [instance2,
|
|
7177
|
-
return instance2 != void 0 && Object.values(
|
|
7176
|
+
const [instance2, variant16] = args;
|
|
7177
|
+
return instance2 != void 0 && Object.values(variant16).some((vc) => vc.output.type === instance2[key]);
|
|
7178
7178
|
}
|
|
7179
7179
|
return false;
|
|
7180
7180
|
}
|
|
@@ -7611,15 +7611,15 @@ var require_typeCatalog = __commonJS({
|
|
|
7611
7611
|
init_esm_shims();
|
|
7612
7612
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7613
7613
|
exports.typeMap = exports.typeCatalog = void 0;
|
|
7614
|
-
function typeCatalog(
|
|
7615
|
-
return Object.values(
|
|
7614
|
+
function typeCatalog(variant16) {
|
|
7615
|
+
return Object.values(variant16).reduce((result, vc) => {
|
|
7616
7616
|
return Object.assign(Object.assign({}, result), { [vc.output.type]: vc.output.type });
|
|
7617
7617
|
}, {});
|
|
7618
7618
|
}
|
|
7619
7619
|
exports.typeCatalog = typeCatalog;
|
|
7620
|
-
function typeMap(
|
|
7621
|
-
return Object.keys(
|
|
7622
|
-
return Object.assign(Object.assign({}, result), { [key]:
|
|
7620
|
+
function typeMap(variant16) {
|
|
7621
|
+
return Object.keys(variant16).reduce((result, key) => {
|
|
7622
|
+
return Object.assign(Object.assign({}, result), { [key]: variant16[key].output.type });
|
|
7623
7623
|
}, {});
|
|
7624
7624
|
}
|
|
7625
7625
|
exports.typeMap = typeMap;
|
|
@@ -79463,7 +79463,7 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
79463
79463
|
FailedToCreateShareUrl: {},
|
|
79464
79464
|
FailedToListShareUrls: {},
|
|
79465
79465
|
FailedToParseNextVersion: (0, import_variant11.fields)(),
|
|
79466
|
-
|
|
79466
|
+
FailedToDistributeClientManifestUpdate: {}
|
|
79467
79467
|
});
|
|
79468
79468
|
var CliUserErrorCode = (0, import_variant11.variant)({
|
|
79469
79469
|
LatestVersionOfCreateAppRequired: (0, import_variant11.fields)(),
|
|
@@ -90536,6 +90536,9 @@ ${errorMessage}`
|
|
|
90536
90536
|
}
|
|
90537
90537
|
);
|
|
90538
90538
|
},
|
|
90539
|
+
FailedToDistributeClientManifestUpdate: () => {
|
|
90540
|
+
return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to distribute client manifest update." });
|
|
90541
|
+
},
|
|
90539
90542
|
InvalidSiteComponentElementItem: ({ elementPath }) => {
|
|
90540
90543
|
return () => /* @__PURE__ */ import_react78.default.createElement(
|
|
90541
90544
|
ErrorMessage,
|
|
@@ -90553,9 +90556,6 @@ ${errorMessage}`
|
|
|
90553
90556
|
hint: "To resolve this, please visit your app dashboard in Dev Center and ensure the 'Wix App' toggle is enabled."
|
|
90554
90557
|
}
|
|
90555
90558
|
);
|
|
90556
|
-
},
|
|
90557
|
-
AppProjectTypeNotImplemented: () => {
|
|
90558
|
-
return () => /* @__PURE__ */ import_react78.default.createElement(ErrorMessage, { message: "Currently 'App' project type is not supported." });
|
|
90559
90559
|
}
|
|
90560
90560
|
});
|
|
90561
90561
|
}
|
|
@@ -95167,7 +95167,7 @@ function wixCliCliError(params) {
|
|
|
95167
95167
|
var package_default = {
|
|
95168
95168
|
name: "@wix/create-headless-site",
|
|
95169
95169
|
description: "Headless site creation wizard",
|
|
95170
|
-
version: "0.0.
|
|
95170
|
+
version: "0.0.24",
|
|
95171
95171
|
bin: "bin/index.cjs",
|
|
95172
95172
|
devDependencies: {
|
|
95173
95173
|
"@commander-js/extra-typings": "^13.0.0",
|
|
@@ -97798,7 +97798,7 @@ var generateGlobTasksSync = normalizeArgumentsSync(generateTasksSync);
|
|
|
97798
97798
|
var { convertPathToPattern } = import_fast_glob2.default;
|
|
97799
97799
|
|
|
97800
97800
|
// src/components/LinkCommand/LinkCommand.tsx
|
|
97801
|
-
var
|
|
97801
|
+
var import_variant36 = __toESM(require_lib(), 1);
|
|
97802
97802
|
|
|
97803
97803
|
// src/components/WelcomeMessage.tsx
|
|
97804
97804
|
init_esm_shims();
|
|
@@ -98079,6 +98079,10 @@ var _appData = { components: "_component", pricingModels: "_pricingModel" };
|
|
|
98079
98079
|
var _appEmbedData = { image: "_media" };
|
|
98080
98080
|
var _appointment = { description: "_richContent" };
|
|
98081
98081
|
var _arrayItems = { data: "_dataItems", dataItem: "_dataItem" };
|
|
98082
|
+
var _arrayOptions = {
|
|
98083
|
+
objectOptions: "_objectOptions",
|
|
98084
|
+
arrayOptions: "_arrayOptions"
|
|
98085
|
+
};
|
|
98082
98086
|
var _arrayType = { items: "_arrayTypeArrayItems" };
|
|
98083
98087
|
var _arrayTypeArrayItems = {
|
|
98084
98088
|
numberOptions: "_numberType",
|
|
@@ -98106,12 +98110,14 @@ var _checkboxGroup = {
|
|
|
98106
98110
|
media: "_mediaItem"
|
|
98107
98111
|
};
|
|
98108
98112
|
var _checkboxGroupOption = { media: "_mediaItem" };
|
|
98113
|
+
var _collection = { fields: "_dataComponentField" };
|
|
98109
98114
|
var _commonImage = { urlExpirationDate: "google.protobuf.Timestamp" };
|
|
98110
98115
|
var _component = { compData: "_componentData" };
|
|
98111
98116
|
var _componentData = {
|
|
98112
98117
|
widgetComponentData: "_widgetComponentData",
|
|
98113
98118
|
widgetOutOfIframeData: "_widgetOutOfIframeComponentData",
|
|
98114
98119
|
studioWidgetComponentData: "_studioWidgetComponentData",
|
|
98120
|
+
dataComponent: "_dataComponent",
|
|
98115
98121
|
shippingLabelCarrier: "_shippingLabelCarrierSpiConfig",
|
|
98116
98122
|
fictionalShippingProvider: "_shippingProviderConfig",
|
|
98117
98123
|
automationsActionProvider: "_actionProviderSPIConfig",
|
|
@@ -98133,6 +98139,11 @@ var _cssNumber = {
|
|
|
98133
98139
|
maximum: "google.protobuf.FloatValue",
|
|
98134
98140
|
multipleOf: "google.protobuf.FloatValue"
|
|
98135
98141
|
};
|
|
98142
|
+
var _dataComponent = { collections: "_collection" };
|
|
98143
|
+
var _dataComponentField = {
|
|
98144
|
+
objectOptions: "_objectOptions",
|
|
98145
|
+
arrayOptions: "_arrayOptions"
|
|
98146
|
+
};
|
|
98136
98147
|
var _dataItem = {
|
|
98137
98148
|
number: "__Number",
|
|
98138
98149
|
arrayItems: "_arrayItems",
|
|
@@ -98273,6 +98284,11 @@ var _numberType = {
|
|
|
98273
98284
|
multipleOf: "google.protobuf.DoubleValue",
|
|
98274
98285
|
enum: "google.protobuf.DoubleValue"
|
|
98275
98286
|
};
|
|
98287
|
+
var _objectField = {
|
|
98288
|
+
objectOptions: "_objectOptions",
|
|
98289
|
+
arrayOptions: "_arrayOptions"
|
|
98290
|
+
};
|
|
98291
|
+
var _objectOptions = { fields: "_objectField" };
|
|
98276
98292
|
var _objectType = { properties: "Map#_propertiesType" };
|
|
98277
98293
|
var _orCondition = { conditions: "_conditionNode" };
|
|
98278
98294
|
var _packageDimension = {
|
|
@@ -98516,6 +98532,7 @@ function getAppByVersion(payload5) {
|
|
|
98516
98532
|
_appEmbedData,
|
|
98517
98533
|
_appointment,
|
|
98518
98534
|
_arrayItems,
|
|
98535
|
+
_arrayOptions,
|
|
98519
98536
|
_arrayType,
|
|
98520
98537
|
_arrayTypeArrayItems,
|
|
98521
98538
|
_audioData,
|
|
@@ -98528,6 +98545,7 @@ function getAppByVersion(payload5) {
|
|
|
98528
98545
|
_checkbox,
|
|
98529
98546
|
_checkboxGroup,
|
|
98530
98547
|
_checkboxGroupOption,
|
|
98548
|
+
_collection,
|
|
98531
98549
|
_commonImage,
|
|
98532
98550
|
_component,
|
|
98533
98551
|
_componentData,
|
|
@@ -98535,6 +98553,8 @@ function getAppByVersion(payload5) {
|
|
|
98535
98553
|
_conditionNode,
|
|
98536
98554
|
_cssCustomPropertyItem,
|
|
98537
98555
|
_cssNumber,
|
|
98556
|
+
_dataComponent,
|
|
98557
|
+
_dataComponentField,
|
|
98538
98558
|
_dataItem,
|
|
98539
98559
|
_dataItems,
|
|
98540
98560
|
_dateInput,
|
|
@@ -98583,6 +98603,8 @@ function getAppByVersion(payload5) {
|
|
|
98583
98603
|
_node,
|
|
98584
98604
|
_numberInput,
|
|
98585
98605
|
_numberType,
|
|
98606
|
+
_objectField,
|
|
98607
|
+
_objectOptions,
|
|
98586
98608
|
_objectType,
|
|
98587
98609
|
_orCondition,
|
|
98588
98610
|
_packageDimension,
|
|
@@ -99494,6 +99516,10 @@ var _arrayItems2 = {
|
|
|
99494
99516
|
numberOptions: "_numberType",
|
|
99495
99517
|
objectOptions: "_objectType"
|
|
99496
99518
|
};
|
|
99519
|
+
var _arrayOptions2 = {
|
|
99520
|
+
objectOptions: "_objectOptions",
|
|
99521
|
+
arrayOptions: "_arrayOptions"
|
|
99522
|
+
};
|
|
99497
99523
|
var _arrayType2 = { items: "_arrayItems" };
|
|
99498
99524
|
var _audioData2 = { audio: "_media", coverImage: "_media" };
|
|
99499
99525
|
var _authenticatorConfig2 = { expectedInputs: "_expectedInputs" };
|
|
@@ -99510,6 +99536,7 @@ var _checkboxGroup2 = {
|
|
|
99510
99536
|
options: "_option",
|
|
99511
99537
|
media: "_mediaItem"
|
|
99512
99538
|
};
|
|
99539
|
+
var _collection2 = { fields: "_dataComponentField" };
|
|
99513
99540
|
var _commonImage2 = {
|
|
99514
99541
|
urlExpirationDate: "google.protobuf.Timestamp",
|
|
99515
99542
|
focalPoint: "_focalPoint"
|
|
@@ -99519,6 +99546,7 @@ var _componentData2 = {
|
|
|
99519
99546
|
widgetComponentData: "_widgetComponentData",
|
|
99520
99547
|
widgetOutOfIframeData: "_widgetOutOfIframeComponentData",
|
|
99521
99548
|
studioWidgetComponentData: "_studioWidgetComponentData",
|
|
99549
|
+
dataComponent: "_dataComponent",
|
|
99522
99550
|
shippingLabelCarrier: "_shippingLabelCarrierSpiConfig",
|
|
99523
99551
|
fictionalShippingProvider: "_shippingProviderConfig",
|
|
99524
99552
|
automationsActionProvider: "_actionProviderSPIConfig",
|
|
@@ -99539,6 +99567,11 @@ var _cssNumber2 = {
|
|
|
99539
99567
|
maximum: "google.protobuf.FloatValue",
|
|
99540
99568
|
multipleOf: "google.protobuf.FloatValue"
|
|
99541
99569
|
};
|
|
99570
|
+
var _dataComponent2 = { collections: "_collection" };
|
|
99571
|
+
var _dataComponentField2 = {
|
|
99572
|
+
objectOptions: "_objectOptions",
|
|
99573
|
+
arrayOptions: "_arrayOptions"
|
|
99574
|
+
};
|
|
99542
99575
|
var _dataItem2 = {
|
|
99543
99576
|
number: "_api_Number",
|
|
99544
99577
|
arrayItems: "_apiArrayItems",
|
|
@@ -99676,6 +99709,11 @@ var _numberType2 = {
|
|
|
99676
99709
|
multipleOf: "google.protobuf.DoubleValue",
|
|
99677
99710
|
enum: "google.protobuf.DoubleValue"
|
|
99678
99711
|
};
|
|
99712
|
+
var _objectField2 = {
|
|
99713
|
+
objectOptions: "_objectOptions",
|
|
99714
|
+
arrayOptions: "_arrayOptions"
|
|
99715
|
+
};
|
|
99716
|
+
var _objectOptions2 = { fields: "_objectField" };
|
|
99679
99717
|
var _objectType2 = { properties: "Map#_propertiesType" };
|
|
99680
99718
|
var _option = { media: "_mediaItem" };
|
|
99681
99719
|
var _orCondition2 = { conditions: "_conditionNode" };
|
|
@@ -99875,6 +99913,7 @@ function managedApps(payload5) {
|
|
|
99875
99913
|
_appEmbedData: _appEmbedData2,
|
|
99876
99914
|
_appointment: _appointment2,
|
|
99877
99915
|
_arrayItems: _arrayItems2,
|
|
99916
|
+
_arrayOptions: _arrayOptions2,
|
|
99878
99917
|
_arrayType: _arrayType2,
|
|
99879
99918
|
_audioData: _audioData2,
|
|
99880
99919
|
_authenticatorConfig: _authenticatorConfig2,
|
|
@@ -99884,12 +99923,15 @@ function managedApps(payload5) {
|
|
|
99884
99923
|
_breakpointPresetStyleOverrides: _breakpointPresetStyleOverrides2,
|
|
99885
99924
|
_checkbox: _checkbox2,
|
|
99886
99925
|
_checkboxGroup: _checkboxGroup2,
|
|
99926
|
+
_collection: _collection2,
|
|
99887
99927
|
_commonImage: _commonImage2,
|
|
99888
99928
|
_component: _component2,
|
|
99889
99929
|
_componentData: _componentData2,
|
|
99890
99930
|
_conditionNode: _conditionNode2,
|
|
99891
99931
|
_cssCustomPropertyItem: _cssCustomPropertyItem2,
|
|
99892
99932
|
_cssNumber: _cssNumber2,
|
|
99933
|
+
_dataComponent: _dataComponent2,
|
|
99934
|
+
_dataComponentField: _dataComponentField2,
|
|
99893
99935
|
_dataItem: _dataItem2,
|
|
99894
99936
|
_dataItems: _dataItems2,
|
|
99895
99937
|
_dateInput: _dateInput2,
|
|
@@ -99941,6 +99983,8 @@ function managedApps(payload5) {
|
|
|
99941
99983
|
_node: _node2,
|
|
99942
99984
|
_numberInput: _numberInput2,
|
|
99943
99985
|
_numberType: _numberType2,
|
|
99986
|
+
_objectField: _objectField2,
|
|
99987
|
+
_objectOptions: _objectOptions2,
|
|
99944
99988
|
_objectType: _objectType2,
|
|
99945
99989
|
_option,
|
|
99946
99990
|
_orCondition: _orCondition2,
|
|
@@ -100464,6 +100508,47 @@ var ExtensionType;
|
|
|
100464
100508
|
ExtensionType3["ASCEND_AUTOMATION_EXTENSION"] = "ASCEND_AUTOMATION_EXTENSION";
|
|
100465
100509
|
ExtensionType3["CONTACT_LABELS_EXTENSION"] = "CONTACT_LABELS_EXTENSION";
|
|
100466
100510
|
})(ExtensionType || (ExtensionType = {}));
|
|
100511
|
+
var DataComponentFieldType;
|
|
100512
|
+
(function(DataComponentFieldType3) {
|
|
100513
|
+
DataComponentFieldType3["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
|
|
100514
|
+
DataComponentFieldType3["TEXT"] = "TEXT";
|
|
100515
|
+
DataComponentFieldType3["NUMBER"] = "NUMBER";
|
|
100516
|
+
DataComponentFieldType3["DATE"] = "DATE";
|
|
100517
|
+
DataComponentFieldType3["DATETIME"] = "DATETIME";
|
|
100518
|
+
DataComponentFieldType3["IMAGE"] = "IMAGE";
|
|
100519
|
+
DataComponentFieldType3["BOOLEAN"] = "BOOLEAN";
|
|
100520
|
+
DataComponentFieldType3["DOCUMENT"] = "DOCUMENT";
|
|
100521
|
+
DataComponentFieldType3["URL"] = "URL";
|
|
100522
|
+
DataComponentFieldType3["RICH_TEXT"] = "RICH_TEXT";
|
|
100523
|
+
DataComponentFieldType3["VIDEO"] = "VIDEO";
|
|
100524
|
+
DataComponentFieldType3["ANY"] = "ANY";
|
|
100525
|
+
DataComponentFieldType3["ARRAY_STRING"] = "ARRAY_STRING";
|
|
100526
|
+
DataComponentFieldType3["ARRAY_DOCUMENT"] = "ARRAY_DOCUMENT";
|
|
100527
|
+
DataComponentFieldType3["AUDIO"] = "AUDIO";
|
|
100528
|
+
DataComponentFieldType3["TIME"] = "TIME";
|
|
100529
|
+
DataComponentFieldType3["LANGUAGE"] = "LANGUAGE";
|
|
100530
|
+
DataComponentFieldType3["RICH_CONTENT"] = "RICH_CONTENT";
|
|
100531
|
+
DataComponentFieldType3["MEDIA_GALLERY"] = "MEDIA_GALLERY";
|
|
100532
|
+
DataComponentFieldType3["ADDRESS"] = "ADDRESS";
|
|
100533
|
+
DataComponentFieldType3["REFERENCE"] = "REFERENCE";
|
|
100534
|
+
DataComponentFieldType3["MULTI_REFERENCE"] = "MULTI_REFERENCE";
|
|
100535
|
+
DataComponentFieldType3["OBJECT"] = "OBJECT";
|
|
100536
|
+
DataComponentFieldType3["ARRAY"] = "ARRAY";
|
|
100537
|
+
})(DataComponentFieldType || (DataComponentFieldType = {}));
|
|
100538
|
+
var AccessLevel;
|
|
100539
|
+
(function(AccessLevel3) {
|
|
100540
|
+
AccessLevel3["UNDEFINED"] = "UNDEFINED";
|
|
100541
|
+
AccessLevel3["ANYONE"] = "ANYONE";
|
|
100542
|
+
AccessLevel3["SITE_MEMBER"] = "SITE_MEMBER";
|
|
100543
|
+
AccessLevel3["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
|
|
100544
|
+
AccessLevel3["CMS_EDITOR"] = "CMS_EDITOR";
|
|
100545
|
+
AccessLevel3["PRIVILEGED"] = "PRIVILEGED";
|
|
100546
|
+
})(AccessLevel || (AccessLevel = {}));
|
|
100547
|
+
var Order;
|
|
100548
|
+
(function(Order3) {
|
|
100549
|
+
Order3["ASC"] = "ASC";
|
|
100550
|
+
Order3["DESC"] = "DESC";
|
|
100551
|
+
})(Order || (Order = {}));
|
|
100467
100552
|
var PrimitiveType;
|
|
100468
100553
|
(function(PrimitiveType3) {
|
|
100469
100554
|
PrimitiveType3["UNKNOWN_PRIMITIVE_TYPE"] = "UNKNOWN_PRIMITIVE_TYPE";
|
|
@@ -100542,11 +100627,17 @@ var Type2;
|
|
|
100542
100627
|
Type5["WIDGET_COMPONENT"] = "WIDGET_COMPONENT";
|
|
100543
100628
|
Type5["GENERIC"] = "GENERIC";
|
|
100544
100629
|
})(Type2 || (Type2 = {}));
|
|
100630
|
+
var IntegrationType;
|
|
100631
|
+
(function(IntegrationType3) {
|
|
100632
|
+
IntegrationType3["UNKNOWN_INTEGRATION_TYPE"] = "UNKNOWN_INTEGRATION_TYPE";
|
|
100633
|
+
IntegrationType3["WIX_API"] = "WIX_API";
|
|
100634
|
+
})(IntegrationType || (IntegrationType = {}));
|
|
100545
100635
|
var SourceType;
|
|
100546
100636
|
(function(SourceType3) {
|
|
100547
100637
|
SourceType3["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
100548
100638
|
SourceType3["DEV_CENTER"] = "DEV_CENTER";
|
|
100549
100639
|
SourceType3["WIX_API"] = "WIX_API";
|
|
100640
|
+
SourceType3["INTEGRATION"] = "INTEGRATION";
|
|
100550
100641
|
})(SourceType || (SourceType = {}));
|
|
100551
100642
|
var ExecutionType;
|
|
100552
100643
|
(function(ExecutionType3) {
|
|
@@ -101140,6 +101231,8 @@ var PlanFormDefaultSection;
|
|
|
101140
101231
|
PlanFormDefaultSection3["ADVANCED_SETTINGS"] = "ADVANCED_SETTINGS";
|
|
101141
101232
|
PlanFormDefaultSection3["PRICING"] = "PRICING";
|
|
101142
101233
|
PlanFormDefaultSection3["DURATION"] = "DURATION";
|
|
101234
|
+
PlanFormDefaultSection3["CUSTOM_PRICING_RULES"] = "CUSTOM_PRICING_RULES";
|
|
101235
|
+
PlanFormDefaultSection3["START_DATE_RULES"] = "START_DATE_RULES";
|
|
101143
101236
|
})(PlanFormDefaultSection || (PlanFormDefaultSection = {}));
|
|
101144
101237
|
var PlanPeriodUnit;
|
|
101145
101238
|
(function(PlanPeriodUnit3) {
|
|
@@ -103174,6 +103267,47 @@ var ExtensionType2;
|
|
|
103174
103267
|
ExtensionType3["ASCEND_AUTOMATION_EXTENSION"] = "ASCEND_AUTOMATION_EXTENSION";
|
|
103175
103268
|
ExtensionType3["CONTACT_LABELS_EXTENSION"] = "CONTACT_LABELS_EXTENSION";
|
|
103176
103269
|
})(ExtensionType2 || (ExtensionType2 = {}));
|
|
103270
|
+
var DataComponentFieldType2;
|
|
103271
|
+
(function(DataComponentFieldType3) {
|
|
103272
|
+
DataComponentFieldType3["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
|
|
103273
|
+
DataComponentFieldType3["TEXT"] = "TEXT";
|
|
103274
|
+
DataComponentFieldType3["NUMBER"] = "NUMBER";
|
|
103275
|
+
DataComponentFieldType3["DATE"] = "DATE";
|
|
103276
|
+
DataComponentFieldType3["DATETIME"] = "DATETIME";
|
|
103277
|
+
DataComponentFieldType3["IMAGE"] = "IMAGE";
|
|
103278
|
+
DataComponentFieldType3["BOOLEAN"] = "BOOLEAN";
|
|
103279
|
+
DataComponentFieldType3["DOCUMENT"] = "DOCUMENT";
|
|
103280
|
+
DataComponentFieldType3["URL"] = "URL";
|
|
103281
|
+
DataComponentFieldType3["RICH_TEXT"] = "RICH_TEXT";
|
|
103282
|
+
DataComponentFieldType3["VIDEO"] = "VIDEO";
|
|
103283
|
+
DataComponentFieldType3["ANY"] = "ANY";
|
|
103284
|
+
DataComponentFieldType3["ARRAY_STRING"] = "ARRAY_STRING";
|
|
103285
|
+
DataComponentFieldType3["ARRAY_DOCUMENT"] = "ARRAY_DOCUMENT";
|
|
103286
|
+
DataComponentFieldType3["AUDIO"] = "AUDIO";
|
|
103287
|
+
DataComponentFieldType3["TIME"] = "TIME";
|
|
103288
|
+
DataComponentFieldType3["LANGUAGE"] = "LANGUAGE";
|
|
103289
|
+
DataComponentFieldType3["RICH_CONTENT"] = "RICH_CONTENT";
|
|
103290
|
+
DataComponentFieldType3["MEDIA_GALLERY"] = "MEDIA_GALLERY";
|
|
103291
|
+
DataComponentFieldType3["ADDRESS"] = "ADDRESS";
|
|
103292
|
+
DataComponentFieldType3["REFERENCE"] = "REFERENCE";
|
|
103293
|
+
DataComponentFieldType3["MULTI_REFERENCE"] = "MULTI_REFERENCE";
|
|
103294
|
+
DataComponentFieldType3["OBJECT"] = "OBJECT";
|
|
103295
|
+
DataComponentFieldType3["ARRAY"] = "ARRAY";
|
|
103296
|
+
})(DataComponentFieldType2 || (DataComponentFieldType2 = {}));
|
|
103297
|
+
var AccessLevel2;
|
|
103298
|
+
(function(AccessLevel3) {
|
|
103299
|
+
AccessLevel3["UNDEFINED"] = "UNDEFINED";
|
|
103300
|
+
AccessLevel3["ANYONE"] = "ANYONE";
|
|
103301
|
+
AccessLevel3["SITE_MEMBER"] = "SITE_MEMBER";
|
|
103302
|
+
AccessLevel3["SITE_MEMBER_AUTHOR"] = "SITE_MEMBER_AUTHOR";
|
|
103303
|
+
AccessLevel3["CMS_EDITOR"] = "CMS_EDITOR";
|
|
103304
|
+
AccessLevel3["PRIVILEGED"] = "PRIVILEGED";
|
|
103305
|
+
})(AccessLevel2 || (AccessLevel2 = {}));
|
|
103306
|
+
var Order2;
|
|
103307
|
+
(function(Order3) {
|
|
103308
|
+
Order3["ASC"] = "ASC";
|
|
103309
|
+
Order3["DESC"] = "DESC";
|
|
103310
|
+
})(Order2 || (Order2 = {}));
|
|
103177
103311
|
var PrimitiveType2;
|
|
103178
103312
|
(function(PrimitiveType3) {
|
|
103179
103313
|
PrimitiveType3["UNKNOWN_PRIMITIVE_TYPE"] = "UNKNOWN_PRIMITIVE_TYPE";
|
|
@@ -103252,11 +103386,17 @@ var ActionSPIConfigInterfaceConfigurationType;
|
|
|
103252
103386
|
ActionSPIConfigInterfaceConfigurationType2["WIDGET_COMPONENT"] = "WIDGET_COMPONENT";
|
|
103253
103387
|
ActionSPIConfigInterfaceConfigurationType2["GENERIC"] = "GENERIC";
|
|
103254
103388
|
})(ActionSPIConfigInterfaceConfigurationType || (ActionSPIConfigInterfaceConfigurationType = {}));
|
|
103389
|
+
var IntegrationType2;
|
|
103390
|
+
(function(IntegrationType3) {
|
|
103391
|
+
IntegrationType3["UNKNOWN_INTEGRATION_TYPE"] = "UNKNOWN_INTEGRATION_TYPE";
|
|
103392
|
+
IntegrationType3["WIX_API"] = "WIX_API";
|
|
103393
|
+
})(IntegrationType2 || (IntegrationType2 = {}));
|
|
103255
103394
|
var SourceType2;
|
|
103256
103395
|
(function(SourceType3) {
|
|
103257
103396
|
SourceType3["UNKNOWN_SOURCE_TYPE"] = "UNKNOWN_SOURCE_TYPE";
|
|
103258
103397
|
SourceType3["DEV_CENTER"] = "DEV_CENTER";
|
|
103259
103398
|
SourceType3["WIX_API"] = "WIX_API";
|
|
103399
|
+
SourceType3["INTEGRATION"] = "INTEGRATION";
|
|
103260
103400
|
})(SourceType2 || (SourceType2 = {}));
|
|
103261
103401
|
var ExecutionType2;
|
|
103262
103402
|
(function(ExecutionType3) {
|
|
@@ -103850,6 +103990,8 @@ var PlanFormDefaultSection2;
|
|
|
103850
103990
|
PlanFormDefaultSection3["ADVANCED_SETTINGS"] = "ADVANCED_SETTINGS";
|
|
103851
103991
|
PlanFormDefaultSection3["PRICING"] = "PRICING";
|
|
103852
103992
|
PlanFormDefaultSection3["DURATION"] = "DURATION";
|
|
103993
|
+
PlanFormDefaultSection3["CUSTOM_PRICING_RULES"] = "CUSTOM_PRICING_RULES";
|
|
103994
|
+
PlanFormDefaultSection3["START_DATE_RULES"] = "START_DATE_RULES";
|
|
103853
103995
|
})(PlanFormDefaultSection2 || (PlanFormDefaultSection2 = {}));
|
|
103854
103996
|
var PlanPeriodUnit2;
|
|
103855
103997
|
(function(PlanPeriodUnit3) {
|
|
@@ -106035,6 +106177,70 @@ function createMetaSiteFromTemplate(payload5) {
|
|
|
106035
106177
|
return __createMetaSiteFromTemplate;
|
|
106036
106178
|
}
|
|
106037
106179
|
|
|
106180
|
+
// ../../node_modules/@wix/ambassador-document-management-document-store-v1-transaction/build/es/http.impl.js
|
|
106181
|
+
init_esm_shims();
|
|
106182
|
+
var _distributeRequest = {};
|
|
106183
|
+
var _distributeResponse = {};
|
|
106184
|
+
function resolveComWixpressEditorApiDocumentStoreServiceUrl(opts) {
|
|
106185
|
+
var domainToMappings = {
|
|
106186
|
+
"api._api_base_domain_": [
|
|
106187
|
+
{
|
|
106188
|
+
srcPath: "/editor-document-store",
|
|
106189
|
+
destPath: ""
|
|
106190
|
+
}
|
|
106191
|
+
],
|
|
106192
|
+
"www._base_domain_": [
|
|
106193
|
+
{
|
|
106194
|
+
srcPath: "/_api/editor-document-store",
|
|
106195
|
+
destPath: ""
|
|
106196
|
+
}
|
|
106197
|
+
],
|
|
106198
|
+
"editor._base_domain_": [
|
|
106199
|
+
{
|
|
106200
|
+
srcPath: "/_api/editor-document-store",
|
|
106201
|
+
destPath: ""
|
|
106202
|
+
}
|
|
106203
|
+
],
|
|
106204
|
+
"blocks._base_domain_": [
|
|
106205
|
+
{
|
|
106206
|
+
srcPath: "/_api/editor-document-store",
|
|
106207
|
+
destPath: ""
|
|
106208
|
+
}
|
|
106209
|
+
],
|
|
106210
|
+
"create.editorx": [
|
|
106211
|
+
{
|
|
106212
|
+
srcPath: "/_api/editor-document-store",
|
|
106213
|
+
destPath: ""
|
|
106214
|
+
}
|
|
106215
|
+
]
|
|
106216
|
+
};
|
|
106217
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
106218
|
+
}
|
|
106219
|
+
function distribute(payload5) {
|
|
106220
|
+
var _a3 = serializer(_distributeRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
106221
|
+
var fromRes = serializer(_distributeResponse, {}).fromJSON;
|
|
106222
|
+
function __distribute(_a4) {
|
|
106223
|
+
var host = _a4.host;
|
|
106224
|
+
var serializedData = toReq(payload5);
|
|
106225
|
+
var metadata = {
|
|
106226
|
+
entityFqdn: "wix.document_management.document_store.v1.transaction",
|
|
106227
|
+
method: "POST",
|
|
106228
|
+
methodFqn: "com.wixpress.editor.api.DocumentStoreService.Distribute",
|
|
106229
|
+
url: resolveComWixpressEditorApiDocumentStoreServiceUrl({
|
|
106230
|
+
protoPath: "/v1/distribute",
|
|
106231
|
+
data: serializedData,
|
|
106232
|
+
host
|
|
106233
|
+
}),
|
|
106234
|
+
data: serializedData,
|
|
106235
|
+
transformResponse: fromRes
|
|
106236
|
+
};
|
|
106237
|
+
return metadata;
|
|
106238
|
+
}
|
|
106239
|
+
__distribute.fromReq = fromReq;
|
|
106240
|
+
__distribute.__isAmbassador = true;
|
|
106241
|
+
return __distribute;
|
|
106242
|
+
}
|
|
106243
|
+
|
|
106038
106244
|
// ../metasite-manager-client/src/schemas.ts
|
|
106039
106245
|
init_esm_shims();
|
|
106040
106246
|
var clientSpecMapSchema = external_exports.record(
|
|
@@ -106109,6 +106315,29 @@ var MetasiteManagerClient = class {
|
|
|
106109
106315
|
});
|
|
106110
106316
|
}
|
|
106111
106317
|
};
|
|
106318
|
+
distributeClientUpdate = async (appId) => {
|
|
106319
|
+
try {
|
|
106320
|
+
await this.httpClient.request(
|
|
106321
|
+
distribute({
|
|
106322
|
+
payloads: [
|
|
106323
|
+
{
|
|
106324
|
+
id: appId,
|
|
106325
|
+
messageType: "MANIFEST_UPDATE",
|
|
106326
|
+
data: {
|
|
106327
|
+
appId
|
|
106328
|
+
}
|
|
106329
|
+
}
|
|
106330
|
+
],
|
|
106331
|
+
branchId: "00000000-0000-0000-0000-000000000000"
|
|
106332
|
+
})
|
|
106333
|
+
);
|
|
106334
|
+
} catch (e2) {
|
|
106335
|
+
throw new CliError({
|
|
106336
|
+
code: CliErrorCode.FailedToDistributeClientManifestUpdate(),
|
|
106337
|
+
cause: e2
|
|
106338
|
+
});
|
|
106339
|
+
}
|
|
106340
|
+
};
|
|
106112
106341
|
};
|
|
106113
106342
|
|
|
106114
106343
|
// ../metasite-manager-client/src/useMetasiteManagerClient.ts
|
|
@@ -106862,11 +107091,12 @@ var CreateProject = ({
|
|
|
106862
107091
|
// src/components/LinkCommand/GenerateProject.tsx
|
|
106863
107092
|
init_esm_shims();
|
|
106864
107093
|
var import_react108 = __toESM(require_react(), 1);
|
|
106865
|
-
var
|
|
107094
|
+
var import_variant35 = __toESM(require_lib(), 1);
|
|
106866
107095
|
|
|
106867
107096
|
// ../cli-astro-definitions/src/index.ts
|
|
106868
107097
|
init_esm_shims();
|
|
106869
107098
|
import { join as join11 } from "node:path";
|
|
107099
|
+
var import_variant32 = __toESM(require_lib(), 1);
|
|
106870
107100
|
var wixAstroSiteConfigSchema = zod_default.object({
|
|
106871
107101
|
$schema: zod_default.string().optional(),
|
|
106872
107102
|
projectType: zod_default.literal("Site").optional().default("Site"),
|
|
@@ -106920,6 +107150,12 @@ function getEnvFilePath(projectFolder) {
|
|
|
106920
107150
|
function getExtensionPath(projectFolder, extensionPath) {
|
|
106921
107151
|
return join11(projectFolder, "src", "extensions", extensionPath);
|
|
106922
107152
|
}
|
|
107153
|
+
var PlatformType = (0, import_variant32.variant)({
|
|
107154
|
+
Site: {},
|
|
107155
|
+
Editor: {},
|
|
107156
|
+
Dashboard: {},
|
|
107157
|
+
Blocks: {}
|
|
107158
|
+
});
|
|
106923
107159
|
|
|
106924
107160
|
// ../cli-project-extender/src/index.ts
|
|
106925
107161
|
init_esm_shims();
|
|
@@ -116092,7 +116328,7 @@ async function componentGenerator(opts) {
|
|
|
116092
116328
|
// ../cli-project-extender/src/add-files-from-template.ts
|
|
116093
116329
|
import { join as join16 } from "node:path";
|
|
116094
116330
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
116095
|
-
var
|
|
116331
|
+
var import_variant33 = __toESM(require_lib(), 1);
|
|
116096
116332
|
|
|
116097
116333
|
// ../cli-project-extender/src/clone-templates-repo.ts
|
|
116098
116334
|
init_esm_shims();
|
|
@@ -116276,7 +116512,7 @@ async function addFilesFromTemplate(projectFolder, templateId, packageManager, r
|
|
|
116276
116512
|
packageManager: {
|
|
116277
116513
|
name: packageManager.name
|
|
116278
116514
|
},
|
|
116279
|
-
isMonorepo: (0,
|
|
116515
|
+
isMonorepo: (0, import_variant33.isType)(repoType, RepoType.Monorepo)
|
|
116280
116516
|
}
|
|
116281
116517
|
});
|
|
116282
116518
|
}
|
|
@@ -116312,8 +116548,8 @@ async function getUniqueExtensionPath(projectFolder, extensionPath, suffix) {
|
|
|
116312
116548
|
// src/task-runner.ts
|
|
116313
116549
|
init_esm_shims();
|
|
116314
116550
|
var import_react106 = __toESM(require_react(), 1);
|
|
116315
|
-
var
|
|
116316
|
-
var TaskRunnerStatus = (0,
|
|
116551
|
+
var import_variant34 = __toESM(require_lib(), 1);
|
|
116552
|
+
var TaskRunnerStatus = (0, import_variant34.variant)({
|
|
116317
116553
|
Idle: {},
|
|
116318
116554
|
Running: (runningTasks, totalTaskCount) => {
|
|
116319
116555
|
const taskStatuses = runningTasks.map((task, index) => {
|
|
@@ -116425,7 +116661,7 @@ var GenerateProject = ({ projectFolder, businessId, projectData, onDone, package
|
|
|
116425
116661
|
await executeTaskRunner(tasks);
|
|
116426
116662
|
onDone(true);
|
|
116427
116663
|
}, []);
|
|
116428
|
-
return (0,
|
|
116664
|
+
return (0, import_variant35.match)(taskRunnerStatus, {
|
|
116429
116665
|
Idle: () => null,
|
|
116430
116666
|
Running: (status) => /* @__PURE__ */ import_react108.default.createElement(GenerationProgress, { ...status }),
|
|
116431
116667
|
Done: (status) => /* @__PURE__ */ import_react108.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ import_react108.default.createElement(GenerationProgress, { ...status }), /* @__PURE__ */ import_react108.default.createElement(Box_default, { marginLeft: -2, marginTop: 1 }, /* @__PURE__ */ import_react108.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react108.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react108.default.createElement(Text2, null, "Project set up successfully"))))
|
|
@@ -116493,7 +116729,7 @@ var LinkCommand = ({
|
|
|
116493
116729
|
const packageManager = await createPackageManager(repoType);
|
|
116494
116730
|
return { repoType, packageManager };
|
|
116495
116731
|
}, []);
|
|
116496
|
-
return (0,
|
|
116732
|
+
return (0, import_variant36.match)(status, {
|
|
116497
116733
|
Error: () => null,
|
|
116498
116734
|
Loading: () => /* @__PURE__ */ import_react110.default.createElement(Spinner2, { text: "Loading..." }),
|
|
116499
116735
|
Success: ({ result: { packageManager } }) => {
|
|
@@ -116594,11 +116830,11 @@ function validateTemplateParams(value2) {
|
|
|
116594
116830
|
// src/components/ProcessCommand.tsx
|
|
116595
116831
|
init_esm_shims();
|
|
116596
116832
|
var import_react117 = __toESM(require_react(), 1);
|
|
116597
|
-
var
|
|
116833
|
+
var import_variant44 = __toESM(require_lib(), 1);
|
|
116598
116834
|
|
|
116599
116835
|
// src/parse-command-options.ts
|
|
116600
116836
|
init_esm_shims();
|
|
116601
|
-
var
|
|
116837
|
+
var import_variant38 = __toESM(require_lib(), 1);
|
|
116602
116838
|
import { join as join17 } from "node:path";
|
|
116603
116839
|
|
|
116604
116840
|
// src/validations/index.ts
|
|
@@ -117252,11 +117488,11 @@ async function validateForLatestVersion(pkgJson, packageManager) {
|
|
|
117252
117488
|
// src/validations/package-name.ts
|
|
117253
117489
|
init_esm_shims();
|
|
117254
117490
|
var import_validate_npm_package_name = __toESM(require_lib3(), 1);
|
|
117255
|
-
var
|
|
117256
|
-
var Result = (0,
|
|
117257
|
-
(0,
|
|
117258
|
-
Error: (0,
|
|
117259
|
-
Ok:
|
|
117491
|
+
var import_variant37 = __toESM(require_lib(), 1);
|
|
117492
|
+
var Result = (0, import_variant37.variant)(
|
|
117493
|
+
(0, import_variant37.onTerms)(({ T }) => ({
|
|
117494
|
+
Error: (0, import_variant37.payload)(T),
|
|
117495
|
+
Ok: import_variant37.nil
|
|
117260
117496
|
}))
|
|
117261
117497
|
);
|
|
117262
117498
|
async function validatePackageName(name) {
|
|
@@ -117295,10 +117531,10 @@ var headlessTemplates = [
|
|
|
117295
117531
|
gitPath: "astro/blank"
|
|
117296
117532
|
}
|
|
117297
117533
|
];
|
|
117298
|
-
var TemplateSource = (0,
|
|
117299
|
-
App: (0,
|
|
117300
|
-
GitRepo: (0,
|
|
117301
|
-
Local: (0,
|
|
117534
|
+
var TemplateSource = (0, import_variant38.variant)({
|
|
117535
|
+
App: (0, import_variant38.fields)(),
|
|
117536
|
+
GitRepo: (0, import_variant38.fields)(),
|
|
117537
|
+
Local: (0, import_variant38.fields)()
|
|
117302
117538
|
});
|
|
117303
117539
|
function parseCloudProvider(cloudProvider) {
|
|
117304
117540
|
if (!cloudProvider) {
|
|
@@ -117367,7 +117603,7 @@ async function parseProjectNameOptions(targetParentFolder2, options) {
|
|
|
117367
117603
|
});
|
|
117368
117604
|
}
|
|
117369
117605
|
const npmValidationErrors = await validatePackageName(projectName);
|
|
117370
|
-
if ((0,
|
|
117606
|
+
if ((0, import_variant38.isType)(npmValidationErrors, "Error")) {
|
|
117371
117607
|
throw new CliError({
|
|
117372
117608
|
code: CliErrorCode.ProjectNameArgumentIsInvalid({
|
|
117373
117609
|
errorMessage: `Invalid package name "${projectName}". Please fix the following issues: ${npmValidationErrors.payload.join(", ")}`
|
|
@@ -117423,19 +117659,19 @@ async function parseCommandOptions(targetParentFolder2, options) {
|
|
|
117423
117659
|
// src/components/CreateHeadlessSiteCommand.tsx
|
|
117424
117660
|
init_esm_shims();
|
|
117425
117661
|
var import_react116 = __toESM(require_react(), 1);
|
|
117426
|
-
var
|
|
117662
|
+
var import_variant43 = __toESM(require_lib(), 1);
|
|
117427
117663
|
|
|
117428
117664
|
// src/components/ChooseFolder.tsx
|
|
117429
117665
|
init_esm_shims();
|
|
117430
117666
|
var import_react111 = __toESM(require_react(), 1);
|
|
117431
|
-
var
|
|
117667
|
+
var import_variant39 = __toESM(require_lib(), 1);
|
|
117432
117668
|
import { join as join18 } from "node:path";
|
|
117433
117669
|
var validateAppDirectory = async (targetParentFolder2, packageName) => {
|
|
117434
117670
|
if (!await validateDirectory(join18(targetParentFolder2, packageName))) {
|
|
117435
117671
|
return `Provided directory "${packageName}" is not empty`;
|
|
117436
117672
|
}
|
|
117437
117673
|
const npmValidationErrors = await validatePackageName(packageName);
|
|
117438
|
-
return (0,
|
|
117674
|
+
return (0, import_variant39.match)(npmValidationErrors, {
|
|
117439
117675
|
Ok: () => true,
|
|
117440
117676
|
Error: ({ payload: payload5 }) => `Invalid folder name. Please fix the following issues: ${payload5.join(", ")}`
|
|
117441
117677
|
});
|
|
@@ -117461,7 +117697,7 @@ var ChooseFolder = ({ initialFolderName, targetParentFolder: targetParentFolder2
|
|
|
117461
117697
|
init_esm_shims();
|
|
117462
117698
|
import { mkdir as mkdir3 } from "node:fs/promises";
|
|
117463
117699
|
var import_react112 = __toESM(require_react(), 1);
|
|
117464
|
-
var
|
|
117700
|
+
var import_variant40 = __toESM(require_lib(), 1);
|
|
117465
117701
|
import { join as join20 } from "node:path";
|
|
117466
117702
|
|
|
117467
117703
|
// src/services/generator/template-fetcher.ts
|
|
@@ -117533,7 +117769,7 @@ var GenerateProject2 = ({
|
|
|
117533
117769
|
cause: e2
|
|
117534
117770
|
});
|
|
117535
117771
|
}
|
|
117536
|
-
const templateFolder = await (0,
|
|
117772
|
+
const templateFolder = await (0, import_variant40.match)(selectedTemplate, {
|
|
117537
117773
|
App: ({ gitPath }) => fetchTemplate(headlessTemplatesGitUrl, gitPath),
|
|
117538
117774
|
GitRepo: ({ url: url2, path: path8 }) => fetchTemplate(url2, path8),
|
|
117539
117775
|
Local: ({ path: path8 }) => path8
|
|
@@ -117662,7 +117898,7 @@ var GenerateProject2 = ({
|
|
|
117662
117898
|
await executeTaskRunner(tasks);
|
|
117663
117899
|
onDone(true);
|
|
117664
117900
|
}, []);
|
|
117665
|
-
return (0,
|
|
117901
|
+
return (0, import_variant40.match)(taskRunnerStatus, {
|
|
117666
117902
|
Idle: () => null,
|
|
117667
117903
|
Running: (status) => /* @__PURE__ */ import_react112.default.createElement(GenerationProgress2, { ...status }),
|
|
117668
117904
|
Done: (status) => /* @__PURE__ */ import_react112.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ import_react112.default.createElement(GenerationProgress2, { ...status }), /* @__PURE__ */ import_react112.default.createElement(Box_default, { marginLeft: -2, marginTop: 1 }, /* @__PURE__ */ import_react112.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react112.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react112.default.createElement(Text2, null, "Project set up successfully"))))
|
|
@@ -117694,7 +117930,7 @@ var ChooseTemplate = ({ onSubmit }) => {
|
|
|
117694
117930
|
// src/components/ReleaseProject.tsx
|
|
117695
117931
|
init_esm_shims();
|
|
117696
117932
|
var import_react115 = __toESM(require_react(), 1);
|
|
117697
|
-
var
|
|
117933
|
+
var import_variant42 = __toESM(require_lib(), 1);
|
|
117698
117934
|
|
|
117699
117935
|
// src/components/FinishedSuccessfullyMessage.tsx
|
|
117700
117936
|
init_esm_shims();
|
|
@@ -117720,9 +117956,9 @@ var FinishedSuccessfullyMessage2 = ({ packageManager, folderName, projectData, i
|
|
|
117720
117956
|
|
|
117721
117957
|
// src/hooks/release-project.ts
|
|
117722
117958
|
init_esm_shims();
|
|
117723
|
-
var
|
|
117959
|
+
var import_variant41 = __toESM(require_lib(), 1);
|
|
117724
117960
|
import { join as join21 } from "node:path";
|
|
117725
|
-
var ReleaseStateVariant = (0,
|
|
117961
|
+
var ReleaseStateVariant = (0, import_variant41.variant)({
|
|
117726
117962
|
Success: {},
|
|
117727
117963
|
Skipped: {},
|
|
117728
117964
|
Error: {}
|
|
@@ -117794,10 +118030,10 @@ var ReleaseProject = ({
|
|
|
117794
118030
|
});
|
|
117795
118031
|
}
|
|
117796
118032
|
}
|
|
117797
|
-
)), (0,
|
|
118033
|
+
)), (0, import_variant42.match)(status, {
|
|
117798
118034
|
NotRequested: () => null,
|
|
117799
118035
|
Success: ({ result }) => {
|
|
117800
|
-
return /* @__PURE__ */ import_react115.default.createElement(import_react115.default.Fragment, null, (0,
|
|
118036
|
+
return /* @__PURE__ */ import_react115.default.createElement(import_react115.default.Fragment, null, (0, import_variant42.match)(result, {
|
|
117801
118037
|
Success: () => /* @__PURE__ */ import_react115.default.createElement(Box_default, { marginLeft: -2 }, /* @__PURE__ */ import_react115.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react115.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react115.default.createElement(Text2, null, "Site published successfully"))),
|
|
117802
118038
|
Skipped: () => /* @__PURE__ */ import_react115.default.createElement(Text2, null, `No worries, you can publish your site later by running ${packageManager.getRunCmd()} release`),
|
|
117803
118039
|
Error: () => /* @__PURE__ */ import_react115.default.createElement(Box_default, { flexDirection: "column", gap: 1 }, /* @__PURE__ */ import_react115.default.createElement(Alert, { type: "error" }, "Failed to publish your site"), /* @__PURE__ */ import_react115.default.createElement(Text2, null, `No worries, you can publish your site later by running ${packageManager.getRunCmd()} release`))
|
|
@@ -117807,7 +118043,7 @@ var ReleaseProject = ({
|
|
|
117807
118043
|
packageManager,
|
|
117808
118044
|
folderName,
|
|
117809
118045
|
projectData,
|
|
117810
|
-
isReleased: (0,
|
|
118046
|
+
isReleased: (0, import_variant42.isType)(result, "Success")
|
|
117811
118047
|
}
|
|
117812
118048
|
));
|
|
117813
118049
|
},
|
|
@@ -117842,7 +118078,7 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117842
118078
|
await validateForLatestVersion(package_default, packageManager);
|
|
117843
118079
|
return { repoType, packageManager };
|
|
117844
118080
|
}, []);
|
|
117845
|
-
return (0,
|
|
118081
|
+
return (0, import_variant43.match)(status, {
|
|
117846
118082
|
Error: () => null,
|
|
117847
118083
|
Loading: () => /* @__PURE__ */ import_react116.default.createElement(Spinner2, { text: "Loading..." }),
|
|
117848
118084
|
Success: ({ result: { packageManager, repoType } }) => {
|
|
@@ -117949,7 +118185,7 @@ var ProcessCommand = ({ targetParentFolder: targetParentFolder2, commandOptions
|
|
|
117949
118185
|
}
|
|
117950
118186
|
return result;
|
|
117951
118187
|
}, []);
|
|
117952
|
-
return (0,
|
|
118188
|
+
return (0, import_variant44.match)(status, {
|
|
117953
118189
|
Error: () => null,
|
|
117954
118190
|
Loading: () => /* @__PURE__ */ import_react117.default.createElement(Spinner2, { text: "Loading..." }),
|
|
117955
118191
|
Success: ({
|