@opens/widget-ui 1.3.1 → 1.3.2
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/app-screen-page.vue.d.ts.map +1 -0
- package/dist/app-service-page.vue.d.ts.map +1 -0
- package/dist/components/buttons/app-button.vue.d.ts +3 -0
- package/dist/components/ui/app-typing.vue.d.ts +8 -0
- package/dist/components/widget/app-widget.vue.d.ts +1 -1
- package/dist/composables/use-app-widget.d.ts +4 -0
- package/dist/composables/use-button-style.d.ts +4 -3
- package/dist/composables/use-chat-service.d.ts +3 -0
- package/dist/composables/use-service-page.d.ts +3 -0
- package/dist/domain/chat-message/index.d.ts +1 -0
- package/dist/domain/chat-message/resolve-message-from.d.ts +6 -0
- package/dist/domain/chat-message/types.d.ts +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/main.d.ts +3 -2
- 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 +1814 -1782
- 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-screen-page.vue.d.ts.map +0 -1
- package/dist/pages/app-service-page.vue.d.ts.map +0 -1
- /package/dist/{pages/app-article-page.vue.d.ts → app-article-page.vue.d.ts} +0 -0
- /package/dist/{pages/app-screen-page.vue.d.ts → app-screen-page.vue.d.ts} +0 -0
- /package/dist/{pages/app-service-page.vue.d.ts → app-service-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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-screen-page.vue.d.ts","sourceRoot":"","sources":["../src/components/pages/app-screen-page.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kHAAkH,CAAC;AACzI,cAAc,kHAAkH,CAAC;AACjI,eAAe,SAAS,CAAC"}
|
|
@@ -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"}
|
|
@@ -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;
|
|
@@ -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
|
-
import { Rule, WorkflowData } from '@opens/gateways/chat-config';
|
|
2
1
|
import { ServiceChatMessageAction } from '../../composables/use-chat-service';
|
|
2
|
+
import { Rule, WorkflowData } from '@opens/gateways/chat-config';
|
|
3
3
|
import { WidgetConfiguration } from '../../mocks/demo-config';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
workflow: WorkflowData;
|
|
@@ -97,6 +97,7 @@ export declare const useAppWidget: () => {
|
|
|
97
97
|
} | undefined;
|
|
98
98
|
echo?: string | undefined;
|
|
99
99
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
100
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
100
101
|
messages?: /*elided*/ any[] | undefined;
|
|
101
102
|
}[], import('./use-chat-service').ServiceChatMessage[] | {
|
|
102
103
|
id?: number | undefined;
|
|
@@ -189,8 +190,10 @@ export declare const useAppWidget: () => {
|
|
|
189
190
|
} | undefined;
|
|
190
191
|
echo?: string | undefined;
|
|
191
192
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
193
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
192
194
|
messages?: /*elided*/ any[] | undefined;
|
|
193
195
|
}[]>;
|
|
196
|
+
isTyping: import('vue').Ref<boolean, boolean>;
|
|
194
197
|
audio: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAudio | null, import('./use-chat-service').ServiceChatAudio | null>;
|
|
195
198
|
text: import('vue').Ref<string, string>;
|
|
196
199
|
setMessages: (list: import('./use-chat-service').ServiceChatMessage[]) => void;
|
|
@@ -494,6 +497,7 @@ export declare const useAppWidget: () => {
|
|
|
494
497
|
} | undefined>;
|
|
495
498
|
language: import('vue').ComputedRef<import('@opens/gateways/chat-config').WidgetLanguage>;
|
|
496
499
|
history: import('vue').Ref<string[], string[]>;
|
|
500
|
+
isOpen: import('vue').Ref<boolean, boolean>;
|
|
497
501
|
config: import('vue').Ref<{
|
|
498
502
|
configurations: {
|
|
499
503
|
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 {};
|
|
@@ -96,6 +96,7 @@ export declare function useChatService(): {
|
|
|
96
96
|
} | undefined;
|
|
97
97
|
echo?: string | undefined;
|
|
98
98
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
99
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
99
100
|
messages?: /*elided*/ any[] | undefined;
|
|
100
101
|
}[], ServiceChatMessage[] | {
|
|
101
102
|
id?: number | undefined;
|
|
@@ -188,8 +189,10 @@ export declare function useChatService(): {
|
|
|
188
189
|
} | undefined;
|
|
189
190
|
echo?: string | undefined;
|
|
190
191
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
192
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
191
193
|
messages?: /*elided*/ any[] | undefined;
|
|
192
194
|
}[]>;
|
|
195
|
+
isTyping: import('vue').Ref<boolean, boolean>;
|
|
193
196
|
audio: import('vue').ShallowRef<ServiceChatAudio | null, ServiceChatAudio | null>;
|
|
194
197
|
text: import('vue').Ref<string, string>;
|
|
195
198
|
setMessages: (list: ServiceChatMessage[]) => void;
|
|
@@ -95,6 +95,7 @@ export declare function useServicePage(): {
|
|
|
95
95
|
} | undefined;
|
|
96
96
|
echo?: string | undefined;
|
|
97
97
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
98
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
98
99
|
messages?: /*elided*/ any[] | undefined;
|
|
99
100
|
}[], import('./use-chat-service').ServiceChatMessage[] | {
|
|
100
101
|
id?: number | undefined;
|
|
@@ -187,8 +188,10 @@ export declare function useServicePage(): {
|
|
|
187
188
|
} | undefined;
|
|
188
189
|
echo?: string | undefined;
|
|
189
190
|
messageType: import('./use-chat-service').ServiceChatMessageType | string;
|
|
191
|
+
from?: import('./use-chat-service').ServiceChatMessageFrom | undefined;
|
|
190
192
|
messages?: /*elided*/ any[] | undefined;
|
|
191
193
|
}[]>;
|
|
194
|
+
isTyping: import('vue').Ref<boolean, boolean>;
|
|
192
195
|
audio: import('vue').ShallowRef<import('./use-chat-service').ServiceChatAudio | null, import('./use-chat-service').ServiceChatAudio | null>;
|
|
193
196
|
text: import('vue').Ref<string, string>;
|
|
194
197
|
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
4
|
export type { ServiceChatMessageAttachmentType, ServiceChatMessageAttachment, ServiceChatInteractiveOption, ServiceChatInteractiveBody, ServiceChatAttachmentType, MessageInteractiveOption, ServiceChatMessageAction, 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. */
|
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';
|
|
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
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';
|
|
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 { AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppArticlePage, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppAudioPlayer, AppSkeleton, AppTyping, AppEmpty, AppMessage, AppWidget, AppButton, AppGroup, AppEdge, AppIcon, AppText, };
|
|
26
27
|
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';
|
|
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=848e57d0&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=9b2c1efc&lang.css";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=app-widget.vue.d.ts.map
|