slack-blocks-to-jsx 0.5.7 → 0.5.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/dist/index.d.mts CHANGED
@@ -1121,6 +1121,13 @@ type Emoji = {
1121
1121
  unicode?: string;
1122
1122
  skin_tone?: 1 | 2 | 3 | 4 | 5 | 6;
1123
1123
  };
1124
+ type LinkInput = {
1125
+ href: string;
1126
+ children: ReactNode;
1127
+ className: string;
1128
+ target?: "_blank" | "_self" | "_parent" | "_top";
1129
+ rel?: string;
1130
+ };
1124
1131
  type Hooks = {
1125
1132
  user?: (data: UserWithStyle) => ReactNode;
1126
1133
  channel?: (data: ChannelWithStyle) => ReactNode;
@@ -1141,6 +1148,11 @@ type Hooks = {
1141
1148
  link: string | null;
1142
1149
  fallback: string;
1143
1150
  }) => ReactNode;
1151
+ /**
1152
+ *
1153
+ * This hook allows you to replace the anchor (a) tag with your own wrapper. It gets applied to rich_text_section links, links in mrkdown, slack date optional links, and video block title URLs.
1154
+ */
1155
+ link?: (input: LinkInput) => ReactNode;
1144
1156
  };
1145
1157
  type GlobalStore = {
1146
1158
  users: User[];
package/dist/index.d.ts CHANGED
@@ -1121,6 +1121,13 @@ type Emoji = {
1121
1121
  unicode?: string;
1122
1122
  skin_tone?: 1 | 2 | 3 | 4 | 5 | 6;
1123
1123
  };
1124
+ type LinkInput = {
1125
+ href: string;
1126
+ children: ReactNode;
1127
+ className: string;
1128
+ target?: "_blank" | "_self" | "_parent" | "_top";
1129
+ rel?: string;
1130
+ };
1124
1131
  type Hooks = {
1125
1132
  user?: (data: UserWithStyle) => ReactNode;
1126
1133
  channel?: (data: ChannelWithStyle) => ReactNode;
@@ -1141,6 +1148,11 @@ type Hooks = {
1141
1148
  link: string | null;
1142
1149
  fallback: string;
1143
1150
  }) => ReactNode;
1151
+ /**
1152
+ *
1153
+ * This hook allows you to replace the anchor (a) tag with your own wrapper. It gets applied to rich_text_section links, links in mrkdown, slack date optional links, and video block title URLs.
1154
+ */
1155
+ link?: (input: LinkInput) => ReactNode;
1144
1156
  };
1145
1157
  type GlobalStore = {
1146
1158
  users: User[];