@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 CHANGED
@@ -65,7 +65,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
65
65
  ));
66
66
 
67
67
  // ../../node_modules/@wix/ambassador-forms-v4-form/build/es/types.impl.js
68
- 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;
68
+ 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;
69
69
  var init_types_impl = __esm({
70
70
  "../../node_modules/@wix/ambassador-forms-v4-form/build/es/types.impl.js"() {
71
71
  (function(Format6) {
@@ -248,6 +248,7 @@ var init_types_impl = __esm({
248
248
  (function(Source5) {
249
249
  Source5["HTML"] = "HTML";
250
250
  Source5["ADSENSE"] = "ADSENSE";
251
+ Source5["AI"] = "AI";
251
252
  })(Source || (Source = {}));
252
253
  (function(Position5) {
253
254
  Position5["START"] = "START";
@@ -354,10 +355,10 @@ var init_types_impl = __esm({
354
355
  (function(NullValue5) {
355
356
  NullValue5["NULL_VALUE"] = "NULL_VALUE";
356
357
  })(NullValue || (NullValue = {}));
357
- (function(ImagePosition4) {
358
- ImagePosition4["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
359
- ImagePosition4["ABOVE"] = "ABOVE";
360
- ImagePosition4["BELOW"] = "BELOW";
358
+ (function(ImagePosition5) {
359
+ ImagePosition5["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
360
+ ImagePosition5["ABOVE"] = "ABOVE";
361
+ ImagePosition5["BELOW"] = "BELOW";
361
362
  })(ImagePosition || (ImagePosition = {}));
362
363
  (function(AlignmentEnumAlignment4) {
363
364
  AlignmentEnumAlignment4["UNKNOWN_ALIGNMENT"] = "UNKNOWN_ALIGNMENT";
@@ -725,6 +726,31 @@ var init_types_impl = __esm({
725
726
  WebhookIdentityType3["WIX_USER"] = "WIX_USER";
726
727
  WebhookIdentityType3["APP"] = "APP";
727
728
  })(WebhookIdentityType || (WebhookIdentityType = {}));
729
+ (function(Scaling5) {
730
+ Scaling5["AUTO"] = "AUTO";
731
+ Scaling5["CONTAIN"] = "CONTAIN";
732
+ Scaling5["COVER"] = "COVER";
733
+ })(Scaling || (Scaling = {}));
734
+ (function(LayoutDataImagePosition4) {
735
+ LayoutDataImagePosition4["CENTER"] = "CENTER";
736
+ LayoutDataImagePosition4["CENTER_LEFT"] = "CENTER_LEFT";
737
+ LayoutDataImagePosition4["CENTER_RIGHT"] = "CENTER_RIGHT";
738
+ LayoutDataImagePosition4["TOP"] = "TOP";
739
+ LayoutDataImagePosition4["TOP_LEFT"] = "TOP_LEFT";
740
+ LayoutDataImagePosition4["TOP_RIGHT"] = "TOP_RIGHT";
741
+ LayoutDataImagePosition4["BOTTOM"] = "BOTTOM";
742
+ LayoutDataImagePosition4["BOTTOM_LEFT"] = "BOTTOM_LEFT";
743
+ LayoutDataImagePosition4["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
744
+ })(LayoutDataImagePosition || (LayoutDataImagePosition = {}));
745
+ (function(VerticalAlignmentAlignment5) {
746
+ VerticalAlignmentAlignment5["TOP"] = "TOP";
747
+ VerticalAlignmentAlignment5["MIDDLE"] = "MIDDLE";
748
+ VerticalAlignmentAlignment5["BOTTOM"] = "BOTTOM";
749
+ })(VerticalAlignmentAlignment || (VerticalAlignmentAlignment = {}));
750
+ (function(ResponsivenessBehaviour5) {
751
+ ResponsivenessBehaviour5["STACK"] = "STACK";
752
+ ResponsivenessBehaviour5["WRAP"] = "WRAP";
753
+ })(ResponsivenessBehaviour || (ResponsivenessBehaviour = {}));
728
754
  (function(Fieldset2) {
729
755
  Fieldset2["UNKNOWN"] = "UNKNOWN";
730
756
  Fieldset2["NESTED_FORMS"] = "NESTED_FORMS";
@@ -904,9 +930,57 @@ var init_node_heading = __esm({
904
930
  }
905
931
  });
906
932
 
907
- // ../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/node_layout.js
933
+ // ../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/node_layout.enums.js
934
+ var LayoutData_ImagePosition, LayoutData_ResponsivenessBehaviour, LayoutData_VerticalAlignment_Alignment, LayoutData_ImageScaling_Scaling;
935
+ var init_node_layout_enums = __esm({
936
+ "../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/node_layout.enums.js"() {
937
+ LayoutData_ImagePosition = /* @__PURE__ */ ((LayoutData_ImagePosition2) => {
938
+ LayoutData_ImagePosition2["CENTER"] = "CENTER";
939
+ LayoutData_ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
940
+ LayoutData_ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
941
+ LayoutData_ImagePosition2["TOP"] = "TOP";
942
+ LayoutData_ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
943
+ LayoutData_ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
944
+ LayoutData_ImagePosition2["BOTTOM"] = "BOTTOM";
945
+ LayoutData_ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
946
+ LayoutData_ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
947
+ LayoutData_ImagePosition2["UNRECOGNIZED"] = "UNRECOGNIZED";
948
+ return LayoutData_ImagePosition2;
949
+ })(LayoutData_ImagePosition || {});
950
+ LayoutData_ResponsivenessBehaviour = /* @__PURE__ */ ((LayoutData_ResponsivenessBehaviour2) => {
951
+ LayoutData_ResponsivenessBehaviour2["STACK"] = "STACK";
952
+ LayoutData_ResponsivenessBehaviour2["WRAP"] = "WRAP";
953
+ LayoutData_ResponsivenessBehaviour2["UNRECOGNIZED"] = "UNRECOGNIZED";
954
+ return LayoutData_ResponsivenessBehaviour2;
955
+ })(LayoutData_ResponsivenessBehaviour || {});
956
+ LayoutData_VerticalAlignment_Alignment = /* @__PURE__ */ ((LayoutData_VerticalAlignment_Alignment2) => {
957
+ LayoutData_VerticalAlignment_Alignment2["TOP"] = "TOP";
958
+ LayoutData_VerticalAlignment_Alignment2["MIDDLE"] = "MIDDLE";
959
+ LayoutData_VerticalAlignment_Alignment2["BOTTOM"] = "BOTTOM";
960
+ LayoutData_VerticalAlignment_Alignment2["UNRECOGNIZED"] = "UNRECOGNIZED";
961
+ return LayoutData_VerticalAlignment_Alignment2;
962
+ })(LayoutData_VerticalAlignment_Alignment || {});
963
+ LayoutData_ImageScaling_Scaling = /* @__PURE__ */ ((LayoutData_ImageScaling_Scaling2) => {
964
+ LayoutData_ImageScaling_Scaling2["AUTO"] = "AUTO";
965
+ LayoutData_ImageScaling_Scaling2["CONTAIN"] = "CONTAIN";
966
+ LayoutData_ImageScaling_Scaling2["COVER"] = "COVER";
967
+ LayoutData_ImageScaling_Scaling2["UNRECOGNIZED"] = "UNRECOGNIZED";
968
+ return LayoutData_ImageScaling_Scaling2;
969
+ })(LayoutData_ImageScaling_Scaling || {});
970
+ }
971
+ });
908
972
  var init_node_layout = __esm({
909
973
  "../../node_modules/@wix/ricos/dist/es/ricos-schema/legacy/wix/rich_content/v1/node_layout.js"() {
974
+ init_node_layout_enums();
975
+ ({
976
+ cellPadding: 0,
977
+ cellVerticalAlignment: LayoutData_VerticalAlignment_Alignment.TOP,
978
+ responsivenessBehaviour: LayoutData_ResponsivenessBehaviour.STACK
979
+ });
980
+ ({
981
+ scaling: LayoutData_ImageScaling_Scaling.AUTO,
982
+ position: LayoutData_ImagePosition.CENTER
983
+ });
910
984
  }
911
985
  });
912
986
 
@@ -1205,6 +1279,7 @@ var init_plugin_html_enums = __esm({
1205
1279
  HTMLData_Source = /* @__PURE__ */ ((HTMLData_Source2) => {
1206
1280
  HTMLData_Source2["HTML"] = "HTML";
1207
1281
  HTMLData_Source2["ADSENSE"] = "ADSENSE";
1282
+ HTMLData_Source2["AI"] = "AI";
1208
1283
  HTMLData_Source2["UNRECOGNIZED"] = "UNRECOGNIZED";
1209
1284
  return HTMLData_Source2;
1210
1285
  })(HTMLData_Source || {});
@@ -1452,6 +1527,7 @@ var init_v1 = __esm({
1452
1527
  init_node_caption();
1453
1528
  init_node_code_block();
1454
1529
  init_node_heading();
1530
+ init_node_layout_enums();
1455
1531
  init_node_layout();
1456
1532
  init_node_layout_cell();
1457
1533
  init_node_list();
@@ -5851,7 +5927,7 @@ var init_defaults = __esm({
5851
5927
  });
5852
5928
 
5853
5929
  // ../../node_modules/@wix/ambassador-forms-v1-validation-result/build/es/types.impl.js
5854
- 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;
5930
+ 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;
5855
5931
  var init_types_impl2 = __esm({
5856
5932
  "../../node_modules/@wix/ambassador-forms-v1-validation-result/build/es/types.impl.js"() {
5857
5933
  (function(ErrorType2) {
@@ -6063,6 +6139,7 @@ var init_types_impl2 = __esm({
6063
6139
  (function(Source5) {
6064
6140
  Source5["HTML"] = "HTML";
6065
6141
  Source5["ADSENSE"] = "ADSENSE";
6142
+ Source5["AI"] = "AI";
6066
6143
  })(Source2 || (Source2 = {}));
6067
6144
  (function(Position5) {
6068
6145
  Position5["START"] = "START";
@@ -6169,10 +6246,35 @@ var init_types_impl2 = __esm({
6169
6246
  (function(NullValue5) {
6170
6247
  NullValue5["NULL_VALUE"] = "NULL_VALUE";
6171
6248
  })(NullValue2 || (NullValue2 = {}));
6172
- (function(ImagePosition4) {
6173
- ImagePosition4["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
6174
- ImagePosition4["ABOVE"] = "ABOVE";
6175
- ImagePosition4["BELOW"] = "BELOW";
6249
+ (function(Scaling5) {
6250
+ Scaling5["AUTO"] = "AUTO";
6251
+ Scaling5["CONTAIN"] = "CONTAIN";
6252
+ Scaling5["COVER"] = "COVER";
6253
+ })(Scaling2 || (Scaling2 = {}));
6254
+ (function(LayoutDataImagePosition4) {
6255
+ LayoutDataImagePosition4["CENTER"] = "CENTER";
6256
+ LayoutDataImagePosition4["CENTER_LEFT"] = "CENTER_LEFT";
6257
+ LayoutDataImagePosition4["CENTER_RIGHT"] = "CENTER_RIGHT";
6258
+ LayoutDataImagePosition4["TOP"] = "TOP";
6259
+ LayoutDataImagePosition4["TOP_LEFT"] = "TOP_LEFT";
6260
+ LayoutDataImagePosition4["TOP_RIGHT"] = "TOP_RIGHT";
6261
+ LayoutDataImagePosition4["BOTTOM"] = "BOTTOM";
6262
+ LayoutDataImagePosition4["BOTTOM_LEFT"] = "BOTTOM_LEFT";
6263
+ LayoutDataImagePosition4["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
6264
+ })(LayoutDataImagePosition2 || (LayoutDataImagePosition2 = {}));
6265
+ (function(VerticalAlignmentAlignment5) {
6266
+ VerticalAlignmentAlignment5["TOP"] = "TOP";
6267
+ VerticalAlignmentAlignment5["MIDDLE"] = "MIDDLE";
6268
+ VerticalAlignmentAlignment5["BOTTOM"] = "BOTTOM";
6269
+ })(VerticalAlignmentAlignment2 || (VerticalAlignmentAlignment2 = {}));
6270
+ (function(ResponsivenessBehaviour5) {
6271
+ ResponsivenessBehaviour5["STACK"] = "STACK";
6272
+ ResponsivenessBehaviour5["WRAP"] = "WRAP";
6273
+ })(ResponsivenessBehaviour2 || (ResponsivenessBehaviour2 = {}));
6274
+ (function(ImagePosition5) {
6275
+ ImagePosition5["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
6276
+ ImagePosition5["ABOVE"] = "ABOVE";
6277
+ ImagePosition5["BELOW"] = "BELOW";
6176
6278
  })(ImagePosition2 || (ImagePosition2 = {}));
6177
6279
  (function(AlignmentEnumAlignment4) {
6178
6280
  AlignmentEnumAlignment4["UNKNOWN_ALIGNMENT"] = "UNKNOWN_ALIGNMENT";
@@ -20613,8 +20715,8 @@ var ANCHOR_LINK = "anchor-link";
20613
20715
 
20614
20716
  // ../../node_modules/@wix/ricos/dist/es/plugin-link/statics/link-viewer-scss.js
20615
20717
  var link_viewer_default = {
20616
- "link": "WUCMP",
20617
- "linkInViewer": "GjqyF"};
20718
+ "link": "aTHQT",
20719
+ "linkInViewer": "Cywxl"};
20618
20720
 
20619
20721
  // ../../node_modules/@wix/ricos/dist/es/plugin-link/nodeViewDecorators/anchor.js
20620
20722
  var decorator = (anchorDecoration, element) => {
@@ -24410,10 +24512,6 @@ function useExternalData() {
24410
24512
  }
24411
24513
  return context;
24412
24514
  }
24413
- var FieldActionsContext = /* @__PURE__ */ React32.createContext({});
24414
- function useFieldActions() {
24415
- return React32.useContext(FieldActionsContext);
24416
- }
24417
24515
  var FormFieldsContext = /* @__PURE__ */ React32.createContext(void 0);
24418
24516
  function useFormFields() {
24419
24517
  const context = React32.useContext(FormFieldsContext);
@@ -24611,6 +24709,10 @@ var NestedFormField = (_ref) => {
24611
24709
 
24612
24710
  // ../form-fields/dist/esm/ui/form/components/form/submit-button-field.js
24613
24711
  var import_extends4 = __toESM(require_extends());
24712
+ var FieldActionsContext = /* @__PURE__ */ React32.createContext({});
24713
+ function useFieldActions() {
24714
+ return React32.useContext(FieldActionsContext);
24715
+ }
24614
24716
 
24615
24717
  // ../form-fields/dist/esm/fields/submit-button/submit-button/utils.js
24616
24718
  var getCurrentStep = (form, fieldId) => {
@@ -24779,11 +24881,17 @@ var createFormFields = (_ref) => {
24779
24881
  onFieldChange,
24780
24882
  FieldLayout,
24781
24883
  formSchema,
24782
- validateFields: validateFields2
24884
+ validateFields: validateFields2,
24885
+ fields,
24886
+ fieldActions
24783
24887
  } = _ref;
24784
24888
  return form.fields.map((formField) => {
24785
24889
  const component = /* @__PURE__ */ React32__namespace.default.createElement(FormContext.Provider, {
24786
24890
  value: formSchema
24891
+ }, /* @__PURE__ */ React32__namespace.default.createElement(FormFieldsContext.Provider, {
24892
+ value: fields
24893
+ }, /* @__PURE__ */ React32__namespace.default.createElement(FieldActionsContext.Provider, {
24894
+ value: fieldActions
24787
24895
  }, /* @__PURE__ */ React32__namespace.default.createElement(FieldValidationContext.Provider, {
24788
24896
  value: {
24789
24897
  validateFields: validateFields2
@@ -24795,7 +24903,7 @@ var createFormFields = (_ref) => {
24795
24903
  errors,
24796
24904
  onFieldChange,
24797
24905
  FieldLayout
24798
- })));
24906
+ })))));
24799
24907
  return {
24800
24908
  id: formField.id,
24801
24909
  fieldType: formField.fieldType,
@@ -24976,7 +25084,9 @@ var FormRoot = (_ref) => {
24976
25084
  onFieldChange,
24977
25085
  errors,
24978
25086
  formSchema,
24979
- validateFields: validateFields2
25087
+ validateFields: validateFields2,
25088
+ fields,
25089
+ fieldActions
24980
25090
  } = _ref;
24981
25091
  const {
24982
25092
  isRTL
@@ -24988,7 +25098,9 @@ var FormRoot = (_ref) => {
24988
25098
  errors,
24989
25099
  FieldLayout: DefaultFieldLayout,
24990
25100
  formSchema,
24991
- validateFields: validateFields2
25101
+ validateFields: validateFields2,
25102
+ fields,
25103
+ fieldActions
24992
25104
  });
24993
25105
  return /* @__PURE__ */ React32__namespace.default.createElement(Grid, {
24994
25106
  isRTL,
@@ -25293,6 +25405,7 @@ var Source3;
25293
25405
  (function(Source5) {
25294
25406
  Source5["HTML"] = "HTML";
25295
25407
  Source5["ADSENSE"] = "ADSENSE";
25408
+ Source5["AI"] = "AI";
25296
25409
  })(Source3 || (Source3 = {}));
25297
25410
  var Position3;
25298
25411
  (function(Position5) {
@@ -25420,6 +25533,35 @@ var NullValue3;
25420
25533
  (function(NullValue5) {
25421
25534
  NullValue5["NULL_VALUE"] = "NULL_VALUE";
25422
25535
  })(NullValue3 || (NullValue3 = {}));
25536
+ var Scaling3;
25537
+ (function(Scaling5) {
25538
+ Scaling5["AUTO"] = "AUTO";
25539
+ Scaling5["CONTAIN"] = "CONTAIN";
25540
+ Scaling5["COVER"] = "COVER";
25541
+ })(Scaling3 || (Scaling3 = {}));
25542
+ var ImagePosition3;
25543
+ (function(ImagePosition5) {
25544
+ ImagePosition5["CENTER"] = "CENTER";
25545
+ ImagePosition5["CENTER_LEFT"] = "CENTER_LEFT";
25546
+ ImagePosition5["CENTER_RIGHT"] = "CENTER_RIGHT";
25547
+ ImagePosition5["TOP"] = "TOP";
25548
+ ImagePosition5["TOP_LEFT"] = "TOP_LEFT";
25549
+ ImagePosition5["TOP_RIGHT"] = "TOP_RIGHT";
25550
+ ImagePosition5["BOTTOM"] = "BOTTOM";
25551
+ ImagePosition5["BOTTOM_LEFT"] = "BOTTOM_LEFT";
25552
+ ImagePosition5["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
25553
+ })(ImagePosition3 || (ImagePosition3 = {}));
25554
+ var VerticalAlignmentAlignment3;
25555
+ (function(VerticalAlignmentAlignment5) {
25556
+ VerticalAlignmentAlignment5["TOP"] = "TOP";
25557
+ VerticalAlignmentAlignment5["MIDDLE"] = "MIDDLE";
25558
+ VerticalAlignmentAlignment5["BOTTOM"] = "BOTTOM";
25559
+ })(VerticalAlignmentAlignment3 || (VerticalAlignmentAlignment3 = {}));
25560
+ var ResponsivenessBehaviour3;
25561
+ (function(ResponsivenessBehaviour5) {
25562
+ ResponsivenessBehaviour5["STACK"] = "STACK";
25563
+ ResponsivenessBehaviour5["WRAP"] = "WRAP";
25564
+ })(ResponsivenessBehaviour3 || (ResponsivenessBehaviour3 = {}));
25423
25565
  var Target3;
25424
25566
  (function(Target5) {
25425
25567
  Target5["UNKNOWN_TARGET"] = "UNKNOWN_TARGET";
@@ -25631,6 +25773,7 @@ var Source4;
25631
25773
  (function(Source5) {
25632
25774
  Source5["HTML"] = "HTML";
25633
25775
  Source5["ADSENSE"] = "ADSENSE";
25776
+ Source5["AI"] = "AI";
25634
25777
  })(Source4 || (Source4 = {}));
25635
25778
  var Position4;
25636
25779
  (function(Position5) {
@@ -25758,12 +25901,41 @@ var NullValue4;
25758
25901
  (function(NullValue5) {
25759
25902
  NullValue5["NULL_VALUE"] = "NULL_VALUE";
25760
25903
  })(NullValue4 || (NullValue4 = {}));
25761
- var ImagePosition3;
25762
- (function(ImagePosition4) {
25763
- ImagePosition4["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
25764
- ImagePosition4["ABOVE"] = "ABOVE";
25765
- ImagePosition4["BELOW"] = "BELOW";
25766
- })(ImagePosition3 || (ImagePosition3 = {}));
25904
+ var Scaling4;
25905
+ (function(Scaling5) {
25906
+ Scaling5["AUTO"] = "AUTO";
25907
+ Scaling5["CONTAIN"] = "CONTAIN";
25908
+ Scaling5["COVER"] = "COVER";
25909
+ })(Scaling4 || (Scaling4 = {}));
25910
+ var LayoutDataImagePosition3;
25911
+ (function(LayoutDataImagePosition4) {
25912
+ LayoutDataImagePosition4["CENTER"] = "CENTER";
25913
+ LayoutDataImagePosition4["CENTER_LEFT"] = "CENTER_LEFT";
25914
+ LayoutDataImagePosition4["CENTER_RIGHT"] = "CENTER_RIGHT";
25915
+ LayoutDataImagePosition4["TOP"] = "TOP";
25916
+ LayoutDataImagePosition4["TOP_LEFT"] = "TOP_LEFT";
25917
+ LayoutDataImagePosition4["TOP_RIGHT"] = "TOP_RIGHT";
25918
+ LayoutDataImagePosition4["BOTTOM"] = "BOTTOM";
25919
+ LayoutDataImagePosition4["BOTTOM_LEFT"] = "BOTTOM_LEFT";
25920
+ LayoutDataImagePosition4["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
25921
+ })(LayoutDataImagePosition3 || (LayoutDataImagePosition3 = {}));
25922
+ var VerticalAlignmentAlignment4;
25923
+ (function(VerticalAlignmentAlignment5) {
25924
+ VerticalAlignmentAlignment5["TOP"] = "TOP";
25925
+ VerticalAlignmentAlignment5["MIDDLE"] = "MIDDLE";
25926
+ VerticalAlignmentAlignment5["BOTTOM"] = "BOTTOM";
25927
+ })(VerticalAlignmentAlignment4 || (VerticalAlignmentAlignment4 = {}));
25928
+ var ResponsivenessBehaviour4;
25929
+ (function(ResponsivenessBehaviour5) {
25930
+ ResponsivenessBehaviour5["STACK"] = "STACK";
25931
+ ResponsivenessBehaviour5["WRAP"] = "WRAP";
25932
+ })(ResponsivenessBehaviour4 || (ResponsivenessBehaviour4 = {}));
25933
+ var ImagePosition4;
25934
+ (function(ImagePosition5) {
25935
+ ImagePosition5["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
25936
+ ImagePosition5["ABOVE"] = "ABOVE";
25937
+ ImagePosition5["BELOW"] = "BELOW";
25938
+ })(ImagePosition4 || (ImagePosition4 = {}));
25767
25939
  var AlignmentEnumAlignment3;
25768
25940
  (function(AlignmentEnumAlignment4) {
25769
25941
  AlignmentEnumAlignment4["UNKNOWN_ALIGNMENT"] = "UNKNOWN_ALIGNMENT";
@@ -29517,7 +29689,8 @@ var FormRoot2 = ({
29517
29689
  config,
29518
29690
  breakpoint,
29519
29691
  onStatusChange,
29520
- validationMode
29692
+ validationMode,
29693
+ fields
29521
29694
  }) => {
29522
29695
  const formWithOverrides = React32.useMemo(() => applyAllOverrides(unprocessedForm, unprocessedValues, overrides), [unprocessedForm, unprocessedValues, overrides]);
29523
29696
  const formId = formWithOverrides.id;
@@ -29638,18 +29811,14 @@ var FormRoot2 = ({
29638
29811
  return null;
29639
29812
  }
29640
29813
  return React32__namespace.default.createElement(
29641
- FieldActionsContext.Provider,
29642
- { value: fieldActions },
29814
+ FormStatusProvider,
29815
+ { onStatusChange },
29643
29816
  React32__namespace.default.createElement(
29644
- FormStatusProvider,
29645
- { onStatusChange },
29646
- React32__namespace.default.createElement(
29647
- "div",
29648
- { "data-hook": DATA_HOOKS.FORM_ROOT },
29649
- React32__namespace.default.createElement(Form, { formSchema: formWithOverrides, form: currentView, values: normalizedValues, onFieldChange, errors, dataHook: DATA_HOOKS.FORM_ROOT, validateFields: handleFieldValidation }),
29650
- React32__namespace.default.createElement(StepTitleA11y, { total: formWithOverrides.steps?.length, index: currentStep }),
29651
- React32__namespace.default.createElement(SubmitStatusMessage, null)
29652
- )
29817
+ "div",
29818
+ { "data-hook": DATA_HOOKS.FORM_ROOT },
29819
+ React32__namespace.default.createElement(Form, { formSchema: formWithOverrides, form: currentView, values: normalizedValues, onFieldChange, errors, dataHook: DATA_HOOKS.FORM_ROOT, validateFields: handleFieldValidation, fields, fieldActions }),
29820
+ React32__namespace.default.createElement(StepTitleA11y, { total: formWithOverrides.steps?.length, index: currentStep }),
29821
+ React32__namespace.default.createElement(SubmitStatusMessage, null)
29653
29822
  )
29654
29823
  );
29655
29824
  };
@@ -29690,7 +29859,7 @@ var useFormBi = (form, bi, biFormFillSessionId) => {
29690
29859
  };
29691
29860
 
29692
29861
  // ../form-viewer/dist/esm/components/root/form-viewer-provider.js
29693
- var FormViewerProvider = ({ i18n: i18n2, bi, biFormFillSessionId, form, isMobile, isEditor, isComposer, isRTL, compId, locale, regionalFormat, externalData, fields, forcedState, instance, children, httpClient, panorama, experiments, translationNamespace, currency, userData, WixRicosViewer, addressTemplates, atlasBaseUrl, fieldInitialData, enableAnimations }) => {
29862
+ 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 }) => {
29694
29863
  const translations = React32.useMemo(() => ({
29695
29864
  t: i18n2.getFixedT(locale, translationNamespace),
29696
29865
  i18n: i18n2
@@ -29725,58 +29894,54 @@ var FormViewerProvider = ({ i18n: i18n2, bi, biFormFillSessionId, form, isMobile
29725
29894
  ]);
29726
29895
  const forcedViewState = React32.useMemo(() => forcedState ?? [], [forcedState]);
29727
29896
  return React32__namespace.default.createElement(
29728
- FormFieldsContext.Provider,
29729
- { value: fields },
29897
+ HttpClientContext.Provider,
29898
+ { value: { httpClient } },
29730
29899
  React32__namespace.default.createElement(
29731
- HttpClientContext.Provider,
29732
- { value: { httpClient } },
29900
+ PanoramaContext.Provider,
29901
+ { value: { panorama } },
29733
29902
  React32__namespace.default.createElement(
29734
- PanoramaContext.Provider,
29735
- { value: { panorama } },
29903
+ TranslationContext.Provider,
29904
+ { value: translations },
29736
29905
  React32__namespace.default.createElement(
29737
- TranslationContext.Provider,
29738
- { value: translations },
29906
+ ScrollProvider,
29907
+ null,
29739
29908
  React32__namespace.default.createElement(
29740
- ScrollProvider,
29909
+ FocusedFieldProvider,
29741
29910
  null,
29742
29911
  React32__namespace.default.createElement(
29743
- FocusedFieldProvider,
29744
- null,
29912
+ FieldInitialDataContext.Provider,
29913
+ { value: fieldInitialData },
29745
29914
  React32__namespace.default.createElement(
29746
- FieldInitialDataContext.Provider,
29747
- { value: fieldInitialData },
29915
+ BiContext.Provider,
29916
+ { value: formBi },
29748
29917
  React32__namespace.default.createElement(
29749
- BiContext.Provider,
29750
- { value: formBi },
29918
+ ExternalDataProvider,
29919
+ { externalData },
29751
29920
  React32__namespace.default.createElement(
29752
- ExternalDataProvider,
29753
- { externalData },
29921
+ ConfigContext.Provider,
29922
+ { value: config },
29754
29923
  React32__namespace.default.createElement(
29755
- ConfigContext.Provider,
29756
- { value: config },
29924
+ ForcedStateContext.Provider,
29925
+ { value: forcedViewState },
29757
29926
  React32__namespace.default.createElement(
29758
- ForcedStateContext.Provider,
29759
- { value: forcedViewState },
29927
+ FormContext.Provider,
29928
+ { value: form },
29760
29929
  React32__namespace.default.createElement(
29761
- FormContext.Provider,
29762
- { value: form },
29930
+ AddressFormsContext.Provider,
29931
+ { value: {
29932
+ getCountryAddressForm: (country) => getAddressForm(addressTemplates, country),
29933
+ addressTemplates
29934
+ } },
29763
29935
  React32__namespace.default.createElement(
29764
- AddressFormsContext.Provider,
29765
- { value: {
29766
- getCountryAddressForm: (country) => getAddressForm(addressTemplates, country),
29767
- addressTemplates
29768
- } },
29936
+ ExperimentsContext.Provider,
29937
+ { value: experiments },
29769
29938
  React32__namespace.default.createElement(
29770
- ExperimentsContext.Provider,
29771
- { value: experiments },
29939
+ EventsProvider,
29940
+ null,
29772
29941
  React32__namespace.default.createElement(
29773
- EventsProvider,
29774
- null,
29775
- React32__namespace.default.createElement(
29776
- WixRicosViewerContext.Provider,
29777
- { value: WixRicosViewer },
29778
- React32__namespace.default.createElement(SubmitStatusProvider, null, children)
29779
- )
29942
+ WixRicosViewerContext.Provider,
29943
+ { value: WixRicosViewer },
29944
+ React32__namespace.default.createElement(SubmitStatusProvider, null, children)
29780
29945
  )
29781
29946
  )
29782
29947
  )
@@ -29848,7 +30013,7 @@ var FormViewerStatic = React32.forwardRef(({ form, i18n: i18n2, isMobile, isRTL,
29848
30013
  React32__namespace.default.createElement(
29849
30014
  "fieldset",
29850
30015
  { className: form_viewer_static_module_default.fieldsetReset, disabled: readOnly || isDisabled },
29851
- React32__namespace.default.createElement(FormRoot2, { form: formWithValidSteps, forwardedRef, config, breakpoint, ...rest })
30016
+ React32__namespace.default.createElement(FormRoot2, { form: formWithValidSteps, fields, forwardedRef, config, breakpoint, ...rest })
29852
30017
  )
29853
30018
  )
29854
30019
  )