Skip to content

Commit 75aa43e

Browse files
committed
feat: sampleBlocks rich text add
1 parent 6254177 commit 75aa43e

File tree

2 files changed

+4869
-3934
lines changed

2 files changed

+4869
-3934
lines changed

apps/storybook/src/stories/Renderer.stories.tsx

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ const sampleBlocks: NotionBlock[] = [
3434
{
3535
type: 'text',
3636
text: { content: '노션 렌더러 예제', link: null },
37+
content: '노션 렌더러 예제',
38+
link: null,
3739
annotations: {
3840
bold: false,
3941
italic: false,
@@ -42,6 +44,12 @@ const sampleBlocks: NotionBlock[] = [
4244
code: false,
4345
color: 'default',
4446
},
47+
bold: false,
48+
italic: false,
49+
strikethrough: false,
50+
underline: false,
51+
code: false,
52+
color: 'default',
4553
plain_text: '노션 렌더러 예제',
4654
href: null,
4755
},
@@ -61,6 +69,8 @@ const sampleBlocks: NotionBlock[] = [
6169
content: '이것은 노션 블록을 렌더링하는 컴포넌트입니다. ',
6270
link: null,
6371
},
72+
content: '이것은 노션 블록을 렌더링하는 컴포넌트입니다. ',
73+
link: null,
6474
annotations: {
6575
bold: false,
6676
italic: false,
@@ -69,12 +79,20 @@ const sampleBlocks: NotionBlock[] = [
6979
code: false,
7080
color: 'default',
7181
},
82+
bold: false,
83+
italic: false,
84+
strikethrough: false,
85+
underline: false,
86+
code: false,
87+
color: 'default',
7288
plain_text: '이것은 노션 블록을 렌더링하는 컴포넌트입니다. ',
7389
href: null,
7490
},
7591
{
7692
type: 'text',
7793
text: { content: '다양한 스타일', link: null },
94+
content: '다양한 스타일',
95+
link: null,
7896
annotations: {
7997
bold: true,
8098
italic: false,
@@ -83,12 +101,20 @@ const sampleBlocks: NotionBlock[] = [
83101
code: false,
84102
color: 'default',
85103
},
104+
bold: true,
105+
italic: false,
106+
strikethrough: false,
107+
underline: false,
108+
code: false,
109+
color: 'default',
86110
plain_text: '다양한 스타일',
87111
href: null,
88112
},
89113
{
90114
type: 'text',
91115
text: { content: '을 지원합니다.', link: null },
116+
content: '을 지원합니다.',
117+
link: null,
92118
annotations: {
93119
bold: false,
94120
italic: false,
@@ -97,6 +123,12 @@ const sampleBlocks: NotionBlock[] = [
97123
code: false,
98124
color: 'default',
99125
},
126+
bold: false,
127+
italic: false,
128+
strikethrough: false,
129+
underline: false,
130+
code: false,
131+
color: 'default',
100132
plain_text: '을 지원합니다.',
101133
href: null,
102134
},
@@ -113,6 +145,8 @@ const sampleBlocks: NotionBlock[] = [
113145
{
114146
type: 'text',
115147
text: { content: '지원하는 기능', link: null },
148+
content: '지원하는 기능',
149+
link: null,
116150
annotations: {
117151
bold: false,
118152
italic: false,
@@ -121,6 +155,12 @@ const sampleBlocks: NotionBlock[] = [
121155
code: false,
122156
color: 'default',
123157
},
158+
bold: false,
159+
italic: false,
160+
strikethrough: false,
161+
underline: false,
162+
code: false,
163+
color: 'default',
124164
plain_text: '지원하는 기능',
125165
href: null,
126166
},
@@ -137,6 +177,8 @@ const sampleBlocks: NotionBlock[] = [
137177
{
138178
type: 'text',
139179
text: { content: '다양한 텍스트 스타일 (', link: null },
180+
content: '다양한 텍스트 스타일 (',
181+
link: null,
140182
annotations: {
141183
bold: false,
142184
italic: false,
@@ -145,12 +187,20 @@ const sampleBlocks: NotionBlock[] = [
145187
code: false,
146188
color: 'default',
147189
},
190+
bold: false,
191+
italic: false,
192+
strikethrough: false,
193+
underline: false,
194+
code: false,
195+
color: 'default',
148196
plain_text: '다양한 텍스트 스타일 (',
149197
href: null,
150198
},
151199
{
152200
type: 'text',
153201
text: { content: '볼드', link: null },
202+
content: '볼드',
203+
link: null,
154204
annotations: {
155205
bold: true,
156206
italic: false,
@@ -159,12 +209,20 @@ const sampleBlocks: NotionBlock[] = [
159209
code: false,
160210
color: 'default',
161211
},
212+
bold: true,
213+
italic: false,
214+
strikethrough: false,
215+
underline: false,
216+
code: false,
217+
color: 'default',
162218
plain_text: '볼드',
163219
href: null,
164220
},
165221
{
166222
type: 'text',
167223
text: { content: ', ', link: null },
224+
content: ', ',
225+
link: null,
168226
annotations: {
169227
bold: false,
170228
italic: false,
@@ -173,12 +231,20 @@ const sampleBlocks: NotionBlock[] = [
173231
code: false,
174232
color: 'default',
175233
},
234+
bold: false,
235+
italic: false,
236+
strikethrough: false,
237+
underline: false,
238+
code: false,
239+
color: 'default',
176240
plain_text: ', ',
177241
href: null,
178242
},
179243
{
180244
type: 'text',
181245
text: { content: '이탤릭', link: null },
246+
content: '이탤릭',
247+
link: null,
182248
annotations: {
183249
bold: false,
184250
italic: true,
@@ -187,12 +253,20 @@ const sampleBlocks: NotionBlock[] = [
187253
code: false,
188254
color: 'default',
189255
},
256+
bold: false,
257+
italic: true,
258+
strikethrough: false,
259+
underline: false,
260+
code: false,
261+
color: 'default',
190262
plain_text: '이탤릭',
191263
href: null,
192264
},
193265
{
194266
type: 'text',
195267
text: { content: ')', link: null },
268+
content: ')',
269+
link: null,
196270
annotations: {
197271
bold: false,
198272
italic: false,
@@ -201,6 +275,12 @@ const sampleBlocks: NotionBlock[] = [
201275
code: false,
202276
color: 'default',
203277
},
278+
bold: false,
279+
italic: false,
280+
strikethrough: false,
281+
underline: false,
282+
code: false,
283+
color: 'default',
204284
plain_text: ')',
205285
href: null,
206286
},
@@ -217,6 +297,8 @@ const sampleBlocks: NotionBlock[] = [
217297
{
218298
type: 'text',
219299
text: { content: '코드 블록', link: null },
300+
content: '코드 블록',
301+
link: null,
220302
annotations: {
221303
bold: false,
222304
italic: false,
@@ -225,12 +307,20 @@ const sampleBlocks: NotionBlock[] = [
225307
code: true,
226308
color: 'default',
227309
},
310+
bold: false,
311+
italic: false,
312+
strikethrough: false,
313+
underline: false,
314+
code: true,
315+
color: 'default',
228316
plain_text: '코드 블록',
229317
href: null,
230318
},
231319
{
232320
type: 'text',
233321
text: { content: ' 지원', link: null },
322+
content: ' 지원',
323+
link: null,
234324
annotations: {
235325
bold: false,
236326
italic: false,
@@ -239,6 +329,12 @@ const sampleBlocks: NotionBlock[] = [
239329
code: false,
240330
color: 'default',
241331
},
332+
bold: false,
333+
italic: false,
334+
strikethrough: false,
335+
underline: false,
336+
code: false,
337+
color: 'default',
242338
plain_text: ' 지원',
243339
href: null,
244340
},
@@ -258,6 +354,8 @@ const sampleBlocks: NotionBlock[] = [
258354
content: 'const greeting = "안녕하세요!";\nconsole.log(greeting);',
259355
link: null,
260356
},
357+
content: 'const greeting = "안녕하세요!";\nconsole.log(greeting);',
358+
link: null,
261359
annotations: {
262360
bold: false,
263361
italic: false,
@@ -266,6 +364,12 @@ const sampleBlocks: NotionBlock[] = [
266364
code: false,
267365
color: 'default',
268366
},
367+
bold: false,
368+
italic: false,
369+
strikethrough: false,
370+
underline: false,
371+
code: false,
372+
color: 'default',
269373
plain_text: 'const greeting = "안녕하세요!";\nconsole.log(greeting);',
270374
href: null,
271375
},
@@ -287,6 +391,8 @@ const sampleBlocks: NotionBlock[] = [
287391
{
288392
type: 'text',
289393
text: { content: '샘플 이미지', link: null },
394+
content: '샘플 이미지',
395+
link: null,
290396
annotations: {
291397
bold: false,
292398
italic: false,
@@ -295,6 +401,12 @@ const sampleBlocks: NotionBlock[] = [
295401
code: false,
296402
color: 'default',
297403
},
404+
bold: false,
405+
italic: false,
406+
strikethrough: false,
407+
underline: false,
408+
code: false,
409+
color: 'default',
298410
plain_text: '샘플 이미지',
299411
href: null,
300412
},
@@ -311,6 +423,8 @@ const sampleBlocks: NotionBlock[] = [
311423
{
312424
type: 'text',
313425
text: { content: 'Codeium 웹사이트', link: null },
426+
content: 'Codeium 웹사이트',
427+
link: null,
314428
annotations: {
315429
bold: false,
316430
italic: false,
@@ -319,6 +433,12 @@ const sampleBlocks: NotionBlock[] = [
319433
code: false,
320434
color: 'default',
321435
},
436+
bold: false,
437+
italic: false,
438+
strikethrough: false,
439+
underline: false,
440+
code: false,
441+
color: 'default',
322442
plain_text: 'Codeium 웹사이트',
323443
href: null,
324444
},

0 commit comments

Comments
 (0)