@microsoft/fast-html 1.0.0-alpha.22 → 1.0.0-alpha.23
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/dts/components/schema.d.ts +10 -0
- package/dist/dts/components/utilities.d.ts +11 -1
- package/dist/esm/components/schema.js +45 -11
- package/dist/esm/components/schema.spec.js +197 -2
- package/dist/esm/components/template.js +5 -5
- package/dist/esm/components/utilities.js +132 -11
- package/dist/esm/components/utilities.spec.js +29 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/fast-html.d.ts +14 -0
- package/dist/fast-html.untrimmed.d.ts +14 -0
- package/package.json +1 -1
package/dist/fast-html.d.ts
CHANGED
|
@@ -17,6 +17,11 @@ declare interface CachedPathCommon {
|
|
|
17
17
|
|
|
18
18
|
declare type CachedPathMap = Map<string, Map<string, JSONSchema>>;
|
|
19
19
|
|
|
20
|
+
declare interface ChildrenMap {
|
|
21
|
+
customElementName: string;
|
|
22
|
+
attributeName: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
declare interface DefaultCachedPath extends CachedPathCommon {
|
|
21
26
|
type: DefaultCachedPathType;
|
|
22
27
|
}
|
|
@@ -51,6 +56,7 @@ declare interface JSONSchemaCommon {
|
|
|
51
56
|
type?: string;
|
|
52
57
|
properties?: any;
|
|
53
58
|
items?: any;
|
|
59
|
+
anyOf?: Array<any>;
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
declare interface JSONSchemaDefinition extends JSONSchemaCommon {
|
|
@@ -89,6 +95,7 @@ declare type ObserverMapOption = "all";
|
|
|
89
95
|
declare interface RegisterPathConfig {
|
|
90
96
|
rootPropertyName: string;
|
|
91
97
|
pathConfig: CachedPath;
|
|
98
|
+
childrenMap: ChildrenMap | null;
|
|
92
99
|
}
|
|
93
100
|
|
|
94
101
|
/**
|
|
@@ -148,6 +155,13 @@ declare class Schema {
|
|
|
148
155
|
* @returns A string to use as a $ref
|
|
149
156
|
*/
|
|
150
157
|
private getDefsPath;
|
|
158
|
+
/**
|
|
159
|
+
* Get the schema $id
|
|
160
|
+
* @param customElementName - The custom element name
|
|
161
|
+
* @param propertyName - The property name
|
|
162
|
+
* @returns The ID that can be used in the JSON schema as $id
|
|
163
|
+
*/
|
|
164
|
+
private getSchemaId;
|
|
151
165
|
/**
|
|
152
166
|
* Add a new JSON schema to the JSON schema map
|
|
153
167
|
* @param propertyName The name of the property to assign this JSON schema to
|
|
@@ -17,6 +17,11 @@ declare interface CachedPathCommon {
|
|
|
17
17
|
|
|
18
18
|
declare type CachedPathMap = Map<string, Map<string, JSONSchema>>;
|
|
19
19
|
|
|
20
|
+
declare interface ChildrenMap {
|
|
21
|
+
customElementName: string;
|
|
22
|
+
attributeName: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
declare interface DefaultCachedPath extends CachedPathCommon {
|
|
21
26
|
type: DefaultCachedPathType;
|
|
22
27
|
}
|
|
@@ -51,6 +56,7 @@ declare interface JSONSchemaCommon {
|
|
|
51
56
|
type?: string;
|
|
52
57
|
properties?: any;
|
|
53
58
|
items?: any;
|
|
59
|
+
anyOf?: Array<any>;
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
declare interface JSONSchemaDefinition extends JSONSchemaCommon {
|
|
@@ -89,6 +95,7 @@ declare type ObserverMapOption = "all";
|
|
|
89
95
|
declare interface RegisterPathConfig {
|
|
90
96
|
rootPropertyName: string;
|
|
91
97
|
pathConfig: CachedPath;
|
|
98
|
+
childrenMap: ChildrenMap | null;
|
|
92
99
|
}
|
|
93
100
|
|
|
94
101
|
/**
|
|
@@ -148,6 +155,13 @@ declare class Schema {
|
|
|
148
155
|
* @returns A string to use as a $ref
|
|
149
156
|
*/
|
|
150
157
|
private getDefsPath;
|
|
158
|
+
/**
|
|
159
|
+
* Get the schema $id
|
|
160
|
+
* @param customElementName - The custom element name
|
|
161
|
+
* @param propertyName - The property name
|
|
162
|
+
* @returns The ID that can be used in the JSON schema as $id
|
|
163
|
+
*/
|
|
164
|
+
private getSchemaId;
|
|
151
165
|
/**
|
|
152
166
|
* Add a new JSON schema to the JSON schema map
|
|
153
167
|
* @param propertyName The name of the property to assign this JSON schema to
|