@wix/form-public 0.214.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 +4 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -40
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -19990,29 +19990,9 @@ function buildObjectArrayValidation(target, objectArrayOptions, validationMode)
|
|
|
19990
19990
|
...objectArrayOptions.minItems && validationMode !== ValidationMode.UNRESTRICTED_UPDATE && {
|
|
19991
19991
|
minItems: objectArrayOptions.minItems
|
|
19992
19992
|
},
|
|
19993
|
-
items:
|
|
19994
|
-
|
|
19995
|
-
}
|
|
19996
|
-
function buildItemPropertiesSchema(itemProperties) {
|
|
19997
|
-
const typeMap = {
|
|
19998
|
-
STRING: "string",
|
|
19999
|
-
NUMBER: "number",
|
|
20000
|
-
BOOLEAN: "boolean"
|
|
20001
|
-
};
|
|
20002
|
-
const properties = {};
|
|
20003
|
-
const required = [];
|
|
20004
|
-
for (const [key, value] of Object.entries(itemProperties)) {
|
|
20005
|
-
const jsonType = value.propertiesType && typeMap[value.propertiesType];
|
|
20006
|
-
if (jsonType) {
|
|
20007
|
-
properties[key] = { type: jsonType };
|
|
20008
|
-
required.push(key);
|
|
19993
|
+
items: {
|
|
19994
|
+
$ref: target
|
|
20009
19995
|
}
|
|
20010
|
-
}
|
|
20011
|
-
return {
|
|
20012
|
-
type: "object",
|
|
20013
|
-
properties,
|
|
20014
|
-
required,
|
|
20015
|
-
additionalProperties: false
|
|
20016
19996
|
};
|
|
20017
19997
|
}
|
|
20018
19998
|
function buildPaymentValidation(paymentOptions, validationMode) {
|
|
@@ -30170,8 +30150,6 @@ function resolveObjectArrayComponent(objectArrayComponent) {
|
|
|
30170
30150
|
switch (objectArrayComponent.componentType) {
|
|
30171
30151
|
case ObjectArrayComponentType3.REPEATER:
|
|
30172
30152
|
return takeRepeaterViewProperties(objectArrayComponent.repeaterOptions);
|
|
30173
|
-
case ObjectArrayComponentType3.PIKACHU:
|
|
30174
|
-
return takePikachuViewProperties(objectArrayComponent.pikachuOptions);
|
|
30175
30153
|
default:
|
|
30176
30154
|
throw new Error(`Unknown object array component type: ${objectArrayComponent.componentType}`);
|
|
30177
30155
|
}
|
|
@@ -30188,21 +30166,6 @@ function takeRepeaterViewProperties(repeater) {
|
|
|
30188
30166
|
}
|
|
30189
30167
|
};
|
|
30190
30168
|
}
|
|
30191
|
-
var ProviderNameKey = "providerName";
|
|
30192
|
-
var FilterKey = "filter";
|
|
30193
|
-
function takePikachuViewProperties(pikachu) {
|
|
30194
|
-
return {
|
|
30195
|
-
[LabelKey]: pikachu.label,
|
|
30196
|
-
[HideLabelKey]: !pikachu.showLabel,
|
|
30197
|
-
[ProviderNameKey]: pikachu.providerName,
|
|
30198
|
-
...pikachu.description && {
|
|
30199
|
-
[DescriptionKey]: pikachu.description
|
|
30200
|
-
},
|
|
30201
|
-
...pikachu.filter && {
|
|
30202
|
-
[FilterKey]: pikachu.filter
|
|
30203
|
-
}
|
|
30204
|
-
};
|
|
30205
|
-
}
|
|
30206
30169
|
function resolveQuizFieldSettings(quizFieldSettings) {
|
|
30207
30170
|
var _quizFieldSettings$co;
|
|
30208
30171
|
const correctAnswers = quizFieldSettings == null || (_quizFieldSettings$co = quizFieldSettings.correctAnswersList) == null ? void 0 : _quizFieldSettings$co.correctAnswers;
|
|
@@ -33460,7 +33423,8 @@ var useForm2 = ({ form: paramForm, values: paramValues, stepId, onStepIdChange,
|
|
|
33460
33423
|
}
|
|
33461
33424
|
return true;
|
|
33462
33425
|
},
|
|
33463
|
-
validateStep: (step) => validateStep(step, normalizedValues)
|
|
33426
|
+
validateStep: (step) => validateStep(step, normalizedValues),
|
|
33427
|
+
getValues: () => normalizedValues
|
|
33464
33428
|
}), [
|
|
33465
33429
|
submitForm,
|
|
33466
33430
|
validateStep,
|