@opens/widget-ui 1.3.1 → 1.4.0
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/app-article-page.vue.d.ts.map +1 -0
- package/dist/components/buttons/app-button.vue.d.ts +3 -0
- 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/ui/app-typing.vue.d.ts +8 -0
- 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 +5 -0
- package/dist/composables/use-button-style.d.ts +4 -3
- 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 +2 -1
- package/dist/domain/chat-message/resolve-message-from.d.ts +6 -0
- package/dist/domain/chat-message/types.d.ts +12 -0
- package/dist/index.d.ts +3 -3
- package/dist/main.d.ts +4 -3
- package/dist/ui/app-typing.vue.d.ts +5 -0
- package/dist/ui/app-typing.vue.d.ts.map +1 -0
- package/dist/utils/message-helpers.d.ts +2 -1
- 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 +2661 -2548
- package/dist/yunique_widget_ui.umd.js +3 -3
- package/package.json +1 -1
- package/dist/pages/app-article-page.vue.d.ts.map +0 -1
- /package/dist/{pages/app-article-page.vue.d.ts → app-article-page.vue.d.ts} +0 -0
|
@@ -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"}
|
|
@@ -7,6 +7,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7
7
|
round: BooleanConstructor;
|
|
8
8
|
icon: BooleanConstructor;
|
|
9
9
|
fluid: BooleanConstructor;
|
|
10
|
+
fit: BooleanConstructor;
|
|
10
11
|
disabled: BooleanConstructor;
|
|
11
12
|
loading: BooleanConstructor;
|
|
12
13
|
alert: BooleanConstructor;
|
|
@@ -24,6 +25,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
24
25
|
round: BooleanConstructor;
|
|
25
26
|
icon: BooleanConstructor;
|
|
26
27
|
fluid: BooleanConstructor;
|
|
28
|
+
fit: BooleanConstructor;
|
|
27
29
|
disabled: BooleanConstructor;
|
|
28
30
|
loading: BooleanConstructor;
|
|
29
31
|
alert: BooleanConstructor;
|
|
@@ -35,6 +37,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
35
37
|
}>, {
|
|
36
38
|
small: boolean;
|
|
37
39
|
link: boolean;
|
|
40
|
+
fit: boolean;
|
|
38
41
|
disabled: boolean;
|
|
39
42
|
fluid: boolean;
|
|
40
43
|
soft: boolean;
|
|
@@ -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;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
small: BooleanConstructor;
|
|
3
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
small: BooleanConstructor;
|
|
5
|
+
}>> & Readonly<{}>, {
|
|
6
|
+
small: boolean;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
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,5 +1,5 @@
|
|
|
1
|
+
import { ServiceChatMessageAction, ServiceChatServiceAction } from '../../composables/use-chat-service';
|
|
1
2
|
import { Rule, WorkflowData } from '@opens/gateways/chat-config';
|
|
2
|
-
import { ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
3
3
|
import { WidgetConfiguration } from '../../mocks/demo-config';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
workflow: WorkflowData;
|
|
@@ -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;
|
|
@@ -5,6 +5,7 @@ export declare const useAppWidget: () => {
|
|
|
5
5
|
isSendingMessage: import('vue').Ref<boolean, boolean>;
|
|
6
6
|
isErrorLoading: import('vue').Ref<boolean, boolean>;
|
|
7
7
|
attachments: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAttachment[], import('./use-chat-service').ServiceChatAttachment[]>;
|
|
8
|
+
isFinished: import('vue').Ref<boolean, boolean>;
|
|
8
9
|
isLoading: import('vue').Ref<boolean, boolean>;
|
|
9
10
|
messages: import('vue').Ref<{
|
|
10
11
|
id?: number | undefined;
|
|
@@ -97,6 +98,7 @@ export declare const useAppWidget: () => {
|
|
|
97
98
|
} | undefined;
|
|
98
99
|
echo?: string | undefined;
|
|
99
100
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
101
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
100
102
|
messages?: /*elided*/ any[] | undefined;
|
|
101
103
|
}[], import('./use-chat-service').ServiceChatMessage[] | {
|
|
102
104
|
id?: number | undefined;
|
|
@@ -189,8 +191,10 @@ export declare const useAppWidget: () => {
|
|
|
189
191
|
} | undefined;
|
|
190
192
|
echo?: string | undefined;
|
|
191
193
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
194
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
192
195
|
messages?: /*elided*/ any[] | undefined;
|
|
193
196
|
}[]>;
|
|
197
|
+
isTyping: import('vue').Ref<boolean, boolean>;
|
|
194
198
|
audio: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAudio | null, import('./use-chat-service').ServiceChatAudio | null>;
|
|
195
199
|
text: import('vue').Ref<string, string>;
|
|
196
200
|
setMessages: (list: import('./use-chat-service').ServiceChatMessage[]) => void;
|
|
@@ -494,6 +498,7 @@ export declare const useAppWidget: () => {
|
|
|
494
498
|
} | undefined>;
|
|
495
499
|
language: import('vue').ComputedRef<import('@opens/gateways/chat-config').WidgetLanguage>;
|
|
496
500
|
history: import('vue').Ref<string[], string[]>;
|
|
501
|
+
isOpen: import('vue').Ref<boolean, boolean>;
|
|
497
502
|
config: import('vue').Ref<{
|
|
498
503
|
configurations: {
|
|
499
504
|
alias: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
interface StyleProps {
|
|
2
2
|
fluid?: boolean;
|
|
3
3
|
small?: boolean;
|
|
4
|
+
fit?: boolean;
|
|
4
5
|
}
|
|
5
6
|
export declare function useButtonStyle(props: StyleProps): {
|
|
6
|
-
height: import('vue').ComputedRef<"" | "!wu-h-8 !wu-min-h-[2rem]">;
|
|
7
|
+
height: import('vue').ComputedRef<"" | "!wu-h-8 !wu-min-h-[2rem]" | "wu-h-auto wu-min-h-0">;
|
|
7
8
|
textSize: import('vue').ComputedRef<string>;
|
|
8
|
-
padding: import('vue').ComputedRef<"wu-px-[0.625rem]" | "wu-p-[0.9rem]">;
|
|
9
|
-
width: import('vue').ComputedRef<"!wu-w-full" | "wu-w-fit">;
|
|
9
|
+
padding: import('vue').ComputedRef<"wu-px-3 wu-py-2" | "wu-px-[0.625rem]" | "wu-p-[0.9rem]">;
|
|
10
|
+
width: import('vue').ComputedRef<"!wu-w-full" | "wu-w-fit" | "wu-w-fit wu-max-w-full">;
|
|
10
11
|
};
|
|
11
12
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
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
4
|
isSendingMessage: import('vue').Ref<boolean, boolean>;
|
|
5
5
|
isErrorLoading: import('vue').Ref<boolean, boolean>;
|
|
6
6
|
attachments: import('vue').ShallowRef<ServiceChatAttachment[], ServiceChatAttachment[]>;
|
|
7
|
+
isFinished: import('vue').Ref<boolean, boolean>;
|
|
7
8
|
isLoading: import('vue').Ref<boolean, boolean>;
|
|
8
9
|
messages: import('vue').Ref<{
|
|
9
10
|
id?: number | undefined;
|
|
@@ -96,6 +97,7 @@ export declare function useChatService(): {
|
|
|
96
97
|
} | undefined;
|
|
97
98
|
echo?: string | undefined;
|
|
98
99
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
100
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
99
101
|
messages?: /*elided*/ any[] | undefined;
|
|
100
102
|
}[], ServiceChatMessage[] | {
|
|
101
103
|
id?: number | undefined;
|
|
@@ -188,8 +190,10 @@ export declare function useChatService(): {
|
|
|
188
190
|
} | undefined;
|
|
189
191
|
echo?: string | undefined;
|
|
190
192
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
193
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
191
194
|
messages?: /*elided*/ any[] | undefined;
|
|
192
195
|
}[]>;
|
|
196
|
+
isTyping: import('vue').Ref<boolean, boolean>;
|
|
193
197
|
audio: import('vue').ShallowRef<ServiceChatAudio | null, ServiceChatAudio | null>;
|
|
194
198
|
text: import('vue').Ref<string, string>;
|
|
195
199
|
setMessages: (list: ServiceChatMessage[]) => void;
|
|
@@ -3,6 +3,7 @@ export declare function useServicePage(): {
|
|
|
3
3
|
isSendingMessage: import('vue').Ref<boolean, boolean>;
|
|
4
4
|
isErrorLoading: import('vue').Ref<boolean, boolean>;
|
|
5
5
|
attachments: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAttachment[], import('./use-chat-service').ServiceChatAttachment[]>;
|
|
6
|
+
isFinished: import('vue').Ref<boolean, boolean>;
|
|
6
7
|
isLoading: import('vue').Ref<boolean, boolean>;
|
|
7
8
|
messages: import('vue').Ref<{
|
|
8
9
|
id?: number | undefined;
|
|
@@ -95,6 +96,7 @@ export declare function useServicePage(): {
|
|
|
95
96
|
} | undefined;
|
|
96
97
|
echo?: string | undefined;
|
|
97
98
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
99
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
98
100
|
messages?: /*elided*/ any[] | undefined;
|
|
99
101
|
}[], import('./use-chat-service').ServiceChatMessage[] | {
|
|
100
102
|
id?: number | undefined;
|
|
@@ -187,8 +189,10 @@ export declare function useServicePage(): {
|
|
|
187
189
|
} | undefined;
|
|
188
190
|
echo?: string | undefined;
|
|
189
191
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
192
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
190
193
|
messages?: /*elided*/ any[] | undefined;
|
|
191
194
|
}[]>;
|
|
195
|
+
isTyping: import('vue').Ref<boolean, boolean>;
|
|
192
196
|
audio: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAudio | null, import('./use-chat-service').ServiceChatAudio | null>;
|
|
193
197
|
text: import('vue').Ref<string, string>;
|
|
194
198
|
setMessages: (list: import('./use-chat-service').ServiceChatMessage[]) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { ServiceChatMessageBuilder } from './service-chat-message.builder';
|
|
2
|
+
export { resolveMessageFrom } from './resolve-message-from';
|
|
2
3
|
export { ServiceChatMessageVO } from './service-chat-message.vo';
|
|
3
|
-
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';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceChatMessageFrom } from './types';
|
|
2
|
+
/** Derives the UI sender role from an explicit `from` or from `provider`. */
|
|
3
|
+
export declare const resolveMessageFrom: (message: {
|
|
4
|
+
from?: ServiceChatMessageFrom | null;
|
|
5
|
+
provider?: string | null;
|
|
6
|
+
}) => ServiceChatMessageFrom;
|
|
@@ -18,10 +18,12 @@ export type ServiceChatInteractiveBody = Omit<MessageInteractiveBody, 'menu'> &
|
|
|
18
18
|
/**
|
|
19
19
|
* Widget view-model for chat messages.
|
|
20
20
|
* Based on the API contract, with optional nested messages for client-side grouping.
|
|
21
|
+
* `from` is filled by ServiceChatMessageVO (derived from provider when omitted).
|
|
21
22
|
*/
|
|
22
23
|
export type ServiceChatMessage = Partial<Omit<MessageResponse, 'messageType'>> & {
|
|
23
24
|
messageType: ServiceChatMessageType | string;
|
|
24
25
|
messageBody: string;
|
|
26
|
+
from?: ServiceChatMessageFrom;
|
|
25
27
|
messages?: ServiceChatMessage[];
|
|
26
28
|
};
|
|
27
29
|
/** UI actions emitted by message components. */
|
|
@@ -38,6 +40,16 @@ export type ServiceChatMessageAction = {
|
|
|
38
40
|
message: ServiceChatMessage;
|
|
39
41
|
option: ServiceChatInteractiveOption;
|
|
40
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
|
+
};
|
|
41
53
|
/** Local composer attachment before upload (File-based, not API payload). */
|
|
42
54
|
export type ServiceChatAttachmentType = 'image' | 'document';
|
|
43
55
|
export type ServiceChatAttachment = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default, AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppArticlePage, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppAudioPlayer, AppSkeleton, 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';
|
|
3
|
-
export { ServiceChatMessageBuilder, ServiceChatMessageVO } from './domain/chat-message';
|
|
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, ServiceChatServiceAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from './composables/use-chat-service';
|
|
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';
|
|
6
6
|
export type { MaskFunction } from './composables/use-mask-functions';
|
package/dist/main.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { default as AppWidget } from './components/widget/app-widget.vue';
|
|
|
14
14
|
import { default as AppCarousel } from './components/ui/app-carousel.vue';
|
|
15
15
|
import { default as AppAudioPlayer } from './components/ui/app-audio-player.vue';
|
|
16
16
|
import { default as AppSkeleton } from './components/ui/app-skeleton.vue';
|
|
17
|
+
import { default as AppTyping } from './components/ui/app-typing.vue';
|
|
17
18
|
import { default as AppIcon } from './components/icons/app-icon.vue';
|
|
18
19
|
import { default as AppEmpty } from './components/ui/app-empty.vue';
|
|
19
20
|
import { default as AppGroup } from './components/ui/app-group.vue';
|
|
@@ -22,9 +23,9 @@ declare const _default: {
|
|
|
22
23
|
install: (app: App) => void;
|
|
23
24
|
};
|
|
24
25
|
export default _default;
|
|
25
|
-
export { AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppArticlePage, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppAudioPlayer, AppSkeleton, AppEmpty, AppMessage, AppWidget, AppButton, AppGroup, AppEdge, AppIcon, AppText, };
|
|
26
|
-
export type { MessageAttachment, MessageAttachmentType, MessageInteractiveBody, MessageInteractiveOption, MessageResponse, MessageType, ServiceChatInteractiveBody, ServiceChatInteractiveOption, ServiceChatMessage, ServiceChatMessageAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from './composables/use-chat-service';
|
|
27
|
-
export { ServiceChatMessageBuilder, ServiceChatMessageVO } from './domain/chat-message';
|
|
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, ServiceChatServiceAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from './composables/use-chat-service';
|
|
28
|
+
export { ServiceChatMessageBuilder, ServiceChatMessageVO, resolveMessageFrom } from './domain/chat-message';
|
|
28
29
|
export { useVoiceService } from './composables/use-voice-service';
|
|
29
30
|
export { useChatService } from './composables/use-chat-service';
|
|
30
31
|
export { useServicePage } from './composables/use-service-page';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "/opt/atlassian/pipelines/agent/build/src/components/ui/app-typing.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
+
import "/opt/atlassian/pipelines/agent/build/src/components/ui/app-typing.vue?vue&type=style&index=0&scoped=b0aad068&lang.css";
|
|
3
|
+
declare const _default: any;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=app-typing.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-typing.vue.d.ts","sourceRoot":"","sources":["../../src/components/ui/app-typing.vue"],"names":[],"mappings":"AACA,cAAc,0GAA0G,CAAC;AACzH,OAAO,uHAAuH,CAAC;;AAE/H,wBAA0F"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ServiceChatMessageAttachment, ServiceChatInteractiveBody, ServiceChatMessageFrom, ServiceChatMessage } from '../domain/chat-message';
|
|
1
|
+
import { ServiceChatMessageAttachment, ServiceChatInteractiveBody, ServiceChatMessageFrom, ServiceChatMessage } from '../domain/chat-message/types';
|
|
2
|
+
/** Prefer `message.from`; falls back to provider derivation for drafts. */
|
|
2
3
|
export declare const getMessageFrom: (message: ServiceChatMessage) => ServiceChatMessageFrom;
|
|
3
4
|
export declare const getMessageAttachments: (message: ServiceChatMessage) => ServiceChatMessageAttachment[];
|
|
4
5
|
export declare const getPrimaryAttachment: (message: ServiceChatMessage) => import('@opens/gateways/chat-webservice').MessageAttachment;
|
|
@@ -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=ffcd4172&lang.css";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=app-widget.vue.d.ts.map
|