@wix/form-public 0.37.0 → 0.39.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 +243 -78
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +605 -605
- package/dist/index.css.map +1 -1
- package/dist/index.js +243 -78
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
39
39
|
));
|
|
40
40
|
|
|
41
41
|
// ../../node_modules/@wix/ambassador-forms-v4-form/build/es/types.impl.js
|
|
42
|
-
var Format, ValidationFormat, ProductType, PriceType, FormatEnumFormat, StringComponentType, 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, ImagePosition, AlignmentEnumAlignment, ImageFit, NumberOfColumns, FirstDayOfWeekEnumFirstDayOfWeek, NumberComponentType, BooleanComponentType, ItemType, PropertiesTypeEnum, ComponentType, WixFileComponentType, UploadFileFormat, PaymentComponentType, SchedulingComponentType, AppointmentFormat, MultilineAddressComponentType, DefaultCountryConfigType, InputType, EmailInfoTag, PhoneInfoTag, Tag, OptInLevel, ContactField, FieldType, DisplayFieldType, FieldFieldType, StringTypeFormatEnumFormat, InputFieldStringComponentType, InputFieldNumberComponentType, InputFieldBooleanComponentType, ArrayItemsItemType, PropertiesTypePropertiesTypeEnum, ArrayComponentType, InputFieldWixFileComponentType, InputFieldPaymentComponentType, AddressComponentType, ObjectArrayComponentType, InputFieldSchedulingComponentType, InputFieldInputType, FormFieldContactInfoEmailInfoTag, FormFieldContactInfoPhoneInfoTag, AddressInfoTag, ConfirmationLevel, FormFieldContactInfoContactField, DisplayFieldDisplayFieldType, OverrideEntityType, Kind, SpamFilterProtectionLevel, RequiredIndicator, RequiredIndicatorPlacement, UrlTargetEnumTarget, SubmitSuccessAction, ChangeableProperty, OverrideEntityTypeEnumOverrideEntityType, Operator, WebhookIdentityType, Fieldset, SortOrder, CountFormsFieldset, ListFormsOrderEnumListFormsOrder, FilterType, ListFormsOrder, ListDeletedFormsOrder, FieldInputType;
|
|
42
|
+
var Format, ValidationFormat, ProductType, PriceType, FormatEnumFormat, StringComponentType, 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, ImagePosition, AlignmentEnumAlignment, ImageFit, NumberOfColumns, FirstDayOfWeekEnumFirstDayOfWeek, NumberComponentType, BooleanComponentType, ItemType, PropertiesTypeEnum, ComponentType, WixFileComponentType, UploadFileFormat, PaymentComponentType, SchedulingComponentType, AppointmentFormat, MultilineAddressComponentType, DefaultCountryConfigType, InputType, EmailInfoTag, PhoneInfoTag, Tag, OptInLevel, ContactField, FieldType, DisplayFieldType, FieldFieldType, StringTypeFormatEnumFormat, InputFieldStringComponentType, InputFieldNumberComponentType, InputFieldBooleanComponentType, ArrayItemsItemType, PropertiesTypePropertiesTypeEnum, ArrayComponentType, InputFieldWixFileComponentType, InputFieldPaymentComponentType, AddressComponentType, ObjectArrayComponentType, InputFieldSchedulingComponentType, InputFieldInputType, FormFieldContactInfoEmailInfoTag, FormFieldContactInfoPhoneInfoTag, AddressInfoTag, ConfirmationLevel, FormFieldContactInfoContactField, DisplayFieldDisplayFieldType, OverrideEntityType, Kind, SpamFilterProtectionLevel, RequiredIndicator, RequiredIndicatorPlacement, UrlTargetEnumTarget, SubmitSuccessAction, ChangeableProperty, OverrideEntityTypeEnumOverrideEntityType, Operator, WebhookIdentityType, Scaling, LayoutDataImagePosition, VerticalAlignmentAlignment, ResponsivenessBehaviour, Fieldset, SortOrder, CountFormsFieldset, ListFormsOrderEnumListFormsOrder, FilterType, ListFormsOrder, ListDeletedFormsOrder, FieldInputType;
|
|
43
43
|
var init_types_impl = __esm({
|
|
44
44
|
"../../node_modules/@wix/ambassador-forms-v4-form/build/es/types.impl.js"() {
|
|
45
45
|
(function(Format6) {
|
|
@@ -222,6 +222,7 @@ var init_types_impl = __esm({
|
|
|
222
222
|
(function(Source5) {
|
|
223
223
|
Source5["HTML"] = "HTML";
|
|
224
224
|
Source5["ADSENSE"] = "ADSENSE";
|
|
225
|
+
Source5["AI"] = "AI";
|
|
225
226
|
})(Source || (Source = {}));
|
|
226
227
|
(function(Position5) {
|
|
227
228
|
Position5["START"] = "START";
|
|
@@ -328,10 +329,10 @@ var init_types_impl = __esm({
|
|
|
328
329
|
(function(NullValue5) {
|
|
329
330
|
NullValue5["NULL_VALUE"] = "NULL_VALUE";
|
|
330
331
|
})(NullValue || (NullValue = {}));
|
|
331
|
-
(function(
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
332
|
+
(function(ImagePosition5) {
|
|
333
|
+
ImagePosition5["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
|
|
334
|
+
ImagePosition5["ABOVE"] = "ABOVE";
|
|
335
|
+
ImagePosition5["BELOW"] = "BELOW";
|
|
335
336
|
})(ImagePosition || (ImagePosition = {}));
|
|
336
337
|
(function(AlignmentEnumAlignment4) {
|
|
337
338
|
AlignmentEnumAlignment4["UNKNOWN_ALIGNMENT"] = "UNKNOWN_ALIGNMENT";
|
|
@@ -699,6 +700,31 @@ var init_types_impl = __esm({
|
|
|
699
700
|
WebhookIdentityType3["WIX_USER"] = "WIX_USER";
|
|
700
701
|
WebhookIdentityType3["APP"] = "APP";
|
|
701
702
|
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
703
|
+
(function(Scaling5) {
|
|
704
|
+
Scaling5["AUTO"] = "AUTO";
|
|
705
|
+
Scaling5["CONTAIN"] = "CONTAIN";
|
|
706
|
+
Scaling5["COVER"] = "COVER";
|
|
707
|
+
})(Scaling || (Scaling = {}));
|
|
708
|
+
(function(LayoutDataImagePosition4) {
|
|
709
|
+
LayoutDataImagePosition4["CENTER"] = "CENTER";
|
|
710
|
+
LayoutDataImagePosition4["CENTER_LEFT"] = "CENTER_LEFT";
|
|
711
|
+
LayoutDataImagePosition4["CENTER_RIGHT"] = "CENTER_RIGHT";
|
|
712
|
+
LayoutDataImagePosition4["TOP"] = "TOP";
|
|
713
|
+
LayoutDataImagePosition4["TOP_LEFT"] = "TOP_LEFT";
|
|
714
|
+
LayoutDataImagePosition4["TOP_RIGHT"] = "TOP_RIGHT";
|
|
715
|
+
LayoutDataImagePosition4["BOTTOM"] = "BOTTOM";
|
|
716
|
+
LayoutDataImagePosition4["BOTTOM_LEFT"] = "BOTTOM_LEFT";
|
|
717
|
+
LayoutDataImagePosition4["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
|
|
718
|
+
})(LayoutDataImagePosition || (LayoutDataImagePosition = {}));
|
|
719
|
+
(function(VerticalAlignmentAlignment5) {
|
|
720
|
+
VerticalAlignmentAlignment5["TOP"] = "TOP";
|
|
721
|
+
VerticalAlignmentAlignment5["MIDDLE"] = "MIDDLE";
|
|
722
|
+
VerticalAlignmentAlignment5["BOTTOM"] = "BOTTOM";
|
|
723
|
+
})(VerticalAlignmentAlignment || (VerticalAlignmentAlignment = {}));
|
|
724
|
+
(function(ResponsivenessBehaviour5) {
|
|
725
|
+
ResponsivenessBehaviour5["STACK"] = "STACK";
|
|
726
|
+
ResponsivenessBehaviour5["WRAP"] = "WRAP";
|
|
727
|
+
})(ResponsivenessBehaviour || (ResponsivenessBehaviour = {}));
|
|
702
728
|
(function(Fieldset2) {
|
|
703
729
|
Fieldset2["UNKNOWN"] = "UNKNOWN";
|
|
704
730
|
Fieldset2["NESTED_FORMS"] = "NESTED_FORMS";
|
|
@@ -878,9 +904,57 @@ var init_node_heading = __esm({
|
|
|
878
904
|
}
|
|
879
905
|
});
|
|
880
906
|
|
|
881
|
-
// ../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/node_layout.js
|
|
907
|
+
// ../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/node_layout.enums.js
|
|
908
|
+
var LayoutData_ImagePosition, LayoutData_ResponsivenessBehaviour, LayoutData_VerticalAlignment_Alignment, LayoutData_ImageScaling_Scaling;
|
|
909
|
+
var init_node_layout_enums = __esm({
|
|
910
|
+
"../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/node_layout.enums.js"() {
|
|
911
|
+
LayoutData_ImagePosition = /* @__PURE__ */ ((LayoutData_ImagePosition2) => {
|
|
912
|
+
LayoutData_ImagePosition2["CENTER"] = "CENTER";
|
|
913
|
+
LayoutData_ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
|
|
914
|
+
LayoutData_ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
|
|
915
|
+
LayoutData_ImagePosition2["TOP"] = "TOP";
|
|
916
|
+
LayoutData_ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
|
|
917
|
+
LayoutData_ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
|
|
918
|
+
LayoutData_ImagePosition2["BOTTOM"] = "BOTTOM";
|
|
919
|
+
LayoutData_ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
|
|
920
|
+
LayoutData_ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
|
|
921
|
+
LayoutData_ImagePosition2["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
922
|
+
return LayoutData_ImagePosition2;
|
|
923
|
+
})(LayoutData_ImagePosition || {});
|
|
924
|
+
LayoutData_ResponsivenessBehaviour = /* @__PURE__ */ ((LayoutData_ResponsivenessBehaviour2) => {
|
|
925
|
+
LayoutData_ResponsivenessBehaviour2["STACK"] = "STACK";
|
|
926
|
+
LayoutData_ResponsivenessBehaviour2["WRAP"] = "WRAP";
|
|
927
|
+
LayoutData_ResponsivenessBehaviour2["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
928
|
+
return LayoutData_ResponsivenessBehaviour2;
|
|
929
|
+
})(LayoutData_ResponsivenessBehaviour || {});
|
|
930
|
+
LayoutData_VerticalAlignment_Alignment = /* @__PURE__ */ ((LayoutData_VerticalAlignment_Alignment2) => {
|
|
931
|
+
LayoutData_VerticalAlignment_Alignment2["TOP"] = "TOP";
|
|
932
|
+
LayoutData_VerticalAlignment_Alignment2["MIDDLE"] = "MIDDLE";
|
|
933
|
+
LayoutData_VerticalAlignment_Alignment2["BOTTOM"] = "BOTTOM";
|
|
934
|
+
LayoutData_VerticalAlignment_Alignment2["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
935
|
+
return LayoutData_VerticalAlignment_Alignment2;
|
|
936
|
+
})(LayoutData_VerticalAlignment_Alignment || {});
|
|
937
|
+
LayoutData_ImageScaling_Scaling = /* @__PURE__ */ ((LayoutData_ImageScaling_Scaling2) => {
|
|
938
|
+
LayoutData_ImageScaling_Scaling2["AUTO"] = "AUTO";
|
|
939
|
+
LayoutData_ImageScaling_Scaling2["CONTAIN"] = "CONTAIN";
|
|
940
|
+
LayoutData_ImageScaling_Scaling2["COVER"] = "COVER";
|
|
941
|
+
LayoutData_ImageScaling_Scaling2["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
942
|
+
return LayoutData_ImageScaling_Scaling2;
|
|
943
|
+
})(LayoutData_ImageScaling_Scaling || {});
|
|
944
|
+
}
|
|
945
|
+
});
|
|
882
946
|
var init_node_layout = __esm({
|
|
883
947
|
"../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/node_layout.js"() {
|
|
948
|
+
init_node_layout_enums();
|
|
949
|
+
({
|
|
950
|
+
cellPadding: 0,
|
|
951
|
+
cellVerticalAlignment: LayoutData_VerticalAlignment_Alignment.TOP,
|
|
952
|
+
responsivenessBehaviour: LayoutData_ResponsivenessBehaviour.STACK
|
|
953
|
+
});
|
|
954
|
+
({
|
|
955
|
+
scaling: LayoutData_ImageScaling_Scaling.AUTO,
|
|
956
|
+
position: LayoutData_ImagePosition.CENTER
|
|
957
|
+
});
|
|
884
958
|
}
|
|
885
959
|
});
|
|
886
960
|
|
|
@@ -1179,6 +1253,7 @@ var init_plugin_html_enums = __esm({
|
|
|
1179
1253
|
HTMLData_Source = /* @__PURE__ */ ((HTMLData_Source2) => {
|
|
1180
1254
|
HTMLData_Source2["HTML"] = "HTML";
|
|
1181
1255
|
HTMLData_Source2["ADSENSE"] = "ADSENSE";
|
|
1256
|
+
HTMLData_Source2["AI"] = "AI";
|
|
1182
1257
|
HTMLData_Source2["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
1183
1258
|
return HTMLData_Source2;
|
|
1184
1259
|
})(HTMLData_Source || {});
|
|
@@ -1426,6 +1501,7 @@ var init_v1 = __esm({
|
|
|
1426
1501
|
init_node_caption();
|
|
1427
1502
|
init_node_code_block();
|
|
1428
1503
|
init_node_heading();
|
|
1504
|
+
init_node_layout_enums();
|
|
1429
1505
|
init_node_layout();
|
|
1430
1506
|
init_node_layout_cell();
|
|
1431
1507
|
init_node_list();
|
|
@@ -5825,7 +5901,7 @@ var init_defaults = __esm({
|
|
|
5825
5901
|
});
|
|
5826
5902
|
|
|
5827
5903
|
// ../../node_modules/@wix/ambassador-forms-v1-validation-result/build/es/types.impl.js
|
|
5828
|
-
var ErrorType, Format2, ValidationFormat2, ProductType2, PriceType2, FormatEnumFormat2, StringComponentType2, NodeType2, WidthType2, PluginContainerDataAlignment2, Type2, Target2, TextAlignment2, LineStyle2, Width2, Alignment2, ViewMode2, LayoutType2, Orientation2, Crop2, ThumbnailsAlignment2, GIFType2, Source2, Position2, MapType3, ViewRole2, VoteRole2, PollLayoutType2, PollLayoutDirection2, BackgroundType2, DecorationType2, FontType2, ImageStylesPosition2, AspectRatio2, Resizing2, Placement2, CardStylesType2, CardStylesAlignment2, CardStylesLayout2, AppType2, InitialExpandedItems2, Direction2, VerticalAlignment2, NullValue2, ImagePosition2, AlignmentEnumAlignment2, ImageFit2, NumberOfColumns2, FirstDayOfWeekEnumFirstDayOfWeek2, NumberComponentType2, BooleanComponentType2, ItemType2, PropertiesTypeEnum2, ComponentType2, WixFileComponentType2, UploadFileFormat2, PaymentComponentType2, SchedulingComponentType2, AppointmentFormat2, MultilineAddressComponentType2, DefaultCountryConfigType2, InputType2, EmailInfoTag2, PhoneInfoTag2, Tag2, OptInLevel2, ContactField2, FieldType2, DisplayFieldType2, FieldFieldType2, StringTypeFormatEnumFormat2, InputFieldStringComponentType2, InputFieldNumberComponentType2, InputFieldBooleanComponentType2, ArrayItemsItemType2, PropertiesTypePropertiesTypeEnum2, ArrayComponentType2, InputFieldWixFileComponentType2, InputFieldPaymentComponentType2, AddressComponentType2, ObjectArrayComponentType2, InputFieldSchedulingComponentType2, InputFieldInputType2, FormFieldContactInfoEmailInfoTag2, FormFieldContactInfoPhoneInfoTag2, AddressInfoTag2, ConfirmationLevel2, FormFieldContactInfoContactField2, DisplayFieldDisplayFieldType2, OverrideEntityType2, Kind2, SpamFilterProtectionLevel2, RequiredIndicator2, RequiredIndicatorPlacement2, UrlTargetEnumTarget2, SubmitSuccessAction2, ChangeableProperty2, OverrideEntityTypeEnumOverrideEntityType2, Operator2, ValidationMode, Feature, AscendPlan, ActionType;
|
|
5904
|
+
var ErrorType, Format2, ValidationFormat2, ProductType2, PriceType2, FormatEnumFormat2, StringComponentType2, NodeType2, WidthType2, PluginContainerDataAlignment2, Type2, Target2, TextAlignment2, LineStyle2, Width2, Alignment2, ViewMode2, LayoutType2, Orientation2, Crop2, ThumbnailsAlignment2, GIFType2, Source2, Position2, MapType3, ViewRole2, VoteRole2, PollLayoutType2, PollLayoutDirection2, BackgroundType2, DecorationType2, FontType2, ImageStylesPosition2, AspectRatio2, Resizing2, Placement2, CardStylesType2, CardStylesAlignment2, CardStylesLayout2, AppType2, InitialExpandedItems2, Direction2, VerticalAlignment2, NullValue2, Scaling2, LayoutDataImagePosition2, VerticalAlignmentAlignment2, ResponsivenessBehaviour2, ImagePosition2, AlignmentEnumAlignment2, ImageFit2, NumberOfColumns2, FirstDayOfWeekEnumFirstDayOfWeek2, NumberComponentType2, BooleanComponentType2, ItemType2, PropertiesTypeEnum2, ComponentType2, WixFileComponentType2, UploadFileFormat2, PaymentComponentType2, SchedulingComponentType2, AppointmentFormat2, MultilineAddressComponentType2, DefaultCountryConfigType2, InputType2, EmailInfoTag2, PhoneInfoTag2, Tag2, OptInLevel2, ContactField2, FieldType2, DisplayFieldType2, FieldFieldType2, StringTypeFormatEnumFormat2, InputFieldStringComponentType2, InputFieldNumberComponentType2, InputFieldBooleanComponentType2, ArrayItemsItemType2, PropertiesTypePropertiesTypeEnum2, ArrayComponentType2, InputFieldWixFileComponentType2, InputFieldPaymentComponentType2, AddressComponentType2, ObjectArrayComponentType2, InputFieldSchedulingComponentType2, InputFieldInputType2, FormFieldContactInfoEmailInfoTag2, FormFieldContactInfoPhoneInfoTag2, AddressInfoTag2, ConfirmationLevel2, FormFieldContactInfoContactField2, DisplayFieldDisplayFieldType2, OverrideEntityType2, Kind2, SpamFilterProtectionLevel2, RequiredIndicator2, RequiredIndicatorPlacement2, UrlTargetEnumTarget2, SubmitSuccessAction2, ChangeableProperty2, OverrideEntityTypeEnumOverrideEntityType2, Operator2, ValidationMode, Feature, AscendPlan, ActionType;
|
|
5829
5905
|
var init_types_impl2 = __esm({
|
|
5830
5906
|
"../../node_modules/@wix/ambassador-forms-v1-validation-result/build/es/types.impl.js"() {
|
|
5831
5907
|
(function(ErrorType2) {
|
|
@@ -6037,6 +6113,7 @@ var init_types_impl2 = __esm({
|
|
|
6037
6113
|
(function(Source5) {
|
|
6038
6114
|
Source5["HTML"] = "HTML";
|
|
6039
6115
|
Source5["ADSENSE"] = "ADSENSE";
|
|
6116
|
+
Source5["AI"] = "AI";
|
|
6040
6117
|
})(Source2 || (Source2 = {}));
|
|
6041
6118
|
(function(Position5) {
|
|
6042
6119
|
Position5["START"] = "START";
|
|
@@ -6143,10 +6220,35 @@ var init_types_impl2 = __esm({
|
|
|
6143
6220
|
(function(NullValue5) {
|
|
6144
6221
|
NullValue5["NULL_VALUE"] = "NULL_VALUE";
|
|
6145
6222
|
})(NullValue2 || (NullValue2 = {}));
|
|
6146
|
-
(function(
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6223
|
+
(function(Scaling5) {
|
|
6224
|
+
Scaling5["AUTO"] = "AUTO";
|
|
6225
|
+
Scaling5["CONTAIN"] = "CONTAIN";
|
|
6226
|
+
Scaling5["COVER"] = "COVER";
|
|
6227
|
+
})(Scaling2 || (Scaling2 = {}));
|
|
6228
|
+
(function(LayoutDataImagePosition4) {
|
|
6229
|
+
LayoutDataImagePosition4["CENTER"] = "CENTER";
|
|
6230
|
+
LayoutDataImagePosition4["CENTER_LEFT"] = "CENTER_LEFT";
|
|
6231
|
+
LayoutDataImagePosition4["CENTER_RIGHT"] = "CENTER_RIGHT";
|
|
6232
|
+
LayoutDataImagePosition4["TOP"] = "TOP";
|
|
6233
|
+
LayoutDataImagePosition4["TOP_LEFT"] = "TOP_LEFT";
|
|
6234
|
+
LayoutDataImagePosition4["TOP_RIGHT"] = "TOP_RIGHT";
|
|
6235
|
+
LayoutDataImagePosition4["BOTTOM"] = "BOTTOM";
|
|
6236
|
+
LayoutDataImagePosition4["BOTTOM_LEFT"] = "BOTTOM_LEFT";
|
|
6237
|
+
LayoutDataImagePosition4["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
|
|
6238
|
+
})(LayoutDataImagePosition2 || (LayoutDataImagePosition2 = {}));
|
|
6239
|
+
(function(VerticalAlignmentAlignment5) {
|
|
6240
|
+
VerticalAlignmentAlignment5["TOP"] = "TOP";
|
|
6241
|
+
VerticalAlignmentAlignment5["MIDDLE"] = "MIDDLE";
|
|
6242
|
+
VerticalAlignmentAlignment5["BOTTOM"] = "BOTTOM";
|
|
6243
|
+
})(VerticalAlignmentAlignment2 || (VerticalAlignmentAlignment2 = {}));
|
|
6244
|
+
(function(ResponsivenessBehaviour5) {
|
|
6245
|
+
ResponsivenessBehaviour5["STACK"] = "STACK";
|
|
6246
|
+
ResponsivenessBehaviour5["WRAP"] = "WRAP";
|
|
6247
|
+
})(ResponsivenessBehaviour2 || (ResponsivenessBehaviour2 = {}));
|
|
6248
|
+
(function(ImagePosition5) {
|
|
6249
|
+
ImagePosition5["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
|
|
6250
|
+
ImagePosition5["ABOVE"] = "ABOVE";
|
|
6251
|
+
ImagePosition5["BELOW"] = "BELOW";
|
|
6150
6252
|
})(ImagePosition2 || (ImagePosition2 = {}));
|
|
6151
6253
|
(function(AlignmentEnumAlignment4) {
|
|
6152
6254
|
AlignmentEnumAlignment4["UNKNOWN_ALIGNMENT"] = "UNKNOWN_ALIGNMENT";
|
|
@@ -20587,8 +20689,8 @@ var ANCHOR_LINK = "anchor-link";
|
|
|
20587
20689
|
|
|
20588
20690
|
// ../../node_modules/@wix/ricos/dist/es/plugin-link/statics/link-viewer-scss.js
|
|
20589
20691
|
var link_viewer_default = {
|
|
20590
|
-
"link": "
|
|
20591
|
-
"linkInViewer": "
|
|
20692
|
+
"link": "aTHQT",
|
|
20693
|
+
"linkInViewer": "Cywxl"};
|
|
20592
20694
|
|
|
20593
20695
|
// ../../node_modules/@wix/ricos/dist/es/plugin-link/nodeViewDecorators/anchor.js
|
|
20594
20696
|
var decorator = (anchorDecoration, element) => {
|
|
@@ -24384,10 +24486,6 @@ function useExternalData() {
|
|
|
24384
24486
|
}
|
|
24385
24487
|
return context;
|
|
24386
24488
|
}
|
|
24387
|
-
var FieldActionsContext = /* @__PURE__ */ createContext({});
|
|
24388
|
-
function useFieldActions() {
|
|
24389
|
-
return useContext(FieldActionsContext);
|
|
24390
|
-
}
|
|
24391
24489
|
var FormFieldsContext = /* @__PURE__ */ createContext(void 0);
|
|
24392
24490
|
function useFormFields() {
|
|
24393
24491
|
const context = useContext(FormFieldsContext);
|
|
@@ -24585,6 +24683,10 @@ var NestedFormField = (_ref) => {
|
|
|
24585
24683
|
|
|
24586
24684
|
// ../form-fields/dist/esm/ui/form/components/form/submit-button-field.js
|
|
24587
24685
|
var import_extends4 = __toESM(require_extends());
|
|
24686
|
+
var FieldActionsContext = /* @__PURE__ */ createContext({});
|
|
24687
|
+
function useFieldActions() {
|
|
24688
|
+
return useContext(FieldActionsContext);
|
|
24689
|
+
}
|
|
24588
24690
|
|
|
24589
24691
|
// ../form-fields/dist/esm/fields/submit-button/submit-button/utils.js
|
|
24590
24692
|
var getCurrentStep = (form, fieldId) => {
|
|
@@ -24753,11 +24855,17 @@ var createFormFields = (_ref) => {
|
|
|
24753
24855
|
onFieldChange,
|
|
24754
24856
|
FieldLayout,
|
|
24755
24857
|
formSchema,
|
|
24756
|
-
validateFields: validateFields2
|
|
24858
|
+
validateFields: validateFields2,
|
|
24859
|
+
fields,
|
|
24860
|
+
fieldActions
|
|
24757
24861
|
} = _ref;
|
|
24758
24862
|
return form.fields.map((formField) => {
|
|
24759
24863
|
const component = /* @__PURE__ */ React32__default.createElement(FormContext.Provider, {
|
|
24760
24864
|
value: formSchema
|
|
24865
|
+
}, /* @__PURE__ */ React32__default.createElement(FormFieldsContext.Provider, {
|
|
24866
|
+
value: fields
|
|
24867
|
+
}, /* @__PURE__ */ React32__default.createElement(FieldActionsContext.Provider, {
|
|
24868
|
+
value: fieldActions
|
|
24761
24869
|
}, /* @__PURE__ */ React32__default.createElement(FieldValidationContext.Provider, {
|
|
24762
24870
|
value: {
|
|
24763
24871
|
validateFields: validateFields2
|
|
@@ -24769,7 +24877,7 @@ var createFormFields = (_ref) => {
|
|
|
24769
24877
|
errors,
|
|
24770
24878
|
onFieldChange,
|
|
24771
24879
|
FieldLayout
|
|
24772
|
-
})));
|
|
24880
|
+
})))));
|
|
24773
24881
|
return {
|
|
24774
24882
|
id: formField.id,
|
|
24775
24883
|
fieldType: formField.fieldType,
|
|
@@ -24950,7 +25058,9 @@ var FormRoot = (_ref) => {
|
|
|
24950
25058
|
onFieldChange,
|
|
24951
25059
|
errors,
|
|
24952
25060
|
formSchema,
|
|
24953
|
-
validateFields: validateFields2
|
|
25061
|
+
validateFields: validateFields2,
|
|
25062
|
+
fields,
|
|
25063
|
+
fieldActions
|
|
24954
25064
|
} = _ref;
|
|
24955
25065
|
const {
|
|
24956
25066
|
isRTL
|
|
@@ -24962,7 +25072,9 @@ var FormRoot = (_ref) => {
|
|
|
24962
25072
|
errors,
|
|
24963
25073
|
FieldLayout: DefaultFieldLayout,
|
|
24964
25074
|
formSchema,
|
|
24965
|
-
validateFields: validateFields2
|
|
25075
|
+
validateFields: validateFields2,
|
|
25076
|
+
fields,
|
|
25077
|
+
fieldActions
|
|
24966
25078
|
});
|
|
24967
25079
|
return /* @__PURE__ */ React32__default.createElement(Grid, {
|
|
24968
25080
|
isRTL,
|
|
@@ -25267,6 +25379,7 @@ var Source3;
|
|
|
25267
25379
|
(function(Source5) {
|
|
25268
25380
|
Source5["HTML"] = "HTML";
|
|
25269
25381
|
Source5["ADSENSE"] = "ADSENSE";
|
|
25382
|
+
Source5["AI"] = "AI";
|
|
25270
25383
|
})(Source3 || (Source3 = {}));
|
|
25271
25384
|
var Position3;
|
|
25272
25385
|
(function(Position5) {
|
|
@@ -25394,6 +25507,35 @@ var NullValue3;
|
|
|
25394
25507
|
(function(NullValue5) {
|
|
25395
25508
|
NullValue5["NULL_VALUE"] = "NULL_VALUE";
|
|
25396
25509
|
})(NullValue3 || (NullValue3 = {}));
|
|
25510
|
+
var Scaling3;
|
|
25511
|
+
(function(Scaling5) {
|
|
25512
|
+
Scaling5["AUTO"] = "AUTO";
|
|
25513
|
+
Scaling5["CONTAIN"] = "CONTAIN";
|
|
25514
|
+
Scaling5["COVER"] = "COVER";
|
|
25515
|
+
})(Scaling3 || (Scaling3 = {}));
|
|
25516
|
+
var ImagePosition3;
|
|
25517
|
+
(function(ImagePosition5) {
|
|
25518
|
+
ImagePosition5["CENTER"] = "CENTER";
|
|
25519
|
+
ImagePosition5["CENTER_LEFT"] = "CENTER_LEFT";
|
|
25520
|
+
ImagePosition5["CENTER_RIGHT"] = "CENTER_RIGHT";
|
|
25521
|
+
ImagePosition5["TOP"] = "TOP";
|
|
25522
|
+
ImagePosition5["TOP_LEFT"] = "TOP_LEFT";
|
|
25523
|
+
ImagePosition5["TOP_RIGHT"] = "TOP_RIGHT";
|
|
25524
|
+
ImagePosition5["BOTTOM"] = "BOTTOM";
|
|
25525
|
+
ImagePosition5["BOTTOM_LEFT"] = "BOTTOM_LEFT";
|
|
25526
|
+
ImagePosition5["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
|
|
25527
|
+
})(ImagePosition3 || (ImagePosition3 = {}));
|
|
25528
|
+
var VerticalAlignmentAlignment3;
|
|
25529
|
+
(function(VerticalAlignmentAlignment5) {
|
|
25530
|
+
VerticalAlignmentAlignment5["TOP"] = "TOP";
|
|
25531
|
+
VerticalAlignmentAlignment5["MIDDLE"] = "MIDDLE";
|
|
25532
|
+
VerticalAlignmentAlignment5["BOTTOM"] = "BOTTOM";
|
|
25533
|
+
})(VerticalAlignmentAlignment3 || (VerticalAlignmentAlignment3 = {}));
|
|
25534
|
+
var ResponsivenessBehaviour3;
|
|
25535
|
+
(function(ResponsivenessBehaviour5) {
|
|
25536
|
+
ResponsivenessBehaviour5["STACK"] = "STACK";
|
|
25537
|
+
ResponsivenessBehaviour5["WRAP"] = "WRAP";
|
|
25538
|
+
})(ResponsivenessBehaviour3 || (ResponsivenessBehaviour3 = {}));
|
|
25397
25539
|
var Target3;
|
|
25398
25540
|
(function(Target5) {
|
|
25399
25541
|
Target5["UNKNOWN_TARGET"] = "UNKNOWN_TARGET";
|
|
@@ -25605,6 +25747,7 @@ var Source4;
|
|
|
25605
25747
|
(function(Source5) {
|
|
25606
25748
|
Source5["HTML"] = "HTML";
|
|
25607
25749
|
Source5["ADSENSE"] = "ADSENSE";
|
|
25750
|
+
Source5["AI"] = "AI";
|
|
25608
25751
|
})(Source4 || (Source4 = {}));
|
|
25609
25752
|
var Position4;
|
|
25610
25753
|
(function(Position5) {
|
|
@@ -25732,12 +25875,41 @@ var NullValue4;
|
|
|
25732
25875
|
(function(NullValue5) {
|
|
25733
25876
|
NullValue5["NULL_VALUE"] = "NULL_VALUE";
|
|
25734
25877
|
})(NullValue4 || (NullValue4 = {}));
|
|
25735
|
-
var
|
|
25736
|
-
(function(
|
|
25737
|
-
|
|
25738
|
-
|
|
25739
|
-
|
|
25740
|
-
})(
|
|
25878
|
+
var Scaling4;
|
|
25879
|
+
(function(Scaling5) {
|
|
25880
|
+
Scaling5["AUTO"] = "AUTO";
|
|
25881
|
+
Scaling5["CONTAIN"] = "CONTAIN";
|
|
25882
|
+
Scaling5["COVER"] = "COVER";
|
|
25883
|
+
})(Scaling4 || (Scaling4 = {}));
|
|
25884
|
+
var LayoutDataImagePosition3;
|
|
25885
|
+
(function(LayoutDataImagePosition4) {
|
|
25886
|
+
LayoutDataImagePosition4["CENTER"] = "CENTER";
|
|
25887
|
+
LayoutDataImagePosition4["CENTER_LEFT"] = "CENTER_LEFT";
|
|
25888
|
+
LayoutDataImagePosition4["CENTER_RIGHT"] = "CENTER_RIGHT";
|
|
25889
|
+
LayoutDataImagePosition4["TOP"] = "TOP";
|
|
25890
|
+
LayoutDataImagePosition4["TOP_LEFT"] = "TOP_LEFT";
|
|
25891
|
+
LayoutDataImagePosition4["TOP_RIGHT"] = "TOP_RIGHT";
|
|
25892
|
+
LayoutDataImagePosition4["BOTTOM"] = "BOTTOM";
|
|
25893
|
+
LayoutDataImagePosition4["BOTTOM_LEFT"] = "BOTTOM_LEFT";
|
|
25894
|
+
LayoutDataImagePosition4["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
|
|
25895
|
+
})(LayoutDataImagePosition3 || (LayoutDataImagePosition3 = {}));
|
|
25896
|
+
var VerticalAlignmentAlignment4;
|
|
25897
|
+
(function(VerticalAlignmentAlignment5) {
|
|
25898
|
+
VerticalAlignmentAlignment5["TOP"] = "TOP";
|
|
25899
|
+
VerticalAlignmentAlignment5["MIDDLE"] = "MIDDLE";
|
|
25900
|
+
VerticalAlignmentAlignment5["BOTTOM"] = "BOTTOM";
|
|
25901
|
+
})(VerticalAlignmentAlignment4 || (VerticalAlignmentAlignment4 = {}));
|
|
25902
|
+
var ResponsivenessBehaviour4;
|
|
25903
|
+
(function(ResponsivenessBehaviour5) {
|
|
25904
|
+
ResponsivenessBehaviour5["STACK"] = "STACK";
|
|
25905
|
+
ResponsivenessBehaviour5["WRAP"] = "WRAP";
|
|
25906
|
+
})(ResponsivenessBehaviour4 || (ResponsivenessBehaviour4 = {}));
|
|
25907
|
+
var ImagePosition4;
|
|
25908
|
+
(function(ImagePosition5) {
|
|
25909
|
+
ImagePosition5["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
|
|
25910
|
+
ImagePosition5["ABOVE"] = "ABOVE";
|
|
25911
|
+
ImagePosition5["BELOW"] = "BELOW";
|
|
25912
|
+
})(ImagePosition4 || (ImagePosition4 = {}));
|
|
25741
25913
|
var AlignmentEnumAlignment3;
|
|
25742
25914
|
(function(AlignmentEnumAlignment4) {
|
|
25743
25915
|
AlignmentEnumAlignment4["UNKNOWN_ALIGNMENT"] = "UNKNOWN_ALIGNMENT";
|
|
@@ -29491,7 +29663,8 @@ var FormRoot2 = ({
|
|
|
29491
29663
|
config,
|
|
29492
29664
|
breakpoint,
|
|
29493
29665
|
onStatusChange,
|
|
29494
|
-
validationMode
|
|
29666
|
+
validationMode,
|
|
29667
|
+
fields
|
|
29495
29668
|
}) => {
|
|
29496
29669
|
const formWithOverrides = useMemo(() => applyAllOverrides(unprocessedForm, unprocessedValues, overrides), [unprocessedForm, unprocessedValues, overrides]);
|
|
29497
29670
|
const formId = formWithOverrides.id;
|
|
@@ -29612,18 +29785,14 @@ var FormRoot2 = ({
|
|
|
29612
29785
|
return null;
|
|
29613
29786
|
}
|
|
29614
29787
|
return React32__default.createElement(
|
|
29615
|
-
|
|
29616
|
-
{
|
|
29788
|
+
FormStatusProvider,
|
|
29789
|
+
{ onStatusChange },
|
|
29617
29790
|
React32__default.createElement(
|
|
29618
|
-
|
|
29619
|
-
{
|
|
29620
|
-
React32__default.createElement(
|
|
29621
|
-
|
|
29622
|
-
|
|
29623
|
-
React32__default.createElement(Form, { formSchema: formWithOverrides, form: currentView, values: normalizedValues, onFieldChange, errors, dataHook: DATA_HOOKS.FORM_ROOT, validateFields: handleFieldValidation }),
|
|
29624
|
-
React32__default.createElement(StepTitleA11y, { total: formWithOverrides.steps?.length, index: currentStep }),
|
|
29625
|
-
React32__default.createElement(SubmitStatusMessage, null)
|
|
29626
|
-
)
|
|
29791
|
+
"div",
|
|
29792
|
+
{ "data-hook": DATA_HOOKS.FORM_ROOT },
|
|
29793
|
+
React32__default.createElement(Form, { formSchema: formWithOverrides, form: currentView, values: normalizedValues, onFieldChange, errors, dataHook: DATA_HOOKS.FORM_ROOT, validateFields: handleFieldValidation, fields, fieldActions }),
|
|
29794
|
+
React32__default.createElement(StepTitleA11y, { total: formWithOverrides.steps?.length, index: currentStep }),
|
|
29795
|
+
React32__default.createElement(SubmitStatusMessage, null)
|
|
29627
29796
|
)
|
|
29628
29797
|
);
|
|
29629
29798
|
};
|
|
@@ -29664,7 +29833,7 @@ var useFormBi = (form, bi, biFormFillSessionId) => {
|
|
|
29664
29833
|
};
|
|
29665
29834
|
|
|
29666
29835
|
// ../form-viewer/dist/esm/components/root/form-viewer-provider.js
|
|
29667
|
-
var FormViewerProvider = ({ i18n: i18n2, bi, biFormFillSessionId, form, isMobile, isEditor, isComposer, isRTL, compId, locale, regionalFormat, externalData,
|
|
29836
|
+
var FormViewerProvider = ({ i18n: i18n2, bi, biFormFillSessionId, form, isMobile, isEditor, isComposer, isRTL, compId, locale, regionalFormat, externalData, forcedState, instance, children, httpClient, panorama, experiments, translationNamespace, currency, userData, WixRicosViewer, addressTemplates, atlasBaseUrl, fieldInitialData, enableAnimations }) => {
|
|
29668
29837
|
const translations = useMemo(() => ({
|
|
29669
29838
|
t: i18n2.getFixedT(locale, translationNamespace),
|
|
29670
29839
|
i18n: i18n2
|
|
@@ -29699,58 +29868,54 @@ var FormViewerProvider = ({ i18n: i18n2, bi, biFormFillSessionId, form, isMobile
|
|
|
29699
29868
|
]);
|
|
29700
29869
|
const forcedViewState = useMemo(() => forcedState ?? [], [forcedState]);
|
|
29701
29870
|
return React32__default.createElement(
|
|
29702
|
-
|
|
29703
|
-
{ value:
|
|
29871
|
+
HttpClientContext.Provider,
|
|
29872
|
+
{ value: { httpClient } },
|
|
29704
29873
|
React32__default.createElement(
|
|
29705
|
-
|
|
29706
|
-
{ value: {
|
|
29874
|
+
PanoramaContext.Provider,
|
|
29875
|
+
{ value: { panorama } },
|
|
29707
29876
|
React32__default.createElement(
|
|
29708
|
-
|
|
29709
|
-
{ value:
|
|
29877
|
+
TranslationContext.Provider,
|
|
29878
|
+
{ value: translations },
|
|
29710
29879
|
React32__default.createElement(
|
|
29711
|
-
|
|
29712
|
-
|
|
29880
|
+
ScrollProvider,
|
|
29881
|
+
null,
|
|
29713
29882
|
React32__default.createElement(
|
|
29714
|
-
|
|
29883
|
+
FocusedFieldProvider,
|
|
29715
29884
|
null,
|
|
29716
29885
|
React32__default.createElement(
|
|
29717
|
-
|
|
29718
|
-
|
|
29886
|
+
FieldInitialDataContext.Provider,
|
|
29887
|
+
{ value: fieldInitialData },
|
|
29719
29888
|
React32__default.createElement(
|
|
29720
|
-
|
|
29721
|
-
{ value:
|
|
29889
|
+
BiContext.Provider,
|
|
29890
|
+
{ value: formBi },
|
|
29722
29891
|
React32__default.createElement(
|
|
29723
|
-
|
|
29724
|
-
{
|
|
29892
|
+
ExternalDataProvider,
|
|
29893
|
+
{ externalData },
|
|
29725
29894
|
React32__default.createElement(
|
|
29726
|
-
|
|
29727
|
-
{
|
|
29895
|
+
ConfigContext.Provider,
|
|
29896
|
+
{ value: config },
|
|
29728
29897
|
React32__default.createElement(
|
|
29729
|
-
|
|
29730
|
-
{ value:
|
|
29898
|
+
ForcedStateContext.Provider,
|
|
29899
|
+
{ value: forcedViewState },
|
|
29731
29900
|
React32__default.createElement(
|
|
29732
|
-
|
|
29733
|
-
{ value:
|
|
29901
|
+
FormContext.Provider,
|
|
29902
|
+
{ value: form },
|
|
29734
29903
|
React32__default.createElement(
|
|
29735
|
-
|
|
29736
|
-
{ value:
|
|
29904
|
+
AddressFormsContext.Provider,
|
|
29905
|
+
{ value: {
|
|
29906
|
+
getCountryAddressForm: (country) => getAddressForm(addressTemplates, country),
|
|
29907
|
+
addressTemplates
|
|
29908
|
+
} },
|
|
29737
29909
|
React32__default.createElement(
|
|
29738
|
-
|
|
29739
|
-
{ value:
|
|
29740
|
-
getCountryAddressForm: (country) => getAddressForm(addressTemplates, country),
|
|
29741
|
-
addressTemplates
|
|
29742
|
-
} },
|
|
29910
|
+
ExperimentsContext.Provider,
|
|
29911
|
+
{ value: experiments },
|
|
29743
29912
|
React32__default.createElement(
|
|
29744
|
-
|
|
29745
|
-
|
|
29913
|
+
EventsProvider,
|
|
29914
|
+
null,
|
|
29746
29915
|
React32__default.createElement(
|
|
29747
|
-
|
|
29748
|
-
|
|
29749
|
-
React32__default.createElement(
|
|
29750
|
-
WixRicosViewerContext.Provider,
|
|
29751
|
-
{ value: WixRicosViewer },
|
|
29752
|
-
React32__default.createElement(SubmitStatusProvider, null, children)
|
|
29753
|
-
)
|
|
29916
|
+
WixRicosViewerContext.Provider,
|
|
29917
|
+
{ value: WixRicosViewer },
|
|
29918
|
+
React32__default.createElement(SubmitStatusProvider, null, children)
|
|
29754
29919
|
)
|
|
29755
29920
|
)
|
|
29756
29921
|
)
|
|
@@ -29822,7 +29987,7 @@ var FormViewerStatic = forwardRef(({ form, i18n: i18n2, isMobile, isRTL, config
|
|
|
29822
29987
|
React32__default.createElement(
|
|
29823
29988
|
"fieldset",
|
|
29824
29989
|
{ className: form_viewer_static_module_default.fieldsetReset, disabled: readOnly || isDisabled },
|
|
29825
|
-
React32__default.createElement(FormRoot2, { form: formWithValidSteps, forwardedRef, config, breakpoint, ...rest })
|
|
29990
|
+
React32__default.createElement(FormRoot2, { form: formWithValidSteps, fields, forwardedRef, config, breakpoint, ...rest })
|
|
29826
29991
|
)
|
|
29827
29992
|
)
|
|
29828
29993
|
)
|