@somecat/ai-assist-sdk 1.0.1 → 1.1.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/dist/ai-assist-sdk.css +1 -1
- package/dist/chunks/index-Co5SARS3.mjs +152 -0
- package/dist/chunks/{index-CGfAEdrA.mjs → index-DctVgLU4.mjs} +4389 -4367
- package/dist/core/utils/index.d.ts +1 -0
- package/dist/core/utils/toast.d.ts +9 -0
- package/dist/index.mjs +1 -1
- package/dist/react/index.mjs +10792 -9655
- package/dist/vue/components/answer/composables/useChatActions.d.ts +65 -0
- package/dist/vue/components/answer/composables/useCodeBlocks.d.ts +6 -0
- package/dist/vue/components/answer/composables/useMessagesBatch.d.ts +12 -0
- package/dist/vue/components/answer/composables/useSSEStream.d.ts +27 -0
- package/dist/vue/components/answer/composables/useScrollManager.d.ts +12 -0
- package/dist/vue/components/answer/composables/useTypewriter.d.ts +21 -0
- package/dist/vue/index.mjs +2057 -824
- package/package.json +6 -3
- package/dist/chunks/index-Dlj6re41.mjs +0 -142
|
@@ -11,3 +11,4 @@ export declare const textError: (text: string) => string;
|
|
|
11
11
|
export declare const processSSEData: (sseData: string) => string;
|
|
12
12
|
export declare const parseSSEData: (sseData: string) => string;
|
|
13
13
|
export { renderMarkdown, preprocessStreamingMarkdown } from './markdown';
|
|
14
|
+
export { showToast, type ToastType } from './toast';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 框架无关的轻量 Toast 提示。
|
|
3
|
+
*
|
|
4
|
+
* 容器挂载在 #ai-assist-root 下(与 SDK 主作用域一致,避免污染宿主页面),
|
|
5
|
+
* 定位为顶部居中 fixed,自动消失。React / Vue 两端共用。
|
|
6
|
+
*/
|
|
7
|
+
export type ToastType = 'error' | 'info' | 'success';
|
|
8
|
+
/** 显示一条 toast 提示 */
|
|
9
|
+
export declare function showToast(message: string, type?: ToastType): void;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as e, a as t, c as o, i as r, m as n, f as g, n as i, e as u, h as f, g as p, o as C, j as x, q as c, t as d, d as l, b as v, r as S, v as h, k as M, w as m, s as A, x as E, u as Q } from "./chunks/index-DctVgLU4.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as chatQuery,
|
|
4
4
|
t as createAuthAxios,
|