Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cover block media settings #3028

Merged
merged 13 commits into from
Feb 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bundle/android/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
<string name="gutenberg_native_double_tap_to_move_the_block_to_the_left" tools:ignore="UnusedResources">Double tap to move the block to the left</string>
<string name="gutenberg_native_double_tap_to_move_the_block_to_the_right" tools:ignore="UnusedResources">Double tap to move the block to the right</string>
<string name="gutenberg_native_double_tap_to_move_the_block_up" tools:ignore="UnusedResources">Double tap to move the block up</string>
<string name="gutenberg_native_double_tap_to_open_action_sheet_to_edit_or_replace_the_image" tools:ignore="UnusedResources">Double tap to open Action Sheet to edit or replace the image</string>
<string name="gutenberg_native_double_tap_to_open_action_sheet_to_edit_replace_or_clear_the_imag" tools:ignore="UnusedResources">Double tap to open Action Sheet to edit, replace, or clear the image</string>
<string name="gutenberg_native_double_tap_to_open_action_sheet_with_available_options" tools:ignore="UnusedResources">Double tap to open Action Sheet with available options</string>
<string name="gutenberg_native_double_tap_to_open_bottom_sheet_to_edit_or_replace_the_image" tools:ignore="UnusedResources">Double tap to open Bottom Sheet to edit or replace the image</string>
<string name="gutenberg_native_double_tap_to_open_bottom_sheet_to_edit_replace_or_clear_the_imag" tools:ignore="UnusedResources">Double tap to open Bottom Sheet to edit, replace, or clear the image</string>
<string name="gutenberg_native_double_tap_to_open_bottom_sheet_with_available_options" tools:ignore="UnusedResources">Double tap to open Bottom Sheet with available options</string>
<string name="gutenberg_native_double_tap_to_redo_last_change" tools:ignore="UnusedResources">Double tap to redo last change</string>
<string name="gutenberg_native_double_tap_to_select" tools:ignore="UnusedResources">Double tap to select</string>
Expand All @@ -87,7 +87,7 @@
<string name="gutenberg_native_double_tap_to_undo_last_change" tools:ignore="UnusedResources">Double tap to undo last change</string>
<string name="gutenberg_native_duplicate_block" tools:ignore="UnusedResources">Duplicate block</string>
<string name="gutenberg_native_edit_file" tools:ignore="UnusedResources">Edit file</string>
<string name="gutenberg_native_edit_the_cover_image" tools:ignore="UnusedResources">Edit the cover image</string>
<string name="gutenberg_native_edit_focal_point" tools:ignore="UnusedResources">Edit focal point</string>
<string name="gutenberg_native_edit_using_web_editor" tools:ignore="UnusedResources">Edit using web editor</string>
<string name="gutenberg_native_edit_video" tools:ignore="UnusedResources">Edit video</string>
<string name="gutenberg_native_error" tools:ignore="UnusedResources">Error</string>
Expand Down
3,809 changes: 1,901 additions & 1,908 deletions bundle/ios/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/App.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions bundle/ios/GutenbergNativeTranslations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ private func dummy() {
_ = NSLocalizedString("Double tap to move the block to the left", comment: "")
_ = NSLocalizedString("Double tap to move the block to the right", comment: "")
_ = NSLocalizedString("Double tap to move the block up", comment: "")
_ = NSLocalizedString("Double tap to open Action Sheet to edit or replace the image", comment: "")
_ = NSLocalizedString("Double tap to open Action Sheet to edit, replace, or clear the image", comment: "")
_ = NSLocalizedString("Double tap to open Action Sheet with available options", comment: "")
_ = NSLocalizedString("Double tap to open Bottom Sheet to edit or replace the image", comment: "")
_ = NSLocalizedString("Double tap to open Bottom Sheet to edit, replace, or clear the image", comment: "")
_ = NSLocalizedString("Double tap to open Bottom Sheet with available options", comment: "")
_ = NSLocalizedString("Double tap to redo last change", comment: "")
_ = NSLocalizedString("Double tap to select", comment: "")
Expand All @@ -77,7 +77,7 @@ private func dummy() {
_ = NSLocalizedString("Double tap to undo last change", comment: "")
_ = NSLocalizedString("Duplicate block", comment: "")
_ = NSLocalizedString("Edit file", comment: "")
_ = NSLocalizedString("Edit the cover image", comment: "")
_ = NSLocalizedString("Edit focal point", comment: "")
_ = NSLocalizedString("Edit using web editor", comment: "")
_ = NSLocalizedString("Edit video", comment: "")
_ = NSLocalizedString("Error", comment: "")
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gutenberg
Submodule gutenberg updated 96 files
+27 −27 docs/designers-developers/developers/data/data-core-block-editor.md
+16 −16 docs/designers-developers/developers/data/data-core-blocks.md
+3 −3 docs/designers-developers/developers/data/data-core-edit-post.md
+5 −5 docs/designers-developers/developers/data/data-core-editor.md
+7 −7 docs/designers-developers/developers/data/data-core-keyboard-shortcuts.md
+1 −1 docs/designers-developers/developers/data/data-core-notices.md
+1 −1 docs/designers-developers/developers/data/data-core-nux.md
+15 −15 docs/designers-developers/developers/data/data-core.md
+20 −16 lib/class-wp-theme-json-resolver.php
+26 −20 lib/class-wp-theme-json.php
+2 −2 lib/global-styles.php
+9 −1 package-lock.json
+2 −2 packages/blob/README.md
+1 −1 packages/block-directory/README.md
+3 −3 packages/block-editor/README.md
+8 −0 packages/block-editor/src/components/block-settings/container.native.js
+5 −0 packages/block-editor/src/components/media-upload/index.native.js
+303 −0 packages/block-library/src/cover/controls.native.js
+16 −4 packages/block-library/src/cover/edit.js
+57 −113 packages/block-library/src/cover/edit.native.js
+53 −0 packages/block-library/src/cover/focal-point-settings.native.js
+4 −0 packages/block-library/src/cover/shared.js
+46 −4 packages/block-library/src/cover/style.native.scss
+11 −1 packages/block-library/src/media-text/edit.js
+18 −11 packages/block-library/src/media-text/media-container.js
+13 −13 packages/blocks/README.md
+10 −0 packages/components/CHANGELOG.md
+21 −7 packages/components/src/focal-point-picker/README.md
+30 −0 packages/components/src/focal-point-picker/focal-point.native.js
+85 −114 packages/components/src/focal-point-picker/index.js
+279 −0 packages/components/src/focal-point-picker/index.native.js
+56 −0 packages/components/src/focal-point-picker/style.scss
+1 −3 packages/components/src/focal-point-picker/styles/focal-point-style.js
+75 −0 packages/components/src/focal-point-picker/test/index.js
+151 −0 packages/components/src/focal-point-picker/tooltip/index.native.js
+42 −0 packages/components/src/focal-point-picker/tooltip/style.native.scss
+69 −77 packages/components/src/higher-order/with-notices/index.js
+166 −0 packages/components/src/higher-order/with-notices/test/index.js
+2 −0 packages/components/src/index.native.js
+2 −0 packages/components/src/mobile/bottom-sheet/cell.native.js
+15 −3 packages/components/src/mobile/bottom-sheet/index.native.js
+1 −1 packages/components/src/mobile/bottom-sheet/range-cell.native.js
+78 −0 packages/components/src/mobile/focal-point-settings/index.native.js
+3 −0 packages/components/src/mobile/focal-point-settings/styles.native.scss
+9 −5 packages/components/src/mobile/image/image-editing-button.native.js
+29 −19 packages/components/src/mobile/image/index.native.js
+1 −0 packages/components/src/mobile/media-edit/index.native.js
+34 −3 packages/components/src/mobile/picker/index.ios.js
+18 −9 packages/components/src/resizable-box/index.js
+31 −20 packages/components/src/unit-control/index.native.js
+8 −8 packages/compose/README.md
+15 −15 packages/core-data/README.md
+1 −1 packages/data-controls/README.md
+5 −5 packages/data/README.md
+8 −8 packages/date/README.md
+1 −1 packages/deprecated/README.md
+2 −0 packages/docgen/CHANGELOG.md
+15 −13 packages/docgen/lib/get-jsdoc-from-token.js
+1 −1 packages/docgen/lib/get-symbol-tags-by-name.js
+22 −13 packages/docgen/lib/markdown/formatter.js
+1 −1 packages/docgen/package.json
+2 −0 packages/docgen/test/fixtures/default-parse-error/code.js
+1 −1 packages/docgen/test/fixtures/default-parse-error/exports.json
+4 −35 packages/docgen/test/formatter-markdown.js
+0 −31 packages/docgen/test/get-intermediate-representation.js
+32 −25 packages/docgen/test/get-jsdoc-from-token.js
+1 −1 packages/dom/README.md
+10 −10 packages/e2e-test-utils/README.md
+0 −2 packages/edit-post/src/components/block-settings-menu/plugin-block-settings-menu-item.js
+0 −2 packages/edit-post/src/components/header/plugin-more-menu-item/index.js
+0 −2 packages/edit-post/src/components/header/plugin-sidebar-more-menu-item/index.js
+0 −2 packages/edit-post/src/components/sidebar/plugin-document-setting-panel/index.js
+0 −2 packages/edit-post/src/components/sidebar/plugin-post-publish-panel/index.js
+0 −2 packages/edit-post/src/components/sidebar/plugin-post-status-info/index.js
+0 −2 packages/edit-post/src/components/sidebar/plugin-pre-publish-panel/index.js
+0 −2 packages/edit-post/src/components/sidebar/plugin-sidebar/index.js
+5 −7 packages/element/README.md
+4 −8 packages/escape-html/README.md
+2 −2 packages/keycodes/README.md
+1 −1 packages/plugins/README.md
+0 −4 packages/plugins/src/api/index.js
+0 −2 packages/plugins/src/components/plugin-area/index.js
+6 −1 packages/primitives/src/svg/index.native.js
+2 −2 packages/react-i18n/README.md
+9 −0 ...-bridge/android/src/main/java/org/wordpress/mobile/ReactNativeGutenbergBridge/GutenbergBridgeJS2Parent.java
+20 −0 ...droid/src/main/java/org/wordpress/mobile/ReactNativeGutenbergBridge/RNReactNativeGutenbergBridgeModule.java
+18 −1 packages/react-native-bridge/android/src/main/java/org/wordpress/mobile/WPAndroidGlue/WPAndroidGlueCode.java
+12 −0 packages/react-native-bridge/index.js
+7 −0 packages/react-native-bridge/ios/GutenbergBridgeDelegate.swift
+2 −0 packages/react-native-bridge/ios/RNReactNativeGutenbergBridge.m
+15 −5 packages/react-native-bridge/ios/RNReactNativeGutenbergBridge.swift
+1 −0 packages/react-native-editor/CHANGELOG.md
+9 −0 packages/react-native-editor/android/app/src/main/java/com/gutenberg/MainApplication.java
+18 −10 packages/react-native-editor/ios/GutenbergDemo/GutenbergViewController.swift
+11 −11 packages/rich-text/README.md
+7 −7 packages/url/README.md