@blueking/ai-blueking 0.3.24 → 0.3.25
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/components/render-popup.vue.d.ts +2 -0
- package/dist/util/index.d.ts +7 -0
- package/dist/vue2/index.es.min.js +4738 -4698
- package/dist/vue2/index.iife.min.js +59 -59
- package/dist/vue2/index.umd.min.js +32 -32
- package/dist/vue2/style.css +1 -1
- package/dist/vue3/index.es.min.js +576 -536
- package/dist/vue3/index.iife.min.js +50 -50
- package/dist/vue3/index.umd.min.js +7 -7
- package/dist/vue3/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
2
|
click: (...args: any[]) => void;
|
|
3
|
+
shortcutClick: (...args: any[]) => void;
|
|
3
4
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
4
5
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
onShortcutClick?: ((...args: any[]) => any) | undefined;
|
|
5
7
|
}, {}, {}>;
|
|
6
8
|
export default _default;
|
package/dist/util/index.d.ts
CHANGED
|
@@ -23,3 +23,10 @@ export declare const throttle: <T>(fn: (t: T) => void, delay?: number) => (t: T)
|
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
25
|
export declare const debounce: <T, R>(fn: (P?: T) => R, delay?: number) => (params?: T) => void;
|
|
26
|
+
/**
|
|
27
|
+
* 处理提示词模板,替换模板中的变量
|
|
28
|
+
* @param prompt 提示词模板
|
|
29
|
+
* @param selectedText 选中的文本
|
|
30
|
+
* @returns 处理后的提示词
|
|
31
|
+
*/
|
|
32
|
+
export declare const processPromptTemplate: (prompt: string, selectedText: string) => string;
|