Commit 8eb2a69
authored
feat: move declarative html into fast-element (#7482)
# Pull Request
## 📖 Description
Move the declarative HTML runtime from `@microsoft/fast-html` into `@microsoft/fast-element` under a dedicated `@microsoft/fast-element/declarative.js` entrypoint.
This PR:
- moves the declarative runtime, fixtures, scripts, Playwright configs, and package docs into `packages/fast-element`
- updates internal consumers, website/API docs generation, and the WebUI integration workflow to use the new declarative subpath
- removes the `packages/fast-html` workspace and its legacy changefiles
Closes #7314
## 👩💻 Reviewer Notes
Review the migration in roughly this order:
1. `packages/fast-element/src/declarative.ts` and `packages/fast-element/package.json` for the new public entrypoint and export wiring.
2. `packages/fast-element/test/declarative/` and `packages/fast-element/scripts/declarative/` for the moved fixture/test infrastructure.
3. `sites/website/scripts/generate-docs.cjs` and `sites/website/src/docs/3.x/` for the new declarative API/docs publication path.
## 📑 Test Plan
- `npm run build`
- `npm run checkchange`
- `npm run test:chromium:declarative -w @microsoft/fast-element`
- `cd packages/fast-element && npx playwright test --config=playwright.declarative.config.ts test/declarative/fixtures/ecosystem/deprecated-event-warning/deprecated-event-warning.spec.ts --workers=1`
- `cd packages/fast-element && npx playwright test --config=playwright.declarative.config.ts test/declarative/fixtures/extensions/attribute-map-naming-strategy/attribute-map-naming-strategy.spec.ts --project=webkit --workers=1`
- `npm run test` in the shared CLI environment reached the declarative Playwright matrix and failed intermittently while another repo was reusing port `5174`; the focused reruns above passed.
## ✅ Checklist
### General
- [x] I have included a change request file using `$ npm run change`
- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [x] I have updated the project documentation to reflect my changes.
- [x] I have read the [CONTRIBUTING](https://github.com/microsoft/fast/blob/main/CONTRIBUTING.md) documentation and followed the [standards](https://github.com/microsoft/fast/blob/main/CODE_OF_CONDUCT.md#our-standards) for this project.1 parent 746579f commit 8eb2a69
309 files changed
Lines changed: 3815 additions & 2814 deletions
File tree
- .github
- skills
- shipping
- testing
- workflows
- change
- packages
- fast-build
- fast-element
- docs/declarative
- scripts
- declarative
- src
- declarative
- test
- declarative
- fixtures
- bindings
- attribute
- content
- dot-syntax
- event
- host
- directives
- children
- ref
- repeat
- slotted
- when
- ecosystem
- deprecated-event-warning
- errors
- lifecycle-callbacks
- performance-metrics
- extensions
- attribute-map-naming-strategy-camel-case
- attribute-map-naming-strategy
- attribute-map
- observer-map-config-object
- observer-map-deep-merge
- observer-map-properties
- observer-map
- scenarios
- nested-elements
- fast-html
- rule-tests
- rules
- src
- test
- fast-test-harness
- src/ssr
- sites
- benchmarks
- src/scenarios
- all/hydration
- attr-reflect/hydration
- basic/hydration
- bind-event/hydration
- dot-syntax
- csr
- hydration
- ref-slotted/hydration
- repeat/hydration
- when/hydration
- website
- scripts
- src/docs/3.x
- api/fast-element
- declarative
- di
- resources
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
This file was deleted.
Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 0 additions & 7 deletions
This file was deleted.
0 commit comments