slack-blocks-to-jsx 0.4.4 → 0.4.6
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/index.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -13,6 +13,11 @@ type UserGroup = {
|
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
};
|
|
16
|
+
type Emoji = {
|
|
17
|
+
name: string;
|
|
18
|
+
unicode?: string;
|
|
19
|
+
skin_tone?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
20
|
+
};
|
|
16
21
|
type Hooks = {
|
|
17
22
|
user?: (data: User) => ReactNode;
|
|
18
23
|
channel?: (data: Channel) => ReactNode;
|
|
@@ -20,7 +25,13 @@ type Hooks = {
|
|
|
20
25
|
atChannel?: () => ReactNode;
|
|
21
26
|
atEveryone?: () => ReactNode;
|
|
22
27
|
atHere?: () => ReactNode;
|
|
23
|
-
|
|
28
|
+
/**
|
|
29
|
+
* The hook to replace emojis with custom components
|
|
30
|
+
* @param data - the emoji object
|
|
31
|
+
* @param parse - fallback function for default emoji parsing
|
|
32
|
+
* @returns the custom emoji component
|
|
33
|
+
*/
|
|
34
|
+
emoji?: (data: Emoji, parse: (data: Emoji) => string) => ReactNode;
|
|
24
35
|
date?: (data: {
|
|
25
36
|
timestamp: string;
|
|
26
37
|
format: string;
|
|
@@ -1090,6 +1101,8 @@ type RichTextSectionUser = {
|
|
|
1090
1101
|
type RichTextSectionEmoji = {
|
|
1091
1102
|
type: "emoji";
|
|
1092
1103
|
name: string;
|
|
1104
|
+
unicode?: string;
|
|
1105
|
+
skin_tone?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
1093
1106
|
};
|
|
1094
1107
|
type RichTextSectionLink = {
|
|
1095
1108
|
type: "link";
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,11 @@ type UserGroup = {
|
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
};
|
|
16
|
+
type Emoji = {
|
|
17
|
+
name: string;
|
|
18
|
+
unicode?: string;
|
|
19
|
+
skin_tone?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
20
|
+
};
|
|
16
21
|
type Hooks = {
|
|
17
22
|
user?: (data: User) => ReactNode;
|
|
18
23
|
channel?: (data: Channel) => ReactNode;
|
|
@@ -20,7 +25,13 @@ type Hooks = {
|
|
|
20
25
|
atChannel?: () => ReactNode;
|
|
21
26
|
atEveryone?: () => ReactNode;
|
|
22
27
|
atHere?: () => ReactNode;
|
|
23
|
-
|
|
28
|
+
/**
|
|
29
|
+
* The hook to replace emojis with custom components
|
|
30
|
+
* @param data - the emoji object
|
|
31
|
+
* @param parse - fallback function for default emoji parsing
|
|
32
|
+
* @returns the custom emoji component
|
|
33
|
+
*/
|
|
34
|
+
emoji?: (data: Emoji, parse: (data: Emoji) => string) => ReactNode;
|
|
24
35
|
date?: (data: {
|
|
25
36
|
timestamp: string;
|
|
26
37
|
format: string;
|
|
@@ -1090,6 +1101,8 @@ type RichTextSectionUser = {
|
|
|
1090
1101
|
type RichTextSectionEmoji = {
|
|
1091
1102
|
type: "emoji";
|
|
1092
1103
|
name: string;
|
|
1104
|
+
unicode?: string;
|
|
1105
|
+
skin_tone?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
1093
1106
|
};
|
|
1094
1107
|
type RichTextSectionLink = {
|
|
1095
1108
|
type: "link";
|