@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.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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, 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;
|
|
73
|
+
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;
|
|
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) {
|
|
@@ -384,6 +384,10 @@ var init_types_impl = __esm({
|
|
|
384
384
|
LayoutDataImagePosition4["BOTTOM_LEFT"] = "BOTTOM_LEFT";
|
|
385
385
|
LayoutDataImagePosition4["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
|
|
386
386
|
})(LayoutDataImagePosition || (LayoutDataImagePosition = {}));
|
|
387
|
+
(function(Origin2) {
|
|
388
|
+
Origin2["IMAGE"] = "IMAGE";
|
|
389
|
+
Origin2["LAYOUT"] = "LAYOUT";
|
|
390
|
+
})(Origin || (Origin = {}));
|
|
387
391
|
(function(VerticalAlignmentAlignment5) {
|
|
388
392
|
VerticalAlignmentAlignment5["TOP"] = "TOP";
|
|
389
393
|
VerticalAlignmentAlignment5["MIDDLE"] = "MIDDLE";
|
|
@@ -662,6 +666,11 @@ var init_types_impl = __esm({
|
|
|
662
666
|
ResultsDisplay3["PASSING_STATUS"] = "PASSING_STATUS";
|
|
663
667
|
ResultsDisplay3["SCORE_AND_PASSING_STATUS"] = "SCORE_AND_PASSING_STATUS";
|
|
664
668
|
})(ResultsDisplay || (ResultsDisplay = {}));
|
|
669
|
+
(function(ContactAutofill2) {
|
|
670
|
+
ContactAutofill2["UNKNOWN_CONTACT_AUTOFILL"] = "UNKNOWN_CONTACT_AUTOFILL";
|
|
671
|
+
ContactAutofill2["MEMBER_DATA"] = "MEMBER_DATA";
|
|
672
|
+
ContactAutofill2["FORM_INPUT"] = "FORM_INPUT";
|
|
673
|
+
})(ContactAutofill || (ContactAutofill = {}));
|
|
665
674
|
(function(Fieldset2) {
|
|
666
675
|
Fieldset2["UNKNOWN"] = "UNKNOWN";
|
|
667
676
|
Fieldset2["NESTED_FORMS"] = "NESTED_FORMS";
|
|
@@ -21304,7 +21313,7 @@ function formatAddressLine(isStreetFormat, streetAddress, addressLine) {
|
|
|
21304
21313
|
return `${(streetAddress == null ? void 0 : streetAddress.name) || ""} ${streetNumber}`;
|
|
21305
21314
|
}
|
|
21306
21315
|
function formatMultilineAddress(submission, options) {
|
|
21307
|
-
const country = import_locale_dataset_javascript2.default.getCountryByShortKey(submission.country);
|
|
21316
|
+
const country = submission.country ? import_locale_dataset_javascript2.default.getCountryByShortKey(submission.country) : void 0;
|
|
21308
21317
|
const streetAddress = {
|
|
21309
21318
|
name: submission.streetName,
|
|
21310
21319
|
number: submission.streetNumber,
|