@wordpress/edit-site 3.0.18-next.33ec3857e2.0 → 3.0.18

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 (73) hide show
  1. package/build/components/block-editor/resizable-editor.js +0 -1
  2. package/build/components/block-editor/resizable-editor.js.map +1 -1
  3. package/build/components/global-styles/border-panel.js +22 -81
  4. package/build/components/global-styles/border-panel.js.map +1 -1
  5. package/build/components/global-styles/gradients-palette-panel.js +7 -3
  6. package/build/components/global-styles/gradients-palette-panel.js.map +1 -1
  7. package/build/components/global-styles/screen-background-color.js +10 -9
  8. package/build/components/global-styles/screen-background-color.js.map +1 -1
  9. package/build/components/global-styles/screen-colors.js +1 -1
  10. package/build/components/global-styles/screen-colors.js.map +1 -1
  11. package/build/components/global-styles/screen-link-color.js +10 -6
  12. package/build/components/global-styles/screen-link-color.js.map +1 -1
  13. package/build/components/global-styles/screen-text-color.js +10 -6
  14. package/build/components/global-styles/screen-text-color.js.map +1 -1
  15. package/build/components/global-styles/ui.js +14 -27
  16. package/build/components/global-styles/ui.js.map +1 -1
  17. package/build/components/list/actions/index.js +0 -1
  18. package/build/components/list/actions/index.js.map +1 -1
  19. package/build/components/list/added-by.js +9 -3
  20. package/build/components/list/added-by.js.map +1 -1
  21. package/build/components/navigation-sidebar/navigation-toggle/index.js +10 -1
  22. package/build/components/navigation-sidebar/navigation-toggle/index.js.map +1 -1
  23. package/build/components/sidebar/default-sidebar.js +2 -4
  24. package/build/components/sidebar/default-sidebar.js.map +1 -1
  25. package/build/components/sidebar/global-styles-sidebar.js +0 -1
  26. package/build/components/sidebar/global-styles-sidebar.js.map +1 -1
  27. package/build-module/components/block-editor/resizable-editor.js +0 -1
  28. package/build-module/components/block-editor/resizable-editor.js.map +1 -1
  29. package/build-module/components/global-styles/border-panel.js +23 -82
  30. package/build-module/components/global-styles/border-panel.js.map +1 -1
  31. package/build-module/components/global-styles/gradients-palette-panel.js +5 -4
  32. package/build-module/components/global-styles/gradients-palette-panel.js.map +1 -1
  33. package/build-module/components/global-styles/screen-background-color.js +11 -9
  34. package/build-module/components/global-styles/screen-background-color.js.map +1 -1
  35. package/build-module/components/global-styles/screen-colors.js +1 -1
  36. package/build-module/components/global-styles/screen-colors.js.map +1 -1
  37. package/build-module/components/global-styles/screen-link-color.js +11 -7
  38. package/build-module/components/global-styles/screen-link-color.js.map +1 -1
  39. package/build-module/components/global-styles/screen-text-color.js +11 -7
  40. package/build-module/components/global-styles/screen-text-color.js.map +1 -1
  41. package/build-module/components/global-styles/ui.js +14 -26
  42. package/build-module/components/global-styles/ui.js.map +1 -1
  43. package/build-module/components/list/actions/index.js +0 -1
  44. package/build-module/components/list/actions/index.js.map +1 -1
  45. package/build-module/components/list/added-by.js +10 -4
  46. package/build-module/components/list/added-by.js.map +1 -1
  47. package/build-module/components/navigation-sidebar/navigation-toggle/index.js +11 -1
  48. package/build-module/components/navigation-sidebar/navigation-toggle/index.js.map +1 -1
  49. package/build-module/components/sidebar/default-sidebar.js +2 -4
  50. package/build-module/components/sidebar/default-sidebar.js.map +1 -1
  51. package/build-module/components/sidebar/global-styles-sidebar.js +0 -1
  52. package/build-module/components/sidebar/global-styles-sidebar.js.map +1 -1
  53. package/build-style/style-rtl.css +55 -29
  54. package/build-style/style.css +55 -29
  55. package/package.json +28 -28
  56. package/src/components/block-editor/resizable-editor.js +0 -1
  57. package/src/components/block-editor/style.scss +18 -10
  58. package/src/components/global-styles/border-panel.js +42 -106
  59. package/src/components/global-styles/gradients-palette-panel.js +4 -4
  60. package/src/components/global-styles/screen-background-color.js +10 -7
  61. package/src/components/global-styles/screen-colors.js +1 -1
  62. package/src/components/global-styles/screen-link-color.js +14 -6
  63. package/src/components/global-styles/screen-text-color.js +14 -6
  64. package/src/components/global-styles/style.scss +17 -0
  65. package/src/components/global-styles/ui.js +25 -50
  66. package/src/components/header/document-actions/style.scss +9 -1
  67. package/src/components/header/style.scss +1 -2
  68. package/src/components/list/actions/index.js +0 -1
  69. package/src/components/list/added-by.js +25 -9
  70. package/src/components/navigation-sidebar/navigation-toggle/index.js +12 -0
  71. package/src/components/sidebar/default-sidebar.js +0 -2
  72. package/src/components/sidebar/global-styles-sidebar.js +0 -1
  73. package/src/components/sidebar/style.scss +14 -21
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-site/src/components/list/added-by.js"],"names":["classnames","__experimentalHStack","HStack","Icon","Tooltip","store","coreStore","useSelect","useState","layout","themeIcon","plugins","pluginIcon","__","TEMPLATE_POST_TYPE_NAMES","CustomizedTooltip","isCustomized","children","AddedByTheme","slug","theme","select","getTheme","name","rendered","AddedByPlugin","plugin","getPlugin","AddedByAuthor","id","user","getUser","isImageLoaded","setIsImageLoaded","avatar_urls","nickname","AddedBySite","logoURL","getEntityRecord","getMedia","siteData","site_logo","source_url","undefined","AddedBy","templateType","template","includes","has_theme_file","origin","source","author"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,UAAP,MAAuB,YAAvB;AAEA;AACA;AACA;;AACA,SACCC,oBAAoB,IAAIC,MADzB,EAECC,IAFD,EAGCC,OAHD,QAIO,uBAJP;AAKA,SAASC,KAAK,IAAIC,SAAlB,QAAmC,sBAAnC;AACA,SAASC,SAAT,QAA0B,iBAA1B;AACA,SAASC,QAAT,QAAyB,oBAAzB;AACA,SAASC,MAAM,IAAIC,SAAnB,EAA8BC,OAAO,IAAIC,UAAzC,QAA2D,kBAA3D;AACA,SAASC,EAAT,QAAmB,iBAAnB;AAEA,MAAMC,wBAAwB,GAAG,CAAE,aAAF,EAAiB,kBAAjB,CAAjC;;AAEA,SAASC,iBAAT,OAAyD;AAAA,MAA7B;AAAEC,IAAAA,YAAF;AAAgBC,IAAAA;AAAhB,GAA6B;;AACxD,MAAK,CAAED,YAAP,EAAsB;AACrB,WAAOC,QAAP;AACA;;AAED,SACC,cAAC,OAAD;AAAS,IAAA,IAAI,EAAGJ,EAAE,CAAE,mCAAF;AAAlB,KACGI,QADH,CADD;AAKA;;A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AACE,cAAX,IACAF,QAAQ,CAACI,MAAT,KAAoB,QADpB,IAEA,CAAEJ,QAAQ,CAACK,MAHZ,EAIE;AACD,aAAO,cAAC,WAAD,OAAP;AACA;AACD,GA5C4D,CA8C7D;AACA;;;AACA,SAAO,cAAC,aAAD;AAAe,IAAA,EAAE,EAAGL,QAAQ,CAACK;AAA7B,IAAP;AACA","sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalHStack as HStack,\n\tIcon,\n\tTooltip,\n} from '@wordpress/components';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useSelect } from '@wordpress/data';\nimport { useState } from '@wordpress/element';\nimport { layout as themeIcon, plugins as pluginIcon } from '@wordpress/icons';\nimport { __ } from '@wordpress/i18n';\n\nconst TEMPLATE_POST_TYPE_NAMES = [ 'wp_template', 'wp_template_part' ];\n\nfunction CustomizedTooltip( { isCustomized, children } ) {\n\tif ( ! isCustomized ) {\n\t\treturn children;\n\t}\n\n\treturn (\n\t\t<Tooltip text={ __( 'This template has been customized' ) }>\n\t\t\t{ children }\n\t\t</Tooltip>\n\t);\n}\n\nfunction AddedByTheme( { slug, isCustomized } ) {\n\tconst theme = useSelect(\n\t\t( select ) => select( coreStore ).getTheme( slug ),\n\t\t[ slug ]\n\t);\n\n\treturn (\n\t\t<HStack alignment=\"left\">\n\t\t\t<CustomizedTooltip isCustomized={ isCustomized }>\n\t\t\t\t<div\n\t\t\t\t\tclassName={ classnames( 'edit-site-list-added-by__icon', {\n\t\t\t\t\t\t'is-customized': isCustomized,\n\t\t\t\t\t} ) }\n\t\t\t\t>\n\t\t\t\t\t<Icon icon={ themeIcon } />\n\t\t\t\t</div>\n\t\t\t</CustomizedTooltip>\n\t\t\t<span>{ theme?.name?.rendered || slug }</span>\n\t\t</HStack>\n\t);\n}\n\nfunction AddedByPlugin( { slug, isCustomized } ) {\n\tconst plugin = useSelect(\n\t\t( select ) => select( coreStore ).getPlugin( slug ),\n\t\t[ slug ]\n\t);\n\n\treturn (\n\t\t<HStack alignment=\"left\">\n\t\t\t<CustomizedTooltip isCustomized={ isCustomized }>\n\t\t\t\t<div className=\"edit-site-list-added-by__icon\">\n\t\t\t\t\t<Icon icon={ pluginIcon } />\n\t\t\t\t</div>\n\t\t\t</CustomizedTooltip>\n\t\t\t<span>{ plugin?.name || slug }</span>\n\t\t</HStack>\n\t);\n}\n\nfunction AddedByAuthor( { id } ) {\n\tconst user = useSelect( ( select ) => select( coreStore ).getUser( id ), [\n\t\tid,\n\t] );\n\tconst [ isImageLoaded, setIsImageLoaded ] = useState( false );\n\n\treturn (\n\t\t<HStack alignment=\"left\">\n\t\t\t<div\n\t\t\t\tclassName={ classnames( 'edit-site-list-added-by__avatar', {\n\t\t\t\t\t'is-loaded': isImageLoaded,\n\t\t\t\t} ) }\n\t\t\t>\n\t\t\t\t<img\n\t\t\t\t\tonLoad={ () => setIsImageLoaded( true ) }\n\t\t\t\t\talt=\"\"\n\t\t\t\t\tsrc={ user?.avatar_urls[ 48 ] }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<span>{ user?.nickname }</span>\n\t\t</HStack>\n\t);\n}\n\nfunction AddedBySite() {\n\tconst { name, logoURL } = useSelect( ( select ) => {\n\t\tconst { getEntityRecord, getMedia } = select( coreStore );\n\t\tconst siteData = getEntityRecord( 'root', '__unstableBase' );\n\n\t\treturn {\n\t\t\tname: siteData.name,\n\t\t\tlogoURL: siteData?.site_logo\n\t\t\t\t? getMedia( siteData.site_logo )?.source_url\n\t\t\t\t: undefined,\n\t\t};\n\t}, [] );\n\tconst [ isImageLoaded, setIsImageLoaded ] = useState( false );\n\n\treturn (\n\t\t<HStack alignment=\"left\">\n\t\t\t<div\n\t\t\t\tclassName={ classnames( 'edit-site-list-added-by__avatar', {\n\t\t\t\t\t'is-loaded': isImageLoaded,\n\t\t\t\t} ) }\n\t\t\t>\n\t\t\t\t<img\n\t\t\t\t\tonLoad={ () => setIsImageLoaded( true ) }\n\t\t\t\t\talt=\"\"\n\t\t\t\t\tsrc={ logoURL }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<span>{ name }</span>\n\t\t</HStack>\n\t);\n}\n\nexport default function AddedBy( { templateType, template } ) {\n\tif ( ! template ) {\n\t\treturn;\n\t}\n\n\tif ( TEMPLATE_POST_TYPE_NAMES.includes( templateType ) ) {\n\t\t// Template originally provided by a theme, but customized by a user.\n\t\t// Templates originally didn't have the 'origin' field so identify\n\t\t// older customized templates by checking for no origin and a 'theme'\n\t\t// or 'custom' source.\n\t\tif (\n\t\t\ttemplate.has_theme_file &&\n\t\t\t( template.origin === 'theme' ||\n\t\t\t\t( ! template.origin &&\n\t\t\t\t\t[ 'theme', 'custom' ].includes( template.source ) ) )\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<AddedByTheme\n\t\t\t\t\tslug={ template.theme }\n\t\t\t\t\tisCustomized={ template.source === 'custom' }\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\t// Template originally provided by a plugin, but customized by a user.\n\t\tif ( template.has_theme_file && template.origin === 'plugin' ) {\n\t\t\treturn (\n\t\t\t\t<AddedByPlugin\n\t\t\t\t\tslug={ template.theme }\n\t\t\t\t\tisCustomized={ template.source === 'custom' }\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\t// Template was created from scratch, but has no author. Author support\n\t\t// was only added to templates in WordPress 5.9. Fallback to showing the\n\t\t// site logo and title.\n\t\tif (\n\t\t\t! template.has_theme_file &&\n\t\t\ttemplate.source === 'custom' &&\n\t\t\t! template.author\n\t\t) {\n\t\t\treturn <AddedBySite />;\n\t\t}\n\t}\n\n\t// Simply show the author for templates created from scratch that have an\n\t// author or for any other post type.\n\treturn <AddedByAuthor id={ template.author } />;\n}\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/list/added-by.js"],"names":["classnames","__experimentalHStack","HStack","Icon","Tooltip","store","coreStore","useSelect","useState","commentAuthorAvatar","authorIcon","layout","themeIcon","plugins","pluginIcon","__","TEMPLATE_POST_TYPE_NAMES","CustomizedTooltip","isCustomized","children","AddedByTheme","slug","theme","select","getTheme","name","rendered","AddedByPlugin","plugin","getPlugin","AddedByAuthor","id","user","getUser","isImageLoaded","setIsImageLoaded","avatarURL","avatar_urls","hasAvatar","nickname","AddedBySite","logoURL","getEntityRecord","getMedia","siteData","site_logo","source_url","undefined","AddedBy","templateType","template","includes","has_theme_file","origin","source","author"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,UAAP,MAAuB,YAAvB;AAEA;AACA;AACA;;AACA,SACCC,oBAAoB,IAAIC,MADzB,EAECC,IAFD,EAGCC,OAHD,QAIO,uBAJP;AAKA,SAASC,KAAK,IAAIC,SAAlB,QAAmC,sBAAnC;AACA,SAASC,SAAT,QAA0B,iBAA1B;AACA,SAASC,QAAT,QAAyB,oBAAzB;AACA,SACCC,mBAAmB,IAAIC,UADxB,EAECC,MAAM,IAAIC,SAFX,EAGCC,OAAO,IAAIC,UAHZ,QAIO,kBAJP;AAKA,SAASC,EAAT,QAAmB,iBAAnB;AAEA,MAAMC,wBAAwB,GAAG,CAAE,aAAF,EAAiB,kBAAjB,CAAjC;;AAEA,SAASC,iBAAT,OAAyD;AAAA,MAA7B;AAAEC,IAAAA,YAAF;AAAgBC,IAAAA;AAAhB,GAA6B;;AACxD,MAAK,CAAED,YAAP,EAAsB;AACrB,WAAOC,QAAP;AACA;;AAED,SACC,cAAC,OAAD;AAAS,IAAA,IAAI,EAAGJ,EAAE,CAAE,mCAAF;AAAlB,KACGI,QADH,CADD;AAKA;;AAED,SAASC,YAAT,QAAgD;AAAA;;AAAA,MAAzB;AAAEC,IAAAA,IAAF;AAAQH,IAAAA;AAAR,GAAyB;AAC/C,QAAMI,KAAK,GAAGf,SAAS,CACpBgB,MAAF,IAAcA,MAAM,CAAEjB,SAAF,CAAN,CAAoBkB,QAApB,CAA8BH,IAA9B,CADQ,EAEtB,CAAEA,IAAF,CAFsB,CAAvB;AAK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,QADpB,IAEA,CAAEJ,QAAQ,CAACK,MAHZ,EAIE;AACD,aAAO,cAAC,WAAD,OAAP;AACA;AACD,GA5C4D,CA8C7D;AACA;;;AACA,SAAO,cAAC,aAAD;AAAe,IAAA,EAAE,EAAGL,QAAQ,CAACK;AAA7B,IAAP;AACA","sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalHStack as HStack,\n\tIcon,\n\tTooltip,\n} from '@wordpress/components';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useSelect } from '@wordpress/data';\nimport { useState } from '@wordpress/element';\nimport {\n\tcommentAuthorAvatar as authorIcon,\n\tlayout as themeIcon,\n\tplugins as pluginIcon,\n} from '@wordpress/icons';\nimport { __ } from '@wordpress/i18n';\n\nconst TEMPLATE_POST_TYPE_NAMES = [ 'wp_template', 'wp_template_part' ];\n\nfunction CustomizedTooltip( { isCustomized, children } ) {\n\tif ( ! isCustomized ) {\n\t\treturn children;\n\t}\n\n\treturn (\n\t\t<Tooltip text={ __( 'This template has been customized' ) }>\n\t\t\t{ children }\n\t\t</Tooltip>\n\t);\n}\n\nfunction AddedByTheme( { slug, isCustomized } ) {\n\tconst theme = useSelect(\n\t\t( select ) => select( coreStore ).getTheme( slug ),\n\t\t[ slug ]\n\t);\n\n\treturn (\n\t\t<HStack alignment=\"left\">\n\t\t\t<CustomizedTooltip isCustomized={ isCustomized }>\n\t\t\t\t<div\n\t\t\t\t\tclassName={ classnames( 'edit-site-list-added-by__icon', {\n\t\t\t\t\t\t'is-customized': isCustomized,\n\t\t\t\t\t} ) }\n\t\t\t\t>\n\t\t\t\t\t<Icon icon={ themeIcon } />\n\t\t\t\t</div>\n\t\t\t</CustomizedTooltip>\n\t\t\t<span>{ theme?.name?.rendered || slug }</span>\n\t\t</HStack>\n\t);\n}\n\nfunction AddedByPlugin( { slug, isCustomized } ) {\n\tconst plugin = useSelect(\n\t\t( select ) => select( coreStore ).getPlugin( slug ),\n\t\t[ slug ]\n\t);\n\n\treturn (\n\t\t<HStack alignment=\"left\">\n\t\t\t<CustomizedTooltip isCustomized={ isCustomized }>\n\t\t\t\t<div className=\"edit-site-list-added-by__icon\">\n\t\t\t\t\t<Icon icon={ pluginIcon } />\n\t\t\t\t</div>\n\t\t\t</CustomizedTooltip>\n\t\t\t<span>{ plugin?.name || slug }</span>\n\t\t</HStack>\n\t);\n}\n\nfunction AddedByAuthor( { id } ) {\n\tconst user = useSelect( ( select ) => select( coreStore ).getUser( id ), [\n\t\tid,\n\t] );\n\tconst [ isImageLoaded, setIsImageLoaded ] = useState( false );\n\n\tconst avatarURL = user?.avatar_urls?.[ 48 ];\n\tconst hasAvatar = !! avatarURL;\n\n\treturn (\n\t\t<HStack alignment=\"left\">\n\t\t\t<div\n\t\t\t\tclassName={ classnames(\n\t\t\t\t\thasAvatar\n\t\t\t\t\t\t? 'edit-site-list-added-by__avatar'\n\t\t\t\t\t\t: 'edit-site-list-added-by__icon',\n\t\t\t\t\t{\n\t\t\t\t\t\t'is-loaded': isImageLoaded,\n\t\t\t\t\t}\n\t\t\t\t) }\n\t\t\t>\n\t\t\t\t{ hasAvatar ? (\n\t\t\t\t\t<img\n\t\t\t\t\t\tonLoad={ () => setIsImageLoaded( true ) }\n\t\t\t\t\t\talt=\"\"\n\t\t\t\t\t\tsrc={ avatarURL }\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<Icon icon={ authorIcon } />\n\t\t\t\t) }\n\t\t\t</div>\n\t\t\t<span>{ user?.nickname }</span>\n\t\t</HStack>\n\t);\n}\n\nfunction AddedBySite() {\n\tconst { name, logoURL } = useSelect( ( select ) => {\n\t\tconst { getEntityRecord, getMedia } = select( coreStore );\n\t\tconst siteData = getEntityRecord( 'root', '__unstableBase' );\n\n\t\treturn {\n\t\t\tname: siteData.name,\n\t\t\tlogoURL: siteData?.site_logo\n\t\t\t\t? getMedia( siteData.site_logo )?.source_url\n\t\t\t\t: undefined,\n\t\t};\n\t}, [] );\n\tconst [ isImageLoaded, setIsImageLoaded ] = useState( false );\n\n\treturn (\n\t\t<HStack alignment=\"left\">\n\t\t\t<div\n\t\t\t\tclassName={ classnames( 'edit-site-list-added-by__avatar', {\n\t\t\t\t\t'is-loaded': isImageLoaded,\n\t\t\t\t} ) }\n\t\t\t>\n\t\t\t\t<img\n\t\t\t\t\tonLoad={ () => setIsImageLoaded( true ) }\n\t\t\t\t\talt=\"\"\n\t\t\t\t\tsrc={ logoURL }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<span>{ name }</span>\n\t\t</HStack>\n\t);\n}\n\nexport default function AddedBy( { templateType, template } ) {\n\tif ( ! template ) {\n\t\treturn;\n\t}\n\n\tif ( TEMPLATE_POST_TYPE_NAMES.includes( templateType ) ) {\n\t\t// Template originally provided by a theme, but customized by a user.\n\t\t// Templates originally didn't have the 'origin' field so identify\n\t\t// older customized templates by checking for no origin and a 'theme'\n\t\t// or 'custom' source.\n\t\tif (\n\t\t\ttemplate.has_theme_file &&\n\t\t\t( template.origin === 'theme' ||\n\t\t\t\t( ! template.origin &&\n\t\t\t\t\t[ 'theme', 'custom' ].includes( template.source ) ) )\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<AddedByTheme\n\t\t\t\t\tslug={ template.theme }\n\t\t\t\t\tisCustomized={ template.source === 'custom' }\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\t// Template originally provided by a plugin, but customized by a user.\n\t\tif ( template.has_theme_file && template.origin === 'plugin' ) {\n\t\t\treturn (\n\t\t\t\t<AddedByPlugin\n\t\t\t\t\tslug={ template.theme }\n\t\t\t\t\tisCustomized={ template.source === 'custom' }\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\t// Template was created from scratch, but has no author. Author support\n\t\t// was only added to templates in WordPress 5.9. Fallback to showing the\n\t\t// site logo and title.\n\t\tif (\n\t\t\t! template.has_theme_file &&\n\t\t\ttemplate.source === 'custom' &&\n\t\t\t! template.author\n\t\t) {\n\t\t\treturn <AddedBySite />;\n\t\t}\n\t}\n\n\t// Simply show the author for templates created from scratch that have an\n\t// author or for any other post type.\n\treturn <AddedByAuthor id={ template.author } />;\n}\n"]}
@@ -4,6 +4,7 @@ import { createElement } from "@wordpress/element";
4
4
  * WordPress dependencies
5
5
  */
6
6
  import { useSelect, useDispatch } from '@wordpress/data';
7
+ import { useEffect, useRef } from '@wordpress/element';
7
8
  import { Button, Icon, __unstableMotion as motion } from '@wordpress/components';
8
9
  import { __ } from '@wordpress/i18n';
9
10
  import { wordpress } from '@wordpress/icons';
@@ -39,6 +40,14 @@ function NavigationToggle(_ref) {
39
40
  setIsNavigationPanelOpened
40
41
  } = useDispatch(editSiteStore);
41
42
  const disableMotion = useReducedMotion();
43
+ const navigationToggleRef = useRef();
44
+ useEffect(() => {
45
+ // TODO: Remove this effect when alternative solution is merged.
46
+ // See: https://github.com/WordPress/gutenberg/pull/37314
47
+ if (!isNavigationOpen) {
48
+ navigationToggleRef.current.focus();
49
+ }
50
+ }, [isNavigationOpen]);
42
51
 
43
52
  const toggleNavigationPanel = () => setIsNavigationPanelOpened(!isNavigationOpen);
44
53
 
@@ -78,7 +87,8 @@ function NavigationToggle(_ref) {
78
87
  whileHover: "expand"
79
88
  }, createElement(Button, {
80
89
  className: "edit-site-navigation-toggle__button has-icon",
81
- label: __('Toggle navigation') // isPressed will add unwanted styles.
90
+ label: __('Toggle navigation'),
91
+ ref: navigationToggleRef // isPressed will add unwanted styles.
82
92
  ,
83
93
  "aria-pressed": isNavigationOpen,
84
94
  onClick: toggleNavigationPanel,
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-site/src/components/navigation-sidebar/navigation-toggle/index.js"],"names":["useSelect","useDispatch","Button","Icon","__unstableMotion","motion","__","wordpress","store","coreDataStore","useReducedMotion","editSiteStore","NavigationToggle","icon","isNavigationOpen","isRequestingSiteIcon","siteIconUrl","select","getEntityRecord","isResolving","siteData","undefined","isNavigationOpened","site_icon_url","setIsNavigationPanelOpened","disableMotion","toggleNavigationPanel","buttonIcon","effect","expand","scale","borderRadius","transition","type","duration"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,SAAT,EAAoBC,WAApB,QAAuC,iBAAvC;AACA,SACCC,MADD,EAECC,IAFD,EAGCC,gBAAgB,IAAIC,MAHrB,QAIO,uBAJP;AAKA,SAASC,EAAT,QAAmB,iBAAnB;AACA,SAASC,SAAT,QAA0B,kBAA1B;AACA,SAASC,KAAK,IAAIC,aAAlB,QAAuC,sBAAvC;AACA,SAASC,gBAAT,QAAiC,oBAAjC;AAEA;AACA;AACA;;AACA,SAASF,KAAK,IAAIG,aAAlB,QAAuC,gBAAvC;;AAEA,SAASC,gBAAT,OAAsC;AAAA,MAAX;AAAEC,IAAAA;AAAF,GAAW;AACrC,QAAM;AAAEC,IAAAA,gBAAF;AAAoBC,IAAAA,oBAApB;AAA0CC,IAAAA;AAA1C,MAA0DhB,SAAS,CACtEiB,MAAF,IAAc;AACb,UAAM;AAAEC,MAAAA,eAAF;AAAmBC,MAAAA;AAAnB,QAAmCF,MAAM,CAAER,aAAF,CAA/C;AACA,UAAMW,QAAQ,GACbF,eAAe,CAAE,MAAF,EAAU,gBAAV,EAA4BG,SAA5B,CAAf,IAA0D,EAD3D;AAGA,WAAO;AACNP,MAAAA,gBAAgB,EAAEG,MAAM,CAAEN,aAAF,CAAN,CAAwBW,kBAAxB,EADZ;AAENP,MAAAA,oBAAoB,EAAEI,WAAW,CAAE,MAAF,EAAU,iBAAV,EAA6B,CAC7D,MAD6D,EAE7D,gBAF6D,EAG7DE,SAH6D,CAA7B,CAF3B;AAONL,MAAAA,WAAW,EAAEI,QAAQ,CAACG;AAPhB,KAAP;AASA,GAfuE,EAgBxE,EAhBwE,CAAzE;AAkBA,QAAM;AAAEC,IAAAA;AAAF,MAAiCvB,WAAW,CAAEU,aAAF,CAAlD;AAEA,QAAMc,aAAa,GAAGf,gBAAgB,EAAtC;;AAEA,QAAMgB,qBAAqB,GA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esContent":["/**\n * WordPress dependencies\n */\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport {\n\tButton,\n\tIcon,\n\t__unstableMotion as motion,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { wordpress } from '@wordpress/icons';\nimport { store as coreDataStore } from '@wordpress/core-data';\nimport { useReducedMotion } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from '../../../store';\n\nfunction NavigationToggle( { icon } ) {\n\tconst { isNavigationOpen, isRequestingSiteIcon, siteIconUrl } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecord, isResolving } = select( coreDataStore );\n\t\t\tconst siteData =\n\t\t\t\tgetEntityRecord( 'root', '__unstableBase', undefined ) || {};\n\n\t\t\treturn {\n\t\t\t\tisNavigationOpen: select( editSiteStore ).isNavigationOpened(),\n\t\t\t\tisRequestingSiteIcon: isResolving( 'core', 'getEntityRecord', [\n\t\t\t\t\t'root',\n\t\t\t\t\t'__unstableBase',\n\t\t\t\t\tundefined,\n\t\t\t\t] ),\n\t\t\t\tsiteIconUrl: siteData.site_icon_url,\n\t\t\t};\n\t\t},\n\t\t[]\n\t);\n\tconst { setIsNavigationPanelOpened } = useDispatch( editSiteStore );\n\n\tconst disableMotion = useReducedMotion();\n\n\tconst toggleNavigationPanel = () =>\n\t\tsetIsNavigationPanelOpened( ! isNavigationOpen );\n\n\tlet buttonIcon = <Icon size=\"36px\" icon={ wordpress } />;\n\n\tconst effect = {\n\t\texpand: {\n\t\t\tscale: 1.7,\n\t\t\tborderRadius: 0,\n\t\t\ttransition: { type: 'tween', duration: '0.2' },\n\t\t},\n\t};\n\n\tif ( siteIconUrl ) {\n\t\tbuttonIcon = (\n\t\t\t<motion.img\n\t\t\t\tvariants={ ! disableMotion && effect }\n\t\t\t\talt={ __( 'Site Icon' ) }\n\t\t\t\tclassName=\"edit-site-navigation-toggle__site-icon\"\n\t\t\t\tsrc={ siteIconUrl }\n\t\t\t/>\n\t\t);\n\t} else if ( isRequestingSiteIcon ) {\n\t\tbuttonIcon = null;\n\t} else if ( icon ) {\n\t\tbuttonIcon = <Icon size=\"36px\" icon={ icon } />;\n\t}\n\n\treturn (\n\t\t<motion.div\n\t\t\tclassName={\n\t\t\t\t'edit-site-navigation-toggle' +\n\t\t\t\t( isNavigationOpen ? ' is-open' : '' )\n\t\t\t}\n\t\t\twhileHover=\"expand\"\n\t\t>\n\t\t\t<Button\n\t\t\t\tclassName=\"edit-site-navigation-toggle__button has-icon\"\n\t\t\t\tlabel={ __( 'Toggle navigation' ) }\n\t\t\t\t// isPressed will add unwanted styles.\n\t\t\t\taria-pressed={ isNavigationOpen }\n\t\t\t\tonClick={ toggleNavigationPanel }\n\t\t\t\tshowTooltip\n\t\t\t>\n\t\t\t\t{ buttonIcon }\n\t\t\t</Button>\n\t\t</motion.div>\n\t);\n}\n\nexport default NavigationToggle;\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/navigation-sidebar/navigation-toggle/index.js"],"names":["useSelect","useDispatch","useEffect","useRef","Button","Icon","__unstableMotion","motion","__","wordpress","store","coreDataStore","useReducedMotion","editSiteStore","NavigationToggle","icon","isNavigationOpen","isRequestingSiteIcon","siteIconUrl","select","getEntityRecord","isResolving","siteData","undefined","isNavigationOpened","site_icon_url","setIsNavigationPanelOpened","disableMotion","navigationToggleRef","current","focus","toggleNavigationPanel","buttonIcon","effect","expand","scale","borderRadius","transition","type","duration"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,SAAT,EAAoBC,WAApB,QAAuC,iBAAvC;AACA,SAASC,SAAT,EAAoBC,MAApB,QAAkC,oBAAlC;AACA,SACCC,MADD,EAECC,IAFD,EAGCC,gBAAgB,IAAIC,MAHrB,QAIO,uBAJP;AAKA,SAASC,EAAT,QAAmB,iBAAnB;AACA,SAASC,SAAT,QAA0B,kBAA1B;AACA,SAASC,KAAK,IAAIC,aAAlB,QAAuC,sBAAvC;AACA,SAASC,gBAAT,QAAiC,oBAAj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vB;AAAzB,IAAjB;AAEA,QAAMwB,MAAM,GAAG;AACdC,IAAAA,MAAM,EAAE;AACPC,MAAAA,KAAK,EAAE,GADA;AAEPC,MAAAA,YAAY,EAAE,CAFP;AAGPC,MAAAA,UAAU,EAAE;AAAEC,QAAAA,IAAI,EAAE,OAAR;AAAiBC,QAAAA,QAAQ,EAAE;AAA3B;AAHL;AADM,GAAf;;AAQA,MAAKrB,WAAL,EAAmB;AAClBc,IAAAA,UAAU,GACT,cAAC,MAAD,CAAQ,GAAR;AACC,MAAA,QAAQ,EAAG,CAAEL,aAAF,IAAmBM,MAD/B;AAEC,MAAA,GAAG,EAAGzB,EAAE,CAAE,WAAF,CAFT;AAGC,MAAA,SAAS,EAAC,wCAHX;AAIC,MAAA,GAAG,EAAGU;AAJP,MADD;AAQA,GATD,MASO,IAAKD,oBAAL,EAA4B;AAClCe,IAAAA,UAAU,GAAG,IAAb;AACA,GAFM,MAEA,IAAKjB,IAAL,EAAY;AAClBiB,IAAAA,UAAU,GAAG,cAAC,IAAD;AAAM,MAAA,IAAI,EAAC,MAAX;AAAkB,MAAA,IAAI,EAAGjB;AAAzB,MAAb;AACA;;AAED,SACC,cAAC,MAAD,CAAQ,GAAR;AACC,IAAA,SAAS,EACR,iCACEC,gBAAgB,GAAG,UAAH,GAAgB,EADlC,CAFF;AAKC,IAAA,UAAU,EAAC;AALZ,KAOC,cAAC,MAAD;AACC,IAAA,SAAS,EAAC,8CADX;AAEC,IAAA,KAAK,EAAGR,EAAE,CAAE,mBAAF,CAFX;AAGC,IAAA,GAAG,EAAGoB,mBAHP,CAIC;AAJD;AAKC,oBAAeZ,gBALhB;AAMC,IAAA,OAAO,EAAGe,qBANX;AAOC,IAAA,WAAW;AAPZ,KASGC,UATH,CAPD,CADD;AAqBA;;AAED,eAAelB,gBAAf","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { useEffect, useRef } from '@wordpress/element';\nimport {\n\tButton,\n\tIcon,\n\t__unstableMotion as motion,\n} from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { wordpress } from '@wordpress/icons';\nimport { store as coreDataStore } from '@wordpress/core-data';\nimport { useReducedMotion } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from '../../../store';\n\nfunction NavigationToggle( { icon } ) {\n\tconst { isNavigationOpen, isRequestingSiteIcon, siteIconUrl } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecord, isResolving } = select( coreDataStore );\n\t\t\tconst siteData =\n\t\t\t\tgetEntityRecord( 'root', '__unstableBase', undefined ) || {};\n\n\t\t\treturn {\n\t\t\t\tisNavigationOpen: select( editSiteStore ).isNavigationOpened(),\n\t\t\t\tisRequestingSiteIcon: isResolving( 'core', 'getEntityRecord', [\n\t\t\t\t\t'root',\n\t\t\t\t\t'__unstableBase',\n\t\t\t\t\tundefined,\n\t\t\t\t] ),\n\t\t\t\tsiteIconUrl: siteData.site_icon_url,\n\t\t\t};\n\t\t},\n\t\t[]\n\t);\n\tconst { setIsNavigationPanelOpened } = useDispatch( editSiteStore );\n\n\tconst disableMotion = useReducedMotion();\n\n\tconst navigationToggleRef = useRef();\n\n\tuseEffect( () => {\n\t\t// TODO: Remove this effect when alternative solution is merged.\n\t\t// See: https://github.com/WordPress/gutenberg/pull/37314\n\t\tif ( ! isNavigationOpen ) {\n\t\t\tnavigationToggleRef.current.focus();\n\t\t}\n\t}, [ isNavigationOpen ] );\n\n\tconst toggleNavigationPanel = () =>\n\t\tsetIsNavigationPanelOpened( ! isNavigationOpen );\n\n\tlet buttonIcon = <Icon size=\"36px\" icon={ wordpress } />;\n\n\tconst effect = {\n\t\texpand: {\n\t\t\tscale: 1.7,\n\t\t\tborderRadius: 0,\n\t\t\ttransition: { type: 'tween', duration: '0.2' },\n\t\t},\n\t};\n\n\tif ( siteIconUrl ) {\n\t\tbuttonIcon = (\n\t\t\t<motion.img\n\t\t\t\tvariants={ ! disableMotion && effect }\n\t\t\t\talt={ __( 'Site Icon' ) }\n\t\t\t\tclassName=\"edit-site-navigation-toggle__site-icon\"\n\t\t\t\tsrc={ siteIconUrl }\n\t\t\t/>\n\t\t);\n\t} else if ( isRequestingSiteIcon ) {\n\t\tbuttonIcon = null;\n\t} else if ( icon ) {\n\t\tbuttonIcon = <Icon size=\"36px\" icon={ icon } />;\n\t}\n\n\treturn (\n\t\t<motion.div\n\t\t\tclassName={\n\t\t\t\t'edit-site-navigation-toggle' +\n\t\t\t\t( isNavigationOpen ? ' is-open' : '' )\n\t\t\t}\n\t\t\twhileHover=\"expand\"\n\t\t>\n\t\t\t<Button\n\t\t\t\tclassName=\"edit-site-navigation-toggle__button has-icon\"\n\t\t\t\tlabel={ __( 'Toggle navigation' ) }\n\t\t\t\tref={ navigationToggleRef }\n\t\t\t\t// isPressed will add unwanted styles.\n\t\t\t\taria-pressed={ isNavigationOpen }\n\t\t\t\tonClick={ toggleNavigationPanel }\n\t\t\t\tshowTooltip\n\t\t\t>\n\t\t\t\t{ buttonIcon }\n\t\t\t</Button>\n\t\t</motion.div>\n\t);\n}\n\nexport default NavigationToggle;\n"]}
@@ -13,8 +13,7 @@ export default function DefaultSidebar(_ref) {
13
13
  children,
14
14
  closeLabel,
15
15
  header,
16
- headerClassName,
17
- panelClassName
16
+ headerClassName
18
17
  } = _ref;
19
18
  return createElement(Fragment, null, createElement(ComplementaryArea, {
20
19
  className: className,
@@ -24,8 +23,7 @@ export default function DefaultSidebar(_ref) {
24
23
  icon: icon,
25
24
  closeLabel: closeLabel,
26
25
  header: header,
27
- headerClassName: headerClassName,
28
- panelClassName: panelClassName
26
+ headerClassName: headerClassName
29
27
  }, children), createElement(ComplementaryAreaMoreMenuItem, {
30
28
  scope: "core/edit-site",
31
29
  identifier: identifier,
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar/default-sidebar.js"],"names":["ComplementaryArea","ComplementaryAreaMoreMenuItem","DefaultSidebar","className","identifier","title","icon","children","closeLabel","header","headerClassName","panelClassName"],"mappings":";;AAAA;AACA;AACA;AACA,SACCA,iBADD,EAECC,6BAFD,QAGO,sBAHP;AAKA,eAAe,SAASC,cAAT,OAUX;AAAA,MAVoC;AACvCC,IAAAA,SADuC;AAEvCC,IAAAA,UAFuC;AAGvCC,IAAAA,KAHuC;AAIvCC,IAAAA,IAJuC;AAKvCC,IAAAA,QALuC;AAMvCC,IAAAA,UANuC;AAOvCC,IAAAA,MAPuC;AAQvCC,IAAAA,eARuC;AASvCC,IAAAA;AATuC,GAUpC;AACH,SACC,8BACC,cAAC,iBAAD;AACC,IAAA,SAAS,EAAGR,SADb;AAEC,IAAA,KAAK,EAAC,gBAFP;AAGC,IAAA,UAAU,EAAGC,UAHd;AAIC,IAAA,KAAK,EAAGC,KAJT;AAKC,IAAA,IAAI,EAAGC,IALR;AAMC,IAAA,UAAU,EAAGE,UANd;AAOC,IAAA,MAAM,EAAGC,MAPV;AAQC,IAAA,eAAe,EAAGC,eARnB;AASC,IAAA,cAAc,EAAGC;AATlB,KAWGJ,QAXH,CADD,EAcC,cAAC,6BAAD;AACC,IAAA,KAAK,EAAC,gBADP;AAEC,IAAA,UAAU,EAAGH,UAFd;AAGC,IAAA,IAAI,EAAGE;AAHR,KAKGD,KALH,CAdD,CADD;AAwBA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tComplementaryArea,\n\tComplementaryAreaMoreMenuItem,\n} from '@wordpress/interface';\n\nexport default function DefaultSidebar( {\n\tclassName,\n\tidentifier,\n\ttitle,\n\ticon,\n\tchildren,\n\tcloseLabel,\n\theader,\n\theaderClassName,\n\tpanelClassName,\n} ) {\n\treturn (\n\t\t<>\n\t\t\t<ComplementaryArea\n\t\t\t\tclassName={ className }\n\t\t\t\tscope=\"core/edit-site\"\n\t\t\t\tidentifier={ identifier }\n\t\t\t\ttitle={ title }\n\t\t\t\ticon={ icon }\n\t\t\t\tcloseLabel={ closeLabel }\n\t\t\t\theader={ header }\n\t\t\t\theaderClassName={ headerClassName }\n\t\t\t\tpanelClassName={ panelClassName }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</ComplementaryArea>\n\t\t\t<ComplementaryAreaMoreMenuItem\n\t\t\t\tscope=\"core/edit-site\"\n\t\t\t\tidentifier={ identifier }\n\t\t\t\ticon={ icon }\n\t\t\t>\n\t\t\t\t{ title }\n\t\t\t</ComplementaryAreaMoreMenuItem>\n\t\t</>\n\t);\n}\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar/default-sidebar.js"],"names":["ComplementaryArea","ComplementaryAreaMoreMenuItem","DefaultSidebar","className","identifier","title","icon","children","closeLabel","header","headerClassName"],"mappings":";;AAAA;AACA;AACA;AACA,SACCA,iBADD,EAECC,6BAFD,QAGO,sBAHP;AAKA,eAAe,SAASC,cAAT,OASX;AAAA,MAToC;AACvCC,IAAAA,SADuC;AAEvCC,IAAAA,UAFuC;AAGvCC,IAAAA,KAHuC;AAIvCC,IAAAA,IAJuC;AAKvCC,IAAAA,QALuC;AAMvCC,IAAAA,UANuC;AAOvCC,IAAAA,MAPuC;AAQvCC,IAAAA;AARuC,GASpC;AACH,SACC,8BACC,cAAC,iBAAD;AACC,IAAA,SAAS,EAAGP,SADb;AAEC,IAAA,KAAK,EAAC,gBAFP;AAGC,IAAA,UAAU,EAAGC,UAHd;AAIC,IAAA,KAAK,EAAGC,KAJT;AAKC,IAAA,IAAI,EAAGC,IALR;AAMC,IAAA,UAAU,EAAGE,UANd;AAOC,IAAA,MAAM,EAAGC,MAPV;AAQC,IAAA,eAAe,EAAGC;AARnB,KAUGH,QAVH,CADD,EAaC,cAAC,6BAAD;AACC,IAAA,KAAK,EAAC,gBADP;AAEC,IAAA,UAAU,EAAGH,UAFd;AAGC,IAAA,IAAI,EAAGE;AAHR,KAKGD,KALH,CAbD,CADD;AAuBA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\tComplementaryArea,\n\tComplementaryAreaMoreMenuItem,\n} from '@wordpress/interface';\n\nexport default function DefaultSidebar( {\n\tclassName,\n\tidentifier,\n\ttitle,\n\ticon,\n\tchildren,\n\tcloseLabel,\n\theader,\n\theaderClassName,\n} ) {\n\treturn (\n\t\t<>\n\t\t\t<ComplementaryArea\n\t\t\t\tclassName={ className }\n\t\t\t\tscope=\"core/edit-site\"\n\t\t\t\tidentifier={ identifier }\n\t\t\t\ttitle={ title }\n\t\t\t\ticon={ icon }\n\t\t\t\tcloseLabel={ closeLabel }\n\t\t\t\theader={ header }\n\t\t\t\theaderClassName={ headerClassName }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</ComplementaryArea>\n\t\t\t<ComplementaryAreaMoreMenuItem\n\t\t\t\tscope=\"core/edit-site\"\n\t\t\t\tidentifier={ identifier }\n\t\t\t\ticon={ icon }\n\t\t\t>\n\t\t\t\t{ title }\n\t\t\t</ComplementaryAreaMoreMenuItem>\n\t\t</>\n\t);\n}\n"]}
@@ -25,7 +25,6 @@ export default function GlobalStylesSidebar() {
25
25
  title: __('Styles'),
26
26
  icon: styles,
27
27
  closeLabel: __('Close global styles sidebar'),
28
- panelClassName: "edit-site-global-styles-sidebar__panel",
29
28
  header: createElement(Flex, null, createElement(FlexBlock, null, createElement("strong", null, __('Styles')), createElement("span", {
30
29
  className: "edit-site-global-styles-sidebar__beta"
31
30
  }, __('Beta'))), createElement(FlexItem, null, createElement(DropdownMenu, {
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar/global-styles-sidebar.js"],"names":["DropdownMenu","FlexItem","FlexBlock","Flex","__","styles","moreVertical","useDispatch","DefaultSidebar","GlobalStylesUI","useGlobalStylesReset","store","editSiteStore","GlobalStylesSidebar","canReset","onReset","toggleFeature","disabled","title","onClick"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,YAAT,EAAuBC,QAAvB,EAAiCC,SAAjC,EAA4CC,IAA5C,QAAwD,uBAAxD;AACA,SAASC,EAAT,QAAmB,iBAAnB;AACA,SAASC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D;AARF,KAoCC,cAAC,cAAD,OApCD,CADD;AAwCA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { DropdownMenu, FlexItem, FlexBlock, Flex } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { styles, moreVertical } from '@wordpress/icons';\nimport { useDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport DefaultSidebar from './default-sidebar';\nimport { GlobalStylesUI, useGlobalStylesReset } from '../global-styles';\nimport { store as editSiteStore } from '../../store';\n\nexport default function GlobalStylesSidebar() {\n\tconst [ canReset, onReset ] = useGlobalStylesReset();\n\tconst { toggleFeature } = useDispatch( editSiteStore );\n\n\treturn (\n\t\t<DefaultSidebar\n\t\t\tclassName=\"edit-site-global-styles-sidebar\"\n\t\t\tidentifier=\"edit-site/global-styles\"\n\t\t\ttitle={ __( 'Styles' ) }\n\t\t\ticon={ styles }\n\t\t\tcloseLabel={ __( 'Close global styles sidebar' ) }\n\t\t\tpanelClassName=\"edit-site-global-styles-sidebar__panel\"\n\t\t\theader={\n\t\t\t\t<Flex>\n\t\t\t\t\t<FlexBlock>\n\t\t\t\t\t\t<strong>{ __( 'Styles' ) }</strong>\n\t\t\t\t\t\t<span className=\"edit-site-global-styles-sidebar__beta\">\n\t\t\t\t\t\t\t{ __( 'Beta' ) }\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</FlexBlock>\n\t\t\t\t\t<FlexItem>\n\t\t\t\t\t\t<DropdownMenu\n\t\t\t\t\t\t\ticon={ moreVertical }\n\t\t\t\t\t\t\tlabel={ __( 'More Global Styles Actions' ) }\n\t\t\t\t\t\t\ttoggleProps={ { disabled: ! canReset } }\n\t\t\t\t\t\t\tcontrols={ [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttitle: __( 'Reset to defaults' ),\n\t\t\t\t\t\t\t\t\tonClick: onReset,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttitle: __( 'Welcome Guide' ),\n\t\t\t\t\t\t\t\t\tonClick: () =>\n\t\t\t\t\t\t\t\t\t\ttoggleFeature( 'welcomeGuideStyles' ),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t] }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</FlexItem>\n\t\t\t\t</Flex>\n\t\t\t}\n\t\t>\n\t\t\t<GlobalStylesUI />\n\t\t</DefaultSidebar>\n\t);\n}\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-site/src/components/sidebar/global-styles-sidebar.js"],"names":["DropdownMenu","FlexItem","FlexBlock","Flex","__","styles","moreVertical","useDispatch","DefaultSidebar","GlobalStylesUI","useGlobalStylesReset","store","editSiteStore","GlobalStylesSidebar","canReset","onReset","toggleFeature","disabled","title","onClick"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,YAAT,EAAuBC,QAAvB,EAAiCC,SAAjC,EAA4CC,IAA5C,QAAwD,uBAAxD;AACA,SAASC,EAAT,QAAmB,iBAAnB;AACA,SAASC,MAAT,EAAiBC,YAAjB,QAAqC,kBAArC;AACA,SAASC,WAAT,QAA4B,iBAA5B;AAEA;AACA;AACA;;AACA,OAAOC,cAAP,MAA2B,mBAA3B;AACA,SAASC,cAAT,EAAyBC,oBAAzB,QAAqD,kBAArD;AACA,SAASC,KAAK,IAAIC,aAAlB,QAAuC,aAAvC;AAEA,eAAe,SAASC,mBAAT,GAA+B;AAC7C,QAAM,CAAEC,QAAF,EAAYC,OAAZ,IAAwBL,oBAAoB,EAAlD;AACA,QAAM;AAAEM,IAAAA;AAAF,MAAoBT,WAAW,CAAEK,aAAF,CAArC;AAEA,SACC,cAAC,cAAD;AACC,IAAA,SAAS,EAAC,iCADX;AAEC,IAAA,UAAU,EAAC,yBAFZ;AAGC,IAAA,KAAK,EAAGR,EAAE,CAAE,QAAF,CAHX;AAIC,IAAA,IAAI,EAAGC,MAJR;AAKC,IAAA,UAAU,EAAGD,EAAE,CAAE,6BAAF,CALhB;AAMC,IAAA,MAAM,EACL,cAAC,IAAD,QACC,cAAC,SAAD,QACC,8BAAUA,EAAE,CAAE,QAAF,CAAZ,CADD,EAEC;AAAM,MAAA,SAAS,EAAC;AAAhB,OACGA,EAAE,CAAE,MAAF,CADL,CAFD,CADD,EAOC,cAAC,QAAD,QACC,cAAC,YAAD;AACC,MAAA,IAAI,EAAGE,YADR;AAEC,MAAA,KAAK,EAAGF,EAAE,CAAE,4BAAF,CAFX;AAGC,MAAA,WAAW,EAAG;AAAEa,QAAAA,QAAQ,EAAE,CAAEH;AAAd,OAHf;AAIC,MAAA,QAAQ,EAAG,CACV;AACCI,QAAAA,KAAK,EAAEd,EAAE,CAAE,mBAAF,CADV;AAECe,QAAAA,OAAO,EAAEJ;AAFV,OADU,EAKV;AACCG,QAAAA,KAAK,EAAEd,EAAE,CAAE,eAAF,CADV;AAECe,QAAAA,OAAO,EAAE,MACRH,aAAa,CAAE,oBAAF;AAHf,OALU;AAJZ,MADD,CAPD;AAPF,KAmCC,cAAC,cAAD,OAnCD,CADD;AAuCA","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { DropdownMenu, FlexItem, FlexBlock, Flex } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { styles, moreVertical } from '@wordpress/icons';\nimport { useDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport DefaultSidebar from './default-sidebar';\nimport { GlobalStylesUI, useGlobalStylesReset } from '../global-styles';\nimport { store as editSiteStore } from '../../store';\n\nexport default function GlobalStylesSidebar() {\n\tconst [ canReset, onReset ] = useGlobalStylesReset();\n\tconst { toggleFeature } = useDispatch( editSiteStore );\n\n\treturn (\n\t\t<DefaultSidebar\n\t\t\tclassName=\"edit-site-global-styles-sidebar\"\n\t\t\tidentifier=\"edit-site/global-styles\"\n\t\t\ttitle={ __( 'Styles' ) }\n\t\t\ticon={ styles }\n\t\t\tcloseLabel={ __( 'Close global styles sidebar' ) }\n\t\t\theader={\n\t\t\t\t<Flex>\n\t\t\t\t\t<FlexBlock>\n\t\t\t\t\t\t<strong>{ __( 'Styles' ) }</strong>\n\t\t\t\t\t\t<span className=\"edit-site-global-styles-sidebar__beta\">\n\t\t\t\t\t\t\t{ __( 'Beta' ) }\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</FlexBlock>\n\t\t\t\t\t<FlexItem>\n\t\t\t\t\t\t<DropdownMenu\n\t\t\t\t\t\t\ticon={ moreVertical }\n\t\t\t\t\t\t\tlabel={ __( 'More Global Styles Actions' ) }\n\t\t\t\t\t\t\ttoggleProps={ { disabled: ! canReset } }\n\t\t\t\t\t\t\tcontrols={ [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttitle: __( 'Reset to defaults' ),\n\t\t\t\t\t\t\t\t\tonClick: onReset,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttitle: __( 'Welcome Guide' ),\n\t\t\t\t\t\t\t\t\tonClick: () =>\n\t\t\t\t\t\t\t\t\t\ttoggleFeature( 'welcomeGuideStyles' ),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t] }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</FlexItem>\n\t\t\t\t</Flex>\n\t\t\t}\n\t\t>\n\t\t\t<GlobalStylesUI />\n\t\t</DefaultSidebar>\n\t);\n}\n"]}
@@ -468,6 +468,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
468
468
  border-radius: 2px;
469
469
  }
470
470
 
471
+ .edit-site-visual-editor__editor-canvas {
472
+ border-radius: 2px 2px 0 0;
473
+ }
474
+
471
475
  .edit-site-visual-editor__back-button {
472
476
  position: absolute;
473
477
  top: 8px;
@@ -488,24 +492,28 @@ body.is-fullscreen-mode .interface-interface-skeleton {
488
492
  bottom: 0;
489
493
  padding: 0;
490
494
  margin: auto 0;
491
- width: 4px;
495
+ width: 8px;
492
496
  height: 100px;
493
497
  -webkit-appearance: none;
494
498
  appearance: none;
495
- cursor: ew-resize;
499
+ cursor: grab;
496
500
  outline: none;
497
- background: #949494;
498
- border-radius: 2px;
501
+ background: #757575;
502
+ border-radius: 4px;
499
503
  border: 0;
500
504
  }
501
505
  .resizable-editor__drag-handle.is-left {
502
- right: -16px;
506
+ right: -28px;
503
507
  }
504
508
  .resizable-editor__drag-handle.is-right {
505
- left: -16px;
509
+ left: -28px;
506
510
  }
507
- .resizable-editor__drag-handle:hover, .resizable-editor__drag-handle:active {
508
- background: #ccc;
511
+ .resizable-editor__drag-handle:hover {
512
+ background: #949494;
513
+ }
514
+ .resizable-editor__drag-handle:active {
515
+ cursor: grabbing;
516
+ background: #949494;
509
517
  }
510
518
  .resizable-editor__drag-handle:focus {
511
519
  box-shadow: 0 0 0 1px #2f2f2f, 0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color);
@@ -518,6 +526,14 @@ body.is-fullscreen-mode .interface-interface-skeleton {
518
526
  min-height: 152px;
519
527
  line-height: 1;
520
528
  }
529
+ .edit-site-global-styles-preview .component-color-indicator {
530
+ border-radius: 50%;
531
+ border: 0;
532
+ height: 36px;
533
+ width: 36px;
534
+ margin-right: 0;
535
+ padding: 0;
536
+ }
521
537
 
522
538
  .edit-site-typography-panel__preview {
523
539
  display: flex;
@@ -547,6 +563,13 @@ body.is-fullscreen-mode .interface-interface-skeleton {
547
563
  margin: 16px;
548
564
  }
549
565
  .edit-site-global-styles-screen-colors .component-color-indicator {
566
+ margin-right: 0;
567
+ display: block;
568
+ border-radius: 50%;
569
+ height: 24px;
570
+ width: 24px;
571
+ padding: 0;
572
+ border: 1px solid #ddd;
550
573
  background: linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
551
574
  }
552
575
 
@@ -611,8 +634,6 @@ body.is-fullscreen-mode .edit-site-header {
611
634
  display: flex;
612
635
  align-items: center;
613
636
  height: 100%;
614
- flex-grow: 1;
615
- justify-content: center;
616
637
  min-width: 0;
617
638
  }
618
639
  .edit-site-header .edit-site-header_end {
@@ -690,6 +711,7 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
690
711
  .edit-site-header__actions {
691
712
  display: inline-flex;
692
713
  align-items: center;
714
+ flex-wrap: wrap;
693
715
  padding-left: 4px;
694
716
  }
695
717
  .edit-site-header__actions .interface-pinned-items {
@@ -744,7 +766,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
744
766
  display: flex;
745
767
  flex-direction: column;
746
768
  justify-content: center;
747
- padding: 0 8px;
748
769
  height: 100%;
749
770
  min-width: 0;
750
771
  }
@@ -771,6 +792,17 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
771
792
  white-space: nowrap;
772
793
  overflow: hidden;
773
794
  text-overflow: ellipsis;
795
+ max-width: 120px;
796
+ }
797
+ @media (min-width: 782px) {
798
+ .edit-site-document-actions .edit-site-document-actions__title {
799
+ max-width: 75px;
800
+ }
801
+ }
802
+ @media (min-width: 1080px) {
803
+ .edit-site-document-actions .edit-site-document-actions__title {
804
+ max-width: 180px;
805
+ }
774
806
  }
775
807
  .edit-site-document-actions .edit-site-document-actions__secondary-item {
776
808
  white-space: nowrap;
@@ -1262,20 +1294,6 @@ body.is-fullscreen-mode .edit-site-list-header {
1262
1294
  margin: 0;
1263
1295
  }
1264
1296
 
1265
- .edit-site-global-styles-sidebar {
1266
- display: flex;
1267
- flex-direction: column;
1268
- height: 100%;
1269
- }
1270
- .edit-site-global-styles-sidebar__panel, .edit-site-global-styles-sidebar__navigator-provider {
1271
- display: flex;
1272
- flex-direction: column;
1273
- flex: 1;
1274
- }
1275
- .edit-site-global-styles-sidebar__navigator-screen {
1276
- flex: 1;
1277
- }
1278
-
1279
1297
  .edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon {
1280
1298
  margin-right: 0;
1281
1299
  }
@@ -1284,6 +1302,18 @@ body.is-fullscreen-mode .edit-site-list-header {
1284
1302
  margin-right: auto;
1285
1303
  }
1286
1304
 
1305
+ .edit-site-global-styles-sidebar__border-controls-row {
1306
+ display: flex;
1307
+ justify-content: space-between;
1308
+ margin-bottom: 12px;
1309
+ }
1310
+ .edit-site-global-styles-sidebar__border-controls-row > * {
1311
+ width: calc(50% - 8px);
1312
+ }
1313
+ .edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons {
1314
+ margin-bottom: 0;
1315
+ }
1316
+
1287
1317
  .edit-site-global-styles-sidebar .components-navigation__menu-title-heading {
1288
1318
  font-size: 15.6px;
1289
1319
  font-weight: 500;
@@ -1298,10 +1328,6 @@ body.is-fullscreen-mode .edit-site-list-header {
1298
1328
  border: 0;
1299
1329
  }
1300
1330
 
1301
- .edit-site-global-styles-sidebar .components-tools-panel-item.single-column {
1302
- grid-column: span 1;
1303
- }
1304
-
1305
1331
  .edit-site-global-styles-sidebar__blocks-group {
1306
1332
  padding-top: 24px;
1307
1333
  border-top: 1px solid #e0e0e0;
@@ -468,6 +468,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
468
468
  border-radius: 2px;
469
469
  }
470
470
 
471
+ .edit-site-visual-editor__editor-canvas {
472
+ border-radius: 2px 2px 0 0;
473
+ }
474
+
471
475
  .edit-site-visual-editor__back-button {
472
476
  position: absolute;
473
477
  top: 8px;
@@ -488,24 +492,28 @@ body.is-fullscreen-mode .interface-interface-skeleton {
488
492
  bottom: 0;
489
493
  padding: 0;
490
494
  margin: auto 0;
491
- width: 4px;
495
+ width: 8px;
492
496
  height: 100px;
493
497
  -webkit-appearance: none;
494
498
  appearance: none;
495
- cursor: ew-resize;
499
+ cursor: grab;
496
500
  outline: none;
497
- background: #949494;
498
- border-radius: 2px;
501
+ background: #757575;
502
+ border-radius: 4px;
499
503
  border: 0;
500
504
  }
501
505
  .resizable-editor__drag-handle.is-left {
502
- left: -16px;
506
+ left: -28px;
503
507
  }
504
508
  .resizable-editor__drag-handle.is-right {
505
- right: -16px;
509
+ right: -28px;
506
510
  }
507
- .resizable-editor__drag-handle:hover, .resizable-editor__drag-handle:active {
508
- background: #ccc;
511
+ .resizable-editor__drag-handle:hover {
512
+ background: #949494;
513
+ }
514
+ .resizable-editor__drag-handle:active {
515
+ cursor: grabbing;
516
+ background: #949494;
509
517
  }
510
518
  .resizable-editor__drag-handle:focus {
511
519
  box-shadow: 0 0 0 1px #2f2f2f, 0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color);
@@ -518,6 +526,14 @@ body.is-fullscreen-mode .interface-interface-skeleton {
518
526
  min-height: 152px;
519
527
  line-height: 1;
520
528
  }
529
+ .edit-site-global-styles-preview .component-color-indicator {
530
+ border-radius: 50%;
531
+ border: 0;
532
+ height: 36px;
533
+ width: 36px;
534
+ margin-left: 0;
535
+ padding: 0;
536
+ }
521
537
 
522
538
  .edit-site-typography-panel__preview {
523
539
  display: flex;
@@ -547,6 +563,13 @@ body.is-fullscreen-mode .interface-interface-skeleton {
547
563
  margin: 16px;
548
564
  }
549
565
  .edit-site-global-styles-screen-colors .component-color-indicator {
566
+ margin-left: 0;
567
+ display: block;
568
+ border-radius: 50%;
569
+ height: 24px;
570
+ width: 24px;
571
+ padding: 0;
572
+ border: 1px solid #ddd;
550
573
  background: linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
551
574
  }
552
575
 
@@ -611,8 +634,6 @@ body.is-fullscreen-mode .edit-site-header {
611
634
  display: flex;
612
635
  align-items: center;
613
636
  height: 100%;
614
- flex-grow: 1;
615
- justify-content: center;
616
637
  min-width: 0;
617
638
  }
618
639
  .edit-site-header .edit-site-header_end {
@@ -690,6 +711,7 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
690
711
  .edit-site-header__actions {
691
712
  display: inline-flex;
692
713
  align-items: center;
714
+ flex-wrap: wrap;
693
715
  padding-right: 4px;
694
716
  }
695
717
  .edit-site-header__actions .interface-pinned-items {
@@ -744,7 +766,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
744
766
  display: flex;
745
767
  flex-direction: column;
746
768
  justify-content: center;
747
- padding: 0 8px;
748
769
  height: 100%;
749
770
  min-width: 0;
750
771
  }
@@ -771,6 +792,17 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
771
792
  white-space: nowrap;
772
793
  overflow: hidden;
773
794
  text-overflow: ellipsis;
795
+ max-width: 120px;
796
+ }
797
+ @media (min-width: 782px) {
798
+ .edit-site-document-actions .edit-site-document-actions__title {
799
+ max-width: 75px;
800
+ }
801
+ }
802
+ @media (min-width: 1080px) {
803
+ .edit-site-document-actions .edit-site-document-actions__title {
804
+ max-width: 180px;
805
+ }
774
806
  }
775
807
  .edit-site-document-actions .edit-site-document-actions__secondary-item {
776
808
  white-space: nowrap;
@@ -1262,20 +1294,6 @@ body.is-fullscreen-mode .edit-site-list-header {
1262
1294
  margin: 0;
1263
1295
  }
1264
1296
 
1265
- .edit-site-global-styles-sidebar {
1266
- display: flex;
1267
- flex-direction: column;
1268
- height: 100%;
1269
- }
1270
- .edit-site-global-styles-sidebar__panel, .edit-site-global-styles-sidebar__navigator-provider {
1271
- display: flex;
1272
- flex-direction: column;
1273
- flex: 1;
1274
- }
1275
- .edit-site-global-styles-sidebar__navigator-screen {
1276
- flex: 1;
1277
- }
1278
-
1279
1297
  .edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon {
1280
1298
  margin-left: 0;
1281
1299
  }
@@ -1284,6 +1302,18 @@ body.is-fullscreen-mode .edit-site-list-header {
1284
1302
  margin-left: auto;
1285
1303
  }
1286
1304
 
1305
+ .edit-site-global-styles-sidebar__border-controls-row {
1306
+ display: flex;
1307
+ justify-content: space-between;
1308
+ margin-bottom: 12px;
1309
+ }
1310
+ .edit-site-global-styles-sidebar__border-controls-row > * {
1311
+ width: calc(50% - 8px);
1312
+ }
1313
+ .edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons {
1314
+ margin-bottom: 0;
1315
+ }
1316
+
1287
1317
  .edit-site-global-styles-sidebar .components-navigation__menu-title-heading {
1288
1318
  font-size: 15.6px;
1289
1319
  font-weight: 500;
@@ -1298,10 +1328,6 @@ body.is-fullscreen-mode .edit-site-list-header {
1298
1328
  border: 0;
1299
1329
  }
1300
1330
 
1301
- .edit-site-global-styles-sidebar .components-tools-panel-item.single-column {
1302
- grid-column: span 1;
1303
- }
1304
-
1305
1331
  .edit-site-global-styles-sidebar__blocks-group {
1306
1332
  padding-top: 24px;
1307
1333
  border-top: 1px solid #e0e0e0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-site",
3
- "version": "3.0.18-next.33ec3857e2.0",
3
+ "version": "3.0.18",
4
4
  "description": "Edit Site Page module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -27,32 +27,32 @@
27
27
  "react-native": "src/index",
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.16.0",
30
- "@wordpress/a11y": "^3.2.5-next.33ec3857e2.0",
31
- "@wordpress/api-fetch": "^5.2.7-next.33ec3857e2.0",
32
- "@wordpress/block-editor": "^8.0.12-next.33ec3857e2.0",
33
- "@wordpress/block-library": "^6.0.17-next.33ec3857e2.0",
34
- "@wordpress/blocks": "^11.1.5-next.33ec3857e2.0",
35
- "@wordpress/components": "^19.2.1-next.33ec3857e2.0",
36
- "@wordpress/compose": "^5.0.7-next.33ec3857e2.0",
37
- "@wordpress/core-data": "^4.0.10-next.33ec3857e2.0",
38
- "@wordpress/data": "^6.1.6-next.33ec3857e2.0",
39
- "@wordpress/data-controls": "^2.2.8-next.33ec3857e2.0",
40
- "@wordpress/editor": "^12.0.15-next.33ec3857e2.0",
41
- "@wordpress/element": "^4.0.6-next.33ec3857e2.0",
42
- "@wordpress/hooks": "^3.2.3-next.33ec3857e2.0",
43
- "@wordpress/html-entities": "^3.2.4-next.33ec3857e2.0",
44
- "@wordpress/i18n": "^4.2.5-next.33ec3857e2.0",
45
- "@wordpress/icons": "^6.1.2-next.33ec3857e2.0",
46
- "@wordpress/interface": "^4.1.14-next.33ec3857e2.0",
47
- "@wordpress/keyboard-shortcuts": "^3.0.7-next.33ec3857e2.0",
48
- "@wordpress/keycodes": "^3.2.5-next.33ec3857e2.0",
49
- "@wordpress/media-utils": "^3.0.6-next.33ec3857e2.0",
50
- "@wordpress/notices": "^3.2.8-next.33ec3857e2.0",
51
- "@wordpress/plugins": "^4.0.7-next.33ec3857e2.0",
52
- "@wordpress/primitives": "^3.0.5-next.33ec3857e2.0",
53
- "@wordpress/reusable-blocks": "^3.0.18-next.33ec3857e2.0",
54
- "@wordpress/url": "^3.3.2-next.33ec3857e2.0",
55
- "@wordpress/viewport": "^4.0.7-next.33ec3857e2.0",
30
+ "@wordpress/a11y": "^3.2.4",
31
+ "@wordpress/api-fetch": "^5.2.6",
32
+ "@wordpress/block-editor": "^8.0.12",
33
+ "@wordpress/block-library": "^6.0.16",
34
+ "@wordpress/blocks": "^11.1.5",
35
+ "@wordpress/components": "^19.1.6",
36
+ "@wordpress/compose": "^5.0.7",
37
+ "@wordpress/core-data": "^4.0.9",
38
+ "@wordpress/data": "^6.1.5",
39
+ "@wordpress/data-controls": "^2.2.8",
40
+ "@wordpress/editor": "^12.0.15",
41
+ "@wordpress/element": "^4.0.4",
42
+ "@wordpress/hooks": "^3.2.2",
43
+ "@wordpress/html-entities": "^3.2.3",
44
+ "@wordpress/i18n": "^4.2.4",
45
+ "@wordpress/icons": "^6.1.1",
46
+ "@wordpress/interface": "^4.1.14",
47
+ "@wordpress/keyboard-shortcuts": "^3.0.7",
48
+ "@wordpress/keycodes": "^3.2.4",
49
+ "@wordpress/media-utils": "^3.0.5",
50
+ "@wordpress/notices": "^3.2.8",
51
+ "@wordpress/plugins": "^4.0.7",
52
+ "@wordpress/primitives": "^3.0.4",
53
+ "@wordpress/reusable-blocks": "^3.0.18",
54
+ "@wordpress/url": "^3.3.1",
55
+ "@wordpress/viewport": "^4.0.7",
56
56
  "classnames": "^2.3.1",
57
57
  "downloadjs": "^1.4.7",
58
58
  "file-saver": "^2.0.2",
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "51c7917ea7fac72953702f24d6daac87d99e7617"
67
+ "gitHead": "1081a28b2368fcebd9a14554fbd0e25eb33fbcb6"
68
68
  }
@@ -137,7 +137,6 @@ function ResizableEditor( { enableResizing, settings, ...props } ) {
137
137
  }</style>
138
138
  </>
139
139
  }
140
- assets={ settings.__unstableResolvedAssets }
141
140
  ref={ ref }
142
141
  name="editor-canvas"
143
142
  className="edit-site-visual-editor__editor-canvas"
@@ -19,14 +19,18 @@
19
19
  align-items: center;
20
20
 
21
21
  &.is-focus-mode {
22
- padding: $grid-unit-60;
22
+ padding: 48px;
23
23
 
24
24
  .edit-site-visual-editor__editor-canvas {
25
- border-radius: $radius-block-ui;
25
+ border-radius: 2px;
26
26
  }
27
27
  }
28
28
  }
29
29
 
30
+ .edit-site-visual-editor__editor-canvas {
31
+ border-radius: 2px 2px 0 0;
32
+ }
33
+
30
34
  .edit-site-visual-editor__back-button {
31
35
  position: absolute;
32
36
  top: $grid-unit-10;
@@ -51,26 +55,30 @@
51
55
  bottom: 0;
52
56
  padding: 0;
53
57
  margin: auto 0;
54
- width: $grid-unit-05;
58
+ width: $grid-unit-10;
55
59
  height: $height;
56
60
  appearance: none;
57
- cursor: ew-resize;
61
+ cursor: grab;
58
62
  outline: none;
59
- background: $gray-600;
60
- border-radius: 2px;
63
+ background: $gray-700;
64
+ border-radius: 4px;
61
65
  border: 0;
62
66
 
63
67
  &.is-left {
64
- left: -$grid-unit-20;
68
+ left: #{-$grid-unit-30 - $grid-unit-05};
65
69
  }
66
70
 
67
71
  &.is-right {
68
- right: -$grid-unit-20;
72
+ right: #{-$grid-unit-30 - $grid-unit-05};
73
+ }
74
+
75
+ &:hover {
76
+ background: $gray-600;
69
77
  }
70
78
 
71
- &:hover,
72
79
  &:active {
73
- background: $gray-400;
80
+ cursor: grabbing;
81
+ background: $gray-600;
74
82
  }
75
83
 
76
84
  &:focus {