@remoteoss/json-schema-form 0.1.1-dev.20230614173637 → 0.1.1-dev.20230615153439
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 -5
- package/dist/index.js +4 -5
- package/dist/standalone.js +359 -788
- package/json-schema-form.d.ts +1 -0
- package/package.json +3 -2
- package/src/tests/createHeadlessForm.test.js +18 -20
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/*!
|
|
3
3
|
Copyright (c) 2023 Remote Technology, Inc.
|
|
4
|
-
NPM Package: @remoteoss/json-schema-form@0.1.1-dev.
|
|
5
|
-
Generated:
|
|
4
|
+
NPM Package: @remoteoss/json-schema-form@0.1.1-dev.20230615153439
|
|
5
|
+
Generated: Thu, 15 Jun 2023 15:34:55 GMT
|
|
6
6
|
|
|
7
7
|
MIT License
|
|
8
8
|
|
|
@@ -591,7 +591,7 @@ function getField(fieldName, fields) {
|
|
|
591
591
|
}
|
|
592
592
|
function validateFieldSchema(field, value) {
|
|
593
593
|
const validator = buildYupSchema(field);
|
|
594
|
-
return validator().isValidSync(value
|
|
594
|
+
return validator().isValidSync(value);
|
|
595
595
|
}
|
|
596
596
|
function compareFormValueWithSchemaValue(formValue, schemaValue) {
|
|
597
597
|
const currentPropertyValue = typeof schemaValue === "number" ? schemaValue : schemaValue || void 0;
|
|
@@ -899,8 +899,7 @@ var handleValuesChange = (fields, jsonSchema, config) => (values) => {
|
|
|
899
899
|
let errors;
|
|
900
900
|
try {
|
|
901
901
|
lazySchema.validateSync(values, {
|
|
902
|
-
abortEarly: false
|
|
903
|
-
strict: true
|
|
902
|
+
abortEarly: false
|
|
904
903
|
});
|
|
905
904
|
} catch (err) {
|
|
906
905
|
if (err.name === "ValidationError") {
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/*!
|
|
3
3
|
Copyright (c) 2023 Remote Technology, Inc.
|
|
4
|
-
NPM Package: @remoteoss/json-schema-form@0.1.1-dev.
|
|
5
|
-
Generated:
|
|
4
|
+
NPM Package: @remoteoss/json-schema-form@0.1.1-dev.20230615153439
|
|
5
|
+
Generated: Thu, 15 Jun 2023 15:34:55 GMT
|
|
6
6
|
|
|
7
7
|
MIT License
|
|
8
8
|
|
|
@@ -555,7 +555,7 @@ function getField(fieldName, fields) {
|
|
|
555
555
|
}
|
|
556
556
|
function validateFieldSchema(field, value) {
|
|
557
557
|
const validator = buildYupSchema(field);
|
|
558
|
-
return validator().isValidSync(value
|
|
558
|
+
return validator().isValidSync(value);
|
|
559
559
|
}
|
|
560
560
|
function compareFormValueWithSchemaValue(formValue, schemaValue) {
|
|
561
561
|
const currentPropertyValue = typeof schemaValue === "number" ? schemaValue : schemaValue || void 0;
|
|
@@ -863,8 +863,7 @@ var handleValuesChange = (fields, jsonSchema, config) => (values) => {
|
|
|
863
863
|
let errors;
|
|
864
864
|
try {
|
|
865
865
|
lazySchema.validateSync(values, {
|
|
866
|
-
abortEarly: false
|
|
867
|
-
strict: true
|
|
866
|
+
abortEarly: false
|
|
868
867
|
});
|
|
869
868
|
} catch (err) {
|
|
870
869
|
if (err.name === "ValidationError") {
|