slack-blocks-to-jsx 1.1.0 → 1.1.1

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/dist/index.d.mts CHANGED
@@ -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**
@@ -1265,6 +1265,59 @@ type CarouselBlock = {
1265
1265
  */
1266
1266
  block_id?: string;
1267
1267
  };
1268
+ type ContainerBlock = {
1269
+ /**
1270
+ * Available in surfaces: **Messages**
1271
+ *
1272
+ * * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/container-block View here}
1273
+ * * Changelog: {@link https://docs.slack.dev/changelog/2026/06/29/block-kit-container-block View here}
1274
+ *
1275
+ * A ***container*** block is a general-purpose wrapper that groups child blocks together
1276
+ * with an optional title, subtitle and icon, a configurable ***width***, and optional
1277
+ * collapse/expand behavior.
1278
+ */
1279
+ type: "container";
1280
+ /**
1281
+ * A plain-text title for the container, in the form of a {@link TextObject} of type
1282
+ * ***plain_text***. Maximum length is 150 characters.
1283
+ *
1284
+ * Note: Slack's reference docs type this (and ***subtitle***) as a string, but the API
1285
+ * actually expects a ***plain_text*** text object.
1286
+ */
1287
+ title: TextObject<"plain_text">;
1288
+ /**
1289
+ * An optional subtitle rendered below the title in a smaller, muted style. A
1290
+ * {@link TextObject} of type ***plain_text*** or ***mrkdwn***. Maximum length is 150 characters.
1291
+ */
1292
+ subtitle?: TextObject;
1293
+ /**
1294
+ * An optional icon ({@link ImageElement}) rendered next to the title.
1295
+ */
1296
+ icon?: ImageElement;
1297
+ /**
1298
+ * The child blocks rendered inside the container. Maximum of 10 blocks.
1299
+ */
1300
+ child_blocks: Block[];
1301
+ /**
1302
+ * Controls the rendered width of the container. Defaults to ***standard***.
1303
+ */
1304
+ width?: "narrow" | "standard" | "wide" | "full";
1305
+ /**
1306
+ * When true, the container renders a clickable header that collapses and expands its
1307
+ * content. Defaults to ***false***.
1308
+ */
1309
+ is_collapsible?: boolean;
1310
+ /**
1311
+ * When ***is_collapsible*** is true, controls whether the container starts collapsed.
1312
+ * Defaults to ***false***.
1313
+ */
1314
+ default_collapsed?: boolean;
1315
+ /**
1316
+ * A string acting as a unique identifier for a block. If not specified, one will be generated.
1317
+ * Maximum length for this field is 255 characters.
1318
+ */
1319
+ block_id?: string;
1320
+ };
1268
1321
  /**
1269
1322
  * A single ⟨label, value⟩ pair plotted on a cartesian chart (line, bar, or area).
1270
1323
  */
@@ -1602,4 +1655,4 @@ type Props = {
1602
1655
  type MessageProps = Props;
1603
1656
  declare const Message: (props: Props) => react_jsx_runtime.JSX.Element;
1604
1657
 
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 };
1658
+ 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
@@ -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**
@@ -1265,6 +1265,59 @@ type CarouselBlock = {
1265
1265
  */
1266
1266
  block_id?: string;
1267
1267
  };
1268
+ type ContainerBlock = {
1269
+ /**
1270
+ * Available in surfaces: **Messages**
1271
+ *
1272
+ * * Docs: {@link https://docs.slack.dev/reference/block-kit/blocks/container-block View here}
1273
+ * * Changelog: {@link https://docs.slack.dev/changelog/2026/06/29/block-kit-container-block View here}
1274
+ *
1275
+ * A ***container*** block is a general-purpose wrapper that groups child blocks together
1276
+ * with an optional title, subtitle and icon, a configurable ***width***, and optional
1277
+ * collapse/expand behavior.
1278
+ */
1279
+ type: "container";
1280
+ /**
1281
+ * A plain-text title for the container, in the form of a {@link TextObject} of type
1282
+ * ***plain_text***. Maximum length is 150 characters.
1283
+ *
1284
+ * Note: Slack's reference docs type this (and ***subtitle***) as a string, but the API
1285
+ * actually expects a ***plain_text*** text object.
1286
+ */
1287
+ title: TextObject<"plain_text">;
1288
+ /**
1289
+ * An optional subtitle rendered below the title in a smaller, muted style. A
1290
+ * {@link TextObject} of type ***plain_text*** or ***mrkdwn***. Maximum length is 150 characters.
1291
+ */
1292
+ subtitle?: TextObject;
1293
+ /**
1294
+ * An optional icon ({@link ImageElement}) rendered next to the title.
1295
+ */
1296
+ icon?: ImageElement;
1297
+ /**
1298
+ * The child blocks rendered inside the container. Maximum of 10 blocks.
1299
+ */
1300
+ child_blocks: Block[];
1301
+ /**
1302
+ * Controls the rendered width of the container. Defaults to ***standard***.
1303
+ */
1304
+ width?: "narrow" | "standard" | "wide" | "full";
1305
+ /**
1306
+ * When true, the container renders a clickable header that collapses and expands its
1307
+ * content. Defaults to ***false***.
1308
+ */
1309
+ is_collapsible?: boolean;
1310
+ /**
1311
+ * When ***is_collapsible*** is true, controls whether the container starts collapsed.
1312
+ * Defaults to ***false***.
1313
+ */
1314
+ default_collapsed?: boolean;
1315
+ /**
1316
+ * A string acting as a unique identifier for a block. If not specified, one will be generated.
1317
+ * Maximum length for this field is 255 characters.
1318
+ */
1319
+ block_id?: string;
1320
+ };
1268
1321
  /**
1269
1322
  * A single ⟨label, value⟩ pair plotted on a cartesian chart (line, bar, or area).
1270
1323
  */
@@ -1602,4 +1655,4 @@ type Props = {
1602
1655
  type MessageProps = Props;
1603
1656
  declare const Message: (props: Props) => react_jsx_runtime.JSX.Element;
1604
1657
 
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 };
1658
+ 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 };