@wordpress/edit-post 8.41.0 → 8.41.1-next.v.202603161435.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.cjs CHANGED
@@ -77,7 +77,9 @@ function initializeEditor(id, postType, postId, settings, initialEdits) {
77
77
  showIconLabels: false,
78
78
  showListViewByDefault: false,
79
79
  enableChoosePatternModal: true,
80
- isPublishSidebarEnabled: true
80
+ isPublishSidebarEnabled: true,
81
+ showCollaborationCursor: false,
82
+ showCollaborationNotifications: true
81
83
  });
82
84
  if (window.__clientSideMediaProcessing) {
83
85
  (0, import_data.dispatch)(import_preferences.store).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__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { dispatch, select } from '@wordpress/data';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport {\n\tstore as editorStore,\n\tprivateApis as editorPrivateApis,\n} from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport Layout from './components/layout';\nimport { unlock } from './lock-unlock';\n\nconst {\n\tBackButton: __experimentalMainDashboardButton,\n\tregisterCoreBlockBindingsSources,\n} = unlock( editorPrivateApis );\n\n/**\n * Initializes and returns an instance of Editor.\n *\n * @param {string} id Unique identifier for editor instance.\n * @param {string} postType Post type of the post to edit.\n * @param {Object} postId ID of the post to edit.\n * @param {?Object} settings Editor settings object.\n * @param {Object} initialEdits Programmatic edits to apply initially, to be\n * considered as non-user-initiated (bypass for\n * unsaved changes prompt).\n */\nexport function initializeEditor(\n\tid,\n\tpostType,\n\tpostId,\n\tsettings,\n\tinitialEdits\n) {\n\tconst isMediumOrBigger = window.matchMedia( '(min-width: 782px)' ).matches;\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-post', {\n\t\tfullscreenMode: true,\n\t\tthemeStyles: true,\n\t\twelcomeGuide: true,\n\t\twelcomeGuideTemplate: true,\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core', {\n\t\tallowRightClickOverrides: true,\n\t\teditorMode: 'visual',\n\t\teditorTool: 'edit',\n\t\tfixedToolbar: false,\n\t\thiddenBlockTypes: [],\n\t\tinactivePanels: [],\n\t\topenPanels: [ 'post-status' ],\n\t\tshowBlockBreadcrumbs: true,\n\t\tshowIconLabels: false,\n\t\tshowListViewByDefault: false,\n\t\tenableChoosePatternModal: true,\n\t\tisPublishSidebarEnabled: 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( blocksStore ).reapplyBlockTypeFilters();\n\n\t// Check if the block list view should be open by default.\n\t// If `distractionFree` mode is enabled, the block list view should not be open.\n\t// This behavior is disabled for small viewports.\n\tif (\n\t\tisMediumOrBigger &&\n\t\tselect( preferencesStore ).get( 'core', 'showListViewByDefault' ) &&\n\t\t! select( preferencesStore ).get( 'core', 'distractionFree' )\n\t) {\n\t\tdispatch( editorStore ).setIsListViewOpened( true );\n\t}\n\n\tregisterCoreBlocks();\n\tregisterCoreBlockBindingsSources();\n\tregisterLegacyWidgetBlock( { inserter: false } );\n\tregisterWidgetGroupBlock( { inserter: false } );\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: settings.__unstableEnableFullSiteEditingBlocks,\n\t\t} );\n\t}\n\n\t// Show a console log warning if the browser is not in Standards rendering mode.\n\tconst documentMode =\n\t\tdocument.compatMode === 'CSS1Compat' ? 'Standards' : 'Quirks';\n\tif ( documentMode !== 'Standards' ) {\n\t\t// eslint-disable-next-line no-console\n\t\tconsole.warn(\n\t\t\t\"Your browser is using Quirks Mode. \\nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.\"\n\t\t);\n\t}\n\n\t// This is a temporary fix for a couple of issues specific to Webkit on iOS.\n\t// Without this hack the browser scrolls the mobile toolbar off-screen.\n\t// Once supported in Safari we can replace this in favor of preventScroll.\n\t// For details see issue #18632 and PR #18686\n\t// Specifically, we scroll `interface-interface-skeleton__body` to enable a fixed top toolbar.\n\t// But Mobile Safari forces the `html` element to scroll upwards, hiding the toolbar.\n\n\tconst isIphone = window.navigator.userAgent.indexOf( 'iPhone' ) !== -1;\n\tif ( isIphone ) {\n\t\twindow.addEventListener( 'scroll', ( event ) => {\n\t\t\tconst editorScrollContainer = document.getElementsByClassName(\n\t\t\t\t'interface-interface-skeleton__body'\n\t\t\t)[ 0 ];\n\t\t\tif ( event.target === document ) {\n\t\t\t\t// Scroll element into view by scrolling the editor container by the same amount\n\t\t\t\t// that Mobile Safari tried to scroll the html element upwards.\n\t\t\t\tif ( window.scrollY > 100 ) {\n\t\t\t\t\teditorScrollContainer.scrollTop =\n\t\t\t\t\t\teditorScrollContainer.scrollTop + window.scrollY;\n\t\t\t\t}\n\t\t\t\t// Undo unwanted scroll on html element, but only in the visual editor.\n\t\t\t\tif (\n\t\t\t\t\tdocument.getElementsByClassName( 'is-mode-visual' )[ 0 ]\n\t\t\t\t) {\n\t\t\t\t\twindow.scrollTo( 0, 0 );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\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<Layout\n\t\t\t\tsettings={ settings }\n\t\t\t\tpostId={ postId }\n\t\t\t\tpostType={ postType }\n\t\t\t\tinitialEdits={ initialEdits }\n\t\t\t/>\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\n/**\n * Used to reinitialize the editor after an error. Now it's a deprecated noop function.\n */\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editPost.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\nexport { default as __experimentalFullscreenModeClose } from './components/back-button/fullscreen-mode-close';\nexport { __experimentalMainDashboardButton };\nexport { store } from './store';\nexport * from './deprecated';\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAqC;AACrC,2BAGO;AACP,wBAAuB;AACvB,qBAAuC;AACvC,kBAAiC;AACjC,yBAA0C;AAC1C,qBAGO;AACP,oBAGO;AAKP,oBAAmB;AACnB,yBAAuB;AAqJvB,mCAA6D;AAE7D,mBAAsB;AACtB,0BAAc,6BAjLd;AAwJG;AA7HH,IAAM;AAAA,EACL,YAAY;AAAA,EACZ;AACD,QAAI,2BAAQ,cAAAA,WAAkB;AAavB,SAAS,iBACf,IACA,UACA,QACA,UACA,cACC;AACD,QAAM,mBAAmB,OAAO,WAAY,oBAAqB,EAAE;AACnE,QAAM,SAAS,SAAS,eAAgB,EAAG;AAC3C,QAAM,WAAO,2BAAY,MAAO;AAEhC,4BAAU,mBAAAC,KAAiB,EAAE,YAAa,kBAAkB;AAAA,IAC3D,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,cAAc;AAAA,IACd,sBAAsB;AAAA,EACvB,CAAE;AAEF,4BAAU,mBAAAA,KAAiB,EAAE,YAA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,gCAAsB,YACrB,sBAAsB,YAAY,OAAO;AAAA,QAC3C;AAEA,YACC,SAAS,uBAAwB,gBAAiB,EAAG,CAAE,GACtD;AACD,iBAAO,SAAU,GAAG,CAAE;AAAA,QACvB;AAAA,MACD;AAAA,IACD,CAAE;AAAA,EACH;AAGA,SAAO,iBAAkB,YAAY,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AACxE,SAAO,iBAAkB,QAAQ,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AAEpE,OAAK;AAAA,IACJ,4CAAC,6BACA;AAAA,MAAC,cAAAC;AAAA,MAAA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACD,GACD;AAAA,EACD;AAEA,SAAO;AACR;AAKO,SAAS,qBAAqB;AACpC,wBAAAC,SAAY,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__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { dispatch, select } from '@wordpress/data';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport {\n\tstore as editorStore,\n\tprivateApis as editorPrivateApis,\n} from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport Layout from './components/layout';\nimport { unlock } from './lock-unlock';\n\nconst {\n\tBackButton: __experimentalMainDashboardButton,\n\tregisterCoreBlockBindingsSources,\n} = unlock( editorPrivateApis );\n\n/**\n * Initializes and returns an instance of Editor.\n *\n * @param {string} id Unique identifier for editor instance.\n * @param {string} postType Post type of the post to edit.\n * @param {Object} postId ID of the post to edit.\n * @param {?Object} settings Editor settings object.\n * @param {Object} initialEdits Programmatic edits to apply initially, to be\n * considered as non-user-initiated (bypass for\n * unsaved changes prompt).\n */\nexport function initializeEditor(\n\tid,\n\tpostType,\n\tpostId,\n\tsettings,\n\tinitialEdits\n) {\n\tconst isMediumOrBigger = window.matchMedia( '(min-width: 782px)' ).matches;\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-post', {\n\t\tfullscreenMode: true,\n\t\tthemeStyles: true,\n\t\twelcomeGuide: true,\n\t\twelcomeGuideTemplate: true,\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core', {\n\t\tallowRightClickOverrides: true,\n\t\teditorMode: 'visual',\n\t\teditorTool: 'edit',\n\t\tfixedToolbar: false,\n\t\thiddenBlockTypes: [],\n\t\tinactivePanels: [],\n\t\topenPanels: [ 'post-status' ],\n\t\tshowBlockBreadcrumbs: true,\n\t\tshowIconLabels: false,\n\t\tshowListViewByDefault: false,\n\t\tenableChoosePatternModal: true,\n\t\tisPublishSidebarEnabled: 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( blocksStore ).reapplyBlockTypeFilters();\n\n\t// Check if the block list view should be open by default.\n\t// If `distractionFree` mode is enabled, the block list view should not be open.\n\t// This behavior is disabled for small viewports.\n\tif (\n\t\tisMediumOrBigger &&\n\t\tselect( preferencesStore ).get( 'core', 'showListViewByDefault' ) &&\n\t\t! select( preferencesStore ).get( 'core', 'distractionFree' )\n\t) {\n\t\tdispatch( editorStore ).setIsListViewOpened( true );\n\t}\n\n\tregisterCoreBlocks();\n\tregisterCoreBlockBindingsSources();\n\tregisterLegacyWidgetBlock( { inserter: false } );\n\tregisterWidgetGroupBlock( { inserter: false } );\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: settings.__unstableEnableFullSiteEditingBlocks,\n\t\t} );\n\t}\n\n\t// Show a console log warning if the browser is not in Standards rendering mode.\n\tconst documentMode =\n\t\tdocument.compatMode === 'CSS1Compat' ? 'Standards' : 'Quirks';\n\tif ( documentMode !== 'Standards' ) {\n\t\t// eslint-disable-next-line no-console\n\t\tconsole.warn(\n\t\t\t\"Your browser is using Quirks Mode. \\nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.\"\n\t\t);\n\t}\n\n\t// This is a temporary fix for a couple of issues specific to Webkit on iOS.\n\t// Without this hack the browser scrolls the mobile toolbar off-screen.\n\t// Once supported in Safari we can replace this in favor of preventScroll.\n\t// For details see issue #18632 and PR #18686\n\t// Specifically, we scroll `interface-interface-skeleton__body` to enable a fixed top toolbar.\n\t// But Mobile Safari forces the `html` element to scroll upwards, hiding the toolbar.\n\n\tconst isIphone = window.navigator.userAgent.indexOf( 'iPhone' ) !== -1;\n\tif ( isIphone ) {\n\t\twindow.addEventListener( 'scroll', ( event ) => {\n\t\t\tconst editorScrollContainer = document.getElementsByClassName(\n\t\t\t\t'interface-interface-skeleton__body'\n\t\t\t)[ 0 ];\n\t\t\tif ( event.target === document ) {\n\t\t\t\t// Scroll element into view by scrolling the editor container by the same amount\n\t\t\t\t// that Mobile Safari tried to scroll the html element upwards.\n\t\t\t\tif ( window.scrollY > 100 ) {\n\t\t\t\t\teditorScrollContainer.scrollTop =\n\t\t\t\t\t\teditorScrollContainer.scrollTop + window.scrollY;\n\t\t\t\t}\n\t\t\t\t// Undo unwanted scroll on html element, but only in the visual editor.\n\t\t\t\tif (\n\t\t\t\t\tdocument.getElementsByClassName( 'is-mode-visual' )[ 0 ]\n\t\t\t\t) {\n\t\t\t\t\twindow.scrollTo( 0, 0 );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\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<Layout\n\t\t\t\tsettings={ settings }\n\t\t\t\tpostId={ postId }\n\t\t\t\tpostType={ postType }\n\t\t\t\tinitialEdits={ initialEdits }\n\t\t\t/>\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\n/**\n * Used to reinitialize the editor after an error. Now it's a deprecated noop function.\n */\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editPost.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\nexport { default as __experimentalFullscreenModeClose } from './components/back-button/fullscreen-mode-close';\nexport { __experimentalMainDashboardButton };\nexport { store } from './store';\nexport * from './deprecated';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAqC;AACrC,2BAGO;AACP,wBAAuB;AACvB,qBAAuC;AACvC,kBAAiC;AACjC,yBAA0C;AAC1C,qBAGO;AACP,oBAGO;AAKP,oBAAmB;AACnB,yBAAuB;AAuJvB,mCAA6D;AAE7D,mBAAsB;AACtB,0BAAc,6BAnLd;AA0JG;AA/HH,IAAM;AAAA,EACL,YAAY;AAAA,EACZ;AACD,QAAI,2BAAQ,cAAAA,WAAkB;AAavB,SAAS,iBACf,IACA,UACA,QACA,UACA,cACC;AACD,QAAM,mBAAmB,OAAO,WAAY,oBAAqB,EAAE;AACnE,QAAM,SAAS,SAAS,eAAgB,EAAG;AAC3C,QAAM,WAAO,2BAAY,MAAO;AAEhC,4BAAU,mBAAAC,KAAiB,EAAE,YAAa,kBAA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AK,UAAW;AACf,WAAO,iBAAkB,UAAU,CAAE,UAAW;AAC/C,YAAM,wBAAwB,SAAS;AAAA,QACtC;AAAA,MACD,EAAG,CAAE;AACL,UAAK,MAAM,WAAW,UAAW;AAGhC,YAAK,OAAO,UAAU,KAAM;AAC3B,gCAAsB,YACrB,sBAAsB,YAAY,OAAO;AAAA,QAC3C;AAEA,YACC,SAAS,uBAAwB,gBAAiB,EAAG,CAAE,GACtD;AACD,iBAAO,SAAU,GAAG,CAAE;AAAA,QACvB;AAAA,MACD;AAAA,IACD,CAAE;AAAA,EACH;AAGA,SAAO,iBAAkB,YAAY,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AACxE,SAAO,iBAAkB,QAAQ,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AAEpE,OAAK;AAAA,IACJ,4CAAC,6BACA;AAAA,MAAC,cAAAC;AAAA,MAAA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACD,GACD;AAAA,EACD;AAEA,SAAO;AACR;AAKO,SAAS,qBAAqB;AACpC,wBAAAC,SAAY,kCAAkC;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EACV,CAAE;AACH;",
6
6
  "names": ["editorPrivateApis", "preferencesStore", "blocksStore", "editorStore", "Layout", "deprecated"]
7
7
  }
@@ -48,7 +48,9 @@ function initializeEditor(id, postType, postId, settings, initialEdits) {
48
48
  showIconLabels: false,
49
49
  showListViewByDefault: false,
50
50
  enableChoosePatternModal: true,
51
- isPublishSidebarEnabled: true
51
+ isPublishSidebarEnabled: true,
52
+ showCollaborationCursor: false,
53
+ showCollaborationNotifications: true
52
54
  });
53
55
  if (window.__clientSideMediaProcessing) {
54
56
  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__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { dispatch, select } from '@wordpress/data';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport {\n\tstore as editorStore,\n\tprivateApis as editorPrivateApis,\n} from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport Layout from './components/layout';\nimport { unlock } from './lock-unlock';\n\nconst {\n\tBackButton: __experimentalMainDashboardButton,\n\tregisterCoreBlockBindingsSources,\n} = unlock( editorPrivateApis );\n\n/**\n * Initializes and returns an instance of Editor.\n *\n * @param {string} id Unique identifier for editor instance.\n * @param {string} postType Post type of the post to edit.\n * @param {Object} postId ID of the post to edit.\n * @param {?Object} settings Editor settings object.\n * @param {Object} initialEdits Programmatic edits to apply initially, to be\n * considered as non-user-initiated (bypass for\n * unsaved changes prompt).\n */\nexport function initializeEditor(\n\tid,\n\tpostType,\n\tpostId,\n\tsettings,\n\tinitialEdits\n) {\n\tconst isMediumOrBigger = window.matchMedia( '(min-width: 782px)' ).matches;\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-post', {\n\t\tfullscreenMode: true,\n\t\tthemeStyles: true,\n\t\twelcomeGuide: true,\n\t\twelcomeGuideTemplate: true,\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core', {\n\t\tallowRightClickOverrides: true,\n\t\teditorMode: 'visual',\n\t\teditorTool: 'edit',\n\t\tfixedToolbar: false,\n\t\thiddenBlockTypes: [],\n\t\tinactivePanels: [],\n\t\topenPanels: [ 'post-status' ],\n\t\tshowBlockBreadcrumbs: true,\n\t\tshowIconLabels: false,\n\t\tshowListViewByDefault: false,\n\t\tenableChoosePatternModal: true,\n\t\tisPublishSidebarEnabled: 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( blocksStore ).reapplyBlockTypeFilters();\n\n\t// Check if the block list view should be open by default.\n\t// If `distractionFree` mode is enabled, the block list view should not be open.\n\t// This behavior is disabled for small viewports.\n\tif (\n\t\tisMediumOrBigger &&\n\t\tselect( preferencesStore ).get( 'core', 'showListViewByDefault' ) &&\n\t\t! select( preferencesStore ).get( 'core', 'distractionFree' )\n\t) {\n\t\tdispatch( editorStore ).setIsListViewOpened( true );\n\t}\n\n\tregisterCoreBlocks();\n\tregisterCoreBlockBindingsSources();\n\tregisterLegacyWidgetBlock( { inserter: false } );\n\tregisterWidgetGroupBlock( { inserter: false } );\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: settings.__unstableEnableFullSiteEditingBlocks,\n\t\t} );\n\t}\n\n\t// Show a console log warning if the browser is not in Standards rendering mode.\n\tconst documentMode =\n\t\tdocument.compatMode === 'CSS1Compat' ? 'Standards' : 'Quirks';\n\tif ( documentMode !== 'Standards' ) {\n\t\t// eslint-disable-next-line no-console\n\t\tconsole.warn(\n\t\t\t\"Your browser is using Quirks Mode. \\nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.\"\n\t\t);\n\t}\n\n\t// This is a temporary fix for a couple of issues specific to Webkit on iOS.\n\t// Without this hack the browser scrolls the mobile toolbar off-screen.\n\t// Once supported in Safari we can replace this in favor of preventScroll.\n\t// For details see issue #18632 and PR #18686\n\t// Specifically, we scroll `interface-interface-skeleton__body` to enable a fixed top toolbar.\n\t// But Mobile Safari forces the `html` element to scroll upwards, hiding the toolbar.\n\n\tconst isIphone = window.navigator.userAgent.indexOf( 'iPhone' ) !== -1;\n\tif ( isIphone ) {\n\t\twindow.addEventListener( 'scroll', ( event ) => {\n\t\t\tconst editorScrollContainer = document.getElementsByClassName(\n\t\t\t\t'interface-interface-skeleton__body'\n\t\t\t)[ 0 ];\n\t\t\tif ( event.target === document ) {\n\t\t\t\t// Scroll element into view by scrolling the editor container by the same amount\n\t\t\t\t// that Mobile Safari tried to scroll the html element upwards.\n\t\t\t\tif ( window.scrollY > 100 ) {\n\t\t\t\t\teditorScrollContainer.scrollTop =\n\t\t\t\t\t\teditorScrollContainer.scrollTop + window.scrollY;\n\t\t\t\t}\n\t\t\t\t// Undo unwanted scroll on html element, but only in the visual editor.\n\t\t\t\tif (\n\t\t\t\t\tdocument.getElementsByClassName( 'is-mode-visual' )[ 0 ]\n\t\t\t\t) {\n\t\t\t\t\twindow.scrollTo( 0, 0 );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\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<Layout\n\t\t\t\tsettings={ settings }\n\t\t\t\tpostId={ postId }\n\t\t\t\tpostType={ postType }\n\t\t\t\tinitialEdits={ initialEdits }\n\t\t\t/>\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\n/**\n * Used to reinitialize the editor after an error. Now it's a deprecated noop function.\n */\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editPost.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\nexport { default as __experimentalFullscreenModeClose } from './components/back-button/fullscreen-mode-close';\nexport { __experimentalMainDashboardButton };\nexport { store } from './store';\nexport * from './deprecated';\n"],
5
- "mappings": ";AAGA,SAAS,SAAS,mBAAmB;AACrC;A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 "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { store as blocksStore } from '@wordpress/blocks';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { dispatch, select } from '@wordpress/data';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\nimport {\n\tstore as editorStore,\n\tprivateApis as editorPrivateApis,\n} from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport Layout from './components/layout';\nimport { unlock } from './lock-unlock';\n\nconst {\n\tBackButton: __experimentalMainDashboardButton,\n\tregisterCoreBlockBindingsSources,\n} = unlock( editorPrivateApis );\n\n/**\n * Initializes and returns an instance of Editor.\n *\n * @param {string} id Unique identifier for editor instance.\n * @param {string} postType Post type of the post to edit.\n * @param {Object} postId ID of the post to edit.\n * @param {?Object} settings Editor settings object.\n * @param {Object} initialEdits Programmatic edits to apply initially, to be\n * considered as non-user-initiated (bypass for\n * unsaved changes prompt).\n */\nexport function initializeEditor(\n\tid,\n\tpostType,\n\tpostId,\n\tsettings,\n\tinitialEdits\n) {\n\tconst isMediumOrBigger = window.matchMedia( '(min-width: 782px)' ).matches;\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-post', {\n\t\tfullscreenMode: true,\n\t\tthemeStyles: true,\n\t\twelcomeGuide: true,\n\t\twelcomeGuideTemplate: true,\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core', {\n\t\tallowRightClickOverrides: true,\n\t\teditorMode: 'visual',\n\t\teditorTool: 'edit',\n\t\tfixedToolbar: false,\n\t\thiddenBlockTypes: [],\n\t\tinactivePanels: [],\n\t\topenPanels: [ 'post-status' ],\n\t\tshowBlockBreadcrumbs: true,\n\t\tshowIconLabels: false,\n\t\tshowListViewByDefault: false,\n\t\tenableChoosePatternModal: true,\n\t\tisPublishSidebarEnabled: 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( blocksStore ).reapplyBlockTypeFilters();\n\n\t// Check if the block list view should be open by default.\n\t// If `distractionFree` mode is enabled, the block list view should not be open.\n\t// This behavior is disabled for small viewports.\n\tif (\n\t\tisMediumOrBigger &&\n\t\tselect( preferencesStore ).get( 'core', 'showListViewByDefault' ) &&\n\t\t! select( preferencesStore ).get( 'core', 'distractionFree' )\n\t) {\n\t\tdispatch( editorStore ).setIsListViewOpened( true );\n\t}\n\n\tregisterCoreBlocks();\n\tregisterCoreBlockBindingsSources();\n\tregisterLegacyWidgetBlock( { inserter: false } );\n\tregisterWidgetGroupBlock( { inserter: false } );\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: settings.__unstableEnableFullSiteEditingBlocks,\n\t\t} );\n\t}\n\n\t// Show a console log warning if the browser is not in Standards rendering mode.\n\tconst documentMode =\n\t\tdocument.compatMode === 'CSS1Compat' ? 'Standards' : 'Quirks';\n\tif ( documentMode !== 'Standards' ) {\n\t\t// eslint-disable-next-line no-console\n\t\tconsole.warn(\n\t\t\t\"Your browser is using Quirks Mode. \\nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.\"\n\t\t);\n\t}\n\n\t// This is a temporary fix for a couple of issues specific to Webkit on iOS.\n\t// Without this hack the browser scrolls the mobile toolbar off-screen.\n\t// Once supported in Safari we can replace this in favor of preventScroll.\n\t// For details see issue #18632 and PR #18686\n\t// Specifically, we scroll `interface-interface-skeleton__body` to enable a fixed top toolbar.\n\t// But Mobile Safari forces the `html` element to scroll upwards, hiding the toolbar.\n\n\tconst isIphone = window.navigator.userAgent.indexOf( 'iPhone' ) !== -1;\n\tif ( isIphone ) {\n\t\twindow.addEventListener( 'scroll', ( event ) => {\n\t\t\tconst editorScrollContainer = document.getElementsByClassName(\n\t\t\t\t'interface-interface-skeleton__body'\n\t\t\t)[ 0 ];\n\t\t\tif ( event.target === document ) {\n\t\t\t\t// Scroll element into view by scrolling the editor container by the same amount\n\t\t\t\t// that Mobile Safari tried to scroll the html element upwards.\n\t\t\t\tif ( window.scrollY > 100 ) {\n\t\t\t\t\teditorScrollContainer.scrollTop =\n\t\t\t\t\t\teditorScrollContainer.scrollTop + window.scrollY;\n\t\t\t\t}\n\t\t\t\t// Undo unwanted scroll on html element, but only in the visual editor.\n\t\t\t\tif (\n\t\t\t\t\tdocument.getElementsByClassName( 'is-mode-visual' )[ 0 ]\n\t\t\t\t) {\n\t\t\t\t\twindow.scrollTo( 0, 0 );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}\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<Layout\n\t\t\t\tsettings={ settings }\n\t\t\t\tpostId={ postId }\n\t\t\t\tpostType={ postType }\n\t\t\t\tinitialEdits={ initialEdits }\n\t\t\t/>\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\n/**\n * Used to reinitialize the editor after an error. Now it's a deprecated noop function.\n */\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editPost.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\nexport { default as __experimentalFullscreenModeClose } from './components/back-button/fullscreen-mode-close';\nexport { __experimentalMainDashboardButton };\nexport { store } from './store';\nexport * from './deprecated';\n"],
5
+ "mappings": ";AAGA,SAAS,SAAS,mBAAmB;AACrC;AAAA,EACC;AAAA,EACA;AAAA,OACM;AACP,OAAO,gBAAgB;AACvB,SAAS,YAAY,kBAAkB;AACvC,SAAS,UAAU,cAAc;AACjC,SAAS,SAAS,wBAAwB;AAC1C;AAAA,EACC;AAAA,EACA;AAAA,OACM;AACP;AAAA,EACC,SAAS;AAAA,EACT,eAAe;AAAA,OACT;AAKP,OAAO,YAAY;AACnB,SAAS,cAAc;AAuJvB,SAAoB,WAAXA,gBAAoD;AAE7D,SAAS,aAAa;AACtB,cAAc;AAzBX;AA/HH,IAAM;AAAA,EACL,YAAY;AAAA,EACZ;AACD,IAAI,OAAQ,iBAAkB;AAavB,SAAS,iBACf,IACA,UACA,QACA,UACA,cACC;AACD,QAAM,mBAAmB,OAAO,WAAY,oBAAqB,EAAE;AACnE,QAAM,SAAS,SAAS,eAAgB,EAAG;AAC3C,QAAM,OAAO,WAAY,MAAO;AAEhC,WAAU,gBAAiB,EAAE,YAAa,kBAAkB;AAAA,IAC3D,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,cAAc;AAAA,IACd,sBAAsB;AAAA,EACvB,CAAE;AAEF,WAAU,gBAAiB,EAAE,YAAa,QAAQ;AAAA,IACjD,0BAA0B;AAAA,IAC1B,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,kBAAkB,CAAC;AAAA,IACnB,gBAAgB,CAAC;AAAA,IACjB,YAAY,CAAE,aAAc;AAAA,IAC5B,sBAAsB;AAAA,IACtB,gBAAgB;AAAA,IAChB,uBAAuB;AAAA,IACvB,0BAA0B;AAAA,IAC1B,yBAAyB;AAAA,IACzB,yBAAyB;AAAA,IACzB,gCAAgC;AAAA,EACjC,CAAE;AAEF,MAAK,OAAO,6BAA8B;AACzC,aAAU,gBAAiB,EAAE,YAAa,cAAc;AAAA,MACvD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AA;AAAA,IACD,GACD;AAAA,EACD;AAEA,SAAO;AACR;AAKO,SAAS,qBAAqB;AACpC,aAAY,kCAAkC;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EACV,CAAE;AACH;",
6
6
  "names": ["default"]
7
7
  }
@@ -106,100 +106,11 @@
106
106
  }
107
107
  }
108
108
 
109
- /**
110
- * Colors
111
- */
112
- /**
113
- * SCSS Variables.
114
- *
115
- * Please use variables from this sheet to ensure consistency across the UI.
116
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
117
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
118
- */
119
- /**
120
- * Fonts & basic variables.
121
- */
122
- /**
123
- * Typography
124
- */
125
- /**
126
- * Grid System.
127
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
128
- */
129
- /**
130
- * Radius scale.
131
- */
132
- /**
133
- * Elevation scale.
134
- */
135
- /**
136
- * Dimensions.
137
- */
138
- /**
139
- * Mobile specific styles
140
- */
141
- /**
142
- * Editor styles.
143
- */
144
- /**
145
- * Block & Editor UI.
146
- */
147
- /**
148
- * Block paddings.
149
- */
150
- /**
151
- * React Native specific.
152
- * These variables do not appear to be used anywhere else.
153
- */
154
- /**
155
- * Typography
156
- */
157
- /**
158
- * Breakpoints & Media Queries
159
- */
160
- /**
161
- * Converts a hex value into the rgb equivalent.
162
- *
163
- * @param {string} hex - the hexadecimal value to convert
164
- * @return {string} comma separated rgb values
165
- */
166
- /**
167
- * Long content fade mixin
168
- *
169
- * Creates a fading overlay to signify that the content is longer
170
- * than the space allows.
171
- */
172
- /**
173
- * Breakpoint mixins
174
- */
175
- /**
176
- * Focus styles.
177
- */
178
- /**
179
- * Applies editor left position to the selector passed as argument
180
- */
181
- /**
182
- * Styles that are reused verbatim in a few places
183
- */
184
- /**
185
- * Allows users to opt-out of animations via OS-level preferences.
186
- */
187
- /**
188
- * Reset default styles for JavaScript UI based pages.
189
- * This is a WP-admin agnostic reset
190
- */
191
- /**
192
- * Reset the WP Admin page styles for Gutenberg-like pages.
193
- */
194
- /**
195
- * Creates a checkerboard pattern background to indicate transparency.
196
- * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
197
- */
198
109
  .admin-ui-page {
199
110
  display: flex;
200
111
  height: 100%;
201
- background-color: #fff;
202
- color: #2f2f2f;
112
+ background-color: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
113
+ color: var(--wpds-color-fg-content-neutral, #1e1e1e);
203
114
  position: relative;
204
115
  z-index: 1;
205
116
  flex-flow: column;
@@ -207,25 +118,34 @@
207
118
  }
208
119
 
209
120
  .admin-ui-page__header {
210
- padding: 16px 24px;
211
- border-bottom: 1px solid #f0f0f0;
212
- background: #fff;
121
+ padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
122
+ border-bottom: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #e0e0e0);
123
+ background: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
213
124
  position: sticky;
214
125
  top: 0;
215
126
  z-index: 1;
216
127
  }
217
128
 
129
+ .admin-ui-page__header-title {
130
+ font-family: var(--wpds-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif);
131
+ font-size: var(--wpds-font-size-xl, 20px);
132
+ font-weight: var(--wpds-font-weight-medium, 499);
133
+ line-height: var(--wpds-font-line-height-xl, 32px);
134
+ margin: 0;
135
+ overflow: hidden;
136
+ text-overflow: ellipsis;
137
+ white-space: nowrap;
138
+ }
139
+
218
140
  .admin-ui-page__sidebar-toggle-slot:empty {
219
141
  display: none;
220
142
  }
221
143
 
222
144
  .admin-ui-page__header-subtitle {
223
- padding-block-end: 8px;
224
- color: #757575;
225
- font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
226
- font-weight: 400;
227
- font-size: 13px;
228
- line-height: 20px;
145
+ padding-block-end: var(--wpds-dimension-padding-xs, 4px);
146
+ color: var(--wpds-color-fg-content-neutral-weak, #6d6d6d);
147
+ font-size: var(--wpds-font-size-md, 13px);
148
+ line-height: var(--wpds-font-line-height-md, 24px);
229
149
  margin: 0;
230
150
  }
231
151
 
@@ -237,12 +157,12 @@
237
157
  }
238
158
 
239
159
  .admin-ui-page__content.has-padding {
240
- padding: 16px 24px;
160
+ padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
241
161
  }
242
162
 
243
163
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
244
164
  width: auto;
245
- padding: 0 8px;
165
+ padding: 0 var(--wpds-dimension-padding-xs, 4px);
246
166
  }
247
167
 
248
168
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg {
@@ -251,9 +171,54 @@
251
171
 
252
172
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after {
253
173
  content: attr(aria-label);
254
- font-size: 12px;
174
+ font-size: var(--wpds-font-size-sm, 12px);
255
175
  }
256
176
 
177
+ /**
178
+ * SCSS Variables.
179
+ *
180
+ * Please use variables from this sheet to ensure consistency across the UI.
181
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
182
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
183
+ */
184
+ /**
185
+ * Colors
186
+ */
187
+ /**
188
+ * Fonts & basic variables.
189
+ */
190
+ /**
191
+ * Typography
192
+ */
193
+ /**
194
+ * Grid System.
195
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
196
+ */
197
+ /**
198
+ * Radius scale.
199
+ */
200
+ /**
201
+ * Elevation scale.
202
+ */
203
+ /**
204
+ * Dimensions.
205
+ */
206
+ /**
207
+ * Mobile specific styles
208
+ */
209
+ /**
210
+ * Editor styles.
211
+ */
212
+ /**
213
+ * Block & Editor UI.
214
+ */
215
+ /**
216
+ * Block paddings.
217
+ */
218
+ /**
219
+ * React Native specific.
220
+ * These variables do not appear to be used anywhere else.
221
+ */
257
222
  .admin-ui-breadcrumbs__list {
258
223
  list-style: none;
259
224
  padding: 0;
@@ -106,100 +106,11 @@
106
106
  }
107
107
  }
108
108
 
109
- /**
110
- * Colors
111
- */
112
- /**
113
- * SCSS Variables.
114
- *
115
- * Please use variables from this sheet to ensure consistency across the UI.
116
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
117
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
118
- */
119
- /**
120
- * Fonts & basic variables.
121
- */
122
- /**
123
- * Typography
124
- */
125
- /**
126
- * Grid System.
127
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
128
- */
129
- /**
130
- * Radius scale.
131
- */
132
- /**
133
- * Elevation scale.
134
- */
135
- /**
136
- * Dimensions.
137
- */
138
- /**
139
- * Mobile specific styles
140
- */
141
- /**
142
- * Editor styles.
143
- */
144
- /**
145
- * Block & Editor UI.
146
- */
147
- /**
148
- * Block paddings.
149
- */
150
- /**
151
- * React Native specific.
152
- * These variables do not appear to be used anywhere else.
153
- */
154
- /**
155
- * Typography
156
- */
157
- /**
158
- * Breakpoints & Media Queries
159
- */
160
- /**
161
- * Converts a hex value into the rgb equivalent.
162
- *
163
- * @param {string} hex - the hexadecimal value to convert
164
- * @return {string} comma separated rgb values
165
- */
166
- /**
167
- * Long content fade mixin
168
- *
169
- * Creates a fading overlay to signify that the content is longer
170
- * than the space allows.
171
- */
172
- /**
173
- * Breakpoint mixins
174
- */
175
- /**
176
- * Focus styles.
177
- */
178
- /**
179
- * Applies editor left position to the selector passed as argument
180
- */
181
- /**
182
- * Styles that are reused verbatim in a few places
183
- */
184
- /**
185
- * Allows users to opt-out of animations via OS-level preferences.
186
- */
187
- /**
188
- * Reset default styles for JavaScript UI based pages.
189
- * This is a WP-admin agnostic reset
190
- */
191
- /**
192
- * Reset the WP Admin page styles for Gutenberg-like pages.
193
- */
194
- /**
195
- * Creates a checkerboard pattern background to indicate transparency.
196
- * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
197
- */
198
109
  .admin-ui-page {
199
110
  display: flex;
200
111
  height: 100%;
201
- background-color: #fff;
202
- color: #2f2f2f;
112
+ background-color: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
113
+ color: var(--wpds-color-fg-content-neutral, #1e1e1e);
203
114
  position: relative;
204
115
  z-index: 1;
205
116
  flex-flow: column;
@@ -207,25 +118,34 @@
207
118
  }
208
119
 
209
120
  .admin-ui-page__header {
210
- padding: 16px 24px;
211
- border-bottom: 1px solid #f0f0f0;
212
- background: #fff;
121
+ padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
122
+ border-bottom: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #e0e0e0);
123
+ background: var(--wpds-color-bg-surface-neutral-strong, #ffffff);
213
124
  position: sticky;
214
125
  top: 0;
215
126
  z-index: 1;
216
127
  }
217
128
 
129
+ .admin-ui-page__header-title {
130
+ font-family: var(--wpds-font-family-heading, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif);
131
+ font-size: var(--wpds-font-size-xl, 20px);
132
+ font-weight: var(--wpds-font-weight-medium, 499);
133
+ line-height: var(--wpds-font-line-height-xl, 32px);
134
+ margin: 0;
135
+ overflow: hidden;
136
+ text-overflow: ellipsis;
137
+ white-space: nowrap;
138
+ }
139
+
218
140
  .admin-ui-page__sidebar-toggle-slot:empty {
219
141
  display: none;
220
142
  }
221
143
 
222
144
  .admin-ui-page__header-subtitle {
223
- padding-block-end: 8px;
224
- color: #757575;
225
- font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
226
- font-weight: 400;
227
- font-size: 13px;
228
- line-height: 20px;
145
+ padding-block-end: var(--wpds-dimension-padding-xs, 4px);
146
+ color: var(--wpds-color-fg-content-neutral-weak, #6d6d6d);
147
+ font-size: var(--wpds-font-size-md, 13px);
148
+ line-height: var(--wpds-font-line-height-md, 24px);
229
149
  margin: 0;
230
150
  }
231
151
 
@@ -237,12 +157,12 @@
237
157
  }
238
158
 
239
159
  .admin-ui-page__content.has-padding {
240
- padding: 16px 24px;
160
+ padding: var(--wpds-dimension-padding-lg, 16px) var(--wpds-dimension-padding-2xl, 24px);
241
161
  }
242
162
 
243
163
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
244
164
  width: auto;
245
- padding: 0 8px;
165
+ padding: 0 var(--wpds-dimension-padding-xs, 4px);
246
166
  }
247
167
 
248
168
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg {
@@ -251,9 +171,54 @@
251
171
 
252
172
  .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after {
253
173
  content: attr(aria-label);
254
- font-size: 12px;
174
+ font-size: var(--wpds-font-size-sm, 12px);
255
175
  }
256
176
 
177
+ /**
178
+ * SCSS Variables.
179
+ *
180
+ * Please use variables from this sheet to ensure consistency across the UI.
181
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
182
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
183
+ */
184
+ /**
185
+ * Colors
186
+ */
187
+ /**
188
+ * Fonts & basic variables.
189
+ */
190
+ /**
191
+ * Typography
192
+ */
193
+ /**
194
+ * Grid System.
195
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
196
+ */
197
+ /**
198
+ * Radius scale.
199
+ */
200
+ /**
201
+ * Elevation scale.
202
+ */
203
+ /**
204
+ * Dimensions.
205
+ */
206
+ /**
207
+ * Mobile specific styles
208
+ */
209
+ /**
210
+ * Editor styles.
211
+ */
212
+ /**
213
+ * Block & Editor UI.
214
+ */
215
+ /**
216
+ * Block paddings.
217
+ */
218
+ /**
219
+ * React Native specific.
220
+ * These variables do not appear to be used anywhere else.
221
+ */
257
222
  .admin-ui-breadcrumbs__list {
258
223
  list-style: none;
259
224
  padding: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-post",
3
- "version": "8.41.0",
3
+ "version": "8.41.1-next.v.202603161435.0+ab4981c4f",
4
4
  "description": "Edit Post module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -48,37 +48,37 @@
48
48
  "postbox"
49
49
  ],
50
50
  "dependencies": {
51
- "@wordpress/a11y": "^4.41.0",
52
- "@wordpress/admin-ui": "^1.9.0",
53
- "@wordpress/api-fetch": "^7.41.0",
54
- "@wordpress/base-styles": "^6.17.0",
55
- "@wordpress/block-editor": "^15.14.0",
56
- "@wordpress/block-library": "^9.41.0",
57
- "@wordpress/blocks": "^15.14.0",
58
- "@wordpress/commands": "^1.41.0",
59
- "@wordpress/components": "^32.3.0",
60
- "@wordpress/compose": "^7.41.0",
61
- "@wordpress/core-data": "^7.41.0",
62
- "@wordpress/data": "^10.41.0",
63
- "@wordpress/deprecated": "^4.41.0",
64
- "@wordpress/dom": "^4.41.0",
65
- "@wordpress/editor": "^14.41.0",
66
- "@wordpress/element": "^6.41.0",
67
- "@wordpress/global-styles-engine": "^1.8.0",
68
- "@wordpress/hooks": "^4.41.0",
69
- "@wordpress/html-entities": "^4.41.0",
70
- "@wordpress/i18n": "^6.14.0",
71
- "@wordpress/icons": "^11.8.0",
72
- "@wordpress/keyboard-shortcuts": "^5.41.0",
73
- "@wordpress/keycodes": "^4.41.0",
74
- "@wordpress/notices": "^5.41.0",
75
- "@wordpress/plugins": "^7.41.0",
76
- "@wordpress/preferences": "^4.41.0",
77
- "@wordpress/private-apis": "^1.41.0",
78
- "@wordpress/url": "^4.41.0",
79
- "@wordpress/viewport": "^6.41.0",
80
- "@wordpress/warning": "^3.41.0",
81
- "@wordpress/widgets": "^4.41.0",
51
+ "@wordpress/a11y": "^4.41.1-next.v.202603161435.0+ab4981c4f",
52
+ "@wordpress/admin-ui": "^1.9.1-next.v.202603161435.0+ab4981c4f",
53
+ "@wordpress/api-fetch": "^7.41.1-next.v.202603161435.0+ab4981c4f",
54
+ "@wordpress/base-styles": "^6.17.1-next.v.202603161435.0+ab4981c4f",
55
+ "@wordpress/block-editor": "^15.14.1-next.v.202603161435.0+ab4981c4f",
56
+ "@wordpress/block-library": "^9.41.1-next.v.202603161435.0+ab4981c4f",
57
+ "@wordpress/blocks": "^15.14.1-next.v.202603161435.0+ab4981c4f",
58
+ "@wordpress/commands": "^1.41.1-next.v.202603161435.0+ab4981c4f",
59
+ "@wordpress/components": "^32.4.1-next.v.202603161435.0+ab4981c4f",
60
+ "@wordpress/compose": "^7.41.1-next.v.202603161435.0+ab4981c4f",
61
+ "@wordpress/core-data": "^7.41.2-next.v.202603161435.0+ab4981c4f",
62
+ "@wordpress/data": "^10.41.1-next.v.202603161435.0+ab4981c4f",
63
+ "@wordpress/deprecated": "^4.41.1-next.v.202603161435.0+ab4981c4f",
64
+ "@wordpress/dom": "^4.41.1-next.v.202603161435.0+ab4981c4f",
65
+ "@wordpress/editor": "^14.41.2-next.v.202603161435.0+ab4981c4f",
66
+ "@wordpress/element": "^6.41.1-next.v.202603161435.0+ab4981c4f",
67
+ "@wordpress/global-styles-engine": "^1.8.1-next.v.202603161435.0+ab4981c4f",
68
+ "@wordpress/hooks": "^4.41.1-next.v.202603161435.0+ab4981c4f",
69
+ "@wordpress/html-entities": "^4.41.1-next.v.202603161435.0+ab4981c4f",
70
+ "@wordpress/i18n": "^6.14.1-next.v.202603161435.0+ab4981c4f",
71
+ "@wordpress/icons": "^12.0.1-next.v.202603161435.0+ab4981c4f",
72
+ "@wordpress/keyboard-shortcuts": "^5.41.1-next.v.202603161435.0+ab4981c4f",
73
+ "@wordpress/keycodes": "^4.41.1-next.v.202603161435.0+ab4981c4f",
74
+ "@wordpress/notices": "^5.41.1-next.v.202603161435.0+ab4981c4f",
75
+ "@wordpress/plugins": "^7.41.1-next.v.202603161435.0+ab4981c4f",
76
+ "@wordpress/preferences": "^4.41.1-next.v.202603161435.0+ab4981c4f",
77
+ "@wordpress/private-apis": "^1.41.1-next.v.202603161435.0+ab4981c4f",
78
+ "@wordpress/url": "^4.41.1-next.v.202603161435.0+ab4981c4f",
79
+ "@wordpress/viewport": "^6.41.1-next.v.202603161435.0+ab4981c4f",
80
+ "@wordpress/warning": "^3.41.1-next.v.202603161435.0+ab4981c4f",
81
+ "@wordpress/widgets": "^4.41.1-next.v.202603161435.0+ab4981c4f",
82
82
  "clsx": "^2.1.1",
83
83
  "memize": "^2.1.0"
84
84
  },
@@ -89,5 +89,5 @@
89
89
  "publishConfig": {
90
90
  "access": "public"
91
91
  },
92
- "gitHead": "8bfc179b9aed74c0a6dd6e8edf7a49e40e4f87cc"
92
+ "gitHead": "748f4e4564fcc0e6ae90200d90bb993a3cef5828"
93
93
  }
package/src/index.js CHANGED
@@ -72,6 +72,8 @@ export function initializeEditor(
72
72
  showListViewByDefault: false,
73
73
  enableChoosePatternModal: true,
74
74
  isPublishSidebarEnabled: true,
75
+ showCollaborationCursor: false,
76
+ showCollaborationNotifications: true,
75
77
  } );
76
78
 
77
79
  if ( window.__clientSideMediaProcessing ) {