@wordpress/edit-site 6.41.0 → 6.41.1-next.v.202603161435.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/build/components/layout/index.cjs +1 -1
- package/build/components/layout/index.cjs.map +2 -2
- package/build/components/page-patterns/fields.cjs +3 -3
- package/build/components/page-patterns/fields.cjs.map +2 -2
- package/build/components/page-patterns/use-pattern-settings.cjs +10 -1
- package/build/components/page-patterns/use-pattern-settings.cjs.map +3 -3
- package/build/components/page-templates/fields.cjs +3 -3
- package/build/components/page-templates/fields.cjs.map +2 -2
- package/build/components/post-list/quick-edit-modal.cjs +5 -0
- package/build/components/post-list/quick-edit-modal.cjs.map +2 -2
- package/build/components/sidebar-global-styles/index.cjs +8 -1
- package/build/components/sidebar-global-styles/index.cjs.map +3 -3
- package/build/components/sidebar-identity/index.cjs +87 -0
- package/build/components/sidebar-identity/index.cjs.map +7 -0
- package/build/components/sidebar-navigation-screen-identity/index.cjs +72 -0
- package/build/components/sidebar-navigation-screen-identity/index.cjs.map +7 -0
- package/build/components/sidebar-navigation-screen-main/index.cjs +10 -0
- package/build/components/sidebar-navigation-screen-main/index.cjs.map +2 -2
- package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.cjs +8 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.cjs.map +3 -3
- package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.cjs +4 -1
- package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.cjs.map +3 -3
- package/build/components/site-editor-routes/identity.cjs +68 -0
- package/build/components/site-editor-routes/identity.cjs.map +7 -0
- package/build/components/site-editor-routes/index.cjs +2 -0
- package/build/components/site-editor-routes/index.cjs.map +2 -2
- package/build/index.cjs +3 -1
- package/build/index.cjs.map +2 -2
- package/build-module/components/layout/index.mjs +1 -1
- package/build-module/components/layout/index.mjs.map +2 -2
- package/build-module/components/page-patterns/fields.mjs +3 -3
- package/build-module/components/page-patterns/fields.mjs.map +2 -2
- package/build-module/components/page-patterns/use-pattern-settings.mjs +10 -1
- package/build-module/components/page-patterns/use-pattern-settings.mjs.map +2 -2
- package/build-module/components/page-templates/fields.mjs +3 -3
- package/build-module/components/page-templates/fields.mjs.map +2 -2
- package/build-module/components/post-list/quick-edit-modal.mjs +5 -0
- package/build-module/components/post-list/quick-edit-modal.mjs.map +2 -2
- package/build-module/components/sidebar-global-styles/index.mjs +8 -1
- package/build-module/components/sidebar-global-styles/index.mjs.map +2 -2
- package/build-module/components/sidebar-identity/index.mjs +66 -0
- package/build-module/components/sidebar-identity/index.mjs.map +7 -0
- package/build-module/components/sidebar-navigation-screen-identity/index.mjs +37 -0
- package/build-module/components/sidebar-navigation-screen-identity/index.mjs.map +7 -0
- package/build-module/components/sidebar-navigation-screen-main/index.mjs +18 -1
- package/build-module/components/sidebar-navigation-screen-main/index.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.mjs +8 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.mjs.map +2 -2
- package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.mjs +4 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.mjs.map +2 -2
- package/build-module/components/site-editor-routes/identity.mjs +33 -0
- package/build-module/components/site-editor-routes/identity.mjs.map +7 -0
- package/build-module/components/site-editor-routes/index.mjs +2 -0
- package/build-module/components/site-editor-routes/index.mjs.map +2 -2
- package/build-module/index.mjs +3 -1
- package/build-module/index.mjs.map +2 -2
- package/build-style/style-rtl.css +178 -158
- package/build-style/style.css +178 -158
- package/package.json +46 -46
- package/src/components/layout/index.js +2 -1
- package/src/components/page-patterns/fields.js +3 -3
- package/src/components/page-patterns/use-pattern-settings.js +10 -1
- package/src/components/page-templates/fields.js +3 -3
- package/src/components/page-templates/style.scss +0 -45
- package/src/components/post-list/quick-edit-modal.js +5 -0
- package/src/components/post-list/style.scss +0 -9
- package/src/components/sidebar-global-styles/index.js +7 -0
- package/src/components/sidebar-identity/index.js +70 -0
- package/src/components/sidebar-navigation-screen-identity/index.js +38 -0
- package/src/components/sidebar-navigation-screen-main/index.js +16 -1
- package/src/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +10 -1
- package/src/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +4 -1
- package/src/components/site-editor-routes/identity.js +39 -0
- package/src/components/site-editor-routes/index.js +2 -0
- package/src/index.js +2 -0
package/build-style/style.css
CHANGED
|
@@ -107,100 +107,11 @@
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
/**
|
|
111
|
-
* Colors
|
|
112
|
-
*/
|
|
113
|
-
/**
|
|
114
|
-
* SCSS Variables.
|
|
115
|
-
*
|
|
116
|
-
* Please use variables from this sheet to ensure consistency across the UI.
|
|
117
|
-
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
118
|
-
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
119
|
-
*/
|
|
120
|
-
/**
|
|
121
|
-
* Fonts & basic variables.
|
|
122
|
-
*/
|
|
123
|
-
/**
|
|
124
|
-
* Typography
|
|
125
|
-
*/
|
|
126
|
-
/**
|
|
127
|
-
* Grid System.
|
|
128
|
-
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
129
|
-
*/
|
|
130
|
-
/**
|
|
131
|
-
* Radius scale.
|
|
132
|
-
*/
|
|
133
|
-
/**
|
|
134
|
-
* Elevation scale.
|
|
135
|
-
*/
|
|
136
|
-
/**
|
|
137
|
-
* Dimensions.
|
|
138
|
-
*/
|
|
139
|
-
/**
|
|
140
|
-
* Mobile specific styles
|
|
141
|
-
*/
|
|
142
|
-
/**
|
|
143
|
-
* Editor styles.
|
|
144
|
-
*/
|
|
145
|
-
/**
|
|
146
|
-
* Block & Editor UI.
|
|
147
|
-
*/
|
|
148
|
-
/**
|
|
149
|
-
* Block paddings.
|
|
150
|
-
*/
|
|
151
|
-
/**
|
|
152
|
-
* React Native specific.
|
|
153
|
-
* These variables do not appear to be used anywhere else.
|
|
154
|
-
*/
|
|
155
|
-
/**
|
|
156
|
-
* Typography
|
|
157
|
-
*/
|
|
158
|
-
/**
|
|
159
|
-
* Breakpoints & Media Queries
|
|
160
|
-
*/
|
|
161
|
-
/**
|
|
162
|
-
* Converts a hex value into the rgb equivalent.
|
|
163
|
-
*
|
|
164
|
-
* @param {string} hex - the hexadecimal value to convert
|
|
165
|
-
* @return {string} comma separated rgb values
|
|
166
|
-
*/
|
|
167
|
-
/**
|
|
168
|
-
* Long content fade mixin
|
|
169
|
-
*
|
|
170
|
-
* Creates a fading overlay to signify that the content is longer
|
|
171
|
-
* than the space allows.
|
|
172
|
-
*/
|
|
173
|
-
/**
|
|
174
|
-
* Breakpoint mixins
|
|
175
|
-
*/
|
|
176
|
-
/**
|
|
177
|
-
* Focus styles.
|
|
178
|
-
*/
|
|
179
|
-
/**
|
|
180
|
-
* Applies editor left position to the selector passed as argument
|
|
181
|
-
*/
|
|
182
|
-
/**
|
|
183
|
-
* Styles that are reused verbatim in a few places
|
|
184
|
-
*/
|
|
185
|
-
/**
|
|
186
|
-
* Allows users to opt-out of animations via OS-level preferences.
|
|
187
|
-
*/
|
|
188
|
-
/**
|
|
189
|
-
* Reset default styles for JavaScript UI based pages.
|
|
190
|
-
* This is a WP-admin agnostic reset
|
|
191
|
-
*/
|
|
192
|
-
/**
|
|
193
|
-
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
194
|
-
*/
|
|
195
|
-
/**
|
|
196
|
-
* Creates a checkerboard pattern background to indicate transparency.
|
|
197
|
-
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
|
|
198
|
-
*/
|
|
199
110
|
.admin-ui-page {
|
|
200
111
|
display: flex;
|
|
201
112
|
height: 100%;
|
|
202
|
-
background-color: #
|
|
203
|
-
color: #
|
|
113
|
+
background-color: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
|
|
114
|
+
color: var(--wpds-color-fg-content-neutral, #1e1e1e);
|
|
204
115
|
position: relative;
|
|
205
116
|
z-index: 1;
|
|
206
117
|
flex-flow: column;
|
|
@@ -208,25 +119,34 @@
|
|
|
208
119
|
}
|
|
209
120
|
|
|
210
121
|
.admin-ui-page__header {
|
|
211
|
-
padding: 16px 24px;
|
|
212
|
-
border-bottom: 1px solid #
|
|
213
|
-
background: #
|
|
122
|
+
padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
|
|
123
|
+
border-bottom: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #e0e0e0);
|
|
124
|
+
background: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
|
|
214
125
|
position: sticky;
|
|
215
126
|
top: 0;
|
|
216
127
|
z-index: 1;
|
|
217
128
|
}
|
|
218
129
|
|
|
130
|
+
.admin-ui-page__header-title {
|
|
131
|
+
font-family: var(--wpds-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif);
|
|
132
|
+
font-size: var(--wpds-font-size-xl, 20px);
|
|
133
|
+
font-weight: var(--wpds-font-weight-medium, 499);
|
|
134
|
+
line-height: var(--wpds-font-line-height-xl, 32px);
|
|
135
|
+
margin: 0;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
text-overflow: ellipsis;
|
|
138
|
+
white-space: nowrap;
|
|
139
|
+
}
|
|
140
|
+
|
|
219
141
|
.admin-ui-page__sidebar-toggle-slot:empty {
|
|
220
142
|
display: none;
|
|
221
143
|
}
|
|
222
144
|
|
|
223
145
|
.admin-ui-page__header-subtitle {
|
|
224
|
-
padding-block-end:
|
|
225
|
-
color: #
|
|
226
|
-
font-
|
|
227
|
-
|
|
228
|
-
font-size: 13px;
|
|
229
|
-
line-height: 20px;
|
|
146
|
+
padding-block-end: var(--wpds-dimension-padding-xs, 4px);
|
|
147
|
+
color: var(--wpds-color-fg-content-neutral-weak, #6d6d6d);
|
|
148
|
+
font-size: var(--wpds-font-size-md, 13px);
|
|
149
|
+
line-height: var(--wpds-font-line-height-md, 24px);
|
|
230
150
|
margin: 0;
|
|
231
151
|
}
|
|
232
152
|
|
|
@@ -238,12 +158,12 @@
|
|
|
238
158
|
}
|
|
239
159
|
|
|
240
160
|
.admin-ui-page__content.has-padding {
|
|
241
|
-
padding: 16px 24px;
|
|
161
|
+
padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
|
|
242
162
|
}
|
|
243
163
|
|
|
244
164
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
|
|
245
165
|
width: auto;
|
|
246
|
-
padding: 0
|
|
166
|
+
padding: 0 var(--wpds-dimension-padding-xs, 4px);
|
|
247
167
|
}
|
|
248
168
|
|
|
249
169
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg {
|
|
@@ -252,9 +172,54 @@
|
|
|
252
172
|
|
|
253
173
|
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after {
|
|
254
174
|
content: attr(aria-label);
|
|
255
|
-
font-size: 12px;
|
|
175
|
+
font-size: var(--wpds-font-size-sm, 12px);
|
|
256
176
|
}
|
|
257
177
|
|
|
178
|
+
/**
|
|
179
|
+
* SCSS Variables.
|
|
180
|
+
*
|
|
181
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
182
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
183
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
184
|
+
*/
|
|
185
|
+
/**
|
|
186
|
+
* Colors
|
|
187
|
+
*/
|
|
188
|
+
/**
|
|
189
|
+
* Fonts & basic variables.
|
|
190
|
+
*/
|
|
191
|
+
/**
|
|
192
|
+
* Typography
|
|
193
|
+
*/
|
|
194
|
+
/**
|
|
195
|
+
* Grid System.
|
|
196
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
197
|
+
*/
|
|
198
|
+
/**
|
|
199
|
+
* Radius scale.
|
|
200
|
+
*/
|
|
201
|
+
/**
|
|
202
|
+
* Elevation scale.
|
|
203
|
+
*/
|
|
204
|
+
/**
|
|
205
|
+
* Dimensions.
|
|
206
|
+
*/
|
|
207
|
+
/**
|
|
208
|
+
* Mobile specific styles
|
|
209
|
+
*/
|
|
210
|
+
/**
|
|
211
|
+
* Editor styles.
|
|
212
|
+
*/
|
|
213
|
+
/**
|
|
214
|
+
* Block & Editor UI.
|
|
215
|
+
*/
|
|
216
|
+
/**
|
|
217
|
+
* Block paddings.
|
|
218
|
+
*/
|
|
219
|
+
/**
|
|
220
|
+
* React Native specific.
|
|
221
|
+
* These variables do not appear to be used anywhere else.
|
|
222
|
+
*/
|
|
258
223
|
.admin-ui-breadcrumbs__list {
|
|
259
224
|
list-style: none;
|
|
260
225
|
padding: 0;
|
|
@@ -367,7 +332,6 @@
|
|
|
367
332
|
.dataviews-wrapper,
|
|
368
333
|
.dataviews-picker-wrapper {
|
|
369
334
|
height: 100%;
|
|
370
|
-
overflow: auto;
|
|
371
335
|
box-sizing: border-box;
|
|
372
336
|
scroll-padding-bottom: 64px;
|
|
373
337
|
/* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
|
|
@@ -516,6 +480,15 @@
|
|
|
516
480
|
min-height: 32px;
|
|
517
481
|
}
|
|
518
482
|
|
|
483
|
+
.dataviews-layout__container {
|
|
484
|
+
flex: 1;
|
|
485
|
+
min-height: 0;
|
|
486
|
+
overflow: auto;
|
|
487
|
+
display: flex;
|
|
488
|
+
flex-direction: column;
|
|
489
|
+
background-color: inherit;
|
|
490
|
+
}
|
|
491
|
+
|
|
519
492
|
.dataviews-filters__button {
|
|
520
493
|
position: relative;
|
|
521
494
|
}
|
|
@@ -1256,7 +1229,7 @@
|
|
|
1256
1229
|
.dataviews-view-grid-items {
|
|
1257
1230
|
margin-bottom: auto;
|
|
1258
1231
|
display: grid;
|
|
1259
|
-
gap:
|
|
1232
|
+
gap: 24px;
|
|
1260
1233
|
grid-template-rows: max-content;
|
|
1261
1234
|
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
1262
1235
|
padding: 0 24px 24px;
|
|
@@ -1268,11 +1241,19 @@
|
|
|
1268
1241
|
transition: padding ease-out 0.1s;
|
|
1269
1242
|
}
|
|
1270
1243
|
}
|
|
1244
|
+
.dataviews-view-grid-items.has-compact-density {
|
|
1245
|
+
gap: 16px;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
.dataviews-view-grid-items.has-comfortable-density {
|
|
1249
|
+
gap: 32px;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1271
1252
|
.dataviews-view-grid {
|
|
1272
1253
|
padding: 0 24px 24px;
|
|
1273
1254
|
display: flex;
|
|
1274
1255
|
flex-direction: column;
|
|
1275
|
-
gap:
|
|
1256
|
+
gap: 24px;
|
|
1276
1257
|
container-type: inline-size;
|
|
1277
1258
|
margin-bottom: auto;
|
|
1278
1259
|
}
|
|
@@ -1282,9 +1263,25 @@
|
|
|
1282
1263
|
transition: padding ease-out 0.1s;
|
|
1283
1264
|
}
|
|
1284
1265
|
}
|
|
1266
|
+
.dataviews-view-grid.has-compact-density {
|
|
1267
|
+
gap: 16px;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
.dataviews-view-grid.has-compact-density .dataviews-view-grid__row {
|
|
1271
|
+
gap: 16px;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
.dataviews-view-grid.has-comfortable-density {
|
|
1275
|
+
gap: 32px;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
.dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row {
|
|
1279
|
+
gap: 32px;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1285
1282
|
.dataviews-view-grid .dataviews-view-grid__row {
|
|
1286
1283
|
display: grid;
|
|
1287
|
-
gap:
|
|
1284
|
+
gap: 24px;
|
|
1288
1285
|
}
|
|
1289
1286
|
|
|
1290
1287
|
.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell {
|
|
@@ -1920,6 +1917,17 @@ div.dataviews-view-list {
|
|
|
1920
1917
|
background-color: inherit;
|
|
1921
1918
|
}
|
|
1922
1919
|
|
|
1920
|
+
.dataviews-view-table thead.dataviews-view-table__thead--stuck::after {
|
|
1921
|
+
display: block;
|
|
1922
|
+
content: "";
|
|
1923
|
+
position: absolute;
|
|
1924
|
+
bottom: 0;
|
|
1925
|
+
left: 0;
|
|
1926
|
+
right: 0;
|
|
1927
|
+
height: 1px;
|
|
1928
|
+
background-color: #f0f0f0;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1923
1931
|
.dataviews-view-table thead tr {
|
|
1924
1932
|
border: 0;
|
|
1925
1933
|
}
|
|
@@ -2091,6 +2099,14 @@ div.dataviews-view-list {
|
|
|
2091
2099
|
animation: dataviews-pulse 1s ease-in-out infinite;
|
|
2092
2100
|
}
|
|
2093
2101
|
}
|
|
2102
|
+
.dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items {
|
|
2103
|
+
gap: 16px;
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
.dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items {
|
|
2107
|
+
gap: 32px;
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2094
2110
|
.dataviews-view-picker-grid .dataviews-view-picker-grid__card {
|
|
2095
2111
|
height: 100%;
|
|
2096
2112
|
justify-content: flex-start;
|
|
@@ -2683,7 +2699,7 @@ div.dataviews-view-list {
|
|
|
2683
2699
|
}
|
|
2684
2700
|
|
|
2685
2701
|
.dataforms-layouts-panel__field-dropdown .components-popover__content {
|
|
2686
|
-
min-width:
|
|
2702
|
+
min-width: 256px;
|
|
2687
2703
|
padding: 16px;
|
|
2688
2704
|
}
|
|
2689
2705
|
|
|
@@ -3242,6 +3258,50 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
3242
3258
|
aspect-ratio: var(--fields-media-edit-expanded-multiple-aspect-ratio, 3/2);
|
|
3243
3259
|
}
|
|
3244
3260
|
|
|
3261
|
+
.fields-controls__author-avatar {
|
|
3262
|
+
flex-shrink: 0;
|
|
3263
|
+
overflow: hidden;
|
|
3264
|
+
width: 24px;
|
|
3265
|
+
height: 24px;
|
|
3266
|
+
align-items: center;
|
|
3267
|
+
justify-content: left;
|
|
3268
|
+
display: flex;
|
|
3269
|
+
}
|
|
3270
|
+
|
|
3271
|
+
.fields-controls__author-avatar img {
|
|
3272
|
+
width: 16px;
|
|
3273
|
+
height: 16px;
|
|
3274
|
+
object-fit: cover;
|
|
3275
|
+
opacity: 0;
|
|
3276
|
+
border-radius: 100%;
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
@media not (prefers-reduced-motion) {
|
|
3280
|
+
.fields-controls__author-avatar img {
|
|
3281
|
+
transition: opacity 0.1s linear;
|
|
3282
|
+
}
|
|
3283
|
+
}
|
|
3284
|
+
.fields-controls__author-avatar.is-loaded img {
|
|
3285
|
+
opacity: 1;
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
.fields-controls__author-icon {
|
|
3289
|
+
display: flex;
|
|
3290
|
+
flex-shrink: 0;
|
|
3291
|
+
width: 24px;
|
|
3292
|
+
height: 24px;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
.fields-controls__author-icon svg {
|
|
3296
|
+
margin-left: -4px;
|
|
3297
|
+
fill: currentColor;
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
.fields-controls__author-name {
|
|
3301
|
+
text-overflow: ellipsis;
|
|
3302
|
+
overflow: hidden;
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3245
3305
|
.fields-controls__slug {
|
|
3246
3306
|
border: 0;
|
|
3247
3307
|
padding: 0;
|
|
@@ -3294,6 +3354,16 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
|
|
|
3294
3354
|
margin: 0;
|
|
3295
3355
|
}
|
|
3296
3356
|
|
|
3357
|
+
.fields-controls__status-icon {
|
|
3358
|
+
height: 24px;
|
|
3359
|
+
width: 24px;
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3362
|
+
.fields-controls__status-icon svg {
|
|
3363
|
+
fill: currentColor;
|
|
3364
|
+
margin-left: -4px;
|
|
3365
|
+
}
|
|
3366
|
+
|
|
3297
3367
|
.fields-field__title > span:first-child {
|
|
3298
3368
|
text-overflow: ellipsis;
|
|
3299
3369
|
overflow: hidden;
|
|
@@ -4390,47 +4460,6 @@ button.font-library__upload-area {
|
|
|
4390
4460
|
z-index: 2;
|
|
4391
4461
|
}
|
|
4392
4462
|
|
|
4393
|
-
.page-templates-author-field__avatar {
|
|
4394
|
-
flex-shrink: 0;
|
|
4395
|
-
overflow: hidden;
|
|
4396
|
-
width: 24px;
|
|
4397
|
-
height: 24px;
|
|
4398
|
-
align-items: center;
|
|
4399
|
-
justify-content: left;
|
|
4400
|
-
display: flex;
|
|
4401
|
-
}
|
|
4402
|
-
.page-templates-author-field__avatar img {
|
|
4403
|
-
width: 16px;
|
|
4404
|
-
height: 16px;
|
|
4405
|
-
object-fit: cover;
|
|
4406
|
-
opacity: 0;
|
|
4407
|
-
border-radius: 100%;
|
|
4408
|
-
}
|
|
4409
|
-
@media not (prefers-reduced-motion) {
|
|
4410
|
-
.page-templates-author-field__avatar img {
|
|
4411
|
-
transition: opacity 0.1s linear;
|
|
4412
|
-
}
|
|
4413
|
-
}
|
|
4414
|
-
.page-templates-author-field__avatar.is-loaded img {
|
|
4415
|
-
opacity: 1;
|
|
4416
|
-
}
|
|
4417
|
-
|
|
4418
|
-
.page-templates-author-field__icon {
|
|
4419
|
-
display: flex;
|
|
4420
|
-
flex-shrink: 0;
|
|
4421
|
-
width: 24px;
|
|
4422
|
-
height: 24px;
|
|
4423
|
-
}
|
|
4424
|
-
.page-templates-author-field__icon svg {
|
|
4425
|
-
margin-left: -4px;
|
|
4426
|
-
fill: currentColor;
|
|
4427
|
-
}
|
|
4428
|
-
|
|
4429
|
-
.page-templates-author-field__name {
|
|
4430
|
-
text-overflow: ellipsis;
|
|
4431
|
-
overflow: hidden;
|
|
4432
|
-
}
|
|
4433
|
-
|
|
4434
4463
|
.edit-site-list__rename-modal {
|
|
4435
4464
|
z-index: 1000001;
|
|
4436
4465
|
}
|
|
@@ -5360,15 +5389,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
5360
5389
|
background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
|
|
5361
5390
|
}
|
|
5362
5391
|
|
|
5363
|
-
.edit-site-post-list__status-icon {
|
|
5364
|
-
height: 24px;
|
|
5365
|
-
width: 24px;
|
|
5366
|
-
}
|
|
5367
|
-
.edit-site-post-list__status-icon svg {
|
|
5368
|
-
fill: currentColor;
|
|
5369
|
-
margin-left: -4px;
|
|
5370
|
-
}
|
|
5371
|
-
|
|
5372
5392
|
.fields-controls__password {
|
|
5373
5393
|
border-top: 1px solid #e0e0e0;
|
|
5374
5394
|
padding-top: 16px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.41.0",
|
|
3
|
+
"version": "6.41.1-next.v.202603161435.0+ab4981c4f",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -48,50 +48,50 @@
|
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@react-spring/web": "^9.4.5",
|
|
51
|
-
"@wordpress/a11y": "^4.41.0",
|
|
52
|
-
"@wordpress/admin-ui": "^1.9.0",
|
|
53
|
-
"@wordpress/api-fetch": "^7.41.0",
|
|
54
|
-
"@wordpress/base-styles": "^6.17.0",
|
|
55
|
-
"@wordpress/blob": "^4.41.0",
|
|
56
|
-
"@wordpress/block-editor": "^15.14.0",
|
|
57
|
-
"@wordpress/block-library": "^9.41.0",
|
|
58
|
-
"@wordpress/blocks": "^15.14.0",
|
|
59
|
-
"@wordpress/commands": "^1.41.0",
|
|
60
|
-
"@wordpress/components": "^32.
|
|
61
|
-
"@wordpress/compose": "^7.41.0",
|
|
62
|
-
"@wordpress/core-data": "^7.41.0",
|
|
63
|
-
"@wordpress/data": "^10.41.0",
|
|
64
|
-
"@wordpress/dataviews": "^13.
|
|
65
|
-
"@wordpress/date": "^5.41.0",
|
|
66
|
-
"@wordpress/deprecated": "^4.41.0",
|
|
67
|
-
"@wordpress/dom": "^4.41.0",
|
|
68
|
-
"@wordpress/editor": "^14.41.0",
|
|
69
|
-
"@wordpress/element": "^6.41.0",
|
|
70
|
-
"@wordpress/escape-html": "^3.41.0",
|
|
71
|
-
"@wordpress/fields": "^0.33.0",
|
|
72
|
-
"@wordpress/global-styles-engine": "^1.8.0",
|
|
73
|
-
"@wordpress/global-styles-ui": "^1.8.0",
|
|
74
|
-
"@wordpress/hooks": "^4.41.0",
|
|
75
|
-
"@wordpress/html-entities": "^4.41.0",
|
|
76
|
-
"@wordpress/i18n": "^6.14.0",
|
|
77
|
-
"@wordpress/icons": "^
|
|
78
|
-
"@wordpress/keyboard-shortcuts": "^5.41.0",
|
|
79
|
-
"@wordpress/keycodes": "^4.41.0",
|
|
80
|
-
"@wordpress/media-utils": "^5.41.0",
|
|
81
|
-
"@wordpress/notices": "^5.41.0",
|
|
82
|
-
"@wordpress/patterns": "^2.41.0",
|
|
83
|
-
"@wordpress/plugins": "^7.41.0",
|
|
84
|
-
"@wordpress/preferences": "^4.41.0",
|
|
85
|
-
"@wordpress/primitives": "^4.41.0",
|
|
86
|
-
"@wordpress/private-apis": "^1.41.0",
|
|
87
|
-
"@wordpress/reusable-blocks": "^5.41.0",
|
|
88
|
-
"@wordpress/router": "^1.41.0",
|
|
89
|
-
"@wordpress/style-engine": "^2.41.0",
|
|
90
|
-
"@wordpress/url": "^4.41.0",
|
|
91
|
-
"@wordpress/viewport": "^6.41.0",
|
|
92
|
-
"@wordpress/views": "^1.8.0",
|
|
93
|
-
"@wordpress/widgets": "^4.41.0",
|
|
94
|
-
"@wordpress/wordcount": "^4.41.0",
|
|
51
|
+
"@wordpress/a11y": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
52
|
+
"@wordpress/admin-ui": "^1.9.1-next.v.202603161435.0+ab4981c4f",
|
|
53
|
+
"@wordpress/api-fetch": "^7.41.1-next.v.202603161435.0+ab4981c4f",
|
|
54
|
+
"@wordpress/base-styles": "^6.17.1-next.v.202603161435.0+ab4981c4f",
|
|
55
|
+
"@wordpress/blob": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
56
|
+
"@wordpress/block-editor": "^15.14.1-next.v.202603161435.0+ab4981c4f",
|
|
57
|
+
"@wordpress/block-library": "^9.41.1-next.v.202603161435.0+ab4981c4f",
|
|
58
|
+
"@wordpress/blocks": "^15.14.1-next.v.202603161435.0+ab4981c4f",
|
|
59
|
+
"@wordpress/commands": "^1.41.1-next.v.202603161435.0+ab4981c4f",
|
|
60
|
+
"@wordpress/components": "^32.4.1-next.v.202603161435.0+ab4981c4f",
|
|
61
|
+
"@wordpress/compose": "^7.41.1-next.v.202603161435.0+ab4981c4f",
|
|
62
|
+
"@wordpress/core-data": "^7.41.2-next.v.202603161435.0+ab4981c4f",
|
|
63
|
+
"@wordpress/data": "^10.41.1-next.v.202603161435.0+ab4981c4f",
|
|
64
|
+
"@wordpress/dataviews": "^13.1.1-next.v.202603161435.0+ab4981c4f",
|
|
65
|
+
"@wordpress/date": "^5.41.1-next.v.202603161435.0+ab4981c4f",
|
|
66
|
+
"@wordpress/deprecated": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
67
|
+
"@wordpress/dom": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
68
|
+
"@wordpress/editor": "^14.41.2-next.v.202603161435.0+ab4981c4f",
|
|
69
|
+
"@wordpress/element": "^6.41.1-next.v.202603161435.0+ab4981c4f",
|
|
70
|
+
"@wordpress/escape-html": "^3.41.1-next.v.202603161435.0+ab4981c4f",
|
|
71
|
+
"@wordpress/fields": "^0.33.1-next.v.202603161435.0+ab4981c4f",
|
|
72
|
+
"@wordpress/global-styles-engine": "^1.8.1-next.v.202603161435.0+ab4981c4f",
|
|
73
|
+
"@wordpress/global-styles-ui": "^1.8.1-next.v.202603161435.0+ab4981c4f",
|
|
74
|
+
"@wordpress/hooks": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
75
|
+
"@wordpress/html-entities": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
76
|
+
"@wordpress/i18n": "^6.14.1-next.v.202603161435.0+ab4981c4f",
|
|
77
|
+
"@wordpress/icons": "^12.0.1-next.v.202603161435.0+ab4981c4f",
|
|
78
|
+
"@wordpress/keyboard-shortcuts": "^5.41.1-next.v.202603161435.0+ab4981c4f",
|
|
79
|
+
"@wordpress/keycodes": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
80
|
+
"@wordpress/media-utils": "^5.41.1-next.v.202603161435.0+ab4981c4f",
|
|
81
|
+
"@wordpress/notices": "^5.41.1-next.v.202603161435.0+ab4981c4f",
|
|
82
|
+
"@wordpress/patterns": "^2.41.1-next.v.202603161435.0+ab4981c4f",
|
|
83
|
+
"@wordpress/plugins": "^7.41.1-next.v.202603161435.0+ab4981c4f",
|
|
84
|
+
"@wordpress/preferences": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
85
|
+
"@wordpress/primitives": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
86
|
+
"@wordpress/private-apis": "^1.41.1-next.v.202603161435.0+ab4981c4f",
|
|
87
|
+
"@wordpress/reusable-blocks": "^5.41.1-next.v.202603161435.0+ab4981c4f",
|
|
88
|
+
"@wordpress/router": "^1.41.1-next.v.202603161435.0+ab4981c4f",
|
|
89
|
+
"@wordpress/style-engine": "^2.41.1-next.v.202603161435.0+ab4981c4f",
|
|
90
|
+
"@wordpress/url": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
91
|
+
"@wordpress/viewport": "^6.41.1-next.v.202603161435.0+ab4981c4f",
|
|
92
|
+
"@wordpress/views": "^1.8.1-next.v.202603161435.0+ab4981c4f",
|
|
93
|
+
"@wordpress/widgets": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
94
|
+
"@wordpress/wordcount": "^4.41.1-next.v.202603161435.0+ab4981c4f",
|
|
95
95
|
"change-case": "^4.1.2",
|
|
96
96
|
"clsx": "^2.1.1",
|
|
97
97
|
"colord": "^2.9.2",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public"
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "748f4e4564fcc0e6ae90200d90bb993a3cef5828"
|
|
110
110
|
}
|
|
@@ -126,7 +126,7 @@ function AuthorField( { item } ) {
|
|
|
126
126
|
<HStack alignment="left" spacing={ 0 }>
|
|
127
127
|
{ imageUrl && (
|
|
128
128
|
<div
|
|
129
|
-
className={ clsx( '
|
|
129
|
+
className={ clsx( 'fields-controls__author-avatar', {
|
|
130
130
|
'is-loaded': isImageLoaded,
|
|
131
131
|
} ) }
|
|
132
132
|
>
|
|
@@ -138,11 +138,11 @@ function AuthorField( { item } ) {
|
|
|
138
138
|
</div>
|
|
139
139
|
) }
|
|
140
140
|
{ ! imageUrl && (
|
|
141
|
-
<div className="
|
|
141
|
+
<div className="fields-controls__author-icon">
|
|
142
142
|
<Icon icon={ icon } />
|
|
143
143
|
</div>
|
|
144
144
|
) }
|
|
145
|
-
<span className="
|
|
145
|
+
<span className="fields-controls__author-name">{ text }</span>
|
|
146
146
|
</HStack>
|
|
147
147
|
);
|
|
148
148
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { store as coreStore } from '@wordpress/core-data';
|
|
5
5
|
import { useSelect } from '@wordpress/data';
|
|
6
6
|
import { useMemo } from '@wordpress/element';
|
|
7
|
+
import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
|
|
7
8
|
import { privateApis as editorPrivateApis } from '@wordpress/editor';
|
|
8
9
|
import { generateGlobalStyles } from '@wordpress/global-styles-engine';
|
|
9
10
|
|
|
@@ -15,6 +16,7 @@ import { store as editSiteStore } from '../../store';
|
|
|
15
16
|
import { filterOutDuplicatesByName } from './utils';
|
|
16
17
|
|
|
17
18
|
const { useGlobalStyles } = unlock( editorPrivateApis );
|
|
19
|
+
const { globalStylesDataKey } = unlock( blockEditorPrivateApis );
|
|
18
20
|
|
|
19
21
|
export default function usePatternSettings() {
|
|
20
22
|
/*
|
|
@@ -66,10 +68,17 @@ export default function usePatternSettings() {
|
|
|
66
68
|
...restStoredSettings,
|
|
67
69
|
styles: globalStyles,
|
|
68
70
|
__experimentalFeatures: globalSettings,
|
|
71
|
+
[ globalStylesDataKey ]: mergedConfig.styles ?? {},
|
|
69
72
|
__experimentalBlockPatterns: blockPatterns,
|
|
70
73
|
isPreviewMode: true,
|
|
71
74
|
};
|
|
72
|
-
}, [
|
|
75
|
+
}, [
|
|
76
|
+
storedSettings,
|
|
77
|
+
blockPatterns,
|
|
78
|
+
globalStyles,
|
|
79
|
+
globalSettings,
|
|
80
|
+
mergedConfig,
|
|
81
|
+
] );
|
|
73
82
|
|
|
74
83
|
return settings;
|
|
75
84
|
}
|
|
@@ -125,7 +125,7 @@ function AuthorField( { item } ) {
|
|
|
125
125
|
<HStack alignment="left" spacing={ 0 }>
|
|
126
126
|
{ imageUrl && (
|
|
127
127
|
<div
|
|
128
|
-
className={ clsx( '
|
|
128
|
+
className={ clsx( 'fields-controls__author-avatar', {
|
|
129
129
|
'is-loaded': isImageLoaded,
|
|
130
130
|
} ) }
|
|
131
131
|
>
|
|
@@ -137,11 +137,11 @@ function AuthorField( { item } ) {
|
|
|
137
137
|
</div>
|
|
138
138
|
) }
|
|
139
139
|
{ ! imageUrl && (
|
|
140
|
-
<div className="
|
|
140
|
+
<div className="fields-controls__author-icon">
|
|
141
141
|
<Icon icon={ icon } />
|
|
142
142
|
</div>
|
|
143
143
|
) }
|
|
144
|
-
<span className="
|
|
144
|
+
<span className="fields-controls__author-name">{ text }</span>
|
|
145
145
|
</HStack>
|
|
146
146
|
);
|
|
147
147
|
}
|