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 packages/react-icons-file-type/src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* started. To use your own asset host, supply a `baseUrl` to `FileTypeIconsProvider`
* (or to the individual helper functions / the `baseUrl` prop on `FileTypeIcon`).
*/
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';

/**
* Default base URL used to resolve file type icon assets when no `baseUrl` is provided.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const FileIconType = {
pbiScorecard: 28,
pbiSemanticModel: 29,
pbiReport: 30,
wikiPage: 31,
} as const;

export type FileIconType = (typeof FileIconType)[keyof typeof FileIconType];
Expand Down Expand Up @@ -95,4 +96,5 @@ export const TYPE_TO_ICON_NAME: ReadonlyArray<string> = [
'pbiscorecard', // 28 pbiScorecard
'pbisemmodel', // 29 pbiSemanticModel
'powerbi', // 30 pbiReport
'wikipage', // 31 wikiPage
];
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
{ "value": 27, "name": "pbiPaginatedReport", "icon": "pbipagereport" },
{ "value": 28, "name": "pbiScorecard", "icon": "pbiscorecard" },
{ "value": 29, "name": "pbiSemanticModel", "icon": "pbisemmodel" },
{ "value": 30, "name": "pbiReport", "icon": "powerbi" }
{ "value": 30, "name": "pbiReport", "icon": "powerbi" },
{ "value": 31, "name": "wikiPage", "icon": "wikipage" }
]
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe('FileIconType', () => {
pbiScorecard: 28,
pbiSemanticModel: 29,
pbiReport: 30,
wikiPage: 31,
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@
"vssx": ["vss", "vssm", "vssx"],
"vstx": ["vst", "vstm", "vstx", "vsx"],
"whiteboard": ["whiteboard", "wbtx"],
"wikipage": null,
"xlsx": ["xlc", "xls", "xlsb", "xlsm", "xlsx", "xlw"],
"xltx": ["xlt", "xltm", "xltx"],
"xml": ["xaml", "xml", "xsl"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe('getFileTypeIconNameFromExtensionOrType', () => {
expect(getFileTypeIconNameFromExtensionOrType(undefined, FileIconType.pbiScorecard)).toBe('pbiscorecard');
expect(getFileTypeIconNameFromExtensionOrType(undefined, FileIconType.pbiSemanticModel)).toBe('pbisemmodel');
expect(getFileTypeIconNameFromExtensionOrType(undefined, FileIconType.pbiReport)).toBe('powerbi');
expect(getFileTypeIconNameFromExtensionOrType(undefined, FileIconType.wikiPage)).toBe('wikipage');
});

it('falls back to genericfile for the genericFile type (no dedicated map entry)', () => {
Expand Down
Loading