@opens/widget-ui 1.3.2 → 1.4.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/components/messages/app-message-attachments.vue.d.ts +2 -2
- package/dist/components/messages/app-message-audio.vue.d.ts +2 -2
- package/dist/components/messages/app-message-document.vue.d.ts +2 -2
- package/dist/components/messages/app-message-image.vue.d.ts +2 -2
- package/dist/components/messages/app-message-interactive.vue.d.ts +2 -2
- package/dist/components/messages/app-message-survey.vue.d.ts +2 -2
- package/dist/components/messages/app-message-video.vue.d.ts +2 -2
- package/dist/components/pages/app-chat-service.vue.d.ts +5 -7
- package/dist/components/pages/app-identification-page.vue.d.ts +2 -2
- package/dist/components/pages/app-service-page.vue.d.ts +5 -7
- package/dist/components/widget/app-widget-view.vue.d.ts +7 -9
- package/dist/components/widget/app-widget.vue.d.ts +7 -9
- package/dist/composables/use-app-widget.d.ts +4 -0
- package/dist/composables/use-chat-service.d.ts +5 -1
- package/dist/composables/use-service-page.d.ts +4 -0
- package/dist/domain/chat-message/index.d.ts +1 -1
- package/dist/domain/chat-message/types.d.ts +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/pages/app-article-page.vue.d.ts.map +1 -0
- package/dist/pages/app-service-page.vue.d.ts.map +1 -0
- package/dist/widget/app-widget-view.vue.d.ts +1 -1
- package/dist/widget/app-widget.vue.d.ts +1 -1
- package/dist/yunique_widget_ui.cjs.js +2 -2
- package/dist/yunique_widget_ui.css +1 -1
- package/dist/yunique_widget_ui.es.js +2544 -2430
- package/dist/yunique_widget_ui.umd.js +3 -3
- package/package.json +1 -1
- package/dist/app-article-page.vue.d.ts.map +0 -1
- package/dist/app-service-page.vue.d.ts.map +0 -1
- /package/dist/{app-article-page.vue.d.ts → pages/app-article-page.vue.d.ts} +0 -0
- /package/dist/{app-service-page.vue.d.ts → pages/app-service-page.vue.d.ts} +0 -0
|
@@ -3,8 +3,8 @@ type __VLS_Props = {
|
|
|
3
3
|
message: ServiceChatMessage;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
6
|
+
"chat-service-message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
7
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
"
|
|
8
|
+
"onChat-service-message-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
9
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -3,8 +3,8 @@ type __VLS_Props = {
|
|
|
3
3
|
message: ServiceChatMessage;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
6
|
+
"chat-service-message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
7
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
"
|
|
8
|
+
"onChat-service-message-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
9
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -3,8 +3,8 @@ type __VLS_Props = {
|
|
|
3
3
|
message: ServiceChatMessage;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
6
|
+
"chat-service-message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
7
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
"
|
|
8
|
+
"onChat-service-message-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
9
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -3,8 +3,8 @@ type __VLS_Props = {
|
|
|
3
3
|
message: ServiceChatMessage;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
6
|
+
"chat-service-message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
7
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
"
|
|
8
|
+
"onChat-service-message-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
9
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -3,8 +3,8 @@ type __VLS_Props = {
|
|
|
3
3
|
message: ServiceChatMessage;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
6
|
+
"chat-service-message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
7
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
"
|
|
8
|
+
"onChat-service-message-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
9
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -3,8 +3,8 @@ type __VLS_Props = {
|
|
|
3
3
|
message: ServiceChatMessage;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
6
|
+
"chat-service-message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
7
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
"
|
|
8
|
+
"onChat-service-message-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
9
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -3,8 +3,8 @@ type __VLS_Props = {
|
|
|
3
3
|
message: ServiceChatMessage;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
"message-action": (args_0: ServiceChatMessageAction) => any;
|
|
6
|
+
"chat-service-message-action": (args_0: ServiceChatMessageAction) => any;
|
|
7
7
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
"
|
|
8
|
+
"onChat-service-message-action"?: ((args_0: ServiceChatMessageAction) => any) | undefined;
|
|
9
9
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { Rule } from '@opens/gateways/chat-config';
|
|
2
|
-
import { ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
|
+
import { ServiceChatMessageAction, ServiceChatServiceAction } from '../../composables/use-chat-service';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
rule: Rule;
|
|
5
5
|
edges?: Rule[];
|
|
6
6
|
};
|
|
7
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
"message-action": (action: ServiceChatMessageAction) => any;
|
|
9
|
-
"
|
|
10
|
-
"retry-loading-chat-service": () => any;
|
|
8
|
+
"chat-service-message-action": (action: ServiceChatMessageAction) => any;
|
|
9
|
+
"chat-service-action": (action: ServiceChatServiceAction) => any;
|
|
11
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"onRetry-loading-chat-service"?: (() => any) | undefined;
|
|
11
|
+
"onChat-service-message-action"?: ((action: ServiceChatMessageAction) => any) | undefined;
|
|
12
|
+
"onChat-service-action"?: ((action: ServiceChatServiceAction) => any) | undefined;
|
|
15
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
14
|
export default _default;
|
|
@@ -4,10 +4,10 @@ type __VLS_Props = {
|
|
|
4
4
|
edges?: Rule[];
|
|
5
5
|
};
|
|
6
6
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
submit: (values: Record<string, string>) => any;
|
|
8
7
|
back: () => any;
|
|
8
|
+
submit: (values: Record<string, string>) => any;
|
|
9
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
onSubmit?: ((values: Record<string, string>) => any) | undefined;
|
|
11
10
|
onBack?: (() => any) | undefined;
|
|
11
|
+
onSubmit?: ((values: Record<string, string>) => any) | undefined;
|
|
12
12
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
export default _default;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { Rule } from '@opens/gateways/chat-config';
|
|
2
|
-
import { ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
|
+
import { ServiceChatMessageAction, ServiceChatServiceAction } from '../../composables/use-chat-service';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
rule: Rule;
|
|
5
5
|
edges?: Rule[];
|
|
6
6
|
};
|
|
7
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
"message-action": (action: ServiceChatMessageAction) => any;
|
|
9
|
-
"
|
|
10
|
-
"retry-loading-chat-service": () => any;
|
|
8
|
+
"chat-service-message-action": (action: ServiceChatMessageAction) => any;
|
|
9
|
+
"chat-service-action": (action: ServiceChatServiceAction) => any;
|
|
11
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"onRetry-loading-chat-service"?: (() => any) | undefined;
|
|
11
|
+
"onChat-service-message-action"?: ((action: ServiceChatMessageAction) => any) | undefined;
|
|
12
|
+
"onChat-service-action"?: ((action: ServiceChatServiceAction) => any) | undefined;
|
|
15
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
14
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Rule, WorkflowData } from '@opens/gateways/chat-config';
|
|
2
|
-
import { ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
|
+
import { ServiceChatMessageAction, ServiceChatServiceAction } from '../../composables/use-chat-service';
|
|
3
3
|
import { WidgetConfiguration } from '../../mocks/demo-config';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
workflow: WorkflowData;
|
|
@@ -7,20 +7,18 @@ type __VLS_Props = {
|
|
|
7
7
|
fullscreen?: boolean;
|
|
8
8
|
};
|
|
9
9
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
submit: (values: Record<string, string>) => any;
|
|
11
10
|
back: () => any;
|
|
11
|
+
submit: (values: Record<string, string>) => any;
|
|
12
12
|
close: () => any;
|
|
13
13
|
"edge-click": (edge: Rule) => any;
|
|
14
|
-
"message-action": (action: ServiceChatMessageAction) => any;
|
|
15
|
-
"
|
|
16
|
-
"retry-loading-chat-service": () => any;
|
|
14
|
+
"chat-service-message-action": (action: ServiceChatMessageAction) => any;
|
|
15
|
+
"chat-service-action": (action: ServiceChatServiceAction) => any;
|
|
17
16
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
-
onSubmit?: ((values: Record<string, string>) => any) | undefined;
|
|
19
17
|
onBack?: (() => any) | undefined;
|
|
18
|
+
onSubmit?: ((values: Record<string, string>) => any) | undefined;
|
|
20
19
|
onClose?: (() => any) | undefined;
|
|
21
20
|
"onEdge-click"?: ((edge: Rule) => any) | undefined;
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"onRetry-loading-chat-service"?: (() => any) | undefined;
|
|
21
|
+
"onChat-service-message-action"?: ((action: ServiceChatMessageAction) => any) | undefined;
|
|
22
|
+
"onChat-service-action"?: ((action: ServiceChatServiceAction) => any) | undefined;
|
|
25
23
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
24
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
1
|
+
import { ServiceChatMessageAction, ServiceChatServiceAction } from '../../composables/use-chat-service';
|
|
2
2
|
import { Rule, WorkflowData } from '@opens/gateways/chat-config';
|
|
3
3
|
import { WidgetConfiguration } from '../../mocks/demo-config';
|
|
4
4
|
type __VLS_Props = {
|
|
@@ -7,22 +7,20 @@ type __VLS_Props = {
|
|
|
7
7
|
fullscreen?: boolean;
|
|
8
8
|
};
|
|
9
9
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
submit: (values: Record<string, string>) => any;
|
|
11
10
|
back: () => any;
|
|
11
|
+
submit: (values: Record<string, string>) => any;
|
|
12
12
|
close: () => any;
|
|
13
13
|
"edge-click": (edge: Rule) => any;
|
|
14
14
|
open: () => any;
|
|
15
|
-
"message-action": (action: ServiceChatMessageAction) => any;
|
|
16
|
-
"
|
|
17
|
-
"retry-loading-chat-service": () => any;
|
|
15
|
+
"chat-service-message-action": (action: ServiceChatMessageAction) => any;
|
|
16
|
+
"chat-service-action": (action: ServiceChatServiceAction) => any;
|
|
18
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
onSubmit?: ((values: Record<string, string>) => any) | undefined;
|
|
20
18
|
onBack?: (() => any) | undefined;
|
|
19
|
+
onSubmit?: ((values: Record<string, string>) => any) | undefined;
|
|
21
20
|
onClose?: (() => any) | undefined;
|
|
22
21
|
"onEdge-click"?: ((edge: Rule) => any) | undefined;
|
|
23
22
|
onOpen?: (() => any) | undefined;
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"onRetry-loading-chat-service"?: (() => any) | undefined;
|
|
23
|
+
"onChat-service-message-action"?: ((action: ServiceChatMessageAction) => any) | undefined;
|
|
24
|
+
"onChat-service-action"?: ((action: ServiceChatServiceAction) => any) | undefined;
|
|
27
25
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
26
|
export default _default;
|
|
@@ -2,9 +2,11 @@ import { Rule, ScreenRuleHeaderComponent, WorkflowData } from '@opens/gateways/c
|
|
|
2
2
|
import { WidgetConfiguration } from '../mocks/demo-config';
|
|
3
3
|
export declare const useAppWidget: () => {
|
|
4
4
|
chat: {
|
|
5
|
+
unreadMessagesCount: import('vue').ComputedRef<number>;
|
|
5
6
|
isSendingMessage: import('vue').Ref<boolean, boolean>;
|
|
6
7
|
isErrorLoading: import('vue').Ref<boolean, boolean>;
|
|
7
8
|
attachments: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAttachment[], import('./use-chat-service').ServiceChatAttachment[]>;
|
|
9
|
+
isFinished: import('vue').Ref<boolean, boolean>;
|
|
8
10
|
isLoading: import('vue').Ref<boolean, boolean>;
|
|
9
11
|
messages: import('vue').Ref<{
|
|
10
12
|
id?: number | undefined;
|
|
@@ -196,6 +198,8 @@ export declare const useAppWidget: () => {
|
|
|
196
198
|
isTyping: import('vue').Ref<boolean, boolean>;
|
|
197
199
|
audio: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAudio | null, import('./use-chat-service').ServiceChatAudio | null>;
|
|
198
200
|
text: import('vue').Ref<string, string>;
|
|
201
|
+
setUnreadMessages: (list: import('./use-chat-service').ServiceChatMessage[]) => void;
|
|
202
|
+
addUnreadMessage: (message: import('./use-chat-service').ServiceChatMessage) => void;
|
|
199
203
|
setMessages: (list: import('./use-chat-service').ServiceChatMessage[]) => void;
|
|
200
204
|
addMessage: (message: import('./use-chat-service').ServiceChatMessage) => void;
|
|
201
205
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ServiceChatAttachment, ServiceChatAudio, ServiceChatMessage } from '../domain/chat-message';
|
|
2
|
-
export type { MessageAttachment, MessageAttachmentType, MessageInteractiveBody, MessageInteractiveOption, MessageResponse, MessageType, ServiceChatAttachment, ServiceChatAttachmentType, ServiceChatAudio, ServiceChatInteractiveBody, ServiceChatInteractiveOption, ServiceChatMessage, ServiceChatMessageAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from '../domain/chat-message';
|
|
2
|
+
export type { MessageAttachment, MessageAttachmentType, MessageInteractiveBody, MessageInteractiveOption, MessageResponse, MessageType, ServiceChatAttachment, ServiceChatAttachmentType, ServiceChatAudio, ServiceChatInteractiveBody, ServiceChatInteractiveOption, ServiceChatMessage, ServiceChatMessageAction, ServiceChatServiceAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from '../domain/chat-message';
|
|
3
3
|
export declare function useChatService(): {
|
|
4
|
+
unreadMessagesCount: import('vue').ComputedRef<number>;
|
|
4
5
|
isSendingMessage: import('vue').Ref<boolean, boolean>;
|
|
5
6
|
isErrorLoading: import('vue').Ref<boolean, boolean>;
|
|
6
7
|
attachments: import('vue').ShallowRef<ServiceChatAttachment[], ServiceChatAttachment[]>;
|
|
8
|
+
isFinished: import('vue').Ref<boolean, boolean>;
|
|
7
9
|
isLoading: import('vue').Ref<boolean, boolean>;
|
|
8
10
|
messages: import('vue').Ref<{
|
|
9
11
|
id?: number | undefined;
|
|
@@ -195,6 +197,8 @@ export declare function useChatService(): {
|
|
|
195
197
|
isTyping: import('vue').Ref<boolean, boolean>;
|
|
196
198
|
audio: import('vue').ShallowRef<ServiceChatAudio | null, ServiceChatAudio | null>;
|
|
197
199
|
text: import('vue').Ref<string, string>;
|
|
200
|
+
setUnreadMessages: (list: ServiceChatMessage[]) => void;
|
|
201
|
+
addUnreadMessage: (message: ServiceChatMessage) => void;
|
|
198
202
|
setMessages: (list: ServiceChatMessage[]) => void;
|
|
199
203
|
addMessage: (message: ServiceChatMessage) => void;
|
|
200
204
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare function useServicePage(): {
|
|
2
2
|
chat: {
|
|
3
|
+
unreadMessagesCount: import('vue').ComputedRef<number>;
|
|
3
4
|
isSendingMessage: import('vue').Ref<boolean, boolean>;
|
|
4
5
|
isErrorLoading: import('vue').Ref<boolean, boolean>;
|
|
5
6
|
attachments: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAttachment[], import('./use-chat-service').ServiceChatAttachment[]>;
|
|
7
|
+
isFinished: import('vue').Ref<boolean, boolean>;
|
|
6
8
|
isLoading: import('vue').Ref<boolean, boolean>;
|
|
7
9
|
messages: import('vue').Ref<{
|
|
8
10
|
id?: number | undefined;
|
|
@@ -194,6 +196,8 @@ export declare function useServicePage(): {
|
|
|
194
196
|
isTyping: import('vue').Ref<boolean, boolean>;
|
|
195
197
|
audio: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAudio | null, import('./use-chat-service').ServiceChatAudio | null>;
|
|
196
198
|
text: import('vue').Ref<string, string>;
|
|
199
|
+
setUnreadMessages: (list: import('./use-chat-service').ServiceChatMessage[]) => void;
|
|
200
|
+
addUnreadMessage: (message: import('./use-chat-service').ServiceChatMessage) => void;
|
|
197
201
|
setMessages: (list: import('./use-chat-service').ServiceChatMessage[]) => void;
|
|
198
202
|
addMessage: (message: import('./use-chat-service').ServiceChatMessage) => void;
|
|
199
203
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ServiceChatMessageBuilder } from './service-chat-message.builder';
|
|
2
2
|
export { resolveMessageFrom } from './resolve-message-from';
|
|
3
3
|
export { ServiceChatMessageVO } from './service-chat-message.vo';
|
|
4
|
-
export type { ServiceChatMessageAttachmentType, ServiceChatMessageAttachment, ServiceChatInteractiveOption, ServiceChatInteractiveBody, ServiceChatAttachmentType, MessageInteractiveOption, ServiceChatMessageAction, MessageInteractiveBody, ServiceChatMessageFrom, ServiceChatMessageType, ServiceChatAttachment, MessageAttachmentType, ServiceChatMessage, MessageAttachment, ServiceChatAudio, MessageResponse, MessageType, } from './types';
|
|
4
|
+
export type { ServiceChatMessageAttachmentType, ServiceChatMessageAttachment, ServiceChatInteractiveOption, ServiceChatInteractiveBody, ServiceChatAttachmentType, MessageInteractiveOption, ServiceChatMessageAction, ServiceChatServiceAction, MessageInteractiveBody, ServiceChatMessageFrom, ServiceChatMessageType, ServiceChatAttachment, MessageAttachmentType, ServiceChatMessage, MessageAttachment, ServiceChatAudio, MessageResponse, MessageType, } from './types';
|
|
@@ -40,6 +40,16 @@ export type ServiceChatMessageAction = {
|
|
|
40
40
|
message: ServiceChatMessage;
|
|
41
41
|
option: ServiceChatInteractiveOption;
|
|
42
42
|
};
|
|
43
|
+
/** Page-level actions emitted by the chat service screen. */
|
|
44
|
+
export type ServiceChatServiceAction = {
|
|
45
|
+
action: 'send-message';
|
|
46
|
+
} | {
|
|
47
|
+
action: 'retry-loading';
|
|
48
|
+
} | {
|
|
49
|
+
action: 'start-new-service';
|
|
50
|
+
} | {
|
|
51
|
+
action: 'back';
|
|
52
|
+
};
|
|
43
53
|
/** Local composer attachment before upload (File-based, not API payload). */
|
|
44
54
|
export type ServiceChatAttachmentType = 'image' | 'document';
|
|
45
55
|
export type ServiceChatAttachment = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default, AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppArticlePage, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppAudioPlayer, AppSkeleton, AppTyping, AppMessage, AppButton, AppWidget, AppEmpty, AppGroup, AppEdge, AppIcon, AppText, } from './main';
|
|
2
|
-
export type { MessageAttachment, MessageAttachmentType, MessageInteractiveBody, MessageInteractiveOption, MessageResponse, MessageType, ServiceChatInteractiveBody, ServiceChatInteractiveOption, ServiceChatMessage, ServiceChatMessageAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from './composables/use-chat-service';
|
|
2
|
+
export type { MessageAttachment, MessageAttachmentType, MessageInteractiveBody, MessageInteractiveOption, MessageResponse, MessageType, ServiceChatInteractiveBody, ServiceChatInteractiveOption, ServiceChatMessage, ServiceChatMessageAction, ServiceChatServiceAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from './composables/use-chat-service';
|
|
3
3
|
export { ServiceChatMessageBuilder, ServiceChatMessageVO, resolveMessageFrom } from './domain/chat-message';
|
|
4
4
|
export { useVoiceService } from './composables/use-voice-service';
|
|
5
5
|
export { useChatService } from './composables/use-chat-service';
|
package/dist/main.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare const _default: {
|
|
|
24
24
|
};
|
|
25
25
|
export default _default;
|
|
26
26
|
export { AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppArticlePage, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppAudioPlayer, AppSkeleton, AppTyping, AppEmpty, AppMessage, AppWidget, AppButton, AppGroup, AppEdge, AppIcon, AppText, };
|
|
27
|
-
export type { MessageAttachment, MessageAttachmentType, MessageInteractiveBody, MessageInteractiveOption, MessageResponse, MessageType, ServiceChatInteractiveBody, ServiceChatInteractiveOption, ServiceChatMessage, ServiceChatMessageAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from './composables/use-chat-service';
|
|
27
|
+
export type { MessageAttachment, MessageAttachmentType, MessageInteractiveBody, MessageInteractiveOption, MessageResponse, MessageType, ServiceChatInteractiveBody, ServiceChatInteractiveOption, ServiceChatMessage, ServiceChatMessageAction, ServiceChatServiceAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from './composables/use-chat-service';
|
|
28
28
|
export { ServiceChatMessageBuilder, ServiceChatMessageVO, resolveMessageFrom } from './domain/chat-message';
|
|
29
29
|
export { useVoiceService } from './composables/use-voice-service';
|
|
30
30
|
export { useChatService } from './composables/use-chat-service';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-article-page.vue.d.ts","sourceRoot":"","sources":["../../src/components/pages/app-article-page.vue"],"names":[],"mappings":"AACA,cAAc,mHAAmH,CAAC;AAClI,OAAO,gIAAgI,CAAC;AACxI,OAAO,gHAAgH,CAAC;;AAExH,wBAA0F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-service-page.vue.d.ts","sourceRoot":"","sources":["../../src/components/pages/app-service-page.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,mHAAmH,CAAC;AAC1I,cAAc,mHAAmH,CAAC;AAClI,eAAe,SAAS,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget-view.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget-view.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget-view.vue?vue&type=style&index=0&scoped=700b6585&lang.css";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=app-widget-view.vue.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget.vue?vue&type=style&index=0&scoped=a407563b&lang.css";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=app-widget.vue.d.ts.map
|