langgraph-vue3-chatbot 0.1.23 → 0.1.24
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 +4 -1
- package/dist-lib/components/ai-bot/AskAiBot.vue.d.ts +2 -0
- package/dist-lib/components/ai-bot/AskAiBot.vue.d.ts.map +1 -1
- package/dist-lib/components/ai-bot/ChatBot.vue.d.ts +2 -0
- package/dist-lib/components/ai-bot/ChatBot.vue.d.ts.map +1 -1
- package/dist-lib/components/ai-bot/ChatInput.vue.d.ts +4 -1
- package/dist-lib/components/ai-bot/ChatInput.vue.d.ts.map +1 -1
- package/dist-lib/components/ai-bot/chatbot.css +1 -1
- package/dist-lib/index.js +357 -351
- package/dist-lib/index.js.map +1 -1
- package/package.json +2 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 izerui
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/langgraph-vue3-chatbot)
|
|
4
4
|
[](https://www.npmjs.com/package/langgraph-vue3-chatbot)
|
|
5
5
|
[](https://www.npmjs.com/package/langgraph-vue3-chatbot)
|
|
6
|
-
[](./LICENSE)
|
|
7
7
|
[](https://github.com/izerui/langgraph-vue3-chatbot)
|
|
8
8
|
[](https://github.com/izerui/langgraph-vue3-chatbot/commits/main)
|
|
9
9
|
[](https://github.com/izerui/langgraph-vue3-chatbot/pulls)
|
|
@@ -86,6 +86,7 @@ import { AskAiBot } from 'langgraph-vue3-chatbot'
|
|
|
86
86
|
theme="light"
|
|
87
87
|
:width="400"
|
|
88
88
|
height="calc(100vh - 120px)"
|
|
89
|
+
:allow-model-switch="false"
|
|
89
90
|
/>
|
|
90
91
|
</template>
|
|
91
92
|
```
|
|
@@ -107,6 +108,7 @@ import { ChatBot } from 'langgraph-vue3-chatbot'
|
|
|
107
108
|
api-url="http://localhost:2024"
|
|
108
109
|
theme="dark"
|
|
109
110
|
:show-header-actions="false"
|
|
111
|
+
:allow-model-switch="false"
|
|
110
112
|
/>
|
|
111
113
|
</div>
|
|
112
114
|
</template>
|
|
@@ -168,6 +170,7 @@ const suggestions = [
|
|
|
168
170
|
| `theme` | 设置组件主题,可选 `light` / `dark` | `'light'` |
|
|
169
171
|
| `width` | 设置悬浮聊天窗打开后的宽度,支持 `number` 或 CSS 尺寸字符串 | `400` |
|
|
170
172
|
| `height` | 设置悬浮聊天窗打开后的高度,支持 `number` 或 CSS 尺寸字符串 | `'calc(100vh - 90px)'` |
|
|
173
|
+
| `allowModelSwitch` | 控制是否显示输入区右下角的模型选择器 | `true` |
|
|
171
174
|
|
|
172
175
|
### ChatBot
|
|
173
176
|
|
|
@@ -14,6 +14,7 @@ interface Props {
|
|
|
14
14
|
width?: number | string;
|
|
15
15
|
height?: number | string;
|
|
16
16
|
theme?: AiBotTheme;
|
|
17
|
+
allowModelSwitch?: boolean;
|
|
17
18
|
}
|
|
18
19
|
type __VLS_Slots = {
|
|
19
20
|
empty?: (props: {
|
|
@@ -34,6 +35,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
34
35
|
width: number | string;
|
|
35
36
|
theme: AiBotTheme;
|
|
36
37
|
suggestions: string[];
|
|
38
|
+
allowModelSwitch: boolean;
|
|
37
39
|
apiUrl: string;
|
|
38
40
|
assistantId: string;
|
|
39
41
|
assistantName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AskAiBot.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ai-bot/AskAiBot.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AskAiBot.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ai-bot/AskAiBot.vue"],"names":[],"mappings":"AA8NA,OAAO,KAAK,EAAqC,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AACtG,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAM7C,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAA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props: {
|
|
@@ -37,6 +38,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
37
38
|
showHeaderActions: boolean;
|
|
38
39
|
theme: AiBotTheme;
|
|
39
40
|
suggestions: string[];
|
|
41
|
+
allowModelSwitch: boolean;
|
|
40
42
|
apiUrl: string;
|
|
41
43
|
assistantId: string;
|
|
42
44
|
assistantName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatBot.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ai-bot/ChatBot.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatBot.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ai-bot/ChatBot.vue"],"names":[],"mappings":"AAs6BA,OAAO,KAAK,EAAiC,0BAA0B,EAAsB,MAAM,mBAAmB,CAAA;AACtH,OAAO,KAAK,EAA2B,QAAQ,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAgB7C,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAgBD,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAA;KAAE,KAAK,GAAG,CAAA;IACtF,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,aAAa,EAAE,aAAa,CAAC;QAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,KAAK,GAAG,CAAA;IAClF,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,GAAG,CAAA;CAClE,CAAC;AAw+BF,QAAA,MAAM,eAAe;;;yBA3hCrB,CAz4BY;;;;;;;;uBAk6BU,OAAO;WAInB,UAAU;iBAHJ,MAAM,EAAE;sBAIH,OAAO;YAHjB,MAAM;iBAPD,MAAM;mBACJ,MAAM;kBACP,MAAM;YAEZ,MAAM;YAIN,MAAM;4EAwgCf,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -7,6 +7,7 @@ interface Props {
|
|
|
7
7
|
models: ModelInfo[];
|
|
8
8
|
suggestions: string[];
|
|
9
9
|
useWebSearch: boolean;
|
|
10
|
+
allowModelSwitch?: boolean;
|
|
10
11
|
}
|
|
11
12
|
type __VLS_Props = Props;
|
|
12
13
|
type __VLS_Slots = {
|
|
@@ -39,7 +40,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
39
40
|
"onUpdate:currentModel"?: (model: ModelInfo) => any;
|
|
40
41
|
"onUpdate:useWebSearch"?: (value: boolean) => any;
|
|
41
42
|
"onUpdate:modelSelectorOpen"?: (value: boolean) => any;
|
|
42
|
-
}>, {
|
|
43
|
+
}>, {
|
|
44
|
+
allowModelSwitch: boolean;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
46
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
44
47
|
export default _default;
|
|
45
48
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ai-bot/ChatInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ai-bot/ChatInput.vue"],"names":[],"mappings":"AAkkBA,OAAO,KAAK,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAGnE,OAAO,KAAK,EAAiB,cAAc,EAAE,0BAA0B,EAAE,qBAAqB,EAAsB,MAAM,mBAAmB,CAAA;AAC7I,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAQrE,UAAU,KAAK;IACb,MAAM,EAAE,UAAU,CAAA;IAClB,YAAY,EAAE,SAAS,GAAG,IAAI,CAAA;IAC9B,MAAM,EAAE,SAAS,EAAE,CAAA;IACnB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,KAAK,WAAW,GAAG,KAAK,CAAC;AAgBzB,KAAK,WAAW,GAAG;IACjB,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,GAAG,CAAA;CAClE,CAAC;AA0VF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAydF,QAAA,MAAM,eAAe;;;yBA71BrB,CA1iBwB;;;;cAskBI,MAAM;eAAS,cAAc,EAAE;;;;;;;;;cAA/B,MAAM;eAAS,cAAc,EAAE;;;;;;;sBATtC,OAAO;6EAm1B1B,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|