@tightknitai/block-kitchen 0.10.15 → 0.10.16

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.
@@ -480,7 +480,7 @@ type Chart = CartesianChart | PieChart;
480
480
  type ChartType = Chart['type'];
481
481
  /**
482
482
  * Slack `data_visualization` block payload. Renders a line, bar, area, or
483
- * pie chart from inline data. Valid on the message surface only.
483
+ * pie chart from inline data. Valid on message and App Home surfaces.
484
484
  * `slack-web-api-client` doesn't ship this type yet, so we declare it.
485
485
  * @see https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
486
486
  */
@@ -503,31 +503,38 @@ type ContainerChildBlock = SectionBlock | SupportedHeaderBlock | DividerBlock |
503
503
  /**
504
504
  * Slack `container` block payload. A general-purpose wrapper that groups
505
505
  * 1-10 child blocks into a single, optionally collapsible unit with a
506
- * configurable width. Valid on the message surface only.
507
- * `default_collapsed` only takes effect when `is_collapsible` is true.
506
+ * configurable width. Valid on message and App Home surfaces.
507
+ * `default_collapsed` only takes effect when `is_collapsible` is true, and
508
+ * `has_header_divider` only when it is not.
509
+ *
510
+ * At least one of `title` or `rich_text_title` is required; when both are
511
+ * set Slack renders `rich_text_title`.
508
512
  *
509
513
  * Note: despite what the API reference says, `title` and `subtitle` are
510
- * `plain_text` text objects, not plain strings. `slack-web-api-client`
511
- * doesn't ship this type yet, so we declare it.
514
+ * text objects, not plain strings. `slack-web-api-client` doesn't ship
515
+ * this type yet, so we declare it.
512
516
  * @see https://docs.slack.dev/reference/block-kit/blocks/container-block
513
517
  */
514
518
  interface ContainerBlock {
515
519
  type: 'container';
516
- title: {
520
+ title?: {
517
521
  type: 'plain_text';
518
522
  text: string;
519
523
  emoji?: boolean;
520
524
  };
525
+ rich_text_title?: RichTextBlock;
521
526
  child_blocks: ContainerChildBlock[];
522
527
  subtitle?: {
523
- type: 'plain_text';
528
+ type: 'plain_text' | 'mrkdwn';
524
529
  text: string;
525
530
  emoji?: boolean;
531
+ verbatim?: boolean;
526
532
  };
527
533
  icon?: ImageElement;
528
534
  width?: 'narrow' | 'standard' | 'wide' | 'full';
529
535
  is_collapsible?: boolean;
530
536
  default_collapsed?: boolean;
537
+ has_header_divider?: boolean;
531
538
  block_id?: string;
532
539
  }
533
540
  /**
@@ -480,7 +480,7 @@ type Chart = CartesianChart | PieChart;
480
480
  type ChartType = Chart['type'];
481
481
  /**
482
482
  * Slack `data_visualization` block payload. Renders a line, bar, area, or
483
- * pie chart from inline data. Valid on the message surface only.
483
+ * pie chart from inline data. Valid on message and App Home surfaces.
484
484
  * `slack-web-api-client` doesn't ship this type yet, so we declare it.
485
485
  * @see https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
486
486
  */
@@ -503,31 +503,38 @@ type ContainerChildBlock = SectionBlock | SupportedHeaderBlock | DividerBlock |
503
503
  /**
504
504
  * Slack `container` block payload. A general-purpose wrapper that groups
505
505
  * 1-10 child blocks into a single, optionally collapsible unit with a
506
- * configurable width. Valid on the message surface only.
507
- * `default_collapsed` only takes effect when `is_collapsible` is true.
506
+ * configurable width. Valid on message and App Home surfaces.
507
+ * `default_collapsed` only takes effect when `is_collapsible` is true, and
508
+ * `has_header_divider` only when it is not.
509
+ *
510
+ * At least one of `title` or `rich_text_title` is required; when both are
511
+ * set Slack renders `rich_text_title`.
508
512
  *
509
513
  * Note: despite what the API reference says, `title` and `subtitle` are
510
- * `plain_text` text objects, not plain strings. `slack-web-api-client`
511
- * doesn't ship this type yet, so we declare it.
514
+ * text objects, not plain strings. `slack-web-api-client` doesn't ship
515
+ * this type yet, so we declare it.
512
516
  * @see https://docs.slack.dev/reference/block-kit/blocks/container-block
513
517
  */
514
518
  interface ContainerBlock {
515
519
  type: 'container';
516
- title: {
520
+ title?: {
517
521
  type: 'plain_text';
518
522
  text: string;
519
523
  emoji?: boolean;
520
524
  };
525
+ rich_text_title?: RichTextBlock;
521
526
  child_blocks: ContainerChildBlock[];
522
527
  subtitle?: {
523
- type: 'plain_text';
528
+ type: 'plain_text' | 'mrkdwn';
524
529
  text: string;
525
530
  emoji?: boolean;
531
+ verbatim?: boolean;
526
532
  };
527
533
  icon?: ImageElement;
528
534
  width?: 'narrow' | 'standard' | 'wide' | 'full';
529
535
  is_collapsible?: boolean;
530
536
  default_collapsed?: boolean;
537
+ has_header_divider?: boolean;
531
538
  block_id?: string;
532
539
  }
533
540
  /**
@@ -1,3 +1,3 @@
1
- export { Q as PaletteMode, R as PaletteSection, U as PaletteVariant, S as SupportedBlock, a1 as SupportedBlockType, ag as buildVariantById, ad as defaultPalette, ae as extraAlertVariant, af as legacyInputVariants } from './palette-CvSGn2z6.cjs';
1
+ export { Q as PaletteMode, R as PaletteSection, U as PaletteVariant, S as SupportedBlock, a1 as SupportedBlockType, ag as buildVariantById, ad as defaultPalette, ae as extraAlertVariant, af as legacyInputVariants } from './palette-Cxh1yNzW.cjs';
2
2
  import 'react';
3
3
  import 'slack-web-api-client';
package/dist/palette.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { Q as PaletteMode, R as PaletteSection, U as PaletteVariant, S as SupportedBlock, a1 as SupportedBlockType, ag as buildVariantById, ad as defaultPalette, ae as extraAlertVariant, af as legacyInputVariants } from './palette-CvSGn2z6.js';
1
+ export { Q as PaletteMode, R as PaletteSection, U as PaletteVariant, S as SupportedBlock, a1 as SupportedBlockType, ag as buildVariantById, ad as defaultPalette, ae as extraAlertVariant, af as legacyInputVariants } from './palette-Cxh1yNzW.js';
2
2
  import 'react';
3
3
  import 'slack-web-api-client';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tightknitai/block-kitchen",
3
- "version": "0.10.15",
3
+ "version": "0.10.16",
4
4
  "description": "A drag-and-drop, no-code-friendly visual builder for Slack Block Kit messages. Integration-agnostic React component.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -56,7 +56,7 @@
56
56
  "@dnd-kit/core": "^6.3.1",
57
57
  "@dnd-kit/sortable": "^10.0.0",
58
58
  "@dnd-kit/utilities": "^3.2.2",
59
- "@tightknitai/slack-block-kit-validator": "^0.1.13",
59
+ "@tightknitai/slack-block-kit-validator": "^0.1.17",
60
60
  "@tiptap/extension-link": "^3.30.5",
61
61
  "@tiptap/react": "^3.30.5",
62
62
  "@tiptap/starter-kit": "^3.30.5",