@tightknitai/block-kitchen 0.10.15 → 0.10.17
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/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +3252 -3116
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3252 -3116
- package/dist/index.js.map +1 -1
- package/dist/{palette-CvSGn2z6.d.cts → palette-Cxh1yNzW.d.cts} +14 -7
- package/dist/{palette-CvSGn2z6.d.ts → palette-Cxh1yNzW.d.ts} +14 -7
- package/dist/palette.d.cts +1 -1
- package/dist/palette.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
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
|
|
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
|
-
*
|
|
511
|
-
*
|
|
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
|
|
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
|
|
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
|
-
*
|
|
511
|
-
*
|
|
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
|
/**
|
package/dist/palette.d.cts
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-
|
|
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-
|
|
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';
|