Skip to content

Commit

Permalink
Merge pull request #3650 from wordpress-mobile/release/1.55.2
Browse files Browse the repository at this point in the history
Release 1.55.2
  • Loading branch information
dcalhoun authored Jun 23, 2021
2 parents 588ec7c + 5990c17 commit a6c2368
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Unreleased
------

1.55.2
------
* [**] Fix incorrect block insertion point after blurring the post title field. [https://github.com/wordpress-mobile/gutenberg-mobile/pull/3640]

1.55.1
------
* [*] Improve unsupported block message for reusable block. [https://github.com/wordpress-mobile/gutenberg-mobile/pull/3621]
Expand Down
4 changes: 2 additions & 2 deletions bundle/ios/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(c,f,o){var l=(0,u.useMemoOne)(function(){return(0,n.debounce)(c,f,o)},[c,f,o]);return(0,t.useEffect)(function(){return function(){return l.cancel()}},[l]),l};var n=r(d[0]),u=r(d[1]),t=r(d[2])},1161,[1070,1162,948]);
__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var n=r(d[0]);function t(n,t){if(n.length!==t.length)return!1;for(var u=0;u<n.length;u++)if(n[u]!==t[u])return!1;return!0}function u(u,s){var c=n.useState(function(){return{inputs:s,result:u()}})[0],f=n.useRef(c),o=Boolean(s&&f.current.inputs&&t(s,f.current.inputs))?f.current:{inputs:s,result:u()};return n.useEffect(function(){f.current=o},[o]),o.result}function s(n,t){return u(function(){return n},t)}var c=u,f=s;e.useCallback=f,e.useCallbackOne=s,e.useMemo=c,e.useMemoOne=u},1162,[71]);
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o){var u=(0,t.useRef)(),f=(0,t.useRef)(!1),l=(0,t.useRef)([]),y=(0,t.useRef)(o);return y.current=o,(0,t.useLayoutEffect)(function(){!1===f.current&&o.forEach(function(t,n){var o=l.current[n];t!==o&&(c(o,null),c(t,u.current))}),l.current=o},o),(0,t.useLayoutEffect)(function(){f.current=!1}),(0,t.useCallback)(function(t){c(u,t),f.current=!0;for(var o,s=n(t?y.current:l.current);!(o=s()).done;)c(o.value,t)},[])};var t=r(d[0]);function n(t,n){var u;if("undefined"==typeof Symbol||null==t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]){if(Array.isArray(t)||(u=o(t))||n&&t&&"number"==typeof t.length){u&&(t=u);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(u=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]()).next.bind(u)}function o(t,n){if(t){if("string"==typeof t)return u(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?u(t,n):void 0}}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,u=new Array(n);o<n;o++)u[o]=t[o];return u}function c(t,n){'function'==typeof t?t(n):t&&t.hasOwnProperty('current')&&(t.current=n)}},1163,[948]);
__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,c){var p='function'!=typeof n;p&&(c=[]);var _,y=(0,o.useCallback)(n,c),R=(0,l.default)(),b=(0,h.default)(),k=(0,t.useMemoOne)(function(){return{queue:!0}},[R]),w=(0,o.useReducer)(function(n){return n+1},0),E=(0,u.default)(w,2)[1],M=(0,o.useRef)(),S=(0,o.useRef)(b),L=(0,o.useRef)(),O=(0,o.useRef)(),x=(0,o.useRef)(),C=(0,o.useRef)([]),I=(0,o.useCallback)(function(n){return R.__experimentalMarkListeningStores(n,C)},[R]),j=(0,o.useMemo)(function(){return{}},c||[]);if(!p)try{_=M.current!==y||O.current?I(function(){return y(R.select,R)}):L.current}catch(n){var q="An error occurred while running 'mapSelect': "+n.message;if(O.current)throw q+="\nThe error may be correlated with this previous error:\n",q+=O.current.stack+"\n\n",q+='Original stack trace:',new Error(q);console.error(q)}return(0,s.useIsomorphicLayoutEffect)(function(){p||(M.current=y,L.current=_,O.current=void 0,x.current=!0,S.current!==b&&(S.current=b,v.flush(k)))}),(0,s.useIsomorphicLayoutEffect)(function(){if(!p){var n=function(){if(x.current){try{var n=I(function(){return M.current(R.select,R)});if((0,f.default)(L.current,n))return;L.current=n}catch(n){O.current=n}E()}};S.current?v.add(k,n):n();var u=function(){S.current?v.add(k,n):n()},t=C.current.map(function(n){return R.__experimentalSubscribeStore(n,u)});return function(){x.current=!1,t.forEach(function(n){return null==n?void 0:n()}),v.flush(k)}}},[R,I,j,p]),p?R.select(n):_};var u=n(r(d[1])),t=r(d[2]),c=r(d[3]),o=r(d[4]),f=n(r(d[5])),s=r(d[6]),l=n(r(d[7])),h=n(r(d[8])),v=(0,c.createQueue)()},1164,[5,36,1162,1157,948,1122,1117,1165,1167]);
__d(function(g,r,i,a,m,e,d){var u=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,c){var p='function'!=typeof u;p&&(c=[]);var _,y=(0,f.useCallback)(u,c),R=(0,l.default)(),b=(0,h.default)(),k=(0,t.useMemoOne)(function(){return{queue:!0}},[R]),w=(0,f.useReducer)(function(u){return u+1},0),E=(0,n.default)(w,2)[1],M=(0,f.useRef)(),S=(0,f.useRef)(b),L=(0,f.useRef)(),O=(0,f.useRef)(),x=(0,f.useRef)(),C=(0,f.useRef)([]),I=(0,f.useCallback)(function(u){return R.__experimentalMarkListeningStores(u,C)},[R]),j=(0,f.useMemo)(function(){return{}},c||[]);if(!p)try{_=M.current!==y||O.current?I(function(){return y(R.select,R)}):L.current}catch(u){var q="An error occurred while running 'mapSelect': "+u.message;if(O.current)throw q+="\nThe error may be correlated with this previous error:\n",q+=O.current.stack+"\n\n",q+='Original stack trace:',new Error(q)}return(0,s.useIsomorphicLayoutEffect)(function(){p||(M.current=y,L.current=_,O.current=void 0,x.current=!0,S.current!==b&&(S.current=b,v.flush(k)))}),(0,s.useIsomorphicLayoutEffect)(function(){if(!p){var u=function(){if(x.current){try{var u=I(function(){return M.current(R.select,R)});if((0,o.default)(L.current,u))return;L.current=u}catch(u){O.current=u}E()}};S.current?v.add(k,u):u();var n=function(){S.current?v.add(k,u):u()},t=C.current.map(function(u){return R.__experimentalSubscribeStore(u,n)});return function(){x.current=!1,t.forEach(function(u){return null==u?void 0:u()}),v.flush(k)}}},[R,I,j,p]),p?R.select(u):_};var n=u(r(d[1])),t=r(d[2]),c=r(d[3]),f=r(d[4]),o=u(r(d[5])),s=r(d[6]),l=u(r(d[7])),h=u(r(d[8])),v=(0,c.createQueue)()},1164,[5,36,1162,1157,948,1122,1117,1165,1167]);
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,t.useContext)(n.Context)};var t=r(d[0]),n=r(d[1])},1165,[948,1166]);
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.RegistryConsumer=e.Context=void 0;var o=r(d[1]),n=t(r(d[2])),u=(0,o.createContext)(n.default);e.Context=u;var v=u.Consumer,s=u.Provider,C=v;e.RegistryConsumer=C;var f=s;e.default=f},1166,[5,948,1080]);
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,t.useContext)(n.Context)};var t=r(d[0]),n=r(d[1])},1167,[948,1168]);
Expand Down Expand Up @@ -2526,7 +2526,7 @@ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.d
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){return n.replace(t.HTMLEntityRegExp,'a')}},2520,[]);
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[1]),n=t(r(d[2])),s=r(d[3]),u=r(d[4]),l=r(d[5]),c=r(d[6]),p=r(d[7]),v=r(d[8]),y=t(r(d[9])),f=r(d[10]),E=t(r(d[11]));var _=(0,y.default)(function(t){var y=t.__unstableTemplate,_=t.post,h=t.settings,k=t.recovery,b=t.initialEdits,P=t.children,T=(0,o.useMemo)(function(){return'wp_template'===_.type?{}:{postId:_.id,postType:_.type}},[_.id,_.type]),R=(0,s.useSelect)(function(t){var o=t(f.store),n=o.getEditorSelection;return{isReady:(0,o.__unstableIsEditorReady)(),selection:n()}},[]),w=R.selection,B=R.isReady,I=null!=y?y:_,L=I.id,S=I.type,x=(0,l.useEntityBlockEditor)('postType',S,{id:L}),D=(0,n.default)(x,3),M=D[0],C=D[1],j=D[2],N=(0,E.default)(h,!!y),O=(0,s.useDispatch)(f.store),V=O.updatePostLock,W=O.setupEditor,q=O.updateEditorSettings,z=O.__experimentalTearDownEditor,A=(0,s.useDispatch)(v.store).createWarningNotice;return(0,o.useLayoutEffect)(function(){if(!k)return V(h.postLock),W(_,b,h.template),h.autosave&&A((0,u.__)('There is an autosave of this post that is more recent than the version below.'),{id:'autosave-exists',actions:[{label:(0,u.__)('View the autosave'),url:h.autosave.editLink}]}),function(){z()}},[]),(0,o.useEffect)(function(){q(h)},[h]),B?(0,o.createElement)(l.EntityProvider,{kind:"root",type:"site"},(0,o.createElement)(l.EntityProvider,{kind:"postType",type:_.type,id:_.id},(0,o.createElement)(c.BlockContextProvider,{value:T},(0,o.createElement)(c.BlockEditorProvider,{value:M,onChange:j,onInput:C,selection:w,settings:N,useSubRegistry:!1},P,(0,o.createElement)(p.ReusableBlocksMenuItems,null))))):null});e.default=_},2521,[5,948,36,1078,1029,2277,1075,2276,2269,2522,2484,2523]);
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[1]),u=t(r(d[2])),n=t(r(d[3])),s=r(d[4]),l=r(d[5]),c=r(d[6]),f=r(d[7]),v=(0,l.createHigherOrderComponent)(function(t){return(0,s.withRegistry)(function(l){var v=l.useSubRegistry,y=void 0===v||v,R=l.registry,b=(0,n.default)(l,["useSubRegistry","registry"]);if(!y)return(0,o.createElement)(t,b);var E=(0,o.useState)(null),S=(0,u.default)(E,2),_=S[0],h=S[1];return(0,o.useEffect)(function(){var t=(0,s.createRegistry)({'core/block-editor':c.storeConfig},R);t.registerStore('core/editor',f.storeConfig),h(t)},[R]),_?(0,o.createElement)(s.RegistryProvider,{value:_},(0,o.createElement)(t,b)):null})},'withRegistryProvider');e.default=v},2522,[5,948,36,67,1078,1117,1075,2484]);
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),n=r(d[2]),c=r(d[3]),l=r(d[4]),u=t(r(d[5])),s=r(d[6]);function p(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);o&&(c=c.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,c)}return n}function b(t){for(var n=1;n<arguments.length;n++){var c=null!=arguments[n]?arguments[n]:{};n%2?p(Object(c),!0).forEach(function(n){(0,o.default)(t,n,c[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(c)):p(Object(c)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(c,o))})}return t}var f=function(t,o){var p,f=null!=(p=t.capabilities)?p:{},O=(0,u.default)(t,o),y=!0===f.reusableBlock,j=(0,c.useSelect)(function(t){return{reusableBlocks:y?t(l.store).getEntityRecords('postType','wp_block',{per_page:100}):[],isTitleSelected:t(s.store).isPostTitleSelected()}},[y]),v=j.isTitleSelected,P=j.reusableBlocks;return(0,n.useMemo)(function(){return b(b({},O),{},{__experimentalReusableBlocks:P,__experimentalShouldInsertAtTheTop:v})},[O,P,v])};e.default=f},2523,[5,66,948,1078,2277,2524,2484]);
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),o=r(d[2]),c=r(d[3]),l=r(d[4]),u=t(r(d[5])),s=r(d[6]);function p(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);n&&(c=c.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,c)}return o}function f(t){for(var o=1;o<arguments.length;o++){var c=null!=arguments[o]?arguments[o]:{};o%2?p(Object(c),!0).forEach(function(o){(0,n.default)(t,o,c[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(c)):p(Object(c)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(c,n))})}return t}var b=function(t,n){var p,b=null!=(p=t.capabilities)?p:{},O=(0,u.default)(t,n),y=!0===b.reusableBlock,j=(0,c.useSelect)(function(t){return{reusableBlocks:y?t(l.store).getEntityRecords('postType','wp_block',{per_page:100}):[]}},[y]).reusableBlocks,v=(0,c.useSelect)(function(t){return{isTitleSelected:t(s.store).isPostTitleSelected()}}).isTitleSelected;return(0,o.useMemo)(function(){return f(f({},O),{},{__experimentalReusableBlocks:j,__experimentalShouldInsertAtTheTop:v})},[O,j,v])};e.default=b},2523,[5,66,948,1078,2277,2524,2484]);
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),n=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]),p=r(d[6]),u=r(d[7]);function _(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);o&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,s)}return n}function f(t){for(var n=1;n<arguments.length;n++){var s=null!=arguments[n]?arguments[n]:{};n%2?_(Object(s),!0).forEach(function(n){(0,o.default)(t,n,s[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):_(Object(s)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(s,o))})}return t}var b=function(t,o){var _=(0,l.useSelect)(function(t){var o=t(u.store).canUserUseUnfilteredHTML,l='web'===s.Platform.OS,p=t(c.store).canUser;return{canUseUnfilteredHTML:o(),reusableBlocks:l?t(c.store).getEntityRecords('postType','wp_block',{per_page:-1}):[],hasUploadPermissions:(0,n.defaultTo)(p('create','media'),!0)}},[]),b=_.reusableBlocks,y=_.hasUploadPermissions,U=_.canUseUnfilteredHTML,O=(0,l.useDispatch)(u.store).undo;return(0,s.useMemo)(function(){return f(f({},(0,n.pick)(t,['__experimentalBlockDirectory','__experimentalBlockPatternCategories','__experimentalBlockPatterns','__experimentalFeatures','__experimentalGlobalStylesBaseStyles','__experimentalGlobalStylesUserEntityId','__experimentalPreferredStyleVariations','__experimentalSetIsInserterOpened','alignWide','allowedBlockTypes','bodyPlaceholder','codeEditingEnabled','colors','disableCustomColors','disableCustomFontSizes','disableCustomGradients','enableCustomLineHeight','enableCustomSpacing','enableCustomUnits','focusMode','fontSizes','gradients','hasFixedToolbar','hasReducedUI','imageDefaultSize','imageDimensions','imageEditing','imageSizes','isRTL','keepCaretInsideBlock','maxWidth','onUpdateDefaultBlockStyles','styles','template','templateLock','titlePlaceholder','supportsLayout','widgetTypesToHideFromLegacyWidgetBlock'])),{},{mediaUpload:y?p.mediaUpload:void 0,__experimentalReusableBlocks:b,__experimentalFetchLinkSuggestions:function(o,n){return(0,c.__experimentalFetchLinkSuggestions)(o,n,t)},__experimentalFetchRemoteUrlData:c.__experimentalFetchRemoteUrlData,__experimentalCanUserUseUnfilteredHTML:U,__experimentalUndo:O,outlineMode:o})},[t,y,b,U,O,o])};e.default=b},2524,[5,66,1070,948,1078,2277,2525,2484]);
__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"mediaUpload",{enumerable:!0,get:function(){return n.default}});var n=t(r(d[1]))},2525,[5,2526]);
__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},2526,[]);
Expand Down
2 changes: 1 addition & 1 deletion bundle/ios/App.js.map

Large diffs are not rendered by default.

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.55.1",
"version": "1.55.2",
"private": true,
"config": {
"jsfiles": "./*.js src/*.js src/**/*.js src/**/**/*.js",
Expand Down

0 comments on commit a6c2368

Please sign in to comment.