@wordpress/block-library 9.8.3 → 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.
Files changed (172) hide show
  1. package/build/audio/index.js +4 -4
  2. package/build/audio/index.js.map +1 -1
  3. package/build/button/edit.js +2 -1
  4. package/build/button/edit.js.map +1 -1
  5. package/build/button/index.js +5 -5
  6. package/build/button/index.js.map +1 -1
  7. package/build/categories/index.js +1 -1
  8. package/build/categories/index.js.map +1 -1
  9. package/build/embed/deprecated.js +6 -6
  10. package/build/embed/deprecated.js.map +1 -1
  11. package/build/embed/index.js +6 -6
  12. package/build/embed/index.js.map +1 -1
  13. package/build/embed/transforms.js +6 -6
  14. package/build/embed/transforms.js.map +1 -1
  15. package/build/embed/util.js +6 -6
  16. package/build/embed/util.js.map +1 -1
  17. package/build/file/index.js +1 -1
  18. package/build/file/index.js.map +1 -1
  19. package/build/form-input/deprecated.js +4 -4
  20. package/build/form-input/deprecated.js.map +1 -1
  21. package/build/form-input/index.js +2 -2
  22. package/build/form-input/index.js.map +1 -1
  23. package/build/heading/deprecated.js +1 -1
  24. package/build/heading/deprecated.js.map +1 -1
  25. package/build/heading/index.js +1 -1
  26. package/build/heading/index.js.map +1 -1
  27. package/build/image/deprecated.js +18 -18
  28. package/build/image/deprecated.js.map +1 -1
  29. package/build/image/edit.js +2 -1
  30. package/build/image/edit.js.map +1 -1
  31. package/build/image/image.js +4 -3
  32. package/build/image/image.js.map +1 -1
  33. package/build/image/index.js +7 -7
  34. package/build/image/index.js.map +1 -1
  35. package/build/list/deprecated.js +8 -8
  36. package/build/list/deprecated.js.map +1 -1
  37. package/build/list/index.js +2 -2
  38. package/build/list/index.js.map +1 -1
  39. package/build/list-item/index.js +1 -1
  40. package/build/list-item/index.js.map +1 -1
  41. package/build/media-text/deprecated.js +5 -5
  42. package/build/media-text/deprecated.js.map +1 -1
  43. package/build/media-text/index.js +5 -5
  44. package/build/media-text/index.js.map +1 -1
  45. package/build/paragraph/index.js +1 -1
  46. package/build/paragraph/index.js.map +1 -1
  47. package/build/paragraph/transforms.js +1 -1
  48. package/build/paragraph/transforms.js.map +1 -1
  49. package/build/preformatted/index.js +1 -1
  50. package/build/preformatted/index.js.map +1 -1
  51. package/build/pullquote/deprecated.js +2 -2
  52. package/build/pullquote/deprecated.js.map +1 -1
  53. package/build/pullquote/index.js +2 -2
  54. package/build/pullquote/index.js.map +1 -1
  55. package/build/query/edit/inspector-controls/format-controls.js +1 -1
  56. package/build/query/edit/inspector-controls/format-controls.js.map +1 -1
  57. package/build/quote/deprecated.js +4 -4
  58. package/build/quote/deprecated.js.map +1 -1
  59. package/build/quote/index.js +2 -2
  60. package/build/quote/index.js.map +1 -1
  61. package/build/search/index.js +3 -3
  62. package/build/search/index.js.map +1 -1
  63. package/build/verse/deprecated.js +1 -1
  64. package/build/verse/deprecated.js.map +1 -1
  65. package/build/verse/index.js +1 -1
  66. package/build/verse/index.js.map +1 -1
  67. package/build/video/deprecated.js +5 -5
  68. package/build/video/deprecated.js.map +1 -1
  69. package/build/video/index.js +5 -5
  70. package/build/video/index.js.map +1 -1
  71. package/build-module/audio/index.js +4 -4
  72. package/build-module/audio/index.js.map +1 -1
  73. package/build-module/button/edit.js +3 -2
  74. package/build-module/button/edit.js.map +1 -1
  75. package/build-module/button/index.js +5 -5
  76. package/build-module/button/index.js.map +1 -1
  77. package/build-module/categories/index.js +1 -1
  78. package/build-module/categories/index.js.map +1 -1
  79. package/build-module/embed/deprecated.js +6 -6
  80. package/build-module/embed/deprecated.js.map +1 -1
  81. package/build-module/embed/index.js +6 -6
  82. package/build-module/embed/index.js.map +1 -1
  83. package/build-module/embed/transforms.js +6 -6
  84. package/build-module/embed/transforms.js.map +1 -1
  85. package/build-module/embed/util.js +6 -6
  86. package/build-module/embed/util.js.map +1 -1
  87. package/build-module/file/index.js +1 -1
  88. package/build-module/file/index.js.map +1 -1
  89. package/build-module/form-input/deprecated.js +4 -4
  90. package/build-module/form-input/deprecated.js.map +1 -1
  91. package/build-module/form-input/index.js +2 -2
  92. package/build-module/form-input/index.js.map +1 -1
  93. package/build-module/heading/deprecated.js +1 -1
  94. package/build-module/heading/deprecated.js.map +1 -1
  95. package/build-module/heading/index.js +1 -1
  96. package/build-module/heading/index.js.map +1 -1
  97. package/build-module/image/deprecated.js +18 -18
  98. package/build-module/image/deprecated.js.map +1 -1
  99. package/build-module/image/edit.js +3 -2
  100. package/build-module/image/edit.js.map +1 -1
  101. package/build-module/image/image.js +5 -4
  102. package/build-module/image/image.js.map +1 -1
  103. package/build-module/image/index.js +7 -7
  104. package/build-module/image/index.js.map +1 -1
  105. package/build-module/list/deprecated.js +8 -8
  106. package/build-module/list/deprecated.js.map +1 -1
  107. package/build-module/list/index.js +2 -2
  108. package/build-module/list/index.js.map +1 -1
  109. package/build-module/list-item/index.js +1 -1
  110. package/build-module/list-item/index.js.map +1 -1
  111. package/build-module/media-text/deprecated.js +5 -5
  112. package/build-module/media-text/deprecated.js.map +1 -1
  113. package/build-module/media-text/index.js +5 -5
  114. package/build-module/media-text/index.js.map +1 -1
  115. package/build-module/paragraph/index.js +1 -1
  116. package/build-module/paragraph/index.js.map +1 -1
  117. package/build-module/paragraph/transforms.js +1 -1
  118. package/build-module/paragraph/transforms.js.map +1 -1
  119. package/build-module/preformatted/index.js +1 -1
  120. package/build-module/preformatted/index.js.map +1 -1
  121. package/build-module/pullquote/deprecated.js +2 -2
  122. package/build-module/pullquote/deprecated.js.map +1 -1
  123. package/build-module/pullquote/index.js +2 -2
  124. package/build-module/pullquote/index.js.map +1 -1
  125. package/build-module/query/edit/inspector-controls/format-controls.js +1 -1
  126. package/build-module/query/edit/inspector-controls/format-controls.js.map +1 -1
  127. package/build-module/quote/deprecated.js +4 -4
  128. package/build-module/quote/deprecated.js.map +1 -1
  129. package/build-module/quote/index.js +2 -2
  130. package/build-module/quote/index.js.map +1 -1
  131. package/build-module/search/index.js +3 -3
  132. package/build-module/search/index.js.map +1 -1
  133. package/build-module/verse/deprecated.js +1 -1
  134. package/build-module/verse/deprecated.js.map +1 -1
  135. package/build-module/verse/index.js +1 -1
  136. package/build-module/verse/index.js.map +1 -1
  137. package/build-module/video/deprecated.js +5 -5
  138. package/build-module/video/deprecated.js.map +1 -1
  139. package/build-module/video/index.js +5 -5
  140. package/build-module/video/index.js.map +1 -1
  141. package/package.json +25 -25
  142. package/src/audio/block.json +4 -4
  143. package/src/button/block.json +5 -5
  144. package/src/button/edit.js +3 -2
  145. package/src/categories/block.json +1 -1
  146. package/src/embed/block.json +6 -6
  147. package/src/file/block.json +1 -1
  148. package/src/form-input/block.json +2 -2
  149. package/src/form-input/deprecated.js +4 -4
  150. package/src/heading/block.json +1 -1
  151. package/src/heading/deprecated.js +1 -1
  152. package/src/image/block.json +7 -7
  153. package/src/image/deprecated.js +18 -18
  154. package/src/image/edit.js +3 -2
  155. package/src/image/image.js +5 -4
  156. package/src/list/block.json +2 -2
  157. package/src/list/deprecated.js +8 -8
  158. package/src/list-item/block.json +1 -1
  159. package/src/media-text/block.json +5 -5
  160. package/src/media-text/deprecated.js +5 -5
  161. package/src/navigation/index.php +9 -3
  162. package/src/paragraph/block.json +1 -1
  163. package/src/preformatted/block.json +1 -1
  164. package/src/pullquote/block.json +2 -2
  165. package/src/pullquote/deprecated.js +2 -2
  166. package/src/query/edit/inspector-controls/format-controls.js +1 -1
  167. package/src/quote/block.json +2 -2
  168. package/src/quote/deprecated.js +4 -4
  169. package/src/search/block.json +3 -3
  170. package/src/verse/block.json +1 -1
  171. package/src/verse/deprecated.js +1 -1
  172. package/src/video/block.json +5 -5
@@ -30,7 +30,7 @@ const metadata = {
30
30
  type: "rich-text",
31
31
  source: "rich-text",
32
32
  selector: "figcaption",
33
- __experimentalRole: "content"
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
- __experimentalRole: "content"
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
- __experimentalRole: "local"
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
- __experimentalRole: "content"
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
- __experimentalRole: "content",
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","__experimentalRole","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,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,QAAA;MAAAC,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;IAAA;IAAAC,OAAA;MAAAJ,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAG,kBAAA;IAAA;IAAAC,QAAA;MAAAN,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;MAAA;IAAA;IAAAI,EAAA;MAAAP,IAAA;MAAAK,kBAAA;IAAA;IAAAG,IAAA;MAAAR,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;IAAA;IAAAM,KAAA;MAAAT,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;IAAA;IAAAO,MAAA;MAAAV,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;IAAA;IAAAQ,OAAA;MAAAX,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;MAAA;IAAA;IAAAS,IAAA;MAAAZ,IAAA;MAAAK,kBAAA;IAAA;IAAAQ,GAAA;MAAAb,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;MAAAE,kBAAA;IAAA;IAAAS,WAAA;MAAAd,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;IAAA;IAAAY,MAAA;MAAAV,kBAAA;MAAAL,IAAA;MAAAgB,KAAA;QAAAhB,IAAA;MAAA;MAAA;IAAA;EAAA;EAAAiB,QAAA;IAAAC,MAAA;IAAAC,KAAA;IAAAC,OAAA;MAAAC,MAAA;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":[]}
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,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,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,QAAA;MAAAC,SAAA;IAAA;IAAAO,MAAA;MAAAV,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;IAAA;IAAAQ,OAAA;MAAAX,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;MAAA;IAAA;IAAAS,IAAA;MAAAZ,IAAA;MAAAK,IAAA;IAAA;IAAAQ,GAAA;MAAAb,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;MAAAE,IAAA;IAAA;IAAAS,WAAA;MAAAd,IAAA;MAAAC,MAAA;MAAAC,QAAA;MAAAC,SAAA;IAAA;IAAAY,MAAA;MAAAV,IAAA;MAAAL,IAAA;MAAAgB,KAAA;QAAAhB,IAAA;MAAA;MAAA;IAAA;EAAA;EAAAiB,QAAA;IAAAC,MAAA;IAAAC,KAAA;IAAAC,OAAA;MAAAC,MAAA;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",
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.1",
43
- "@wordpress/api-fetch": "^7.8.1",
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.2",
47
- "@wordpress/blocks": "^13.8.2",
48
- "@wordpress/components": "^28.8.2",
49
- "@wordpress/compose": "^7.8.2",
50
- "@wordpress/core-data": "^7.8.2",
51
- "@wordpress/data": "^10.8.2",
52
- "@wordpress/date": "^5.8.1",
53
- "@wordpress/deprecated": "^4.8.1",
54
- "@wordpress/dom": "^4.8.1",
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.1",
57
+ "@wordpress/hooks": "^4.8.2",
58
58
  "@wordpress/html-entities": "^4.8.1",
59
- "@wordpress/i18n": "^5.8.1",
60
- "@wordpress/icons": "^10.8.1",
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.2",
63
- "@wordpress/keyboard-shortcuts": "^5.8.2",
64
- "@wordpress/keycodes": "^4.8.1",
65
- "@wordpress/notices": "^5.8.2",
66
- "@wordpress/patterns": "^2.8.2",
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.2",
70
- "@wordpress/rich-text": "^7.8.2",
71
- "@wordpress/server-side-render": "^5.8.2",
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.2",
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": "51204ac9382d0551d8fdebd3c8d4623dabfa9f3c"
92
+ "gitHead": "6187079697e13c3292eb098d6338523a6676c6e8"
93
93
  }
@@ -10,24 +10,24 @@
10
10
  "attributes": {
11
11
  "blob": {
12
12
  "type": "string",
13
- "__experimentalRole": "local"
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
- "__experimentalRole": "content"
20
+ "role": "content"
21
21
  },
22
22
  "caption": {
23
23
  "type": "rich-text",
24
24
  "source": "rich-text",
25
25
  "selector": "figcaption",
26
- "__experimentalRole": "content"
26
+ "role": "content"
27
27
  },
28
28
  "id": {
29
29
  "type": "number",
30
- "__experimentalRole": "content"
30
+ "role": "content"
31
31
  },
32
32
  "autoplay": {
33
33
  "type": "boolean",
@@ -26,34 +26,34 @@
26
26
  "source": "attribute",
27
27
  "selector": "a",
28
28
  "attribute": "href",
29
- "__experimentalRole": "content"
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
- "__experimentalRole": "content"
36
+ "role": "content"
37
37
  },
38
38
  "text": {
39
39
  "type": "rich-text",
40
40
  "source": "rich-text",
41
41
  "selector": "a,button",
42
- "__experimentalRole": "content"
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
- "__experimentalRole": "content"
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
- "__experimentalRole": "content"
56
+ "role": "content"
57
57
  },
58
58
  "placeholder": {
59
59
  "type": "string"
@@ -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
- select,
252
+ registry,
252
253
  context,
253
254
  args: metadata?.bindings?.url?.args,
254
255
  } ),
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "label": {
36
36
  "type": "string",
37
- "__experimentalRole": "content"
37
+ "role": "content"
38
38
  },
39
39
  "showLabel": {
40
40
  "type": "boolean",
@@ -9,21 +9,21 @@
9
9
  "attributes": {
10
10
  "url": {
11
11
  "type": "string",
12
- "__experimentalRole": "content"
12
+ "role": "content"
13
13
  },
14
14
  "caption": {
15
15
  "type": "rich-text",
16
16
  "source": "rich-text",
17
17
  "selector": "figcaption",
18
- "__experimentalRole": "content"
18
+ "role": "content"
19
19
  },
20
20
  "type": {
21
21
  "type": "string",
22
- "__experimentalRole": "content"
22
+ "role": "content"
23
23
  },
24
24
  "providerNameSlug": {
25
25
  "type": "string",
26
- "__experimentalRole": "content"
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
- "__experimentalRole": "content"
35
+ "role": "content"
36
36
  },
37
37
  "previewable": {
38
38
  "type": "boolean",
39
39
  "default": true,
40
- "__experimentalRole": "content"
40
+ "role": "content"
41
41
  }
42
42
  },
43
43
  "supports": {
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "blob": {
15
15
  "type": "string",
16
- "__experimentalRole": "local"
16
+ "role": "local"
17
17
  },
18
18
  "href": {
19
19
  "type": "string"
@@ -23,7 +23,7 @@
23
23
  "default": "Label",
24
24
  "selector": ".wp-block-form-input__label-content",
25
25
  "source": "rich-text",
26
- "__experimentalRole": "content"
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
- "__experimentalRole": "content"
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
- __experimentalRole: 'content',
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
- __experimentalRole: 'content',
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
- __experimentalRole: 'content',
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
- __experimentalRole: 'content',
176
+ role: 'content',
177
177
  },
178
178
  value: {
179
179
  type: 'string',
@@ -15,7 +15,7 @@
15
15
  "type": "rich-text",
16
16
  "source": "rich-text",
17
17
  "selector": "h1,h2,h3,h4,h5,h6",
18
- "__experimentalRole": "content"
18
+ "role": "content"
19
19
  },
20
20
  "level": {
21
21
  "type": "number",
@@ -259,7 +259,7 @@ const v5 = {
259
259
  source: 'html',
260
260
  selector: 'h1,h2,h3,h4,h5,h6',
261
261
  default: '',
262
- __experimentalRole: 'content',
262
+ role: 'content',
263
263
  },
264
264
  level: {
265
265
  type: 'number',
@@ -11,14 +11,14 @@
11
11
  "attributes": {
12
12
  "blob": {
13
13
  "type": "string",
14
- "__experimentalRole": "local"
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
- "__experimentalRole": "content"
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
- "__experimentalRole": "content"
29
+ "role": "content"
30
30
  },
31
31
  "caption": {
32
32
  "type": "rich-text",
33
33
  "source": "rich-text",
34
34
  "selector": "figcaption",
35
- "__experimentalRole": "content"
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
- "__experimentalRole": "content"
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
- "__experimentalRole": "content"
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
- "__experimentalRole": "content"
71
+ "role": "content"
72
72
  },
73
73
  "width": {
74
74
  "type": "string"
@@ -559,7 +559,7 @@ const v6 = {
559
559
  source: 'attribute',
560
560
  selector: 'img',
561
561
  attribute: 'src',
562
- __experimentalRole: 'content',
562
+ role: 'content',
563
563
  },
564
564
  alt: {
565
565
  type: 'string',
@@ -567,27 +567,27 @@ const v6 = {
567
567
  selector: 'img',
568
568
  attribute: 'alt',
569
569
  default: '',
570
- __experimentalRole: 'content',
570
+ role: 'content',
571
571
  },
572
572
  caption: {
573
573
  type: 'string',
574
574
  source: 'html',
575
575
  selector: 'figcaption',
576
- __experimentalRole: 'content',
576
+ role: 'content',
577
577
  },
578
578
  title: {
579
579
  type: 'string',
580
580
  source: 'attribute',
581
581
  selector: 'img',
582
582
  attribute: 'title',
583
- __experimentalRole: 'content',
583
+ role: 'content',
584
584
  },
585
585
  href: {
586
586
  type: 'string',
587
587
  source: 'attribute',
588
588
  selector: 'figure > a',
589
589
  attribute: 'href',
590
- __experimentalRole: 'content',
590
+ role: 'content',
591
591
  },
592
592
  rel: {
593
593
  type: 'string',
@@ -603,7 +603,7 @@ const v6 = {
603
603
  },
604
604
  id: {
605
605
  type: 'number',
606
- __experimentalRole: 'content',
606
+ role: 'content',
607
607
  },
608
608
  width: {
609
609
  type: 'number',
@@ -762,7 +762,7 @@ const v7 = {
762
762
  source: 'attribute',
763
763
  selector: 'img',
764
764
  attribute: 'src',
765
- __experimentalRole: 'content',
765
+ role: 'content',
766
766
  },
767
767
  alt: {
768
768
  type: 'string',
@@ -770,27 +770,27 @@ const v7 = {
770
770
  selector: 'img',
771
771
  attribute: 'alt',
772
772
  default: '',
773
- __experimentalRole: 'content',
773
+ role: 'content',
774
774
  },
775
775
  caption: {
776
776
  type: 'string',
777
777
  source: 'html',
778
778
  selector: 'figcaption',
779
- __experimentalRole: 'content',
779
+ role: 'content',
780
780
  },
781
781
  title: {
782
782
  type: 'string',
783
783
  source: 'attribute',
784
784
  selector: 'img',
785
785
  attribute: 'title',
786
- __experimentalRole: 'content',
786
+ role: 'content',
787
787
  },
788
788
  href: {
789
789
  type: 'string',
790
790
  source: 'attribute',
791
791
  selector: 'figure > a',
792
792
  attribute: 'href',
793
- __experimentalRole: 'content',
793
+ role: 'content',
794
794
  },
795
795
  rel: {
796
796
  type: 'string',
@@ -806,7 +806,7 @@ const v7 = {
806
806
  },
807
807
  id: {
808
808
  type: 'number',
809
- __experimentalRole: 'content',
809
+ role: 'content',
810
810
  },
811
811
  width: {
812
812
  type: 'number',
@@ -962,7 +962,7 @@ const v8 = {
962
962
  source: 'attribute',
963
963
  selector: 'img',
964
964
  attribute: 'src',
965
- __experimentalRole: 'content',
965
+ role: 'content',
966
966
  },
967
967
  alt: {
968
968
  type: 'string',
@@ -970,27 +970,27 @@ const v8 = {
970
970
  selector: 'img',
971
971
  attribute: 'alt',
972
972
  default: '',
973
- __experimentalRole: 'content',
973
+ role: 'content',
974
974
  },
975
975
  caption: {
976
976
  type: 'string',
977
977
  source: 'html',
978
978
  selector: 'figcaption',
979
- __experimentalRole: 'content',
979
+ role: 'content',
980
980
  },
981
981
  title: {
982
982
  type: 'string',
983
983
  source: 'attribute',
984
984
  selector: 'img',
985
985
  attribute: 'title',
986
- __experimentalRole: 'content',
986
+ role: 'content',
987
987
  },
988
988
  href: {
989
989
  type: 'string',
990
990
  source: 'attribute',
991
991
  selector: 'figure > a',
992
992
  attribute: 'href',
993
- __experimentalRole: 'content',
993
+ role: 'content',
994
994
  },
995
995
  rel: {
996
996
  type: 'string',
@@ -1006,7 +1006,7 @@ const v8 = {
1006
1006
  },
1007
1007
  id: {
1008
1008
  type: 'number',
1009
- __experimentalRole: 'content',
1009
+ role: 'content',
1010
1010
  },
1011
1011
  width: {
1012
1012
  type: 'string',
package/src/image/edit.js CHANGED
@@ -9,7 +9,7 @@ import clsx from 'clsx';
9
9
  import { isBlobURL, createBlobURL } from '@wordpress/blob';
10
10
  import { store as blocksStore, createBlock } from '@wordpress/blocks';
11
11
  import { Placeholder } from '@wordpress/components';
12
- import { useDispatch, useSelect } from '@wordpress/data';
12
+ import { useDispatch, useSelect, useRegistry } from '@wordpress/data';
13
13
  import {
14
14
  BlockIcon,
15
15
  useBlockProps,
@@ -113,6 +113,7 @@ export function ImageEdit( {
113
113
 
114
114
  const [ temporaryURL, setTemporaryURL ] = useState( attributes.blob );
115
115
 
116
+ const registry = useRegistry();
116
117
  const containerRef = useRef();
117
118
  // Only observe the max width from the parent container when the parent layout is not flex nor grid.
118
119
  // This won't work for them because the container width changes with the image.
@@ -380,7 +381,7 @@ export function ImageEdit( {
380
381
  lockUrlControls:
381
382
  !! metadata?.bindings?.url &&
382
383
  ! blockBindingsSource?.canUserEditValue?.( {
383
- select,
384
+ registry,
384
385
  context,
385
386
  args: metadata?.bindings?.url?.args,
386
387
  } ),
@@ -17,7 +17,7 @@ import {
17
17
  Placeholder,
18
18
  } from '@wordpress/components';
19
19
  import { useViewportMatch } from '@wordpress/compose';
20
- import { useSelect, useDispatch } from '@wordpress/data';
20
+ import { useSelect, useDispatch, useRegistry } from '@wordpress/data';
21
21
  import {
22
22
  BlockControls,
23
23
  InspectorControls,
@@ -134,6 +134,7 @@ export default function Image( {
134
134
  const numericWidth = width ? parseInt( width, 10 ) : undefined;
135
135
  const numericHeight = height ? parseInt( height, 10 ) : undefined;
136
136
 
137
+ const registry = useRegistry();
137
138
  const imageRef = useRef();
138
139
  const { allowResize = true } = context;
139
140
  const { getBlock, getSettings } = useSelect( blockEditorStore );
@@ -496,7 +497,7 @@ export default function Image( {
496
497
  lockUrlControls:
497
498
  !! urlBinding &&
498
499
  ! urlBindingSource?.canUserEditValue?.( {
499
- select,
500
+ registry,
500
501
  context,
501
502
  args: urlBinding?.args,
502
503
  } ),
@@ -511,7 +512,7 @@ export default function Image( {
511
512
  lockAltControls:
512
513
  !! altBinding &&
513
514
  ! altBindingSource?.canUserEditValue?.( {
514
- select,
515
+ registry,
515
516
  context,
516
517
  args: altBinding?.args,
517
518
  } ),
@@ -525,7 +526,7 @@ export default function Image( {
525
526
  lockTitleControls:
526
527
  !! titleBinding &&
527
528
  ! titleBindingSource?.canUserEditValue?.( {
528
- select,
529
+ registry,
529
530
  context,
530
531
  args: titleBinding?.args,
531
532
  } ),
@@ -12,7 +12,7 @@
12
12
  "ordered": {
13
13
  "type": "boolean",
14
14
  "default": false,
15
- "__experimentalRole": "content"
15
+ "role": "content"
16
16
  },
17
17
  "values": {
18
18
  "type": "string",
@@ -21,7 +21,7 @@
21
21
  "multiline": "li",
22
22
  "__unstableMultilineWrapperTags": [ "ol", "ul" ],
23
23
  "default": "",
24
- "__experimentalRole": "content"
24
+ "role": "content"
25
25
  },
26
26
  "type": {
27
27
  "type": "string"