@lushly-dev/fast-element 0.0.0-stage → 3.0.1-preview.1
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/CHANGELOG.md +1059 -0
- package/LICENSE +23 -0
- package/README.md +280 -2
- package/dist/command/command.api.json +7857 -0
- package/dist/context/context.api.json +1084 -0
- package/dist/declarative/declarative.api.json +8130 -0
- package/dist/definition-schema/definition-schema.api.json +2689 -0
- package/dist/di/di.api.json +4945 -0
- package/dist/dts/arrays.d.ts +2 -0
- package/dist/dts/binding/binding.d.ts +59 -0
- package/dist/dts/binding/exports.d.ts +9 -0
- package/dist/dts/binding/normalize.d.ts +9 -0
- package/dist/dts/binding/one-time.d.ts +11 -0
- package/dist/dts/binding/one-way.d.ts +20 -0
- package/dist/dts/binding/signal.d.ts +36 -0
- package/dist/dts/binding/two-way.d.ts +44 -0
- package/dist/dts/command/behavior.d.ts +94 -0
- package/dist/dts/command/behaviors/confirm-behavior.d.ts +139 -0
- package/dist/dts/command/behaviors/undo-behavior.d.ts +178 -0
- package/dist/dts/command/command.d.ts +79 -0
- package/dist/dts/command/component-registry.d.ts +50 -0
- package/dist/dts/command/components/confirm-dialog.d.ts +117 -0
- package/dist/dts/command/index.d.ts +21 -0
- package/dist/dts/command/registry.d.ts +201 -0
- package/dist/dts/command/schema-validation.d.ts +45 -0
- package/dist/dts/command/types.d.ts +332 -0
- package/dist/dts/command/validation.d.ts +116 -0
- package/dist/dts/command/weak-ref.d.ts +11 -0
- package/dist/dts/components/attributes.d.ts +153 -0
- package/dist/dts/components/definition-schema-transforms.d.ts +9 -0
- package/dist/dts/components/element-controller.d.ts +349 -0
- package/dist/dts/components/element-hydration.d.ts +2 -0
- package/dist/dts/components/enable-hydration.d.ts +66 -0
- package/dist/dts/components/fast-definitions.d.ts +211 -0
- package/dist/dts/components/fast-element-registry.d.ts +23 -0
- package/dist/dts/components/fast-element.d.ts +91 -0
- package/dist/dts/components/hydration-tracker.d.ts +110 -0
- package/dist/dts/components/hydration.d.ts +52 -0
- package/dist/dts/components/schema.d.ts +205 -0
- package/dist/dts/context.d.ts +171 -0
- package/dist/dts/debug.d.ts +5 -0
- package/dist/dts/declarative/attribute-map.d.ts +58 -0
- package/dist/dts/declarative/debug.d.ts +4 -0
- package/dist/dts/declarative/index.d.ts +14 -0
- package/dist/dts/declarative/interfaces.d.ts +8 -0
- package/dist/dts/declarative/observer-map-utilities.d.ts +58 -0
- package/dist/dts/declarative/observer-map.d.ts +89 -0
- package/dist/dts/declarative/runtime.d.ts +5 -0
- package/dist/dts/declarative/syntax.d.ts +21 -0
- package/dist/dts/declarative/template-bridge.d.ts +33 -0
- package/dist/dts/declarative/template-parser.d.ts +98 -0
- package/dist/dts/declarative/template.d.ts +9 -0
- package/dist/dts/declarative/utilities.d.ts +358 -0
- package/dist/dts/definition-schema/api.d.ts +42 -0
- package/dist/dts/definition-schema/cem.d.ts +78 -0
- package/dist/dts/definition-schema/extension.d.ts +18 -0
- package/dist/dts/definition-schema/extract.d.ts +38 -0
- package/dist/dts/definition-schema/index.d.ts +9 -0
- package/dist/dts/definition-schema/storage.d.ts +35 -0
- package/dist/dts/definition-schema/types.d.ts +176 -0
- package/dist/dts/dev-mode.d.ts +13 -0
- package/dist/dts/di/di.d.ts +894 -0
- package/dist/dts/dom-policy.d.ts +101 -0
- package/dist/dts/dom.d.ts +88 -0
- package/dist/dts/hydration/diagnostics.d.ts +93 -0
- package/dist/dts/hydration/exports.d.ts +18 -0
- package/dist/dts/hydration/hydration-debugger.d.ts +35 -0
- package/dist/dts/hydration/messages.d.ts +62 -0
- package/dist/dts/hydration/runtime.d.ts +7 -0
- package/dist/dts/hydration/target-builder.d.ts +107 -0
- package/dist/dts/index.d.ts +51 -0
- package/dist/dts/index.debug.d.ts +1 -0
- package/dist/dts/index.rollup.d.ts +1 -0
- package/dist/dts/index.rollup.debug.d.ts +1 -0
- package/dist/dts/interfaces.d.ts +106 -0
- package/dist/dts/metadata.d.ts +26 -0
- package/dist/dts/observation/arrays.d.ts +248 -0
- package/dist/dts/observation/notifier.d.ts +127 -0
- package/dist/dts/observation/observable.d.ts +276 -0
- package/dist/dts/observation/update-queue.d.ts +40 -0
- package/dist/dts/observation/volatile.d.ts +9 -0
- package/dist/dts/platform.d.ts +87 -0
- package/dist/dts/registry.d.ts +2 -0
- package/dist/dts/render.d.ts +7 -0
- package/dist/dts/schema.d.ts +1 -0
- package/dist/dts/scoped/detection.d.ts +55 -0
- package/dist/dts/scoped/index.d.ts +68 -0
- package/dist/dts/scoped/mixin.d.ts +118 -0
- package/dist/dts/scoped/registry.d.ts +76 -0
- package/dist/dts/scoped/types.d.ts +48 -0
- package/dist/dts/state/exports.d.ts +3 -0
- package/dist/dts/state/reactive.d.ts +8 -0
- package/dist/dts/state/state.d.ts +141 -0
- package/dist/dts/state/visitor.d.ts +6 -0
- package/dist/dts/state/watch.d.ts +10 -0
- package/dist/dts/styles/css-directive.d.ts +50 -0
- package/dist/dts/styles/css.d.ts +34 -0
- package/dist/dts/styles/element-styles.d.ts +61 -0
- package/dist/dts/styles/host.d.ts +65 -0
- package/dist/dts/styles/style-strategy.d.ts +42 -0
- package/dist/dts/templating/children.d.ts +62 -0
- package/dist/dts/templating/compiler.d.ts +54 -0
- package/dist/dts/templating/html-binding-directive.d.ts +155 -0
- package/dist/dts/templating/html-directive.d.ts +218 -0
- package/dist/dts/templating/html.d.ts +1 -0
- package/dist/dts/templating/hydration-view.d.ts +130 -0
- package/dist/dts/templating/markup.d.ts +48 -0
- package/dist/dts/templating/node-observation.d.ts +99 -0
- package/dist/dts/templating/ref.d.ts +23 -0
- package/dist/dts/templating/render.d.ts +318 -0
- package/dist/dts/templating/repeat.d.ts +131 -0
- package/dist/dts/templating/slotted.d.ts +38 -0
- package/dist/dts/templating/template.d.ts +221 -0
- package/dist/dts/templating/view.d.ts +268 -0
- package/dist/dts/templating/when.d.ts +12 -0
- package/dist/dts/testing/exports.d.ts +3 -0
- package/dist/dts/testing/fakes.d.ts +15 -0
- package/dist/dts/testing/fixture.d.ts +84 -0
- package/dist/dts/testing/models.d.ts +20 -0
- package/dist/dts/testing/timeout.d.ts +7 -0
- package/dist/dts/trust/index.d.ts +8 -0
- package/dist/dts/trust/types.d.ts +48 -0
- package/dist/dts/trust/utils.d.ts +26 -0
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/dts/utilities.d.ts +76 -0
- package/dist/esm/arrays.js +1 -0
- package/dist/esm/binding/binding.js +18 -0
- package/dist/esm/binding/exports.js +6 -0
- package/dist/esm/binding/normalize.js +17 -0
- package/dist/esm/binding/one-time.js +21 -0
- package/dist/esm/binding/one-way.js +30 -0
- package/dist/esm/binding/signal.js +99 -0
- package/dist/esm/binding/two-way.js +110 -0
- package/dist/esm/command/behavior.js +155 -0
- package/dist/esm/command/behaviors/confirm-behavior.js +225 -0
- package/dist/esm/command/behaviors/undo-behavior.js +312 -0
- package/dist/esm/command/command.js +104 -0
- package/dist/esm/command/component-registry.js +107 -0
- package/dist/esm/command/components/confirm-dialog.js +370 -0
- package/dist/esm/command/index.js +22 -0
- package/dist/esm/command/registry.js +752 -0
- package/dist/esm/command/schema-validation.js +194 -0
- package/dist/esm/command/types.js +86 -0
- package/dist/esm/command/validation.js +511 -0
- package/dist/esm/command/weak-ref.js +5 -0
- package/dist/esm/components/attributes.js +219 -0
- package/dist/esm/components/definition-schema-transforms.js +23 -0
- package/dist/esm/components/element-controller.js +839 -0
- package/dist/esm/components/element-hydration.js +2 -0
- package/dist/esm/components/enable-hydration.js +123 -0
- package/dist/esm/components/fast-definitions.js +294 -0
- package/dist/esm/components/fast-element-registry.js +67 -0
- package/dist/esm/components/fast-element.js +82 -0
- package/dist/esm/components/hydration-tracker.js +210 -0
- package/dist/esm/components/hydration.js +187 -0
- package/dist/esm/components/schema.js +253 -0
- package/dist/esm/context.js +185 -0
- package/dist/esm/debug.js +71 -0
- package/dist/esm/declarative/attribute-map.js +121 -0
- package/dist/esm/declarative/debug.js +4 -0
- package/dist/esm/declarative/index.js +10 -0
- package/dist/esm/declarative/interfaces.js +9 -0
- package/dist/esm/declarative/observer-map-utilities.js +565 -0
- package/dist/esm/declarative/observer-map.js +216 -0
- package/dist/esm/declarative/runtime.js +14 -0
- package/dist/esm/declarative/syntax.js +36 -0
- package/dist/esm/declarative/template-bridge.js +160 -0
- package/dist/esm/declarative/template-parser.js +306 -0
- package/dist/esm/declarative/template.js +116 -0
- package/dist/esm/declarative/utilities.js +1069 -0
- package/dist/esm/definition-schema/api.js +129 -0
- package/dist/esm/definition-schema/cem.js +89 -0
- package/dist/esm/definition-schema/extension.js +53 -0
- package/dist/esm/definition-schema/extract.js +167 -0
- package/dist/esm/definition-schema/index.js +8 -0
- package/dist/esm/definition-schema/storage.js +58 -0
- package/dist/esm/definition-schema/types.js +8 -0
- package/dist/esm/dev-mode.js +22 -0
- package/dist/esm/di/di.js +1440 -0
- package/dist/esm/dom-policy.js +374 -0
- package/dist/esm/dom.js +101 -0
- package/dist/esm/hydration/diagnostics.js +50 -0
- package/dist/esm/hydration/exports.js +6 -0
- package/dist/esm/hydration/hydration-debugger.js +112 -0
- package/dist/esm/hydration/messages.js +84 -0
- package/dist/esm/hydration/runtime.js +33 -0
- package/dist/esm/hydration/target-builder.js +264 -0
- package/dist/esm/index.debug.js +3 -0
- package/dist/esm/index.js +49 -0
- package/dist/esm/index.rollup.debug.js +6 -0
- package/dist/esm/index.rollup.js +4 -0
- package/dist/esm/interfaces.js +55 -0
- package/dist/esm/metadata.js +63 -0
- package/dist/esm/observation/arrays.js +661 -0
- package/dist/esm/observation/notifier.js +164 -0
- package/dist/esm/observation/observable.js +324 -0
- package/dist/esm/observation/update-queue.js +56 -0
- package/dist/esm/observation/volatile.js +16 -0
- package/dist/esm/platform.js +98 -0
- package/dist/esm/registry.js +2 -0
- package/dist/esm/render.js +1 -0
- package/dist/esm/schema.js +1 -0
- package/dist/esm/scoped/detection.js +102 -0
- package/dist/esm/scoped/index.js +69 -0
- package/dist/esm/scoped/mixin.js +127 -0
- package/dist/esm/scoped/registry.js +125 -0
- package/dist/esm/scoped/types.js +4 -0
- package/dist/esm/state/exports.js +3 -0
- package/dist/esm/state/reactive.js +34 -0
- package/dist/esm/state/state.js +148 -0
- package/dist/esm/state/visitor.js +28 -0
- package/dist/esm/state/watch.js +36 -0
- package/dist/esm/styles/css-directive.js +36 -0
- package/dist/esm/styles/css.js +56 -0
- package/dist/esm/styles/element-styles.js +144 -0
- package/dist/esm/styles/host.js +1 -0
- package/dist/esm/styles/style-strategy.js +1 -0
- package/dist/esm/templating/children.js +67 -0
- package/dist/esm/templating/compiler.js +359 -0
- package/dist/esm/templating/html-binding-directive.js +288 -0
- package/dist/esm/templating/html-directive.js +113 -0
- package/dist/esm/templating/html.js +1 -0
- package/dist/esm/templating/hydration-view.js +228 -0
- package/dist/esm/templating/markup.js +83 -0
- package/dist/esm/templating/node-observation.js +84 -0
- package/dist/esm/templating/ref.js +21 -0
- package/dist/esm/templating/render.js +468 -0
- package/dist/esm/templating/repeat.js +434 -0
- package/dist/esm/templating/slotted.js +49 -0
- package/dist/esm/templating/template.js +206 -0
- package/dist/esm/templating/view.js +298 -0
- package/dist/esm/templating/when.js +22 -0
- package/dist/esm/testing/exports.js +3 -0
- package/dist/esm/testing/fakes.js +107 -0
- package/dist/esm/testing/fixture.js +86 -0
- package/dist/esm/testing/models.js +58 -0
- package/dist/esm/testing/timeout.js +24 -0
- package/dist/esm/trust/index.js +7 -0
- package/dist/esm/trust/types.js +6 -0
- package/dist/esm/trust/utils.js +126 -0
- package/dist/esm/utilities.js +140 -0
- package/dist/fast-element.api.json +26798 -0
- package/dist/fast-element.d.ts +3985 -0
- package/dist/fast-element.debug.js +7618 -0
- package/dist/fast-element.debug.min.js +3 -0
- package/dist/fast-element.js +7617 -0
- package/dist/fast-element.min.js +3 -0
- package/dist/fast-element.untrimmed.d.ts +4103 -0
- package/dist/observation/arrays/arrays.api.json +2621 -0
- package/dist/scoped/scoped.api.json +891 -0
- package/dist/trust/trust.api.json +629 -0
- package/migration/fast-html/rules/README.md +15 -0
- package/migration/fast-html/rules/attribute-directives.yml +38 -0
- package/migration/fast-html/rules/call-expression-with-event-argument.yml +41 -0
- package/migration/fast-html/rules/member-expression.yml +33 -0
- package/migration/fast-html/rules/tag-function-to-template-literal.yml +16 -0
- package/package.json +233 -3
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# https://ast-grep.github.io/guide/rule-config.html#rule
|
|
2
|
+
# from: ${(x, c) => x.foo(c.event)}
|
|
3
|
+
# to: {foo($e)}
|
|
4
|
+
id: binding - convert call expression with event argument
|
|
5
|
+
language: typescript
|
|
6
|
+
utils:
|
|
7
|
+
arrow-function:
|
|
8
|
+
has:
|
|
9
|
+
kind: arrow_function
|
|
10
|
+
matches: call-expression
|
|
11
|
+
call-expression:
|
|
12
|
+
has:
|
|
13
|
+
kind: call_expression
|
|
14
|
+
all:
|
|
15
|
+
- matches: handler-arguments
|
|
16
|
+
- matches: handler-expression
|
|
17
|
+
handler-expression:
|
|
18
|
+
has:
|
|
19
|
+
kind: member_expression
|
|
20
|
+
matches: handler-expression-property
|
|
21
|
+
handler-expression-property:
|
|
22
|
+
has:
|
|
23
|
+
kind: property_identifier
|
|
24
|
+
pattern: $A
|
|
25
|
+
handler-arguments:
|
|
26
|
+
has:
|
|
27
|
+
kind: arguments
|
|
28
|
+
matches: handler-arguments-member-expression
|
|
29
|
+
handler-arguments-member-expression:
|
|
30
|
+
has:
|
|
31
|
+
kind: member_expression
|
|
32
|
+
matches: handler-arguments-property-identifier
|
|
33
|
+
handler-arguments-property-identifier:
|
|
34
|
+
has:
|
|
35
|
+
kind: property_identifier
|
|
36
|
+
pattern: $B
|
|
37
|
+
rule:
|
|
38
|
+
kind: template_substitution
|
|
39
|
+
matches: arrow-function
|
|
40
|
+
fix:
|
|
41
|
+
'{$A($e)}'
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# https://ast-grep.github.io/guide/rule-config.html#rule
|
|
2
|
+
# from: ${x => x.foo}
|
|
3
|
+
# to: {{foo}}
|
|
4
|
+
id: binding - convert member expression
|
|
5
|
+
language: typescript
|
|
6
|
+
utils:
|
|
7
|
+
arrow-function:
|
|
8
|
+
has:
|
|
9
|
+
kind: arrow_function
|
|
10
|
+
all:
|
|
11
|
+
- matches: identifier
|
|
12
|
+
- matches: member-expression
|
|
13
|
+
member-expression:
|
|
14
|
+
has:
|
|
15
|
+
kind: member_expression
|
|
16
|
+
nthChild: 2
|
|
17
|
+
all:
|
|
18
|
+
- matches: identifier
|
|
19
|
+
- matches: property-identifier
|
|
20
|
+
identifier:
|
|
21
|
+
has:
|
|
22
|
+
kind: identifier
|
|
23
|
+
nthChild: 1
|
|
24
|
+
property-identifier:
|
|
25
|
+
has:
|
|
26
|
+
kind: property_identifier
|
|
27
|
+
nthChild: 2
|
|
28
|
+
pattern: $A
|
|
29
|
+
rule:
|
|
30
|
+
kind: template_substitution
|
|
31
|
+
matches: arrow-function
|
|
32
|
+
fix:
|
|
33
|
+
'{{$A}}'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# https://ast-grep.github.io/guide/rule-config.html#rule
|
|
2
|
+
# from: export const template = html`<slot></slot>`
|
|
3
|
+
# to: `<slot></slot>`
|
|
4
|
+
id: convert tag function to template literal
|
|
5
|
+
language: typescript
|
|
6
|
+
utils:
|
|
7
|
+
is-tag-template:
|
|
8
|
+
has:
|
|
9
|
+
kind: template_string
|
|
10
|
+
pattern: $B
|
|
11
|
+
rule:
|
|
12
|
+
kind: call_expression
|
|
13
|
+
matches: is-tag-template
|
|
14
|
+
pattern: $A
|
|
15
|
+
fix:
|
|
16
|
+
'$B'
|
package/package.json
CHANGED
|
@@ -1,6 +1,236 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lushly-dev/fast-element",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "A library for constructing Web Components",
|
|
4
|
+
"version": "3.0.1-preview.1",
|
|
5
|
+
"author": "Lushly Dev (forked from Microsoft FAST)",
|
|
6
|
+
"homepage": "https://github.com/lushly-dev/afd/tree/main/foundations/fast-af/packages/element/packages/fast-element#readme",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/lushly-dev/afd.git",
|
|
11
|
+
"directory": "foundations/fast-af/packages/element/packages/fast-element"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/lushly-dev/afd/issues"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "dist/esm/index.js",
|
|
18
|
+
"types": "dist/dts/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/dts/index.d.ts",
|
|
22
|
+
"production": "./dist/esm/index.js",
|
|
23
|
+
"development": "./dist/esm/index.debug.js",
|
|
24
|
+
"default": "./dist/esm/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./arrays.js": {
|
|
27
|
+
"types": "./dist/dts/observation/arrays.d.ts",
|
|
28
|
+
"default": "./dist/esm/observation/arrays.js"
|
|
29
|
+
},
|
|
30
|
+
"./attr.js": {
|
|
31
|
+
"types": "./dist/dts/components/attributes.d.ts",
|
|
32
|
+
"default": "./dist/esm/components/attributes.js"
|
|
33
|
+
},
|
|
34
|
+
"./attribute-map.js": {
|
|
35
|
+
"types": "./dist/dts/declarative/attribute-map.d.ts",
|
|
36
|
+
"default": "./dist/esm/declarative/attribute-map.js"
|
|
37
|
+
},
|
|
38
|
+
"./binding.js": {
|
|
39
|
+
"types": "./dist/dts/binding/exports.d.ts",
|
|
40
|
+
"default": "./dist/esm/binding/exports.js"
|
|
41
|
+
},
|
|
42
|
+
"./children.js": {
|
|
43
|
+
"types": "./dist/dts/templating/children.d.ts",
|
|
44
|
+
"default": "./dist/esm/templating/children.js"
|
|
45
|
+
},
|
|
46
|
+
"./command.js": {
|
|
47
|
+
"types": "./dist/dts/command/index.d.ts",
|
|
48
|
+
"default": "./dist/esm/command/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./context.js": {
|
|
51
|
+
"types": "./dist/dts/context.d.ts",
|
|
52
|
+
"default": "./dist/esm/context.js"
|
|
53
|
+
},
|
|
54
|
+
"./css.js": {
|
|
55
|
+
"types": "./dist/dts/styles/css.d.ts",
|
|
56
|
+
"default": "./dist/esm/styles/css.js"
|
|
57
|
+
},
|
|
58
|
+
"./debug.js": {
|
|
59
|
+
"types": "./dist/dts/debug.d.ts",
|
|
60
|
+
"default": "./dist/esm/debug.js"
|
|
61
|
+
},
|
|
62
|
+
"./declarative-utilities.js": {
|
|
63
|
+
"types": "./dist/dts/declarative/utilities.d.ts",
|
|
64
|
+
"default": "./dist/esm/declarative/utilities.js"
|
|
65
|
+
},
|
|
66
|
+
"./declarative.js": {
|
|
67
|
+
"types": "./dist/dts/declarative/index.d.ts",
|
|
68
|
+
"default": "./dist/esm/declarative/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./definition-schema.js": {
|
|
71
|
+
"types": "./dist/dts/definition-schema/index.d.ts",
|
|
72
|
+
"default": "./dist/esm/definition-schema/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./di.js": {
|
|
75
|
+
"types": "./dist/dts/di/di.d.ts",
|
|
76
|
+
"default": "./dist/esm/di/di.js"
|
|
77
|
+
},
|
|
78
|
+
"./dom-policy.js": {
|
|
79
|
+
"types": "./dist/dts/dom-policy.d.ts",
|
|
80
|
+
"default": "./dist/esm/dom-policy.js"
|
|
81
|
+
},
|
|
82
|
+
"./dom.js": {
|
|
83
|
+
"types": "./dist/dts/dom.d.ts",
|
|
84
|
+
"default": "./dist/esm/dom.js"
|
|
85
|
+
},
|
|
86
|
+
"./fast-element.js": {
|
|
87
|
+
"types": "./dist/dts/components/fast-element.d.ts",
|
|
88
|
+
"default": "./dist/esm/components/fast-element.js"
|
|
89
|
+
},
|
|
90
|
+
"./html.js": {
|
|
91
|
+
"types": "./dist/dts/templating/html.d.ts",
|
|
92
|
+
"default": "./dist/esm/templating/html.js"
|
|
93
|
+
},
|
|
94
|
+
"./hydration.js": {
|
|
95
|
+
"types": "./dist/dts/hydration/exports.d.ts",
|
|
96
|
+
"default": "./dist/esm/hydration/exports.js"
|
|
97
|
+
},
|
|
98
|
+
"./notifier.js": {
|
|
99
|
+
"types": "./dist/dts/observation/notifier.d.ts",
|
|
100
|
+
"default": "./dist/esm/observation/notifier.js"
|
|
101
|
+
},
|
|
102
|
+
"./observable.js": {
|
|
103
|
+
"types": "./dist/dts/observation/observable.d.ts",
|
|
104
|
+
"default": "./dist/esm/observation/observable.js"
|
|
105
|
+
},
|
|
106
|
+
"./observer-map.js": {
|
|
107
|
+
"types": "./dist/dts/declarative/observer-map.d.ts",
|
|
108
|
+
"default": "./dist/esm/declarative/observer-map.js"
|
|
109
|
+
},
|
|
110
|
+
"./ref.js": {
|
|
111
|
+
"types": "./dist/dts/templating/ref.d.ts",
|
|
112
|
+
"default": "./dist/esm/templating/ref.js"
|
|
113
|
+
},
|
|
114
|
+
"./registry.js": {
|
|
115
|
+
"types": "./dist/dts/registry.d.ts",
|
|
116
|
+
"default": "./dist/esm/registry.js"
|
|
117
|
+
},
|
|
118
|
+
"./render.js": {
|
|
119
|
+
"types": "./dist/dts/render.d.ts",
|
|
120
|
+
"default": "./dist/esm/render.js"
|
|
121
|
+
},
|
|
122
|
+
"./repeat.js": {
|
|
123
|
+
"types": "./dist/dts/templating/repeat.d.ts",
|
|
124
|
+
"default": "./dist/esm/templating/repeat.js"
|
|
125
|
+
},
|
|
126
|
+
"./schema.js": {
|
|
127
|
+
"types": "./dist/dts/schema.d.ts",
|
|
128
|
+
"default": "./dist/esm/schema.js"
|
|
129
|
+
},
|
|
130
|
+
"./scoped.js": {
|
|
131
|
+
"types": "./dist/dts/scoped/index.d.ts",
|
|
132
|
+
"default": "./dist/esm/scoped/index.js"
|
|
133
|
+
},
|
|
134
|
+
"./signal.js": {
|
|
135
|
+
"types": "./dist/dts/binding/signal.d.ts",
|
|
136
|
+
"default": "./dist/esm/binding/signal.js"
|
|
137
|
+
},
|
|
138
|
+
"./slotted.js": {
|
|
139
|
+
"types": "./dist/dts/templating/slotted.d.ts",
|
|
140
|
+
"default": "./dist/esm/templating/slotted.js"
|
|
141
|
+
},
|
|
142
|
+
"./state.js": {
|
|
143
|
+
"types": "./dist/dts/state/exports.d.ts",
|
|
144
|
+
"default": "./dist/esm/state/exports.js"
|
|
145
|
+
},
|
|
146
|
+
"./two-way.js": {
|
|
147
|
+
"types": "./dist/dts/binding/two-way.d.ts",
|
|
148
|
+
"default": "./dist/esm/binding/two-way.js"
|
|
149
|
+
},
|
|
150
|
+
"./trust.js": {
|
|
151
|
+
"types": "./dist/dts/trust/index.d.ts",
|
|
152
|
+
"default": "./dist/esm/trust/index.js"
|
|
153
|
+
},
|
|
154
|
+
"./updates.js": {
|
|
155
|
+
"types": "./dist/dts/observation/update-queue.d.ts",
|
|
156
|
+
"default": "./dist/esm/observation/update-queue.js"
|
|
157
|
+
},
|
|
158
|
+
"./utilities.js": {
|
|
159
|
+
"types": "./dist/dts/utilities.d.ts",
|
|
160
|
+
"default": "./dist/esm/utilities.js"
|
|
161
|
+
},
|
|
162
|
+
"./volatile.js": {
|
|
163
|
+
"types": "./dist/dts/observation/volatile.d.ts",
|
|
164
|
+
"default": "./dist/esm/observation/volatile.js"
|
|
165
|
+
},
|
|
166
|
+
"./when.js": {
|
|
167
|
+
"types": "./dist/dts/templating/when.d.ts",
|
|
168
|
+
"default": "./dist/esm/templating/when.js"
|
|
169
|
+
},
|
|
170
|
+
"./package.json": "./package.json"
|
|
171
|
+
},
|
|
172
|
+
"unpkg": "dist/fast-element.min.js",
|
|
173
|
+
"sideEffects": false,
|
|
174
|
+
"dependencies": {
|
|
175
|
+
"@webcomponents/scoped-custom-element-registry": "^0.0.10"
|
|
176
|
+
},
|
|
177
|
+
"devDependencies": {
|
|
178
|
+
"@ast-grep/cli": "^0.51.0",
|
|
179
|
+
"@biomejs/biome": "^2.4.7",
|
|
180
|
+
"@microsoft/api-extractor": "7.58.1",
|
|
181
|
+
"@playwright/test": "1.64.0",
|
|
182
|
+
"@rollup/plugin-terser": "1.0.0",
|
|
183
|
+
"@rollup/plugin-typescript": "12.3.0",
|
|
184
|
+
"concurrently": "10.0.3",
|
|
185
|
+
"esbuild": "0.27.7",
|
|
186
|
+
"rollup": "4.59.0",
|
|
187
|
+
"tslib": "^2.8.1",
|
|
188
|
+
"typescript": "~5.9.3",
|
|
189
|
+
"vite": "8.3.5"
|
|
190
|
+
},
|
|
191
|
+
"files": [
|
|
192
|
+
"dist",
|
|
193
|
+
"CHANGELOG.md",
|
|
194
|
+
"migration/fast-html/rules"
|
|
195
|
+
],
|
|
196
|
+
"beachball": {
|
|
197
|
+
"disallowedChangeTypes": [
|
|
198
|
+
"prerelease",
|
|
199
|
+
"major"
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
"scripts": {
|
|
203
|
+
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true }); require('fs').rmSync('temp', { recursive: true, force: true }); require('fs').rmSync('test-results', { recursive: true, force: true })\"",
|
|
204
|
+
"doc": "api-extractor run --local",
|
|
205
|
+
"doc:ci": "api-extractor run",
|
|
206
|
+
"doc:exports": "node ./scripts/run-api-extractor.js",
|
|
207
|
+
"doc:path-exports": "node ./scripts/check-path-exports-docs.js --write",
|
|
208
|
+
"doc:path-exports:check": "node ./scripts/check-path-exports-docs.js --check",
|
|
209
|
+
"doc:exports:ci": "node ./scripts/run-api-extractor.js ci",
|
|
210
|
+
"build": "pnpm run build:tsc && pnpm run test:exports && pnpm run test:types && pnpm run build:rollup && pnpm run doc && pnpm run doc:exports",
|
|
211
|
+
"build:fixtures": "node scripts/declarative/build-fixtures.js",
|
|
212
|
+
"build:fixtures:webui": "node scripts/declarative/build-fixtures-with-webui.js",
|
|
213
|
+
"build:rollup": "rollup -c",
|
|
214
|
+
"build:sizes": "node scripts/measure-sizes.js",
|
|
215
|
+
"build:tsc": "node ./node_modules/typescript/bin/tsc -p ./tsconfig.json",
|
|
216
|
+
"dev": "node ./node_modules/typescript/bin/tsc -p ./tsconfig.json -w",
|
|
217
|
+
"dev:declarative": "concurrently -k -n tsc,server \"pnpm run dev\" \"pnpm run test-server:declarative\"",
|
|
218
|
+
"lint": "biome lint .",
|
|
219
|
+
"lint:fix": "biome lint --write .",
|
|
220
|
+
"test:playwright": "playwright test && pnpm run test:playwright:declarative",
|
|
221
|
+
"test:exports": "node ./scripts/smoke-package-exports.js",
|
|
222
|
+
"test:types": "node ./node_modules/typescript/bin/tsc -p ./test/tsconfig.types.json",
|
|
223
|
+
"test:migration-rules": "sg test --config migration/fast-html/sgconfig.yml --skip-snapshot-tests",
|
|
224
|
+
"test:playwright:declarative": "playwright test --config=playwright.declarative.config.ts",
|
|
225
|
+
"test:coverage:command": "node ./scripts/command-coverage.mjs",
|
|
226
|
+
"test:chromium": "playwright test --project=chromium && pnpm run test:chromium:declarative",
|
|
227
|
+
"test:chromium:declarative": "playwright test --config=playwright.declarative.config.ts --project=chromium",
|
|
228
|
+
"test-server": "vite test/ --clearScreen false",
|
|
229
|
+
"test-server:declarative": "vite test/declarative --clearScreen false --port 5174 --strictPort",
|
|
230
|
+
"test-server:declarative:webui": "vite temp/integrations/webui --clearScreen false --port 5174 --strictPort",
|
|
231
|
+
"test": "pnpm run lint && pnpm run doc:path-exports:check && pnpm run doc:ci && pnpm run doc:exports:ci && pnpm run test:types && node ./scripts/smoke-package-exports.js",
|
|
232
|
+
"test:ci": "pnpm run doc:path-exports:check && pnpm run doc:ci && pnpm run doc:exports:ci && pnpm run test:exports && pnpm run test:types && pnpm run test:migration-rules && pnpm run test:playwright",
|
|
233
|
+
"test:ui:declarative": "concurrently -k -n tsc,playwright \"pnpm run dev\" \"playwright test --config=playwright.declarative.config.ts --ui\"",
|
|
234
|
+
"test:webui-integration": "pnpm run build:fixtures:webui && playwright test --config=playwright.declarative.webui.config.ts"
|
|
235
|
+
}
|
|
6
236
|
}
|