@wordpress/block-library 9.37.2-next.ba3aee3a2.0 → 9.38.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.
Files changed (238) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/build/audio/index.cjs +16 -8
  3. package/build/audio/index.cjs.map +2 -2
  4. package/build/block-keyboard-shortcuts/index.cjs +2 -4
  5. package/build/block-keyboard-shortcuts/index.cjs.map +2 -2
  6. package/build/button/index.cjs +17 -8
  7. package/build/button/index.cjs.map +2 -2
  8. package/build/code/index.cjs +3 -1
  9. package/build/code/index.cjs.map +2 -2
  10. package/build/comments-title/edit.cjs +10 -6
  11. package/build/comments-title/edit.cjs.map +2 -2
  12. package/build/cover/index.cjs +20 -10
  13. package/build/cover/index.cjs.map +2 -2
  14. package/build/details/index.cjs +3 -1
  15. package/build/details/index.cjs.map +2 -2
  16. package/build/file/index.cjs +19 -9
  17. package/build/file/index.cjs.map +2 -2
  18. package/build/heading/block.json +1 -3
  19. package/build/heading/deprecated.cjs +101 -5
  20. package/build/heading/deprecated.cjs.map +3 -3
  21. package/build/heading/edit.cjs +20 -41
  22. package/build/heading/edit.cjs.map +3 -3
  23. package/build/heading/index.cjs +3 -1
  24. package/build/heading/index.cjs.map +2 -2
  25. package/build/heading/save.cjs +2 -16
  26. package/build/heading/save.cjs.map +3 -3
  27. package/build/heading/transforms.cjs +16 -3
  28. package/build/heading/transforms.cjs.map +2 -2
  29. package/build/image/image.cjs +3 -3
  30. package/build/image/image.cjs.map +2 -2
  31. package/build/image/index.cjs +33 -17
  32. package/build/image/index.cjs.map +2 -2
  33. package/build/list-item/index.cjs +3 -1
  34. package/build/list-item/index.cjs.map +2 -2
  35. package/build/media-text/index.cjs +30 -15
  36. package/build/media-text/index.cjs.map +2 -2
  37. package/build/more/block.json +1 -0
  38. package/build/more/index.cjs +3 -1
  39. package/build/more/index.cjs.map +2 -2
  40. package/build/navigation/edit/index.cjs +7 -6
  41. package/build/navigation/edit/index.cjs.map +2 -2
  42. package/build/navigation/edit/responsive-wrapper.cjs +7 -4
  43. package/build/navigation/edit/responsive-wrapper.cjs.map +2 -2
  44. package/build/navigation/edit/use-create-overlay.cjs +2 -0
  45. package/build/navigation/edit/use-create-overlay.cjs.map +2 -2
  46. package/build/navigation-link/edit.cjs +8 -58
  47. package/build/navigation-link/edit.cjs.map +3 -3
  48. package/build/navigation-link/index.cjs +13 -8
  49. package/build/navigation-link/index.cjs.map +2 -2
  50. package/build/navigation-link/shared/index.cjs +11 -2
  51. package/build/navigation-link/shared/index.cjs.map +2 -2
  52. package/build/navigation-link/shared/invalid-draft-display.cjs +82 -0
  53. package/build/navigation-link/shared/invalid-draft-display.cjs.map +7 -0
  54. package/build/navigation-link/shared/use-enable-link-status-validation.cjs +50 -0
  55. package/build/navigation-link/shared/use-enable-link-status-validation.cjs.map +7 -0
  56. package/build/navigation-link/shared/use-is-invalid-link.cjs +64 -0
  57. package/build/navigation-link/shared/use-is-invalid-link.cjs.map +7 -0
  58. package/build/navigation-overlay-close/block.json +1 -4
  59. package/build/navigation-overlay-close/index.cjs +3 -25
  60. package/build/navigation-overlay-close/index.cjs.map +3 -3
  61. package/build/navigation-submenu/edit.cjs +36 -18
  62. package/build/navigation-submenu/edit.cjs.map +2 -2
  63. package/build/navigation-submenu/index.cjs +15 -8
  64. package/build/navigation-submenu/index.cjs.map +2 -2
  65. package/build/nextpage/block.json +1 -0
  66. package/build/paragraph/index.cjs +3 -1
  67. package/build/paragraph/index.cjs.map +2 -2
  68. package/build/paragraph/transforms.cjs +14 -3
  69. package/build/paragraph/transforms.cjs.map +3 -3
  70. package/build/preformatted/index.cjs +3 -1
  71. package/build/preformatted/index.cjs.map +2 -2
  72. package/build/pullquote/index.cjs +7 -3
  73. package/build/pullquote/index.cjs.map +2 -2
  74. package/build/search/index.cjs +10 -5
  75. package/build/search/index.cjs.map +2 -2
  76. package/build/social-link/index.cjs +13 -7
  77. package/build/social-link/index.cjs.map +2 -2
  78. package/build/table-of-contents/hooks.cjs +1 -1
  79. package/build/table-of-contents/hooks.cjs.map +1 -1
  80. package/build/template-part/edit/utils/get-template-part-icon.cjs.map +1 -1
  81. package/build/utils/is-within-overlay.cjs +52 -0
  82. package/build/utils/is-within-overlay.cjs.map +7 -0
  83. package/build/verse/index.cjs +3 -1
  84. package/build/verse/index.cjs.map +2 -2
  85. package/build/video/index.cjs +20 -10
  86. package/build/video/index.cjs.map +2 -2
  87. package/build-module/audio/index.mjs +16 -8
  88. package/build-module/audio/index.mjs.map +2 -2
  89. package/build-module/block-keyboard-shortcuts/index.mjs +2 -4
  90. package/build-module/block-keyboard-shortcuts/index.mjs.map +2 -2
  91. package/build-module/button/index.mjs +17 -8
  92. package/build-module/button/index.mjs.map +2 -2
  93. package/build-module/code/index.mjs +3 -1
  94. package/build-module/code/index.mjs.map +2 -2
  95. package/build-module/comments-title/edit.mjs +10 -6
  96. package/build-module/comments-title/edit.mjs.map +2 -2
  97. package/build-module/cover/index.mjs +20 -10
  98. package/build-module/cover/index.mjs.map +2 -2
  99. package/build-module/details/index.mjs +3 -1
  100. package/build-module/details/index.mjs.map +2 -2
  101. package/build-module/file/index.mjs +19 -9
  102. package/build-module/file/index.mjs.map +2 -2
  103. package/build-module/heading/block.json +1 -3
  104. package/build-module/heading/deprecated.mjs +101 -5
  105. package/build-module/heading/deprecated.mjs.map +2 -2
  106. package/build-module/heading/edit.mjs +22 -46
  107. package/build-module/heading/edit.mjs.map +2 -2
  108. package/build-module/heading/index.mjs +3 -1
  109. package/build-module/heading/index.mjs.map +2 -2
  110. package/build-module/heading/save.mjs +2 -6
  111. package/build-module/heading/save.mjs.map +2 -2
  112. package/build-module/heading/transforms.mjs +16 -3
  113. package/build-module/heading/transforms.mjs.map +2 -2
  114. package/build-module/image/image.mjs +3 -3
  115. package/build-module/image/image.mjs.map +2 -2
  116. package/build-module/image/index.mjs +33 -17
  117. package/build-module/image/index.mjs.map +2 -2
  118. package/build-module/list-item/index.mjs +3 -1
  119. package/build-module/list-item/index.mjs.map +2 -2
  120. package/build-module/media-text/index.mjs +30 -15
  121. package/build-module/media-text/index.mjs.map +2 -2
  122. package/build-module/more/block.json +1 -0
  123. package/build-module/more/index.mjs +3 -1
  124. package/build-module/more/index.mjs.map +2 -2
  125. package/build-module/navigation/edit/index.mjs +7 -6
  126. package/build-module/navigation/edit/index.mjs.map +2 -2
  127. package/build-module/navigation/edit/responsive-wrapper.mjs +7 -4
  128. package/build-module/navigation/edit/responsive-wrapper.mjs.map +2 -2
  129. package/build-module/navigation/edit/use-create-overlay.mjs +2 -0
  130. package/build-module/navigation/edit/use-create-overlay.mjs.map +2 -2
  131. package/build-module/navigation-link/edit.mjs +12 -60
  132. package/build-module/navigation-link/edit.mjs.map +2 -2
  133. package/build-module/navigation-link/index.mjs +13 -8
  134. package/build-module/navigation-link/index.mjs.map +2 -2
  135. package/build-module/navigation-link/shared/index.mjs +7 -1
  136. package/build-module/navigation-link/shared/index.mjs.map +2 -2
  137. package/build-module/navigation-link/shared/invalid-draft-display.mjs +47 -0
  138. package/build-module/navigation-link/shared/invalid-draft-display.mjs.map +7 -0
  139. package/build-module/navigation-link/shared/use-enable-link-status-validation.mjs +25 -0
  140. package/build-module/navigation-link/shared/use-enable-link-status-validation.mjs.map +7 -0
  141. package/build-module/navigation-link/shared/use-is-invalid-link.mjs +39 -0
  142. package/build-module/navigation-link/shared/use-is-invalid-link.mjs.map +7 -0
  143. package/build-module/navigation-overlay-close/block.json +1 -4
  144. package/build-module/navigation-overlay-close/index.mjs +3 -25
  145. package/build-module/navigation-overlay-close/index.mjs.map +2 -2
  146. package/build-module/navigation-submenu/edit.mjs +40 -19
  147. package/build-module/navigation-submenu/edit.mjs.map +2 -2
  148. package/build-module/navigation-submenu/index.mjs +15 -8
  149. package/build-module/navigation-submenu/index.mjs.map +2 -2
  150. package/build-module/nextpage/block.json +1 -0
  151. package/build-module/paragraph/index.mjs +3 -1
  152. package/build-module/paragraph/index.mjs.map +2 -2
  153. package/build-module/paragraph/transforms.mjs +2 -1
  154. package/build-module/paragraph/transforms.mjs.map +2 -2
  155. package/build-module/preformatted/index.mjs +3 -1
  156. package/build-module/preformatted/index.mjs.map +2 -2
  157. package/build-module/pullquote/index.mjs +7 -3
  158. package/build-module/pullquote/index.mjs.map +2 -2
  159. package/build-module/search/index.mjs +10 -5
  160. package/build-module/search/index.mjs.map +2 -2
  161. package/build-module/social-link/index.mjs +13 -7
  162. package/build-module/social-link/index.mjs.map +2 -2
  163. package/build-module/table-of-contents/hooks.mjs +1 -1
  164. package/build-module/table-of-contents/hooks.mjs.map +1 -1
  165. package/build-module/template-part/edit/utils/get-template-part-icon.mjs.map +1 -1
  166. package/build-module/utils/is-within-overlay.mjs +27 -0
  167. package/build-module/utils/is-within-overlay.mjs.map +7 -0
  168. package/build-module/verse/index.mjs +3 -1
  169. package/build-module/verse/index.mjs.map +2 -2
  170. package/build-module/video/index.mjs +20 -10
  171. package/build-module/video/index.mjs.map +2 -2
  172. package/build-style/navigation/style-rtl.css +1 -16
  173. package/build-style/navigation/style.css +1 -16
  174. package/build-style/style-rtl.css +1 -16
  175. package/build-style/style.css +1 -16
  176. package/package.json +37 -38
  177. package/src/audio/index.js +13 -7
  178. package/src/block-keyboard-shortcuts/index.js +4 -7
  179. package/src/breadcrumbs/index.php +6 -3
  180. package/src/button/index.js +15 -8
  181. package/src/code/index.js +2 -1
  182. package/src/comments-title/edit.js +10 -7
  183. package/src/comments-title/index.php +7 -8
  184. package/src/cover/index.js +17 -8
  185. package/src/details/index.js +2 -1
  186. package/src/file/index.js +15 -8
  187. package/src/heading/block.json +1 -3
  188. package/src/heading/deprecated.js +118 -5
  189. package/src/heading/edit.js +6 -32
  190. package/src/heading/edit.native.js +17 -2
  191. package/src/heading/index.js +2 -1
  192. package/src/heading/save.js +2 -11
  193. package/src/heading/transforms.js +16 -3
  194. package/src/image/image.js +38 -40
  195. package/src/image/index.js +29 -16
  196. package/src/list-item/index.js +2 -1
  197. package/src/media-text/index.js +27 -14
  198. package/src/more/block.json +1 -0
  199. package/src/more/index.js +2 -1
  200. package/src/navigation/edit/index.js +9 -4
  201. package/src/navigation/edit/responsive-wrapper.js +15 -8
  202. package/src/navigation/edit/test/use-create-overlay.js +12 -0
  203. package/src/navigation/edit/use-create-overlay.js +2 -0
  204. package/src/navigation/index.php +74 -24
  205. package/src/navigation/style.scss +2 -18
  206. package/src/navigation-link/edit.js +11 -97
  207. package/src/navigation-link/index.js +13 -8
  208. package/src/navigation-link/index.php +17 -29
  209. package/src/navigation-link/shared/helpers.php +46 -0
  210. package/src/navigation-link/shared/index.js +3 -0
  211. package/src/navigation-link/shared/invalid-draft-display.js +63 -0
  212. package/src/navigation-link/shared/test/use-enable-link-status-validation.test.js +127 -0
  213. package/src/navigation-link/shared/use-enable-link-status-validation.js +40 -0
  214. package/src/navigation-link/shared/use-is-invalid-link.js +72 -0
  215. package/src/navigation-overlay-close/block.json +1 -4
  216. package/src/navigation-overlay-close/index.js +2 -37
  217. package/src/navigation-overlay-close/index.php +37 -1
  218. package/src/navigation-submenu/edit.js +49 -24
  219. package/src/navigation-submenu/index.js +13 -8
  220. package/src/navigation-submenu/index.php +25 -18
  221. package/src/nextpage/block.json +1 -0
  222. package/src/paragraph/index.js +2 -1
  223. package/src/paragraph/transforms.js +3 -1
  224. package/src/preformatted/index.js +2 -1
  225. package/src/pullquote/index.js +5 -3
  226. package/src/query-title/index.php +2 -2
  227. package/src/search/index.js +7 -5
  228. package/src/social-link/index.js +12 -7
  229. package/src/table-of-contents/hooks.js +1 -1
  230. package/src/template-part/edit/utils/get-template-part-icon.js +1 -1
  231. package/src/utils/is-within-overlay.js +54 -0
  232. package/src/verse/index.js +2 -1
  233. package/src/video/index.js +17 -9
  234. package/build/navigation-overlay-close/save.cjs +0 -67
  235. package/build/navigation-overlay-close/save.cjs.map +0 -7
  236. package/build-module/navigation-overlay-close/save.mjs +0 -46
  237. package/build-module/navigation-overlay-close/save.mjs.map +0 -7
  238. package/src/navigation-overlay-close/save.js +0 -44
@@ -31,25 +31,35 @@ if (window.__experimentalContentOnlyInspectorFields) {
31
31
  id: "video",
32
32
  label: __("Video"),
33
33
  type: "media",
34
- mapping: {
35
- id: "id",
36
- url: "src",
37
- caption: "caption",
38
- poster: "poster"
39
- },
40
- args: {
34
+ Edit: {
35
+ control: "media",
36
+ // TODO: replace with custom component
41
37
  allowedTypes: ["video"],
42
38
  multiple: false
43
- }
39
+ },
40
+ getValue: ({ item }) => ({
41
+ id: item.id,
42
+ url: item.src,
43
+ caption: item.caption,
44
+ poster: item.poster
45
+ }),
46
+ setValue: ({ value }) => ({
47
+ id: value.id,
48
+ src: value.url,
49
+ caption: value.caption,
50
+ poster: value.poster
51
+ })
44
52
  },
45
53
  {
46
54
  id: "caption",
47
55
  label: __("Caption"),
48
- type: "richtext"
56
+ type: "text",
57
+ Edit: "rich-text"
58
+ // TODO: replace with custom component
49
59
  }
50
60
  ];
51
61
  settings[formKey] = {
52
- fields: ["video"]
62
+ fields: ["video", "caption"]
53
63
  };
54
64
  }
55
65
  var init = () => initBlock({ name, metadata, settings });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/video/index.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { video as icon } from '@wordpress/icons';\nimport { privateApis as blocksPrivateApis } from '@wordpress/blocks';\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';\nimport { unlock } from '../lock-unlock';\n\nconst { fieldsKey, formKey } = unlock( blocksPrivateApis );\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\nif ( window.__experimentalContentOnlyInspectorFields ) {\n\tsettings[ fieldsKey ] = [\n\t\t{\n\t\t\tid: 'video',\n\t\t\tlabel: __( 'Video' ),\n\t\t\ttype: 'media',\n\t\t\tmapping: {\n\t\t\t\tid: 'id',\n\t\t\t\turl: 'src',\n\t\t\t\tcaption: 'caption',\n\t\t\t\tposter: 'poster',\n\t\t\t},\n\t\t\targs: {\n\t\t\t\tallowedTypes: [ 'video' ],\n\t\t\t\tmultiple: false,\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tid: 'caption',\n\t\t\tlabel: __( 'Caption' ),\n\t\t\ttype: 'richtext',\n\t\t},\n\t];\n\tsettings[ formKey ] = {\n\t\tfields: [ 'video' ],\n\t};\n}\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],
5
- "mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,SAAS,YAAY;AAC9B,SAAS,eAAe,yBAAyB;AAKjD,OAAO,eAAe;AACtB,OAAO,gBAAgB;AACvB,OAAO,UAAU;AACjB,OAAO,cAAc;AACrB,OAAO,UAAU;AACjB,OAAO,gBAAgB;AACvB,SAAS,cAAc;AAEvB,IAAM,EAAE,WAAW,QAAQ,IAAI,OAAQ,iBAAkB;AAEzD,IAAM,EAAE,KAAK,IAAI;AAIV,IAAM,WAAW;AAAA,EACvB;AAAA,EACA,SAAS;AAAA,IACR,YAAY;AAAA,MACX,KAAK;AAAA;AAAA,MAEL,SAAS,GAAI,2CAA4C;AAAA,IAC1D;AAAA,EACD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEA,IAAK,OAAO,0CAA2C;AACtD,WAAU,SAAU,IAAI;AAAA,IACvB;AAAA,MACC,IAAI;AAAA,MACJ,OAAO,GAAI,OAAQ;AAAA,MACnB,MAAM;AAAA,MACN,SAAS;AAAA,QACR,IAAI;AAAA,QACJ,KAAK;AAAA,QACL,SAAS;AAAA,QACT,QAAQ;AAAA,MACT;AAAA,MACA,MAAM;AAAA,QACL,cAAc,CAAE,OAAQ;AAAA,QACxB,UAAU;AAAA,MACX;AAAA,IACD;AAAA,IACA;AAAA,MACC,IAAI;AAAA,MACJ,OAAO,GAAI,SAAU;AAAA,MACrB,MAAM;AAAA,IACP;AAAA,EACD;AACA,WAAU,OAAQ,IAAI;AAAA,IACrB,QAAQ,CAAE,OAAQ;AAAA,EACnB;AACD;AAEO,IAAM,OAAO,MAAM,UAAW,EAAE,MAAM,UAAU,SAAS,CAAE;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { video as icon } from '@wordpress/icons';\nimport { privateApis as blocksPrivateApis } from '@wordpress/blocks';\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';\nimport { unlock } from '../lock-unlock';\n\nconst { fieldsKey, formKey } = unlock( blocksPrivateApis );\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\nif ( window.__experimentalContentOnlyInspectorFields ) {\n\tsettings[ fieldsKey ] = [\n\t\t{\n\t\t\tid: 'video',\n\t\t\tlabel: __( 'Video' ),\n\t\t\ttype: 'media',\n\t\t\tEdit: {\n\t\t\t\tcontrol: 'media', // TODO: replace with custom component\n\t\t\t\tallowedTypes: [ 'video' ],\n\t\t\t\tmultiple: false,\n\t\t\t},\n\t\t\tgetValue: ( { item } ) => ( {\n\t\t\t\tid: item.id,\n\t\t\t\turl: item.src,\n\t\t\t\tcaption: item.caption,\n\t\t\t\tposter: item.poster,\n\t\t\t} ),\n\t\t\tsetValue: ( { value } ) => ( {\n\t\t\t\tid: value.id,\n\t\t\t\tsrc: value.url,\n\t\t\t\tcaption: value.caption,\n\t\t\t\tposter: value.poster,\n\t\t\t} ),\n\t\t},\n\t\t{\n\t\t\tid: 'caption',\n\t\t\tlabel: __( 'Caption' ),\n\t\t\ttype: 'text',\n\t\t\tEdit: 'rich-text', // TODO: replace with custom component\n\t\t},\n\t];\n\tsettings[ formKey ] = {\n\t\tfields: [ 'video', 'caption' ],\n\t};\n}\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],
5
+ "mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,SAAS,YAAY;AAC9B,SAAS,eAAe,yBAAyB;AAKjD,OAAO,eAAe;AACtB,OAAO,gBAAgB;AACvB,OAAO,UAAU;AACjB,OAAO,cAAc;AACrB,OAAO,UAAU;AACjB,OAAO,gBAAgB;AACvB,SAAS,cAAc;AAEvB,IAAM,EAAE,WAAW,QAAQ,IAAI,OAAQ,iBAAkB;AAEzD,IAAM,EAAE,KAAK,IAAI;AAIV,IAAM,WAAW;AAAA,EACvB;AAAA,EACA,SAAS;AAAA,IACR,YAAY;AAAA,MACX,KAAK;AAAA;AAAA,MAEL,SAAS,GAAI,2CAA4C;AAAA,IAC1D;AAAA,EACD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEA,IAAK,OAAO,0CAA2C;AACtD,WAAU,SAAU,IAAI;AAAA,IACvB;AAAA,MACC,IAAI;AAAA,MACJ,OAAO,GAAI,OAAQ;AAAA,MACnB,MAAM;AAAA,MACN,MAAM;AAAA,QACL,SAAS;AAAA;AAAA,QACT,cAAc,CAAE,OAAQ;AAAA,QACxB,UAAU;AAAA,MACX;AAAA,MACA,UAAU,CAAE,EAAE,KAAK,OAAS;AAAA,QAC3B,IAAI,KAAK;AAAA,QACT,KAAK,KAAK;AAAA,QACV,SAAS,KAAK;AAAA,QACd,QAAQ,KAAK;AAAA,MACd;AAAA,MACA,UAAU,CAAE,EAAE,MAAM,OAAS;AAAA,QAC5B,IAAI,MAAM;AAAA,QACV,KAAK,MAAM;AAAA,QACX,SAAS,MAAM;AAAA,QACf,QAAQ,MAAM;AAAA,MACf;AAAA,IACD;AAAA,IACA;AAAA,MACC,IAAI;AAAA,MACJ,OAAO,GAAI,SAAU;AAAA,MACrB,MAAM;AAAA,MACN,MAAM;AAAA;AAAA,IACP;AAAA,EACD;AACA,WAAU,OAAQ,IAAI;AAAA,IACrB,QAAQ,CAAE,SAAS,SAAU;AAAA,EAC9B;AACD;AAEO,IAAM,OAAO,MAAM,UAAW,EAAE,MAAM,UAAU,SAAS,CAAE;",
6
6
  "names": []
7
7
  }
@@ -244,22 +244,7 @@
244
244
  transform: rotate(90deg);
245
245
  }
246
246
  }
247
- .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container {
248
- visibility: visible;
249
- overflow: visible;
250
- opacity: 1;
251
- width: auto;
252
- height: auto;
253
- min-width: 200px;
254
- }
255
- .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container {
256
- visibility: visible;
257
- overflow: visible;
258
- opacity: 1;
259
- width: auto;
260
- height: auto;
261
- min-width: 200px;
262
- }
247
+ .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container,
263
248
  .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container {
264
249
  visibility: visible;
265
250
  overflow: visible;
@@ -244,22 +244,7 @@
244
244
  transform: rotate(-90deg);
245
245
  }
246
246
  }
247
- .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container {
248
- visibility: visible;
249
- overflow: visible;
250
- opacity: 1;
251
- width: auto;
252
- height: auto;
253
- min-width: 200px;
254
- }
255
- .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container {
256
- visibility: visible;
257
- overflow: visible;
258
- opacity: 1;
259
- width: auto;
260
- height: auto;
261
- min-width: 200px;
262
- }
247
+ .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container,
263
248
  .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container {
264
249
  visibility: visible;
265
250
  overflow: visible;
@@ -2522,22 +2522,7 @@ ul {
2522
2522
  transform: rotate(90deg);
2523
2523
  }
2524
2524
  }
2525
- .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container {
2526
- visibility: visible;
2527
- overflow: visible;
2528
- opacity: 1;
2529
- width: auto;
2530
- height: auto;
2531
- min-width: 200px;
2532
- }
2533
- .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container {
2534
- visibility: visible;
2535
- overflow: visible;
2536
- opacity: 1;
2537
- width: auto;
2538
- height: auto;
2539
- min-width: 200px;
2540
- }
2525
+ .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container,
2541
2526
  .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container {
2542
2527
  visibility: visible;
2543
2528
  overflow: visible;
@@ -2552,22 +2552,7 @@ ul {
2552
2552
  transform: rotate(-90deg);
2553
2553
  }
2554
2554
  }
2555
- .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container {
2556
- visibility: visible;
2557
- overflow: visible;
2558
- opacity: 1;
2559
- width: auto;
2560
- height: auto;
2561
- min-width: 200px;
2562
- }
2563
- .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container {
2564
- visibility: visible;
2565
- overflow: visible;
2566
- opacity: 1;
2567
- width: auto;
2568
- height: auto;
2569
- min-width: 200px;
2570
- }
2555
+ .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container,
2571
2556
  .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container {
2572
2557
  visibility: visible;
2573
2558
  overflow: visible;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "9.37.2-next.ba3aee3a2.0",
3
+ "version": "9.38.0",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -93,45 +93,44 @@
93
93
  "build-module/*/init.mjs"
94
94
  ],
95
95
  "dependencies": {
96
- "@wordpress/a11y": "^4.37.1-next.ba3aee3a2.0",
97
- "@wordpress/api-fetch": "^7.37.1-next.ba3aee3a2.0",
98
- "@wordpress/autop": "^4.37.1-next.ba3aee3a2.0",
99
- "@wordpress/base-styles": "^6.13.2-next.ba3aee3a2.0",
100
- "@wordpress/blob": "^4.37.1-next.ba3aee3a2.0",
101
- "@wordpress/block-editor": "^15.10.1-next.ba3aee3a2.0",
102
- "@wordpress/blocks": "^15.10.1-next.ba3aee3a2.0",
103
- "@wordpress/components": "^32.0.1-next.ba3aee3a2.0",
104
- "@wordpress/compose": "^7.37.1-next.ba3aee3a2.0",
105
- "@wordpress/core-data": "^7.37.1-next.ba3aee3a2.0",
106
- "@wordpress/data": "^10.37.1-next.ba3aee3a2.0",
107
- "@wordpress/date": "^5.37.2-next.ba3aee3a2.0",
108
- "@wordpress/deprecated": "^4.37.1-next.ba3aee3a2.0",
109
- "@wordpress/dom": "^4.37.1-next.ba3aee3a2.0",
110
- "@wordpress/element": "^6.37.1-next.ba3aee3a2.0",
111
- "@wordpress/escape-html": "^3.37.1-next.ba3aee3a2.0",
112
- "@wordpress/hooks": "^4.37.1-next.ba3aee3a2.0",
113
- "@wordpress/html-entities": "^4.37.1-next.ba3aee3a2.0",
114
- "@wordpress/i18n": "^6.10.1-next.ba3aee3a2.0",
115
- "@wordpress/icons": "^11.4.1-next.ba3aee3a2.0",
116
- "@wordpress/interactivity": "^6.37.2-next.ba3aee3a2.0",
117
- "@wordpress/interactivity-router": "^2.37.1-next.ba3aee3a2.0",
118
- "@wordpress/keyboard-shortcuts": "^5.37.1-next.ba3aee3a2.0",
119
- "@wordpress/keycodes": "^4.38.1-next.ba3aee3a2.0",
120
- "@wordpress/latex-to-mathml": "^1.5.1-next.ba3aee3a2.0",
121
- "@wordpress/notices": "^5.37.1-next.ba3aee3a2.0",
122
- "@wordpress/patterns": "^2.37.1-next.ba3aee3a2.0",
123
- "@wordpress/primitives": "^4.37.1-next.ba3aee3a2.0",
124
- "@wordpress/private-apis": "^1.37.1-next.ba3aee3a2.0",
125
- "@wordpress/reusable-blocks": "^5.37.1-next.ba3aee3a2.0",
126
- "@wordpress/rich-text": "^7.37.1-next.ba3aee3a2.0",
127
- "@wordpress/server-side-render": "^6.13.1-next.ba3aee3a2.0",
128
- "@wordpress/url": "^4.37.1-next.ba3aee3a2.0",
129
- "@wordpress/viewport": "^6.37.1-next.ba3aee3a2.0",
130
- "@wordpress/wordcount": "^4.37.1-next.ba3aee3a2.0",
96
+ "@wordpress/a11y": "^4.38.0",
97
+ "@wordpress/api-fetch": "^7.38.0",
98
+ "@wordpress/autop": "^4.38.0",
99
+ "@wordpress/base-styles": "^6.14.0",
100
+ "@wordpress/blob": "^4.38.0",
101
+ "@wordpress/block-editor": "^15.11.0",
102
+ "@wordpress/blocks": "^15.11.0",
103
+ "@wordpress/components": "^32.0.0",
104
+ "@wordpress/compose": "^7.38.0",
105
+ "@wordpress/core-data": "^7.38.0",
106
+ "@wordpress/data": "^10.38.0",
107
+ "@wordpress/date": "^5.38.0",
108
+ "@wordpress/deprecated": "^4.38.0",
109
+ "@wordpress/dom": "^4.38.0",
110
+ "@wordpress/element": "^6.38.0",
111
+ "@wordpress/escape-html": "^3.38.0",
112
+ "@wordpress/hooks": "^4.38.0",
113
+ "@wordpress/html-entities": "^4.38.0",
114
+ "@wordpress/i18n": "^6.11.0",
115
+ "@wordpress/icons": "^11.5.0",
116
+ "@wordpress/interactivity": "^6.38.0",
117
+ "@wordpress/interactivity-router": "^2.38.0",
118
+ "@wordpress/keyboard-shortcuts": "^5.38.0",
119
+ "@wordpress/keycodes": "^4.38.0",
120
+ "@wordpress/latex-to-mathml": "^1.6.0",
121
+ "@wordpress/notices": "^5.38.0",
122
+ "@wordpress/patterns": "^2.38.0",
123
+ "@wordpress/primitives": "^4.38.0",
124
+ "@wordpress/private-apis": "^1.38.0",
125
+ "@wordpress/reusable-blocks": "^5.38.0",
126
+ "@wordpress/rich-text": "^7.38.0",
127
+ "@wordpress/server-side-render": "^6.14.0",
128
+ "@wordpress/url": "^4.38.0",
129
+ "@wordpress/viewport": "^6.38.0",
130
+ "@wordpress/wordcount": "^4.38.0",
131
131
  "change-case": "^4.1.2",
132
132
  "clsx": "^2.1.1",
133
133
  "colord": "^2.7.0",
134
- "escape-html": "^1.0.3",
135
134
  "fast-average-color": "^9.1.1",
136
135
  "fast-deep-equal": "^3.1.3",
137
136
  "html-react-parser": "5.2.11",
@@ -149,5 +148,5 @@
149
148
  "publishConfig": {
150
149
  "access": "public"
151
150
  },
152
- "gitHead": "67d2e486fcd40c753591cf911ca0659132f519ca"
151
+ "gitHead": "50c4c0f51e4797c217946ce42adfaa5eb026f33f"
153
152
  }
@@ -42,23 +42,29 @@ if ( window.__experimentalContentOnlyInspectorFields ) {
42
42
  id: 'audio',
43
43
  label: __( 'Audio' ),
44
44
  type: 'media',
45
- mapping: {
46
- id: 'id',
47
- url: 'src',
48
- },
49
- args: {
45
+ Edit: {
46
+ control: 'media', // TODO: replace with custom component
50
47
  allowedTypes: [ 'audio' ],
51
48
  multiple: false,
52
49
  },
50
+ getValue: ( { item } ) => ( {
51
+ id: item.id,
52
+ url: item.src,
53
+ } ),
54
+ setValue: ( { value } ) => ( {
55
+ id: value.id,
56
+ src: value.url,
57
+ } ),
53
58
  },
54
59
  {
55
60
  id: 'caption',
56
61
  label: __( 'Caption' ),
57
- type: 'richtext',
62
+ type: 'text',
63
+ Edit: 'rich-text', // TODO: replace with custom component
58
64
  },
59
65
  ];
60
66
  settings[ formKey ] = {
61
- fields: [ 'audio' ],
67
+ fields: [ 'audio', 'caption' ],
62
68
  };
63
69
  }
64
70
 
@@ -54,15 +54,12 @@ function BlockKeyboardShortcuts() {
54
54
  const sourceTextAlign =
55
55
  attributes.textAlign || attributes.style?.typography?.textAlign;
56
56
 
57
- // When destination is heading, preserve heading format (textAlign attribute + level)
58
- // When destination is paragraph, use block support format (style.typography.textAlign)
57
+ // When destination is heading, set the level
59
58
  if ( destinationBlockName === 'core/heading' ) {
60
59
  newAttributes.level = level;
61
- if ( sourceTextAlign ) {
62
- newAttributes.textAlign = sourceTextAlign;
63
- }
64
- } else if ( sourceTextAlign ) {
65
- // Destination is paragraph
60
+ }
61
+
62
+ if ( sourceTextAlign ) {
66
63
  newAttributes.style = {
67
64
  typography: {
68
65
  textAlign: sourceTextAlign,
@@ -514,9 +514,11 @@ function block_core_breadcrumbs_get_terms_breadcrumbs( $post_id, $post_type ) {
514
514
  }
515
515
 
516
516
  /**
517
- * Filters breadcrumb settings on a per-post-type basis.
517
+ * Filters breadcrumb settings (taxonomy and term selection) for a post or post type.
518
518
  *
519
- * Allow developers to customize breadcrumb behavior for specific post types.
519
+ * Allows developers to specify which taxonomy and term should be used in the
520
+ * breadcrumb trail when a post type has multiple taxonomies or when a post is
521
+ * assigned to multiple terms within a taxonomy.
520
522
  *
521
523
  * @since 7.0.0
522
524
  *
@@ -533,8 +535,9 @@ function block_core_breadcrumbs_get_terms_breadcrumbs( $post_id, $post_type ) {
533
535
  * post has only one term, that term is used regardless.
534
536
  * }
535
537
  * @param string $post_type The post type slug.
538
+ * @param int $post_id The post ID.
536
539
  */
537
- $settings = apply_filters( 'block_core_breadcrumbs_post_type_settings', array(), $post_type );
540
+ $settings = apply_filters( 'block_core_breadcrumbs_post_type_settings', array(), $post_type, $post_id );
538
541
 
539
542
  $taxonomy_name = null;
540
543
  $terms = array();
@@ -55,21 +55,28 @@ if ( window.__experimentalContentOnlyInspectorFields ) {
55
55
  {
56
56
  id: 'text',
57
57
  label: __( 'Content' ),
58
- type: 'richtext',
58
+ type: 'text',
59
+ Edit: 'rich-text', // TODO: replace with custom component
59
60
  },
60
61
  {
61
62
  id: 'link',
62
63
  label: __( 'Link' ),
63
- type: 'link',
64
- mapping: {
65
- url: 'url',
66
- rel: 'rel',
67
- linkTarget: 'linkTarget',
68
- },
64
+ type: 'url',
65
+ Edit: 'link', // TODO: replace with custom component
66
+ getValue: ( { item } ) => ( {
67
+ url: item.url,
68
+ rel: item.rel,
69
+ linkTarget: item.linkTarget,
70
+ } ),
71
+ setValue: ( { value } ) => ( {
72
+ url: value.url,
73
+ rel: value.rel,
74
+ linkTarget: value.linkTarget,
75
+ } ),
69
76
  },
70
77
  ];
71
78
  settings[ formKey ] = {
72
- fields: [ 'text' ],
79
+ fields: [ 'text', 'link' ],
73
80
  };
74
81
  }
75
82
 
package/src/code/index.js CHANGED
@@ -48,7 +48,8 @@ if ( window.__experimentalContentOnlyInspectorFields ) {
48
48
  {
49
49
  id: 'content',
50
50
  label: __( 'Code' ),
51
- type: 'richtext',
51
+ type: 'text',
52
+ Edit: 'rich-text', // TODO: replace with custom component
52
53
  },
53
54
  ];
54
55
  settings[ formKey ] = {
@@ -168,20 +168,23 @@ export default function Edit( {
168
168
  </InspectorControls>
169
169
  );
170
170
 
171
- const postTitle = isSiteEditor ? __( 'Post Title' ) : `"${ rawTitle }"`;
171
+ const postTitle = isSiteEditor ? __( 'Post Title' ) : rawTitle;
172
172
 
173
173
  let placeholder;
174
174
  if ( showCommentsCount && commentsCount !== undefined ) {
175
175
  if ( showPostTitle ) {
176
176
  if ( commentsCount === 1 ) {
177
- /* translators: %s: Post title. */
178
- placeholder = sprintf( __( 'One response to %s' ), postTitle );
177
+ placeholder = sprintf(
178
+ /* translators: %s: Post title. */
179
+ __( 'One response to "%s"' ),
180
+ postTitle
181
+ );
179
182
  } else {
180
183
  placeholder = sprintf(
181
184
  /* translators: 1: Number of comments, 2: Post title. */
182
185
  _n(
183
- '%1$s response to %2$s',
184
- '%1$s responses to %2$s',
186
+ '%1$s response to "%2$s"',
187
+ '%1$s responses to "%2$s"',
185
188
  commentsCount
186
189
  ),
187
190
  commentsCount,
@@ -200,10 +203,10 @@ export default function Edit( {
200
203
  } else if ( showPostTitle ) {
201
204
  if ( commentsCount === 1 ) {
202
205
  /* translators: %s: Post title. */
203
- placeholder = sprintf( __( 'Response to %s' ), postTitle );
206
+ placeholder = sprintf( __( 'Response to "%s"' ), postTitle );
204
207
  } else {
205
208
  /* translators: %s: Post title. */
206
- placeholder = sprintf( __( 'Responses to %s' ), postTitle );
209
+ placeholder = sprintf( __( 'Responses to "%s"' ), postTitle );
207
210
  }
208
211
  } else if ( commentsCount === 1 ) {
209
212
  placeholder = __( 'Response' );
@@ -25,9 +25,8 @@ function render_block_core_comments_title( $attributes ) {
25
25
  $show_comments_count = ! empty( $attributes['showCommentsCount'] ) && $attributes['showCommentsCount'];
26
26
  $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );
27
27
  $comments_count = get_comments_number();
28
- /* translators: %s: Post title. */
29
- $post_title = sprintf( __( '&#8220;%s&#8221;' ), get_the_title() );
30
- $tag_name = 'h2';
28
+ $post_title = get_the_title();
29
+ $tag_name = 'h2';
31
30
  if ( isset( $attributes['level'] ) ) {
32
31
  $tag_name = 'h' . $attributes['level'];
33
32
  }
@@ -40,13 +39,13 @@ function render_block_core_comments_title( $attributes ) {
40
39
  if ( $show_post_title ) {
41
40
  if ( '1' === $comments_count ) {
42
41
  /* translators: %s: Post title. */
43
- $comments_title = sprintf( __( 'One response to %s' ), $post_title );
42
+ $comments_title = sprintf( __( 'One response to &#8220;%s&#8221;' ), $post_title );
44
43
  } else {
45
44
  $comments_title = sprintf(
46
45
  /* translators: 1: Number of comments, 2: Post title. */
47
46
  _n(
48
- '%1$s response to %2$s',
49
- '%1$s responses to %2$s',
47
+ '%1$s response to &#8220;%2$s&#8221;',
48
+ '%1$s responses to &#8220;%2$s&#8221;',
50
49
  $comments_count
51
50
  ),
52
51
  number_format_i18n( $comments_count ),
@@ -65,10 +64,10 @@ function render_block_core_comments_title( $attributes ) {
65
64
  } elseif ( $show_post_title ) {
66
65
  if ( '1' === $comments_count ) {
67
66
  /* translators: %s: Post title. */
68
- $comments_title = sprintf( __( 'Response to %s' ), $post_title );
67
+ $comments_title = sprintf( __( 'Response to &#8220;%s&#8221;' ), $post_title );
69
68
  } else {
70
69
  /* translators: %s: Post title. */
71
- $comments_title = sprintf( __( 'Responses to %s' ), $post_title );
70
+ $comments_title = sprintf( __( 'Responses to &#8220;%s&#8221;' ), $post_title );
72
71
  }
73
72
  } elseif ( '1' === $comments_count ) {
74
73
  $comments_title = __( 'Response' );
@@ -66,19 +66,28 @@ if ( window.__experimentalContentOnlyInspectorFields ) {
66
66
  id: 'background',
67
67
  label: __( 'Background' ),
68
68
  type: 'media',
69
- mapping: {
70
- type: 'backgroundType',
71
- id: 'id',
72
- url: 'url',
73
- alt: 'alt',
74
- featuredImage: 'useFeaturedImage',
75
- },
76
- args: {
69
+ Edit: {
70
+ control: 'media', // TODO: replace with custom component
77
71
  // TODO - How to support custom gradient?
78
72
  // Build it into Media, or use a custom control?
79
73
  allowedTypes: [ 'image', 'video' ],
80
74
  multiple: false,
75
+ useFeaturedImage: true,
81
76
  },
77
+ getValue: ( { item } ) => ( {
78
+ id: item.id,
79
+ url: item.url,
80
+ alt: item.alt,
81
+ mediaType: item.backgroundType,
82
+ featuredImage: item.useFeaturedImage,
83
+ } ),
84
+ setValue: ( { value } ) => ( {
85
+ id: value.id,
86
+ url: value.url,
87
+ alt: value.alt,
88
+ mediaType: value.backgroundType,
89
+ useFeaturedImage: value.featuredImage,
90
+ } ),
82
91
  },
83
92
  ];
84
93
  settings[ formKey ] = {
@@ -70,7 +70,8 @@ if ( window.__experimentalContentOnlyInspectorFields ) {
70
70
  {
71
71
  id: 'summary',
72
72
  label: __( 'Summary' ),
73
- type: 'richtext',
73
+ type: 'text',
74
+ Edit: 'rich-text', // TODO: replace with custom component
74
75
  },
75
76
  ];
76
77
  settings[ formKey ] = {
package/src/file/index.js CHANGED
@@ -42,28 +42,35 @@ if ( window.__experimentalContentOnlyInspectorFields ) {
42
42
  id: 'file',
43
43
  label: __( 'File' ),
44
44
  type: 'media',
45
- mapping: {
46
- id: 'id',
47
- url: 'href',
48
- },
49
- args: {
45
+ Edit: {
46
+ control: 'media', // TODO: replace with custom component
50
47
  allowedTypes: [],
51
48
  multiple: false,
52
49
  },
50
+ getValue: ( { item } ) => ( {
51
+ id: item.id,
52
+ url: item.href,
53
+ } ),
54
+ setValue: ( { value } ) => ( {
55
+ id: value.id,
56
+ href: value.url,
57
+ } ),
53
58
  },
54
59
  {
55
60
  id: 'fileName',
56
61
  label: __( 'Filename' ),
57
- type: 'richtext',
62
+ type: 'text',
63
+ Edit: 'rich-text', // TODO: replace with custom component
58
64
  },
59
65
  {
60
66
  id: 'downloadButtonText',
61
67
  label: __( 'Button Text' ),
62
- type: 'richtext',
68
+ type: 'text',
69
+ Edit: 'rich-text', // TODO: replace with custom component
63
70
  },
64
71
  ];
65
72
  settings[ formKey ] = {
66
- fields: [ 'file' ],
73
+ fields: [ 'file', 'fileName', 'downloadButtonText' ],
67
74
  };
68
75
  }
69
76
 
@@ -8,9 +8,6 @@
8
8
  "keywords": [ "title", "subtitle" ],
9
9
  "textdomain": "default",
10
10
  "attributes": {
11
- "textAlign": {
12
- "type": "string"
13
- },
14
11
  "content": {
15
12
  "type": "rich-text",
16
13
  "source": "rich-text",
@@ -58,6 +55,7 @@
58
55
  "typography": {
59
56
  "fontSize": true,
60
57
  "lineHeight": true,
58
+ "textAlign": true,
61
59
  "__experimentalFontFamily": true,
62
60
  "__experimentalFontStyle": true,
63
61
  "__experimentalFontWeight": true,