Skip to content

Commit

Permalink
adding filetype for album object (#33167)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbadcapers authored Oct 31, 2024
1 parent cc24d04 commit eb5c486
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "adding support for placeholder \"album\" filetype icon",
"packageName": "@fluentui/react-file-type-icons",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "adding support for placeholder \"album\" filetype icon",
"packageName": "@fluentui/style-utilities",
"email": "[email protected]",
"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 @@ -26,6 +26,7 @@ export enum FileIconType {
planner = 18,
todoItem = 19,
portfolio = 20,
album = 21,
}

export type FileIconTypeInput =
Expand All @@ -48,4 +49,5 @@ export type FileIconTypeInput =
| 17
| 18
| 19
| 20;
| 20
| 21;
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 @@ -10,6 +10,7 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = {
archive: {
extensions: ['7z', 'ace', 'arc', 'arj', 'dmg', 'gz', 'iso', 'lzh', 'pkg', 'rar', 'sit', 'tgz', 'tar', 'z'],
},
album: {},
audio: {
extensions: [
'aif',
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 @@ -24,6 +24,7 @@ const LOOP_WORKSPACE = 'loopworkspace';
const TODOITEM = 'todoitem';
const PLANNER = 'planner';
const PORTFOLIO = 'portfolio';
const ALBUM = 'album';

export const DEFAULT_ICON_SIZE: FileTypeIconSize = 16;
export type FileTypeIconSize = 16 | 20 | 24 | 32 | 40 | 48 | 64 | 96;
Expand Down Expand Up @@ -159,6 +160,9 @@ export function getFileTypeIconNameFromExtensionOrType(
case FileIconType.portfolio:
iconBaseName = PORTFOLIO;
break;
case FileIconType.album:
iconBaseName = ALBUM;
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 @@ -84,7 +84,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_20240925.001";
export const FLUENT_CDN_BASE_URL = "https://res.cdn.office.net/files/fabric-cdn-prod_20241029.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_20240925.001';
export const FLUENT_CDN_BASE_URL = 'https://res.cdn.office.net/files/fabric-cdn-prod_20241029.001';

0 comments on commit eb5c486

Please sign in to comment.