@wordpress/edit-site 6.8.4 → 6.8.6

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.
Files changed (52) hide show
  1. package/build/components/editor/index.js +1 -1
  2. package/build/components/editor/index.js.map +1 -1
  3. package/build/components/global-styles/font-families.js +2 -16
  4. package/build/components/global-styles/font-families.js.map +1 -1
  5. package/build/components/global-styles/screen-typography.js +5 -3
  6. package/build/components/global-styles/screen-typography.js.map +1 -1
  7. package/build/components/global-styles/ui.js +0 -4
  8. package/build/components/global-styles/ui.js.map +1 -1
  9. package/build/components/sidebar-dataviews/dataview-item.js +1 -3
  10. package/build/components/sidebar-dataviews/dataview-item.js.map +1 -1
  11. package/build/components/sidebar-dataviews/default-views.js +0 -42
  12. package/build/components/sidebar-dataviews/default-views.js.map +1 -1
  13. package/build/components/sidebar-dataviews/index.js +1 -4
  14. package/build/components/sidebar-dataviews/index.js.map +1 -1
  15. package/build-module/components/editor/index.js +2 -2
  16. package/build-module/components/editor/index.js.map +1 -1
  17. package/build-module/components/global-styles/font-families.js +4 -18
  18. package/build-module/components/global-styles/font-families.js.map +1 -1
  19. package/build-module/components/global-styles/screen-typography.js +5 -3
  20. package/build-module/components/global-styles/screen-typography.js.map +1 -1
  21. package/build-module/components/global-styles/ui.js +0 -4
  22. package/build-module/components/global-styles/ui.js.map +1 -1
  23. package/build-module/components/sidebar-dataviews/dataview-item.js +1 -3
  24. package/build-module/components/sidebar-dataviews/dataview-item.js.map +1 -1
  25. package/build-module/components/sidebar-dataviews/default-views.js +1 -42
  26. package/build-module/components/sidebar-dataviews/default-views.js.map +1 -1
  27. package/build-module/components/sidebar-dataviews/index.js +2 -5
  28. package/build-module/components/sidebar-dataviews/index.js.map +1 -1
  29. package/build-style/posts-rtl.css +4 -15
  30. package/build-style/posts.css +4 -15
  31. package/build-style/style-rtl.css +7 -18
  32. package/build-style/style.css +7 -18
  33. package/package.json +30 -30
  34. package/src/components/editor/index.js +2 -2
  35. package/src/components/editor/style.scss +4 -0
  36. package/src/components/global-styles/font-families.js +5 -28
  37. package/src/components/global-styles/screen-typography.js +3 -3
  38. package/src/components/global-styles/ui.js +0 -5
  39. package/src/components/sidebar-dataviews/dataview-item.js +0 -2
  40. package/src/components/sidebar-dataviews/default-views.js +1 -45
  41. package/src/components/sidebar-dataviews/index.js +2 -7
  42. package/src/components/sidebar-dataviews/style.scss +0 -4
  43. package/build/components/global-styles/screen-typeset.js +0 -40
  44. package/build/components/global-styles/screen-typeset.js.map +0 -1
  45. package/build/components/global-styles/typeset-button.js +0 -98
  46. package/build/components/global-styles/typeset-button.js.map +0 -1
  47. package/build-module/components/global-styles/screen-typeset.js +0 -34
  48. package/build-module/components/global-styles/screen-typeset.js.map +0 -1
  49. package/build-module/components/global-styles/typeset-button.js +0 -90
  50. package/build-module/components/global-styles/typeset-button.js.map +0 -1
  51. package/src/components/global-styles/screen-typeset.js +0 -42
  52. package/src/components/global-styles/typeset-button.js +0 -100
@@ -7,7 +7,7 @@ import { privateApis as routerPrivateApis } from '@wordpress/router';
7
7
  /**
8
8
  * Internal dependencies
9
9
  */
10
- import { useDefaultViewsWithItemCounts } from './default-views';
10
+ import { useDefaultViews } from './default-views';
11
11
  import { unlock } from '../../lock-unlock';
12
12
  import DataViewItem from './dataview-item';
13
13
  import CustomDataViewsList from './custom-dataviews-list';
@@ -25,7 +25,7 @@ export default function DataViewsSidebarContent() {
25
25
  isCustom = 'false'
26
26
  }
27
27
  } = useLocation();
28
- const defaultViews = useDefaultViewsWithItemCounts({
28
+ const defaultViews = useDefaultViews({
29
29
  postType
30
30
  });
31
31
  if (!postType) {
@@ -39,9 +39,6 @@ export default function DataViewsSidebarContent() {
39
39
  slug: dataview.slug,
40
40
  title: dataview.title,
41
41
  icon: dataview.icon,
42
- navigationItemSuffix: /*#__PURE__*/_jsx("span", {
43
- children: dataview.count
44
- }),
45
42
  type: dataview.view.type,
46
43
  isActive: !isCustomBoolean && dataview.slug === activeView,
47
44
  isCustom: false
@@ -1 +1 @@
1
- {"version":3,"names":["__experimentalItemGroup","ItemGroup","privateApis","routerPrivateApis","useDefaultViewsWithItemCounts","unlock","DataViewItem","CustomDataViewsList","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","useLocation","DataViewsSidebarContent","params","postType","activeView","isCustom","defaultViews","isCustomBoolean","children","map","dataview","slug","title","icon","navigationItemSuffix","count","type","view","isActive","window","__experimentalCustomViews"],"sources":["@wordpress/edit-site/src/components/sidebar-dataviews/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalItemGroup as ItemGroup } from '@wordpress/components';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\n\n/**\n * Internal dependencies\n */\nimport { useDefaultViewsWithItemCounts } from './default-views';\nimport { unlock } from '../../lock-unlock';\nimport DataViewItem from './dataview-item';\nimport CustomDataViewsList from './custom-dataviews-list';\n\nconst { useLocation } = unlock( routerPrivateApis );\n\nexport default function DataViewsSidebarContent() {\n\tconst {\n\t\tparams: { postType, activeView = 'all', isCustom = 'false' },\n\t} = useLocation();\n\n\tconst defaultViews = useDefaultViewsWithItemCounts( { postType } );\n\n\tif ( ! postType ) {\n\t\treturn null;\n\t}\n\tconst isCustomBoolean = isCustom === 'true';\n\n\treturn (\n\t\t<>\n\t\t\t<ItemGroup>\n\t\t\t\t{ defaultViews.map( ( dataview ) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<DataViewItem\n\t\t\t\t\t\t\tkey={ dataview.slug }\n\t\t\t\t\t\t\tslug={ dataview.slug }\n\t\t\t\t\t\t\ttitle={ dataview.title }\n\t\t\t\t\t\t\ticon={ dataview.icon }\n\t\t\t\t\t\t\tnavigationItemSuffix={\n\t\t\t\t\t\t\t\t<span>{ dataview.count }</span>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttype={ dataview.view.type }\n\t\t\t\t\t\t\tisActive={\n\t\t\t\t\t\t\t\t! isCustomBoolean &&\n\t\t\t\t\t\t\t\tdataview.slug === activeView\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tisCustom={ false }\n\t\t\t\t\t\t/>\n\t\t\t\t\t);\n\t\t\t\t} ) }\n\t\t\t</ItemGroup>\n\t\t\t{ window?.__experimentalCustomViews && (\n\t\t\t\t<CustomDataViewsList\n\t\t\t\t\tactiveView={ activeView }\n\t\t\t\t\ttype={ postType }\n\t\t\t\t\tisCustom\n\t\t\t\t/>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,uBAAuB,IAAIC,SAAS,QAAQ,uBAAuB;AAC5E,SAASC,WAAW,IAAIC,iBAAiB,QAAQ,mBAAmB;;AAEpE;AACA;AACA;AACA,SAASC,6BAA6B,QAAQ,iBAAiB;AAC/D,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,OAAOC,YAAY,MAAM,iBAAiB;AAC1C,OAAOC,mBAAmB,MAAM,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAE1D,MAAM;EAAEC;AAAY,CAAC,GAAGT,MAAM,CAAEF,iBAAkB,CAAC;AAEnD,eAAe,SAASY,uBAAuBA,CAAA,EAAG;EACjD,MAAM;IACLC,MAAM,EAAE;MAAEC,QAAQ;MAAEC,UAAU,GAAG,KAAK;MAAEC,QAAQ,GAAG;IAAQ;EAC5D,CAAC,GAAGL,WAAW,CAAC,CAAC;EAEjB,MAAMM,YAAY,GAAGhB,6BAA6B,CAAE;IAAEa;EAAS,CAAE,CAAC;EAElE,IAAK,CAAEA,QAAQ,EAAG;IACjB,OAAO,IAAI;EACZ;EACA,MAAMI,eAAe,GAAGF,QAAQ,KAAK,MAAM;EAE3C,oBACCN,KAAA,CAAAF,SAAA;IAAAW,QAAA,gBACCb,IAAA,CAACR,SAAS;MAAAqB,QAAA,EACPF,YAAY,CAACG,GAAG,CAAIC,QAAQ,IAAM;QACnC,oBACCf,IAAA,CAACH,YAAY;UAEZmB,IAAI,EAAGD,QAAQ,CAACC,IAAM;UACtBC,KAAK,EAAGF,QAAQ,CAACE,KAAO;UACxBC,IAAI,EAAGH,QAAQ,CAACG,IAAM;UACtBC,oBAAoB,eACnBnB,IAAA;YAAAa,QAAA,EAAQE,QAAQ,CAACK;UAAK,CAAQ,CAC9B;UACDC,IAAI,EAAGN,QAAQ,CAACO,IAAI,CAACD,IAAM;UAC3BE,QAAQ,EACP,CAAEX,eAAe,IACjBG,QAAQ,CAACC,IAAI,KAAKP,UAClB;UACDC,QAAQ,EAAG;QAAO,GAZZK,QAAQ,CAACC,IAaf,CAAC;MAEJ,CAAE;IAAC,CACO,CAAC,EACVQ,MAAM,EAAEC,yBAAyB,iBAClCzB,IAAA,CAACF,mBAAmB;MACnBW,UAAU,EAAGA,UAAY;MACzBY,IAAI,EAAGb,QAAU;MACjBE,QAAQ;IAAA,CACR,CACD;EAAA,CACA,CAAC;AAEL","ignoreList":[]}
1
+ {"version":3,"names":["__experimentalItemGroup","ItemGroup","privateApis","routerPrivateApis","useDefaultViews","unlock","DataViewItem","CustomDataViewsList","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","useLocation","DataViewsSidebarContent","params","postType","activeView","isCustom","defaultViews","isCustomBoolean","children","map","dataview","slug","title","icon","type","view","isActive","window","__experimentalCustomViews"],"sources":["@wordpress/edit-site/src/components/sidebar-dataviews/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalItemGroup as ItemGroup } from '@wordpress/components';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\n\n/**\n * Internal dependencies\n */\nimport { useDefaultViews } from './default-views';\nimport { unlock } from '../../lock-unlock';\nimport DataViewItem from './dataview-item';\nimport CustomDataViewsList from './custom-dataviews-list';\n\nconst { useLocation } = unlock( routerPrivateApis );\n\nexport default function DataViewsSidebarContent() {\n\tconst {\n\t\tparams: { postType, activeView = 'all', isCustom = 'false' },\n\t} = useLocation();\n\tconst defaultViews = useDefaultViews( { postType } );\n\tif ( ! postType ) {\n\t\treturn null;\n\t}\n\tconst isCustomBoolean = isCustom === 'true';\n\n\treturn (\n\t\t<>\n\t\t\t<ItemGroup>\n\t\t\t\t{ defaultViews.map( ( dataview ) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<DataViewItem\n\t\t\t\t\t\t\tkey={ dataview.slug }\n\t\t\t\t\t\t\tslug={ dataview.slug }\n\t\t\t\t\t\t\ttitle={ dataview.title }\n\t\t\t\t\t\t\ticon={ dataview.icon }\n\t\t\t\t\t\t\ttype={ dataview.view.type }\n\t\t\t\t\t\t\tisActive={\n\t\t\t\t\t\t\t\t! isCustomBoolean &&\n\t\t\t\t\t\t\t\tdataview.slug === activeView\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tisCustom={ false }\n\t\t\t\t\t\t/>\n\t\t\t\t\t);\n\t\t\t\t} ) }\n\t\t\t</ItemGroup>\n\t\t\t{ window?.__experimentalCustomViews && (\n\t\t\t\t<CustomDataViewsList\n\t\t\t\t\tactiveView={ activeView }\n\t\t\t\t\ttype={ postType }\n\t\t\t\t\tisCustom\n\t\t\t\t/>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,uBAAuB,IAAIC,SAAS,QAAQ,uBAAuB;AAC5E,SAASC,WAAW,IAAIC,iBAAiB,QAAQ,mBAAmB;;AAEpE;AACA;AACA;AACA,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,OAAOC,YAAY,MAAM,iBAAiB;AAC1C,OAAOC,mBAAmB,MAAM,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAE1D,MAAM;EAAEC;AAAY,CAAC,GAAGT,MAAM,CAAEF,iBAAkB,CAAC;AAEnD,eAAe,SAASY,uBAAuBA,CAAA,EAAG;EACjD,MAAM;IACLC,MAAM,EAAE;MAAEC,QAAQ;MAAEC,UAAU,GAAG,KAAK;MAAEC,QAAQ,GAAG;IAAQ;EAC5D,CAAC,GAAGL,WAAW,CAAC,CAAC;EACjB,MAAMM,YAAY,GAAGhB,eAAe,CAAE;IAAEa;EAAS,CAAE,CAAC;EACpD,IAAK,CAAEA,QAAQ,EAAG;IACjB,OAAO,IAAI;EACZ;EACA,MAAMI,eAAe,GAAGF,QAAQ,KAAK,MAAM;EAE3C,oBACCN,KAAA,CAAAF,SAAA;IAAAW,QAAA,gBACCb,IAAA,CAACR,SAAS;MAAAqB,QAAA,EACPF,YAAY,CAACG,GAAG,CAAIC,QAAQ,IAAM;QACnC,oBACCf,IAAA,CAACH,YAAY;UAEZmB,IAAI,EAAGD,QAAQ,CAACC,IAAM;UACtBC,KAAK,EAAGF,QAAQ,CAACE,KAAO;UACxBC,IAAI,EAAGH,QAAQ,CAACG,IAAM;UACtBC,IAAI,EAAGJ,QAAQ,CAACK,IAAI,CAACD,IAAM;UAC3BE,QAAQ,EACP,CAAET,eAAe,IACjBG,QAAQ,CAACC,IAAI,KAAKP,UAClB;UACDC,QAAQ,EAAG;QAAO,GATZK,QAAQ,CAACC,IAUf,CAAC;MAEJ,CAAE;IAAC,CACO,CAAC,EACVM,MAAM,EAAEC,yBAAyB,iBAClCvB,IAAA,CAACF,mBAAmB;MACnBW,UAAU,EAAGA,UAAY;MACzBU,IAAI,EAAGX,QAAU;MACjBE,QAAQ;IAAA,CACR,CACD;EAAA,CACA,CAAC;AAEL","ignoreList":[]}
@@ -1170,17 +1170,6 @@ ul.dataviews-view-list {
1170
1170
  margin-bottom: 16px;
1171
1171
  }
1172
1172
 
1173
- [class].dataforms-layouts-panel__dropdown-header-action {
1174
- height: 24px;
1175
- }
1176
- [class].dataforms-layouts-panel__dropdown-header-action.has-icon {
1177
- min-width: 24px;
1178
- padding: 0;
1179
- }
1180
- [class].dataforms-layouts-panel__dropdown-header-action:not(.has-icon) {
1181
- text-decoration: underline;
1182
- }
1183
-
1184
1173
  .edit-site-layout {
1185
1174
  height: 100%;
1186
1175
  background: #1e1e1e;
@@ -1522,7 +1511,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
1522
1511
  contain: content;
1523
1512
  }
1524
1513
 
1525
- @keyframes _vbgy4_slide-from-right {
1514
+ @keyframes _dq5dx_slide-from-right {
1526
1515
  from {
1527
1516
  transform: translateX(-50px);
1528
1517
  opacity: 0;
@@ -1532,7 +1521,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
1532
1521
  opacity: 1;
1533
1522
  }
1534
1523
  }
1535
- @keyframes _vbgy4_slide-from-left {
1524
+ @keyframes _dq5dx_slide-from-left {
1536
1525
  from {
1537
1526
  transform: translateX(50px);
1538
1527
  opacity: 0;
@@ -1588,10 +1577,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
1588
1577
  }
1589
1578
  }
1590
1579
  .edit-site-sidebar__screen-wrapper.slide-from-left {
1591
- animation-name: _vbgy4_slide-from-left;
1580
+ animation-name: _dq5dx_slide-from-left;
1592
1581
  }
1593
1582
  .edit-site-sidebar__screen-wrapper.slide-from-right {
1594
- animation-name: _vbgy4_slide-from-right;
1583
+ animation-name: _dq5dx_slide-from-right;
1595
1584
  }
1596
1585
 
1597
1586
  .edit-site-site-hub {
@@ -1170,17 +1170,6 @@ ul.dataviews-view-list {
1170
1170
  margin-bottom: 16px;
1171
1171
  }
1172
1172
 
1173
- [class].dataforms-layouts-panel__dropdown-header-action {
1174
- height: 24px;
1175
- }
1176
- [class].dataforms-layouts-panel__dropdown-header-action.has-icon {
1177
- min-width: 24px;
1178
- padding: 0;
1179
- }
1180
- [class].dataforms-layouts-panel__dropdown-header-action:not(.has-icon) {
1181
- text-decoration: underline;
1182
- }
1183
-
1184
1173
  .edit-site-layout {
1185
1174
  height: 100%;
1186
1175
  background: #1e1e1e;
@@ -1522,7 +1511,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
1522
1511
  contain: content;
1523
1512
  }
1524
1513
 
1525
- @keyframes _vbgy4_slide-from-right {
1514
+ @keyframes _dq5dx_slide-from-right {
1526
1515
  from {
1527
1516
  transform: translateX(50px);
1528
1517
  opacity: 0;
@@ -1532,7 +1521,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
1532
1521
  opacity: 1;
1533
1522
  }
1534
1523
  }
1535
- @keyframes _vbgy4_slide-from-left {
1524
+ @keyframes _dq5dx_slide-from-left {
1536
1525
  from {
1537
1526
  transform: translateX(-50px);
1538
1527
  opacity: 0;
@@ -1588,10 +1577,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
1588
1577
  }
1589
1578
  }
1590
1579
  .edit-site-sidebar__screen-wrapper.slide-from-left {
1591
- animation-name: _vbgy4_slide-from-left;
1580
+ animation-name: _dq5dx_slide-from-left;
1592
1581
  }
1593
1582
  .edit-site-sidebar__screen-wrapper.slide-from-right {
1594
- animation-name: _vbgy4_slide-from-right;
1583
+ animation-name: _dq5dx_slide-from-right;
1595
1584
  }
1596
1585
 
1597
1586
  .edit-site-site-hub {
@@ -1170,17 +1170,6 @@ ul.dataviews-view-list {
1170
1170
  margin-bottom: 16px;
1171
1171
  }
1172
1172
 
1173
- [class].dataforms-layouts-panel__dropdown-header-action {
1174
- height: 24px;
1175
- }
1176
- [class].dataforms-layouts-panel__dropdown-header-action.has-icon {
1177
- min-width: 24px;
1178
- padding: 0;
1179
- }
1180
- [class].dataforms-layouts-panel__dropdown-header-action:not(.has-icon) {
1181
- text-decoration: underline;
1182
- }
1183
-
1184
1173
  .edit-site-custom-template-modal__contents-wrapper {
1185
1174
  height: 100%;
1186
1175
  justify-content: flex-start !important;
@@ -2212,6 +2201,9 @@ ul.dataviews-view-list {
2212
2201
  background-color: #cccccc;
2213
2202
  pointer-events: none;
2214
2203
  }
2204
+ .edit-site-editor__back-icon svg {
2205
+ fill: currentColor;
2206
+ }
2215
2207
  .edit-site-editor__back-icon.has-site-icon {
2216
2208
  background-color: rgba(255, 255, 255, 0.6);
2217
2209
  -webkit-backdrop-filter: saturate(180%) blur(15px);
@@ -2538,7 +2530,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2538
2530
  contain: content;
2539
2531
  }
2540
2532
 
2541
- @keyframes _hzed3_slide-from-right {
2533
+ @keyframes _ngjuq_slide-from-right {
2542
2534
  from {
2543
2535
  transform: translateX(-50px);
2544
2536
  opacity: 0;
@@ -2548,7 +2540,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2548
2540
  opacity: 1;
2549
2541
  }
2550
2542
  }
2551
- @keyframes _hzed3_slide-from-left {
2543
+ @keyframes _ngjuq_slide-from-left {
2552
2544
  from {
2553
2545
  transform: translateX(50px);
2554
2546
  opacity: 0;
@@ -2604,10 +2596,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2604
2596
  }
2605
2597
  }
2606
2598
  .edit-site-sidebar__screen-wrapper.slide-from-left {
2607
- animation-name: _hzed3_slide-from-left;
2599
+ animation-name: _ngjuq_slide-from-left;
2608
2600
  }
2609
2601
  .edit-site-sidebar__screen-wrapper.slide-from-right {
2610
- animation-name: _hzed3_slide-from-right;
2602
+ animation-name: _ngjuq_slide-from-right;
2611
2603
  }
2612
2604
 
2613
2605
  .edit-site-sidebar-button {
@@ -2871,9 +2863,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2871
2863
  .edit-site-sidebar-dataviews-dataview-item .edit-site-sidebar-dataviews-dataview-item__dropdown-menu {
2872
2864
  min-width: initial;
2873
2865
  }
2874
- .edit-site-sidebar-dataviews-dataview-item .edit-site-sidebar-navigation-item.with-suffix {
2875
- padding-left: 8px;
2876
- }
2877
2866
  .edit-site-sidebar-dataviews-dataview-item:hover, .edit-site-sidebar-dataviews-dataview-item:focus, .edit-site-sidebar-dataviews-dataview-item[aria-current] {
2878
2867
  color: #e0e0e0;
2879
2868
  background: #2f2f2f;
@@ -1170,17 +1170,6 @@ ul.dataviews-view-list {
1170
1170
  margin-bottom: 16px;
1171
1171
  }
1172
1172
 
1173
- [class].dataforms-layouts-panel__dropdown-header-action {
1174
- height: 24px;
1175
- }
1176
- [class].dataforms-layouts-panel__dropdown-header-action.has-icon {
1177
- min-width: 24px;
1178
- padding: 0;
1179
- }
1180
- [class].dataforms-layouts-panel__dropdown-header-action:not(.has-icon) {
1181
- text-decoration: underline;
1182
- }
1183
-
1184
1173
  .edit-site-custom-template-modal__contents-wrapper {
1185
1174
  height: 100%;
1186
1175
  justify-content: flex-start !important;
@@ -2213,6 +2202,9 @@ ul.dataviews-view-list {
2213
2202
  background-color: #cccccc;
2214
2203
  pointer-events: none;
2215
2204
  }
2205
+ .edit-site-editor__back-icon svg {
2206
+ fill: currentColor;
2207
+ }
2216
2208
  .edit-site-editor__back-icon.has-site-icon {
2217
2209
  background-color: rgba(255, 255, 255, 0.6);
2218
2210
  -webkit-backdrop-filter: saturate(180%) blur(15px);
@@ -2539,7 +2531,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2539
2531
  contain: content;
2540
2532
  }
2541
2533
 
2542
- @keyframes _hzed3_slide-from-right {
2534
+ @keyframes _ngjuq_slide-from-right {
2543
2535
  from {
2544
2536
  transform: translateX(50px);
2545
2537
  opacity: 0;
@@ -2549,7 +2541,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2549
2541
  opacity: 1;
2550
2542
  }
2551
2543
  }
2552
- @keyframes _hzed3_slide-from-left {
2544
+ @keyframes _ngjuq_slide-from-left {
2553
2545
  from {
2554
2546
  transform: translateX(-50px);
2555
2547
  opacity: 0;
@@ -2605,10 +2597,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2605
2597
  }
2606
2598
  }
2607
2599
  .edit-site-sidebar__screen-wrapper.slide-from-left {
2608
- animation-name: _hzed3_slide-from-left;
2600
+ animation-name: _ngjuq_slide-from-left;
2609
2601
  }
2610
2602
  .edit-site-sidebar__screen-wrapper.slide-from-right {
2611
- animation-name: _hzed3_slide-from-right;
2603
+ animation-name: _ngjuq_slide-from-right;
2612
2604
  }
2613
2605
 
2614
2606
  .edit-site-sidebar-button {
@@ -2872,9 +2864,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
2872
2864
  .edit-site-sidebar-dataviews-dataview-item .edit-site-sidebar-dataviews-dataview-item__dropdown-menu {
2873
2865
  min-width: initial;
2874
2866
  }
2875
- .edit-site-sidebar-dataviews-dataview-item .edit-site-sidebar-navigation-item.with-suffix {
2876
- padding-right: 8px;
2877
- }
2878
2867
  .edit-site-sidebar-dataviews-dataview-item:hover, .edit-site-sidebar-dataviews-dataview-item:focus, .edit-site-sidebar-dataviews-dataview-item[aria-current] {
2879
2868
  color: #e0e0e0;
2880
2869
  background: #2f2f2f;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "6.8.4",
3
+ "version": "6.8.6",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -29,44 +29,44 @@
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.16.0",
31
31
  "@react-spring/web": "^9.4.5",
32
- "@wordpress/a11y": "^4.8.1",
33
- "@wordpress/api-fetch": "^7.8.1",
32
+ "@wordpress/a11y": "^4.8.2",
33
+ "@wordpress/api-fetch": "^7.8.2",
34
34
  "@wordpress/blob": "^4.8.1",
35
- "@wordpress/block-editor": "^14.3.2",
36
- "@wordpress/block-library": "^9.8.3",
37
- "@wordpress/blocks": "^13.8.2",
38
- "@wordpress/commands": "^1.8.2",
39
- "@wordpress/components": "^28.8.2",
40
- "@wordpress/compose": "^7.8.2",
41
- "@wordpress/core-commands": "^1.8.2",
42
- "@wordpress/core-data": "^7.8.2",
43
- "@wordpress/data": "^10.8.2",
44
- "@wordpress/dataviews": "^4.4.2",
45
- "@wordpress/date": "^5.8.1",
46
- "@wordpress/deprecated": "^4.8.1",
47
- "@wordpress/dom": "^4.8.1",
48
- "@wordpress/editor": "^14.8.4",
35
+ "@wordpress/block-editor": "^14.3.4",
36
+ "@wordpress/block-library": "^9.8.5",
37
+ "@wordpress/blocks": "^13.8.4",
38
+ "@wordpress/commands": "^1.8.4",
39
+ "@wordpress/components": "^28.8.4",
40
+ "@wordpress/compose": "^7.8.3",
41
+ "@wordpress/core-commands": "^1.8.4",
42
+ "@wordpress/core-data": "^7.8.4",
43
+ "@wordpress/data": "^10.8.3",
44
+ "@wordpress/dataviews": "^4.4.4",
45
+ "@wordpress/date": "^5.8.2",
46
+ "@wordpress/deprecated": "^4.8.2",
47
+ "@wordpress/dom": "^4.8.2",
48
+ "@wordpress/editor": "^14.8.6",
49
49
  "@wordpress/element": "^6.8.1",
50
50
  "@wordpress/escape-html": "^3.8.1",
51
- "@wordpress/hooks": "^4.8.1",
51
+ "@wordpress/hooks": "^4.8.2",
52
52
  "@wordpress/html-entities": "^4.8.1",
53
- "@wordpress/i18n": "^5.8.1",
54
- "@wordpress/icons": "^10.8.1",
55
- "@wordpress/keyboard-shortcuts": "^5.8.2",
56
- "@wordpress/keycodes": "^4.8.1",
57
- "@wordpress/notices": "^5.8.2",
58
- "@wordpress/patterns": "^2.8.2",
59
- "@wordpress/plugins": "^7.8.2",
60
- "@wordpress/preferences": "^4.8.2",
53
+ "@wordpress/i18n": "^5.8.2",
54
+ "@wordpress/icons": "^10.8.2",
55
+ "@wordpress/keyboard-shortcuts": "^5.8.3",
56
+ "@wordpress/keycodes": "^4.8.2",
57
+ "@wordpress/notices": "^5.8.3",
58
+ "@wordpress/patterns": "^2.8.4",
59
+ "@wordpress/plugins": "^7.8.4",
60
+ "@wordpress/preferences": "^4.8.4",
61
61
  "@wordpress/primitives": "^4.8.1",
62
62
  "@wordpress/priority-queue": "^3.8.1",
63
63
  "@wordpress/private-apis": "^1.8.1",
64
- "@wordpress/reusable-blocks": "^5.8.2",
64
+ "@wordpress/reusable-blocks": "^5.8.4",
65
65
  "@wordpress/router": "^1.8.1",
66
66
  "@wordpress/style-engine": "^2.8.1",
67
67
  "@wordpress/url": "^4.8.1",
68
- "@wordpress/viewport": "^6.8.2",
69
- "@wordpress/widgets": "^4.8.2",
68
+ "@wordpress/viewport": "^6.8.3",
69
+ "@wordpress/widgets": "^4.8.4",
70
70
  "@wordpress/wordcount": "^4.8.1",
71
71
  "change-case": "^4.1.2",
72
72
  "clsx": "^2.1.1",
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "51204ac9382d0551d8fdebd3c8d4623dabfa9f3c"
85
+ "gitHead": "07c75154341d1e5a1b8aaa1c226029b6666a52a9"
86
86
  }
@@ -22,7 +22,7 @@ import { store as noticesStore } from '@wordpress/notices';
22
22
  import { privateApis as routerPrivateApis } from '@wordpress/router';
23
23
  import { store as preferencesStore } from '@wordpress/preferences';
24
24
  import { decodeEntities } from '@wordpress/html-entities';
25
- import { Icon, homeButton } from '@wordpress/icons';
25
+ import { Icon, arrowUpLeft } from '@wordpress/icons';
26
26
 
27
27
  /**
28
28
  * Internal dependencies
@@ -291,7 +291,7 @@ export default function EditSiteEditor( { isPostsList = false } ) {
291
291
  ) }
292
292
  variants={ toggleHomeIconVariants }
293
293
  >
294
- <Icon icon={ homeButton } />
294
+ <Icon icon={ arrowUpLeft } />
295
295
  </motion.div>
296
296
  </motion.div>
297
297
  )
@@ -69,6 +69,10 @@
69
69
  background-color: hsla(0, 0%, 80%);
70
70
  pointer-events: none;
71
71
 
72
+ svg {
73
+ fill: currentColor;
74
+ }
75
+
72
76
  &.has-site-icon {
73
77
  background-color: hsla(0, 0%, 100%, 0.6);
74
78
  -webkit-backdrop-filter: saturate(180%) blur(15px);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { __, _x } from '@wordpress/i18n';
4
+ import { __ } from '@wordpress/i18n';
5
5
  import {
6
6
  __experimentalText as Text,
7
7
  __experimentalItemGroup as ItemGroup,
@@ -61,14 +61,9 @@ function FontFamilies() {
61
61
  ) }
62
62
 
63
63
  <VStack spacing={ 4 }>
64
- { themeFonts.length > 0 && (
65
- <VStack>
66
- <Subtitle level={ 3 }>
67
- {
68
- /* translators: Heading for a list of fonts provided by the theme. */
69
- _x( 'Theme', 'font source' )
70
- }
71
- </Subtitle>
64
+ { [ ...themeFonts, ...customFonts ].length > 0 && (
65
+ <>
66
+ <Subtitle level={ 3 }>{ __( 'Fonts' ) }</Subtitle>
72
67
  <ItemGroup size="large" isBordered isSeparated>
73
68
  { themeFonts.map( ( font ) => (
74
69
  <FontFamilyItem
@@ -77,25 +72,7 @@ function FontFamilies() {
77
72
  />
78
73
  ) ) }
79
74
  </ItemGroup>
80
- </VStack>
81
- ) }
82
- { customFonts.length > 0 && (
83
- <VStack>
84
- <Subtitle level={ 3 }>
85
- {
86
- /* translators: Heading for a list of fonts installed by the user. */
87
- _x( 'Custom', 'font source' )
88
- }
89
- </Subtitle>
90
- <ItemGroup size="large" isBordered isSeparated>
91
- { customFonts.map( ( font ) => (
92
- <FontFamilyItem
93
- key={ font.slug }
94
- font={ font }
95
- />
96
- ) ) }
97
- </ItemGroup>
98
- </VStack>
75
+ </>
99
76
  ) }
100
77
  { ! hasFonts && (
101
78
  <VStack>
@@ -11,8 +11,8 @@ import { store as editorStore } from '@wordpress/editor';
11
11
  */
12
12
  import TypographyElements from './typography-elements';
13
13
  import ScreenHeader from './header';
14
+ import TypographyVariations from './variations/variations-typography';
14
15
  import FontSizesCount from './font-sizes/font-sizes-count';
15
- import TypesetButton from './typeset-button';
16
16
  import FontFamilies from './font-families';
17
17
 
18
18
  function ScreenTypography() {
@@ -27,12 +27,12 @@ function ScreenTypography() {
27
27
  <ScreenHeader
28
28
  title={ __( 'Typography' ) }
29
29
  description={ __(
30
- 'Typography styles and the application of those styles on site elements.'
30
+ 'Available fonts, typographic styles, and the application of those styles.'
31
31
  ) }
32
32
  />
33
33
  <div className="edit-site-global-styles-screen">
34
34
  <VStack spacing={ 7 }>
35
- <TypesetButton />
35
+ <TypographyVariations title={ __( 'Typesets' ) } />
36
36
  { fontLibraryEnabled && <FontFamilies /> }
37
37
  <TypographyElements />
38
38
  <FontSizesCount />
@@ -32,7 +32,6 @@ import {
32
32
  } from './screen-block-list';
33
33
  import ScreenBlock from './screen-block';
34
34
  import ScreenTypography from './screen-typography';
35
- import ScreenTypeset from './screen-typeset';
36
35
  import ScreenTypographyElement from './screen-typography-element';
37
36
  import FontSize from './font-sizes/font-size';
38
37
  import FontSizes from './font-sizes/font-sizes';
@@ -325,10 +324,6 @@ function GlobalStylesUI() {
325
324
  <FontSize />
326
325
  </GlobalStylesNavigationScreen>
327
326
 
328
- <GlobalStylesNavigationScreen path="/typography/typeset">
329
- <ScreenTypeset />
330
- </GlobalStylesNavigationScreen>
331
-
332
327
  <GlobalStylesNavigationScreen path="/typography/text">
333
328
  <ScreenTypographyElement element="text" />
334
329
  </GlobalStylesNavigationScreen>
@@ -27,7 +27,6 @@ export default function DataViewItem( {
27
27
  isActive,
28
28
  isCustom,
29
29
  suffix,
30
- navigationItemSuffix,
31
30
  } ) {
32
31
  const {
33
32
  params: { postType },
@@ -56,7 +55,6 @@ export default function DataViewItem( {
56
55
  <SidebarNavigationItem
57
56
  icon={ iconToUse }
58
57
  { ...linkInfo }
59
- suffix={ navigationItemSuffix }
60
58
  aria-current={ isActive ? 'true' : undefined }
61
59
  >
62
60
  { title }
@@ -13,7 +13,7 @@ import {
13
13
  notAllowed,
14
14
  } from '@wordpress/icons';
15
15
  import { useSelect } from '@wordpress/data';
16
- import { store as coreStore, useEntityRecords } from '@wordpress/core-data';
16
+ import { store as coreStore } from '@wordpress/core-data';
17
17
  import { useMemo } from '@wordpress/element';
18
18
 
19
19
  /**
@@ -68,50 +68,6 @@ const DEFAULT_POST_BASE = {
68
68
  layout: defaultLayouts[ LAYOUT_LIST ].layout,
69
69
  };
70
70
 
71
- export function useDefaultViewsWithItemCounts( { postType } ) {
72
- const defaultViews = useDefaultViews( { postType } );
73
- const { records, totalItems } = useEntityRecords( 'postType', postType, {
74
- per_page: -1,
75
- status: [ 'any', 'trash' ],
76
- } );
77
-
78
- return useMemo( () => {
79
- if ( ! defaultViews ) {
80
- return [];
81
- }
82
-
83
- // If there are no records, return the default views with no counts.
84
- if ( ! records ) {
85
- return defaultViews;
86
- }
87
-
88
- const counts = {
89
- drafts: records.filter( ( record ) => record.status === 'draft' )
90
- .length,
91
- future: records.filter( ( record ) => record.status === 'future' )
92
- .length,
93
- pending: records.filter( ( record ) => record.status === 'pending' )
94
- .length,
95
- private: records.filter( ( record ) => record.status === 'private' )
96
- .length,
97
- published: records.filter(
98
- ( record ) => record.status === 'publish'
99
- ).length,
100
- trash: records.filter( ( record ) => record.status === 'trash' )
101
- .length,
102
- };
103
-
104
- // All items excluding trashed items as per the default "all" status query.
105
- counts.all = totalItems ? totalItems - counts.trash : 0;
106
-
107
- // Filter out views with > 0 item counts.
108
- return defaultViews.map( ( _view ) => {
109
- _view.count = counts[ _view.slug ];
110
- return _view;
111
- } );
112
- }, [ defaultViews, records, totalItems ] );
113
- }
114
-
115
71
  export function useDefaultViews( { postType } ) {
116
72
  const labels = useSelect(
117
73
  ( select ) => {
@@ -7,7 +7,7 @@ import { privateApis as routerPrivateApis } from '@wordpress/router';
7
7
  /**
8
8
  * Internal dependencies
9
9
  */
10
- import { useDefaultViewsWithItemCounts } from './default-views';
10
+ import { useDefaultViews } from './default-views';
11
11
  import { unlock } from '../../lock-unlock';
12
12
  import DataViewItem from './dataview-item';
13
13
  import CustomDataViewsList from './custom-dataviews-list';
@@ -18,9 +18,7 @@ export default function DataViewsSidebarContent() {
18
18
  const {
19
19
  params: { postType, activeView = 'all', isCustom = 'false' },
20
20
  } = useLocation();
21
-
22
- const defaultViews = useDefaultViewsWithItemCounts( { postType } );
23
-
21
+ const defaultViews = useDefaultViews( { postType } );
24
22
  if ( ! postType ) {
25
23
  return null;
26
24
  }
@@ -36,9 +34,6 @@ export default function DataViewsSidebarContent() {
36
34
  slug={ dataview.slug }
37
35
  title={ dataview.title }
38
36
  icon={ dataview.icon }
39
- navigationItemSuffix={
40
- <span>{ dataview.count }</span>
41
- }
42
37
  type={ dataview.view.type }
43
38
  isActive={
44
39
  ! isCustomBoolean &&
@@ -15,10 +15,6 @@
15
15
  min-width: initial;
16
16
  }
17
17
 
18
- .edit-site-sidebar-navigation-item.with-suffix {
19
- padding-right: $grid-unit-10;
20
- }
21
-
22
18
  &:hover,
23
19
  &:focus,
24
20
  &[aria-current] {
@@ -1,40 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _i18n = require("@wordpress/i18n");
9
- var _data = require("@wordpress/data");
10
- var _editor = require("@wordpress/editor");
11
- var _components = require("@wordpress/components");
12
- var _variationsTypography = _interopRequireDefault(require("./variations/variations-typography"));
13
- var _header = _interopRequireDefault(require("./header"));
14
- var _fontFamilies = _interopRequireDefault(require("./font-families"));
15
- var _jsxRuntime = require("react/jsx-runtime");
16
- /**
17
- * WordPress dependencies
18
- */
19
-
20
- /**
21
- * Internal dependencies
22
- */
23
-
24
- function ScreenTypeset() {
25
- const fontLibraryEnabled = (0, _data.useSelect)(select => select(_editor.store).getEditorSettings().fontLibraryEnabled, []);
26
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
27
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_header.default, {
28
- title: (0, _i18n.__)('Typesets'),
29
- description: (0, _i18n.__)('Fonts and typographic styling applied across the site.')
30
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
31
- className: "edit-site-global-styles-screen",
32
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.__experimentalVStack, {
33
- spacing: 7,
34
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_variationsTypography.default, {}), fontLibraryEnabled && /*#__PURE__*/(0, _jsxRuntime.jsx)(_fontFamilies.default, {})]
35
- })
36
- })]
37
- });
38
- }
39
- var _default = exports.default = ScreenTypeset;
40
- //# sourceMappingURL=screen-typeset.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_i18n","require","_data","_editor","_components","_variationsTypography","_interopRequireDefault","_header","_fontFamilies","_jsxRuntime","ScreenTypeset","fontLibraryEnabled","useSelect","select","editorStore","getEditorSettings","jsxs","Fragment","children","jsx","default","title","__","description","className","__experimentalVStack","spacing","_default","exports"],"sources":["@wordpress/edit-site/src/components/global-styles/screen-typeset.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { __experimentalVStack as VStack } from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport TypographyVariations from './variations/variations-typography';\nimport ScreenHeader from './header';\nimport FontFamilies from './font-families';\n\nfunction ScreenTypeset() {\n\tconst fontLibraryEnabled = useSelect(\n\t\t( select ) =>\n\t\t\tselect( editorStore ).getEditorSettings().fontLibraryEnabled,\n\t\t[]\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<ScreenHeader\n\t\t\t\ttitle={ __( 'Typesets' ) }\n\t\t\t\tdescription={ __(\n\t\t\t\t\t'Fonts and typographic styling applied across the site.'\n\t\t\t\t) }\n\t\t\t/>\n\t\t\t<div className=\"edit-site-global-styles-screen\">\n\t\t\t\t<VStack spacing={ 7 }>\n\t\t\t\t\t<TypographyVariations />\n\n\t\t\t\t\t{ fontLibraryEnabled && <FontFamilies /> }\n\t\t\t\t</VStack>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default ScreenTypeset;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAKA,IAAAI,qBAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,OAAA,GAAAD,sBAAA,CAAAL,OAAA;AACA,IAAAO,aAAA,GAAAF,sBAAA,CAAAL,OAAA;AAA2C,IAAAQ,WAAA,GAAAR,OAAA;AAb3C;AACA;AACA;;AAMA;AACA;AACA;;AAKA,SAASS,aAAaA,CAAA,EAAG;EACxB,MAAMC,kBAAkB,GAAG,IAAAC,eAAS,EACjCC,MAAM,IACPA,MAAM,CAAEC,aAAY,CAAC,CAACC,iBAAiB,CAAC,CAAC,CAACJ,kBAAkB,EAC7D,EACD,CAAC;EAED,oBACC,IAAAF,WAAA,CAAAO,IAAA,EAAAP,WAAA,CAAAQ,QAAA;IAAAC,QAAA,gBACC,IAAAT,WAAA,CAAAU,GAAA,EAACZ,OAAA,CAAAa,OAAY;MACZC,KAAK,EAAG,IAAAC,QAAE,EAAE,UAAW,CAAG;MAC1BC,WAAW,EAAG,IAAAD,QAAE,EACf,wDACD;IAAG,CACH,CAAC,eACF,IAAAb,WAAA,CAAAU,GAAA;MAAKK,SAAS,EAAC,gCAAgC;MAAAN,QAAA,eAC9C,IAAAT,WAAA,CAAAO,IAAA,EAACZ,WAAA,CAAAqB,oBAAM;QAACC,OAAO,EAAG,CAAG;QAAAR,QAAA,gBACpB,IAAAT,WAAA,CAAAU,GAAA,EAACd,qBAAA,CAAAe,OAAoB,IAAE,CAAC,EAEtBT,kBAAkB,iBAAI,IAAAF,WAAA,CAAAU,GAAA,EAACX,aAAA,CAAAY,OAAY,IAAE,CAAC;MAAA,CACjC;IAAC,CACL,CAAC;EAAA,CACL,CAAC;AAEL;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAR,OAAA,GAEcV,aAAa","ignoreList":[]}