@mobileaction/action-kit 1.58.9 → 1.58.10
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/action-kit.mjs +1 -1
- package/dist/{annotations-Baw0yXCC.js → annotations-C9tX3aIM.js} +1 -1
- package/dist/components/chatbot/composables/useMessages.d.ts +1 -0
- package/dist/components/chatbot/index.vue.d.ts +1 -0
- package/dist/components/chatbot/types.d.ts +3 -1
- package/dist/components/select-2/index.vue.d.ts +20 -53
- package/dist/components/select-2/types.d.ts +49 -6
- package/dist/{export-data-CHBWocBK.js → export-data-CSPBGEQv.js} +1 -1
- package/dist/{exporting-BmQ-eEA6.js → exporting-DxZCG94E.js} +1 -1
- package/dist/{funnel-ZZcGZSdl.js → funnel-B5nxcTav.js} +1 -1
- package/dist/{index-fIdl3uI2.js → index-Buk0st-_.js} +9056 -9054
- package/dist/{map-ZimsgPGQ.js → map--TvE6hJT.js} +1 -1
- package/dist/{offline-exporting-CeAVFWWj.js → offline-exporting-Bd2QG1kN.js} +1 -1
- package/dist/{stock-7BRIP4ok.js → stock-BpBZxUQH.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{venn-BDvaFEeb.js → venn-CfpiyG6H.js} +1 -1
- package/dist/{wordcloud-CUIRTJOT.js → wordcloud-Y-LTPDvu.js} +1 -1
- package/package.json +1 -1
package/dist/action-kit.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e, j as o, k as t, z as M, A as i, a as n, b as c, c as r, d as p, f as b, B as l, h as u, i as S, l as T, m as d, n as m, o as I, C, p as y, q as g, r as P, s as A, t as B, D as h, u as z, v, w as D, L as O, x as w, _ as k, y as L, E as R, M as E, F as _, G as f, H as x, I as F, J as N, K as G, N as K, O as V, P as H, Q as U, R as W, S as J, T as j, U as q, V as Z, W as Q, X, Y, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as oa, a3 as ta, a4 as Ma, a5 as ia, a6 as na, a7 as ca, a8 as ra, a9 as pa, aa as ba, ab as la, ac as ua, ad as Sa, ae as Ta, af as da, ag as ma, ah as Ia, ai as Ca, aj as ya, ak as ga, al as Pa, am as Aa, an as Ba, ao as ha, ap as za, aq as va, ar as Da, as as Oa, at as wa, au as ka, av as La, aw as Ra, ax as Ea, ay as _a, az as fa, aA as xa, aB as Fa, aC as Na, aD as Ga, aE as Ka, aF as Va, aG as Ha, aH as Ua, aI as Wa, aJ as Ja, aK as ja, aL as qa, aM as Za, aN as Qa, aO as Xa, aP as Ya, aQ as $a, aR as as, aS as ss, aT as es, aU as os, aV as ts, aW as Ms, aX as is, aY as ns, aZ as cs, a_ as rs, a$ as ps, b0 as bs, b1 as ls, b2 as us, b3 as Ss, b4 as Ts, b5 as ds, b6 as ms, b7 as Is, b8 as Cs, b9 as ys, ba as gs, bb as Ps, bc as As, bd as Bs, be as hs, bf as zs, bg as vs, bh as Ds, bi as Os, bj as ws, bk as ks, bl as Ls, bm as Rs, bn as Es, bo as _s, bp as fs, bq as xs, br as Fs, bs as Ns, bt as Gs, bu as Ks, bv as Vs, bw as Hs, bx as Us, by as Ws, bz as Js, bA as js, bB as qs, bC as Zs, bD as Qs, bE as Xs, bF as Ys, bG as $s, bH as ae, bI as se, bJ as ee, bK as oe, bL as te, bM as Me, bN as ie, bO as ne, bP as ce, bQ as re, bR as pe, bS as be, bT as le, bU as ue, bV as Se, bW as Te, bX as de, bY as me, bZ as Ie, b_ as Ce, b$ as ye, c0 as ge, c1 as Pe, c2 as Ae, c3 as Be, c4 as he, c5 as ze, c6 as ve, c7 as De, c8 as Oe, c9 as we, ca as ke, cb as Le, cc as Re, cd as Ee, ce as _e, cf as fe, cg as xe, ch as Fe, ci as Ne, cj as Ge, ck as Ke, cl as Ve, cm as He, cn as Ue, co as We, cp as Je, cq as je, cr as qe, cs as Ze, ct as Qe, cu as Xe, cv as Ye, cw as $e, cx as ao, cy as so, cz as eo, cA as oo, cB as to, cC as Mo, cD as io, cE as no, cF as co, cG as ro, cH as po, cI as bo, cJ as lo } from "./index-
|
|
1
|
+
import { e, j as o, k as t, z as M, A as i, a as n, b as c, c as r, d as p, f as b, B as l, h as u, i as S, l as T, m as d, n as m, o as I, C, p as y, q as g, r as P, s as A, t as B, D as h, u as z, v, w as D, L as O, x as w, _ as k, y as L, E as R, M as E, F as _, G as f, H as x, I as F, J as N, K as G, N as K, O as V, P as H, Q as U, R as W, S as J, T as j, U as q, V as Z, W as Q, X, Y, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as oa, a3 as ta, a4 as Ma, a5 as ia, a6 as na, a7 as ca, a8 as ra, a9 as pa, aa as ba, ab as la, ac as ua, ad as Sa, ae as Ta, af as da, ag as ma, ah as Ia, ai as Ca, aj as ya, ak as ga, al as Pa, am as Aa, an as Ba, ao as ha, ap as za, aq as va, ar as Da, as as Oa, at as wa, au as ka, av as La, aw as Ra, ax as Ea, ay as _a, az as fa, aA as xa, aB as Fa, aC as Na, aD as Ga, aE as Ka, aF as Va, aG as Ha, aH as Ua, aI as Wa, aJ as Ja, aK as ja, aL as qa, aM as Za, aN as Qa, aO as Xa, aP as Ya, aQ as $a, aR as as, aS as ss, aT as es, aU as os, aV as ts, aW as Ms, aX as is, aY as ns, aZ as cs, a_ as rs, a$ as ps, b0 as bs, b1 as ls, b2 as us, b3 as Ss, b4 as Ts, b5 as ds, b6 as ms, b7 as Is, b8 as Cs, b9 as ys, ba as gs, bb as Ps, bc as As, bd as Bs, be as hs, bf as zs, bg as vs, bh as Ds, bi as Os, bj as ws, bk as ks, bl as Ls, bm as Rs, bn as Es, bo as _s, bp as fs, bq as xs, br as Fs, bs as Ns, bt as Gs, bu as Ks, bv as Vs, bw as Hs, bx as Us, by as Ws, bz as Js, bA as js, bB as qs, bC as Zs, bD as Qs, bE as Xs, bF as Ys, bG as $s, bH as ae, bI as se, bJ as ee, bK as oe, bL as te, bM as Me, bN as ie, bO as ne, bP as ce, bQ as re, bR as pe, bS as be, bT as le, bU as ue, bV as Se, bW as Te, bX as de, bY as me, bZ as Ie, b_ as Ce, b$ as ye, c0 as ge, c1 as Pe, c2 as Ae, c3 as Be, c4 as he, c5 as ze, c6 as ve, c7 as De, c8 as Oe, c9 as we, ca as ke, cb as Le, cc as Re, cd as Ee, ce as _e, cf as fe, cg as xe, ch as Fe, ci as Ne, cj as Ge, ck as Ke, cl as Ve, cm as He, cn as Ue, co as We, cp as Je, cq as je, cr as qe, cs as Ze, ct as Qe, cu as Xe, cv as Ye, cw as $e, cx as ao, cy as so, cz as eo, cA as oo, cB as to, cC as Mo, cD as io, cE as no, cF as co, cG as ro, cH as po, cI as bo, cJ as lo } from "./index-Buk0st-_.js";
|
|
2
2
|
import { SelectOptGroup as So } from "ant-design-vue";
|
|
3
3
|
export {
|
|
4
4
|
e as ACTION_KIT_LOCALE_EN,
|
|
@@ -42,6 +42,7 @@ export declare function useMessages({ maOrgId, mockStreamFn, api, onResponseStar
|
|
|
42
42
|
isErrorMessage: (msg: MaChatbotMessage) => boolean;
|
|
43
43
|
sendMessage: () => Promise<void>;
|
|
44
44
|
stopStream: () => void;
|
|
45
|
+
resetChat: () => void;
|
|
45
46
|
handlePromptSelect: (prompt: MaChatbotSuggestedPrompt) => void;
|
|
46
47
|
};
|
|
47
48
|
export {};
|
|
@@ -19,6 +19,7 @@ declare const __VLS_component: import("vue").DefineComponent<MaChatbotProps, {
|
|
|
19
19
|
messages: import("vue").Ref<MaChatbotMessage[]>;
|
|
20
20
|
sendMessage: () => Promise<void>;
|
|
21
21
|
stopStream: () => void;
|
|
22
|
+
resetChat: () => void;
|
|
22
23
|
isBusy: import("vue").ComputedRef<boolean>;
|
|
23
24
|
error: import("vue").DeepReadonly<import("vue").Ref<string | null>>;
|
|
24
25
|
showFeedbackPanel: import("vue").Ref<boolean>;
|
|
@@ -86,9 +86,10 @@ export interface MaChatbotInstance {
|
|
|
86
86
|
isLoading: DeepReadonly<Ref<boolean>>;
|
|
87
87
|
error: DeepReadonly<Ref<string | null>>;
|
|
88
88
|
guardrailViolation: DeepReadonly<Ref<MaChatbotGuardrailViolation | null>>;
|
|
89
|
-
sessionId: string
|
|
89
|
+
sessionId: Ref<string>;
|
|
90
90
|
sendMessage: (options: SendMessageOptions) => Promise<MaChatbotStreamMetadata>;
|
|
91
91
|
stopStream: () => void;
|
|
92
|
+
resetSession: () => void;
|
|
92
93
|
logSession: (userInput: string, aiResponse: string, model: string, inputTokenUsage: number, outputTokenUsage: number, requestTime: number, inputCreatedAt: Date, outputCreatedAt: Date) => Promise<number | null>;
|
|
93
94
|
submitFeedback: (recordId: number, isPositive: boolean | null, feedbackTopic?: string, feedbackText?: string) => Promise<boolean>;
|
|
94
95
|
}
|
|
@@ -96,6 +97,7 @@ export interface MaChatbotExposed {
|
|
|
96
97
|
messages: Ref<MaChatbotMessage[]>;
|
|
97
98
|
sendMessage: () => Promise<void>;
|
|
98
99
|
stopStream: () => void;
|
|
100
|
+
resetChat: () => void;
|
|
99
101
|
isBusy: ComputedRef<boolean>;
|
|
100
102
|
error: DeepReadonly<Ref<string | null>>;
|
|
101
103
|
showFeedbackPanel: Ref<boolean>;
|
|
@@ -1,58 +1,26 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
'
|
|
7
|
-
/**
|
|
8
|
-
* The input area for the select component.
|
|
9
|
-
*/
|
|
10
|
-
'input': () => unknown;
|
|
11
|
-
/**
|
|
12
|
-
* Suffix icon slot for the select component.
|
|
13
|
-
*/
|
|
14
|
-
'suffix-icon': () => unknown;
|
|
15
|
-
/**
|
|
16
|
-
* The hint area slot for the bottom of the select input.
|
|
17
|
-
*/
|
|
18
|
-
'hint': () => unknown;
|
|
19
|
-
/**
|
|
20
|
-
* Customize dropdown content, virtual scroll does not work with this mode
|
|
21
|
-
*/
|
|
22
|
-
'default': () => unknown;
|
|
23
|
-
/**
|
|
24
|
-
* Slot for each option in the dropdown
|
|
25
|
-
*/
|
|
26
|
-
'option': ({ option }: {
|
|
27
|
-
option: MaSelectOptionType;
|
|
28
|
-
}) => unknown;
|
|
29
|
-
/**
|
|
30
|
-
* Slot for when no options are available
|
|
31
|
-
*/
|
|
32
|
-
'noOptions': () => unknown;
|
|
33
|
-
/**
|
|
34
|
-
* Customize dropdown header area
|
|
35
|
-
*/
|
|
36
|
-
'header': () => unknown;
|
|
37
|
-
/**
|
|
38
|
-
* Customize dropdown footer area
|
|
39
|
-
*/
|
|
40
|
-
'footer': () => unknown;
|
|
1
|
+
import type { MaSelectProps, MaSelectSlots, MaSelectValue } from './types';
|
|
2
|
+
type __VLS_Props = MaSelectProps;
|
|
3
|
+
type __VLS_Slots = MaSelectSlots;
|
|
4
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
5
|
+
/** Controlled open state of dropdown */
|
|
6
|
+
'open'?: boolean;
|
|
41
7
|
};
|
|
42
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
43
9
|
setSearchValue: (value?: string) => string;
|
|
44
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
-
change: (
|
|
46
|
-
"update:value": (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
11
|
+
change: (value: MaSelectValue) => any;
|
|
12
|
+
"update:value": (value: MaSelectValue) => any;
|
|
13
|
+
"update:open": (value: boolean) => any;
|
|
14
|
+
dropdownVisibleChange: (open: boolean) => any;
|
|
15
|
+
searchValueChange: (searchValue: string) => any;
|
|
16
|
+
cleared: () => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
onChange?: (value: MaSelectValue) => any;
|
|
19
|
+
"onUpdate:value"?: (value: MaSelectValue) => any;
|
|
20
|
+
"onUpdate:open"?: (value: boolean) => any;
|
|
21
|
+
onDropdownVisibleChange?: (open: boolean) => any;
|
|
22
|
+
onSearchValueChange?: (searchValue: string) => any;
|
|
23
|
+
onCleared?: () => any;
|
|
56
24
|
}>, {
|
|
57
25
|
value: MaSelectValue;
|
|
58
26
|
size: import("./types").MaSelectSize;
|
|
@@ -64,7 +32,6 @@ declare const __VLS_component: import("vue").DefineComponent<MaSelectProps, {
|
|
|
64
32
|
listHeight: number;
|
|
65
33
|
dropdownProps: import("../popover-2/index.vue").MaPopover2Props;
|
|
66
34
|
dropdownMatchSelectWidth: boolean;
|
|
67
|
-
searchPlaceholder: string;
|
|
68
35
|
checkboxPosition: import("./types").MaSelectOptionCheckboxPosition;
|
|
69
36
|
hideCheckIcon: boolean;
|
|
70
37
|
multiSelectionInput: import("./types").MaSelectMultiSelectionInput;
|
|
@@ -5,13 +5,13 @@ export declare const MaSelectMultiSelectionInputs: readonly ["checkbox", "toggle
|
|
|
5
5
|
export type MaSelectSize = (typeof MaSelectSizes)[number];
|
|
6
6
|
export type MaSelectOptionCheckboxPosition = (typeof MaSelectOptionCheckboxPositions)[number];
|
|
7
7
|
export type MaSelectMultiSelectionInput = (typeof MaSelectMultiSelectionInputs)[number];
|
|
8
|
-
export type MaSelectValue = string | number | string[] | number[] | null;
|
|
8
|
+
export type MaSelectValue = string | number | string[] | number[] | null | undefined;
|
|
9
9
|
export type MaSelectOptionValue = string | number;
|
|
10
10
|
export interface MaSelectOption {
|
|
11
11
|
label?: string;
|
|
12
12
|
value: MaSelectOptionValue;
|
|
13
13
|
disabled?: boolean;
|
|
14
|
-
[key: string]:
|
|
14
|
+
[key: string]: any;
|
|
15
15
|
}
|
|
16
16
|
export interface MaSelectProps {
|
|
17
17
|
/**
|
|
@@ -70,10 +70,6 @@ export interface MaSelectProps {
|
|
|
70
70
|
* @default false
|
|
71
71
|
*/
|
|
72
72
|
loading?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Controlled open state of dropdown
|
|
75
|
-
*/
|
|
76
|
-
open?: boolean;
|
|
77
73
|
/**
|
|
78
74
|
* Config popup max height
|
|
79
75
|
* @default 256
|
|
@@ -141,6 +137,53 @@ export interface MaSelectProps {
|
|
|
141
137
|
*/
|
|
142
138
|
disableKeywordActions?: boolean;
|
|
143
139
|
}
|
|
140
|
+
export interface MaSelectEmits {
|
|
141
|
+
'update:value': [value: MaSelectValue];
|
|
142
|
+
'change': [value: MaSelectValue];
|
|
143
|
+
'dropdownVisibleChange': [open: boolean];
|
|
144
|
+
'searchValueChange': [searchValue: string];
|
|
145
|
+
'cleared': [];
|
|
146
|
+
}
|
|
147
|
+
export interface MaSelectSlots {
|
|
148
|
+
/**
|
|
149
|
+
* Slot for the prefix icon for the select component
|
|
150
|
+
*/
|
|
151
|
+
'prefix-icon': () => unknown;
|
|
152
|
+
/**
|
|
153
|
+
* The input area for the select component.
|
|
154
|
+
*/
|
|
155
|
+
'input': () => unknown;
|
|
156
|
+
/**
|
|
157
|
+
* Suffix icon slot for the select component.
|
|
158
|
+
*/
|
|
159
|
+
'suffix-icon': () => unknown;
|
|
160
|
+
/**
|
|
161
|
+
* The hint area slot for the bottom of the select input.
|
|
162
|
+
*/
|
|
163
|
+
'hint': () => unknown;
|
|
164
|
+
/**
|
|
165
|
+
* Customize dropdown content, virtual scroll does not work with this mode
|
|
166
|
+
*/
|
|
167
|
+
'default': () => unknown;
|
|
168
|
+
/**
|
|
169
|
+
* Slot for each option in the dropdown
|
|
170
|
+
*/
|
|
171
|
+
'option': ({ option }: {
|
|
172
|
+
option: MaSelectOption;
|
|
173
|
+
}) => unknown;
|
|
174
|
+
/**
|
|
175
|
+
* Slot for when no options are available
|
|
176
|
+
*/
|
|
177
|
+
'noOptions': () => unknown;
|
|
178
|
+
/**
|
|
179
|
+
* Customize dropdown header area
|
|
180
|
+
*/
|
|
181
|
+
'header': () => unknown;
|
|
182
|
+
/**
|
|
183
|
+
* Customize dropdown footer area
|
|
184
|
+
*/
|
|
185
|
+
'footer': () => unknown;
|
|
186
|
+
}
|
|
144
187
|
export interface MaSelectOptionProps {
|
|
145
188
|
/**
|
|
146
189
|
* checkbox will appear on the right, left or hidden
|