@katechat/ui 1.0.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 (47) hide show
  1. package/.prettierrc +9 -0
  2. package/esbuild.js +56 -0
  3. package/jest.config.js +24 -0
  4. package/package.json +75 -0
  5. package/postcss.config.cjs +14 -0
  6. package/src/__mocks__/fileMock.js +1 -0
  7. package/src/__mocks__/styleMock.js +1 -0
  8. package/src/components/chat/ChatMessagesContainer.module.scss +77 -0
  9. package/src/components/chat/ChatMessagesContainer.tsx +151 -0
  10. package/src/components/chat/ChatMessagesList.tsx +216 -0
  11. package/src/components/chat/index.ts +4 -0
  12. package/src/components/chat/input/ChatInput.module.scss +113 -0
  13. package/src/components/chat/input/ChatInput.tsx +259 -0
  14. package/src/components/chat/input/index.ts +1 -0
  15. package/src/components/chat/message/ChatMessage.Carousel.module.scss +7 -0
  16. package/src/components/chat/message/ChatMessage.module.scss +378 -0
  17. package/src/components/chat/message/ChatMessage.tsx +271 -0
  18. package/src/components/chat/message/ChatMessagePreview.tsx +22 -0
  19. package/src/components/chat/message/LinkedChatMessage.tsx +64 -0
  20. package/src/components/chat/message/MessageStatus.tsx +38 -0
  21. package/src/components/chat/message/controls/CopyMessageButton.tsx +32 -0
  22. package/src/components/chat/message/index.ts +4 -0
  23. package/src/components/icons/ProviderIcon.tsx +49 -0
  24. package/src/components/icons/index.ts +1 -0
  25. package/src/components/index.ts +3 -0
  26. package/src/components/modal/ImagePopup.tsx +97 -0
  27. package/src/components/modal/index.ts +1 -0
  28. package/src/controls/FileDropzone/FileDropzone.module.scss +15 -0
  29. package/src/controls/FileDropzone/FileDropzone.tsx +120 -0
  30. package/src/controls/index.ts +1 -0
  31. package/src/core/ai.ts +1 -0
  32. package/src/core/index.ts +4 -0
  33. package/src/core/message.ts +59 -0
  34. package/src/core/model.ts +23 -0
  35. package/src/core/user.ts +8 -0
  36. package/src/hooks/index.ts +2 -0
  37. package/src/hooks/useIntersectionObserver.ts +24 -0
  38. package/src/hooks/useTheme.tsx +66 -0
  39. package/src/index.ts +5 -0
  40. package/src/lib/__tests__/markdown.parser.test.ts +289 -0
  41. package/src/lib/__tests__/markdown.parser.testUtils.ts +31 -0
  42. package/src/lib/__tests__/markdown.parser_sanitizeUrl.test.ts +130 -0
  43. package/src/lib/assert.ts +14 -0
  44. package/src/lib/markdown.parser.ts +189 -0
  45. package/src/setupTests.ts +1 -0
  46. package/src/types/scss.d.ts +4 -0
  47. package/tsconfig.json +26 -0
package/tsconfig.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "forceConsistentCasingInFileNames": true,
9
+ "noEmit": true,
10
+ "esModuleInterop": true,
11
+ "allowSyntheticDefaultImports": true,
12
+ "noFallthroughCasesInSwitch": true,
13
+ "module": "esnext",
14
+ "moduleResolution": "bundler",
15
+ "resolveJsonModule": true,
16
+ "isolatedModules": true,
17
+ "jsx": "preserve",
18
+ "incremental": true,
19
+ "noImplicitAny": true,
20
+ "paths": {
21
+ "@/*": ["./src/*"]
22
+ }
23
+ },
24
+ "include": ["**/*.ts", "**/*.tsx", "src/**/*"],
25
+ "exclude": ["../../node_modules/**/*.*", "node_modules/**/*.*", "**/*.test.tsx", "**/*.test.ts"]
26
+ }