@microsoft/fast-html 1.0.0-alpha.1 → 1.0.0-alpha.3

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.
Files changed (64) hide show
  1. package/dist/dts/components/index.d.ts +1 -0
  2. package/dist/dts/components/template.d.ts +61 -0
  3. package/dist/dts/components/utilities.d.ts +75 -0
  4. package/dist/dts/components/utilities.spec.d.ts +1 -0
  5. package/dist/dts/debug.d.ts +3 -0
  6. package/dist/dts/fixtures/attribute/attribute.spec.d.ts +1 -0
  7. package/dist/dts/fixtures/attribute/main.d.ts +1 -0
  8. package/dist/dts/fixtures/binding/binding.spec.d.ts +1 -0
  9. package/dist/dts/fixtures/binding/main.d.ts +1 -0
  10. package/dist/dts/fixtures/children/children.spec.d.ts +1 -0
  11. package/dist/dts/fixtures/children/main.d.ts +1 -0
  12. package/dist/dts/fixtures/dot-syntax/dot-syntax.spec.d.ts +1 -0
  13. package/dist/dts/fixtures/dot-syntax/main.d.ts +1 -0
  14. package/dist/dts/fixtures/event/event.spec.d.ts +1 -0
  15. package/dist/dts/fixtures/event/main.d.ts +1 -0
  16. package/dist/dts/fixtures/partial/main.d.ts +1 -0
  17. package/dist/dts/fixtures/partial/partial.spec.d.ts +1 -0
  18. package/dist/dts/fixtures/ref/main.d.ts +1 -0
  19. package/dist/dts/fixtures/ref/ref.spec.d.ts +1 -0
  20. package/dist/dts/fixtures/repeat/main.d.ts +1 -0
  21. package/dist/dts/fixtures/repeat/repeat.spec.d.ts +1 -0
  22. package/dist/dts/fixtures/slotted/main.d.ts +1 -0
  23. package/dist/dts/fixtures/slotted/slotted.spec.d.ts +1 -0
  24. package/dist/dts/fixtures/when/main.d.ts +1 -0
  25. package/dist/dts/fixtures/when/when.spec.d.ts +1 -0
  26. package/dist/dts/index.d.ts +1 -0
  27. package/dist/dts/interfaces.d.ts +7 -0
  28. package/dist/dts/tsdoc-metadata.json +11 -0
  29. package/dist/esm/components/index.js +1 -0
  30. package/dist/esm/components/template.js +223 -0
  31. package/dist/esm/components/utilities.js +229 -0
  32. package/dist/esm/components/utilities.spec.js +160 -0
  33. package/dist/esm/debug.js +3 -0
  34. package/dist/esm/fixtures/attribute/attribute.spec.js +23 -0
  35. package/dist/esm/fixtures/attribute/main.js +19 -0
  36. package/dist/esm/fixtures/binding/binding.spec.js +17 -0
  37. package/dist/esm/fixtures/binding/main.js +19 -0
  38. package/dist/esm/fixtures/children/children.spec.js +33 -0
  39. package/dist/esm/fixtures/children/main.js +24 -0
  40. package/dist/esm/fixtures/dot-syntax/dot-syntax.spec.js +9 -0
  41. package/dist/esm/fixtures/dot-syntax/main.js +16 -0
  42. package/dist/esm/fixtures/event/event.spec.js +12 -0
  43. package/dist/esm/fixtures/event/main.js +16 -0
  44. package/dist/esm/fixtures/partial/main.js +31 -0
  45. package/dist/esm/fixtures/partial/partial.spec.js +14 -0
  46. package/dist/esm/fixtures/ref/main.js +14 -0
  47. package/dist/esm/fixtures/ref/ref.spec.js +13 -0
  48. package/dist/esm/fixtures/repeat/main.js +19 -0
  49. package/dist/esm/fixtures/repeat/repeat.spec.js +26 -0
  50. package/dist/esm/fixtures/slotted/main.js +22 -0
  51. package/dist/esm/fixtures/slotted/slotted.spec.js +25 -0
  52. package/dist/esm/fixtures/when/main.js +19 -0
  53. package/dist/esm/fixtures/when/when.spec.js +19 -0
  54. package/dist/esm/index.js +4 -0
  55. package/dist/esm/interfaces.js +1 -0
  56. package/dist/esm/tsconfig.tsbuildinfo +1 -0
  57. package/dist/fast-html.api.json +271 -0
  58. package/dist/fast-html.d.ts +63 -0
  59. package/dist/fast-html.untrimmed.d.ts +63 -0
  60. package/package.json +5 -3
  61. package/CHANGELOG.json +0 -26
  62. package/CHANGELOG.md +0 -14
  63. package/docs/api-report.api.md +0 -18
  64. package/webpack.common.config.js +0 -18
@@ -0,0 +1,271 @@
1
+ {
2
+ "metadata": {
3
+ "toolPackage": "@microsoft/api-extractor",
4
+ "toolVersion": "7.47.0",
5
+ "schemaVersion": 1011,
6
+ "oldestForwardsCompatibleVersion": 1001,
7
+ "tsdocConfig": {
8
+ "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
9
+ "noStandardTags": true,
10
+ "tagDefinitions": [
11
+ {
12
+ "tagName": "@alpha",
13
+ "syntaxKind": "modifier"
14
+ },
15
+ {
16
+ "tagName": "@beta",
17
+ "syntaxKind": "modifier"
18
+ },
19
+ {
20
+ "tagName": "@defaultValue",
21
+ "syntaxKind": "block"
22
+ },
23
+ {
24
+ "tagName": "@decorator",
25
+ "syntaxKind": "block",
26
+ "allowMultiple": true
27
+ },
28
+ {
29
+ "tagName": "@deprecated",
30
+ "syntaxKind": "block"
31
+ },
32
+ {
33
+ "tagName": "@eventProperty",
34
+ "syntaxKind": "modifier"
35
+ },
36
+ {
37
+ "tagName": "@example",
38
+ "syntaxKind": "block",
39
+ "allowMultiple": true
40
+ },
41
+ {
42
+ "tagName": "@experimental",
43
+ "syntaxKind": "modifier"
44
+ },
45
+ {
46
+ "tagName": "@inheritDoc",
47
+ "syntaxKind": "inline"
48
+ },
49
+ {
50
+ "tagName": "@internal",
51
+ "syntaxKind": "modifier"
52
+ },
53
+ {
54
+ "tagName": "@label",
55
+ "syntaxKind": "inline"
56
+ },
57
+ {
58
+ "tagName": "@link",
59
+ "syntaxKind": "inline",
60
+ "allowMultiple": true
61
+ },
62
+ {
63
+ "tagName": "@override",
64
+ "syntaxKind": "modifier"
65
+ },
66
+ {
67
+ "tagName": "@packageDocumentation",
68
+ "syntaxKind": "modifier"
69
+ },
70
+ {
71
+ "tagName": "@param",
72
+ "syntaxKind": "block",
73
+ "allowMultiple": true
74
+ },
75
+ {
76
+ "tagName": "@privateRemarks",
77
+ "syntaxKind": "block"
78
+ },
79
+ {
80
+ "tagName": "@public",
81
+ "syntaxKind": "modifier"
82
+ },
83
+ {
84
+ "tagName": "@readonly",
85
+ "syntaxKind": "modifier"
86
+ },
87
+ {
88
+ "tagName": "@remarks",
89
+ "syntaxKind": "block"
90
+ },
91
+ {
92
+ "tagName": "@returns",
93
+ "syntaxKind": "block"
94
+ },
95
+ {
96
+ "tagName": "@sealed",
97
+ "syntaxKind": "modifier"
98
+ },
99
+ {
100
+ "tagName": "@see",
101
+ "syntaxKind": "block"
102
+ },
103
+ {
104
+ "tagName": "@throws",
105
+ "syntaxKind": "block",
106
+ "allowMultiple": true
107
+ },
108
+ {
109
+ "tagName": "@typeParam",
110
+ "syntaxKind": "block",
111
+ "allowMultiple": true
112
+ },
113
+ {
114
+ "tagName": "@virtual",
115
+ "syntaxKind": "modifier"
116
+ },
117
+ {
118
+ "tagName": "@betaDocumentation",
119
+ "syntaxKind": "modifier"
120
+ },
121
+ {
122
+ "tagName": "@internalRemarks",
123
+ "syntaxKind": "block"
124
+ },
125
+ {
126
+ "tagName": "@preapproved",
127
+ "syntaxKind": "modifier"
128
+ }
129
+ ],
130
+ "supportForTags": {
131
+ "@alpha": true,
132
+ "@beta": true,
133
+ "@defaultValue": true,
134
+ "@decorator": true,
135
+ "@deprecated": true,
136
+ "@eventProperty": true,
137
+ "@example": true,
138
+ "@experimental": true,
139
+ "@inheritDoc": true,
140
+ "@internal": true,
141
+ "@label": true,
142
+ "@link": true,
143
+ "@override": true,
144
+ "@packageDocumentation": true,
145
+ "@param": true,
146
+ "@privateRemarks": true,
147
+ "@public": true,
148
+ "@readonly": true,
149
+ "@remarks": true,
150
+ "@returns": true,
151
+ "@sealed": true,
152
+ "@see": true,
153
+ "@throws": true,
154
+ "@typeParam": true,
155
+ "@virtual": true,
156
+ "@betaDocumentation": true,
157
+ "@internalRemarks": true,
158
+ "@preapproved": true
159
+ },
160
+ "reportUnsupportedHtmlElements": false
161
+ }
162
+ },
163
+ "kind": "Package",
164
+ "canonicalReference": "@microsoft/fast-html!",
165
+ "docComment": "",
166
+ "name": "@microsoft/fast-html",
167
+ "preserveMemberOrder": false,
168
+ "members": [
169
+ {
170
+ "kind": "EntryPoint",
171
+ "canonicalReference": "@microsoft/fast-html!",
172
+ "name": "",
173
+ "preserveMemberOrder": false,
174
+ "members": [
175
+ {
176
+ "kind": "Class",
177
+ "canonicalReference": "@microsoft/fast-html!TemplateElement:class",
178
+ "docComment": "/**\n * The <f-template> custom element that will provide view logic to the element\n */\n",
179
+ "excerptTokens": [
180
+ {
181
+ "kind": "Content",
182
+ "text": "declare class TemplateElement 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/template.d.ts",
195
+ "releaseTag": "Public",
196
+ "isAbstract": false,
197
+ "name": "TemplateElement",
198
+ "preserveMemberOrder": false,
199
+ "members": [
200
+ {
201
+ "kind": "Method",
202
+ "canonicalReference": "@microsoft/fast-html!TemplateElement#connectedCallback:member(1)",
203
+ "docComment": "",
204
+ "excerptTokens": [
205
+ {
206
+ "kind": "Content",
207
+ "text": "connectedCallback(): "
208
+ },
209
+ {
210
+ "kind": "Content",
211
+ "text": "void"
212
+ },
213
+ {
214
+ "kind": "Content",
215
+ "text": ";"
216
+ }
217
+ ],
218
+ "isStatic": false,
219
+ "returnTypeTokenRange": {
220
+ "startIndex": 1,
221
+ "endIndex": 2
222
+ },
223
+ "releaseTag": "Public",
224
+ "isProtected": false,
225
+ "overloadIndex": 1,
226
+ "parameters": [],
227
+ "isOptional": false,
228
+ "isAbstract": false,
229
+ "name": "connectedCallback"
230
+ },
231
+ {
232
+ "kind": "Property",
233
+ "canonicalReference": "@microsoft/fast-html!TemplateElement#name:member",
234
+ "docComment": "/**\n * The name of the custom element this template will be applied to\n */\n",
235
+ "excerptTokens": [
236
+ {
237
+ "kind": "Content",
238
+ "text": "name?: "
239
+ },
240
+ {
241
+ "kind": "Content",
242
+ "text": "string"
243
+ },
244
+ {
245
+ "kind": "Content",
246
+ "text": ";"
247
+ }
248
+ ],
249
+ "isReadonly": false,
250
+ "isOptional": true,
251
+ "releaseTag": "Public",
252
+ "name": "name",
253
+ "propertyTypeTokenRange": {
254
+ "startIndex": 1,
255
+ "endIndex": 2
256
+ },
257
+ "isStatic": false,
258
+ "isProtected": false,
259
+ "isAbstract": false
260
+ }
261
+ ],
262
+ "extendsTokenRange": {
263
+ "startIndex": 1,
264
+ "endIndex": 2
265
+ },
266
+ "implementsTokenRanges": []
267
+ }
268
+ ]
269
+ }
270
+ ]
271
+ }
@@ -0,0 +1,63 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+
3
+ /**
4
+ * The <f-template> custom element that will provide view logic to the element
5
+ */
6
+ export declare class TemplateElement extends FASTElement {
7
+ /**
8
+ * The name of the custom element this template will be applied to
9
+ */
10
+ name?: string;
11
+ private partials;
12
+ connectedCallback(): void;
13
+ /**
14
+ * Resolve strings and values from an innerHTML string
15
+ * @param innerHTML - The innerHTML.
16
+ * @param self - Indicates that this should refer to itself instead of a property when creating bindings.
17
+ */
18
+ private resolveStringsAndValues;
19
+ /**
20
+ * Resolve a template or behavior
21
+ * @param strings - The strings array.
22
+ * @param values - The interpreted values.
23
+ */
24
+ private resolveTemplateOrBehavior;
25
+ /**
26
+ * Resolve a template directive
27
+ * @param behaviorConfig - The directive behavior configuration object.
28
+ * @param externalValues - The interpreted values from the parent.
29
+ * @param innerHTML - The innerHTML.
30
+ */
31
+ private resolveTemplateDirective;
32
+ /**
33
+ * Resolve a template directive
34
+ * @param name - The name of the directive.
35
+ * @param propName - The property name to pass to the directive.
36
+ * @param externalValues - The interpreted values from the parent.
37
+ */
38
+ private resolveAttributeDirective;
39
+ /**
40
+ * Resolver of a data binding
41
+ * @param innerHTML - The innerHTML.
42
+ * @param strings - The strings array.
43
+ * @param values - The interpreted values.
44
+ * @param self - Indicates that this should refer to itself instead of a property when creating bindings.
45
+ * @param behaviorConfig - The binding behavior configuration object.
46
+ */
47
+ private resolveDataBinding;
48
+ /**
49
+ * Resolver of the innerHTML string
50
+ * @param innerHTML - The innerHTML.
51
+ * @param strings - The strings array.
52
+ * @param values - The interpreted values.
53
+ * @param self - Indicates that this should refer to itself instead of a property when creating bindings.
54
+ */
55
+ private resolveInnerHTML;
56
+ /**
57
+ * Resolve all partial templates
58
+ * @param unresolvedInnerHTML - The innerHTML.
59
+ */
60
+ private resolveAllPartials;
61
+ }
62
+
63
+ export { }
@@ -0,0 +1,63 @@
1
+ import { FASTElement } from '@microsoft/fast-element';
2
+
3
+ /**
4
+ * The <f-template> custom element that will provide view logic to the element
5
+ */
6
+ export declare class TemplateElement extends FASTElement {
7
+ /**
8
+ * The name of the custom element this template will be applied to
9
+ */
10
+ name?: string;
11
+ private partials;
12
+ connectedCallback(): void;
13
+ /**
14
+ * Resolve strings and values from an innerHTML string
15
+ * @param innerHTML - The innerHTML.
16
+ * @param self - Indicates that this should refer to itself instead of a property when creating bindings.
17
+ */
18
+ private resolveStringsAndValues;
19
+ /**
20
+ * Resolve a template or behavior
21
+ * @param strings - The strings array.
22
+ * @param values - The interpreted values.
23
+ */
24
+ private resolveTemplateOrBehavior;
25
+ /**
26
+ * Resolve a template directive
27
+ * @param behaviorConfig - The directive behavior configuration object.
28
+ * @param externalValues - The interpreted values from the parent.
29
+ * @param innerHTML - The innerHTML.
30
+ */
31
+ private resolveTemplateDirective;
32
+ /**
33
+ * Resolve a template directive
34
+ * @param name - The name of the directive.
35
+ * @param propName - The property name to pass to the directive.
36
+ * @param externalValues - The interpreted values from the parent.
37
+ */
38
+ private resolveAttributeDirective;
39
+ /**
40
+ * Resolver of a data binding
41
+ * @param innerHTML - The innerHTML.
42
+ * @param strings - The strings array.
43
+ * @param values - The interpreted values.
44
+ * @param self - Indicates that this should refer to itself instead of a property when creating bindings.
45
+ * @param behaviorConfig - The binding behavior configuration object.
46
+ */
47
+ private resolveDataBinding;
48
+ /**
49
+ * Resolver of the innerHTML string
50
+ * @param innerHTML - The innerHTML.
51
+ * @param strings - The strings array.
52
+ * @param values - The interpreted values.
53
+ * @param self - Indicates that this should refer to itself instead of a property when creating bindings.
54
+ */
55
+ private resolveInnerHTML;
56
+ /**
57
+ * Resolve all partial templates
58
+ * @param unresolvedInnerHTML - The innerHTML.
59
+ */
60
+ private resolveAllPartials;
61
+ }
62
+
63
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/fast-html",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.3",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Microsoft",
@@ -16,6 +16,9 @@
16
16
  "bugs": {
17
17
  "url": "https://github.com/Microsoft/fast/issues/new/choose"
18
18
  },
19
+ "files": [
20
+ "./dist"
21
+ ],
19
22
  "scripts": {
20
23
  "clean": "tsc -b --clean src",
21
24
  "clean:dist": "node ../../../build/clean.js dist",
@@ -76,7 +79,6 @@
76
79
  "major",
77
80
  "minor",
78
81
  "patch"
79
- ],
80
- "tag": "alpha"
82
+ ]
81
83
  }
82
84
  }
package/CHANGELOG.json DELETED
@@ -1,26 +0,0 @@
1
- {
2
- "name": "@microsoft/fast-html",
3
- "entries": [
4
- {
5
- "date": "Mon, 24 Mar 2025 18:06:22 GMT",
6
- "version": "1.0.0-alpha.1",
7
- "tag": "@microsoft/fast-html_v1.0.0-alpha.1",
8
- "comments": {
9
- "prerelease": [
10
- {
11
- "author": "7559015+janechu@users.noreply.github.com",
12
- "package": "@microsoft/fast-html",
13
- "commit": "9740d42f280b335b0b5b45c5fe63d1251bae263e",
14
- "comment": "Update private flag for initial release"
15
- },
16
- {
17
- "author": "beachball",
18
- "package": "@microsoft/fast-html",
19
- "comment": "Bump @microsoft/fast-element to v2.2.0",
20
- "commit": "not available"
21
- }
22
- ]
23
- }
24
- }
25
- ]
26
- }
package/CHANGELOG.md DELETED
@@ -1,14 +0,0 @@
1
- # Change Log - @microsoft/fast-html
2
-
3
- <!-- This log was last generated on Mon, 24 Mar 2025 18:06:22 GMT and should not be manually modified. -->
4
-
5
- <!-- Start content -->
6
-
7
- ## 1.0.0-alpha.1
8
-
9
- Mon, 24 Mar 2025 18:06:22 GMT
10
-
11
- ### Changes
12
-
13
- - Update private flag for initial release (7559015+janechu@users.noreply.github.com)
14
- - Bump @microsoft/fast-element to v2.2.0
@@ -1,18 +0,0 @@
1
- ## API Report File for "@microsoft/fast-html"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { FASTElement } from '@microsoft/fast-element';
8
-
9
- // @public
10
- export class TemplateElement extends FASTElement {
11
- // (undocumented)
12
- connectedCallback(): void;
13
- name?: string;
14
- }
15
-
16
- // (No @packageDocumentation comment for this package)
17
-
18
- ```
@@ -1,18 +0,0 @@
1
- export default {
2
- mode: "production",
3
- devServer: {
4
- static: "./public",
5
- port: 3001
6
- },
7
- resolve: {
8
- extensions: [".ts", ".js"],
9
- extensionAlias: {
10
- ".js": [".js", ".ts"],
11
- }
12
- },
13
- module: {
14
- rules: [
15
- { test: /\.([cm]?ts)$/, loader: "ts-loader" }
16
- ]
17
- },
18
- };