@doderasoftware/restify-ai 0.1.0-beta.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.
- package/LICENSE +21 -0
- package/README.md +514 -0
- package/dist/components/AiAvatar.vue.d.ts +27 -0
- package/dist/components/AiAvatar.vue.d.ts.map +1 -0
- package/dist/components/AiChatDrawer.vue.d.ts +148 -0
- package/dist/components/AiChatDrawer.vue.d.ts.map +1 -0
- package/dist/components/AiEmptyState.vue.d.ts +36 -0
- package/dist/components/AiEmptyState.vue.d.ts.map +1 -0
- package/dist/components/ChatInput.vue.d.ts +110 -0
- package/dist/components/ChatInput.vue.d.ts.map +1 -0
- package/dist/components/ChatMessage.vue.d.ts +44 -0
- package/dist/components/ChatMessage.vue.d.ts.map +1 -0
- package/dist/components/ChatMessageActions.vue.d.ts +33 -0
- package/dist/components/ChatMessageActions.vue.d.ts.map +1 -0
- package/dist/components/MentionList.vue.d.ts +58 -0
- package/dist/components/MentionList.vue.d.ts.map +1 -0
- package/dist/components/UserAvatar.vue.d.ts +27 -0
- package/dist/components/UserAvatar.vue.d.ts.map +1 -0
- package/dist/components/drawer/ConfirmDialog.vue.d.ts +47 -0
- package/dist/components/drawer/ConfirmDialog.vue.d.ts.map +1 -0
- package/dist/components/drawer/DrawerHeader.vue.d.ts +46 -0
- package/dist/components/drawer/DrawerHeader.vue.d.ts.map +1 -0
- package/dist/components/drawer/DrawerMessageList.vue.d.ts +44 -0
- package/dist/components/drawer/DrawerMessageList.vue.d.ts.map +1 -0
- package/dist/components/drawer/SetupGuide.vue.d.ts +19 -0
- package/dist/components/drawer/SetupGuide.vue.d.ts.map +1 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/input/AttachmentsPreview.vue.d.ts +30 -0
- package/dist/components/input/AttachmentsPreview.vue.d.ts.map +1 -0
- package/dist/components/input/InputActions.vue.d.ts +28 -0
- package/dist/components/input/InputActions.vue.d.ts.map +1 -0
- package/dist/components/input/SuggestionsDropdown.vue.d.ts +32 -0
- package/dist/components/input/SuggestionsDropdown.vue.d.ts.map +1 -0
- package/dist/composables/index.d.ts +12 -0
- package/dist/composables/index.d.ts.map +1 -0
- package/dist/composables/useAiContext.d.ts +18 -0
- package/dist/composables/useAiContext.d.ts.map +1 -0
- package/dist/composables/useAiSuggestions.d.ts +11 -0
- package/dist/composables/useAiSuggestions.d.ts.map +1 -0
- package/dist/composables/useChatErrorHandling.d.ts +14 -0
- package/dist/composables/useChatErrorHandling.d.ts.map +1 -0
- package/dist/composables/useChatInput.d.ts +108 -0
- package/dist/composables/useChatInput.d.ts.map +1 -0
- package/dist/composables/useChatMarkdown.d.ts +10 -0
- package/dist/composables/useChatMarkdown.d.ts.map +1 -0
- package/dist/composables/useChatScroll.d.ts +10 -0
- package/dist/composables/useChatScroll.d.ts.map +1 -0
- package/dist/composables/useHistoryLimit.d.ts +37 -0
- package/dist/composables/useHistoryLimit.d.ts.map +1 -0
- package/dist/composables/useKeyboardShortcut.d.ts +14 -0
- package/dist/composables/useKeyboardShortcut.d.ts.map +1 -0
- package/dist/composables/useLoadingText.d.ts +12 -0
- package/dist/composables/useLoadingText.d.ts.map +1 -0
- package/dist/composables/useMentionParsing.d.ts +67 -0
- package/dist/composables/useMentionParsing.d.ts.map +1 -0
- package/dist/composables/usePageAiContext.d.ts +24 -0
- package/dist/composables/usePageAiContext.d.ts.map +1 -0
- package/dist/composables/useSuggestions.d.ts +2 -0
- package/dist/composables/useSuggestions.d.ts.map +1 -0
- package/dist/config.d.ts +13 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/restify-ai.js +5425 -0
- package/dist/restify-ai.umd.cjs +76 -0
- package/dist/store.d.ts +247 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/dist/suggestions/index.d.ts +24 -0
- package/dist/suggestions/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +601 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +119 -0
- package/tailwind.config.cjs +54 -0
package/package.json
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@doderasoftware/restify-ai",
|
|
3
|
+
"version": "0.1.0-beta.1",
|
|
4
|
+
"description": "Professional AI Chatbot Vue 3 component for Laravel Restify backends. Fully customizable with SSE streaming, file attachments, mentions, and context-aware suggestions.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/restify-ai.umd.cjs",
|
|
7
|
+
"module": "./dist/restify-ai.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/restify-ai.js",
|
|
12
|
+
"require": "./dist/restify-ai.umd.cjs",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./styles": "./dist/style.css",
|
|
16
|
+
"./tailwind": "./tailwind.config.cjs"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"tailwind.config.cjs",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": [
|
|
25
|
+
"*.css"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"dev": "vite --config vite.config.ts",
|
|
29
|
+
"dev:playground": "vite --config playground/vite.config.ts",
|
|
30
|
+
"build": "vue-tsc --noEmit && vite build",
|
|
31
|
+
"build:only": "vite build",
|
|
32
|
+
"build:watch": "vite build --watch",
|
|
33
|
+
"preview": "vite preview",
|
|
34
|
+
"test": "vitest",
|
|
35
|
+
"test:coverage": "vitest run --coverage",
|
|
36
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx --fix",
|
|
37
|
+
"type-check": "vue-tsc --noEmit",
|
|
38
|
+
"prepublishOnly": "npm run build",
|
|
39
|
+
"version:patch": "npm version patch",
|
|
40
|
+
"version:minor": "npm version minor",
|
|
41
|
+
"version:major": "npm version major",
|
|
42
|
+
"version:beta": "npm version prerelease --preid=beta",
|
|
43
|
+
"publish:beta": "npm publish --tag beta --access public",
|
|
44
|
+
"publish:latest": "npm publish --access public"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"pinia": ">=2.1.0",
|
|
48
|
+
"tailwindcss": "^3.3.0",
|
|
49
|
+
"vue": "^3.3.0"
|
|
50
|
+
},
|
|
51
|
+
"peerDependenciesMeta": {
|
|
52
|
+
"tailwindcss": {
|
|
53
|
+
"optional": false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@microsoft/fetch-event-source": "^2.0.1",
|
|
58
|
+
"dompurify": "^3.3.0",
|
|
59
|
+
"marked": "^14.1.4"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@tailwindcss/forms": "^0.5.6",
|
|
63
|
+
"@tailwindcss/typography": "^0.5.10",
|
|
64
|
+
"@types/dompurify": "^3.0.5",
|
|
65
|
+
"@types/node": "^20.10.0",
|
|
66
|
+
"@vitejs/plugin-vue": "^4.6.2",
|
|
67
|
+
"@vue/tsconfig": "^0.5.1",
|
|
68
|
+
"autoprefixer": "^10.4.16",
|
|
69
|
+
"pinia": "^2.1.7",
|
|
70
|
+
"postcss": "^8.4.31",
|
|
71
|
+
"tailwindcss": "^3.3.5",
|
|
72
|
+
"typescript": "~5.6.0",
|
|
73
|
+
"vite": "^5.4.11",
|
|
74
|
+
"vite-plugin-dts": "^3.6.4",
|
|
75
|
+
"vitest": "^1.6.1",
|
|
76
|
+
"vue": "^3.5.13",
|
|
77
|
+
"vue-tsc": "^2.2.12"
|
|
78
|
+
},
|
|
79
|
+
"keywords": [
|
|
80
|
+
"vue",
|
|
81
|
+
"vue3",
|
|
82
|
+
"ai",
|
|
83
|
+
"chatbot",
|
|
84
|
+
"chat",
|
|
85
|
+
"assistant",
|
|
86
|
+
"laravel",
|
|
87
|
+
"restify",
|
|
88
|
+
"laravel-restify",
|
|
89
|
+
"sse",
|
|
90
|
+
"streaming",
|
|
91
|
+
"component",
|
|
92
|
+
"openai",
|
|
93
|
+
"anthropic",
|
|
94
|
+
"claude",
|
|
95
|
+
"tailwindcss",
|
|
96
|
+
"typescript"
|
|
97
|
+
],
|
|
98
|
+
"author": {
|
|
99
|
+
"name": "Dodera Software",
|
|
100
|
+
"email": "contact@doderasoftware.com",
|
|
101
|
+
"url": "https://doderasoftware.com"
|
|
102
|
+
},
|
|
103
|
+
"license": "MIT",
|
|
104
|
+
"repository": {
|
|
105
|
+
"type": "git",
|
|
106
|
+
"url": "git+https://github.com/doderasoftware/restify-ai.git"
|
|
107
|
+
},
|
|
108
|
+
"bugs": {
|
|
109
|
+
"url": "https://github.com/doderasoftware/restify-ai/issues"
|
|
110
|
+
},
|
|
111
|
+
"homepage": "https://github.com/doderasoftware/restify-ai#readme",
|
|
112
|
+
"publishConfig": {
|
|
113
|
+
"access": "public",
|
|
114
|
+
"registry": "https://registry.npmjs.org/"
|
|
115
|
+
},
|
|
116
|
+
"engines": {
|
|
117
|
+
"node": ">=18.0.0"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Restify AI Tailwind CSS Configuration
|
|
3
|
+
*
|
|
4
|
+
* This package uses Tailwind CSS and expects your project to have:
|
|
5
|
+
* 1. A `primary` color defined in your Tailwind theme
|
|
6
|
+
* 2. Dark mode support via the `dark` class
|
|
7
|
+
*
|
|
8
|
+
* Example in your tailwind.config.js:
|
|
9
|
+
*
|
|
10
|
+
* module.exports = {
|
|
11
|
+
* darkMode: 'class',
|
|
12
|
+
* theme: {
|
|
13
|
+
* extend: {
|
|
14
|
+
* colors: {
|
|
15
|
+
* primary: {
|
|
16
|
+
* DEFAULT: '#3b82f6', // or your brand color
|
|
17
|
+
* 50: '#eff6ff',
|
|
18
|
+
* 100: '#dbeafe',
|
|
19
|
+
* // ... etc
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* },
|
|
24
|
+
* // Add this package's components to content
|
|
25
|
+
* content: [
|
|
26
|
+
* './src/**\/*.{vue,js,ts}',
|
|
27
|
+
* './node_modules/@doderasoftware/restify-ai/**\/*.{vue,js,ts}'
|
|
28
|
+
* ]
|
|
29
|
+
* }
|
|
30
|
+
*
|
|
31
|
+
* If you use DaisyUI, the primary color is already defined.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
// This is a preset that consumers can optionally extend
|
|
35
|
+
module.exports = {
|
|
36
|
+
theme: {
|
|
37
|
+
extend: {
|
|
38
|
+
// Default fallback colors if user doesn't define primary
|
|
39
|
+
colors: {
|
|
40
|
+
// These are fallbacks - user's theme will override
|
|
41
|
+
},
|
|
42
|
+
animation: {
|
|
43
|
+
'fade-in-up': 'fade-in-up 0.3s ease-out',
|
|
44
|
+
},
|
|
45
|
+
keyframes: {
|
|
46
|
+
'fade-in-up': {
|
|
47
|
+
'0%': { opacity: '0', transform: 'translateY(10px)' },
|
|
48
|
+
'100%': { opacity: '1', transform: 'translateY(0)' },
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
plugins: [],
|
|
54
|
+
}
|