@wordpress/block-library 9.33.2-next.36001005c.0 → 9.34.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 (173) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/accordion/block.json +1 -1
  3. package/build/accordion/edit.js +11 -9
  4. package/build/accordion/edit.js.map +2 -2
  5. package/build/accordion-heading/block.json +1 -1
  6. package/build/accordion-item/block.json +2 -2
  7. package/build/accordion-panel/block.json +1 -1
  8. package/build/breadcrumbs/block.json +3 -4
  9. package/build/breadcrumbs/edit.js +43 -77
  10. package/build/breadcrumbs/edit.js.map +2 -2
  11. package/build/buttons/transforms.js +1 -0
  12. package/build/buttons/transforms.js.map +2 -2
  13. package/build/categories/edit.js +8 -4
  14. package/build/categories/edit.js.map +2 -2
  15. package/build/code/transforms.js +2 -0
  16. package/build/code/transforms.js.map +2 -2
  17. package/build/home-link/block.json +2 -1
  18. package/build/image/view.js +4 -1
  19. package/build/image/view.js.map +2 -2
  20. package/build/latest-comments/block.json +4 -3
  21. package/build/latest-comments/deprecated.js +56 -0
  22. package/build/latest-comments/deprecated.js.map +7 -0
  23. package/build/latest-comments/edit.js +16 -10
  24. package/build/latest-comments/edit.js.map +2 -2
  25. package/build/latest-comments/index.js +3 -1
  26. package/build/latest-comments/index.js.map +3 -3
  27. package/build/math/deprecated.js +54 -0
  28. package/build/math/deprecated.js.map +7 -0
  29. package/build/math/edit.js +1 -0
  30. package/build/math/edit.js.map +2 -2
  31. package/build/math/index.js +3 -1
  32. package/build/math/index.js.map +3 -3
  33. package/build/math/save.js +2 -3
  34. package/build/math/save.js.map +2 -2
  35. package/build/navigation/menu-items-to-blocks.js +8 -3
  36. package/build/navigation/menu-items-to-blocks.js.map +2 -2
  37. package/build/navigation/view.js +2 -2
  38. package/build/navigation/view.js.map +2 -2
  39. package/build/navigation-link/link-ui/page-creator.js +20 -0
  40. package/build/navigation-link/link-ui/page-creator.js.map +3 -3
  41. package/build/post-date/block.json +1 -1
  42. package/build/post-date/edit.js +11 -5
  43. package/build/post-date/edit.js.map +3 -3
  44. package/build/post-date/variations.js +4 -7
  45. package/build/post-date/variations.js.map +2 -2
  46. package/build/post-template/edit.js +13 -1
  47. package/build/post-template/edit.js.map +2 -2
  48. package/build/query/index.js +11 -1
  49. package/build/query/index.js.map +2 -2
  50. package/build/query/variations.js +16 -11
  51. package/build/query/variations.js.map +2 -2
  52. package/build/search/view.js +4 -4
  53. package/build/search/view.js.map +2 -2
  54. package/build/terms-query/edit/inspector-controls/index.js +1 -1
  55. package/build/terms-query/edit/inspector-controls/index.js.map +2 -2
  56. package/build/terms-query/edit/inspector-controls/inherit-control.js +2 -4
  57. package/build/terms-query/edit/inspector-controls/inherit-control.js.map +2 -2
  58. package/build/utils/get-transformed-attributes.js +1 -10
  59. package/build/utils/get-transformed-attributes.js.map +2 -2
  60. package/build-module/accordion/block.json +1 -1
  61. package/build-module/accordion/edit.js +11 -9
  62. package/build-module/accordion/edit.js.map +2 -2
  63. package/build-module/accordion-heading/block.json +1 -1
  64. package/build-module/accordion-item/block.json +2 -2
  65. package/build-module/accordion-panel/block.json +1 -1
  66. package/build-module/breadcrumbs/block.json +3 -4
  67. package/build-module/breadcrumbs/edit.js +44 -78
  68. package/build-module/breadcrumbs/edit.js.map +2 -2
  69. package/build-module/buttons/transforms.js +1 -0
  70. package/build-module/buttons/transforms.js.map +2 -2
  71. package/build-module/categories/edit.js +8 -4
  72. package/build-module/categories/edit.js.map +2 -2
  73. package/build-module/code/transforms.js +2 -0
  74. package/build-module/code/transforms.js.map +2 -2
  75. package/build-module/home-link/block.json +2 -1
  76. package/build-module/image/view.js +4 -1
  77. package/build-module/image/view.js.map +2 -2
  78. package/build-module/latest-comments/block.json +4 -3
  79. package/build-module/latest-comments/deprecated.js +36 -0
  80. package/build-module/latest-comments/deprecated.js.map +7 -0
  81. package/build-module/latest-comments/edit.js +17 -10
  82. package/build-module/latest-comments/edit.js.map +2 -2
  83. package/build-module/latest-comments/index.js +3 -1
  84. package/build-module/latest-comments/index.js.map +2 -2
  85. package/build-module/math/deprecated.js +34 -0
  86. package/build-module/math/deprecated.js.map +7 -0
  87. package/build-module/math/edit.js +1 -0
  88. package/build-module/math/edit.js.map +2 -2
  89. package/build-module/math/index.js +3 -1
  90. package/build-module/math/index.js.map +2 -2
  91. package/build-module/math/save.js +2 -3
  92. package/build-module/math/save.js.map +2 -2
  93. package/build-module/navigation/menu-items-to-blocks.js +8 -3
  94. package/build-module/navigation/menu-items-to-blocks.js.map +2 -2
  95. package/build-module/navigation/view.js +2 -2
  96. package/build-module/navigation/view.js.map +2 -2
  97. package/build-module/navigation-link/link-ui/page-creator.js +21 -1
  98. package/build-module/navigation-link/link-ui/page-creator.js.map +2 -2
  99. package/build-module/post-date/block.json +1 -1
  100. package/build-module/post-date/edit.js +11 -5
  101. package/build-module/post-date/edit.js.map +2 -2
  102. package/build-module/post-date/variations.js +4 -7
  103. package/build-module/post-date/variations.js.map +2 -2
  104. package/build-module/post-template/edit.js +13 -1
  105. package/build-module/post-template/edit.js.map +2 -2
  106. package/build-module/query/index.js +11 -1
  107. package/build-module/query/index.js.map +2 -2
  108. package/build-module/query/variations.js +16 -11
  109. package/build-module/query/variations.js.map +2 -2
  110. package/build-module/search/view.js +4 -4
  111. package/build-module/search/view.js.map +2 -2
  112. package/build-module/terms-query/edit/inspector-controls/index.js +1 -1
  113. package/build-module/terms-query/edit/inspector-controls/index.js.map +2 -2
  114. package/build-module/terms-query/edit/inspector-controls/inherit-control.js +2 -4
  115. package/build-module/terms-query/edit/inspector-controls/inherit-control.js.map +2 -2
  116. package/build-module/utils/get-transformed-attributes.js +1 -10
  117. package/build-module/utils/get-transformed-attributes.js.map +2 -2
  118. package/build-style/editor-rtl.css +5 -0
  119. package/build-style/editor.css +6 -0
  120. package/build-style/math/editor-rtl.css +49 -0
  121. package/build-style/math/editor.css +50 -0
  122. package/build-style/math/style-rtl.css +4 -0
  123. package/build-style/math/style.css +4 -0
  124. package/build-style/style-rtl.css +5 -0
  125. package/build-style/style.css +5 -0
  126. package/package.json +37 -37
  127. package/src/accordion/block.json +1 -1
  128. package/src/accordion/edit.js +16 -16
  129. package/src/accordion-heading/block.json +1 -1
  130. package/src/accordion-item/block.json +2 -2
  131. package/src/accordion-panel/block.json +1 -1
  132. package/src/breadcrumbs/block.json +3 -4
  133. package/src/breadcrumbs/edit.js +96 -132
  134. package/src/breadcrumbs/index.php +203 -50
  135. package/src/buttons/transforms.js +1 -0
  136. package/src/categories/edit.js +10 -6
  137. package/src/categories/index.php +1 -1
  138. package/src/code/transforms.js +2 -0
  139. package/src/editor.scss +1 -0
  140. package/src/home-link/block.json +2 -1
  141. package/src/image/index.php +9 -9
  142. package/src/image/view.js +11 -1
  143. package/src/latest-comments/block.json +4 -3
  144. package/src/latest-comments/deprecated.js +37 -0
  145. package/src/latest-comments/edit.js +17 -10
  146. package/src/latest-comments/index.js +2 -0
  147. package/src/latest-comments/index.php +11 -2
  148. package/src/math/deprecated.js +44 -0
  149. package/src/math/edit.js +1 -0
  150. package/src/math/editor.scss +7 -0
  151. package/src/math/index.js +2 -0
  152. package/src/math/save.js +6 -5
  153. package/src/math/style.scss +4 -0
  154. package/src/navigation/index.php +7 -7
  155. package/src/navigation/menu-items-to-blocks.js +12 -2
  156. package/src/navigation/test/menu-items-to-blocks.js +144 -0
  157. package/src/navigation/view.js +2 -2
  158. package/src/navigation-link/link-ui/page-creator.js +25 -2
  159. package/src/post-date/block.json +1 -1
  160. package/src/post-date/edit.js +15 -10
  161. package/src/post-date/variations.js +2 -5
  162. package/src/post-template/edit.js +13 -1
  163. package/src/query/index.js +10 -0
  164. package/src/query/variations.js +17 -11
  165. package/src/query-pagination-next/index.php +1 -1
  166. package/src/query-pagination-previous/index.php +1 -1
  167. package/src/search/index.php +2 -2
  168. package/src/search/view.js +4 -4
  169. package/src/style.scss +1 -0
  170. package/src/term-template/index.php +8 -2
  171. package/src/terms-query/edit/inspector-controls/index.js +2 -2
  172. package/src/terms-query/edit/inspector-controls/inherit-control.js +1 -3
  173. package/src/utils/get-transformed-attributes.js +5 -16
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/get-transformed-attributes.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { getBlockType, hasBlockSupport } from '@wordpress/blocks';\n\n/**\n * Transform block support attributes and metadata during block transforms.\n *\n * @param {Object} attributes Original attributes from the block being transformed.\n * @param {string} newBlockName Name of the target block after transformation.\n * @param {Function} bindingsCallback Optional callback to transform the `bindings` property object.\n * @return {Object} New attributes object with preserved block support attributes and metadata.\n */\nexport function getTransformedAttributes(\n\tattributes,\n\tnewBlockName,\n\tbindingsCallback = null\n) {\n\tif ( ! attributes ) {\n\t\treturn undefined;\n\t}\n\n\tconst newBlockType = getBlockType( newBlockName );\n\tif ( ! newBlockType ) {\n\t\treturn undefined;\n\t}\n\n\tconst transformedAttributes = {};\n\n\t// Handle attributes derived from block support.\n\tif (\n\t\thasBlockSupport( newBlockType, 'allowedBlocks' ) &&\n\t\tattributes.allowedBlocks\n\t) {\n\t\ttransformedAttributes.allowedBlocks = attributes.allowedBlocks;\n\t}\n\tif ( hasBlockSupport( newBlockType, 'anchor' ) && attributes.anchor ) {\n\t\ttransformedAttributes.anchor = attributes.anchor;\n\t}\n\tif (\n\t\thasBlockSupport( newBlockType, 'ariaLabel' ) &&\n\t\tattributes.ariaLabel\n\t) {\n\t\ttransformedAttributes.ariaLabel = attributes.ariaLabel;\n\t}\n\tif (\n\t\thasBlockSupport( newBlockType, 'className' ) &&\n\t\tattributes.className\n\t) {\n\t\ttransformedAttributes.className = attributes.className;\n\t}\n\n\t// Handle metadata transformation.\n\tif ( attributes.metadata ) {\n\t\t// The metadata properties that should be preserved after the transform.\n\t\tconst transformedMetadata = [ 'noteId' ];\n\n\t\t// If there is a transform bindings callback, add the `id` and `bindings` properties.\n\t\tif ( bindingsCallback ) {\n\t\t\ttransformedMetadata.push( 'id', 'bindings' );\n\t\t}\n\n\t\t// Handle metadata properties derived from block support.\n\t\tif ( hasBlockSupport( newBlockType, 'renaming', true ) ) {\n\t\t\ttransformedMetadata.push( 'name' );\n\t\t}\n\t\tif ( hasBlockSupport( newBlockType, 'blockVisibility', true ) ) {\n\t\t\ttransformedMetadata.push( 'blockVisibility' );\n\t\t}\n\n\t\t// Only process metadata if there are supported properties.\n\t\tif ( transformedMetadata.length > 0 ) {\n\t\t\tconst newMetadata = Object.entries( attributes.metadata ).reduce(\n\t\t\t\t( obj, [ prop, value ] ) => {\n\t\t\t\t\t// If prop is not supported, don't add it to the new metadata object.\n\t\t\t\t\tif ( ! transformedMetadata.includes( prop ) ) {\n\t\t\t\t\t\treturn obj;\n\t\t\t\t\t}\n\t\t\t\t\tobj[ prop ] =\n\t\t\t\t\t\tprop === 'bindings' ? bindingsCallback( value ) : value;\n\t\t\t\t\treturn obj;\n\t\t\t\t},\n\t\t\t\t{}\n\t\t\t);\n\n\t\t\t// Only add metadata if object is not empty.\n\t\t\tif ( Object.keys( newMetadata ).length > 0 ) {\n\t\t\t\ttransformedAttributes.metadata = newMetadata;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( Object.keys( transformedAttributes ).length === 0 ) {\n\t\treturn undefined;\n\t}\n\n\treturn transformedAttributes;\n}\n"],
5
- "mappings": "AAGA,SAAS,cAAc,uBAAuB;AAUvC,SAAS,yBACf,YACA,cACA,mBAAmB,MAClB;AACD,MAAK,CAAE,YAAa;AACnB,WAAO;AAAA,EACR;AAEA,QAAM,eAAe,aAAc,YAAa;AAChD,MAAK,CAAE,cAAe;AACrB,WAAO;AAAA,EACR;AAEA,QAAM,wBAAwB,CAAC;AAG/B,MACC,gBAAiB,cAAc,eAAgB,KAC/C,WAAW,eACV;AACD,0BAAsB,gBAAgB,WAAW;AAAA,EAClD;AACA,MAAK,gBAAiB,cAAc,QAAS,KAAK,WAAW,QAAS;AACrE,0BAAsB,SAAS,WAAW;AAAA,EAC3C;AACA,MACC,gBAAiB,cAAc,WAAY,KAC3C,WAAW,WACV;AACD,0BAAsB,YAAY,WAAW;AAAA,EAC9C;AACA,MACC,gBAAiB,cAAc,WAAY,KAC3C,WAAW,WACV;AACD,0BAAsB,YAAY,WAAW;AAAA,EAC9C;AAGA,MAAK,WAAW,UAAW;AAE1B,UAAM,sBAAsB,CAAE,QAAS;AAGvC,QAAK,kBAAmB;AACvB,0BAAoB,KAAM,MAAM,UAAW;AAAA,IAC5C;AAGA,QAAK,gBAAiB,cAAc,YAAY,IAAK,GAAI;AACxD,0BAAoB,KAAM,MAAO;AAAA,IAClC;AACA,QAAK,gBAAiB,cAAc,mBAAmB,IAAK,GAAI;AAC/D,0BAAoB,KAAM,iBAAkB;AAAA,IAC7C;AAGA,QAAK,oBAAoB,SAAS,GAAI;AACrC,YAAM,cAAc,OAAO,QAAS,WAAW,QAAS,EAAE;AAAA,QACzD,CAAE,KAAK,CAAE,MAAM,KAAM,MAAO;AAE3B,cAAK,CAAE,oBAAoB,SAAU,IAAK,GAAI;AAC7C,mBAAO;AAAA,UACR;AACA,cAAK,IAAK,IACT,SAAS,aAAa,iBAAkB,KAAM,IAAI;AACnD,iBAAO;AAAA,QACR;AAAA,QACA,CAAC;AAAA,MACF;AAGA,UAAK,OAAO,KAAM,WAAY,EAAE,SAAS,GAAI;AAC5C,8BAAsB,WAAW;AAAA,MAClC;AAAA,IACD;AAAA,EACD;AAEA,MAAK,OAAO,KAAM,qBAAsB,EAAE,WAAW,GAAI;AACxD,WAAO;AAAA,EACR;AAEA,SAAO;AACR;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { getBlockType, hasBlockSupport } from '@wordpress/blocks';\n\n/**\n * Transform block support attributes and metadata during block transforms.\n *\n * @param {Object} attributes Original attributes from the block being transformed.\n * @param {string} newBlockName Name of the target block after transformation.\n * @param {Function} bindingsCallback Optional callback to transform the `bindings` property object.\n * @return {Object} New attributes object with preserved block support attributes and metadata.\n */\nexport function getTransformedAttributes(\n\tattributes,\n\tnewBlockName,\n\tbindingsCallback = null\n) {\n\tif ( ! attributes ) {\n\t\treturn undefined;\n\t}\n\n\tconst newBlockType = getBlockType( newBlockName );\n\tif ( ! newBlockType ) {\n\t\treturn undefined;\n\t}\n\n\tconst transformedAttributes = {};\n\n\t// Handle attributes derived from block support. The custom class name\n\t// attribute is handled in the `core/customClassName/addTransforms` hook.\n\tif (\n\t\thasBlockSupport( newBlockType, 'allowedBlocks' ) &&\n\t\tattributes.allowedBlocks\n\t) {\n\t\ttransformedAttributes.allowedBlocks = attributes.allowedBlocks;\n\t}\n\tif ( hasBlockSupport( newBlockType, 'anchor' ) && attributes.anchor ) {\n\t\ttransformedAttributes.anchor = attributes.anchor;\n\t}\n\tif (\n\t\thasBlockSupport( newBlockType, 'ariaLabel' ) &&\n\t\tattributes.ariaLabel\n\t) {\n\t\ttransformedAttributes.ariaLabel = attributes.ariaLabel;\n\t}\n\n\t// Handle metadata transformation.\n\tif ( attributes.metadata ) {\n\t\t// The metadata properties that should be preserved after the transform.\n\t\t// The noteId, name, and blockVisibility properties are separately handled\n\t\t// in the `core/metadata/addTransforms` hook.\n\t\tconst transformedMetadata = [];\n\n\t\t// If there is a transform bindings callback, add the `id` and `bindings` properties.\n\t\tif ( bindingsCallback ) {\n\t\t\ttransformedMetadata.push( 'id', 'bindings' );\n\t\t}\n\n\t\t// Only process metadata if there are supported properties.\n\t\tif ( transformedMetadata.length > 0 ) {\n\t\t\tconst newMetadata = Object.entries( attributes.metadata ).reduce(\n\t\t\t\t( obj, [ prop, value ] ) => {\n\t\t\t\t\t// If prop is not supported, don't add it to the new metadata object.\n\t\t\t\t\tif ( ! transformedMetadata.includes( prop ) ) {\n\t\t\t\t\t\treturn obj;\n\t\t\t\t\t}\n\t\t\t\t\tobj[ prop ] =\n\t\t\t\t\t\tprop === 'bindings' ? bindingsCallback( value ) : value;\n\t\t\t\t\treturn obj;\n\t\t\t\t},\n\t\t\t\t{}\n\t\t\t);\n\n\t\t\t// Only add metadata if object is not empty.\n\t\t\tif ( Object.keys( newMetadata ).length > 0 ) {\n\t\t\t\ttransformedAttributes.metadata = newMetadata;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( Object.keys( transformedAttributes ).length === 0 ) {\n\t\treturn undefined;\n\t}\n\n\treturn transformedAttributes;\n}\n"],
5
+ "mappings": "AAGA,SAAS,cAAc,uBAAuB;AAUvC,SAAS,yBACf,YACA,cACA,mBAAmB,MAClB;AACD,MAAK,CAAE,YAAa;AACnB,WAAO;AAAA,EACR;AAEA,QAAM,eAAe,aAAc,YAAa;AAChD,MAAK,CAAE,cAAe;AACrB,WAAO;AAAA,EACR;AAEA,QAAM,wBAAwB,CAAC;AAI/B,MACC,gBAAiB,cAAc,eAAgB,KAC/C,WAAW,eACV;AACD,0BAAsB,gBAAgB,WAAW;AAAA,EAClD;AACA,MAAK,gBAAiB,cAAc,QAAS,KAAK,WAAW,QAAS;AACrE,0BAAsB,SAAS,WAAW;AAAA,EAC3C;AACA,MACC,gBAAiB,cAAc,WAAY,KAC3C,WAAW,WACV;AACD,0BAAsB,YAAY,WAAW;AAAA,EAC9C;AAGA,MAAK,WAAW,UAAW;AAI1B,UAAM,sBAAsB,CAAC;AAG7B,QAAK,kBAAmB;AACvB,0BAAoB,KAAM,MAAM,UAAW;AAAA,IAC5C;AAGA,QAAK,oBAAoB,SAAS,GAAI;AACrC,YAAM,cAAc,OAAO,QAAS,WAAW,QAAS,EAAE;AAAA,QACzD,CAAE,KAAK,CAAE,MAAM,KAAM,MAAO;AAE3B,cAAK,CAAE,oBAAoB,SAAU,IAAK,GAAI;AAC7C,mBAAO;AAAA,UACR;AACA,cAAK,IAAK,IACT,SAAS,aAAa,iBAAkB,KAAM,IAAI;AACnD,iBAAO;AAAA,QACR;AAAA,QACA,CAAC;AAAA,MACF;AAGA,UAAK,OAAO,KAAM,WAAY,EAAE,SAAS,GAAI;AAC5C,8BAAsB,WAAW;AAAA,MAClC;AAAA,IACD;AAAA,EACD;AAEA,MAAK,OAAO,KAAM,qBAAsB,EAAE,WAAW,GAAI;AACxD,WAAO;AAAA,EACR;AAEA,SAAO;AACR;",
6
6
  "names": []
7
7
  }
@@ -1284,6 +1284,11 @@ figure.wp-block-image:not(.wp-block) {
1284
1284
  padding-right: 0;
1285
1285
  }
1286
1286
 
1287
+ .wp-block-math__textarea-control textarea {
1288
+ font-family: Menlo, Consolas, monaco, monospace;
1289
+ direction: ltr;
1290
+ }
1291
+
1287
1292
  .wp-block-media-text__media {
1288
1293
  position: relative;
1289
1294
  }
@@ -1291,6 +1291,12 @@ figure.wp-block-image:not(.wp-block) {
1291
1291
  padding-left: 0;
1292
1292
  }
1293
1293
 
1294
+ .wp-block-math__textarea-control textarea {
1295
+ font-family: Menlo, Consolas, monaco, monospace;
1296
+ /*rtl:ignore*/
1297
+ direction: ltr;
1298
+ }
1299
+
1294
1300
  .wp-block-media-text__media {
1295
1301
  position: relative;
1296
1302
  }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * SCSS Variables.
3
+ *
4
+ * Please use variables from this sheet to ensure consistency across the UI.
5
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
6
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
7
+ */
8
+ /**
9
+ * Colors
10
+ */
11
+ /**
12
+ * Fonts & basic variables.
13
+ */
14
+ /**
15
+ * Typography
16
+ */
17
+ /**
18
+ * Grid System.
19
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
20
+ */
21
+ /**
22
+ * Radius scale.
23
+ */
24
+ /**
25
+ * Elevation scale.
26
+ */
27
+ /**
28
+ * Dimensions.
29
+ */
30
+ /**
31
+ * Mobile specific styles
32
+ */
33
+ /**
34
+ * Editor styles.
35
+ */
36
+ /**
37
+ * Block & Editor UI.
38
+ */
39
+ /**
40
+ * Block paddings.
41
+ */
42
+ /**
43
+ * React Native specific.
44
+ * These variables do not appear to be used anywhere else.
45
+ */
46
+ .wp-block-math__textarea-control textarea {
47
+ font-family: Menlo, Consolas, monaco, monospace;
48
+ direction: ltr;
49
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * SCSS Variables.
3
+ *
4
+ * Please use variables from this sheet to ensure consistency across the UI.
5
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
6
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
7
+ */
8
+ /**
9
+ * Colors
10
+ */
11
+ /**
12
+ * Fonts & basic variables.
13
+ */
14
+ /**
15
+ * Typography
16
+ */
17
+ /**
18
+ * Grid System.
19
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
20
+ */
21
+ /**
22
+ * Radius scale.
23
+ */
24
+ /**
25
+ * Elevation scale.
26
+ */
27
+ /**
28
+ * Dimensions.
29
+ */
30
+ /**
31
+ * Mobile specific styles
32
+ */
33
+ /**
34
+ * Editor styles.
35
+ */
36
+ /**
37
+ * Block & Editor UI.
38
+ */
39
+ /**
40
+ * Block paddings.
41
+ */
42
+ /**
43
+ * React Native specific.
44
+ * These variables do not appear to be used anywhere else.
45
+ */
46
+ .wp-block-math__textarea-control textarea {
47
+ font-family: Menlo, Consolas, monaco, monospace;
48
+ /*rtl:ignore*/
49
+ direction: ltr;
50
+ }
@@ -0,0 +1,4 @@
1
+ .wp-block-math {
2
+ overflow-x: auto;
3
+ overflow-y: hidden;
4
+ }
@@ -0,0 +1,4 @@
1
+ .wp-block-math {
2
+ overflow-x: auto;
3
+ overflow-y: hidden;
4
+ }
@@ -2187,6 +2187,11 @@ ul {
2187
2187
  box-sizing: border-box;
2188
2188
  }
2189
2189
 
2190
+ .wp-block-math {
2191
+ overflow-x: auto;
2192
+ overflow-y: hidden;
2193
+ }
2194
+
2190
2195
  .wp-block-media-text {
2191
2196
  direction: ltr;
2192
2197
  display: grid;
@@ -2207,6 +2207,11 @@ ul {
2207
2207
  box-sizing: border-box;
2208
2208
  }
2209
2209
 
2210
+ .wp-block-math {
2211
+ overflow-x: auto;
2212
+ overflow-y: hidden;
2213
+ }
2214
+
2210
2215
  .wp-block-media-text {
2211
2216
  /*!rtl:begin:ignore*/
2212
2217
  direction: ltr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "9.33.2-next.36001005c.0",
3
+ "version": "9.34.0",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -81,41 +81,41 @@
81
81
  "{src,build,build-module}/*/init.js"
82
82
  ],
83
83
  "dependencies": {
84
- "@wordpress/a11y": "^4.33.1-next.36001005c.0",
85
- "@wordpress/api-fetch": "^7.33.1-next.36001005c.0",
86
- "@wordpress/autop": "^4.33.1-next.36001005c.0",
87
- "@wordpress/base-styles": "^6.10.1-next.36001005c.0",
88
- "@wordpress/blob": "^4.33.1-next.36001005c.0",
89
- "@wordpress/block-editor": "^15.6.1-next.36001005c.0",
90
- "@wordpress/blocks": "^15.6.1-next.36001005c.0",
91
- "@wordpress/components": "^30.7.1-next.36001005c.0",
92
- "@wordpress/compose": "^7.33.1-next.36001005c.0",
93
- "@wordpress/core-data": "^7.33.1-next.36001005c.0",
94
- "@wordpress/data": "^10.33.1-next.36001005c.0",
95
- "@wordpress/date": "^5.33.1-next.36001005c.0",
96
- "@wordpress/deprecated": "^4.33.1-next.36001005c.0",
97
- "@wordpress/dom": "^4.33.1-next.36001005c.0",
98
- "@wordpress/element": "^6.33.1-next.36001005c.0",
99
- "@wordpress/escape-html": "^3.33.1-next.36001005c.0",
100
- "@wordpress/hooks": "^4.33.1-next.36001005c.0",
101
- "@wordpress/html-entities": "^4.33.1-next.36001005c.0",
102
- "@wordpress/i18n": "^6.6.1-next.36001005c.0",
103
- "@wordpress/icons": "^11.0.1-next.36001005c.0",
104
- "@wordpress/interactivity": "^6.33.1-next.36001005c.0",
105
- "@wordpress/interactivity-router": "^2.33.1-next.36001005c.0",
106
- "@wordpress/keyboard-shortcuts": "^5.33.1-next.36001005c.0",
107
- "@wordpress/keycodes": "^4.33.1-next.36001005c.0",
108
- "@wordpress/latex-to-mathml": "^1.1.1-next.36001005c.0",
109
- "@wordpress/notices": "^5.33.1-next.36001005c.0",
110
- "@wordpress/patterns": "^2.33.1-next.36001005c.0",
111
- "@wordpress/primitives": "^4.33.1-next.36001005c.0",
112
- "@wordpress/private-apis": "^1.33.1-next.36001005c.0",
113
- "@wordpress/reusable-blocks": "^5.33.1-next.36001005c.0",
114
- "@wordpress/rich-text": "^7.33.1-next.36001005c.0",
115
- "@wordpress/server-side-render": "^6.9.1-next.36001005c.0",
116
- "@wordpress/url": "^4.33.1-next.36001005c.0",
117
- "@wordpress/viewport": "^6.33.1-next.36001005c.0",
118
- "@wordpress/wordcount": "^4.33.1-next.36001005c.0",
84
+ "@wordpress/a11y": "^4.34.0",
85
+ "@wordpress/api-fetch": "^7.34.0",
86
+ "@wordpress/autop": "^4.34.0",
87
+ "@wordpress/base-styles": "^6.10.0",
88
+ "@wordpress/blob": "^4.34.0",
89
+ "@wordpress/block-editor": "^15.7.0",
90
+ "@wordpress/blocks": "^15.7.0",
91
+ "@wordpress/components": "^30.7.0",
92
+ "@wordpress/compose": "^7.34.0",
93
+ "@wordpress/core-data": "^7.34.0",
94
+ "@wordpress/data": "^10.34.0",
95
+ "@wordpress/date": "^5.34.0",
96
+ "@wordpress/deprecated": "^4.34.0",
97
+ "@wordpress/dom": "^4.34.0",
98
+ "@wordpress/element": "^6.34.0",
99
+ "@wordpress/escape-html": "^3.34.0",
100
+ "@wordpress/hooks": "^4.34.0",
101
+ "@wordpress/html-entities": "^4.34.0",
102
+ "@wordpress/i18n": "^6.7.0",
103
+ "@wordpress/icons": "^11.1.0",
104
+ "@wordpress/interactivity": "^6.34.0",
105
+ "@wordpress/interactivity-router": "^2.34.0",
106
+ "@wordpress/keyboard-shortcuts": "^5.34.0",
107
+ "@wordpress/keycodes": "^4.34.0",
108
+ "@wordpress/latex-to-mathml": "^1.2.0",
109
+ "@wordpress/notices": "^5.34.0",
110
+ "@wordpress/patterns": "^2.34.0",
111
+ "@wordpress/primitives": "^4.34.0",
112
+ "@wordpress/private-apis": "^1.34.0",
113
+ "@wordpress/reusable-blocks": "^5.34.0",
114
+ "@wordpress/rich-text": "^7.34.0",
115
+ "@wordpress/server-side-render": "^6.10.0",
116
+ "@wordpress/url": "^4.34.0",
117
+ "@wordpress/viewport": "^6.34.0",
118
+ "@wordpress/wordcount": "^4.34.0",
119
119
  "change-case": "^4.1.2",
120
120
  "clsx": "^2.1.1",
121
121
  "colord": "^2.7.0",
@@ -133,5 +133,5 @@
133
133
  "publishConfig": {
134
134
  "access": "public"
135
135
  },
136
- "gitHead": "b73a8a22e779c59efb8f911e32b681652f237d60"
136
+ "gitHead": "ceebff807958d2e8fc755b5a20473939c78b4d1d"
137
137
  }
@@ -4,7 +4,7 @@
4
4
  "name": "core/accordion",
5
5
  "title": "Accordion",
6
6
  "category": "design",
7
- "description": "Displays a group of accordion headings and associated expandable content.",
7
+ "description": "Displays a foldable layout that groups content in collapsible sections.",
8
8
  "example": {},
9
9
  "supports": {
10
10
  "anchor": true,
@@ -102,22 +102,22 @@ export default function Edit( {
102
102
  return (
103
103
  <>
104
104
  { isSingleSelected && ! isContentOnlyMode && (
105
- <BlockControls>
106
- <ToolbarGroup>
107
- <HeadingLevelDropdown
108
- value={ headingLevel }
109
- options={ levelOptions }
110
- onChange={ updateHeadingLevel }
111
- />
112
- </ToolbarGroup>
113
- </BlockControls>
114
- ) }
115
- { isSingleSelected && (
116
- <BlockControls group="other">
117
- <ToolbarButton onClick={ addAccordionItemBlock }>
118
- { __( 'Add' ) }
119
- </ToolbarButton>
120
- </BlockControls>
105
+ <>
106
+ <BlockControls>
107
+ <ToolbarGroup>
108
+ <HeadingLevelDropdown
109
+ value={ headingLevel }
110
+ options={ levelOptions }
111
+ onChange={ updateHeadingLevel }
112
+ />
113
+ </ToolbarGroup>
114
+ </BlockControls>
115
+ <BlockControls group="other">
116
+ <ToolbarButton onClick={ addAccordionItemBlock }>
117
+ { __( 'Add' ) }
118
+ </ToolbarButton>
119
+ </BlockControls>
120
+ </>
121
121
  ) }
122
122
  <InspectorControls key="setting">
123
123
  <ToolsPanel
@@ -4,7 +4,7 @@
4
4
  "name": "core/accordion-heading",
5
5
  "title": "Accordion Heading",
6
6
  "category": "design",
7
- "description": "Displays an accordion heading.",
7
+ "description": "Displays a heading that toggles the accordion panel.",
8
8
  "parent": [ "core/accordion-item" ],
9
9
  "usesContext": [
10
10
  "core/accordion-icon-position",
@@ -4,7 +4,7 @@
4
4
  "name": "core/accordion-item",
5
5
  "title": "Accordion Item",
6
6
  "category": "design",
7
- "description": "Displays a section of content in an accordion, including a heading and expandable content.",
7
+ "description": "Wraps the heading and panel in one unit.",
8
8
  "parent": [ "core/accordion" ],
9
9
  "allowedBlocks": [ "core/accordion-heading", "core/accordion-panel" ],
10
10
  "supports": {
@@ -33,7 +33,7 @@
33
33
  "shadow": true,
34
34
  "layout": {
35
35
  "allowEditing": false
36
- },
36
+ },
37
37
  "typography": {
38
38
  "fontSize": true,
39
39
  "lineHeight": true,
@@ -4,7 +4,7 @@
4
4
  "name": "core/accordion-panel",
5
5
  "title": "Accordion Panel",
6
6
  "category": "design",
7
- "description": "Displays an accordion panel.",
7
+ "description": "Contains the hidden or revealed content beneath the heading.",
8
8
  "parent": [ "core/accordion-item" ],
9
9
  "supports": {
10
10
  "html": false,
@@ -8,10 +8,9 @@
8
8
  "description": "Display a breadcrumb trail for hierarchical post types or based on taxonomy terms.",
9
9
  "textdomain": "default",
10
10
  "attributes": {
11
- "type": {
12
- "type": "string",
13
- "default": "auto",
14
- "enum": [ "auto", "postWithTerms", "postWithAncestors" ]
11
+ "prefersTaxonomy": {
12
+ "type": "boolean",
13
+ "default": false
15
14
  },
16
15
  "separator": {
17
16
  "type": "string",