@microsoft/fast-html 1.0.0-alpha.16 → 1.0.0-alpha.17

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.
@@ -173,13 +173,22 @@
173
173
  "preserveMemberOrder": false,
174
174
  "members": [
175
175
  {
176
- "kind": "Class",
177
- "canonicalReference": "@microsoft/fast-html!RenderableFASTElement:class",
178
- "docComment": "",
176
+ "kind": "Function",
177
+ "canonicalReference": "@microsoft/fast-html!RenderableFASTElement:function(1)",
178
+ "docComment": "/**\n * A mixin function that extends a base class with additional functionality for rendering and hydration.\n *\n * @param BaseCtor - The base class to extend.\n *\n * @returns A new class that extends the provided base class with additional functionality for rendering and hydration.\n *\n * @public\n */\n",
179
179
  "excerptTokens": [
180
180
  {
181
181
  "kind": "Content",
182
- "text": "export declare abstract class RenderableFASTElement extends "
182
+ "text": "export declare function RenderableFASTElement<T extends "
183
+ },
184
+ {
185
+ "kind": "Reference",
186
+ "text": "Constructable",
187
+ "canonicalReference": "@microsoft/fast-element!Constructable:type"
188
+ },
189
+ {
190
+ "kind": "Content",
191
+ "text": "<"
183
192
  },
184
193
  {
185
194
  "kind": "Reference",
@@ -188,66 +197,60 @@
188
197
  },
189
198
  {
190
199
  "kind": "Content",
191
- "text": " "
200
+ "text": ">"
201
+ },
202
+ {
203
+ "kind": "Content",
204
+ "text": ">(BaseCtor: "
205
+ },
206
+ {
207
+ "kind": "Content",
208
+ "text": "T"
209
+ },
210
+ {
211
+ "kind": "Content",
212
+ "text": "): "
213
+ },
214
+ {
215
+ "kind": "Content",
216
+ "text": "T"
217
+ },
218
+ {
219
+ "kind": "Content",
220
+ "text": ";"
192
221
  }
193
222
  ],
194
223
  "fileUrlPath": "dist/dts/components/element.d.ts",
224
+ "returnTypeTokenRange": {
225
+ "startIndex": 8,
226
+ "endIndex": 9
227
+ },
195
228
  "releaseTag": "Public",
196
- "isAbstract": true,
197
- "name": "RenderableFASTElement",
198
- "preserveMemberOrder": false,
199
- "members": [
229
+ "overloadIndex": 1,
230
+ "parameters": [
200
231
  {
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
- },
232
+ "parameterName": "BaseCtor",
233
+ "parameterTypeTokenRange": {
234
+ "startIndex": 6,
235
+ "endIndex": 7
236
+ },
237
+ "isOptional": false
238
+ }
239
+ ],
240
+ "typeParameters": [
215
241
  {
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": {
242
+ "typeParameterName": "T",
243
+ "constraintTokenRange": {
238
244
  "startIndex": 1,
239
- "endIndex": 2
245
+ "endIndex": 5
240
246
  },
241
- "isStatic": false,
242
- "isProtected": false,
243
- "isAbstract": false
247
+ "defaultTypeTokenRange": {
248
+ "startIndex": 0,
249
+ "endIndex": 0
250
+ }
244
251
  }
245
252
  ],
246
- "extendsTokenRange": {
247
- "startIndex": 1,
248
- "endIndex": 2
249
- },
250
- "implementsTokenRanges": []
253
+ "name": "RenderableFASTElement"
251
254
  },
252
255
  {
253
256
  "kind": "Class",
@@ -1,3 +1,4 @@
1
+ import { Constructable } from '@microsoft/fast-element';
1
2
  import { FASTElement } from '@microsoft/fast-element';
2
3
  import { ShadowRootOptions } from '@microsoft/fast-element';
3
4
 
@@ -12,15 +13,15 @@ declare interface ElementOptionsDictionary<ElementOptionsType = ElementOptions>
12
13
  [key: string]: ElementOptionsType;
13
14
  }
14
15
 
15
- export declare abstract class RenderableFASTElement extends FASTElement {
16
- deferHydration: boolean;
17
- constructor();
18
- /**
19
- * A user defined function for determining if the element is ready to be hydrated.
20
- * This function will get called if it has been defined after the template is connected.
21
- */
22
- private prepare;
23
- }
16
+ /**
17
+ * A mixin function that extends a base class with additional functionality for
18
+ * rendering and hydration.
19
+ *
20
+ * @param BaseCtor - The base class to extend.
21
+ * @returns A new class that extends the provided base class with additional functionality for rendering and hydration.
22
+ * @public
23
+ */
24
+ export declare function RenderableFASTElement<T extends Constructable<FASTElement>>(BaseCtor: T): T;
24
25
 
25
26
  /**
26
27
  * The <f-template> custom element that will provide view logic to the element
@@ -1,3 +1,4 @@
1
+ import { Constructable } from '@microsoft/fast-element';
1
2
  import { FASTElement } from '@microsoft/fast-element';
2
3
  import { ShadowRootOptions } from '@microsoft/fast-element';
3
4
 
@@ -12,15 +13,15 @@ declare interface ElementOptionsDictionary<ElementOptionsType = ElementOptions>
12
13
  [key: string]: ElementOptionsType;
13
14
  }
14
15
 
15
- export declare abstract class RenderableFASTElement extends FASTElement {
16
- deferHydration: boolean;
17
- constructor();
18
- /**
19
- * A user defined function for determining if the element is ready to be hydrated.
20
- * This function will get called if it has been defined after the template is connected.
21
- */
22
- private prepare;
23
- }
16
+ /**
17
+ * A mixin function that extends a base class with additional functionality for
18
+ * rendering and hydration.
19
+ *
20
+ * @param BaseCtor - The base class to extend.
21
+ * @returns A new class that extends the provided base class with additional functionality for rendering and hydration.
22
+ * @public
23
+ */
24
+ export declare function RenderableFASTElement<T extends Constructable<FASTElement>>(BaseCtor: T): T;
24
25
 
25
26
  /**
26
27
  * The <f-template> custom element that will provide view logic to the element
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/fast-html",
3
- "version": "1.0.0-alpha.16",
3
+ "version": "1.0.0-alpha.17",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Microsoft",