@opens/widget-ui 1.2.3 → 1.3.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/app-screen-page.vue.d.ts.map +1 -0
- package/dist/app-service-page.vue.d.ts.map +1 -0
- package/dist/composables/use-app-widget.d.ts +3 -3
- package/dist/domain/chat-message/index.d.ts +1 -1
- package/dist/domain/chat-message/types.d.ts +2 -2
- package/dist/utils/message-helpers.d.ts +2 -0
- package/dist/utils/resolve-rule-option-icon.d.ts +0 -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 +4376 -4410
- 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"}
|
|
@@ -198,8 +198,8 @@ export declare const useAppWidget: () => {
|
|
|
198
198
|
};
|
|
199
199
|
voice: {};
|
|
200
200
|
currentRuleId: import('vue').Ref<string | undefined, string | undefined>;
|
|
201
|
-
currentRule: import('vue').ComputedRef<Rule | undefined>;
|
|
202
201
|
currentHeader: import('vue').ComputedRef<ScreenRuleHeaderComponent | undefined>;
|
|
202
|
+
currentRule: import('vue').ComputedRef<Rule | undefined>;
|
|
203
203
|
rootRule: import('vue').ComputedRef<Rule | undefined>;
|
|
204
204
|
workflow: import('vue').Ref<{
|
|
205
205
|
id: string;
|
|
@@ -492,6 +492,8 @@ export declare const useAppWidget: () => {
|
|
|
492
492
|
}[];
|
|
493
493
|
edges: Record<string, import('@opens/gateways/chat-config').WorkflowEdge[]>;
|
|
494
494
|
} | undefined>;
|
|
495
|
+
language: import('vue').ComputedRef<import('@opens/gateways/chat-config').WidgetLanguage>;
|
|
496
|
+
history: import('vue').Ref<string[], string[]>;
|
|
495
497
|
config: import('vue').Ref<{
|
|
496
498
|
configurations: {
|
|
497
499
|
alias: string;
|
|
@@ -539,8 +541,6 @@ export declare const useAppWidget: () => {
|
|
|
539
541
|
};
|
|
540
542
|
};
|
|
541
543
|
} | undefined>;
|
|
542
|
-
language: import('vue').ComputedRef<import('@opens/gateways/chat-config').WidgetLanguage>;
|
|
543
|
-
history: import('vue').Ref<string[], string[]>;
|
|
544
544
|
edges: import('vue').ComputedRef<Rule[]>;
|
|
545
545
|
setCurrentRuleId: (id: string | undefined) => void;
|
|
546
546
|
clearHistory: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ServiceChatMessageBuilder } from './service-chat-message.builder';
|
|
2
2
|
export { ServiceChatMessageVO } from './service-chat-message.vo';
|
|
3
|
-
export type {
|
|
3
|
+
export type { ServiceChatMessageAttachmentType, ServiceChatMessageAttachment, ServiceChatInteractiveOption, ServiceChatInteractiveBody, ServiceChatAttachmentType, MessageInteractiveOption, ServiceChatMessageAction, MessageInteractiveBody, ServiceChatMessageFrom, ServiceChatMessageType, ServiceChatAttachment, MessageAttachmentType, ServiceChatMessage, MessageAttachment, ServiceChatAudio, MessageResponse, MessageType, } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type {
|
|
1
|
+
import { MessageInteractiveOption, MessageInteractiveBody, MessageAttachmentType, MessageAttachment, MessageResponse, MessageType } from '@opens/gateways/chat-webservice';
|
|
2
|
+
export type { MessageInteractiveOption, MessageInteractiveBody, MessageAttachmentType, MessageAttachment, MessageResponse, MessageType, };
|
|
3
3
|
/** UI-facing sender role derived from provider (not an API field). */
|
|
4
4
|
export type ServiceChatMessageFrom = 'system' | 'operator' | 'contact';
|
|
5
5
|
/** API message types plus client-only synthetic kinds used by the widget. */
|
|
@@ -2,6 +2,8 @@ import { ServiceChatMessageAttachment, ServiceChatInteractiveBody, ServiceChatMe
|
|
|
2
2
|
export declare const getMessageFrom: (message: ServiceChatMessage) => ServiceChatMessageFrom;
|
|
3
3
|
export declare const getMessageAttachments: (message: ServiceChatMessage) => ServiceChatMessageAttachment[];
|
|
4
4
|
export declare const getPrimaryAttachment: (message: ServiceChatMessage) => import('@opens/gateways/chat-webservice').MessageAttachment;
|
|
5
|
+
export declare const getMessageCaption: (message: ServiceChatMessage) => string;
|
|
6
|
+
export declare const getAttachmentMessageBody: (message: ServiceChatMessage) => string;
|
|
5
7
|
export declare const formatMessageTime: (createdAt?: string | Date) => string;
|
|
6
8
|
export declare const isPdfAttachment: (attachment: ServiceChatMessageAttachment) => boolean;
|
|
7
9
|
export declare const parseInteractiveBody: (message: ServiceChatMessage) => ServiceChatInteractiveBody | null;
|