File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export type BlockType =
24
24
| 'video'
25
25
| 'figma'
26
26
| 'typeform'
27
+ | 'replit'
27
28
| 'codepen'
28
29
| 'excalidraw'
29
30
| 'tweet'
@@ -67,6 +68,7 @@ export type Block =
67
68
| VideoBlock
68
69
| FigmaBlock
69
70
| TypeformBlock
71
+ | ReplitBlock
70
72
| CodepenBlock
71
73
| ExcalidrawBlock
72
74
| TweetBlock
@@ -296,6 +298,10 @@ export interface TypeformBlock extends BaseContentBlock {
296
298
type : 'typeform'
297
299
}
298
300
301
+ export interface ReplitBlock extends BaseContentBlock {
302
+ type : 'replit'
303
+ }
304
+
299
305
export interface CodepenBlock extends BaseContentBlock {
300
306
type : 'codepen'
301
307
}
Original file line number Diff line number Diff line change @@ -469,6 +469,8 @@ export const Block: React.FC<BlockProps> = (props) => {
469
469
470
470
case 'embed' :
471
471
return < components . Embed blockId = { blockId } block = { block } />
472
+ case 'replit' :
473
+ // fallthrough
472
474
case 'tweet' :
473
475
// fallthrough
474
476
case 'maps' :
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { LiteYouTubeEmbed } from './lite-youtube-embed'
11
11
const isServer = typeof window === 'undefined'
12
12
13
13
const supportedAssetTypes = [
14
+ 'replit' ,
14
15
'video' ,
15
16
'image' ,
16
17
'embed' ,
@@ -174,7 +175,8 @@ export const Asset: React.FC<{
174
175
block . type === 'maps' ||
175
176
block . type === 'excalidraw' ||
176
177
block . type === 'codepen' ||
177
- block . type === 'drive'
178
+ block . type === 'drive' ||
179
+ block . type === 'replit'
178
180
) {
179
181
if (
180
182
block . type === 'video' &&
You can’t perform that action at this time.
0 commit comments