-
Notifications
You must be signed in to change notification settings - Fork 955
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore[sdks]: extend allowed file types of Image and Video block (#3764)
## Description Extends `allowedFileTypes` of Image and Video blocks so that we can restrict our AssetPicker to use these file types moving forward Jira https://builder-io.atlassian.net/browse/ENG-6403 _Screenshot_ If relevant, add a screenshot or two of the changes you made.
- Loading branch information
1 parent
76793ce
commit 23b7594
Showing
9 changed files
with
168 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"@builder.io/react": patch | ||
"@builder.io/sdk-angular": patch | ||
"@builder.io/sdk-react-nextjs": patch | ||
"@builder.io/sdk-qwik": patch | ||
"@builder.io/sdk-react": patch | ||
"@builder.io/sdk-react-native": patch | ||
"@builder.io/sdk-solid": patch | ||
"@builder.io/sdk-svelte": patch | ||
"@builder.io/sdk-vue": patch | ||
--- | ||
|
||
Feat: extend allowed file types of Image and Video Block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
export const IMAGE_FILE_TYPES = [ | ||
'jpeg', | ||
'jpg', | ||
'png', | ||
'svg', | ||
'webp', | ||
'gif', | ||
'jfif', | ||
'pjpeg', | ||
'pjp', | ||
'apng', | ||
'avif', | ||
'tif', | ||
'tiff', | ||
'heif', | ||
'bmp', | ||
'eps', | ||
'raw', | ||
'cr2', | ||
'nef', | ||
'orf', | ||
'sr2', | ||
'psd', | ||
'heic', | ||
'dib', | ||
'ai', | ||
]; | ||
|
||
export const VIDEO_FILE_TYPES = [ | ||
'mp4', | ||
'webm', | ||
'mkv', | ||
'flv', | ||
'vob', | ||
'ogv', | ||
'ogg', | ||
'drc', | ||
'gif', | ||
'gifv', | ||
'mng', | ||
'avi', | ||
'mov', | ||
'qt', | ||
'mts', | ||
'm2ts', | ||
'ts', | ||
'wmv', | ||
'yuv', | ||
'rm', | ||
'rmvb', | ||
'viv', | ||
'asf', | ||
'amv', | ||
'm4p', | ||
'mpeg', | ||
'mpe', | ||
'm2v', | ||
'm4v', | ||
'svi', | ||
'3gp', | ||
'3g2', | ||
'mxf', | ||
'roq', | ||
'nsv', | ||
'f4v', | ||
'f4p', | ||
'f4a', | ||
'f4b', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
export const IMAGE_FILE_TYPES = [ | ||
'jpeg', | ||
'jpg', | ||
'png', | ||
'svg', | ||
'webp', | ||
'gif', | ||
'jfif', | ||
'pjpeg', | ||
'pjp', | ||
'apng', | ||
'avif', | ||
'tif', | ||
'tiff', | ||
'heif', | ||
'bmp', | ||
'eps', | ||
'raw', | ||
'cr2', | ||
'nef', | ||
'orf', | ||
'sr2', | ||
'psd', | ||
'heic', | ||
'dib', | ||
'ai', | ||
]; | ||
|
||
export const VIDEO_FILE_TYPES = [ | ||
'mp4', | ||
'webm', | ||
'mkv', | ||
'flv', | ||
'vob', | ||
'ogv', | ||
'ogg', | ||
'drc', | ||
'gif', | ||
'gifv', | ||
'mng', | ||
'avi', | ||
'mov', | ||
'qt', | ||
'mts', | ||
'm2ts', | ||
'ts', | ||
'wmv', | ||
'yuv', | ||
'rm', | ||
'rmvb', | ||
'viv', | ||
'asf', | ||
'amv', | ||
'm4p', | ||
'mpeg', | ||
'mpe', | ||
'm2v', | ||
'm4v', | ||
'svi', | ||
'3gp', | ||
'3g2', | ||
'mxf', | ||
'roq', | ||
'nsv', | ||
'f4v', | ||
'f4p', | ||
'f4a', | ||
'f4b', | ||
]; |