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.
- package/dist/app/lib/blocks/editor/editor-config.js +2 -2
- package/dist/app/lib/blocks/editor/installGutenbergHooks.d.ts.map +1 -1
- package/dist/app/lib/blocks/editor/installGutenbergHooks.js +2 -0
- package/dist/node/cli/version.d.ts +1 -1
- package/dist/node/cli/version.js +1 -1
- package/package.json +1 -1
|
@@ -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")
|
|
47
|
-
const edits = wp.data.select("core/editor")
|
|
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,
|
|
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.
|
|
1
|
+
export declare const VERSION = "2.2.11";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/node/cli/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.2.
|
|
1
|
+
export const VERSION = "2.2.11";
|