@@ -32,6 +32,8 @@ import { BlockMath } from './Math';
32
32
import { OpenAPI } from './OpenAPI' ;
33
33
import { Paragraph } from './Paragraph' ;
34
34
import { Quote } from './Quote' ;
35
+ import { Stepper } from './Stepper' ;
36
+ import { StepperStep } from './StepperStep' ;
35
37
import { Table } from './Table' ;
36
38
import { Tabs } from './Tabs' ;
37
39
@@ -104,6 +106,12 @@ export function Block<T extends DocumentBlock>(props: BlockProps<T>) {
104
106
return < IntegrationBlock { ...props } { ...contextProps } block = { block } /> ;
105
107
case 'synced-block' :
106
108
return < BlockSyncedBlock { ...props } { ...contextProps } block = { block } /> ;
109
+ case 'reusable-content' :
110
+ return null ;
111
+ case 'stepper' :
112
+ return < Stepper { ...props } { ...contextProps } block = { block } /> ;
113
+ case 'stepper-step' :
114
+ return < StepperStep { ...props } { ...contextProps } block = { block } /> ;
107
115
default :
108
116
return nullIfNever ( block ) ;
109
117
}
@@ -136,7 +144,6 @@ function BlockPlaceholder(props: { block: DocumentBlock; style: ClassValue }) {
136
144
case 'code' :
137
145
case 'hint' :
138
146
case 'tabs' :
139
- case 'synced-block' :
140
147
return < SkeletonParagraph id = { id } style = { style } /> ;
141
148
case 'expandable' :
142
149
case 'table' :
@@ -145,6 +152,9 @@ function BlockPlaceholder(props: { block: DocumentBlock; style: ClassValue }) {
145
152
case 'divider' :
146
153
case 'content-ref' :
147
154
case 'integration' :
155
+ case 'stepper' :
156
+ case 'synced-block' :
157
+ case 'reusable-content' :
148
158
return < SkeletonCard id = { id } style = { style } /> ;
149
159
case 'embed' :
150
160
case 'images' :
@@ -153,6 +163,7 @@ function BlockPlaceholder(props: { block: DocumentBlock; style: ClassValue }) {
153
163
case 'image' :
154
164
case 'code-line' :
155
165
case 'tabs-item' :
166
+ case 'stepper-step' :
156
167
throw new Error ( 'Blocks should be directly rendered by parent' ) ;
157
168
default :
158
169
return nullIfNever ( block ) ;
0 commit comments