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
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Support for new \"special folder\" filetype icon (default \"shortcuts\" folder)",
"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": "Updated OneCDN url to latest version (adding support for new filetype icon \"shortcuts folder\")",
"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 @@ -29,6 +29,7 @@ export enum FileIconType {
album = 21,
listForm = 22,
campaign = 23,
shortcutsdefaultfolder = 24,
}

export type FileIconTypeInput =
Expand All @@ -54,4 +55,5 @@ export type FileIconTypeInput =
| 20
| 21
| 22
| 23;
| 23
| 24;
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 @@ -267,6 +267,7 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = {
csv: {
extensions: ['csv'],
},
companyfolder: {},
designer: {
extensions: ['design'],
},
Expand Down
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 @@ -27,6 +27,7 @@ const PORTFOLIO = 'portfolio';
const ALBUM = 'album';
const LIST_FORM = 'listform';
const CAMPAIGN = 'spocampaign';
const SHORTCUTS_DEFAULT_FOLDER = 'companyfolder';

export const DEFAULT_ICON_SIZE: FileTypeIconSize = 16;
export type FileTypeIconSize = 16 | 20 | 24 | 32 | 40 | 48 | 64 | 96;
Expand Down Expand Up @@ -171,6 +172,9 @@ export function getFileTypeIconNameFromExtensionOrType(
case FileIconType.campaign:
iconBaseName = CAMPAIGN;
break;
case FileIconType.shortcutsdefaultfolder:
iconBaseName = SHORTCUTS_DEFAULT_FOLDER;
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_20260115.001";
export const FLUENT_CDN_BASE_URL = "https://res.cdn.office.net/files/fabric-cdn-prod_20260331.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_20260115.001';
export const FLUENT_CDN_BASE_URL = 'https://res.cdn.office.net/files/fabric-cdn-prod_20260331.001';
Loading