Skip to content

Commit

Permalink
Merge pull request #39 from ieedan/chat-components
Browse files Browse the repository at this point in the history
  • Loading branch information
ieedan authored Jan 8, 2025
2 parents 0b5d26e + 3614e56 commit 4b77cc5
Show file tree
Hide file tree
Showing 30 changed files with 1,041 additions and 275 deletions.
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default ts.config(
argsIgnorePattern: '^_'
}
],
'no-prototype-builtins': 'off',
'no-useless-escape': 'warn'
}
},
Expand Down
4 changes: 3 additions & 1 deletion jsrepo-build-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"doNotListCategories": [],
"listBlocks": [
"button",
"chat",
"code",
"field-set",
"ipv4address-input",
Expand All @@ -21,7 +22,8 @@
"tree-view",
"active.svelte",
"shortcut.svelte",
"context-provider"
"context-provider",
"use-auto-scroll.svelte"
],
"listCategories": [],
"excludeDeps": ["svelte"],
Expand Down
84 changes: 74 additions & 10 deletions jsrepo-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
{
"name": "ui",
"blocks": [
{
"name": "avatar",
"directory": "src/lib/components/ui/avatar",
"category": "ui",
"tests": false,
"subdirectory": true,
"list": false,
"files": ["avatar-fallback.svelte", "avatar-image.svelte", "avatar.svelte", "index.ts"],
"localDependencies": ["utils/utils"],
"dependencies": [],
"devDependencies": ["[email protected]"],
"_imports_": {
"$lib/utils/utils.js": "{{utils/utils}}.js"
}
},
{
"name": "button",
"directory": "src/lib/components/ui/button",
Expand All @@ -14,13 +29,44 @@
"dependencies": [],
"devDependencies": [
"lucide-svelte@^0.469.0",
"[email protected].74",
"[email protected].77",
"tailwind-variants@^0.3.0"
],
"_imports_": {
"$lib/utils/utils.js": "{{utils/utils}}.js"
}
},
{
"name": "chat",
"directory": "src/lib/components/ui/chat",
"category": "ui",
"tests": false,
"subdirectory": true,
"list": true,
"files": [
"chat-bubble-avatar.svelte",
"chat-bubble-message.svelte",
"chat-bubble.svelte",
"chat-list.svelte",
"index.ts",
"loading-dots.svelte"
],
"localDependencies": [
"ui/avatar",
"utils/utils",
"ui/button",
"hooks/use-auto-scroll.svelte"
],
"dependencies": [],
"devDependencies": ["[email protected]", "lucide-svelte@^0.469.0"],
"_imports_": {
"$lib/components/ui/avatar": "{{ui/avatar}}",
"$lib/utils/utils.js": "{{utils/utils}}.js",
"$lib/utils/utils": "{{utils/utils}}",
"$lib/components/ui/button": "{{ui/button}}",
"$lib/hooks/use-auto-scroll.svelte.js": "{{hooks/use-auto-scroll.svelte}}.js"
}
},
{
"name": "code",
"directory": "src/lib/components/ui/code",
Expand All @@ -31,7 +77,7 @@
"files": ["code.svelte", "copy.svelte", "index.ts", "langs.ts", "shiki-provider.svelte"],
"localDependencies": ["utils/utils", "ui/button", "utils/context-provider"],
"dependencies": [],
"devDependencies": ["tailwind-variants@^0.3.0", "lucide-svelte@^0.469.0", "shiki@^1.24.4"],
"devDependencies": ["tailwind-variants@^0.3.0", "lucide-svelte@^0.469.0", "shiki@^1.26.1"],
"_imports_": {
"$lib/utils/utils": "{{utils/utils}}",
"$lib/components/ui/button": "{{ui/button}}",
Expand All @@ -48,7 +94,7 @@
"files": ["index.ts"],
"localDependencies": [],
"dependencies": [],
"devDependencies": ["[email protected].74"],
"devDependencies": ["[email protected].77"],
"_imports_": {}
},
{
Expand All @@ -73,7 +119,7 @@
],
"localDependencies": ["ui/dialog", "utils/utils"],
"dependencies": [],
"devDependencies": ["[email protected].74", "lucide-svelte@^0.469.0"],
"devDependencies": ["[email protected].77", "lucide-svelte@^0.469.0"],
"_imports_": {
"$lib/components/ui/dialog/index.js": "{{ui/dialog}}/index.js",
"$lib/utils/utils.js": "{{utils/utils}}.js"
Expand All @@ -97,7 +143,7 @@
],
"localDependencies": ["utils/utils"],
"dependencies": [],
"devDependencies": ["[email protected].74", "lucide-svelte@^0.469.0"],
"devDependencies": ["[email protected].77", "lucide-svelte@^0.469.0"],
"_imports_": {
"$lib/utils/utils.js": "{{utils/utils}}.js"
}
Expand All @@ -122,7 +168,7 @@
],
"localDependencies": ["utils/utils"],
"dependencies": [],
"devDependencies": ["[email protected]", "[email protected].74"],
"devDependencies": ["[email protected]", "[email protected].77"],
"_imports_": {
"$lib/utils/utils.js": "{{utils/utils}}.js"
}
Expand All @@ -149,7 +195,7 @@
],
"localDependencies": ["utils/utils"],
"dependencies": [],
"devDependencies": ["[email protected].74", "lucide-svelte@^0.469.0"],
"devDependencies": ["[email protected].77", "lucide-svelte@^0.469.0"],
"_imports_": {
"$lib/utils/utils.js": "{{utils/utils}}.js"
}
Expand All @@ -170,7 +216,7 @@
],
"localDependencies": ["utils/utils"],
"dependencies": [],
"devDependencies": ["[email protected].74", "tailwind-variants@^0.3.0"],
"devDependencies": ["[email protected].77", "tailwind-variants@^0.3.0"],
"_imports_": {
"$lib/utils/utils": "{{utils/utils}}",
"$lib/utils/utils.js": "{{utils/utils}}.js"
Expand Down Expand Up @@ -275,7 +321,7 @@
"files": ["index.ts", "popover-content.svelte"],
"localDependencies": ["utils/utils"],
"dependencies": [],
"devDependencies": ["[email protected].74"],
"devDependencies": ["[email protected].77"],
"_imports_": {
"$lib/utils/utils.js": "{{utils/utils}}.js"
}
Expand All @@ -290,7 +336,7 @@
"files": ["index.ts", "scroll-area-scrollbar.svelte", "scroll-area.svelte"],
"localDependencies": ["utils/utils"],
"dependencies": [],
"devDependencies": ["[email protected].74"],
"devDependencies": ["[email protected].77"],
"_imports_": {
"$lib/utils/utils.js": "{{utils/utils}}.js"
}
Expand Down Expand Up @@ -380,6 +426,24 @@
}
]
},
{
"name": "hooks",
"blocks": [
{
"name": "use-auto-scroll.svelte",
"directory": "src/lib/hooks",
"category": "hooks",
"tests": false,
"subdirectory": false,
"list": true,
"files": ["use-auto-scroll.svelte.ts"],
"localDependencies": [],
"_imports_": {},
"dependencies": [],
"devDependencies": []
}
]
},
{
"name": "utils",
"blocks": [
Expand Down
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,25 @@
},
"devDependencies": {
"@eslint/compat": "^1.2.3",
"@fontsource/geist-mono": "^5.1.0",
"@fontsource/inter": "^5.1.0",
"@fontsource/geist-mono": "^5.1.1",
"@sveltejs/adapter-vercel": "^5.5.2",
"@sveltejs/kit": "^2.15.1",
"@sveltejs/kit": "^2.15.2",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"autoprefixer": "^10.4.20",
"bits-ui": "1.0.0-next.74",
"bits-ui": "1.0.0-next.77",
"clsx": "^2.1.1",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.45.1",
"globals": "^15.14.0",
"jsrepo": "^1.23.1",
"jsrepo": "^1.24.0",
"lucide-svelte": "^0.469.0",
"mode-watcher": "^0.5.0",
"prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-tailwindcss": "^0.6.5",
"shiki": "^1.24.4",
"svelte": "^5.16.0",
"shiki": "^1.26.1",
"svelte": "^5.16.5",
"svelte-check": "^4.0.0",
"svelte-sonner": "^0.3.28",
"svelte-tel-input": "^3.5.2",
Expand All @@ -43,8 +42,11 @@
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.5.0",
"typescript-eslint": "^8.18.2",
"typescript-eslint": "^8.19.1",
"vaul-svelte": "1.0.0-next.3",
"vite": "^6.0.6"
"vite": "^6.0.7"
},
"dependencies": {
"@fontsource-variable/inter": "^5.1.1"
}
}
Loading

0 comments on commit 4b77cc5

Please sign in to comment.