@wix/create-headless-site 0.0.30 → 0.0.31
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 +29 -6
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -89164,6 +89164,7 @@ var Platform;
|
|
|
89164
89164
|
Platform2["EditorSettings"] = "editor:settings";
|
|
89165
89165
|
Platform2["Mobile"] = "mobile";
|
|
89166
89166
|
Platform2["Standards"] = "standards";
|
|
89167
|
+
Platform2["DevPortal"] = "dev-portal";
|
|
89167
89168
|
})(Platform || (Platform = {}));
|
|
89168
89169
|
var ErrorSeverity;
|
|
89169
89170
|
(function(ErrorSeverity2) {
|
|
@@ -90353,7 +90354,7 @@ function wixCliCliError(params) {
|
|
|
90353
90354
|
var package_default = {
|
|
90354
90355
|
name: "@wix/create-headless-site",
|
|
90355
90356
|
description: "Headless site creation wizard",
|
|
90356
|
-
version: "0.0.
|
|
90357
|
+
version: "0.0.31",
|
|
90357
90358
|
bin: "bin/index.cjs",
|
|
90358
90359
|
devDependencies: {
|
|
90359
90360
|
"@commander-js/extra-typings": "^13.0.0",
|
|
@@ -95516,6 +95517,7 @@ var ComponentType;
|
|
|
95516
95517
|
ComponentType3["WIX_AI_GATEWAY_CALLBACK"] = "WIX_AI_GATEWAY_CALLBACK";
|
|
95517
95518
|
ComponentType3["URL_MAPPER_PROVIDER"] = "URL_MAPPER_PROVIDER";
|
|
95518
95519
|
ComponentType3["PROVIDER_SUPPRESSION_SERVICE_PLUGIN"] = "PROVIDER_SUPPRESSION_SERVICE_PLUGIN";
|
|
95520
|
+
ComponentType3["ECOM_FORMS"] = "ECOM_FORMS";
|
|
95519
95521
|
})(ComponentType || (ComponentType = {}));
|
|
95520
95522
|
var WidgetVertical;
|
|
95521
95523
|
(function(WidgetVertical3) {
|
|
@@ -96234,6 +96236,7 @@ var DecorationType;
|
|
|
96234
96236
|
DecorationType3["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
96235
96237
|
DecorationType3["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
96236
96238
|
DecorationType3["SUBSCRIPT"] = "SUBSCRIPT";
|
|
96239
|
+
DecorationType3["FONT_FAMILY"] = "FONT_FAMILY";
|
|
96237
96240
|
})(DecorationType || (DecorationType = {}));
|
|
96238
96241
|
var FontType;
|
|
96239
96242
|
(function(FontType3) {
|
|
@@ -96337,6 +96340,7 @@ var TestEnum;
|
|
|
96337
96340
|
(function(TestEnum3) {
|
|
96338
96341
|
TestEnum3["UNKNOWN_TEST_ENUM"] = "UNKNOWN_TEST_ENUM";
|
|
96339
96342
|
TestEnum3["FIRST_TEST"] = "FIRST_TEST";
|
|
96343
|
+
TestEnum3["SECOND_TEST"] = "SECOND_TEST";
|
|
96340
96344
|
})(TestEnum || (TestEnum = {}));
|
|
96341
96345
|
var CalendarType;
|
|
96342
96346
|
(function(CalendarType3) {
|
|
@@ -97809,9 +97813,12 @@ var TimeConstraintType;
|
|
|
97809
97813
|
TimeConstraintType3["LAST_DAYS"] = "LAST_DAYS";
|
|
97810
97814
|
TimeConstraintType3["NEXT_DAYS"] = "NEXT_DAYS";
|
|
97811
97815
|
TimeConstraintType3["BETWEEN"] = "BETWEEN";
|
|
97816
|
+
TimeConstraintType3["TODAY"] = "TODAY";
|
|
97812
97817
|
TimeConstraintType3["THIS_MONTH"] = "THIS_MONTH";
|
|
97813
97818
|
TimeConstraintType3["ON_OR_AFTER"] = "ON_OR_AFTER";
|
|
97814
97819
|
TimeConstraintType3["ON_OR_BEFORE"] = "ON_OR_BEFORE";
|
|
97820
|
+
TimeConstraintType3["LAST_MONTHS"] = "LAST_MONTHS";
|
|
97821
|
+
TimeConstraintType3["NEXT_MONTHS"] = "NEXT_MONTHS";
|
|
97815
97822
|
})(TimeConstraintType || (TimeConstraintType = {}));
|
|
97816
97823
|
var ValueConstraintType;
|
|
97817
97824
|
(function(ValueConstraintType3) {
|
|
@@ -97856,6 +97863,7 @@ var AssetType;
|
|
|
97856
97863
|
AssetType3["RICOS"] = "RICOS";
|
|
97857
97864
|
AssetType3["DOC"] = "DOC";
|
|
97858
97865
|
AssetType3["SLIDE"] = "SLIDE";
|
|
97866
|
+
AssetType3["WIDGET"] = "WIDGET";
|
|
97859
97867
|
})(AssetType || (AssetType = {}));
|
|
97860
97868
|
var SaleType;
|
|
97861
97869
|
(function(SaleType2) {
|
|
@@ -98300,6 +98308,7 @@ var ComponentType2;
|
|
|
98300
98308
|
ComponentType3["WIX_AI_GATEWAY_CALLBACK"] = "WIX_AI_GATEWAY_CALLBACK";
|
|
98301
98309
|
ComponentType3["URL_MAPPER_PROVIDER"] = "URL_MAPPER_PROVIDER";
|
|
98302
98310
|
ComponentType3["PROVIDER_SUPPRESSION_SERVICE_PLUGIN"] = "PROVIDER_SUPPRESSION_SERVICE_PLUGIN";
|
|
98311
|
+
ComponentType3["ECOM_FORMS"] = "ECOM_FORMS";
|
|
98303
98312
|
})(ComponentType2 || (ComponentType2 = {}));
|
|
98304
98313
|
var WidgetVertical2;
|
|
98305
98314
|
(function(WidgetVertical3) {
|
|
@@ -99018,6 +99027,7 @@ var DecorationType2;
|
|
|
99018
99027
|
DecorationType3["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
99019
99028
|
DecorationType3["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
99020
99029
|
DecorationType3["SUBSCRIPT"] = "SUBSCRIPT";
|
|
99030
|
+
DecorationType3["FONT_FAMILY"] = "FONT_FAMILY";
|
|
99021
99031
|
})(DecorationType2 || (DecorationType2 = {}));
|
|
99022
99032
|
var FontType2;
|
|
99023
99033
|
(function(FontType3) {
|
|
@@ -99121,6 +99131,7 @@ var TestEnum2;
|
|
|
99121
99131
|
(function(TestEnum3) {
|
|
99122
99132
|
TestEnum3["UNKNOWN_TEST_ENUM"] = "UNKNOWN_TEST_ENUM";
|
|
99123
99133
|
TestEnum3["FIRST_TEST"] = "FIRST_TEST";
|
|
99134
|
+
TestEnum3["SECOND_TEST"] = "SECOND_TEST";
|
|
99124
99135
|
})(TestEnum2 || (TestEnum2 = {}));
|
|
99125
99136
|
var CalendarType2;
|
|
99126
99137
|
(function(CalendarType3) {
|
|
@@ -100593,9 +100604,12 @@ var TimeConstraintType2;
|
|
|
100593
100604
|
TimeConstraintType3["LAST_DAYS"] = "LAST_DAYS";
|
|
100594
100605
|
TimeConstraintType3["NEXT_DAYS"] = "NEXT_DAYS";
|
|
100595
100606
|
TimeConstraintType3["BETWEEN"] = "BETWEEN";
|
|
100607
|
+
TimeConstraintType3["TODAY"] = "TODAY";
|
|
100596
100608
|
TimeConstraintType3["THIS_MONTH"] = "THIS_MONTH";
|
|
100597
100609
|
TimeConstraintType3["ON_OR_AFTER"] = "ON_OR_AFTER";
|
|
100598
100610
|
TimeConstraintType3["ON_OR_BEFORE"] = "ON_OR_BEFORE";
|
|
100611
|
+
TimeConstraintType3["LAST_MONTHS"] = "LAST_MONTHS";
|
|
100612
|
+
TimeConstraintType3["NEXT_MONTHS"] = "NEXT_MONTHS";
|
|
100599
100613
|
})(TimeConstraintType2 || (TimeConstraintType2 = {}));
|
|
100600
100614
|
var ValueConstraintType2;
|
|
100601
100615
|
(function(ValueConstraintType3) {
|
|
@@ -100640,6 +100654,7 @@ var AssetType2;
|
|
|
100640
100654
|
AssetType3["RICOS"] = "RICOS";
|
|
100641
100655
|
AssetType3["DOC"] = "DOC";
|
|
100642
100656
|
AssetType3["SLIDE"] = "SLIDE";
|
|
100657
|
+
AssetType3["WIDGET"] = "WIDGET";
|
|
100643
100658
|
})(AssetType2 || (AssetType2 = {}));
|
|
100644
100659
|
var OpenConsentIn2;
|
|
100645
100660
|
(function(OpenConsentIn3) {
|
|
@@ -111544,16 +111559,17 @@ init_esm_shims();
|
|
|
111544
111559
|
import { resolve as resolve4, join as join13 } from "node:path";
|
|
111545
111560
|
import { copyFile as copyFile2, mkdir as mkdir2 } from "node:fs/promises";
|
|
111546
111561
|
async function assetsGenerator(opts) {
|
|
111547
|
-
const { templateRoot, projectFolder, outputPath } = opts;
|
|
111562
|
+
const { templateRoot, projectFolder, outputPath, assetsPrefix } = opts;
|
|
111548
111563
|
const assets = join13(templateRoot, "assets");
|
|
111549
111564
|
if (await pathExists(assets)) {
|
|
111550
|
-
const publicDir = join13(projectFolder,
|
|
111565
|
+
const publicDir = join13(projectFolder, outputPath ?? "");
|
|
111551
111566
|
const publicFiles = await getFiles(assets);
|
|
111552
111567
|
await mkdir2(publicDir, { recursive: true });
|
|
111553
111568
|
await Promise.all(
|
|
111554
111569
|
publicFiles.map(async (file) => {
|
|
111570
|
+
const outputName = assetsPrefix ? `${assetsPrefix}-${file}` : file;
|
|
111555
111571
|
const from = resolve4(assets, file);
|
|
111556
|
-
const to = resolve4(publicDir,
|
|
111572
|
+
const to = resolve4(publicDir, outputName);
|
|
111557
111573
|
await copyFile2(from, to);
|
|
111558
111574
|
})
|
|
111559
111575
|
);
|
|
@@ -111562,7 +111578,13 @@ async function assetsGenerator(opts) {
|
|
|
111562
111578
|
|
|
111563
111579
|
// ../gena/src/component-generator.ts
|
|
111564
111580
|
async function componentGenerator(opts) {
|
|
111565
|
-
const {
|
|
111581
|
+
const {
|
|
111582
|
+
template,
|
|
111583
|
+
projectFolder,
|
|
111584
|
+
assetsOutputPath,
|
|
111585
|
+
assetsPrefix,
|
|
111586
|
+
...generatorOpts
|
|
111587
|
+
} = opts;
|
|
111566
111588
|
const newFiles = await generator({
|
|
111567
111589
|
...generatorOpts,
|
|
111568
111590
|
template: join14(template, "files")
|
|
@@ -111570,7 +111592,8 @@ async function componentGenerator(opts) {
|
|
|
111570
111592
|
await assetsGenerator({
|
|
111571
111593
|
templateRoot: template,
|
|
111572
111594
|
projectFolder,
|
|
111573
|
-
outputPath: assetsOutputPath
|
|
111595
|
+
outputPath: assetsOutputPath,
|
|
111596
|
+
assetsPrefix
|
|
111574
111597
|
});
|
|
111575
111598
|
const newDependencies = await dependenciesUpdater({
|
|
111576
111599
|
projectFolder,
|