eddev 2.2.10 → 2.2.11

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.
@@ -43,8 +43,8 @@ export function defineEditorConfig(config) {
43
43
  updateTemplateConfig();
44
44
  }
45
45
  export function getEditingPostInfo() {
46
- const post = wp.data.select("core/editor").getCurrentPost();
47
- const edits = wp.data.select("core/editor").getPostEdits();
46
+ const post = wp.data.select("core/editor")?.getCurrentPost();
47
+ const edits = wp.data.select("core/editor")?.getPostEdits();
48
48
  const postInfo = {
49
49
  ...post,
50
50
  ...edits,
@@ -1 +1 @@
1
- {"version":3,"file":"installGutenbergHooks.d.ts","sourceRoot":"","sources":["../../../../../src/app/lib/blocks/editor/installGutenbergHooks.tsx"],"names":[],"mappings":"AA4BA,eAAO,MAAM,oBAAoB;;CAAgC,CAAA;AAEjE,wBAAgB,iBAAiB,kBAsBhC;AAED,wBAAgB,uBAAuB,SA0RtC"}
1
+ {"version":3,"file":"installGutenbergHooks.d.ts","sourceRoot":"","sources":["../../../../../src/app/lib/blocks/editor/installGutenbergHooks.tsx"],"names":[],"mappings":"AA4BA,eAAO,MAAM,oBAAoB;;CAAgC,CAAA;AAEjE,wBAAgB,iBAAiB,kBAsBhC;AAED,wBAAgB,uBAAuB,SA4RtC"}
@@ -172,6 +172,8 @@ export function installEDGutenbergHooks() {
172
172
  removeFormatTypes("core/text-color");
173
173
  whenEditorIsReady().then(() => {
174
174
  watchEditorTemplate();
175
+ wp.blocks.unregisterBlockVariation("core/paragraph", "stretchy-paragraph");
176
+ wp.blocks.unregisterBlockVariation("core/heading", "stretchy-heading");
175
177
  });
176
178
  // Recalculate registered blocks when rootBlocks change
177
179
  rootBlocks.listen();
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.2.10";
1
+ export declare const VERSION = "2.2.11";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const VERSION = "2.2.10";
1
+ export const VERSION = "2.2.11";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.2.10",
3
+ "version": "2.2.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",