@linktr.ee/messaging-react 1.12.0 → 1.12.1

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 (74) hide show
  1. package/dist/index.d.ts +315 -18
  2. package/package.json +1 -1
  3. package/dist/.tsbuildinfo +0 -1
  4. package/dist/components/ActionButton/ActionButton.test.d.ts +0 -2
  5. package/dist/components/ActionButton/ActionButton.test.d.ts.map +0 -1
  6. package/dist/components/ActionButton/index.d.ts +0 -7
  7. package/dist/components/ActionButton/index.d.ts.map +0 -1
  8. package/dist/components/Avatar/getAvatarEmoji.d.ts +0 -7
  9. package/dist/components/Avatar/getAvatarEmoji.d.ts.map +0 -1
  10. package/dist/components/Avatar/index.d.ts +0 -14
  11. package/dist/components/Avatar/index.d.ts.map +0 -1
  12. package/dist/components/ChannelList/CustomChannelPreview.d.ts +0 -14
  13. package/dist/components/ChannelList/CustomChannelPreview.d.ts.map +0 -1
  14. package/dist/components/ChannelList/index.d.ts +0 -7
  15. package/dist/components/ChannelList/index.d.ts.map +0 -1
  16. package/dist/components/ChannelView.d.ts +0 -7
  17. package/dist/components/ChannelView.d.ts.map +0 -1
  18. package/dist/components/CloseButton/index.d.ts +0 -6
  19. package/dist/components/CloseButton/index.d.ts.map +0 -1
  20. package/dist/components/CustomLinkPreviewList/index.d.ts +0 -2
  21. package/dist/components/CustomLinkPreviewList/index.d.ts.map +0 -1
  22. package/dist/components/CustomMessageInput/index.d.ts +0 -6
  23. package/dist/components/CustomMessageInput/index.d.ts.map +0 -1
  24. package/dist/components/CustomSystemMessage/index.d.ts +0 -3
  25. package/dist/components/CustomSystemMessage/index.d.ts.map +0 -1
  26. package/dist/components/FaqList/FaqListItem.d.ts +0 -9
  27. package/dist/components/FaqList/FaqListItem.d.ts.map +0 -1
  28. package/dist/components/FaqList/index.d.ts +0 -19
  29. package/dist/components/FaqList/index.d.ts.map +0 -1
  30. package/dist/components/IconButton/index.d.ts +0 -9
  31. package/dist/components/IconButton/index.d.ts.map +0 -1
  32. package/dist/components/Loading/index.d.ts +0 -7
  33. package/dist/components/Loading/index.d.ts.map +0 -1
  34. package/dist/components/MessagingShell/ChannelEmptyState.d.ts +0 -6
  35. package/dist/components/MessagingShell/ChannelEmptyState.d.ts.map +0 -1
  36. package/dist/components/MessagingShell/EmptyState.d.ts +0 -9
  37. package/dist/components/MessagingShell/EmptyState.d.ts.map +0 -1
  38. package/dist/components/MessagingShell/ErrorState.d.ts +0 -11
  39. package/dist/components/MessagingShell/ErrorState.d.ts.map +0 -1
  40. package/dist/components/MessagingShell/LoadingState.d.ts +0 -6
  41. package/dist/components/MessagingShell/LoadingState.d.ts.map +0 -1
  42. package/dist/components/MessagingShell/index.d.ts +0 -7
  43. package/dist/components/MessagingShell/index.d.ts.map +0 -1
  44. package/dist/components/ParticipantPicker/ParticipantItem.d.ts +0 -13
  45. package/dist/components/ParticipantPicker/ParticipantItem.d.ts.map +0 -1
  46. package/dist/components/ParticipantPicker/ParticipantPicker.d.ts +0 -7
  47. package/dist/components/ParticipantPicker/ParticipantPicker.d.ts.map +0 -1
  48. package/dist/components/ParticipantPicker/index.d.ts +0 -7
  49. package/dist/components/ParticipantPicker/index.d.ts.map +0 -1
  50. package/dist/components/SearchInput/SearchInput.test.d.ts +0 -2
  51. package/dist/components/SearchInput/SearchInput.test.d.ts.map +0 -1
  52. package/dist/components/SearchInput/index.d.ts +0 -8
  53. package/dist/components/SearchInput/index.d.ts.map +0 -1
  54. package/dist/hooks/useMessaging.d.ts +0 -6
  55. package/dist/hooks/useMessaging.d.ts.map +0 -1
  56. package/dist/hooks/useParticipants.d.ts +0 -19
  57. package/dist/hooks/useParticipants.d.ts.map +0 -1
  58. package/dist/index.d.ts.map +0 -1
  59. package/dist/providers/MessagingProvider.d.ts +0 -26
  60. package/dist/providers/MessagingProvider.d.ts.map +0 -1
  61. package/dist/stories/mocks.d.ts +0 -29
  62. package/dist/stories/mocks.d.ts.map +0 -1
  63. package/dist/stream-custom-data.d.ts +0 -25
  64. package/dist/stream-custom-data.d.ts.map +0 -1
  65. package/dist/test/setup.d.ts +0 -2
  66. package/dist/test/setup.d.ts.map +0 -1
  67. package/dist/test/utils.d.ts +0 -12
  68. package/dist/test/utils.d.ts.map +0 -1
  69. package/dist/types.d.ts +0 -174
  70. package/dist/types.d.ts.map +0 -1
  71. package/dist/utils/formatRelativeTime.d.ts +0 -6
  72. package/dist/utils/formatRelativeTime.d.ts.map +0 -1
  73. package/dist/utils/formatRelativeTime.test.d.ts +0 -2
  74. package/dist/utils/formatRelativeTime.test.d.ts.map +0 -1
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ActionButton.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionButton.test.d.ts","sourceRoot":"","sources":["../../../src/components/ActionButton/ActionButton.test.tsx"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface ActionButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
- variant?: "default" | "danger";
4
- }
5
- declare const ActionButton: ({ variant, className, children, ...rest }: ActionButtonProps) => import("react/jsx-runtime").JSX.Element;
6
- export default ActionButton;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ActionButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,iBACR,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACrD,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAChC;AAED,QAAA,MAAM,YAAY,GAAI,2CAKnB,iBAAiB,4CAiBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Get a fruit emoji based on an id string
3
- * @param id - The string id to generate emoji from
4
- * @returns A fruit emoji string
5
- */
6
- export declare function getAvatarEmoji(id: string): string;
7
- //# sourceMappingURL=getAvatarEmoji.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAvatarEmoji.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/getAvatarEmoji.ts"],"names":[],"mappings":"AAiCA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAIjD"}
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- export interface AvatarProps {
3
- id: string;
4
- name: string;
5
- image?: string;
6
- size?: number;
7
- className?: string;
8
- shape?: 'squircle' | 'circle';
9
- }
10
- /**
11
- * Avatar component that displays a user image or colored initial fallback
12
- */
13
- export declare const Avatar: React.FC<AvatarProps>;
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAA;CAC9B;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsDxC,CAAA"}
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { Channel } from 'stream-chat';
3
- import { ChannelPreviewUIComponentProps } from 'stream-chat-react';
4
- type CustomChannelPreviewProps = ChannelPreviewUIComponentProps & {
5
- selectedChannel?: Channel | null;
6
- onChannelSelect: (channel: Channel) => void;
7
- debug?: boolean;
8
- };
9
- /**
10
- * Custom channel preview that handles selection
11
- */
12
- declare const CustomChannelPreview: React.NamedExoticComponent<CustomChannelPreviewProps>;
13
- export default CustomChannelPreview;
14
- //# sourceMappingURL=CustomChannelPreview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CustomChannelPreview.d.ts","sourceRoot":"","sources":["../../../src/components/ChannelList/CustomChannelPreview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAA;AAKlE,KAAK,yBAAyB,GAAG,8BAA8B,GAAG;IAChE,eAAe,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC3C,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED;;GAEG;AACH,QAAA,MAAM,oBAAoB,uDA8GzB,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { ChannelListProps } from '../../types';
3
- /**
4
- * Channel list component with customizable header and actions
5
- */
6
- export declare const ChannelList: React.NamedExoticComponent<ChannelListProps>;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ChannelList/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAInD;;GAEG;AACH,eAAO,MAAM,WAAW,8CAyDvB,CAAA"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { ChannelViewProps } from '../types';
3
- /**
4
- * Channel view component with message list and input
5
- */
6
- export declare const ChannelView: React.NamedExoticComponent<ChannelViewProps>;
7
- //# sourceMappingURL=ChannelView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChannelView.d.ts","sourceRoot":"","sources":["../../src/components/ChannelView.tsx"],"names":[],"mappings":"AASA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAUvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAigBhD;;GAEG;AACH,eAAO,MAAM,WAAW,8CA2CvB,CAAA"}
@@ -1,6 +0,0 @@
1
- interface CloseButtonProps {
2
- onClick: () => void;
3
- }
4
- export declare function CloseButton({ onClick }: CloseButtonProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CloseButton/index.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,gBAAgB,2CAMxD"}
@@ -1,2 +0,0 @@
1
- export declare const CustomLinkPreviewList: () => import("react/jsx-runtime").JSX.Element | null;
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CustomLinkPreviewList/index.tsx"],"names":[],"mappings":"AAqEA,eAAO,MAAM,qBAAqB,sDA2BjC,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface CustomMessageInputProps {
3
- renderActions?: () => React.ReactNode;
4
- }
5
- export declare const CustomMessageInput: React.FC<CustomMessageInputProps>;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CustomMessageInput/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAiDzB,MAAM,WAAW,uBAAuB;IACtC,aAAa,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAA;CACtC;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAOhE,CAAA"}
@@ -1,3 +0,0 @@
1
- import { type EventComponentProps } from 'stream-chat-react';
2
- export declare const CustomSystemMessage: React.FC<EventComponentProps>;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CustomSystemMessage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE9E,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAa7D,CAAA"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export interface FaqListItemProps {
3
- question: string;
4
- onClick: () => void;
5
- loading?: boolean;
6
- className?: string;
7
- }
8
- export declare const FaqListItem: React.FC<FaqListItemProps>;
9
- //# sourceMappingURL=FaqListItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FaqListItem.d.ts","sourceRoot":"","sources":["../../../src/components/FaqList/FaqListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwBlD,CAAA"}
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- export interface Faq {
3
- id: string;
4
- question: string;
5
- answer: string;
6
- enabled: boolean;
7
- order?: number | null;
8
- }
9
- export interface FaqListProps {
10
- faqs: Faq[];
11
- onFaqClick: (faqId: string) => void;
12
- loadingFaqId?: string | null;
13
- headerText?: string;
14
- className?: string;
15
- avatarImage?: string;
16
- avatarName?: string;
17
- }
18
- export declare const FaqList: React.FC<FaqListProps>;
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FaqList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,GAAG,EAAE,CAAA;IACX,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAqD1C,CAAA"}
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "children"> {
3
- label: string;
4
- children: React.ReactNode;
5
- className?: string;
6
- }
7
- export declare function IconButton({ label, className, children, ...rest }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,eACR,SAAQ,IAAI,CACV,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,MAAM,GAAG,UAAU,CACpB;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,2CAkBlF"}
@@ -1,7 +0,0 @@
1
- type LoadingProps = {
2
- className?: string;
3
- message?: string;
4
- };
5
- declare const Loading: ({ className, message }: LoadingProps) => import("react/jsx-runtime").JSX.Element;
6
- export default Loading;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/index.tsx"],"names":[],"mappings":"AAEA,KAAK,YAAY,GAAG;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,QAAA,MAAM,OAAO,GAAI,wBAAwB,YAAY,4CAsCpD,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * Empty state component shown when a channel has no messages
4
- */
5
- export declare const ChannelEmptyState: React.FC;
6
- //# sourceMappingURL=ChannelEmptyState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChannelEmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/MessagingShell/ChannelEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAe,CAAA"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * Empty state component shown when no channel is selected
4
- */
5
- export declare const EmptyState: React.NamedExoticComponent<{
6
- hasChannels: boolean;
7
- channelsLoaded: boolean;
8
- }>;
9
- //# sourceMappingURL=EmptyState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/MessagingShell/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AA+FzB;;GAEG;AACH,eAAO,MAAM,UAAU;iBAA6B,OAAO;oBAAkB,OAAO;EAiBlF,CAAA"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- type ErrorStateProps = {
3
- message: string;
4
- onBack?: () => void;
5
- };
6
- /**
7
- * Error state component shown when something goes wrong
8
- */
9
- export declare const ErrorState: React.NamedExoticComponent<ErrorStateProps>;
10
- export {};
11
- //# sourceMappingURL=ErrorState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorState.d.ts","sourceRoot":"","sources":["../../../src/components/MessagingShell/ErrorState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,6CAsBrB,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * Loading state component
4
- */
5
- export declare const LoadingState: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
6
- //# sourceMappingURL=LoadingState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoadingState.d.ts","sourceRoot":"","sources":["../../../src/components/MessagingShell/LoadingState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB;;GAEG;AACH,eAAO,MAAM,YAAY,0EAOvB,CAAA"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { MessagingShellProps } from '../../types';
3
- /**
4
- * Main messaging interface component that combines channel list and channel view
5
- */
6
- export declare const MessagingShell: React.FC<MessagingShellProps>;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MessagingShell/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAIvE,OAAO,KAAK,EAAE,mBAAmB,EAAe,MAAM,aAAa,CAAA;AASnE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgfxD,CAAA"}
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { Participant } from '../../types';
3
- type ParticipantItemProps = {
4
- participant: Participant;
5
- handleSelectParticipant: (participant: Participant) => void;
6
- handleKeyDown: (event: React.KeyboardEvent, participant: Participant) => void;
7
- displayName: string;
8
- displaySecondary?: string;
9
- startingChatWithId?: string | null;
10
- };
11
- export declare const ParticipantItem: React.FC<ParticipantItemProps>;
12
- export {};
13
- //# sourceMappingURL=ParticipantItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParticipantItem.d.ts","sourceRoot":"","sources":["../../../src/components/ParticipantPicker/ParticipantItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAG9C,KAAK,oBAAoB,GAAG;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,uBAAuB,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAA;IAC3D,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,EAAE,WAAW,EAAE,WAAW,KAAK,IAAI,CAAA;IAC7E,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA+C1D,CAAA"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { ParticipantPickerProps } from '../../types';
3
- /**
4
- * Generic participant picker component for starting conversations
5
- */
6
- export declare const ParticipantPicker: React.FC<ParticipantPickerProps>;
7
- //# sourceMappingURL=ParticipantPicker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParticipantPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ParticipantPicker/ParticipantPicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAGvE,OAAO,KAAK,EAAE,sBAAsB,EAAe,MAAM,aAAa,CAAA;AAOtE;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAqN9D,CAAA"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { ParticipantPickerProps } from '../../types';
3
- /**
4
- * Generic participant picker component for starting conversations
5
- */
6
- export declare const ParticipantPicker: React.FC<ParticipantPickerProps>;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ParticipantPicker/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAGvE,OAAO,KAAK,EAAE,sBAAsB,EAAe,MAAM,aAAa,CAAA;AAKtE;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAiP9D,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=SearchInput.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchInput.test.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.test.tsx"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- interface SearchInputProps {
2
- searchQuery: string;
3
- setSearchQuery: (value: string) => void;
4
- placeholder: string;
5
- }
6
- export declare function SearchInput({ searchQuery, setSearchQuery, placeholder, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/index.tsx"],"names":[],"mappings":"AAKA,UAAU,gBAAgB;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,wBAAgB,WAAW,CAAC,EAC1B,WAAW,EACX,cAAc,EACd,WAAW,GACZ,EAAE,gBAAgB,2CAiClB"}
@@ -1,6 +0,0 @@
1
- import type { MessagingContextValue } from '../providers/MessagingProvider';
2
- /**
3
- * Hook to access messaging service and state
4
- */
5
- export declare const useMessaging: () => MessagingContextValue;
6
- //# sourceMappingURL=useMessaging.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMessaging.d.ts","sourceRoot":"","sources":["../../src/hooks/useMessaging.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,YAAY,QAAO,qBAE/B,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { ParticipantSource, Participant } from '../types';
2
- /**
3
- * Hook for managing participant loading with search and pagination
4
- */
5
- export declare const useParticipants: (participantSource: ParticipantSource, options?: {
6
- initialSearch?: string;
7
- pageSize?: number;
8
- }) => {
9
- participants: Participant[];
10
- loading: boolean;
11
- error: string | null;
12
- searchQuery: string;
13
- hasMore: boolean;
14
- totalCount: number | undefined;
15
- loadMore: () => void;
16
- search: (query: string) => void;
17
- refresh: () => void;
18
- };
19
- //# sourceMappingURL=useParticipants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useParticipants.d.ts","sourceRoot":"","sources":["../../src/hooks/useParticipants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,eAAe,GAC1B,mBAAmB,iBAAiB,EACpC,UAAS;IACP,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACd;;;;;;;;oBAoD6B,MAAM;;CA4B1C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAA;AAGrB,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAA;AAGjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AAGjE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAGzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAG/D,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,GACZ,MAAM,SAAS,CAAA;AAChB,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAC7D,YAAY,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA"}
@@ -1,26 +0,0 @@
1
- import { StreamChatService } from '@linktr.ee/messaging-core';
2
- import React from 'react';
3
- import type { StreamChat } from 'stream-chat';
4
- import type { MessagingProviderProps, MessagingCapabilities } from '../types';
5
- /**
6
- * Context value for messaging state and service
7
- */
8
- export interface MessagingContextValue {
9
- service: StreamChatService | null;
10
- client: StreamChat | null;
11
- isConnected: boolean;
12
- isLoading: boolean;
13
- error: string | null;
14
- capabilities: MessagingCapabilities;
15
- refreshConnection: () => Promise<void>;
16
- debug: boolean;
17
- }
18
- /**
19
- * Hook to access messaging context
20
- */
21
- export declare const useMessagingContext: () => MessagingContextValue;
22
- /**
23
- * Provider component that wraps messaging-core with React state management
24
- */
25
- export declare const MessagingProvider: React.FC<MessagingProviderProps>;
26
- //# sourceMappingURL=MessagingProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessagingProvider.d.ts","sourceRoot":"","sources":["../../src/providers/MessagingProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAON,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAE7E;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAA;IACjC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAA;IACzB,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,YAAY,EAAE,qBAAqB,CAAA;IACnC,iBAAiB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACtC,KAAK,EAAE,OAAO,CAAA;CACf;AAaD;;GAEG;AACH,eAAO,MAAM,mBAAmB,6BAAqC,CAAA;AAErE;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAiT9D,CAAA"}
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- export declare const MockChatProvider: React.FC<{
3
- children: React.ReactNode;
4
- }>;
5
- export declare const MockChatProviderWithChannels: React.FC<{
6
- children: React.ReactNode;
7
- channelCount?: number;
8
- }>;
9
- export declare const mockParticipants: {
10
- id: string;
11
- name: string;
12
- email: string;
13
- image: string;
14
- }[];
15
- export declare const mockParticipantSource: {
16
- loadParticipants: (options?: {
17
- search?: string;
18
- limit?: number;
19
- }) => Promise<{
20
- participants: {
21
- id: string;
22
- name: string;
23
- email: string;
24
- image: string;
25
- }[];
26
- hasMore: boolean;
27
- }>;
28
- };
29
- //# sourceMappingURL=mocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../src/stories/mocks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AA+BzB,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAYpE,CAAA;AAGD,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC;IAClD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAwDA,CAAA;AAGD,eAAO,MAAM,gBAAgB;;;;;GA+B5B,CAAA;AAGD,eAAO,MAAM,qBAAqB;iCACG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;CAYvE,CAAA"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Stream Chat custom data type augmentation.
3
- *
4
- * This file extends Stream Chat's type system by augmenting their empty
5
- * CustomMessageData interface with our custom properties.
6
- *
7
- * @see https://getstream.io/chat/docs/sdk/react/guides/typescript_and_custom_data_types/
8
- *
9
- * Note: We use a .ts extension instead of .d.ts so that this file can be
10
- * imported as a module and included in the build. Declaration files (.d.ts)
11
- * are ambient and cannot be imported - they require manual build configuration
12
- * to be included in the distributed types.
13
- */
14
- import 'stream-chat';
15
- declare module 'stream-chat' {
16
- interface CustomMessageData {
17
- /**
18
- * When true, hides the date timestamp in system messages.
19
- * Used by CustomSystemMessage component.
20
- */
21
- hide_date?: boolean;
22
- }
23
- }
24
- export {};
25
- //# sourceMappingURL=stream-custom-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stream-custom-data.d.ts","sourceRoot":"","sources":["../src/stream-custom-data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,aAAa,CAAA;AAEpB,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAU,iBAAiB;QACzB;;;WAGG;QACH,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;CACF;AAGD,OAAO,EAAE,CAAA"}
@@ -1,2 +0,0 @@
1
- import '@testing-library/jest-dom/vitest';
2
- //# sourceMappingURL=setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/test/setup.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAA"}
@@ -1,12 +0,0 @@
1
- import { RenderOptions, RenderResult } from '@testing-library/react';
2
- import { ReactElement } from 'react';
3
- /**
4
- * Custom render function that wraps components with common providers
5
- */
6
- export declare function renderWithProviders(ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>): RenderResult;
7
- /**
8
- * Re-export everything from React Testing Library
9
- */
10
- export * from '@testing-library/react';
11
- export { default as userEvent } from '@testing-library/user-event';
12
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/test/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC5E,OAAO,EAAE,YAAY,EAAa,MAAM,OAAO,CAAA;AAE/C;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,YAAY,EAChB,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,GACvC,YAAY,CAMd;AAED;;GAEG;AACH,cAAc,wBAAwB,CAAA;AACtC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,6BAA6B,CAAA"}