@wix/create-headless-site 0.0.2 → 0.0.3

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 CHANGED
@@ -62646,10 +62646,13 @@ var CliUserErrorCode = (0, import_variant11.variant)({
62646
62646
  AppNameArgumentIsInvalid: (0, import_variant11.fields)(),
62647
62647
  CannotReleaseMinorInNoninteractive: {},
62648
62648
  SiteComponentConfigNotFound: (0, import_variant11.fields)(),
62649
+ SiteComponentPanelConfigNotFound: (0, import_variant11.fields)(),
62650
+ SiteComponentPanelDoNotExists: (0, import_variant11.fields)(),
62649
62651
  FailedToImportCliApp: {},
62650
62652
  FailedToCleanDistFolder: {},
62651
62653
  FailedToIdentifyProgramFlow: (0, import_variant11.fields)(),
62652
- BuildOutputMissing: (0, import_variant11.fields)()
62654
+ BuildOutputMissing: (0, import_variant11.fields)(),
62655
+ FailedToCreateMonitoringVitePlugin: (0, import_variant11.fields)()
62653
62656
  });
62654
62657
  var CliErrorCode = (0, import_variant11.variant)({
62655
62658
  ...CliSystemErrorCode,
@@ -63494,6 +63497,12 @@ function resolveWixIdentityOauth2V1Oauth2NgUrl(opts) {
63494
63497
  srcPath: "/oauth2",
63495
63498
  destPath: "/v1/oauth"
63496
63499
  }
63500
+ ],
63501
+ "api._api_base_domain_": [
63502
+ {
63503
+ srcPath: "/oauth2-ng",
63504
+ destPath: ""
63505
+ }
63497
63506
  ]
63498
63507
  };
63499
63508
  return resolveUrl(Object.assign(opts, { domainToMappings }));
@@ -72502,7 +72511,8 @@ function getErrorComponent(code, cause) {
72502
72511
  topology: () => "topology",
72503
72512
  "site-plugin": () => "site plugin",
72504
72513
  monitoring: () => "monitoring",
72505
- "site-component": () => "site component"
72514
+ "site-component": () => "site component",
72515
+ "site-component-panel": () => "site component panel"
72506
72516
  });
72507
72517
  return /* @__PURE__ */ import_react78.default.createElement(Box_default, { flexDirection: "column" }, /* @__PURE__ */ import_react78.default.createElement(Text2, null, /* @__PURE__ */ import_react78.default.createElement(Text2, { bold: true }, "Duplicate ID: "), issue.id), /* @__PURE__ */ import_react78.default.createElement(Text2, { bold: true }, "Extensions:"), issue.components.map(({ name, path: path8, type }) => /* @__PURE__ */ import_react78.default.createElement(Text2, { key: path8 }, "[", typeToName(type), "] ", name, " (", path8, ")")), /* @__PURE__ */ import_react78.default.createElement(Text2, null, /* @__PURE__ */ import_react78.default.createElement(Text2, { bold: true }, "Possible GUID: "), issue.suggestedId));
72508
72518
  };
@@ -73280,6 +73290,22 @@ ${errorMessage}`
73280
73290
  }
73281
73291
  );
73282
73292
  },
73293
+ SiteComponentPanelConfigNotFound: ({ configPath }) => {
73294
+ return () => /* @__PURE__ */ import_react78.default.createElement(
73295
+ ErrorMessage,
73296
+ {
73297
+ message: `Site component panel config not found at ${configPath}`
73298
+ }
73299
+ );
73300
+ },
73301
+ SiteComponentPanelDoNotExists: ({ panelName }) => {
73302
+ return () => /* @__PURE__ */ import_react78.default.createElement(
73303
+ ErrorMessage,
73304
+ {
73305
+ message: `Site component panel with name ${panelName} do not exist`
73306
+ }
73307
+ );
73308
+ },
73283
73309
  FailedToImportCliApp: () => {
73284
73310
  return () => /* @__PURE__ */ import_react78.default.createElement(ErrorMessage, { cause, message: "Failed to load `@wix/cli-app`." });
73285
73311
  },
@@ -73323,6 +73349,16 @@ ${errorMessage}`
73323
73349
  hint: "Build the project before proceeding."
73324
73350
  }
73325
73351
  );
73352
+ },
73353
+ FailedToCreateMonitoringVitePlugin: ({ configPath }) => {
73354
+ return () => /* @__PURE__ */ import_react78.default.createElement(
73355
+ ErrorMessage,
73356
+ {
73357
+ cause,
73358
+ message: "Failed to setup monitoring vite plugin.",
73359
+ hint: `Make sure you have the correct \`monitoring\` configuration in \`${configPath}\`.`
73360
+ }
73361
+ );
73326
73362
  }
73327
73363
  });
73328
73364
  }
@@ -76791,7 +76827,7 @@ function wixCliCliError(params) {
76791
76827
  var package_default = {
76792
76828
  name: "@wix/create-headless-site",
76793
76829
  description: "Headless site creation wizard",
76794
- version: "0.0.2",
76830
+ version: "0.0.3",
76795
76831
  bin: "bin/index.cjs",
76796
76832
  devDependencies: {
76797
76833
  "@commander-js/extra-typings": "^13.0.0",
@@ -80208,6 +80244,11 @@ var _componentData = {
80208
80244
  };
80209
80245
  var _componentsMultilineAddress = { description: "_richContent" };
80210
80246
  var _conditionNode = { and: "_andCondition", or: "_orCondition" };
80247
+ var _cssNumber = {
80248
+ minimum: "google.protobuf.FloatValue",
80249
+ maximum: "google.protobuf.FloatValue",
80250
+ multipleOf: "google.protobuf.FloatValue"
80251
+ };
80211
80252
  var _dataItem = { number: "__Number", arrayItems: "_arrayItems" };
80212
80253
  var _dataItems = { items: "Map#_dataItem" };
80213
80254
  var _dateInput = { description: "_richContent" };
@@ -80227,6 +80268,7 @@ var _displayField = { richContentOptions: "_richContentOptions" };
80227
80268
  var _donationInput = { description: "_richContent" };
80228
80269
  var _dropdown = { description: "_richContent" };
80229
80270
  var _editorElement = {
80271
+ style: "Map#_styleItem",
80230
80272
  data: "Map#_dataItem",
80231
80273
  elements: "Map#_elementItem",
80232
80274
  presets: "Map#_presetItem",
@@ -80270,6 +80312,7 @@ var _getAppResponse = {
80270
80312
  var _image = { urlExpirationDate: "google.protobuf.Timestamp" };
80271
80313
  var _imageData = { image: "_media" };
80272
80314
  var _inlineElement = {
80315
+ style: "Map#_styleItem",
80273
80316
  data: "Map#_dataItem",
80274
80317
  elements: "Map#_elementItem",
80275
80318
  presets: "Map#_presetItem",
@@ -80389,6 +80432,7 @@ var _studioWidgetComponentData = {
80389
80432
  widgetDisplay: "_widgetDisplay",
80390
80433
  editorPresence: "_editorPresence"
80391
80434
  };
80435
+ var _styleItem = { number: "_cssNumber" };
80392
80436
  var _submitSettings = { thankYouMessageOptions: "_thankYouMessageOptions" };
80393
80437
  var _textInput = { description: "_richContent" };
80394
80438
  var _thankYouMessageOptions = { richContent: "_richContent" };
@@ -80555,6 +80599,7 @@ function getAppByVersion(payload5) {
80555
80599
  _componentData,
80556
80600
  _componentsMultilineAddress,
80557
80601
  _conditionNode,
80602
+ _cssNumber,
80558
80603
  _dataItem,
80559
80604
  _dataItems,
80560
80605
  _dateInput,
@@ -80630,6 +80675,7 @@ function getAppByVersion(payload5) {
80630
80675
  _shippingProviderConfig,
80631
80676
  _signature,
80632
80677
  _studioWidgetComponentData,
80678
+ _styleItem,
80633
80679
  _submitSettings,
80634
80680
  _textInput,
80635
80681
  _thankYouMessageOptions,
@@ -81594,8 +81640,6 @@ var _arrayType2 = { items: "_arrayItems" };
81594
81640
  var _audioData2 = { audio: "_media", coverImage: "_media" };
81595
81641
  var _authenticatorConfig2 = { expectedInputs: "_expectedInputs" };
81596
81642
  var _background2 = { image: "_media" };
81597
- var _backOfficeCustomization = { sidebarConfig: "_sidebarConfig" };
81598
- var _category = { children: "_sidebarChildItem" };
81599
81643
  var _checkbox2 = { label: "_richContent" };
81600
81644
  var _checkboxGroup2 = { description: "_richContent", options: "_option" };
81601
81645
  var _commonImage2 = {
@@ -81618,10 +81662,14 @@ var _componentData2 = {
81618
81662
  function: "_function",
81619
81663
  papiProvider: "_pluginConfig",
81620
81664
  multilingualTranslationSchemaGroup: "_schemaGroup",
81621
- editorReactComponent: "_editorReactComponent",
81622
- backOfficeCustomization: "_backOfficeCustomization"
81665
+ editorReactComponent: "_editorReactComponent"
81623
81666
  };
81624
81667
  var _conditionNode2 = { and: "_andCondition", or: "_orCondition" };
81668
+ var _cssNumber2 = {
81669
+ minimum: "google.protobuf.FloatValue",
81670
+ maximum: "google.protobuf.FloatValue",
81671
+ multipleOf: "google.protobuf.FloatValue"
81672
+ };
81625
81673
  var _dataItem2 = { number: "_api_Number", arrayItems: "_apiArrayItems" };
81626
81674
  var _dataItems2 = { items: "Map#_dataItem" };
81627
81675
  var _dateInput2 = { description: "_richContent" };
@@ -81642,6 +81690,7 @@ var _displayField2 = { richContentOptions: "_richContentOptions" };
81642
81690
  var _donationInput2 = { description: "_richContent" };
81643
81691
  var _dropdown2 = { description: "_richContent" };
81644
81692
  var _editorElement2 = {
81693
+ style: "Map#_styleItem",
81645
81694
  data: "Map#_dataItem",
81646
81695
  elements: "Map#_elementItem",
81647
81696
  presets: "Map#_presetItem",
@@ -81682,6 +81731,7 @@ var _galleryOptions2 = { item: "_itemStyle" };
81682
81731
  var _image2 = { urlExpirationDate: "google.protobuf.Timestamp" };
81683
81732
  var _imageData2 = { image: "_media" };
81684
81733
  var _inlineElement2 = {
81734
+ style: "Map#_styleItem",
81685
81735
  data: "Map#_dataItem",
81686
81736
  elements: "Map#_elementItem",
81687
81737
  presets: "Map#_presetItem",
@@ -81800,14 +81850,12 @@ var _schemaGroup2 = {
81800
81850
  };
81801
81851
  var _shippingLabelCarrierSpiConfig2 = { packageTypes: "_packageType" };
81802
81852
  var _shippingProviderConfig2 = { shippingPrice: "DOUBLE" };
81803
- var _sidebarChildItem = { category: "_category" };
81804
- var _sidebarConfig = { sidebarItems: "_sidebarRootItem" };
81805
- var _sidebarRootItem = { category: "_category" };
81806
81853
  var _signature2 = { description: "_richContent" };
81807
81854
  var _studioWidgetComponentData2 = {
81808
81855
  widgetDisplay: "_widgetDisplay",
81809
81856
  editorPresence: "_editorPresence"
81810
81857
  };
81858
+ var _styleItem2 = { number: "_cssNumber" };
81811
81859
  var _submitSettings2 = { thankYouMessageOptions: "_thankYouMessageOptions" };
81812
81860
  var _textInput2 = { description: "_richContent" };
81813
81861
  var _thankYouMessageOptions2 = { richContent: "_richContent" };
@@ -81914,15 +81962,14 @@ function managedApps(payload5) {
81914
81962
  _arrayType: _arrayType2,
81915
81963
  _audioData: _audioData2,
81916
81964
  _authenticatorConfig: _authenticatorConfig2,
81917
- _backOfficeCustomization,
81918
81965
  _background: _background2,
81919
- _category,
81920
81966
  _checkbox: _checkbox2,
81921
81967
  _checkboxGroup: _checkboxGroup2,
81922
81968
  _commonImage: _commonImage2,
81923
81969
  _component: _component2,
81924
81970
  _componentData: _componentData2,
81925
81971
  _conditionNode: _conditionNode2,
81972
+ _cssNumber: _cssNumber2,
81926
81973
  _dataItem: _dataItem2,
81927
81974
  _dataItems: _dataItems2,
81928
81975
  _dateInput: _dateInput2,
@@ -82001,11 +82048,9 @@ function managedApps(payload5) {
82001
82048
  _schemaGroup: _schemaGroup2,
82002
82049
  _shippingLabelCarrierSpiConfig: _shippingLabelCarrierSpiConfig2,
82003
82050
  _shippingProviderConfig: _shippingProviderConfig2,
82004
- _sidebarChildItem,
82005
- _sidebarConfig,
82006
- _sidebarRootItem,
82007
82051
  _signature: _signature2,
82008
82052
  _studioWidgetComponentData: _studioWidgetComponentData2,
82053
+ _styleItem: _styleItem2,
82009
82054
  _submitSettings: _submitSettings2,
82010
82055
  _textInput: _textInput2,
82011
82056
  _thankYouMessageOptions: _thankYouMessageOptions2,
@@ -82268,6 +82313,14 @@ var ComponentType;
82268
82313
  ComponentType3["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
82269
82314
  ComponentType3["BILLING_OPERATION"] = "BILLING_OPERATION";
82270
82315
  ComponentType3["BACK_OFFICE_CUSTOMIZATION"] = "BACK_OFFICE_CUSTOMIZATION";
82316
+ ComponentType3["COMPONENT_ENRICHER_PROVIDER"] = "COMPONENT_ENRICHER_PROVIDER";
82317
+ ComponentType3["BACK_OFFICE_RESTRICTED_CUSTOMIZATION"] = "BACK_OFFICE_RESTRICTED_CUSTOMIZATION";
82318
+ ComponentType3["EDITOR_APP_PREVIEWS_POC"] = "EDITOR_APP_PREVIEWS_POC";
82319
+ ComponentType3["LEGENDS_PERSONA_CONFIGURATION"] = "LEGENDS_PERSONA_CONFIGURATION";
82320
+ ComponentType3["WIX_HOSTING_APP_DEPLOYMENT_PROVIDER"] = "WIX_HOSTING_APP_DEPLOYMENT_PROVIDER";
82321
+ ComponentType3["BACKEND_WORKER"] = "BACKEND_WORKER";
82322
+ ComponentType3["EVENT_TIME_SLOTS_CONFIGURATION_PROVIDER"] = "EVENT_TIME_SLOTS_CONFIGURATION_PROVIDER";
82323
+ ComponentType3["WIX_HOSTING_APP_ENVIRONMENT_PROVIDER"] = "WIX_HOSTING_APP_ENVIRONMENT_PROVIDER";
82271
82324
  })(ComponentType || (ComponentType = {}));
82272
82325
  var WidgetVertical;
82273
82326
  (function(WidgetVertical3) {
@@ -82910,6 +82963,7 @@ var DecorationType;
82910
82963
  DecorationType3["COLOR"] = "COLOR";
82911
82964
  DecorationType3["FONT_SIZE"] = "FONT_SIZE";
82912
82965
  DecorationType3["EXTERNAL"] = "EXTERNAL";
82966
+ DecorationType3["STRIKETHROUGH"] = "STRIKETHROUGH";
82913
82967
  })(DecorationType || (DecorationType = {}));
82914
82968
  var FontType;
82915
82969
  (function(FontType3) {
@@ -83426,6 +83480,19 @@ var EditableProperties;
83426
83480
  EditableProperties3["INPUT_VALUE_LIMITS"] = "INPUT_VALUE_LIMITS";
83427
83481
  EditableProperties3["DEFAULT_VALUE"] = "DEFAULT_VALUE";
83428
83482
  })(EditableProperties || (EditableProperties = {}));
83483
+ var RequiredIndicator;
83484
+ (function(RequiredIndicator3) {
83485
+ RequiredIndicator3["UNKNOWN_INDICATOR"] = "UNKNOWN_INDICATOR";
83486
+ RequiredIndicator3["ASTERISK"] = "ASTERISK";
83487
+ RequiredIndicator3["TEXT"] = "TEXT";
83488
+ RequiredIndicator3["NONE"] = "NONE";
83489
+ })(RequiredIndicator || (RequiredIndicator = {}));
83490
+ var RequiredIndicatorPlacement;
83491
+ (function(RequiredIndicatorPlacement3) {
83492
+ RequiredIndicatorPlacement3["UNKNOWN_PLACEMENT"] = "UNKNOWN_PLACEMENT";
83493
+ RequiredIndicatorPlacement3["AFTER_FIELD_TITLE"] = "AFTER_FIELD_TITLE";
83494
+ RequiredIndicatorPlacement3["BEFORE_FIELD_TITLE"] = "BEFORE_FIELD_TITLE";
83495
+ })(RequiredIndicatorPlacement || (RequiredIndicatorPlacement = {}));
83429
83496
  var WixCodePublishTaskName;
83430
83497
  (function(WixCodePublishTaskName3) {
83431
83498
  WixCodePublishTaskName3["UNKNOWN"] = "UNKNOWN";
@@ -83472,6 +83539,7 @@ var MonitoringType;
83472
83539
  (function(MonitoringType3) {
83473
83540
  MonitoringType3["UNKNOWN_PROVIDER"] = "UNKNOWN_PROVIDER";
83474
83541
  MonitoringType3["SENTRY"] = "SENTRY";
83542
+ MonitoringType3["PANORAMA"] = "PANORAMA";
83475
83543
  })(MonitoringType || (MonitoringType = {}));
83476
83544
  var Escalation;
83477
83545
  (function(Escalation3) {
@@ -83560,6 +83628,7 @@ var CssPropertyType;
83560
83628
  CssPropertyType3["backgroundPosition"] = "backgroundPosition";
83561
83629
  CssPropertyType3["backgroundRepeat"] = "backgroundRepeat";
83562
83630
  CssPropertyType3["backgroundAttachment"] = "backgroundAttachment";
83631
+ CssPropertyType3["fill"] = "fill";
83563
83632
  CssPropertyType3["margin"] = "margin";
83564
83633
  CssPropertyType3["marginTop"] = "marginTop";
83565
83634
  CssPropertyType3["marginRight"] = "marginRight";
@@ -83621,9 +83690,11 @@ var CssPropertyType;
83621
83690
  CssPropertyType3["lineHeight"] = "lineHeight";
83622
83691
  CssPropertyType3["color"] = "color";
83623
83692
  CssPropertyType3["letterSpacing"] = "letterSpacing";
83693
+ CssPropertyType3["writingMode"] = "writingMode";
83624
83694
  CssPropertyType3["textAlign"] = "textAlign";
83625
83695
  CssPropertyType3["textTransform"] = "textTransform";
83626
83696
  CssPropertyType3["textShadow"] = "textShadow";
83697
+ CssPropertyType3["textOverflow"] = "textOverflow";
83627
83698
  CssPropertyType3["textDecoration"] = "textDecoration";
83628
83699
  CssPropertyType3["textDecorationColor"] = "textDecorationColor";
83629
83700
  CssPropertyType3["textDecorationLine"] = "textDecorationLine";
@@ -83632,6 +83703,7 @@ var CssPropertyType;
83632
83703
  CssPropertyType3["boxShadow"] = "boxShadow";
83633
83704
  CssPropertyType3["opacity"] = "opacity";
83634
83705
  CssPropertyType3["overflow"] = "overflow";
83706
+ CssPropertyType3["display"] = "display";
83635
83707
  CssPropertyType3["alignSelf"] = "alignSelf";
83636
83708
  CssPropertyType3["justifyContent"] = "justifyContent";
83637
83709
  CssPropertyType3["alignItems"] = "alignItems";
@@ -83639,6 +83711,14 @@ var CssPropertyType;
83639
83711
  CssPropertyType3["gap"] = "gap";
83640
83712
  CssPropertyType3["height"] = "height";
83641
83713
  CssPropertyType3["width"] = "width";
83714
+ CssPropertyType3["columnGap"] = "columnGap";
83715
+ CssPropertyType3["rowGap"] = "rowGap";
83716
+ CssPropertyType3["filter"] = "filter";
83717
+ CssPropertyType3["backdropFilter"] = "backdropFilter";
83718
+ CssPropertyType3["objectFit"] = "objectFit";
83719
+ CssPropertyType3["objectPosition"] = "objectPosition";
83720
+ CssPropertyType3["mixBlendMode"] = "mixBlendMode";
83721
+ CssPropertyType3["isolation"] = "isolation";
83642
83722
  })(CssPropertyType || (CssPropertyType = {}));
83643
83723
  var CssDataType;
83644
83724
  (function(CssDataType3) {
@@ -83650,7 +83730,50 @@ var CssDataType;
83650
83730
  CssDataType3["percentage"] = "percentage";
83651
83731
  CssDataType3["lengthPercentage"] = "lengthPercentage";
83652
83732
  CssDataType3["blendMode"] = "blendMode";
83733
+ CssDataType3["customEnum"] = "customEnum";
83734
+ CssDataType3["string"] = "string";
83653
83735
  })(CssDataType || (CssDataType = {}));
83736
+ var FilterFunction;
83737
+ (function(FilterFunction3) {
83738
+ FilterFunction3["UNKNOWN_FilterFunctions"] = "UNKNOWN_FilterFunctions";
83739
+ FilterFunction3["blur"] = "blur";
83740
+ FilterFunction3["brightness"] = "brightness";
83741
+ FilterFunction3["contrast"] = "contrast";
83742
+ FilterFunction3["drop_shadow"] = "drop_shadow";
83743
+ FilterFunction3["grayscale"] = "grayscale";
83744
+ FilterFunction3["hue_rotate"] = "hue_rotate";
83745
+ FilterFunction3["invert"] = "invert";
83746
+ FilterFunction3["opacity"] = "opacity";
83747
+ FilterFunction3["sepia"] = "sepia";
83748
+ FilterFunction3["saturate"] = "saturate";
83749
+ })(FilterFunction || (FilterFunction = {}));
83750
+ var DisplayValueEnumDisplayValue;
83751
+ (function(DisplayValueEnumDisplayValue3) {
83752
+ DisplayValueEnumDisplayValue3["UNKNOWN_DisplayValue"] = "UNKNOWN_DisplayValue";
83753
+ DisplayValueEnumDisplayValue3["none"] = "none";
83754
+ DisplayValueEnumDisplayValue3["block"] = "block";
83755
+ DisplayValueEnumDisplayValue3["inline"] = "inline";
83756
+ DisplayValueEnumDisplayValue3["flow"] = "flow";
83757
+ DisplayValueEnumDisplayValue3["flowRoot"] = "flowRoot";
83758
+ DisplayValueEnumDisplayValue3["table"] = "table";
83759
+ DisplayValueEnumDisplayValue3["flex"] = "flex";
83760
+ DisplayValueEnumDisplayValue3["grid"] = "grid";
83761
+ DisplayValueEnumDisplayValue3["list_item"] = "list_item";
83762
+ DisplayValueEnumDisplayValue3["contents"] = "contents";
83763
+ DisplayValueEnumDisplayValue3["inline_block"] = "inline_block";
83764
+ DisplayValueEnumDisplayValue3["inline_table"] = "inline_table";
83765
+ DisplayValueEnumDisplayValue3["inline_flex"] = "inline_flex";
83766
+ DisplayValueEnumDisplayValue3["inline_grid"] = "inline_grid";
83767
+ })(DisplayValueEnumDisplayValue || (DisplayValueEnumDisplayValue = {}));
83768
+ var WritingModeValue;
83769
+ (function(WritingModeValue3) {
83770
+ WritingModeValue3["UNKNOWN_WritingModeValue"] = "UNKNOWN_WritingModeValue";
83771
+ WritingModeValue3["horizontalTb"] = "horizontalTb";
83772
+ WritingModeValue3["verticalRl"] = "verticalRl";
83773
+ WritingModeValue3["verticalLr"] = "verticalLr";
83774
+ WritingModeValue3["sidewaysRl"] = "sidewaysRl";
83775
+ WritingModeValue3["sidewaysLr"] = "sidewaysLr";
83776
+ })(WritingModeValue || (WritingModeValue = {}));
83654
83777
  var DataType;
83655
83778
  (function(DataType3) {
83656
83779
  DataType3["UNKNOWN_DataType"] = "UNKNOWN_DataType";
@@ -83744,6 +83867,7 @@ var ActionType;
83744
83867
  ActionType3["event"] = "event";
83745
83868
  ActionType3["panel"] = "panel";
83746
83869
  ActionType3["forward"] = "forward";
83870
+ ActionType3["style"] = "style";
83747
83871
  })(ActionType || (ActionType = {}));
83748
83872
  var PanelType;
83749
83873
  (function(PanelType3) {
@@ -83761,23 +83885,13 @@ var ActionName;
83761
83885
  ActionName3["dashboard"] = "dashboard";
83762
83886
  ActionName3["custom"] = "custom";
83763
83887
  })(ActionName || (ActionName = {}));
83764
- var ResizeDirection;
83765
- (function(ResizeDirection3) {
83766
- ResizeDirection3["UNKNOWN_ResizeDirection"] = "UNKNOWN_ResizeDirection";
83767
- ResizeDirection3["horizontal"] = "horizontal";
83768
- ResizeDirection3["vertical"] = "vertical";
83769
- ResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
83770
- ResizeDirection3["aspectRatio"] = "aspectRatio";
83771
- ResizeDirection3["none"] = "none";
83772
- })(ResizeDirection || (ResizeDirection = {}));
83773
- var ContentResizeDirection;
83774
- (function(ContentResizeDirection3) {
83775
- ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
83776
- ContentResizeDirection3["horizontal"] = "horizontal";
83777
- ContentResizeDirection3["vertical"] = "vertical";
83778
- ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
83779
- ContentResizeDirection3["none"] = "none";
83780
- })(ContentResizeDirection || (ContentResizeDirection = {}));
83888
+ var SizingType;
83889
+ (function(SizingType3) {
83890
+ SizingType3["UNKNOWN_SizingType"] = "UNKNOWN_SizingType";
83891
+ SizingType3["content"] = "content";
83892
+ SizingType3["stretched"] = "stretched";
83893
+ SizingType3["pixels"] = "pixels";
83894
+ })(SizingType || (SizingType = {}));
83781
83895
  var Archetype;
83782
83896
  (function(Archetype3) {
83783
83897
  Archetype3["UNKNOWN_Archetype"] = "UNKNOWN_Archetype";
@@ -83819,18 +83933,35 @@ var Archetype;
83819
83933
  Archetype3["VectorArt"] = "VectorArt";
83820
83934
  Archetype3["AnimatedGraphic"] = "AnimatedGraphic";
83821
83935
  })(Archetype || (Archetype = {}));
83936
+ var ResizeDirection;
83937
+ (function(ResizeDirection3) {
83938
+ ResizeDirection3["UNKNOWN_ResizeDirection"] = "UNKNOWN_ResizeDirection";
83939
+ ResizeDirection3["horizontal"] = "horizontal";
83940
+ ResizeDirection3["vertical"] = "vertical";
83941
+ ResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
83942
+ ResizeDirection3["aspectRatio"] = "aspectRatio";
83943
+ ResizeDirection3["none"] = "none";
83944
+ })(ResizeDirection || (ResizeDirection = {}));
83945
+ var ContentResizeDirection;
83946
+ (function(ContentResizeDirection3) {
83947
+ ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
83948
+ ContentResizeDirection3["horizontal"] = "horizontal";
83949
+ ContentResizeDirection3["vertical"] = "vertical";
83950
+ ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
83951
+ ContentResizeDirection3["none"] = "none";
83952
+ })(ContentResizeDirection || (ContentResizeDirection = {}));
83822
83953
  var RestrictionLevel;
83823
83954
  (function(RestrictionLevel3) {
83824
83955
  RestrictionLevel3["UNKNOWN_RESTRICTION_TYPE"] = "UNKNOWN_RESTRICTION_TYPE";
83825
83956
  RestrictionLevel3["WARNING"] = "WARNING";
83826
83957
  RestrictionLevel3["LOCKED"] = "LOCKED";
83827
83958
  })(RestrictionLevel || (RestrictionLevel = {}));
83828
- var Theme;
83829
- (function(Theme2) {
83830
- Theme2["UNKNOWN_THEME"] = "UNKNOWN_THEME";
83831
- Theme2["DARK"] = "DARK";
83832
- Theme2["LIGHT"] = "LIGHT";
83833
- })(Theme || (Theme = {}));
83959
+ var ElementDisplayOption;
83960
+ (function(ElementDisplayOption3) {
83961
+ ElementDisplayOption3["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
83962
+ ElementDisplayOption3["REMOVE"] = "REMOVE";
83963
+ ElementDisplayOption3["CUSTOMIZED"] = "CUSTOMIZED";
83964
+ })(ElementDisplayOption || (ElementDisplayOption = {}));
83834
83965
  var SidebarDataType;
83835
83966
  (function(SidebarDataType3) {
83836
83967
  SidebarDataType3["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
@@ -83838,6 +83969,13 @@ var SidebarDataType;
83838
83969
  SidebarDataType3["PAGE"] = "PAGE";
83839
83970
  SidebarDataType3["SEPARATOR"] = "SEPARATOR";
83840
83971
  })(SidebarDataType || (SidebarDataType = {}));
83972
+ var SidebarEntityType;
83973
+ (function(SidebarEntityType3) {
83974
+ SidebarEntityType3["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
83975
+ SidebarEntityType3["CATEGORY"] = "CATEGORY";
83976
+ SidebarEntityType3["PAGE"] = "PAGE";
83977
+ SidebarEntityType3["APP"] = "APP";
83978
+ })(SidebarEntityType || (SidebarEntityType = {}));
83841
83979
  var SaleType;
83842
83980
  (function(SaleType2) {
83843
83981
  SaleType2["UNKNOWN_SALE_TYPE"] = "UNKNOWN_SALE_TYPE";
@@ -83880,6 +84018,24 @@ function resolveWixDevcenterAppsPermissionsV1AppPermissionsServiceUrl(opts) {
83880
84018
  srcPath: "/_api/app-permissions-service",
83881
84019
  destPath: ""
83882
84020
  }
84021
+ ],
84022
+ "www.wixapis.com": [
84023
+ {
84024
+ srcPath: "/apps/v1/app-permissions",
84025
+ destPath: ""
84026
+ }
84027
+ ],
84028
+ "*.dev.wix-code.com": [
84029
+ {
84030
+ srcPath: "/_api/app-permissions-service",
84031
+ destPath: ""
84032
+ }
84033
+ ],
84034
+ _: [
84035
+ {
84036
+ srcPath: "/_api/app-permissions-service",
84037
+ destPath: ""
84038
+ }
83883
84039
  ]
83884
84040
  };
83885
84041
  return resolveUrl(Object.assign(opts, { domainToMappings }));
@@ -85285,19 +85441,19 @@ var EditableProperties2;
85285
85441
  EditableProperties3["INPUT_VALUE_LIMITS"] = "INPUT_VALUE_LIMITS";
85286
85442
  EditableProperties3["DEFAULT_VALUE"] = "DEFAULT_VALUE";
85287
85443
  })(EditableProperties2 || (EditableProperties2 = {}));
85288
- var RequiredIndicator;
85289
- (function(RequiredIndicator2) {
85290
- RequiredIndicator2["UNKNOWN_INDICATOR"] = "UNKNOWN_INDICATOR";
85291
- RequiredIndicator2["ASTERISK"] = "ASTERISK";
85292
- RequiredIndicator2["TEXT"] = "TEXT";
85293
- RequiredIndicator2["NONE"] = "NONE";
85294
- })(RequiredIndicator || (RequiredIndicator = {}));
85295
- var RequiredIndicatorPlacement;
85296
- (function(RequiredIndicatorPlacement2) {
85297
- RequiredIndicatorPlacement2["UNKNOWN_PLACEMENT"] = "UNKNOWN_PLACEMENT";
85298
- RequiredIndicatorPlacement2["AFTER_FIELD_TITLE"] = "AFTER_FIELD_TITLE";
85299
- RequiredIndicatorPlacement2["BEFORE_FIELD_TITLE"] = "BEFORE_FIELD_TITLE";
85300
- })(RequiredIndicatorPlacement || (RequiredIndicatorPlacement = {}));
85444
+ var RequiredIndicator2;
85445
+ (function(RequiredIndicator3) {
85446
+ RequiredIndicator3["UNKNOWN_INDICATOR"] = "UNKNOWN_INDICATOR";
85447
+ RequiredIndicator3["ASTERISK"] = "ASTERISK";
85448
+ RequiredIndicator3["TEXT"] = "TEXT";
85449
+ RequiredIndicator3["NONE"] = "NONE";
85450
+ })(RequiredIndicator2 || (RequiredIndicator2 = {}));
85451
+ var RequiredIndicatorPlacement2;
85452
+ (function(RequiredIndicatorPlacement3) {
85453
+ RequiredIndicatorPlacement3["UNKNOWN_PLACEMENT"] = "UNKNOWN_PLACEMENT";
85454
+ RequiredIndicatorPlacement3["AFTER_FIELD_TITLE"] = "AFTER_FIELD_TITLE";
85455
+ RequiredIndicatorPlacement3["BEFORE_FIELD_TITLE"] = "BEFORE_FIELD_TITLE";
85456
+ })(RequiredIndicatorPlacement2 || (RequiredIndicatorPlacement2 = {}));
85301
85457
  var WixCodePublishTaskName2;
85302
85458
  (function(WixCodePublishTaskName3) {
85303
85459
  WixCodePublishTaskName3["UNKNOWN"] = "UNKNOWN";
@@ -85495,6 +85651,7 @@ var CssPropertyType2;
85495
85651
  CssPropertyType3["lineHeight"] = "lineHeight";
85496
85652
  CssPropertyType3["color"] = "color";
85497
85653
  CssPropertyType3["letterSpacing"] = "letterSpacing";
85654
+ CssPropertyType3["writingMode"] = "writingMode";
85498
85655
  CssPropertyType3["textAlign"] = "textAlign";
85499
85656
  CssPropertyType3["textTransform"] = "textTransform";
85500
85657
  CssPropertyType3["textShadow"] = "textShadow";
@@ -85507,6 +85664,7 @@ var CssPropertyType2;
85507
85664
  CssPropertyType3["boxShadow"] = "boxShadow";
85508
85665
  CssPropertyType3["opacity"] = "opacity";
85509
85666
  CssPropertyType3["overflow"] = "overflow";
85667
+ CssPropertyType3["display"] = "display";
85510
85668
  CssPropertyType3["alignSelf"] = "alignSelf";
85511
85669
  CssPropertyType3["justifyContent"] = "justifyContent";
85512
85670
  CssPropertyType3["alignItems"] = "alignItems";
@@ -85536,20 +85694,47 @@ var CssDataType2;
85536
85694
  CssDataType3["customEnum"] = "customEnum";
85537
85695
  CssDataType3["string"] = "string";
85538
85696
  })(CssDataType2 || (CssDataType2 = {}));
85539
- var FilterFunction;
85540
- (function(FilterFunction2) {
85541
- FilterFunction2["UNKNOWN_FilterFunctions"] = "UNKNOWN_FilterFunctions";
85542
- FilterFunction2["blur"] = "blur";
85543
- FilterFunction2["brightness"] = "brightness";
85544
- FilterFunction2["contrast"] = "contrast";
85545
- FilterFunction2["drop_shadow"] = "drop_shadow";
85546
- FilterFunction2["grayscale"] = "grayscale";
85547
- FilterFunction2["hue_rotate"] = "hue_rotate";
85548
- FilterFunction2["invert"] = "invert";
85549
- FilterFunction2["opacity"] = "opacity";
85550
- FilterFunction2["sepia"] = "sepia";
85551
- FilterFunction2["saturate"] = "saturate";
85552
- })(FilterFunction || (FilterFunction = {}));
85697
+ var FilterFunction2;
85698
+ (function(FilterFunction3) {
85699
+ FilterFunction3["UNKNOWN_FilterFunctions"] = "UNKNOWN_FilterFunctions";
85700
+ FilterFunction3["blur"] = "blur";
85701
+ FilterFunction3["brightness"] = "brightness";
85702
+ FilterFunction3["contrast"] = "contrast";
85703
+ FilterFunction3["drop_shadow"] = "drop_shadow";
85704
+ FilterFunction3["grayscale"] = "grayscale";
85705
+ FilterFunction3["hue_rotate"] = "hue_rotate";
85706
+ FilterFunction3["invert"] = "invert";
85707
+ FilterFunction3["opacity"] = "opacity";
85708
+ FilterFunction3["sepia"] = "sepia";
85709
+ FilterFunction3["saturate"] = "saturate";
85710
+ })(FilterFunction2 || (FilterFunction2 = {}));
85711
+ var DisplayValueEnumDisplayValue2;
85712
+ (function(DisplayValueEnumDisplayValue3) {
85713
+ DisplayValueEnumDisplayValue3["UNKNOWN_DisplayValue"] = "UNKNOWN_DisplayValue";
85714
+ DisplayValueEnumDisplayValue3["none"] = "none";
85715
+ DisplayValueEnumDisplayValue3["block"] = "block";
85716
+ DisplayValueEnumDisplayValue3["inline"] = "inline";
85717
+ DisplayValueEnumDisplayValue3["flow"] = "flow";
85718
+ DisplayValueEnumDisplayValue3["flowRoot"] = "flowRoot";
85719
+ DisplayValueEnumDisplayValue3["table"] = "table";
85720
+ DisplayValueEnumDisplayValue3["flex"] = "flex";
85721
+ DisplayValueEnumDisplayValue3["grid"] = "grid";
85722
+ DisplayValueEnumDisplayValue3["list_item"] = "list_item";
85723
+ DisplayValueEnumDisplayValue3["contents"] = "contents";
85724
+ DisplayValueEnumDisplayValue3["inline_block"] = "inline_block";
85725
+ DisplayValueEnumDisplayValue3["inline_table"] = "inline_table";
85726
+ DisplayValueEnumDisplayValue3["inline_flex"] = "inline_flex";
85727
+ DisplayValueEnumDisplayValue3["inline_grid"] = "inline_grid";
85728
+ })(DisplayValueEnumDisplayValue2 || (DisplayValueEnumDisplayValue2 = {}));
85729
+ var WritingModeValue2;
85730
+ (function(WritingModeValue3) {
85731
+ WritingModeValue3["UNKNOWN_WritingModeValue"] = "UNKNOWN_WritingModeValue";
85732
+ WritingModeValue3["horizontalTb"] = "horizontalTb";
85733
+ WritingModeValue3["verticalRl"] = "verticalRl";
85734
+ WritingModeValue3["verticalLr"] = "verticalLr";
85735
+ WritingModeValue3["sidewaysRl"] = "sidewaysRl";
85736
+ WritingModeValue3["sidewaysLr"] = "sidewaysLr";
85737
+ })(WritingModeValue2 || (WritingModeValue2 = {}));
85553
85738
  var DataType2;
85554
85739
  (function(DataType3) {
85555
85740
  DataType3["UNKNOWN_DataType"] = "UNKNOWN_DataType";
@@ -85661,30 +85846,13 @@ var ActionName2;
85661
85846
  ActionName3["dashboard"] = "dashboard";
85662
85847
  ActionName3["custom"] = "custom";
85663
85848
  })(ActionName2 || (ActionName2 = {}));
85664
- var SizingType;
85665
- (function(SizingType2) {
85666
- SizingType2["UNKNOWN_SizingType"] = "UNKNOWN_SizingType";
85667
- SizingType2["content"] = "content";
85668
- SizingType2["stretched"] = "stretched";
85669
- SizingType2["pixels"] = "pixels";
85670
- })(SizingType || (SizingType = {}));
85671
- var ResizeDirection2;
85672
- (function(ResizeDirection3) {
85673
- ResizeDirection3["UNKNOWN_ResizeDirection"] = "UNKNOWN_ResizeDirection";
85674
- ResizeDirection3["horizontal"] = "horizontal";
85675
- ResizeDirection3["vertical"] = "vertical";
85676
- ResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
85677
- ResizeDirection3["aspectRatio"] = "aspectRatio";
85678
- ResizeDirection3["none"] = "none";
85679
- })(ResizeDirection2 || (ResizeDirection2 = {}));
85680
- var ContentResizeDirection2;
85681
- (function(ContentResizeDirection3) {
85682
- ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
85683
- ContentResizeDirection3["horizontal"] = "horizontal";
85684
- ContentResizeDirection3["vertical"] = "vertical";
85685
- ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
85686
- ContentResizeDirection3["none"] = "none";
85687
- })(ContentResizeDirection2 || (ContentResizeDirection2 = {}));
85849
+ var SizingType2;
85850
+ (function(SizingType3) {
85851
+ SizingType3["UNKNOWN_SizingType"] = "UNKNOWN_SizingType";
85852
+ SizingType3["content"] = "content";
85853
+ SizingType3["stretched"] = "stretched";
85854
+ SizingType3["pixels"] = "pixels";
85855
+ })(SizingType2 || (SizingType2 = {}));
85688
85856
  var Archetype2;
85689
85857
  (function(Archetype3) {
85690
85858
  Archetype3["UNKNOWN_Archetype"] = "UNKNOWN_Archetype";
@@ -85726,12 +85894,35 @@ var Archetype2;
85726
85894
  Archetype3["VectorArt"] = "VectorArt";
85727
85895
  Archetype3["AnimatedGraphic"] = "AnimatedGraphic";
85728
85896
  })(Archetype2 || (Archetype2 = {}));
85897
+ var ResizeDirection2;
85898
+ (function(ResizeDirection3) {
85899
+ ResizeDirection3["UNKNOWN_ResizeDirection"] = "UNKNOWN_ResizeDirection";
85900
+ ResizeDirection3["horizontal"] = "horizontal";
85901
+ ResizeDirection3["vertical"] = "vertical";
85902
+ ResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
85903
+ ResizeDirection3["aspectRatio"] = "aspectRatio";
85904
+ ResizeDirection3["none"] = "none";
85905
+ })(ResizeDirection2 || (ResizeDirection2 = {}));
85906
+ var ContentResizeDirection2;
85907
+ (function(ContentResizeDirection3) {
85908
+ ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
85909
+ ContentResizeDirection3["horizontal"] = "horizontal";
85910
+ ContentResizeDirection3["vertical"] = "vertical";
85911
+ ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
85912
+ ContentResizeDirection3["none"] = "none";
85913
+ })(ContentResizeDirection2 || (ContentResizeDirection2 = {}));
85729
85914
  var RestrictionLevel2;
85730
85915
  (function(RestrictionLevel3) {
85731
85916
  RestrictionLevel3["UNKNOWN_RESTRICTION_TYPE"] = "UNKNOWN_RESTRICTION_TYPE";
85732
85917
  RestrictionLevel3["WARNING"] = "WARNING";
85733
85918
  RestrictionLevel3["LOCKED"] = "LOCKED";
85734
85919
  })(RestrictionLevel2 || (RestrictionLevel2 = {}));
85920
+ var ElementDisplayOption2;
85921
+ (function(ElementDisplayOption3) {
85922
+ ElementDisplayOption3["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
85923
+ ElementDisplayOption3["REMOVE"] = "REMOVE";
85924
+ ElementDisplayOption3["CUSTOMIZED"] = "CUSTOMIZED";
85925
+ })(ElementDisplayOption2 || (ElementDisplayOption2 = {}));
85735
85926
  var SidebarDataType2;
85736
85927
  (function(SidebarDataType3) {
85737
85928
  SidebarDataType3["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
@@ -85739,13 +85930,13 @@ var SidebarDataType2;
85739
85930
  SidebarDataType3["PAGE"] = "PAGE";
85740
85931
  SidebarDataType3["SEPARATOR"] = "SEPARATOR";
85741
85932
  })(SidebarDataType2 || (SidebarDataType2 = {}));
85742
- var SidebarEntityType;
85743
- (function(SidebarEntityType2) {
85744
- SidebarEntityType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
85745
- SidebarEntityType2["CATEGORY"] = "CATEGORY";
85746
- SidebarEntityType2["PAGE"] = "PAGE";
85747
- SidebarEntityType2["APP"] = "APP";
85748
- })(SidebarEntityType || (SidebarEntityType = {}));
85933
+ var SidebarEntityType2;
85934
+ (function(SidebarEntityType3) {
85935
+ SidebarEntityType3["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
85936
+ SidebarEntityType3["CATEGORY"] = "CATEGORY";
85937
+ SidebarEntityType3["PAGE"] = "PAGE";
85938
+ SidebarEntityType3["APP"] = "APP";
85939
+ })(SidebarEntityType2 || (SidebarEntityType2 = {}));
85749
85940
  var OpenConsentIn2;
85750
85941
  (function(OpenConsentIn3) {
85751
85942
  OpenConsentIn3["NONE_VALUE"] = "NONE_VALUE";
@@ -85888,41 +86079,10 @@ var topologySchema = z.object({
85888
86079
  })
85889
86080
  })
85890
86081
  }).passthrough();
85891
- var monitoringSchema = z.object({
85892
- compType: z.literal(ComponentType2.MONITORING),
85893
- compId: z.string(),
85894
- compName: z.string().optional(),
85895
- compData: z.object({
85896
- monitoring: z.discriminatedUnion("type", [
85897
- z.object({
85898
- type: z.literal(MonitoringType2.SENTRY),
85899
- sentryOptions: z.object({
85900
- dsn: z.string().url()
85901
- })
85902
- }),
85903
- z.object({
85904
- type: z.literal(MonitoringType2.PANORAMA),
85905
- panoramaOptions: z.object({
85906
- sentry: z.object({
85907
- dsn: z.string().url()
85908
- }).optional(),
85909
- project: z.object({
85910
- groupId: z.string(),
85911
- artifactId: z.string(),
85912
- fingerprint: z.string()
85913
- })
85914
- })
85915
- })
85916
- ])
85917
- })
85918
- });
85919
86082
  var componentsSchema = z.array(
85920
86083
  z.discriminatedUnion("compType", [
85921
86084
  topologySchema,
85922
- monitoringSchema,
85923
- ...Object.values(ComponentType2).filter(
85924
- (type) => type !== ComponentType2.TOPOLOGY && type !== ComponentType2.MONITORING
85925
- ).map((type) => {
86085
+ ...Object.values(ComponentType2).filter((type) => type !== ComponentType2.TOPOLOGY).map((type) => {
85926
86086
  return z.object({
85927
86087
  compId: z.string(),
85928
86088
  compName: z.string().optional(),
@@ -86868,7 +87028,8 @@ var CreateAppDeploymentSchema = z.object({
86868
87028
  });
86869
87029
  var StaticFileUploadSchema = z.object({
86870
87030
  result: z.object({
86871
- jwt: z.string()
87031
+ // The `jwt` field is optional because it is only returned in the last file upload.
87032
+ jwt: z.string().optional()
86872
87033
  })
86873
87034
  }).passthrough();
86874
87035
 
@@ -87061,8 +87222,9 @@ var CreateProject = ({ onSubmit, businessId }) => {
87061
87222
  }
87062
87223
  );
87063
87224
  const validate3 = (0, import_react99.useCallback)(async (projectName) => {
87064
- if (projectName.length < 4) {
87065
- return "Project name has to be at least four characters long";
87225
+ const re = /^[a-z0-9]{3,20}$/;
87226
+ if (!re.test(projectName)) {
87227
+ return "The value must be 3 to 20 characters long and contain only lowercase letters, numbers.";
87066
87228
  }
87067
87229
  return true;
87068
87230
  }, []);
@@ -87173,7 +87335,7 @@ var buildMetadataSchema = z.object({
87173
87335
  appManifestPath: z.string(),
87174
87336
  outDir: z.string(),
87175
87337
  clientDir: z.string(),
87176
- serverDir: z.string()
87338
+ serverDir: z.string().optional()
87177
87339
  });
87178
87340
  var deploymentTopologyEnvironmentSchema = z.object({
87179
87341
  id: z.string().describe("Unique ARM tag identifier"),
@@ -87276,14 +87438,7 @@ var FinishedSuccessfullyMessage = ({ packageManager, folderName }) => {
87276
87438
  },
87277
87439
  /* @__PURE__ */ import_react102.default.createElement(Alert, { type: "success" }, "Your project has been set up successfully!"),
87278
87440
  /* @__PURE__ */ import_react102.default.createElement(Text2, { bold: true }, "Next Steps:"),
87279
- /* @__PURE__ */ import_react102.default.createElement(UnorderedList, { gap: 1 }, /* @__PURE__ */ import_react102.default.createElement(UnorderedList.Item, { marker: "\u{1F45F}" }, /* @__PURE__ */ import_react102.default.createElement(Text2, null, "Start developing"), /* @__PURE__ */ import_react102.default.createElement(Text2, { skin: "info" }, `cd ${folderName}`), /* @__PURE__ */ import_react102.default.createElement(Text2, { skin: "info" }, `${packageManager.getRunCmd()} dev`)), /* @__PURE__ */ import_react102.default.createElement(UnorderedList.Item, { marker: /* @__PURE__ */ import_react102.default.createElement(Learn, null) }, /* @__PURE__ */ import_react102.default.createElement(Text2, null, "For guides and API references visit our"), /* @__PURE__ */ import_react102.default.createElement(
87280
- Link,
87281
- {
87282
- skin: "info",
87283
- url: "https://dev.wix.com/docs/build-apps/developer-tools/cli/get-started/about-the-wix-cli-for-apps"
87284
- },
87285
- "documentation"
87286
- )), /* @__PURE__ */ import_react102.default.createElement(UnorderedList.Item, { marker: "\u{1F4AC}" }, /* @__PURE__ */ import_react102.default.createElement(Text2, null, "Join our"), /* @__PURE__ */ import_react102.default.createElement(Link, { skin: "info", url: "https://discord.gg/wixstudio" }, "Discord community")))
87441
+ /* @__PURE__ */ import_react102.default.createElement(UnorderedList, { gap: 1 }, /* @__PURE__ */ import_react102.default.createElement(UnorderedList.Item, { marker: "\u{1F45F}" }, /* @__PURE__ */ import_react102.default.createElement(Text2, null, "Start developing"), /* @__PURE__ */ import_react102.default.createElement(Text2, { skin: "info" }, `cd ${folderName}`), /* @__PURE__ */ import_react102.default.createElement(Text2, { skin: "info" }, `${packageManager.getRunCmd()} dev`)), /* @__PURE__ */ import_react102.default.createElement(UnorderedList.Item, { marker: /* @__PURE__ */ import_react102.default.createElement(Learn, null) }, /* @__PURE__ */ import_react102.default.createElement(Text2, null, "For guides and API references visit our"), /* @__PURE__ */ import_react102.default.createElement(Link, { skin: "info", url: "https://dev.wix.com/docs/go-headless" }, "documentation")), /* @__PURE__ */ import_react102.default.createElement(UnorderedList.Item, { marker: "\u{1F4AC}" }, /* @__PURE__ */ import_react102.default.createElement(Text2, null, "Join our"), /* @__PURE__ */ import_react102.default.createElement(Link, { skin: "info", url: "https://discord.gg/wixstudio" }, "Discord community")))
87287
87442
  );
87288
87443
  };
87289
87444
 
@@ -87810,8 +87965,9 @@ init_esm_shims();
87810
87965
  var import_react105 = __toESM(require_react(), 1);
87811
87966
  var ChooseBusinessName = ({ onSubmit }) => {
87812
87967
  const validate3 = (0, import_react105.useCallback)((businessName) => {
87813
- if (businessName.length < 4) {
87814
- return "Business name has to be at least four characters long";
87968
+ const re = /^[a-z0-9_-]{4,20}$/;
87969
+ if (!re.test(businessName)) {
87970
+ return "The value must be 4 to 20 characters long and contain only lowercase letters, numbers, underscores (_), or hyphens (-).";
87815
87971
  }
87816
87972
  return true;
87817
87973
  }, []);