@wix/form-public 0.161.0 → 0.163.0

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/dist/index.js CHANGED
@@ -44,7 +44,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
44
44
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
45
45
 
46
46
  // ../../node_modules/@wix/ambassador-forms-v4-form/es/build/types.impl.js
47
- var Format, ValidationFormat, ProductType, PriceType, FieldFieldType, StringTypeFormatEnumFormat, InputFieldStringComponentType, NodeType, WidthType, PluginContainerDataAlignment, Type, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, GIFType, Source, Position, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, ImageStylesPosition, AspectRatio, Resizing, Placement, CardStylesType, CardStylesAlignment, CardStylesLayout, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, Scaling, LayoutDataImagePosition, VerticalAlignmentAlignment, ResponsivenessBehaviour, DesignTarget, ImagePosition, AlignmentEnumAlignment, ImageFit, NumberOfColumns, FirstDayOfWeekEnumFirstDayOfWeek, InputFieldNumberComponentType, InputFieldBooleanComponentType, ArrayItemsItemType, PropertiesTypePropertiesTypeEnum, ArrayComponentType, InputFieldWixFileComponentType, UploadFileFormat, InputFieldPaymentComponentType, AddressComponentType, DefaultCountryConfigType, ObjectArrayComponentType, InputFieldSchedulingComponentType, AppointmentFormat, InputFieldInputType, FormFieldContactInfoEmailInfoTag, FormFieldContactInfoPhoneInfoTag, AddressInfoTag, ConfirmationLevel, FormFieldContactInfoContactField, DisplayFieldDisplayFieldType, OverrideEntityType, Kind, EmailInfoTag, PhoneInfoTag, Tag, OptInLevel, ContactField, SpamFilterProtectionLevel, RequiredIndicator, RequiredIndicatorPlacement, UrlTargetEnumTarget, SubmitSuccessAction, ChangeableProperty, OverrideEntityTypeEnumOverrideEntityType, Operator, ResultsDisplay, Fieldset, SortOrder, CountFormsFieldset, ListFormsOrderEnumListFormsOrder, FilterType, ListFormsOrder, ListDeletedFormsOrder, FieldInputType, WebhookIdentityType;
47
+ var Format, ValidationFormat, ProductType, PriceType, FieldFieldType, StringTypeFormatEnumFormat, InputFieldStringComponentType, NodeType, WidthType, PluginContainerDataAlignment, Type, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, GIFType, Source, Position, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, ImageStylesPosition, AspectRatio, Resizing, Placement, CardStylesType, CardStylesAlignment, CardStylesLayout, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, Scaling, LayoutDataImagePosition, Origin, VerticalAlignmentAlignment, ResponsivenessBehaviour, DesignTarget, ImagePosition, AlignmentEnumAlignment, ImageFit, NumberOfColumns, FirstDayOfWeekEnumFirstDayOfWeek, InputFieldNumberComponentType, InputFieldBooleanComponentType, ArrayItemsItemType, PropertiesTypePropertiesTypeEnum, ArrayComponentType, InputFieldWixFileComponentType, UploadFileFormat, InputFieldPaymentComponentType, AddressComponentType, DefaultCountryConfigType, ObjectArrayComponentType, InputFieldSchedulingComponentType, AppointmentFormat, InputFieldInputType, FormFieldContactInfoEmailInfoTag, FormFieldContactInfoPhoneInfoTag, AddressInfoTag, ConfirmationLevel, FormFieldContactInfoContactField, DisplayFieldDisplayFieldType, OverrideEntityType, Kind, EmailInfoTag, PhoneInfoTag, Tag, OptInLevel, ContactField, SpamFilterProtectionLevel, RequiredIndicator, RequiredIndicatorPlacement, UrlTargetEnumTarget, SubmitSuccessAction, ChangeableProperty, OverrideEntityTypeEnumOverrideEntityType, Operator, ResultsDisplay, ContactAutofill, Fieldset, SortOrder, CountFormsFieldset, ListFormsOrderEnumListFormsOrder, FilterType, ListFormsOrder, ListDeletedFormsOrder, FieldInputType, WebhookIdentityType;
48
48
  var init_types_impl = __esm({
49
49
  "../../node_modules/@wix/ambassador-forms-v4-form/es/build/types.impl.js"() {
50
50
  (function(Format6) {
@@ -358,6 +358,10 @@ var init_types_impl = __esm({
358
358
  LayoutDataImagePosition4["BOTTOM_LEFT"] = "BOTTOM_LEFT";
359
359
  LayoutDataImagePosition4["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
360
360
  })(LayoutDataImagePosition || (LayoutDataImagePosition = {}));
361
+ (function(Origin2) {
362
+ Origin2["IMAGE"] = "IMAGE";
363
+ Origin2["LAYOUT"] = "LAYOUT";
364
+ })(Origin || (Origin = {}));
361
365
  (function(VerticalAlignmentAlignment5) {
362
366
  VerticalAlignmentAlignment5["TOP"] = "TOP";
363
367
  VerticalAlignmentAlignment5["MIDDLE"] = "MIDDLE";
@@ -636,6 +640,11 @@ var init_types_impl = __esm({
636
640
  ResultsDisplay3["PASSING_STATUS"] = "PASSING_STATUS";
637
641
  ResultsDisplay3["SCORE_AND_PASSING_STATUS"] = "SCORE_AND_PASSING_STATUS";
638
642
  })(ResultsDisplay || (ResultsDisplay = {}));
643
+ (function(ContactAutofill2) {
644
+ ContactAutofill2["UNKNOWN_CONTACT_AUTOFILL"] = "UNKNOWN_CONTACT_AUTOFILL";
645
+ ContactAutofill2["MEMBER_DATA"] = "MEMBER_DATA";
646
+ ContactAutofill2["FORM_INPUT"] = "FORM_INPUT";
647
+ })(ContactAutofill || (ContactAutofill = {}));
639
648
  (function(Fieldset2) {
640
649
  Fieldset2["UNKNOWN"] = "UNKNOWN";
641
650
  Fieldset2["NESTED_FORMS"] = "NESTED_FORMS";
@@ -21278,7 +21287,7 @@ function formatAddressLine(isStreetFormat, streetAddress, addressLine) {
21278
21287
  return `${(streetAddress == null ? void 0 : streetAddress.name) || ""} ${streetNumber}`;
21279
21288
  }
21280
21289
  function formatMultilineAddress(submission, options) {
21281
- const country = import_locale_dataset_javascript2.default.getCountryByShortKey(submission.country);
21290
+ const country = submission.country ? import_locale_dataset_javascript2.default.getCountryByShortKey(submission.country) : void 0;
21282
21291
  const streetAddress = {
21283
21292
  name: submission.streetName,
21284
21293
  number: submission.streetNumber,