@wordpress/edit-site 6.35.2-next.dc3f6d3c1.0 → 6.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/build/components/add-new-template-legacy/add-custom-generic-template-modal-content.js +109 -0
- package/build/components/add-new-template-legacy/add-custom-generic-template-modal-content.js.map +7 -0
- package/build/components/add-new-template-legacy/add-custom-template-modal-content.js +328 -0
- package/build/components/add-new-template-legacy/add-custom-template-modal-content.js.map +7 -0
- package/build/components/add-new-template-legacy/index.js +389 -0
- package/build/components/add-new-template-legacy/index.js.map +7 -0
- package/build/components/add-new-template-legacy/utils.js +620 -0
- package/build/components/add-new-template-legacy/utils.js.map +7 -0
- package/build/components/page-templates/fields.js +3 -1
- package/build/components/page-templates/fields.js.map +2 -2
- package/build/components/page-templates/index-legacy.js +185 -0
- package/build/components/page-templates/index-legacy.js.map +7 -0
- package/build/components/post-list/index.js +10 -0
- package/build/components/post-list/index.js.map +2 -2
- package/build/components/sidebar-navigation-screen-templates-browse/content-legacy.js +101 -0
- package/build/components/sidebar-navigation-screen-templates-browse/content-legacy.js.map +7 -0
- package/build/components/sidebar-navigation-screen-templates-browse/index.js +2 -1
- package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +3 -3
- package/build/components/site-editor-routes/templates.js +10 -2
- package/build/components/site-editor-routes/templates.js.map +3 -3
- package/build/components/site-hub/index.js +1 -1
- package/build/components/site-hub/index.js.map +2 -2
- package/build/utils/constants.js +6 -0
- package/build/utils/constants.js.map +2 -2
- package/build-module/components/add-new-template-legacy/add-custom-generic-template-modal-content.js +93 -0
- package/build-module/components/add-new-template-legacy/add-custom-generic-template-modal-content.js.map +7 -0
- package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.js +316 -0
- package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.js.map +7 -0
- package/build-module/components/add-new-template-legacy/index.js +390 -0
- package/build-module/components/add-new-template-legacy/index.js.map +7 -0
- package/build-module/components/add-new-template-legacy/utils.js +589 -0
- package/build-module/components/add-new-template-legacy/utils.js.map +7 -0
- package/build-module/components/page-templates/fields.js +3 -1
- package/build-module/components/page-templates/fields.js.map +2 -2
- package/build-module/components/page-templates/index-legacy.js +154 -0
- package/build-module/components/page-templates/index-legacy.js.map +7 -0
- package/build-module/components/post-list/index.js +12 -0
- package/build-module/components/post-list/index.js.map +2 -2
- package/build-module/components/sidebar-navigation-screen-templates-browse/content-legacy.js +70 -0
- package/build-module/components/sidebar-navigation-screen-templates-browse/content-legacy.js.map +7 -0
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +2 -1
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +2 -2
- package/build-module/components/site-editor-routes/templates.js +10 -2
- package/build-module/components/site-editor-routes/templates.js.map +2 -2
- package/build-module/components/site-hub/index.js +1 -1
- package/build-module/components/site-hub/index.js.map +2 -2
- package/build-module/utils/constants.js +4 -0
- package/build-module/utils/constants.js.map +2 -2
- package/build-style/style-rtl.css +263 -27
- package/build-style/style.css +263 -27
- package/package.json +46 -46
- package/src/components/add-new-template-legacy/add-custom-generic-template-modal-content.js +94 -0
- package/src/components/add-new-template-legacy/add-custom-template-modal-content.js +314 -0
- package/src/components/add-new-template-legacy/index.js +454 -0
- package/src/components/add-new-template-legacy/utils.js +760 -0
- package/src/components/page-templates/fields.js +13 -9
- package/src/components/page-templates/index-legacy.js +166 -0
- package/src/components/post-list/index.js +13 -0
- package/src/components/sidebar-navigation-screen-templates-browse/content-legacy.js +79 -0
- package/src/components/sidebar-navigation-screen-templates-browse/index.js +8 -1
- package/src/components/site-editor-routes/templates.js +22 -3
- package/src/components/site-hub/index.js +1 -1
- package/src/utils/constants.js +2 -0
package/build-style/style.css
CHANGED
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
flex-direction: column;
|
|
375
375
|
font-size: 13px;
|
|
376
376
|
line-height: 1.4;
|
|
377
|
-
background-color:
|
|
377
|
+
background-color: var(--wp-dataviews-color-background, #fff);
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
.dataviews__view-actions,
|
|
@@ -1285,6 +1285,48 @@
|
|
|
1285
1285
|
transition: padding ease-out 0.1s;
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
+
.dataviews-view-grid {
|
|
1289
|
+
padding: 0 48px 24px;
|
|
1290
|
+
display: flex;
|
|
1291
|
+
flex-direction: column;
|
|
1292
|
+
gap: 32px;
|
|
1293
|
+
container-type: inline-size;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
@media not (prefers-reduced-motion) {
|
|
1297
|
+
.dataviews-view-grid {
|
|
1298
|
+
transition: padding ease-out 0.1s;
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
@container (max-width: 430px) {
|
|
1302
|
+
.dataviews-view-grid {
|
|
1303
|
+
padding-left: 24px;
|
|
1304
|
+
padding-right: 24px;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
.dataviews-view-grid .dataviews-view-grid__row {
|
|
1308
|
+
display: grid;
|
|
1309
|
+
gap: 32px;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell {
|
|
1313
|
+
border-radius: 4px;
|
|
1314
|
+
position: relative;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell[data-focus-visible]::after {
|
|
1318
|
+
content: "";
|
|
1319
|
+
position: absolute;
|
|
1320
|
+
top: 0;
|
|
1321
|
+
left: 0;
|
|
1322
|
+
width: 100%;
|
|
1323
|
+
height: 100%;
|
|
1324
|
+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1325
|
+
border-radius: 4px;
|
|
1326
|
+
pointer-events: none;
|
|
1327
|
+
outline: 2px solid transparent;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1288
1330
|
.dataviews-view-grid .dataviews-view-grid__card {
|
|
1289
1331
|
height: 100%;
|
|
1290
1332
|
justify-content: flex-start;
|
|
@@ -1758,20 +1800,11 @@ div.dataviews-view-list {
|
|
|
1758
1800
|
background-color: inherit;
|
|
1759
1801
|
}
|
|
1760
1802
|
|
|
1761
|
-
.dataviews-view-table tr .dataviews-view-table-header-button {
|
|
1762
|
-
gap: 4px;
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
1803
|
.dataviews-view-table tr td:first-child,
|
|
1766
1804
|
.dataviews-view-table tr th:first-child {
|
|
1767
1805
|
padding-left: 48px;
|
|
1768
1806
|
}
|
|
1769
1807
|
|
|
1770
|
-
.dataviews-view-table tr td:first-child .dataviews-view-table-header-button,
|
|
1771
|
-
.dataviews-view-table tr th:first-child .dataviews-view-table-header-button {
|
|
1772
|
-
margin-left: -8px;
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
1808
|
.dataviews-view-table tr td:last-child,
|
|
1776
1809
|
.dataviews-view-table tr th:last-child {
|
|
1777
1810
|
padding-right: 48px;
|
|
@@ -1781,12 +1814,8 @@ div.dataviews-view-list {
|
|
|
1781
1814
|
border-bottom: 0;
|
|
1782
1815
|
}
|
|
1783
1816
|
|
|
1784
|
-
.dataviews-view-table tr .
|
|
1785
|
-
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus {
|
|
1789
|
-
opacity: 1;
|
|
1817
|
+
.dataviews-view-table tr.is-hovered, .dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky {
|
|
1818
|
+
background-color: #f8f8f8;
|
|
1790
1819
|
}
|
|
1791
1820
|
|
|
1792
1821
|
.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
|
|
@@ -1794,7 +1823,6 @@ div.dataviews-view-list {
|
|
|
1794
1823
|
}
|
|
1795
1824
|
|
|
1796
1825
|
@media (hover: none) {
|
|
1797
|
-
.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input,
|
|
1798
1826
|
.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
|
|
1799
1827
|
opacity: 1;
|
|
1800
1828
|
}
|
|
@@ -1842,22 +1870,30 @@ div.dataviews-view-list {
|
|
|
1842
1870
|
border: 0;
|
|
1843
1871
|
}
|
|
1844
1872
|
|
|
1845
|
-
.dataviews-view-table thead tr .components-checkbox-control__input.components-checkbox-control__input {
|
|
1846
|
-
opacity: 1;
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
1873
|
.dataviews-view-table thead th {
|
|
1850
1874
|
background-color: inherit;
|
|
1851
1875
|
padding-top: 8px;
|
|
1852
1876
|
padding-bottom: 8px;
|
|
1853
|
-
padding-left: 12px;
|
|
1854
1877
|
font-size: 11px;
|
|
1855
1878
|
text-transform: uppercase;
|
|
1856
1879
|
font-weight: 499;
|
|
1857
1880
|
}
|
|
1858
1881
|
|
|
1859
|
-
.dataviews-view-table thead th:has(.dataviews-view-table-header-button)
|
|
1882
|
+
.dataviews-view-table thead th:has(.dataviews-view-table-header-button) {
|
|
1860
1883
|
padding-left: 4px;
|
|
1884
|
+
padding-right: 4px;
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
.dataviews-view-table thead th:has(.dataviews-view-table-header-button) .dataviews-view-table-header-button {
|
|
1888
|
+
gap: 4px;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
.dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child {
|
|
1892
|
+
padding-left: 40px;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
.dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child {
|
|
1896
|
+
padding-right: 40px;
|
|
1861
1897
|
}
|
|
1862
1898
|
|
|
1863
1899
|
.dataviews-view-table tbody td {
|
|
@@ -1911,14 +1947,14 @@ div.dataviews-view-list {
|
|
|
1911
1947
|
white-space: nowrap;
|
|
1912
1948
|
}
|
|
1913
1949
|
|
|
1914
|
-
.dataviews-view-table:has(tr.is-selected) .components-checkbox-control__input {
|
|
1915
|
-
opacity: 1;
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
1950
|
.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child) {
|
|
1919
1951
|
padding-left: 0;
|
|
1920
1952
|
}
|
|
1921
1953
|
|
|
1954
|
+
.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:last-child) {
|
|
1955
|
+
padding-right: 0;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1922
1958
|
.dataviews-view-table.has-compact-density td,
|
|
1923
1959
|
.dataviews-view-table.has-compact-density th {
|
|
1924
1960
|
padding: 4px 8px;
|
|
@@ -2189,6 +2225,205 @@ div.dataviews-view-list {
|
|
|
2189
2225
|
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.12);
|
|
2190
2226
|
}
|
|
2191
2227
|
|
|
2228
|
+
.dataviews-view-activity {
|
|
2229
|
+
margin: 0 0 auto;
|
|
2230
|
+
padding: 8px 48px;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
.dataviews-view-activity .dataviews-view-activity__group-header {
|
|
2234
|
+
font-size: 15px;
|
|
2235
|
+
font-weight: 499;
|
|
2236
|
+
color: #949494;
|
|
2237
|
+
margin: 0 0 8px 0;
|
|
2238
|
+
padding: 0;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
.dataviews-view-activity .dataviews-view-activity__item-actions {
|
|
2242
|
+
min-width: 24px;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
.dataviews-view-activity .dataviews-view-activity__item-content {
|
|
2246
|
+
flex-grow: 1;
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title,
|
|
2250
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description,
|
|
2251
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields {
|
|
2252
|
+
min-height: 16px;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title {
|
|
2256
|
+
position: relative;
|
|
2257
|
+
display: flex;
|
|
2258
|
+
align-items: center;
|
|
2259
|
+
flex: 1;
|
|
2260
|
+
overflow: hidden;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable {
|
|
2264
|
+
cursor: pointer;
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible {
|
|
2268
|
+
outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);
|
|
2269
|
+
outline-offset: var(--wp-admin-border-width-focus);
|
|
2270
|
+
border-radius: 2px;
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions {
|
|
2274
|
+
display: flex;
|
|
2275
|
+
width: max-content;
|
|
2276
|
+
flex: 0 0 auto;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions .components-button {
|
|
2280
|
+
position: relative;
|
|
2281
|
+
z-index: 1;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields {
|
|
2285
|
+
color: #757575;
|
|
2286
|
+
display: flex;
|
|
2287
|
+
gap: 12px;
|
|
2288
|
+
row-gap: 4px;
|
|
2289
|
+
flex-wrap: wrap;
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields:empty {
|
|
2293
|
+
display: none;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field:has(.dataviews-view-activity__item-field-value:empty) {
|
|
2297
|
+
display: none;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field-value {
|
|
2301
|
+
display: flex;
|
|
2302
|
+
align-items: center;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
.dataviews-view-activity .dataviews-view-activity__item-type {
|
|
2306
|
+
align-self: stretch;
|
|
2307
|
+
flex-shrink: 0;
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
.dataviews-view-activity .dataviews-view-activity__item-type::after {
|
|
2311
|
+
content: "";
|
|
2312
|
+
flex: 1 1 auto;
|
|
2313
|
+
width: 1px;
|
|
2314
|
+
margin: 0 auto;
|
|
2315
|
+
background-color: #ddd;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
.dataviews-view-activity .dataviews-view-activity__item-type::before {
|
|
2319
|
+
content: "";
|
|
2320
|
+
flex: 0 0 auto;
|
|
2321
|
+
width: 1px;
|
|
2322
|
+
margin: 0 auto;
|
|
2323
|
+
background-color: #ddd;
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type {
|
|
2327
|
+
width: 8px;
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type::before {
|
|
2331
|
+
height: 12px;
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon {
|
|
2335
|
+
width: 11px;
|
|
2336
|
+
height: 11px;
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content {
|
|
2340
|
+
margin: 12px 0;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type {
|
|
2344
|
+
width: 24px;
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type::before {
|
|
2348
|
+
height: 12px;
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon {
|
|
2352
|
+
width: 25px;
|
|
2353
|
+
height: 25px;
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content {
|
|
2357
|
+
margin: 12px 0;
|
|
2358
|
+
padding-top: 8px;
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type {
|
|
2362
|
+
width: 32px;
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type::before {
|
|
2366
|
+
height: 8px;
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon {
|
|
2370
|
+
width: 33px;
|
|
2371
|
+
height: 33px;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content {
|
|
2375
|
+
margin: 8px 0 16px;
|
|
2376
|
+
padding-top: 12px;
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-bullet, .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-bullet {
|
|
2380
|
+
width: 9px;
|
|
2381
|
+
height: 9px;
|
|
2382
|
+
position: relative;
|
|
2383
|
+
top: 50%;
|
|
2384
|
+
transform: translateY(-50%);
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
.dataviews-view-activity .dataviews-view-activity__item:first-child .dataviews-view-activity__item-type::before {
|
|
2388
|
+
visibility: hidden;
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
.dataviews-view-activity .dataviews-view-activity__group:last-of-type > .dataviews-view-activity__item:last-of-type .dataviews-view-activity__item-type::after, .dataviews-view-activity > .dataviews-view-activity__item:last-child .dataviews-view-activity__item-type::after {
|
|
2392
|
+
background: linear-gradient(to bottom, #ddd 0%, rgba(221, 221, 221, 0.2) 60%, rgba(221, 221, 221, 0) 100%);
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
.dataviews-view-activity .dataviews-view-activity__item-type-icon {
|
|
2396
|
+
overflow: hidden;
|
|
2397
|
+
flex-shrink: 0;
|
|
2398
|
+
background-color: #fff;
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
.dataviews-view-activity .dataviews-view-activity__item-type-icon img,
|
|
2402
|
+
.dataviews-view-activity .dataviews-view-activity__item-type-icon svg,
|
|
2403
|
+
.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet {
|
|
2404
|
+
display: block;
|
|
2405
|
+
width: 100%;
|
|
2406
|
+
height: 100%;
|
|
2407
|
+
margin: 0 auto;
|
|
2408
|
+
object-fit: cover;
|
|
2409
|
+
border-radius: 50%;
|
|
2410
|
+
box-sizing: border-box;
|
|
2411
|
+
box-shadow: inset 0 0 0 1px #ddd;
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
.dataviews-view-activity .dataviews-view-activity__item-type-icon svg {
|
|
2415
|
+
padding: 4px;
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet {
|
|
2419
|
+
content: "";
|
|
2420
|
+
background-color: #ddd;
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
.dataviews-view-activity + .dataviews-pagination {
|
|
2424
|
+
justify-content: space-between;
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2192
2427
|
.dataviews-controls__datetime {
|
|
2193
2428
|
border: none;
|
|
2194
2429
|
padding: 0;
|
|
@@ -3240,6 +3475,7 @@ button.font-library-modal__upload-area {
|
|
|
3240
3475
|
max-width: 100%;
|
|
3241
3476
|
display: block;
|
|
3242
3477
|
width: 100%;
|
|
3478
|
+
clip-path: border-box;
|
|
3243
3479
|
}
|
|
3244
3480
|
|
|
3245
3481
|
.global-styles-ui-typography-preview {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.36.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -40,50 +40,50 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@react-spring/web": "^9.4.5",
|
|
43
|
-
"@wordpress/a11y": "^4.
|
|
44
|
-
"@wordpress/admin-ui": "^1.
|
|
45
|
-
"@wordpress/api-fetch": "^7.
|
|
46
|
-
"@wordpress/base-styles": "^6.
|
|
47
|
-
"@wordpress/blob": "^4.
|
|
48
|
-
"@wordpress/block-editor": "^15.
|
|
49
|
-
"@wordpress/block-library": "^9.
|
|
50
|
-
"@wordpress/blocks": "^15.
|
|
51
|
-
"@wordpress/commands": "^1.
|
|
52
|
-
"@wordpress/components": "^30.
|
|
53
|
-
"@wordpress/compose": "^7.
|
|
54
|
-
"@wordpress/core-data": "^7.
|
|
55
|
-
"@wordpress/data": "^10.
|
|
56
|
-
"@wordpress/dataviews": "^
|
|
57
|
-
"@wordpress/date": "^5.
|
|
58
|
-
"@wordpress/deprecated": "^4.
|
|
59
|
-
"@wordpress/dom": "^4.
|
|
60
|
-
"@wordpress/editor": "^14.
|
|
61
|
-
"@wordpress/element": "^6.
|
|
62
|
-
"@wordpress/escape-html": "^3.
|
|
63
|
-
"@wordpress/fields": "^0.
|
|
64
|
-
"@wordpress/global-styles-engine": "^1.
|
|
65
|
-
"@wordpress/global-styles-ui": "^1.
|
|
66
|
-
"@wordpress/hooks": "^4.
|
|
67
|
-
"@wordpress/html-entities": "^4.
|
|
68
|
-
"@wordpress/i18n": "^6.
|
|
69
|
-
"@wordpress/icons": "^11.
|
|
70
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
71
|
-
"@wordpress/keycodes": "^4.
|
|
72
|
-
"@wordpress/media-utils": "^5.
|
|
73
|
-
"@wordpress/notices": "^5.
|
|
74
|
-
"@wordpress/patterns": "^2.
|
|
75
|
-
"@wordpress/plugins": "^7.
|
|
76
|
-
"@wordpress/preferences": "^4.
|
|
77
|
-
"@wordpress/primitives": "^4.
|
|
78
|
-
"@wordpress/private-apis": "^1.
|
|
79
|
-
"@wordpress/reusable-blocks": "^5.
|
|
80
|
-
"@wordpress/router": "^1.
|
|
81
|
-
"@wordpress/style-engine": "^2.
|
|
82
|
-
"@wordpress/url": "^4.
|
|
83
|
-
"@wordpress/viewport": "^6.
|
|
84
|
-
"@wordpress/views": "^1.
|
|
85
|
-
"@wordpress/widgets": "^4.
|
|
86
|
-
"@wordpress/wordcount": "^4.
|
|
43
|
+
"@wordpress/a11y": "^4.36.0",
|
|
44
|
+
"@wordpress/admin-ui": "^1.4.0",
|
|
45
|
+
"@wordpress/api-fetch": "^7.36.0",
|
|
46
|
+
"@wordpress/base-styles": "^6.12.0",
|
|
47
|
+
"@wordpress/blob": "^4.36.0",
|
|
48
|
+
"@wordpress/block-editor": "^15.9.0",
|
|
49
|
+
"@wordpress/block-library": "^9.36.0",
|
|
50
|
+
"@wordpress/blocks": "^15.9.0",
|
|
51
|
+
"@wordpress/commands": "^1.36.0",
|
|
52
|
+
"@wordpress/components": "^30.9.0",
|
|
53
|
+
"@wordpress/compose": "^7.36.0",
|
|
54
|
+
"@wordpress/core-data": "^7.36.0",
|
|
55
|
+
"@wordpress/data": "^10.36.0",
|
|
56
|
+
"@wordpress/dataviews": "^11.0.0",
|
|
57
|
+
"@wordpress/date": "^5.36.0",
|
|
58
|
+
"@wordpress/deprecated": "^4.36.0",
|
|
59
|
+
"@wordpress/dom": "^4.36.0",
|
|
60
|
+
"@wordpress/editor": "^14.36.0",
|
|
61
|
+
"@wordpress/element": "^6.36.0",
|
|
62
|
+
"@wordpress/escape-html": "^3.36.0",
|
|
63
|
+
"@wordpress/fields": "^0.28.0",
|
|
64
|
+
"@wordpress/global-styles-engine": "^1.3.0",
|
|
65
|
+
"@wordpress/global-styles-ui": "^1.3.0",
|
|
66
|
+
"@wordpress/hooks": "^4.36.0",
|
|
67
|
+
"@wordpress/html-entities": "^4.36.0",
|
|
68
|
+
"@wordpress/i18n": "^6.9.0",
|
|
69
|
+
"@wordpress/icons": "^11.3.0",
|
|
70
|
+
"@wordpress/keyboard-shortcuts": "^5.36.0",
|
|
71
|
+
"@wordpress/keycodes": "^4.36.0",
|
|
72
|
+
"@wordpress/media-utils": "^5.36.0",
|
|
73
|
+
"@wordpress/notices": "^5.36.0",
|
|
74
|
+
"@wordpress/patterns": "^2.36.0",
|
|
75
|
+
"@wordpress/plugins": "^7.36.0",
|
|
76
|
+
"@wordpress/preferences": "^4.36.0",
|
|
77
|
+
"@wordpress/primitives": "^4.36.0",
|
|
78
|
+
"@wordpress/private-apis": "^1.36.0",
|
|
79
|
+
"@wordpress/reusable-blocks": "^5.36.0",
|
|
80
|
+
"@wordpress/router": "^1.36.0",
|
|
81
|
+
"@wordpress/style-engine": "^2.36.0",
|
|
82
|
+
"@wordpress/url": "^4.36.0",
|
|
83
|
+
"@wordpress/viewport": "^6.36.0",
|
|
84
|
+
"@wordpress/views": "^1.3.0",
|
|
85
|
+
"@wordpress/widgets": "^4.36.0",
|
|
86
|
+
"@wordpress/wordcount": "^4.36.0",
|
|
87
87
|
"change-case": "^4.1.2",
|
|
88
88
|
"clsx": "^2.1.1",
|
|
89
89
|
"colord": "^2.9.2",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"access": "public"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "b35cf1a2dce04665e99fd6b9c2891c0b336361b9"
|
|
102
102
|
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { paramCase as kebabCase } from 'change-case';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* WordPress dependencies
|
|
8
|
+
*/
|
|
9
|
+
import { useState, useEffect, useRef } from '@wordpress/element';
|
|
10
|
+
import { __ } from '@wordpress/i18n';
|
|
11
|
+
import {
|
|
12
|
+
Button,
|
|
13
|
+
TextControl,
|
|
14
|
+
__experimentalHStack as HStack,
|
|
15
|
+
__experimentalVStack as VStack,
|
|
16
|
+
} from '@wordpress/components';
|
|
17
|
+
|
|
18
|
+
function AddCustomGenericTemplateModalContent( { createTemplate, onBack } ) {
|
|
19
|
+
const [ title, setTitle ] = useState( '' );
|
|
20
|
+
const defaultTitle = __( 'Custom Template' );
|
|
21
|
+
const [ isBusy, setIsBusy ] = useState( false );
|
|
22
|
+
const inputRef = useRef();
|
|
23
|
+
|
|
24
|
+
// Set focus to the name input when the component mounts
|
|
25
|
+
useEffect( () => {
|
|
26
|
+
if ( inputRef.current ) {
|
|
27
|
+
inputRef.current.focus();
|
|
28
|
+
}
|
|
29
|
+
}, [] );
|
|
30
|
+
|
|
31
|
+
async function onCreateTemplate( event ) {
|
|
32
|
+
event.preventDefault();
|
|
33
|
+
if ( isBusy ) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
setIsBusy( true );
|
|
37
|
+
try {
|
|
38
|
+
await createTemplate(
|
|
39
|
+
{
|
|
40
|
+
slug:
|
|
41
|
+
kebabCase( title || defaultTitle ) ||
|
|
42
|
+
'wp-custom-template',
|
|
43
|
+
title: title || defaultTitle,
|
|
44
|
+
},
|
|
45
|
+
false
|
|
46
|
+
);
|
|
47
|
+
} finally {
|
|
48
|
+
setIsBusy( false );
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return (
|
|
52
|
+
<form onSubmit={ onCreateTemplate }>
|
|
53
|
+
<VStack spacing={ 6 }>
|
|
54
|
+
<TextControl
|
|
55
|
+
__next40pxDefaultSize
|
|
56
|
+
__nextHasNoMarginBottom
|
|
57
|
+
label={ __( 'Name' ) }
|
|
58
|
+
value={ title }
|
|
59
|
+
onChange={ setTitle }
|
|
60
|
+
placeholder={ defaultTitle }
|
|
61
|
+
disabled={ isBusy }
|
|
62
|
+
ref={ inputRef }
|
|
63
|
+
help={ __(
|
|
64
|
+
// eslint-disable-next-line no-restricted-syntax -- 'sidebar' is a common web design term for layouts
|
|
65
|
+
'Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.'
|
|
66
|
+
) }
|
|
67
|
+
/>
|
|
68
|
+
<HStack
|
|
69
|
+
className="edit-site-custom-generic-template__modal-actions"
|
|
70
|
+
justify="right"
|
|
71
|
+
>
|
|
72
|
+
<Button
|
|
73
|
+
__next40pxDefaultSize
|
|
74
|
+
variant="tertiary"
|
|
75
|
+
onClick={ onBack }
|
|
76
|
+
>
|
|
77
|
+
{ __( 'Back' ) }
|
|
78
|
+
</Button>
|
|
79
|
+
<Button
|
|
80
|
+
__next40pxDefaultSize
|
|
81
|
+
variant="primary"
|
|
82
|
+
type="submit"
|
|
83
|
+
isBusy={ isBusy }
|
|
84
|
+
aria-disabled={ isBusy }
|
|
85
|
+
>
|
|
86
|
+
{ __( 'Create' ) }
|
|
87
|
+
</Button>
|
|
88
|
+
</HStack>
|
|
89
|
+
</VStack>
|
|
90
|
+
</form>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export default AddCustomGenericTemplateModalContent;
|