@wix/form-public 0.215.0 → 0.216.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 +2 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -39
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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:
|
|
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) {
|
|
@@ -30196,8 +30176,6 @@ function resolveObjectArrayComponent(objectArrayComponent) {
|
|
|
30196
30176
|
switch (objectArrayComponent.componentType) {
|
|
30197
30177
|
case ObjectArrayComponentType3.REPEATER:
|
|
30198
30178
|
return takeRepeaterViewProperties(objectArrayComponent.repeaterOptions);
|
|
30199
|
-
case ObjectArrayComponentType3.PIKACHU:
|
|
30200
|
-
return takePikachuViewProperties(objectArrayComponent.pikachuOptions);
|
|
30201
30179
|
default:
|
|
30202
30180
|
throw new Error(`Unknown object array component type: ${objectArrayComponent.componentType}`);
|
|
30203
30181
|
}
|
|
@@ -30214,21 +30192,6 @@ function takeRepeaterViewProperties(repeater) {
|
|
|
30214
30192
|
}
|
|
30215
30193
|
};
|
|
30216
30194
|
}
|
|
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
30195
|
function resolveQuizFieldSettings(quizFieldSettings) {
|
|
30233
30196
|
var _quizFieldSettings$co;
|
|
30234
30197
|
const correctAnswers = quizFieldSettings == null || (_quizFieldSettings$co = quizFieldSettings.correctAnswersList) == null ? void 0 : _quizFieldSettings$co.correctAnswers;
|