stream-chat-react 14.4.1 → 14.5.0

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.
Files changed (75) hide show
  1. package/dist/cjs/{ReactPlayerWrapper.16cd6fed.js → ReactPlayerWrapper.963d6170.js} +2 -2
  2. package/dist/cjs/{ReactPlayerWrapper.16cd6fed.js.map → ReactPlayerWrapper.963d6170.js.map} +1 -1
  3. package/dist/cjs/emojis.js +1 -1
  4. package/dist/cjs/index.js +489 -119
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/{useNotificationApi.9ffe5761.js → useNotificationApi.e9312774.js} +38 -5
  7. package/dist/cjs/useNotificationApi.e9312774.js.map +1 -0
  8. package/dist/css/index.css +186 -0
  9. package/dist/css/index.css.map +1 -1
  10. package/dist/es/emojis.mjs +1 -1
  11. package/dist/es/index.mjs +476 -121
  12. package/dist/es/index.mjs.map +1 -1
  13. package/dist/es/{useNotificationApi.88c33caa.mjs → useNotificationApi.4be515a0.mjs} +24 -9
  14. package/dist/es/useNotificationApi.4be515a0.mjs.map +1 -0
  15. package/dist/types/components/Avatar/Avatar.d.ts +4 -2
  16. package/dist/types/components/Avatar/Avatar.d.ts.map +1 -1
  17. package/dist/types/components/Channel/hooks/useMentionsHandlers.d.ts +8 -3
  18. package/dist/types/components/Channel/hooks/useMentionsHandlers.d.ts.map +1 -1
  19. package/dist/types/components/Icons/icons.d.ts +12 -0
  20. package/dist/types/components/Icons/icons.d.ts.map +1 -1
  21. package/dist/types/components/ListItemLayout/ListItemLayout.d.ts +34 -0
  22. package/dist/types/components/ListItemLayout/ListItemLayout.d.ts.map +1 -0
  23. package/dist/types/components/ListItemLayout/index.d.ts +2 -0
  24. package/dist/types/components/ListItemLayout/index.d.ts.map +1 -0
  25. package/dist/types/components/MediaRecorder/classes/MediaRecorderController.d.ts.map +1 -1
  26. package/dist/types/components/Message/MessageText.d.ts.map +1 -1
  27. package/dist/types/components/Message/hooks/useMentionsHandler.d.ts +6 -1
  28. package/dist/types/components/Message/hooks/useMentionsHandler.d.ts.map +1 -1
  29. package/dist/types/components/Message/renderText/componentRenderers/Mention.d.ts +22 -4
  30. package/dist/types/components/Message/renderText/componentRenderers/Mention.d.ts.map +1 -1
  31. package/dist/types/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.d.ts +44 -3
  32. package/dist/types/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.d.ts.map +1 -1
  33. package/dist/types/components/Message/renderText/renderText.d.ts +25 -3
  34. package/dist/types/components/Message/renderText/renderText.d.ts.map +1 -1
  35. package/dist/types/components/Message/types.d.ts +2 -3
  36. package/dist/types/components/Message/types.d.ts.map +1 -1
  37. package/dist/types/components/MessageComposer/QuotedMessagePreview.d.ts.map +1 -1
  38. package/dist/types/components/MessageComposer/hooks/useMessageComposerController.d.ts.map +1 -1
  39. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/BroadcastMentionItem.d.ts +5 -0
  40. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/BroadcastMentionItem.d.ts.map +1 -0
  41. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/MentionItem.d.ts +17 -0
  42. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/MentionItem.d.ts.map +1 -0
  43. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/MentionSuggestionTitle.d.ts +6 -0
  44. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/MentionSuggestionTitle.d.ts.map +1 -0
  45. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/RoleItem.d.ts +5 -0
  46. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/RoleItem.d.ts.map +1 -0
  47. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/SpecialMentionItem.d.ts +10 -0
  48. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/SpecialMentionItem.d.ts.map +1 -0
  49. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/UserGroupItem.d.ts +5 -0
  50. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/UserGroupItem.d.ts.map +1 -0
  51. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/UserItem.d.ts +17 -0
  52. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/UserItem.d.ts.map +1 -0
  53. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/index.d.ts +8 -0
  54. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/index.d.ts.map +1 -0
  55. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/types.d.ts +6 -0
  56. package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/types.d.ts.map +1 -0
  57. package/dist/types/components/TextareaComposer/SuggestionList/SuggestionList.d.ts.map +1 -1
  58. package/dist/types/components/TextareaComposer/SuggestionList/SuggestionListItem.d.ts +2 -2
  59. package/dist/types/components/TextareaComposer/SuggestionList/SuggestionListItem.d.ts.map +1 -1
  60. package/dist/types/components/TextareaComposer/SuggestionList/TokenizedSuggestionParts.d.ts +9 -0
  61. package/dist/types/components/TextareaComposer/SuggestionList/TokenizedSuggestionParts.d.ts.map +1 -0
  62. package/dist/types/components/TextareaComposer/SuggestionList/index.d.ts +2 -1
  63. package/dist/types/components/TextareaComposer/SuggestionList/index.d.ts.map +1 -1
  64. package/dist/types/components/TextareaComposer/TextareaComposer.d.ts.map +1 -1
  65. package/dist/types/components/index.d.ts +1 -0
  66. package/dist/types/components/index.d.ts.map +1 -1
  67. package/dist/types/context/MessageContext.d.ts +3 -3
  68. package/dist/types/context/MessageContext.d.ts.map +1 -1
  69. package/dist/types/i18n/Streami18n.d.ts +6 -1
  70. package/dist/types/i18n/Streami18n.d.ts.map +1 -1
  71. package/package.json +3 -3
  72. package/dist/cjs/useNotificationApi.9ffe5761.js.map +0 -1
  73. package/dist/es/useNotificationApi.88c33caa.mjs.map +0 -1
  74. package/dist/types/components/TextareaComposer/SuggestionList/UserItem.d.ts +0 -25
  75. package/dist/types/components/TextareaComposer/SuggestionList/UserItem.d.ts.map +0 -1
@@ -1,5 +1,7 @@
1
- import { type ComponentPropsWithoutRef } from 'react';
1
+ import { type ComponentPropsWithoutRef, type ComponentType } from 'react';
2
2
  export type AvatarProps = {
3
+ /** Custom icon rendered when there is no image and no initials */
4
+ FallbackIcon?: ComponentType<ComponentPropsWithoutRef<'svg'>>;
3
5
  /** URL of the avatar image */
4
6
  imageUrl?: string;
5
7
  /** Name of the user, used for avatar image alt text and title fallback */
@@ -11,5 +13,5 @@ export type AvatarProps = {
11
13
  /**
12
14
  * A round avatar image with fallback to username's first letter
13
15
  */
14
- export declare const Avatar: ({ className, imageUrl, isOnline, size, userName, ...rest }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const Avatar: ({ className, FallbackIcon, imageUrl, isOnline, size, userName, ...rest }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
15
17
  //# sourceMappingURL=Avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AACA,OAAc,EACZ,KAAK,wBAAwB,EAI9B,MAAM,OAAO,CAAC;AAGf,MAAM,MAAM,WAAW,GAAG;IACxB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;CACvE,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAuBpC;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,4DAOpB,WAAW,4CA6Db,CAAC"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AACA,OAAc,EACZ,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAInB,MAAM,OAAO,CAAC;AAGf,MAAM,MAAM,WAAW,GAAG;IACxB,kEAAkE;IAClE,YAAY,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9D,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;CACvE,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAuBpC;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,0EAQpB,WAAW,4CA6Db,CAAC"}
@@ -1,5 +1,10 @@
1
1
  import type React from 'react';
2
- import type { UserResponse } from 'stream-chat';
3
- export type OnMentionAction = (event: React.BaseSyntheticEvent, user?: UserResponse) => void;
4
- export declare const useMentionsHandlers: (onMentionsHover?: OnMentionAction, onMentionsClick?: OnMentionAction) => (event: React.BaseSyntheticEvent, mentioned_users: UserResponse[]) => void;
2
+ import type { LocalMessage, UserResponse } from 'stream-chat';
3
+ export type OnMentionAction = (event: React.BaseSyntheticEvent,
4
+ /**
5
+ * @deprecated Use the third `message` argument to access mention metadata instead.
6
+ * FIXME: Remove this argument in the next major release.
7
+ */
8
+ user?: UserResponse, message?: LocalMessage) => void;
9
+ export declare const useMentionsHandlers: (onMentionsHover?: OnMentionAction, onMentionsClick?: OnMentionAction) => (event: React.BaseSyntheticEvent, mentioned_users: UserResponse[], message?: LocalMessage) => void;
5
10
  //# sourceMappingURL=useMentionsHandlers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMentionsHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useMentionsHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG,CAC5B,KAAK,EAAE,KAAK,CAAC,kBAAkB,EAC/B,IAAI,CAAC,EAAE,YAAY,KAChB,IAAI,CAAC;AAEV,eAAO,MAAM,mBAAmB,GAC9B,kBAAkB,eAAe,EACjC,kBAAkB,eAAe,aAGvB,KAAK,CAAC,kBAAkB,mBAAmB,YAAY,EAAE,SAmClE,CAAC"}
1
+ {"version":3,"file":"useMentionsHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useMentionsHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,CAC5B,KAAK,EAAE,KAAK,CAAC,kBAAkB;AAC/B;;;GAGG;AACH,IAAI,CAAC,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,YAAY,KACnB,IAAI,CAAC;AAEV,eAAO,MAAM,mBAAmB,GAC9B,kBAAkB,eAAe,EACjC,kBAAkB,eAAe,aAItB,KAAK,CAAC,kBAAkB,mBACd,YAAY,EAAE,YACrB,YAAY,SA4CzB,CAAC"}
@@ -226,10 +226,18 @@ export declare const IconMute: {
226
226
  ({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
227
227
  displayName: string;
228
228
  };
229
+ export declare const IconMegaphone: {
230
+ ({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
231
+ displayName: string;
232
+ };
229
233
  export declare const IconSend: {
230
234
  ({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
231
235
  displayName: string;
232
236
  };
237
+ export declare const IconShield: {
238
+ ({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
239
+ displayName: string;
240
+ };
233
241
  export declare const IconAttachment: {
234
242
  ({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
235
243
  displayName: string;
@@ -242,6 +250,10 @@ export declare const IconUser: {
242
250
  ({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
243
251
  displayName: string;
244
252
  };
253
+ export declare const IconUsers: {
254
+ ({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
255
+ displayName: string;
256
+ };
245
257
  export declare const IconUserAdd: {
246
258
  ({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
247
259
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/components/Icons/icons.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;CAUrB,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAUzB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;CAU/B,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAWzB,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;CAW5B,CAAC;AAGF,eAAO,MAAM,SAAS;;;CAUrB,CAAC;AAGF,eAAO,MAAM,WAAW;;;CAUvB,CAAC;AAGF,eAAO,MAAM,SAAS;;;CAWrB,CAAC;AAEF,eAAO,MAAM,WAAW;;;CAUvB,CAAC;AAGF,eAAO,MAAM,QAAQ;;;CAUpB,CAAC;AAEF,eAAO,MAAM,WAAW;;;CAUvB,CAAC;AAEF,eAAO,MAAM,YAAY;;;CAUxB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;CAU9B,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;CAU9B,CAAC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,MAAM,SAAS;;;CA0BrB,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { ComponentProps, ComponentType, ReactNode } from 'react';
2
+ import React from 'react';
3
+ export type ListItemLayoutRootElement = Extract<keyof React.JSX.IntrinsicElements, keyof HTMLElementTagNameMap>;
4
+ export type ListItemLayoutBaseProps = {
5
+ ContentSlot?: ComponentType<ListItemLayoutContentProps>;
6
+ contentClassName?: string;
7
+ description?: ReactNode;
8
+ descriptionClassName?: string;
9
+ destructive?: boolean;
10
+ LeadingIcon?: ComponentType;
11
+ LeadingSlot?: ComponentType;
12
+ selected?: boolean;
13
+ subtitle?: ReactNode;
14
+ subtitleClassName?: string;
15
+ title: ReactNode;
16
+ titleClassName?: string;
17
+ TrailingIcon?: ComponentType;
18
+ TrailingSlot?: ComponentType;
19
+ };
20
+ export type ListItemLayoutProps<RootElement extends ListItemLayoutRootElement = 'div'> = ListItemLayoutBaseProps & {
21
+ RootElement?: RootElement;
22
+ rootProps?: Omit<ComponentProps<RootElement>, 'children'>;
23
+ };
24
+ export declare const ListItemLayout: <RootElement extends ListItemLayoutRootElement = "div">({ ContentSlot, contentClassName, description, descriptionClassName, destructive, LeadingIcon, LeadingSlot, RootElement, rootProps, selected, subtitle, subtitleClassName, title, titleClassName, TrailingIcon, TrailingSlot, }: ListItemLayoutProps<RootElement>) => import("react/jsx-runtime").JSX.Element;
25
+ export type ListItemLayoutContentProps = Omit<ComponentProps<'div'>, 'title'> & {
26
+ description?: ReactNode;
27
+ descriptionClassName?: string;
28
+ subtitle?: ReactNode;
29
+ subtitleClassName?: string;
30
+ title: ReactNode;
31
+ titleClassName?: string;
32
+ };
33
+ export declare const ListItemLayoutContent: ({ className, description, descriptionClassName, subtitle, subtitleClassName, title, titleClassName, ...props }: ListItemLayoutContentProps) => import("react/jsx-runtime").JSX.Element;
34
+ //# sourceMappingURL=ListItemLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItemLayout.d.ts","sourceRoot":"","sources":["../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AAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,GAAG;IAC9E,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,gHASnC,0BAA0B,4CA2B5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ListItemLayout';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItemLayout/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MediaRecorderController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MediaRecorder/classes/MediaRecorderController.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAQlE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE,eAAO,MAAM,6BAA6B;;;;;CAKhC,CAAC;AAEX,eAAO,MAAM,+BAA+B,EAAE,gBAEpC,CAAC;AAYX,KAAK,m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ACjC,SAAS,EAAE,iBAAiB,CAAC;IAE7B,oBAAoB,EAAE,CAAC,CAAC,CAAC,EAAE,6BAA6B,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAE/E,cAAc,mDAAmE;IACjF,SAAS,6DAA6E;IACtF,KAAK,6BAAoC;IACzC,YAAY;cAAuB,MAAM;cAAQ,SAAS,GAAG,OAAO;mBAAkB;IAEtF,4BAA4B,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC;IACzE,CAAC,EAAE,uBAAuB,CAAC,GAAG,CAAC,CAAC;gBAEpB,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC,EAAE,GAAE,oBAAyB;IAmC5E,IAAI,UAAU,WAEb;IAED,sBAAsB,GAAI,UAAU,MAAM,YAOxC;IAEF,kBAAkB,2DA4ChB;IAEF,gBAAgB,GAAI,GAAG,KAAK,UAQ1B;IAEF,wBAAwB,GAAU,GAAG,SAAS,mBAiB5C;IAEF,mBAAmB,aAMjB;IAEF,OAAO,aAYL;IAEF,KAAK,sBAiEH;IAEF,KAAK,aAWH;IAEF,MAAM,aAMJ;IAEF,IAAI,oEAuBF;IAEF,MAAM,aAGJ;CACH"}
1
+ {"version":3,"file":"MediaRecorderController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MediaRecorder/classes/MediaRecorderController.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAQlE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE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AE,MAAM,CAAC;IAE1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,GAAG,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;AAE5C,QAAA,MAAM,8BAA8B,GAAI,OAAO,gBAAgB,mDAmG9D,CAAC;AAEF,eAAO,MAAM,WAAW,EAEnB,OAAO,8BAA8B,CAAC"}
1
+ {"version":3,"file":"MessageText.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageText.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAMzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,MAAM,MAAM,gBAAgB,GAAG;IAE7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,GAAG,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;AAE5C,QAAA,MAAM,8BAA8B,GAAI,OAAO,gBAAgB,mDAuH9D,CAAC;AAEF,eAAO,MAAM,WAAW,EAEnB,OAAO,8BAA8B,CAAC"}
@@ -1,7 +1,12 @@
1
1
  import type React from 'react';
2
2
  import type { LocalMessage, UserResponse } from 'stream-chat';
3
3
  import type { ReactEventHandler } from '../types';
4
- export type CustomMentionHandler = (event: React.BaseSyntheticEvent, mentioned_users: UserResponse[]) => void;
4
+ export type CustomMentionHandler = (event: React.BaseSyntheticEvent,
5
+ /**
6
+ * @deprecated Use the third `message` argument to access mention metadata instead.
7
+ * FIXME: Remove this argument in the next major release.
8
+ */
9
+ mentioned_users: UserResponse[], message: LocalMessage) => void;
5
10
  export type MentionedUserEventHandler = (event: React.BaseSyntheticEvent, mentionedUsers: UserResponse[]) => void;
6
11
  export declare const useMentionsHandler: (message?: LocalMessage, customMentionHandler?: {
7
12
  onMentionsClick?: CustomMentionHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"useMentionsHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMentionsHandler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG,CACjC,KAAK,EAAE,KAAK,CAAC,kBAAkB,EAC/B,eAAe,EAAE,YAAY,EAAE,KAC5B,IAAI,CAAC;AAEV,MAAM,MAAM,yBAAyB,GAAG,CACtC,KAAK,EAAE,KAAK,CAAC,kBAAkB,EAC/B,cAAc,EAAE,YAAY,EAAE,KAC3B,IAAI,CAAC;AAcV,eAAO,MAAM,kBAAkB,GAC7B,UAAU,YAAY,EACtB,uBAAuB;IACrB,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,eAAe,CAAC,EAAE,oBAAoB,CAAC;CACxC;;;CAiBF,CAAC"}
1
+ {"version":3,"file":"useMentionsHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMentionsHandler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG,CACjC,KAAK,EAAE,KAAK,CAAC,kBAAkB;AAC/B;;;GAGG;AACH,eAAe,EAAE,YAAY,EAAE,EAC/B,OAAO,EAAE,YAAY,KAClB,IAAI,CAAC;AAEV,MAAM,MAAM,yBAAyB,GAAG,CACtC,KAAK,EAAE,KAAK,CAAC,kBAAkB,EAC/B,cAAc,EAAE,YAAY,EAAE,KAC3B,IAAI,CAAC;AAsBV,eAAO,MAAM,kBAAkB,GAC7B,UAAU,YAAY,EACtB,uBAAuB;IACrB,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,eAAe,CAAC,EAAE,oBAAoB,CAAC;CACxC;;;CAiBF,CAAC"}
@@ -1,9 +1,27 @@
1
1
  import type { PropsWithChildren } from 'react';
2
2
  import type { UserResponse } from 'stream-chat';
3
+ import type { RenderTextMentionEntity } from '../rehypePlugins/mentionsMarkdownPlugin';
4
+ type UserMentionNode = {
5
+ mentionedEntity: Extract<RenderTextMentionEntity, {
6
+ mentionType: 'user';
7
+ }>;
8
+ /**
9
+ * @deprecated Use `mentionedEntity` instead.
10
+ */
11
+ mentionedUser: UserResponse;
12
+ };
13
+ type NonUserMentionNode = {
14
+ mentionedEntity: Exclude<RenderTextMentionEntity, {
15
+ mentionType: 'user';
16
+ }>;
17
+ /**
18
+ * @deprecated Use `mentionedEntity` instead.
19
+ */
20
+ mentionedUser?: undefined;
21
+ };
3
22
  export type MentionProps = PropsWithChildren<{
4
- node: {
5
- mentionedUser: UserResponse;
6
- };
23
+ node: UserMentionNode | NonUserMentionNode;
7
24
  }>;
8
- export declare const Mention: ({ children, node: { mentionedUser } }: MentionProps) => import("react/jsx-runtime").JSX.Element;
25
+ export declare const Mention: ({ children, node: { mentionedEntity } }: MentionProps) => import("react/jsx-runtime").JSX.Element;
26
+ export {};
9
27
  //# sourceMappingURL=Mention.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Mention.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/renderText/componentRenderers/Mention.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC;IAC3C,IAAI,EAAE;QACJ,aAAa,EAAE,YAAY,CAAC;KAC7B,CAAC;CACH,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO,GAAI,uCAAuC,YAAY,4CAI1E,CAAC"}
1
+ {"version":3,"file":"Mention.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/renderText/componentRenderers/Mention.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAEvF,KAAK,eAAe,GAAG;IACrB,eAAe,EAAE,OAAO,CAAC,uBAAuB,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3E;;OAEG;IACH,aAAa,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,eAAe,EAAE,OAAO,CAAC,uBAAuB,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3E;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC;IAC3C,IAAI,EAAE,eAAe,GAAG,kBAAkB,CAAC;CAC5C,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO,GAAI,yCAAyC,YAAY,4CAS5E,CAAC"}
@@ -1,4 +1,45 @@
1
- import type { Nodes } from 'hast';
2
- import type { UserResponse } from 'stream-chat';
3
- export declare const mentionsMarkdownPlugin: (mentioned_users: UserResponse[]) => () => (tree: Nodes) => void;
1
+ import { findAndReplace } from 'hast-util-find-and-replace';
2
+ import type { LocalMessage, UserResponse } from 'stream-chat';
3
+ export type RenderTextMentionEntity = (UserResponse & {
4
+ mentionType: 'user';
5
+ }) | {
6
+ id: 'channel';
7
+ mentionType: 'channel';
8
+ name?: 'channel';
9
+ } | {
10
+ id: 'here';
11
+ mentionType: 'here';
12
+ name?: 'here';
13
+ } | {
14
+ id: string;
15
+ mentionType: 'role';
16
+ name?: string;
17
+ } | {
18
+ id: string;
19
+ mentionType: 'user_group';
20
+ name?: string;
21
+ };
22
+ export type RenderTextMentionMetadata = Pick<Partial<LocalMessage>, 'mentioned_channel' | 'mentioned_groups' | 'mentioned_here' | 'mentioned_roles' | 'mentioned_users'>;
23
+ type MentionReplacement = {
24
+ entity: RenderTextMentionEntity;
25
+ mentionDisplayText: string;
26
+ };
27
+ type MentionLookup = {
28
+ mentionDisplayTextSet: Set<string>;
29
+ mentionReplacementMap: Map<string, MentionReplacement>;
30
+ mentionReplacements: MentionReplacement[];
31
+ mentionsRegex: RegExp | null;
32
+ };
33
+ type MentionPluginAndDisplayTextSet = {
34
+ mentionDisplayTextSet: Set<string>;
35
+ plugin: () => (tree: HastTree) => void;
36
+ };
37
+ type HastTree = Parameters<typeof findAndReplace>[0];
38
+ export declare const getMentionDisplayTexts: (entity: RenderTextMentionEntity) => (string | undefined)[];
39
+ export declare const getRenderTextMentionEntities: (metadata?: RenderTextMentionMetadata) => RenderTextMentionEntity[];
40
+ export declare const mentionsMarkdownPluginFromLookup: ({ mentionDisplayTextSet, mentionReplacementMap, mentionReplacements, mentionsRegex, }: MentionLookup) => () => (tree: HastTree) => void;
41
+ export declare const createMentionPluginAndDisplayTextSet: (mentionEntitiesOrUsers: RenderTextMentionEntity[] | UserResponse[]) => MentionPluginAndDisplayTextSet;
42
+ export declare function mentionsMarkdownPlugin(mentionedUsers: UserResponse[]): () => (tree: HastTree) => void;
43
+ export declare function mentionsMarkdownPlugin(mentionEntities: RenderTextMentionEntity[]): () => (tree: HastTree) => void;
44
+ export {};
4
45
  //# sourceMappingURL=mentionsMarkdownPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mentionsMarkdownPlugin.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAW,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,sBAAsB,GAAI,iBAAiB,YAAY,EAAE,kBAqB3C,KAAK,SAoC/B,CAAC"}
1
+ {"version":3,"file":"mentionsMarkdownPlugin.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAK5D,OAAO,KAAK,EAAE,YAAY,EAAqB,YAAY,EAAE,MAAM,aAAa,CAAC;AAEjF,MAAM,MAAM,uBAAuB,GAC/B,CAAC,YAAY,GAAG;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC,GACF;IACE,EAAE,EAAE,SAAS,CAAC;IACd,WAAW,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,YAAY,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEN,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,OAAO,CAAC,YAAY,CAAC,EACnB,mBAAmB,GACnB,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,CACpB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,uBAAuB,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,qBAAqB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnC,qBAAqB,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IACvD,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;IAC1C,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,KAAK,8BAA8B,GAAG;IACpC,qBAAqB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAmBrD,eAAO,MAAM,sBAAsB,GAAI,QAAQ,uBAAuB,2BAUrE,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,WAAW,yBAAyB,KACnC,uBAAuB,EA+CzB,CAAC;AAmDF,eAAO,MAAM,gCAAgC,GAC1C,uFAKE,aAAa,kBAyBW,QAAQ,SA6ClC,CAAC;AAEJ,eAAO,MAAM,oCAAoC,GAC/C,wBAAwB,uBAAuB,EAAE,GAAG,YAAY,EAAE,KACjE,8BAOF,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,YAAY,EAAE,GAC7B,MAAM,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;AAClC,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,uBAAuB,EAAE,GACzC,MAAM,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC"}
@@ -1,8 +1,9 @@
1
- import type { ComponentType, JSX } from 'react';
1
+ import type { ComponentType, JSX, ReactNode } from 'react';
2
2
  import type { Options } from 'react-markdown';
3
3
  import type { UserResponse } from 'stream-chat';
4
4
  import type { PluggableList } from 'unified';
5
- import type { MentionProps } from './componentRenderers';
5
+ import type { MentionProps } from './componentRenderers/Mention';
6
+ import type { RenderTextMentionEntity } from './rehypePlugins';
6
7
  export type RenderTextPluginConfigurator = (defaultPlugins: PluggableList) => PluggableList;
7
8
  type IntrinsicElementTagName = keyof JSX.IntrinsicElements & string;
8
9
  export declare const defaultAllowedTagNames: Array<IntrinsicElementTagName | 'emoji' | 'mention'>;
@@ -15,7 +16,28 @@ export type RenderTextOptions = {
15
16
  }>;
16
17
  getRehypePlugins?: RenderTextPluginConfigurator;
17
18
  getRemarkPlugins?: RenderTextPluginConfigurator;
19
+ /**
20
+ * Additive mention metadata for rendered message text.
21
+ *
22
+ * Prefer this over the deprecated `mentionedUsers` argument. Use it whenever
23
+ * the message contains mention kinds beyond direct-user mentions
24
+ * (for example `@channel`, `@here`, roles, or user groups) and `renderText`
25
+ * needs the exact mention entities that should be highlighted in the rendered
26
+ * markdown output.
27
+ */
28
+ messageMentionEntities?: RenderTextMentionEntity[];
18
29
  };
19
- export declare const renderText: (text?: string, mentionedUsers?: UserResponse[], { allowedTagNames, customMarkDownRenderers, getRehypePlugins, getRemarkPlugins, }?: RenderTextOptions) => import("react/jsx-runtime").JSX.Element | null;
30
+ export type RenderTextFunction = (text?: string,
31
+ /**
32
+ * @deprecated Pass mention metadata through `options.messageMentionEntities`
33
+ * instead. This argument only supports direct-user mentions. Will be removed in next major version.
34
+ */
35
+ mentionedUsers?: UserResponse[], options?: RenderTextOptions) => ReactNode;
36
+ export declare function renderText(text?: string,
37
+ /**
38
+ * @deprecated Pass mention metadata through `options.messageMentionEntities`
39
+ * instead. This argument only supports direct-user mentions.
40
+ */
41
+ mentionedUsers?: UserResponse[], { allowedTagNames, customMarkDownRenderers, getRehypePlugins, getRemarkPlugins, messageMentionEntities, }?: RenderTextOptions): import("react/jsx-runtime").JSX.Element | null;
20
42
  export {};
21
43
  //# sourceMappingURL=renderText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderText.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/renderText/renderText.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM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AAEf,wBAAgB,UAAU,CACxB,IAAI,CAAC,EAAE,MAAM;AACb;;;GAGG;AACH,cAAc,CAAC,EAAE,YAAY,EAAE,EAC/B,EACE,eAAwC,EACxC,uBAAuB,EACvB,gBAAoC,EACpC,gBAAoC,EACpC,sBAAsB,GACvB,GAAE,iBAAsB,kDAmG1B"}
@@ -1,4 +1,3 @@
1
- import type { ReactNode } from 'react';
2
1
  import type { LocalMessage, ReactionSort, UserResponse } from 'stream-chat';
3
2
  import type { UserEventHandler } from './hooks';
4
3
  import type { MessageActionsArray } from './utils';
@@ -8,7 +7,7 @@ import type { ReactionsComparator } from '../Reactions/types';
8
7
  import type { ChannelActionContextValue } from '../../context/ChannelActionContext';
9
8
  import type { ComponentContextValue } from '../../context/ComponentContext';
10
9
  import type { MessageContextValue } from '../../context/MessageContext';
11
- import type { RenderTextOptions } from './renderText';
10
+ import type { RenderTextFunction } from './renderText';
12
11
  export type ReactEventHandler = (event: React.BaseSyntheticEvent) => Promise<void> | void;
13
12
  export type MessageProps = {
14
13
  /** The message object */
@@ -66,7 +65,7 @@ export type MessageProps = {
66
65
  */
67
66
  showAvatar?: boolean | 'incoming' | 'outgoing';
68
67
  /** Custom function to render message text content, defaults to the renderText function: [utils](https://github.com/GetStream/stream-chat-react/blob/master/src/utils.ts) */
69
- renderText?: (text?: string, mentioned_users?: UserResponse[], options?: RenderTextOptions) => ReactNode;
68
+ renderText?: RenderTextFunction;
70
69
  /** Custom retry send message handler to override default in [ChannelActionContext](https://getstream.io/chat/docs/sdk/react/contexts/channel_action_context/) */
71
70
  retrySendMessage?: ChannelActionContextValue['retrySendMessage'];
72
71
  /** Keep track of read receipts for each message sent by the user. When disabled, only the last own message delivery / read status is rendered. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,Y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,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,CAAC;IACjE,kJAAkJ;IAClJ,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,6EAA6E;IAC7E,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QuotedMessagePreview.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageComposer/QuotedMessagePreview.tsx"],"names":[],"mappings":"AAAA,OAAc,EAGZ,KAAK,iBAAiB,EAEtB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AASf,OAAO,EAUL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAKtB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAqBzD,MAAM,MAAM,yBAAyB,GAAG;IACtC,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAC;IAC3D,UAAU,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC;CAChD,CAAC;AAuOF,eAAO,MAAM,oBAAoB,GAAI,yCAGlC,yBAAyB,mDAiB3B,CAAC;AAEF,KAAK,2BAA2B,GAAG,yBAAyB,GAAG;IAC7D,aAAa,EAAE,gBAAgB,CAAC;IAChC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,mGAQpC,2BAA2B,mDAsI7B,CAAC"}
1
+ {"version":3,"file":"QuotedMessagePreview.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageComposer/QuotedMessagePreview.tsx"],"names":[],"mappings":"AAAA,OAAc,EAGZ,KAAK,iBAAiB,EAEtB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AASf,OAAO,EAUL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAKtB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAsBzD,MAAM,MAAM,yBAAyB,GAAG;IACtC,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,MAAM,CAAC;IAC3D,UAAU,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC;CAChD,CAAC;AAuOF,eAAO,MAAM,oBAAoB,GAAI,yCAGlC,yBAAyB,mDAiB3B,CAAC;AAEF,KAAK,2BAA2B,GAAG,yBAAyB,GAAG;IAC7D,aAAa,EAAE,gBAAgB,CAAC;IAChC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,mGAQpC,2BAA2B,mDAgK7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageComposerController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/hooks/useMessageComposerController.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,IAAI,yBAAyB,EAC7C,MAAM,aAAa,CAAC;AAOrB,eAAO,MAAM,4BAA4B,iCAwDxC,CAAC"}
1
+ {"version":3,"file":"useMessageComposerController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageComposer/hooks/useMessageComposerController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,IAAI,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAK3E,eAAO,MAAM,4BAA4B,iCAyDxC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ChannelMentionSuggestion, HereMentionSuggestion } from 'stream-chat';
2
+ import type { MentionItemComponentProps } from './types';
3
+ export type BroadcastMentionItemProps = MentionItemComponentProps<ChannelMentionSuggestion | HereMentionSuggestion>;
4
+ export declare const BroadcastMentionItem: ({ entity, focused, ...buttonProps }: BroadcastMentionItemProps) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=BroadcastMentionItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BroadcastMentionItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextareaComposer/SuggestionList/MentionItem/BroadcastMentionItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAKnF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,MAAM,MAAM,yBAAyB,GAAG,yBAAyB,CAC/D,wBAAwB,GAAG,qBAAqB,CACjD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,qCAIlC,yBAAyB,4CA6B3B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { MentionSuggestion } from 'stream-chat';
3
+ import { type BroadcastMentionItemProps } from './BroadcastMentionItem';
4
+ import { type RoleItemProps } from './RoleItem';
5
+ import { type SpecialMentionItemProps } from './SpecialMentionItem';
6
+ import { type UserGroupItemProps } from './UserGroupItem';
7
+ import { type UserItemProps } from './UserItem';
8
+ import type { MentionItemComponentProps } from './types';
9
+ export type MentionItemProps = MentionItemComponentProps<MentionSuggestion> & {
10
+ BroadcastMentionItem?: React.ComponentType<BroadcastMentionItemProps>;
11
+ RoleItem?: React.ComponentType<RoleItemProps>;
12
+ SpecialMentionItem?: React.ComponentType<SpecialMentionItemProps>;
13
+ UserGroupItem?: React.ComponentType<UserGroupItemProps>;
14
+ UserItem?: React.ComponentType<UserItemProps>;
15
+ };
16
+ export declare const MentionItem: ({ BroadcastMentionItem, entity, focused, RoleItem, SpecialMentionItem, UserGroupItem, UserItem, ...buttonProps }: MentionItemProps) => import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=MentionItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MentionItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextareaComposer/SuggestionList/MentionItem/MentionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,GAAG;IAC5E,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtE,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC9C,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;IAClE,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,kHASzB,gBAAgB,4CAkBlB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export type MentionSuggestionTitleProps = {
3
+ children: ReactNode;
4
+ };
5
+ export declare const MentionSuggestionTitle: ({ children }: MentionSuggestionTitleProps) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=MentionSuggestionTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MentionSuggestionTitle.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextareaComposer/SuggestionList/MentionItem/MentionSuggestionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,cAAc,2BAA2B,4CAE/E,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { RoleMentionSuggestion } from 'stream-chat';
2
+ import type { MentionItemComponentProps } from './types';
3
+ export type RoleItemProps = MentionItemComponentProps<RoleMentionSuggestion>;
4
+ export declare const RoleItem: ({ entity, focused, ...buttonProps }: RoleItemProps) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=RoleItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoleItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextareaComposer/SuggestionList/MentionItem/RoleItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAKzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAGzD,MAAM,MAAM,aAAa,GAAG,yBAAyB,CAAC,qBAAqB,CAAC,CAAC;AAE7E,eAAO,MAAM,QAAQ,GAAI,qCAAqC,aAAa,4CA+B1E,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { MentionItemComponentProps } from './types';
2
+ type MinimalMentionEntity = {
3
+ id: string;
4
+ mentionType: string;
5
+ name?: string;
6
+ };
7
+ export type SpecialMentionItemProps = MentionItemComponentProps<MinimalMentionEntity>;
8
+ export declare const SpecialMentionItem: () => null;
9
+ export {};
10
+ //# sourceMappingURL=SpecialMentionItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecialMentionItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextareaComposer/SuggestionList/MentionItem/SpecialMentionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,KAAK,oBAAoB,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,yBAAyB,CAAC,oBAAoB,CAAC,CAAC;AAEtF,eAAO,MAAM,kBAAkB,YAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { UserGroupMentionSuggestion } from 'stream-chat';
2
+ import type { MentionItemComponentProps } from './types';
3
+ export type UserGroupItemProps = MentionItemComponentProps<UserGroupMentionSuggestion>;
4
+ export declare const UserGroupItem: ({ entity, focused, ...buttonProps }: UserGroupItemProps) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=UserGroupItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserGroupItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextareaComposer/SuggestionList/MentionItem/UserGroupItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAGzD,MAAM,MAAM,kBAAkB,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAC;AAEvF,eAAO,MAAM,aAAa,GAAI,qCAI3B,kBAAkB,4CA6BpB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { UserSuggestion } from 'stream-chat';
2
+ import type { MentionItemComponentProps } from './types';
3
+ import { type TokenizedSuggestionDisplayName } from '../TokenizedSuggestionParts';
4
+ type LegacyUserSuggestionEntity = {
5
+ tokenizedDisplayName: TokenizedSuggestionDisplayName;
6
+ id?: string;
7
+ image?: string;
8
+ mentionType?: 'user';
9
+ name?: string;
10
+ };
11
+ export type UserItemProps = MentionItemComponentProps<LegacyUserSuggestionEntity | UserSuggestion>;
12
+ /**
13
+ * UI component for mentions rendered in suggestion list
14
+ */
15
+ export declare const UserItem: ({ entity, focused, ...buttonProps }: UserItemProps) => import("react/jsx-runtime").JSX.Element | null;
16
+ export {};
17
+ //# sourceMappingURL=UserItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextareaComposer/SuggestionList/MentionItem/UserItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EACL,KAAK,8BAA8B,EAEpC,MAAM,6BAA6B,CAAC;AAErC,KAAK,0BAA0B,GAAG;IAChC,oBAAoB,EAAE,8BAA8B,CAAC;IACrD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,yBAAyB,CACnD,0BAA0B,GAAG,cAAc,CAC5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,qCAAqC,aAAa,mDAqC1E,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './BroadcastMentionItem';
2
+ export * from './MentionItem';
3
+ export * from './RoleItem';
4
+ export * from './SpecialMentionItem';
5
+ export * from './types';
6
+ export * from './UserGroupItem';
7
+ export * from './UserItem';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextareaComposer/SuggestionList/MentionItem/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ComponentProps } from 'react';
2
+ export type MentionItemComponentProps<TEntity> = {
3
+ entity: TEntity;
4
+ focused?: boolean;
5
+ } & ComponentProps<'button'>;
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TextareaComposer/SuggestionList/MentionItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,yBAAyB,CAAC,OAAO,IAAI;IAC/C,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SuggestionList.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextareaComposer/SuggestionList/SuggestionList.tsx"],"names":[],"mappings":"AACA,OAAO,KAON,MAAM,OAAO,CAAC;AAMf,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AA2B7E,KAAK,iBAAiB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC;IACxC,wBAAwB,EAAE,MAAM,CAC9B,iBAAiB,EACjB,KAAK,CAAC,aAAa,CAAC,gCAAgC,CAAC,CACtD,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C,CAAC,CAAC;AAaH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CACpC,iBAAiB,EACjB,KAAK,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAW7C,CAAC;AAEX,eAAO,MAAM,cAAc,GAAI,0HAO5B,mBAAmB,mDAyKrB,CAAC"}
1
+ {"version":3,"file":"SuggestionList.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextareaComposer/SuggestionList/SuggestionList.tsx"],"names":[],"mappings":"AACA,OAAO,KAON,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AA0B7E,KAAK,iBAAiB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC;IACxC,wBAAwB,EAAE,MAAM,CAC9B,iBAAiB,EACjB,KAAK,CAAC,aAAa,CAAC,gCAAgC,CAAC,CACtD,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C,CAAC,CAAC;AAaH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CACpC,iBAAiB,EACjB,KAAK,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAW7C,CAAC;AAEX,eAAO,MAAM,cAAc,GAAI,0HAO5B,mBAAmB,mDA0KrB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { type ComponentProps } from 'react';
2
2
  import React from 'react';
3
3
  import type { TextComposerSuggestion } from 'stream-chat';
4
- import type { UserItemProps } from './UserItem';
5
4
  import type { CommandItemProps } from './CommandItem';
6
5
  import type { EmoticonItemProps } from './EmoticonItem';
7
- export type DefaultSuggestionListItemEntity = UserItemProps['entity'] | CommandItemProps['entity'] | EmoticonItemProps['entity'];
6
+ import type { MentionItemProps } from './MentionItem';
7
+ export type DefaultSuggestionListItemEntity = MentionItemProps['entity'] | CommandItemProps['entity'] | EmoticonItemProps['entity'];
8
8
  export type SuggestionListItemComponentProps = {
9
9
  entity: DefaultSuggestionListItemEntity | unknown;
10
10
  focused: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SuggestionListItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextareaComposer/SuggestionList/SuggestionListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAU,MAAM,OAAO,CAAC;AACpD,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,MAAM,MAAM,+BAA+B,GACvC,aAAa,CAAC,QAAQ,CAAC,GACvB,gBAAgB,CAAC,QAAQ,CAAC,GAC1B,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAEhC,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,+BAA+B,GAAG,OAAO,CAAC;IAClD,OAAO,EAAE,OAAO,CAAC;CAClB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE7B,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC3D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;IACjE,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,oGAShC,mBAAmB,4CAmCrB,CAAC"}
1
+ {"version":3,"file":"SuggestionListItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextareaComposer/SuggestionList/SuggestionListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAU,MAAM,OAAO,CAAC;AACpD,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGtD,MAAM,MAAM,+BAA+B,GACvC,gBAAgB,CAAC,QAAQ,CAAC,GAC1B,gBAAgB,CAAC,QAAQ,CAAC,GAC1B,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAEhC,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,+BAA+B,GAAG,OAAO,CAAC;IAClD,OAAO,EAAE,OAAO,CAAC;CAClB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE7B,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC3D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;IACjE,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,oGAShC,mBAAmB,4CAmCrB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type TokenizedSuggestionDisplayName = {
2
+ token: string;
3
+ parts: string[];
4
+ };
5
+ export type TokenizedSuggestionPartsProps = {
6
+ tokenizedDisplayName: TokenizedSuggestionDisplayName;
7
+ };
8
+ export declare const TokenizedSuggestionParts: ({ tokenizedDisplayName, }: TokenizedSuggestionPartsProps) => import("react/jsx-runtime").JSX.Element[];
9
+ //# sourceMappingURL=TokenizedSuggestionParts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TokenizedSuggestionParts.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextareaComposer/SuggestionList/TokenizedSuggestionParts.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,oBAAoB,EAAE,8BAA8B,CAAC;CACtD,CAAC;AA0BF,eAAO,MAAM,wBAAwB,GAAI,2BAEtC,6BAA6B,8CAgB5B,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from './CommandItem';
2
2
  export * from './EmoticonItem';
3
+ export * from './MentionItem';
3
4
  export * from './SuggestionList';
4
5
  export * from './SuggestionListItem';
5
- export * from './UserItem';
6
+ export * from './TokenizedSuggestionParts';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextareaComposer/SuggestionList/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextareaComposer/SuggestionList/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaComposer.d.ts","sourceRoot":"","sources":["../../../../src/components/TextareaComposer/TextareaComposer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAGZ,KAAK,sBAAsB,EAO5B,MAAM,OAAO,CAAC;AAgDf,eAAO,MAAM,8BAA8B,GAAI,MAAM,MAAM,YAAsB,CAAC;AAElF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,sBAAsB,CAAC,mBAAmB,CAAC,EAC3C,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,OAAO,CAChD,GAAG;IACF,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,KAAK,OAAO,CAAC;CAC7E,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,mQAe9B,qBAAqB,4CAyQvB,CAAC"}
1
+ {"version":3,"file":"TextareaComposer.d.ts","sourceRoot":"","sources":["../../../../src/components/TextareaComposer/TextareaComposer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAGZ,KAAK,sBAAsB,EAO5B,MAAM,OAAO,CAAC;AAgDf,eAAO,MAAM,8BAA8B,GAAI,MAAM,MAAM,YAAsB,CAAC;AAElF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,sBAAsB,CAAC,mBAAmB,CAAC,EAC3C,OAAO,GA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