reachat 0.0.1 → 1.0.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 (50) hide show
  1. package/README.md +86 -39
  2. package/dist/Chat.d.ts +58 -0
  3. package/dist/ChatContext.d.ts +18 -0
  4. package/dist/ChatInput.d.ts +42 -0
  5. package/dist/Markdown/CodeHighlighter.d.ts +25 -0
  6. package/dist/Markdown/Markdown.d.ts +11 -0
  7. package/dist/Markdown/Table.d.ts +5 -0
  8. package/dist/Markdown/index.d.ts +5 -0
  9. package/dist/Markdown/plugins/index.d.ts +1 -0
  10. package/dist/Markdown/plugins/remarkCve.d.ts +1 -0
  11. package/dist/Markdown/themes/dark.d.ts +501 -0
  12. package/dist/Markdown/themes/index.d.ts +2 -0
  13. package/dist/Markdown/themes/light.d.ts +499 -0
  14. package/dist/SessionMessages/MessageActions.d.ts +45 -0
  15. package/dist/SessionMessages/MessageFile.d.ts +14 -0
  16. package/dist/SessionMessages/MessageFiles.d.ts +11 -0
  17. package/dist/SessionMessages/MessageQuestion.d.ts +9 -0
  18. package/dist/SessionMessages/MessageResponse.d.ts +13 -0
  19. package/dist/SessionMessages/MessageSource.d.ts +10 -0
  20. package/dist/SessionMessages/MessageSources.d.ts +11 -0
  21. package/dist/SessionMessages/SessionEmpty.d.ts +6 -0
  22. package/dist/SessionMessages/SessionMessage.d.ts +15 -0
  23. package/dist/SessionMessages/SessionMessagePanel.d.ts +3 -0
  24. package/dist/SessionMessages/SessionMessages.d.ts +23 -0
  25. package/dist/SessionMessages/SessionMessagesHeader.d.ts +3 -0
  26. package/dist/SessionMessages/index.d.ts +12 -0
  27. package/dist/SessionsList/NewSessionButton.d.ts +10 -0
  28. package/dist/SessionsList/SessionGroups.d.ts +10 -0
  29. package/dist/SessionsList/SessionListItem.d.ts +22 -0
  30. package/dist/SessionsList/SessionsGroup.d.ts +10 -0
  31. package/dist/SessionsList/SessionsList.d.ts +3 -0
  32. package/dist/SessionsList/index.d.ts +5 -0
  33. package/dist/docs.json +1478 -0
  34. package/dist/index.d.ts +4 -5
  35. package/dist/index.js +1866 -3211
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.umd.cjs +1868 -3209
  38. package/dist/index.umd.cjs.map +1 -1
  39. package/dist/theme.d.ts +77 -1
  40. package/dist/types.d.ts +71 -17
  41. package/dist/utils.d.ts +7 -0
  42. package/dist/utils.spec.d.ts +1 -0
  43. package/package.json +38 -23
  44. package/dist/SessionInput.d.ts +0 -22
  45. package/dist/SessionListItem.d.ts +0 -11
  46. package/dist/SessionMessage.d.ts +0 -10
  47. package/dist/SessionMessages.d.ts +0 -9
  48. package/dist/Sessions.d.ts +0 -48
  49. package/dist/SessionsList.d.ts +0 -11
  50. package/dist/useLlm.d.ts +0 -3
@@ -0,0 +1,10 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { GroupedSessions } from '../utils';
3
+
4
+ export interface SessionGroupsProps {
5
+ /**
6
+ * Render function for the session groups.
7
+ */
8
+ children: (groups: GroupedSessions[]) => ReactNode;
9
+ }
10
+ export declare const SessionGroups: FC<SessionGroupsProps>;
@@ -0,0 +1,22 @@
1
+ import { FC, PropsWithChildren, ReactElement } from 'react';
2
+ import { Session } from '../types';
3
+
4
+ export interface SessionListItemProps extends PropsWithChildren {
5
+ /**
6
+ * Session to display.
7
+ */
8
+ session: Session;
9
+ /**
10
+ * Indicates whether the session is deletable.
11
+ */
12
+ deletable?: boolean;
13
+ /**
14
+ * Icon to show for delete.
15
+ */
16
+ deleteIcon?: ReactElement;
17
+ /**
18
+ * Limit for the ellipsis.
19
+ */
20
+ limit?: number;
21
+ }
22
+ export declare const SessionListItem: FC<SessionListItemProps>;
@@ -0,0 +1,10 @@
1
+ import { FC, PropsWithChildren, ReactNode } from 'react';
2
+
3
+ interface SessionsGroupProps extends PropsWithChildren {
4
+ /**
5
+ * Heading for the session group.
6
+ */
7
+ heading?: string | ReactNode;
8
+ }
9
+ export declare const SessionsGroup: FC<SessionsGroupProps>;
10
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+
3
+ export declare const SessionsList: FC<PropsWithChildren>;
@@ -0,0 +1,5 @@
1
+ export * from './SessionsList';
2
+ export * from './SessionListItem';
3
+ export * from './NewSessionButton';
4
+ export * from './SessionGroups';
5
+ export * from './SessionsGroup';