Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rich text types #1643

Merged
merged 6 commits into from Sep 29, 2023
Merged

Add rich text types #1643

merged 6 commits into from Sep 29, 2023

Conversation

chrisronline
Copy link
Contributor

@chrisronline chrisronline commented Aug 15, 2023

Summary

This PR adds types for the rich_text block and many rich text elements, with the main one being rich_text_input, but many others that make up rich text messages (text, links, user/channel/group mentions, preformatted text, quotes, lists - everything in the message composer).

@filmaj filmaj self-requested a review August 15, 2023 15:46
@filmaj filmaj added semver:minor pkg:types applies to `@slack/types` labels Aug 15, 2023
@filmaj filmaj added this to the types@2.9.0 milestone Aug 15, 2023
Copy link
Contributor

@filmaj filmaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @chrisronline left a few comments, and also rebased your branch with the latest main now that I fixed the build 😅 . Also our CI failed, I guess it doesn't like using object type and wants to use Record<string, any> or some such.

packages/types/src/index.ts Outdated Show resolved Hide resolved
packages/types/src/index.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@filmaj filmaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I redid a lot of stuff in here so this approval shouldn't count for much.

@filmaj filmaj requested a review from a team September 29, 2023 18:53
@filmaj
Copy link
Contributor

filmaj commented Sep 29, 2023

BTW I integrated this with the web-api and bolt-js projects and all the tests passed OK 👍

Copy link
Contributor

@misscoded misscoded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! :shipit: Love the degree of commenting; makes everything super clear!

@filmaj filmaj merged commit 124d8ca into main Sep 29, 2023
15 checks passed
@filmaj filmaj deleted the add_rich_text branch September 29, 2023 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:types applies to `@slack/types` semver:minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants