@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.cjs CHANGED
@@ -70,7 +70,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
70
70
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
71
71
 
72
72
  // ../../node_modules/@wix/ambassador-forms-v4-form/es/build/types.impl.js
73
- var Format, 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;
73
+ 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;
74
74
  var init_types_impl = __esm({
75
75
  "../../node_modules/@wix/ambassador-forms-v4-form/es/build/types.impl.js"() {
76
76
  (function(Format6) {
@@ -116,6 +116,12 @@ var init_types_impl = __esm({
116
116
  PriceType5["FIXED_PRICE"] = "FIXED_PRICE";
117
117
  PriceType5["DYNAMIC_PRICE"] = "DYNAMIC_PRICE";
118
118
  })(PriceType || (PriceType = {}));
119
+ (function(PropertiesTypeEnum3) {
120
+ PropertiesTypeEnum3["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
121
+ PropertiesTypeEnum3["STRING"] = "STRING";
122
+ PropertiesTypeEnum3["NUMBER"] = "NUMBER";
123
+ PropertiesTypeEnum3["BOOLEAN"] = "BOOLEAN";
124
+ })(PropertiesTypeEnum || (PropertiesTypeEnum = {}));
119
125
  (function(FieldFieldType3) {
120
126
  FieldFieldType3["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
121
127
  FieldFieldType3["INPUT"] = "INPUT";
@@ -186,14 +192,15 @@ var init_types_impl = __esm({
186
192
  NodeType5["LAYOUT_CELL"] = "LAYOUT_CELL";
187
193
  NodeType5["SHAPE"] = "SHAPE";
188
194
  NodeType5["CARD"] = "CARD";
195
+ NodeType5["TOC"] = "TOC";
189
196
  })(NodeType || (NodeType = {}));
190
- (function(StylesBackgroundType2) {
191
- StylesBackgroundType2["COLOR"] = "COLOR";
192
- StylesBackgroundType2["GRADIENT"] = "GRADIENT";
197
+ (function(StylesBackgroundType3) {
198
+ StylesBackgroundType3["COLOR"] = "COLOR";
199
+ StylesBackgroundType3["GRADIENT"] = "GRADIENT";
193
200
  })(StylesBackgroundType || (StylesBackgroundType = {}));
194
- (function(GradientType2) {
195
- GradientType2["LINEAR"] = "LINEAR";
196
- GradientType2["RADIAL"] = "RADIAL";
201
+ (function(GradientType3) {
202
+ GradientType3["LINEAR"] = "LINEAR";
203
+ GradientType3["RADIAL"] = "RADIAL";
197
204
  })(GradientType || (GradientType = {}));
198
205
  (function(WidthType5) {
199
206
  WidthType5["CONTENT"] = "CONTENT";
@@ -279,6 +286,7 @@ var init_types_impl = __esm({
279
286
  Source5["HTML"] = "HTML";
280
287
  Source5["ADSENSE"] = "ADSENSE";
281
288
  Source5["AI"] = "AI";
289
+ Source5["AI_WIDGET"] = "AI_WIDGET";
282
290
  })(Source || (Source = {}));
283
291
  (function(Position5) {
284
292
  Position5["START"] = "START";
@@ -406,13 +414,13 @@ var init_types_impl = __esm({
406
414
  Origin5["IMAGE"] = "IMAGE";
407
415
  Origin5["LAYOUT"] = "LAYOUT";
408
416
  })(Origin || (Origin = {}));
409
- (function(LayoutDataBackgroundType2) {
410
- LayoutDataBackgroundType2["COLOR"] = "COLOR";
411
- LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
417
+ (function(LayoutDataBackgroundType3) {
418
+ LayoutDataBackgroundType3["COLOR"] = "COLOR";
419
+ LayoutDataBackgroundType3["GRADIENT"] = "GRADIENT";
412
420
  })(LayoutDataBackgroundType || (LayoutDataBackgroundType = {}));
413
- (function(BackdropType2) {
414
- BackdropType2["COLOR"] = "COLOR";
415
- BackdropType2["GRADIENT"] = "GRADIENT";
421
+ (function(BackdropType3) {
422
+ BackdropType3["COLOR"] = "COLOR";
423
+ BackdropType3["GRADIENT"] = "GRADIENT";
416
424
  })(BackdropType || (BackdropType = {}));
417
425
  (function(VerticalAlignmentAlignment5) {
418
426
  VerticalAlignmentAlignment5["TOP"] = "TOP";
@@ -427,26 +435,39 @@ var init_types_impl = __esm({
427
435
  DesignTarget5["LAYOUT"] = "LAYOUT";
428
436
  DesignTarget5["CELL"] = "CELL";
429
437
  })(DesignTarget || (DesignTarget = {}));
430
- (function(ImageScalingScaling2) {
431
- ImageScalingScaling2["AUTO"] = "AUTO";
432
- ImageScalingScaling2["CONTAIN"] = "CONTAIN";
433
- ImageScalingScaling2["COVER"] = "COVER";
438
+ (function(ImageScalingScaling3) {
439
+ ImageScalingScaling3["AUTO"] = "AUTO";
440
+ ImageScalingScaling3["CONTAIN"] = "CONTAIN";
441
+ ImageScalingScaling3["COVER"] = "COVER";
434
442
  })(ImageScalingScaling || (ImageScalingScaling = {}));
435
- (function(ImagePositionPosition2) {
436
- ImagePositionPosition2["CENTER"] = "CENTER";
437
- ImagePositionPosition2["CENTER_LEFT"] = "CENTER_LEFT";
438
- ImagePositionPosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
439
- ImagePositionPosition2["TOP"] = "TOP";
440
- ImagePositionPosition2["TOP_LEFT"] = "TOP_LEFT";
441
- ImagePositionPosition2["TOP_RIGHT"] = "TOP_RIGHT";
442
- ImagePositionPosition2["BOTTOM"] = "BOTTOM";
443
- ImagePositionPosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
444
- ImagePositionPosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
443
+ (function(ImagePositionPosition3) {
444
+ ImagePositionPosition3["CENTER"] = "CENTER";
445
+ ImagePositionPosition3["CENTER_LEFT"] = "CENTER_LEFT";
446
+ ImagePositionPosition3["CENTER_RIGHT"] = "CENTER_RIGHT";
447
+ ImagePositionPosition3["TOP"] = "TOP";
448
+ ImagePositionPosition3["TOP_LEFT"] = "TOP_LEFT";
449
+ ImagePositionPosition3["TOP_RIGHT"] = "TOP_RIGHT";
450
+ ImagePositionPosition3["BOTTOM"] = "BOTTOM";
451
+ ImagePositionPosition3["BOTTOM_LEFT"] = "BOTTOM_LEFT";
452
+ ImagePositionPosition3["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
445
453
  })(ImagePositionPosition || (ImagePositionPosition = {}));
446
- (function(CardDataBackgroundType2) {
447
- CardDataBackgroundType2["COLOR"] = "COLOR";
448
- CardDataBackgroundType2["GRADIENT"] = "GRADIENT";
454
+ (function(CardDataBackgroundType3) {
455
+ CardDataBackgroundType3["COLOR"] = "COLOR";
456
+ CardDataBackgroundType3["GRADIENT"] = "GRADIENT";
449
457
  })(CardDataBackgroundType || (CardDataBackgroundType = {}));
458
+ (function(ListStyle3) {
459
+ ListStyle3["PLAIN"] = "PLAIN";
460
+ ListStyle3["NUMBERED"] = "NUMBERED";
461
+ ListStyle3["LETTERS"] = "LETTERS";
462
+ ListStyle3["ROMAN"] = "ROMAN";
463
+ ListStyle3["BULLETED"] = "BULLETED";
464
+ ListStyle3["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
465
+ ListStyle3["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
466
+ })(ListStyle || (ListStyle = {}));
467
+ (function(Indentation3) {
468
+ Indentation3["NESTED"] = "NESTED";
469
+ Indentation3["FLAT"] = "FLAT";
470
+ })(Indentation || (Indentation = {}));
450
471
  (function(ImagePosition5) {
451
472
  ImagePosition5["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
452
473
  ImagePosition5["ABOVE"] = "ABOVE";
@@ -490,12 +511,12 @@ var init_types_impl = __esm({
490
511
  ArrayItemsItemType3["BOOLEAN"] = "BOOLEAN";
491
512
  ArrayItemsItemType3["OBJECT"] = "OBJECT";
492
513
  })(ArrayItemsItemType || (ArrayItemsItemType = {}));
493
- (function(PropertiesTypePropertiesTypeEnum3) {
494
- PropertiesTypePropertiesTypeEnum3["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
495
- PropertiesTypePropertiesTypeEnum3["STRING"] = "STRING";
496
- PropertiesTypePropertiesTypeEnum3["NUMBER"] = "NUMBER";
497
- PropertiesTypePropertiesTypeEnum3["BOOLEAN"] = "BOOLEAN";
498
- PropertiesTypePropertiesTypeEnum3["ARRAY"] = "ARRAY";
514
+ (function(PropertiesTypePropertiesTypeEnum4) {
515
+ PropertiesTypePropertiesTypeEnum4["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
516
+ PropertiesTypePropertiesTypeEnum4["STRING"] = "STRING";
517
+ PropertiesTypePropertiesTypeEnum4["NUMBER"] = "NUMBER";
518
+ PropertiesTypePropertiesTypeEnum4["BOOLEAN"] = "BOOLEAN";
519
+ PropertiesTypePropertiesTypeEnum4["ARRAY"] = "ARRAY";
499
520
  })(PropertiesTypePropertiesTypeEnum || (PropertiesTypePropertiesTypeEnum = {}));
500
521
  (function(ArrayComponentType3) {
501
522
  ArrayComponentType3["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
@@ -535,6 +556,7 @@ var init_types_impl = __esm({
535
556
  (function(ObjectArrayComponentType4) {
536
557
  ObjectArrayComponentType4["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
537
558
  ObjectArrayComponentType4["REPEATER"] = "REPEATER";
559
+ ObjectArrayComponentType4["PIKACHU"] = "PIKACHU";
538
560
  })(ObjectArrayComponentType || (ObjectArrayComponentType = {}));
539
561
  (function(InputFieldSchedulingComponentType3) {
540
562
  InputFieldSchedulingComponentType3["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
@@ -5493,12 +5515,12 @@ var init_types_impl2 = __esm({
5493
5515
  ArrayItemsItemType3["BOOLEAN"] = "BOOLEAN";
5494
5516
  ArrayItemsItemType3["OBJECT"] = "OBJECT";
5495
5517
  })(ArrayItemsItemType2 || (ArrayItemsItemType2 = {}));
5496
- (function(PropertiesTypePropertiesTypeEnum3) {
5497
- PropertiesTypePropertiesTypeEnum3["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
5498
- PropertiesTypePropertiesTypeEnum3["STRING"] = "STRING";
5499
- PropertiesTypePropertiesTypeEnum3["NUMBER"] = "NUMBER";
5500
- PropertiesTypePropertiesTypeEnum3["BOOLEAN"] = "BOOLEAN";
5501
- PropertiesTypePropertiesTypeEnum3["ARRAY"] = "ARRAY";
5518
+ (function(PropertiesTypePropertiesTypeEnum4) {
5519
+ PropertiesTypePropertiesTypeEnum4["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
5520
+ PropertiesTypePropertiesTypeEnum4["STRING"] = "STRING";
5521
+ PropertiesTypePropertiesTypeEnum4["NUMBER"] = "NUMBER";
5522
+ PropertiesTypePropertiesTypeEnum4["BOOLEAN"] = "BOOLEAN";
5523
+ PropertiesTypePropertiesTypeEnum4["ARRAY"] = "ARRAY";
5502
5524
  })(PropertiesTypePropertiesTypeEnum2 || (PropertiesTypePropertiesTypeEnum2 = {}));
5503
5525
  (function(ArrayComponentType3) {
5504
5526
  ArrayComponentType3["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
@@ -25985,6 +26007,9 @@ var EVENTS_FIELD_TYPES = {
25985
26007
  EVENTS_RSVP: "EVENTS_RSVP",
25986
26008
  EVENTS_REPEATER: "EVENTS_REPEATER"
25987
26009
  };
26010
+ var ENTITY_PICKER_FIELD_TYPES = {
26011
+ PIKACHU: "PIKACHU"
26012
+ };
25988
26013
  var INPUT_FIELD_TYPES = {
25989
26014
  ...CONTACTS_FIELD_TYPES,
25990
26015
  ...QUIZ_FIELD_TYPES,
@@ -25994,7 +26019,8 @@ var INPUT_FIELD_TYPES = {
25994
26019
  ...BOOKINGS_FIELD_TYPES,
25995
26020
  ...PAYMENTS_FIELD_TYPES,
25996
26021
  ...COMMON_FIELD_TYPES,
25997
- ...EVENTS_FIELD_TYPES
26022
+ ...EVENTS_FIELD_TYPES,
26023
+ ...ENTITY_PICKER_FIELD_TYPES
25998
26024
  };
25999
26025
 
26000
26026
  // ../form-fields/dist/esm/constants/readonly-field-types.js
@@ -26419,39 +26445,6 @@ function startOfDay(date) {
26419
26445
  return result2;
26420
26446
  }
26421
26447
 
26422
- // ../form-fields/dist/esm/field-settings/settings-shared/availability/availability.js
26423
- var DEFAULT_AVAILABILITY = {
26424
- daysOfWeek: [0, 1, 2, 3, 4, 5, 6]
26425
- };
26426
- function isDateAvailable(date, availability) {
26427
- const d = date instanceof Date ? date : new Date(date);
26428
- if (availability.daysOfWeek) {
26429
- const dayOfWeek = d.getDay();
26430
- if (!availability.daysOfWeek.includes(dayOfWeek)) {
26431
- return false;
26432
- }
26433
- }
26434
- if (availability.availableDateRanges && availability.availableDateRanges.length > 0) {
26435
- const isInAvailableRange = availability.availableDateRanges.some((range) => isDateInRange(d, range));
26436
- if (!isInAvailableRange) {
26437
- return false;
26438
- }
26439
- }
26440
- if (availability.unavailableDateRanges && availability.unavailableDateRanges.length > 0) {
26441
- const isInUnavailableRange = availability.unavailableDateRanges.some((range) => isDateInRange(d, range));
26442
- if (isInUnavailableRange) {
26443
- return false;
26444
- }
26445
- }
26446
- return true;
26447
- }
26448
- function isDateInRange(date, range) {
26449
- const checkDate = startOfDay(date);
26450
- const startDate = startOfDay(new Date(range.start));
26451
- const endDate = startOfDay(new Date(range.end));
26452
- return checkDate >= startDate && checkDate <= endDate;
26453
- }
26454
-
26455
26448
  // ../form-fields/dist/esm/date-localization/get-first-day-of-the-week.js
26456
26449
  var DEFAULT_FIRST_DAY = 1;
26457
26450
  function getFirstDayOfTheWeek(locale) {
@@ -26501,6 +26494,53 @@ function getFirstDayManual(locale) {
26501
26494
  return DEFAULT_FIRST_DAY;
26502
26495
  }
26503
26496
  }
26497
+
26498
+ // ../form-fields/dist/esm/field-settings/settings-shared/availability/availability.js
26499
+ init_types_impl();
26500
+ var ALL_DAYS = [DayOfWeek.SUNDAY, DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY, DayOfWeek.SATURDAY];
26501
+ var DEFAULT_AVAILABILITY = {
26502
+ availableDays: ALL_DAYS
26503
+ };
26504
+ var NUMERIC_DAY_TO_STRING = {
26505
+ 0: DayOfWeek.SUNDAY,
26506
+ 1: DayOfWeek.MONDAY,
26507
+ 2: DayOfWeek.TUESDAY,
26508
+ 3: DayOfWeek.WEDNESDAY,
26509
+ 4: DayOfWeek.THURSDAY,
26510
+ 5: DayOfWeek.FRIDAY,
26511
+ 6: DayOfWeek.SATURDAY
26512
+ };
26513
+ function isDateAvailable(date, availability) {
26514
+ const d = date instanceof Date ? date : new Date(date);
26515
+ if (availability.availableDays) {
26516
+ const dayOfWeek = NUMERIC_DAY_TO_STRING[d.getDay()];
26517
+ if (!availability.availableDays.includes(dayOfWeek)) {
26518
+ return false;
26519
+ }
26520
+ }
26521
+ if (availability.availableDates && availability.availableDates.length > 0) {
26522
+ const isInAvailableRange = availability.availableDates.some((range) => isDateInRange(d, range));
26523
+ if (!isInAvailableRange) {
26524
+ return false;
26525
+ }
26526
+ }
26527
+ if (availability.unavailableDates && availability.unavailableDates.length > 0) {
26528
+ const isInUnavailableRange = availability.unavailableDates.some((range) => isDateInRange(d, range));
26529
+ if (isInUnavailableRange) {
26530
+ return false;
26531
+ }
26532
+ }
26533
+ return true;
26534
+ }
26535
+ function isDateInRange(date, range) {
26536
+ if (!range.start || !range.end) {
26537
+ return true;
26538
+ }
26539
+ const checkDate = startOfDay(date);
26540
+ const startDate = startOfDay(new Date(range.start));
26541
+ const endDate = startOfDay(new Date(range.end));
26542
+ return checkDate >= startDate && checkDate <= endDate;
26543
+ }
26504
26544
  var HttpClientContext = /* @__PURE__ */ React42.createContext(void 0);
26505
26545
  var FormContext = /* @__PURE__ */ React42.createContext(void 0);
26506
26546
  function useForm() {
@@ -27261,6 +27301,7 @@ var FIELD_PROPS_MAPPERS = {
27261
27301
  DONATION: DonationMapper,
27262
27302
  EVENTS_RSVP: RadioGroupMapper,
27263
27303
  EVENTS_REPEATER: TextMapper,
27304
+ PIKACHU: DefaultMapper,
27264
27305
  FILE_UPLOAD: FileUploadMapper,
27265
27306
  SIGNATURE: SignatureMapper,
27266
27307
  RATING_INPUT: RatingInputMapper,
@@ -28666,7 +28707,19 @@ var NodeType4;
28666
28707
  NodeType5["LAYOUT"] = "LAYOUT";
28667
28708
  NodeType5["LAYOUT_CELL"] = "LAYOUT_CELL";
28668
28709
  NodeType5["SHAPE"] = "SHAPE";
28710
+ NodeType5["CARD"] = "CARD";
28711
+ NodeType5["TOC"] = "TOC";
28669
28712
  })(NodeType4 || (NodeType4 = {}));
28713
+ var StylesBackgroundType2;
28714
+ (function(StylesBackgroundType3) {
28715
+ StylesBackgroundType3["COLOR"] = "COLOR";
28716
+ StylesBackgroundType3["GRADIENT"] = "GRADIENT";
28717
+ })(StylesBackgroundType2 || (StylesBackgroundType2 = {}));
28718
+ var GradientType2;
28719
+ (function(GradientType3) {
28720
+ GradientType3["LINEAR"] = "LINEAR";
28721
+ GradientType3["RADIAL"] = "RADIAL";
28722
+ })(GradientType2 || (GradientType2 = {}));
28670
28723
  var WidthType4;
28671
28724
  (function(WidthType5) {
28672
28725
  WidthType5["CONTENT"] = "CONTENT";
@@ -28766,6 +28819,7 @@ var Source4;
28766
28819
  Source5["HTML"] = "HTML";
28767
28820
  Source5["ADSENSE"] = "ADSENSE";
28768
28821
  Source5["AI"] = "AI";
28822
+ Source5["AI_WIDGET"] = "AI_WIDGET";
28769
28823
  })(Source4 || (Source4 = {}));
28770
28824
  var Position4;
28771
28825
  (function(Position5) {
@@ -28917,6 +28971,16 @@ var Origin4;
28917
28971
  Origin5["IMAGE"] = "IMAGE";
28918
28972
  Origin5["LAYOUT"] = "LAYOUT";
28919
28973
  })(Origin4 || (Origin4 = {}));
28974
+ var LayoutDataBackgroundType2;
28975
+ (function(LayoutDataBackgroundType3) {
28976
+ LayoutDataBackgroundType3["COLOR"] = "COLOR";
28977
+ LayoutDataBackgroundType3["GRADIENT"] = "GRADIENT";
28978
+ })(LayoutDataBackgroundType2 || (LayoutDataBackgroundType2 = {}));
28979
+ var BackdropType2;
28980
+ (function(BackdropType3) {
28981
+ BackdropType3["COLOR"] = "COLOR";
28982
+ BackdropType3["GRADIENT"] = "GRADIENT";
28983
+ })(BackdropType2 || (BackdropType2 = {}));
28920
28984
  var VerticalAlignmentAlignment4;
28921
28985
  (function(VerticalAlignmentAlignment5) {
28922
28986
  VerticalAlignmentAlignment5["TOP"] = "TOP";
@@ -28933,6 +28997,44 @@ var DesignTarget4;
28933
28997
  DesignTarget5["LAYOUT"] = "LAYOUT";
28934
28998
  DesignTarget5["CELL"] = "CELL";
28935
28999
  })(DesignTarget4 || (DesignTarget4 = {}));
29000
+ var ImageScalingScaling2;
29001
+ (function(ImageScalingScaling3) {
29002
+ ImageScalingScaling3["AUTO"] = "AUTO";
29003
+ ImageScalingScaling3["CONTAIN"] = "CONTAIN";
29004
+ ImageScalingScaling3["COVER"] = "COVER";
29005
+ })(ImageScalingScaling2 || (ImageScalingScaling2 = {}));
29006
+ var ImagePositionPosition2;
29007
+ (function(ImagePositionPosition3) {
29008
+ ImagePositionPosition3["CENTER"] = "CENTER";
29009
+ ImagePositionPosition3["CENTER_LEFT"] = "CENTER_LEFT";
29010
+ ImagePositionPosition3["CENTER_RIGHT"] = "CENTER_RIGHT";
29011
+ ImagePositionPosition3["TOP"] = "TOP";
29012
+ ImagePositionPosition3["TOP_LEFT"] = "TOP_LEFT";
29013
+ ImagePositionPosition3["TOP_RIGHT"] = "TOP_RIGHT";
29014
+ ImagePositionPosition3["BOTTOM"] = "BOTTOM";
29015
+ ImagePositionPosition3["BOTTOM_LEFT"] = "BOTTOM_LEFT";
29016
+ ImagePositionPosition3["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
29017
+ })(ImagePositionPosition2 || (ImagePositionPosition2 = {}));
29018
+ var CardDataBackgroundType2;
29019
+ (function(CardDataBackgroundType3) {
29020
+ CardDataBackgroundType3["COLOR"] = "COLOR";
29021
+ CardDataBackgroundType3["GRADIENT"] = "GRADIENT";
29022
+ })(CardDataBackgroundType2 || (CardDataBackgroundType2 = {}));
29023
+ var ListStyle2;
29024
+ (function(ListStyle3) {
29025
+ ListStyle3["PLAIN"] = "PLAIN";
29026
+ ListStyle3["NUMBERED"] = "NUMBERED";
29027
+ ListStyle3["LETTERS"] = "LETTERS";
29028
+ ListStyle3["ROMAN"] = "ROMAN";
29029
+ ListStyle3["BULLETED"] = "BULLETED";
29030
+ ListStyle3["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
29031
+ ListStyle3["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
29032
+ })(ListStyle2 || (ListStyle2 = {}));
29033
+ var Indentation2;
29034
+ (function(Indentation3) {
29035
+ Indentation3["NESTED"] = "NESTED";
29036
+ Indentation3["FLAT"] = "FLAT";
29037
+ })(Indentation2 || (Indentation2 = {}));
28936
29038
  var ImagePosition4;
28937
29039
  (function(ImagePosition5) {
28938
29040
  ImagePosition5["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
@@ -28984,14 +29086,14 @@ var ItemType;
28984
29086
  ItemType2["BOOLEAN"] = "BOOLEAN";
28985
29087
  ItemType2["OBJECT"] = "OBJECT";
28986
29088
  })(ItemType || (ItemType = {}));
28987
- var PropertiesTypeEnum;
28988
- (function(PropertiesTypeEnum2) {
28989
- PropertiesTypeEnum2["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
28990
- PropertiesTypeEnum2["STRING"] = "STRING";
28991
- PropertiesTypeEnum2["NUMBER"] = "NUMBER";
28992
- PropertiesTypeEnum2["BOOLEAN"] = "BOOLEAN";
28993
- PropertiesTypeEnum2["ARRAY"] = "ARRAY";
28994
- })(PropertiesTypeEnum || (PropertiesTypeEnum = {}));
29089
+ var PropertiesTypeEnum2;
29090
+ (function(PropertiesTypeEnum3) {
29091
+ PropertiesTypeEnum3["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
29092
+ PropertiesTypeEnum3["STRING"] = "STRING";
29093
+ PropertiesTypeEnum3["NUMBER"] = "NUMBER";
29094
+ PropertiesTypeEnum3["BOOLEAN"] = "BOOLEAN";
29095
+ PropertiesTypeEnum3["ARRAY"] = "ARRAY";
29096
+ })(PropertiesTypeEnum2 || (PropertiesTypeEnum2 = {}));
28995
29097
  var ComponentType;
28996
29098
  (function(ComponentType2) {
28997
29099
  ComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
@@ -29049,7 +29151,15 @@ var ObjectArrayComponentType3;
29049
29151
  (function(ObjectArrayComponentType4) {
29050
29152
  ObjectArrayComponentType4["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
29051
29153
  ObjectArrayComponentType4["REPEATER"] = "REPEATER";
29154
+ ObjectArrayComponentType4["PIKACHU"] = "PIKACHU";
29052
29155
  })(ObjectArrayComponentType3 || (ObjectArrayComponentType3 = {}));
29156
+ var PropertiesTypePropertiesTypeEnum3;
29157
+ (function(PropertiesTypePropertiesTypeEnum4) {
29158
+ PropertiesTypePropertiesTypeEnum4["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
29159
+ PropertiesTypePropertiesTypeEnum4["STRING"] = "STRING";
29160
+ PropertiesTypePropertiesTypeEnum4["NUMBER"] = "NUMBER";
29161
+ PropertiesTypePropertiesTypeEnum4["BOOLEAN"] = "BOOLEAN";
29162
+ })(PropertiesTypePropertiesTypeEnum3 || (PropertiesTypePropertiesTypeEnum3 = {}));
29053
29163
  var SchedulingComponentType;
29054
29164
  (function(SchedulingComponentType2) {
29055
29165
  SchedulingComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
@@ -30879,6 +30989,7 @@ var DEFAULT_VALUE = {
30879
30989
  [FIELD_TYPES.SERVICES_MULTI_CHOICE]: resolveDefaultValue,
30880
30990
  [FIELD_TYPES.EVENTS_RSVP]: resolveDefaultValue,
30881
30991
  [FIELD_TYPES.EVENTS_REPEATER]: resolveDefaultValue,
30992
+ [FIELD_TYPES.PIKACHU]: resolveDefaultValue,
30882
30993
  [FIELD_TYPES.PHONE]: resolveDefaultValue
30883
30994
  };
30884
30995
  function resolveDefaultValue(field) {
@@ -31079,6 +31190,7 @@ var ADDITIONAL_FIELD_VALIDATION = {
31079
31190
  [FIELD_TYPES.SERVICES_MULTI_CHOICE]: null,
31080
31191
  [FIELD_TYPES.EVENTS_RSVP]: null,
31081
31192
  [FIELD_TYPES.EVENTS_REPEATER]: null,
31193
+ [FIELD_TYPES.PIKACHU]: null,
31082
31194
  [FIELD_TYPES.IMAGE_CHOICE]: null,
31083
31195
  [FIELD_TYPES.PHONE]: null
31084
31196
  };
@@ -32632,12 +32744,19 @@ var NORMALIZED_VALUE = {
32632
32744
  [FIELD_TYPES.SERVICES_MULTI_CHOICE]: removeInvalidOptions,
32633
32745
  [FIELD_TYPES.EVENTS_RSVP]: acceptOnlyValidOptionByValue,
32634
32746
  [FIELD_TYPES.EVENTS_REPEATER]: normalizeRepeater,
32747
+ [FIELD_TYPES.PIKACHU]: acceptObjectArrayValue,
32635
32748
  [FIELD_TYPES.IMAGE_CHOICE]: removeInvalidOptions,
32636
32749
  [FIELD_TYPES.PHONE]: acceptPhoneValue
32637
32750
  };
32638
32751
  function keepValueUnchanged({ fieldValue }) {
32639
32752
  return fieldValue;
32640
32753
  }
32754
+ function acceptObjectArrayValue({ fieldValue }) {
32755
+ if (fieldValue === EMPTY_VALUE) {
32756
+ return fieldValue;
32757
+ }
32758
+ return Array.isArray(fieldValue) ? fieldValue : EMPTY_VALUE;
32759
+ }
32641
32760
  function acceptPhoneValue({ fieldValue }) {
32642
32761
  const isEmptyValue = fieldValue === EMPTY_VALUE;
32643
32762
  if (isEmptyValue) {
@@ -33527,6 +33646,8 @@ var FIELD_TYPE_MAP = {
33527
33646
  SUBMIT_BUTTON: "SUBMIT_BUTTON",
33528
33647
  SERVICES_MULTI_CHOICE: "CHECKBOX_GROUP",
33529
33648
  IMAGE_CHOICE: "IMAGE_CHOICE",
33649
+ // ENTITY_PICKER_FIELD_TYPES
33650
+ PIKACHU: "TEXT_INPUT",
33530
33651
  // fields that have not been implemented
33531
33652
  NESTED_FORM: "TEXT_INPUT",
33532
33653
  PASSWORD: "TEXT_INPUT",