Skip to content

Commit 293e972

Browse files
janechuCopilot
andcommitted
Restore export cleanup after rebase
Re-apply the small set of export-surface and change-file differences that were lost when the branch was rebased onto releases/fast-element-v3. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a663ff3 commit 293e972

7 files changed

Lines changed: 50 additions & 9 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "Update internal fast-element imports to use the focused export entrypoints.",
4+
"packageName": "@microsoft/fast-router",
5+
"email": "7559015+janechu@users.noreply.github.com",
6+
"dependentChangeType": "none"
7+
}

examples/todo-app/src/todo-app.template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const template = html<TodoApp>`
3535
&times;
3636
</button>
3737
</li>
38-
`
38+
`,
3939
)}
4040
</ul>
4141
`;
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Introduction
22

3-
This document (and the linked documents) explains how the exports and side effects of `@microsoft/fast-element` are used to create custom elements.
3+
This document (and the linked documents) explains how the exports and side
4+
effects of `@microsoft/fast-element` are used to create custom elements,
5+
including the dedicated binding, hydration, and `declarative.js`
6+
sub-entrypoints.
47

58
## Glossary
69

710
- [Overview](./ARCHITECTURE_OVERVIEW.md): How the `@microsoft/fast-element` should be used by a developer and what code is executed during the first render.
811
- [`FASTElement`](./ARCHITECTURE_FASTELEMENT.md): How the `FASTElement` is architected.
912
- [`html` tagged template literal](./ARCHITECTURE_HTML_TAGGED_TEMPLATE_LITERAL.md): How the `html` tagged template literal takes and converts the contents into a `ViewTemplate`.
10-
- [`Updates` queue](./ARCHITECTURE_UPDATES.md): How updates to attributes and observables are processed.
13+
- [`Updates` queue](./ARCHITECTURE_UPDATES.md): How updates to attributes and observables are processed.

packages/fast-element/src/components/element-hydration.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/fast-element/src/declarative.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,25 @@ import { registerFAST } from "./platform.js";
33

44
registerFAST().addMessages(debugMessages);
55

6-
export * from "./declarative/index.js";
6+
export type {
7+
AttributeMapConfig,
8+
CachedPathMap,
9+
ElementOptions,
10+
ElementOptionsDictionary,
11+
HydrationLifecycleCallbacks,
12+
JSONSchema,
13+
ObserverMapConfig,
14+
ObserverMapPathEntry,
15+
ObserverMapPathNode,
16+
ResolvedStringsAndValues,
17+
} from "./declarative/index.js";
18+
export {
19+
AttributeMap,
20+
AttributeMapOption,
21+
ObserverMap,
22+
ObserverMapOption,
23+
Schema,
24+
schemaRegistry,
25+
TemplateElement,
26+
TemplateParser,
27+
} from "./declarative/index.js";

packages/fast-element/src/state/exports.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
export { reactive } from "./reactive.js";
2+
export type {
3+
ComputedBuilder,
4+
ComputedInitializer,
5+
ComputedSetupCallback,
6+
ComputedState,
7+
OwnedState,
8+
ReadonlyOwnedState,
9+
ReadonlyState,
10+
State,
11+
StateOptions,
12+
} from "./state.js";
13+
export { computedState, ownedState, state } from "./state.js";
214
export { watch } from "./watch.js";
3-
export * from "./state.js";

packages/fast-element/src/testing/exports.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export { Fake } from "./fakes.js";
2+
export type { Fixture, FixtureOptions } from "./fixture.js";
3+
export { fixture, uniqueElementName } from "./fixture.js";
14
export { timeout } from "./timeout.js";
2-
export * from "./fixture.js";
3-
export * from "./fakes.js";

0 commit comments

Comments
 (0)