@remoteoss/json-schema-form 0.7.4-dev.20231107114922 → 0.7.4-dev.20231107125305
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 -3
- package/dist/index.js +4 -3
- package/dist/standalone.js +4 -3
- package/package.json +1 -1
- package/src/tests/conditions.test.js +4 -0
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-dev.
|
|
5
|
-
Generated: Tue, 07 Nov 2023
|
|
4
|
+
NPM Package: @remoteoss/json-schema-form@0.7.4-dev.20231107125305
|
|
5
|
+
Generated: Tue, 07 Nov 2023 12:53:20 GMT
|
|
6
6
|
|
|
7
7
|
MIT License
|
|
8
8
|
|
|
@@ -1076,8 +1076,9 @@ var dynamicInternalJsfAttrs = [
|
|
|
1076
1076
|
// To be deprecated in favor of json-logic
|
|
1077
1077
|
"scopedJsonSchema",
|
|
1078
1078
|
// The respective JSON Schema
|
|
1079
|
-
"Component"
|
|
1080
1079
|
// HOTFIX/TODO Internal customizations, check test conditions.test.js for more info.
|
|
1080
|
+
"Component",
|
|
1081
|
+
"calculateDynamicProperties"
|
|
1081
1082
|
];
|
|
1082
1083
|
var dynamicInternalJsfAttrsObj = Object.fromEntries(
|
|
1083
1084
|
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-dev.
|
|
5
|
-
Generated: Tue, 07 Nov 2023
|
|
4
|
+
NPM Package: @remoteoss/json-schema-form@0.7.4-dev.20231107125305
|
|
5
|
+
Generated: Tue, 07 Nov 2023 12:53:20 GMT
|
|
6
6
|
|
|
7
7
|
MIT License
|
|
8
8
|
|
|
@@ -1040,8 +1040,9 @@ var dynamicInternalJsfAttrs = [
|
|
|
1040
1040
|
// To be deprecated in favor of json-logic
|
|
1041
1041
|
"scopedJsonSchema",
|
|
1042
1042
|
// The respective JSON Schema
|
|
1043
|
-
"Component"
|
|
1044
1043
|
// HOTFIX/TODO Internal customizations, check test conditions.test.js for more info.
|
|
1044
|
+
"Component",
|
|
1045
|
+
"calculateDynamicProperties"
|
|
1045
1046
|
];
|
|
1046
1047
|
var dynamicInternalJsfAttrsObj = Object.fromEntries(
|
|
1047
1048
|
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-dev.
|
|
5
|
-
Generated: Tue, 07 Nov 2023
|
|
4
|
+
NPM Package: @remoteoss/json-schema-form@0.7.4-dev.20231107125305
|
|
5
|
+
Generated: Tue, 07 Nov 2023 12:53:20 GMT
|
|
6
6
|
|
|
7
7
|
MIT License
|
|
8
8
|
|
|
@@ -12394,8 +12394,9 @@ var dynamicInternalJsfAttrs = [
|
|
|
12394
12394
|
// To be deprecated in favor of json-logic
|
|
12395
12395
|
"scopedJsonSchema",
|
|
12396
12396
|
// The respective JSON Schema
|
|
12397
|
-
"Component"
|
|
12398
12397
|
// HOTFIX/TODO Internal customizations, check test conditions.test.js for more info.
|
|
12398
|
+
"Component",
|
|
12399
|
+
"calculateDynamicProperties"
|
|
12399
12400
|
];
|
|
12400
12401
|
var dynamicInternalJsfAttrsObj = Object.fromEntries(
|
|
12401
12402
|
dynamicInternalJsfAttrs.map((k) => [k, true])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remoteoss/json-schema-form",
|
|
3
|
-
"version": "0.7.4-dev.
|
|
3
|
+
"version": "0.7.4-dev.20231107125305",
|
|
4
4
|
"description": "Headless UI form powered by JSON Schemas",
|
|
5
5
|
"author": "Remote.com <engineering@remote.com> (https://remote.com/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -396,6 +396,7 @@ describe('Conditional attributes updated', () => {
|
|
|
396
396
|
customProperties: {
|
|
397
397
|
salary_period: {
|
|
398
398
|
Component: '<A React Component>',
|
|
399
|
+
calculateDynamicProperties: () => true,
|
|
399
400
|
},
|
|
400
401
|
},
|
|
401
402
|
}
|
|
@@ -403,13 +404,16 @@ describe('Conditional attributes updated', () => {
|
|
|
403
404
|
|
|
404
405
|
// It's there by default
|
|
405
406
|
expect(fields[1].Component).toBe('<A React Component>');
|
|
407
|
+
expect(fields[1].calculateDynamicProperties).toEqual(expect.any(Function));
|
|
406
408
|
|
|
407
409
|
// Given "Yes", it stays there too.
|
|
408
410
|
handleValidation({ is_full_time: 'yes' });
|
|
409
411
|
expect(fields[1].Component).toBe('<A React Component>');
|
|
412
|
+
expect(fields[1].calculateDynamicProperties).toEqual(expect.any(Function));
|
|
410
413
|
|
|
411
414
|
// Given "No", it stays there too.
|
|
412
415
|
handleValidation({ is_full_time: 'no' });
|
|
413
416
|
expect(fields[1].Component).toBe('<A React Component>');
|
|
417
|
+
expect(fields[1].calculateDynamicProperties).toEqual(expect.any(Function));
|
|
414
418
|
});
|
|
415
419
|
});
|