Skip to content

Commit

Permalink
FileTypes: Adding cliptemplate and listform filetype and itemtype map…
Browse files Browse the repository at this point in the history
…pings (microsoft#33455)
  • Loading branch information
bigbadcapers authored Dec 12, 2024
1 parent 97bb4b6 commit 6dfe27e
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Adding cliptemplate and listform filetype and itemtype mappings & updating corresponding fabric-cdn URL",
"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 cliptemplate and listform filetype and itemtype mappings & updating corresponding fabric-cdn URL",
"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 @@ -27,6 +27,7 @@ export enum FileIconType {
todoItem = 19,
portfolio = 20,
album = 21,
listForm = 22,
}

export type FileIconTypeInput =
Expand All @@ -50,4 +51,5 @@ export type FileIconTypeInput =
| 18
| 19
| 20
| 21;
| 21
| 22;
4 changes: 4 additions & 0 deletions packages/react-file-type-icons/src/FileTypeIconMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = {
clipchamp: {
extensions: ['clipchamp'],
},
cliptemplate: {
extensions: ['cliptemplate'],
},
code: {
extensions: [
'abap',
Expand Down Expand Up @@ -301,6 +304,7 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = {
extensions: ['lnk', 'link', 'url', 'website', 'webloc'],
},
linkedfolder: {},
listform: {},
listitem: {},
loop: {
extensions: ['fluid', 'loop', 'note'],
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 @@ -25,6 +25,7 @@ const TODOITEM = 'todoitem';
const PLANNER = 'planner';
const PORTFOLIO = 'portfolio';
const ALBUM = 'album';
const LIST_FORM = 'listform';

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

0 comments on commit 6dfe27e

Please sign in to comment.