@wordpress/edit-site 6.40.2-next.v.202602241322.0 → 6.40.2

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 (53) hide show
  1. package/build/components/page-patterns/index.cjs +2 -1
  2. package/build/components/page-patterns/index.cjs.map +2 -2
  3. package/build/components/page-patterns/use-pattern-settings.cjs +14 -2
  4. package/build/components/page-patterns/use-pattern-settings.cjs.map +3 -3
  5. package/build/components/page-templates/index-legacy.cjs +1 -0
  6. package/build/components/page-templates/index-legacy.cjs.map +2 -2
  7. package/build/components/page-templates/index.cjs +1 -0
  8. package/build/components/page-templates/index.cjs.map +2 -2
  9. package/build/components/page-templates/view-utils.cjs +3 -2
  10. package/build/components/page-templates/view-utils.cjs.map +2 -2
  11. package/build/components/post-list/index.cjs +4 -2
  12. package/build/components/post-list/index.cjs.map +2 -2
  13. package/build/components/post-list/view-utils.cjs +14 -2
  14. package/build/components/post-list/view-utils.cjs.map +2 -2
  15. package/build/components/sidebar-global-styles/index.cjs +1 -0
  16. package/build/components/sidebar-global-styles/index.cjs.map +2 -2
  17. package/build/components/site-editor-routes/stylebook.cjs +14 -2
  18. package/build/components/site-editor-routes/stylebook.cjs.map +2 -2
  19. package/build/index.cjs +3 -1
  20. package/build/index.cjs.map +2 -2
  21. package/build-module/components/page-patterns/index.mjs +2 -1
  22. package/build-module/components/page-patterns/index.mjs.map +2 -2
  23. package/build-module/components/page-patterns/use-pattern-settings.mjs +14 -2
  24. package/build-module/components/page-patterns/use-pattern-settings.mjs.map +2 -2
  25. package/build-module/components/page-templates/index-legacy.mjs +1 -0
  26. package/build-module/components/page-templates/index-legacy.mjs.map +2 -2
  27. package/build-module/components/page-templates/index.mjs +1 -0
  28. package/build-module/components/page-templates/index.mjs.map +2 -2
  29. package/build-module/components/page-templates/view-utils.mjs +3 -2
  30. package/build-module/components/page-templates/view-utils.mjs.map +2 -2
  31. package/build-module/components/post-list/index.mjs +4 -2
  32. package/build-module/components/post-list/index.mjs.map +2 -2
  33. package/build-module/components/post-list/view-utils.mjs +14 -2
  34. package/build-module/components/post-list/view-utils.mjs.map +2 -2
  35. package/build-module/components/sidebar-global-styles/index.mjs +1 -0
  36. package/build-module/components/sidebar-global-styles/index.mjs.map +2 -2
  37. package/build-module/components/site-editor-routes/stylebook.mjs +14 -2
  38. package/build-module/components/site-editor-routes/stylebook.mjs.map +2 -2
  39. package/build-module/index.mjs +3 -1
  40. package/build-module/index.mjs.map +2 -2
  41. package/build-style/style-rtl.css +177 -121
  42. package/build-style/style.css +177 -121
  43. package/package.json +46 -46
  44. package/src/components/page-patterns/index.js +2 -1
  45. package/src/components/page-patterns/use-pattern-settings.js +16 -2
  46. package/src/components/page-templates/index-legacy.js +1 -0
  47. package/src/components/page-templates/index.js +1 -0
  48. package/src/components/page-templates/view-utils.js +3 -2
  49. package/src/components/post-list/index.js +5 -1
  50. package/src/components/post-list/view-utils.js +14 -2
  51. package/src/components/sidebar-global-styles/index.js +1 -0
  52. package/src/components/site-editor-routes/stylebook.js +8 -2
  53. package/src/index.js +2 -0
@@ -80,6 +80,7 @@ function SidebarGlobalStyles() {
80
80
  ) : null,
81
81
  className: "edit-site-styles",
82
82
  title: __("Styles"),
83
+ headingLevel: 2,
83
84
  children: /* @__PURE__ */ jsx(
84
85
  GlobalStylesUIWrapper,
85
86
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/sidebar-global-styles/index.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { Page } from '@wordpress/admin-ui';\nimport { __ } from '@wordpress/i18n';\nimport { useMemo, useState } from '@wordpress/element';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { Button, __experimentalHStack as HStack } from '@wordpress/components';\nimport { addQueryArgs, removeQueryArgs } from '@wordpress/url';\nimport { seen } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst { GlobalStylesUIWrapper, GlobalStylesActionMenu } =\n\tunlock( editorPrivateApis );\nconst { useLocation, useHistory } = unlock( routerPrivateApis );\n\nconst GlobalStylesPageActions = ( {\n\tisStyleBookOpened,\n\tsetIsStyleBookOpened,\n\tpath,\n\tonChangeSection,\n} ) => {\n\tconst history = useHistory();\n\n\treturn (\n\t\t<HStack>\n\t\t\t<Button\n\t\t\t\tisPressed={ isStyleBookOpened }\n\t\t\t\ticon={ seen }\n\t\t\t\tlabel={ __( 'Style Book' ) }\n\t\t\t\tonClick={ () => {\n\t\t\t\t\tsetIsStyleBookOpened( ! isStyleBookOpened );\n\t\t\t\t\tconst updatedPath = ! isStyleBookOpened\n\t\t\t\t\t\t? addQueryArgs( path, { preview: 'stylebook' } )\n\t\t\t\t\t\t: removeQueryArgs( path, 'preview' );\n\t\t\t\t\t// Navigate to the updated path.\n\t\t\t\t\thistory.navigate( updatedPath );\n\t\t\t\t} }\n\t\t\t\tsize=\"compact\"\n\t\t\t/>\n\t\t\t<GlobalStylesActionMenu\n\t\t\t\thideWelcomeGuide\n\t\t\t\tonChangePath={ onChangeSection }\n\t\t\t/>\n\t\t</HStack>\n\t);\n};\n\n/**\n * Hook to deal with navigation and location state.\n *\n * @return {Array} The current section and a function to update it.\n */\nexport const useSection = () => {\n\tconst { path, query } = useLocation();\n\tconst history = useHistory();\n\treturn useMemo( () => {\n\t\treturn [\n\t\t\tquery.section ?? '/',\n\t\t\t( updatedSection ) => {\n\t\t\t\thistory.navigate(\n\t\t\t\t\taddQueryArgs( path, {\n\t\t\t\t\t\tsection: updatedSection,\n\t\t\t\t\t} )\n\t\t\t\t);\n\t\t\t},\n\t\t];\n\t}, [ path, query.section, history ] );\n};\n\nexport default function SidebarGlobalStyles() {\n\tconst { path } = useLocation();\n\n\tconst [ isStyleBookOpened, setIsStyleBookOpened ] = useState(\n\t\tpath.includes( 'preview=stylebook' )\n\t);\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst [ section, onChangeSection ] = useSection();\n\n\treturn (\n\t\t<Page\n\t\t\tactions={\n\t\t\t\t! isMobileViewport ? (\n\t\t\t\t\t<GlobalStylesPageActions\n\t\t\t\t\t\tisStyleBookOpened={ isStyleBookOpened }\n\t\t\t\t\t\tsetIsStyleBookOpened={ setIsStyleBookOpened }\n\t\t\t\t\t\tpath={ path }\n\t\t\t\t\t\tonChangeSection={ onChangeSection }\n\t\t\t\t\t/>\n\t\t\t\t) : null\n\t\t\t}\n\t\t\tclassName=\"edit-site-styles\"\n\t\t\ttitle={ __( 'Styles' ) }\n\t\t>\n\t\t\t<GlobalStylesUIWrapper\n\t\t\t\tpath={ section }\n\t\t\t\tonPathChange={ onChangeSection }\n\t\t\t/>\n\t\t</Page>\n\t);\n}\n"],
5
- "mappings": ";AAGA,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,SAAS,gBAAgB;AAClC,SAAS,eAAe,yBAAyB;AACjD,SAAS,eAAe,yBAAyB;AACjD,SAAS,wBAAwB;AACjC,SAAS,QAAQ,wBAAwB,cAAc;AACvD,SAAS,cAAc,uBAAuB;AAC9C,SAAS,YAAY;AAKrB,SAAS,cAAc;AAerB,SACC,KADD;AAbF,IAAM,EAAE,uBAAuB,uBAAuB,IACrD,OAAQ,iBAAkB;AAC3B,IAAM,EAAE,aAAa,WAAW,IAAI,OAAQ,iBAAkB;AAE9D,IAAM,0BAA0B,CAAE;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,MAAO;AACN,QAAM,UAAU,WAAW;AAE3B,SACC,qBAAC,UACA;AAAA;AAAA,MAAC;AAAA;AAAA,QACA,WAAY;AAAA,QACZ,MAAO;AAAA,QACP,OAAQ,GAAI,YAAa;AAAA,QACzB,SAAU,MAAM;AACf,+BAAsB,CAAE,iBAAkB;AAC1C,gBAAM,cAAc,CAAE,oBACnB,aAAc,MAAM,EAAE,SAAS,YAAY,CAAE,IAC7C,gBAAiB,MAAM,SAAU;AAEpC,kBAAQ,SAAU,WAAY;AAAA,QAC/B;AAAA,QACA,MAAK;AAAA;AAAA,IACN;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACA,kBAAgB;AAAA,QAChB,cAAe;AAAA;AAAA,IAChB;AAAA,KACD;AAEF;AAOO,IAAM,aAAa,MAAM;AAC/B,QAAM,EAAE,MAAM,MAAM,IAAI,YAAY;AACpC,QAAM,UAAU,WAAW;AAC3B,SAAO,QAAS,MAAM;AACrB,WAAO;AAAA,MACN,MAAM,WAAW;AAAA,MACjB,CAAE,mBAAoB;AACrB,gBAAQ;AAAA,UACP,aAAc,MAAM;AAAA,YACnB,SAAS;AAAA,UACV,CAAE;AAAA,QACH;AAAA,MACD;AAAA,IACD;AAAA,EACD,GAAG,CAAE,MAAM,MAAM,SAAS,OAAQ,CAAE;AACrC;AAEe,SAAR,sBAAuC;AAC7C,QAAM,EAAE,KAAK,IAAI,YAAY;AAE7B,QAAM,CAAE,mBAAmB,oBAAqB,IAAI;AAAA,IACnD,KAAK,SAAU,mBAAoB;AAAA,EACpC;AACA,QAAM,mBAAmB,iBAAkB,UAAU,GAAI;AACzD,QAAM,CAAE,SAAS,eAAgB,IAAI,WAAW;AAEhD,SACC;AAAA,IAAC;AAAA;AAAA,MACA,SACC,CAAE,mBACD;AAAA,QAAC;AAAA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACD,IACG;AAAA,MAEL,WAAU;AAAA,MACV,OAAQ,GAAI,QAAS;AAAA,MAErB;AAAA,QAAC;AAAA;AAAA,UACA,MAAO;AAAA,UACP,cAAe;AAAA;AAAA,MAChB;AAAA;AAAA,EACD;AAEF;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { Page } from '@wordpress/admin-ui';\nimport { __ } from '@wordpress/i18n';\nimport { useMemo, useState } from '@wordpress/element';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\nimport { useViewportMatch } from '@wordpress/compose';\nimport { Button, __experimentalHStack as HStack } from '@wordpress/components';\nimport { addQueryArgs, removeQueryArgs } from '@wordpress/url';\nimport { seen } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst { GlobalStylesUIWrapper, GlobalStylesActionMenu } =\n\tunlock( editorPrivateApis );\nconst { useLocation, useHistory } = unlock( routerPrivateApis );\n\nconst GlobalStylesPageActions = ( {\n\tisStyleBookOpened,\n\tsetIsStyleBookOpened,\n\tpath,\n\tonChangeSection,\n} ) => {\n\tconst history = useHistory();\n\n\treturn (\n\t\t<HStack>\n\t\t\t<Button\n\t\t\t\tisPressed={ isStyleBookOpened }\n\t\t\t\ticon={ seen }\n\t\t\t\tlabel={ __( 'Style Book' ) }\n\t\t\t\tonClick={ () => {\n\t\t\t\t\tsetIsStyleBookOpened( ! isStyleBookOpened );\n\t\t\t\t\tconst updatedPath = ! isStyleBookOpened\n\t\t\t\t\t\t? addQueryArgs( path, { preview: 'stylebook' } )\n\t\t\t\t\t\t: removeQueryArgs( path, 'preview' );\n\t\t\t\t\t// Navigate to the updated path.\n\t\t\t\t\thistory.navigate( updatedPath );\n\t\t\t\t} }\n\t\t\t\tsize=\"compact\"\n\t\t\t/>\n\t\t\t<GlobalStylesActionMenu\n\t\t\t\thideWelcomeGuide\n\t\t\t\tonChangePath={ onChangeSection }\n\t\t\t/>\n\t\t</HStack>\n\t);\n};\n\n/**\n * Hook to deal with navigation and location state.\n *\n * @return {Array} The current section and a function to update it.\n */\nexport const useSection = () => {\n\tconst { path, query } = useLocation();\n\tconst history = useHistory();\n\treturn useMemo( () => {\n\t\treturn [\n\t\t\tquery.section ?? '/',\n\t\t\t( updatedSection ) => {\n\t\t\t\thistory.navigate(\n\t\t\t\t\taddQueryArgs( path, {\n\t\t\t\t\t\tsection: updatedSection,\n\t\t\t\t\t} )\n\t\t\t\t);\n\t\t\t},\n\t\t];\n\t}, [ path, query.section, history ] );\n};\n\nexport default function SidebarGlobalStyles() {\n\tconst { path } = useLocation();\n\n\tconst [ isStyleBookOpened, setIsStyleBookOpened ] = useState(\n\t\tpath.includes( 'preview=stylebook' )\n\t);\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst [ section, onChangeSection ] = useSection();\n\n\treturn (\n\t\t<Page\n\t\t\tactions={\n\t\t\t\t! isMobileViewport ? (\n\t\t\t\t\t<GlobalStylesPageActions\n\t\t\t\t\t\tisStyleBookOpened={ isStyleBookOpened }\n\t\t\t\t\t\tsetIsStyleBookOpened={ setIsStyleBookOpened }\n\t\t\t\t\t\tpath={ path }\n\t\t\t\t\t\tonChangeSection={ onChangeSection }\n\t\t\t\t\t/>\n\t\t\t\t) : null\n\t\t\t}\n\t\t\tclassName=\"edit-site-styles\"\n\t\t\ttitle={ __( 'Styles' ) }\n\t\t\theadingLevel={ 2 }\n\t\t>\n\t\t\t<GlobalStylesUIWrapper\n\t\t\t\tpath={ section }\n\t\t\t\tonPathChange={ onChangeSection }\n\t\t\t/>\n\t\t</Page>\n\t);\n}\n"],
5
+ "mappings": ";AAGA,SAAS,YAAY;AACrB,SAAS,UAAU;AACnB,SAAS,SAAS,gBAAgB;AAClC,SAAS,eAAe,yBAAyB;AACjD,SAAS,eAAe,yBAAyB;AACjD,SAAS,wBAAwB;AACjC,SAAS,QAAQ,wBAAwB,cAAc;AACvD,SAAS,cAAc,uBAAuB;AAC9C,SAAS,YAAY;AAKrB,SAAS,cAAc;AAerB,SACC,KADD;AAbF,IAAM,EAAE,uBAAuB,uBAAuB,IACrD,OAAQ,iBAAkB;AAC3B,IAAM,EAAE,aAAa,WAAW,IAAI,OAAQ,iBAAkB;AAE9D,IAAM,0BAA0B,CAAE;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,MAAO;AACN,QAAM,UAAU,WAAW;AAE3B,SACC,qBAAC,UACA;AAAA;AAAA,MAAC;AAAA;AAAA,QACA,WAAY;AAAA,QACZ,MAAO;AAAA,QACP,OAAQ,GAAI,YAAa;AAAA,QACzB,SAAU,MAAM;AACf,+BAAsB,CAAE,iBAAkB;AAC1C,gBAAM,cAAc,CAAE,oBACnB,aAAc,MAAM,EAAE,SAAS,YAAY,CAAE,IAC7C,gBAAiB,MAAM,SAAU;AAEpC,kBAAQ,SAAU,WAAY;AAAA,QAC/B;AAAA,QACA,MAAK;AAAA;AAAA,IACN;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACA,kBAAgB;AAAA,QAChB,cAAe;AAAA;AAAA,IAChB;AAAA,KACD;AAEF;AAOO,IAAM,aAAa,MAAM;AAC/B,QAAM,EAAE,MAAM,MAAM,IAAI,YAAY;AACpC,QAAM,UAAU,WAAW;AAC3B,SAAO,QAAS,MAAM;AACrB,WAAO;AAAA,MACN,MAAM,WAAW;AAAA,MACjB,CAAE,mBAAoB;AACrB,gBAAQ;AAAA,UACP,aAAc,MAAM;AAAA,YACnB,SAAS;AAAA,UACV,CAAE;AAAA,QACH;AAAA,MACD;AAAA,IACD;AAAA,EACD,GAAG,CAAE,MAAM,MAAM,SAAS,OAAQ,CAAE;AACrC;AAEe,SAAR,sBAAuC;AAC7C,QAAM,EAAE,KAAK,IAAI,YAAY;AAE7B,QAAM,CAAE,mBAAmB,oBAAqB,IAAI;AAAA,IACnD,KAAK,SAAU,mBAAoB;AAAA,EACpC;AACA,QAAM,mBAAmB,iBAAkB,UAAU,GAAI;AACzD,QAAM,CAAE,SAAS,eAAgB,IAAI,WAAW;AAEhD,SACC;AAAA,IAAC;AAAA;AAAA,MACA,SACC,CAAE,mBACD;AAAA,QAAC;AAAA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACD,IACG;AAAA,MAEL,WAAU;AAAA,MACV,OAAQ,GAAI,QAAS;AAAA,MACrB,cAAe;AAAA,MAEf;AAAA,QAAC;AAAA;AAAA,UACA,MAAO;AAAA,UACP,cAAe;AAAA;AAAA,MAChB;AAAA;AAAA,EACD;AAEF;",
6
6
  "names": []
7
7
  }
@@ -24,10 +24,22 @@ var stylebookRoute = {
24
24
  ) : /* @__PURE__ */ jsx(SidebarNavigationScreenUnsupported, {});
25
25
  },
26
26
  preview({ siteData }) {
27
- return isClassicThemeWithStyleBookSupport(siteData) ? /* @__PURE__ */ jsx(StyleBookPreview, { isStatic: true }) : void 0;
27
+ return isClassicThemeWithStyleBookSupport(siteData) ? /* @__PURE__ */ jsx(
28
+ StyleBookPreview,
29
+ {
30
+ isStatic: true,
31
+ settings: siteData.editorSettings
32
+ }
33
+ ) : void 0;
28
34
  },
29
35
  mobile({ siteData }) {
30
- return isClassicThemeWithStyleBookSupport(siteData) ? /* @__PURE__ */ jsx(StyleBookPreview, { isStatic: true }) : void 0;
36
+ return isClassicThemeWithStyleBookSupport(siteData) ? /* @__PURE__ */ jsx(
37
+ StyleBookPreview,
38
+ {
39
+ isStatic: true,
40
+ settings: siteData.editorSettings
41
+ }
42
+ ) : void 0;
31
43
  }
32
44
  }
33
45
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/site-editor-routes/stylebook.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport SidebarNavigationScreenUnsupported from '../sidebar-navigation-screen-unsupported';\nimport { unlock } from '../../lock-unlock';\nimport { isClassicThemeWithStyleBookSupport } from './utils';\n\nconst { StyleBookPreview } = unlock( editorPrivateApis );\n\nexport const stylebookRoute = {\n\tname: 'stylebook',\n\tpath: '/stylebook',\n\tareas: {\n\t\tsidebar( { siteData } ) {\n\t\t\treturn isClassicThemeWithStyleBookSupport( siteData ) ? (\n\t\t\t\t<SidebarNavigationScreen\n\t\t\t\t\ttitle={ __( 'Styles' ) }\n\t\t\t\t\tbackPath=\"/\"\n\t\t\t\t\tdescription={ __(\n\t\t\t\t\t\t`Preview your website's visual identity: colors, typography, and blocks.`\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<SidebarNavigationScreenUnsupported />\n\t\t\t);\n\t\t},\n\t\tpreview( { siteData } ) {\n\t\t\treturn isClassicThemeWithStyleBookSupport( siteData ) ? (\n\t\t\t\t<StyleBookPreview isStatic />\n\t\t\t) : undefined;\n\t\t},\n\t\tmobile( { siteData } ) {\n\t\t\treturn isClassicThemeWithStyleBookSupport( siteData ) ? (\n\t\t\t\t<StyleBookPreview isStatic />\n\t\t\t) : undefined;\n\t\t},\n\t},\n};\n"],
5
- "mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,eAAe,yBAAyB;AAKjD,OAAO,6BAA6B;AACpC,OAAO,wCAAwC;AAC/C,SAAS,cAAc;AACvB,SAAS,0CAA0C;AAU/C;AARJ,IAAM,EAAE,iBAAiB,IAAI,OAAQ,iBAAkB;AAEhD,IAAM,iBAAiB;AAAA,EAC7B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,QAAS,EAAE,SAAS,GAAI;AACvB,aAAO,mCAAoC,QAAS,IACnD;AAAA,QAAC;AAAA;AAAA,UACA,OAAQ,GAAI,QAAS;AAAA,UACrB,UAAS;AAAA,UACT,aAAc;AAAA,YACb;AAAA,UACD;AAAA;AAAA,MACD,IAEA,oBAAC,sCAAmC;AAAA,IAEtC;AAAA,IACA,QAAS,EAAE,SAAS,GAAI;AACvB,aAAO,mCAAoC,QAAS,IACnD,oBAAC,oBAAiB,UAAQ,MAAC,IACxB;AAAA,IACL;AAAA,IACA,OAAQ,EAAE,SAAS,GAAI;AACtB,aAAO,mCAAoC,QAAS,IACnD,oBAAC,oBAAiB,UAAQ,MAAC,IACxB;AAAA,IACL;AAAA,EACD;AACD;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport SidebarNavigationScreenUnsupported from '../sidebar-navigation-screen-unsupported';\nimport { unlock } from '../../lock-unlock';\nimport { isClassicThemeWithStyleBookSupport } from './utils';\n\nconst { StyleBookPreview } = unlock( editorPrivateApis );\n\nexport const stylebookRoute = {\n\tname: 'stylebook',\n\tpath: '/stylebook',\n\tareas: {\n\t\tsidebar( { siteData } ) {\n\t\t\treturn isClassicThemeWithStyleBookSupport( siteData ) ? (\n\t\t\t\t<SidebarNavigationScreen\n\t\t\t\t\ttitle={ __( 'Styles' ) }\n\t\t\t\t\tbackPath=\"/\"\n\t\t\t\t\tdescription={ __(\n\t\t\t\t\t\t`Preview your website's visual identity: colors, typography, and blocks.`\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<SidebarNavigationScreenUnsupported />\n\t\t\t);\n\t\t},\n\t\tpreview( { siteData } ) {\n\t\t\treturn isClassicThemeWithStyleBookSupport( siteData ) ? (\n\t\t\t\t<StyleBookPreview\n\t\t\t\t\tisStatic\n\t\t\t\t\tsettings={ siteData.editorSettings }\n\t\t\t\t/>\n\t\t\t) : undefined;\n\t\t},\n\t\tmobile( { siteData } ) {\n\t\t\treturn isClassicThemeWithStyleBookSupport( siteData ) ? (\n\t\t\t\t<StyleBookPreview\n\t\t\t\t\tisStatic\n\t\t\t\t\tsettings={ siteData.editorSettings }\n\t\t\t\t/>\n\t\t\t) : undefined;\n\t\t},\n\t},\n};\n"],
5
+ "mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,eAAe,yBAAyB;AAKjD,OAAO,6BAA6B;AACpC,OAAO,wCAAwC;AAC/C,SAAS,cAAc;AACvB,SAAS,0CAA0C;AAU/C;AARJ,IAAM,EAAE,iBAAiB,IAAI,OAAQ,iBAAkB;AAEhD,IAAM,iBAAiB;AAAA,EAC7B,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,IACN,QAAS,EAAE,SAAS,GAAI;AACvB,aAAO,mCAAoC,QAAS,IACnD;AAAA,QAAC;AAAA;AAAA,UACA,OAAQ,GAAI,QAAS;AAAA,UACrB,UAAS;AAAA,UACT,aAAc;AAAA,YACb;AAAA,UACD;AAAA;AAAA,MACD,IAEA,oBAAC,sCAAmC;AAAA,IAEtC;AAAA,IACA,QAAS,EAAE,SAAS,GAAI;AACvB,aAAO,mCAAoC,QAAS,IACnD;AAAA,QAAC;AAAA;AAAA,UACA,UAAQ;AAAA,UACR,UAAW,SAAS;AAAA;AAAA,MACrB,IACG;AAAA,IACL;AAAA,IACA,OAAQ,EAAE,SAAS,GAAI;AACtB,aAAO,mCAAoC,QAAS,IACnD;AAAA,QAAC;AAAA;AAAA,UACA,UAAQ;AAAA,UACR,UAAW,SAAS;AAAA;AAAA,MACrB,IACG;AAAA,IACL;AAAA,EACD;AACD;",
6
6
  "names": []
7
7
  }
@@ -57,7 +57,9 @@ function initializeEditor(id, settings) {
57
57
  openPanels: ["post-status"],
58
58
  showBlockBreadcrumbs: true,
59
59
  showListViewByDefault: false,
60
- enableChoosePatternModal: true
60
+ enableChoosePatternModal: true,
61
+ showCollaborationCursor: false,
62
+ showCollaborationNotifications: true
61
63
  });
62
64
  if (window.__clientSideMediaProcessing) {
63
65
  dispatch(preferencesStore).setDefaults("core/media", {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { store as blocksStore } from '@wordpress/blocks';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { dispatch } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from './store';\nimport { unlock } from './lock-unlock';\nimport App from './components/app';\n\nconst { registerCoreBlockBindingsSources } = unlock( editorPrivateApis );\n\n/**\n * Initializes the site editor screen.\n *\n * @param {string} id ID of the root element to render the screen in.\n * @param {Object} settings Editor settings.\n */\nexport function initializeEditor( id, settings ) {\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter(\n\t\t( { name } ) => name !== 'core/freeform'\n\t);\n\tregisterCoreBlocks( coreBlocks );\n\tregisterCoreBlockBindingsSources();\n\tdispatch( blocksStore ).setFreeformFallbackBlockName( 'core/html' );\n\tregisterLegacyWidgetBlock( { inserter: false } );\n\tregisterWidgetGroupBlock( { inserter: false } );\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: true,\n\t\t} );\n\t}\n\n\t// We dispatch actions and update the store synchronously before rendering\n\t// so that we won't trigger unnecessary re-renders with useEffect.\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-site', {\n\t\twelcomeGuide: true,\n\t\twelcomeGuideStyles: true,\n\t\twelcomeGuidePage: true,\n\t\twelcomeGuideTemplate: true,\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core', {\n\t\tallowRightClickOverrides: true,\n\t\tdistractionFree: false,\n\t\teditorMode: 'visual',\n\t\teditorTool: 'edit',\n\t\tfixedToolbar: false,\n\t\tfocusMode: false,\n\t\tinactivePanels: [],\n\t\tkeepCaretInsideBlock: false,\n\t\topenPanels: [ 'post-status' ],\n\t\tshowBlockBreadcrumbs: true,\n\t\tshowListViewByDefault: false,\n\t\tenableChoosePatternModal: true,\n\t} );\n\n\tif ( window.__clientSideMediaProcessing ) {\n\t\tdispatch( preferencesStore ).setDefaults( 'core/media', {\n\t\t\trequireApproval: true,\n\t\t\toptimizeOnUpload: true,\n\t\t} );\n\t}\n\n\tdispatch( editSiteStore ).updateSettings( settings );\n\n\t// Prevent the default browser action for files dropped outside of dropzones.\n\twindow.addEventListener( 'dragover', ( e ) => e.preventDefault(), false );\n\twindow.addEventListener( 'drop', ( e ) => e.preventDefault(), false );\n\n\troot.render(\n\t\t<StrictMode>\n\t\t\t<App />\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editSite.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\nexport { default as PluginTemplateSettingPanel } from './components/plugin-template-setting-panel';\nexport { store } from './store';\nexport * from './deprecated';\n"],
5
- "mappings": ";AAGA,SAAS,SAAS,mBAAmB;AACrC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,SAAS,gBAAgB;AACzB,OAAO,gBAAgB;AACvB,SAAS,YAAY,kBAAkB;AACvC,SAAS,eAAe,yBAAyB;AACjD,SAAS,SAAS,wBAAwB;AAC1C;AAAA,EACC;AAAA,EACA;AAAA,OACM;AAKP,SAAS,SAAS,qBAAqB;AACvC,SAAS,cAAc;AACvB,OAAO,SAAS;AAkFhB,SAAoB,WAAXA,gBAA6C;AACtD,SAAS,aAAa;AACtB,cAAc;AAhBX;AAlEH,IAAM,EAAE,iCAAiC,IAAI,OAAQ,iBAAkB;AAQhE,SAAS,iBAAkB,IAAI,UAAW;AAChD,QAAM,SAAS,SAAS,eAAgB,EAAG;AAC3C,QAAM,OAAO,WAAY,MAAO;AAEhC,WAAU,WAAY,EAAE,wBAAwB;AAChD,QAAM,aAAa,4BAA4B,EAAE;AAAA,IAChD,CAAE,EAAE,KAAK,MAAO,SAAS;AAAA,EAC1B;AACA,qBAAoB,UAAW;AAC/B,mCAAiC;AACjC,WAAU,WAAY,EAAE,6BAA8B,WAAY;AAClE,4BAA2B,EAAE,UAAU,MAAM,CAAE;AAC/C,2BAA0B,EAAE,UAAU,MAAM,CAAE;AAC9C,MAAK,WAAW,qBAAsB;AACrC,iDAA8C;AAAA,MAC7C,iBAAiB;AAAA,IAClB,CAAE;AAAA,EACH;AAIA,WAAU,gBAAiB,EAAE,YAAa,kBAAkB;AAAA,IAC3D,cAAc;AAAA,IACd,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB,sBAAsB;AAAA,EACvB,CAAE;AAEF,WAAU,gBAAiB,EAAE,YAAa,QAAQ;AAAA,IACjD,0BAA0B;AAAA,IAC1B,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,gBAAgB,CAAC;AAAA,IACjB,sBAAsB;AAAA,IACtB,YAAY,CAAE,aAAc;AAAA,IAC5B,sBAAsB;AAAA,IACtB,uBAAuB;AAAA,IACvB,0BAA0B;AAAA,EAC3B,CAAE;AAEF,MAAK,OAAO,6BAA8B;AACzC,aAAU,gBAAiB,EAAE,YAAa,cAAc;AAAA,MACvD,iBAAiB;AAAA,MACjB,kBAAkB;AAAA,IACnB,CAAE;AAAA,EACH;AAEA,WAAU,aAAc,EAAE,eAAgB,QAAS;AAGnD,SAAO,iBAAkB,YAAY,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AACxE,SAAO,iBAAkB,QAAQ,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AAEpE,OAAK;AAAA,IACJ,oBAAC,cACA,8BAAC,OAAI,GACN;AAAA,EACD;AAEA,SAAO;AACR;AAEO,SAAS,qBAAqB;AACpC,aAAY,kCAAkC;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EACV,CAAE;AACH;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { store as blocksStore } from '@wordpress/blocks';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { dispatch } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from './store';\nimport { unlock } from './lock-unlock';\nimport App from './components/app';\n\nconst { registerCoreBlockBindingsSources } = unlock( editorPrivateApis );\n\n/**\n * Initializes the site editor screen.\n *\n * @param {string} id ID of the root element to render the screen in.\n * @param {Object} settings Editor settings.\n */\nexport function initializeEditor( id, settings ) {\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter(\n\t\t( { name } ) => name !== 'core/freeform'\n\t);\n\tregisterCoreBlocks( coreBlocks );\n\tregisterCoreBlockBindingsSources();\n\tdispatch( blocksStore ).setFreeformFallbackBlockName( 'core/html' );\n\tregisterLegacyWidgetBlock( { inserter: false } );\n\tregisterWidgetGroupBlock( { inserter: false } );\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: true,\n\t\t} );\n\t}\n\n\t// We dispatch actions and update the store synchronously before rendering\n\t// so that we won't trigger unnecessary re-renders with useEffect.\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-site', {\n\t\twelcomeGuide: true,\n\t\twelcomeGuideStyles: true,\n\t\twelcomeGuidePage: true,\n\t\twelcomeGuideTemplate: true,\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core', {\n\t\tallowRightClickOverrides: true,\n\t\tdistractionFree: false,\n\t\teditorMode: 'visual',\n\t\teditorTool: 'edit',\n\t\tfixedToolbar: false,\n\t\tfocusMode: false,\n\t\tinactivePanels: [],\n\t\tkeepCaretInsideBlock: false,\n\t\topenPanels: [ 'post-status' ],\n\t\tshowBlockBreadcrumbs: true,\n\t\tshowListViewByDefault: false,\n\t\tenableChoosePatternModal: true,\n\t\tshowCollaborationCursor: false,\n\t\tshowCollaborationNotifications: true,\n\t} );\n\n\tif ( window.__clientSideMediaProcessing ) {\n\t\tdispatch( preferencesStore ).setDefaults( 'core/media', {\n\t\t\trequireApproval: true,\n\t\t\toptimizeOnUpload: true,\n\t\t} );\n\t}\n\n\tdispatch( editSiteStore ).updateSettings( settings );\n\n\t// Prevent the default browser action for files dropped outside of dropzones.\n\twindow.addEventListener( 'dragover', ( e ) => e.preventDefault(), false );\n\twindow.addEventListener( 'drop', ( e ) => e.preventDefault(), false );\n\n\troot.render(\n\t\t<StrictMode>\n\t\t\t<App />\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editSite.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\nexport { default as PluginTemplateSettingPanel } from './components/plugin-template-setting-panel';\nexport { store } from './store';\nexport * from './deprecated';\n"],
5
+ "mappings": ";AAGA,SAAS,SAAS,mBAAmB;AACrC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OACM;AACP,SAAS,gBAAgB;AACzB,OAAO,gBAAgB;AACvB,SAAS,YAAY,kBAAkB;AACvC,SAAS,eAAe,yBAAyB;AACjD,SAAS,SAAS,wBAAwB;AAC1C;AAAA,EACC;AAAA,EACA;AAAA,OACM;AAKP,SAAS,SAAS,qBAAqB;AACvC,SAAS,cAAc;AACvB,OAAO,SAAS;AAoFhB,SAAoB,WAAXA,gBAA6C;AACtD,SAAS,aAAa;AACtB,cAAc;AAhBX;AApEH,IAAM,EAAE,iCAAiC,IAAI,OAAQ,iBAAkB;AAQhE,SAAS,iBAAkB,IAAI,UAAW;AAChD,QAAM,SAAS,SAAS,eAAgB,EAAG;AAC3C,QAAM,OAAO,WAAY,MAAO;AAEhC,WAAU,WAAY,EAAE,wBAAwB;AAChD,QAAM,aAAa,4BAA4B,EAAE;AAAA,IAChD,CAAE,EAAE,KAAK,MAAO,SAAS;AAAA,EAC1B;AACA,qBAAoB,UAAW;AAC/B,mCAAiC;AACjC,WAAU,WAAY,EAAE,6BAA8B,WAAY;AAClE,4BAA2B,EAAE,UAAU,MAAM,CAAE;AAC/C,2BAA0B,EAAE,UAAU,MAAM,CAAE;AAC9C,MAAK,WAAW,qBAAsB;AACrC,iDAA8C;AAAA,MAC7C,iBAAiB;AAAA,IAClB,CAAE;AAAA,EACH;AAIA,WAAU,gBAAiB,EAAE,YAAa,kBAAkB;AAAA,IAC3D,cAAc;AAAA,IACd,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB,sBAAsB;AAAA,EACvB,CAAE;AAEF,WAAU,gBAAiB,EAAE,YAAa,QAAQ;AAAA,IACjD,0BAA0B;AAAA,IAC1B,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,gBAAgB,CAAC;AAAA,IACjB,sBAAsB;AAAA,IACtB,YAAY,CAAE,aAAc;AAAA,IAC5B,sBAAsB;AAAA,IACtB,uBAAuB;AAAA,IACvB,0BAA0B;AAAA,IAC1B,yBAAyB;AAAA,IACzB,gCAAgC;AAAA,EACjC,CAAE;AAEF,MAAK,OAAO,6BAA8B;AACzC,aAAU,gBAAiB,EAAE,YAAa,cAAc;AAAA,MACvD,iBAAiB;AAAA,MACjB,kBAAkB;AAAA,IACnB,CAAE;AAAA,EACH;AAEA,WAAU,aAAc,EAAE,eAAgB,QAAS;AAGnD,SAAO,iBAAkB,YAAY,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AACxE,SAAO,iBAAkB,QAAQ,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AAEpE,OAAK;AAAA,IACJ,oBAAC,cACA,8BAAC,OAAI,GACN;AAAA,EACD;AAEA,SAAO;AACR;AAEO,SAAS,qBAAqB;AACpC,aAAY,kCAAkC;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EACV,CAAE;AACH;",
6
6
  "names": ["default"]
7
7
  }
@@ -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: #fff;
203
- color: #2f2f2f;
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 #f0f0f0;
213
- background: #fff;
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: 8px;
225
- color: #757575;
226
- font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
227
- font-weight: 400;
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 8px;
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;
@@ -410,6 +375,25 @@
410
375
  transition: padding ease-out 0.1s;
411
376
  }
412
377
  }
378
+ .dataviews-no-results.is-refreshing {
379
+ opacity: 0.5;
380
+ pointer-events: none;
381
+ }
382
+
383
+ @media not (prefers-reduced-motion) {
384
+ .dataviews-no-results.is-refreshing {
385
+ opacity: 1;
386
+ animation: dataviews-pulse 1s ease-in-out infinite;
387
+ }
388
+ }
389
+ @keyframes dataviews-pulse {
390
+ 0%, 100% {
391
+ opacity: 1;
392
+ }
393
+ 50% {
394
+ opacity: 0.5;
395
+ }
396
+ }
413
397
  .dataviews-loading-more {
414
398
  text-align: center;
415
399
  }
@@ -1088,17 +1072,28 @@
1088
1072
  z-index: 2;
1089
1073
  }
1090
1074
 
1075
+ .dataviews-footer .is-refreshing {
1076
+ opacity: 0.5;
1077
+ pointer-events: none;
1078
+ }
1079
+
1080
+ @media not (prefers-reduced-motion) {
1081
+ .dataviews-footer .is-refreshing {
1082
+ opacity: 1;
1083
+ animation: dataviews-pulse 1s ease-in-out infinite;
1084
+ }
1085
+ }
1091
1086
  @container (max-width: 560px) {
1092
- .dataviews-footer {
1087
+ .dataviews-footer__content {
1093
1088
  flex-direction: column !important;
1094
1089
  }
1095
- .dataviews-footer .dataviews-bulk-actions-footer__container {
1090
+ .dataviews-footer__content .dataviews-bulk-actions-footer__container {
1096
1091
  width: 100%;
1097
1092
  }
1098
- .dataviews-footer .dataviews-bulk-actions-footer__item-count {
1093
+ .dataviews-footer__content .dataviews-bulk-actions-footer__item-count {
1099
1094
  flex-grow: 1;
1100
1095
  }
1101
- .dataviews-footer .dataviews-pagination {
1096
+ .dataviews-footer__content .dataviews-pagination {
1102
1097
  width: 100%;
1103
1098
  justify-content: space-between;
1104
1099
  }
@@ -1119,6 +1114,10 @@
1119
1114
  z-index: 1000001;
1120
1115
  }
1121
1116
 
1117
+ .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
1118
+ padding: 0 4px;
1119
+ }
1120
+
1122
1121
  .dataviews-selection-checkbox {
1123
1122
  --checkbox-input-size: 24px;
1124
1123
  }
@@ -1393,6 +1392,17 @@
1393
1392
  padding-bottom: 12px;
1394
1393
  }
1395
1394
 
1395
+ .dataviews-view-grid.is-refreshing {
1396
+ opacity: 0.5;
1397
+ pointer-events: none;
1398
+ }
1399
+
1400
+ @media not (prefers-reduced-motion) {
1401
+ .dataviews-view-grid.is-refreshing {
1402
+ opacity: 1;
1403
+ animation: dataviews-pulse 1s ease-in-out infinite;
1404
+ }
1405
+ }
1396
1406
  .dataviews-view-grid__field-value:empty,
1397
1407
  .dataviews-view-grid__field:empty {
1398
1408
  display: none;
@@ -1747,6 +1757,17 @@ div.dataviews-view-list {
1747
1757
  line-height: 24px;
1748
1758
  }
1749
1759
 
1760
+ .dataviews-view-list.is-refreshing {
1761
+ opacity: 0.5;
1762
+ pointer-events: none;
1763
+ }
1764
+
1765
+ @media not (prefers-reduced-motion) {
1766
+ .dataviews-view-list.is-refreshing {
1767
+ opacity: 1;
1768
+ animation: dataviews-pulse 1s ease-in-out infinite;
1769
+ }
1770
+ }
1750
1771
  .dataviews-view-list__group-header {
1751
1772
  font-size: 15px;
1752
1773
  font-weight: 499;
@@ -1916,6 +1937,7 @@ div.dataviews-view-list {
1916
1937
 
1917
1938
  .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end {
1918
1939
  justify-content: flex-end;
1940
+ font-variant-numeric: tabular-nums;
1919
1941
  }
1920
1942
 
1921
1943
  .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center {
@@ -2028,10 +2050,21 @@ div.dataviews-view-list {
2028
2050
  }
2029
2051
 
2030
2052
  /* Column width intents via colgroup: make non-primary columns shrink-to-fit */
2031
- .dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand) {
2053
+ .dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data) {
2032
2054
  width: 1%;
2033
2055
  }
2034
2056
 
2057
+ .dataviews-view-table.is-refreshing {
2058
+ opacity: 0.5;
2059
+ pointer-events: none;
2060
+ }
2061
+
2062
+ @media not (prefers-reduced-motion) {
2063
+ .dataviews-view-table.is-refreshing {
2064
+ opacity: 1;
2065
+ animation: dataviews-pulse 1s ease-in-out infinite;
2066
+ }
2067
+ }
2035
2068
  .dataviews-view-picker-grid .dataviews-view-picker-grid__card {
2036
2069
  height: 100%;
2037
2070
  justify-content: flex-start;
@@ -2424,6 +2457,17 @@ div.dataviews-view-list {
2424
2457
  background-color: #ddd;
2425
2458
  }
2426
2459
 
2460
+ .dataviews-view-activity.is-refreshing {
2461
+ opacity: 0.5;
2462
+ pointer-events: none;
2463
+ }
2464
+
2465
+ @media not (prefers-reduced-motion) {
2466
+ .dataviews-view-activity.is-refreshing {
2467
+ opacity: 1;
2468
+ animation: dataviews-pulse 1s ease-in-out infinite;
2469
+ }
2470
+ }
2427
2471
  .dataviews-view-activity + .dataviews-pagination {
2428
2472
  justify-content: space-between;
2429
2473
  }
@@ -2483,7 +2527,7 @@ div.dataviews-view-list {
2483
2527
 
2484
2528
  .dataforms-layouts-panel__field-trigger--label-side {
2485
2529
  flex-direction: row;
2486
- gap: var(--wpds-dimension-gap-md);
2530
+ gap: var(--wpds-dimension-gap-md, 12px);
2487
2531
  }
2488
2532
 
2489
2533
  .dataforms-layouts-panel__field-trigger--label-top {
@@ -2513,7 +2557,7 @@ div.dataviews-view-list {
2513
2557
 
2514
2558
  .dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control {
2515
2559
  color: #757575;
2516
- font-weight: var(--wpds-font-weight-regular);
2560
+ font-weight: var(--wpds-font-weight-regular, 400);
2517
2561
  }
2518
2562
 
2519
2563
  .dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon {
@@ -2530,12 +2574,12 @@ div.dataviews-view-list {
2530
2574
  color: var(--wp-admin-theme-color);
2531
2575
  flex: 0 0 auto;
2532
2576
  opacity: 0;
2533
- border-radius: var(--wpds-border-radius-xs);
2577
+ border-radius: var(--wpds-border-radius-xs, 1px);
2534
2578
  }
2535
2579
 
2536
2580
  .dataforms-layouts-panel__field-trigger-icon:focus-visible {
2537
2581
  opacity: 1;
2538
- outline: var(--wpds-border-width-focus) solid var(--wp-admin-theme-color);
2582
+ outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wp-admin-theme-color);
2539
2583
  }
2540
2584
 
2541
2585
  .dataforms-layouts-panel__field-dropdown-anchor {
@@ -2555,6 +2599,7 @@ div.dataviews-view-list {
2555
2599
  line-height: 20px;
2556
2600
  hyphens: auto;
2557
2601
  color: #757575;
2602
+ text-transform: capitalize;
2558
2603
  }
2559
2604
 
2560
2605
  .dataforms-layouts-panel__field-label .components-base-control__label {
@@ -2586,11 +2631,11 @@ div.dataviews-view-list {
2586
2631
  flex-grow: 1;
2587
2632
  min-width: 0;
2588
2633
  min-height: 24px;
2589
- line-height: var(--wpds-font-line-height-md);
2634
+ line-height: var(--wpds-font-line-height-md, 24px);
2590
2635
  display: flex;
2591
2636
  align-items: center;
2592
2637
  overflow: hidden;
2593
- font-weight: var(--wpds-font-weight-medium);
2638
+ font-weight: var(--wpds-font-weight-medium, 499);
2594
2639
  }
2595
2640
 
2596
2641
  .dataforms-layouts-panel__field-control > * {
@@ -2635,8 +2680,9 @@ div.dataviews-view-list {
2635
2680
  }
2636
2681
 
2637
2682
  .dataforms-layouts-regular__field .components-base-control__label,
2638
- .dataforms-layouts-regular__field .components-input-control__label {
2639
- color: #757575;
2683
+ .dataforms-layouts-regular__field .components-input-control__label,
2684
+ .dataforms-layouts-regular__field .components-form-token-field__label {
2685
+ color: #1e1e1e;
2640
2686
  }
2641
2687
 
2642
2688
  .dataforms-layouts-regular__field-label {
@@ -3065,7 +3111,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-dr
3065
3111
  fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview {
3066
3112
  position: relative;
3067
3113
  width: 100%;
3068
- aspect-ratio: var(--fields-media-edit-expanded-multiple-aspect-ratio, 3/2);
3114
+ aspect-ratio: 3/2;
3069
3115
  border-radius: 2px;
3070
3116
  padding: 4px;
3071
3117
  overflow: hidden;
@@ -3148,13 +3194,22 @@ fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media
3148
3194
  }
3149
3195
 
3150
3196
  fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) {
3151
- grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
3197
+ grid-template-columns: repeat(3, 1fr);
3152
3198
  /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
3153
3199
  }
3154
3200
 
3155
- @container (max-width: 500px) {
3201
+ @container (max-width: 768px) {
3156
3202
  fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) {
3157
- grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
3203
+ grid-template-columns: repeat(2, 1fr);
3204
+ }
3205
+ }
3206
+ fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) {
3207
+ /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
3208
+ }
3209
+
3210
+ @container (max-width: 280px) {
3211
+ fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) {
3212
+ grid-template-columns: 1fr;
3158
3213
  }
3159
3214
  }
3160
3215
  fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-picker-button {
@@ -3165,7 +3220,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
3165
3220
  display: flex;
3166
3221
  align-items: center;
3167
3222
  justify-content: center;
3168
- aspect-ratio: var(--fields-media-edit-expanded-multiple-aspect-ratio, 3/2);
3223
+ aspect-ratio: 3/2;
3169
3224
  }
3170
3225
 
3171
3226
  .fields-controls__slug {
@@ -3712,6 +3767,7 @@ button.font-library__upload-area {
3712
3767
  background: #fff;
3713
3768
  padding: 12px;
3714
3769
  border-top: 1px solid #ddd;
3770
+ box-sizing: border-box;
3715
3771
  }
3716
3772
 
3717
3773
  .global-styles-ui-variations_item {