@microsoft/fast-html 1.0.0-alpha.20 → 1.0.0-alpha.22

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,5 @@
1
1
  import { Constructable } from '@microsoft/fast-element';
2
2
  import { FASTElement } from '@microsoft/fast-element';
3
- import { ShadowRootOptions } from '@microsoft/fast-element';
4
3
 
5
4
  declare interface AccessCachedPath extends CachedPathCommon {
6
5
  type: AccessCachedPathType;
@@ -16,6 +15,8 @@ declare interface CachedPathCommon {
16
15
  path: string;
17
16
  }
18
17
 
18
+ declare type CachedPathMap = Map<string, Map<string, JSONSchema>>;
19
+
19
20
  declare interface DefaultCachedPath extends CachedPathCommon {
20
21
  type: DefaultCachedPathType;
21
22
  }
@@ -23,7 +24,6 @@ declare interface DefaultCachedPath extends CachedPathCommon {
23
24
  declare type DefaultCachedPathType = "default";
24
25
 
25
26
  declare interface ElementOptions {
26
- shadowOptions?: ShadowRootOptions | undefined;
27
27
  observerMap?: ObserverMapOption | undefined;
28
28
  }
29
29
 
@@ -118,7 +118,7 @@ declare class Schema {
118
118
  /**
119
119
  * A JSON schema describing each root schema
120
120
  */
121
- private jsonSchemaMap;
121
+ static jsonSchemaMap: CachedPathMap;
122
122
  constructor(name: string);
123
123
  /**
124
124
  * Add a path to a schema
@@ -205,13 +205,18 @@ export declare class TemplateElement extends FASTElement {
205
205
  * A dictionary of custom element options
206
206
  */
207
207
  static elementOptions: ElementOptionsDictionary;
208
- private partials;
209
208
  /**
210
209
  * ObserverMap instance for caching binding paths
211
210
  */
212
211
  private observerMap?;
213
- private schema?;
212
+ /**
213
+ * Default element options
214
+ */
214
215
  private static defaultElementOptions;
216
+ /**
217
+ * Metadata containing JSON schema for properties on a custom eleemnt
218
+ */
219
+ private schema?;
215
220
  static options(elementOptions?: ElementOptionsDictionary): typeof TemplateElement;
216
221
  constructor();
217
222
  /**
@@ -1,6 +1,5 @@
1
1
  import { Constructable } from '@microsoft/fast-element';
2
2
  import { FASTElement } from '@microsoft/fast-element';
3
- import { ShadowRootOptions } from '@microsoft/fast-element';
4
3
 
5
4
  declare interface AccessCachedPath extends CachedPathCommon {
6
5
  type: AccessCachedPathType;
@@ -16,6 +15,8 @@ declare interface CachedPathCommon {
16
15
  path: string;
17
16
  }
18
17
 
18
+ declare type CachedPathMap = Map<string, Map<string, JSONSchema>>;
19
+
19
20
  declare interface DefaultCachedPath extends CachedPathCommon {
20
21
  type: DefaultCachedPathType;
21
22
  }
@@ -23,7 +24,6 @@ declare interface DefaultCachedPath extends CachedPathCommon {
23
24
  declare type DefaultCachedPathType = "default";
24
25
 
25
26
  declare interface ElementOptions {
26
- shadowOptions?: ShadowRootOptions | undefined;
27
27
  observerMap?: ObserverMapOption | undefined;
28
28
  }
29
29
 
@@ -118,7 +118,7 @@ declare class Schema {
118
118
  /**
119
119
  * A JSON schema describing each root schema
120
120
  */
121
- private jsonSchemaMap;
121
+ static jsonSchemaMap: CachedPathMap;
122
122
  constructor(name: string);
123
123
  /**
124
124
  * Add a path to a schema
@@ -205,13 +205,18 @@ export declare class TemplateElement extends FASTElement {
205
205
  * A dictionary of custom element options
206
206
  */
207
207
  static elementOptions: ElementOptionsDictionary;
208
- private partials;
209
208
  /**
210
209
  * ObserverMap instance for caching binding paths
211
210
  */
212
211
  private observerMap?;
213
- private schema?;
212
+ /**
213
+ * Default element options
214
+ */
214
215
  private static defaultElementOptions;
216
+ /**
217
+ * Metadata containing JSON schema for properties on a custom eleemnt
218
+ */
219
+ private schema?;
215
220
  static options(elementOptions?: ElementOptionsDictionary): typeof TemplateElement;
216
221
  constructor();
217
222
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/fast-html",
3
- "version": "1.0.0-alpha.20",
3
+ "version": "1.0.0-alpha.22",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Microsoft",
@@ -63,12 +63,12 @@
63
63
  "./dist/esm/index.js"
64
64
  ],
65
65
  "peerDependencies": {
66
- "@microsoft/fast-element": "^2.6.0"
66
+ "@microsoft/fast-element": "^2.7.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@ast-grep/cli": "^0.37.0",
70
70
  "@microsoft/api-extractor": "^7.47.0",
71
- "@microsoft/fast-element": "^2.6.0",
71
+ "@microsoft/fast-element": "^2.7.0",
72
72
  "@playwright/test": "^1.49.0",
73
73
  "@types/express": "^4.17.21",
74
74
  "@types/node": "^17.0.17",