Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #64 from otoyo/support-block-color
Browse files Browse the repository at this point in the history
Support block color
  • Loading branch information
otoyo committed Mar 11, 2022
2 parents 28cb50d + a767938 commit 32642e5
Show file tree
Hide file tree
Showing 7 changed files with 236 additions and 147 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"plain_text": "aaa",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -74,7 +75,8 @@
"plain_text": "bbb",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -112,7 +114,8 @@
"plain_text": "ccc",
"href": null
}
]
],
"color": "default"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"plain_text": "111",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -74,7 +75,8 @@
"plain_text": "222",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -112,7 +114,8 @@
"plain_text": "aaa",
"href": null
}
]
],
"color": "default"
}
}
],
Expand Down
81 changes: 54 additions & 27 deletions __tests__/fixtures/notion-api-response-page-blocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"plain_text": "Heading 1",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -58,7 +59,8 @@
"plain_text": "Heading 2",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -88,7 +90,8 @@
"plain_text": "Heading 3",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -118,7 +121,8 @@
"plain_text": "Paragraph",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -148,7 +152,8 @@
"plain_text": "bold",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -178,7 +183,8 @@
"plain_text": "italic",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -208,7 +214,8 @@
"plain_text": "Underline",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -238,7 +245,8 @@
"plain_text": "Strike",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -270,7 +278,8 @@
"plain_text": "link",
"href": "https://github.com/otoyo/easy-notion-blog"
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -300,7 +309,8 @@
"plain_text": "code",
"href": null
}
]
],
"color": "default"
}
},
{
Expand All @@ -312,7 +322,8 @@
"archived": false,
"type": "paragraph",
"paragraph": {
"rich_text": []
"rich_text": [],
"color": "default"
}
},
{
Expand Down Expand Up @@ -342,7 +353,8 @@
"plain_text": "Bulleted List",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -372,7 +384,8 @@
"plain_text": "Uni",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -402,7 +415,8 @@
"plain_text": "Tako",
"href": null
}
]
],
"color": "default"
}
},
{
Expand All @@ -414,7 +428,8 @@
"archived": false,
"type": "paragraph",
"paragraph": {
"rich_text": []
"rich_text": [],
"color": "default"
}
},
{
Expand Down Expand Up @@ -444,7 +459,8 @@
"plain_text": "Numbered List",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -474,7 +490,8 @@
"plain_text": "Kani",
"href": null
}
]
],
"color": "default"
}
},
{
Expand Down Expand Up @@ -504,7 +521,8 @@
"plain_text": "Ika",
"href": null
}
]
],
"color": "default"
}
},
{
Expand All @@ -516,7 +534,8 @@
"archived": false,
"type": "paragraph",
"paragraph": {
"rich_text": []
"rich_text": [],
"color": "default"
}
},
{
Expand Down Expand Up @@ -546,7 +565,8 @@
"plain_text": "Divider",
"href": null
}
]
],
"color": "default"
}
},
{
Expand All @@ -568,7 +588,8 @@
"archived": false,
"type": "paragraph",
"paragraph": {
"rich_text": []
"rich_text": [],
"color": "default"
}
},
{
Expand Down Expand Up @@ -602,7 +623,8 @@
"icon": {
"type": "emoji",
"emoji": "ℹ️"
}
},
"color": "default"
}
},
{
Expand All @@ -614,7 +636,8 @@
"archived": false,
"type": "paragraph",
"paragraph": {
"rich_text": []
"rich_text": [],
"color": "default"
}
},
{
Expand Down Expand Up @@ -676,7 +699,8 @@
"archived": false,
"type": "paragraph",
"paragraph": {
"rich_text": []
"rich_text": [],
"color": "default"
}
},
{
Expand Down Expand Up @@ -706,7 +730,8 @@
"plain_text": "Quote Block",
"href": null
}
]
],
"color": "default"
}
},
{
Expand All @@ -718,7 +743,8 @@
"archived": false,
"type": "paragraph",
"paragraph": {
"rich_text": []
"rich_text": [],
"color": "default"
}
},
{
Expand All @@ -744,7 +770,8 @@
"archived": false,
"type": "paragraph",
"paragraph": {
"rich_text": []
"rich_text": [],
"color": "default"
}
},
{
Expand Down

1 comment on commit 32642e5

@vercel
Copy link

@vercel vercel bot commented on 32642e5 Mar 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.