@wix/create-app 0.0.125 → 0.0.126

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
@@ -58112,7 +58112,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
58112
58112
  AppReleaseConfigViolations: (0, import_variant11.fields)(),
58113
58113
  ProjectIsAlreadyLinked: {},
58114
58114
  ProjectIsNotLinkable: {},
58115
- MissingPresetCssForSiteComponent: (0, import_variant11.fields)()
58115
+ MissingPresetCssForSiteComponent: (0, import_variant11.fields)(),
58116
+ AppInstallerSiteNotFound: (0, import_variant11.fields)()
58116
58117
  });
58117
58118
  var CliErrorCode = (0, import_variant11.variant)({
58118
58119
  ...CliSystemErrorCode,
@@ -68735,6 +68736,15 @@ ${errorMessage2}`
68735
68736
  message: `Site component "${componentId}" is missing preset CSS file for the preset key "${presetName}".`
68736
68737
  }
68737
68738
  );
68739
+ },
68740
+ AppInstallerSiteNotFound: ({ siteId }) => {
68741
+ return () => /* @__PURE__ */ import_react77.default.createElement(
68742
+ ErrorMessage,
68743
+ {
68744
+ message: `Site with ID "${siteId}" not found.`,
68745
+ hint: "Please make sure the site exists and you have access to it."
68746
+ }
68747
+ );
68738
68748
  }
68739
68749
  });
68740
68750
  }
@@ -72270,7 +72280,7 @@ function reportCommandStartEvent({
72270
72280
  var package_default = {
72271
72281
  name: "@wix/create-app",
72272
72282
  description: "Create Wix apps",
72273
- version: "0.0.125",
72283
+ version: "0.0.126",
72274
72284
  author: "Ihor Machuzhak",
72275
72285
  bin: "bin/index.cjs",
72276
72286
  devDependencies: {
@@ -75735,6 +75745,10 @@ var _billing = {
75735
75745
  oneTimePrice: "DOUBLE",
75736
75746
  meteredBilling: "_meteredBilling"
75737
75747
  };
75748
+ var _breakpointPresetStyleOverrides = {
75749
+ default: "_presetStyleOverrides",
75750
+ small: "_presetStyleOverrides"
75751
+ };
75738
75752
  var _checkbox = { label: "_richContent" };
75739
75753
  var _checkboxGroup = {
75740
75754
  description: "_richContent",
@@ -75798,6 +75812,7 @@ var _elementItem = {
75798
75812
  refElement: "_refElement"
75799
75813
  };
75800
75814
  var _elementStyleDefaults = { elements: "Map#_elementStyleDefaults" };
75815
+ var _elementStyleOverrides = { elements: "Map#_elementStyleOverrides" };
75801
75816
  var _expectedInputs = {
75802
75817
  expectedStartInputs: "_predefinedExpectedInput",
75803
75818
  expectedVerifyInputs: "_predefinedExpectedInput"
@@ -75913,7 +75928,12 @@ var _predefinedExpectedInputConfiguration = {
75913
75928
  textInput: "_adminConfigurableTextInput"
75914
75929
  };
75915
75930
  var _presetEditorPresence = { wixMediaThumbnail: "_wixCommonImage" };
75916
- var _presetItem = { elementsStyleDefaults: "Map#_elementStyleDefaults" };
75931
+ var _presetItem = {
75932
+ styleDefaults: "_presetStyleDefaults",
75933
+ styleOverrides: "_breakpointPresetStyleOverrides"
75934
+ };
75935
+ var _presetStyleDefaults = { elements: "Map#_elementStyleDefaults" };
75936
+ var _presetStyleOverrides = { elements: "Map#_elementStyleOverrides" };
75917
75937
  var _pricingModel = { plans: "_plan" };
75918
75938
  var _productCheckboxGroup = {
75919
75939
  description: "_richContent",
@@ -75928,8 +75948,11 @@ var _radioGroup = { description: "_richContent" };
75928
75948
  var _ratingInput = { description: "_richContent" };
75929
75949
  var _refElement = {
75930
75950
  resolvedElement: "_inlineElement",
75931
- elementsDefaults: "Map#_refInnerElementDefaults"
75951
+ elementsDefaults: "Map#_refInnerElementDefaults",
75952
+ elements: "Map#_refInnerElementDefaults",
75953
+ styleOverrides: "_refElementStyleOverrides"
75932
75954
  };
75955
+ var _refElementStyleOverrides = { elements: "Map#_refElementStyleOverrides" };
75933
75956
  var _refInnerElementDefaults = { elements: "Map#_refInnerElementDefaults" };
75934
75957
  var _richContent = { nodes: "_node", metadata: "_v1Metadata" };
75935
75958
  var _richContentOptions = { richContent: "_richContent" };
@@ -76108,6 +76131,7 @@ function getAppByVersion(payload5) {
76108
76131
  _authenticatorConfig,
76109
76132
  _background,
76110
76133
  _billing,
76134
+ _breakpointPresetStyleOverrides,
76111
76135
  _checkbox,
76112
76136
  _checkboxGroup,
76113
76137
  _checkboxGroupOption,
@@ -76133,6 +76157,7 @@ function getAppByVersion(payload5) {
76133
76157
  _editorReactComponent,
76134
76158
  _elementItem,
76135
76159
  _elementStyleDefaults,
76160
+ _elementStyleOverrides,
76136
76161
  _expectedInputs,
76137
76162
  _field,
76138
76163
  _fileUpload,
@@ -76176,6 +76201,8 @@ function getAppByVersion(payload5) {
76176
76201
  _predefinedExpectedInputConfiguration,
76177
76202
  _presetEditorPresence,
76178
76203
  _presetItem,
76204
+ _presetStyleDefaults,
76205
+ _presetStyleOverrides,
76179
76206
  _pricingModel,
76180
76207
  _productCheckboxGroup,
76181
76208
  _productCheckboxGroupOption,
@@ -76183,6 +76210,7 @@ function getAppByVersion(payload5) {
76183
76210
  _radioGroup,
76184
76211
  _ratingInput,
76185
76212
  _refElement,
76213
+ _refElementStyleOverrides,
76186
76214
  _refInnerElementDefaults,
76187
76215
  _richContent,
76188
76216
  _richContentOptions,
@@ -79693,24 +79721,24 @@ var NativeStateType;
79693
79721
  NativeStateType3["invalid"] = "invalid";
79694
79722
  })(NativeStateType || (NativeStateType = {}));
79695
79723
  var GroupType;
79696
- (function(GroupType2) {
79697
- GroupType2["UNKNOWN_GroupType"] = "UNKNOWN_GroupType";
79698
- GroupType2["cssDataTypeItems"] = "cssDataTypeItems";
79699
- GroupType2["dataItems"] = "dataItems";
79700
- GroupType2["background"] = "background";
79701
- GroupType2["margin"] = "margin";
79702
- GroupType2["padding"] = "padding";
79703
- GroupType2["border"] = "border";
79704
- GroupType2["borderTop"] = "borderTop";
79705
- GroupType2["borderRight"] = "borderRight";
79706
- GroupType2["borderBottom"] = "borderBottom";
79707
- GroupType2["borderLeft"] = "borderLeft";
79708
- GroupType2["borderRadius"] = "borderRadius";
79709
- GroupType2["borderInlineStart"] = "borderInlineStart";
79710
- GroupType2["borderInlineEnd"] = "borderInlineEnd";
79711
- GroupType2["font"] = "font";
79712
- GroupType2["textDecoration"] = "textDecoration";
79713
- GroupType2["gap"] = "gap";
79724
+ (function(GroupType3) {
79725
+ GroupType3["UNKNOWN_GroupType"] = "UNKNOWN_GroupType";
79726
+ GroupType3["cssDataTypeItems"] = "cssDataTypeItems";
79727
+ GroupType3["dataItems"] = "dataItems";
79728
+ GroupType3["background"] = "background";
79729
+ GroupType3["margin"] = "margin";
79730
+ GroupType3["padding"] = "padding";
79731
+ GroupType3["border"] = "border";
79732
+ GroupType3["borderTop"] = "borderTop";
79733
+ GroupType3["borderRight"] = "borderRight";
79734
+ GroupType3["borderBottom"] = "borderBottom";
79735
+ GroupType3["borderLeft"] = "borderLeft";
79736
+ GroupType3["borderRadius"] = "borderRadius";
79737
+ GroupType3["borderInlineStart"] = "borderInlineStart";
79738
+ GroupType3["borderInlineEnd"] = "borderInlineEnd";
79739
+ GroupType3["font"] = "font";
79740
+ GroupType3["textDecoration"] = "textDecoration";
79741
+ GroupType3["gap"] = "gap";
79714
79742
  })(GroupType || (GroupType = {}));
79715
79743
  var ContentResizeDirection;
79716
79744
  (function(ContentResizeDirection3) {
@@ -80530,6 +80558,7 @@ var Tag2;
80530
80558
  Tag3["MY_BUSINESS"] = "MY_BUSINESS";
80531
80559
  Tag3["PIPELINE_LINKED_ENTITY"] = "PIPELINE_LINKED_ENTITY";
80532
80560
  Tag3["GET_PAID"] = "GET_PAID";
80561
+ Tag3["PIPELINE_CARD_CATALOG_ITEM"] = "PIPELINE_CARD_CATALOG_ITEM";
80533
80562
  })(Tag2 || (Tag2 = {}));
80534
80563
  var FilterSelectionType2;
80535
80564
  (function(FilterSelectionType3) {
@@ -81880,6 +81909,7 @@ var ActionType2;
81880
81909
  ActionType3["panel"] = "panel";
81881
81910
  ActionType3["forward"] = "forward";
81882
81911
  ActionType3["style"] = "style";
81912
+ ActionType3["displayGroup"] = "displayGroup";
81883
81913
  })(ActionType2 || (ActionType2 = {}));
81884
81914
  var PanelType2;
81885
81915
  (function(PanelType3) {
@@ -81905,6 +81935,20 @@ var SizingType2;
81905
81935
  SizingType3["stretched"] = "stretched";
81906
81936
  SizingType3["pixels"] = "pixels";
81907
81937
  })(SizingType2 || (SizingType2 = {}));
81938
+ var BreakpointEnumBreakpoint;
81939
+ (function(BreakpointEnumBreakpoint2) {
81940
+ BreakpointEnumBreakpoint2["UNKNOWN_Breakpoint"] = "UNKNOWN_Breakpoint";
81941
+ BreakpointEnumBreakpoint2["small"] = "small";
81942
+ BreakpointEnumBreakpoint2["large"] = "large";
81943
+ })(BreakpointEnumBreakpoint || (BreakpointEnumBreakpoint = {}));
81944
+ var ContentResizeDirection2;
81945
+ (function(ContentResizeDirection3) {
81946
+ ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
81947
+ ContentResizeDirection3["horizontal"] = "horizontal";
81948
+ ContentResizeDirection3["vertical"] = "vertical";
81949
+ ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
81950
+ ContentResizeDirection3["none"] = "none";
81951
+ })(ContentResizeDirection2 || (ContentResizeDirection2 = {}));
81908
81952
  var Archetype2;
81909
81953
  (function(Archetype3) {
81910
81954
  Archetype3["UNKNOWN_Archetype"] = "UNKNOWN_Archetype";
@@ -81954,14 +81998,26 @@ var NativeStateType2;
81954
81998
  NativeStateType3["disabled"] = "disabled";
81955
81999
  NativeStateType3["invalid"] = "invalid";
81956
82000
  })(NativeStateType2 || (NativeStateType2 = {}));
81957
- var ContentResizeDirection2;
81958
- (function(ContentResizeDirection3) {
81959
- ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
81960
- ContentResizeDirection3["horizontal"] = "horizontal";
81961
- ContentResizeDirection3["vertical"] = "vertical";
81962
- ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
81963
- ContentResizeDirection3["none"] = "none";
81964
- })(ContentResizeDirection2 || (ContentResizeDirection2 = {}));
82001
+ var GroupType2;
82002
+ (function(GroupType3) {
82003
+ GroupType3["UNKNOWN_GroupType"] = "UNKNOWN_GroupType";
82004
+ GroupType3["cssDataTypeItems"] = "cssDataTypeItems";
82005
+ GroupType3["dataItems"] = "dataItems";
82006
+ GroupType3["background"] = "background";
82007
+ GroupType3["margin"] = "margin";
82008
+ GroupType3["padding"] = "padding";
82009
+ GroupType3["border"] = "border";
82010
+ GroupType3["borderTop"] = "borderTop";
82011
+ GroupType3["borderRight"] = "borderRight";
82012
+ GroupType3["borderBottom"] = "borderBottom";
82013
+ GroupType3["borderLeft"] = "borderLeft";
82014
+ GroupType3["borderRadius"] = "borderRadius";
82015
+ GroupType3["borderInlineStart"] = "borderInlineStart";
82016
+ GroupType3["borderInlineEnd"] = "borderInlineEnd";
82017
+ GroupType3["font"] = "font";
82018
+ GroupType3["textDecoration"] = "textDecoration";
82019
+ GroupType3["gap"] = "gap";
82020
+ })(GroupType2 || (GroupType2 = {}));
81965
82021
  var InteractionsTrigger2;
81966
82022
  (function(InteractionsTrigger3) {
81967
82023
  InteractionsTrigger3["UNKNOWN_TRIGGER"] = "UNKNOWN_TRIGGER";
@@ -82249,14 +82305,19 @@ var appSchema = z.object({
82249
82305
  appSecrets: appSecretsSchema
82250
82306
  })
82251
82307
  });
82308
+ var developmentSiteSchema = z.object({
82309
+ id: z.string(),
82310
+ siteName: z.string()
82311
+ }).transform(({ id, siteName }) => ({
82312
+ id,
82313
+ displayName: siteName.replaceAll("-", " "),
82314
+ viewUrl: ""
82315
+ }));
82252
82316
  var createDevelopmentSiteSchema = z.object({
82253
- developmentSite: z.object({
82254
- id: z.string(),
82255
- siteName: z.string()
82256
- })
82317
+ developmentSite: developmentSiteSchema
82257
82318
  });
82258
82319
  var getDevelopmentSitesSchema = z.object({
82259
- developmentSites: z.array(z.object({}))
82320
+ developmentSites: z.array(developmentSiteSchema)
82260
82321
  });
82261
82322
  var getDevelopmentSitesLimitSchema = z.object({
82262
82323
  limit: z.number()
@@ -82509,13 +82570,7 @@ var DevCenterClient = class {
82509
82570
  ),
82510
82571
  this.retryOptions
82511
82572
  );
82512
- const { id, siteName } = createDevelopmentSiteSchema.parse(data).developmentSite;
82513
- const site = {
82514
- id,
82515
- displayName: siteName.replaceAll("-", " "),
82516
- viewUrl: ""
82517
- };
82518
- return site;
82573
+ return createDevelopmentSiteSchema.parse(data).developmentSite;
82519
82574
  } catch (e2) {
82520
82575
  throw new CliError({
82521
82576
  code: CliErrorCode.FailedToCreateDevelopmentSite(),
@@ -82523,13 +82578,13 @@ var DevCenterClient = class {
82523
82578
  });
82524
82579
  }
82525
82580
  };
82526
- getDevSitesCount = async () => {
82581
+ getDevSites = async () => {
82527
82582
  try {
82528
82583
  const { data } = await pRetry(
82529
82584
  () => this.httpClient.request(getDevelopmentSites({})),
82530
82585
  this.retryOptions
82531
82586
  );
82532
- return getDevelopmentSitesSchema.parse(data).developmentSites.length;
82587
+ return getDevelopmentSitesSchema.parse(data).developmentSites;
82533
82588
  } catch (e2) {
82534
82589
  throw new CliError({
82535
82590
  code: CliErrorCode.FailedToGetDevelopmentSites(),
@@ -82537,6 +82592,14 @@ var DevCenterClient = class {
82537
82592
  });
82538
82593
  }
82539
82594
  };
82595
+ getDevSitesCount = async () => {
82596
+ const developmentSites = await this.getDevSites();
82597
+ return developmentSites.length;
82598
+ };
82599
+ getDevSite = async (id) => {
82600
+ const developmentSites = await this.getDevSites();
82601
+ return developmentSites.find((site) => site.id === id) ?? null;
82602
+ };
82540
82603
  getDeveloperApps = async () => {
82541
82604
  try {
82542
82605
  const { data } = await pRetry(