@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.
- package/.prettierrc +9 -0
- package/esbuild.js +56 -0
- package/jest.config.js +24 -0
- package/package.json +75 -0
- package/postcss.config.cjs +14 -0
- package/src/__mocks__/fileMock.js +1 -0
- package/src/__mocks__/styleMock.js +1 -0
- package/src/components/chat/ChatMessagesContainer.module.scss +77 -0
- package/src/components/chat/ChatMessagesContainer.tsx +151 -0
- package/src/components/chat/ChatMessagesList.tsx +216 -0
- package/src/components/chat/index.ts +4 -0
- package/src/components/chat/input/ChatInput.module.scss +113 -0
- package/src/components/chat/input/ChatInput.tsx +259 -0
- package/src/components/chat/input/index.ts +1 -0
- package/src/components/chat/message/ChatMessage.Carousel.module.scss +7 -0
- package/src/components/chat/message/ChatMessage.module.scss +378 -0
- package/src/components/chat/message/ChatMessage.tsx +271 -0
- package/src/components/chat/message/ChatMessagePreview.tsx +22 -0
- package/src/components/chat/message/LinkedChatMessage.tsx +64 -0
- package/src/components/chat/message/MessageStatus.tsx +38 -0
- package/src/components/chat/message/controls/CopyMessageButton.tsx +32 -0
- package/src/components/chat/message/index.ts +4 -0
- package/src/components/icons/ProviderIcon.tsx +49 -0
- package/src/components/icons/index.ts +1 -0
- package/src/components/index.ts +3 -0
- package/src/components/modal/ImagePopup.tsx +97 -0
- package/src/components/modal/index.ts +1 -0
- package/src/controls/FileDropzone/FileDropzone.module.scss +15 -0
- package/src/controls/FileDropzone/FileDropzone.tsx +120 -0
- package/src/controls/index.ts +1 -0
- package/src/core/ai.ts +1 -0
- package/src/core/index.ts +4 -0
- package/src/core/message.ts +59 -0
- package/src/core/model.ts +23 -0
- package/src/core/user.ts +8 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useIntersectionObserver.ts +24 -0
- package/src/hooks/useTheme.tsx +66 -0
- package/src/index.ts +5 -0
- package/src/lib/__tests__/markdown.parser.test.ts +289 -0
- package/src/lib/__tests__/markdown.parser.testUtils.ts +31 -0
- package/src/lib/__tests__/markdown.parser_sanitizeUrl.test.ts +130 -0
- package/src/lib/assert.ts +14 -0
- package/src/lib/markdown.parser.ts +189 -0
- package/src/setupTests.ts +1 -0
- package/src/types/scss.d.ts +4 -0
- 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
|
+
}
|