@opens/widget-ui 1.2.2 → 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.
Files changed (28) hide show
  1. package/dist/{pages/app-article-page.vue.d.ts → app-article-page.vue.d.ts} +2 -1
  2. package/dist/app-article-page.vue.d.ts.map +1 -0
  3. package/dist/app-identification-page.vue.d.ts.map +1 -0
  4. package/dist/app-screen-page.vue.d.ts.map +1 -0
  5. package/dist/app-service-page.vue.d.ts.map +1 -0
  6. package/dist/composables/use-app-widget.d.ts +3 -3
  7. package/dist/domain/chat-message/index.d.ts +1 -1
  8. package/dist/domain/chat-message/types.d.ts +2 -2
  9. package/dist/inputs/app-form-text-input.vue.d.ts.map +1 -0
  10. package/dist/inputs/app-text-input.vue.d.ts.map +1 -0
  11. package/dist/utils/message-helpers.d.ts +2 -0
  12. package/dist/utils/resolve-rule-option-icon.d.ts +0 -1
  13. package/dist/yunique_widget_ui.cjs.js +870 -1
  14. package/dist/yunique_widget_ui.css +1 -1
  15. package/dist/yunique_widget_ui.es.js +5274 -4439
  16. package/dist/yunique_widget_ui.umd.js +871 -2
  17. package/package.json +1 -1
  18. package/dist/app-form-text-input.vue.d.ts.map +0 -1
  19. package/dist/app-text-input.vue.d.ts.map +0 -1
  20. package/dist/pages/app-article-page.vue.d.ts.map +0 -1
  21. package/dist/pages/app-identification-page.vue.d.ts.map +0 -1
  22. package/dist/pages/app-screen-page.vue.d.ts.map +0 -1
  23. package/dist/pages/app-service-page.vue.d.ts.map +0 -1
  24. /package/dist/{pages/app-identification-page.vue.d.ts → app-identification-page.vue.d.ts} +0 -0
  25. /package/dist/{pages/app-screen-page.vue.d.ts → app-screen-page.vue.d.ts} +0 -0
  26. /package/dist/{pages/app-service-page.vue.d.ts → app-service-page.vue.d.ts} +0 -0
  27. /package/dist/{app-form-text-input.vue.d.ts → inputs/app-form-text-input.vue.d.ts} +0 -0
  28. /package/dist/{app-text-input.vue.d.ts → inputs/app-text-input.vue.d.ts} +0 -0
@@ -1,5 +1,6 @@
1
1
  export * from "/opt/atlassian/pipelines/agent/build/src/components/pages/app-article-page.vue?vue&type=script&setup=true&lang.ts";
2
- import "/opt/atlassian/pipelines/agent/build/src/components/pages/app-article-page.vue?vue&type=style&index=0&scoped=97683cd0&lang.css";
2
+ import "/opt/atlassian/pipelines/agent/build/src/components/pages/app-article-page.vue?vue&type=style&index=0&scoped=54b98051&lang.css";
3
+ import "/opt/atlassian/pipelines/agent/build/src/components/pages/app-article-page.vue?vue&type=style&index=1&lang.css";
3
4
  declare const _default: any;
4
5
  export default _default;
5
6
  //# sourceMappingURL=app-article-page.vue.d.ts.map
@@ -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-identification-page.vue.d.ts","sourceRoot":"","sources":["../src/components/pages/app-identification-page.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0HAA0H,CAAC;AACjJ,cAAc,0HAA0H,CAAC;AACzI,eAAe,SAAS,CAAC"}
@@ -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 { MessageAttachment, MessageAttachmentType, MessageInteractiveBody, MessageInteractiveOption, MessageResponse, MessageType, ServiceChatAttachment, ServiceChatAttachmentType, ServiceChatAudio, ServiceChatInteractiveBody, ServiceChatInteractiveOption, ServiceChatMessage, ServiceChatMessageAction, ServiceChatMessageAttachment, ServiceChatMessageAttachmentType, ServiceChatMessageFrom, ServiceChatMessageType, } from './types';
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 { MessageAttachment, MessageAttachmentType, MessageInteractiveBody, MessageInteractiveOption, MessageResponse, MessageType } from '@opens/gateways/chat-webservice';
2
- export type { MessageAttachment, MessageAttachmentType, MessageInteractiveBody, MessageInteractiveOption, MessageResponse, MessageType, };
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. */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-form-text-input.vue.d.ts","sourceRoot":"","sources":["../../src/components/inputs/app-form-text-input.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uHAAuH,CAAC;AAC9I,cAAc,uHAAuH,CAAC;AACtI,eAAe,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-text-input.vue.d.ts","sourceRoot":"","sources":["../../src/components/inputs/app-text-input.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kHAAkH,CAAC;AACzI,cAAc,kHAAkH,CAAC;AACjI,eAAe,SAAS,CAAC"}
@@ -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;
@@ -1,3 +1,2 @@
1
1
  import { Rule } from '@opens/gateways/chat-config';
2
- /** Material Icon name used as the default option glyph for a rule action. */
3
2
  export declare const resolveRuleOptionIcon: (rule: Pick<Rule, "action" | "settings">) => string;