Commit 00d08d1 1 parent 4fa6667 commit 00d08d1 Copy full SHA for 00d08d1
File tree 4 files changed +20
-1
lines changed
4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import type { ImageBlock } from './layout/ImageBlock';
6
6
import type { InputBlock } from './layout/InputBlock' ;
7
7
import type { PreviewBlock } from './layout/PreviewBlock' ;
8
8
import type { SectionBlock } from './layout/SectionBlock' ;
9
+ import type { TabNavigationBlock } from './layout/TabNavigationBlock' ;
9
10
import type { VideoConferenceBlock } from './layout/VideoConferenceBlock' ;
10
11
11
12
export type LayoutBlock =
@@ -18,4 +19,5 @@ export type LayoutBlock =
18
19
| InputBlock
19
20
| SectionBlock
20
21
| VideoConferenceBlock
21
- | PreviewBlock ;
22
+ | PreviewBlock
23
+ | TabNavigationBlock ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export enum LayoutBlockType {
9
9
INPUT = 'input' ,
10
10
CONDITIONAL = 'conditional' ,
11
11
PREVIEW = 'preview' ,
12
+ TAB_NAVIGATION = 'tab_navigation' ,
12
13
VIDEO_CONF = 'video_conf' ,
13
14
}
14
15
Original file line number Diff line number Diff line change
1
+ import type { Block } from '../Block' ;
2
+ import type { LayoutBlockish } from '../LayoutBlockish' ;
3
+ import type { TextObject } from '../TextObject' ;
4
+
5
+ export type TabItem = {
6
+ title : TextObject ;
7
+ disabled ?: boolean ;
8
+ selected ?: boolean ;
9
+ elements : readonly Block [ ] ;
10
+ } ;
11
+
12
+ export type TabNavigationBlock = LayoutBlockish < {
13
+ type : 'tab_navigation' ;
14
+ tabs : readonly TabItem [ ] ;
15
+ } > ;
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export { InputBlock } from './blocks/layout/InputBlock';
34
34
export { SectionBlock } from './blocks/layout/SectionBlock' ;
35
35
export { VideoConferenceBlock } from './blocks/layout/VideoConferenceBlock' ;
36
36
export { LayoutBlock } from './blocks/LayoutBlock' ;
37
+ export { TabNavigationBlock } from './blocks/layout/TabNavigationBlock' ;
37
38
38
39
export { InputElementDispatchAction } from './blocks/InputElementDispatchAction' ;
39
40
You can’t perform that action at this time.
0 commit comments