mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-30 20:21:37 +01:00
Update the WP packages with fixes prior to WP 6.2 beta 4
This updated the packages to the latest versions with the latest fixes.
Gutenberg changes: 35f10c1836
Includes the following bug fixes:
- Only add layout classes to inner wrapper if block is a container.
- Revert dynamic block anchor support
- [Inserter - Media tab]: Upload Openverse images when inserted
- SpacingSizesControl: Fix white dot on thumb
- Site Editor: update the edit button
- Change "Browse all templates" to "Manage all templates" in template details popover
- Remove TemplateAreas from template details
- Add support for orientation-based block movers to core/social-links
- Site Editor: polish add template modal style
- Match color of the focus template view with site dark material
- Site Editor: Fix routing for Classic themes using block-based template parts
- Remove broken site editor redirect
- Make the template customized info accessible
- Sort templates and template parts by slug
- Prevent distracting focused back button on site editor load
- Fix: Content only CPT template locking.
- Pin floating-ui/react-dom version
- Widget Importer: Don't render controls when there's nothing to import
- Post Editor: Update postContentBlock check to see if the block is valid
- Site Tagline: Add example so that it will display in style book
- Remove copy for managing a block's style variations
- Fix the site editor home page loading when installed in a subdirectory
- Global Styles: Display preset names via the tooltip
- [Query Loop] Fix top border in pattern selection modal
- Site Editor: Fix the 'Browse all' link in the template details modal
- Site Editor: Fix the tooltip and shortcut for the global save button
- Make the Site Logo block placeholder state smaller
- Site Editor Sidebar: Add line-height for template/parts name and update width for edit button
- Style Book: Focus the Style Book when opened, and enable ESCAPE key to close
- [Site Editor]: Set html block as freeform fallback block
- Make the performance tests more stable
- Adds all allowed innerblocks to the inspector animation experiment
- Revert Link control UX changes for WP 6.2
- Fix Site Editor perf tests
- Playwright: fix request utils for non Docker envs
See #57471.
Props Mamaduka, ntsekouras.
Built from https://develop.svn.wordpress.org/trunk@55440
git-svn-id: http://core.svn.wordpress.org/trunk@54973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b68b0ad84d
commit
d444b56849
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -26,7 +26,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": true,
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
|
@ -25,7 +25,6 @@
|
||||
},
|
||||
"usesContext": [ "postType", "postId", "commentId" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"align": true,
|
||||
"alignWide": false,
|
||||
|
@ -17,7 +17,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": true,
|
||||
"anchor": true,
|
||||
"color": {
|
||||
"link": true,
|
||||
"__experimentalSkipSerialization": [ "text", "background" ],
|
||||
|
@ -30,7 +30,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": true,
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
|
@ -22,7 +22,6 @@
|
||||
},
|
||||
"usesContext": [ "commentId" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
|
@ -14,7 +14,6 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true,
|
||||
|
@ -18,7 +18,6 @@
|
||||
},
|
||||
"usesContext": [ "commentId" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
|
@ -18,7 +18,6 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"link": true,
|
||||
|
@ -14,7 +14,6 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true,
|
||||
|
@ -10,7 +10,6 @@
|
||||
"usesContext": [ "postId" ],
|
||||
"supports": {
|
||||
"align": true,
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"reusable": false,
|
||||
"spacing": {
|
||||
|
@ -14,7 +14,6 @@
|
||||
},
|
||||
"usesContext": [ "postId", "comments/paginationArrow" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"color": {
|
||||
|
@ -9,7 +9,6 @@
|
||||
"textdomain": "default",
|
||||
"usesContext": [ "postId" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"color": {
|
||||
|
@ -14,7 +14,6 @@
|
||||
},
|
||||
"usesContext": [ "postId", "comments/paginationArrow" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"color": {
|
||||
|
@ -17,7 +17,6 @@
|
||||
"comments/paginationArrow": "paginationArrow"
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
|
@ -18,8 +18,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": [ "wide", "full" ],
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true,
|
||||
@ -29,6 +27,7 @@
|
||||
"link": true
|
||||
}
|
||||
},
|
||||
"html": false,
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
"padding": true
|
||||
|
@ -22,7 +22,6 @@
|
||||
"style"
|
||||
],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"typography": {
|
||||
|
@ -29,7 +29,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": true,
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
|
@ -84,7 +84,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": true,
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
|
@ -18,7 +18,6 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"className": true,
|
||||
"typography": {
|
||||
"fontSize": false
|
||||
|
@ -92,7 +92,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": [ "wide", "full" ],
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"inserter": true,
|
||||
"typography": {
|
||||
|
@ -33,7 +33,6 @@
|
||||
"openSubmenusOnClick"
|
||||
],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"typography": {
|
||||
|
@ -13,7 +13,6 @@
|
||||
},
|
||||
"usesContext": [ "postType", "postId" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
"padding": true
|
||||
|
@ -21,7 +21,6 @@
|
||||
},
|
||||
"usesContext": [ "postType", "postId" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
|
@ -35,7 +35,6 @@
|
||||
},
|
||||
"usesContext": [ "postType", "postId", "queryId" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
|
@ -13,7 +13,6 @@
|
||||
},
|
||||
"usesContext": [ "postId", "postType" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
|
@ -8,7 +8,6 @@
|
||||
"textdomain": "default",
|
||||
"usesContext": [ "postId", "postType", "queryId" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": [ "wide", "full" ],
|
||||
"html": false,
|
||||
"__experimentalLayout": true,
|
||||
|
@ -24,7 +24,6 @@
|
||||
},
|
||||
"usesContext": [ "postId", "postType", "queryId" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
|
@ -20,7 +20,6 @@
|
||||
},
|
||||
"usesContext": [ "postId", "postType", "queryId" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
|
@ -53,7 +53,6 @@
|
||||
"usesContext": [ "postId", "postType", "queryId" ],
|
||||
"supports": {
|
||||
"align": [ "left", "right", "center", "wide", "full" ],
|
||||
"anchor": true,
|
||||
"color": {
|
||||
"__experimentalDuotone": "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",
|
||||
"text": false,
|
||||
|
@ -31,7 +31,6 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"color": {
|
||||
|
@ -19,7 +19,6 @@
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"align": true,
|
||||
"anchor": true,
|
||||
"__experimentalLayout": {
|
||||
"allowEditing": false
|
||||
},
|
||||
|
@ -28,7 +28,6 @@
|
||||
},
|
||||
"usesContext": [ "postId", "postType" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
|
@ -31,7 +31,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": [ "wide", "full" ],
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
|
@ -9,7 +9,6 @@
|
||||
"textdomain": "default",
|
||||
"usesContext": [ "queryId", "query" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
|
@ -14,7 +14,6 @@
|
||||
},
|
||||
"usesContext": [ "queryId", "query", "paginationArrow" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"color": {
|
||||
|
@ -9,7 +9,6 @@
|
||||
"textdomain": "default",
|
||||
"usesContext": [ "queryId", "query" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"color": {
|
||||
|
@ -14,7 +14,6 @@
|
||||
},
|
||||
"usesContext": [ "queryId", "query", "paginationArrow" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
"color": {
|
||||
|
@ -18,7 +18,6 @@
|
||||
"paginationArrow": "paginationArrow"
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"reusable": false,
|
||||
"html": false,
|
||||
|
@ -27,7 +27,6 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": [ "wide", "full" ],
|
||||
"html": false,
|
||||
"color": {
|
||||
|
@ -49,7 +49,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": [ "wide", "full" ],
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"__experimentalLayout": true
|
||||
},
|
||||
|
@ -36,6 +36,7 @@
|
||||
}
|
||||
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
|
||||
background:#fff;
|
||||
margin-bottom:2px;
|
||||
padding:16px 0;
|
||||
position:sticky;
|
||||
top:0;
|
||||
|
2
wp-includes/blocks/query/editor-rtl.min.css
vendored
2
wp-includes/blocks/query/editor-rtl.min.css
vendored
@ -1 +1 @@
|
||||
.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 52px 16px 16px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr 1fr}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}@media (min-width:600px){.block-library-query-pattern__selection-modal .components-modal__frame{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.block-library-query-pattern__selection-modal .components-modal__frame{width:750px}}@media (min-width:960px){.block-library-query-pattern__selection-modal .components-modal__frame{height:70%}}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}
|
||||
.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 52px 16px 16px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr 1fr}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}@media (min-width:600px){.block-library-query-pattern__selection-modal .components-modal__frame{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.block-library-query-pattern__selection-modal .components-modal__frame{width:750px}}@media (min-width:960px){.block-library-query-pattern__selection-modal .components-modal__frame{height:70%}}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}
|
@ -36,6 +36,7 @@
|
||||
}
|
||||
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
|
||||
background:#fff;
|
||||
margin-bottom:2px;
|
||||
padding:16px 0;
|
||||
position:sticky;
|
||||
top:0;
|
||||
|
2
wp-includes/blocks/query/editor.min.css
vendored
2
wp-includes/blocks/query/editor.min.css
vendored
@ -1 +1 @@
|
||||
.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr 1fr}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}@media (min-width:600px){.block-library-query-pattern__selection-modal .components-modal__frame{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.block-library-query-pattern__selection-modal .components-modal__frame{width:750px}}@media (min-width:960px){.block-library-query-pattern__selection-modal .components-modal__frame{height:70%}}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}
|
||||
.block-library-query-toolbar__popover .components-popover__content{min-width:230px}.wp-block-query__create-new-link{padding:0 16px 16px 52px}.block-library-query__pattern-selection-content .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr 1fr}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-library-query__pattern-selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{max-height:250px}@media (min-width:600px){.block-library-query-pattern__selection-modal .components-modal__frame{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.block-library-query-pattern__selection-modal .components-modal__frame{width:750px}}@media (min-width:960px){.block-library-query-pattern__selection-modal .components-modal__frame{height:70%}}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:2px;padding:16px 0;position:sticky;top:0;z-index:2}.block-library-query-toolspanel__filters .components-form-token-field__help{margin-bottom:0}.block-library-query-toolspanel__filters .block-library-query-inspector__taxonomy-control:not(:last-child){margin-bottom:24px}
|
@ -17,7 +17,6 @@
|
||||
},
|
||||
"usesContext": [ "postId" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
|
@ -43,7 +43,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": true,
|
||||
"anchor": true,
|
||||
"html": false
|
||||
},
|
||||
"editorStyle": "wp-block-rss-editor",
|
||||
|
@ -46,7 +46,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"align": [ "left", "center", "right" ],
|
||||
"anchor": true,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"__experimentalSkipSerialization": true,
|
||||
|
@ -31,7 +31,6 @@
|
||||
},
|
||||
"supports": {
|
||||
"html": false,
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"alignWide": false,
|
||||
"color": {
|
||||
|
@ -23,8 +23,8 @@
|
||||
}
|
||||
|
||||
.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{
|
||||
height:120px;
|
||||
width:120px;
|
||||
height:60px;
|
||||
width:60px;
|
||||
}
|
||||
.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{
|
||||
border-radius:inherit;
|
||||
|
@ -1 +1 @@
|
||||
.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}
|
||||
.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}
|
@ -23,8 +23,8 @@
|
||||
}
|
||||
|
||||
.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{
|
||||
height:120px;
|
||||
width:120px;
|
||||
height:60px;
|
||||
width:60px;
|
||||
}
|
||||
.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{
|
||||
border-radius:inherit;
|
||||
|
2
wp-includes/blocks/site-logo/editor.min.css
vendored
2
wp-includes/blocks/site-logo/editor.min.css
vendored
@ -1 +1 @@
|
||||
.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:120px;width:120px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}
|
||||
.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}
|
@ -12,8 +12,8 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"example": {},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": [ "wide", "full" ],
|
||||
"html": false,
|
||||
"color": {
|
||||
|
@ -27,7 +27,6 @@
|
||||
"viewportWidth": 500
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": [ "wide", "full" ],
|
||||
"html": false,
|
||||
"color": {
|
||||
|
@ -28,7 +28,6 @@
|
||||
"iconBackgroundColorValue"
|
||||
],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"reusable": false,
|
||||
"html": false
|
||||
},
|
||||
|
@ -36,7 +36,6 @@
|
||||
],
|
||||
"supports": {
|
||||
"html": false,
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"spacing": {
|
||||
"margin": true,
|
||||
|
@ -21,7 +21,6 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"html": false,
|
||||
"reusable": false
|
||||
|
@ -12,7 +12,6 @@
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": [ "wide", "full" ],
|
||||
"html": false,
|
||||
"color": {
|
||||
|
35
wp-includes/css/dist/block-editor/style-rtl.css
vendored
35
wp-includes/css/dist/block-editor/style-rtl.css
vendored
@ -1531,7 +1531,7 @@
|
||||
font-size:16px;
|
||||
line-height:normal;
|
||||
margin:0;
|
||||
padding:11px 16px;
|
||||
padding:11px 16px 11px 36px;
|
||||
position:relative;
|
||||
transition:box-shadow .1s linear;
|
||||
width:calc(100% - 32px);
|
||||
@ -1569,10 +1569,9 @@
|
||||
}
|
||||
|
||||
.block-editor-link-control__search-actions{
|
||||
display:flex;
|
||||
flex-direction:row-reverse;
|
||||
gap:8px;
|
||||
justify-content:flex-start;
|
||||
left:19px;
|
||||
position:absolute;
|
||||
top:3px;
|
||||
}
|
||||
|
||||
.components-button .block-editor-link-control__search-submit .has-icon{
|
||||
@ -1849,11 +1848,10 @@
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
.block-editor-link-control__drawer{
|
||||
.block-editor-link-control__tools{
|
||||
align-items:center;
|
||||
border-top:1px solid #ddd;
|
||||
display:flex;
|
||||
justify-content:space-between;
|
||||
margin:0;
|
||||
padding:16px;
|
||||
}
|
||||
@ -1886,7 +1884,7 @@
|
||||
}
|
||||
.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{
|
||||
bottom:auto;
|
||||
left:16px;
|
||||
left:36px;
|
||||
position:absolute;
|
||||
right:auto;
|
||||
top:calc(50% - 8px);
|
||||
@ -3563,6 +3561,16 @@
|
||||
margin:0 auto;
|
||||
max-width:100%;
|
||||
}
|
||||
.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{
|
||||
align-items:center;
|
||||
background:hsla(0,0%,100%,.7);
|
||||
display:flex;
|
||||
height:100%;
|
||||
justify-content:center;
|
||||
pointer-events:none;
|
||||
position:absolute;
|
||||
width:100%;
|
||||
}
|
||||
.block-editor-inserter__media-list .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview{
|
||||
box-shadow:inset 0 0 0 2px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
outline:2px solid transparent;
|
||||
@ -3580,6 +3588,15 @@
|
||||
height:100%;
|
||||
}
|
||||
|
||||
@media (min-width:600px){
|
||||
.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{
|
||||
max-width:480px;
|
||||
}
|
||||
}
|
||||
.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.block-editor-post-preview__dropdown{
|
||||
padding:0;
|
||||
}
|
||||
@ -3727,7 +3744,7 @@
|
||||
.component-spacing-sizes-control .components-range-control__marks :first-child{
|
||||
display:none;
|
||||
}
|
||||
.component-spacing-sizes-control [class*=ThumbWrapper-thumbColor]{
|
||||
.component-spacing-sizes-control .components-range-control__thumb-wrapper{
|
||||
z-index:3;
|
||||
}
|
||||
.component-spacing-sizes-control .components-spacing-sizes-control__custom-select-control{
|
||||
|
File diff suppressed because one or more lines are too long
35
wp-includes/css/dist/block-editor/style.css
vendored
35
wp-includes/css/dist/block-editor/style.css
vendored
@ -1531,7 +1531,7 @@
|
||||
font-size:16px;
|
||||
line-height:normal;
|
||||
margin:0;
|
||||
padding:11px 16px;
|
||||
padding:11px 36px 11px 16px;
|
||||
position:relative;
|
||||
transition:box-shadow .1s linear;
|
||||
width:calc(100% - 32px);
|
||||
@ -1569,10 +1569,9 @@
|
||||
}
|
||||
|
||||
.block-editor-link-control__search-actions{
|
||||
display:flex;
|
||||
flex-direction:row-reverse;
|
||||
gap:8px;
|
||||
justify-content:flex-start;
|
||||
position:absolute;
|
||||
right:19px;
|
||||
top:3px;
|
||||
}
|
||||
|
||||
.components-button .block-editor-link-control__search-submit .has-icon{
|
||||
@ -1849,11 +1848,10 @@
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
.block-editor-link-control__drawer{
|
||||
.block-editor-link-control__tools{
|
||||
align-items:center;
|
||||
border-top:1px solid #ddd;
|
||||
display:flex;
|
||||
justify-content:space-between;
|
||||
margin:0;
|
||||
padding:16px;
|
||||
}
|
||||
@ -1888,7 +1886,7 @@
|
||||
bottom:auto;
|
||||
left:auto;
|
||||
position:absolute;
|
||||
right:16px;
|
||||
right:36px;
|
||||
top:calc(50% - 8px);
|
||||
}
|
||||
|
||||
@ -3563,6 +3561,16 @@
|
||||
margin:0 auto;
|
||||
max-width:100%;
|
||||
}
|
||||
.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{
|
||||
align-items:center;
|
||||
background:hsla(0,0%,100%,.7);
|
||||
display:flex;
|
||||
height:100%;
|
||||
justify-content:center;
|
||||
pointer-events:none;
|
||||
position:absolute;
|
||||
width:100%;
|
||||
}
|
||||
.block-editor-inserter__media-list .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview{
|
||||
box-shadow:inset 0 0 0 2px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
||||
outline:2px solid transparent;
|
||||
@ -3580,6 +3588,15 @@
|
||||
height:100%;
|
||||
}
|
||||
|
||||
@media (min-width:600px){
|
||||
.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{
|
||||
max-width:480px;
|
||||
}
|
||||
}
|
||||
.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.block-editor-post-preview__dropdown{
|
||||
padding:0;
|
||||
}
|
||||
@ -3727,7 +3744,7 @@
|
||||
.component-spacing-sizes-control .components-range-control__marks :first-child{
|
||||
display:none;
|
||||
}
|
||||
.component-spacing-sizes-control [class*=ThumbWrapper-thumbColor]{
|
||||
.component-spacing-sizes-control .components-range-control__thumb-wrapper{
|
||||
z-index:3;
|
||||
}
|
||||
.component-spacing-sizes-control .components-spacing-sizes-control__custom-select-control{
|
||||
|
File diff suppressed because one or more lines are too long
@ -2054,8 +2054,8 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
||||
}
|
||||
|
||||
.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{
|
||||
height:120px;
|
||||
width:120px;
|
||||
height:60px;
|
||||
width:60px;
|
||||
}
|
||||
.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{
|
||||
border-radius:inherit;
|
||||
@ -2465,6 +2465,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
||||
}
|
||||
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
|
||||
background:#fff;
|
||||
margin-bottom:2px;
|
||||
padding:16px 0;
|
||||
position:sticky;
|
||||
top:0;
|
||||
|
File diff suppressed because one or more lines are too long
@ -2052,8 +2052,8 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
||||
}
|
||||
|
||||
.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{
|
||||
height:120px;
|
||||
width:120px;
|
||||
height:60px;
|
||||
width:60px;
|
||||
}
|
||||
.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{
|
||||
border-radius:inherit;
|
||||
@ -2463,6 +2463,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
||||
}
|
||||
.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{
|
||||
background:#fff;
|
||||
margin-bottom:2px;
|
||||
padding:16px 0;
|
||||
position:sticky;
|
||||
top:0;
|
||||
|
File diff suppressed because one or more lines are too long
52
wp-includes/css/dist/edit-site/style-rtl.css
vendored
52
wp-includes/css/dist/edit-site/style-rtl.css
vendored
@ -509,9 +509,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||
}
|
||||
}
|
||||
|
||||
.edit-site-custom-template-modal__suggestions_list{
|
||||
margin-top:16px;
|
||||
}
|
||||
@media (min-width:600px){
|
||||
.edit-site-custom-template-modal__suggestions_list{
|
||||
height:232px;
|
||||
@ -561,8 +558,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||
.edit-site-custom-template-modal__no-results{
|
||||
border:1px solid #ccc;
|
||||
border-radius:2px;
|
||||
margin-bottom:0;
|
||||
margin-top:16px;
|
||||
padding:16px;
|
||||
}
|
||||
|
||||
@ -607,7 +602,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||
|
||||
.edit-site-visual-editor{
|
||||
align-items:center;
|
||||
background-color:#2f2f2f;
|
||||
background-color:#1e1e1e;
|
||||
display:block;
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
@ -1387,23 +1382,11 @@ body.is-fullscreen-mode .edit-site-list-header{
|
||||
flex-shrink:0;
|
||||
height:32px;
|
||||
justify-content:center;
|
||||
position:relative;
|
||||
width:32px;
|
||||
}
|
||||
.edit-site-list-added-by__icon svg{
|
||||
fill:#fff;
|
||||
}
|
||||
.edit-site-list-added-by__icon.is-customized:after{
|
||||
background:var(--wp-admin-theme-color);
|
||||
border-radius:100%;
|
||||
content:"";
|
||||
height:8px;
|
||||
left:-1px;
|
||||
outline:2px solid #fff;
|
||||
position:absolute;
|
||||
top:-1px;
|
||||
width:8px;
|
||||
}
|
||||
|
||||
.edit-site-list-added-by__avatar{
|
||||
background:#2f2f2f;
|
||||
@ -1431,6 +1414,11 @@ body.is-fullscreen-mode .edit-site-list-header{
|
||||
opacity:1;
|
||||
}
|
||||
|
||||
.edit-site-list-added-by__customized-info{
|
||||
color:#757575;
|
||||
display:block;
|
||||
}
|
||||
|
||||
@keyframes loadingpulse{
|
||||
0%{
|
||||
opacity:1;
|
||||
@ -2222,6 +2210,22 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
|
||||
padding:0 12px;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-button{
|
||||
color:#e0e0e0;
|
||||
flex-shrink:0;
|
||||
}
|
||||
.edit-site-sidebar-button:focus:not(:disabled){
|
||||
box-shadow:none;
|
||||
outline:none;
|
||||
}
|
||||
.edit-site-sidebar-button:focus-visible:not(:disabled){
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
|
||||
outline:3px solid transparent;
|
||||
}
|
||||
.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active{
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-item.components-item{
|
||||
border-width:1.5px;
|
||||
color:#949494;
|
||||
@ -2283,24 +2287,14 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
|
||||
flex-grow:1;
|
||||
font-size:20.28px;
|
||||
font-weight:500;
|
||||
line-height:normal;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-screen__back{
|
||||
color:#e0e0e0;
|
||||
}
|
||||
.edit-site-sidebar-navigation-screen__back:focus,.edit-site-sidebar-navigation-screen__back:hover,.edit-site-sidebar-navigation-screen__back:not([aria-disabled=true]):active{
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-screen-templates__see-all{
|
||||
margin-top:16px !important;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-screen-templates__add-button{
|
||||
color:inherit !important;
|
||||
}
|
||||
|
||||
.edit-site-site-hub{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
|
File diff suppressed because one or more lines are too long
52
wp-includes/css/dist/edit-site/style.css
vendored
52
wp-includes/css/dist/edit-site/style.css
vendored
@ -509,9 +509,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||
}
|
||||
}
|
||||
|
||||
.edit-site-custom-template-modal__suggestions_list{
|
||||
margin-top:16px;
|
||||
}
|
||||
@media (min-width:600px){
|
||||
.edit-site-custom-template-modal__suggestions_list{
|
||||
height:232px;
|
||||
@ -561,8 +558,6 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||
.edit-site-custom-template-modal__no-results{
|
||||
border:1px solid #ccc;
|
||||
border-radius:2px;
|
||||
margin-bottom:0;
|
||||
margin-top:16px;
|
||||
padding:16px;
|
||||
}
|
||||
|
||||
@ -607,7 +602,7 @@ body.is-fullscreen-mode .interface-interface-skeleton{
|
||||
|
||||
.edit-site-visual-editor{
|
||||
align-items:center;
|
||||
background-color:#2f2f2f;
|
||||
background-color:#1e1e1e;
|
||||
display:block;
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
@ -1387,23 +1382,11 @@ body.is-fullscreen-mode .edit-site-list-header{
|
||||
flex-shrink:0;
|
||||
height:32px;
|
||||
justify-content:center;
|
||||
position:relative;
|
||||
width:32px;
|
||||
}
|
||||
.edit-site-list-added-by__icon svg{
|
||||
fill:#fff;
|
||||
}
|
||||
.edit-site-list-added-by__icon.is-customized:after{
|
||||
background:var(--wp-admin-theme-color);
|
||||
border-radius:100%;
|
||||
content:"";
|
||||
height:8px;
|
||||
outline:2px solid #fff;
|
||||
position:absolute;
|
||||
right:-1px;
|
||||
top:-1px;
|
||||
width:8px;
|
||||
}
|
||||
|
||||
.edit-site-list-added-by__avatar{
|
||||
background:#2f2f2f;
|
||||
@ -1431,6 +1414,11 @@ body.is-fullscreen-mode .edit-site-list-header{
|
||||
opacity:1;
|
||||
}
|
||||
|
||||
.edit-site-list-added-by__customized-info{
|
||||
color:#757575;
|
||||
display:block;
|
||||
}
|
||||
|
||||
@keyframes loadingpulse{
|
||||
0%{
|
||||
opacity:1;
|
||||
@ -2222,6 +2210,22 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
|
||||
padding:0 12px;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-button{
|
||||
color:#e0e0e0;
|
||||
flex-shrink:0;
|
||||
}
|
||||
.edit-site-sidebar-button:focus:not(:disabled){
|
||||
box-shadow:none;
|
||||
outline:none;
|
||||
}
|
||||
.edit-site-sidebar-button:focus-visible:not(:disabled){
|
||||
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
|
||||
outline:3px solid transparent;
|
||||
}
|
||||
.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active{
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-item.components-item{
|
||||
border-width:1.5px;
|
||||
color:#949494;
|
||||
@ -2283,24 +2287,14 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{
|
||||
flex-grow:1;
|
||||
font-size:20.28px;
|
||||
font-weight:500;
|
||||
line-height:normal;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-screen__back{
|
||||
color:#e0e0e0;
|
||||
}
|
||||
.edit-site-sidebar-navigation-screen__back:focus,.edit-site-sidebar-navigation-screen__back:hover,.edit-site-sidebar-navigation-screen__back:not([aria-disabled=true]):active{
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-screen-templates__see-all{
|
||||
margin-top:16px !important;
|
||||
}
|
||||
|
||||
.edit-site-sidebar-navigation-screen-templates__add-button{
|
||||
color:inherit !important;
|
||||
}
|
||||
|
||||
.edit-site-site-hub{
|
||||
align-items:center;
|
||||
display:flex;
|
||||
|
2
wp-includes/css/dist/edit-site/style.min.css
vendored
2
wp-includes/css/dist/edit-site/style.min.css
vendored
File diff suppressed because one or more lines are too long
5038
wp-includes/js/dist/block-editor.js
vendored
5038
wp-includes/js/dist/block-editor.js
vendored
File diff suppressed because one or more lines are too long
8
wp-includes/js/dist/block-editor.min.js
vendored
8
wp-includes/js/dist/block-editor.min.js
vendored
File diff suppressed because one or more lines are too long
110
wp-includes/js/dist/block-library.js
vendored
110
wp-includes/js/dist/block-library.js
vendored
@ -2079,7 +2079,6 @@ const metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: true,
|
||||
anchor: true,
|
||||
html: false,
|
||||
spacing: {
|
||||
margin: true,
|
||||
@ -2546,7 +2545,6 @@ const avatar_metadata = {
|
||||
},
|
||||
usesContext: ["postType", "postId", "commentId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
align: true,
|
||||
alignWide: false,
|
||||
@ -5813,7 +5811,6 @@ const calendar_metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: true,
|
||||
anchor: true,
|
||||
color: {
|
||||
link: true,
|
||||
__experimentalSkipSerialization: ["text", "background"],
|
||||
@ -6089,7 +6086,6 @@ const categories_metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: true,
|
||||
anchor: true,
|
||||
html: false,
|
||||
spacing: {
|
||||
margin: true,
|
||||
@ -8715,8 +8711,6 @@ const comments_metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: ["wide", "full"],
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
gradients: true,
|
||||
link: true,
|
||||
@ -8726,6 +8720,7 @@ const comments_metadata = {
|
||||
link: true
|
||||
}
|
||||
},
|
||||
html: false,
|
||||
spacing: {
|
||||
margin: true,
|
||||
padding: true
|
||||
@ -8885,7 +8880,6 @@ const comment_author_avatar_metadata = {
|
||||
},
|
||||
usesContext: ["commentId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
inserter: false,
|
||||
__experimentalBorder: {
|
||||
@ -9143,7 +9137,6 @@ const comment_author_name_metadata = {
|
||||
},
|
||||
usesContext: ["commentId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
spacing: {
|
||||
margin: true,
|
||||
@ -9296,7 +9289,6 @@ const comment_content_metadata = {
|
||||
}
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
color: {
|
||||
gradients: true,
|
||||
link: true,
|
||||
@ -9523,7 +9515,6 @@ const comment_date_metadata = {
|
||||
},
|
||||
usesContext: ["commentId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
gradients: true,
|
||||
@ -9667,7 +9658,6 @@ const comment_edit_link_metadata = {
|
||||
}
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
link: true,
|
||||
@ -9807,7 +9797,6 @@ const comment_reply_link_metadata = {
|
||||
}
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
color: {
|
||||
gradients: true,
|
||||
link: true,
|
||||
@ -10338,7 +10327,6 @@ const comment_template_metadata = {
|
||||
usesContext: ["postId"],
|
||||
supports: {
|
||||
align: true,
|
||||
anchor: true,
|
||||
html: false,
|
||||
reusable: false,
|
||||
spacing: {
|
||||
@ -10461,7 +10449,6 @@ const comments_pagination_previous_metadata = {
|
||||
},
|
||||
usesContext: ["postId", "comments/paginationArrow"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
color: {
|
||||
@ -10662,7 +10649,6 @@ const comments_pagination_metadata = {
|
||||
"comments/paginationArrow": "paginationArrow"
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
align: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
@ -10799,7 +10785,6 @@ const comments_pagination_next_metadata = {
|
||||
},
|
||||
usesContext: ["postId", "comments/paginationArrow"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
color: {
|
||||
@ -10920,7 +10905,6 @@ const comments_pagination_numbers_metadata = {
|
||||
textdomain: "default",
|
||||
usesContext: ["postId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
color: {
|
||||
@ -22988,7 +22972,6 @@ const home_link_metadata = {
|
||||
},
|
||||
usesContext: ["textColor", "customTextColor", "backgroundColor", "customBackgroundColor", "fontSize", "customFontSize", "style"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
typography: {
|
||||
@ -25147,7 +25130,6 @@ const latest_comments_metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: true,
|
||||
anchor: true,
|
||||
html: false,
|
||||
spacing: {
|
||||
margin: true,
|
||||
@ -25278,7 +25260,6 @@ const latest_posts_deprecated_metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: true,
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
gradients: true,
|
||||
@ -25875,7 +25856,6 @@ const latest_posts_metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: true,
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
gradients: true,
|
||||
@ -27904,7 +27884,6 @@ const loginout_metadata = {
|
||||
}
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
className: true,
|
||||
typography: {
|
||||
fontSize: false
|
||||
@ -33241,7 +33220,6 @@ const navigation_metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: ["wide", "full"],
|
||||
anchor: true,
|
||||
html: false,
|
||||
inserter: true,
|
||||
typography: {
|
||||
@ -34031,17 +34009,12 @@ function NavigationLinkEdit(_ref) {
|
||||
|
||||
function removeLink() {
|
||||
// Reset all attributes that comprise the link.
|
||||
// It is critical that all attributes are reset
|
||||
// to their default values otherwise this may
|
||||
// in advertently trigger side effects because
|
||||
// the values will have "changed".
|
||||
setAttributes({
|
||||
url: undefined,
|
||||
label: undefined,
|
||||
id: undefined,
|
||||
kind: undefined,
|
||||
type: undefined,
|
||||
opensInNewTab: false
|
||||
url: '',
|
||||
label: '',
|
||||
id: '',
|
||||
kind: '',
|
||||
type: ''
|
||||
}); // Close the link editing UI.
|
||||
|
||||
setIsLinkOpen(false);
|
||||
@ -35949,7 +35922,6 @@ const page_list_metadata = {
|
||||
},
|
||||
usesContext: ["textColor", "customTextColor", "backgroundColor", "customBackgroundColor", "overlayTextColor", "customOverlayTextColor", "overlayBackgroundColor", "customOverlayBackgroundColor", "fontSize", "customFontSize", "showSubmenuIcon", "style", "openSubmenusOnClick"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
typography: {
|
||||
@ -37319,7 +37291,6 @@ const post_author_metadata = {
|
||||
},
|
||||
usesContext: ["postType", "postId", "queryId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
spacing: {
|
||||
margin: true,
|
||||
@ -37519,7 +37490,6 @@ const post_author_name_metadata = {
|
||||
},
|
||||
usesContext: ["postType", "postId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
spacing: {
|
||||
margin: true,
|
||||
@ -37661,7 +37631,6 @@ const post_author_biography_metadata = {
|
||||
},
|
||||
usesContext: ["postType", "postId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
spacing: {
|
||||
margin: true,
|
||||
padding: true
|
||||
@ -37944,7 +37913,6 @@ const post_comments_count_metadata = {
|
||||
},
|
||||
usesContext: ["postId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
gradients: true,
|
||||
@ -38077,7 +38045,6 @@ const post_comments_form_metadata = {
|
||||
},
|
||||
usesContext: ["postId", "postType"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
gradients: true,
|
||||
@ -38243,7 +38210,6 @@ const post_comments_link_metadata = {
|
||||
}
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
link: true,
|
||||
@ -38442,7 +38408,6 @@ const post_content_metadata = {
|
||||
textdomain: "default",
|
||||
usesContext: ["postId", "postType", "queryId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
align: ["wide", "full"],
|
||||
html: false,
|
||||
__experimentalLayout: true,
|
||||
@ -38718,7 +38683,6 @@ const post_date_metadata = {
|
||||
},
|
||||
usesContext: ["postId", "postType", "queryId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
gradients: true,
|
||||
@ -38945,7 +38909,6 @@ const post_excerpt_metadata = {
|
||||
},
|
||||
usesContext: ["postId", "postType", "queryId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
gradients: true,
|
||||
@ -39589,7 +39552,6 @@ const post_featured_image_metadata = {
|
||||
usesContext: ["postId", "postType", "queryId"],
|
||||
supports: {
|
||||
align: ["left", "right", "center", "wide", "full"],
|
||||
anchor: true,
|
||||
color: {
|
||||
__experimentalDuotone: "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",
|
||||
text: false,
|
||||
@ -39844,7 +39806,6 @@ const post_navigation_link_metadata = {
|
||||
}
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
color: {
|
||||
@ -40161,7 +40122,6 @@ const post_template_metadata = {
|
||||
reusable: false,
|
||||
html: false,
|
||||
align: true,
|
||||
anchor: true,
|
||||
__experimentalLayout: {
|
||||
allowEditing: false
|
||||
},
|
||||
@ -40483,7 +40443,6 @@ const post_terms_metadata = {
|
||||
},
|
||||
usesContext: ["postId", "postType"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
gradients: true,
|
||||
@ -40774,7 +40733,6 @@ const post_title_metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: ["wide", "full"],
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
gradients: true,
|
||||
@ -42077,7 +42035,6 @@ const {
|
||||
},
|
||||
supports: {
|
||||
align: ["wide", "full"],
|
||||
anchor: true,
|
||||
html: false,
|
||||
__experimentalLayout: true
|
||||
},
|
||||
@ -44346,7 +44303,6 @@ const query_metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: ["wide", "full"],
|
||||
anchor: true,
|
||||
html: false,
|
||||
__experimentalLayout: true
|
||||
},
|
||||
@ -44428,7 +44384,6 @@ const query_no_results_metadata = {
|
||||
textdomain: "default",
|
||||
usesContext: ["queryId", "query"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
align: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
@ -44613,7 +44568,6 @@ const query_pagination_metadata = {
|
||||
paginationArrow: "paginationArrow"
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
align: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
@ -44738,7 +44692,6 @@ const query_pagination_next_metadata = {
|
||||
},
|
||||
usesContext: ["queryId", "query", "paginationArrow"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
color: {
|
||||
@ -44822,7 +44775,6 @@ const query_pagination_numbers_metadata = {
|
||||
textdomain: "default",
|
||||
usesContext: ["queryId", "query"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
color: {
|
||||
@ -44932,7 +44884,6 @@ const query_pagination_previous_metadata = {
|
||||
},
|
||||
usesContext: ["queryId", "query", "paginationArrow"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
reusable: false,
|
||||
html: false,
|
||||
color: {
|
||||
@ -45197,7 +45148,6 @@ const query_title_metadata = {
|
||||
}
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
align: ["wide", "full"],
|
||||
html: false,
|
||||
color: {
|
||||
@ -46187,7 +46137,6 @@ const read_more_metadata = {
|
||||
},
|
||||
usesContext: ["postId"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
html: false,
|
||||
color: {
|
||||
gradients: true,
|
||||
@ -46458,7 +46407,6 @@ const rss_metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: true,
|
||||
anchor: true,
|
||||
html: false
|
||||
},
|
||||
editorStyle: "wp-block-rss-editor",
|
||||
@ -47069,7 +47017,6 @@ const search_metadata = {
|
||||
},
|
||||
supports: {
|
||||
align: ["left", "center", "right"],
|
||||
anchor: true,
|
||||
color: {
|
||||
gradients: true,
|
||||
__experimentalSkipSerialization: true,
|
||||
@ -48195,7 +48142,6 @@ const site_logo_metadata = {
|
||||
},
|
||||
supports: {
|
||||
html: false,
|
||||
anchor: true,
|
||||
align: true,
|
||||
alignWide: false,
|
||||
color: {
|
||||
@ -48412,8 +48358,8 @@ const site_tagline_metadata = {
|
||||
type: "string"
|
||||
}
|
||||
},
|
||||
example: {},
|
||||
supports: {
|
||||
anchor: true,
|
||||
align: ["wide", "full"],
|
||||
html: false,
|
||||
color: {
|
||||
@ -48798,7 +48744,6 @@ const site_title_metadata = {
|
||||
viewportWidth: 500
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
align: ["wide", "full"],
|
||||
html: false,
|
||||
color: {
|
||||
@ -50105,7 +50050,6 @@ const social_link_metadata = {
|
||||
},
|
||||
usesContext: ["openInNewTab", "showLabels", "iconColorValue", "iconBackgroundColorValue"],
|
||||
supports: {
|
||||
anchor: true,
|
||||
reusable: false,
|
||||
html: false
|
||||
},
|
||||
@ -50295,7 +50239,7 @@ const sizeOptions = [{
|
||||
value: 'has-huge-icon-size'
|
||||
}];
|
||||
function SocialLinksEdit(props) {
|
||||
var _attributes$className;
|
||||
var _attributes$className, _attributes$layout$or, _attributes$layout;
|
||||
|
||||
const {
|
||||
clientId,
|
||||
@ -50364,6 +50308,7 @@ function SocialLinksEdit(props) {
|
||||
allowedBlocks: social_links_edit_ALLOWED_BLOCKS,
|
||||
placeholder: isSelected ? SelectedSocialPlaceholder : SocialPlaceholder,
|
||||
templateLock: false,
|
||||
orientation: (_attributes$layout$or = (_attributes$layout = attributes.layout) === null || _attributes$layout === void 0 ? void 0 : _attributes$layout.orientation) !== null && _attributes$layout$or !== void 0 ? _attributes$layout$or : 'horizontal',
|
||||
__experimentalAppenderTagName: 'li'
|
||||
});
|
||||
const POPOVER_PROPS = {
|
||||
@ -53910,7 +53855,6 @@ const tag_cloud_metadata = {
|
||||
}],
|
||||
supports: {
|
||||
html: false,
|
||||
anchor: true,
|
||||
align: true,
|
||||
spacing: {
|
||||
margin: true,
|
||||
@ -54700,6 +54644,10 @@ function transformWidgetToBlock(widget) {
|
||||
|
||||
|
||||
|
||||
const SIDEBARS_QUERY = {
|
||||
per_page: -1,
|
||||
_fields: 'id,name,description,status,widgets'
|
||||
};
|
||||
function TemplatePartImportControls(_ref) {
|
||||
let {
|
||||
area,
|
||||
@ -54708,11 +54656,18 @@ function TemplatePartImportControls(_ref) {
|
||||
const [selectedSidebar, setSelectedSidebar] = (0,external_wp_element_namespaceObject.useState)('');
|
||||
const [isBusy, setIsBusy] = (0,external_wp_element_namespaceObject.useState)(false);
|
||||
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
|
||||
const sidebars = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
return select(external_wp_coreData_namespaceObject.store).getSidebars({
|
||||
per_page: -1,
|
||||
_fields: 'id,name,description,status,widgets'
|
||||
});
|
||||
const {
|
||||
sidebars,
|
||||
hasResolved
|
||||
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
|
||||
const {
|
||||
getSidebars,
|
||||
hasFinishedResolution
|
||||
} = select(external_wp_coreData_namespaceObject.store);
|
||||
return {
|
||||
sidebars: getSidebars(SIDEBARS_QUERY),
|
||||
hasResolved: hasFinishedResolution('getSidebars', [SIDEBARS_QUERY])
|
||||
};
|
||||
}, []);
|
||||
const {
|
||||
createErrorNotice
|
||||
@ -54734,7 +54689,18 @@ function TemplatePartImportControls(_ref) {
|
||||
value: '',
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Select widget area')
|
||||
}, ...sidebarOptions];
|
||||
}, [sidebars]);
|
||||
}, [sidebars]); // Render an empty node while data is loading to avoid SlotFill re-positioning bug.
|
||||
// See: https://github.com/WordPress/gutenberg/issues/15641.
|
||||
|
||||
if (!hasResolved) {
|
||||
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalSpacer, {
|
||||
marginBottom: "0"
|
||||
});
|
||||
}
|
||||
|
||||
if (hasResolved && !options.length) {
|
||||
return null;
|
||||
}
|
||||
|
||||
async function createFromWidgets(event) {
|
||||
event.preventDefault();
|
||||
@ -55279,7 +55245,6 @@ const template_part_metadata = {
|
||||
}
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
align: true,
|
||||
html: false,
|
||||
reusable: false
|
||||
@ -55432,7 +55397,6 @@ const term_description_metadata = {
|
||||
}
|
||||
},
|
||||
supports: {
|
||||
anchor: true,
|
||||
align: ["wide", "full"],
|
||||
html: false,
|
||||
color: {
|
||||
|
4
wp-includes/js/dist/block-library.min.js
vendored
4
wp-includes/js/dist/block-library.min.js
vendored
File diff suppressed because one or more lines are too long
245
wp-includes/js/dist/components.js
vendored
245
wp-includes/js/dist/components.js
vendored
@ -5100,44 +5100,6 @@ var external_ReactDOM_namespaceObject = window["ReactDOM"];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* A data provider that provides data to position an inner element of the
|
||||
* floating element (usually a triangle or caret) so that it is centered to the
|
||||
* reference element.
|
||||
* This wraps the core `arrow` middleware to allow React refs as the element.
|
||||
* @see https://floating-ui.com/docs/arrow
|
||||
*/
|
||||
const arrow = options => {
|
||||
const {
|
||||
element,
|
||||
padding
|
||||
} = options;
|
||||
function isRef(value) {
|
||||
return Object.prototype.hasOwnProperty.call(value, 'current');
|
||||
}
|
||||
return {
|
||||
name: 'arrow',
|
||||
options,
|
||||
fn(args) {
|
||||
if (isRef(element)) {
|
||||
if (element.current != null) {
|
||||
return m({
|
||||
element: element.current,
|
||||
padding
|
||||
}).fn(args);
|
||||
}
|
||||
return {};
|
||||
} else if (element) {
|
||||
return m({
|
||||
element,
|
||||
padding
|
||||
}).fn(args);
|
||||
}
|
||||
return {};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
var index = typeof document !== 'undefined' ? external_React_.useLayoutEffect : external_React_.useEffect;
|
||||
|
||||
// Fork of `fast-deep-equal` that only does the comparisons we need and compares
|
||||
@ -5146,45 +5108,59 @@ function deepEqual(a, b) {
|
||||
if (a === b) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (typeof a !== typeof b) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (typeof a === 'function' && a.toString() === b.toString()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
let length, i, keys;
|
||||
|
||||
if (a && b && typeof a == 'object') {
|
||||
if (Array.isArray(a)) {
|
||||
length = a.length;
|
||||
if (length != b.length) return false;
|
||||
|
||||
for (i = length; i-- !== 0;) {
|
||||
if (!deepEqual(a[i], b[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
keys = Object.keys(a);
|
||||
length = keys.length;
|
||||
|
||||
if (length !== Object.keys(b).length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (i = length; i-- !== 0;) {
|
||||
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
for (i = length; i-- !== 0;) {
|
||||
const key = keys[i];
|
||||
|
||||
if (key === '_owner' && a.$$typeof) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!deepEqual(a[key], b[key])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return a !== a && b !== b;
|
||||
}
|
||||
|
||||
@ -5196,87 +5172,75 @@ function useLatestRef(value) {
|
||||
return ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides data to position a floating element.
|
||||
* @see https://floating-ui.com/docs/react
|
||||
*/
|
||||
function useFloating(options) {
|
||||
if (options === void 0) {
|
||||
options = {};
|
||||
}
|
||||
const {
|
||||
function useFloating(_temp) {
|
||||
let {
|
||||
middleware,
|
||||
placement = 'bottom',
|
||||
strategy = 'absolute',
|
||||
middleware = [],
|
||||
platform,
|
||||
whileElementsMounted,
|
||||
open
|
||||
} = options;
|
||||
whileElementsMounted
|
||||
} = _temp === void 0 ? {} : _temp;
|
||||
const [data, setData] = external_React_.useState({
|
||||
// Setting these to `null` will allow the consumer to determine if
|
||||
// `computePosition()` has run yet
|
||||
x: null,
|
||||
y: null,
|
||||
strategy,
|
||||
placement,
|
||||
middlewareData: {},
|
||||
isPositioned: false
|
||||
middlewareData: {}
|
||||
});
|
||||
const [latestMiddleware, setLatestMiddleware] = external_React_.useState(middleware);
|
||||
if (!deepEqual(latestMiddleware, middleware)) {
|
||||
|
||||
if (!deepEqual(latestMiddleware == null ? void 0 : latestMiddleware.map(_ref => {
|
||||
let {
|
||||
name,
|
||||
options
|
||||
} = _ref;
|
||||
return {
|
||||
name,
|
||||
options
|
||||
};
|
||||
}), middleware == null ? void 0 : middleware.map(_ref2 => {
|
||||
let {
|
||||
name,
|
||||
options
|
||||
} = _ref2;
|
||||
return {
|
||||
name,
|
||||
options
|
||||
};
|
||||
}))) {
|
||||
setLatestMiddleware(middleware);
|
||||
}
|
||||
const referenceRef = external_React_.useRef(null);
|
||||
const floatingRef = external_React_.useRef(null);
|
||||
|
||||
const reference = external_React_.useRef(null);
|
||||
const floating = external_React_.useRef(null);
|
||||
const cleanupRef = external_React_.useRef(null);
|
||||
const dataRef = external_React_.useRef(data);
|
||||
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
||||
const platformRef = useLatestRef(platform);
|
||||
const [reference, _setReference] = external_React_.useState(null);
|
||||
const [floating, _setFloating] = external_React_.useState(null);
|
||||
const setReference = external_React_.useCallback(node => {
|
||||
if (referenceRef.current !== node) {
|
||||
referenceRef.current = node;
|
||||
_setReference(node);
|
||||
}
|
||||
}, []);
|
||||
const setFloating = external_React_.useCallback(node => {
|
||||
if (floatingRef.current !== node) {
|
||||
floatingRef.current = node;
|
||||
_setFloating(node);
|
||||
}
|
||||
}, []);
|
||||
const update = external_React_.useCallback(() => {
|
||||
if (!referenceRef.current || !floatingRef.current) {
|
||||
if (!reference.current || !floating.current) {
|
||||
return;
|
||||
}
|
||||
const config = {
|
||||
|
||||
z(reference.current, floating.current, {
|
||||
middleware: latestMiddleware,
|
||||
placement,
|
||||
strategy,
|
||||
middleware: latestMiddleware
|
||||
};
|
||||
if (platformRef.current) {
|
||||
config.platform = platformRef.current;
|
||||
}
|
||||
z(referenceRef.current, floatingRef.current, config).then(data => {
|
||||
const fullData = {
|
||||
...data,
|
||||
isPositioned: true
|
||||
};
|
||||
if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
|
||||
dataRef.current = fullData;
|
||||
strategy
|
||||
}).then(data => {
|
||||
if (isMountedRef.current && !deepEqual(dataRef.current, data)) {
|
||||
dataRef.current = data;
|
||||
external_ReactDOM_namespaceObject.flushSync(() => {
|
||||
setData(fullData);
|
||||
setData(data);
|
||||
});
|
||||
}
|
||||
});
|
||||
}, [latestMiddleware, placement, strategy, platformRef]);
|
||||
}, [latestMiddleware, placement, strategy]);
|
||||
index(() => {
|
||||
if (open === false && dataRef.current.isPositioned) {
|
||||
dataRef.current.isPositioned = false;
|
||||
setData(data => ({
|
||||
...data,
|
||||
isPositioned: false
|
||||
}));
|
||||
// Skip first update
|
||||
if (isMountedRef.current) {
|
||||
update();
|
||||
}
|
||||
}, [open]);
|
||||
}, [update]);
|
||||
const isMountedRef = external_React_.useRef(false);
|
||||
index(() => {
|
||||
isMountedRef.current = true;
|
||||
@ -5284,35 +5248,85 @@ function useFloating(options) {
|
||||
isMountedRef.current = false;
|
||||
};
|
||||
}, []);
|
||||
index(() => {
|
||||
if (reference && floating) {
|
||||
const runElementMountCallback = external_React_.useCallback(() => {
|
||||
if (typeof cleanupRef.current === 'function') {
|
||||
cleanupRef.current();
|
||||
cleanupRef.current = null;
|
||||
}
|
||||
|
||||
if (reference.current && floating.current) {
|
||||
if (whileElementsMountedRef.current) {
|
||||
return whileElementsMountedRef.current(reference, floating, update);
|
||||
const cleanupFn = whileElementsMountedRef.current(reference.current, floating.current, update);
|
||||
cleanupRef.current = cleanupFn;
|
||||
} else {
|
||||
update();
|
||||
}
|
||||
}
|
||||
}, [reference, floating, update, whileElementsMountedRef]);
|
||||
}, [update, whileElementsMountedRef]);
|
||||
const setReference = external_React_.useCallback(node => {
|
||||
reference.current = node;
|
||||
runElementMountCallback();
|
||||
}, [runElementMountCallback]);
|
||||
const setFloating = external_React_.useCallback(node => {
|
||||
floating.current = node;
|
||||
runElementMountCallback();
|
||||
}, [runElementMountCallback]);
|
||||
const refs = external_React_.useMemo(() => ({
|
||||
reference: referenceRef,
|
||||
floating: floatingRef,
|
||||
setReference,
|
||||
setFloating
|
||||
}), [setReference, setFloating]);
|
||||
const elements = external_React_.useMemo(() => ({
|
||||
reference,
|
||||
floating
|
||||
}), [reference, floating]);
|
||||
return external_React_.useMemo(() => ({
|
||||
...data,
|
||||
}), []);
|
||||
return external_React_.useMemo(() => ({ ...data,
|
||||
update,
|
||||
refs,
|
||||
elements,
|
||||
reference: setReference,
|
||||
floating: setFloating
|
||||
}), [data, update, refs, elements, setReference, setFloating]);
|
||||
}), [data, update, refs, setReference, setFloating]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Positions an inner element of the floating element such that it is centered
|
||||
* to the reference element.
|
||||
* This wraps the core `arrow` middleware to allow React refs as the element.
|
||||
* @see https://floating-ui.com/docs/arrow
|
||||
*/
|
||||
|
||||
const arrow = options => {
|
||||
const {
|
||||
element,
|
||||
padding
|
||||
} = options;
|
||||
|
||||
function isRef(value) {
|
||||
return Object.prototype.hasOwnProperty.call(value, 'current');
|
||||
}
|
||||
|
||||
return {
|
||||
name: 'arrow',
|
||||
options,
|
||||
|
||||
fn(args) {
|
||||
if (isRef(element)) {
|
||||
if (element.current != null) {
|
||||
return m({
|
||||
element: element.current,
|
||||
padding
|
||||
}).fn(args);
|
||||
}
|
||||
|
||||
return {};
|
||||
} else if (element) {
|
||||
return m({
|
||||
element,
|
||||
padding
|
||||
}).fn(args);
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/is-browser.mjs
|
||||
@ -32632,6 +32646,7 @@ function UnforwardedRangeControl(props, forwardedRef) {
|
||||
},
|
||||
trackColor: trackColor
|
||||
}), (0,external_wp_element_namespaceObject.createElement)(ThumbWrapper, {
|
||||
className: "components-range-control__thumb-wrapper",
|
||||
style: offsetStyle,
|
||||
disabled: disabled
|
||||
}, (0,external_wp_element_namespaceObject.createElement)(Thumb, {
|
||||
@ -43191,12 +43206,16 @@ function DropdownMenu(dropdownMenuProps) {
|
||||
}
|
||||
};
|
||||
|
||||
const {
|
||||
as: Toggle = build_module_button,
|
||||
...restToggleProps
|
||||
} = toggleProps !== null && toggleProps !== void 0 ? toggleProps : {};
|
||||
const mergedToggleProps = mergeProps({
|
||||
className: classnames_default()('components-dropdown-menu__toggle', {
|
||||
'is-opened': isOpen
|
||||
})
|
||||
}, toggleProps);
|
||||
return (0,external_wp_element_namespaceObject.createElement)(build_module_button, extends_extends({}, mergedToggleProps, {
|
||||
}, restToggleProps);
|
||||
return (0,external_wp_element_namespaceObject.createElement)(Toggle, extends_extends({}, mergedToggleProps, {
|
||||
icon: icon,
|
||||
onClick: event => {
|
||||
onToggle(event);
|
||||
|
4
wp-includes/js/dist/components.min.js
vendored
4
wp-includes/js/dist/components.min.js
vendored
File diff suppressed because one or more lines are too long
2
wp-includes/js/dist/edit-post.js
vendored
2
wp-includes/js/dist/edit-post.js
vendored
@ -3939,7 +3939,7 @@ function VisualEditor(_ref2) {
|
||||
}, [layout === null || layout === void 0 ? void 0 : layout.type, layout === null || layout === void 0 ? void 0 : layout.inherit, layout === null || layout === void 0 ? void 0 : layout.contentSize, layout === null || layout === void 0 ? void 0 : layout.wideSize, globalLayoutSettings]); // If there is a Post Content block we use its layout for the block list;
|
||||
// if not, this must be a classic theme, in which case we use the fallback layout.
|
||||
|
||||
const blockListLayout = postContentBlock ? postContentLayout : fallbackLayout;
|
||||
const blockListLayout = postContentBlock !== null && postContentBlock !== void 0 && postContentBlock.isValid ? postContentLayout : fallbackLayout;
|
||||
const titleRef = (0,external_wp_element_namespaceObject.useRef)();
|
||||
(0,external_wp_element_namespaceObject.useEffect)(() => {
|
||||
var _titleRef$current;
|
||||
|
2
wp-includes/js/dist/edit-post.min.js
vendored
2
wp-includes/js/dist/edit-post.min.js
vendored
File diff suppressed because one or more lines are too long
847
wp-includes/js/dist/edit-site.js
vendored
847
wp-includes/js/dist/edit-site.js
vendored
File diff suppressed because it is too large
Load Diff
2
wp-includes/js/dist/edit-site.min.js
vendored
2
wp-includes/js/dist/edit-site.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.2-beta3-55439';
|
||||
$wp_version = '6.2-beta3-55440';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user