Skip to content

Commit 6dfe27e

Browse files
authored
FileTypes: Adding cliptemplate and listform filetype and itemtype mappings (#33455)
1 parent 97bb4b6 commit 6dfe27e

7 files changed

Lines changed: 27 additions & 3 deletions
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Adding cliptemplate and listform filetype and itemtype mappings & updating corresponding fabric-cdn URL",
4+
"packageName": "@fluentui/react-file-type-icons",
5+
"email": "caperez@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Adding cliptemplate and listform filetype and itemtype mappings & updating corresponding fabric-cdn URL",
4+
"packageName": "@fluentui/style-utilities",
5+
"email": "caperez@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

packages/react-file-type-icons/src/FileIconType.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export enum FileIconType {
2727
todoItem = 19,
2828
portfolio = 20,
2929
album = 21,
30+
listForm = 22,
3031
}
3132

3233
export type FileIconTypeInput =
@@ -50,4 +51,5 @@ export type FileIconTypeInput =
5051
| 18
5152
| 19
5253
| 20
53-
| 21;
54+
| 21
55+
| 22;

packages/react-file-type-icons/src/FileTypeIconMap.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = {
4848
clipchamp: {
4949
extensions: ['clipchamp'],
5050
},
51+
cliptemplate: {
52+
extensions: ['cliptemplate'],
53+
},
5154
code: {
5255
extensions: [
5356
'abap',
@@ -301,6 +304,7 @@ export const FileTypeIconMap: { [key: string]: { extensions?: string[] } } = {
301304
extensions: ['lnk', 'link', 'url', 'website', 'webloc'],
302305
},
303306
linkedfolder: {},
307+
listform: {},
304308
listitem: {},
305309
loop: {
306310
extensions: ['fluid', 'loop', 'note'],

packages/react-file-type-icons/src/getFileTypeIconProps.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const TODOITEM = 'todoitem';
2525
const PLANNER = 'planner';
2626
const PORTFOLIO = 'portfolio';
2727
const ALBUM = 'album';
28+
const LIST_FORM = 'listform';
2829

2930
export const DEFAULT_ICON_SIZE: FileTypeIconSize = 16;
3031
export type FileTypeIconSize = 16 | 20 | 24 | 32 | 40 | 48 | 64 | 96;
@@ -163,6 +164,9 @@ export function getFileTypeIconNameFromExtensionOrType(
163164
case FileIconType.album:
164165
iconBaseName = ALBUM;
165166
break;
167+
case FileIconType.listForm:
168+
iconBaseName = LIST_FORM;
169+
break;
166170
}
167171
}
168172
return iconBaseName || GENERIC_FILE;

packages/style-utilities/etc/style-utilities.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export { DefaultPalette }
8484
export const EdgeChromiumHighContrastSelector = "@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)";
8585

8686
// @public (undocumented)
87-
export const FLUENT_CDN_BASE_URL = "https://res.cdn.office.net/files/fabric-cdn-prod_20241029.001";
87+
export const FLUENT_CDN_BASE_URL = "https://res.cdn.office.net/files/fabric-cdn-prod_20241209.001";
8888

8989
// @public
9090
export function focusClear(): IRawStyle;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const FLUENT_CDN_BASE_URL = 'https://res.cdn.office.net/files/fabric-cdn-prod_20241029.001';
1+
export const FLUENT_CDN_BASE_URL = 'https://res.cdn.office.net/files/fabric-cdn-prod_20241209.001';

0 commit comments

Comments
 (0)