@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.
- package/CHANGELOG.md +2 -0
- package/build/accordion/block.json +1 -1
- package/build/accordion/edit.js +11 -9
- package/build/accordion/edit.js.map +2 -2
- package/build/accordion-heading/block.json +1 -1
- package/build/accordion-item/block.json +2 -2
- package/build/accordion-panel/block.json +1 -1
- package/build/breadcrumbs/block.json +3 -4
- package/build/breadcrumbs/edit.js +43 -77
- package/build/breadcrumbs/edit.js.map +2 -2
- package/build/buttons/transforms.js +1 -0
- package/build/buttons/transforms.js.map +2 -2
- package/build/categories/edit.js +8 -4
- package/build/categories/edit.js.map +2 -2
- package/build/code/transforms.js +2 -0
- package/build/code/transforms.js.map +2 -2
- package/build/home-link/block.json +2 -1
- package/build/image/view.js +4 -1
- package/build/image/view.js.map +2 -2
- package/build/latest-comments/block.json +4 -3
- package/build/latest-comments/deprecated.js +56 -0
- package/build/latest-comments/deprecated.js.map +7 -0
- package/build/latest-comments/edit.js +16 -10
- package/build/latest-comments/edit.js.map +2 -2
- package/build/latest-comments/index.js +3 -1
- package/build/latest-comments/index.js.map +3 -3
- package/build/math/deprecated.js +54 -0
- package/build/math/deprecated.js.map +7 -0
- package/build/math/edit.js +1 -0
- package/build/math/edit.js.map +2 -2
- package/build/math/index.js +3 -1
- package/build/math/index.js.map +3 -3
- package/build/math/save.js +2 -3
- package/build/math/save.js.map +2 -2
- package/build/navigation/menu-items-to-blocks.js +8 -3
- package/build/navigation/menu-items-to-blocks.js.map +2 -2
- package/build/navigation/view.js +2 -2
- package/build/navigation/view.js.map +2 -2
- package/build/navigation-link/link-ui/page-creator.js +20 -0
- package/build/navigation-link/link-ui/page-creator.js.map +3 -3
- package/build/post-date/block.json +1 -1
- package/build/post-date/edit.js +11 -5
- package/build/post-date/edit.js.map +3 -3
- package/build/post-date/variations.js +4 -7
- package/build/post-date/variations.js.map +2 -2
- package/build/post-template/edit.js +13 -1
- package/build/post-template/edit.js.map +2 -2
- package/build/query/index.js +11 -1
- package/build/query/index.js.map +2 -2
- package/build/query/variations.js +16 -11
- package/build/query/variations.js.map +2 -2
- package/build/search/view.js +4 -4
- package/build/search/view.js.map +2 -2
- package/build/terms-query/edit/inspector-controls/index.js +1 -1
- package/build/terms-query/edit/inspector-controls/index.js.map +2 -2
- package/build/terms-query/edit/inspector-controls/inherit-control.js +2 -4
- package/build/terms-query/edit/inspector-controls/inherit-control.js.map +2 -2
- package/build/utils/get-transformed-attributes.js +1 -10
- package/build/utils/get-transformed-attributes.js.map +2 -2
- package/build-module/accordion/block.json +1 -1
- package/build-module/accordion/edit.js +11 -9
- package/build-module/accordion/edit.js.map +2 -2
- package/build-module/accordion-heading/block.json +1 -1
- package/build-module/accordion-item/block.json +2 -2
- package/build-module/accordion-panel/block.json +1 -1
- package/build-module/breadcrumbs/block.json +3 -4
- package/build-module/breadcrumbs/edit.js +44 -78
- package/build-module/breadcrumbs/edit.js.map +2 -2
- package/build-module/buttons/transforms.js +1 -0
- package/build-module/buttons/transforms.js.map +2 -2
- package/build-module/categories/edit.js +8 -4
- package/build-module/categories/edit.js.map +2 -2
- package/build-module/code/transforms.js +2 -0
- package/build-module/code/transforms.js.map +2 -2
- package/build-module/home-link/block.json +2 -1
- package/build-module/image/view.js +4 -1
- package/build-module/image/view.js.map +2 -2
- package/build-module/latest-comments/block.json +4 -3
- package/build-module/latest-comments/deprecated.js +36 -0
- package/build-module/latest-comments/deprecated.js.map +7 -0
- package/build-module/latest-comments/edit.js +17 -10
- package/build-module/latest-comments/edit.js.map +2 -2
- package/build-module/latest-comments/index.js +3 -1
- package/build-module/latest-comments/index.js.map +2 -2
- package/build-module/math/deprecated.js +34 -0
- package/build-module/math/deprecated.js.map +7 -0
- package/build-module/math/edit.js +1 -0
- package/build-module/math/edit.js.map +2 -2
- package/build-module/math/index.js +3 -1
- package/build-module/math/index.js.map +2 -2
- package/build-module/math/save.js +2 -3
- package/build-module/math/save.js.map +2 -2
- package/build-module/navigation/menu-items-to-blocks.js +8 -3
- package/build-module/navigation/menu-items-to-blocks.js.map +2 -2
- package/build-module/navigation/view.js +2 -2
- package/build-module/navigation/view.js.map +2 -2
- package/build-module/navigation-link/link-ui/page-creator.js +21 -1
- package/build-module/navigation-link/link-ui/page-creator.js.map +2 -2
- package/build-module/post-date/block.json +1 -1
- package/build-module/post-date/edit.js +11 -5
- package/build-module/post-date/edit.js.map +2 -2
- package/build-module/post-date/variations.js +4 -7
- package/build-module/post-date/variations.js.map +2 -2
- package/build-module/post-template/edit.js +13 -1
- package/build-module/post-template/edit.js.map +2 -2
- package/build-module/query/index.js +11 -1
- package/build-module/query/index.js.map +2 -2
- package/build-module/query/variations.js +16 -11
- package/build-module/query/variations.js.map +2 -2
- package/build-module/search/view.js +4 -4
- package/build-module/search/view.js.map +2 -2
- package/build-module/terms-query/edit/inspector-controls/index.js +1 -1
- package/build-module/terms-query/edit/inspector-controls/index.js.map +2 -2
- package/build-module/terms-query/edit/inspector-controls/inherit-control.js +2 -4
- package/build-module/terms-query/edit/inspector-controls/inherit-control.js.map +2 -2
- package/build-module/utils/get-transformed-attributes.js +1 -10
- package/build-module/utils/get-transformed-attributes.js.map +2 -2
- package/build-style/editor-rtl.css +5 -0
- package/build-style/editor.css +6 -0
- package/build-style/math/editor-rtl.css +49 -0
- package/build-style/math/editor.css +50 -0
- package/build-style/math/style-rtl.css +4 -0
- package/build-style/math/style.css +4 -0
- package/build-style/style-rtl.css +5 -0
- package/build-style/style.css +5 -0
- package/package.json +37 -37
- package/src/accordion/block.json +1 -1
- package/src/accordion/edit.js +16 -16
- package/src/accordion-heading/block.json +1 -1
- package/src/accordion-item/block.json +2 -2
- package/src/accordion-panel/block.json +1 -1
- package/src/breadcrumbs/block.json +3 -4
- package/src/breadcrumbs/edit.js +96 -132
- package/src/breadcrumbs/index.php +203 -50
- package/src/buttons/transforms.js +1 -0
- package/src/categories/edit.js +10 -6
- package/src/categories/index.php +1 -1
- package/src/code/transforms.js +2 -0
- package/src/editor.scss +1 -0
- package/src/home-link/block.json +2 -1
- package/src/image/index.php +9 -9
- package/src/image/view.js +11 -1
- package/src/latest-comments/block.json +4 -3
- package/src/latest-comments/deprecated.js +37 -0
- package/src/latest-comments/edit.js +17 -10
- package/src/latest-comments/index.js +2 -0
- package/src/latest-comments/index.php +11 -2
- package/src/math/deprecated.js +44 -0
- package/src/math/edit.js +1 -0
- package/src/math/editor.scss +7 -0
- package/src/math/index.js +2 -0
- package/src/math/save.js +6 -5
- package/src/math/style.scss +4 -0
- package/src/navigation/index.php +7 -7
- package/src/navigation/menu-items-to-blocks.js +12 -2
- package/src/navigation/test/menu-items-to-blocks.js +144 -0
- package/src/navigation/view.js +2 -2
- package/src/navigation-link/link-ui/page-creator.js +25 -2
- package/src/post-date/block.json +1 -1
- package/src/post-date/edit.js +15 -10
- package/src/post-date/variations.js +2 -5
- package/src/post-template/edit.js +13 -1
- package/src/query/index.js +10 -0
- package/src/query/variations.js +17 -11
- package/src/query-pagination-next/index.php +1 -1
- package/src/query-pagination-previous/index.php +1 -1
- package/src/search/index.php +2 -2
- package/src/search/view.js +4 -4
- package/src/style.scss +1 -0
- package/src/term-template/index.php +8 -2
- package/src/terms-query/edit/inspector-controls/index.js +2 -2
- package/src/terms-query/edit/inspector-controls/inherit-control.js +1 -3
- 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\
|
|
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;
|
|
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
|
}
|
package/build-style/editor.css
CHANGED
|
@@ -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
|
+
}
|
package/build-style/style.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "9.
|
|
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.
|
|
85
|
-
"@wordpress/api-fetch": "^7.
|
|
86
|
-
"@wordpress/autop": "^4.
|
|
87
|
-
"@wordpress/base-styles": "^6.10.
|
|
88
|
-
"@wordpress/blob": "^4.
|
|
89
|
-
"@wordpress/block-editor": "^15.
|
|
90
|
-
"@wordpress/blocks": "^15.
|
|
91
|
-
"@wordpress/components": "^30.7.
|
|
92
|
-
"@wordpress/compose": "^7.
|
|
93
|
-
"@wordpress/core-data": "^7.
|
|
94
|
-
"@wordpress/data": "^10.
|
|
95
|
-
"@wordpress/date": "^5.
|
|
96
|
-
"@wordpress/deprecated": "^4.
|
|
97
|
-
"@wordpress/dom": "^4.
|
|
98
|
-
"@wordpress/element": "^6.
|
|
99
|
-
"@wordpress/escape-html": "^3.
|
|
100
|
-
"@wordpress/hooks": "^4.
|
|
101
|
-
"@wordpress/html-entities": "^4.
|
|
102
|
-
"@wordpress/i18n": "^6.
|
|
103
|
-
"@wordpress/icons": "^11.
|
|
104
|
-
"@wordpress/interactivity": "^6.
|
|
105
|
-
"@wordpress/interactivity-router": "^2.
|
|
106
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
107
|
-
"@wordpress/keycodes": "^4.
|
|
108
|
-
"@wordpress/latex-to-mathml": "^1.
|
|
109
|
-
"@wordpress/notices": "^5.
|
|
110
|
-
"@wordpress/patterns": "^2.
|
|
111
|
-
"@wordpress/primitives": "^4.
|
|
112
|
-
"@wordpress/private-apis": "^1.
|
|
113
|
-
"@wordpress/reusable-blocks": "^5.
|
|
114
|
-
"@wordpress/rich-text": "^7.
|
|
115
|
-
"@wordpress/server-side-render": "^6.
|
|
116
|
-
"@wordpress/url": "^4.
|
|
117
|
-
"@wordpress/viewport": "^6.
|
|
118
|
-
"@wordpress/wordcount": "^4.
|
|
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": "
|
|
136
|
+
"gitHead": "ceebff807958d2e8fc755b5a20473939c78b4d1d"
|
|
137
137
|
}
|
package/src/accordion/block.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "core/accordion",
|
|
5
5
|
"title": "Accordion",
|
|
6
6
|
"category": "design",
|
|
7
|
-
"description": "Displays a
|
|
7
|
+
"description": "Displays a foldable layout that groups content in collapsible sections.",
|
|
8
8
|
"example": {},
|
|
9
9
|
"supports": {
|
|
10
10
|
"anchor": true,
|
package/src/accordion/edit.js
CHANGED
|
@@ -102,22 +102,22 @@ export default function Edit( {
|
|
|
102
102
|
return (
|
|
103
103
|
<>
|
|
104
104
|
{ isSingleSelected && ! isContentOnlyMode && (
|
|
105
|
-
|
|
106
|
-
<
|
|
107
|
-
<
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
</
|
|
120
|
-
|
|
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
|
|
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": "
|
|
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": "
|
|
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
|
-
"
|
|
12
|
-
"type": "
|
|
13
|
-
"default":
|
|
14
|
-
"enum": [ "auto", "postWithTerms", "postWithAncestors" ]
|
|
11
|
+
"prefersTaxonomy": {
|
|
12
|
+
"type": "boolean",
|
|
13
|
+
"default": false
|
|
15
14
|
},
|
|
16
15
|
"separator": {
|
|
17
16
|
"type": "string",
|