@takeshape/schema 8.167.2 → 8.170.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.
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { FormConfig, FormMap } from '../project-schema';
|
|
2
2
|
import { Maybe } from '@takeshape/util';
|
|
3
3
|
import { ProjectSchema } from '../project-schema';
|
|
4
|
+
/**
|
|
5
|
+
* If there any non-normal (nested) forms in the schema, create forms for referenced shapes.
|
|
6
|
+
* The original forms are left intact.
|
|
7
|
+
*/
|
|
4
8
|
export declare function normalizeForms(projectSchema: ProjectSchema): FormMap;
|
|
5
9
|
/**
|
|
6
10
|
* Find the form config for a given shape name and the form key.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-config.d.ts","sourceRoot":"","sources":["../../../src/util/form-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAY,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAIhD,wBAAgB,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAmDpE;AAID;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACf,KAAK,CAAC,UAAU,CAAC,CAYnB"}
|
|
1
|
+
{"version":3,"file":"form-config.d.ts","sourceRoot":"","sources":["../../../src/util/form-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAY,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAIhD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAmDpE;AAID;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACf,KAAK,CAAC,UAAU,CAAC,CAYnB"}
|
package/dist/util/form-config.js
CHANGED
|
@@ -12,6 +12,10 @@ var _refs = require("../refs");
|
|
|
12
12
|
|
|
13
13
|
var _schemaUtil = require("../schema-util");
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* If there any non-normal (nested) forms in the schema, create forms for referenced shapes.
|
|
17
|
+
* The original forms are left intact.
|
|
18
|
+
*/
|
|
15
19
|
function normalizeForms(projectSchema) {
|
|
16
20
|
const normalizedForms = {};
|
|
17
21
|
const {
|
package/es/util/form-config.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { deepClone } from '@takeshape/util';
|
|
2
2
|
import { getRefOrItemsRef, refItemToShapeName } from '../refs';
|
|
3
3
|
import { createSchemaPropertyAccessor } from '../schema-util';
|
|
4
|
+
/**
|
|
5
|
+
* If there any non-normal (nested) forms in the schema, create forms for referenced shapes.
|
|
6
|
+
* The original forms are left intact.
|
|
7
|
+
*/
|
|
8
|
+
|
|
4
9
|
export function normalizeForms(projectSchema) {
|
|
5
10
|
const normalizedForms = {};
|
|
6
11
|
const {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.170.0",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"examples"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@takeshape/errors": "8.
|
|
25
|
-
"@takeshape/json-schema": "8.
|
|
26
|
-
"@takeshape/util": "8.
|
|
24
|
+
"@takeshape/errors": "8.170.0",
|
|
25
|
+
"@takeshape/json-schema": "8.170.0",
|
|
26
|
+
"@takeshape/util": "8.170.0",
|
|
27
27
|
"ajv": "^8.10.0",
|
|
28
28
|
"ajv-formats": "^2.1.1",
|
|
29
29
|
"blueimp-md5": "^2.10.0",
|