Skip to content
Merged
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 markdown, \"special folder\" filetype icon (default \"shortcuts\" folder) and other fixes",
"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 markdown, \"shortcuts folder\" filetype icon and other fixes)",
"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;
12 changes: 11 additions & 1 deletion packages/react-file-type-icons/src/FileTypeIconMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,14 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = {
copilot: {
extensions: ['copilot'],
},
cowork: {
extensions: ['work'],
},
/* css: {}, not broken out yet, snapping to 'code' for now */
csv: {
extensions: ['csv'],
},
companyfolder: {},
designer: {
extensions: ['design'],
},
Expand Down Expand Up @@ -298,6 +302,9 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = {
ipynb: {
extensions: ['nnb', 'ipynb'],
},
inkcanvas: {
extensions: ['canvas'],
},
link: {
extensions: ['lnk', 'link', 'url', 'website', 'webloc'],
},
Expand All @@ -315,6 +322,9 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = {
mcworld: {
extensions: ['mcworld'],
},
md: {
extensions: ['md', 'markdn', 'markdown', 'mdown', 'mkdn'],
},
mctemplate: {
extensions: ['mctemplate'],
},
Expand Down Expand Up @@ -444,7 +454,7 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = {
extensions: ['odc', 'ods', 'gsheet', 'numbers', 'tsv'],
},
rtf: {
extensions: ['epub', 'gdoc', 'odt', 'md', 'markdn', 'markdown', 'mdown', 'mkdn', 'rtf', 'wri', 'pages'],
extensions: ['epub', 'gdoc', 'odt', 'rtf', 'wri', 'pages'],
},
sharedfolder: {},
playlist: {},
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_20260506.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_20260506.001';
Loading