@wix/create-app 0.0.106 → 0.0.107

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/bin/index.cjs CHANGED
@@ -14,9 +14,9 @@ process.setSourceMapsEnabled(true);
14
14
  const major = versionParts[0];
15
15
  const minor = versionParts[1];
16
16
 
17
- if (major < 18 || (major === 18 && minor < 16)) {
17
+ if (major < 20 || (major === 20 && minor < 9)) {
18
18
  const currentVersion = colorize(RED, process.versions.node);
19
- const supportedVersion = colorize(GREEN, '18.16.0');
19
+ const supportedVersion = colorize(GREEN, '20.9.0');
20
20
 
21
21
  console.error(
22
22
  `⛔️ Node version ${currentVersion} detected, minimum supported version is ${supportedVersion}`
package/build/index.js CHANGED
@@ -57182,7 +57182,8 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
57182
57182
  FailedToGetSdkSlotData: {},
57183
57183
  FailedToListComponentByComponentType: {},
57184
57184
  FailedToParseBackofficeExtensionContainer: {},
57185
- FailedToParseBackofficePages: {}
57185
+ FailedToParseBackofficePages: {},
57186
+ FailedToCleanDistFolder: {}
57186
57187
  });
57187
57188
  var CliUserErrorCode = (0, import_variant11.variant)({
57188
57189
  LatestVersionOfCreateAppRequired: (0, import_variant11.fields)(),
@@ -57284,7 +57285,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
57284
57285
  InsufficientNonInterractiveReleaseParameters: {},
57285
57286
  AppNameArgumentIsInvalid: (0, import_variant11.fields)(),
57286
57287
  CannotReleaseMinorInNoninteractive: {},
57287
- SiteComponentConfigNotFound: (0, import_variant11.fields)()
57288
+ SiteComponentConfigNotFound: (0, import_variant11.fields)(),
57289
+ FailedToImportCliApp: {}
57288
57290
  });
57289
57291
  var CliErrorCode = (0, import_variant11.variant)({
57290
57292
  ...CliSystemErrorCode,
@@ -66682,8 +66684,9 @@ function getErrorComponent(code, cause) {
66682
66684
  return () => /* @__PURE__ */ import_react78.default.createElement(
66683
66685
  ErrorMessage,
66684
66686
  {
66685
- message: /* @__PURE__ */ import_react78.default.createElement(import_react78.default.Fragment, null, "Could not start the migration process"),
66686
- hint: "Make sure that your package.json does not have packages installed outside of dev dependencies"
66687
+ message: "Could not start the migration process",
66688
+ explanation: "Make sure your `package.json` does not contain any packages under `dependencies`, as the migration cannot proceed if any are present.",
66689
+ hint: "If you need to keep any of these packages, move them to `devDependencies` before proceeding."
66687
66690
  }
66688
66691
  );
66689
66692
  },
@@ -67644,6 +67647,9 @@ function getErrorComponent(code, cause) {
67644
67647
  FailedToParseBackofficePages: () => {
67645
67648
  return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: `Failed to parse backoffice pages data` });
67646
67649
  },
67650
+ FailedToCleanDistFolder: () => {
67651
+ return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to clean dist folder" });
67652
+ },
67647
67653
  FailedToDeployDocument: () => {
67648
67654
  return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to deploy site document." });
67649
67655
  },
@@ -67726,6 +67732,9 @@ ${errorMessage2}`
67726
67732
  message: `Site component config not found at ${configPath}`
67727
67733
  }
67728
67734
  );
67735
+ },
67736
+ FailedToImportCliApp: () => {
67737
+ return () => /* @__PURE__ */ import_react78.default.createElement(ErrorMessage, { cause, message: "Failed to load `@wix/cli-app`." });
67729
67738
  }
67730
67739
  });
67731
67740
  }
@@ -71219,7 +71228,7 @@ function reportCommandStartEvent({
71219
71228
  var package_default = {
71220
71229
  name: "@wix/create-app",
71221
71230
  description: "Create Wix apps",
71222
- version: "0.0.106",
71231
+ version: "0.0.107",
71223
71232
  author: "Ihor Machuzhak",
71224
71233
  bin: "bin/index.cjs",
71225
71234
  devDependencies: {
@@ -71257,7 +71266,7 @@ var package_default = {
71257
71266
  zod: "^3.24.2"
71258
71267
  },
71259
71268
  engines: {
71260
- node: ">= 18.16"
71269
+ node: ">= 20.9.0"
71261
71270
  },
71262
71271
  files: [
71263
71272
  "bin",
@@ -74676,12 +74685,14 @@ var _arrayType = { items: "_arrayItems" };
74676
74685
  var _audioData = { audio: "_media", coverImage: "_media" };
74677
74686
  var _authenticatorConfig = { expectedInputs: "_expectedInputs" };
74678
74687
  var _background = { image: "_media" };
74688
+ var _backOfficeCustomization = { sidebarConfig: "_sidebarConfig" };
74679
74689
  var _billing = {
74680
74690
  monthlyPrice: "DOUBLE",
74681
74691
  yearlyPrice: "DOUBLE",
74682
74692
  oneTimePrice: "DOUBLE",
74683
74693
  meteredBilling: "_meteredBilling"
74684
74694
  };
74695
+ var _category = { children: "_sidebarChildItem" };
74685
74696
  var _checkbox = { label: "_richContent" };
74686
74697
  var _checkboxGroup = { description: "_richContent", options: "_option" };
74687
74698
  var _commonImage = {
@@ -74704,7 +74715,8 @@ var _componentData = {
74704
74715
  function: "_function",
74705
74716
  papiProvider: "_pluginConfig",
74706
74717
  multilingualTranslationSchemaGroup: "_schemaGroup",
74707
- editorReactComponent: "_editorReactComponent"
74718
+ editorReactComponent: "_editorReactComponent",
74719
+ backOfficeCustomization: "_backOfficeCustomization"
74708
74720
  };
74709
74721
  var _conditionNode = { and: "_andCondition", or: "_orCondition" };
74710
74722
  var _dataItem = { number: "_api_Number", arrayItems: "_apiArrayItems" };
@@ -74883,6 +74895,9 @@ var _schemaGroup = {
74883
74895
  };
74884
74896
  var _shippingLabelCarrierSpiConfig = { packageTypes: "_packageType" };
74885
74897
  var _shippingProviderConfig = { shippingPrice: "DOUBLE" };
74898
+ var _sidebarChildItem = { category: "_category" };
74899
+ var _sidebarConfig = { sidebarItems: "_sidebarRootItem" };
74900
+ var _sidebarRootItem = { category: "_category" };
74886
74901
  var _signature = { description: "_richContent" };
74887
74902
  var _studioWidgetComponentData = {
74888
74903
  widgetDisplay: "_widgetDisplay",
@@ -75200,8 +75215,10 @@ function getAppByVersion(payload5) {
75200
75215
  _arrayType,
75201
75216
  _audioData,
75202
75217
  _authenticatorConfig,
75218
+ _backOfficeCustomization,
75203
75219
  _background,
75204
75220
  _billing,
75221
+ _category,
75205
75222
  _checkbox,
75206
75223
  _checkboxGroup,
75207
75224
  _commonImage,
@@ -75283,6 +75300,9 @@ function getAppByVersion(payload5) {
75283
75300
  _schemaGroup,
75284
75301
  _shippingLabelCarrierSpiConfig,
75285
75302
  _shippingProviderConfig,
75303
+ _sidebarChildItem,
75304
+ _sidebarConfig,
75305
+ _sidebarRootItem,
75286
75306
  _signature,
75287
75307
  _studioWidgetComponentData,
75288
75308
  _submitSettings,
@@ -75858,6 +75878,8 @@ var _arrayType2 = { items: "_arrayItems" };
75858
75878
  var _audioData2 = { audio: "_media", coverImage: "_media" };
75859
75879
  var _authenticatorConfig2 = { expectedInputs: "_expectedInputs" };
75860
75880
  var _background2 = { image: "_media" };
75881
+ var _backOfficeCustomization2 = { sidebarConfig: "_sidebarConfig" };
75882
+ var _category2 = { children: "_sidebarChildItem" };
75861
75883
  var _checkbox2 = { label: "_richContent" };
75862
75884
  var _checkboxGroup2 = { description: "_richContent", options: "_option" };
75863
75885
  var _commonImage2 = {
@@ -75880,7 +75902,8 @@ var _componentData2 = {
75880
75902
  function: "_function",
75881
75903
  papiProvider: "_pluginConfig",
75882
75904
  multilingualTranslationSchemaGroup: "_schemaGroup",
75883
- editorReactComponent: "_editorReactComponent"
75905
+ editorReactComponent: "_editorReactComponent",
75906
+ backOfficeCustomization: "_backOfficeCustomization"
75884
75907
  };
75885
75908
  var _conditionNode2 = { and: "_andCondition", or: "_orCondition" };
75886
75909
  var _dataItem2 = { number: "_api_Number", arrayItems: "_apiArrayItems" };
@@ -76061,6 +76084,9 @@ var _schemaGroup2 = {
76061
76084
  };
76062
76085
  var _shippingLabelCarrierSpiConfig2 = { packageTypes: "_packageType" };
76063
76086
  var _shippingProviderConfig2 = { shippingPrice: "DOUBLE" };
76087
+ var _sidebarChildItem2 = { category: "_category" };
76088
+ var _sidebarConfig2 = { sidebarItems: "_sidebarRootItem" };
76089
+ var _sidebarRootItem2 = { category: "_category" };
76064
76090
  var _signature2 = { description: "_richContent" };
76065
76091
  var _studioWidgetComponentData2 = {
76066
76092
  widgetDisplay: "_widgetDisplay",
@@ -76172,7 +76198,9 @@ function managedApps(payload5) {
76172
76198
  _arrayType: _arrayType2,
76173
76199
  _audioData: _audioData2,
76174
76200
  _authenticatorConfig: _authenticatorConfig2,
76201
+ _backOfficeCustomization: _backOfficeCustomization2,
76175
76202
  _background: _background2,
76203
+ _category: _category2,
76176
76204
  _checkbox: _checkbox2,
76177
76205
  _checkboxGroup: _checkboxGroup2,
76178
76206
  _commonImage: _commonImage2,
@@ -76257,6 +76285,9 @@ function managedApps(payload5) {
76257
76285
  _schemaGroup: _schemaGroup2,
76258
76286
  _shippingLabelCarrierSpiConfig: _shippingLabelCarrierSpiConfig2,
76259
76287
  _shippingProviderConfig: _shippingProviderConfig2,
76288
+ _sidebarChildItem: _sidebarChildItem2,
76289
+ _sidebarConfig: _sidebarConfig2,
76290
+ _sidebarRootItem: _sidebarRootItem2,
76260
76291
  _signature: _signature2,
76261
76292
  _studioWidgetComponentData: _studioWidgetComponentData2,
76262
76293
  _submitSettings: _submitSettings2,
@@ -76520,6 +76551,7 @@ var ComponentType;
76520
76551
  ComponentType3["FORM_SUBMISSION_MODERATION"] = "FORM_SUBMISSION_MODERATION";
76521
76552
  ComponentType3["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
76522
76553
  ComponentType3["BILLING_OPERATION"] = "BILLING_OPERATION";
76554
+ ComponentType3["BACK_OFFICE_CUSTOMIZATION"] = "BACK_OFFICE_CUSTOMIZATION";
76523
76555
  })(ComponentType || (ComponentType = {}));
76524
76556
  var WidgetVertical;
76525
76557
  (function(WidgetVertical3) {
@@ -78077,6 +78109,19 @@ var RestrictionLevel;
78077
78109
  RestrictionLevel3["WARNING"] = "WARNING";
78078
78110
  RestrictionLevel3["LOCKED"] = "LOCKED";
78079
78111
  })(RestrictionLevel || (RestrictionLevel = {}));
78112
+ var Theme;
78113
+ (function(Theme3) {
78114
+ Theme3["UNKNOWN_THEME"] = "UNKNOWN_THEME";
78115
+ Theme3["DARK"] = "DARK";
78116
+ Theme3["LIGHT"] = "LIGHT";
78117
+ })(Theme || (Theme = {}));
78118
+ var SidebarDataType;
78119
+ (function(SidebarDataType3) {
78120
+ SidebarDataType3["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
78121
+ SidebarDataType3["CATEGORY"] = "CATEGORY";
78122
+ SidebarDataType3["PAGE"] = "PAGE";
78123
+ SidebarDataType3["SEPARATOR"] = "SEPARATOR";
78124
+ })(SidebarDataType || (SidebarDataType = {}));
78080
78125
  var SaleType;
78081
78126
  (function(SaleType2) {
78082
78127
  SaleType2["UNKNOWN_SALE_TYPE"] = "UNKNOWN_SALE_TYPE";
@@ -78419,6 +78464,7 @@ var ComponentType2;
78419
78464
  ComponentType3["FORM_SUBMISSION_MODERATION"] = "FORM_SUBMISSION_MODERATION";
78420
78465
  ComponentType3["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
78421
78466
  ComponentType3["BILLING_OPERATION"] = "BILLING_OPERATION";
78467
+ ComponentType3["BACK_OFFICE_CUSTOMIZATION"] = "BACK_OFFICE_CUSTOMIZATION";
78422
78468
  })(ComponentType2 || (ComponentType2 = {}));
78423
78469
  var WidgetVertical2;
78424
78470
  (function(WidgetVertical3) {
@@ -79976,6 +80022,19 @@ var RestrictionLevel2;
79976
80022
  RestrictionLevel3["WARNING"] = "WARNING";
79977
80023
  RestrictionLevel3["LOCKED"] = "LOCKED";
79978
80024
  })(RestrictionLevel2 || (RestrictionLevel2 = {}));
80025
+ var Theme2;
80026
+ (function(Theme3) {
80027
+ Theme3["UNKNOWN_THEME"] = "UNKNOWN_THEME";
80028
+ Theme3["DARK"] = "DARK";
80029
+ Theme3["LIGHT"] = "LIGHT";
80030
+ })(Theme2 || (Theme2 = {}));
80031
+ var SidebarDataType2;
80032
+ (function(SidebarDataType3) {
80033
+ SidebarDataType3["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
80034
+ SidebarDataType3["CATEGORY"] = "CATEGORY";
80035
+ SidebarDataType3["PAGE"] = "PAGE";
80036
+ SidebarDataType3["SEPARATOR"] = "SEPARATOR";
80037
+ })(SidebarDataType2 || (SidebarDataType2 = {}));
79979
80038
  var OpenConsentIn2;
79980
80039
  (function(OpenConsentIn3) {
79981
80040
  OpenConsentIn3["NONE_VALUE"] = "NONE_VALUE";