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

Support block color #64

Merged
merged 7 commits into from
Mar 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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