Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/vr-tests-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"html-react-parser": "4.0.0",

@github-actions github-actions Bot Jun 26, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵🏾‍♀️ visual changes to review in the Visual Change Report

vr-tests-react-components/CalendarCompat 4 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/CalendarCompat.multiDayView - Dark Mode.default.chromium.png 1095 Changed
vr-tests-react-components/CalendarCompat.multiDayView - High Contrast.default.chromium.png 1199 Changed
vr-tests-react-components/CalendarCompat.multiDayView - RTL.default.chromium.png 478 Changed
vr-tests-react-components/CalendarCompat.multiDayView.default.chromium_1.png 479 Changed
vr-tests-react-components/Positioning 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Positioning.Positioning end.chromium.png 28 Changed
vr-tests-react-components/Positioning.Positioning end.updated 2 times.chromium.png 975 Changed
vr-tests-react-components/ProgressBar converged 3 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness - Dark Mode.default.chromium.png 47 Changed
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness - High Contrast.default.chromium.png 84 Changed
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness.default.chromium.png 130 Changed
vr-tests-react-components/Skeleton converged 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Skeleton converged.Opaque Skeleton with rectangle - Dark Mode.default.chromium.png 17 Changed
vr-tests-react-components/TagPicker 3 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/TagPicker.disabled - Dark Mode.disabled input hover.chromium.png 658 Changed
vr-tests-react-components/TagPicker.disabled - High Contrast.disabled input hover.chromium.png 1319 Changed
vr-tests-react-components/TagPicker.disabled.disabled input hover.chromium.png 677 Changed
vr-tests-web-components/Accordion 7 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/Accordion. - Dark Mode.normal.chromium.png 6252 Changed
vr-tests-web-components/Accordion. - Dark Mode.normal.chromium_1.png 2621 Changed
vr-tests-web-components/Accordion. - RTL.normal.chromium_1.png 6767 Changed
vr-tests-web-components/Accordion. - RTL.normal.chromium.png 21809 Changed
vr-tests-web-components/Accordion.Disabled.normal.chromium.png 6739 Changed
vr-tests-web-components/Accordion.Marker Position End.normal.chromium.png 6045 Changed
vr-tests-web-components/Accordion.Size.normal.chromium.png 21733 Changed
vr-tests-web-components/Avatar 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/Avatar. - Dark Mode.normal.chromium_1.png 298 Changed
vr-tests-web-components/Button 10 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/Button.Outline Disabled.default.chromium.png 131 Changed
vr-tests-web-components/Button.Outline Disabled.hover.chromium.png 141 Changed
vr-tests-web-components/Button.Primary Disabled.hover.chromium.png 1793 Changed
vr-tests-web-components/Button.Primary Disabled.pressed.chromium.png 2117 Changed
vr-tests-web-components/Button.Subtle Disabled.default.chromium.png 98 Changed
vr-tests-web-components/Button.Subtle Disabled.hover.chromium.png 114 Changed
vr-tests-web-components/Button.Transparent Disabled.default.chromium.png 165 Changed
vr-tests-web-components/Button.Subtle Disabled.pressed.chromium.png 404 Changed
vr-tests-web-components/Button.Transparent Disabled.pressed.chromium.png 133 Changed
vr-tests-web-components/Button.Transparent Disabled.hover.chromium.png 119 Changed
vr-tests-web-components/Divider 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/Divider.Inset.normal.chromium.png 2 Changed
vr-tests-web-components/Label 4 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/Label. - RTL.normal.chromium.png 7 Changed
vr-tests-web-components/Label.Required.normal.chromium.png 7 Changed
vr-tests-web-components/Label.Disabled.normal.chromium.png 116 Changed
vr-tests-web-components/Label. - Dark Mode.normal.chromium_1.png 171 Changed
vr-tests-web-components/MenuList 5 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/MenuList. - Dark Mode.normal.chromium.png 498 Changed
vr-tests-web-components/MenuList. - RTL.1st selected.chromium_2.png 39384 Changed
vr-tests-web-components/MenuList. - RTL.2nd selected.chromium.png 17 Changed
vr-tests-web-components/MenuList. - RTL.2nd selected.chromium_3.png 38816 Changed
vr-tests-web-components/MenuList. - RTL.normal.chromium_1.png 39083 Changed
vr-tests-web-components/RadioGroup 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/RadioGroup. - Dark Mode.normal.chromium_1.png 89 Changed
vr-tests-web-components/RadioGroup.Disabled.1st selected.chromium.png 125 Changed
vr-tests-web-components/Slider 4 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/Slider. - Dark Mode.normal.chromium_1.png 177 Changed
vr-tests-web-components/Slider. - Dark Mode.rightArrow.chromium_2.png 242 Changed
vr-tests-web-components/Slider.Disabled.normal.chromium.png 223 Changed
vr-tests-web-components/Slider.Disabled.rightArrow.chromium.png 287 Changed
vr-tests-web-components/Text 9 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/Text.Block.normal.chromium.png 6296 Changed
vr-tests-web-components/Text.Font.normal.chromium.png 6452 Changed
vr-tests-web-components/Text.Strikethrough.normal.chromium.png 209 Changed
vr-tests-web-components/Text.Nowrap.normal.chromium.png 6094 Changed
vr-tests-web-components/Text.Truncate.normal.chromium.png 5819 Changed
vr-tests-web-components/Text.Underline.normal.chromium.png 265 Changed
vr-tests-web-components/Text.Size.normal.chromium.png 70284 Changed
vr-tests-web-components/Text.Italic.normal.chromium.png 155 Changed
vr-tests-web-components/Text.Weight.normal.chromium.png 12958 Changed
vr-tests-web-components/TextInput 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-web-components/TextInput.Disabled.normal.chromium.png 198 Changed
vr-tests/react-charting-LineChart 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests/react-charting-LineChart.Multiple - RTL.default.chromium.png 200 Changed

There were 10 duplicate changes discarded. Check the build logs for more information.

"@fluentui/tokens": ">=1.0.0-alpha",
"@fluentui/web-components": ">=3.0.0-alpha",
"@microsoft/fast-element": "^2.0.0",
"@microsoft/fast-element": "^3.0.0",
"tslib": "^2.1.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: upgrade to FAST Element v3",
"packageName": "@fluentui/chart-web-components",
"email": "863023+radium-v@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "refactor: migrate async definitions to fast-element v3 declarative API",
"packageName": "@fluentui/web-components",
"email": "863023+radium-v@users.noreply.github.com",
"dependentChangeType": "patch"
}
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@
"@microsoft/api-extractor": "7.51.0",
"@microsoft/api-extractor-model": "7.31.2",
"@microsoft/eslint-plugin-sdl": "1.0.1",
"@microsoft/fast-build": "0.7.0",
"@microsoft/fast-element": "2.10.4",
"@microsoft/fast-html": "1.0.0-alpha.54",
"@microsoft/fast-test-harness": "0.3.1",
"@microsoft/fast-build": "0.9.0",
"@microsoft/fast-element": "3.0.0",
"@microsoft/fast-test-harness": "0.4.0",
"@microsoft/focusgroup-polyfill": "1.5.0",
"@microsoft/load-themed-styles": "1.10.26",
"@microsoft/loader-load-themed-styles": "2.0.17",
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/chart-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"@microsoft/fast-element": "^2.0.0"
"@microsoft/fast-element": "^3.0.0"
},
"beachball": {
"disallowedChangeTypes": [
Expand Down
2 changes: 2 additions & 0 deletions packages/web-components/docs/web-components.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,8 @@ export class BaseField extends FASTElement {
// (undocumented)
setValidationStates(): void;
// @internal
protected get slottedInputObserver(): MutationObserver;
// @internal
slottedInputs: SlottableInput[];
// @internal
slottedInputsChanged(prev: SlottableInput[] | undefined, next: SlottableInput[] | undefined): void;
Expand Down
13 changes: 4 additions & 9 deletions packages/web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"./*/define.js": "./dist/esm/*/define.js",
"./*/define-async.js": "./dist/esm/*/define-async.js",
"./*/definition.js": "./dist/esm/*/*.definition.js",
"./*/definition-async.js": "./dist/esm/*/*.definition-async.js",
"./*/options.js": "./dist/esm/*/*.options.js",
"./*/styles.js": "./dist/esm/*/*.styles.js",
"./*/styles.css": "./dist/esm/*/*.styles.css",
Expand Down Expand Up @@ -109,18 +110,12 @@
"rollup-plugin-fast-tagged-templates": "^1.0.2"
},
"dependencies": {
"@fluentui/tokens": "1.0.0-alpha.23",
"@fluentui/tokens": "^1.0.0-alpha.23",
"tslib": "^2.1.0"
},
"peerDependencies": {
"@microsoft/fast-element": "^2.0.0",
"@microsoft/fast-html": "^1.0.0-alpha.53",
"@microsoft/focusgroup-polyfill": "^1.4.1"
},
"peerDependenciesMeta": {
"@microsoft/fast-html": {
"optional": true
}
"@microsoft/fast-element": "^3.0.0",
"@microsoft/focusgroup-polyfill": "^1.5.0"
},
"beachball": {
"disallowedChangeTypes": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
import { declarativeTemplate, type PartialFASTElementDefinition } from '@microsoft/fast-element/declarative.js';
import { FluentDesignSystem } from '../fluent-design-system.js';
import { tagName } from './accordion-item.options.js';

/**
* The async definition configuration for the fluent-accordion-item element.
* The async definition configuration for the `<fluent-accordion-item>` element.
*
* @public
* @remarks
* This is used in server-side rendering (SSR) scenarios where the template
* is provided as a deferred option to be hydrated later.
*/
export const definition: PartialFASTElementDefinition = {
export const declarativeDefinition: PartialFASTElementDefinition = {
name: tagName,
templateOptions: 'defer-and-hydrate',
registry: FluentDesignSystem.registry,
template: declarativeTemplate(),
};
5 changes: 2 additions & 3 deletions packages/web-components/src/accordion-item/define-async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RenderableFASTElement } from '@microsoft/fast-html';
import { definition } from './accordion-item.definition-async.js';
import { declarativeDefinition } from './accordion-item.definition-async.js';
import { AccordionItem } from './accordion-item.js';

RenderableFASTElement(AccordionItem).defineAsync(definition);
AccordionItem.define(declarativeDefinition);
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { type PartialFASTElementDefinition } from '@microsoft/fast-element';
import { declarativeTemplate, type PartialFASTElementDefinition } from '@microsoft/fast-element/declarative.js';
import { FluentDesignSystem } from '../fluent-design-system.js';
import { tagName } from './accordion.options.js';

/**
* The async definition configuration for the fluent-accordion element.
* The async definition configuration for the `<fluent-accordion>` element.
*
* @public
* @remarks
Expand All @@ -11,5 +12,6 @@ import { tagName } from './accordion.options.js';
*/
export const declarativeDefinition: PartialFASTElementDefinition = {
name: tagName,
templateOptions: 'defer-and-hydrate',
} as const;
registry: FluentDesignSystem.registry,
template: declarativeTemplate(),
};
3 changes: 1 addition & 2 deletions packages/web-components/src/accordion/define-async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RenderableFASTElement } from '@microsoft/fast-html';
import { declarativeDefinition } from './accordion.definition-async.js';
import { Accordion } from './accordion.js';

RenderableFASTElement(Accordion).defineAsync(declarativeDefinition);
Accordion.define(declarativeDefinition);
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
import { declarativeTemplate, type PartialFASTElementDefinition } from '@microsoft/fast-element/declarative.js';
import { FluentDesignSystem } from '../fluent-design-system.js';
import { tagName } from './anchor-button.options.js';

/**
* The async definition configuration for the fluent-anchor-button element.
* The async definition configuration for the `<fluent-anchor-button>` element.
*
* @public
* @remarks
* This is used in server-side rendering (SSR) scenarios where the template
* is provided as a deferred option to be hydrated later.
*/
export const definition: PartialFASTElementDefinition = {
export const declarativeDefinition: PartialFASTElementDefinition = {
name: tagName,
templateOptions: 'defer-and-hydrate',
registry: FluentDesignSystem.registry,
template: declarativeTemplate(),
};
5 changes: 2 additions & 3 deletions packages/web-components/src/anchor-button/define-async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RenderableFASTElement } from '@microsoft/fast-html';
import { definition } from './anchor-button.definition-async.js';
import { declarativeDefinition } from './anchor-button.definition-async.js';
import { AnchorButton } from './anchor-button.js';

RenderableFASTElement(AnchorButton).defineAsync(definition);
AnchorButton.define(declarativeDefinition);
10 changes: 6 additions & 4 deletions packages/web-components/src/avatar/avatar.definition-async.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
import { declarativeTemplate, type PartialFASTElementDefinition } from '@microsoft/fast-element/declarative.js';
import { FluentDesignSystem } from '../fluent-design-system.js';
import { tagName } from './avatar.options.js';

/**
* The async definition configuration for the fluent-avatar element.
* The async definition configuration for the `<fluent-avatar>` element.
*
* @public
* @remarks
* This is used in server-side rendering (SSR) scenarios where the template
* is provided as a deferred option to be hydrated later.
*/
export const definition: PartialFASTElementDefinition = {
export const declarativeDefinition: PartialFASTElementDefinition = {
name: tagName,
templateOptions: 'defer-and-hydrate',
registry: FluentDesignSystem.registry,
template: declarativeTemplate(),
};
5 changes: 2 additions & 3 deletions packages/web-components/src/avatar/define-async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RenderableFASTElement } from '@microsoft/fast-html';
import { definition } from './avatar.definition-async.js';
import { declarativeDefinition } from './avatar.definition-async.js';
import { Avatar } from './avatar.js';

RenderableFASTElement(Avatar).defineAsync(definition);
Avatar.define(declarativeDefinition);
10 changes: 6 additions & 4 deletions packages/web-components/src/badge/badge.definition-async.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
import { declarativeTemplate, type PartialFASTElementDefinition } from '@microsoft/fast-element/declarative.js';
import { FluentDesignSystem } from '../fluent-design-system.js';
import { tagName } from './badge.options.js';

/**
* The async definition configuration for the fluent-badge element.
* The async definition configuration for the `<fluent-badge>` element.
*
* @public
* @remarks
* This is used in server-side rendering (SSR) scenarios where the template
* is provided as a deferred option to be hydrated later.
*/
export const definition: PartialFASTElementDefinition = {
export const declarativeDefinition: PartialFASTElementDefinition = {
name: tagName,
templateOptions: 'defer-and-hydrate',
registry: FluentDesignSystem.registry,
template: declarativeTemplate(),
};
5 changes: 2 additions & 3 deletions packages/web-components/src/badge/define-async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RenderableFASTElement } from '@microsoft/fast-html';
import { definition } from './badge.definition-async.js';
import { declarativeDefinition } from './badge.definition-async.js';
import { Badge } from './badge.js';

RenderableFASTElement(Badge).defineAsync(definition);
Badge.define(declarativeDefinition);
10 changes: 6 additions & 4 deletions packages/web-components/src/button/button.definition-async.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
import { declarativeTemplate, type PartialFASTElementDefinition } from '@microsoft/fast-element/declarative.js';
import { FluentDesignSystem } from '../fluent-design-system.js';
import { tagName } from './button.options.js';

/**
* The async definition configuration for the fluent-button element.
* The async definition configuration for the `<fluent-button>` element.
*
* @public
* @remarks
* This is used in server-side rendering (SSR) scenarios where the template
* is provided as a deferred option to be hydrated later.
*/
export const definition: PartialFASTElementDefinition = {
export const declarativeDefinition: PartialFASTElementDefinition = {
name: tagName,
templateOptions: 'defer-and-hydrate',
registry: FluentDesignSystem.registry,
template: declarativeTemplate(),
};
5 changes: 2 additions & 3 deletions packages/web-components/src/button/define-async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RenderableFASTElement } from '@microsoft/fast-html';
import { definition } from './button.definition-async.js';
import { declarativeDefinition } from './button.definition-async.js';
import { Button } from './button.js';

RenderableFASTElement(Button).defineAsync(definition);
Button.define(declarativeDefinition);
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
import { declarativeTemplate, type PartialFASTElementDefinition } from '@microsoft/fast-element/declarative.js';
import { FluentDesignSystem } from '../fluent-design-system.js';
import { tagName } from './checkbox.options.js';

/**
* The async definition configuration for the fluent-checkbox element.
* The async definition configuration for the `<fluent-checkbox>` element.
*
* @public
* @remarks
* This is used in server-side rendering (SSR) scenarios where the template
* is provided as a deferred option to be hydrated later.
*/
export const definition: PartialFASTElementDefinition = {
export const declarativeDefinition: PartialFASTElementDefinition = {
name: tagName,
templateOptions: 'defer-and-hydrate',
registry: FluentDesignSystem.registry,
template: declarativeTemplate(),
};
5 changes: 2 additions & 3 deletions packages/web-components/src/checkbox/define-async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RenderableFASTElement } from '@microsoft/fast-html';
import { definition } from './checkbox.definition-async.js';
import { declarativeDefinition } from './checkbox.definition-async.js';
import { Checkbox } from './checkbox.js';

RenderableFASTElement(Checkbox).defineAsync(definition);
Checkbox.define(declarativeDefinition);
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
import { declarativeTemplate, type PartialFASTElementDefinition } from '@microsoft/fast-element/declarative.js';
import { FluentDesignSystem } from '../fluent-design-system.js';
import { tagName } from './compound-button.options.js';

/**
* The async definition configuration for the fluent-compound-button element.
* The async definition configuration for the `<fluent-compound-button>` element.
*
* @public
* @remarks
* This is used in server-side rendering (SSR) scenarios where the template
* is provided as a deferred option to be hydrated later.
*/
export const definition: PartialFASTElementDefinition = {
export const declarativeDefinition: PartialFASTElementDefinition = {
name: tagName,
templateOptions: 'defer-and-hydrate',
registry: FluentDesignSystem.registry,
template: declarativeTemplate(),
};
5 changes: 2 additions & 3 deletions packages/web-components/src/compound-button/define-async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RenderableFASTElement } from '@microsoft/fast-html';
import { definition } from './compound-button.definition-async.js';
import { declarativeDefinition } from './compound-button.definition-async.js';
import { CompoundButton } from './compound-button.js';

RenderableFASTElement(CompoundButton).defineAsync(definition);
CompoundButton.define(declarativeDefinition);
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
import { declarativeTemplate, type PartialFASTElementDefinition } from '@microsoft/fast-element/declarative.js';
import { FluentDesignSystem } from '../fluent-design-system.js';
import { tagName } from './counter-badge.options.js';

/**
* The async definition configuration for the fluent-counter-badge element.
* The async definition configuration for the `<fluent-counter-badge>` element.
*
* @public
* @remarks
* This is used in server-side rendering (SSR) scenarios where the template
* is provided as a deferred option to be hydrated later.
*/
export const definition: PartialFASTElementDefinition = {
export const declarativeDefinition: PartialFASTElementDefinition = {
name: tagName,
templateOptions: 'defer-and-hydrate',
registry: FluentDesignSystem.registry,
template: declarativeTemplate(),
};
5 changes: 2 additions & 3 deletions packages/web-components/src/counter-badge/define-async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RenderableFASTElement } from '@microsoft/fast-html';
import { definition } from './counter-badge.definition-async.js';
import { declarativeDefinition } from './counter-badge.definition-async.js';
import { CounterBadge } from './counter-badge.js';

RenderableFASTElement(CounterBadge).defineAsync(definition);
CounterBadge.define(declarativeDefinition);
5 changes: 2 additions & 3 deletions packages/web-components/src/dialog-body/define-async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RenderableFASTElement } from '@microsoft/fast-html';
import { definition } from './dialog-body.definition-async.js';
import { declarativeDefinition } from './dialog-body.definition-async.js';
import { DialogBody } from './dialog-body.js';

RenderableFASTElement(DialogBody).defineAsync(definition);
DialogBody.define(declarativeDefinition);
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import type { PartialFASTElementDefinition } from '@microsoft/fast-element';
import { declarativeTemplate, type PartialFASTElementDefinition } from '@microsoft/fast-element/declarative.js';
import { FluentDesignSystem } from '../fluent-design-system.js';
import { tagName } from './dialog-body.options.js';

/**
* The async definition configuration for the fluent-dialog-body element.
* The async definition configuration for the `<fluent-dialog-body>` element.
*
* @public
* @remarks
* This is used in server-side rendering (SSR) scenarios where the template
* is provided as a deferred option to be hydrated later.
*/
export const definition: PartialFASTElementDefinition = {
export const declarativeDefinition: PartialFASTElementDefinition = {
name: tagName,
templateOptions: 'defer-and-hydrate',
registry: FluentDesignSystem.registry,
template: declarativeTemplate(),
};
5 changes: 2 additions & 3 deletions packages/web-components/src/dialog/define-async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RenderableFASTElement } from '@microsoft/fast-html';
import { definition } from './dialog.definition-async.js';
import { declarativeDefinition } from './dialog.definition-async.js';
import { Dialog } from './dialog.js';

RenderableFASTElement(Dialog).defineAsync(definition);
Dialog.define(declarativeDefinition);
Loading
Loading