slack-blocks-to-jsx 0.3.8 → 0.3.9
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/package.json +1 -1
- package/readme.md +2 -2
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
The `slack-blocks-to-jsx` package allows you to render Slack blocks in React with styles that closely mimic how they are displayed in Slack. This library converts Slack's block kit components into JSX components, maintaining the visual fidelity and interactive elements.
|
|
6
6
|
|
|
7
|
-
**🚨 Quickly test out the
|
|
7
|
+
**🚨 Quickly test out the library on online playground**: https://slack-block-to-jsx-playground.vercel.app/
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
@@ -72,7 +72,7 @@ This is the main component that renders the entire Slack message. It supports va
|
|
|
72
72
|
- atChannel?: () = ReactNode
|
|
73
73
|
- atEveryone?: () = ReactNode
|
|
74
74
|
- atHere?: () = ReactNode
|
|
75
|
-
- emoji?: (
|
|
75
|
+
- emoji?: (name:string) => ReactNode | "fallback" (return "fallback" if you can't handle the emoji)
|
|
76
76
|
- date?: (data: { timestamp: string; format: string; link: string | null; fallback: string; }) => ReactNode;
|
|
77
77
|
- `data?`: optionally pass an array or users, channels and user groups to automatically be replaced with the user, channel and user group mentions.
|
|
78
78
|
- `showBlockKitDebug?`: Show a link to open the message in the Slack Block Kit Builder, for debugging purposes. Defaults to false.
|