@wordpress/block-editor 12.10.13 → 12.10.14
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/build/components/block-patterns-list/index.js +4 -4
- package/build/components/block-patterns-list/index.js.map +1 -1
- package/build/components/provider/index.js +3 -1
- package/build/components/provider/index.js.map +1 -1
- package/build/store/selectors.js +1 -0
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/block-patterns-list/index.js +4 -4
- package/build-module/components/block-patterns-list/index.js.map +1 -1
- package/build-module/components/provider/index.js +3 -1
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/store/selectors.js +1 -0
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/content-rtl.css +7 -6
- package/build-style/content.css +7 -6
- package/package.json +5 -5
- package/src/components/block-list/content.scss +14 -10
- package/src/components/block-patterns-list/index.js +14 -11
- package/src/components/provider/index.js +1 -1
- package/src/store/selectors.js +1 -0
|
@@ -140,15 +140,16 @@
|
|
|
140
140
|
opacity: 0.4;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
+
/* stylelint-disable */
|
|
144
|
+
_::-webkit-full-page-media, _:future, :root .block-editor-block-list__layout::selection,
|
|
145
|
+
_::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-block-list__layout::selection {
|
|
146
|
+
background-color: transparent;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* stylelint-enable */
|
|
143
150
|
.block-editor-block-list__layout {
|
|
144
151
|
position: relative;
|
|
145
152
|
}
|
|
146
|
-
.block-editor-block-list__layout::selection {
|
|
147
|
-
background: transparent;
|
|
148
|
-
}
|
|
149
|
-
.has-multi-selection .block-editor-block-list__layout::selection {
|
|
150
|
-
background: transparent;
|
|
151
|
-
}
|
|
152
153
|
.block-editor-block-list__layout:where(.block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)) {
|
|
153
154
|
border-radius: 2px;
|
|
154
155
|
}
|
package/build-style/content.css
CHANGED
|
@@ -140,15 +140,16 @@
|
|
|
140
140
|
opacity: 0.4;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
+
/* stylelint-disable */
|
|
144
|
+
_::-webkit-full-page-media, _:future, :root .block-editor-block-list__layout::selection,
|
|
145
|
+
_::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-block-list__layout::selection {
|
|
146
|
+
background-color: transparent;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* stylelint-enable */
|
|
143
150
|
.block-editor-block-list__layout {
|
|
144
151
|
position: relative;
|
|
145
152
|
}
|
|
146
|
-
.block-editor-block-list__layout::selection {
|
|
147
|
-
background: transparent;
|
|
148
|
-
}
|
|
149
|
-
.has-multi-selection .block-editor-block-list__layout::selection {
|
|
150
|
-
background: transparent;
|
|
151
|
-
}
|
|
152
153
|
.block-editor-block-list__layout:where(.block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)) {
|
|
153
154
|
border-radius: 2px;
|
|
154
155
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-editor",
|
|
3
|
-
"version": "12.10.
|
|
3
|
+
"version": "12.10.14",
|
|
4
4
|
"description": "Generic block editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@wordpress/api-fetch": "^6.39.13",
|
|
40
40
|
"@wordpress/blob": "^3.42.13",
|
|
41
41
|
"@wordpress/blocks": "^12.19.13",
|
|
42
|
-
"@wordpress/commands": "^0.13.
|
|
43
|
-
"@wordpress/components": "^25.8.
|
|
42
|
+
"@wordpress/commands": "^0.13.14",
|
|
43
|
+
"@wordpress/components": "^25.8.14",
|
|
44
44
|
"@wordpress/compose": "^6.19.13",
|
|
45
45
|
"@wordpress/data": "^9.12.13",
|
|
46
46
|
"@wordpress/date": "^4.42.13",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@wordpress/keyboard-shortcuts": "^4.19.13",
|
|
57
57
|
"@wordpress/keycodes": "^3.42.13",
|
|
58
58
|
"@wordpress/notices": "^4.10.13",
|
|
59
|
-
"@wordpress/preferences": "^3.19.
|
|
59
|
+
"@wordpress/preferences": "^3.19.14",
|
|
60
60
|
"@wordpress/private-apis": "^0.24.13",
|
|
61
61
|
"@wordpress/rich-text": "^6.19.13",
|
|
62
62
|
"@wordpress/shortcode": "^3.42.13",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "fb3a11411cc4cc3af8a3c2a629842d1c63d8edbc"
|
|
90
90
|
}
|
|
@@ -17,6 +17,20 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
|
|
21
|
+
// Hide selections on this element, otherwise Safari will include it stacked
|
|
22
|
+
// under your actual selection.
|
|
23
|
+
// This uses a CSS hack to show the rules to Safari only. Failing here is okay,
|
|
24
|
+
// it just makes the selection indication slightly less precise. That makes this
|
|
25
|
+
// hack a progressive enhancement. Stylelint is disabled to allow the hack to work.
|
|
26
|
+
/* stylelint-disable */
|
|
27
|
+
_::-webkit-full-page-media, _:future, :root .block-editor-block-list__layout::selection,
|
|
28
|
+
_::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-block-list__layout::selection {
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
}
|
|
31
|
+
/* stylelint-enable */
|
|
32
|
+
|
|
33
|
+
|
|
20
34
|
// Note to developers refactoring this, please test navigation mode, and
|
|
21
35
|
// multi selection and hovering the block switcher to highlight the block.
|
|
22
36
|
// Also be sure to test partial selections in Safari, as it draws the
|
|
@@ -24,16 +38,6 @@
|
|
|
24
38
|
.block-editor-block-list__layout {
|
|
25
39
|
position: relative;
|
|
26
40
|
|
|
27
|
-
// Hide selections on this element, otherwise Safari will include it stacked
|
|
28
|
-
// under your actual selection.
|
|
29
|
-
&::selection {
|
|
30
|
-
background: transparent;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.has-multi-selection &::selection {
|
|
34
|
-
background: transparent;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
41
|
// Block multi selection
|
|
38
42
|
// Apply a rounded radius to the entire block when multi selected, but with low specificity
|
|
39
43
|
// so explicit radii set by tools are preserved.
|
|
@@ -71,7 +71,7 @@ function BlockPattern( {
|
|
|
71
71
|
} }
|
|
72
72
|
>
|
|
73
73
|
<WithToolTip
|
|
74
|
-
showTooltip={ showTooltip && ! pattern.
|
|
74
|
+
showTooltip={ showTooltip && ! pattern.type === 'user' }
|
|
75
75
|
title={ pattern.title }
|
|
76
76
|
>
|
|
77
77
|
<CompositeItem
|
|
@@ -82,7 +82,8 @@ function BlockPattern( {
|
|
|
82
82
|
'block-editor-block-patterns-list__item',
|
|
83
83
|
{
|
|
84
84
|
'block-editor-block-patterns-list__list-item-synced':
|
|
85
|
-
pattern.
|
|
85
|
+
pattern.type === 'user' &&
|
|
86
|
+
! pattern.syncStatus,
|
|
86
87
|
}
|
|
87
88
|
) }
|
|
88
89
|
onClick={ () => {
|
|
@@ -107,15 +108,17 @@ function BlockPattern( {
|
|
|
107
108
|
/>
|
|
108
109
|
|
|
109
110
|
<HStack className="block-editor-patterns__pattern-details">
|
|
110
|
-
{ pattern.
|
|
111
|
-
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
{ pattern.type === 'user' &&
|
|
112
|
+
! pattern.syncStatus && (
|
|
113
|
+
<div className="block-editor-patterns__pattern-icon-wrapper">
|
|
114
|
+
<Icon
|
|
115
|
+
className="block-editor-patterns__pattern-icon"
|
|
116
|
+
icon={ symbol }
|
|
117
|
+
/>
|
|
118
|
+
</div>
|
|
119
|
+
) }
|
|
120
|
+
{ ( ! showTooltip ||
|
|
121
|
+
pattern.type === 'user' ) && (
|
|
119
122
|
<div className="block-editor-block-patterns-list__item-title">
|
|
120
123
|
{ pattern.title }
|
|
121
124
|
</div>
|
|
@@ -45,7 +45,7 @@ export const ExperimentalBlockEditorProvider = withRegistryProvider(
|
|
|
45
45
|
useBlockSync( props );
|
|
46
46
|
|
|
47
47
|
return (
|
|
48
|
-
<SlotFillProvider>
|
|
48
|
+
<SlotFillProvider passthrough>
|
|
49
49
|
<KeyboardShortcuts.Register />
|
|
50
50
|
<BlockRefsProvider>{ children }</BlockRefsProvider>
|
|
51
51
|
</SlotFillProvider>
|
package/src/store/selectors.js
CHANGED
|
@@ -2304,6 +2304,7 @@ function getUserPatterns( state ) {
|
|
|
2304
2304
|
return {
|
|
2305
2305
|
name: `core/block/${ userPattern.id }`,
|
|
2306
2306
|
id: userPattern.id,
|
|
2307
|
+
type: 'user',
|
|
2307
2308
|
title: userPattern.title.raw,
|
|
2308
2309
|
categories: userPattern.wp_pattern_category.map( ( catId ) =>
|
|
2309
2310
|
categories && categories.get( catId )
|