diff --git a/change/@fluentui-react-file-type-icons-cdn-20260623.json b/change/@fluentui-react-file-type-icons-cdn-20260623.json new file mode 100644 index 00000000000000..0c797b7a6a22c7 --- /dev/null +++ b/change/@fluentui-react-file-type-icons-cdn-20260623.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update the file type icon map for the fabric-cdn-prod_20260623.001 drop.", + "packageName": "@fluentui/react-file-type-icons", + "email": "caperez@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-react-file-type-icons-wikipage-20260713.json b/change/@fluentui-react-file-type-icons-wikipage-20260713.json new file mode 100644 index 00000000000000..4c5eccc51fba41 --- /dev/null +++ b/change/@fluentui-react-file-type-icons-wikipage-20260713.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Add the wikiPage file type icon mapping.", + "packageName": "@fluentui/react-file-type-icons", + "email": "caperez@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/change/@fluentui-style-utilities-f9a768ab-6e5a-484e-96f9-d861a301d435.json b/change/@fluentui-style-utilities-f9a768ab-6e5a-484e-96f9-d861a301d435.json new file mode 100644 index 00000000000000..4668d99c297d73 --- /dev/null +++ b/change/@fluentui-style-utilities-f9a768ab-6e5a-484e-96f9-d861a301d435.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Update the default Fluent CDN base URL to the fabric-cdn-prod_20260710.001 drop.", + "packageName": "@fluentui/style-utilities", + "email": "caperez@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-file-type-icons/src/FileIconType.ts b/packages/react-file-type-icons/src/FileIconType.ts index 26acfadc612d33..6f2b3f399b0e07 100644 --- a/packages/react-file-type-icons/src/FileIconType.ts +++ b/packages/react-file-type-icons/src/FileIconType.ts @@ -36,6 +36,7 @@ export enum FileIconType { pbiScorecard = 28, pbiSemanticModel = 29, pbiReport = 30, + wikiPage = 31, } export type FileIconTypeInput = @@ -68,4 +69,5 @@ export type FileIconTypeInput = | 27 | 28 | 29 - | 30; + | 30 + | 31; diff --git a/packages/react-file-type-icons/src/FileTypeIconMap.ts b/packages/react-file-type-icons/src/FileTypeIconMap.ts index 7d51a7eda1ce41..b8cbd41f92a8ad 100644 --- a/packages/react-file-type-icons/src/FileTypeIconMap.ts +++ b/packages/react-file-type-icons/src/FileTypeIconMap.ts @@ -580,6 +580,7 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = { whiteboard: { extensions: ['whiteboard', 'wbtx'], }, + wikipage: {}, xlsx: { extensions: ['xlc', 'xls', 'xlsb', 'xlsm', 'xlsx', 'xlw'], }, diff --git a/packages/react-file-type-icons/src/getFileTypeIconProps.test.ts b/packages/react-file-type-icons/src/getFileTypeIconProps.test.ts index 7035124efc222c..79206d5730830a 100644 --- a/packages/react-file-type-icons/src/getFileTypeIconProps.test.ts +++ b/packages/react-file-type-icons/src/getFileTypeIconProps.test.ts @@ -17,5 +17,6 @@ describe('return valid icon name', () => { expect(getFileTypeIconNameFromExtensionOrType('work', undefined)).toBe('agentwork'); expect(getFileTypeIconNameFromExtensionOrType(undefined, FileIconType.pbiDashboard)).toBe('pbidashboard'); expect(getFileTypeIconNameFromExtensionOrType(undefined, FileIconType.pbiReport)).toBe('powerbi'); + expect(getFileTypeIconNameFromExtensionOrType(undefined, FileIconType.wikiPage)).toBe('wikipage'); }); }); diff --git a/packages/react-file-type-icons/src/getFileTypeIconProps.ts b/packages/react-file-type-icons/src/getFileTypeIconProps.ts index 3b0f057954a90a..02db581b1e9af5 100644 --- a/packages/react-file-type-icons/src/getFileTypeIconProps.ts +++ b/packages/react-file-type-icons/src/getFileTypeIconProps.ts @@ -34,6 +34,7 @@ const PBI_PAGINATED_REPORT = 'pbipagereport'; const PBI_SCORECARD = 'pbiscorecard'; const PBI_SEMANTIC_MODEL = 'pbisemmodel'; const PBI_REPORT = 'powerbi'; +const WIKI_PAGE = 'wikipage'; export const DEFAULT_ICON_SIZE: FileTypeIconSize = 16; export type FileTypeIconSize = 16 | 20 | 24 | 32 | 40 | 48 | 64 | 96; @@ -199,6 +200,9 @@ export function getFileTypeIconNameFromExtensionOrType( case FileIconType.pbiReport: iconBaseName = PBI_REPORT; break; + case FileIconType.wikiPage: + iconBaseName = WIKI_PAGE; + break; } } return iconBaseName || GENERIC_FILE; diff --git a/packages/style-utilities/etc/style-utilities.api.md b/packages/style-utilities/etc/style-utilities.api.md index 695e5daa8093b7..21cdc17d17b01d 100644 --- a/packages/style-utilities/etc/style-utilities.api.md +++ b/packages/style-utilities/etc/style-utilities.api.md @@ -85,7 +85,7 @@ export { DefaultPalette } export const EdgeChromiumHighContrastSelector = "@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)"; // @public (undocumented) -export const FLUENT_CDN_BASE_URL = "https://res.cdn.office.net/files/fabric-cdn-prod_20260623.001"; +export const FLUENT_CDN_BASE_URL = "https://res.cdn.office.net/files/fabric-cdn-prod_20260710.001"; // @public export function focusClear(): IRawStyle; diff --git a/packages/style-utilities/src/cdn.ts b/packages/style-utilities/src/cdn.ts index 6bc44a42ba1763..4732ef0d7f6e1b 100644 --- a/packages/style-utilities/src/cdn.ts +++ b/packages/style-utilities/src/cdn.ts @@ -1 +1 @@ -export const FLUENT_CDN_BASE_URL = 'https://res.cdn.office.net/files/fabric-cdn-prod_20260623.001'; +export const FLUENT_CDN_BASE_URL = 'https://res.cdn.office.net/files/fabric-cdn-prod_20260710.001';