Skip to content
Draft
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
7 changes: 7 additions & 0 deletions change/@fluentui-react-file-type-icons-cdn-20260623.json
Original file line number Diff line number Diff line change
@@ -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"
}
7 changes: 7 additions & 0 deletions change/@fluentui-react-file-type-icons-wikipage-20260713.json
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
@@ -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"
}
4 changes: 3 additions & 1 deletion packages/react-file-type-icons/src/FileIconType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export enum FileIconType {
pbiScorecard = 28,
pbiSemanticModel = 29,
pbiReport = 30,
wikiPage = 31,
}

export type FileIconTypeInput =
Expand Down Expand Up @@ -68,4 +69,5 @@ export type FileIconTypeInput =
| 27
| 28
| 29
| 30;
| 30
| 31;
1 change: 1 addition & 0 deletions packages/react-file-type-icons/src/FileTypeIconMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = {
whiteboard: {
extensions: ['whiteboard', 'wbtx'],
},
wikipage: {},
xlsx: {
extensions: ['xlc', 'xls', 'xlsb', 'xlsm', 'xlsx', 'xlw'],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
4 changes: 4 additions & 0 deletions packages/react-file-type-icons/src/getFileTypeIconProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/style-utilities/etc/style-utilities.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/style-utilities/src/cdn.ts
Original file line number Diff line number Diff line change
@@ -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';
Loading