Skip to content

Commit eb4cbe0

Browse files
chore: release
1 parent f5696c3 commit eb4cbe0

64 files changed

Lines changed: 801 additions & 183 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/deep-hands-peel.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/new-block-kit-elements.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/simple-tests-shine.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/english/reference/cli-test/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @slack/cli-test v3.0.0
1+
# @slack/cli-test v3.0.1
22

33
## Classes
44

docs/english/reference/types/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @slack/types v2.20.1
1+
# @slack/types v2.21.0
22

33
## Enumerations
44

@@ -10,6 +10,7 @@
1010
- [~~Action~~](interfaces/Action.md)
1111
- [~~Actionable~~](interfaces/Actionable.md)
1212
- [ActionsBlock](interfaces/ActionsBlock.md)
13+
- [AlertBlock](interfaces/AlertBlock.md)
1314
- [AppDeletedEvent](interfaces/AppDeletedEvent.md)
1415
- [AppHomeOpenedEvent](interfaces/AppHomeOpenedEvent.md)
1516
- [AppInstalledEvent](interfaces/AppInstalledEvent.md)
@@ -26,6 +27,8 @@
2627
- [CallRejectedEvent](interfaces/CallRejectedEvent.md)
2728
- [CallUserExternal](interfaces/CallUserExternal.md)
2829
- [CallUserSlack](interfaces/CallUserSlack.md)
30+
- [CardBlock](interfaces/CardBlock.md)
31+
- [CarouselBlock](interfaces/CarouselBlock.md)
2932
- [ChannelArchiveEvent](interfaces/ChannelArchiveEvent.md)
3033
- [ChannelArchiveMessageEvent](interfaces/ChannelArchiveMessageEvent.md)
3134
- [ChannelCreatedEvent](interfaces/ChannelCreatedEvent.md)

docs/english/reference/types/interfaces/ActionsBlock.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Interface: ActionsBlock
44

5-
Defined in: [block-kit/blocks.ts:99](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L99)
5+
Defined in: [block-kit/blocks.ts:103](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L103)
66

77
## Description
88

@@ -24,7 +24,7 @@ Holds multiple interactive elements.
2424
optional block_id: string;
2525
```
2626

27-
Defined in: [block-kit/blocks.ts:48](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L48)
27+
Defined in: [block-kit/blocks.ts:49](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L49)
2828

2929
#### Description
3030

@@ -46,7 +46,7 @@ a message. If a message is updated, use a new `block_id`.
4646
elements: ActionsBlockElement[];
4747
```
4848

49-
Defined in: [block-kit/blocks.ts:108](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L108)
49+
Defined in: [block-kit/blocks.ts:112](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L112)
5050

5151
#### Description
5252

@@ -61,7 +61,7 @@ There is a maximum of 25 elements in each action block.
6161
type: "actions";
6262
```
6363

64-
Defined in: [block-kit/blocks.ts:103](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L103)
64+
Defined in: [block-kit/blocks.ts:107](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L107)
6565

6666
#### Description
6767

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
[@slack/types](../index.md) / AlertBlock
2+
3+
# Interface: AlertBlock
4+
5+
Defined in: [block-kit/blocks.ts:119](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L119)
6+
7+
## Description
8+
9+
A prominent notice block for displaying warnings, status updates, or other important information.
10+
11+
## See
12+
13+
[Alert block reference](https://docs.slack.dev/reference/block-kit/blocks/alert-block).
14+
15+
## Extends
16+
17+
- [`Block`](Block.md)
18+
19+
## Properties
20+
21+
### block\_id?
22+
23+
```ts
24+
optional block_id: string;
25+
```
26+
27+
Defined in: [block-kit/blocks.ts:49](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L49)
28+
29+
#### Description
30+
31+
A string acting as a unique identifier for a block. If not specified, a `block_id` will be generated.
32+
You can use this `block_id` when you receive an interaction payload to
33+
[identify the source of the action](https://docs.slack.dev/interactivity/handling-user-interaction#payloads).
34+
Maximum length for this field is 255 characters. `block_id` should be unique for each message and each iteration of
35+
a message. If a message is updated, use a new `block_id`.
36+
37+
#### Inherited from
38+
39+
[`Block`](Block.md).[`block_id`](Block.md#block_id)
40+
41+
***
42+
43+
### level?
44+
45+
```ts
46+
optional level: "default" | "info" | "warning" | "error" | "success";
47+
```
48+
49+
Defined in: [block-kit/blocks.ts:131](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L131)
50+
51+
#### Description
52+
53+
The severity level of the alert. Defaults to `"default"` if omitted.
54+
55+
***
56+
57+
### text
58+
59+
```ts
60+
text: TextObject;
61+
```
62+
63+
Defined in: [block-kit/blocks.ts:127](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L127)
64+
65+
#### Description
66+
67+
The alert message content in the form of a [TextObject](../type-aliases/TextObject.md).
68+
69+
***
70+
71+
### type
72+
73+
```ts
74+
type: "alert";
75+
```
76+
77+
Defined in: [block-kit/blocks.ts:123](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L123)
78+
79+
#### Description
80+
81+
The type of block. For an alert block, `type` is always `alert`.
82+
83+
#### Overrides
84+
85+
[`Block`](Block.md).[`type`](Block.md#type)

docs/english/reference/types/interfaces/Block.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
# Interface: Block
44

5-
Defined in: [block-kit/blocks.ts:36](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L36)
5+
Defined in: [block-kit/blocks.ts:37](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L37)
66

77
## Extended by
88

99
- [`ActionsBlock`](ActionsBlock.md)
10+
- [`AlertBlock`](AlertBlock.md)
11+
- [`CardBlock`](CardBlock.md)
12+
- [`CarouselBlock`](CarouselBlock.md)
1013
- [`ContextBlock`](ContextBlock.md)
1114
- [`ContextActionsBlock`](ContextActionsBlock.md)
1215
- [`DividerBlock`](DividerBlock.md)
@@ -29,7 +32,7 @@ Defined in: [block-kit/blocks.ts:36](https://github.com/slackapi/node-slack-sdk/
2932
optional block_id: string;
3033
```
3134

32-
Defined in: [block-kit/blocks.ts:48](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L48)
35+
Defined in: [block-kit/blocks.ts:49](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L49)
3336

3437
#### Description
3538

@@ -47,7 +50,7 @@ a message. If a message is updated, use a new `block_id`.
4750
type: string;
4851
```
4952

50-
Defined in: [block-kit/blocks.ts:40](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L40)
53+
Defined in: [block-kit/blocks.ts:41](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L41)
5154

5255
#### Description
5356

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
[@slack/types](../index.md) / CardBlock
2+
3+
# Interface: CardBlock
4+
5+
Defined in: [block-kit/blocks.ts:139](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L139)
6+
7+
## Description
8+
9+
A rich display block for presenting structured content such as recommendations, results, or work items.
10+
At least one of `hero_image`, `title`, `actions`, or `body` must be provided.
11+
12+
## See
13+
14+
[Card block reference](https://docs.slack.dev/reference/block-kit/blocks/card-block).
15+
16+
## Extends
17+
18+
- [`Block`](Block.md)
19+
20+
## Properties
21+
22+
### actions?
23+
24+
```ts
25+
optional actions: Button[];
26+
```
27+
28+
Defined in: [block-kit/blocks.ts:170](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L170)
29+
30+
#### Description
31+
32+
An array of [Button](Button.md) elements displayed at the bottom of the card.
33+
34+
***
35+
36+
### block\_id?
37+
38+
```ts
39+
optional block_id: string;
40+
```
41+
42+
Defined in: [block-kit/blocks.ts:49](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L49)
43+
44+
#### Description
45+
46+
A string acting as a unique identifier for a block. If not specified, a `block_id` will be generated.
47+
You can use this `block_id` when you receive an interaction payload to
48+
[identify the source of the action](https://docs.slack.dev/interactivity/handling-user-interaction#payloads).
49+
Maximum length for this field is 255 characters. `block_id` should be unique for each message and each iteration of
50+
a message. If a message is updated, use a new `block_id`.
51+
52+
#### Inherited from
53+
54+
[`Block`](Block.md).[`block_id`](Block.md#block_id)
55+
56+
***
57+
58+
### body?
59+
60+
```ts
61+
optional body: MrkdwnElement;
62+
```
63+
64+
Defined in: [block-kit/blocks.ts:166](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L166)
65+
66+
#### Description
67+
68+
The body text of the card in the form of a [MrkdwnElement](MrkdwnElement.md).
69+
Maximum length for the text in this field is 200 characters.
70+
71+
***
72+
73+
### hero\_image?
74+
75+
```ts
76+
optional hero_image: ImageElement;
77+
```
78+
79+
Defined in: [block-kit/blocks.ts:147](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L147)
80+
81+
#### Description
82+
83+
A top banner image for the card in the form of an [ImageElement](../type-aliases/ImageElement.md).
84+
85+
***
86+
87+
### icon?
88+
89+
```ts
90+
optional icon: ImageElement;
91+
```
92+
93+
Defined in: [block-kit/blocks.ts:151](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L151)
94+
95+
#### Description
96+
97+
A small icon displayed next to the title and subtitle in the form of an [ImageElement](../type-aliases/ImageElement.md).
98+
99+
***
100+
101+
### subtitle?
102+
103+
```ts
104+
optional subtitle: MrkdwnElement;
105+
```
106+
107+
Defined in: [block-kit/blocks.ts:161](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L161)
108+
109+
#### Description
110+
111+
The subtitle of the card in the form of a [MrkdwnElement](MrkdwnElement.md).
112+
Maximum length for the text in this field is 150 characters.
113+
114+
***
115+
116+
### title?
117+
118+
```ts
119+
optional title: MrkdwnElement;
120+
```
121+
122+
Defined in: [block-kit/blocks.ts:156](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L156)
123+
124+
#### Description
125+
126+
The title of the card in the form of a [MrkdwnElement](MrkdwnElement.md).
127+
Maximum length for the text in this field is 150 characters.
128+
129+
***
130+
131+
### type
132+
133+
```ts
134+
type: "card";
135+
```
136+
137+
Defined in: [block-kit/blocks.ts:143](https://github.com/slackapi/node-slack-sdk/blob/main/packages/types/src/block-kit/blocks.ts#L143)
138+
139+
#### Description
140+
141+
The type of block. For a card block, `type` is always `card`.
142+
143+
#### Overrides
144+
145+
[`Block`](Block.md).[`type`](Block.md#type)

0 commit comments

Comments
 (0)