Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3ab095e
Update gutenberg submodule hash to 8b70472d143cf6d890c22e67063c23f419…
wpmobilebot Apr 28, 2022
cc2ef9f
Update gutenberg submodule hash to 43d780baefd9505bd189d689f7cc29b3fe…
wpmobilebot Apr 28, 2022
ebed270
Update gutenberg submodule hash to 39c887049b1b93c19194611ee210addc50…
wpmobilebot Apr 28, 2022
bb0fb11
Update gutenberg submodule hash to f38d259f2b8aca91ebeb94b2f217b0e566…
wpmobilebot Apr 28, 2022
db071dd
Update gutenberg submodule hash to bd2eea43ea1396db0e06942f64786f578d…
wpmobilebot Apr 29, 2022
ba802cf
Update gutenberg submodule hash to 4cf9f9eccc65d3e811c3dec9b6b259747c…
wpmobilebot Apr 29, 2022
dfbd233
Update gutenberg submodule hash to a6bfbf71653dceb5e289f22d1958910c95…
wpmobilebot Apr 29, 2022
70618ef
Merge branch 'trunk' into version-toolkit/gutenberg/rnmobile/heading-…
jostnes Apr 29, 2022
6c78d31
Update gutenberg submodule hash to a6bfbf71653dceb5e289f22d1958910c95…
wpmobilebot Apr 29, 2022
1074b59
Merge branch 'trunk' into version-toolkit/gutenberg/rnmobile/heading-…
jostnes May 9, 2022
dc62d64
Merge branch 'version-toolkit/gutenberg/rnmobile/heading-list-blocks-…
jostnes May 9, 2022
2430392
fix conflicts
jostnes May 9, 2022
3cacbad
Update gutenberg submodule hash to a6bfbf71653dceb5e289f22d1958910c95…
wpmobilebot May 9, 2022
ce8d8e5
Update gutenberg submodule hash to 6a9dae269c924409694c01400f825c1cad…
wpmobilebot May 10, 2022
e871f3c
Update gutenberg submodule hash to e3bc3935a6f404a47bf5cf3c773bac172d…
wpmobilebot May 10, 2022
0fce4c4
Update gutenberg submodule hash to 4f6917ea29be33315f89b96ea811278408…
wpmobilebot May 10, 2022
d2424e4
Update gutenberg submodule hash to 85c407c286fc18e226f98fbcfa440237f9…
wpmobilebot May 10, 2022
a92b3d2
Update gutenberg submodule hash to d1af9076afc1a54787e003dd167aa1d17e…
wpmobilebot May 10, 2022
c8dd14c
Update gutenberg submodule hash to 4c7f918067fae2ce113d893ff775898753…
wpmobilebot May 11, 2022
53f5f46
Merge branch 'trunk' into version-toolkit/gutenberg/rnmobile/heading-…
jostnes May 11, 2022
5ab011a
Update gutenberg submodule hash to 4c7f918067fae2ce113d893ff775898753…
wpmobilebot May 11, 2022
6b4f7c4
Update gutenberg submodule hash to 0da6fc5cc49e4dae6347c63d93b47bbf94…
wpmobilebot May 12, 2022
916c3a4
Update gutenberg submodule hash to 58d9e906c23fdbc26197a0ccaa9f3aad5a…
wpmobilebot May 12, 2022
8ffb2aa
Update gutenberg submodule hash to 92ffc5eeff491355eb8f8677b8e6d3de38…
wpmobilebot May 12, 2022
0990126
Merge branch 'trunk' into version-toolkit/gutenberg/rnmobile/heading-…
jostnes May 13, 2022
15323d4
Update gutenberg submodule hash to 92ffc5eeff491355eb8f8677b8e6d3de38…
wpmobilebot May 13, 2022
3504f1d
Merge branch 'trunk' into version-toolkit/gutenberg/rnmobile/heading-…
jostnes May 16, 2022
f7f095a
Update gutenberg submodule hash to 92ffc5eeff491355eb8f8677b8e6d3de38…
wpmobilebot May 16, 2022
7c4b917
update gutenberg ref
jostnes May 16, 2022
399375d
Merge branch 'version-toolkit/gutenberg/rnmobile/heading-list-blocks-…
jostnes May 16, 2022
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
Prev Previous commit
Next Next commit
Merge branch 'trunk' into version-toolkit/gutenberg/rnmobile/heading-…
…list-blocks-test-update
  • Loading branch information
jostnes committed May 13, 2022
commit 09901266acf8cedb5fb805727c8da9485d1686f5
8 changes: 8 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
Unreleased
---

## 1.76.0
---
* [**] [Cover block] Improve color contrast between background and text [https://github.com/wordpress-mobile/gutenberg-mobile/pull/4808]
* [**] [Buttons block] Fix Android-only issue related to displaying formatting buttons after closing the block settings [https://github.com/wordpress-mobile/gutenberg-mobile/pull/4814]
* [***] Add drag & drop blocks feature [https://github.com/wordpress-mobile/gutenberg-mobile/pull/4832]
* [*] [Gallery block] Fix broken "Link To" settings and add "Image Size" settings [https://github.com/wordpress-mobile/gutenberg-mobile/pull/4841]
* [*] [Unsupported Block Editor] Prevent WordPress.com tour banner from displaying. [https://github.com/wordpress-mobile/gutenberg-mobile/pull/4820]

## 1.75.1
---
* [*] Track block movement actions [https://github.com/wordpress-mobile/gutenberg-mobile/pull/4833]

## 1.75.0
---
* [*] [Latest Posts block] Add featured image settings [https://github.com/WordPress/gutenberg/pull/39257]
Expand Down
4,297 changes: 2,154 additions & 2,143 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.

2 changes: 1 addition & 1 deletion gutenberg
Submodule gutenberg updated 712 files
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gutenberg-mobile",
"version": "1.75.0",
"version": "1.76.0",
"private": true,
"config": {
"jsfiles": "./*.js src/*.js src/**/*.js src/**/**/*.js",
Expand Down
67 changes: 67 additions & 0 deletions src/analytics/redux/tracked_events.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,51 @@ function trackBlocksHandler(
} );
}

/**
* Helper function to track block movement events.
*
* @param {string[]} clientIds The client IDs of the blocks being moved
* @param {string} action Type of movement (arrows/drag & drop)
* @return {void}
*/
function trackBlockMoved( clientIds, action ) {
const block = select( 'core/block-editor' ).getBlock( clientIds?.[ 0 ] );

if ( block ) {
const eventProperties = {
action_source: action,
inner_block: !! block.innerBlocks.length,
block_name: block.name,
};

sendEventToHost( 'editor_block_moved', eventProperties );
}
}

/**
* Helper function to handle when a block is moved by an index position
*
* @param {string[]} clientIds The client IDs of the blocks being moved
* @param {number} toIndex Index of the new position of the block
* @return {void}
*/
function handleBlockMovedByPosition( clientIds, toIndex ) {
const lastBlockIndex = select( 'core/block-editor' ).getBlockCount() - 1;
const currentBlockIndex = select( 'core/block-editor' ).getBlockIndex(
clientIds?.[ 0 ]
);

if ( currentBlockIndex >= 0 ) {
if ( toIndex > currentBlockIndex && toIndex === lastBlockIndex ) {
// The block was moved to the bottom of the editor
trackBlockMoved( clientIds, 'move_arrows_to_bottom' );
} else if ( toIndex < currentBlockIndex && toIndex === 0 ) {
// The block was moved to the top of the editor
trackBlockMoved( clientIds, 'move_arrows_to_top' );
}
}
}

export const trackedEvents = {
'core/block-editor': {
insertBlock( blocks ) {
Expand All @@ -80,5 +125,27 @@ export const trackedEvents = {
( { name } ) => ( { block_name: name } )
);
},
moveBlocksUp( clientIds ) {
trackBlockMoved( clientIds, 'move_arrows_up' );
},
moveBlocksDown( clientIds ) {
trackBlockMoved( clientIds, 'move_arrows_down' );
},
moveBlocksToPosition(
clientIds,
_fromRootClientId,
_toRootClientId,
toIndex
) {
const isDraggingBlock = select(
'core/block-editor'
).isDraggingBlocks();

if ( isDraggingBlock ) {
trackBlockMoved( clientIds, 'drag_and_drop' );
} else {
handleBlockMovedByPosition( clientIds, toIndex );
}
},
},
};
You are viewing a condensed version of this merge commit. You can view the full changes here.