index.js (294B)
1 export * from './collections' 2 3 /** 4 * Are we inside the Gutenberg Block Editor? 5 * 6 * @return {boolean} True if inside the Gutenberg Block Editor, false if not (e.g. in the frontend). 7 */ 8 export const isEditor = () => typeof window.wp !== 'undefined' && typeof window.wp.editor !== 'undefined'