File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11# @julianjark/notion-render
22
3+ ## 0.9.0
4+
5+ ### Minor Changes
6+
7+ - apply classes to ul and ol
8+
39## 0.8.0
410
511### Minor Changes
Original file line number Diff line number Diff line change 11{
22 "name" : " @julianjark/notion-render" ,
3- "version" : " 0.8 .0" ,
3+ "version" : " 0.9 .0" ,
44 "description" : " React renderer for the official Notion API" ,
55 "author" : " Julian Jark" ,
66 "license" : " ISC" ,
Original file line number Diff line number Diff line change 1- import { BlockObjectResponse } from "@notionhq/client/build/src/api-endpoints" ;
1+ import type { BlockObjectResponse } from "@notionhq/client/build/src/api-endpoints" ;
22import type { BlockComponentProps } from "./components" ;
33import { DefaultComponents } from "./components" ;
4+ import { useNotionRenderContext as ctx } from "./context" ;
45
56// Pseudo blocks
67export interface ListBlock {
@@ -14,7 +15,7 @@ export type ListBlockType = ListBlock["type"];
1415export const BulletedList = ( { block } : BlockComponentProps ) => {
1516 if ( block . type !== "bulleted_list" ) return null ;
1617 return (
17- < ul >
18+ < ul className = { ctx ( ) . classes . bulleted_list . root } >
1819 { block . children . map ( ( block ) => {
1920 const Component = DefaultComponents [ block . type ] ;
2021 if ( Component === undefined ) return undefined ;
@@ -26,7 +27,7 @@ export const BulletedList = ({ block }: BlockComponentProps) => {
2627export const NumberedList = ( { block } : BlockComponentProps ) => {
2728 if ( block . type !== "numbered_list" ) return null ;
2829 return (
29- < ol >
30+ < ol className = { ctx ( ) . classes . numbered_list . root } >
3031 { block . children . map ( ( block ) => {
3132 const Component = DefaultComponents [ block . type ] ;
3233 if ( Component === undefined ) return undefined ;
You can’t perform that action at this time.
0 commit comments