@microsoft/fast-html 1.0.0-alpha.12 → 1.0.0-alpha.13

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.
@@ -172,6 +172,113 @@
172
172
  "name": "",
173
173
  "preserveMemberOrder": false,
174
174
  "members": [
175
+ {
176
+ "kind": "Class",
177
+ "canonicalReference": "@microsoft/fast-html!RenderableFASTElement:class",
178
+ "docComment": "",
179
+ "excerptTokens": [
180
+ {
181
+ "kind": "Content",
182
+ "text": "export declare abstract class RenderableFASTElement extends "
183
+ },
184
+ {
185
+ "kind": "Reference",
186
+ "text": "FASTElement",
187
+ "canonicalReference": "@microsoft/fast-element!FASTElement:interface"
188
+ },
189
+ {
190
+ "kind": "Content",
191
+ "text": " "
192
+ }
193
+ ],
194
+ "fileUrlPath": "dist/dts/components/element.d.ts",
195
+ "releaseTag": "Public",
196
+ "isAbstract": true,
197
+ "name": "RenderableFASTElement",
198
+ "preserveMemberOrder": false,
199
+ "members": [
200
+ {
201
+ "kind": "Constructor",
202
+ "canonicalReference": "@microsoft/fast-html!RenderableFASTElement:constructor(1)",
203
+ "docComment": "/**\n * Constructs a new instance of the `RenderableFASTElement` class\n */\n",
204
+ "excerptTokens": [
205
+ {
206
+ "kind": "Content",
207
+ "text": "constructor();"
208
+ }
209
+ ],
210
+ "releaseTag": "Public",
211
+ "isProtected": false,
212
+ "overloadIndex": 1,
213
+ "parameters": []
214
+ },
215
+ {
216
+ "kind": "Property",
217
+ "canonicalReference": "@microsoft/fast-html!RenderableFASTElement#deferHydration:member",
218
+ "docComment": "",
219
+ "excerptTokens": [
220
+ {
221
+ "kind": "Content",
222
+ "text": "deferHydration: "
223
+ },
224
+ {
225
+ "kind": "Content",
226
+ "text": "boolean"
227
+ },
228
+ {
229
+ "kind": "Content",
230
+ "text": ";"
231
+ }
232
+ ],
233
+ "isReadonly": false,
234
+ "isOptional": false,
235
+ "releaseTag": "Public",
236
+ "name": "deferHydration",
237
+ "propertyTypeTokenRange": {
238
+ "startIndex": 1,
239
+ "endIndex": 2
240
+ },
241
+ "isStatic": false,
242
+ "isProtected": false,
243
+ "isAbstract": false
244
+ },
245
+ {
246
+ "kind": "Property",
247
+ "canonicalReference": "@microsoft/fast-html!RenderableFASTElement#needsHydration:member",
248
+ "docComment": "",
249
+ "excerptTokens": [
250
+ {
251
+ "kind": "Content",
252
+ "text": "needsHydration: "
253
+ },
254
+ {
255
+ "kind": "Content",
256
+ "text": "boolean"
257
+ },
258
+ {
259
+ "kind": "Content",
260
+ "text": ";"
261
+ }
262
+ ],
263
+ "isReadonly": false,
264
+ "isOptional": false,
265
+ "releaseTag": "Public",
266
+ "name": "needsHydration",
267
+ "propertyTypeTokenRange": {
268
+ "startIndex": 1,
269
+ "endIndex": 2
270
+ },
271
+ "isStatic": false,
272
+ "isProtected": false,
273
+ "isAbstract": false
274
+ }
275
+ ],
276
+ "extendsTokenRange": {
277
+ "startIndex": 1,
278
+ "endIndex": 2
279
+ },
280
+ "implementsTokenRanges": []
281
+ },
175
282
  {
176
283
  "kind": "Class",
177
284
  "canonicalReference": "@microsoft/fast-html!TemplateElement:class",
@@ -197,6 +304,21 @@
197
304
  "name": "TemplateElement",
198
305
  "preserveMemberOrder": false,
199
306
  "members": [
307
+ {
308
+ "kind": "Constructor",
309
+ "canonicalReference": "@microsoft/fast-html!TemplateElement:constructor(1)",
310
+ "docComment": "/**\n * Constructs a new instance of the `TemplateElement` class\n */\n",
311
+ "excerptTokens": [
312
+ {
313
+ "kind": "Content",
314
+ "text": "constructor();"
315
+ }
316
+ ],
317
+ "releaseTag": "Public",
318
+ "isProtected": false,
319
+ "overloadIndex": 1,
320
+ "parameters": []
321
+ },
200
322
  {
201
323
  "kind": "Method",
202
324
  "canonicalReference": "@microsoft/fast-html!TemplateElement#connectedCallback:member(1)",
@@ -239,8 +361,8 @@
239
361
  },
240
362
  {
241
363
  "kind": "Reference",
242
- "text": "ElementOptions",
243
- "canonicalReference": "@microsoft/fast-html!~ElementOptions:interface"
364
+ "text": "ElementOptionsDictionary",
365
+ "canonicalReference": "@microsoft/fast-html!~ElementOptionsDictionary:interface"
244
366
  },
245
367
  {
246
368
  "kind": "Content",
@@ -300,8 +422,8 @@
300
422
  },
301
423
  {
302
424
  "kind": "Reference",
303
- "text": "ElementOptions",
304
- "canonicalReference": "@microsoft/fast-html!~ElementOptions:interface"
425
+ "text": "ElementOptionsDictionary",
426
+ "canonicalReference": "@microsoft/fast-html!~ElementOptionsDictionary:interface"
305
427
  },
306
428
  {
307
429
  "kind": "Content",
@@ -1,13 +1,21 @@
1
1
  import { FASTElement } from '@microsoft/fast-element';
2
2
  import { ShadowRootOptions } from '@microsoft/fast-element';
3
3
 
4
+ declare interface ElementOptions {
5
+ shadowOptions?: ShadowRootOptions | undefined;
6
+ }
7
+
4
8
  /**
5
9
  * A dictionary of element options the TemplateElement will use to update the registered element
6
10
  */
7
- declare interface ElementOptions {
8
- [key: string]: {
9
- shadowOptions: ShadowRootOptions | undefined;
10
- };
11
+ declare interface ElementOptionsDictionary<ElementOptionsType = ElementOptions> {
12
+ [key: string]: ElementOptionsType;
13
+ }
14
+
15
+ export declare abstract class RenderableFASTElement extends FASTElement {
16
+ deferHydration: boolean;
17
+ needsHydration: boolean;
18
+ constructor();
11
19
  }
12
20
 
13
21
  /**
@@ -21,9 +29,16 @@ export declare class TemplateElement extends FASTElement {
21
29
  /**
22
30
  * A dictionary of custom element options
23
31
  */
24
- static elementOptions: ElementOptions;
32
+ static elementOptions: ElementOptionsDictionary;
25
33
  private partials;
26
- static options(elementOptions?: ElementOptions): typeof TemplateElement;
34
+ private static defaultElementOptions;
35
+ static options(elementOptions?: ElementOptionsDictionary): typeof TemplateElement;
36
+ constructor();
37
+ /**
38
+ * Set options for a custom element
39
+ * @param name - The name of the custom element to set options for.
40
+ */
41
+ private static setOptions;
27
42
  connectedCallback(): void;
28
43
  /**
29
44
  * Resolve strings and values from an innerHTML string
@@ -1,13 +1,21 @@
1
1
  import { FASTElement } from '@microsoft/fast-element';
2
2
  import { ShadowRootOptions } from '@microsoft/fast-element';
3
3
 
4
+ declare interface ElementOptions {
5
+ shadowOptions?: ShadowRootOptions | undefined;
6
+ }
7
+
4
8
  /**
5
9
  * A dictionary of element options the TemplateElement will use to update the registered element
6
10
  */
7
- declare interface ElementOptions {
8
- [key: string]: {
9
- shadowOptions: ShadowRootOptions | undefined;
10
- };
11
+ declare interface ElementOptionsDictionary<ElementOptionsType = ElementOptions> {
12
+ [key: string]: ElementOptionsType;
13
+ }
14
+
15
+ export declare abstract class RenderableFASTElement extends FASTElement {
16
+ deferHydration: boolean;
17
+ needsHydration: boolean;
18
+ constructor();
11
19
  }
12
20
 
13
21
  /**
@@ -21,9 +29,16 @@ export declare class TemplateElement extends FASTElement {
21
29
  /**
22
30
  * A dictionary of custom element options
23
31
  */
24
- static elementOptions: ElementOptions;
32
+ static elementOptions: ElementOptionsDictionary;
25
33
  private partials;
26
- static options(elementOptions?: ElementOptions): typeof TemplateElement;
34
+ private static defaultElementOptions;
35
+ static options(elementOptions?: ElementOptionsDictionary): typeof TemplateElement;
36
+ constructor();
37
+ /**
38
+ * Set options for a custom element
39
+ * @param name - The name of the custom element to set options for.
40
+ */
41
+ private static setOptions;
27
42
  connectedCallback(): void;
28
43
  /**
29
44
  * Resolve strings and values from an innerHTML string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/fast-html",
3
- "version": "1.0.0-alpha.12",
3
+ "version": "1.0.0-alpha.13",
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.4.0"
66
+ "@microsoft/fast-element": "^2.4.1"
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.4.0",
71
+ "@microsoft/fast-element": "^2.4.1",
72
72
  "@playwright/test": "^1.49.0",
73
73
  "@types/express": "^4.17.21",
74
74
  "@types/node": "^17.0.17",