@remoteoss/json-schema-form 0.7.4-beta.0 → 0.7.4-dev.20231107114922
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/CHANGELOG.md +2 -8
- package/dist/index.cjs +3 -4
- package/dist/index.js +3 -4
- package/dist/standalone.js +3 -4
- package/package.json +1 -1
- package/src/tests/conditions.test.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
#### 0.7.4-beta.0 (2023-11-07)
|
|
2
|
-
|
|
3
|
-
##### Chores
|
|
4
|
-
|
|
5
|
-
- Follow-up of #57. Ignore internal attributes from conditional attributes removal ([#58](https://github.com/remoteoss/json-schema-form/pull/58)) ([ee762c2e](https://github.com/remoteoss/json-schema-form/commit/ee762c2e90834a9ec0d7b88af47cefe1e3a03dd1))
|
|
6
|
-
|
|
7
1
|
#### 0.7.3-beta.0 (2023-11-07)
|
|
8
2
|
|
|
9
3
|
##### Bug Fixes
|
|
10
4
|
|
|
11
|
-
|
|
5
|
+
* Remove conditional attributes after the condition is unmatched ([#57](https://github.com/remoteoss/json-schema-form/pull/57)) ([8bac7145](https://github.com/remoteoss/json-schema-form/commit/8bac7145dfdd4136c0613044389666a614eb12f7))
|
|
12
6
|
|
|
13
7
|
#### 0.7.2-beta.0 (2023-11-06)
|
|
14
8
|
|
|
15
9
|
##### Bug Fixes
|
|
16
10
|
|
|
17
|
-
|
|
11
|
+
* **select/radio:** Support oneOf[].pattern validation ([#47](https://github.com/remoteoss/json-schema-form/pull/47)) ([5a4bb592](https://github.com/remoteoss/json-schema-form/commit/5a4bb59266ff595a9cb65f5b261a4ae2f3ad279f))
|
|
18
12
|
|
|
19
13
|
#### 0.7.1-beta.0 (2023-10-31)
|
|
20
14
|
|
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.7.4-
|
|
5
|
-
Generated: Tue, 07 Nov 2023
|
|
4
|
+
NPM Package: @remoteoss/json-schema-form@0.7.4-dev.20231107114922
|
|
5
|
+
Generated: Tue, 07 Nov 2023 11:49:38 GMT
|
|
6
6
|
|
|
7
7
|
MIT License
|
|
8
8
|
|
|
@@ -1076,9 +1076,8 @@ var dynamicInternalJsfAttrs = [
|
|
|
1076
1076
|
// To be deprecated in favor of json-logic
|
|
1077
1077
|
"scopedJsonSchema",
|
|
1078
1078
|
// The respective JSON Schema
|
|
1079
|
+
"Component"
|
|
1079
1080
|
// HOTFIX/TODO Internal customizations, check test conditions.test.js for more info.
|
|
1080
|
-
"Component",
|
|
1081
|
-
"calculateDynamicProperties"
|
|
1082
1081
|
];
|
|
1083
1082
|
var dynamicInternalJsfAttrsObj = Object.fromEntries(
|
|
1084
1083
|
dynamicInternalJsfAttrs.map((k) => [k, true])
|
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.7.4-
|
|
5
|
-
Generated: Tue, 07 Nov 2023
|
|
4
|
+
NPM Package: @remoteoss/json-schema-form@0.7.4-dev.20231107114922
|
|
5
|
+
Generated: Tue, 07 Nov 2023 11:49:38 GMT
|
|
6
6
|
|
|
7
7
|
MIT License
|
|
8
8
|
|
|
@@ -1040,9 +1040,8 @@ var dynamicInternalJsfAttrs = [
|
|
|
1040
1040
|
// To be deprecated in favor of json-logic
|
|
1041
1041
|
"scopedJsonSchema",
|
|
1042
1042
|
// The respective JSON Schema
|
|
1043
|
+
"Component"
|
|
1043
1044
|
// HOTFIX/TODO Internal customizations, check test conditions.test.js for more info.
|
|
1044
|
-
"Component",
|
|
1045
|
-
"calculateDynamicProperties"
|
|
1046
1045
|
];
|
|
1047
1046
|
var dynamicInternalJsfAttrsObj = Object.fromEntries(
|
|
1048
1047
|
dynamicInternalJsfAttrs.map((k) => [k, true])
|
package/dist/standalone.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.7.4-
|
|
5
|
-
Generated: Tue, 07 Nov 2023
|
|
4
|
+
NPM Package: @remoteoss/json-schema-form@0.7.4-dev.20231107114922
|
|
5
|
+
Generated: Tue, 07 Nov 2023 11:49:38 GMT
|
|
6
6
|
|
|
7
7
|
MIT License
|
|
8
8
|
|
|
@@ -12394,9 +12394,8 @@ var dynamicInternalJsfAttrs = [
|
|
|
12394
12394
|
// To be deprecated in favor of json-logic
|
|
12395
12395
|
"scopedJsonSchema",
|
|
12396
12396
|
// The respective JSON Schema
|
|
12397
|
+
"Component"
|
|
12397
12398
|
// HOTFIX/TODO Internal customizations, check test conditions.test.js for more info.
|
|
12398
|
-
"Component",
|
|
12399
|
-
"calculateDynamicProperties"
|
|
12400
12399
|
];
|
|
12401
12400
|
var dynamicInternalJsfAttrsObj = Object.fromEntries(
|
|
12402
12401
|
dynamicInternalJsfAttrs.map((k) => [k, true])
|
package/package.json
CHANGED
|
@@ -396,7 +396,6 @@ describe('Conditional attributes updated', () => {
|
|
|
396
396
|
customProperties: {
|
|
397
397
|
salary_period: {
|
|
398
398
|
Component: '<A React Component>',
|
|
399
|
-
calculateDynamicProperties: () => true,
|
|
400
399
|
},
|
|
401
400
|
},
|
|
402
401
|
}
|
|
@@ -404,16 +403,13 @@ describe('Conditional attributes updated', () => {
|
|
|
404
403
|
|
|
405
404
|
// It's there by default
|
|
406
405
|
expect(fields[1].Component).toBe('<A React Component>');
|
|
407
|
-
expect(fields[1].calculateDynamicProperties).toEqual(expect.any(Function));
|
|
408
406
|
|
|
409
407
|
// Given "Yes", it stays there too.
|
|
410
408
|
handleValidation({ is_full_time: 'yes' });
|
|
411
409
|
expect(fields[1].Component).toBe('<A React Component>');
|
|
412
|
-
expect(fields[1].calculateDynamicProperties).toEqual(expect.any(Function));
|
|
413
410
|
|
|
414
411
|
// Given "No", it stays there too.
|
|
415
412
|
handleValidation({ is_full_time: 'no' });
|
|
416
413
|
expect(fields[1].Component).toBe('<A React Component>');
|
|
417
|
-
expect(fields[1].calculateDynamicProperties).toEqual(expect.any(Function));
|
|
418
414
|
});
|
|
419
415
|
});
|