@microsoft/fast-html 1.0.0-alpha.15 → 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.
- package/dist/dts/components/element.d.ts +10 -11
- package/dist/esm/components/element.js +25 -30
- package/dist/esm/components/template.js +3 -6
- package/dist/esm/fixtures/attribute/main.js +4 -4
- package/dist/esm/fixtures/binding/main.js +7 -7
- package/dist/esm/fixtures/children/main.js +4 -4
- package/dist/esm/fixtures/dot-syntax/main.js +4 -3
- package/dist/esm/fixtures/event/main.js +4 -4
- package/dist/esm/fixtures/partial/main.js +3 -3
- package/dist/esm/fixtures/ref/main.js +4 -3
- package/dist/esm/fixtures/repeat/main.js +7 -7
- package/dist/esm/fixtures/slotted/main.js +4 -4
- package/dist/esm/fixtures/when/main.js +31 -31
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/fast-html.api.json +56 -83
- package/dist/fast-html.d.ts +10 -10
- package/dist/fast-html.untrimmed.d.ts +10 -10
- package/package.json +3 -3
package/dist/fast-html.api.json
CHANGED
|
@@ -173,13 +173,22 @@
|
|
|
173
173
|
"preserveMemberOrder": false,
|
|
174
174
|
"members": [
|
|
175
175
|
{
|
|
176
|
-
"kind": "
|
|
177
|
-
"canonicalReference": "@microsoft/fast-html!RenderableFASTElement:
|
|
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
|
|
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,96 +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
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"preserveMemberOrder": false,
|
|
199
|
-
"members": [
|
|
229
|
+
"overloadIndex": 1,
|
|
230
|
+
"parameters": [
|
|
200
231
|
{
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
|
|
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
|
|
232
|
+
"parameterName": "BaseCtor",
|
|
233
|
+
"parameterTypeTokenRange": {
|
|
234
|
+
"startIndex": 6,
|
|
235
|
+
"endIndex": 7
|
|
240
236
|
},
|
|
241
|
-
"
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
237
|
+
"isOptional": false
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"typeParameters": [
|
|
245
241
|
{
|
|
246
|
-
"
|
|
247
|
-
"
|
|
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": {
|
|
242
|
+
"typeParameterName": "T",
|
|
243
|
+
"constraintTokenRange": {
|
|
268
244
|
"startIndex": 1,
|
|
269
|
-
"endIndex":
|
|
245
|
+
"endIndex": 5
|
|
270
246
|
},
|
|
271
|
-
"
|
|
272
|
-
|
|
273
|
-
|
|
247
|
+
"defaultTypeTokenRange": {
|
|
248
|
+
"startIndex": 0,
|
|
249
|
+
"endIndex": 0
|
|
250
|
+
}
|
|
274
251
|
}
|
|
275
252
|
],
|
|
276
|
-
"
|
|
277
|
-
"startIndex": 1,
|
|
278
|
-
"endIndex": 2
|
|
279
|
-
},
|
|
280
|
-
"implementsTokenRanges": []
|
|
253
|
+
"name": "RenderableFASTElement"
|
|
281
254
|
},
|
|
282
255
|
{
|
|
283
256
|
"kind": "Class",
|
package/dist/fast-html.d.ts
CHANGED
|
@@ -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,16 +13,15 @@ declare interface ElementOptionsDictionary<ElementOptionsType = ElementOptions>
|
|
|
12
13
|
[key: string]: ElementOptionsType;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
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;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
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,16 +13,15 @@ declare interface ElementOptionsDictionary<ElementOptionsType = ElementOptions>
|
|
|
12
13
|
[key: string]: ElementOptionsType;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
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;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
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.
|
|
3
|
+
"version": "1.0.0-alpha.17",
|
|
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.
|
|
66
|
+
"@microsoft/fast-element": "^2.5.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.
|
|
71
|
+
"@microsoft/fast-element": "^2.5.0",
|
|
72
72
|
"@playwright/test": "^1.49.0",
|
|
73
73
|
"@types/express": "^4.17.21",
|
|
74
74
|
"@types/node": "^17.0.17",
|