@wordpress/editor 13.3.1 → 13.3.3
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/components/local-autosave-monitor/index.js +18 -21
- package/build/components/local-autosave-monitor/index.js.map +1 -1
- package/build/components/provider/index.js +1 -1
- package/build/components/provider/index.js.map +1 -1
- package/build/components/provider/use-block-editor-settings.js +1 -1
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/build/index.native.js +4 -4
- package/build/index.native.js.map +1 -1
- package/build/lockUnlock.js +2 -2
- package/build/lockUnlock.js.map +1 -1
- package/build/{experiments.js → private-apis.js} +5 -5
- package/build/private-apis.js.map +1 -0
- package/build-module/components/local-autosave-monitor/index.js +18 -21
- package/build-module/components/local-autosave-monitor/index.js.map +1 -1
- package/build-module/components/provider/index.js +2 -2
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/provider/use-block-editor-settings.js +1 -1
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/index.js +1 -1
- package/build-module/index.js.map +1 -1
- package/build-module/index.native.js +1 -1
- package/build-module/index.native.js.map +1 -1
- package/build-module/lockUnlock.js +1 -1
- package/build-module/lockUnlock.js.map +1 -1
- package/build-module/{experiments.js → private-apis.js} +3 -3
- package/build-module/private-apis.js.map +1 -0
- package/build-style/style-rtl.css +15 -35
- package/build-style/style.css +15 -35
- package/package.json +17 -17
- package/src/components/entities-saved-states/style.scss +19 -41
- package/src/components/local-autosave-monitor/index.js +21 -21
- package/src/components/provider/index.js +2 -2
- package/src/components/provider/use-block-editor-settings.js +1 -1
- package/src/index.js +1 -1
- package/src/index.native.js +1 -1
- package/src/lockUnlock.js +1 -1
- package/src/{experiments.js → private-apis.js} +2 -2
- package/build/experiments.js.map +0 -1
- package/build-module/experiments.js.map +0 -1
|
@@ -13,7 +13,7 @@ import inserterMediaCategories from '../media-categories';
|
|
|
13
13
|
import { mediaUpload } from '../../utils';
|
|
14
14
|
import { store as editorStore } from '../../store';
|
|
15
15
|
const EMPTY_BLOCKS_LIST = [];
|
|
16
|
-
const BLOCK_EDITOR_SETTINGS = ['__experimentalBlockDirectory', '
|
|
16
|
+
const BLOCK_EDITOR_SETTINGS = ['__experimentalBlockDirectory', '__experimentalDiscussionSettings', '__experimentalFeatures', '__experimentalGlobalStylesBaseStyles', '__experimentalPreferredStyleVariations', '__experimentalSetIsInserterOpened', '__unstableGalleryWithImageBlocks', 'alignWide', 'allowedBlockTypes', 'blockInspectorTabs', 'allowedMimeTypes', 'bodyPlaceholder', 'canLockBlocks', 'capabilities', 'clearBlockSelection', 'codeEditingEnabled', 'colors', 'disableCustomColors', 'disableCustomFontSizes', 'disableCustomSpacingSizes', 'disableCustomGradients', 'disableLayoutStyles', 'enableCustomLineHeight', 'enableCustomSpacing', 'enableCustomUnits', 'enableOpenverseMediaCategory', 'focusMode', 'fontSizes', 'gradients', 'generateAnchors', 'hasFixedToolbar', 'hasInlineToolbar', 'isDistractionFree', 'imageDefaultSize', 'imageDimensions', 'imageEditing', 'imageSizes', 'isRTL', 'keepCaretInsideBlock', 'locale', 'maxWidth', 'onUpdateDefaultBlockStyles', 'postsPerPage', 'readOnly', 'styles', 'template', 'templateLock', 'titlePlaceholder', 'supportsLayout', 'widgetTypesToHideFromLegacyWidgetBlock', '__unstableHasCustomAppender', '__unstableIsPreviewMode', '__unstableResolvedAssets', '__unstableIsBlockBasedTheme'];
|
|
17
17
|
/**
|
|
18
18
|
* React hook used to compute the block editor settings to use for the post editor.
|
|
19
19
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/editor/src/components/provider/use-block-editor-settings.js"],"names":["Platform","useMemo","useDispatch","useSelect","store","coreStore","__experimentalFetchLinkSuggestions","fetchLinkSuggestions","__experimentalFetchUrlData","fetchUrlData","__","inserterMediaCategories","mediaUpload","editorStore","EMPTY_BLOCKS_LIST","BLOCK_EDITOR_SETTINGS","useBlockEditorSettings","settings","hasTemplate","reusableBlocks","hasUploadPermissions","canUseUnfilteredHTML","userCanCreatePages","pageOnFront","postType","select","canUserUseUnfilteredHTML","getCurrentPostType","isWeb","OS","canUser","getEntityRecord","siteSettings","undefined","getEntityRecords","per_page","page_on_front","settingsBlockPatterns","__experimentalAdditionalBlockPatterns","__experimentalBlockPatterns","settingsBlockPatternCategories","__experimentalAdditionalBlockPatternCategories","__experimentalBlockPatternCategories","restBlockPatterns","restBlockPatternCategories","getBlockPatterns","getBlockPatternCategories","blockPatterns","filter","x","index","arr","findIndex","y","name","postTypes","Array","isArray","includes","blockPatternCategories","undo","saveEntityRecord","createPageEntity","options","Promise","reject","message","Object","fromEntries","entries","key","__experimentalReusableBlocks","search","searchOptions","__experimentalFetchRichUrlData","__experimentalCanUserUseUnfilteredHTML","__experimentalUndo","outlineMode","__experimentalCreatePageEntity","__experimentalUserCanCreatePages","__experimentalPreferPatternsOnRoot"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,QAAT,EAAmBC,OAAnB,QAAkC,oBAAlC;AACA,SAASC,WAAT,EAAsBC,SAAtB,QAAuC,iBAAvC;AACA,SACCC,KAAK,IAAIC,SADV,EAECC,kCAAkC,IAAIC,oBAFvC,EAGCC,0BAA0B,IAAIC,YAH/B,QAIO,sBAJP;AAKA,SAASC,EAAT,QAAmB,iBAAnB;AAEA;AACA;AACA;;AACA,OAAOC,uBAAP,MAAoC,qBAApC;AACA,SAASC,WAAT,QAA4B,aAA5B;AACA,SAASR,KAAK,IAAIS,WAAlB,QAAqC,aAArC;AAEA,MAAMC,iBAAiB,GAAG,EAA1B;AAEA,MAAMC,qBAAqB,GAAG,CAC7B,8BAD6B,EAE7B,uCAF6B,EAG7B,kCAH6B,EAI7B,wBAJ6B,EAK7B,sCAL6B,EAM7B,wCAN6B,EAO7B,mCAP6B,EAQ7B,kCAR6B,EAS7B,WAT6B,EAU7B,mBAV6B,EAW7B,oBAX6B,EAY7B,kBAZ6B,E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/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport {\n\tstore as coreStore,\n\t__experimentalFetchLinkSuggestions as fetchLinkSuggestions,\n\t__experimentalFetchUrlData as fetchUrlData,\n} from '@wordpress/core-data';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport inserterMediaCategories from '../media-categories';\nimport { mediaUpload } from '../../utils';\nimport { store as editorStore } from '../../store';\n\nconst EMPTY_BLOCKS_LIST = [];\n\nconst BLOCK_EDITOR_SETTINGS = [\n\t'__experimentalBlockDirectory',\n\t'__experimentalBlockInspectorAnimation',\n\t'__experimentalDiscussionSettings',\n\t'__experimentalFeatures',\n\t'__experimentalGlobalStylesBaseStyles',\n\t'__experimentalPreferredStyleVariations',\n\t'__experimentalSetIsInserterOpened',\n\t'__unstableGalleryWithImageBlocks',\n\t'alignWide',\n\t'allowedBlockTypes',\n\t'blockInspectorTabs',\n\t'allowedMimeTypes',\n\t'bodyPlaceholder',\n\t'canLockBlocks',\n\t'capabilities',\n\t'clearBlockSelection',\n\t'codeEditingEnabled',\n\t'colors',\n\t'disableCustomColors',\n\t'disableCustomFontSizes',\n\t'disableCustomSpacingSizes',\n\t'disableCustomGradients',\n\t'disableLayoutStyles',\n\t'enableCustomLineHeight',\n\t'enableCustomSpacing',\n\t'enableCustomUnits',\n\t'enableOpenverseMediaCategory',\n\t'focusMode',\n\t'fontSizes',\n\t'gradients',\n\t'generateAnchors',\n\t'hasFixedToolbar',\n\t'hasInlineToolbar',\n\t'isDistractionFree',\n\t'imageDefaultSize',\n\t'imageDimensions',\n\t'imageEditing',\n\t'imageSizes',\n\t'isRTL',\n\t'keepCaretInsideBlock',\n\t'locale',\n\t'maxWidth',\n\t'onUpdateDefaultBlockStyles',\n\t'postsPerPage',\n\t'readOnly',\n\t'styles',\n\t'template',\n\t'templateLock',\n\t'titlePlaceholder',\n\t'supportsLayout',\n\t'widgetTypesToHideFromLegacyWidgetBlock',\n\t'__unstableHasCustomAppender',\n\t'__unstableIsPreviewMode',\n\t'__unstableResolvedAssets',\n];\n\n/**\n * React hook used to compute the block editor settings to use for the post editor.\n *\n * @param {Object} settings EditorProvider settings prop.\n * @param {boolean} hasTemplate Whether template mode is enabled.\n *\n * @return {Object} Block Editor Settings.\n */\nfunction useBlockEditorSettings( settings, hasTemplate ) {\n\tconst {\n\t\treusableBlocks,\n\t\thasUploadPermissions,\n\t\tcanUseUnfilteredHTML,\n\t\tuserCanCreatePages,\n\t\tpageOnFront,\n\t\tpostType,\n\t} = useSelect( ( select ) => {\n\t\tconst { canUserUseUnfilteredHTML, getCurrentPostType } =\n\t\t\tselect( editorStore );\n\t\tconst isWeb = Platform.OS === 'web';\n\t\tconst { canUser, getEntityRecord } = select( coreStore );\n\n\t\tconst siteSettings = canUser( 'read', 'settings' )\n\t\t\t? getEntityRecord( 'root', 'site' )\n\t\t\t: undefined;\n\n\t\treturn {\n\t\t\tcanUseUnfilteredHTML: canUserUseUnfilteredHTML(),\n\t\t\treusableBlocks: isWeb\n\t\t\t\t? select( coreStore ).getEntityRecords(\n\t\t\t\t\t\t'postType',\n\t\t\t\t\t\t'wp_block',\n\t\t\t\t\t\t{ per_page: -1 }\n\t\t\t\t )\n\t\t\t\t: EMPTY_BLOCKS_LIST, // Reusable blocks are fetched in the native version of this hook.\n\t\t\thasUploadPermissions: canUser( 'create', 'media' ) ?? true,\n\t\t\tuserCanCreatePages: canUser( 'create', 'pages' ),\n\t\t\tpageOnFront: siteSettings?.page_on_front,\n\t\t\tpostType: getCurrentPostType(),\n\t\t};\n\t}, [] );\n\n\tconst settingsBlockPatterns =\n\t\tsettings.__experimentalAdditionalBlockPatterns ?? // WP 6.0\n\t\tsettings.__experimentalBlockPatterns; // WP 5.9\n\tconst settingsBlockPatternCategories =\n\t\tsettings.__experimentalAdditionalBlockPatternCategories ?? // WP 6.0\n\t\tsettings.__experimentalBlockPatternCategories; // WP 5.9\n\n\tconst { restBlockPatterns, restBlockPatternCategories } = useSelect(\n\t\t( select ) => ( {\n\t\t\trestBlockPatterns: select( coreStore ).getBlockPatterns(),\n\t\t\trestBlockPatternCategories:\n\t\t\t\tselect( coreStore ).getBlockPatternCategories(),\n\t\t} ),\n\t\t[]\n\t);\n\n\tconst blockPatterns = useMemo(\n\t\t() =>\n\t\t\t[\n\t\t\t\t...( settingsBlockPatterns || [] ),\n\t\t\t\t...( restBlockPatterns || [] ),\n\t\t\t]\n\t\t\t\t.filter(\n\t\t\t\t\t( x, index, arr ) =>\n\t\t\t\t\t\tindex === arr.findIndex( ( y ) => x.name === y.name )\n\t\t\t\t)\n\t\t\t\t.filter( ( { postTypes } ) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t! postTypes ||\n\t\t\t\t\t\t( Array.isArray( postTypes ) &&\n\t\t\t\t\t\t\tpostTypes.includes( postType ) )\n\t\t\t\t\t);\n\t\t\t\t} ),\n\t\t[ settingsBlockPatterns, restBlockPatterns, postType ]\n\t);\n\n\tconst blockPatternCategories = useMemo(\n\t\t() =>\n\t\t\t[\n\t\t\t\t...( settingsBlockPatternCategories || [] ),\n\t\t\t\t...( restBlockPatternCategories || [] ),\n\t\t\t].filter(\n\t\t\t\t( x, index, arr ) =>\n\t\t\t\t\tindex === arr.findIndex( ( y ) => x.name === y.name )\n\t\t\t),\n\t\t[ settingsBlockPatternCategories, restBlockPatternCategories ]\n\t);\n\n\tconst { undo } = useDispatch( editorStore );\n\n\tconst { saveEntityRecord } = useDispatch( coreStore );\n\n\t/**\n\t * Creates a Post entity.\n\t * This is utilised by the Link UI to allow for on-the-fly creation of Posts/Pages.\n\t *\n\t * @param {Object} options parameters for the post being created. These mirror those used on 3rd param of saveEntityRecord.\n\t * @return {Object} the post type object that was created.\n\t */\n\tconst createPageEntity = ( options ) => {\n\t\tif ( ! userCanCreatePages ) {\n\t\t\treturn Promise.reject( {\n\t\t\t\tmessage: __( 'You do not have permission to create Pages.' ),\n\t\t\t} );\n\t\t}\n\t\treturn saveEntityRecord( 'postType', 'page', options );\n\t};\n\n\treturn useMemo(\n\t\t() => ( {\n\t\t\t...Object.fromEntries(\n\t\t\t\tObject.entries( settings ).filter( ( [ key ] ) =>\n\t\t\t\t\tBLOCK_EDITOR_SETTINGS.includes( key )\n\t\t\t\t)\n\t\t\t),\n\t\t\tmediaUpload: hasUploadPermissions ? mediaUpload : undefined,\n\t\t\t__experimentalReusableBlocks: reusableBlocks,\n\t\t\t__experimentalBlockPatterns: blockPatterns,\n\t\t\t__experimentalBlockPatternCategories: blockPatternCategories,\n\t\t\t__experimentalFetchLinkSuggestions: ( search, searchOptions ) =>\n\t\t\t\tfetchLinkSuggestions( search, searchOptions, settings ),\n\t\t\tinserterMediaCategories,\n\t\t\t__experimentalFetchRichUrlData: fetchUrlData,\n\t\t\t__experimentalCanUserUseUnfilteredHTML: canUseUnfilteredHTML,\n\t\t\t__experimentalUndo: undo,\n\t\t\toutlineMode: hasTemplate,\n\t\t\t__experimentalCreatePageEntity: createPageEntity,\n\t\t\t__experimentalUserCanCreatePages: userCanCreatePages,\n\t\t\tpageOnFront,\n\t\t\t__experimentalPreferPatternsOnRoot: hasTemplate,\n\t\t} ),\n\t\t[\n\t\t\tsettings,\n\t\t\thasUploadPermissions,\n\t\t\treusableBlocks,\n\t\t\tblockPatterns,\n\t\t\tblockPatternCategories,\n\t\t\tcanUseUnfilteredHTML,\n\t\t\tundo,\n\t\t\thasTemplate,\n\t\t\tuserCanCreatePages,\n\t\t\tpageOnFront,\n\t\t]\n\t);\n}\n\nexport default useBlockEditorSettings;\n"]}
|
|
1
|
+
{"version":3,"sources":["@wordpress/editor/src/components/provider/use-block-editor-settings.js"],"names":["Platform","useMemo","useDispatch","useSelect","store","coreStore","__experimentalFetchLinkSuggestions","fetchLinkSuggestions","__experimentalFetchUrlData","fetchUrlData","__","inserterMediaCategories","mediaUpload","editorStore","EMPTY_BLOCKS_LIST","BLOCK_EDITOR_SETTINGS","useBlockEditorSettings","settings","hasTemplate","reusableBlocks","hasUploadPermissions","canUseUnfilteredHTML","userCanCreatePages","pageOnFront","postType","select","canUserUseUnfilteredHTML","getCurrentPostType","isWeb","OS","canUser","getEntityRecord","siteSettings","undefined","getEntityRecords","per_page","page_on_front","settingsBlockPatterns","__experimentalAdditionalBlockPatterns","__experimentalBlockPatterns","settingsBlockPatternCategories","__experimentalAdditionalBlockPatternCategories","__experimentalBlockPatternCategories","restBlockPatterns","restBlockPatternCategories","getBlockPatterns","getBlockPatternCategories","blockPatterns","filter","x","index","arr","findIndex","y","name","postTypes","Array","isArray","includes","blockPatternCategories","undo","saveEntityRecord","createPageEntity","options","Promise","reject","message","Object","fromEntries","entries","key","__experimentalReusableBlocks","search","searchOptions","__experimentalFetchRichUrlData","__experimentalCanUserUseUnfilteredHTML","__experimentalUndo","outlineMode","__experimentalCreatePageEntity","__experimentalUserCanCreatePages","__experimentalPreferPatternsOnRoot"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,QAAT,EAAmBC,OAAnB,QAAkC,oBAAlC;AACA,SAASC,WAAT,EAAsBC,SAAtB,QAAuC,iBAAvC;AACA,SACCC,KAAK,IAAIC,SADV,EAECC,kCAAkC,IAAIC,oBAFvC,EAGCC,0BAA0B,IAAIC,YAH/B,QAIO,sBAJP;AAKA,SAASC,EAAT,QAAmB,iBAAnB;AAEA;AACA;AACA;;AACA,OAAOC,uBAAP,MAAoC,qBAApC;AACA,SAASC,WAAT,QAA4B,aAA5B;AACA,SAASR,KAAK,IAAIS,WAAlB,QAAqC,aAArC;AAEA,MAAMC,iBAAiB,GAAG,EAA1B;AAEA,MAAMC,qBAAqB,GAAG,CAC7B,8BAD6B,EAE7B,kCAF6B,EAG7B,wBAH6B,EAI7B,sCAJ6B,EAK7B,wCAL6B,EAM7B,mCAN6B,EAO7B,kCAP6B,EAQ7B,WAR6B,EAS7B,mBAT6B,EAU7B,oBAV6B,EAW7B,kBAX6B,EAY7B,iBAZ6B,EAa7B,eAb6B,EAc7B,cAd6B,EAe7B,qBAf6B,EAgB7B,oBAhB6B,EAiB7B,QA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AAsBE,OAAtB,CAAvB;AACA,GAPD;;AASA,SAAO9D,OAAO,CACb,OAAQ,EACP,GAAGkE,MAAM,CAACC,WAAP,CACFD,MAAM,CAACE,OAAP,CAAgBpD,QAAhB,EAA2B+B,MAA3B,CAAmC;AAAA,UAAE,CAAEsB,GAAF,CAAF;AAAA,aAClCvD,qBAAqB,CAAC2C,QAAtB,CAAgCY,GAAhC,CADkC;AAAA,KAAnC,CADE,CADI;AAMP1D,IAAAA,WAAW,EAAEQ,oBAAoB,GAAGR,WAAH,GAAiBqB,SAN3C;AAOPsC,IAAAA,4BAA4B,EAAEpD,cAPvB;AAQPoB,IAAAA,2BAA2B,EAAEQ,aARtB;AASPL,IAAAA,oCAAoC,EAAEiB,sBAT/B;AAUPrD,IAAAA,kCAAkC,EAAE,CAAEkE,MAAF,EAAUC,aAAV,KACnClE,oBAAoB,CAAEiE,MAAF,EAAUC,aAAV,EAAyBxD,QAAzB,CAXd;AAYPN,IAAAA,uBAZO;AAaP+D,IAAAA,8BAA8B,EAAEjE,YAbzB;AAcPkE,IAAAA,sCAAsC,EAAEtD,oBAdjC;AAePuD,IAAAA,kBAAkB,EAAEhB,IAfb;AAgBPiB,IAAAA,WAAW,EAAE3D,WAhBN;AAiBP4D,IAAAA,8BAA8B,EAAEhB,gBAjBzB;AAkBPiB,IAAAA,gCAAgC,EAAEzD,kBAlB3B;AAmBPC,IAAAA,WAnBO;AAoBPyD,IAAAA,kCAAkC,EAAE9D;AApB7B,GAAR,CADa,EAuBb,CACCD,QADD,EAECG,oBAFD,EAGCD,cAHD,EAIC4B,aAJD,EAKCY,sBALD,EAMCtC,oBAND,EAOCuC,IAPD,EAQC1C,WARD,EASCI,kBATD,EAUCC,WAVD,CAvBa,CAAd;AAoCA;;AAED,eAAeP,sBAAf","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Platform, useMemo } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport {\n\tstore as coreStore,\n\t__experimentalFetchLinkSuggestions as fetchLinkSuggestions,\n\t__experimentalFetchUrlData as fetchUrlData,\n} from '@wordpress/core-data';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport inserterMediaCategories from '../media-categories';\nimport { mediaUpload } from '../../utils';\nimport { store as editorStore } from '../../store';\n\nconst EMPTY_BLOCKS_LIST = [];\n\nconst BLOCK_EDITOR_SETTINGS = [\n\t'__experimentalBlockDirectory',\n\t'__experimentalDiscussionSettings',\n\t'__experimentalFeatures',\n\t'__experimentalGlobalStylesBaseStyles',\n\t'__experimentalPreferredStyleVariations',\n\t'__experimentalSetIsInserterOpened',\n\t'__unstableGalleryWithImageBlocks',\n\t'alignWide',\n\t'allowedBlockTypes',\n\t'blockInspectorTabs',\n\t'allowedMimeTypes',\n\t'bodyPlaceholder',\n\t'canLockBlocks',\n\t'capabilities',\n\t'clearBlockSelection',\n\t'codeEditingEnabled',\n\t'colors',\n\t'disableCustomColors',\n\t'disableCustomFontSizes',\n\t'disableCustomSpacingSizes',\n\t'disableCustomGradients',\n\t'disableLayoutStyles',\n\t'enableCustomLineHeight',\n\t'enableCustomSpacing',\n\t'enableCustomUnits',\n\t'enableOpenverseMediaCategory',\n\t'focusMode',\n\t'fontSizes',\n\t'gradients',\n\t'generateAnchors',\n\t'hasFixedToolbar',\n\t'hasInlineToolbar',\n\t'isDistractionFree',\n\t'imageDefaultSize',\n\t'imageDimensions',\n\t'imageEditing',\n\t'imageSizes',\n\t'isRTL',\n\t'keepCaretInsideBlock',\n\t'locale',\n\t'maxWidth',\n\t'onUpdateDefaultBlockStyles',\n\t'postsPerPage',\n\t'readOnly',\n\t'styles',\n\t'template',\n\t'templateLock',\n\t'titlePlaceholder',\n\t'supportsLayout',\n\t'widgetTypesToHideFromLegacyWidgetBlock',\n\t'__unstableHasCustomAppender',\n\t'__unstableIsPreviewMode',\n\t'__unstableResolvedAssets',\n\t'__unstableIsBlockBasedTheme',\n];\n\n/**\n * React hook used to compute the block editor settings to use for the post editor.\n *\n * @param {Object} settings EditorProvider settings prop.\n * @param {boolean} hasTemplate Whether template mode is enabled.\n *\n * @return {Object} Block Editor Settings.\n */\nfunction useBlockEditorSettings( settings, hasTemplate ) {\n\tconst {\n\t\treusableBlocks,\n\t\thasUploadPermissions,\n\t\tcanUseUnfilteredHTML,\n\t\tuserCanCreatePages,\n\t\tpageOnFront,\n\t\tpostType,\n\t} = useSelect( ( select ) => {\n\t\tconst { canUserUseUnfilteredHTML, getCurrentPostType } =\n\t\t\tselect( editorStore );\n\t\tconst isWeb = Platform.OS === 'web';\n\t\tconst { canUser, getEntityRecord } = select( coreStore );\n\n\t\tconst siteSettings = canUser( 'read', 'settings' )\n\t\t\t? getEntityRecord( 'root', 'site' )\n\t\t\t: undefined;\n\n\t\treturn {\n\t\t\tcanUseUnfilteredHTML: canUserUseUnfilteredHTML(),\n\t\t\treusableBlocks: isWeb\n\t\t\t\t? select( coreStore ).getEntityRecords(\n\t\t\t\t\t\t'postType',\n\t\t\t\t\t\t'wp_block',\n\t\t\t\t\t\t{ per_page: -1 }\n\t\t\t\t )\n\t\t\t\t: EMPTY_BLOCKS_LIST, // Reusable blocks are fetched in the native version of this hook.\n\t\t\thasUploadPermissions: canUser( 'create', 'media' ) ?? true,\n\t\t\tuserCanCreatePages: canUser( 'create', 'pages' ),\n\t\t\tpageOnFront: siteSettings?.page_on_front,\n\t\t\tpostType: getCurrentPostType(),\n\t\t};\n\t}, [] );\n\n\tconst settingsBlockPatterns =\n\t\tsettings.__experimentalAdditionalBlockPatterns ?? // WP 6.0\n\t\tsettings.__experimentalBlockPatterns; // WP 5.9\n\tconst settingsBlockPatternCategories =\n\t\tsettings.__experimentalAdditionalBlockPatternCategories ?? // WP 6.0\n\t\tsettings.__experimentalBlockPatternCategories; // WP 5.9\n\n\tconst { restBlockPatterns, restBlockPatternCategories } = useSelect(\n\t\t( select ) => ( {\n\t\t\trestBlockPatterns: select( coreStore ).getBlockPatterns(),\n\t\t\trestBlockPatternCategories:\n\t\t\t\tselect( coreStore ).getBlockPatternCategories(),\n\t\t} ),\n\t\t[]\n\t);\n\n\tconst blockPatterns = useMemo(\n\t\t() =>\n\t\t\t[\n\t\t\t\t...( settingsBlockPatterns || [] ),\n\t\t\t\t...( restBlockPatterns || [] ),\n\t\t\t]\n\t\t\t\t.filter(\n\t\t\t\t\t( x, index, arr ) =>\n\t\t\t\t\t\tindex === arr.findIndex( ( y ) => x.name === y.name )\n\t\t\t\t)\n\t\t\t\t.filter( ( { postTypes } ) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t! postTypes ||\n\t\t\t\t\t\t( Array.isArray( postTypes ) &&\n\t\t\t\t\t\t\tpostTypes.includes( postType ) )\n\t\t\t\t\t);\n\t\t\t\t} ),\n\t\t[ settingsBlockPatterns, restBlockPatterns, postType ]\n\t);\n\n\tconst blockPatternCategories = useMemo(\n\t\t() =>\n\t\t\t[\n\t\t\t\t...( settingsBlockPatternCategories || [] ),\n\t\t\t\t...( restBlockPatternCategories || [] ),\n\t\t\t].filter(\n\t\t\t\t( x, index, arr ) =>\n\t\t\t\t\tindex === arr.findIndex( ( y ) => x.name === y.name )\n\t\t\t),\n\t\t[ settingsBlockPatternCategories, restBlockPatternCategories ]\n\t);\n\n\tconst { undo } = useDispatch( editorStore );\n\n\tconst { saveEntityRecord } = useDispatch( coreStore );\n\n\t/**\n\t * Creates a Post entity.\n\t * This is utilised by the Link UI to allow for on-the-fly creation of Posts/Pages.\n\t *\n\t * @param {Object} options parameters for the post being created. These mirror those used on 3rd param of saveEntityRecord.\n\t * @return {Object} the post type object that was created.\n\t */\n\tconst createPageEntity = ( options ) => {\n\t\tif ( ! userCanCreatePages ) {\n\t\t\treturn Promise.reject( {\n\t\t\t\tmessage: __( 'You do not have permission to create Pages.' ),\n\t\t\t} );\n\t\t}\n\t\treturn saveEntityRecord( 'postType', 'page', options );\n\t};\n\n\treturn useMemo(\n\t\t() => ( {\n\t\t\t...Object.fromEntries(\n\t\t\t\tObject.entries( settings ).filter( ( [ key ] ) =>\n\t\t\t\t\tBLOCK_EDITOR_SETTINGS.includes( key )\n\t\t\t\t)\n\t\t\t),\n\t\t\tmediaUpload: hasUploadPermissions ? mediaUpload : undefined,\n\t\t\t__experimentalReusableBlocks: reusableBlocks,\n\t\t\t__experimentalBlockPatterns: blockPatterns,\n\t\t\t__experimentalBlockPatternCategories: blockPatternCategories,\n\t\t\t__experimentalFetchLinkSuggestions: ( search, searchOptions ) =>\n\t\t\t\tfetchLinkSuggestions( search, searchOptions, settings ),\n\t\t\tinserterMediaCategories,\n\t\t\t__experimentalFetchRichUrlData: fetchUrlData,\n\t\t\t__experimentalCanUserUseUnfilteredHTML: canUseUnfilteredHTML,\n\t\t\t__experimentalUndo: undo,\n\t\t\toutlineMode: hasTemplate,\n\t\t\t__experimentalCreatePageEntity: createPageEntity,\n\t\t\t__experimentalUserCanCreatePages: userCanCreatePages,\n\t\t\tpageOnFront,\n\t\t\t__experimentalPreferPatternsOnRoot: hasTemplate,\n\t\t} ),\n\t\t[\n\t\t\tsettings,\n\t\t\thasUploadPermissions,\n\t\t\treusableBlocks,\n\t\t\tblockPatterns,\n\t\t\tblockPatternCategories,\n\t\t\tcanUseUnfilteredHTML,\n\t\t\tundo,\n\t\t\thasTemplate,\n\t\t\tuserCanCreatePages,\n\t\t\tpageOnFront,\n\t\t]\n\t);\n}\n\nexport default useBlockEditorSettings;\n"]}
|
package/build-module/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/editor/src/index.js"],"names":["storeConfig","store","transformStyles"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,SAAP;AAEA,SAASA,WAAT,EAAsBC,KAAtB,QAAmC,SAAnC;AACA,cAAc,cAAd;AACA,cAAc,SAAd;AACA,cAAc,
|
|
1
|
+
{"version":3,"sources":["@wordpress/editor/src/index.js"],"names":["storeConfig","store","transformStyles"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,SAAP;AAEA,SAASA,WAAT,EAAsBC,KAAtB,QAAmC,SAAnC;AACA,cAAc,cAAd;AACA,cAAc,SAAd;AACA,cAAc,gBAAd;AAEA;AACA;AACA;;AACA,SAASC,eAAT,QAAgC,yBAAhC","sourcesContent":["/**\n * Internal dependencies\n */\nimport './hooks';\n\nexport { storeConfig, store } from './store';\nexport * from './components';\nexport * from './utils';\nexport * from './private-apis';\n\n/*\n * Backward compatibility\n */\nexport { transformStyles } from '@wordpress/block-editor';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/editor/src/index.native.js"],"names":["store"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,yBAAP;AACA,OAAO,sBAAP;AACA,OAAO,sBAAP;AAEA;AACA;AACA;;AACA,OAAO,SAAP;AAEA,SAASA,KAAT,QAAsB,SAAtB;AACA,cAAc,cAAd;AACA,cAAc,SAAd;AACA,cAAc,
|
|
1
|
+
{"version":3,"sources":["@wordpress/editor/src/index.native.js"],"names":["store"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,yBAAP;AACA,OAAO,sBAAP;AACA,OAAO,sBAAP;AAEA;AACA;AACA;;AACA,OAAO,SAAP;AAEA,SAASA,KAAT,QAAsB,SAAtB;AACA,cAAc,cAAd;AACA,cAAc,SAAd;AACA,cAAc,gBAAd","sourcesContent":["/**\n * WordPress dependencies\n */\nimport '@wordpress/block-editor';\nimport '@wordpress/core-data';\nimport '@wordpress/rich-text';\n\n/**\n * Internal dependencies\n */\nimport './hooks';\n\nexport { store } from './store';\nexport * from './components';\nexport * from './utils';\nexport * from './private-apis';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/editor/src/lockUnlock.js"],"names":["__dangerousOptInToUnstableAPIsOnlyForCoreModules","lock","unlock"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,gDAAT,QAAiE,
|
|
1
|
+
{"version":3,"sources":["@wordpress/editor/src/lockUnlock.js"],"names":["__dangerousOptInToUnstableAPIsOnlyForCoreModules","lock","unlock"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,gDAAT,QAAiE,yBAAjE;AACA,OAAO,MAAM;AAAEC,EAAAA,IAAF;AAAQC,EAAAA;AAAR,IACZF,gDAAgD,CAC/C,8GAD+C,EAE/C,mBAF+C,CAD1C","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.',\n\t\t'@wordpress/editor'\n\t);\n"]}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { ExperimentalEditorProvider } from './components/provider';
|
|
5
5
|
import { lock } from './lockUnlock';
|
|
6
|
-
export const
|
|
7
|
-
lock(
|
|
6
|
+
export const privateApis = {};
|
|
7
|
+
lock(privateApis, {
|
|
8
8
|
ExperimentalEditorProvider
|
|
9
9
|
});
|
|
10
|
-
//# sourceMappingURL=
|
|
10
|
+
//# sourceMappingURL=private-apis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["@wordpress/editor/src/private-apis.js"],"names":["ExperimentalEditorProvider","lock","privateApis"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,0BAAT,QAA2C,uBAA3C;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,OAAO,MAAMC,WAAW,GAAG,EAApB;AACPD,IAAI,CAAEC,WAAF,EAAe;AAClBF,EAAAA;AADkB,CAAf,CAAJ","sourcesContent":["/**\n * Internal dependencies\n */\nimport { ExperimentalEditorProvider } from './components/provider';\nimport { lock } from './lockUnlock';\n\nexport const privateApis = {};\nlock( privateApis, {\n\tExperimentalEditorProvider,\n} );\n"]}
|
|
@@ -234,54 +234,34 @@
|
|
|
234
234
|
margin-top: 12px;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
.entities-saved-
|
|
238
|
-
box-sizing: border-box;
|
|
239
|
-
background: #fff;
|
|
240
|
-
position: fixed;
|
|
241
|
-
z-index: 100001;
|
|
242
|
-
top: 46px;
|
|
243
|
-
bottom: 0;
|
|
244
|
-
left: 0;
|
|
245
|
-
right: 0;
|
|
246
|
-
overflow: auto;
|
|
247
|
-
box-sizing: border-box;
|
|
248
|
-
}
|
|
249
|
-
.entities-saved-states__panel *,
|
|
250
|
-
.entities-saved-states__panel *::before,
|
|
251
|
-
.entities-saved-states__panel *::after {
|
|
252
|
-
box-sizing: inherit;
|
|
253
|
-
}
|
|
254
|
-
.entities-saved-states__panel .entities-saved-states__find-entity {
|
|
237
|
+
.entities-saved-states__find-entity {
|
|
255
238
|
display: none;
|
|
256
239
|
}
|
|
257
|
-
.entities-saved-states__panel .entities-saved-states__find-entity-small {
|
|
258
|
-
display: block;
|
|
259
|
-
}
|
|
260
240
|
@media (min-width: 782px) {
|
|
261
|
-
.entities-saved-
|
|
262
|
-
top: 32px;
|
|
263
|
-
right: auto;
|
|
264
|
-
width: 280px;
|
|
265
|
-
border-right: 1px solid #ddd;
|
|
266
|
-
}
|
|
267
|
-
body.is-fullscreen-mode .entities-saved-states__panel {
|
|
268
|
-
top: 0;
|
|
269
|
-
}
|
|
270
|
-
.entities-saved-states__panel .entities-saved-states__find-entity {
|
|
241
|
+
.entities-saved-states__find-entity {
|
|
271
242
|
display: block;
|
|
272
243
|
}
|
|
273
|
-
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.entities-saved-states__find-entity-small {
|
|
247
|
+
display: block;
|
|
248
|
+
}
|
|
249
|
+
@media (min-width: 782px) {
|
|
250
|
+
.entities-saved-states__find-entity-small {
|
|
274
251
|
display: none;
|
|
275
252
|
}
|
|
276
253
|
}
|
|
277
|
-
|
|
254
|
+
|
|
255
|
+
.entities-saved-states__panel-header {
|
|
256
|
+
box-sizing: border-box;
|
|
278
257
|
background: #fff;
|
|
279
258
|
padding-right: 8px;
|
|
280
259
|
padding-left: 8px;
|
|
281
|
-
height:
|
|
260
|
+
height: 60px;
|
|
282
261
|
border-bottom: 1px solid #ddd;
|
|
283
262
|
}
|
|
284
|
-
|
|
263
|
+
|
|
264
|
+
.entities-saved-states__text-prompt {
|
|
285
265
|
padding: 16px;
|
|
286
266
|
padding-bottom: 4px;
|
|
287
267
|
}
|
package/build-style/style.css
CHANGED
|
@@ -234,54 +234,34 @@
|
|
|
234
234
|
margin-top: 12px;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
.entities-saved-
|
|
238
|
-
box-sizing: border-box;
|
|
239
|
-
background: #fff;
|
|
240
|
-
position: fixed;
|
|
241
|
-
z-index: 100001;
|
|
242
|
-
top: 46px;
|
|
243
|
-
bottom: 0;
|
|
244
|
-
right: 0;
|
|
245
|
-
left: 0;
|
|
246
|
-
overflow: auto;
|
|
247
|
-
box-sizing: border-box;
|
|
248
|
-
}
|
|
249
|
-
.entities-saved-states__panel *,
|
|
250
|
-
.entities-saved-states__panel *::before,
|
|
251
|
-
.entities-saved-states__panel *::after {
|
|
252
|
-
box-sizing: inherit;
|
|
253
|
-
}
|
|
254
|
-
.entities-saved-states__panel .entities-saved-states__find-entity {
|
|
237
|
+
.entities-saved-states__find-entity {
|
|
255
238
|
display: none;
|
|
256
239
|
}
|
|
257
|
-
.entities-saved-states__panel .entities-saved-states__find-entity-small {
|
|
258
|
-
display: block;
|
|
259
|
-
}
|
|
260
240
|
@media (min-width: 782px) {
|
|
261
|
-
.entities-saved-
|
|
262
|
-
top: 32px;
|
|
263
|
-
left: auto;
|
|
264
|
-
width: 280px;
|
|
265
|
-
border-left: 1px solid #ddd;
|
|
266
|
-
}
|
|
267
|
-
body.is-fullscreen-mode .entities-saved-states__panel {
|
|
268
|
-
top: 0;
|
|
269
|
-
}
|
|
270
|
-
.entities-saved-states__panel .entities-saved-states__find-entity {
|
|
241
|
+
.entities-saved-states__find-entity {
|
|
271
242
|
display: block;
|
|
272
243
|
}
|
|
273
|
-
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.entities-saved-states__find-entity-small {
|
|
247
|
+
display: block;
|
|
248
|
+
}
|
|
249
|
+
@media (min-width: 782px) {
|
|
250
|
+
.entities-saved-states__find-entity-small {
|
|
274
251
|
display: none;
|
|
275
252
|
}
|
|
276
253
|
}
|
|
277
|
-
|
|
254
|
+
|
|
255
|
+
.entities-saved-states__panel-header {
|
|
256
|
+
box-sizing: border-box;
|
|
278
257
|
background: #fff;
|
|
279
258
|
padding-left: 8px;
|
|
280
259
|
padding-right: 8px;
|
|
281
|
-
height:
|
|
260
|
+
height: 60px;
|
|
282
261
|
border-bottom: 1px solid #ddd;
|
|
283
262
|
}
|
|
284
|
-
|
|
263
|
+
|
|
264
|
+
.entities-saved-states__text-prompt {
|
|
285
265
|
padding: 16px;
|
|
286
266
|
padding-bottom: 4px;
|
|
287
267
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.3",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -34,29 +34,29 @@
|
|
|
34
34
|
"@wordpress/a11y": "^3.26.1",
|
|
35
35
|
"@wordpress/api-fetch": "^6.23.1",
|
|
36
36
|
"@wordpress/blob": "^3.26.1",
|
|
37
|
-
"@wordpress/block-editor": "^11.3.
|
|
38
|
-
"@wordpress/blocks": "^12.3.
|
|
39
|
-
"@wordpress/components": "^23.3.
|
|
40
|
-
"@wordpress/compose": "^6.3.
|
|
41
|
-
"@wordpress/core-data": "^6.3.
|
|
42
|
-
"@wordpress/data": "^8.3.
|
|
43
|
-
"@wordpress/date": "^4.26.
|
|
37
|
+
"@wordpress/block-editor": "^11.3.3",
|
|
38
|
+
"@wordpress/blocks": "^12.3.2",
|
|
39
|
+
"@wordpress/components": "^23.3.2",
|
|
40
|
+
"@wordpress/compose": "^6.3.2",
|
|
41
|
+
"@wordpress/core-data": "^6.3.2",
|
|
42
|
+
"@wordpress/data": "^8.3.2",
|
|
43
|
+
"@wordpress/date": "^4.26.2",
|
|
44
44
|
"@wordpress/deprecated": "^3.26.1",
|
|
45
45
|
"@wordpress/dom": "^3.26.1",
|
|
46
46
|
"@wordpress/element": "^5.3.1",
|
|
47
|
-
"@wordpress/experiments": "^0.8.1",
|
|
48
47
|
"@wordpress/hooks": "^3.26.1",
|
|
49
48
|
"@wordpress/html-entities": "^3.26.1",
|
|
50
49
|
"@wordpress/i18n": "^4.26.1",
|
|
51
50
|
"@wordpress/icons": "^9.17.1",
|
|
52
|
-
"@wordpress/keyboard-shortcuts": "^4.3.
|
|
53
|
-
"@wordpress/keycodes": "^3.26.
|
|
51
|
+
"@wordpress/keyboard-shortcuts": "^4.3.2",
|
|
52
|
+
"@wordpress/keycodes": "^3.26.2",
|
|
54
53
|
"@wordpress/media-utils": "^4.17.1",
|
|
55
|
-
"@wordpress/notices": "^3.26.
|
|
56
|
-
"@wordpress/preferences": "^3.3.
|
|
57
|
-
"@wordpress/
|
|
58
|
-
"@wordpress/
|
|
59
|
-
"@wordpress/
|
|
54
|
+
"@wordpress/notices": "^3.26.2",
|
|
55
|
+
"@wordpress/preferences": "^3.3.2",
|
|
56
|
+
"@wordpress/private-apis": "^0.8.1",
|
|
57
|
+
"@wordpress/reusable-blocks": "^4.3.3",
|
|
58
|
+
"@wordpress/rich-text": "^6.3.2",
|
|
59
|
+
"@wordpress/server-side-render": "^4.3.2",
|
|
60
60
|
"@wordpress/url": "^3.27.1",
|
|
61
61
|
"@wordpress/wordcount": "^3.26.1",
|
|
62
62
|
"classnames": "^2.3.1",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "1bf01c01a8238ce3a681ad1e517f86033818b78d"
|
|
79
79
|
}
|
|
@@ -1,50 +1,28 @@
|
|
|
1
|
-
.entities-saved-
|
|
2
|
-
|
|
3
|
-
background: $white;
|
|
4
|
-
position: fixed;
|
|
5
|
-
z-index: z-index(".entities-saved-states__panel");
|
|
6
|
-
top: $admin-bar-height-big;
|
|
7
|
-
bottom: 0;
|
|
8
|
-
right: 0;
|
|
9
|
-
left: 0;
|
|
10
|
-
overflow: auto;
|
|
11
|
-
box-sizing: border-box;
|
|
1
|
+
.entities-saved-states__find-entity {
|
|
2
|
+
display: none;
|
|
12
3
|
|
|
13
|
-
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
16
|
-
.entities-saved-states__find-entity-small {
|
|
4
|
+
@include break-medium() {
|
|
17
5
|
display: block;
|
|
18
6
|
}
|
|
7
|
+
}
|
|
8
|
+
.entities-saved-states__find-entity-small {
|
|
9
|
+
display: block;
|
|
19
10
|
|
|
20
11
|
@include break-medium() {
|
|
21
|
-
|
|
22
|
-
left: auto;
|
|
23
|
-
width: $sidebar-width;
|
|
24
|
-
border-left: $border-width solid $gray-300;
|
|
25
|
-
|
|
26
|
-
body.is-fullscreen-mode & {
|
|
27
|
-
top: 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.entities-saved-states__find-entity {
|
|
31
|
-
display: block;
|
|
32
|
-
}
|
|
33
|
-
.entities-saved-states__find-entity-small {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
12
|
+
display: none;
|
|
36
13
|
}
|
|
14
|
+
}
|
|
37
15
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
16
|
+
.entities-saved-states__panel-header {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
background: $white;
|
|
19
|
+
padding-left: $grid-unit-10;
|
|
20
|
+
padding-right: $grid-unit-10;
|
|
21
|
+
height: $header-height;
|
|
22
|
+
border-bottom: $border-width solid $gray-300;
|
|
23
|
+
}
|
|
45
24
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
25
|
+
.entities-saved-states__text-prompt {
|
|
26
|
+
padding: $grid-unit-20;
|
|
27
|
+
padding-bottom: $grid-unit-05;
|
|
50
28
|
}
|
|
@@ -23,7 +23,6 @@ const requestIdleCallback = window.requestIdleCallback
|
|
|
23
23
|
: window.requestAnimationFrame;
|
|
24
24
|
|
|
25
25
|
let hasStorageSupport;
|
|
26
|
-
let uniqueId = 0;
|
|
27
26
|
|
|
28
27
|
/**
|
|
29
28
|
* Function which returns true if the current environment supports browser
|
|
@@ -31,17 +30,19 @@ let uniqueId = 0;
|
|
|
31
30
|
* reused in subsequent invocations.
|
|
32
31
|
*/
|
|
33
32
|
const hasSessionStorageSupport = () => {
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
if ( hasStorageSupport !== undefined ) {
|
|
34
|
+
return hasStorageSupport;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
// Private Browsing in Safari 10 and earlier will throw an error when
|
|
39
|
+
// attempting to set into sessionStorage. The test here is intentional in
|
|
40
|
+
// causing a thrown error as condition bailing from local autosave.
|
|
41
|
+
window.sessionStorage.setItem( '__wpEditorTestSessionStorage', '' );
|
|
42
|
+
window.sessionStorage.removeItem( '__wpEditorTestSessionStorage' );
|
|
43
|
+
hasStorageSupport = true;
|
|
44
|
+
} catch {
|
|
45
|
+
hasStorageSupport = false;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
return hasStorageSupport;
|
|
@@ -74,7 +75,7 @@ function useAutosaveNotice() {
|
|
|
74
75
|
|
|
75
76
|
try {
|
|
76
77
|
localAutosave = JSON.parse( localAutosave );
|
|
77
|
-
} catch
|
|
78
|
+
} catch {
|
|
78
79
|
// Not usable if it can't be parsed.
|
|
79
80
|
return;
|
|
80
81
|
}
|
|
@@ -100,13 +101,14 @@ function useAutosaveNotice() {
|
|
|
100
101
|
return;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
|
-
const
|
|
104
|
+
const id = 'wpEditorAutosaveRestore';
|
|
105
|
+
|
|
104
106
|
createWarningNotice(
|
|
105
107
|
__(
|
|
106
108
|
'The backup of this post in your browser is different from the version below.'
|
|
107
109
|
),
|
|
108
110
|
{
|
|
109
|
-
id
|
|
111
|
+
id,
|
|
110
112
|
actions: [
|
|
111
113
|
{
|
|
112
114
|
label: __( 'Restore the backup' ),
|
|
@@ -117,7 +119,7 @@ function useAutosaveNotice() {
|
|
|
117
119
|
} = edits;
|
|
118
120
|
editPost( editsWithoutContent );
|
|
119
121
|
resetEditorBlocks( parse( edits.content ) );
|
|
120
|
-
removeNotice(
|
|
122
|
+
removeNotice( id );
|
|
121
123
|
},
|
|
122
124
|
},
|
|
123
125
|
],
|
|
@@ -176,11 +178,9 @@ function LocalAutosaveMonitor() {
|
|
|
176
178
|
useAutosaveNotice();
|
|
177
179
|
useAutosavePurge();
|
|
178
180
|
|
|
179
|
-
const
|
|
180
|
-
( select ) =>
|
|
181
|
-
localAutosaveInterval
|
|
182
|
-
select( editorStore ).getEditorSettings().localAutosaveInterval,
|
|
183
|
-
} ),
|
|
181
|
+
const localAutosaveInterval = useSelect(
|
|
182
|
+
( select ) =>
|
|
183
|
+
select( editorStore ).getEditorSettings().localAutosaveInterval,
|
|
184
184
|
[]
|
|
185
185
|
);
|
|
186
186
|
|
|
@@ -8,7 +8,7 @@ import { EntityProvider, useEntityBlockEditor } from '@wordpress/core-data';
|
|
|
8
8
|
import {
|
|
9
9
|
BlockEditorProvider,
|
|
10
10
|
BlockContextProvider,
|
|
11
|
-
|
|
11
|
+
privateApis as blockEditorPrivateApis,
|
|
12
12
|
} from '@wordpress/block-editor';
|
|
13
13
|
import { ReusableBlocksMenuItems } from '@wordpress/reusable-blocks';
|
|
14
14
|
import { store as noticesStore } from '@wordpress/notices';
|
|
@@ -21,7 +21,7 @@ import { store as editorStore } from '../../store';
|
|
|
21
21
|
import useBlockEditorSettings from './use-block-editor-settings';
|
|
22
22
|
import { unlock } from '../../lockUnlock';
|
|
23
23
|
|
|
24
|
-
const { ExperimentalBlockEditorProvider } = unlock(
|
|
24
|
+
const { ExperimentalBlockEditorProvider } = unlock( blockEditorPrivateApis );
|
|
25
25
|
|
|
26
26
|
export const ExperimentalEditorProvider = withRegistryProvider(
|
|
27
27
|
( {
|
|
@@ -21,7 +21,6 @@ const EMPTY_BLOCKS_LIST = [];
|
|
|
21
21
|
|
|
22
22
|
const BLOCK_EDITOR_SETTINGS = [
|
|
23
23
|
'__experimentalBlockDirectory',
|
|
24
|
-
'__experimentalBlockInspectorAnimation',
|
|
25
24
|
'__experimentalDiscussionSettings',
|
|
26
25
|
'__experimentalFeatures',
|
|
27
26
|
'__experimentalGlobalStylesBaseStyles',
|
|
@@ -74,6 +73,7 @@ const BLOCK_EDITOR_SETTINGS = [
|
|
|
74
73
|
'__unstableHasCustomAppender',
|
|
75
74
|
'__unstableIsPreviewMode',
|
|
76
75
|
'__unstableResolvedAssets',
|
|
76
|
+
'__unstableIsBlockBasedTheme',
|
|
77
77
|
];
|
|
78
78
|
|
|
79
79
|
/**
|
package/src/index.js
CHANGED
package/src/index.native.js
CHANGED
package/src/lockUnlock.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/
|
|
4
|
+
import { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';
|
|
5
5
|
export const { lock, unlock } =
|
|
6
6
|
__dangerousOptInToUnstableAPIsOnlyForCoreModules(
|
|
7
7
|
'I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.',
|
package/build/experiments.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/editor/src/experiments.js"],"names":["experiments","ExperimentalEditorProvider"],"mappings":";;;;;;;AAGA;;AACA;;AAJA;AACA;AACA;AAIO,MAAMA,WAAW,GAAG,EAApB;;AACP,sBAAMA,WAAN,EAAmB;AAClBC,EAAAA,0BAA0B,EAA1BA;AADkB,CAAnB","sourcesContent":["/**\n * Internal dependencies\n */\nimport { ExperimentalEditorProvider } from './components/provider';\nimport { lock } from './lockUnlock';\n\nexport const experiments = {};\nlock( experiments, {\n\tExperimentalEditorProvider,\n} );\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["@wordpress/editor/src/experiments.js"],"names":["ExperimentalEditorProvider","lock","experiments"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,0BAAT,QAA2C,uBAA3C;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,OAAO,MAAMC,WAAW,GAAG,EAApB;AACPD,IAAI,CAAEC,WAAF,EAAe;AAClBF,EAAAA;AADkB,CAAf,CAAJ","sourcesContent":["/**\n * Internal dependencies\n */\nimport { ExperimentalEditorProvider } from './components/provider';\nimport { lock } from './lockUnlock';\n\nexport const experiments = {};\nlock( experiments, {\n\tExperimentalEditorProvider,\n} );\n"]}
|