@wordpress/block-library 9.27.0 → 9.28.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/categories/edit.js +15 -3
- package/build/categories/edit.js.map +1 -1
- package/build/cover/edit/index.js +1 -1
- package/build/cover/edit/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +5 -3
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/file/edit.js +5 -2
- package/build/file/edit.js.map +1 -1
- package/build/file/edit.native.js +1 -1
- package/build/file/edit.native.js.map +1 -1
- package/build/file/transforms.js +6 -6
- package/build/file/transforms.js.map +1 -1
- package/build/file/utils/index.js +5 -0
- package/build/file/utils/index.js.map +1 -1
- package/build/gallery/use-get-media.js +3 -3
- package/build/gallery/use-get-media.js.map +1 -1
- package/build/gallery/use-get-media.native.js +3 -3
- package/build/gallery/use-get-media.native.js.map +1 -1
- package/build/image/edit.native.js +2 -2
- package/build/image/edit.native.js.map +1 -1
- package/build/image/image.js +1 -1
- package/build/image/image.js.map +1 -1
- package/build/latest-posts/edit.js +0 -2
- package/build/latest-posts/edit.js.map +1 -1
- package/build/list-item/edit.js +3 -0
- package/build/list-item/edit.js.map +1 -1
- package/build/media-text/edit.js +2 -2
- package/build/media-text/edit.js.map +1 -1
- package/build/more/edit.js +13 -28
- package/build/more/edit.js.map +1 -1
- package/build/paragraph/edit.js +2 -2
- package/build/paragraph/edit.js.map +1 -1
- package/build/post-comments-count/index.js +3 -0
- package/build/post-comments-count/index.js.map +1 -1
- package/build/post-comments-link/index.js +3 -0
- package/build/post-comments-link/index.js.map +1 -1
- package/build/post-date/deprecated.js +104 -1
- package/build/post-date/deprecated.js.map +1 -1
- package/build/post-date/edit.js +32 -32
- package/build/post-date/edit.js.map +1 -1
- package/build/post-date/index.js +4 -4
- package/build/post-date/index.js.map +1 -1
- package/build/post-date/variations.js +32 -3
- package/build/post-date/variations.js.map +1 -1
- package/build/post-featured-image/edit.js +2 -2
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/site-logo/edit.js +2 -2
- package/build/site-logo/edit.js.map +1 -1
- package/build/social-link/icons/tiktok.js +2 -2
- package/build/social-link/icons/tiktok.js.map +1 -1
- package/build/social-link/variations.js +51 -49
- package/build/social-link/variations.js.map +1 -1
- package/build/utils/poster-image.js +141 -0
- package/build/utils/poster-image.js.map +1 -0
- package/build/video/edit.js +6 -2
- package/build/video/edit.js.map +1 -1
- package/build-module/categories/edit.js +15 -3
- package/build-module/categories/edit.js.map +1 -1
- package/build-module/cover/edit/index.js +1 -1
- package/build-module/cover/edit/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +5 -3
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/file/edit.js +5 -2
- package/build-module/file/edit.js.map +1 -1
- package/build-module/file/edit.native.js +1 -1
- package/build-module/file/edit.native.js.map +1 -1
- package/build-module/file/transforms.js +6 -6
- package/build-module/file/transforms.js.map +1 -1
- package/build-module/file/utils/index.js +5 -0
- package/build-module/file/utils/index.js.map +1 -1
- package/build-module/gallery/use-get-media.js +3 -3
- package/build-module/gallery/use-get-media.js.map +1 -1
- package/build-module/gallery/use-get-media.native.js +3 -3
- package/build-module/gallery/use-get-media.native.js.map +1 -1
- package/build-module/image/edit.native.js +2 -2
- package/build-module/image/edit.native.js.map +1 -1
- package/build-module/image/image.js +1 -1
- package/build-module/image/image.js.map +1 -1
- package/build-module/latest-posts/edit.js +0 -2
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/list-item/edit.js +3 -0
- package/build-module/list-item/edit.js.map +1 -1
- package/build-module/media-text/edit.js +2 -2
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/more/edit.js +15 -29
- package/build-module/more/edit.js.map +1 -1
- package/build-module/paragraph/edit.js +2 -2
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/post-comments-count/index.js +3 -0
- package/build-module/post-comments-count/index.js.map +1 -1
- package/build-module/post-comments-link/index.js +3 -0
- package/build-module/post-comments-link/index.js.map +1 -1
- package/build-module/post-date/deprecated.js +104 -1
- package/build-module/post-date/deprecated.js.map +1 -1
- package/build-module/post-date/edit.js +35 -35
- package/build-module/post-date/edit.js.map +1 -1
- package/build-module/post-date/index.js +4 -4
- package/build-module/post-date/index.js.map +1 -1
- package/build-module/post-date/variations.js +32 -3
- package/build-module/post-date/variations.js.map +1 -1
- package/build-module/post-featured-image/edit.js +2 -2
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/site-logo/edit.js +2 -2
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/social-link/icons/tiktok.js +2 -2
- package/build-module/social-link/icons/tiktok.js.map +1 -1
- package/build-module/social-link/variations.js +52 -50
- package/build-module/social-link/variations.js.map +1 -1
- package/build-module/utils/poster-image.js +133 -0
- package/build-module/utils/poster-image.js.map +1 -0
- package/build-module/video/edit.js +6 -2
- package/build-module/video/edit.js.map +1 -1
- package/build-style/editor-rtl.css +77 -23
- package/build-style/editor.css +77 -23
- package/build-style/gallery/style-rtl.css +1 -2
- package/build-style/gallery/style.css +1 -2
- package/build-style/image/style-rtl.css +1 -2
- package/build-style/image/style.css +1 -2
- package/build-style/more/editor-rtl.css +3 -11
- package/build-style/more/editor.css +3 -11
- package/build-style/navigation/editor-rtl.css +6 -6
- package/build-style/navigation/editor.css +6 -6
- package/build-style/page-list/editor-rtl.css +0 -4
- package/build-style/page-list/editor.css +0 -4
- package/build-style/post-featured-image/editor-rtl.css +1 -2
- package/build-style/post-featured-image/editor.css +1 -2
- package/build-style/style-rtl.css +3 -4
- package/build-style/style.css +3 -4
- package/build-style/video/style-rtl.css +1 -0
- package/build-style/video/style.css +1 -0
- package/package.json +35 -35
- package/src/block/index.php +33 -20
- package/src/categories/edit.js +13 -1
- package/src/cover/edit/index.js +8 -3
- package/src/cover/edit/inspector-controls.js +12 -3
- package/src/editor.scss +1 -0
- package/src/file/edit.js +10 -2
- package/src/file/edit.native.js +5 -1
- package/src/file/transforms.js +6 -6
- package/src/file/utils/index.js +5 -0
- package/src/form-input/index.php +4 -2
- package/src/gallery/use-get-media.js +9 -5
- package/src/gallery/use-get-media.native.js +10 -6
- package/src/image/edit.native.js +4 -2
- package/src/image/image.js +6 -1
- package/src/image/index.php +1 -1
- package/src/image/test/edit.native.js +16 -10
- package/src/latest-posts/edit.js +0 -2
- package/src/list-item/edit.js +3 -0
- package/src/loginout/index.php +4 -2
- package/src/media-text/edit.js +16 -6
- package/src/more/edit.js +27 -33
- package/src/more/editor.scss +3 -12
- package/src/page-list/editor.scss +0 -6
- package/src/paragraph/edit.js +2 -2
- package/src/post-comments-count/block.json +3 -0
- package/src/post-comments-link/block.json +3 -0
- package/src/post-date/block.json +4 -4
- package/src/post-date/deprecated.js +104 -1
- package/src/post-date/edit.js +74 -86
- package/src/post-date/index.php +51 -28
- package/src/post-date/variations.js +37 -3
- package/src/post-featured-image/edit.js +2 -2
- package/src/site-logo/edit.js +11 -4
- package/src/social-link/README.md +21 -0
- package/src/social-link/icons/tiktok.js +2 -2
- package/src/social-link/index.php +49 -49
- package/src/social-link/variations.js +51 -49
- package/src/utils/poster-image.js +176 -0
- package/src/utils/poster-image.scss +82 -0
- package/src/video/edit.js +7 -2
- package/src/video/index.php +91 -0
- package/src/video/style.native.scss +1 -0
- package/src/video/style.scss +1 -0
- package/build/cover/edit/poster-image.js +0 -81
- package/build/cover/edit/poster-image.js.map +0 -1
- package/build/video/poster-image.js +0 -81
- package/build/video/poster-image.js.map +0 -1
- package/build-module/cover/edit/poster-image.js +0 -74
- package/build-module/cover/edit/poster-image.js.map +0 -1
- package/build-module/video/poster-image.js +0 -74
- package/build-module/video/poster-image.js.map +0 -1
- package/src/cover/edit/poster-image.js +0 -91
- package/src/video/poster-image.js +0 -91
|
@@ -18,13 +18,13 @@ import { store as noticesStore } from '@wordpress/notices';
|
|
|
18
18
|
/**
|
|
19
19
|
* Internal dependencies
|
|
20
20
|
*/
|
|
21
|
-
import PosterImage from './poster-image';
|
|
22
21
|
import { createUpgradedEmbedBlock } from '../embed/util';
|
|
23
22
|
import { useUploadMediaFromBlobURL, useToolsPanelDropdownMenuProps } from '../utils/hooks';
|
|
24
23
|
import VideoCommonSettings from './edit-common-settings';
|
|
25
24
|
import TracksEditor from './tracks-editor';
|
|
26
25
|
import Tracks from './tracks';
|
|
27
26
|
import { Caption } from '../utils/caption';
|
|
27
|
+
import PosterImage from '../utils/poster-image';
|
|
28
28
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
29
|
const ALLOWED_MEDIA_TYPES = ['video'];
|
|
30
30
|
function VideoEdit({
|
|
@@ -57,6 +57,8 @@ function VideoEdit({
|
|
|
57
57
|
videoPlayer.current.load();
|
|
58
58
|
}
|
|
59
59
|
}, [poster]);
|
|
60
|
+
|
|
61
|
+
// TODO: Whether the video was obtained from the media library or was provided by URL, obtain the `videoWidth` and `videoHeight` of the video once its metadata has loaded and persist in the block attributes.
|
|
60
62
|
function onSelectVideo(media) {
|
|
61
63
|
if (!media || !media.url) {
|
|
62
64
|
// In this case there was an error
|
|
@@ -196,7 +198,9 @@ function VideoEdit({
|
|
|
196
198
|
attributes: attributes
|
|
197
199
|
}), /*#__PURE__*/_jsx(PosterImage, {
|
|
198
200
|
poster: poster,
|
|
199
|
-
|
|
201
|
+
onChange: posterImage => setAttributes({
|
|
202
|
+
poster: posterImage?.url
|
|
203
|
+
})
|
|
200
204
|
})]
|
|
201
205
|
})
|
|
202
206
|
}), /*#__PURE__*/_jsxs("figure", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["clsx","isBlobURL","Disabled","Spinner","Placeholder","__experimentalToolsPanel","ToolsPanel","BlockControls","BlockIcon","InspectorControls","MediaPlaceholder","MediaReplaceFlow","useBlockProps","useRef","useEffect","useState","__","useDispatch","video","icon","store","noticesStore","PosterImage","createUpgradedEmbedBlock","useUploadMediaFromBlobURL","useToolsPanelDropdownMenuProps","VideoCommonSettings","TracksEditor","Tracks","Caption","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ALLOWED_MEDIA_TYPES","VideoEdit","isSelected","isSingleSelected","attributes","className","setAttributes","insertBlocksAfter","onReplace","videoPlayer","id","controls","poster","src","tracks","temporaryURL","setTemporaryURL","blob","dropdownMenuProps","url","allowedTypes","onChange","onSelectVideo","onError","onUploadError","current","load","media","undefined","caption","image","onSelectURL","newSrc","embedBlock","createErrorNotice","message","type","placeholder","content","withIllustration","label","instructions","children","classes","blockProps","onSelect","accept","value","newTracks","group","mediaId","mediaURL","onReset","resetAll","autoplay","loop","muted","playsInline","preload","isDisabled","ref","showToolbarButton"],"sources":["@wordpress/block-library/src/video/edit.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { isBlobURL } from '@wordpress/blob';\nimport {\n\tDisabled,\n\tSpinner,\n\tPlaceholder,\n\t__experimentalToolsPanel as ToolsPanel,\n} from '@wordpress/components';\nimport {\n\tBlockControls,\n\tBlockIcon,\n\tInspectorControls,\n\tMediaPlaceholder,\n\tMediaReplaceFlow,\n\tuseBlockProps,\n} from '@wordpress/block-editor';\nimport { useRef, useEffect, useState } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { useDispatch } from '@wordpress/data';\nimport { video as icon } from '@wordpress/icons';\nimport { store as noticesStore } from '@wordpress/notices';\n\n/**\n * Internal dependencies\n */\nimport PosterImage from './poster-image';\nimport { createUpgradedEmbedBlock } from '../embed/util';\nimport {\n\tuseUploadMediaFromBlobURL,\n\tuseToolsPanelDropdownMenuProps,\n} from '../utils/hooks';\nimport VideoCommonSettings from './edit-common-settings';\nimport TracksEditor from './tracks-editor';\nimport Tracks from './tracks';\nimport { Caption } from '../utils/caption';\n\nconst ALLOWED_MEDIA_TYPES = [ 'video' ];\n\nfunction VideoEdit( {\n\tisSelected: isSingleSelected,\n\tattributes,\n\tclassName,\n\tsetAttributes,\n\tinsertBlocksAfter,\n\tonReplace,\n} ) {\n\tconst videoPlayer = useRef();\n\tconst { id, controls, poster, src, tracks } = attributes;\n\tconst [ temporaryURL, setTemporaryURL ] = useState( attributes.blob );\n\tconst dropdownMenuProps = useToolsPanelDropdownMenuProps();\n\n\tuseUploadMediaFromBlobURL( {\n\t\turl: temporaryURL,\n\t\tallowedTypes: ALLOWED_MEDIA_TYPES,\n\t\tonChange: onSelectVideo,\n\t\tonError: onUploadError,\n\t} );\n\n\tuseEffect( () => {\n\t\t// Placeholder may be rendered.\n\t\tif ( videoPlayer.current ) {\n\t\t\tvideoPlayer.current.load();\n\t\t}\n\t}, [ poster ] );\n\n\tfunction onSelectVideo( media ) {\n\t\tif ( ! media || ! media.url ) {\n\t\t\t// In this case there was an error\n\t\t\t// previous attributes should be removed\n\t\t\t// because they may be temporary blob urls.\n\t\t\tsetAttributes( {\n\t\t\t\tsrc: undefined,\n\t\t\t\tid: undefined,\n\t\t\t\tposter: undefined,\n\t\t\t\tcaption: undefined,\n\t\t\t\tblob: undefined,\n\t\t\t} );\n\t\t\tsetTemporaryURL();\n\t\t\treturn;\n\t\t}\n\n\t\tif ( isBlobURL( media.url ) ) {\n\t\t\tsetTemporaryURL( media.url );\n\t\t\treturn;\n\t\t}\n\n\t\t// Sets the block's attribute and updates the edit component from the\n\t\t// selected media.\n\t\tsetAttributes( {\n\t\t\tblob: undefined,\n\t\t\tsrc: media.url,\n\t\t\tid: media.id,\n\t\t\tposter:\n\t\t\t\tmedia.image?.src !== media.icon ? media.image?.src : undefined,\n\t\t\tcaption: media.caption,\n\t\t} );\n\t\tsetTemporaryURL();\n\t}\n\n\tfunction onSelectURL( newSrc ) {\n\t\tif ( newSrc !== src ) {\n\t\t\t// Check if there's an embed block that handles this URL.\n\t\t\tconst embedBlock = createUpgradedEmbedBlock( {\n\t\t\t\tattributes: { url: newSrc },\n\t\t\t} );\n\t\t\tif ( undefined !== embedBlock && onReplace ) {\n\t\t\t\tonReplace( embedBlock );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tsetAttributes( {\n\t\t\t\tblob: undefined,\n\t\t\t\tsrc: newSrc,\n\t\t\t\tid: undefined,\n\t\t\t\tposter: undefined,\n\t\t\t} );\n\t\t\tsetTemporaryURL();\n\t\t}\n\t}\n\n\tconst { createErrorNotice } = useDispatch( noticesStore );\n\tfunction onUploadError( message ) {\n\t\tcreateErrorNotice( message, { type: 'snackbar' } );\n\t}\n\n\t// Much of this description is duplicated from MediaPlaceholder.\n\tconst placeholder = ( content ) => {\n\t\treturn (\n\t\t\t<Placeholder\n\t\t\t\tclassName=\"block-editor-media-placeholder\"\n\t\t\t\twithIllustration={ ! isSingleSelected }\n\t\t\t\ticon={ icon }\n\t\t\t\tlabel={ __( 'Video' ) }\n\t\t\t\tinstructions={ __(\n\t\t\t\t\t'Drag and drop a video, upload, or choose from your library.'\n\t\t\t\t) }\n\t\t\t>\n\t\t\t\t{ content }\n\t\t\t</Placeholder>\n\t\t);\n\t};\n\n\tconst classes = clsx( className, {\n\t\t'is-transient': !! temporaryURL,\n\t} );\n\n\tconst blockProps = useBlockProps( {\n\t\tclassName: classes,\n\t} );\n\n\tif ( ! src && ! temporaryURL ) {\n\t\treturn (\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<MediaPlaceholder\n\t\t\t\t\ticon={ <BlockIcon icon={ icon } /> }\n\t\t\t\t\tonSelect={ onSelectVideo }\n\t\t\t\t\tonSelectURL={ onSelectURL }\n\t\t\t\t\taccept=\"video/*\"\n\t\t\t\t\tallowedTypes={ ALLOWED_MEDIA_TYPES }\n\t\t\t\t\tvalue={ attributes }\n\t\t\t\t\tonError={ onUploadError }\n\t\t\t\t\tplaceholder={ placeholder }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{ isSingleSelected && (\n\t\t\t\t<>\n\t\t\t\t\t<BlockControls>\n\t\t\t\t\t\t<TracksEditor\n\t\t\t\t\t\t\ttracks={ tracks }\n\t\t\t\t\t\t\tonChange={ ( newTracks ) => {\n\t\t\t\t\t\t\t\tsetAttributes( { tracks: newTracks } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</BlockControls>\n\t\t\t\t\t<BlockControls group=\"other\">\n\t\t\t\t\t\t<MediaReplaceFlow\n\t\t\t\t\t\t\tmediaId={ id }\n\t\t\t\t\t\t\tmediaURL={ src }\n\t\t\t\t\t\t\tallowedTypes={ ALLOWED_MEDIA_TYPES }\n\t\t\t\t\t\t\taccept=\"video/*\"\n\t\t\t\t\t\t\tonSelect={ onSelectVideo }\n\t\t\t\t\t\t\tonSelectURL={ onSelectURL }\n\t\t\t\t\t\t\tonError={ onUploadError }\n\t\t\t\t\t\t\tonReset={ () => onSelectVideo( undefined ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</BlockControls>\n\t\t\t\t</>\n\t\t\t) }\n\t\t\t<InspectorControls>\n\t\t\t\t<ToolsPanel\n\t\t\t\t\tlabel={ __( 'Settings' ) }\n\t\t\t\t\tresetAll={ () => {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\tautoplay: false,\n\t\t\t\t\t\t\tcontrols: true,\n\t\t\t\t\t\t\tloop: false,\n\t\t\t\t\t\t\tmuted: false,\n\t\t\t\t\t\t\tplaysInline: false,\n\t\t\t\t\t\t\tpreload: 'metadata',\n\t\t\t\t\t\t\tposter: undefined,\n\t\t\t\t\t\t} );\n\t\t\t\t\t} }\n\t\t\t\t\tdropdownMenuProps={ dropdownMenuProps }\n\t\t\t\t>\n\t\t\t\t\t<VideoCommonSettings\n\t\t\t\t\t\tsetAttributes={ setAttributes }\n\t\t\t\t\t\tattributes={ attributes }\n\t\t\t\t\t/>\n\t\t\t\t\t<PosterImage\n\t\t\t\t\t\tposter={ poster }\n\t\t\t\t\t\tsetAttributes={ setAttributes }\n\t\t\t\t\t/>\n\t\t\t\t</ToolsPanel>\n\t\t\t</InspectorControls>\n\t\t\t<figure { ...blockProps }>\n\t\t\t\t{ /*\n Disable the video tag if the block is not selected\n so the user clicking on it won't play the\n video when the controls are enabled.\n */ }\n\t\t\t\t<Disabled isDisabled={ ! isSingleSelected }>\n\t\t\t\t\t<video\n\t\t\t\t\t\tcontrols={ controls }\n\t\t\t\t\t\tposter={ poster }\n\t\t\t\t\t\tsrc={ src || temporaryURL }\n\t\t\t\t\t\tref={ videoPlayer }\n\t\t\t\t\t>\n\t\t\t\t\t\t<Tracks tracks={ tracks } />\n\t\t\t\t\t</video>\n\t\t\t\t</Disabled>\n\t\t\t\t{ !! temporaryURL && <Spinner /> }\n\t\t\t\t<Caption\n\t\t\t\t\tattributes={ attributes }\n\t\t\t\t\tsetAttributes={ setAttributes }\n\t\t\t\t\tisSelected={ isSingleSelected }\n\t\t\t\t\tinsertBlocksAfter={ insertBlocksAfter }\n\t\t\t\t\tlabel={ __( 'Video caption text' ) }\n\t\t\t\t\tshowToolbarButton={ isSingleSelected }\n\t\t\t\t/>\n\t\t\t</figure>\n\t\t</>\n\t);\n}\n\nexport default VideoEdit;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SACCC,QAAQ,EACRC,OAAO,EACPC,WAAW,EACXC,wBAAwB,IAAIC,UAAU,QAChC,uBAAuB;AAC9B,SACCC,aAAa,EACbC,SAAS,EACTC,iBAAiB,EACjBC,gBAAgB,EAChBC,gBAAgB,EAChBC,aAAa,QACP,yBAAyB;AAChC,SAASC,MAAM,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,oBAAoB;AAChE,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,WAAW,QAAQ,iBAAiB;AAC7C,SAASC,KAAK,IAAIC,IAAI,QAAQ,kBAAkB;AAChD,SAASC,KAAK,IAAIC,YAAY,QAAQ,oBAAoB;;AAE1D;AACA;AACA;AACA,OAAOC,WAAW,MAAM,gBAA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;QAAC6F,UAAU,EAAG,CAAExD,gBAAkB;QAAAuC,QAAA,eAC1C/C,IAAA;UACCgB,QAAQ,EAAGA,QAAU;UACrBC,MAAM,EAAGA,MAAQ;UACjBC,GAAG,EAAGA,GAAG,IAAIE,YAAc;UAC3B6C,GAAG,EAAGnD,WAAa;UAAAiC,QAAA,eAEnB/C,IAAA,CAACH,MAAM;YAACsB,MAAM,EAAGA;UAAQ,CAAE;QAAC,CACtB;MAAC,CACC,CAAC,EACT,CAAC,CAAEC,YAAY,iBAAIpB,IAAA,CAAC5B,OAAO,IAAE,CAAC,eAChC4B,IAAA,CAACF,OAAO;QACPW,UAAU,EAAGA,UAAY;QACzBE,aAAa,EAAGA,aAAe;QAC/BJ,UAAU,EAAGC,gBAAkB;QAC/BI,iBAAiB,EAAGA,iBAAmB;QACvCiC,KAAK,EAAG5D,EAAE,CAAE,oBAAqB,CAAG;QACpCiF,iBAAiB,EAAG1D;MAAkB,CACtC,CAAC;IAAA,CACK,CAAC;EAAA,CACR,CAAC;AAEL;AAEA,eAAeF,SAAS","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["clsx","isBlobURL","Disabled","Spinner","Placeholder","__experimentalToolsPanel","ToolsPanel","BlockControls","BlockIcon","InspectorControls","MediaPlaceholder","MediaReplaceFlow","useBlockProps","useRef","useEffect","useState","__","useDispatch","video","icon","store","noticesStore","createUpgradedEmbedBlock","useUploadMediaFromBlobURL","useToolsPanelDropdownMenuProps","VideoCommonSettings","TracksEditor","Tracks","Caption","PosterImage","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ALLOWED_MEDIA_TYPES","VideoEdit","isSelected","isSingleSelected","attributes","className","setAttributes","insertBlocksAfter","onReplace","videoPlayer","id","controls","poster","src","tracks","temporaryURL","setTemporaryURL","blob","dropdownMenuProps","url","allowedTypes","onChange","onSelectVideo","onError","onUploadError","current","load","media","undefined","caption","image","onSelectURL","newSrc","embedBlock","createErrorNotice","message","type","placeholder","content","withIllustration","label","instructions","children","classes","blockProps","onSelect","accept","value","newTracks","group","mediaId","mediaURL","onReset","resetAll","autoplay","loop","muted","playsInline","preload","posterImage","isDisabled","ref","showToolbarButton"],"sources":["@wordpress/block-library/src/video/edit.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { isBlobURL } from '@wordpress/blob';\nimport {\n\tDisabled,\n\tSpinner,\n\tPlaceholder,\n\t__experimentalToolsPanel as ToolsPanel,\n} from '@wordpress/components';\nimport {\n\tBlockControls,\n\tBlockIcon,\n\tInspectorControls,\n\tMediaPlaceholder,\n\tMediaReplaceFlow,\n\tuseBlockProps,\n} from '@wordpress/block-editor';\nimport { useRef, useEffect, useState } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { useDispatch } from '@wordpress/data';\nimport { video as icon } from '@wordpress/icons';\nimport { store as noticesStore } from '@wordpress/notices';\n\n/**\n * Internal dependencies\n */\nimport { createUpgradedEmbedBlock } from '../embed/util';\nimport {\n\tuseUploadMediaFromBlobURL,\n\tuseToolsPanelDropdownMenuProps,\n} from '../utils/hooks';\nimport VideoCommonSettings from './edit-common-settings';\nimport TracksEditor from './tracks-editor';\nimport Tracks from './tracks';\nimport { Caption } from '../utils/caption';\nimport PosterImage from '../utils/poster-image';\n\nconst ALLOWED_MEDIA_TYPES = [ 'video' ];\n\nfunction VideoEdit( {\n\tisSelected: isSingleSelected,\n\tattributes,\n\tclassName,\n\tsetAttributes,\n\tinsertBlocksAfter,\n\tonReplace,\n} ) {\n\tconst videoPlayer = useRef();\n\tconst { id, controls, poster, src, tracks } = attributes;\n\tconst [ temporaryURL, setTemporaryURL ] = useState( attributes.blob );\n\tconst dropdownMenuProps = useToolsPanelDropdownMenuProps();\n\n\tuseUploadMediaFromBlobURL( {\n\t\turl: temporaryURL,\n\t\tallowedTypes: ALLOWED_MEDIA_TYPES,\n\t\tonChange: onSelectVideo,\n\t\tonError: onUploadError,\n\t} );\n\n\tuseEffect( () => {\n\t\t// Placeholder may be rendered.\n\t\tif ( videoPlayer.current ) {\n\t\t\tvideoPlayer.current.load();\n\t\t}\n\t}, [ poster ] );\n\n\t// TODO: Whether the video was obtained from the media library or was provided by URL, obtain the `videoWidth` and `videoHeight` of the video once its metadata has loaded and persist in the block attributes.\n\tfunction onSelectVideo( media ) {\n\t\tif ( ! media || ! media.url ) {\n\t\t\t// In this case there was an error\n\t\t\t// previous attributes should be removed\n\t\t\t// because they may be temporary blob urls.\n\t\t\tsetAttributes( {\n\t\t\t\tsrc: undefined,\n\t\t\t\tid: undefined,\n\t\t\t\tposter: undefined,\n\t\t\t\tcaption: undefined,\n\t\t\t\tblob: undefined,\n\t\t\t} );\n\t\t\tsetTemporaryURL();\n\t\t\treturn;\n\t\t}\n\n\t\tif ( isBlobURL( media.url ) ) {\n\t\t\tsetTemporaryURL( media.url );\n\t\t\treturn;\n\t\t}\n\n\t\t// Sets the block's attribute and updates the edit component from the\n\t\t// selected media.\n\t\tsetAttributes( {\n\t\t\tblob: undefined,\n\t\t\tsrc: media.url,\n\t\t\tid: media.id,\n\t\t\tposter:\n\t\t\t\tmedia.image?.src !== media.icon ? media.image?.src : undefined,\n\t\t\tcaption: media.caption,\n\t\t} );\n\t\tsetTemporaryURL();\n\t}\n\n\tfunction onSelectURL( newSrc ) {\n\t\tif ( newSrc !== src ) {\n\t\t\t// Check if there's an embed block that handles this URL.\n\t\t\tconst embedBlock = createUpgradedEmbedBlock( {\n\t\t\t\tattributes: { url: newSrc },\n\t\t\t} );\n\t\t\tif ( undefined !== embedBlock && onReplace ) {\n\t\t\t\tonReplace( embedBlock );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tsetAttributes( {\n\t\t\t\tblob: undefined,\n\t\t\t\tsrc: newSrc,\n\t\t\t\tid: undefined,\n\t\t\t\tposter: undefined,\n\t\t\t} );\n\t\t\tsetTemporaryURL();\n\t\t}\n\t}\n\n\tconst { createErrorNotice } = useDispatch( noticesStore );\n\tfunction onUploadError( message ) {\n\t\tcreateErrorNotice( message, { type: 'snackbar' } );\n\t}\n\n\t// Much of this description is duplicated from MediaPlaceholder.\n\tconst placeholder = ( content ) => {\n\t\treturn (\n\t\t\t<Placeholder\n\t\t\t\tclassName=\"block-editor-media-placeholder\"\n\t\t\t\twithIllustration={ ! isSingleSelected }\n\t\t\t\ticon={ icon }\n\t\t\t\tlabel={ __( 'Video' ) }\n\t\t\t\tinstructions={ __(\n\t\t\t\t\t'Drag and drop a video, upload, or choose from your library.'\n\t\t\t\t) }\n\t\t\t>\n\t\t\t\t{ content }\n\t\t\t</Placeholder>\n\t\t);\n\t};\n\n\tconst classes = clsx( className, {\n\t\t'is-transient': !! temporaryURL,\n\t} );\n\n\tconst blockProps = useBlockProps( {\n\t\tclassName: classes,\n\t} );\n\n\tif ( ! src && ! temporaryURL ) {\n\t\treturn (\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<MediaPlaceholder\n\t\t\t\t\ticon={ <BlockIcon icon={ icon } /> }\n\t\t\t\t\tonSelect={ onSelectVideo }\n\t\t\t\t\tonSelectURL={ onSelectURL }\n\t\t\t\t\taccept=\"video/*\"\n\t\t\t\t\tallowedTypes={ ALLOWED_MEDIA_TYPES }\n\t\t\t\t\tvalue={ attributes }\n\t\t\t\t\tonError={ onUploadError }\n\t\t\t\t\tplaceholder={ placeholder }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{ isSingleSelected && (\n\t\t\t\t<>\n\t\t\t\t\t<BlockControls>\n\t\t\t\t\t\t<TracksEditor\n\t\t\t\t\t\t\ttracks={ tracks }\n\t\t\t\t\t\t\tonChange={ ( newTracks ) => {\n\t\t\t\t\t\t\t\tsetAttributes( { tracks: newTracks } );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</BlockControls>\n\t\t\t\t\t<BlockControls group=\"other\">\n\t\t\t\t\t\t<MediaReplaceFlow\n\t\t\t\t\t\t\tmediaId={ id }\n\t\t\t\t\t\t\tmediaURL={ src }\n\t\t\t\t\t\t\tallowedTypes={ ALLOWED_MEDIA_TYPES }\n\t\t\t\t\t\t\taccept=\"video/*\"\n\t\t\t\t\t\t\tonSelect={ onSelectVideo }\n\t\t\t\t\t\t\tonSelectURL={ onSelectURL }\n\t\t\t\t\t\t\tonError={ onUploadError }\n\t\t\t\t\t\t\tonReset={ () => onSelectVideo( undefined ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</BlockControls>\n\t\t\t\t</>\n\t\t\t) }\n\t\t\t<InspectorControls>\n\t\t\t\t<ToolsPanel\n\t\t\t\t\tlabel={ __( 'Settings' ) }\n\t\t\t\t\tresetAll={ () => {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\tautoplay: false,\n\t\t\t\t\t\t\tcontrols: true,\n\t\t\t\t\t\t\tloop: false,\n\t\t\t\t\t\t\tmuted: false,\n\t\t\t\t\t\t\tplaysInline: false,\n\t\t\t\t\t\t\tpreload: 'metadata',\n\t\t\t\t\t\t\tposter: undefined,\n\t\t\t\t\t\t} );\n\t\t\t\t\t} }\n\t\t\t\t\tdropdownMenuProps={ dropdownMenuProps }\n\t\t\t\t>\n\t\t\t\t\t<VideoCommonSettings\n\t\t\t\t\t\tsetAttributes={ setAttributes }\n\t\t\t\t\t\tattributes={ attributes }\n\t\t\t\t\t/>\n\t\t\t\t\t<PosterImage\n\t\t\t\t\t\tposter={ poster }\n\t\t\t\t\t\tonChange={ ( posterImage ) =>\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tposter: posterImage?.url,\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t</ToolsPanel>\n\t\t\t</InspectorControls>\n\t\t\t<figure { ...blockProps }>\n\t\t\t\t{ /*\n Disable the video tag if the block is not selected\n so the user clicking on it won't play the\n video when the controls are enabled.\n */ }\n\t\t\t\t<Disabled isDisabled={ ! isSingleSelected }>\n\t\t\t\t\t<video\n\t\t\t\t\t\tcontrols={ controls }\n\t\t\t\t\t\tposter={ poster }\n\t\t\t\t\t\tsrc={ src || temporaryURL }\n\t\t\t\t\t\tref={ videoPlayer }\n\t\t\t\t\t>\n\t\t\t\t\t\t<Tracks tracks={ tracks } />\n\t\t\t\t\t</video>\n\t\t\t\t</Disabled>\n\t\t\t\t{ !! temporaryURL && <Spinner /> }\n\t\t\t\t<Caption\n\t\t\t\t\tattributes={ attributes }\n\t\t\t\t\tsetAttributes={ setAttributes }\n\t\t\t\t\tisSelected={ isSingleSelected }\n\t\t\t\t\tinsertBlocksAfter={ insertBlocksAfter }\n\t\t\t\t\tlabel={ __( 'Video caption text' ) }\n\t\t\t\t\tshowToolbarButton={ isSingleSelected }\n\t\t\t\t/>\n\t\t\t</figure>\n\t\t</>\n\t);\n}\n\nexport default VideoEdit;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SACCC,QAAQ,EACRC,OAAO,EACPC,WAAW,EACXC,wBAAwB,IAAIC,UAAU,QAChC,uBAAuB;AAC9B,SACCC,aAAa,EACbC,SAAS,EACTC,iBAAiB,EACjBC,gBAAgB,EAChBC,gBAAgB,EAChBC,aAAa,QACP,yBAAyB;AAChC,SAASC,MAAM,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,oBAAoB;AAChE,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,WAAW,QAAQ,iBAAiB;AAC7C,SAASC,KAAK,IAAIC,IAAI,QAAQ,kBAAkB;AAChD,SAASC,KAAK,IAAIC,YAAY,QAAQ,oBAAoB;;AAE1D;AACA;AACA;AACA,SAASC,wBAAwB,QAAQ,eAAe;AACxD,SACCC,yBAAyB,EACzBC,8BAA8B,QACxB,gBAAgB;AACvB,OAAOC,mBAAmB,MAAM,wBAAwB;AACxD,OAAOC,YAAY,MAAM,iBAAiB;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,QAAA,eAC1C/C,IAAA;UACCgB,QAAQ,EAAGA,QAAU;UACrBC,MAAM,EAAGA,MAAQ;UACjBC,GAAG,EAAGA,GAAG,IAAIE,YAAc;UAC3B8C,GAAG,EAAGpD,WAAa;UAAAiC,QAAA,eAEnB/C,IAAA,CAACJ,MAAM;YAACuB,MAAM,EAAGA;UAAQ,CAAE;QAAC,CACtB;MAAC,CACC,CAAC,EACT,CAAC,CAAEC,YAAY,iBAAIpB,IAAA,CAAC5B,OAAO,IAAE,CAAC,eAChC4B,IAAA,CAACH,OAAO;QACPY,UAAU,EAAGA,UAAY;QACzBE,aAAa,EAAGA,aAAe;QAC/BJ,UAAU,EAAGC,gBAAkB;QAC/BI,iBAAiB,EAAGA,iBAAmB;QACvCiC,KAAK,EAAG5D,EAAE,CAAE,oBAAqB,CAAG;QACpCkF,iBAAiB,EAAG3D;MAAkB,CACtC,CAAC;IAAA,CACK,CAAC;EAAA,CACR,CAAC;AAEL;AAEA,eAAeF,SAAS","ignoreList":[]}
|
|
@@ -1374,26 +1374,18 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1374
1374
|
text-align: center;
|
|
1375
1375
|
white-space: nowrap;
|
|
1376
1376
|
}
|
|
1377
|
-
.wp-block-more
|
|
1377
|
+
.wp-block-more .rich-text {
|
|
1378
1378
|
position: relative;
|
|
1379
1379
|
font-size: 13px;
|
|
1380
1380
|
text-transform: uppercase;
|
|
1381
1381
|
font-weight: 600;
|
|
1382
1382
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
1383
1383
|
color: #757575;
|
|
1384
|
-
|
|
1385
|
-
box-shadow: none;
|
|
1384
|
+
display: inline-flex;
|
|
1386
1385
|
white-space: nowrap;
|
|
1387
1386
|
text-align: center;
|
|
1388
|
-
margin: 0;
|
|
1389
|
-
border-radius: 4px;
|
|
1390
1387
|
background: #fff;
|
|
1391
|
-
padding:
|
|
1392
|
-
height: 24px;
|
|
1393
|
-
max-width: 100%;
|
|
1394
|
-
}
|
|
1395
|
-
.wp-block-more input[type=text]:focus {
|
|
1396
|
-
box-shadow: none;
|
|
1388
|
+
padding: 10px 36px;
|
|
1397
1389
|
}
|
|
1398
1390
|
.wp-block-more::before {
|
|
1399
1391
|
content: "";
|
|
@@ -1705,11 +1697,11 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1705
1697
|
|
|
1706
1698
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
1707
1699
|
position: fixed;
|
|
1708
|
-
top:
|
|
1700
|
+
top: 159px;
|
|
1709
1701
|
}
|
|
1710
1702
|
@media (min-width: 782px) {
|
|
1711
1703
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
1712
|
-
top:
|
|
1704
|
+
top: 97px;
|
|
1713
1705
|
}
|
|
1714
1706
|
}
|
|
1715
1707
|
@media (min-width: 782px) {
|
|
@@ -1725,21 +1717,21 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1725
1717
|
|
|
1726
1718
|
.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
1727
1719
|
.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
1728
|
-
top:
|
|
1720
|
+
top: 145px;
|
|
1729
1721
|
}
|
|
1730
1722
|
|
|
1731
1723
|
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open {
|
|
1732
1724
|
right: 0;
|
|
1733
|
-
top:
|
|
1725
|
+
top: 159px;
|
|
1734
1726
|
}
|
|
1735
1727
|
@media (min-width: 782px) {
|
|
1736
1728
|
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open {
|
|
1737
|
-
top:
|
|
1729
|
+
top: 65px;
|
|
1738
1730
|
}
|
|
1739
1731
|
}
|
|
1740
1732
|
.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
1741
1733
|
.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
1742
|
-
top:
|
|
1734
|
+
top: 113px;
|
|
1743
1735
|
}
|
|
1744
1736
|
|
|
1745
1737
|
body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open {
|
|
@@ -2067,10 +2059,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2067
2059
|
border-top: 3px dashed #ccc;
|
|
2068
2060
|
}
|
|
2069
2061
|
|
|
2070
|
-
.wp-block-navigation .wp-block-page-list > div,
|
|
2071
|
-
.wp-block-navigation .wp-block-page-list {
|
|
2072
|
-
background-color: inherit;
|
|
2073
|
-
}
|
|
2074
2062
|
.wp-block-navigation.items-justified-space-between .wp-block-page-list > div,
|
|
2075
2063
|
.wp-block-navigation.items-justified-space-between .wp-block-page-list {
|
|
2076
2064
|
display: contents;
|
|
@@ -2695,8 +2683,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2695
2683
|
|
|
2696
2684
|
.wp-block-post-featured-image .block-editor-media-placeholder {
|
|
2697
2685
|
z-index: 1;
|
|
2698
|
-
|
|
2699
|
-
backdrop-filter: none;
|
|
2686
|
+
backdrop-filter: none;
|
|
2700
2687
|
}
|
|
2701
2688
|
.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
|
|
2702
2689
|
.wp-block-post-featured-image .components-placeholder {
|
|
@@ -2831,6 +2818,73 @@ div[data-type="core/post-featured-image"] img {
|
|
|
2831
2818
|
cursor: text;
|
|
2832
2819
|
}
|
|
2833
2820
|
|
|
2821
|
+
.block-library-poster-image__container {
|
|
2822
|
+
position: relative;
|
|
2823
|
+
}
|
|
2824
|
+
.block-library-poster-image__container:hover .block-library-poster-image__actions, .block-library-poster-image__container:focus .block-library-poster-image__actions, .block-library-poster-image__container:focus-within .block-library-poster-image__actions {
|
|
2825
|
+
opacity: 1;
|
|
2826
|
+
}
|
|
2827
|
+
.block-library-poster-image__container .block-library-poster-image__actions.block-library-poster-image__actions-select {
|
|
2828
|
+
opacity: 1;
|
|
2829
|
+
margin-top: 16px;
|
|
2830
|
+
}
|
|
2831
|
+
.block-library-poster-image__container .components-drop-zone__content {
|
|
2832
|
+
border-radius: 2px;
|
|
2833
|
+
}
|
|
2834
|
+
.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner {
|
|
2835
|
+
display: flex;
|
|
2836
|
+
align-items: center;
|
|
2837
|
+
gap: 8px;
|
|
2838
|
+
}
|
|
2839
|
+
.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon {
|
|
2840
|
+
margin: 0;
|
|
2841
|
+
}
|
|
2842
|
+
.block-library-poster-image__container .components-spinner {
|
|
2843
|
+
position: absolute;
|
|
2844
|
+
top: 50%;
|
|
2845
|
+
right: 50%;
|
|
2846
|
+
margin-top: -9px;
|
|
2847
|
+
margin-right: -9px;
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
.block-library-poster-image__preview {
|
|
2851
|
+
width: 100%;
|
|
2852
|
+
padding: 0;
|
|
2853
|
+
overflow: hidden;
|
|
2854
|
+
outline-offset: -1px;
|
|
2855
|
+
min-height: 40px;
|
|
2856
|
+
display: flex;
|
|
2857
|
+
justify-content: center;
|
|
2858
|
+
height: auto !important;
|
|
2859
|
+
outline: 1px solid rgba(0, 0, 0, 0.1);
|
|
2860
|
+
}
|
|
2861
|
+
.block-library-poster-image__preview .block-library-poster-image__preview-image {
|
|
2862
|
+
object-fit: cover;
|
|
2863
|
+
width: 100%;
|
|
2864
|
+
object-position: 50% 50%;
|
|
2865
|
+
aspect-ratio: 2/1;
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
.block-library-poster-image__actions:not(.block-library-poster-image__actions-select) {
|
|
2869
|
+
bottom: 0;
|
|
2870
|
+
opacity: 0;
|
|
2871
|
+
padding: 8px;
|
|
2872
|
+
position: absolute;
|
|
2873
|
+
}
|
|
2874
|
+
@media not (prefers-reduced-motion) {
|
|
2875
|
+
.block-library-poster-image__actions:not(.block-library-poster-image__actions-select) {
|
|
2876
|
+
transition: opacity 50ms ease-out;
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2879
|
+
.block-library-poster-image__actions:not(.block-library-poster-image__actions-select) .block-library-poster-image__action {
|
|
2880
|
+
backdrop-filter: blur(16px) saturate(180%);
|
|
2881
|
+
background: rgba(255, 255, 255, 0.75);
|
|
2882
|
+
}
|
|
2883
|
+
.block-library-poster-image__actions .block-library-poster-image__action {
|
|
2884
|
+
flex-grow: 1;
|
|
2885
|
+
justify-content: center;
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2834
2888
|
:root .editor-styles-wrapper {
|
|
2835
2889
|
/* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
|
|
2836
2890
|
/* stylelint-enable @stylistic/function-comma-space-after */
|
package/build-style/editor.css
CHANGED
|
@@ -1381,26 +1381,18 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1381
1381
|
text-align: center;
|
|
1382
1382
|
white-space: nowrap;
|
|
1383
1383
|
}
|
|
1384
|
-
.wp-block-more
|
|
1384
|
+
.wp-block-more .rich-text {
|
|
1385
1385
|
position: relative;
|
|
1386
1386
|
font-size: 13px;
|
|
1387
1387
|
text-transform: uppercase;
|
|
1388
1388
|
font-weight: 600;
|
|
1389
1389
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
1390
1390
|
color: #757575;
|
|
1391
|
-
|
|
1392
|
-
box-shadow: none;
|
|
1391
|
+
display: inline-flex;
|
|
1393
1392
|
white-space: nowrap;
|
|
1394
1393
|
text-align: center;
|
|
1395
|
-
margin: 0;
|
|
1396
|
-
border-radius: 4px;
|
|
1397
1394
|
background: #fff;
|
|
1398
|
-
padding:
|
|
1399
|
-
height: 24px;
|
|
1400
|
-
max-width: 100%;
|
|
1401
|
-
}
|
|
1402
|
-
.wp-block-more input[type=text]:focus {
|
|
1403
|
-
box-shadow: none;
|
|
1395
|
+
padding: 10px 36px;
|
|
1404
1396
|
}
|
|
1405
1397
|
.wp-block-more::before {
|
|
1406
1398
|
content: "";
|
|
@@ -1712,11 +1704,11 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1712
1704
|
|
|
1713
1705
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
1714
1706
|
position: fixed;
|
|
1715
|
-
top:
|
|
1707
|
+
top: 159px;
|
|
1716
1708
|
}
|
|
1717
1709
|
@media (min-width: 782px) {
|
|
1718
1710
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
1719
|
-
top:
|
|
1711
|
+
top: 97px;
|
|
1720
1712
|
}
|
|
1721
1713
|
}
|
|
1722
1714
|
@media (min-width: 782px) {
|
|
@@ -1732,21 +1724,21 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1732
1724
|
|
|
1733
1725
|
.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
1734
1726
|
.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
1735
|
-
top:
|
|
1727
|
+
top: 145px;
|
|
1736
1728
|
}
|
|
1737
1729
|
|
|
1738
1730
|
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open {
|
|
1739
1731
|
left: 0;
|
|
1740
|
-
top:
|
|
1732
|
+
top: 159px;
|
|
1741
1733
|
}
|
|
1742
1734
|
@media (min-width: 782px) {
|
|
1743
1735
|
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open {
|
|
1744
|
-
top:
|
|
1736
|
+
top: 65px;
|
|
1745
1737
|
}
|
|
1746
1738
|
}
|
|
1747
1739
|
.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
1748
1740
|
.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
1749
|
-
top:
|
|
1741
|
+
top: 113px;
|
|
1750
1742
|
}
|
|
1751
1743
|
|
|
1752
1744
|
body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open {
|
|
@@ -2074,10 +2066,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2074
2066
|
border-top: 3px dashed #ccc;
|
|
2075
2067
|
}
|
|
2076
2068
|
|
|
2077
|
-
.wp-block-navigation .wp-block-page-list > div,
|
|
2078
|
-
.wp-block-navigation .wp-block-page-list {
|
|
2079
|
-
background-color: inherit;
|
|
2080
|
-
}
|
|
2081
2069
|
.wp-block-navigation.items-justified-space-between .wp-block-page-list > div,
|
|
2082
2070
|
.wp-block-navigation.items-justified-space-between .wp-block-page-list {
|
|
2083
2071
|
display: contents;
|
|
@@ -2703,8 +2691,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2703
2691
|
|
|
2704
2692
|
.wp-block-post-featured-image .block-editor-media-placeholder {
|
|
2705
2693
|
z-index: 1;
|
|
2706
|
-
|
|
2707
|
-
backdrop-filter: none;
|
|
2694
|
+
backdrop-filter: none;
|
|
2708
2695
|
}
|
|
2709
2696
|
.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
|
|
2710
2697
|
.wp-block-post-featured-image .components-placeholder {
|
|
@@ -2839,6 +2826,73 @@ div[data-type="core/post-featured-image"] img {
|
|
|
2839
2826
|
cursor: text;
|
|
2840
2827
|
}
|
|
2841
2828
|
|
|
2829
|
+
.block-library-poster-image__container {
|
|
2830
|
+
position: relative;
|
|
2831
|
+
}
|
|
2832
|
+
.block-library-poster-image__container:hover .block-library-poster-image__actions, .block-library-poster-image__container:focus .block-library-poster-image__actions, .block-library-poster-image__container:focus-within .block-library-poster-image__actions {
|
|
2833
|
+
opacity: 1;
|
|
2834
|
+
}
|
|
2835
|
+
.block-library-poster-image__container .block-library-poster-image__actions.block-library-poster-image__actions-select {
|
|
2836
|
+
opacity: 1;
|
|
2837
|
+
margin-top: 16px;
|
|
2838
|
+
}
|
|
2839
|
+
.block-library-poster-image__container .components-drop-zone__content {
|
|
2840
|
+
border-radius: 2px;
|
|
2841
|
+
}
|
|
2842
|
+
.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner {
|
|
2843
|
+
display: flex;
|
|
2844
|
+
align-items: center;
|
|
2845
|
+
gap: 8px;
|
|
2846
|
+
}
|
|
2847
|
+
.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon {
|
|
2848
|
+
margin: 0;
|
|
2849
|
+
}
|
|
2850
|
+
.block-library-poster-image__container .components-spinner {
|
|
2851
|
+
position: absolute;
|
|
2852
|
+
top: 50%;
|
|
2853
|
+
left: 50%;
|
|
2854
|
+
margin-top: -9px;
|
|
2855
|
+
margin-left: -9px;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
.block-library-poster-image__preview {
|
|
2859
|
+
width: 100%;
|
|
2860
|
+
padding: 0;
|
|
2861
|
+
overflow: hidden;
|
|
2862
|
+
outline-offset: -1px;
|
|
2863
|
+
min-height: 40px;
|
|
2864
|
+
display: flex;
|
|
2865
|
+
justify-content: center;
|
|
2866
|
+
height: auto !important;
|
|
2867
|
+
outline: 1px solid rgba(0, 0, 0, 0.1);
|
|
2868
|
+
}
|
|
2869
|
+
.block-library-poster-image__preview .block-library-poster-image__preview-image {
|
|
2870
|
+
object-fit: cover;
|
|
2871
|
+
width: 100%;
|
|
2872
|
+
object-position: 50% 50%;
|
|
2873
|
+
aspect-ratio: 2/1;
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
.block-library-poster-image__actions:not(.block-library-poster-image__actions-select) {
|
|
2877
|
+
bottom: 0;
|
|
2878
|
+
opacity: 0;
|
|
2879
|
+
padding: 8px;
|
|
2880
|
+
position: absolute;
|
|
2881
|
+
}
|
|
2882
|
+
@media not (prefers-reduced-motion) {
|
|
2883
|
+
.block-library-poster-image__actions:not(.block-library-poster-image__actions-select) {
|
|
2884
|
+
transition: opacity 50ms ease-out;
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
.block-library-poster-image__actions:not(.block-library-poster-image__actions-select) .block-library-poster-image__action {
|
|
2888
|
+
backdrop-filter: blur(16px) saturate(180%);
|
|
2889
|
+
background: rgba(255, 255, 255, 0.75);
|
|
2890
|
+
}
|
|
2891
|
+
.block-library-poster-image__actions .block-library-poster-image__action {
|
|
2892
|
+
flex-grow: 1;
|
|
2893
|
+
justify-content: center;
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2842
2896
|
:root .editor-styles-wrapper {
|
|
2843
2897
|
/* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
|
|
2844
2898
|
/* stylelint-enable @stylistic/function-comma-space-after */
|
|
@@ -366,8 +366,7 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
366
366
|
height: 100%;
|
|
367
367
|
max-height: 40%;
|
|
368
368
|
pointer-events: none;
|
|
369
|
-
|
|
370
|
-
backdrop-filter: blur(3px);
|
|
369
|
+
backdrop-filter: blur(3px);
|
|
371
370
|
-webkit-mask-image: linear-gradient(0deg, #000 20%, transparent 100%);
|
|
372
371
|
mask-image: linear-gradient(0deg, #000 20%, transparent 100%);
|
|
373
372
|
}
|
|
@@ -366,8 +366,7 @@ figure.wp-block-gallery.has-nested-images {
|
|
|
366
366
|
height: 100%;
|
|
367
367
|
max-height: 40%;
|
|
368
368
|
pointer-events: none;
|
|
369
|
-
|
|
370
|
-
backdrop-filter: blur(3px);
|
|
369
|
+
backdrop-filter: blur(3px);
|
|
371
370
|
-webkit-mask-image: linear-gradient(0deg, #000 20%, transparent 100%);
|
|
372
371
|
mask-image: linear-gradient(0deg, #000 20%, transparent 100%);
|
|
373
372
|
}
|
|
@@ -246,8 +246,7 @@
|
|
|
246
246
|
opacity: 0;
|
|
247
247
|
border: none;
|
|
248
248
|
background-color: rgba(90, 90, 90, 0.25);
|
|
249
|
-
|
|
250
|
-
backdrop-filter: blur(16px) saturate(180%);
|
|
249
|
+
backdrop-filter: blur(16px) saturate(180%);
|
|
251
250
|
cursor: zoom-in;
|
|
252
251
|
display: flex;
|
|
253
252
|
justify-content: center;
|
|
@@ -252,8 +252,7 @@
|
|
|
252
252
|
opacity: 0;
|
|
253
253
|
border: none;
|
|
254
254
|
background-color: rgba(90, 90, 90, 0.25);
|
|
255
|
-
|
|
256
|
-
backdrop-filter: blur(16px) saturate(180%);
|
|
255
|
+
backdrop-filter: blur(16px) saturate(180%);
|
|
257
256
|
cursor: zoom-in;
|
|
258
257
|
display: flex;
|
|
259
258
|
justify-content: center;
|
|
@@ -146,26 +146,18 @@
|
|
|
146
146
|
text-align: center;
|
|
147
147
|
white-space: nowrap;
|
|
148
148
|
}
|
|
149
|
-
.wp-block-more
|
|
149
|
+
.wp-block-more .rich-text {
|
|
150
150
|
position: relative;
|
|
151
151
|
font-size: 13px;
|
|
152
152
|
text-transform: uppercase;
|
|
153
153
|
font-weight: 600;
|
|
154
154
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
155
155
|
color: #757575;
|
|
156
|
-
|
|
157
|
-
box-shadow: none;
|
|
156
|
+
display: inline-flex;
|
|
158
157
|
white-space: nowrap;
|
|
159
158
|
text-align: center;
|
|
160
|
-
margin: 0;
|
|
161
|
-
border-radius: 4px;
|
|
162
159
|
background: #fff;
|
|
163
|
-
padding:
|
|
164
|
-
height: 24px;
|
|
165
|
-
max-width: 100%;
|
|
166
|
-
}
|
|
167
|
-
.wp-block-more input[type=text]:focus {
|
|
168
|
-
box-shadow: none;
|
|
160
|
+
padding: 10px 36px;
|
|
169
161
|
}
|
|
170
162
|
.wp-block-more::before {
|
|
171
163
|
content: "";
|
|
@@ -146,26 +146,18 @@
|
|
|
146
146
|
text-align: center;
|
|
147
147
|
white-space: nowrap;
|
|
148
148
|
}
|
|
149
|
-
.wp-block-more
|
|
149
|
+
.wp-block-more .rich-text {
|
|
150
150
|
position: relative;
|
|
151
151
|
font-size: 13px;
|
|
152
152
|
text-transform: uppercase;
|
|
153
153
|
font-weight: 600;
|
|
154
154
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
155
155
|
color: #757575;
|
|
156
|
-
|
|
157
|
-
box-shadow: none;
|
|
156
|
+
display: inline-flex;
|
|
158
157
|
white-space: nowrap;
|
|
159
158
|
text-align: center;
|
|
160
|
-
margin: 0;
|
|
161
|
-
border-radius: 4px;
|
|
162
159
|
background: #fff;
|
|
163
|
-
padding:
|
|
164
|
-
height: 24px;
|
|
165
|
-
max-width: 100%;
|
|
166
|
-
}
|
|
167
|
-
.wp-block-more input[type=text]:focus {
|
|
168
|
-
box-shadow: none;
|
|
160
|
+
padding: 10px 36px;
|
|
169
161
|
}
|
|
170
162
|
.wp-block-more::before {
|
|
171
163
|
content: "";
|
|
@@ -435,11 +435,11 @@
|
|
|
435
435
|
|
|
436
436
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
437
437
|
position: fixed;
|
|
438
|
-
top:
|
|
438
|
+
top: 159px;
|
|
439
439
|
}
|
|
440
440
|
@media (min-width: 782px) {
|
|
441
441
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
442
|
-
top:
|
|
442
|
+
top: 97px;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
@media (min-width: 782px) {
|
|
@@ -455,21 +455,21 @@
|
|
|
455
455
|
|
|
456
456
|
.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
457
457
|
.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
458
|
-
top:
|
|
458
|
+
top: 145px;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open {
|
|
462
462
|
right: 0;
|
|
463
|
-
top:
|
|
463
|
+
top: 159px;
|
|
464
464
|
}
|
|
465
465
|
@media (min-width: 782px) {
|
|
466
466
|
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open {
|
|
467
|
-
top:
|
|
467
|
+
top: 65px;
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
471
471
|
.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
472
|
-
top:
|
|
472
|
+
top: 113px;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open {
|
|
@@ -435,11 +435,11 @@
|
|
|
435
435
|
|
|
436
436
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
437
437
|
position: fixed;
|
|
438
|
-
top:
|
|
438
|
+
top: 159px;
|
|
439
439
|
}
|
|
440
440
|
@media (min-width: 782px) {
|
|
441
441
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
442
|
-
top:
|
|
442
|
+
top: 97px;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
@media (min-width: 782px) {
|
|
@@ -455,21 +455,21 @@
|
|
|
455
455
|
|
|
456
456
|
.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
457
457
|
.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
458
|
-
top:
|
|
458
|
+
top: 145px;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open {
|
|
462
462
|
left: 0;
|
|
463
|
-
top:
|
|
463
|
+
top: 159px;
|
|
464
464
|
}
|
|
465
465
|
@media (min-width: 782px) {
|
|
466
466
|
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open {
|
|
467
|
-
top:
|
|
467
|
+
top: 65px;
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
|
|
471
471
|
.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
|
|
472
|
-
top:
|
|
472
|
+
top: 113px;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open {
|
|
@@ -134,10 +134,6 @@
|
|
|
134
134
|
/**
|
|
135
135
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
136
136
|
*/
|
|
137
|
-
.wp-block-navigation .wp-block-page-list > div,
|
|
138
|
-
.wp-block-navigation .wp-block-page-list {
|
|
139
|
-
background-color: inherit;
|
|
140
|
-
}
|
|
141
137
|
.wp-block-navigation.items-justified-space-between .wp-block-page-list > div,
|
|
142
138
|
.wp-block-navigation.items-justified-space-between .wp-block-page-list {
|
|
143
139
|
display: contents;
|
|
@@ -134,10 +134,6 @@
|
|
|
134
134
|
/**
|
|
135
135
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
136
136
|
*/
|
|
137
|
-
.wp-block-navigation .wp-block-page-list > div,
|
|
138
|
-
.wp-block-navigation .wp-block-page-list {
|
|
139
|
-
background-color: inherit;
|
|
140
|
-
}
|
|
141
137
|
.wp-block-navigation.items-justified-space-between .wp-block-page-list > div,
|
|
142
138
|
.wp-block-navigation.items-justified-space-between .wp-block-page-list {
|
|
143
139
|
display: contents;
|
|
@@ -136,8 +136,7 @@
|
|
|
136
136
|
*/
|
|
137
137
|
.wp-block-post-featured-image .block-editor-media-placeholder {
|
|
138
138
|
z-index: 1;
|
|
139
|
-
|
|
140
|
-
backdrop-filter: none;
|
|
139
|
+
backdrop-filter: none;
|
|
141
140
|
}
|
|
142
141
|
.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
|
|
143
142
|
.wp-block-post-featured-image .components-placeholder {
|
|
@@ -136,8 +136,7 @@
|
|
|
136
136
|
*/
|
|
137
137
|
.wp-block-post-featured-image .block-editor-media-placeholder {
|
|
138
138
|
z-index: 1;
|
|
139
|
-
|
|
140
|
-
backdrop-filter: none;
|
|
139
|
+
backdrop-filter: none;
|
|
141
140
|
}
|
|
142
141
|
.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
|
|
143
142
|
.wp-block-post-featured-image .components-placeholder {
|