@wordpress/block-library 9.35.1-next.dc3f6d3c1.0 → 9.36.1-next.6deb34194.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/view.js +46 -4
- package/build/accordion/view.js.map +2 -2
- package/build/accordion-heading/block.json +1 -1
- package/build/accordion-heading/deprecated.js +1 -1
- package/build/accordion-heading/deprecated.js.map +2 -2
- package/build/accordion-panel/block.json +1 -1
- package/build/audio/index.js +13 -10
- package/build/audio/index.js.map +3 -3
- package/build/avatar/edit.js +13 -38
- package/build/avatar/edit.js.map +2 -2
- package/build/breadcrumbs/block.json +3 -2
- package/build/breadcrumbs/edit.js +18 -18
- package/build/breadcrumbs/edit.js.map +2 -2
- package/build/button/index.js +14 -11
- package/build/button/index.js.map +3 -3
- package/build/code/index.js +10 -7
- package/build/code/index.js.map +3 -3
- package/build/comments-pagination-numbers/block.json +7 -0
- package/build/cover/edit/block-controls.js +37 -3
- package/build/cover/edit/block-controls.js.map +3 -3
- package/build/cover/edit/cover-placeholder.js +0 -1
- package/build/cover/edit/cover-placeholder.js.map +2 -2
- package/build/cover/edit/embed-video-url-input.js +83 -0
- package/build/cover/edit/embed-video-url-input.js.map +7 -0
- package/build/cover/edit/index.js +60 -0
- package/build/cover/edit/index.js.map +2 -2
- package/build/cover/embed-video-utils.js +151 -0
- package/build/cover/embed-video-utils.js.map +7 -0
- package/build/cover/index.js +11 -5
- package/build/cover/index.js.map +3 -3
- package/build/cover/save.js +12 -0
- package/build/cover/save.js.map +2 -2
- package/build/cover/shared.js +3 -0
- package/build/cover/shared.js.map +2 -2
- package/build/details/index.js +10 -7
- package/build/details/index.js.map +3 -3
- package/build/file/index.js +15 -15
- package/build/file/index.js.map +3 -3
- package/build/freeform/block.json +1 -1
- package/build/gallery/edit.js +1 -3
- package/build/gallery/edit.js.map +2 -2
- package/build/gallery/transforms.js +7 -3
- package/build/gallery/transforms.js.map +2 -2
- package/build/heading/index.js +10 -7
- package/build/heading/index.js.map +3 -3
- package/build/html/modal.js +141 -121
- package/build/html/modal.js.map +3 -3
- package/build/image/edit.js +0 -1
- package/build/image/edit.js.map +2 -2
- package/build/image/image.js +0 -1
- package/build/image/image.js.map +2 -2
- package/build/image/index.js +19 -19
- package/build/image/index.js.map +3 -3
- package/build/index.js +9 -3
- package/build/index.js.map +2 -2
- package/build/list-item/index.js +9 -7
- package/build/list-item/index.js.map +3 -3
- package/build/math/block.json +28 -1
- package/build/math/edit.js +17 -2
- package/build/math/edit.js.map +2 -2
- package/build/media-text/index.js +16 -9
- package/build/media-text/index.js.map +3 -3
- package/build/media-text/media-container.js +0 -2
- package/build/media-text/media-container.js.map +2 -2
- package/build/missing/block.json +1 -1
- package/build/missing/edit.js +2 -2
- package/build/missing/edit.js.map +1 -1
- package/build/more/index.js +10 -7
- package/build/more/index.js.map +3 -3
- package/build/navigation-link/edit.js +36 -11
- package/build/navigation-link/edit.js.map +2 -2
- package/build/navigation-link/index.js +12 -9
- package/build/navigation-link/index.js.map +3 -3
- package/build/navigation-submenu/index.js +12 -9
- package/build/navigation-submenu/index.js.map +3 -3
- package/build/page-list-item/edit.js +4 -3
- package/build/page-list-item/edit.js.map +2 -2
- package/build/paragraph/deprecated-attributes.js +68 -0
- package/build/paragraph/deprecated-attributes.js.map +7 -0
- package/build/paragraph/edit.js +2 -0
- package/build/paragraph/edit.js.map +3 -3
- package/build/paragraph/index.js +10 -7
- package/build/paragraph/index.js.map +3 -3
- package/build/pattern/block.json +1 -1
- package/build/post-title/edit.js +6 -4
- package/build/post-title/edit.js.map +2 -2
- package/build/preformatted/index.js +10 -7
- package/build/preformatted/index.js.map +3 -3
- package/build/pullquote/index.js +12 -12
- package/build/pullquote/index.js.map +3 -3
- package/build/search/index.js +15 -17
- package/build/search/index.js.map +3 -3
- package/build/social-link/index.js +12 -9
- package/build/social-link/index.js.map +3 -3
- package/build/template-part/edit/index.js +37 -7
- package/build/template-part/edit/index.js.map +2 -2
- package/build/template-part/edit/utils/get-template-part-icon.js +9 -4
- package/build/template-part/edit/utils/get-template-part-icon.js.map +3 -3
- package/build/template-part/edit/utils/hooks.js +2 -3
- package/build/template-part/edit/utils/hooks.js.map +2 -2
- package/build/term-count/index.js +1 -0
- package/build/term-count/index.js.map +2 -2
- package/build/term-name/index.js +1 -0
- package/build/term-name/index.js.map +2 -2
- package/build/verse/index.js +10 -7
- package/build/verse/index.js.map +3 -3
- package/build/video/index.js +13 -10
- package/build/video/index.js.map +3 -3
- package/build-module/accordion/view.js +46 -4
- package/build-module/accordion/view.js.map +2 -2
- package/build-module/accordion-heading/block.json +1 -1
- package/build-module/accordion-heading/deprecated.js +1 -1
- package/build-module/accordion-heading/deprecated.js.map +2 -2
- package/build-module/accordion-panel/block.json +1 -1
- package/build-module/audio/index.js +13 -10
- package/build-module/audio/index.js.map +2 -2
- package/build-module/avatar/edit.js +13 -38
- package/build-module/avatar/edit.js.map +2 -2
- package/build-module/breadcrumbs/block.json +3 -2
- package/build-module/breadcrumbs/edit.js +18 -18
- package/build-module/breadcrumbs/edit.js.map +2 -2
- package/build-module/button/index.js +14 -11
- package/build-module/button/index.js.map +2 -2
- package/build-module/code/index.js +10 -7
- package/build-module/code/index.js.map +2 -2
- package/build-module/comments-pagination-numbers/block.json +7 -0
- package/build-module/cover/edit/block-controls.js +27 -3
- package/build-module/cover/edit/block-controls.js.map +2 -2
- package/build-module/cover/edit/cover-placeholder.js +0 -1
- package/build-module/cover/edit/cover-placeholder.js.map +2 -2
- package/build-module/cover/edit/embed-video-url-input.js +67 -0
- package/build-module/cover/edit/embed-video-url-input.js.map +7 -0
- package/build-module/cover/edit/index.js +61 -0
- package/build-module/cover/edit/index.js.map +2 -2
- package/build-module/cover/embed-video-utils.js +122 -0
- package/build-module/cover/embed-video-utils.js.map +7 -0
- package/build-module/cover/index.js +11 -5
- package/build-module/cover/index.js.map +2 -2
- package/build-module/cover/save.js +13 -0
- package/build-module/cover/save.js.map +2 -2
- package/build-module/cover/shared.js +2 -0
- package/build-module/cover/shared.js.map +2 -2
- package/build-module/details/index.js +10 -7
- package/build-module/details/index.js.map +2 -2
- package/build-module/file/index.js +15 -15
- package/build-module/file/index.js.map +2 -2
- package/build-module/freeform/block.json +1 -1
- package/build-module/gallery/edit.js +1 -3
- package/build-module/gallery/edit.js.map +2 -2
- package/build-module/gallery/transforms.js +7 -3
- package/build-module/gallery/transforms.js.map +2 -2
- package/build-module/heading/index.js +10 -7
- package/build-module/heading/index.js.map +2 -2
- package/build-module/html/modal.js +143 -122
- package/build-module/html/modal.js.map +2 -2
- package/build-module/image/edit.js +0 -1
- package/build-module/image/edit.js.map +2 -2
- package/build-module/image/image.js +0 -1
- package/build-module/image/image.js.map +2 -2
- package/build-module/image/index.js +19 -19
- package/build-module/image/index.js.map +2 -2
- package/build-module/index.js +9 -3
- package/build-module/index.js.map +2 -2
- package/build-module/list-item/index.js +9 -7
- package/build-module/list-item/index.js.map +2 -2
- package/build-module/math/block.json +28 -1
- package/build-module/math/edit.js +18 -3
- package/build-module/math/edit.js.map +2 -2
- package/build-module/media-text/index.js +16 -9
- package/build-module/media-text/index.js.map +2 -2
- package/build-module/media-text/media-container.js +0 -2
- package/build-module/media-text/media-container.js.map +2 -2
- package/build-module/missing/block.json +1 -1
- package/build-module/missing/edit.js +2 -2
- package/build-module/missing/edit.js.map +1 -1
- package/build-module/more/index.js +10 -7
- package/build-module/more/index.js.map +2 -2
- package/build-module/navigation-link/edit.js +37 -12
- package/build-module/navigation-link/edit.js.map +2 -2
- package/build-module/navigation-link/index.js +12 -9
- package/build-module/navigation-link/index.js.map +2 -2
- package/build-module/navigation-submenu/index.js +12 -9
- package/build-module/navigation-submenu/index.js.map +2 -2
- package/build-module/page-list-item/edit.js +4 -3
- package/build-module/page-list-item/edit.js.map +2 -2
- package/build-module/paragraph/deprecated-attributes.js +37 -0
- package/build-module/paragraph/deprecated-attributes.js.map +7 -0
- package/build-module/paragraph/edit.js +2 -0
- package/build-module/paragraph/edit.js.map +2 -2
- package/build-module/paragraph/index.js +10 -7
- package/build-module/paragraph/index.js.map +2 -2
- package/build-module/pattern/block.json +1 -1
- package/build-module/post-title/edit.js +6 -4
- package/build-module/post-title/edit.js.map +2 -2
- package/build-module/preformatted/index.js +10 -7
- package/build-module/preformatted/index.js.map +2 -2
- package/build-module/pullquote/index.js +12 -12
- package/build-module/pullquote/index.js.map +2 -2
- package/build-module/search/index.js +15 -17
- package/build-module/search/index.js.map +2 -2
- package/build-module/social-link/index.js +12 -9
- package/build-module/social-link/index.js.map +2 -2
- package/build-module/template-part/edit/index.js +37 -7
- package/build-module/template-part/edit/index.js.map +2 -2
- package/build-module/template-part/edit/utils/get-template-part-icon.js +10 -4
- package/build-module/template-part/edit/utils/get-template-part-icon.js.map +2 -2
- package/build-module/template-part/edit/utils/hooks.js +2 -3
- package/build-module/template-part/edit/utils/hooks.js.map +2 -2
- package/build-module/term-count/index.js +1 -0
- package/build-module/term-count/index.js.map +2 -2
- package/build-module/term-name/index.js +1 -0
- package/build-module/term-name/index.js.map +2 -2
- package/build-module/verse/index.js +10 -7
- package/build-module/verse/index.js.map +2 -2
- package/build-module/video/index.js +13 -10
- package/build-module/video/index.js.map +2 -2
- package/build-style/accordion/style-rtl.css +3 -0
- package/build-style/accordion/style.css +3 -0
- package/build-style/accordion-heading/style-rtl.css +2 -19
- package/build-style/accordion-heading/style.css +2 -19
- package/build-style/accordion-item/style-rtl.css +0 -7
- package/build-style/accordion-item/style.css +0 -7
- package/build-style/accordion-panel/style-rtl.css +1 -4
- package/build-style/accordion-panel/style.css +1 -4
- package/build-style/classic-rtl.css +24 -0
- package/build-style/classic.css +24 -0
- package/build-style/common-rtl.css +4 -4
- package/build-style/common.css +4 -0
- package/build-style/cover/style-rtl.css +47 -0
- package/build-style/cover/style.css +47 -0
- package/build-style/editor-rtl.css +11 -13
- package/build-style/editor.css +11 -13
- package/build-style/html/editor-rtl.css +11 -13
- package/build-style/html/editor.css +11 -13
- package/build-style/style-rtl.css +59 -33
- package/build-style/style.css +59 -29
- package/build-style/verse/style-rtl.css +2 -0
- package/build-style/verse/style.css +2 -0
- package/package.json +40 -38
- package/src/accordion/style.scss +4 -0
- package/src/accordion/view.js +60 -3
- package/src/accordion-heading/block.json +1 -1
- package/src/accordion-heading/deprecated.js +1 -1
- package/src/accordion-heading/style.scss +2 -38
- package/src/accordion-item/index.php +1 -0
- package/src/accordion-item/style.scss +2 -9
- package/src/accordion-panel/block.json +1 -1
- package/src/accordion-panel/style.scss +1 -5
- package/src/audio/index.js +14 -10
- package/src/avatar/edit.js +68 -83
- package/src/breadcrumbs/block.json +3 -2
- package/src/breadcrumbs/edit.js +18 -18
- package/src/breadcrumbs/index.php +103 -93
- package/src/button/index.js +15 -11
- package/src/classic.scss +38 -0
- package/src/code/index.js +11 -7
- package/src/comments-pagination-numbers/block.json +7 -0
- package/src/common.scss +4 -0
- package/src/cover/edit/block-controls.js +26 -2
- package/src/cover/edit/cover-placeholder.js +0 -1
- package/src/cover/edit/embed-video-url-input.js +74 -0
- package/src/cover/edit/index.js +81 -0
- package/src/cover/embed-video-utils.js +196 -0
- package/src/cover/index.js +12 -5
- package/src/cover/index.php +106 -0
- package/src/cover/save.js +14 -0
- package/src/cover/shared.js +1 -0
- package/src/cover/style.scss +47 -0
- package/src/details/index.js +11 -7
- package/src/file/index.js +16 -15
- package/src/freeform/block.json +1 -1
- package/src/gallery/edit.js +4 -3
- package/src/gallery/transforms.js +6 -2
- package/src/heading/index.js +11 -7
- package/src/html/editor.scss +10 -15
- package/src/html/modal.js +54 -30
- package/src/image/edit.js +0 -1
- package/src/image/image.js +0 -1
- package/src/image/index.js +20 -19
- package/src/image/index.php +1 -0
- package/src/index.js +9 -3
- package/src/list-item/index.js +10 -7
- package/src/math/block.json +28 -1
- package/src/math/edit.js +18 -3
- package/src/media-text/index.js +17 -9
- package/src/media-text/media-container.js +0 -2
- package/src/missing/block.json +1 -1
- package/src/missing/edit.js +2 -2
- package/src/more/index.js +11 -7
- package/src/navigation-link/edit.js +72 -26
- package/src/navigation-link/index.js +13 -9
- package/src/navigation-submenu/index.js +13 -9
- package/src/page-list/index.php +3 -4
- package/src/page-list-item/edit.js +4 -3
- package/src/paragraph/deprecated-attributes.js +45 -0
- package/src/paragraph/edit.js +2 -0
- package/src/paragraph/index.js +11 -7
- package/src/pattern/block.json +1 -1
- package/src/post-title/edit.js +8 -4
- package/src/post-title/index.php +1 -1
- package/src/preformatted/index.js +11 -7
- package/src/pullquote/index.js +13 -12
- package/src/search/index.js +15 -16
- package/src/social-link/index.js +13 -9
- package/src/style.scss +1 -0
- package/src/template-part/edit/index.js +44 -6
- package/src/template-part/edit/utils/get-template-part-icon.js +23 -4
- package/src/template-part/edit/utils/hooks.js +2 -4
- package/src/term-count/index.js +1 -0
- package/src/term-name/index.js +1 -0
- package/src/verse/index.js +11 -7
- package/src/verse/style.scss +4 -0
- package/src/video/index.js +14 -10
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/term-count/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { termCount as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\tedit,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],
|
|
5
|
-
"mappings": ";AAGA,SAAS,aAAa,YAAY;AAKlC,OAAO,eAAe;AACtB,OAAO,cAAc;AACrB,OAAO,UAAU;AAEjB,IAAM,EAAE,KAAK,IAAI;AAGV,IAAM,WAAW;AAAA,EACvB;AAAA,EACA;AACD;AAEO,IAAM,OAAO,MAAM,UAAW,EAAE,MAAM,UAAU,SAAS,CAAE;",
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { termCount as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {},\n\tedit,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],
|
|
5
|
+
"mappings": ";AAGA,SAAS,aAAa,YAAY;AAKlC,OAAO,eAAe;AACtB,OAAO,cAAc;AACrB,OAAO,UAAU;AAEjB,IAAM,EAAE,KAAK,IAAI;AAGV,IAAM,WAAW;AAAA,EACvB;AAAA,EACA,SAAS,CAAC;AAAA,EACV;AACD;AAEO,IAAM,OAAO,MAAM,UAAW,EAAE,MAAM,UAAU,SAAS,CAAE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/term-name/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { termName as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\tedit,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],
|
|
5
|
-
"mappings": ";AAGA,SAAS,YAAY,YAAY;AAKjC,OAAO,eAAe;AACtB,OAAO,cAAc;AACrB,OAAO,UAAU;AAEjB,IAAM,EAAE,KAAK,IAAI;AAGV,IAAM,WAAW;AAAA,EACvB;AAAA,EACA;AACD;AAEO,IAAM,OAAO,MAAM,UAAW,EAAE,MAAM,UAAU,SAAS,CAAE;",
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { termName as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {},\n\tedit,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],
|
|
5
|
+
"mappings": ";AAGA,SAAS,YAAY,YAAY;AAKjC,OAAO,eAAe;AACtB,OAAO,cAAc;AACrB,OAAO,UAAU;AAEjB,IAAM,EAAE,KAAK,IAAI;AAGV,IAAM,WAAW;AAAA,EACvB;AAAA,EACA,SAAS,CAAC;AAAA,EACV;AACD;AAEO,IAAM,OAAO,MAAM,UAAW,EAAE,MAAM,UAAU,SAAS,CAAE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
// packages/block-library/src/verse/index.js
|
|
2
2
|
import { __ } from "@wordpress/i18n";
|
|
3
3
|
import { verse as icon } from "@wordpress/icons";
|
|
4
|
+
import { privateApis as blocksPrivateApis } from "@wordpress/blocks";
|
|
4
5
|
import initBlock from "../utils/init-block";
|
|
5
6
|
import deprecated from "./deprecated";
|
|
6
7
|
import edit from "./edit";
|
|
7
8
|
import metadata from "./block.json";
|
|
8
9
|
import save from "./save";
|
|
9
10
|
import transforms from "./transforms";
|
|
11
|
+
import { unlock } from "../lock-unlock";
|
|
12
|
+
var { fieldsKey, formKey } = unlock(blocksPrivateApis);
|
|
10
13
|
var { name } = metadata;
|
|
11
14
|
var settings = {
|
|
12
15
|
icon,
|
|
@@ -30,17 +33,17 @@ var settings = {
|
|
|
30
33
|
edit,
|
|
31
34
|
save
|
|
32
35
|
};
|
|
33
|
-
if (window.
|
|
34
|
-
settings
|
|
36
|
+
if (window.__experimentalContentOnlyInspectorFields) {
|
|
37
|
+
settings[fieldsKey] = [
|
|
35
38
|
{
|
|
39
|
+
id: "content",
|
|
36
40
|
label: __("Content"),
|
|
37
|
-
type: "
|
|
38
|
-
shownByDefault: true,
|
|
39
|
-
mapping: {
|
|
40
|
-
value: "content"
|
|
41
|
-
}
|
|
41
|
+
type: "richtext"
|
|
42
42
|
}
|
|
43
43
|
];
|
|
44
|
+
settings[formKey] = {
|
|
45
|
+
fields: ["content"]
|
|
46
|
+
};
|
|
44
47
|
}
|
|
45
48
|
var init = () => initBlock({ name, metadata, settings });
|
|
46
49
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/verse/index.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { verse as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport deprecated from './deprecated';\nimport edit from './edit';\nimport metadata from './block.json';\nimport save from './save';\nimport transforms from './transforms';\n\nconst { name } = metadata;\n\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {\n\t\tattributes: {\n\t\t\t/* eslint-disable @wordpress/i18n-no-collapsible-whitespace */\n\t\t\t// translators: Sample content for the Verse block. Can be replaced with a more locale-adequate work.\n\t\t\tcontent: __(\n\t\t\t\t'WHAT was he doing, the great god Pan,\\n\tDown in the reeds by the river?\\nSpreading ruin and scattering ban,\\nSplashing and paddling with hoofs of a goat,\\nAnd breaking the golden lilies afloat\\n With the dragon-fly on the river.'\n\t\t\t),\n\t\t\t/* eslint-enable @wordpress/i18n-no-collapsible-whitespace */\n\t\t},\n\t},\n\ttransforms,\n\tdeprecated,\n\tmerge( attributes, attributesToMerge ) {\n\t\treturn {\n\t\t\tcontent: attributes.content + '\\n\\n' + attributesToMerge.content,\n\t\t};\n\t},\n\tedit,\n\tsave,\n};\n\nif ( window.
|
|
5
|
-
"mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,SAAS,YAAY;
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { verse 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\t/* eslint-disable @wordpress/i18n-no-collapsible-whitespace */\n\t\t\t// translators: Sample content for the Verse block. Can be replaced with a more locale-adequate work.\n\t\t\tcontent: __(\n\t\t\t\t'WHAT was he doing, the great god Pan,\\n\tDown in the reeds by the river?\\nSpreading ruin and scattering ban,\\nSplashing and paddling with hoofs of a goat,\\nAnd breaking the golden lilies afloat\\n With the dragon-fly on the river.'\n\t\t\t),\n\t\t\t/* eslint-enable @wordpress/i18n-no-collapsible-whitespace */\n\t\t},\n\t},\n\ttransforms,\n\tdeprecated,\n\tmerge( attributes, attributesToMerge ) {\n\t\treturn {\n\t\t\tcontent: attributes.content + '\\n\\n' + attributesToMerge.content,\n\t\t};\n\t},\n\tedit,\n\tsave,\n};\n\nif ( window.__experimentalContentOnlyInspectorFields ) {\n\tsettings[ fieldsKey ] = [\n\t\t{\n\t\t\tid: 'content',\n\t\t\tlabel: __( 'Content' ),\n\t\t\ttype: 'richtext',\n\t\t},\n\t];\n\tsettings[ formKey ] = {\n\t\tfields: [ 'content' ],\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;AAAA;AAAA,MAGX,SAAS;AAAA,QACR;AAAA,MACD;AAAA;AAAA,IAED;AAAA,EACD;AAAA,EACA;AAAA,EACA;AAAA,EACA,MAAO,YAAY,mBAAoB;AACtC,WAAO;AAAA,MACN,SAAS,WAAW,UAAU,SAAS,kBAAkB;AAAA,IAC1D;AAAA,EACD;AAAA,EACA;AAAA,EACA;AACD;AAEA,IAAK,OAAO,0CAA2C;AACtD,WAAU,SAAU,IAAI;AAAA,IACvB;AAAA,MACC,IAAI;AAAA,MACJ,OAAO,GAAI,SAAU;AAAA,MACrB,MAAM;AAAA,IACP;AAAA,EACD;AACA,WAAU,OAAQ,IAAI;AAAA,IACrB,QAAQ,CAAE,SAAU;AAAA,EACrB;AACD;AAEO,IAAM,OAAO,MAAM,UAAW,EAAE,MAAM,UAAU,SAAS,CAAE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
// packages/block-library/src/video/index.js
|
|
2
2
|
import { __ } from "@wordpress/i18n";
|
|
3
3
|
import { video as icon } from "@wordpress/icons";
|
|
4
|
+
import { privateApis as blocksPrivateApis } from "@wordpress/blocks";
|
|
4
5
|
import initBlock from "../utils/init-block";
|
|
5
6
|
import deprecated from "./deprecated";
|
|
6
7
|
import edit from "./edit";
|
|
7
8
|
import metadata from "./block.json";
|
|
8
9
|
import save from "./save";
|
|
9
10
|
import transforms from "./transforms";
|
|
11
|
+
import { unlock } from "../lock-unlock";
|
|
12
|
+
var { fieldsKey, formKey } = unlock(blocksPrivateApis);
|
|
10
13
|
var { name } = metadata;
|
|
11
14
|
var settings = {
|
|
12
15
|
icon,
|
|
@@ -22,15 +25,15 @@ var settings = {
|
|
|
22
25
|
edit,
|
|
23
26
|
save
|
|
24
27
|
};
|
|
25
|
-
if (window.
|
|
26
|
-
settings
|
|
28
|
+
if (window.__experimentalContentOnlyInspectorFields) {
|
|
29
|
+
settings[fieldsKey] = [
|
|
27
30
|
{
|
|
31
|
+
id: "video",
|
|
28
32
|
label: __("Video"),
|
|
29
|
-
type: "
|
|
30
|
-
shownByDefault: true,
|
|
33
|
+
type: "media",
|
|
31
34
|
mapping: {
|
|
32
35
|
id: "id",
|
|
33
|
-
|
|
36
|
+
url: "src",
|
|
34
37
|
caption: "caption",
|
|
35
38
|
poster: "poster"
|
|
36
39
|
},
|
|
@@ -40,14 +43,14 @@ if (window.__experimentalContentOnlyPatternInsertion) {
|
|
|
40
43
|
}
|
|
41
44
|
},
|
|
42
45
|
{
|
|
46
|
+
id: "caption",
|
|
43
47
|
label: __("Caption"),
|
|
44
|
-
type: "
|
|
45
|
-
shownByDefault: false,
|
|
46
|
-
mapping: {
|
|
47
|
-
value: "caption"
|
|
48
|
-
}
|
|
48
|
+
type: "richtext"
|
|
49
49
|
}
|
|
50
50
|
];
|
|
51
|
+
settings[formKey] = {
|
|
52
|
+
fields: ["video"]
|
|
53
|
+
};
|
|
51
54
|
}
|
|
52
55
|
var init = () => initBlock({ name, metadata, settings });
|
|
53
56
|
export {
|
|
@@ -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';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport deprecated from './deprecated';\nimport edit from './edit';\nimport metadata from './block.json';\nimport save from './save';\nimport transforms from './transforms';\n\nconst { name } = metadata;\n\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {\n\t\tattributes: {\n\t\t\tsrc: 'https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm',\n\t\t\t// translators: Caption accompanying a video of the wood thrush singing, which serves as an example for the Video block.\n\t\t\tcaption: __( 'Wood thrush singing in Central Park, NYC.' ),\n\t\t},\n\t},\n\ttransforms,\n\tdeprecated,\n\tedit,\n\tsave,\n};\n\nif ( window.
|
|
5
|
-
"mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,SAAS,YAAY;
|
|
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;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
.wp-block-accordion-heading.wp-block-accordion-heading {
|
|
2
|
-
min-width: 100%;
|
|
3
|
-
margin: 0;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
.wp-block-accordion-heading__toggle {
|
|
7
2
|
font-family: inherit;
|
|
8
3
|
font-size: inherit;
|
|
@@ -13,7 +8,9 @@
|
|
|
13
8
|
text-decoration: inherit;
|
|
14
9
|
word-spacing: inherit;
|
|
15
10
|
font-style: inherit;
|
|
11
|
+
background: none;
|
|
16
12
|
border: none;
|
|
13
|
+
color: inherit;
|
|
17
14
|
padding: var(--wp--preset--spacing--20, 1em) 0;
|
|
18
15
|
cursor: pointer;
|
|
19
16
|
overflow: hidden;
|
|
@@ -21,24 +18,10 @@
|
|
|
21
18
|
align-items: center;
|
|
22
19
|
text-align: inherit;
|
|
23
20
|
width: 100%;
|
|
24
|
-
background-color: inherit !important;
|
|
25
|
-
color: inherit !important;
|
|
26
21
|
}
|
|
27
22
|
.wp-block-accordion-heading__toggle:not(:focus-visible) {
|
|
28
23
|
outline: none;
|
|
29
24
|
}
|
|
30
|
-
.wp-block-accordion-heading__toggle:hover, .wp-block-accordion-heading__toggle:focus {
|
|
31
|
-
text-decoration: none;
|
|
32
|
-
background-color: inherit !important;
|
|
33
|
-
box-shadow: none;
|
|
34
|
-
color: inherit;
|
|
35
|
-
border: none;
|
|
36
|
-
padding: var(--wp--preset--spacing--20, 1em) 0;
|
|
37
|
-
}
|
|
38
|
-
.wp-block-accordion-heading__toggle:focus-visible {
|
|
39
|
-
outline: auto;
|
|
40
|
-
outline-offset: 0;
|
|
41
|
-
}
|
|
42
25
|
.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
|
|
43
26
|
text-decoration: underline;
|
|
44
27
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
.wp-block-accordion-heading.wp-block-accordion-heading {
|
|
2
|
-
min-width: 100%;
|
|
3
|
-
margin: 0;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
.wp-block-accordion-heading__toggle {
|
|
7
2
|
font-family: inherit;
|
|
8
3
|
font-size: inherit;
|
|
@@ -13,7 +8,9 @@
|
|
|
13
8
|
text-decoration: inherit;
|
|
14
9
|
word-spacing: inherit;
|
|
15
10
|
font-style: inherit;
|
|
11
|
+
background: none;
|
|
16
12
|
border: none;
|
|
13
|
+
color: inherit;
|
|
17
14
|
padding: var(--wp--preset--spacing--20, 1em) 0;
|
|
18
15
|
cursor: pointer;
|
|
19
16
|
overflow: hidden;
|
|
@@ -21,24 +18,10 @@
|
|
|
21
18
|
align-items: center;
|
|
22
19
|
text-align: inherit;
|
|
23
20
|
width: 100%;
|
|
24
|
-
background-color: inherit !important;
|
|
25
|
-
color: inherit !important;
|
|
26
21
|
}
|
|
27
22
|
.wp-block-accordion-heading__toggle:not(:focus-visible) {
|
|
28
23
|
outline: none;
|
|
29
24
|
}
|
|
30
|
-
.wp-block-accordion-heading__toggle:hover, .wp-block-accordion-heading__toggle:focus {
|
|
31
|
-
text-decoration: none;
|
|
32
|
-
background-color: inherit !important;
|
|
33
|
-
box-shadow: none;
|
|
34
|
-
color: inherit;
|
|
35
|
-
border: none;
|
|
36
|
-
padding: var(--wp--preset--spacing--20, 1em) 0;
|
|
37
|
-
}
|
|
38
|
-
.wp-block-accordion-heading__toggle:focus-visible {
|
|
39
|
-
outline: auto;
|
|
40
|
-
outline-offset: 0;
|
|
41
|
-
}
|
|
42
25
|
.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
|
|
43
26
|
text-decoration: underline;
|
|
44
27
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
.wp-block-accordion-item {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-rows: max-content 0fr;
|
|
4
|
-
}
|
|
5
|
-
.wp-block-accordion-item.is-open {
|
|
6
|
-
grid-template-rows: max-content 1fr;
|
|
7
|
-
}
|
|
8
1
|
.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
|
|
9
2
|
transform: rotate(-45deg);
|
|
10
3
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
.wp-block-accordion-item {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-rows: max-content 0fr;
|
|
4
|
-
}
|
|
5
|
-
.wp-block-accordion-item.is-open {
|
|
6
|
-
grid-template-rows: max-content 1fr;
|
|
7
|
-
}
|
|
8
1
|
.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
|
|
9
2
|
transform: rotate(45deg);
|
|
10
3
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
.wp-block-accordion-panel.wp-block-accordion-panel {
|
|
2
|
-
min-width: 100%;
|
|
3
|
-
}
|
|
4
|
-
.wp-block-accordion-panel.wp-block-accordion-panel[inert], .wp-block-accordion-panel.wp-block-accordion-panel[aria-hidden=true] {
|
|
1
|
+
.wp-block-accordion-panel[inert], .wp-block-accordion-panel[aria-hidden=true] {
|
|
5
2
|
display: none;
|
|
6
3
|
margin-block-start: 0;
|
|
7
4
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
.wp-block-accordion-panel.wp-block-accordion-panel {
|
|
2
|
-
min-width: 100%;
|
|
3
|
-
}
|
|
4
|
-
.wp-block-accordion-panel.wp-block-accordion-panel[inert], .wp-block-accordion-panel.wp-block-accordion-panel[aria-hidden=true] {
|
|
1
|
+
.wp-block-accordion-panel[inert], .wp-block-accordion-panel[aria-hidden=true] {
|
|
5
2
|
display: none;
|
|
6
3
|
margin-block-start: 0;
|
|
7
4
|
}
|
|
@@ -14,4 +14,28 @@
|
|
|
14
14
|
.wp-block-file__button {
|
|
15
15
|
background: #32373c;
|
|
16
16
|
color: #fff;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.wp-block-accordion-heading {
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.wp-block-accordion-heading__toggle {
|
|
24
|
+
background-color: inherit !important;
|
|
25
|
+
color: inherit !important;
|
|
26
|
+
}
|
|
27
|
+
.wp-block-accordion-heading__toggle:not(:focus-visible) {
|
|
28
|
+
outline: none;
|
|
29
|
+
}
|
|
30
|
+
.wp-block-accordion-heading__toggle:hover, .wp-block-accordion-heading__toggle:focus {
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
background-color: inherit !important;
|
|
33
|
+
box-shadow: none;
|
|
34
|
+
color: inherit;
|
|
35
|
+
border: none;
|
|
36
|
+
padding: var(--wp--preset--spacing--20, 1em) 0;
|
|
37
|
+
}
|
|
38
|
+
.wp-block-accordion-heading__toggle:focus-visible {
|
|
39
|
+
outline-offset: 0;
|
|
40
|
+
outline: auto;
|
|
17
41
|
}
|
package/build-style/classic.css
CHANGED
|
@@ -14,4 +14,28 @@
|
|
|
14
14
|
.wp-block-file__button {
|
|
15
15
|
background: #32373c;
|
|
16
16
|
color: #fff;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.wp-block-accordion-heading {
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.wp-block-accordion-heading__toggle {
|
|
24
|
+
background-color: inherit !important;
|
|
25
|
+
color: inherit !important;
|
|
26
|
+
}
|
|
27
|
+
.wp-block-accordion-heading__toggle:not(:focus-visible) {
|
|
28
|
+
outline: none;
|
|
29
|
+
}
|
|
30
|
+
.wp-block-accordion-heading__toggle:hover, .wp-block-accordion-heading__toggle:focus {
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
background-color: inherit !important;
|
|
33
|
+
box-shadow: none;
|
|
34
|
+
color: inherit;
|
|
35
|
+
border: none;
|
|
36
|
+
padding: var(--wp--preset--spacing--20, 1em) 0;
|
|
37
|
+
}
|
|
38
|
+
.wp-block-accordion-heading__toggle:focus-visible {
|
|
39
|
+
outline-offset: 0;
|
|
40
|
+
outline: auto;
|
|
17
41
|
}
|
|
@@ -255,7 +255,7 @@ html :where([style*=border-top-color]) {
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
html :where([style*=border-right-color]) {
|
|
258
|
-
border-
|
|
258
|
+
border-right-style: solid;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
html :where([style*=border-bottom-color]) {
|
|
@@ -263,7 +263,7 @@ html :where([style*=border-bottom-color]) {
|
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
html :where([style*=border-left-color]) {
|
|
266
|
-
border-
|
|
266
|
+
border-left-style: solid;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
html :where([style*=border-width]) {
|
|
@@ -275,7 +275,7 @@ html :where([style*=border-top-width]) {
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
html :where([style*=border-right-width]) {
|
|
278
|
-
border-
|
|
278
|
+
border-right-style: solid;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
html :where([style*=border-bottom-width]) {
|
|
@@ -283,7 +283,7 @@ html :where([style*=border-bottom-width]) {
|
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
html :where([style*=border-left-width]) {
|
|
286
|
-
border-
|
|
286
|
+
border-left-style: solid;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
/**
|
package/build-style/common.css
CHANGED
|
@@ -257,6 +257,7 @@ html :where([style*=border-top-color]) {
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
html :where([style*=border-right-color]) {
|
|
260
|
+
/*rtl:ignore*/
|
|
260
261
|
border-right-style: solid;
|
|
261
262
|
}
|
|
262
263
|
|
|
@@ -265,6 +266,7 @@ html :where([style*=border-bottom-color]) {
|
|
|
265
266
|
}
|
|
266
267
|
|
|
267
268
|
html :where([style*=border-left-color]) {
|
|
269
|
+
/*rtl:ignore*/
|
|
268
270
|
border-left-style: solid;
|
|
269
271
|
}
|
|
270
272
|
|
|
@@ -277,6 +279,7 @@ html :where([style*=border-top-width]) {
|
|
|
277
279
|
}
|
|
278
280
|
|
|
279
281
|
html :where([style*=border-right-width]) {
|
|
282
|
+
/*rtl:ignore*/
|
|
280
283
|
border-right-style: solid;
|
|
281
284
|
}
|
|
282
285
|
|
|
@@ -285,6 +288,7 @@ html :where([style*=border-bottom-width]) {
|
|
|
285
288
|
}
|
|
286
289
|
|
|
287
290
|
html :where([style*=border-left-width]) {
|
|
291
|
+
/*rtl:ignore*/
|
|
288
292
|
border-left-style: solid;
|
|
289
293
|
}
|
|
290
294
|
|
|
@@ -337,6 +337,50 @@
|
|
|
337
337
|
border: none;
|
|
338
338
|
box-shadow: none;
|
|
339
339
|
}
|
|
340
|
+
.wp-block-cover-image .wp-block-cover__embed-background,
|
|
341
|
+
.wp-block-cover .wp-block-cover__embed-background {
|
|
342
|
+
position: absolute;
|
|
343
|
+
top: 0;
|
|
344
|
+
right: 0;
|
|
345
|
+
left: 0;
|
|
346
|
+
bottom: 0;
|
|
347
|
+
margin: 0;
|
|
348
|
+
padding: 0;
|
|
349
|
+
width: 100%;
|
|
350
|
+
height: 100%;
|
|
351
|
+
max-width: none;
|
|
352
|
+
max-height: none;
|
|
353
|
+
outline: none;
|
|
354
|
+
border: none;
|
|
355
|
+
box-shadow: none;
|
|
356
|
+
pointer-events: none;
|
|
357
|
+
}
|
|
358
|
+
.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper,
|
|
359
|
+
.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper {
|
|
360
|
+
position: absolute;
|
|
361
|
+
top: 0;
|
|
362
|
+
right: 0;
|
|
363
|
+
left: 0;
|
|
364
|
+
bottom: 0;
|
|
365
|
+
margin: 0;
|
|
366
|
+
padding: 0;
|
|
367
|
+
width: 100%;
|
|
368
|
+
height: 100%;
|
|
369
|
+
}
|
|
370
|
+
.wp-block-cover-image .wp-block-cover__embed-background iframe,
|
|
371
|
+
.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,
|
|
372
|
+
.wp-block-cover .wp-block-cover__embed-background iframe,
|
|
373
|
+
.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper iframe {
|
|
374
|
+
position: absolute;
|
|
375
|
+
top: 50%;
|
|
376
|
+
right: 50%;
|
|
377
|
+
width: 100vw;
|
|
378
|
+
height: 100vh;
|
|
379
|
+
min-width: 100%;
|
|
380
|
+
min-height: 100%;
|
|
381
|
+
transform: translate(50%, -50%);
|
|
382
|
+
pointer-events: none;
|
|
383
|
+
}
|
|
340
384
|
|
|
341
385
|
.wp-block-cover-image.has-parallax,
|
|
342
386
|
.wp-block-cover.has-parallax,
|
|
@@ -446,6 +490,9 @@ section.wp-block-cover-image > h2,
|
|
|
446
490
|
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__video-background {
|
|
447
491
|
z-index: 0;
|
|
448
492
|
}
|
|
493
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__embed-background {
|
|
494
|
+
z-index: 0;
|
|
495
|
+
}
|
|
449
496
|
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__image-background {
|
|
450
497
|
z-index: 0;
|
|
451
498
|
}
|
|
@@ -339,6 +339,50 @@
|
|
|
339
339
|
border: none;
|
|
340
340
|
box-shadow: none;
|
|
341
341
|
}
|
|
342
|
+
.wp-block-cover-image .wp-block-cover__embed-background,
|
|
343
|
+
.wp-block-cover .wp-block-cover__embed-background {
|
|
344
|
+
position: absolute;
|
|
345
|
+
top: 0;
|
|
346
|
+
left: 0;
|
|
347
|
+
right: 0;
|
|
348
|
+
bottom: 0;
|
|
349
|
+
margin: 0;
|
|
350
|
+
padding: 0;
|
|
351
|
+
width: 100%;
|
|
352
|
+
height: 100%;
|
|
353
|
+
max-width: none;
|
|
354
|
+
max-height: none;
|
|
355
|
+
outline: none;
|
|
356
|
+
border: none;
|
|
357
|
+
box-shadow: none;
|
|
358
|
+
pointer-events: none;
|
|
359
|
+
}
|
|
360
|
+
.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper,
|
|
361
|
+
.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper {
|
|
362
|
+
position: absolute;
|
|
363
|
+
top: 0;
|
|
364
|
+
left: 0;
|
|
365
|
+
right: 0;
|
|
366
|
+
bottom: 0;
|
|
367
|
+
margin: 0;
|
|
368
|
+
padding: 0;
|
|
369
|
+
width: 100%;
|
|
370
|
+
height: 100%;
|
|
371
|
+
}
|
|
372
|
+
.wp-block-cover-image .wp-block-cover__embed-background iframe,
|
|
373
|
+
.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,
|
|
374
|
+
.wp-block-cover .wp-block-cover__embed-background iframe,
|
|
375
|
+
.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper iframe {
|
|
376
|
+
position: absolute;
|
|
377
|
+
top: 50%;
|
|
378
|
+
left: 50%;
|
|
379
|
+
width: 100vw;
|
|
380
|
+
height: 100vh;
|
|
381
|
+
min-width: 100%;
|
|
382
|
+
min-height: 100%;
|
|
383
|
+
transform: translate(-50%, -50%);
|
|
384
|
+
pointer-events: none;
|
|
385
|
+
}
|
|
342
386
|
|
|
343
387
|
.wp-block-cover-image.has-parallax,
|
|
344
388
|
.wp-block-cover.has-parallax,
|
|
@@ -448,6 +492,9 @@ section.wp-block-cover-image > h2,
|
|
|
448
492
|
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__video-background {
|
|
449
493
|
z-index: 0;
|
|
450
494
|
}
|
|
495
|
+
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__embed-background {
|
|
496
|
+
z-index: 0;
|
|
497
|
+
}
|
|
451
498
|
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__image-background {
|
|
452
499
|
z-index: 0;
|
|
453
500
|
}
|
|
@@ -1113,19 +1113,20 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
|
|
|
1113
1113
|
right: 0;
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
|
-
.block-library-html__modal
|
|
1117
|
-
|
|
1118
|
-
flex-direction: column;
|
|
1119
|
-
padding: 0;
|
|
1120
|
-
min-height: 70vh;
|
|
1116
|
+
.block-library-html__modal {
|
|
1117
|
+
height: 100%;
|
|
1121
1118
|
}
|
|
1122
1119
|
.block-library-html__modal .components-modal__children-container {
|
|
1123
1120
|
height: 100%;
|
|
1124
|
-
padding: 16px;
|
|
1125
1121
|
}
|
|
1126
1122
|
|
|
1127
1123
|
.block-library-html__modal-tabs {
|
|
1128
|
-
|
|
1124
|
+
overflow-y: auto;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.block-library-html__modal-content {
|
|
1128
|
+
flex: 1;
|
|
1129
|
+
min-height: 0;
|
|
1129
1130
|
}
|
|
1130
1131
|
|
|
1131
1132
|
.block-library-html__modal-tab {
|
|
@@ -1165,12 +1166,9 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
|
|
|
1165
1166
|
display: flex;
|
|
1166
1167
|
align-items: center;
|
|
1167
1168
|
justify-content: center;
|
|
1168
|
-
padding:
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
.block-library-html__modal-actions {
|
|
1172
|
-
margin-top: 16px;
|
|
1173
|
-
padding: 0 32px 32px;
|
|
1169
|
+
padding: 16px;
|
|
1170
|
+
flex: 1;
|
|
1171
|
+
min-height: 0;
|
|
1174
1172
|
}
|
|
1175
1173
|
|
|
1176
1174
|
.wp-block-image.wp-block-image .block-editor-media-placeholder.is-small {
|
package/build-style/editor.css
CHANGED
|
@@ -1119,19 +1119,20 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
|
|
|
1119
1119
|
left: 0;
|
|
1120
1120
|
}
|
|
1121
1121
|
|
|
1122
|
-
.block-library-html__modal
|
|
1123
|
-
|
|
1124
|
-
flex-direction: column;
|
|
1125
|
-
padding: 0;
|
|
1126
|
-
min-height: 70vh;
|
|
1122
|
+
.block-library-html__modal {
|
|
1123
|
+
height: 100%;
|
|
1127
1124
|
}
|
|
1128
1125
|
.block-library-html__modal .components-modal__children-container {
|
|
1129
1126
|
height: 100%;
|
|
1130
|
-
padding: 16px;
|
|
1131
1127
|
}
|
|
1132
1128
|
|
|
1133
1129
|
.block-library-html__modal-tabs {
|
|
1134
|
-
|
|
1130
|
+
overflow-y: auto;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
.block-library-html__modal-content {
|
|
1134
|
+
flex: 1;
|
|
1135
|
+
min-height: 0;
|
|
1135
1136
|
}
|
|
1136
1137
|
|
|
1137
1138
|
.block-library-html__modal-tab {
|
|
@@ -1172,12 +1173,9 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
|
|
|
1172
1173
|
display: flex;
|
|
1173
1174
|
align-items: center;
|
|
1174
1175
|
justify-content: center;
|
|
1175
|
-
padding:
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
.block-library-html__modal-actions {
|
|
1179
|
-
margin-top: 16px;
|
|
1180
|
-
padding: 0 32px 32px;
|
|
1176
|
+
padding: 16px;
|
|
1177
|
+
flex: 1;
|
|
1178
|
+
min-height: 0;
|
|
1181
1179
|
}
|
|
1182
1180
|
|
|
1183
1181
|
.wp-block-image.wp-block-image .block-editor-media-placeholder.is-small {
|