@wordpress/block-library 9.0.4 → 9.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 +21 -17
- package/build/button/index.js +1 -0
- package/build/button/index.js.map +1 -1
- package/build/comment-date/edit.js +1 -1
- package/build/comment-date/edit.js.map +1 -1
- package/build/list-item/edit.native.js +1 -15
- package/build/list-item/edit.native.js.map +1 -1
- package/build/missing/edit.native.js +29 -4
- package/build/missing/edit.native.js.map +1 -1
- package/build/post-content/index.js +13 -1
- package/build/post-content/index.js.map +1 -1
- package/build/post-date/edit.js +1 -1
- package/build/post-date/edit.js.map +1 -1
- package/build/pullquote/index.js +13 -0
- package/build/pullquote/index.js.map +1 -1
- package/build/query/edit/inspector-controls/create-new-post-link.js +10 -10
- package/build/query/edit/inspector-controls/create-new-post-link.js.map +1 -1
- package/build/query/edit/inspector-controls/index.js +2 -2
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/quote/index.js +13 -0
- package/build/quote/index.js.map +1 -1
- package/build/site-tagline/index.js +1 -0
- package/build/site-tagline/index.js.map +1 -1
- package/build/site-title/index.js +1 -0
- package/build/site-title/index.js.map +1 -1
- package/build/table-of-contents/index.js +1 -1
- package/build/verse/index.js +14 -0
- package/build/verse/index.js.map +1 -1
- package/build-module/button/index.js +1 -0
- package/build-module/button/index.js.map +1 -1
- package/build-module/comment-date/edit.js +2 -2
- package/build-module/comment-date/edit.js.map +1 -1
- package/build-module/list-item/edit.native.js +2 -16
- package/build-module/list-item/edit.native.js.map +1 -1
- package/build-module/missing/edit.native.js +30 -5
- package/build-module/missing/edit.native.js.map +1 -1
- package/build-module/post-content/index.js +13 -1
- package/build-module/post-content/index.js.map +1 -1
- package/build-module/post-date/edit.js +2 -2
- package/build-module/post-date/edit.js.map +1 -1
- package/build-module/pullquote/index.js +13 -0
- package/build-module/pullquote/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/create-new-post-link.js +10 -10
- package/build-module/query/edit/inspector-controls/create-new-post-link.js.map +1 -1
- package/build-module/query/edit/inspector-controls/index.js +2 -2
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/quote/index.js +13 -0
- package/build-module/quote/index.js.map +1 -1
- package/build-module/site-tagline/index.js +1 -0
- package/build-module/site-tagline/index.js.map +1 -1
- package/build-module/site-title/index.js +1 -0
- package/build-module/site-title/index.js.map +1 -1
- package/build-module/table-of-contents/index.js +1 -1
- package/build-module/verse/index.js +14 -0
- package/build-module/verse/index.js.map +1 -1
- package/build-style/editor-rtl.css +0 -11
- package/build-style/editor.css +0 -11
- package/build-style/image/style-rtl.css +6 -0
- package/build-style/image/style.css +6 -0
- package/build-style/media-text/style-rtl.css +4 -0
- package/build-style/media-text/style.css +4 -0
- package/build-style/navigation/editor-rtl.css +0 -11
- package/build-style/navigation/editor.css +0 -11
- package/build-style/style-rtl.css +10 -0
- package/build-style/style.css +10 -0
- package/package.json +35 -35
- package/src/button/block.json +1 -0
- package/src/buttons/test/edit.native.js +48 -8
- package/src/comment-date/edit.js +8 -2
- package/src/comment-date/index.php +7 -5
- package/src/image/style.scss +10 -0
- package/src/list-item/edit.native.js +2 -22
- package/src/media-text/style.scss +4 -0
- package/src/missing/edit.native.js +44 -12
- package/src/missing/test/__snapshots__/edit.native.js.snap +75 -59
- package/src/navigation/editor.scss +0 -12
- package/src/paragraph/test/__snapshots__/edit.native.js.snap +30 -0
- package/src/paragraph/test/edit.native.js +99 -0
- package/src/post-content/block.json +13 -1
- package/src/post-date/edit.js +8 -2
- package/src/post-date/index.php +14 -3
- package/src/pullquote/block.json +13 -0
- package/src/query/edit/inspector-controls/create-new-post-link.js +12 -8
- package/src/query/edit/inspector-controls/index.js +5 -3
- package/src/quote/block.json +13 -0
- package/src/site-logo/index.php +6 -0
- package/src/site-tagline/block.json +1 -0
- package/src/site-title/block.json +1 -0
- package/src/social-links/test/edit.native.js +41 -5
- package/src/table-of-contents/block.json +1 -1
- package/src/verse/block.json +14 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__","quote","icon","initBlock","deprecated","edit","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","value","type","source","selector","multiline","__experimentalRole","citation","textAlign","supports","anchor","html","__experimentalOnEnter","__experimentalOnMerge","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalFontWeight","__experimentalFontStyle","__experimentalTextTransform","__experimentalTextDecoration","__experimentalLetterSpacing","
|
|
1
|
+
{"version":3,"names":["__","quote","icon","initBlock","deprecated","edit","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","value","type","source","selector","multiline","__experimentalRole","citation","textAlign","supports","anchor","html","background","backgroundImage","backgroundSize","__experimentalDefaultControls","dimensions","minHeight","__experimentalOnEnter","__experimentalOnMerge","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalFontWeight","__experimentalFontStyle","__experimentalTextTransform","__experimentalTextDecoration","__experimentalLetterSpacing","color","gradients","heading","link","text","layout","allowEditing","spacing","blockGap","interactivity","clientNavigation","styles","label","isDefault","editorStyle","style","save","transforms","settings","example","innerBlocks","content","init"],"sources":["@wordpress/block-library/src/quote/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { quote as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport deprecated from './deprecated';\nimport edit from './edit';\nimport metadata from './block.json';\nimport save from './save';\nimport transforms from './transforms';\n\nconst { name } = metadata;\n\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {\n\t\tattributes: {\n\t\t\tcitation: 'Julio Cortázar',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t{\n\t\t\t\tname: 'core/paragraph',\n\t\t\t\tattributes: {\n\t\t\t\t\tcontent: __( 'In quoting others, we cite ourselves.' ),\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t},\n\ttransforms,\n\tedit,\n\tsave,\n\tdeprecated,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AACpC,SAASC,KAAK,IAAIC,IAAI,QAAQ,kBAAkB;;AAEhD;AACA;AACA;AACA,OAAOC,SAAS,MAAM,qBAAqB;AAC3C,OAAOC,UAAU,MAAM,cAAc;AACrC,OAAOC,IAAI,MAAM,QAAQ;AAAC,MAAAC,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,QAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,KAAA;MAAAC,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;MAAA;MAAAC,kBAAA;IAAA;IAAAC,QAAA;MAAAL,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAE,kBAAA;IAAA;IAAAE,SAAA;MAAAN,IAAA;IAAA;EAAA;EAAAO,QAAA;IAAAC,MAAA;IAAAC,IAAA;IAAAC,UAAA;MAAAC,eAAA;MAAAC,cAAA;MAAAC,6BAAA;QAAAF,eAAA;MAAA;IAAA;IAAAG,UAAA;MAAAC,SAAA;MAAAF,6BAAA;QAAAE,SAAA;MAAA;IAAA;IAAAC,qBAAA;IAAAC,qBAAA;IAAAC,UAAA;MAAAC,QAAA;MAAAC,UAAA;MAAAC,wBAAA;MAAAC,wBAAA;MAAAC,uBAAA;MAAAC,2BAAA;MAAAC,4BAAA;MAAAC,2BAAA;MAAAb,6BAAA;QAAAM,QAAA;MAAA;IAAA;IAAAQ,KAAA;MAAAC,SAAA;MAAAC,OAAA;MAAAC,IAAA;MAAAjB,6BAAA;QAAAH,UAAA;QAAAqB,IAAA;MAAA;IAAA;IAAAC,MAAA;MAAAC,YAAA;IAAA;IAAAC,OAAA;MAAAC,QAAA;IAAA;IAAAC,aAAA;MAAAC,gBAAA;IAAA;EAAA;EAAAC,MAAA;IAAA9C,IAAA;IAAA+C,KAAA;IAAAC,SAAA;EAAA;IAAAhD,IAAA;IAAA+C,KAAA;EAAA;EAAAE,WAAA;EAAAC,KAAA;AAAA;AAE1B,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,UAAU,MAAM,cAAc;AAErC,MAAM;EAAEpD;AAAK,CAAC,GAAGH,QAAQ;AAEzB,SAASA,QAAQ,EAAEG,IAAI;AAEvB,OAAO,MAAMqD,QAAQ,GAAG;EACvB5D,IAAI;EACJ6D,OAAO,EAAE;IACRhD,UAAU,EAAE;MACXO,QAAQ,EAAE;IACX,CAAC;IACD0C,WAAW,EAAE,CACZ;MACCvD,IAAI,EAAE,gBAAgB;MACtBM,UAAU,EAAE;QACXkD,OAAO,EAAEjE,EAAE,CAAE,uCAAwC;MACtD;IACD,CAAC;EAEH,CAAC;EACD6D,UAAU;EACVxD,IAAI;EACJuD,IAAI;EACJxD;AACD,CAAC;AAED,OAAO,MAAM8D,IAAI,GAAGA,CAAA,KAAM/D,SAAS,CAAE;EAAEM,IAAI;EAAEH,QAAQ;EAAEwD;AAAS,CAAE,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["initBlock","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","textAlign","type","level","example","supports","align","html","color","gradients","__experimentalDefaultControls","background","text","spacing","margin","padding","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalTextTransform","__experimentalTextDecoration","__experimentalFontStyle","__experimentalFontWeight","__experimentalLetterSpacing","interactivity","clientNavigation","editorStyle","edit","icon","deprecated","settings","init"],"sources":["@wordpress/block-library/src/site-tagline/index.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\nimport icon from './icon';\nimport deprecated from './deprecated';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\tedit,\n\tdeprecated,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,SAAS,MAAM,qBAAqB;AAAC,MAAAC,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,QAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,SAAA;MAAAC,IAAA;IAAA;IAAAC,KAAA;MAAAD,IAAA;MAAA;IAAA;EAAA;EAAAE,OAAA;EAAAC,QAAA;IAAAC,KAAA;IAAAC,IAAA;IAAAC,KAAA;MAAAC,SAAA;MAAAC,6BAAA;QAAAC,UAAA;QAAAC,IAAA;MAAA;IAAA;IAAAC,OAAA;MAAAC,MAAA;MAAAC,OAAA;MAAAL,6BAAA;QAAAI,MAAA;QAAAC,OAAA;MAAA;IAAA;IAAAC,UAAA;MAAAC,QAAA;MAAAC,UAAA;MAAAC,wBAAA;MAAAC,2BAAA;MAAAC,4BAAA;MAAAC,uBAAA;MAAAC,wBAAA;MAAAC,2BAAA;
|
|
1
|
+
{"version":3,"names":["initBlock","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","textAlign","type","level","example","supports","align","html","color","gradients","__experimentalDefaultControls","background","text","spacing","margin","padding","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalTextTransform","__experimentalTextDecoration","__experimentalFontStyle","__experimentalFontWeight","__experimentalLetterSpacing","__experimentalWritingMode","interactivity","clientNavigation","editorStyle","edit","icon","deprecated","settings","init"],"sources":["@wordpress/block-library/src/site-tagline/index.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\nimport icon from './icon';\nimport deprecated from './deprecated';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\tedit,\n\tdeprecated,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,SAAS,MAAM,qBAAqB;AAAC,MAAAC,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,QAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,SAAA;MAAAC,IAAA;IAAA;IAAAC,KAAA;MAAAD,IAAA;MAAA;IAAA;EAAA;EAAAE,OAAA;EAAAC,QAAA;IAAAC,KAAA;IAAAC,IAAA;IAAAC,KAAA;MAAAC,SAAA;MAAAC,6BAAA;QAAAC,UAAA;QAAAC,IAAA;MAAA;IAAA;IAAAC,OAAA;MAAAC,MAAA;MAAAC,OAAA;MAAAL,6BAAA;QAAAI,MAAA;QAAAC,OAAA;MAAA;IAAA;IAAAC,UAAA;MAAAC,QAAA;MAAAC,UAAA;MAAAC,wBAAA;MAAAC,2BAAA;MAAAC,4BAAA;MAAAC,uBAAA;MAAAC,wBAAA;MAAAC,2BAAA;MAAAC,yBAAA;MAAAf,6BAAA;QAAAO,QAAA;MAAA;IAAA;IAAAS,aAAA;MAAAC,gBAAA;IAAA;EAAA;EAAAC,WAAA;AAAA;AAE5C,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,UAAU,MAAM,cAAc;AAErC,MAAM;EAAErC;AAAK,CAAC,GAAGH,QAAQ;AACzB,SAASA,QAAQ,EAAEG,IAAI;AAEvB,OAAO,MAAMsC,QAAQ,GAAG;EACvBF,IAAI;EACJD,IAAI;EACJE;AACD,CAAC;AAED,OAAO,MAAME,IAAI,GAAGA,CAAA,KAAM3C,SAAS,CAAE;EAAEI,IAAI;EAAEH,QAAQ;EAAEyC;AAAS,CAAE,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["mapMarker","icon","initBlock","metadata","$schema","apiVersion","name","title","category","description","textdomain","attributes","level","type","textAlign","isLink","linkTarget","example","viewportWidth","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","spacing","padding","margin","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalTextTransform","__experimentalTextDecoration","__experimentalFontStyle","__experimentalFontWeight","__experimentalLetterSpacing","interactivity","clientNavigation","editorStyle","style","edit","deprecated","transforms","settings","init"],"sources":["@wordpress/block-library/src/site-title/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { mapMarker as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\nimport deprecated from './deprecated';\nimport transforms from './transforms';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {},\n\tedit,\n\ttransforms,\n\tdeprecated,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAS,IAAIC,IAAI,QAAQ,kBAAkB;;AAEpD;AACA;AACA;AACA,OAAOC,SAAS,MAAM,qBAAqB;AAAC,MAAAC,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,KAAA;MAAAC,IAAA;MAAA;IAAA;IAAAC,SAAA;MAAAD,IAAA;IAAA;IAAAE,MAAA;MAAAF,IAAA;MAAA;IAAA;IAAAG,UAAA;MAAAH,IAAA;MAAA;IAAA;EAAA;EAAAI,OAAA;IAAAC,aAAA;EAAA;EAAAC,QAAA;IAAAC,KAAA;IAAAC,IAAA;IAAAC,KAAA;MAAAC,SAAA;MAAAC,IAAA;MAAAC,6BAAA;QAAAC,UAAA;QAAAC,IAAA;QAAAH,IAAA;MAAA;IAAA;IAAAI,OAAA;MAAAC,OAAA;MAAAC,MAAA;MAAAL,6BAAA;QAAAK,MAAA;QAAAD,OAAA;MAAA;IAAA;IAAAE,UAAA;MAAAC,QAAA;MAAAC,UAAA;MAAAC,wBAAA;MAAAC,2BAAA;MAAAC,4BAAA;MAAAC,uBAAA;MAAAC,wBAAA;MAAAC,2BAAA;
|
|
1
|
+
{"version":3,"names":["mapMarker","icon","initBlock","metadata","$schema","apiVersion","name","title","category","description","textdomain","attributes","level","type","textAlign","isLink","linkTarget","example","viewportWidth","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","spacing","padding","margin","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalTextTransform","__experimentalTextDecoration","__experimentalFontStyle","__experimentalFontWeight","__experimentalLetterSpacing","__experimentalWritingMode","interactivity","clientNavigation","editorStyle","style","edit","deprecated","transforms","settings","init"],"sources":["@wordpress/block-library/src/site-title/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { mapMarker as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\nimport deprecated from './deprecated';\nimport transforms from './transforms';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {},\n\tedit,\n\ttransforms,\n\tdeprecated,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,SAAS,IAAIC,IAAI,QAAQ,kBAAkB;;AAEpD;AACA;AACA;AACA,OAAOC,SAAS,MAAM,qBAAqB;AAAC,MAAAC,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,KAAA;MAAAC,IAAA;MAAA;IAAA;IAAAC,SAAA;MAAAD,IAAA;IAAA;IAAAE,MAAA;MAAAF,IAAA;MAAA;IAAA;IAAAG,UAAA;MAAAH,IAAA;MAAA;IAAA;EAAA;EAAAI,OAAA;IAAAC,aAAA;EAAA;EAAAC,QAAA;IAAAC,KAAA;IAAAC,IAAA;IAAAC,KAAA;MAAAC,SAAA;MAAAC,IAAA;MAAAC,6BAAA;QAAAC,UAAA;QAAAC,IAAA;QAAAH,IAAA;MAAA;IAAA;IAAAI,OAAA;MAAAC,OAAA;MAAAC,MAAA;MAAAL,6BAAA;QAAAK,MAAA;QAAAD,OAAA;MAAA;IAAA;IAAAE,UAAA;MAAAC,QAAA;MAAAC,UAAA;MAAAC,wBAAA;MAAAC,2BAAA;MAAAC,4BAAA;MAAAC,uBAAA;MAAAC,wBAAA;MAAAC,2BAAA;MAAAC,yBAAA;MAAAf,6BAAA;QAAAO,QAAA;MAAA;IAAA;IAAAS,aAAA;MAAAC,gBAAA;IAAA;EAAA;EAAAC,WAAA;EAAAC,KAAA;AAAA;AAE5C,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,UAAU,MAAM,cAAc;AACrC,OAAOC,UAAU,MAAM,cAAc;AAErC,MAAM;EAAEzC;AAAK,CAAC,GAAGH,QAAQ;AACzB,SAASA,QAAQ,EAAEG,IAAI;AAEvB,OAAO,MAAM0C,QAAQ,GAAG;EACvB/C,IAAI;EACJgB,OAAO,EAAE,CAAC,CAAC;EACX4B,IAAI;EACJE,UAAU;EACVD;AACD,CAAC;AAED,OAAO,MAAMG,IAAI,GAAGA,CAAA,KAAM/C,SAAS,CAAE;EAAEI,IAAI;EAAEH,QAAQ;EAAE6C;AAAS,CAAE,CAAC","ignoreList":[]}
|
|
@@ -13,7 +13,7 @@ const metadata = {
|
|
|
13
13
|
__experimental: true,
|
|
14
14
|
name: "core/table-of-contents",
|
|
15
15
|
title: "Table of Contents",
|
|
16
|
-
category: "
|
|
16
|
+
category: "design",
|
|
17
17
|
description: "Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",
|
|
18
18
|
keywords: ["document outline", "summary"],
|
|
19
19
|
textdomain: "default",
|
|
@@ -33,6 +33,13 @@ const metadata = {
|
|
|
33
33
|
},
|
|
34
34
|
supports: {
|
|
35
35
|
anchor: true,
|
|
36
|
+
background: {
|
|
37
|
+
backgroundImage: true,
|
|
38
|
+
backgroundSize: true,
|
|
39
|
+
__experimentalDefaultControls: {
|
|
40
|
+
backgroundImage: true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
36
43
|
color: {
|
|
37
44
|
gradients: true,
|
|
38
45
|
link: true,
|
|
@@ -41,6 +48,12 @@ const metadata = {
|
|
|
41
48
|
text: true
|
|
42
49
|
}
|
|
43
50
|
},
|
|
51
|
+
dimensions: {
|
|
52
|
+
minHeight: true,
|
|
53
|
+
__experimentalDefaultControls: {
|
|
54
|
+
minHeight: false
|
|
55
|
+
}
|
|
56
|
+
},
|
|
44
57
|
typography: {
|
|
45
58
|
fontSize: true,
|
|
46
59
|
__experimentalFontFamily: true,
|
|
@@ -50,6 +63,7 @@ const metadata = {
|
|
|
50
63
|
__experimentalLetterSpacing: true,
|
|
51
64
|
__experimentalTextTransform: true,
|
|
52
65
|
__experimentalTextDecoration: true,
|
|
66
|
+
__experimentalWritingMode: true,
|
|
53
67
|
__experimentalDefaultControls: {
|
|
54
68
|
fontSize: true
|
|
55
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__","verse","icon","initBlock","deprecated","edit","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","content","type","source","selector","__unstablePreserveWhiteSpace","__experimentalRole","textAlign","supports","anchor","color","gradients","link","
|
|
1
|
+
{"version":3,"names":["__","verse","icon","initBlock","deprecated","edit","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","content","type","source","selector","__unstablePreserveWhiteSpace","__experimentalRole","textAlign","supports","anchor","background","backgroundImage","backgroundSize","__experimentalDefaultControls","color","gradients","link","text","dimensions","minHeight","typography","fontSize","__experimentalFontFamily","lineHeight","__experimentalFontStyle","__experimentalFontWeight","__experimentalLetterSpacing","__experimentalTextTransform","__experimentalTextDecoration","__experimentalWritingMode","spacing","margin","padding","__experimentalBorder","radius","width","style","interactivity","clientNavigation","editorStyle","save","transforms","settings","example","merge","attributesToMerge","init"],"sources":["@wordpress/block-library/src/verse/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { verse as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport deprecated from './deprecated';\nimport edit from './edit';\nimport metadata from './block.json';\nimport save from './save';\nimport transforms from './transforms';\n\nconst { name } = metadata;\n\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {\n\t\tattributes: {\n\t\t\t/* eslint-disable @wordpress/i18n-no-collapsible-whitespace */\n\t\t\t// translators: Sample content for the Verse block. Can be replaced with a more locale-adequate work.\n\t\t\tcontent: __(\n\t\t\t\t'WHAT was he doing, the great god Pan,\\n\tDown in the reeds by the river?\\nSpreading ruin and scattering ban,\\nSplashing and paddling with hoofs of a goat,\\nAnd breaking the golden lilies afloat\\n With the dragon-fly on the river.'\n\t\t\t),\n\t\t\t/* eslint-enable @wordpress/i18n-no-collapsible-whitespace */\n\t\t},\n\t},\n\ttransforms,\n\tdeprecated,\n\tmerge( attributes, attributesToMerge ) {\n\t\treturn {\n\t\t\tcontent: attributes.content + '\\n\\n' + attributesToMerge.content,\n\t\t};\n\t},\n\tedit,\n\tsave,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AACpC,SAASC,KAAK,IAAIC,IAAI,QAAQ,kBAAkB;;AAEhD;AACA;AACA;AACA,OAAOC,SAAS,MAAM,qBAAqB;AAC3C,OAAOC,UAAU,MAAM,cAAc;AACrC,OAAOC,IAAI,MAAM,QAAQ;AAAC,MAAAC,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,QAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,OAAA;MAAAC,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,4BAAA;MAAAC,kBAAA;IAAA;IAAAC,SAAA;MAAAL,IAAA;IAAA;EAAA;EAAAM,QAAA;IAAAC,MAAA;IAAAC,UAAA;MAAAC,eAAA;MAAAC,cAAA;MAAAC,6BAAA;QAAAF,eAAA;MAAA;IAAA;IAAAG,KAAA;MAAAC,SAAA;MAAAC,IAAA;MAAAH,6BAAA;QAAAH,UAAA;QAAAO,IAAA;MAAA;IAAA;IAAAC,UAAA;MAAAC,SAAA;MAAAN,6BAAA;QAAAM,SAAA;MAAA;IAAA;IAAAC,UAAA;MAAAC,QAAA;MAAAC,wBAAA;MAAAC,UAAA;MAAAC,uBAAA;MAAAC,wBAAA;MAAAC,2BAAA;MAAAC,2BAAA;MAAAC,4BAAA;MAAAC,yBAAA;MAAAhB,6BAAA;QAAAQ,QAAA;MAAA;IAAA;IAAAS,OAAA;MAAAC,MAAA;MAAAC,OAAA;MAAAnB,6BAAA;QAAAkB,MAAA;QAAAC,OAAA;MAAA;IAAA;IAAAC,oBAAA;MAAAC,MAAA;MAAAC,KAAA;MAAArB,KAAA;MAAAsB,KAAA;IAAA;IAAAC,aAAA;MAAAC,gBAAA;IAAA;EAAA;EAAAF,KAAA;EAAAG,WAAA;AAAA;AAE1B,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,UAAU,MAAM,cAAc;AAErC,MAAM;EAAE/C;AAAK,CAAC,GAAGH,QAAQ;AAEzB,SAASA,QAAQ,EAAEG,IAAI;AAEvB,OAAO,MAAMgD,QAAQ,GAAG;EACvBvD,IAAI;EACJwD,OAAO,EAAE;IACR3C,UAAU,EAAE;MACX;MACA;MACAC,OAAO,EAAEhB,EAAE,CACV,yOACD;MACA;IACD;EACD,CAAC;EACDwD,UAAU;EACVpD,UAAU;EACVuD,KAAKA,CAAE5C,UAAU,EAAE6C,iBAAiB,EAAG;IACtC,OAAO;MACN5C,OAAO,EAAED,UAAU,CAACC,OAAO,GAAG,MAAM,GAAG4C,iBAAiB,CAAC5C;IAC1D,CAAC;EACF,CAAC;EACDX,IAAI;EACJkD;AACD,CAAC;AAED,OAAO,MAAMM,IAAI,GAAGA,CAAA,KAAM1D,SAAS,CAAE;EAAEM,IAAI;EAAEH,QAAQ;EAAEmD;AAAS,CAAE,CAAC","ignoreList":[]}
|
|
@@ -1797,12 +1797,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
1800
|
-
@media (min-width: 782px) {
|
|
1801
|
-
.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
|
|
1802
|
-
top: 141px;
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
1800
|
.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
1807
1801
|
.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
1808
1802
|
top: 141px;
|
|
@@ -1817,11 +1811,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1817
1811
|
top: 61px;
|
|
1818
1812
|
}
|
|
1819
1813
|
}
|
|
1820
|
-
@media (min-width: 782px) {
|
|
1821
|
-
.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
|
|
1822
|
-
top: 109px;
|
|
1823
|
-
}
|
|
1824
|
-
}
|
|
1825
1814
|
.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
1826
1815
|
.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
1827
1816
|
top: 109px;
|
package/build-style/editor.css
CHANGED
|
@@ -1806,12 +1806,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
1808
1808
|
|
|
1809
|
-
@media (min-width: 782px) {
|
|
1810
|
-
.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
|
|
1811
|
-
top: 141px;
|
|
1812
|
-
}
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
1809
|
.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
1816
1810
|
.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
1817
1811
|
top: 141px;
|
|
@@ -1826,11 +1820,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1826
1820
|
top: 61px;
|
|
1827
1821
|
}
|
|
1828
1822
|
}
|
|
1829
|
-
@media (min-width: 782px) {
|
|
1830
|
-
.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
|
|
1831
|
-
top: 109px;
|
|
1832
|
-
}
|
|
1833
|
-
}
|
|
1834
1823
|
.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
1835
1824
|
.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
1836
1825
|
top: 109px;
|
|
@@ -86,6 +86,9 @@
|
|
|
86
86
|
/**
|
|
87
87
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
88
|
*/
|
|
89
|
+
.wp-block-image a {
|
|
90
|
+
display: inline-block;
|
|
91
|
+
}
|
|
89
92
|
.wp-block-image img {
|
|
90
93
|
height: auto;
|
|
91
94
|
max-width: 100%;
|
|
@@ -102,6 +105,9 @@
|
|
|
102
105
|
.wp-block-image.aligncenter {
|
|
103
106
|
text-align: center;
|
|
104
107
|
}
|
|
108
|
+
.wp-block-image.alignfull a, .wp-block-image.alignwide a {
|
|
109
|
+
width: 100%;
|
|
110
|
+
}
|
|
105
111
|
.wp-block-image.alignfull img, .wp-block-image.alignwide img {
|
|
106
112
|
height: auto;
|
|
107
113
|
width: 100%;
|
|
@@ -86,6 +86,9 @@
|
|
|
86
86
|
/**
|
|
87
87
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
88
88
|
*/
|
|
89
|
+
.wp-block-image a {
|
|
90
|
+
display: inline-block;
|
|
91
|
+
}
|
|
89
92
|
.wp-block-image img {
|
|
90
93
|
height: auto;
|
|
91
94
|
max-width: 100%;
|
|
@@ -102,6 +105,9 @@
|
|
|
102
105
|
.wp-block-image.aligncenter {
|
|
103
106
|
text-align: center;
|
|
104
107
|
}
|
|
108
|
+
.wp-block-image.alignfull a, .wp-block-image.alignwide a {
|
|
109
|
+
width: 100%;
|
|
110
|
+
}
|
|
105
111
|
.wp-block-image.alignfull img, .wp-block-image.alignwide img {
|
|
106
112
|
height: auto;
|
|
107
113
|
width: 100%;
|
|
@@ -417,12 +417,6 @@
|
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
@media (min-width: 782px) {
|
|
421
|
-
.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
|
|
422
|
-
top: 141px;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
420
|
.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
427
421
|
.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
428
422
|
top: 141px;
|
|
@@ -437,11 +431,6 @@
|
|
|
437
431
|
top: 61px;
|
|
438
432
|
}
|
|
439
433
|
}
|
|
440
|
-
@media (min-width: 782px) {
|
|
441
|
-
.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
|
|
442
|
-
top: 109px;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
434
|
.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
446
435
|
.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
447
436
|
top: 109px;
|
|
@@ -417,12 +417,6 @@
|
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
@media (min-width: 782px) {
|
|
421
|
-
.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
|
|
422
|
-
top: 141px;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
420
|
.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
427
421
|
.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
428
422
|
top: 141px;
|
|
@@ -437,11 +431,6 @@
|
|
|
437
431
|
top: 61px;
|
|
438
432
|
}
|
|
439
433
|
}
|
|
440
|
-
@media (min-width: 782px) {
|
|
441
|
-
.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
|
|
442
|
-
top: 109px;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
434
|
.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
446
435
|
.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
447
436
|
top: 109px;
|
|
@@ -1521,6 +1521,9 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1521
1521
|
rotate: 180deg;
|
|
1522
1522
|
}
|
|
1523
1523
|
|
|
1524
|
+
.wp-block-image a {
|
|
1525
|
+
display: inline-block;
|
|
1526
|
+
}
|
|
1524
1527
|
.wp-block-image img {
|
|
1525
1528
|
height: auto;
|
|
1526
1529
|
max-width: 100%;
|
|
@@ -1537,6 +1540,9 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1537
1540
|
.wp-block-image.aligncenter {
|
|
1538
1541
|
text-align: center;
|
|
1539
1542
|
}
|
|
1543
|
+
.wp-block-image.alignfull a, .wp-block-image.alignwide a {
|
|
1544
|
+
width: 100%;
|
|
1545
|
+
}
|
|
1540
1546
|
.wp-block-image.alignfull img, .wp-block-image.alignwide img {
|
|
1541
1547
|
height: auto;
|
|
1542
1548
|
width: 100%;
|
|
@@ -2027,6 +2033,10 @@ ul {
|
|
|
2027
2033
|
grid-row: 1;
|
|
2028
2034
|
}
|
|
2029
2035
|
|
|
2036
|
+
.wp-block-media-text__media a {
|
|
2037
|
+
display: inline-block;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2030
2040
|
.wp-block-media-text__media img,
|
|
2031
2041
|
.wp-block-media-text__media video {
|
|
2032
2042
|
height: auto;
|
package/build-style/style.css
CHANGED
|
@@ -1529,6 +1529,9 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1529
1529
|
rotate: 180deg;
|
|
1530
1530
|
}
|
|
1531
1531
|
|
|
1532
|
+
.wp-block-image a {
|
|
1533
|
+
display: inline-block;
|
|
1534
|
+
}
|
|
1532
1535
|
.wp-block-image img {
|
|
1533
1536
|
height: auto;
|
|
1534
1537
|
max-width: 100%;
|
|
@@ -1545,6 +1548,9 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1545
1548
|
.wp-block-image.aligncenter {
|
|
1546
1549
|
text-align: center;
|
|
1547
1550
|
}
|
|
1551
|
+
.wp-block-image.alignfull a, .wp-block-image.alignwide a {
|
|
1552
|
+
width: 100%;
|
|
1553
|
+
}
|
|
1548
1554
|
.wp-block-image.alignfull img, .wp-block-image.alignwide img {
|
|
1549
1555
|
height: auto;
|
|
1550
1556
|
width: 100%;
|
|
@@ -2057,6 +2063,10 @@ ul {
|
|
|
2057
2063
|
/*!rtl:end:ignore*/
|
|
2058
2064
|
}
|
|
2059
2065
|
|
|
2066
|
+
.wp-block-media-text__media a {
|
|
2067
|
+
display: inline-block;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2060
2070
|
.wp-block-media-text__media img,
|
|
2061
2071
|
.wp-block-media-text__media video {
|
|
2062
2072
|
height: auto;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -32,39 +32,39 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.16.0",
|
|
35
|
-
"@wordpress/a11y": "^4.0
|
|
36
|
-
"@wordpress/api-fetch": "^7.0
|
|
37
|
-
"@wordpress/autop": "^4.0
|
|
38
|
-
"@wordpress/blob": "^4.0
|
|
39
|
-
"@wordpress/block-editor": "^13.0
|
|
40
|
-
"@wordpress/blocks": "^13.0
|
|
41
|
-
"@wordpress/components": "^28.0
|
|
42
|
-
"@wordpress/compose": "^7.0
|
|
43
|
-
"@wordpress/core-data": "^7.0
|
|
44
|
-
"@wordpress/data": "^10.0
|
|
45
|
-
"@wordpress/date": "^5.0
|
|
46
|
-
"@wordpress/deprecated": "^4.0
|
|
47
|
-
"@wordpress/dom": "^4.0
|
|
48
|
-
"@wordpress/element": "^6.0
|
|
49
|
-
"@wordpress/escape-html": "^3.0
|
|
50
|
-
"@wordpress/hooks": "^4.0
|
|
51
|
-
"@wordpress/html-entities": "^4.0
|
|
52
|
-
"@wordpress/i18n": "^5.0
|
|
53
|
-
"@wordpress/icons": "^10.0
|
|
54
|
-
"@wordpress/interactivity": "^6.0
|
|
55
|
-
"@wordpress/interactivity-router": "^2.0
|
|
56
|
-
"@wordpress/keyboard-shortcuts": "^5.0
|
|
57
|
-
"@wordpress/keycodes": "^4.0
|
|
58
|
-
"@wordpress/notices": "^5.0
|
|
59
|
-
"@wordpress/patterns": "^2.0
|
|
60
|
-
"@wordpress/primitives": "^4.0
|
|
61
|
-
"@wordpress/private-apis": "^1.0
|
|
62
|
-
"@wordpress/reusable-blocks": "^5.0
|
|
63
|
-
"@wordpress/rich-text": "^7.0
|
|
64
|
-
"@wordpress/server-side-render": "^5.0
|
|
65
|
-
"@wordpress/url": "^4.0
|
|
66
|
-
"@wordpress/viewport": "^6.0
|
|
67
|
-
"@wordpress/wordcount": "^4.0
|
|
35
|
+
"@wordpress/a11y": "^4.2.0",
|
|
36
|
+
"@wordpress/api-fetch": "^7.2.0",
|
|
37
|
+
"@wordpress/autop": "^4.2.0",
|
|
38
|
+
"@wordpress/blob": "^4.2.0",
|
|
39
|
+
"@wordpress/block-editor": "^13.2.0",
|
|
40
|
+
"@wordpress/blocks": "^13.2.0",
|
|
41
|
+
"@wordpress/components": "^28.2.0",
|
|
42
|
+
"@wordpress/compose": "^7.2.0",
|
|
43
|
+
"@wordpress/core-data": "^7.2.0",
|
|
44
|
+
"@wordpress/data": "^10.2.0",
|
|
45
|
+
"@wordpress/date": "^5.2.0",
|
|
46
|
+
"@wordpress/deprecated": "^4.2.0",
|
|
47
|
+
"@wordpress/dom": "^4.2.0",
|
|
48
|
+
"@wordpress/element": "^6.2.0",
|
|
49
|
+
"@wordpress/escape-html": "^3.2.0",
|
|
50
|
+
"@wordpress/hooks": "^4.2.0",
|
|
51
|
+
"@wordpress/html-entities": "^4.2.0",
|
|
52
|
+
"@wordpress/i18n": "^5.2.0",
|
|
53
|
+
"@wordpress/icons": "^10.2.0",
|
|
54
|
+
"@wordpress/interactivity": "^6.2.0",
|
|
55
|
+
"@wordpress/interactivity-router": "^2.2.0",
|
|
56
|
+
"@wordpress/keyboard-shortcuts": "^5.2.0",
|
|
57
|
+
"@wordpress/keycodes": "^4.2.0",
|
|
58
|
+
"@wordpress/notices": "^5.2.0",
|
|
59
|
+
"@wordpress/patterns": "^2.2.0",
|
|
60
|
+
"@wordpress/primitives": "^4.2.0",
|
|
61
|
+
"@wordpress/private-apis": "^1.2.0",
|
|
62
|
+
"@wordpress/reusable-blocks": "^5.2.0",
|
|
63
|
+
"@wordpress/rich-text": "^7.2.0",
|
|
64
|
+
"@wordpress/server-side-render": "^5.2.0",
|
|
65
|
+
"@wordpress/url": "^4.2.0",
|
|
66
|
+
"@wordpress/viewport": "^6.2.0",
|
|
67
|
+
"@wordpress/wordcount": "^4.2.0",
|
|
68
68
|
"change-case": "^4.1.2",
|
|
69
69
|
"clsx": "^2.1.1",
|
|
70
70
|
"colord": "^2.7.0",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "aa5b14bb5bdbb8d8a02914e154c3bc1c2f18ace6"
|
|
86
86
|
}
|
package/src/button/block.json
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
initializeEditor,
|
|
11
11
|
triggerBlockListLayout,
|
|
12
12
|
typeInRichText,
|
|
13
|
+
screen,
|
|
13
14
|
openBlockSettings,
|
|
14
15
|
waitFor,
|
|
15
16
|
} from 'test/helpers';
|
|
@@ -92,7 +93,7 @@ describe( 'Buttons block', () => {
|
|
|
92
93
|
} );
|
|
93
94
|
|
|
94
95
|
it( 'adds another button using the inline appender', async () => {
|
|
95
|
-
|
|
96
|
+
await initializeEditor( {
|
|
96
97
|
initialHtml: BUTTONS_HTML,
|
|
97
98
|
} );
|
|
98
99
|
|
|
@@ -143,7 +144,7 @@ describe( 'Buttons block', () => {
|
|
|
143
144
|
} );
|
|
144
145
|
|
|
145
146
|
it( 'adds another button using the inserter', async () => {
|
|
146
|
-
|
|
147
|
+
await initializeEditor( {
|
|
147
148
|
initialHtml: BUTTONS_HTML,
|
|
148
149
|
} );
|
|
149
150
|
|
|
@@ -202,9 +203,48 @@ describe( 'Buttons block', () => {
|
|
|
202
203
|
expect( getEditorHtml() ).toMatchSnapshot();
|
|
203
204
|
} );
|
|
204
205
|
|
|
206
|
+
it( 'shows only the button block when using the inserter', async () => {
|
|
207
|
+
await initializeEditor();
|
|
208
|
+
|
|
209
|
+
// Add block
|
|
210
|
+
await addBlock( screen, 'Buttons' );
|
|
211
|
+
|
|
212
|
+
// Get block
|
|
213
|
+
const buttonsBlock = await getBlock( screen, 'Buttons' );
|
|
214
|
+
fireEvent.press( buttonsBlock );
|
|
215
|
+
await triggerBlockListLayout( buttonsBlock );
|
|
216
|
+
|
|
217
|
+
// Get inner button block
|
|
218
|
+
const buttonBlock = await getBlock( screen, 'Button' );
|
|
219
|
+
fireEvent.press( buttonBlock );
|
|
220
|
+
|
|
221
|
+
// Open the block inserter
|
|
222
|
+
fireEvent.press( screen.getByLabelText( 'Add block' ) );
|
|
223
|
+
|
|
224
|
+
const inserterList = screen.getByTestId( 'InserterUI-Blocks' );
|
|
225
|
+
// onScroll event used to force the FlatList to render all items
|
|
226
|
+
fireEvent.scroll( inserterList, {
|
|
227
|
+
nativeEvent: {
|
|
228
|
+
contentOffset: { y: 0, x: 0 },
|
|
229
|
+
contentSize: { width: 100, height: 100 },
|
|
230
|
+
layoutMeasurement: { width: 100, height: 100 },
|
|
231
|
+
},
|
|
232
|
+
} );
|
|
233
|
+
|
|
234
|
+
// Check the Button block is in the list
|
|
235
|
+
const buttonInserterBlock =
|
|
236
|
+
await within( inserterList ).findByText( 'Button' );
|
|
237
|
+
expect( buttonInserterBlock ).toBeVisible();
|
|
238
|
+
|
|
239
|
+
// Check the Paragraph core block is not in the list
|
|
240
|
+
expect(
|
|
241
|
+
within( inserterList ).queryByLabelText( 'Paragraph block' )
|
|
242
|
+
).toBeNull();
|
|
243
|
+
} );
|
|
244
|
+
|
|
205
245
|
describe( 'removing button along with buttons block', () => {
|
|
206
246
|
it( 'removes the button and buttons block when deleting the block using the block delete action', async () => {
|
|
207
|
-
|
|
247
|
+
await initializeEditor( {
|
|
208
248
|
initialHtml: BUTTONS_HTML,
|
|
209
249
|
} );
|
|
210
250
|
|
|
@@ -250,7 +290,7 @@ describe( 'Buttons block', () => {
|
|
|
250
290
|
'Justify items right',
|
|
251
291
|
].forEach( ( justificationOption ) =>
|
|
252
292
|
it( `sets ${ justificationOption } option`, async () => {
|
|
253
|
-
|
|
293
|
+
await initializeEditor( {
|
|
254
294
|
initialHtml: BUTTONS_HTML,
|
|
255
295
|
} );
|
|
256
296
|
|
|
@@ -276,7 +316,7 @@ describe( 'Buttons block', () => {
|
|
|
276
316
|
describe( 'color customization', () => {
|
|
277
317
|
it( 'sets a text color', async () => {
|
|
278
318
|
// Arrange
|
|
279
|
-
|
|
319
|
+
await initializeEditor();
|
|
280
320
|
await addBlock( screen, 'Buttons' );
|
|
281
321
|
|
|
282
322
|
// Act
|
|
@@ -317,7 +357,7 @@ describe( 'Buttons block', () => {
|
|
|
317
357
|
|
|
318
358
|
it( 'sets a background color', async () => {
|
|
319
359
|
// Arrange
|
|
320
|
-
|
|
360
|
+
await initializeEditor();
|
|
321
361
|
await addBlock( screen, 'Buttons' );
|
|
322
362
|
|
|
323
363
|
// Act
|
|
@@ -354,7 +394,7 @@ describe( 'Buttons block', () => {
|
|
|
354
394
|
|
|
355
395
|
it( 'sets a gradient background color', async () => {
|
|
356
396
|
// Arrange
|
|
357
|
-
|
|
397
|
+
await initializeEditor();
|
|
358
398
|
await addBlock( screen, 'Buttons' );
|
|
359
399
|
|
|
360
400
|
// Act
|
|
@@ -396,7 +436,7 @@ describe( 'Buttons block', () => {
|
|
|
396
436
|
|
|
397
437
|
it( 'sets a custom gradient background color', async () => {
|
|
398
438
|
// Arrange
|
|
399
|
-
|
|
439
|
+
await initializeEditor();
|
|
400
440
|
await addBlock( screen, 'Buttons' );
|
|
401
441
|
|
|
402
442
|
// Act
|
package/src/comment-date/edit.js
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
import { useEntityProp } from '@wordpress/core-data';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
dateI18n,
|
|
7
|
+
humanTimeDiff,
|
|
8
|
+
getSettings as getDateSettings,
|
|
9
|
+
} from '@wordpress/date';
|
|
6
10
|
import {
|
|
7
11
|
InspectorControls,
|
|
8
12
|
useBlockProps,
|
|
@@ -64,7 +68,9 @@ export default function Edit( {
|
|
|
64
68
|
let commentDate =
|
|
65
69
|
date instanceof Date ? (
|
|
66
70
|
<time dateTime={ dateI18n( 'c', date ) }>
|
|
67
|
-
{
|
|
71
|
+
{ format === 'human-diff'
|
|
72
|
+
? humanTimeDiff( date )
|
|
73
|
+
: dateI18n( format || siteFormat, date ) }
|
|
68
74
|
</time>
|
|
69
75
|
) : (
|
|
70
76
|
<time>{ date }</time>
|
|
@@ -28,11 +28,13 @@ function render_block_core_comment_date( $attributes, $content, $block ) {
|
|
|
28
28
|
$classes = ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) ? 'has-link-color' : '';
|
|
29
29
|
|
|
30
30
|
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) );
|
|
31
|
-
$
|
|
32
|
-
|
|
33
|
-
$comment
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
if ( isset( $attributes['format'] ) && 'human-diff' === $attributes['format'] ) {
|
|
32
|
+
// translators: %s: human-readable time difference.
|
|
33
|
+
$formatted_date = sprintf( __( '%s ago', 'gutenberg' ), human_time_diff( get_comment_date( 'U', $comment ) ) );
|
|
34
|
+
} else {
|
|
35
|
+
$formatted_date = get_comment_date( empty( $attributes['format'] ) ? '' : $attributes['format'], $comment );
|
|
36
|
+
}
|
|
37
|
+
$link = get_comment_link( $comment );
|
|
36
38
|
|
|
37
39
|
if ( ! empty( $attributes['isLink'] ) ) {
|
|
38
40
|
$formatted_date = sprintf( '<a href="%1s">%2s</a>', esc_url( $link ), $formatted_date );
|
package/src/image/style.scss
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
.wp-block-image {
|
|
2
|
+
|
|
3
|
+
a {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
}
|
|
6
|
+
|
|
2
7
|
img {
|
|
3
8
|
height: auto;
|
|
4
9
|
max-width: 100%;
|
|
@@ -27,6 +32,11 @@
|
|
|
27
32
|
text-align: center;
|
|
28
33
|
}
|
|
29
34
|
|
|
35
|
+
&.alignfull a,
|
|
36
|
+
&.alignwide a {
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
30
40
|
&.alignfull img,
|
|
31
41
|
&.alignwide img {
|
|
32
42
|
height: auto;
|