@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 +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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, 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;
|
|
47
|
+
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;
|
|
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) {
|
|
@@ -678,6 +678,7 @@ var init_types_impl = __esm({
|
|
|
678
678
|
SubmitSuccessAction5["NO_ACTION"] = "NO_ACTION";
|
|
679
679
|
SubmitSuccessAction5["THANK_YOU_MESSAGE"] = "THANK_YOU_MESSAGE";
|
|
680
680
|
SubmitSuccessAction5["REDIRECT"] = "REDIRECT";
|
|
681
|
+
SubmitSuccessAction5["POPUP"] = "POPUP";
|
|
681
682
|
})(SubmitSuccessAction || (SubmitSuccessAction = {}));
|
|
682
683
|
(function(ChangeableProperty4) {
|
|
683
684
|
ChangeableProperty4["UNKNOWN_CHANGEABLE_PROPERTY"] = "UNKNOWN_CHANGEABLE_PROPERTY";
|
|
@@ -730,6 +731,12 @@ var init_types_impl = __esm({
|
|
|
730
731
|
ContactAutofill5["MEMBER_DATA"] = "MEMBER_DATA";
|
|
731
732
|
ContactAutofill5["FORM_INPUT"] = "FORM_INPUT";
|
|
732
733
|
})(ContactAutofill || (ContactAutofill = {}));
|
|
734
|
+
(function(SubmissionAccess2) {
|
|
735
|
+
SubmissionAccess2["UNKNOWN_SUBMISSION_ACCESS"] = "UNKNOWN_SUBMISSION_ACCESS";
|
|
736
|
+
SubmissionAccess2["OWNER_AND_COLLABORATORS"] = "OWNER_AND_COLLABORATORS";
|
|
737
|
+
SubmissionAccess2["MEMBERS"] = "MEMBERS";
|
|
738
|
+
SubmissionAccess2["PUBLIC"] = "PUBLIC";
|
|
739
|
+
})(SubmissionAccess || (SubmissionAccess = {}));
|
|
733
740
|
(function(Fieldset2) {
|
|
734
741
|
Fieldset2["UNKNOWN"] = "UNKNOWN";
|
|
735
742
|
Fieldset2["NESTED_FORMS"] = "NESTED_FORMS";
|
|
@@ -32870,7 +32877,8 @@ function acceptPhoneValue({ fieldValue }) {
|
|
|
32870
32877
|
return fieldValue;
|
|
32871
32878
|
}
|
|
32872
32879
|
if (typeof fieldValue === "string") {
|
|
32873
|
-
|
|
32880
|
+
const stripped = fieldValue.replace(/[^0-9+]/g, "");
|
|
32881
|
+
return stripped || fieldValue;
|
|
32874
32882
|
}
|
|
32875
32883
|
return EMPTY_VALUE;
|
|
32876
32884
|
}
|