From 79992795d0c0f73c75a32bc22bc438ef44c519b4 Mon Sep 17 00:00:00 2001 From: etoledom Date: Tue, 11 Sep 2018 13:21:05 -0300 Subject: [PATCH 1/6] Added empty image block to test data (initial html) --- src/store/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/store/index.js b/src/store/index.js index 5c3c93923376e0..f7b89629db871d 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -35,6 +35,10 @@ registerBlockType( UnsupportedBlock.name, UnsupportedBlock.settings ); setUnknownTypeHandlerName( UnsupportedBlock.name ); const initialHtml = ` + +
+ + Hello World From 964da823e87eca4edb2fe2b6a1069dec5512b5aa Mon Sep 17 00:00:00 2001 From: etoledom Date: Wed, 12 Sep 2018 12:09:38 -0300 Subject: [PATCH 2/6] Adding `@wordpress/blob` as a dependency. This solves a builder error when importing the image block from `block-library/src/image/edit.native.js`. --- package.json | 1 + rn-cli.config.js | 2 +- yarn.lock | 12 ++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1e1d7311c52513..768fce97d3263b 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ }, "dependencies": { "@wordpress/autop": "^1.0.6", + "@wordpress/blob": "^2.0.0", "@wordpress/compose": "^1.0.1", "@wordpress/deprecated": "^1.0.0-alpha.2", "@wordpress/element": "^1.0.2", diff --git a/rn-cli.config.js b/rn-cli.config.js index ee2c4010278175..1e0fe3b000cd3d 100644 --- a/rn-cli.config.js +++ b/rn-cli.config.js @@ -13,7 +13,7 @@ module.exports = { // On the other hand, GB packages that are loaded from the source tree directly // are automagically resolved by Metro so, there is no list of them anywhere. return blacklist( [ - /gutenberg\/packages\/(autop|compose|deprecated|hooks|i18n|is-shallow-equal)\/.*/, + /gutenberg\/packages\/(autop|compose|deprecated|hooks|i18n|is-shallow-equal|blob)\/.*/, ] ); }, getTransformModulePath() { diff --git a/yarn.lock b/yarn.lock index 70e4ed7c831139..92b8f9cf68ff7b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -445,6 +445,12 @@ pirates "^4.0.0" source-map-support "^0.4.2" +"@babel/runtime@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.0.0.tgz#adeb78fedfc855aa05bc041640f3f6f98e85424c" + dependencies: + regenerator-runtime "^0.12.0" + "@babel/runtime@^7.0.0-beta.52": version "7.0.0-beta.54" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.0.0-beta.54.tgz#39ebb42723fe7ca4b3e1b00e967e80138d47cadf" @@ -536,6 +542,12 @@ babel-plugin-transform-runtime "^6.23.0" babel-preset-env "^1.6.1" +"@wordpress/blob@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@wordpress/blob/-/blob-2.0.0.tgz#b310674a93f7484c0b4492e6698aba55a1e04f48" + dependencies: + "@babel/runtime" "^7.0.0" + "@wordpress/block-serialization-spec-parser@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@wordpress/block-serialization-spec-parser/-/block-serialization-spec-parser-1.0.0.tgz#a51a9276421629d4be398dfcc9bab52e303c3403" From 805e54430e7b04c76a707de7b5f82ab262c72fe8 Mon Sep 17 00:00:00 2001 From: etoledom Date: Wed, 12 Sep 2018 17:21:32 -0300 Subject: [PATCH 3/6] Updated gutenberg submodule reference --- gutenberg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gutenberg b/gutenberg index 20e17e44b6d5c5..c7e281a014146f 160000 --- a/gutenberg +++ b/gutenberg @@ -1 +1 @@ -Subproject commit 20e17e44b6d5c5d1171305257f27adbe2b3a95f7 +Subproject commit c7e281a014146fc0aa08ea9c4fb22209242c97da From 0e0a88bdc54dd2837f3e2d70337cc01dcdf8f7af Mon Sep 17 00:00:00 2001 From: etoledom Date: Thu, 13 Sep 2018 10:00:39 -0300 Subject: [PATCH 4/6] Update gutenberg reference --- gutenberg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gutenberg b/gutenberg index c7e281a014146f..fc16864c4a21c5 160000 --- a/gutenberg +++ b/gutenberg @@ -1 +1 @@ -Subproject commit c7e281a014146fc0aa08ea9c4fb22209242c97da +Subproject commit fc16864c4a21c53751e9f22777a6368ff473a49f From 0dfab75fb1500ea536f292991b72520012471ded Mon Sep 17 00:00:00 2001 From: etoledom Date: Thu, 13 Sep 2018 12:46:00 -0300 Subject: [PATCH 5/6] Update submodule references --- gutenberg | 2 +- react-native-aztec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gutenberg b/gutenberg index fc16864c4a21c5..88a211b2bae9db 160000 --- a/gutenberg +++ b/gutenberg @@ -1 +1 @@ -Subproject commit fc16864c4a21c53751e9f22777a6368ff473a49f +Subproject commit 88a211b2bae9dba77eadd58654ea99d18c3cc13d diff --git a/react-native-aztec b/react-native-aztec index 79388a6fd14ec2..de7d16797a8978 160000 --- a/react-native-aztec +++ b/react-native-aztec @@ -1 +1 @@ -Subproject commit 79388a6fd14ec2149c931639802f60c7a6107150 +Subproject commit de7d16797a8978712513c80f401f85e0f6ad4d2d From ebc2876fb6b277218cc8b87eec5e515de9d4683d Mon Sep 17 00:00:00 2001 From: etoledom Date: Thu, 13 Sep 2018 12:47:08 -0300 Subject: [PATCH 6/6] Update gutenberg reference --- gutenberg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gutenberg b/gutenberg index 88a211b2bae9db..02d530a9fe0a1c 160000 --- a/gutenberg +++ b/gutenberg @@ -1 +1 @@ -Subproject commit 88a211b2bae9dba77eadd58654ea99d18c3cc13d +Subproject commit 02d530a9fe0a1c0f300f57021c4b04b87fbdaf5d