@wix/create-app 0.0.95 → 0.0.97

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
@@ -57113,6 +57113,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
57113
57113
  DashboardMenuPluginConfigNotFound: (0, import_variant11.fields)(),
57114
57114
  ServicePluginConfigNotFound: (0, import_variant11.fields)(),
57115
57115
  DashboardModalConfigNotFound: (0, import_variant11.fields)(),
57116
+ TSConfigNotFound: (0, import_variant11.fields)(),
57117
+ InvalidTSConfigError: (0, import_variant11.fields)(),
57116
57118
  InvalidConfigSchemaError: (0, import_variant11.fields)(),
57117
57119
  InvalidParamsOverrideSchemaError: (0, import_variant11.fields)(),
57118
57120
  PermissionDenied: {},
@@ -57571,23 +57573,47 @@ function flattenParams(data, path8 = "") {
57571
57573
  });
57572
57574
  return params;
57573
57575
  }
57576
+ function inflateParams(data) {
57577
+ const params = {};
57578
+ Object.entries(data).forEach(([key, value2]) => {
57579
+ let pathParams = params;
57580
+ const pathArray = key.split(".");
57581
+ const lastPath = pathArray.pop();
57582
+ pathArray.forEach((path8) => {
57583
+ if (!pathParams[path8]) {
57584
+ pathParams[path8] = {};
57585
+ }
57586
+ pathParams = pathParams[path8];
57587
+ });
57588
+ pathParams[lastPath] = value2;
57589
+ });
57590
+ return params;
57591
+ }
57574
57592
  function resolvePath2(path8, key) {
57575
57593
  return `${path8}${path8 ? "." : ""}${key}`;
57576
57594
  }
57577
57595
  function toURLSearchParams(params, isComplexRequest) {
57578
57596
  const flatten2 = flattenParams(params);
57597
+ const complexParams = {};
57579
57598
  const searchParams = Object.entries(flatten2).reduce((urlSearchParams, [key, value2]) => {
57580
57599
  const keyParams = Array.isArray(value2) ? value2 : [value2];
57581
57600
  keyParams.forEach((param) => {
57582
- if (param === void 0 || param === null || Array.isArray(value2) && typeof param === "object") {
57601
+ if (param === void 0 || param === null) {
57602
+ return;
57603
+ }
57604
+ if (Array.isArray(value2) && typeof param === "object") {
57605
+ complexParams[key] = value2;
57583
57606
  return;
57584
57607
  }
57608
+ if (!Array.isArray(value2)) {
57609
+ complexParams[key] = value2;
57610
+ }
57585
57611
  urlSearchParams.append(key, param);
57586
57612
  });
57587
57613
  return urlSearchParams;
57588
57614
  }, new URLSearchParams());
57589
57615
  if (isComplexRequest) {
57590
- searchParams.append(".r", encode(JSON.stringify(params), true));
57616
+ searchParams.append(".r", encode(JSON.stringify(inflateParams(complexParams)), true));
57591
57617
  }
57592
57618
  return searchParams;
57593
57619
  }
@@ -57663,7 +57689,12 @@ init_esm_shims();
57663
57689
  var timestamp = {
57664
57690
  types: ["google.protobuf.Timestamp"],
57665
57691
  [ConverterType.TO_JSON]: {
57666
- transform: (val) => !val ? val : val.toISOString()
57692
+ transform: (val) => {
57693
+ if (typeof val === "string" || !val) {
57694
+ return val;
57695
+ }
57696
+ return val.toISOString();
57697
+ }
57667
57698
  },
57668
57699
  [ConverterType.FROM_JSON]: {
57669
57700
  transform: (val) => val ? new Date(val) : val
@@ -66709,6 +66740,23 @@ function getErrorComponent(code, cause) {
66709
66740
  }
66710
66741
  );
66711
66742
  },
66743
+ TSConfigNotFound: ({ configPath }) => {
66744
+ return () => /* @__PURE__ */ import_react77.default.createElement(
66745
+ ErrorMessage,
66746
+ {
66747
+ message: `TypeScript config not found at \`${configPath}\``
66748
+ }
66749
+ );
66750
+ },
66751
+ InvalidTSConfigError: ({ configPath }) => {
66752
+ return () => /* @__PURE__ */ import_react77.default.createElement(
66753
+ ErrorMessage,
66754
+ {
66755
+ message: defaultOutdent`
66756
+ Invalid TypeScript configuration found at \`${configPath}\``
66757
+ }
66758
+ );
66759
+ },
66712
66760
  InvalidConfigSchemaError: ({ configPath, zodError }) => {
66713
66761
  return () => /* @__PURE__ */ import_react77.default.createElement(
66714
66762
  ErrorMessage,
@@ -71013,7 +71061,7 @@ function reportCommandStartEvent({
71013
71061
  }
71014
71062
 
71015
71063
  // package.json
71016
- var version = "0.0.95";
71064
+ var version = "0.0.97";
71017
71065
  var package_default = {
71018
71066
  name: "@wix/create-app",
71019
71067
  description: "Create Wix apps",
@@ -74554,7 +74602,10 @@ var _node = {
74554
74602
  audioData: "_audioData",
74555
74603
  nodes: "_node"
74556
74604
  };
74557
- var _numberInput = { description: "_richContent" };
74605
+ var _numberInput = {
74606
+ default: "google.protobuf.DoubleValue",
74607
+ description: "_richContent"
74608
+ };
74558
74609
  var _numberType = {
74559
74610
  maximum: "google.protobuf.DoubleValue",
74560
74611
  minimum: "google.protobuf.DoubleValue",
@@ -77915,13 +77966,17 @@ var ComponentType2;
77915
77966
  ComponentType3["APPLICATION_PROFILE"] = "APPLICATION_PROFILE";
77916
77967
  ComponentType3["TEXT_TO_SPEECH_ACTION_MESSAGE"] = "TEXT_TO_SPEECH_ACTION_MESSAGE";
77917
77968
  ComponentType3["AUDIENCE_PROVIDER"] = "AUDIENCE_PROVIDER";
77918
- ComponentType3["PRICING_PLANS_PRICING"] = "PRICING_PLANS_PRICING";
77969
+ ComponentType3["PRICING_PLANS_PRICE"] = "PRICING_PLANS_PRICE";
77919
77970
  ComponentType3["PRICING_PLAN_CUSTOMER_START_DATE_LIMIT"] = "PRICING_PLAN_CUSTOMER_START_DATE_LIMIT";
77920
77971
  ComponentType3["PRICING_PLAN_START_DATE_POLICY"] = "PRICING_PLAN_START_DATE_POLICY";
77921
77972
  ComponentType3["EVENTS_TICKET_RESERVATIONS"] = "EVENTS_TICKET_RESERVATIONS";
77922
77973
  ComponentType3["PAYMENTS_DISPUTE_SERVICE_PLUGIN"] = "PAYMENTS_DISPUTE_SERVICE_PLUGIN";
77923
77974
  ComponentType3["PRICING_PLANS_FEES"] = "PRICING_PLANS_FEES";
77924
77975
  ComponentType3["EDITOR_REACT_COMPONENT"] = "EDITOR_REACT_COMPONENT";
77976
+ ComponentType3["SUPPLIERS_HUB_MARKETPLACE"] = "SUPPLIERS_HUB_MARKETPLACE";
77977
+ ComponentType3["FORM_SCHEMA_DYNAMIC_VALUES"] = "FORM_SCHEMA_DYNAMIC_VALUES";
77978
+ ComponentType3["BLOG_PAYWALL_PROVIDER"] = "BLOG_PAYWALL_PROVIDER";
77979
+ ComponentType3["LOYALTY_CUSTOM_REWARDS_V2"] = "LOYALTY_CUSTOM_REWARDS_V2";
77925
77980
  })(ComponentType2 || (ComponentType2 = {}));
77926
77981
  var WidgetVertical2;
77927
77982
  (function(WidgetVertical3) {
@@ -78027,6 +78082,11 @@ var RegionType2;
78027
78082
  RegionType3["BODY"] = "BODY";
78028
78083
  RegionType3["FOOTER"] = "FOOTER";
78029
78084
  })(RegionType2 || (RegionType2 = {}));
78085
+ var StaticContainer;
78086
+ (function(StaticContainer2) {
78087
+ StaticContainer2["UNKNOWN_CONTAINER"] = "UNKNOWN_CONTAINER";
78088
+ StaticContainer2["HOMEPAGE"] = "HOMEPAGE";
78089
+ })(StaticContainer || (StaticContainer = {}));
78030
78090
  var EmbeddedScriptPages2;
78031
78091
  (function(EmbeddedScriptPages3) {
78032
78092
  EmbeddedScriptPages3["NONE_PAGES"] = "NONE_PAGES";
@@ -78488,6 +78548,11 @@ var ThumbnailsAlignment2;
78488
78548
  ThumbnailsAlignment3["LEFT"] = "LEFT";
78489
78549
  ThumbnailsAlignment3["NONE"] = "NONE";
78490
78550
  })(ThumbnailsAlignment2 || (ThumbnailsAlignment2 = {}));
78551
+ var GIFType;
78552
+ (function(GIFType2) {
78553
+ GIFType2["GIF"] = "GIF";
78554
+ GIFType2["STICKER"] = "STICKER";
78555
+ })(GIFType || (GIFType = {}));
78491
78556
  var Source2;
78492
78557
  (function(Source3) {
78493
78558
  Source3["HTML"] = "HTML";
@@ -78641,6 +78706,12 @@ var NotificationTopicType2;
78641
78706
  NotificationTopicType3["PROMOTIONAL"] = "PROMOTIONAL";
78642
78707
  NotificationTopicType3["TRANSACTIONAL"] = "TRANSACTIONAL";
78643
78708
  })(NotificationTopicType2 || (NotificationTopicType2 = {}));
78709
+ var RecipientType;
78710
+ (function(RecipientType2) {
78711
+ RecipientType2["UNKNOWN_RECIPIENT_TYPE"] = "UNKNOWN_RECIPIENT_TYPE";
78712
+ RecipientType2["WIX_USER"] = "WIX_USER";
78713
+ RecipientType2["CONTACT"] = "CONTACT";
78714
+ })(RecipientType || (RecipientType = {}));
78644
78715
  var PlanFormPricingOption2;
78645
78716
  (function(PlanFormPricingOption3) {
78646
78717
  PlanFormPricingOption3["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
@@ -78823,6 +78894,7 @@ var StringComponentType2;
78823
78894
  var NumberOfColumns2;
78824
78895
  (function(NumberOfColumns3) {
78825
78896
  NumberOfColumns3["UNKNOWN"] = "UNKNOWN";
78897
+ NumberOfColumns3["ZERO"] = "ZERO";
78826
78898
  NumberOfColumns3["ONE"] = "ONE";
78827
78899
  NumberOfColumns3["TWO"] = "TWO";
78828
78900
  NumberOfColumns3["THREE"] = "THREE";
@@ -79056,6 +79128,7 @@ var WixCodePublishTaskName2;
79056
79128
  WixCodePublishTaskName3["IMPORTED_NAMESPACES_ANALYSIS"] = "IMPORTED_NAMESPACES_ANALYSIS";
79057
79129
  WixCodePublishTaskName3["PAGE_DETAILS_ANALYSIS"] = "PAGE_DETAILS_ANALYSIS";
79058
79130
  WixCodePublishTaskName3["USER_CODE_VALIDATION"] = "USER_CODE_VALIDATION";
79131
+ WixCodePublishTaskName3["CODE_PACKAGES_REGISTRATION"] = "CODE_PACKAGES_REGISTRATION";
79059
79132
  })(WixCodePublishTaskName2 || (WixCodePublishTaskName2 = {}));
79060
79133
  var ChannelConfigurationChannelType2;
79061
79134
  (function(ChannelConfigurationChannelType3) {
@@ -79154,7 +79227,20 @@ var ParticipantType2;
79154
79227
  ParticipantType3["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
79155
79228
  ParticipantType3["WIX_USER"] = "WIX_USER";
79156
79229
  ParticipantType3["CONTACT"] = "CONTACT";
79230
+ ParticipantType3["ANONYMOUS"] = "ANONYMOUS";
79157
79231
  })(ParticipantType2 || (ParticipantType2 = {}));
79232
+ var InterfaceConfigurationType;
79233
+ (function(InterfaceConfigurationType2) {
79234
+ InterfaceConfigurationType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
79235
+ InterfaceConfigurationType2["WIDGET_COMPONENT"] = "WIDGET_COMPONENT";
79236
+ InterfaceConfigurationType2["ITEM_SELECTION"] = "ITEM_SELECTION";
79237
+ })(InterfaceConfigurationType || (InterfaceConfigurationType = {}));
79238
+ var Scope2;
79239
+ (function(Scope3) {
79240
+ Scope3["UNKNOWN_SCOPE"] = "UNKNOWN_SCOPE";
79241
+ Scope3["SPECIFIC_SITE"] = "SPECIFIC_SITE";
79242
+ Scope3["NON_SPECIFIC_SITE"] = "NON_SPECIFIC_SITE";
79243
+ })(Scope2 || (Scope2 = {}));
79158
79244
  var CssPropertyType2;
79159
79245
  (function(CssPropertyType3) {
79160
79246
  CssPropertyType3["UNKNOWN_CssPropertyType"] = "UNKNOWN_CssPropertyType";