From 7233ce9f75426135e31f83f90205fac9523f65e5 Mon Sep 17 00:00:00 2001 From: Ale Mercado Date: Tue, 28 Jul 2026 17:06:57 -0400 Subject: [PATCH 1/6] feat(types): add min_lines and max_lines to RichTextInput --- packages/types/src/block-kit/block-elements.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/types/src/block-kit/block-elements.ts b/packages/types/src/block-kit/block-elements.ts index 2fd445a34..005f7ed60 100644 --- a/packages/types/src/block-kit/block-elements.ts +++ b/packages/types/src/block-kit/block-elements.ts @@ -1066,4 +1066,13 @@ export interface RichTextInput extends Actionable, Dispatchable, Focusable, Plac * @description Initial contents of the input when it is loaded. */ initial_value?: RichTextBlock; + /** + * @description The minimum number of lines of text shown in the input. Must be between 1 and 50. + */ + min_lines?: number; + /** + * @description The maximum number of lines of text shown in the input before it scrolls. Must be between 1 and 50. + * Defaults to `8` when not specified. + */ + max_lines?: number; } From acf41b0aefd6efc6b5b1c1fdc4597a84ded38d05 Mon Sep 17 00:00:00 2001 From: Ale Mercado Date: Tue, 28 Jul 2026 17:07:36 -0400 Subject: [PATCH 2/6] test(types): add type tests for RichTextInput min_lines/max_lines --- packages/types/test/block-elements.test-d.ts | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/types/test/block-elements.test-d.ts diff --git a/packages/types/test/block-elements.test-d.ts b/packages/types/test/block-elements.test-d.ts new file mode 100644 index 000000000..0c07deb1d --- /dev/null +++ b/packages/types/test/block-elements.test-d.ts @@ -0,0 +1,30 @@ +import { expectAssignable, expectError } from 'tsd'; +import type { RichTextInput } from '../src/index'; + +// RichTextInput — happy paths +expectAssignable({ + type: 'rich_text_input', +}); +expectAssignable({ + type: 'rich_text_input', + min_lines: 3, +}); +expectAssignable({ + type: 'rich_text_input', + max_lines: 16, +}); +expectAssignable({ + type: 'rich_text_input', + min_lines: 3, + max_lines: 16, +}); + +// RichTextInput — sad paths +expectError({ + type: 'rich_text_input', + min_lines: '3', +}); +expectError({ + type: 'rich_text_input', + max_lines: '16', +}); From d2941d3eedf9278f316e5f1a3f3dc27ef048dec7 Mon Sep 17 00:00:00 2001 From: Ale Mercado Date: Tue, 28 Jul 2026 17:07:48 -0400 Subject: [PATCH 3/6] chore: add changeset for RichTextInput min_lines/max_lines --- .changeset/rich-text-input-min-max-lines.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/rich-text-input-min-max-lines.md diff --git a/.changeset/rich-text-input-min-max-lines.md b/.changeset/rich-text-input-min-max-lines.md new file mode 100644 index 000000000..c2a063cf1 --- /dev/null +++ b/.changeset/rich-text-input-min-max-lines.md @@ -0,0 +1,5 @@ +--- +"@slack/types": minor +--- + +feat(types): add optional `min_lines` and `max_lines` properties to `RichTextInput` element From feb35d2363bae3d636da9649801053ba72d504c4 Mon Sep 17 00:00:00 2001 From: Ale Mercado <104795114+srtaalej@users.noreply.github.com> Date: Wed, 29 Jul 2026 12:22:41 -0400 Subject: [PATCH 4/6] Update packages/types/src/block-kit/block-elements.ts Co-authored-by: Eden Zimbelman --- packages/types/src/block-kit/block-elements.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types/src/block-kit/block-elements.ts b/packages/types/src/block-kit/block-elements.ts index 005f7ed60..7ade91ef3 100644 --- a/packages/types/src/block-kit/block-elements.ts +++ b/packages/types/src/block-kit/block-elements.ts @@ -1067,7 +1067,7 @@ export interface RichTextInput extends Actionable, Dispatchable, Focusable, Plac */ initial_value?: RichTextBlock; /** - * @description The minimum number of lines of text shown in the input. Must be between 1 and 50. + * @description The minimum number of lines of text shown in the input. Must be between 1 and 100. */ min_lines?: number; /** From 2b3e4a1976d8e47e1c02bd16ca8c3bb4355cf4a4 Mon Sep 17 00:00:00 2001 From: Ale Mercado <104795114+srtaalej@users.noreply.github.com> Date: Wed, 29 Jul 2026 12:22:51 -0400 Subject: [PATCH 5/6] Update packages/types/test/block-elements.test-d.ts Co-authored-by: Eden Zimbelman --- packages/types/test/block-elements.test-d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types/test/block-elements.test-d.ts b/packages/types/test/block-elements.test-d.ts index 0c07deb1d..020149637 100644 --- a/packages/types/test/block-elements.test-d.ts +++ b/packages/types/test/block-elements.test-d.ts @@ -22,7 +22,7 @@ expectAssignable({ // RichTextInput — sad paths expectError({ type: 'rich_text_input', - min_lines: '3', + min_lines: '3', // Minimum should be integer }); expectError({ type: 'rich_text_input', From c64b3901fe0e6b118e8b28daa453951377b2bbed Mon Sep 17 00:00:00 2001 From: Ale Mercado <104795114+srtaalej@users.noreply.github.com> Date: Wed, 29 Jul 2026 12:22:58 -0400 Subject: [PATCH 6/6] Update packages/types/src/block-kit/block-elements.ts Co-authored-by: Eden Zimbelman --- packages/types/src/block-kit/block-elements.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types/src/block-kit/block-elements.ts b/packages/types/src/block-kit/block-elements.ts index 7ade91ef3..6fe6a127d 100644 --- a/packages/types/src/block-kit/block-elements.ts +++ b/packages/types/src/block-kit/block-elements.ts @@ -1071,7 +1071,7 @@ export interface RichTextInput extends Actionable, Dispatchable, Focusable, Plac */ min_lines?: number; /** - * @description The maximum number of lines of text shown in the input before it scrolls. Must be between 1 and 50. + * @description The maximum number of lines of text shown in the input before it scrolls. Must be between 1 and 100. * Defaults to `8` when not specified. */ max_lines?: number;