-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RNMobile] Audio block capability now enables/disables media upload's…
… media sources (#31966) * Basics of Audio block working * Add audio support to MediaUpload * Add handling of file uploads and replace * WPMediaLibrary support for Audio block * Avoid removing media info on error state * Linting * Added an AUDIO file to the test requestMediaPickFromMediaLibrary func * Fixed typo in ToolbarButton of Audio Block. * Removed auto help behavior present on web that's not used on mobile. * [Android] Wired the click of the Audio Media Library button. * Added Audio media options for choosing audio file locally. * [RNMobile] Audio Block: Proper caption field (#27689) * Add alert prompt to insert from URL * Set entered URL in audio block attributes * initial integration with react native prompt. * updated prompt lib. * updated commit hash of prompt lib. * Updated package-lock.json. * Added RNPromptPackage to Glue Code. * fixed merge conflicts between the edit.native.js files of the branches * added onSelectURL to the media-upload component * added onSelectURL to the media-placeholder * updated onSelectURL support with notice and URL validation * sync package-lock.json * updated package-lock.json * updated package-lock.json * updated react-native-prompt-android setup due to binary dep changes. * sync package-lock.json * Integrated RNPromptPackage with the glue code. * sync package-lock.json * package-lock.json fix * sync package-lock.json * Added the globe icon to the Insert from URL source.Only shown on Android * Extract filename from all URL types and optimized extension logic. * Removed hook that would show/hide the audio block. It is not needed. * Only show the Insert from URL option when the audio block cap is false * Added changelog entry for the Audio block URL prompt on free sites * Removed exclamation mark. * Reduced onPress -> onSelectURL logic since the parameters match. * Added entry to CHANGELOG.md * simplified isAudioBlockEnabled's usage of getSettings. * exported the Insert from URL option so that the test can be utilize it. * Added test that verifies the Insert From URL option with the audio type * isAudioBlockMediaUploadEnabled now represents the Audio block capability * placed the audio block capability in a single filter callback function * Added release notes entry under unreleased. * added logic that verifies that the source being enabled supports audio * formatted code changes. * Changed the order of the props to match the order throughout the file. * Fixed order of ios capabilities * Fix indent issues on Gutenberg props Co-authored-by: eToledo <[email protected]> Co-authored-by: Ceyhun Ozugur <[email protected]> Co-authored-by: Carlos Garcia <[email protected]>
- Loading branch information
1 parent
696d64b
commit 7e360e4
Showing
8 changed files
with
44 additions
and
30 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
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
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