@wix/form-public 0.210.0 → 0.212.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.cjs CHANGED
@@ -70,7 +70,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
70
70
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
71
71
 
72
72
  // ../../node_modules/@wix/ambassador-forms-v4-form/es/build/types.impl.js
73
- var Format, DayOfWeek, ValidationFormat, ProductType, PriceType, PropertiesTypeEnum, FieldFieldType, StringTypeFormatEnumFormat, InputFieldStringComponentType, NodeType, StylesBackgroundType, GradientType, 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, LayoutDataBackgroundType, BackdropType, VerticalAlignmentAlignment, ResponsivenessBehaviour, DesignTarget, ImageScalingScaling, ImagePositionPosition, CardDataBackgroundType, ListStyle, Indentation, ImagePosition, AlignmentEnumAlignment, ImageFit, NumberOfColumns, FirstDayOfWeekEnumFirstDayOfWeek, InputFieldNumberComponentType, InputFieldBooleanComponentType, ArrayItemsItemType, PropertiesTypePropertiesTypeEnum, ArrayComponentType, InputFieldWixFileComponentType, UploadFileFormat, InputFieldPaymentComponentType, AddressComponentType, DefaultCountryConfigType, ObjectArrayComponentType, InputFieldSchedulingComponentType, AppointmentFormat, MeetingType, StaffStrategySelection, InputFieldInputType, FormFieldContactInfoEmailInfoTag, FormFieldContactInfoPhoneInfoTag, AddressInfoTag, ConfirmationLevel, SubscriptionChannel, 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;
73
+ var Format, DayOfWeek, ValidationFormat, ProductType, PriceType, PropertiesTypeEnum, FieldFieldType, StringTypeFormatEnumFormat, InputFieldStringComponentType, NodeType, StylesBackgroundType, GradientType, 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, LayoutDataBackgroundType, BackdropType, VerticalAlignmentAlignment, ResponsivenessBehaviour, DesignTarget, ImageScalingScaling, ImagePositionPosition, CardDataBackgroundType, ListStyle, Indentation, ImagePosition, AlignmentEnumAlignment, ImageFit, NumberOfColumns, FirstDayOfWeekEnumFirstDayOfWeek, InputFieldNumberComponentType, InputFieldBooleanComponentType, ArrayItemsItemType, PropertiesTypePropertiesTypeEnum, ArrayComponentType, InputFieldWixFileComponentType, UploadFileFormat, InputFieldPaymentComponentType, AddressComponentType, DefaultCountryConfigType, ObjectArrayComponentType, InputFieldSchedulingComponentType, AppointmentFormat, MeetingType, StaffStrategySelection, InputFieldInputType, FormFieldContactInfoEmailInfoTag, FormFieldContactInfoPhoneInfoTag, AddressInfoTag, ConfirmationLevel, SubscriptionChannel, FormFieldContactInfoContactField, DisplayFieldDisplayFieldType, OverrideEntityType, Kind, EmailInfoTag, PhoneInfoTag, Tag, OptInLevel, ContactField, SpamFilterProtectionLevel, RequiredIndicator, RequiredIndicatorPlacement, UrlTargetEnumTarget, SubmitSuccessAction, ChangeableProperty, OverrideEntityTypeEnumOverrideEntityType, Operator, ResultsDisplay, ContactAutofill, SubmissionAccess, Fieldset, SortOrder, CountFormsFieldset, ListFormsOrderEnumListFormsOrder, FilterType, ListFormsOrder, ListDeletedFormsOrder, FieldInputType, WebhookIdentityType;
74
74
  var init_types_impl = __esm({
75
75
  "../../node_modules/@wix/ambassador-forms-v4-form/es/build/types.impl.js"() {
76
76
  (function(Format6) {
@@ -704,6 +704,7 @@ var init_types_impl = __esm({
704
704
  SubmitSuccessAction5["NO_ACTION"] = "NO_ACTION";
705
705
  SubmitSuccessAction5["THANK_YOU_MESSAGE"] = "THANK_YOU_MESSAGE";
706
706
  SubmitSuccessAction5["REDIRECT"] = "REDIRECT";
707
+ SubmitSuccessAction5["POPUP"] = "POPUP";
707
708
  })(SubmitSuccessAction || (SubmitSuccessAction = {}));
708
709
  (function(ChangeableProperty4) {
709
710
  ChangeableProperty4["UNKNOWN_CHANGEABLE_PROPERTY"] = "UNKNOWN_CHANGEABLE_PROPERTY";
@@ -756,6 +757,12 @@ var init_types_impl = __esm({
756
757
  ContactAutofill5["MEMBER_DATA"] = "MEMBER_DATA";
757
758
  ContactAutofill5["FORM_INPUT"] = "FORM_INPUT";
758
759
  })(ContactAutofill || (ContactAutofill = {}));
760
+ (function(SubmissionAccess2) {
761
+ SubmissionAccess2["UNKNOWN_SUBMISSION_ACCESS"] = "UNKNOWN_SUBMISSION_ACCESS";
762
+ SubmissionAccess2["OWNER_AND_COLLABORATORS"] = "OWNER_AND_COLLABORATORS";
763
+ SubmissionAccess2["MEMBERS"] = "MEMBERS";
764
+ SubmissionAccess2["PUBLIC"] = "PUBLIC";
765
+ })(SubmissionAccess || (SubmissionAccess = {}));
759
766
  (function(Fieldset2) {
760
767
  Fieldset2["UNKNOWN"] = "UNKNOWN";
761
768
  Fieldset2["NESTED_FORMS"] = "NESTED_FORMS";
@@ -32896,7 +32903,8 @@ function acceptPhoneValue({ fieldValue }) {
32896
32903
  return fieldValue;
32897
32904
  }
32898
32905
  if (typeof fieldValue === "string") {
32899
- return fieldValue.replace(/[^0-9+]/g, "");
32906
+ const stripped = fieldValue.replace(/[^0-9+]/g, "");
32907
+ return stripped || fieldValue;
32900
32908
  }
32901
32909
  return EMPTY_VALUE;
32902
32910
  }