@wordpress/block-library 9.8.2 → 9.8.4
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/build/audio/index.js +4 -4
- package/build/audio/index.js.map +1 -1
- package/build/button/edit.js +2 -1
- package/build/button/edit.js.map +1 -1
- package/build/button/index.js +5 -5
- package/build/button/index.js.map +1 -1
- package/build/categories/index.js +1 -1
- package/build/categories/index.js.map +1 -1
- package/build/embed/deprecated.js +6 -6
- package/build/embed/deprecated.js.map +1 -1
- package/build/embed/index.js +6 -6
- package/build/embed/index.js.map +1 -1
- package/build/embed/transforms.js +6 -6
- package/build/embed/transforms.js.map +1 -1
- package/build/embed/util.js +6 -6
- package/build/embed/util.js.map +1 -1
- package/build/file/index.js +1 -1
- package/build/file/index.js.map +1 -1
- package/build/form-input/deprecated.js +4 -4
- package/build/form-input/deprecated.js.map +1 -1
- package/build/form-input/index.js +2 -2
- package/build/form-input/index.js.map +1 -1
- package/build/heading/deprecated.js +1 -1
- package/build/heading/deprecated.js.map +1 -1
- package/build/heading/index.js +1 -1
- package/build/heading/index.js.map +1 -1
- package/build/image/deprecated.js +18 -18
- package/build/image/deprecated.js.map +1 -1
- package/build/image/edit.js +2 -1
- package/build/image/edit.js.map +1 -1
- package/build/image/image.js +4 -3
- package/build/image/image.js.map +1 -1
- package/build/image/index.js +7 -7
- package/build/image/index.js.map +1 -1
- package/build/list/deprecated.js +8 -8
- package/build/list/deprecated.js.map +1 -1
- package/build/list/index.js +2 -2
- package/build/list/index.js.map +1 -1
- package/build/list-item/index.js +1 -1
- package/build/list-item/index.js.map +1 -1
- package/build/media-text/deprecated.js +5 -5
- package/build/media-text/deprecated.js.map +1 -1
- package/build/media-text/index.js +5 -5
- package/build/media-text/index.js.map +1 -1
- package/build/paragraph/index.js +1 -1
- package/build/paragraph/index.js.map +1 -1
- package/build/paragraph/transforms.js +1 -1
- package/build/paragraph/transforms.js.map +1 -1
- package/build/preformatted/index.js +1 -1
- package/build/preformatted/index.js.map +1 -1
- package/build/pullquote/deprecated.js +2 -2
- package/build/pullquote/deprecated.js.map +1 -1
- package/build/pullquote/index.js +2 -2
- package/build/pullquote/index.js.map +1 -1
- package/build/query/edit/inspector-controls/format-controls.js +1 -1
- package/build/query/edit/inspector-controls/format-controls.js.map +1 -1
- package/build/quote/deprecated.js +4 -4
- package/build/quote/deprecated.js.map +1 -1
- package/build/quote/index.js +2 -2
- package/build/quote/index.js.map +1 -1
- package/build/search/edit.js +4 -3
- package/build/search/edit.js.map +1 -1
- package/build/search/index.js +3 -3
- package/build/search/index.js.map +1 -1
- package/build/verse/deprecated.js +1 -1
- package/build/verse/deprecated.js.map +1 -1
- package/build/verse/index.js +1 -1
- package/build/verse/index.js.map +1 -1
- package/build/video/deprecated.js +5 -5
- package/build/video/deprecated.js.map +1 -1
- package/build/video/index.js +5 -5
- package/build/video/index.js.map +1 -1
- package/build-module/audio/index.js +4 -4
- package/build-module/audio/index.js.map +1 -1
- package/build-module/button/edit.js +3 -2
- package/build-module/button/edit.js.map +1 -1
- package/build-module/button/index.js +5 -5
- package/build-module/button/index.js.map +1 -1
- package/build-module/categories/index.js +1 -1
- package/build-module/categories/index.js.map +1 -1
- package/build-module/embed/deprecated.js +6 -6
- package/build-module/embed/deprecated.js.map +1 -1
- package/build-module/embed/index.js +6 -6
- package/build-module/embed/index.js.map +1 -1
- package/build-module/embed/transforms.js +6 -6
- package/build-module/embed/transforms.js.map +1 -1
- package/build-module/embed/util.js +6 -6
- package/build-module/embed/util.js.map +1 -1
- package/build-module/file/index.js +1 -1
- package/build-module/file/index.js.map +1 -1
- package/build-module/form-input/deprecated.js +4 -4
- package/build-module/form-input/deprecated.js.map +1 -1
- package/build-module/form-input/index.js +2 -2
- package/build-module/form-input/index.js.map +1 -1
- package/build-module/heading/deprecated.js +1 -1
- package/build-module/heading/deprecated.js.map +1 -1
- package/build-module/heading/index.js +1 -1
- package/build-module/heading/index.js.map +1 -1
- package/build-module/image/deprecated.js +18 -18
- package/build-module/image/deprecated.js.map +1 -1
- package/build-module/image/edit.js +3 -2
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +5 -4
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/index.js +7 -7
- package/build-module/image/index.js.map +1 -1
- package/build-module/list/deprecated.js +8 -8
- package/build-module/list/deprecated.js.map +1 -1
- package/build-module/list/index.js +2 -2
- package/build-module/list/index.js.map +1 -1
- package/build-module/list-item/index.js +1 -1
- package/build-module/list-item/index.js.map +1 -1
- package/build-module/media-text/deprecated.js +5 -5
- package/build-module/media-text/deprecated.js.map +1 -1
- package/build-module/media-text/index.js +5 -5
- package/build-module/media-text/index.js.map +1 -1
- package/build-module/paragraph/index.js +1 -1
- package/build-module/paragraph/index.js.map +1 -1
- package/build-module/paragraph/transforms.js +1 -1
- package/build-module/paragraph/transforms.js.map +1 -1
- package/build-module/preformatted/index.js +1 -1
- package/build-module/preformatted/index.js.map +1 -1
- package/build-module/pullquote/deprecated.js +2 -2
- package/build-module/pullquote/deprecated.js.map +1 -1
- package/build-module/pullquote/index.js +2 -2
- package/build-module/pullquote/index.js.map +1 -1
- package/build-module/query/edit/inspector-controls/format-controls.js +1 -1
- package/build-module/query/edit/inspector-controls/format-controls.js.map +1 -1
- package/build-module/quote/deprecated.js +4 -4
- package/build-module/quote/deprecated.js.map +1 -1
- package/build-module/quote/index.js +2 -2
- package/build-module/quote/index.js.map +1 -1
- package/build-module/search/edit.js +4 -3
- package/build-module/search/edit.js.map +1 -1
- package/build-module/search/index.js +3 -3
- package/build-module/search/index.js.map +1 -1
- package/build-module/verse/deprecated.js +1 -1
- package/build-module/verse/deprecated.js.map +1 -1
- package/build-module/verse/index.js +1 -1
- package/build-module/verse/index.js.map +1 -1
- package/build-module/video/deprecated.js +5 -5
- package/build-module/video/deprecated.js.map +1 -1
- package/build-module/video/index.js +5 -5
- package/build-module/video/index.js.map +1 -1
- package/package.json +25 -25
- package/src/audio/block.json +4 -4
- package/src/button/block.json +5 -5
- package/src/button/edit.js +3 -2
- package/src/categories/block.json +1 -1
- package/src/embed/block.json +6 -6
- package/src/file/block.json +1 -1
- package/src/file/index.php +1 -12
- package/src/form-input/block.json +2 -2
- package/src/form-input/deprecated.js +4 -4
- package/src/heading/block.json +1 -1
- package/src/heading/deprecated.js +1 -1
- package/src/image/block.json +7 -7
- package/src/image/deprecated.js +18 -18
- package/src/image/edit.js +3 -2
- package/src/image/image.js +5 -4
- package/src/image/index.php +1 -13
- package/src/list/block.json +2 -2
- package/src/list/deprecated.js +8 -8
- package/src/list-item/block.json +1 -1
- package/src/media-text/block.json +5 -5
- package/src/media-text/deprecated.js +5 -5
- package/src/navigation/index.php +10 -15
- package/src/paragraph/block.json +1 -1
- package/src/post-template/index.php +0 -5
- package/src/preformatted/block.json +1 -1
- package/src/pullquote/block.json +2 -2
- package/src/pullquote/deprecated.js +2 -2
- package/src/query/edit/inspector-controls/format-controls.js +1 -1
- package/src/query/index.php +1 -21
- package/src/quote/block.json +2 -2
- package/src/quote/deprecated.js +4 -4
- package/src/search/block.json +3 -3
- package/src/search/edit.js +10 -7
- package/src/search/index.php +1 -12
- package/src/verse/block.json +1 -1
- package/src/verse/deprecated.js +1 -1
- package/src/video/block.json +5 -5
|
@@ -20,7 +20,7 @@ const metadata = {
|
|
|
20
20
|
attributes: {
|
|
21
21
|
label: {
|
|
22
22
|
type: "string",
|
|
23
|
-
|
|
23
|
+
role: "content"
|
|
24
24
|
},
|
|
25
25
|
showLabel: {
|
|
26
26
|
type: "boolean",
|
|
@@ -29,7 +29,7 @@ const metadata = {
|
|
|
29
29
|
placeholder: {
|
|
30
30
|
type: "string",
|
|
31
31
|
"default": "",
|
|
32
|
-
|
|
32
|
+
role: "content"
|
|
33
33
|
},
|
|
34
34
|
width: {
|
|
35
35
|
type: "number"
|
|
@@ -39,7 +39,7 @@ const metadata = {
|
|
|
39
39
|
},
|
|
40
40
|
buttonText: {
|
|
41
41
|
type: "string",
|
|
42
|
-
|
|
42
|
+
role: "content"
|
|
43
43
|
},
|
|
44
44
|
buttonPosition: {
|
|
45
45
|
type: "string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__","search","icon","initBlock","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","label","type","
|
|
1
|
+
{"version":3,"names":["__","search","icon","initBlock","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","label","type","role","showLabel","placeholder","width","widthUnit","buttonText","buttonPosition","buttonUseIcon","query","isSearchFieldHidden","supports","align","color","gradients","__experimentalSkipSerialization","__experimentalDefaultControls","background","text","interactivity","typography","__experimentalSelector","fontSize","lineHeight","__experimentalFontFamily","__experimentalFontWeight","__experimentalFontStyle","__experimentalTextTransform","__experimentalTextDecoration","__experimentalLetterSpacing","__experimentalBorder","radius","spacing","margin","html","editorStyle","style","edit","variations","settings","example","viewportWidth","init"],"sources":["@wordpress/block-library/src/search/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { search 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 variations from './variations';\n\nconst { name } = metadata;\n\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {\n\t\tattributes: { buttonText: __( 'Search' ), label: __( 'Search' ) },\n\t\tviewportWidth: 400,\n\t},\n\tvariations,\n\tedit,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AACpC,SAASC,MAAM,IAAIC,IAAI,QAAQ,kBAAkB;;AAEjD;AACA;AACA;AACA,OAAOC,SAAS,MAAM,qBAAqB;AAAC,MAAAC,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,QAAA;EAAAC,UAAA;EAAAC,UAAA;IAAA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S,CAAC;MAAEc,KAAK,EAAEd,EAAE,CAAE,QAAS;IAAE,CAAC;IACjEwD,aAAa,EAAE;EAChB,CAAC;EACDH,UAAU;EACVD;AACD,CAAC;AAED,OAAO,MAAMK,IAAI,GAAGA,CAAA,KAAMtD,SAAS,CAAE;EAAEI,IAAI;EAAEH,QAAQ;EAAEkD;AAAS,CAAE,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["clsx","RichText","useBlockProps","migrateFontFamily","jsx","_jsx","v1","attributes","content","type","source","selector","default","textAlign","save","Content","tagName","style","value","v2","__unstablePreserveWhiteSpace","
|
|
1
|
+
{"version":3,"names":["clsx","RichText","useBlockProps","migrateFontFamily","jsx","_jsx","v1","attributes","content","type","source","selector","default","textAlign","save","Content","tagName","style","value","v2","__unstablePreserveWhiteSpace","role","supports","anchor","color","gradients","link","typography","fontSize","__experimentalFontFamily","spacing","padding","className","children","migrate","isEligible","fontFamily"],"sources":["@wordpress/block-library/src/verse/deprecated.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { RichText, useBlockProps } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport migrateFontFamily from '../utils/migrate-font-family';\n\nconst v1 = {\n\tattributes: {\n\t\tcontent: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: 'pre',\n\t\t\tdefault: '',\n\t\t},\n\t\ttextAlign: {\n\t\t\ttype: 'string',\n\t\t},\n\t},\n\tsave( { attributes } ) {\n\t\tconst { textAlign, content } = attributes;\n\n\t\treturn (\n\t\t\t<RichText.Content\n\t\t\t\ttagName=\"pre\"\n\t\t\t\tstyle={ { textAlign } }\n\t\t\t\tvalue={ content }\n\t\t\t/>\n\t\t);\n\t},\n};\n\nconst v2 = {\n\tattributes: {\n\t\tcontent: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: 'pre',\n\t\t\tdefault: '',\n\t\t\t__unstablePreserveWhiteSpace: true,\n\t\t\trole: 'content',\n\t\t},\n\t\ttextAlign: {\n\t\t\ttype: 'string',\n\t\t},\n\t},\n\tsupports: {\n\t\tanchor: true,\n\t\tcolor: {\n\t\t\tgradients: true,\n\t\t\tlink: true,\n\t\t},\n\t\ttypography: {\n\t\t\tfontSize: true,\n\t\t\t__experimentalFontFamily: true,\n\t\t},\n\t\tspacing: {\n\t\t\tpadding: true,\n\t\t},\n\t},\n\tsave( { attributes } ) {\n\t\tconst { textAlign, content } = attributes;\n\n\t\tconst className = clsx( {\n\t\t\t[ `has-text-align-${ textAlign }` ]: textAlign,\n\t\t} );\n\n\t\treturn (\n\t\t\t<pre { ...useBlockProps.save( { className } ) }>\n\t\t\t\t<RichText.Content value={ content } />\n\t\t\t</pre>\n\t\t);\n\t},\n\tmigrate: migrateFontFamily,\n\tisEligible( { style } ) {\n\t\treturn style?.typography?.fontFamily;\n\t},\n};\n\n/**\n * New deprecations need to be placed first\n * for them to have higher priority.\n *\n * Old deprecations may need to be updated as well.\n *\n * See block-deprecation.md\n */\nexport default [ v2, v1 ];\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,QAAQ,EAAEC,aAAa,QAAQ,yBAAyB;;AAEjE;AACA;AACA;AACA,OAAOC,iBAAiB,MAAM,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE7D,MAAMC,EAAE,GAAG;EACVC,UAAU,EAAE;IACXC,OAAO,EAAE;MACRC,IAAI,EAAE,QAAQ;MACdC,MAAM,EAAE,MAAM;MACdC,QAAQ,EAAE,KAAK;MACfC,OAAO,EAAE;IACV,CAAC;IACDC,SAAS,EAAE;MACVJ,IAAI,EAAE;IACP;EACD,CAAC;EACDK,IAAIA,CAAE;IAAEP;EAAW,CAAC,EAAG;IACtB,MAAM;MAAEM,SAAS;MAAEL;IAAQ,CAAC,GAAGD,UAAU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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,CAAEjB,EAAE,EAAEb,EAAE,CAAE","ignoreList":[]}
|
|
@@ -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","
|
|
1
|
+
{"version":3,"names":["__","verse","icon","initBlock","deprecated","edit","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","content","type","source","selector","__unstablePreserveWhiteSpace","role","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,IAAA;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":[]}
|
|
@@ -26,7 +26,7 @@ const metadata = {
|
|
|
26
26
|
type: "rich-text",
|
|
27
27
|
source: "rich-text",
|
|
28
28
|
selector: "figcaption",
|
|
29
|
-
|
|
29
|
+
role: "content"
|
|
30
30
|
},
|
|
31
31
|
controls: {
|
|
32
32
|
type: "boolean",
|
|
@@ -37,7 +37,7 @@ const metadata = {
|
|
|
37
37
|
},
|
|
38
38
|
id: {
|
|
39
39
|
type: "number",
|
|
40
|
-
|
|
40
|
+
role: "content"
|
|
41
41
|
},
|
|
42
42
|
loop: {
|
|
43
43
|
type: "boolean",
|
|
@@ -66,14 +66,14 @@ const metadata = {
|
|
|
66
66
|
},
|
|
67
67
|
blob: {
|
|
68
68
|
type: "string",
|
|
69
|
-
|
|
69
|
+
role: "local"
|
|
70
70
|
},
|
|
71
71
|
src: {
|
|
72
72
|
type: "string",
|
|
73
73
|
source: "attribute",
|
|
74
74
|
selector: "video",
|
|
75
75
|
attribute: "src",
|
|
76
|
-
|
|
76
|
+
role: "content"
|
|
77
77
|
},
|
|
78
78
|
playsInline: {
|
|
79
79
|
type: "boolean",
|
|
@@ -82,7 +82,7 @@ const metadata = {
|
|
|
82
82
|
attribute: "playsinline"
|
|
83
83
|
},
|
|
84
84
|
tracks: {
|
|
85
|
-
|
|
85
|
+
role: "content",
|
|
86
86
|
type: "array",
|
|
87
87
|
items: {
|
|
88
88
|
type: "object"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["RichText","useBlockProps","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","autoplay","type","source","selector","attribute","caption","
|
|
1
|
+
{"version":3,"names":["RichText","useBlockProps","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","autoplay","type","source","selector","attribute","caption","role","controls","id","loop","muted","poster","preload","blob","src","playsInline","tracks","items","supports","anchor","align","spacing","margin","padding","__experimentalDefaultControls","interactivity","clientNavigation","editorStyle","style","Tracks","jsx","_jsx","jsxs","_jsxs","blockAttributes","v1","save","children","autoPlay","undefined","isEmpty","Content","tagName","value","deprecated"],"sources":["@wordpress/block-library/src/video/deprecated.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { RichText, useBlockProps } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport metadata from './block.json';\nimport Tracks from './tracks';\n\nconst { attributes: blockAttributes } = metadata;\n\n// In #41140 support was added to global styles for caption elements which added a `wp-element-caption` classname\n// to the video figcaption element.\nconst v1 = {\n\tattributes: blockAttributes,\n\tsave( { attributes } ) {\n\t\tconst {\n\t\t\tautoplay,\n\t\t\tcaption,\n\t\t\tcontrols,\n\t\t\tloop,\n\t\t\tmuted,\n\t\t\tposter,\n\t\t\tpreload,\n\t\t\tsrc,\n\t\t\tplaysInline,\n\t\t\ttracks,\n\t\t} = attributes;\n\t\treturn (\n\t\t\t<figure { ...useBlockProps.save() }>\n\t\t\t\t{ src && (\n\t\t\t\t\t<video\n\t\t\t\t\t\tautoPlay={ autoplay }\n\t\t\t\t\t\tcontrols={ controls }\n\t\t\t\t\t\tloop={ loop }\n\t\t\t\t\t\tmuted={ muted }\n\t\t\t\t\t\tposter={ poster }\n\t\t\t\t\t\tpreload={ preload !== 'metadata' ? preload : undefined }\n\t\t\t\t\t\tsrc={ src }\n\t\t\t\t\t\tplaysInline={ playsInline }\n\t\t\t\t\t>\n\t\t\t\t\t\t<Tracks tracks={ tracks } />\n\t\t\t\t\t</video>\n\t\t\t\t) }\n\t\t\t\t{ ! RichText.isEmpty( caption ) && (\n\t\t\t\t\t<RichText.Content tagName=\"figcaption\" value={ caption } />\n\t\t\t\t) }\n\t\t\t</figure>\n\t\t);\n\t},\n};\n\nconst deprecated = [ v1 ];\n\nexport default deprecated;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,QAAQ,EAAEC,aAAa,QAAQ,yBAAyB;;AAEjE;AACA;AACA;AAFA,MAAAC,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,QAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,QAAA;MAAAC,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;IAAA;IAAAC,OAAA;MAAAJ,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAG,IAAA;IAAA;IAAAC,QAAA;MAAAN,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;MAAA;IAAA;IAAAI,EAAA;MAAAP,IAAA;MAAAK,IAAA;IAAA;IAAAG,IAAA;MAAAR,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;IAAA;IAAAM,KAAA;MAAAT,IAAA;MAAAC,MAAA;MAAAC,QA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GtC,QAAU;QACrBO,QAAQ,EAAGA,QAAU;QACrBE,IAAI,EAAGA,IAAM;QACbC,KAAK,EAAGA,KAAO;QACfC,MAAM,EAAGA,MAAQ;QACjBC,OAAO,EAAGA,OAAO,KAAK,UAAU,GAAGA,OAAO,GAAG2B,SAAW;QACxDzB,GAAG,EAAGA,GAAK;QACXC,WAAW,EAAGA,WAAa;QAAAsB,QAAA,eAE3BN,IAAA,CAACF,MAAM;UAACb,MAAM,EAAGA;QAAQ,CAAE;MAAC,CACtB,CACP,EACC,CAAE5B,QAAQ,CAACoD,OAAO,CAAEnC,OAAQ,CAAC,iBAC9B0B,IAAA,CAAC3C,QAAQ,CAACqD,OAAO;QAACC,OAAO,EAAC,YAAY;QAACC,KAAK,EAAGtC;MAAS,CAAE,CAC1D;IAAA,CACM,CAAC;EAEX;AACD,CAAC;AAED,MAAMuC,UAAU,GAAG,CAAET,EAAE,CAAE;AAEzB,eAAeS,UAAU","ignoreList":[]}
|
|
@@ -30,7 +30,7 @@ const metadata = {
|
|
|
30
30
|
type: "rich-text",
|
|
31
31
|
source: "rich-text",
|
|
32
32
|
selector: "figcaption",
|
|
33
|
-
|
|
33
|
+
role: "content"
|
|
34
34
|
},
|
|
35
35
|
controls: {
|
|
36
36
|
type: "boolean",
|
|
@@ -41,7 +41,7 @@ const metadata = {
|
|
|
41
41
|
},
|
|
42
42
|
id: {
|
|
43
43
|
type: "number",
|
|
44
|
-
|
|
44
|
+
role: "content"
|
|
45
45
|
},
|
|
46
46
|
loop: {
|
|
47
47
|
type: "boolean",
|
|
@@ -70,14 +70,14 @@ const metadata = {
|
|
|
70
70
|
},
|
|
71
71
|
blob: {
|
|
72
72
|
type: "string",
|
|
73
|
-
|
|
73
|
+
role: "local"
|
|
74
74
|
},
|
|
75
75
|
src: {
|
|
76
76
|
type: "string",
|
|
77
77
|
source: "attribute",
|
|
78
78
|
selector: "video",
|
|
79
79
|
attribute: "src",
|
|
80
|
-
|
|
80
|
+
role: "content"
|
|
81
81
|
},
|
|
82
82
|
playsInline: {
|
|
83
83
|
type: "boolean",
|
|
@@ -86,7 +86,7 @@ const metadata = {
|
|
|
86
86
|
attribute: "playsinline"
|
|
87
87
|
},
|
|
88
88
|
tracks: {
|
|
89
|
-
|
|
89
|
+
role: "content",
|
|
90
90
|
type: "array",
|
|
91
91
|
items: {
|
|
92
92
|
type: "object"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__","video","icon","initBlock","deprecated","edit","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","autoplay","type","source","selector","attribute","caption","
|
|
1
|
+
{"version":3,"names":["__","video","icon","initBlock","deprecated","edit","metadata","$schema","apiVersion","name","title","category","description","keywords","textdomain","attributes","autoplay","type","source","selector","attribute","caption","role","controls","id","loop","muted","poster","preload","blob","src","playsInline","tracks","items","supports","anchor","align","spacing","margin","padding","__experimentalDefaultControls","interactivity","clientNavigation","editorStyle","style","save","transforms","settings","example","init"],"sources":["@wordpress/block-library/src/video/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { video 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\tsrc: 'https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm',\n\t\t\t// translators: Caption accompanying a video of the wood thrush singing, which serves as an example for the Video block.\n\t\t\tcaption: __( 'Wood thrush singing in Central Park, NYC.' ),\n\t\t},\n\t},\n\ttransforms,\n\tdeprecated,\n\tedit,\n\tsave,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAA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AA;MAAAC,OAAA;MAAAC,6BAAA;QAAAF,MAAA;QAAAC,OAAA;MAAA;IAAA;IAAAE,aAAA;MAAAC,gBAAA;IAAA;EAAA;EAAAC,WAAA;EAAAC,KAAA;AAAA;AAE1B,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,UAAU,MAAM,cAAc;AAErC,MAAM;EAAErC;AAAK,CAAC,GAAGH,QAAQ;AAEzB,SAASA,QAAQ,EAAEG,IAAI;AAEvB,OAAO,MAAMsC,QAAQ,GAAG;EACvB7C,IAAI;EACJ8C,OAAO,EAAE;IACRjC,UAAU,EAAE;MACXe,GAAG,EAAE,+GAA+G;MACpH;MACAT,OAAO,EAAErB,EAAE,CAAE,2CAA4C;IAC1D;EACD,CAAC;EACD8C,UAAU;EACV1C,UAAU;EACVC,IAAI;EACJwC;AACD,CAAC;AAED,OAAO,MAAMI,IAAI,GAAGA,CAAA,KAAM9C,SAAS,CAAE;EAAEM,IAAI;EAAEH,QAAQ;EAAEyC;AAAS,CAAE,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "9.8.
|
|
3
|
+
"version": "9.8.4",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -39,38 +39,38 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@babel/runtime": "^7.16.0",
|
|
42
|
-
"@wordpress/a11y": "^4.8.
|
|
43
|
-
"@wordpress/api-fetch": "^7.8.
|
|
42
|
+
"@wordpress/a11y": "^4.8.2",
|
|
43
|
+
"@wordpress/api-fetch": "^7.8.2",
|
|
44
44
|
"@wordpress/autop": "^4.8.1",
|
|
45
45
|
"@wordpress/blob": "^4.8.1",
|
|
46
|
-
"@wordpress/block-editor": "^14.3.
|
|
47
|
-
"@wordpress/blocks": "^13.8.
|
|
48
|
-
"@wordpress/components": "^28.8.
|
|
49
|
-
"@wordpress/compose": "^7.8.
|
|
50
|
-
"@wordpress/core-data": "^7.8.
|
|
51
|
-
"@wordpress/data": "^10.8.
|
|
52
|
-
"@wordpress/date": "^5.8.
|
|
53
|
-
"@wordpress/deprecated": "^4.8.
|
|
54
|
-
"@wordpress/dom": "^4.8.
|
|
46
|
+
"@wordpress/block-editor": "^14.3.3",
|
|
47
|
+
"@wordpress/blocks": "^13.8.3",
|
|
48
|
+
"@wordpress/components": "^28.8.3",
|
|
49
|
+
"@wordpress/compose": "^7.8.3",
|
|
50
|
+
"@wordpress/core-data": "^7.8.3",
|
|
51
|
+
"@wordpress/data": "^10.8.3",
|
|
52
|
+
"@wordpress/date": "^5.8.2",
|
|
53
|
+
"@wordpress/deprecated": "^4.8.2",
|
|
54
|
+
"@wordpress/dom": "^4.8.2",
|
|
55
55
|
"@wordpress/element": "^6.8.1",
|
|
56
56
|
"@wordpress/escape-html": "^3.8.1",
|
|
57
|
-
"@wordpress/hooks": "^4.8.
|
|
57
|
+
"@wordpress/hooks": "^4.8.2",
|
|
58
58
|
"@wordpress/html-entities": "^4.8.1",
|
|
59
|
-
"@wordpress/i18n": "^5.8.
|
|
60
|
-
"@wordpress/icons": "^10.8.
|
|
59
|
+
"@wordpress/i18n": "^5.8.2",
|
|
60
|
+
"@wordpress/icons": "^10.8.2",
|
|
61
61
|
"@wordpress/interactivity": "^6.8.2",
|
|
62
|
-
"@wordpress/interactivity-router": "^2.8.
|
|
63
|
-
"@wordpress/keyboard-shortcuts": "^5.8.
|
|
64
|
-
"@wordpress/keycodes": "^4.8.
|
|
65
|
-
"@wordpress/notices": "^5.8.
|
|
66
|
-
"@wordpress/patterns": "^2.8.
|
|
62
|
+
"@wordpress/interactivity-router": "^2.8.3",
|
|
63
|
+
"@wordpress/keyboard-shortcuts": "^5.8.3",
|
|
64
|
+
"@wordpress/keycodes": "^4.8.2",
|
|
65
|
+
"@wordpress/notices": "^5.8.3",
|
|
66
|
+
"@wordpress/patterns": "^2.8.3",
|
|
67
67
|
"@wordpress/primitives": "^4.8.1",
|
|
68
68
|
"@wordpress/private-apis": "^1.8.1",
|
|
69
|
-
"@wordpress/reusable-blocks": "^5.8.
|
|
70
|
-
"@wordpress/rich-text": "^7.8.
|
|
71
|
-
"@wordpress/server-side-render": "^5.8.
|
|
69
|
+
"@wordpress/reusable-blocks": "^5.8.3",
|
|
70
|
+
"@wordpress/rich-text": "^7.8.3",
|
|
71
|
+
"@wordpress/server-side-render": "^5.8.3",
|
|
72
72
|
"@wordpress/url": "^4.8.1",
|
|
73
|
-
"@wordpress/viewport": "^6.8.
|
|
73
|
+
"@wordpress/viewport": "^6.8.3",
|
|
74
74
|
"@wordpress/wordcount": "^4.8.1",
|
|
75
75
|
"change-case": "^4.1.2",
|
|
76
76
|
"clsx": "^2.1.1",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"publishConfig": {
|
|
90
90
|
"access": "public"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "6187079697e13c3292eb098d6338523a6676c6e8"
|
|
93
93
|
}
|
package/src/audio/block.json
CHANGED
|
@@ -10,24 +10,24 @@
|
|
|
10
10
|
"attributes": {
|
|
11
11
|
"blob": {
|
|
12
12
|
"type": "string",
|
|
13
|
-
"
|
|
13
|
+
"role": "local"
|
|
14
14
|
},
|
|
15
15
|
"src": {
|
|
16
16
|
"type": "string",
|
|
17
17
|
"source": "attribute",
|
|
18
18
|
"selector": "audio",
|
|
19
19
|
"attribute": "src",
|
|
20
|
-
"
|
|
20
|
+
"role": "content"
|
|
21
21
|
},
|
|
22
22
|
"caption": {
|
|
23
23
|
"type": "rich-text",
|
|
24
24
|
"source": "rich-text",
|
|
25
25
|
"selector": "figcaption",
|
|
26
|
-
"
|
|
26
|
+
"role": "content"
|
|
27
27
|
},
|
|
28
28
|
"id": {
|
|
29
29
|
"type": "number",
|
|
30
|
-
"
|
|
30
|
+
"role": "content"
|
|
31
31
|
},
|
|
32
32
|
"autoplay": {
|
|
33
33
|
"type": "boolean",
|
package/src/button/block.json
CHANGED
|
@@ -26,34 +26,34 @@
|
|
|
26
26
|
"source": "attribute",
|
|
27
27
|
"selector": "a",
|
|
28
28
|
"attribute": "href",
|
|
29
|
-
"
|
|
29
|
+
"role": "content"
|
|
30
30
|
},
|
|
31
31
|
"title": {
|
|
32
32
|
"type": "string",
|
|
33
33
|
"source": "attribute",
|
|
34
34
|
"selector": "a,button",
|
|
35
35
|
"attribute": "title",
|
|
36
|
-
"
|
|
36
|
+
"role": "content"
|
|
37
37
|
},
|
|
38
38
|
"text": {
|
|
39
39
|
"type": "rich-text",
|
|
40
40
|
"source": "rich-text",
|
|
41
41
|
"selector": "a,button",
|
|
42
|
-
"
|
|
42
|
+
"role": "content"
|
|
43
43
|
},
|
|
44
44
|
"linkTarget": {
|
|
45
45
|
"type": "string",
|
|
46
46
|
"source": "attribute",
|
|
47
47
|
"selector": "a",
|
|
48
48
|
"attribute": "target",
|
|
49
|
-
"
|
|
49
|
+
"role": "content"
|
|
50
50
|
},
|
|
51
51
|
"rel": {
|
|
52
52
|
"type": "string",
|
|
53
53
|
"source": "attribute",
|
|
54
54
|
"selector": "a",
|
|
55
55
|
"attribute": "rel",
|
|
56
|
-
"
|
|
56
|
+
"role": "content"
|
|
57
57
|
},
|
|
58
58
|
"placeholder": {
|
|
59
59
|
"type": "string"
|
package/src/button/edit.js
CHANGED
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
store as blocksStore,
|
|
49
49
|
} from '@wordpress/blocks';
|
|
50
50
|
import { useMergeRefs, useRefEffect } from '@wordpress/compose';
|
|
51
|
-
import { useSelect, useDispatch } from '@wordpress/data';
|
|
51
|
+
import { useSelect, useDispatch, useRegistry } from '@wordpress/data';
|
|
52
52
|
|
|
53
53
|
const LINK_SETTINGS = [
|
|
54
54
|
...LinkControl.DEFAULT_LINK_SETTINGS,
|
|
@@ -190,6 +190,7 @@ function ButtonEdit( props ) {
|
|
|
190
190
|
const colorProps = useColorProps( attributes );
|
|
191
191
|
const spacingProps = useSpacingProps( attributes );
|
|
192
192
|
const shadowProps = useShadowProps( attributes );
|
|
193
|
+
const registry = useRegistry();
|
|
193
194
|
const ref = useRef();
|
|
194
195
|
const richTextRef = useRef();
|
|
195
196
|
const blockProps = useBlockProps( {
|
|
@@ -248,7 +249,7 @@ function ButtonEdit( props ) {
|
|
|
248
249
|
lockUrlControls:
|
|
249
250
|
!! metadata?.bindings?.url &&
|
|
250
251
|
! blockBindingsSource?.canUserEditValue?.( {
|
|
251
|
-
|
|
252
|
+
registry,
|
|
252
253
|
context,
|
|
253
254
|
args: metadata?.bindings?.url?.args,
|
|
254
255
|
} ),
|
package/src/embed/block.json
CHANGED
|
@@ -9,21 +9,21 @@
|
|
|
9
9
|
"attributes": {
|
|
10
10
|
"url": {
|
|
11
11
|
"type": "string",
|
|
12
|
-
"
|
|
12
|
+
"role": "content"
|
|
13
13
|
},
|
|
14
14
|
"caption": {
|
|
15
15
|
"type": "rich-text",
|
|
16
16
|
"source": "rich-text",
|
|
17
17
|
"selector": "figcaption",
|
|
18
|
-
"
|
|
18
|
+
"role": "content"
|
|
19
19
|
},
|
|
20
20
|
"type": {
|
|
21
21
|
"type": "string",
|
|
22
|
-
"
|
|
22
|
+
"role": "content"
|
|
23
23
|
},
|
|
24
24
|
"providerNameSlug": {
|
|
25
25
|
"type": "string",
|
|
26
|
-
"
|
|
26
|
+
"role": "content"
|
|
27
27
|
},
|
|
28
28
|
"allowResponsive": {
|
|
29
29
|
"type": "boolean",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"responsive": {
|
|
33
33
|
"type": "boolean",
|
|
34
34
|
"default": false,
|
|
35
|
-
"
|
|
35
|
+
"role": "content"
|
|
36
36
|
},
|
|
37
37
|
"previewable": {
|
|
38
38
|
"type": "boolean",
|
|
39
39
|
"default": true,
|
|
40
|
-
"
|
|
40
|
+
"role": "content"
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"supports": {
|
package/src/file/block.json
CHANGED
package/src/file/index.php
CHANGED
|
@@ -19,18 +19,7 @@
|
|
|
19
19
|
function render_block_core_file( $attributes, $content ) {
|
|
20
20
|
// If it's interactive, enqueue the script module and add the directives.
|
|
21
21
|
if ( ! empty( $attributes['displayPreview'] ) ) {
|
|
22
|
-
|
|
23
|
-
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
|
|
24
|
-
$module_url = gutenberg_url( '/build-module/block-library/file/view.min.js' );
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
wp_register_script_module(
|
|
28
|
-
'@wordpress/block-library/file',
|
|
29
|
-
isset( $module_url ) ? $module_url : includes_url( "blocks/file/view{$suffix}.js" ),
|
|
30
|
-
array( '@wordpress/interactivity' ),
|
|
31
|
-
defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
|
|
32
|
-
);
|
|
33
|
-
wp_enqueue_script_module( '@wordpress/block-library/file' );
|
|
22
|
+
wp_enqueue_script_module( '@wordpress/block-library/file/view' );
|
|
34
23
|
|
|
35
24
|
$processor = new WP_HTML_Tag_Processor( $content );
|
|
36
25
|
$processor->next_tag();
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"default": "Label",
|
|
24
24
|
"selector": ".wp-block-form-input__label-content",
|
|
25
25
|
"source": "rich-text",
|
|
26
|
-
"
|
|
26
|
+
"role": "content"
|
|
27
27
|
},
|
|
28
28
|
"inlineLabel": {
|
|
29
29
|
"type": "boolean",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"selector": ".wp-block-form-input__input",
|
|
42
42
|
"source": "attribute",
|
|
43
43
|
"attribute": "placeholder",
|
|
44
|
-
"
|
|
44
|
+
"role": "content"
|
|
45
45
|
},
|
|
46
46
|
"value": {
|
|
47
47
|
"type": "string",
|
|
@@ -41,7 +41,7 @@ const v2 = {
|
|
|
41
41
|
default: 'Label',
|
|
42
42
|
selector: '.wp-block-form-input__label-content',
|
|
43
43
|
source: 'html',
|
|
44
|
-
|
|
44
|
+
role: 'content',
|
|
45
45
|
},
|
|
46
46
|
inlineLabel: {
|
|
47
47
|
type: 'boolean',
|
|
@@ -59,7 +59,7 @@ const v2 = {
|
|
|
59
59
|
selector: '.wp-block-form-input__input',
|
|
60
60
|
source: 'attribute',
|
|
61
61
|
attribute: 'placeholder',
|
|
62
|
-
|
|
62
|
+
role: 'content',
|
|
63
63
|
},
|
|
64
64
|
value: {
|
|
65
65
|
type: 'string',
|
|
@@ -155,7 +155,7 @@ const v1 = {
|
|
|
155
155
|
default: 'Label',
|
|
156
156
|
selector: '.wp-block-form-input__label-content',
|
|
157
157
|
source: 'html',
|
|
158
|
-
|
|
158
|
+
role: 'content',
|
|
159
159
|
},
|
|
160
160
|
inlineLabel: {
|
|
161
161
|
type: 'boolean',
|
|
@@ -173,7 +173,7 @@ const v1 = {
|
|
|
173
173
|
selector: '.wp-block-form-input__input',
|
|
174
174
|
source: 'attribute',
|
|
175
175
|
attribute: 'placeholder',
|
|
176
|
-
|
|
176
|
+
role: 'content',
|
|
177
177
|
},
|
|
178
178
|
value: {
|
|
179
179
|
type: 'string',
|
package/src/heading/block.json
CHANGED
package/src/image/block.json
CHANGED
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"attributes": {
|
|
12
12
|
"blob": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"
|
|
14
|
+
"role": "local"
|
|
15
15
|
},
|
|
16
16
|
"url": {
|
|
17
17
|
"type": "string",
|
|
18
18
|
"source": "attribute",
|
|
19
19
|
"selector": "img",
|
|
20
20
|
"attribute": "src",
|
|
21
|
-
"
|
|
21
|
+
"role": "content"
|
|
22
22
|
},
|
|
23
23
|
"alt": {
|
|
24
24
|
"type": "string",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"selector": "img",
|
|
27
27
|
"attribute": "alt",
|
|
28
28
|
"default": "",
|
|
29
|
-
"
|
|
29
|
+
"role": "content"
|
|
30
30
|
},
|
|
31
31
|
"caption": {
|
|
32
32
|
"type": "rich-text",
|
|
33
33
|
"source": "rich-text",
|
|
34
34
|
"selector": "figcaption",
|
|
35
|
-
"
|
|
35
|
+
"role": "content"
|
|
36
36
|
},
|
|
37
37
|
"lightbox": {
|
|
38
38
|
"type": "object",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"source": "attribute",
|
|
46
46
|
"selector": "img",
|
|
47
47
|
"attribute": "title",
|
|
48
|
-
"
|
|
48
|
+
"role": "content"
|
|
49
49
|
},
|
|
50
50
|
"href": {
|
|
51
51
|
"type": "string",
|
|
52
52
|
"source": "attribute",
|
|
53
53
|
"selector": "figure > a",
|
|
54
54
|
"attribute": "href",
|
|
55
|
-
"
|
|
55
|
+
"role": "content"
|
|
56
56
|
},
|
|
57
57
|
"rel": {
|
|
58
58
|
"type": "string",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"id": {
|
|
70
70
|
"type": "number",
|
|
71
|
-
"
|
|
71
|
+
"role": "content"
|
|
72
72
|
},
|
|
73
73
|
"width": {
|
|
74
74
|
"type": "string"
|