@wix/form-public 0.215.0 → 0.217.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
@@ -20016,29 +20016,9 @@ function buildObjectArrayValidation(target, objectArrayOptions, validationMode)
20016
20016
  ...objectArrayOptions.minItems && validationMode !== ValidationMode.UNRESTRICTED_UPDATE && {
20017
20017
  minItems: objectArrayOptions.minItems
20018
20018
  },
20019
- items: objectArrayOptions.itemProperties ? buildItemPropertiesSchema(objectArrayOptions.itemProperties) : { $ref: target }
20020
- };
20021
- }
20022
- function buildItemPropertiesSchema(itemProperties) {
20023
- const typeMap = {
20024
- STRING: "string",
20025
- NUMBER: "number",
20026
- BOOLEAN: "boolean"
20027
- };
20028
- const properties = {};
20029
- const required = [];
20030
- for (const [key, value] of Object.entries(itemProperties)) {
20031
- const jsonType = value.propertiesType && typeMap[value.propertiesType];
20032
- if (jsonType) {
20033
- properties[key] = { type: jsonType };
20034
- required.push(key);
20019
+ items: {
20020
+ $ref: target
20035
20021
  }
20036
- }
20037
- return {
20038
- type: "object",
20039
- properties,
20040
- required,
20041
- additionalProperties: false
20042
20022
  };
20043
20023
  }
20044
20024
  function buildPaymentValidation(paymentOptions, validationMode) {
@@ -22934,6 +22914,7 @@ var require_messages_en = __commonJS({
22934
22914
  "dext-checkbox.input.error.message.not-allowed-value": "Check the box to continue.",
22935
22915
  "field.date.placeholder.year": "Year",
22936
22916
  "date-picker.input.error.message.max-value-error": "Enter a valid date from January 1, 1000 to today.",
22917
+ "settings.score.input-label": "Points",
22937
22918
  "field.signature.text.placeholder": "Type your signature",
22938
22919
  "dext-date-picker.input.error.message.format-error": "Choose a date.",
22939
22920
  "form.file-upload.error.upload-limit": "There is an upload limit of {limit, plural, one {# file} other {# files}}.",
@@ -30196,8 +30177,6 @@ function resolveObjectArrayComponent(objectArrayComponent) {
30196
30177
  switch (objectArrayComponent.componentType) {
30197
30178
  case ObjectArrayComponentType3.REPEATER:
30198
30179
  return takeRepeaterViewProperties(objectArrayComponent.repeaterOptions);
30199
- case ObjectArrayComponentType3.PIKACHU:
30200
- return takePikachuViewProperties(objectArrayComponent.pikachuOptions);
30201
30180
  default:
30202
30181
  throw new Error(`Unknown object array component type: ${objectArrayComponent.componentType}`);
30203
30182
  }
@@ -30214,21 +30193,6 @@ function takeRepeaterViewProperties(repeater) {
30214
30193
  }
30215
30194
  };
30216
30195
  }
30217
- var ProviderNameKey = "providerName";
30218
- var FilterKey = "filter";
30219
- function takePikachuViewProperties(pikachu) {
30220
- return {
30221
- [LabelKey]: pikachu.label,
30222
- [HideLabelKey]: !pikachu.showLabel,
30223
- [ProviderNameKey]: pikachu.providerName,
30224
- ...pikachu.description && {
30225
- [DescriptionKey]: pikachu.description
30226
- },
30227
- ...pikachu.filter && {
30228
- [FilterKey]: pikachu.filter
30229
- }
30230
- };
30231
- }
30232
30196
  function resolveQuizFieldSettings(quizFieldSettings) {
30233
30197
  var _quizFieldSettings$co;
30234
30198
  const correctAnswers = quizFieldSettings == null || (_quizFieldSettings$co = quizFieldSettings.correctAnswersList) == null ? void 0 : _quizFieldSettings$co.correctAnswers;