Skip to content

Commit 0e32fc7

Browse files
authored
Updating notion-to-md to use stable version (#16357)
1 parent e10500a commit 0e32fc7

File tree

22 files changed

+47
-50
lines changed

22 files changed

+47
-50
lines changed

components/notion/actions/append-block/append-block.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Append Block to Parent",
88
description:
99
"Append new and/or existing blocks to the specified parent. [See the documentation](https://developers.notion.com/reference/patch-block-children)",
10-
version: "0.3.2",
10+
version: "0.3.3",
1111
type: "action",
1212
props: {
1313
notion,

components/notion/actions/create-comment/create-comment.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "notion-create-comment",
66
name: "Create Comment",
77
description: "Create a comment in a page or existing discussion thread. [See the documentation](https://developers.notion.com/reference/create-a-comment)",
8-
version: "0.0.3",
8+
version: "0.0.4",
99
type: "action",
1010
props: {
1111
notion,

components/notion/actions/create-page-from-database/create-page-from-database.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "notion-create-page-from-database",
88
name: "Create Page from Database",
99
description: "Create a page from a database. [See the documentation](https://developers.notion.com/reference/post-page)",
10-
version: "0.1.17",
10+
version: "0.1.18",
1111
type: "action",
1212
props: {
1313
notion,

components/notion/actions/create-page/create-page.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "notion-create-page",
88
name: "Create Page",
99
description: "Create a page from a parent page. [See the documentation](https://developers.notion.com/reference/post-page)",
10-
version: "0.2.15",
10+
version: "0.2.16",
1111
type: "action",
1212
props: {
1313
notion,

components/notion/actions/duplicate-page/duplicate-page.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "notion-duplicate-page",
88
name: "Duplicate Page",
99
description: "Create a new page copied from an existing page block. [See the documentation](https://developers.notion.com/reference/post-page)",
10-
version: "0.0.12",
10+
version: "0.0.13",
1111
type: "action",
1212
props: {
1313
notion,

components/notion/actions/query-database/query-database.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "notion-query-database",
66
name: "Query Database",
77
description: "Query a database with a specified filter. [See the documentation](https://developers.notion.com/reference/post-database-query)",
8-
version: "0.0.10",
8+
version: "0.0.11",
99
type: "action",
1010
props: {
1111
notion,

components/notion/actions/retrieve-block/retrieve-block.mjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "notion-retrieve-block",
55
name: "Retrieve Page Content",
66
description: "Get page content as block objects or markdown. Blocks can be text, lists, media, a page, among others. [See the documentation](https://developers.notion.com/reference/retrieve-a-block)",
7-
version: "0.2.1",
7+
version: "0.2.2",
88
type: "action",
99
props: {
1010
notion,
@@ -33,20 +33,20 @@ export default {
3333
},
3434
},
3535
async run({ $ }) {
36-
let markdownContent;
37-
if (this.retrieveMarkdown) {
38-
markdownContent = await this.notion.getPageAsMarkdown(this.blockId);
39-
}
40-
4136
const { retrieveChildren } = this;
4237
const subpagesOnly = retrieveChildren === "Sub-Pages Only";
43-
44-
const block = await this.notion.retrieveBlock(this.blockId);
4538
const shouldRetrieveChildren = [
4639
true,
4740
"All Children",
4841
"Sub-Pages Only",
4942
].includes(retrieveChildren);
43+
44+
let markdownContent;
45+
if (this.retrieveMarkdown) {
46+
markdownContent = await this.notion.getPageAsMarkdown(this.blockId, shouldRetrieveChildren);
47+
}
48+
49+
const block = await this.notion.retrieveBlock(this.blockId);
5050
if (shouldRetrieveChildren) {
5151
block.children = await this.notion.retrieveBlockChildren(block, subpagesOnly);
5252
}

components/notion/actions/retrieve-database-content/retrieve-database-content.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "notion-retrieve-database-content",
55
name: "Retrieve Database Content",
66
description: "Get all content of a database. [See the documentation](https://developers.notion.com/reference/post-database-query)",
7-
version: "0.0.5",
7+
version: "0.0.6",
88
type: "action",
99
props: {
1010
notion,

components/notion/actions/retrieve-database-schema/retrieve-database-schema.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "notion-retrieve-database-schema",
55
name: "Retrieve Database Schema",
66
description: "Get the property schema of a database in Notion. [See the documentation](https://developers.notion.com/reference/retrieve-a-database)",
7-
version: "0.0.7",
7+
version: "0.0.8",
88
type: "action",
99
props: {
1010
notion,

components/notion/actions/retrieve-page-property-item/retrieve-page-property-item.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "notion-retrieve-page-property-item",
55
name: "Retrieve Page Property Item",
66
description: "Get a Property Item object for a selected page and property. [See the documentation](https://developers.notion.com/reference/retrieve-a-page-property)",
7-
version: "0.0.6",
7+
version: "0.0.7",
88
type: "action",
99
props: {
1010
notion,

0 commit comments

Comments
 (0)