@mobileaction/action-kit 1.58.2 → 1.58.4

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.
@@ -1,4 +1,4 @@
1
- import { e, j as o, k as t, z as M, A as i, a as n, b as r, c, d as p, f as l, B as b, h as S, i as u, l as T, m as d, n as m, o as C, C as y, p as I, 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 k, _ as w, M as L, y as R, E, F as _, G as f, H as x, I as N, J as F, K as G, N as K, O as V, P as U, Q as H, R as W, S as j, T as q, U as J, 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 ra, a8 as ca, a9 as pa, aa as la, ab as ba, ac as Sa, ad as ua, ae as Ta, af as da, ag as ma, ah as Ca, ai as ya, aj as Ia, 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 ka, au as wa, av as La, aw as Ra, ax as Ea, ay as _a, az as fa, aA as xa, aB as Na, aC as Fa, aD as Ga, aE as Ka, aF as Va, aG as Ua, aH as Ha, aI as Wa, aJ as ja, aK as qa, aL as Ja, 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 rs, a_ as cs, a$ as ps, b0 as ls, b1 as bs, b2 as Ss, b3 as us, b4 as Ts, b5 as ds, b6 as ms, b7 as Cs, b8 as ys, b9 as Is, 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 ks, bk as ws, bl as Ls, bm as Rs, bn as Es, bo as _s, bp as fs, bq as xs, br as Ns, bs as Fs, bt as Gs, bu as Ks, bv as Vs, bw as Us, bx as Hs, by as Ws, bz as js, bA as qs, bB as Js, 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 re, bQ as ce, bR as pe, bS as le, bT as be, bU as Se, bV as ue, bW as Te, bX as de, bY as me, bZ as Ce, b_ as ye, b$ as Ie, 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 ke, ca as we, cb as Le, cc as Re, cd as Ee, ce as _e, cf as fe, cg as xe, ch as Ne, ci as Fe, cj as Ge, ck as Ke, cl as Ve, cm as Ue, cn as He, co as We, cp as je, cq as qe, cr as Je, 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 } from "./index-CIjmgogB.js";
1
+ import { e, j as o, k as t, z as M, A as i, a as n, b as r, c, d as p, f as l, B as b, h as S, i as u, l as T, m as d, n as m, o as C, C as y, p as I, 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 k, _ as w, M as L, y as R, E, F as _, G as f, H as x, I as N, J as F, K as G, N as K, O as V, P as U, Q as H, R as W, S as j, T as q, U as J, 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 ra, a8 as ca, a9 as pa, aa as la, ab as ba, ac as Sa, ad as ua, ae as Ta, af as da, ag as ma, ah as Ca, ai as ya, aj as Ia, 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 ka, au as wa, av as La, aw as Ra, ax as Ea, ay as _a, az as fa, aA as xa, aB as Na, aC as Fa, aD as Ga, aE as Ka, aF as Va, aG as Ua, aH as Ha, aI as Wa, aJ as ja, aK as qa, aL as Ja, 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 rs, a_ as cs, a$ as ps, b0 as ls, b1 as bs, b2 as Ss, b3 as us, b4 as Ts, b5 as ds, b6 as ms, b7 as Cs, b8 as ys, b9 as Is, 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 ks, bk as ws, bl as Ls, bm as Rs, bn as Es, bo as _s, bp as fs, bq as xs, br as Ns, bs as Fs, bt as Gs, bu as Ks, bv as Vs, bw as Us, bx as Hs, by as Ws, bz as js, bA as qs, bB as Js, 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 re, bQ as ce, bR as pe, bS as le, bT as be, bU as Se, bV as ue, bW as Te, bX as de, bY as me, bZ as Ce, b_ as ye, b$ as Ie, 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 ke, ca as we, cb as Le, cc as Re, cd as Ee, ce as _e, cf as fe, cg as xe, ch as Ne, ci as Fe, cj as Ge, ck as Ke, cl as Ve, cm as Ue, cn as He, co as We, cp as je, cq as qe, cr as Je, 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 } from "./index-Bc6nn02Q.js";
2
2
  import { SelectOptGroup as ro } from "ant-design-vue";
3
3
  export {
4
4
  e as ACTION_KIT_LOCALE_EN,
@@ -1,4 +1,4 @@
1
- import { g as ss } from "./index-CIjmgogB.js";
1
+ import { g as ss } from "./index-Bc6nn02Q.js";
2
2
  function os(W, _) {
3
3
  for (var C = 0; C < _.length; C++) {
4
4
  const B = _[C];
@@ -16,32 +16,12 @@ type __VLS_Slots = {} & {
16
16
  'input-prepend'?: (props: typeof __VLS_26) => any;
17
17
  };
18
18
  declare const __VLS_component: import("vue").DefineComponent<MaChatbotProps, {
19
- messages: import("vue").Ref<{
20
- id: string;
21
- role: import("./types").MaChatbotMessageRole;
22
- content: string;
23
- timestamp?: Date;
24
- status?: import("./types").MaChatbotMessageStatus;
25
- recordId?: number;
26
- feedback?: boolean;
27
- feedbackTopic?: import("./types").MaChatbotFeedbackTopic;
28
- feedbackText?: string;
29
- }[], MaChatbotMessage[] | {
30
- id: string;
31
- role: import("./types").MaChatbotMessageRole;
32
- content: string;
33
- timestamp?: Date;
34
- status?: import("./types").MaChatbotMessageStatus;
35
- recordId?: number;
36
- feedback?: boolean;
37
- feedbackTopic?: import("./types").MaChatbotFeedbackTopic;
38
- feedbackText?: string;
39
- }[]>;
19
+ messages: import("vue").Ref<MaChatbotMessage[]>;
40
20
  sendMessage: () => Promise<void>;
41
21
  stopStream: () => void;
42
22
  isBusy: import("vue").ComputedRef<boolean>;
43
- error: Readonly<import("vue").Ref<string, string>>;
44
- showFeedbackPanel: import("vue").Ref<boolean, boolean>;
23
+ error: import("vue").DeepReadonly<import("vue").Ref<string | null>>;
24
+ showFeedbackPanel: import("vue").Ref<boolean>;
45
25
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
26
  messageSent: (payload: MaChatbotMessageSentPayload) => any;
47
27
  messageStopped: () => any;
@@ -1,4 +1,4 @@
1
- import type { DeepReadonly, Ref } from 'vue';
1
+ import type { ComputedRef, DeepReadonly, Ref } from 'vue';
2
2
  export interface MaChatbotPluginOptions {
3
3
  agentApiUrl: string;
4
4
  gatewayUrl: string;
@@ -89,6 +89,14 @@ export interface MaChatbotInstance {
89
89
  sessionId: string;
90
90
  sendMessage: (options: SendMessageOptions) => Promise<MaChatbotStreamMetadata>;
91
91
  stopStream: () => void;
92
- logSession: (userInput: string, aiResponse: string, model?: string, inputTokenUsage?: number, outputTokenUsage?: number, requestTime?: number, inputCreatedAt?: Date, outputCreatedAt?: Date) => Promise<number | null>;
92
+ logSession: (userInput: string, aiResponse: string, model: string, inputTokenUsage: number, outputTokenUsage: number, requestTime: number, inputCreatedAt: Date, outputCreatedAt: Date) => Promise<number | null>;
93
93
  submitFeedback: (recordId: number, isPositive: boolean, feedbackTopic?: string, feedbackText?: string) => Promise<boolean>;
94
94
  }
95
+ export interface MaChatbotExposed {
96
+ messages: Ref<MaChatbotMessage[]>;
97
+ sendMessage: () => Promise<void>;
98
+ stopStream: () => void;
99
+ isBusy: ComputedRef<boolean>;
100
+ error: DeepReadonly<Ref<string | null>>;
101
+ showFeedbackPanel: Ref<boolean>;
102
+ }
@@ -1,4 +1,4 @@
1
- import { g as We } from "./index-CIjmgogB.js";
1
+ import { g as We } from "./index-Bc6nn02Q.js";
2
2
  function Ge(G, ie) {
3
3
  for (var F = 0; F < ie.length; F++) {
4
4
  const H = ie[F];
@@ -1,4 +1,4 @@
1
- import { g as $t } from "./index-CIjmgogB.js";
1
+ import { g as $t } from "./index-Bc6nn02Q.js";
2
2
  function Gt(j, z) {
3
3
  for (var k = 0; k < z.length; k++) {
4
4
  const F = z[k];
@@ -1,4 +1,4 @@
1
- import { g as je } from "./index-CIjmgogB.js";
1
+ import { g as je } from "./index-Bc6nn02Q.js";
2
2
  function He($, J) {
3
3
  for (var W = 0; W < J.length; W++) {
4
4
  const m = J[W];
@@ -8170,15 +8170,15 @@ function RI() {
8170
8170
  }
8171
8171
  var BI = RI();
8172
8172
  const Da = /* @__PURE__ */ us(BI), OI = {
8173
- stock: () => import("./stock-9ZxkjsbG.js").then((u) => u.s),
8174
- map: () => import("./map-BxZC-qcz.js").then((u) => u.m),
8175
- wordcloud: () => import("./wordcloud-BYVJtM4X.js").then((u) => u.w),
8176
- venn: () => import("./venn-Ct4BxUj9.js").then((u) => u.v),
8177
- funnel: () => import("./funnel-CTh_kvS1.js").then((u) => u.f),
8178
- annotations: () => import("./annotations-B533PjRn.js").then((u) => u.a),
8179
- exporting: () => import("./exporting-D-uN2aIK.js").then((u) => u.e),
8180
- "offline-exporting": () => import("./offline-exporting-CdKGN4lK.js").then((u) => u.o),
8181
- "export-data": () => import("./export-data-cz6LF9kw.js").then((u) => u.e)
8173
+ stock: () => import("./stock-DxxyNWFx.js").then((u) => u.s),
8174
+ map: () => import("./map-SRGX8G2O.js").then((u) => u.m),
8175
+ wordcloud: () => import("./wordcloud-B0XooU-H.js").then((u) => u.w),
8176
+ venn: () => import("./venn-DvYfwsEW.js").then((u) => u.v),
8177
+ funnel: () => import("./funnel-B-ZhwCbY.js").then((u) => u.f),
8178
+ annotations: () => import("./annotations-EqmUpRAW.js").then((u) => u.a),
8179
+ exporting: () => import("./exporting-d3n5veJw.js").then((u) => u.e),
8180
+ "offline-exporting": () => import("./offline-exporting-0M5QNyMI.js").then((u) => u.o),
8181
+ "export-data": () => import("./export-data-TJVsdYvg.js").then((u) => u.e)
8182
8182
  // Add other modules as needed
8183
8183
  }, Tv = Object.freeze({
8184
8184
  credits: { enabled: !1 },
@@ -22619,7 +22619,7 @@ function dR(u) {
22619
22619
  }
22620
22620
  return we;
22621
22621
  }
22622
- async function U(E, x, j = "unknown", K = 0, me = 0, ae = 0, be, we) {
22622
+ async function U(E, x, j, K, me, ae, be, we) {
22623
22623
  if (!u.gatewayUrl)
22624
22624
  return null;
22625
22625
  try {
@@ -22638,8 +22638,8 @@ function dR(u) {
22638
22638
  inputTokenUsage: K,
22639
22639
  outputTokenUsage: me,
22640
22640
  requestTime: ae,
22641
- ...be && { inputCreatedAt: be.toISOString() },
22642
- ...we && { outputCreatedAt: we.toISOString() }
22641
+ inputCreatedAt: be.toISOString().slice(0, 19),
22642
+ outputCreatedAt: we.toISOString().slice(0, 19)
22643
22643
  })
22644
22644
  });
22645
22645
  return pe.ok ? (await pe.json()).data?.id ?? null : (console.error("[MaChatbot] Failed to log session:", pe.status), null);
@@ -1,4 +1,4 @@
1
- import { g as ar } from "./index-CIjmgogB.js";
1
+ import { g as ar } from "./index-Bc6nn02Q.js";
2
2
  function nr(ne, $e) {
3
3
  for (var S = 0; S < $e.length; S++) {
4
4
  const Y = $e[S];
@@ -1,4 +1,4 @@
1
- import { g as ae } from "./index-CIjmgogB.js";
1
+ import { g as ae } from "./index-Bc6nn02Q.js";
2
2
  function ie(S, N) {
3
3
  for (var w = 0; w < N.length; w++) {
4
4
  const x = N[w];
@@ -1,4 +1,4 @@
1
- import { g as va } from "./index-CIjmgogB.js";
1
+ import { g as va } from "./index-Bc6nn02Q.js";
2
2
  function ya(Ct, ee) {
3
3
  for (var X = 0; X < ee.length; X++) {
4
4
  const tt = ee[X];
@@ -1,4 +1,4 @@
1
- import { g as Wt } from "./index-CIjmgogB.js";
1
+ import { g as Wt } from "./index-Bc6nn02Q.js";
2
2
  function Ht(L, q) {
3
3
  for (var M = 0; M < q.length; M++) {
4
4
  const P = q[M];
@@ -1,4 +1,4 @@
1
- import { g as Ct } from "./index-CIjmgogB.js";
1
+ import { g as Ct } from "./index-Bc6nn02Q.js";
2
2
  function _t(W, R) {
3
3
  for (var X = 0; X < R.length; X++) {
4
4
  const F = R[X];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mobileaction/action-kit",
3
3
  "type": "module",
4
- "version": "1.58.2",
4
+ "version": "1.58.4",
5
5
  "description": "UI Component library for Mobile Action.",
6
6
  "author": "MobileAction",
7
7
  "license": "MIT",