@mobileaction/action-kit 1.58.2 → 1.58.3

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.
@@ -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;
@@ -92,3 +92,11 @@ export interface MaChatbotInstance {
92
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
+ }
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.3",
5
5
  "description": "UI Component library for Mobile Action.",
6
6
  "author": "MobileAction",
7
7
  "license": "MIT",