eddev 2.2.8 → 2.2.10

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.
@@ -38,7 +38,7 @@ export function configureEditorBlocks(config) {
38
38
  export function defineEditorConfig(config) {
39
39
  const wp = window.wp;
40
40
  editorConfigStore.config = config;
41
- if (!wp?.blockEditor)
41
+ if (!wp?.blockEditor || !wp?.editor)
42
42
  return;
43
43
  updateTemplateConfig();
44
44
  }
@@ -31,8 +31,8 @@ export function whenEditorIsReady() {
31
31
  const unsubscribe = wp.data.subscribe(() => {
32
32
  // This will trigger after the initial render blocking, before the window load event
33
33
  // This seems currently more reliable than using __unstableIsEditorReady
34
- if (wp.data.select("core/editor").isCleanNewPost(undefined) ||
35
- wp.data.select("core/block-editor").getBlockCount() > 0) {
34
+ if (wp.data.select("core/editor")?.isCleanNewPost(undefined) ||
35
+ wp.data.select("core/block-editor")?.getBlockCount() > 0) {
36
36
  if (ready)
37
37
  return;
38
38
  ready = true;
@@ -51,7 +51,7 @@ export function whenEditorIsReady() {
51
51
  export function installEDGutenbergHooks() {
52
52
  import("../../../../../css/editor-styles.css");
53
53
  // Skip this if we're not in the block editor
54
- if (!wp.blockEditor)
54
+ if (!wp.blockEditor || !wp.editor)
55
55
  return;
56
56
  const withClientIdClassName = wp.compose.createHigherOrderComponent((BlockListBlock) => {
57
57
  return (props) => {
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.2.8";
1
+ export declare const VERSION = "2.2.10";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/node/cli/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAA"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/node/cli/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAA"}
@@ -1 +1 @@
1
- export const VERSION = "2.2.8";
1
+ export const VERSION = "2.2.10";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.2.8",
3
+ "version": "2.2.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",