Skip to content
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
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
; ignore the submodules
gutenberg
block-experiments
bundle
jetpack
bin

4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
path = jetpack
url = ../../Automattic/jetpack.git
shallow = true
[submodule "block-experiments"]
path = block-experiments
url = ../../Automattic/block-experiments.git
shallow = true
1 change: 1 addition & 0 deletions block-experiments
Submodule block-experiments added at 79b49e
3,244 changes: 1,627 additions & 1,617 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.

8 changes: 8 additions & 0 deletions src/block-experiments-setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file is to set up the jetpack/layout-grid block that currently lives in block-experiments/blocks/layout-grid
import { registerBlock } from '../block-experiments/blocks/layout-grid/src';

export default function setupBlockExperiments( capabilities ) {
if ( capabilities.layoutGridBlock ) {
registerBlock();
}
}
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
*/
import correctTextFontWeight from './text-font-weight-correct';
import setupJetpackEditor from './jetpack-editor-setup';
import setupBlockExperiments from './block-experiments-setup';
import initialHtml from './initial-html';

addAction( 'native.pre-render', 'gutenberg-mobile', () => {
Expand All @@ -23,6 +24,8 @@ addAction( 'native.render', 'gutenberg-mobile', ( props ) => {
setupJetpackEditor(
props.jetpackState || { blogId: 1, isJetpackActive: true }
);
const capabilities = props.capabilities ?? {};
setupBlockExperiments( capabilities );
} );

addFilter( 'native.block_editor_props', 'gutenberg-mobile', ( editorProps ) => {
Expand Down