slack-blocks-to-jsx 1.1.0 β 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-manifest.json +3 -0
- package/CHANGELOG.md +15 -0
- package/dist/index.d.mts +92 -7
- package/dist/index.d.ts +92 -7
- package/dist/index.js +12 -12
- package/dist/index.mjs +12 -12
- package/dist/style.css +1 -1
- package/package.json +17 -17
- package/readme.md +1 -0
- package/release-please-config.json +9 -0
- package/.claude/worktrees/hopeful-pare-31b73f/.claude/launch.json +0 -11
- package/.claude/worktrees/hopeful-pare-31b73f/KNOWLEDGE_BASE.md +0 -858
- package/.claude/worktrees/hopeful-pare-31b73f/dist/index.d.mts +0 -1477
- package/.claude/worktrees/hopeful-pare-31b73f/dist/index.d.ts +0 -1477
- package/.claude/worktrees/hopeful-pare-31b73f/dist/index.js +0 -15
- package/.claude/worktrees/hopeful-pare-31b73f/dist/index.mjs +0 -15
- package/.claude/worktrees/hopeful-pare-31b73f/dist/style.css +0 -1
- package/.claude/worktrees/hopeful-pare-31b73f/package.json +0 -61
- package/.claude/worktrees/hopeful-pare-31b73f/readme.md +0 -693
- package/.claude/worktrees/hopeful-pare-31b73f/tsup.config.ts +0 -9
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.1.2](https://github.com/themashcodee/slack-blocks-to-jsx/compare/v1.1.1...v1.1.2) (2026-08-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* π match release-please tags to the repo's existing v* tags ([02baa54](https://github.com/themashcodee/slack-blocks-to-jsx/commit/02baa54b0fa6df6eec1b06522981e97de31925ee))
|
|
9
|
+
* π match release-please tags to the repo's existing v* tags ([cb52ff0](https://github.com/themashcodee/slack-blocks-to-jsx/commit/cb52ff0634758cd800e370ef033558e15898c7f4))
|
|
10
|
+
* π repair pnpm playground:build and run it in CI ([790ad85](https://github.com/themashcodee/slack-blocks-to-jsx/commit/790ad85a69f3ac77007a1a629e7235b0a4c8991b))
|
|
11
|
+
* π stack rich_text sections on their own lines ([54846bf](https://github.com/themashcodee/slack-blocks-to-jsx/commit/54846bfdc5c738965325e4a8883a90beebe39b62))
|
|
12
|
+
* π stack rich_text sections on their own lines ([93a7515](https://github.com/themashcodee/slack-blocks-to-jsx/commit/93a75153bbee13a38f81deb4f1035b55efb4575d))
|
|
13
|
+
* π stop bullet lists from seeding ordered list numbering ([c7da9f5](https://github.com/themashcodee/slack-blocks-to-jsx/commit/c7da9f5f1795001103d9b626a0e217b7d3f19e85))
|
|
14
|
+
* π stop bullet lists from seeding ordered list numbering ([6d4ccaa](https://github.com/themashcodee/slack-blocks-to-jsx/commit/6d4ccaaf4c2d36fa17ddea114964e0e9875bf92b))
|
|
15
|
+
* repair pnpm playground:build and run it in CI ([ed2733a](https://github.com/themashcodee/slack-blocks-to-jsx/commit/ed2733ad14e50ae5cad7abd87f8c6f3852e8c058))
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
2
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
type Element = ButtonElement | CheckboxesElement | DatePickerElement | DateTimePickerElement | EmailInputElement | FeedbackButtonsElement | FileInputElement | IconButtonElement | ImageElement | MultiStaticSelectElement | MultiExternalSelectElement | MultiUsersSelectElement | MultiConversationsSelectElement | MultiChannelsSelectElement | NumberInputElement | OverflowMenuElement | PlainTextInputElement | RadioButtonsElement | RichTextInputElement | StaticSelectElement | ExternalSelectElement | UsersSelectElement | ConversationsSelectElement | ChannelsSelectElement | TimePickerElement | UrlTextInputElement | UrlSourceElement | WorkflowButtonElement | RichTextBlockElement;
|
|
@@ -780,7 +780,7 @@ type WorkflowObject = {
|
|
|
780
780
|
trigger: TriggerObject;
|
|
781
781
|
};
|
|
782
782
|
|
|
783
|
-
type Block = ActionsBlock | AlertBlock | CardBlock | CarouselBlock | ContextBlock | ContextActionsBlock | DataVisualizationBlock | DividerBlock | FileBlock | HeaderBlock | ImageBlock | InputBlock | MarkdownBlock | PlanBlock | SectionBlock | TableBlock | TaskCardBlock | VideoBlock | RichTextBlock;
|
|
783
|
+
type Block = ActionsBlock | AlertBlock | CardBlock | CarouselBlock | ContainerBlock | ContextBlock | ContextActionsBlock | DataVisualizationBlock | DividerBlock | FileBlock | HeaderBlock | ImageBlock | InputBlock | MarkdownBlock | PlanBlock | SectionBlock | TableBlock | TaskCardBlock | VideoBlock | RichTextBlock;
|
|
784
784
|
type ActionsBlock = {
|
|
785
785
|
/**
|
|
786
786
|
* Available in surfaces: **Modals**, **Messages**, **Home tabs**
|
|
@@ -1070,6 +1070,9 @@ type TableBlock = {
|
|
|
1070
1070
|
/**
|
|
1071
1071
|
* Available in surfaces: **Messages**
|
|
1072
1072
|
*
|
|
1073
|
+
* Note: Slack's blocks.json lists Home tabs too, but our testing shows the table block only
|
|
1074
|
+
* renders in Messages β Modals and Home tabs don't support it.
|
|
1075
|
+
*
|
|
1073
1076
|
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/table-block/ View here}
|
|
1074
1077
|
*
|
|
1075
1078
|
* A ***table*** block displays data in a structured table format. It supports up to 100 rows with 20 cells each. Only one table is allowed per message.
|
|
@@ -1129,22 +1132,51 @@ type RichTextBlock = {
|
|
|
1129
1132
|
elements: RichTextBlockElement[];
|
|
1130
1133
|
};
|
|
1131
1134
|
type ContextActionsBlock = {
|
|
1135
|
+
/**
|
|
1136
|
+
* Available in surfaces: **Messages**
|
|
1137
|
+
*
|
|
1138
|
+
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/context-actions-block/ View here}
|
|
1139
|
+
*
|
|
1140
|
+
* Displays actions as contextual info, which can include both feedback buttons and icon buttons.
|
|
1141
|
+
*/
|
|
1132
1142
|
type: "context_actions";
|
|
1133
1143
|
elements: Element[];
|
|
1134
1144
|
block_id?: string;
|
|
1135
1145
|
};
|
|
1136
1146
|
type MarkdownBlock = {
|
|
1147
|
+
/**
|
|
1148
|
+
* Available in surfaces: **Messages**
|
|
1149
|
+
*
|
|
1150
|
+
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/markdown-block/ View here}
|
|
1151
|
+
*
|
|
1152
|
+
* Displays formatted markdown text.
|
|
1153
|
+
*/
|
|
1137
1154
|
type: "markdown";
|
|
1138
1155
|
text: string;
|
|
1139
1156
|
block_id?: string;
|
|
1140
1157
|
};
|
|
1141
1158
|
type PlanBlock = {
|
|
1159
|
+
/**
|
|
1160
|
+
* Available in surfaces: **Messages**
|
|
1161
|
+
*
|
|
1162
|
+
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/plan-block/ View here}
|
|
1163
|
+
*
|
|
1164
|
+
* Displays a plan made up of one or more {@link TaskCardBlock task cards}.
|
|
1165
|
+
*/
|
|
1142
1166
|
type: "plan";
|
|
1143
1167
|
title: string;
|
|
1144
1168
|
tasks?: TaskCardBlock[];
|
|
1145
1169
|
block_id?: string;
|
|
1146
1170
|
};
|
|
1147
1171
|
type TaskCardBlock = {
|
|
1172
|
+
/**
|
|
1173
|
+
* Available in surfaces: **Messages**
|
|
1174
|
+
*
|
|
1175
|
+
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/task-card-block/ View here}
|
|
1176
|
+
*
|
|
1177
|
+
* Displays a single task with a status, optional details, output, and sources. Task cards can
|
|
1178
|
+
* stand alone or be nested inside a {@link PlanBlock}.
|
|
1179
|
+
*/
|
|
1148
1180
|
type: "task_card";
|
|
1149
1181
|
task_id: string;
|
|
1150
1182
|
title: string;
|
|
@@ -1160,7 +1192,7 @@ type TaskCardBlock = {
|
|
|
1160
1192
|
type AlertLevel = "default" | "info" | "warning" | "error" | "success";
|
|
1161
1193
|
type AlertBlock = {
|
|
1162
1194
|
/**
|
|
1163
|
-
* Available in surfaces: **
|
|
1195
|
+
* Available in surfaces: **Modals**
|
|
1164
1196
|
*
|
|
1165
1197
|
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/alert-block/ View here}
|
|
1166
1198
|
*
|
|
@@ -1204,7 +1236,7 @@ type CardImage = {
|
|
|
1204
1236
|
};
|
|
1205
1237
|
type CardBlock = {
|
|
1206
1238
|
/**
|
|
1207
|
-
* Available in surfaces: **Messages**
|
|
1239
|
+
* Available in surfaces: **Modals**, **Messages**, **Home tabs**
|
|
1208
1240
|
*
|
|
1209
1241
|
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/card-block/ View here}
|
|
1210
1242
|
*
|
|
@@ -1247,7 +1279,7 @@ type CardBlock = {
|
|
|
1247
1279
|
};
|
|
1248
1280
|
type CarouselBlock = {
|
|
1249
1281
|
/**
|
|
1250
|
-
* Available in surfaces: **Messages**
|
|
1282
|
+
* Available in surfaces: **Messages**, **Home tabs**
|
|
1251
1283
|
*
|
|
1252
1284
|
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/carousel-block/ View here}
|
|
1253
1285
|
*
|
|
@@ -1265,6 +1297,59 @@ type CarouselBlock = {
|
|
|
1265
1297
|
*/
|
|
1266
1298
|
block_id?: string;
|
|
1267
1299
|
};
|
|
1300
|
+
type ContainerBlock = {
|
|
1301
|
+
/**
|
|
1302
|
+
* Available in surfaces: **Messages**
|
|
1303
|
+
*
|
|
1304
|
+
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/container-block View here}
|
|
1305
|
+
* * Changelog: {@link https://docs.slack.dev/changelog/2026/06/29/block-kit-container-block View here}
|
|
1306
|
+
*
|
|
1307
|
+
* A ***container*** block is a general-purpose wrapper that groups child blocks together
|
|
1308
|
+
* with an optional title, subtitle and icon, a configurable ***width***, and optional
|
|
1309
|
+
* collapse/expand behavior.
|
|
1310
|
+
*/
|
|
1311
|
+
type: "container";
|
|
1312
|
+
/**
|
|
1313
|
+
* A plain-text title for the container, in the form of a {@link TextObject} of type
|
|
1314
|
+
* ***plain_text***. Maximum length is 150 characters.
|
|
1315
|
+
*
|
|
1316
|
+
* Note: Slack's reference docs type this (and ***subtitle***) as a string, but the API
|
|
1317
|
+
* actually expects a ***plain_text*** text object.
|
|
1318
|
+
*/
|
|
1319
|
+
title: TextObject<"plain_text">;
|
|
1320
|
+
/**
|
|
1321
|
+
* An optional subtitle rendered below the title in a smaller, muted style. A
|
|
1322
|
+
* {@link TextObject} of type ***plain_text*** or ***mrkdwn***. Maximum length is 150 characters.
|
|
1323
|
+
*/
|
|
1324
|
+
subtitle?: TextObject;
|
|
1325
|
+
/**
|
|
1326
|
+
* An optional icon ({@link ImageElement}) rendered next to the title.
|
|
1327
|
+
*/
|
|
1328
|
+
icon?: ImageElement;
|
|
1329
|
+
/**
|
|
1330
|
+
* The child blocks rendered inside the container. Maximum of 10 blocks.
|
|
1331
|
+
*/
|
|
1332
|
+
child_blocks: Block[];
|
|
1333
|
+
/**
|
|
1334
|
+
* Controls the rendered width of the container. Defaults to ***standard***.
|
|
1335
|
+
*/
|
|
1336
|
+
width?: "narrow" | "standard" | "wide" | "full";
|
|
1337
|
+
/**
|
|
1338
|
+
* When true, the container renders a clickable header that collapses and expands its
|
|
1339
|
+
* content. Defaults to ***false***.
|
|
1340
|
+
*/
|
|
1341
|
+
is_collapsible?: boolean;
|
|
1342
|
+
/**
|
|
1343
|
+
* When ***is_collapsible*** is true, controls whether the container starts collapsed.
|
|
1344
|
+
* Defaults to ***false***.
|
|
1345
|
+
*/
|
|
1346
|
+
default_collapsed?: boolean;
|
|
1347
|
+
/**
|
|
1348
|
+
* A string acting as a unique identifier for a block. If not specified, one will be generated.
|
|
1349
|
+
* Maximum length for this field is 255 characters.
|
|
1350
|
+
*/
|
|
1351
|
+
block_id?: string;
|
|
1352
|
+
};
|
|
1268
1353
|
/**
|
|
1269
1354
|
* A single β¨label, valueβ© pair plotted on a cartesian chart (line, bar, or area).
|
|
1270
1355
|
*/
|
|
@@ -1600,6 +1685,6 @@ type Props = {
|
|
|
1600
1685
|
withoutWrapper?: boolean;
|
|
1601
1686
|
};
|
|
1602
1687
|
type MessageProps = Props;
|
|
1603
|
-
declare const Message: (props: Props) =>
|
|
1688
|
+
declare const Message: (props: Props) => React$1.JSX.Element;
|
|
1604
1689
|
|
|
1605
|
-
export { type ActionsBlock, type AlertBlock, type AlertLevel, type Block, type ButtonElement, type CardBlock, type CardImage, type CarouselBlock, type ChannelsSelectElement, type CheckboxesElement, type ConfirmDialogObject, type ContextActionsBlock, type ContextBlock, type ConversationsSelectElement, type DataVisualizationBlock, type DataVizAxisConfig, type DataVizCartesianChart, type DataVizChart, type DataVizDataPoint, type DataVizPieChart, type DataVizSegment, type DataVizSeries, type DatePickerElement, type DateTimePickerElement, type DispatchActionConfigObject, type DividerBlock, type Element, type EmailInputElement, type ExternalSelectElement, type FeedbackButtonsElement, type FileBlock, type FileInputElement, type FilterObject, type HeaderBlock, type IconButtonElement, type ImageBlock, type ImageElement, type InputBlock, type MarkdownBlock, Message, type MessageProps, type MultiChannelsSelectElement, type MultiConversationsSelectElement, type MultiExternalSelectElement, type MultiStaticSelectElement, type MultiUsersSelectElement, type NumberInputElement, type OptionGroupObject, type OptionObject, type OptionObjectWithoutUrl, type OverflowMenuElement, type PlainTextInputElement, type PlanBlock, type RadioButtonsElement, type RichTextBlock, type RichTextBlockElement, type RichTextBlockSubElement, type RichTextInputElement, type RichTextList, type RichTextPreformatted, type RichTextQuote, type RichTextSection, type RichTextSectionBroadcast, type RichTextSectionChannel, type RichTextSectionColor, type RichTextSectionDate, type RichTextSectionElement, type RichTextSectionElementStyle, type RichTextSectionElementStyleCode, type RichTextSectionEmoji, type RichTextSectionLink, type RichTextSectionText, type RichTextSectionUser, type RichTextSectionUsergroup, type SectionBlock, type SlackFileObject, type StaticSelectElement, type Style, type TableBlock, type TableCell, type TableColumnSetting, type TaskCardBlock, type TextObject, type TextObjectTextType, type TimePickerElement, type TriggerObject, type UrlSourceElement, type UrlTextInputElement, type UsersSelectElement, type VideoBlock, type WorkflowButtonElement, type WorkflowObject };
|
|
1690
|
+
export { type ActionsBlock, type AlertBlock, type AlertLevel, type Block, type ButtonElement, type CardBlock, type CardImage, type CarouselBlock, type ChannelsSelectElement, type CheckboxesElement, type ConfirmDialogObject, type ContainerBlock, type ContextActionsBlock, type ContextBlock, type ConversationsSelectElement, type DataVisualizationBlock, type DataVizAxisConfig, type DataVizCartesianChart, type DataVizChart, type DataVizDataPoint, type DataVizPieChart, type DataVizSegment, type DataVizSeries, type DatePickerElement, type DateTimePickerElement, type DispatchActionConfigObject, type DividerBlock, type Element, type EmailInputElement, type ExternalSelectElement, type FeedbackButtonsElement, type FileBlock, type FileInputElement, type FilterObject, type HeaderBlock, type IconButtonElement, type ImageBlock, type ImageElement, type InputBlock, type MarkdownBlock, Message, type MessageProps, type MultiChannelsSelectElement, type MultiConversationsSelectElement, type MultiExternalSelectElement, type MultiStaticSelectElement, type MultiUsersSelectElement, type NumberInputElement, type OptionGroupObject, type OptionObject, type OptionObjectWithoutUrl, type OverflowMenuElement, type PlainTextInputElement, type PlanBlock, type RadioButtonsElement, type RichTextBlock, type RichTextBlockElement, type RichTextBlockSubElement, type RichTextInputElement, type RichTextList, type RichTextPreformatted, type RichTextQuote, type RichTextSection, type RichTextSectionBroadcast, type RichTextSectionChannel, type RichTextSectionColor, type RichTextSectionDate, type RichTextSectionElement, type RichTextSectionElementStyle, type RichTextSectionElementStyleCode, type RichTextSectionEmoji, type RichTextSectionLink, type RichTextSectionText, type RichTextSectionUser, type RichTextSectionUsergroup, type SectionBlock, type SlackFileObject, type StaticSelectElement, type Style, type TableBlock, type TableCell, type TableColumnSetting, type TaskCardBlock, type TextObject, type TextObjectTextType, type TimePickerElement, type TriggerObject, type UrlSourceElement, type UrlTextInputElement, type UsersSelectElement, type VideoBlock, type WorkflowButtonElement, type WorkflowObject };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
2
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
type Element = ButtonElement | CheckboxesElement | DatePickerElement | DateTimePickerElement | EmailInputElement | FeedbackButtonsElement | FileInputElement | IconButtonElement | ImageElement | MultiStaticSelectElement | MultiExternalSelectElement | MultiUsersSelectElement | MultiConversationsSelectElement | MultiChannelsSelectElement | NumberInputElement | OverflowMenuElement | PlainTextInputElement | RadioButtonsElement | RichTextInputElement | StaticSelectElement | ExternalSelectElement | UsersSelectElement | ConversationsSelectElement | ChannelsSelectElement | TimePickerElement | UrlTextInputElement | UrlSourceElement | WorkflowButtonElement | RichTextBlockElement;
|
|
@@ -780,7 +780,7 @@ type WorkflowObject = {
|
|
|
780
780
|
trigger: TriggerObject;
|
|
781
781
|
};
|
|
782
782
|
|
|
783
|
-
type Block = ActionsBlock | AlertBlock | CardBlock | CarouselBlock | ContextBlock | ContextActionsBlock | DataVisualizationBlock | DividerBlock | FileBlock | HeaderBlock | ImageBlock | InputBlock | MarkdownBlock | PlanBlock | SectionBlock | TableBlock | TaskCardBlock | VideoBlock | RichTextBlock;
|
|
783
|
+
type Block = ActionsBlock | AlertBlock | CardBlock | CarouselBlock | ContainerBlock | ContextBlock | ContextActionsBlock | DataVisualizationBlock | DividerBlock | FileBlock | HeaderBlock | ImageBlock | InputBlock | MarkdownBlock | PlanBlock | SectionBlock | TableBlock | TaskCardBlock | VideoBlock | RichTextBlock;
|
|
784
784
|
type ActionsBlock = {
|
|
785
785
|
/**
|
|
786
786
|
* Available in surfaces: **Modals**, **Messages**, **Home tabs**
|
|
@@ -1070,6 +1070,9 @@ type TableBlock = {
|
|
|
1070
1070
|
/**
|
|
1071
1071
|
* Available in surfaces: **Messages**
|
|
1072
1072
|
*
|
|
1073
|
+
* Note: Slack's blocks.json lists Home tabs too, but our testing shows the table block only
|
|
1074
|
+
* renders in Messages β Modals and Home tabs don't support it.
|
|
1075
|
+
*
|
|
1073
1076
|
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/table-block/ View here}
|
|
1074
1077
|
*
|
|
1075
1078
|
* A ***table*** block displays data in a structured table format. It supports up to 100 rows with 20 cells each. Only one table is allowed per message.
|
|
@@ -1129,22 +1132,51 @@ type RichTextBlock = {
|
|
|
1129
1132
|
elements: RichTextBlockElement[];
|
|
1130
1133
|
};
|
|
1131
1134
|
type ContextActionsBlock = {
|
|
1135
|
+
/**
|
|
1136
|
+
* Available in surfaces: **Messages**
|
|
1137
|
+
*
|
|
1138
|
+
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/context-actions-block/ View here}
|
|
1139
|
+
*
|
|
1140
|
+
* Displays actions as contextual info, which can include both feedback buttons and icon buttons.
|
|
1141
|
+
*/
|
|
1132
1142
|
type: "context_actions";
|
|
1133
1143
|
elements: Element[];
|
|
1134
1144
|
block_id?: string;
|
|
1135
1145
|
};
|
|
1136
1146
|
type MarkdownBlock = {
|
|
1147
|
+
/**
|
|
1148
|
+
* Available in surfaces: **Messages**
|
|
1149
|
+
*
|
|
1150
|
+
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/markdown-block/ View here}
|
|
1151
|
+
*
|
|
1152
|
+
* Displays formatted markdown text.
|
|
1153
|
+
*/
|
|
1137
1154
|
type: "markdown";
|
|
1138
1155
|
text: string;
|
|
1139
1156
|
block_id?: string;
|
|
1140
1157
|
};
|
|
1141
1158
|
type PlanBlock = {
|
|
1159
|
+
/**
|
|
1160
|
+
* Available in surfaces: **Messages**
|
|
1161
|
+
*
|
|
1162
|
+
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/plan-block/ View here}
|
|
1163
|
+
*
|
|
1164
|
+
* Displays a plan made up of one or more {@link TaskCardBlock task cards}.
|
|
1165
|
+
*/
|
|
1142
1166
|
type: "plan";
|
|
1143
1167
|
title: string;
|
|
1144
1168
|
tasks?: TaskCardBlock[];
|
|
1145
1169
|
block_id?: string;
|
|
1146
1170
|
};
|
|
1147
1171
|
type TaskCardBlock = {
|
|
1172
|
+
/**
|
|
1173
|
+
* Available in surfaces: **Messages**
|
|
1174
|
+
*
|
|
1175
|
+
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/task-card-block/ View here}
|
|
1176
|
+
*
|
|
1177
|
+
* Displays a single task with a status, optional details, output, and sources. Task cards can
|
|
1178
|
+
* stand alone or be nested inside a {@link PlanBlock}.
|
|
1179
|
+
*/
|
|
1148
1180
|
type: "task_card";
|
|
1149
1181
|
task_id: string;
|
|
1150
1182
|
title: string;
|
|
@@ -1160,7 +1192,7 @@ type TaskCardBlock = {
|
|
|
1160
1192
|
type AlertLevel = "default" | "info" | "warning" | "error" | "success";
|
|
1161
1193
|
type AlertBlock = {
|
|
1162
1194
|
/**
|
|
1163
|
-
* Available in surfaces: **
|
|
1195
|
+
* Available in surfaces: **Modals**
|
|
1164
1196
|
*
|
|
1165
1197
|
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/alert-block/ View here}
|
|
1166
1198
|
*
|
|
@@ -1204,7 +1236,7 @@ type CardImage = {
|
|
|
1204
1236
|
};
|
|
1205
1237
|
type CardBlock = {
|
|
1206
1238
|
/**
|
|
1207
|
-
* Available in surfaces: **Messages**
|
|
1239
|
+
* Available in surfaces: **Modals**, **Messages**, **Home tabs**
|
|
1208
1240
|
*
|
|
1209
1241
|
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/card-block/ View here}
|
|
1210
1242
|
*
|
|
@@ -1247,7 +1279,7 @@ type CardBlock = {
|
|
|
1247
1279
|
};
|
|
1248
1280
|
type CarouselBlock = {
|
|
1249
1281
|
/**
|
|
1250
|
-
* Available in surfaces: **Messages**
|
|
1282
|
+
* Available in surfaces: **Messages**, **Home tabs**
|
|
1251
1283
|
*
|
|
1252
1284
|
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/carousel-block/ View here}
|
|
1253
1285
|
*
|
|
@@ -1265,6 +1297,59 @@ type CarouselBlock = {
|
|
|
1265
1297
|
*/
|
|
1266
1298
|
block_id?: string;
|
|
1267
1299
|
};
|
|
1300
|
+
type ContainerBlock = {
|
|
1301
|
+
/**
|
|
1302
|
+
* Available in surfaces: **Messages**
|
|
1303
|
+
*
|
|
1304
|
+
* * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/container-block View here}
|
|
1305
|
+
* * Changelog: {@link https://docs.slack.dev/changelog/2026/06/29/block-kit-container-block View here}
|
|
1306
|
+
*
|
|
1307
|
+
* A ***container*** block is a general-purpose wrapper that groups child blocks together
|
|
1308
|
+
* with an optional title, subtitle and icon, a configurable ***width***, and optional
|
|
1309
|
+
* collapse/expand behavior.
|
|
1310
|
+
*/
|
|
1311
|
+
type: "container";
|
|
1312
|
+
/**
|
|
1313
|
+
* A plain-text title for the container, in the form of a {@link TextObject} of type
|
|
1314
|
+
* ***plain_text***. Maximum length is 150 characters.
|
|
1315
|
+
*
|
|
1316
|
+
* Note: Slack's reference docs type this (and ***subtitle***) as a string, but the API
|
|
1317
|
+
* actually expects a ***plain_text*** text object.
|
|
1318
|
+
*/
|
|
1319
|
+
title: TextObject<"plain_text">;
|
|
1320
|
+
/**
|
|
1321
|
+
* An optional subtitle rendered below the title in a smaller, muted style. A
|
|
1322
|
+
* {@link TextObject} of type ***plain_text*** or ***mrkdwn***. Maximum length is 150 characters.
|
|
1323
|
+
*/
|
|
1324
|
+
subtitle?: TextObject;
|
|
1325
|
+
/**
|
|
1326
|
+
* An optional icon ({@link ImageElement}) rendered next to the title.
|
|
1327
|
+
*/
|
|
1328
|
+
icon?: ImageElement;
|
|
1329
|
+
/**
|
|
1330
|
+
* The child blocks rendered inside the container. Maximum of 10 blocks.
|
|
1331
|
+
*/
|
|
1332
|
+
child_blocks: Block[];
|
|
1333
|
+
/**
|
|
1334
|
+
* Controls the rendered width of the container. Defaults to ***standard***.
|
|
1335
|
+
*/
|
|
1336
|
+
width?: "narrow" | "standard" | "wide" | "full";
|
|
1337
|
+
/**
|
|
1338
|
+
* When true, the container renders a clickable header that collapses and expands its
|
|
1339
|
+
* content. Defaults to ***false***.
|
|
1340
|
+
*/
|
|
1341
|
+
is_collapsible?: boolean;
|
|
1342
|
+
/**
|
|
1343
|
+
* When ***is_collapsible*** is true, controls whether the container starts collapsed.
|
|
1344
|
+
* Defaults to ***false***.
|
|
1345
|
+
*/
|
|
1346
|
+
default_collapsed?: boolean;
|
|
1347
|
+
/**
|
|
1348
|
+
* A string acting as a unique identifier for a block. If not specified, one will be generated.
|
|
1349
|
+
* Maximum length for this field is 255 characters.
|
|
1350
|
+
*/
|
|
1351
|
+
block_id?: string;
|
|
1352
|
+
};
|
|
1268
1353
|
/**
|
|
1269
1354
|
* A single β¨label, valueβ© pair plotted on a cartesian chart (line, bar, or area).
|
|
1270
1355
|
*/
|
|
@@ -1600,6 +1685,6 @@ type Props = {
|
|
|
1600
1685
|
withoutWrapper?: boolean;
|
|
1601
1686
|
};
|
|
1602
1687
|
type MessageProps = Props;
|
|
1603
|
-
declare const Message: (props: Props) =>
|
|
1688
|
+
declare const Message: (props: Props) => React$1.JSX.Element;
|
|
1604
1689
|
|
|
1605
|
-
export { type ActionsBlock, type AlertBlock, type AlertLevel, type Block, type ButtonElement, type CardBlock, type CardImage, type CarouselBlock, type ChannelsSelectElement, type CheckboxesElement, type ConfirmDialogObject, type ContextActionsBlock, type ContextBlock, type ConversationsSelectElement, type DataVisualizationBlock, type DataVizAxisConfig, type DataVizCartesianChart, type DataVizChart, type DataVizDataPoint, type DataVizPieChart, type DataVizSegment, type DataVizSeries, type DatePickerElement, type DateTimePickerElement, type DispatchActionConfigObject, type DividerBlock, type Element, type EmailInputElement, type ExternalSelectElement, type FeedbackButtonsElement, type FileBlock, type FileInputElement, type FilterObject, type HeaderBlock, type IconButtonElement, type ImageBlock, type ImageElement, type InputBlock, type MarkdownBlock, Message, type MessageProps, type MultiChannelsSelectElement, type MultiConversationsSelectElement, type MultiExternalSelectElement, type MultiStaticSelectElement, type MultiUsersSelectElement, type NumberInputElement, type OptionGroupObject, type OptionObject, type OptionObjectWithoutUrl, type OverflowMenuElement, type PlainTextInputElement, type PlanBlock, type RadioButtonsElement, type RichTextBlock, type RichTextBlockElement, type RichTextBlockSubElement, type RichTextInputElement, type RichTextList, type RichTextPreformatted, type RichTextQuote, type RichTextSection, type RichTextSectionBroadcast, type RichTextSectionChannel, type RichTextSectionColor, type RichTextSectionDate, type RichTextSectionElement, type RichTextSectionElementStyle, type RichTextSectionElementStyleCode, type RichTextSectionEmoji, type RichTextSectionLink, type RichTextSectionText, type RichTextSectionUser, type RichTextSectionUsergroup, type SectionBlock, type SlackFileObject, type StaticSelectElement, type Style, type TableBlock, type TableCell, type TableColumnSetting, type TaskCardBlock, type TextObject, type TextObjectTextType, type TimePickerElement, type TriggerObject, type UrlSourceElement, type UrlTextInputElement, type UsersSelectElement, type VideoBlock, type WorkflowButtonElement, type WorkflowObject };
|
|
1690
|
+
export { type ActionsBlock, type AlertBlock, type AlertLevel, type Block, type ButtonElement, type CardBlock, type CardImage, type CarouselBlock, type ChannelsSelectElement, type CheckboxesElement, type ConfirmDialogObject, type ContainerBlock, type ContextActionsBlock, type ContextBlock, type ConversationsSelectElement, type DataVisualizationBlock, type DataVizAxisConfig, type DataVizCartesianChart, type DataVizChart, type DataVizDataPoint, type DataVizPieChart, type DataVizSegment, type DataVizSeries, type DatePickerElement, type DateTimePickerElement, type DispatchActionConfigObject, type DividerBlock, type Element, type EmailInputElement, type ExternalSelectElement, type FeedbackButtonsElement, type FileBlock, type FileInputElement, type FilterObject, type HeaderBlock, type IconButtonElement, type ImageBlock, type ImageElement, type InputBlock, type MarkdownBlock, Message, type MessageProps, type MultiChannelsSelectElement, type MultiConversationsSelectElement, type MultiExternalSelectElement, type MultiStaticSelectElement, type MultiUsersSelectElement, type NumberInputElement, type OptionGroupObject, type OptionObject, type OptionObjectWithoutUrl, type OverflowMenuElement, type PlainTextInputElement, type PlanBlock, type RadioButtonsElement, type RichTextBlock, type RichTextBlockElement, type RichTextBlockSubElement, type RichTextInputElement, type RichTextList, type RichTextPreformatted, type RichTextQuote, type RichTextSection, type RichTextSectionBroadcast, type RichTextSectionChannel, type RichTextSectionColor, type RichTextSectionDate, type RichTextSectionElement, type RichTextSectionElementStyle, type RichTextSectionElementStyleCode, type RichTextSectionEmoji, type RichTextSectionLink, type RichTextSectionText, type RichTextSectionUser, type RichTextSectionUsergroup, type SectionBlock, type SlackFileObject, type StaticSelectElement, type Style, type TableBlock, type TableCell, type TableColumnSetting, type TaskCardBlock, type TextObject, type TextObjectTextType, type TimePickerElement, type TriggerObject, type UrlSourceElement, type UrlTextInputElement, type UsersSelectElement, type VideoBlock, type WorkflowButtonElement, type WorkflowObject };
|