diff --git a/change/@microsoft-fast-foundation-a6d78d55-521f-4741-a7b4-60f4e5b14a37.json b/change/@microsoft-fast-foundation-a6d78d55-521f-4741-a7b4-60f4e5b14a37.json new file mode 100644 index 00000000000..b37813cdddd --- /dev/null +++ b/change/@microsoft-fast-foundation-a6d78d55-521f-4741-a7b4-60f4e5b14a37.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Foundation: Updated Horizontal Scroll template (https://github.com/microsoft/fast/pull/6921)", + "packageName": "@microsoft/fast-foundation", + "email": "47367562+bheston@users.noreply.github.com", + "dependentChangeType": "prerelease" +} diff --git a/change/@microsoft-fast-ssr-b504d376-3c29-4415-8124-f4fd4f05c078.json b/change/@microsoft-fast-ssr-b504d376-3c29-4415-8124-f4fd4f05c078.json new file mode 100644 index 00000000000..dda30d283a4 --- /dev/null +++ b/change/@microsoft-fast-ssr-b504d376-3c29-4415-8124-f4fd4f05c078.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Fix tests for related foundation template changes", + "packageName": "@microsoft/fast-ssr", + "email": "47367562+bheston@users.noreply.github.com", + "dependentChangeType": "prerelease" +} diff --git a/packages/web-components/fast-foundation/docs/api-report.md b/packages/web-components/fast-foundation/docs/api-report.md index c246768e513..7c1f35d4b83 100644 --- a/packages/web-components/fast-foundation/docs/api-report.md +++ b/packages/web-components/fast-foundation/docs/api-report.md @@ -2383,10 +2383,11 @@ export type HorizontalPosition = ValuesOf; export type HorizontalScrollOptions = StartEndOptions & { nextFlipper?: StaticallyComposableHTML; previousFlipper?: StaticallyComposableHTML; + flipper: TemplateElementDependency; }; // @public (undocumented) -export function horizontalScrollTemplate(options?: HorizontalScrollOptions): ElementViewTemplate; +export function horizontalScrollTemplate(options: HorizontalScrollOptions): ElementViewTemplate; // @public export const HorizontalScrollView: { @@ -2900,6 +2901,7 @@ export type YearFormat = ValuesOf; // dist/dts/calendar/calendar.d.ts:53:5 - (ae-incompatible-release-tags) The symbol "dataGrid" is marked as @public, but its signature references "TemplateElementDependency" which is marked as @beta // dist/dts/data-grid/data-grid-row.template.d.ts:9:5 - (ae-incompatible-release-tags) The symbol "dataGridCell" is marked as @public, but its signature references "TemplateElementDependency" which is marked as @beta // dist/dts/data-grid/data-grid.template.d.ts:9:5 - (ae-incompatible-release-tags) The symbol "dataGridRow" is marked as @public, but its signature references "TemplateElementDependency" which is marked as @beta +// dist/dts/horizontal-scroll/horizontal-scroll.options.d.ts:39:5 - (ae-incompatible-release-tags) The symbol "flipper" is marked as @public, but its signature references "TemplateElementDependency" which is marked as @beta // dist/dts/picker/picker.template.d.ts:9:5 - (ae-incompatible-release-tags) The symbol "anchoredRegion" is marked as @public, but its signature references "TemplateElementDependency" which is marked as @beta // dist/dts/picker/picker.template.d.ts:10:5 - (ae-incompatible-release-tags) The symbol "pickerMenu" is marked as @public, but its signature references "TemplateElementDependency" which is marked as @beta // dist/dts/picker/picker.template.d.ts:11:5 - (ae-incompatible-release-tags) The symbol "pickerMenuOption" is marked as @public, but its signature references "TemplateElementDependency" which is marked as @beta diff --git a/packages/web-components/fast-foundation/src/flipper/flipper.template.ts b/packages/web-components/fast-foundation/src/flipper/flipper.template.ts index da8cfa48d0b..bc6354cb389 100644 --- a/packages/web-components/fast-foundation/src/flipper/flipper.template.ts +++ b/packages/web-components/fast-foundation/src/flipper/flipper.template.ts @@ -19,7 +19,7 @@ export function flipperTemplate( let existing = templateCache[direction]; if (!existing) { - templateCache[direction] = existing = html` + templateCache[direction] = existing = html` ${staticallyCompose(options[direction])} @@ -31,7 +31,7 @@ export function flipperTemplate( return existing; } - return html` + return html`