@wix/form-public 0.200.0 → 0.202.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.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, 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, 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, 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) {
@@ -90,6 +90,12 @@ var init_types_impl = __esm({
90
90
  PriceType5["FIXED_PRICE"] = "FIXED_PRICE";
91
91
  PriceType5["DYNAMIC_PRICE"] = "DYNAMIC_PRICE";
92
92
  })(PriceType || (PriceType = {}));
93
+ (function(PropertiesTypeEnum3) {
94
+ PropertiesTypeEnum3["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
95
+ PropertiesTypeEnum3["STRING"] = "STRING";
96
+ PropertiesTypeEnum3["NUMBER"] = "NUMBER";
97
+ PropertiesTypeEnum3["BOOLEAN"] = "BOOLEAN";
98
+ })(PropertiesTypeEnum || (PropertiesTypeEnum = {}));
93
99
  (function(FieldFieldType3) {
94
100
  FieldFieldType3["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
95
101
  FieldFieldType3["INPUT"] = "INPUT";
@@ -160,14 +166,15 @@ var init_types_impl = __esm({
160
166
  NodeType5["LAYOUT_CELL"] = "LAYOUT_CELL";
161
167
  NodeType5["SHAPE"] = "SHAPE";
162
168
  NodeType5["CARD"] = "CARD";
169
+ NodeType5["TOC"] = "TOC";
163
170
  })(NodeType || (NodeType = {}));
164
- (function(StylesBackgroundType2) {
165
- StylesBackgroundType2["COLOR"] = "COLOR";
166
- StylesBackgroundType2["GRADIENT"] = "GRADIENT";
171
+ (function(StylesBackgroundType3) {
172
+ StylesBackgroundType3["COLOR"] = "COLOR";
173
+ StylesBackgroundType3["GRADIENT"] = "GRADIENT";
167
174
  })(StylesBackgroundType || (StylesBackgroundType = {}));
168
- (function(GradientType2) {
169
- GradientType2["LINEAR"] = "LINEAR";
170
- GradientType2["RADIAL"] = "RADIAL";
175
+ (function(GradientType3) {
176
+ GradientType3["LINEAR"] = "LINEAR";
177
+ GradientType3["RADIAL"] = "RADIAL";
171
178
  })(GradientType || (GradientType = {}));
172
179
  (function(WidthType5) {
173
180
  WidthType5["CONTENT"] = "CONTENT";
@@ -253,6 +260,7 @@ var init_types_impl = __esm({
253
260
  Source5["HTML"] = "HTML";
254
261
  Source5["ADSENSE"] = "ADSENSE";
255
262
  Source5["AI"] = "AI";
263
+ Source5["AI_WIDGET"] = "AI_WIDGET";
256
264
  })(Source || (Source = {}));
257
265
  (function(Position5) {
258
266
  Position5["START"] = "START";
@@ -380,13 +388,13 @@ var init_types_impl = __esm({
380
388
  Origin5["IMAGE"] = "IMAGE";
381
389
  Origin5["LAYOUT"] = "LAYOUT";
382
390
  })(Origin || (Origin = {}));
383
- (function(LayoutDataBackgroundType2) {
384
- LayoutDataBackgroundType2["COLOR"] = "COLOR";
385
- LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
391
+ (function(LayoutDataBackgroundType3) {
392
+ LayoutDataBackgroundType3["COLOR"] = "COLOR";
393
+ LayoutDataBackgroundType3["GRADIENT"] = "GRADIENT";
386
394
  })(LayoutDataBackgroundType || (LayoutDataBackgroundType = {}));
387
- (function(BackdropType2) {
388
- BackdropType2["COLOR"] = "COLOR";
389
- BackdropType2["GRADIENT"] = "GRADIENT";
395
+ (function(BackdropType3) {
396
+ BackdropType3["COLOR"] = "COLOR";
397
+ BackdropType3["GRADIENT"] = "GRADIENT";
390
398
  })(BackdropType || (BackdropType = {}));
391
399
  (function(VerticalAlignmentAlignment5) {
392
400
  VerticalAlignmentAlignment5["TOP"] = "TOP";
@@ -401,26 +409,39 @@ var init_types_impl = __esm({
401
409
  DesignTarget5["LAYOUT"] = "LAYOUT";
402
410
  DesignTarget5["CELL"] = "CELL";
403
411
  })(DesignTarget || (DesignTarget = {}));
404
- (function(ImageScalingScaling2) {
405
- ImageScalingScaling2["AUTO"] = "AUTO";
406
- ImageScalingScaling2["CONTAIN"] = "CONTAIN";
407
- ImageScalingScaling2["COVER"] = "COVER";
412
+ (function(ImageScalingScaling3) {
413
+ ImageScalingScaling3["AUTO"] = "AUTO";
414
+ ImageScalingScaling3["CONTAIN"] = "CONTAIN";
415
+ ImageScalingScaling3["COVER"] = "COVER";
408
416
  })(ImageScalingScaling || (ImageScalingScaling = {}));
409
- (function(ImagePositionPosition2) {
410
- ImagePositionPosition2["CENTER"] = "CENTER";
411
- ImagePositionPosition2["CENTER_LEFT"] = "CENTER_LEFT";
412
- ImagePositionPosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
413
- ImagePositionPosition2["TOP"] = "TOP";
414
- ImagePositionPosition2["TOP_LEFT"] = "TOP_LEFT";
415
- ImagePositionPosition2["TOP_RIGHT"] = "TOP_RIGHT";
416
- ImagePositionPosition2["BOTTOM"] = "BOTTOM";
417
- ImagePositionPosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
418
- ImagePositionPosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
417
+ (function(ImagePositionPosition3) {
418
+ ImagePositionPosition3["CENTER"] = "CENTER";
419
+ ImagePositionPosition3["CENTER_LEFT"] = "CENTER_LEFT";
420
+ ImagePositionPosition3["CENTER_RIGHT"] = "CENTER_RIGHT";
421
+ ImagePositionPosition3["TOP"] = "TOP";
422
+ ImagePositionPosition3["TOP_LEFT"] = "TOP_LEFT";
423
+ ImagePositionPosition3["TOP_RIGHT"] = "TOP_RIGHT";
424
+ ImagePositionPosition3["BOTTOM"] = "BOTTOM";
425
+ ImagePositionPosition3["BOTTOM_LEFT"] = "BOTTOM_LEFT";
426
+ ImagePositionPosition3["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
419
427
  })(ImagePositionPosition || (ImagePositionPosition = {}));
420
- (function(CardDataBackgroundType2) {
421
- CardDataBackgroundType2["COLOR"] = "COLOR";
422
- CardDataBackgroundType2["GRADIENT"] = "GRADIENT";
428
+ (function(CardDataBackgroundType3) {
429
+ CardDataBackgroundType3["COLOR"] = "COLOR";
430
+ CardDataBackgroundType3["GRADIENT"] = "GRADIENT";
423
431
  })(CardDataBackgroundType || (CardDataBackgroundType = {}));
432
+ (function(ListStyle3) {
433
+ ListStyle3["PLAIN"] = "PLAIN";
434
+ ListStyle3["NUMBERED"] = "NUMBERED";
435
+ ListStyle3["LETTERS"] = "LETTERS";
436
+ ListStyle3["ROMAN"] = "ROMAN";
437
+ ListStyle3["BULLETED"] = "BULLETED";
438
+ ListStyle3["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
439
+ ListStyle3["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
440
+ })(ListStyle || (ListStyle = {}));
441
+ (function(Indentation3) {
442
+ Indentation3["NESTED"] = "NESTED";
443
+ Indentation3["FLAT"] = "FLAT";
444
+ })(Indentation || (Indentation = {}));
424
445
  (function(ImagePosition5) {
425
446
  ImagePosition5["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
426
447
  ImagePosition5["ABOVE"] = "ABOVE";
@@ -464,12 +485,12 @@ var init_types_impl = __esm({
464
485
  ArrayItemsItemType3["BOOLEAN"] = "BOOLEAN";
465
486
  ArrayItemsItemType3["OBJECT"] = "OBJECT";
466
487
  })(ArrayItemsItemType || (ArrayItemsItemType = {}));
467
- (function(PropertiesTypePropertiesTypeEnum3) {
468
- PropertiesTypePropertiesTypeEnum3["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
469
- PropertiesTypePropertiesTypeEnum3["STRING"] = "STRING";
470
- PropertiesTypePropertiesTypeEnum3["NUMBER"] = "NUMBER";
471
- PropertiesTypePropertiesTypeEnum3["BOOLEAN"] = "BOOLEAN";
472
- PropertiesTypePropertiesTypeEnum3["ARRAY"] = "ARRAY";
488
+ (function(PropertiesTypePropertiesTypeEnum4) {
489
+ PropertiesTypePropertiesTypeEnum4["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
490
+ PropertiesTypePropertiesTypeEnum4["STRING"] = "STRING";
491
+ PropertiesTypePropertiesTypeEnum4["NUMBER"] = "NUMBER";
492
+ PropertiesTypePropertiesTypeEnum4["BOOLEAN"] = "BOOLEAN";
493
+ PropertiesTypePropertiesTypeEnum4["ARRAY"] = "ARRAY";
473
494
  })(PropertiesTypePropertiesTypeEnum || (PropertiesTypePropertiesTypeEnum = {}));
474
495
  (function(ArrayComponentType3) {
475
496
  ArrayComponentType3["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
@@ -509,6 +530,7 @@ var init_types_impl = __esm({
509
530
  (function(ObjectArrayComponentType4) {
510
531
  ObjectArrayComponentType4["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
511
532
  ObjectArrayComponentType4["REPEATER"] = "REPEATER";
533
+ ObjectArrayComponentType4["PIKACHU"] = "PIKACHU";
512
534
  })(ObjectArrayComponentType || (ObjectArrayComponentType = {}));
513
535
  (function(InputFieldSchedulingComponentType3) {
514
536
  InputFieldSchedulingComponentType3["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
@@ -5467,12 +5489,12 @@ var init_types_impl2 = __esm({
5467
5489
  ArrayItemsItemType3["BOOLEAN"] = "BOOLEAN";
5468
5490
  ArrayItemsItemType3["OBJECT"] = "OBJECT";
5469
5491
  })(ArrayItemsItemType2 || (ArrayItemsItemType2 = {}));
5470
- (function(PropertiesTypePropertiesTypeEnum3) {
5471
- PropertiesTypePropertiesTypeEnum3["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
5472
- PropertiesTypePropertiesTypeEnum3["STRING"] = "STRING";
5473
- PropertiesTypePropertiesTypeEnum3["NUMBER"] = "NUMBER";
5474
- PropertiesTypePropertiesTypeEnum3["BOOLEAN"] = "BOOLEAN";
5475
- PropertiesTypePropertiesTypeEnum3["ARRAY"] = "ARRAY";
5492
+ (function(PropertiesTypePropertiesTypeEnum4) {
5493
+ PropertiesTypePropertiesTypeEnum4["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
5494
+ PropertiesTypePropertiesTypeEnum4["STRING"] = "STRING";
5495
+ PropertiesTypePropertiesTypeEnum4["NUMBER"] = "NUMBER";
5496
+ PropertiesTypePropertiesTypeEnum4["BOOLEAN"] = "BOOLEAN";
5497
+ PropertiesTypePropertiesTypeEnum4["ARRAY"] = "ARRAY";
5476
5498
  })(PropertiesTypePropertiesTypeEnum2 || (PropertiesTypePropertiesTypeEnum2 = {}));
5477
5499
  (function(ArrayComponentType3) {
5478
5500
  ArrayComponentType3["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
@@ -25959,6 +25981,9 @@ var EVENTS_FIELD_TYPES = {
25959
25981
  EVENTS_RSVP: "EVENTS_RSVP",
25960
25982
  EVENTS_REPEATER: "EVENTS_REPEATER"
25961
25983
  };
25984
+ var ENTITY_PICKER_FIELD_TYPES = {
25985
+ PIKACHU: "PIKACHU"
25986
+ };
25962
25987
  var INPUT_FIELD_TYPES = {
25963
25988
  ...CONTACTS_FIELD_TYPES,
25964
25989
  ...QUIZ_FIELD_TYPES,
@@ -25968,7 +25993,8 @@ var INPUT_FIELD_TYPES = {
25968
25993
  ...BOOKINGS_FIELD_TYPES,
25969
25994
  ...PAYMENTS_FIELD_TYPES,
25970
25995
  ...COMMON_FIELD_TYPES,
25971
- ...EVENTS_FIELD_TYPES
25996
+ ...EVENTS_FIELD_TYPES,
25997
+ ...ENTITY_PICKER_FIELD_TYPES
25972
25998
  };
25973
25999
 
25974
26000
  // ../form-fields/dist/esm/constants/readonly-field-types.js
@@ -26393,39 +26419,6 @@ function startOfDay(date) {
26393
26419
  return result2;
26394
26420
  }
26395
26421
 
26396
- // ../form-fields/dist/esm/field-settings/settings-shared/availability/availability.js
26397
- var DEFAULT_AVAILABILITY = {
26398
- daysOfWeek: [0, 1, 2, 3, 4, 5, 6]
26399
- };
26400
- function isDateAvailable(date, availability) {
26401
- const d = date instanceof Date ? date : new Date(date);
26402
- if (availability.daysOfWeek) {
26403
- const dayOfWeek = d.getDay();
26404
- if (!availability.daysOfWeek.includes(dayOfWeek)) {
26405
- return false;
26406
- }
26407
- }
26408
- if (availability.availableDateRanges && availability.availableDateRanges.length > 0) {
26409
- const isInAvailableRange = availability.availableDateRanges.some((range) => isDateInRange(d, range));
26410
- if (!isInAvailableRange) {
26411
- return false;
26412
- }
26413
- }
26414
- if (availability.unavailableDateRanges && availability.unavailableDateRanges.length > 0) {
26415
- const isInUnavailableRange = availability.unavailableDateRanges.some((range) => isDateInRange(d, range));
26416
- if (isInUnavailableRange) {
26417
- return false;
26418
- }
26419
- }
26420
- return true;
26421
- }
26422
- function isDateInRange(date, range) {
26423
- const checkDate = startOfDay(date);
26424
- const startDate = startOfDay(new Date(range.start));
26425
- const endDate = startOfDay(new Date(range.end));
26426
- return checkDate >= startDate && checkDate <= endDate;
26427
- }
26428
-
26429
26422
  // ../form-fields/dist/esm/date-localization/get-first-day-of-the-week.js
26430
26423
  var DEFAULT_FIRST_DAY = 1;
26431
26424
  function getFirstDayOfTheWeek(locale) {
@@ -26475,6 +26468,53 @@ function getFirstDayManual(locale) {
26475
26468
  return DEFAULT_FIRST_DAY;
26476
26469
  }
26477
26470
  }
26471
+
26472
+ // ../form-fields/dist/esm/field-settings/settings-shared/availability/availability.js
26473
+ init_types_impl();
26474
+ var ALL_DAYS = [DayOfWeek.SUNDAY, DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY, DayOfWeek.SATURDAY];
26475
+ var DEFAULT_AVAILABILITY = {
26476
+ availableDays: ALL_DAYS
26477
+ };
26478
+ var NUMERIC_DAY_TO_STRING = {
26479
+ 0: DayOfWeek.SUNDAY,
26480
+ 1: DayOfWeek.MONDAY,
26481
+ 2: DayOfWeek.TUESDAY,
26482
+ 3: DayOfWeek.WEDNESDAY,
26483
+ 4: DayOfWeek.THURSDAY,
26484
+ 5: DayOfWeek.FRIDAY,
26485
+ 6: DayOfWeek.SATURDAY
26486
+ };
26487
+ function isDateAvailable(date, availability) {
26488
+ const d = date instanceof Date ? date : new Date(date);
26489
+ if (availability.availableDays) {
26490
+ const dayOfWeek = NUMERIC_DAY_TO_STRING[d.getDay()];
26491
+ if (!availability.availableDays.includes(dayOfWeek)) {
26492
+ return false;
26493
+ }
26494
+ }
26495
+ if (availability.availableDates && availability.availableDates.length > 0) {
26496
+ const isInAvailableRange = availability.availableDates.some((range) => isDateInRange(d, range));
26497
+ if (!isInAvailableRange) {
26498
+ return false;
26499
+ }
26500
+ }
26501
+ if (availability.unavailableDates && availability.unavailableDates.length > 0) {
26502
+ const isInUnavailableRange = availability.unavailableDates.some((range) => isDateInRange(d, range));
26503
+ if (isInUnavailableRange) {
26504
+ return false;
26505
+ }
26506
+ }
26507
+ return true;
26508
+ }
26509
+ function isDateInRange(date, range) {
26510
+ if (!range.start || !range.end) {
26511
+ return true;
26512
+ }
26513
+ const checkDate = startOfDay(date);
26514
+ const startDate = startOfDay(new Date(range.start));
26515
+ const endDate = startOfDay(new Date(range.end));
26516
+ return checkDate >= startDate && checkDate <= endDate;
26517
+ }
26478
26518
  var HttpClientContext = /* @__PURE__ */ createContext(void 0);
26479
26519
  var FormContext = /* @__PURE__ */ createContext(void 0);
26480
26520
  function useForm() {
@@ -27235,6 +27275,7 @@ var FIELD_PROPS_MAPPERS = {
27235
27275
  DONATION: DonationMapper,
27236
27276
  EVENTS_RSVP: RadioGroupMapper,
27237
27277
  EVENTS_REPEATER: TextMapper,
27278
+ PIKACHU: DefaultMapper,
27238
27279
  FILE_UPLOAD: FileUploadMapper,
27239
27280
  SIGNATURE: SignatureMapper,
27240
27281
  RATING_INPUT: RatingInputMapper,
@@ -28640,7 +28681,19 @@ var NodeType4;
28640
28681
  NodeType5["LAYOUT"] = "LAYOUT";
28641
28682
  NodeType5["LAYOUT_CELL"] = "LAYOUT_CELL";
28642
28683
  NodeType5["SHAPE"] = "SHAPE";
28684
+ NodeType5["CARD"] = "CARD";
28685
+ NodeType5["TOC"] = "TOC";
28643
28686
  })(NodeType4 || (NodeType4 = {}));
28687
+ var StylesBackgroundType2;
28688
+ (function(StylesBackgroundType3) {
28689
+ StylesBackgroundType3["COLOR"] = "COLOR";
28690
+ StylesBackgroundType3["GRADIENT"] = "GRADIENT";
28691
+ })(StylesBackgroundType2 || (StylesBackgroundType2 = {}));
28692
+ var GradientType2;
28693
+ (function(GradientType3) {
28694
+ GradientType3["LINEAR"] = "LINEAR";
28695
+ GradientType3["RADIAL"] = "RADIAL";
28696
+ })(GradientType2 || (GradientType2 = {}));
28644
28697
  var WidthType4;
28645
28698
  (function(WidthType5) {
28646
28699
  WidthType5["CONTENT"] = "CONTENT";
@@ -28740,6 +28793,7 @@ var Source4;
28740
28793
  Source5["HTML"] = "HTML";
28741
28794
  Source5["ADSENSE"] = "ADSENSE";
28742
28795
  Source5["AI"] = "AI";
28796
+ Source5["AI_WIDGET"] = "AI_WIDGET";
28743
28797
  })(Source4 || (Source4 = {}));
28744
28798
  var Position4;
28745
28799
  (function(Position5) {
@@ -28891,6 +28945,16 @@ var Origin4;
28891
28945
  Origin5["IMAGE"] = "IMAGE";
28892
28946
  Origin5["LAYOUT"] = "LAYOUT";
28893
28947
  })(Origin4 || (Origin4 = {}));
28948
+ var LayoutDataBackgroundType2;
28949
+ (function(LayoutDataBackgroundType3) {
28950
+ LayoutDataBackgroundType3["COLOR"] = "COLOR";
28951
+ LayoutDataBackgroundType3["GRADIENT"] = "GRADIENT";
28952
+ })(LayoutDataBackgroundType2 || (LayoutDataBackgroundType2 = {}));
28953
+ var BackdropType2;
28954
+ (function(BackdropType3) {
28955
+ BackdropType3["COLOR"] = "COLOR";
28956
+ BackdropType3["GRADIENT"] = "GRADIENT";
28957
+ })(BackdropType2 || (BackdropType2 = {}));
28894
28958
  var VerticalAlignmentAlignment4;
28895
28959
  (function(VerticalAlignmentAlignment5) {
28896
28960
  VerticalAlignmentAlignment5["TOP"] = "TOP";
@@ -28907,6 +28971,44 @@ var DesignTarget4;
28907
28971
  DesignTarget5["LAYOUT"] = "LAYOUT";
28908
28972
  DesignTarget5["CELL"] = "CELL";
28909
28973
  })(DesignTarget4 || (DesignTarget4 = {}));
28974
+ var ImageScalingScaling2;
28975
+ (function(ImageScalingScaling3) {
28976
+ ImageScalingScaling3["AUTO"] = "AUTO";
28977
+ ImageScalingScaling3["CONTAIN"] = "CONTAIN";
28978
+ ImageScalingScaling3["COVER"] = "COVER";
28979
+ })(ImageScalingScaling2 || (ImageScalingScaling2 = {}));
28980
+ var ImagePositionPosition2;
28981
+ (function(ImagePositionPosition3) {
28982
+ ImagePositionPosition3["CENTER"] = "CENTER";
28983
+ ImagePositionPosition3["CENTER_LEFT"] = "CENTER_LEFT";
28984
+ ImagePositionPosition3["CENTER_RIGHT"] = "CENTER_RIGHT";
28985
+ ImagePositionPosition3["TOP"] = "TOP";
28986
+ ImagePositionPosition3["TOP_LEFT"] = "TOP_LEFT";
28987
+ ImagePositionPosition3["TOP_RIGHT"] = "TOP_RIGHT";
28988
+ ImagePositionPosition3["BOTTOM"] = "BOTTOM";
28989
+ ImagePositionPosition3["BOTTOM_LEFT"] = "BOTTOM_LEFT";
28990
+ ImagePositionPosition3["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
28991
+ })(ImagePositionPosition2 || (ImagePositionPosition2 = {}));
28992
+ var CardDataBackgroundType2;
28993
+ (function(CardDataBackgroundType3) {
28994
+ CardDataBackgroundType3["COLOR"] = "COLOR";
28995
+ CardDataBackgroundType3["GRADIENT"] = "GRADIENT";
28996
+ })(CardDataBackgroundType2 || (CardDataBackgroundType2 = {}));
28997
+ var ListStyle2;
28998
+ (function(ListStyle3) {
28999
+ ListStyle3["PLAIN"] = "PLAIN";
29000
+ ListStyle3["NUMBERED"] = "NUMBERED";
29001
+ ListStyle3["LETTERS"] = "LETTERS";
29002
+ ListStyle3["ROMAN"] = "ROMAN";
29003
+ ListStyle3["BULLETED"] = "BULLETED";
29004
+ ListStyle3["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
29005
+ ListStyle3["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
29006
+ })(ListStyle2 || (ListStyle2 = {}));
29007
+ var Indentation2;
29008
+ (function(Indentation3) {
29009
+ Indentation3["NESTED"] = "NESTED";
29010
+ Indentation3["FLAT"] = "FLAT";
29011
+ })(Indentation2 || (Indentation2 = {}));
28910
29012
  var ImagePosition4;
28911
29013
  (function(ImagePosition5) {
28912
29014
  ImagePosition5["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
@@ -28958,14 +29060,14 @@ var ItemType;
28958
29060
  ItemType2["BOOLEAN"] = "BOOLEAN";
28959
29061
  ItemType2["OBJECT"] = "OBJECT";
28960
29062
  })(ItemType || (ItemType = {}));
28961
- var PropertiesTypeEnum;
28962
- (function(PropertiesTypeEnum2) {
28963
- PropertiesTypeEnum2["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
28964
- PropertiesTypeEnum2["STRING"] = "STRING";
28965
- PropertiesTypeEnum2["NUMBER"] = "NUMBER";
28966
- PropertiesTypeEnum2["BOOLEAN"] = "BOOLEAN";
28967
- PropertiesTypeEnum2["ARRAY"] = "ARRAY";
28968
- })(PropertiesTypeEnum || (PropertiesTypeEnum = {}));
29063
+ var PropertiesTypeEnum2;
29064
+ (function(PropertiesTypeEnum3) {
29065
+ PropertiesTypeEnum3["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
29066
+ PropertiesTypeEnum3["STRING"] = "STRING";
29067
+ PropertiesTypeEnum3["NUMBER"] = "NUMBER";
29068
+ PropertiesTypeEnum3["BOOLEAN"] = "BOOLEAN";
29069
+ PropertiesTypeEnum3["ARRAY"] = "ARRAY";
29070
+ })(PropertiesTypeEnum2 || (PropertiesTypeEnum2 = {}));
28969
29071
  var ComponentType;
28970
29072
  (function(ComponentType2) {
28971
29073
  ComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
@@ -29023,7 +29125,15 @@ var ObjectArrayComponentType3;
29023
29125
  (function(ObjectArrayComponentType4) {
29024
29126
  ObjectArrayComponentType4["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
29025
29127
  ObjectArrayComponentType4["REPEATER"] = "REPEATER";
29128
+ ObjectArrayComponentType4["PIKACHU"] = "PIKACHU";
29026
29129
  })(ObjectArrayComponentType3 || (ObjectArrayComponentType3 = {}));
29130
+ var PropertiesTypePropertiesTypeEnum3;
29131
+ (function(PropertiesTypePropertiesTypeEnum4) {
29132
+ PropertiesTypePropertiesTypeEnum4["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
29133
+ PropertiesTypePropertiesTypeEnum4["STRING"] = "STRING";
29134
+ PropertiesTypePropertiesTypeEnum4["NUMBER"] = "NUMBER";
29135
+ PropertiesTypePropertiesTypeEnum4["BOOLEAN"] = "BOOLEAN";
29136
+ })(PropertiesTypePropertiesTypeEnum3 || (PropertiesTypePropertiesTypeEnum3 = {}));
29027
29137
  var SchedulingComponentType;
29028
29138
  (function(SchedulingComponentType2) {
29029
29139
  SchedulingComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
@@ -30853,6 +30963,7 @@ var DEFAULT_VALUE = {
30853
30963
  [FIELD_TYPES.SERVICES_MULTI_CHOICE]: resolveDefaultValue,
30854
30964
  [FIELD_TYPES.EVENTS_RSVP]: resolveDefaultValue,
30855
30965
  [FIELD_TYPES.EVENTS_REPEATER]: resolveDefaultValue,
30966
+ [FIELD_TYPES.PIKACHU]: resolveDefaultValue,
30856
30967
  [FIELD_TYPES.PHONE]: resolveDefaultValue
30857
30968
  };
30858
30969
  function resolveDefaultValue(field) {
@@ -31053,6 +31164,7 @@ var ADDITIONAL_FIELD_VALIDATION = {
31053
31164
  [FIELD_TYPES.SERVICES_MULTI_CHOICE]: null,
31054
31165
  [FIELD_TYPES.EVENTS_RSVP]: null,
31055
31166
  [FIELD_TYPES.EVENTS_REPEATER]: null,
31167
+ [FIELD_TYPES.PIKACHU]: null,
31056
31168
  [FIELD_TYPES.IMAGE_CHOICE]: null,
31057
31169
  [FIELD_TYPES.PHONE]: null
31058
31170
  };
@@ -32606,12 +32718,19 @@ var NORMALIZED_VALUE = {
32606
32718
  [FIELD_TYPES.SERVICES_MULTI_CHOICE]: removeInvalidOptions,
32607
32719
  [FIELD_TYPES.EVENTS_RSVP]: acceptOnlyValidOptionByValue,
32608
32720
  [FIELD_TYPES.EVENTS_REPEATER]: normalizeRepeater,
32721
+ [FIELD_TYPES.PIKACHU]: acceptObjectArrayValue,
32609
32722
  [FIELD_TYPES.IMAGE_CHOICE]: removeInvalidOptions,
32610
32723
  [FIELD_TYPES.PHONE]: acceptPhoneValue
32611
32724
  };
32612
32725
  function keepValueUnchanged({ fieldValue }) {
32613
32726
  return fieldValue;
32614
32727
  }
32728
+ function acceptObjectArrayValue({ fieldValue }) {
32729
+ if (fieldValue === EMPTY_VALUE) {
32730
+ return fieldValue;
32731
+ }
32732
+ return Array.isArray(fieldValue) ? fieldValue : EMPTY_VALUE;
32733
+ }
32615
32734
  function acceptPhoneValue({ fieldValue }) {
32616
32735
  const isEmptyValue = fieldValue === EMPTY_VALUE;
32617
32736
  if (isEmptyValue) {
@@ -33501,6 +33620,8 @@ var FIELD_TYPE_MAP = {
33501
33620
  SUBMIT_BUTTON: "SUBMIT_BUTTON",
33502
33621
  SERVICES_MULTI_CHOICE: "CHECKBOX_GROUP",
33503
33622
  IMAGE_CHOICE: "IMAGE_CHOICE",
33623
+ // ENTITY_PICKER_FIELD_TYPES
33624
+ PIKACHU: "TEXT_INPUT",
33504
33625
  // fields that have not been implemented
33505
33626
  NESTED_FORM: "TEXT_INPUT",
33506
33627
  PASSWORD: "TEXT_INPUT",