@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.
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/fast-html",
3
- "version": "1.0.0-alpha.22",
3
+ "version": "1.0.0-alpha.23",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Microsoft",