@wordpress/list-reusable-blocks 5.0.3 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 5.2.0 (2024-06-26)
6
+
7
+ ## 5.1.0 (2024-06-15)
8
+
5
9
  ## 5.0.0 (2024-05-31)
6
10
 
7
11
  ### Breaking Changes
@@ -126,7 +130,7 @@
126
130
 
127
131
  ## 3.0.0 (2021-07-29)
128
132
 
129
- ### Breaking Change
133
+ ### Breaking Changes
130
134
 
131
135
  - Upgraded React components to work with v17.0 ([#29118](https://github.com/WordPress/gutenberg/pull/29118)). There are no new features in React v17.0 as explained in the [blog post](https://reactjs.org/blog/2020/10/20/react-v17.html).
132
136
 
package/build/index.js CHANGED
@@ -42,8 +42,10 @@ document.addEventListener('DOMContentLoaded', () => {
42
42
  const container = document.createElement('div');
43
43
  container.className = 'list-reusable-blocks__container';
44
44
  button.parentNode.insertBefore(container, button);
45
- (0, _element.createRoot)(container).render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_importDropdown.default, {
46
- onUpload: showNotice
45
+ (0, _element.createRoot)(container).render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_element.StrictMode, {
46
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_importDropdown.default, {
47
+ onUpload: showNotice
48
+ })
47
49
  }));
48
50
  });
49
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_i18n","_export","_interopRequireDefault","_importDropdown","_jsxRuntime","document","body","addEventListener","event","target","classList","contains","preventDefault","exportReusableBlock","dataset","id","button","querySelector","showNotice","notice","createElement","className","innerHTML","__","headerEnd","parentNode","insertBefore","container","createRoot","render","jsx","default","onUpload"],"sources":["@wordpress/list-reusable-blocks/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createRoot } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport exportReusableBlock from './utils/export';\nimport ImportDropdown from './components/import-dropdown';\n\n// Setup Export Links.\ndocument.body.addEventListener( 'click', ( event ) => {\n\tif (\n\t\t! event.target.classList.contains( 'wp-list-reusable-blocks__export' )\n\t) {\n\t\treturn;\n\t}\n\tevent.preventDefault();\n\texportReusableBlock( event.target.dataset.id );\n} );\n\n// Setup Import Form.\ndocument.addEventListener( 'DOMContentLoaded', () => {\n\tconst button = document.querySelector( '.page-title-action' );\n\tif ( ! button ) {\n\t\treturn;\n\t}\n\n\tconst showNotice = () => {\n\t\tconst notice = document.createElement( 'div' );\n\t\tnotice.className = 'notice notice-success is-dismissible';\n\t\tnotice.innerHTML = `<p>${ __( 'Pattern imported successfully!' ) }</p>`;\n\n\t\tconst headerEnd = document.querySelector( '.wp-header-end' );\n\t\tif ( ! headerEnd ) {\n\t\t\treturn;\n\t\t}\n\t\theaderEnd.parentNode.insertBefore( notice, headerEnd );\n\t};\n\n\tconst container = document.createElement( 'div' );\n\tcontainer.className = 'list-reusable-blocks__container';\n\tbutton.parentNode.insertBefore( container, button );\n\tcreateRoot( container ).render(\n\t\t<ImportDropdown onUpload={ showNotice } />\n\t);\n} );\n"],"mappings":";;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAKA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,eAAA,GAAAD,sBAAA,CAAAH,OAAA;AAA0D,IAAAK,WAAA,GAAAL,OAAA;AAV1D;AACA;AACA;;AAIA;AACA;AACA;;AAIA;AACAM,QAAQ,CAACC,IAAI,CAACC,gBAAgB,CAAE,OAAO,EAAIC,KAAK,IAAM;EACrD,IACC,CAAEA,KAAK,CAACC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAAE,iCAAkC,CAAC,EACrE;IACD;EACD;EACAH,KAAK,CAACI,cAAc,CAAC,CAAC;EACtB,IAAAC,eAAmB,EAAEL,KAAK,CAACC,MAAM,CAACK,OAAO,CAACC,EAAG,CAAC;AAC/C,CAAE,CAAC;;AAEH;AACAV,QAAQ,CAACE,gBAAgB,CAAE,kBAAkB,EAAE,MAAM;EACpD,MAAMS,MAAM,GAAGX,QAAQ,CAACY,aAAa,CAAE,oBAAqB,CAAC;EAC7D,IAAK,CAAED,MAAM,EAAG;IACf;EACD;EAEA,MAAME,UAAU,GAAGA,CAAA,KAAM;IACxB,MAAMC,MAAM,GAAGd,QAAQ,CAACe,aAAa,CAAE,KAAM,CAAC;IAC9CD,MAAM,CAACE,SAAS,GAAG,sCAAsC;IACzDF,MAAM,CAACG,SAAS,GAAI,MAAM,IAAAC,QAAE,EAAE,gCAAiC,CAAG,MAAK;IAEvE,MAAMC,SAAS,GAAGnB,QAAQ,CAACY,aAAa,CAAE,gBAAiB,CAAC;IAC5D,IAAK,CAAEO,SAAS,EAAG;MAClB;IACD;IACAA,SAAS,CAACC,UAAU,CAACC,YAAY,CAAEP,MAAM,EAAEK,SAAU,CAAC;EACvD,CAAC;EAED,MAAMG,SAAS,GAAGtB,QAAQ,CAACe,aAAa,CAAE,KAAM,CAAC;EACjDO,SAAS,CAACN,SAAS,GAAG,iCAAiC;EACvDL,MAAM,CAACS,UAAU,CAACC,YAAY,CAAEC,SAAS,EAAEX,MAAO,CAAC;EACnD,IAAAY,mBAAU,EAAED,SAAU,CAAC,CAACE,MAAM,eAC7B,IAAAzB,WAAA,CAAA0B,GAAA,EAAC3B,eAAA,CAAA4B,OAAc;IAACC,QAAQ,EAAGd;EAAY,CAAE,CAC1C,CAAC;AACF,CAAE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_element","require","_i18n","_export","_interopRequireDefault","_importDropdown","_jsxRuntime","document","body","addEventListener","event","target","classList","contains","preventDefault","exportReusableBlock","dataset","id","button","querySelector","showNotice","notice","createElement","className","innerHTML","__","headerEnd","parentNode","insertBefore","container","createRoot","render","jsx","StrictMode","children","default","onUpload"],"sources":["@wordpress/list-reusable-blocks/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport exportReusableBlock from './utils/export';\nimport ImportDropdown from './components/import-dropdown';\n\n// Setup Export Links.\ndocument.body.addEventListener( 'click', ( event ) => {\n\tif (\n\t\t! event.target.classList.contains( 'wp-list-reusable-blocks__export' )\n\t) {\n\t\treturn;\n\t}\n\tevent.preventDefault();\n\texportReusableBlock( event.target.dataset.id );\n} );\n\n// Setup Import Form.\ndocument.addEventListener( 'DOMContentLoaded', () => {\n\tconst button = document.querySelector( '.page-title-action' );\n\tif ( ! button ) {\n\t\treturn;\n\t}\n\n\tconst showNotice = () => {\n\t\tconst notice = document.createElement( 'div' );\n\t\tnotice.className = 'notice notice-success is-dismissible';\n\t\tnotice.innerHTML = `<p>${ __( 'Pattern imported successfully!' ) }</p>`;\n\n\t\tconst headerEnd = document.querySelector( '.wp-header-end' );\n\t\tif ( ! headerEnd ) {\n\t\t\treturn;\n\t\t}\n\t\theaderEnd.parentNode.insertBefore( notice, headerEnd );\n\t};\n\n\tconst container = document.createElement( 'div' );\n\tcontainer.className = 'list-reusable-blocks__container';\n\tbutton.parentNode.insertBefore( container, button );\n\tcreateRoot( container ).render(\n\t\t<StrictMode>\n\t\t\t<ImportDropdown onUpload={ showNotice } />\n\t\t</StrictMode>\n\t);\n} );\n"],"mappings":";;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAKA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,eAAA,GAAAD,sBAAA,CAAAH,OAAA;AAA0D,IAAAK,WAAA,GAAAL,OAAA;AAV1D;AACA;AACA;;AAIA;AACA;AACA;;AAIA;AACAM,QAAQ,CAACC,IAAI,CAACC,gBAAgB,CAAE,OAAO,EAAIC,KAAK,IAAM;EACrD,IACC,CAAEA,KAAK,CAACC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAAE,iCAAkC,CAAC,EACrE;IACD;EACD;EACAH,KAAK,CAACI,cAAc,CAAC,CAAC;EACtB,IAAAC,eAAmB,EAAEL,KAAK,CAACC,MAAM,CAACK,OAAO,CAACC,EAAG,CAAC;AAC/C,CAAE,CAAC;;AAEH;AACAV,QAAQ,CAACE,gBAAgB,CAAE,kBAAkB,EAAE,MAAM;EACpD,MAAMS,MAAM,GAAGX,QAAQ,CAACY,aAAa,CAAE,oBAAqB,CAAC;EAC7D,IAAK,CAAED,MAAM,EAAG;IACf;EACD;EAEA,MAAME,UAAU,GAAGA,CAAA,KAAM;IACxB,MAAMC,MAAM,GAAGd,QAAQ,CAACe,aAAa,CAAE,KAAM,CAAC;IAC9CD,MAAM,CAACE,SAAS,GAAG,sCAAsC;IACzDF,MAAM,CAACG,SAAS,GAAI,MAAM,IAAAC,QAAE,EAAE,gCAAiC,CAAG,MAAK;IAEvE,MAAMC,SAAS,GAAGnB,QAAQ,CAACY,aAAa,CAAE,gBAAiB,CAAC;IAC5D,IAAK,CAAEO,SAAS,EAAG;MAClB;IACD;IACAA,SAAS,CAACC,UAAU,CAACC,YAAY,CAAEP,MAAM,EAAEK,SAAU,CAAC;EACvD,CAAC;EAED,MAAMG,SAAS,GAAGtB,QAAQ,CAACe,aAAa,CAAE,KAAM,CAAC;EACjDO,SAAS,CAACN,SAAS,GAAG,iCAAiC;EACvDL,MAAM,CAACS,UAAU,CAACC,YAAY,CAAEC,SAAS,EAAEX,MAAO,CAAC;EACnD,IAAAY,mBAAU,EAAED,SAAU,CAAC,CAACE,MAAM,eAC7B,IAAAzB,WAAA,CAAA0B,GAAA,EAAChC,QAAA,CAAAiC,UAAU;IAAAC,QAAA,eACV,IAAA5B,WAAA,CAAA0B,GAAA,EAAC3B,eAAA,CAAA8B,OAAc;MAACC,QAAQ,EAAGhB;IAAY,CAAE;EAAC,CAC/B,CACb,CAAC;AACF,CAAE,CAAC","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { createRoot } from '@wordpress/element';
4
+ import { createRoot, StrictMode } from '@wordpress/element';
5
5
  import { __ } from '@wordpress/i18n';
6
6
 
7
7
  /**
@@ -39,8 +39,10 @@ document.addEventListener('DOMContentLoaded', () => {
39
39
  const container = document.createElement('div');
40
40
  container.className = 'list-reusable-blocks__container';
41
41
  button.parentNode.insertBefore(container, button);
42
- createRoot(container).render( /*#__PURE__*/_jsx(ImportDropdown, {
43
- onUpload: showNotice
42
+ createRoot(container).render( /*#__PURE__*/_jsx(StrictMode, {
43
+ children: /*#__PURE__*/_jsx(ImportDropdown, {
44
+ onUpload: showNotice
45
+ })
44
46
  }));
45
47
  });
46
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createRoot","__","exportReusableBlock","ImportDropdown","jsx","_jsx","document","body","addEventListener","event","target","classList","contains","preventDefault","dataset","id","button","querySelector","showNotice","notice","createElement","className","innerHTML","headerEnd","parentNode","insertBefore","container","render","onUpload"],"sources":["@wordpress/list-reusable-blocks/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createRoot } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport exportReusableBlock from './utils/export';\nimport ImportDropdown from './components/import-dropdown';\n\n// Setup Export Links.\ndocument.body.addEventListener( 'click', ( event ) => {\n\tif (\n\t\t! event.target.classList.contains( 'wp-list-reusable-blocks__export' )\n\t) {\n\t\treturn;\n\t}\n\tevent.preventDefault();\n\texportReusableBlock( event.target.dataset.id );\n} );\n\n// Setup Import Form.\ndocument.addEventListener( 'DOMContentLoaded', () => {\n\tconst button = document.querySelector( '.page-title-action' );\n\tif ( ! button ) {\n\t\treturn;\n\t}\n\n\tconst showNotice = () => {\n\t\tconst notice = document.createElement( 'div' );\n\t\tnotice.className = 'notice notice-success is-dismissible';\n\t\tnotice.innerHTML = `<p>${ __( 'Pattern imported successfully!' ) }</p>`;\n\n\t\tconst headerEnd = document.querySelector( '.wp-header-end' );\n\t\tif ( ! headerEnd ) {\n\t\t\treturn;\n\t\t}\n\t\theaderEnd.parentNode.insertBefore( notice, headerEnd );\n\t};\n\n\tconst container = document.createElement( 'div' );\n\tcontainer.className = 'list-reusable-blocks__container';\n\tbutton.parentNode.insertBefore( container, button );\n\tcreateRoot( container ).render(\n\t\t<ImportDropdown onUpload={ showNotice } />\n\t);\n} );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;AACA,OAAOC,mBAAmB,MAAM,gBAAgB;AAChD,OAAOC,cAAc,MAAM,8BAA8B;;AAEzD;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACAC,QAAQ,CAACC,IAAI,CAACC,gBAAgB,CAAE,OAAO,EAAIC,KAAK,IAAM;EACrD,IACC,CAAEA,KAAK,CAACC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAAE,iCAAkC,CAAC,EACrE;IACD;EACD;EACAH,KAAK,CAACI,cAAc,CAAC,CAAC;EACtBX,mBAAmB,CAAEO,KAAK,CAACC,MAAM,CAACI,OAAO,CAACC,EAAG,CAAC;AAC/C,CAAE,CAAC;;AAEH;AACAT,QAAQ,CAACE,gBAAgB,CAAE,kBAAkB,EAAE,MAAM;EACpD,MAAMQ,MAAM,GAAGV,QAAQ,CAACW,aAAa,CAAE,oBAAqB,CAAC;EAC7D,IAAK,CAAED,MAAM,EAAG;IACf;EACD;EAEA,MAAME,UAAU,GAAGA,CAAA,KAAM;IACxB,MAAMC,MAAM,GAAGb,QAAQ,CAACc,aAAa,CAAE,KAAM,CAAC;IAC9CD,MAAM,CAACE,SAAS,GAAG,sCAAsC;IACzDF,MAAM,CAACG,SAAS,GAAI,MAAMrB,EAAE,CAAE,gCAAiC,CAAG,MAAK;IAEvE,MAAMsB,SAAS,GAAGjB,QAAQ,CAACW,aAAa,CAAE,gBAAiB,CAAC;IAC5D,IAAK,CAAEM,SAAS,EAAG;MAClB;IACD;IACAA,SAAS,CAACC,UAAU,CAACC,YAAY,CAAEN,MAAM,EAAEI,SAAU,CAAC;EACvD,CAAC;EAED,MAAMG,SAAS,GAAGpB,QAAQ,CAACc,aAAa,CAAE,KAAM,CAAC;EACjDM,SAAS,CAACL,SAAS,GAAG,iCAAiC;EACvDL,MAAM,CAACQ,UAAU,CAACC,YAAY,CAAEC,SAAS,EAAEV,MAAO,CAAC;EACnDhB,UAAU,CAAE0B,SAAU,CAAC,CAACC,MAAM,eAC7BtB,IAAA,CAACF,cAAc;IAACyB,QAAQ,EAAGV;EAAY,CAAE,CAC1C,CAAC;AACF,CAAE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["createRoot","StrictMode","__","exportReusableBlock","ImportDropdown","jsx","_jsx","document","body","addEventListener","event","target","classList","contains","preventDefault","dataset","id","button","querySelector","showNotice","notice","createElement","className","innerHTML","headerEnd","parentNode","insertBefore","container","render","children","onUpload"],"sources":["@wordpress/list-reusable-blocks/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport exportReusableBlock from './utils/export';\nimport ImportDropdown from './components/import-dropdown';\n\n// Setup Export Links.\ndocument.body.addEventListener( 'click', ( event ) => {\n\tif (\n\t\t! event.target.classList.contains( 'wp-list-reusable-blocks__export' )\n\t) {\n\t\treturn;\n\t}\n\tevent.preventDefault();\n\texportReusableBlock( event.target.dataset.id );\n} );\n\n// Setup Import Form.\ndocument.addEventListener( 'DOMContentLoaded', () => {\n\tconst button = document.querySelector( '.page-title-action' );\n\tif ( ! button ) {\n\t\treturn;\n\t}\n\n\tconst showNotice = () => {\n\t\tconst notice = document.createElement( 'div' );\n\t\tnotice.className = 'notice notice-success is-dismissible';\n\t\tnotice.innerHTML = `<p>${ __( 'Pattern imported successfully!' ) }</p>`;\n\n\t\tconst headerEnd = document.querySelector( '.wp-header-end' );\n\t\tif ( ! headerEnd ) {\n\t\t\treturn;\n\t\t}\n\t\theaderEnd.parentNode.insertBefore( notice, headerEnd );\n\t};\n\n\tconst container = document.createElement( 'div' );\n\tcontainer.className = 'list-reusable-blocks__container';\n\tbutton.parentNode.insertBefore( container, button );\n\tcreateRoot( container ).render(\n\t\t<StrictMode>\n\t\t\t<ImportDropdown onUpload={ showNotice } />\n\t\t</StrictMode>\n\t);\n} );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,UAAU,EAAEC,UAAU,QAAQ,oBAAoB;AAC3D,SAASC,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;AACA,OAAOC,mBAAmB,MAAM,gBAAgB;AAChD,OAAOC,cAAc,MAAM,8BAA8B;;AAEzD;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACAC,QAAQ,CAACC,IAAI,CAACC,gBAAgB,CAAE,OAAO,EAAIC,KAAK,IAAM;EACrD,IACC,CAAEA,KAAK,CAACC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAAE,iCAAkC,CAAC,EACrE;IACD;EACD;EACAH,KAAK,CAACI,cAAc,CAAC,CAAC;EACtBX,mBAAmB,CAAEO,KAAK,CAACC,MAAM,CAACI,OAAO,CAACC,EAAG,CAAC;AAC/C,CAAE,CAAC;;AAEH;AACAT,QAAQ,CAACE,gBAAgB,CAAE,kBAAkB,EAAE,MAAM;EACpD,MAAMQ,MAAM,GAAGV,QAAQ,CAACW,aAAa,CAAE,oBAAqB,CAAC;EAC7D,IAAK,CAAED,MAAM,EAAG;IACf;EACD;EAEA,MAAME,UAAU,GAAGA,CAAA,KAAM;IACxB,MAAMC,MAAM,GAAGb,QAAQ,CAACc,aAAa,CAAE,KAAM,CAAC;IAC9CD,MAAM,CAACE,SAAS,GAAG,sCAAsC;IACzDF,MAAM,CAACG,SAAS,GAAI,MAAMrB,EAAE,CAAE,gCAAiC,CAAG,MAAK;IAEvE,MAAMsB,SAAS,GAAGjB,QAAQ,CAACW,aAAa,CAAE,gBAAiB,CAAC;IAC5D,IAAK,CAAEM,SAAS,EAAG;MAClB;IACD;IACAA,SAAS,CAACC,UAAU,CAACC,YAAY,CAAEN,MAAM,EAAEI,SAAU,CAAC;EACvD,CAAC;EAED,MAAMG,SAAS,GAAGpB,QAAQ,CAACc,aAAa,CAAE,KAAM,CAAC;EACjDM,SAAS,CAACL,SAAS,GAAG,iCAAiC;EACvDL,MAAM,CAACQ,UAAU,CAACC,YAAY,CAAEC,SAAS,EAAEV,MAAO,CAAC;EACnDjB,UAAU,CAAE2B,SAAU,CAAC,CAACC,MAAM,eAC7BtB,IAAA,CAACL,UAAU;IAAA4B,QAAA,eACVvB,IAAA,CAACF,cAAc;MAAC0B,QAAQ,EAAGX;IAAY,CAAE;EAAC,CAC/B,CACb,CAAC;AACF,CAAE,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/list-reusable-blocks",
3
- "version": "5.0.3",
3
+ "version": "5.2.0",
4
4
  "description": "Adding Export/Import support to the reusable blocks listing.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -27,12 +27,12 @@
27
27
  "module": "build-module/index.js",
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.16.0",
30
- "@wordpress/api-fetch": "^7.0.1",
31
- "@wordpress/blob": "^4.0.1",
32
- "@wordpress/components": "^28.0.3",
33
- "@wordpress/compose": "^7.0.1",
34
- "@wordpress/element": "^6.0.1",
35
- "@wordpress/i18n": "^5.0.1",
30
+ "@wordpress/api-fetch": "^7.2.0",
31
+ "@wordpress/blob": "^4.2.0",
32
+ "@wordpress/components": "^28.2.0",
33
+ "@wordpress/compose": "^7.2.0",
34
+ "@wordpress/element": "^6.2.0",
35
+ "@wordpress/i18n": "^5.2.0",
36
36
  "change-case": "^4.1.2"
37
37
  },
38
38
  "peerDependencies": {
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "9dd5f8dcfa4fc7242e5d48be20ee789ad087b432"
45
+ "gitHead": "aa5b14bb5bdbb8d8a02914e154c3bc1c2f18ace6"
46
46
  }
package/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { createRoot } from '@wordpress/element';
4
+ import { createRoot, StrictMode } from '@wordpress/element';
5
5
  import { __ } from '@wordpress/i18n';
6
6
 
7
7
  /**
@@ -44,6 +44,8 @@ document.addEventListener( 'DOMContentLoaded', () => {
44
44
  container.className = 'list-reusable-blocks__container';
45
45
  button.parentNode.insertBefore( container, button );
46
46
  createRoot( container ).render(
47
- <ImportDropdown onUpload={ showNotice } />
47
+ <StrictMode>
48
+ <ImportDropdown onUpload={ showNotice } />
49
+ </StrictMode>
48
50
  );
49
51
  } );