@opens/widget-ui 1.5.1 → 1.6.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-edge.vue.d.ts","sourceRoot":"","sources":["../src/components/edges/app-edge.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,2GAA2G,CAAC;AAClI,cAAc,2GAA2G,CAAC;AAC1H,eAAe,SAAS,CAAC"}
@@ -17,8 +17,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
17
17
  dark: BooleanConstructor;
18
18
  outlined: BooleanConstructor;
19
19
  }>> & Readonly<{}>, {
20
- dark: boolean;
21
20
  light: boolean;
21
+ dark: boolean;
22
22
  small: boolean;
23
23
  large: boolean;
24
24
  base: boolean;
@@ -533,11 +533,19 @@ export declare const useAppWidget: () => {
533
533
  };
534
534
  };
535
535
  audio?: {
536
- enabled: boolean;
536
+ messageIncoming?: {
537
+ enabled: boolean;
538
+ } | undefined;
539
+ messageOutgoing?: {
540
+ enabled: boolean;
541
+ } | undefined;
537
542
  } | undefined;
538
543
  notifications?: {
539
544
  enabled: boolean;
540
545
  } | undefined;
546
+ voiceRemoteAddress?: string | undefined;
547
+ voiceCode?: string | undefined;
548
+ voiceDevice?: string | undefined;
541
549
  };
542
550
  } | undefined, WidgetConfiguration | {
543
551
  configurations: {
@@ -562,11 +570,19 @@ export declare const useAppWidget: () => {
562
570
  };
563
571
  };
564
572
  audio?: {
565
- enabled: boolean;
573
+ messageIncoming?: {
574
+ enabled: boolean;
575
+ } | undefined;
576
+ messageOutgoing?: {
577
+ enabled: boolean;
578
+ } | undefined;
566
579
  } | undefined;
567
580
  notifications?: {
568
581
  enabled: boolean;
569
582
  } | undefined;
583
+ voiceRemoteAddress?: string | undefined;
584
+ voiceCode?: string | undefined;
585
+ voiceDevice?: string | undefined;
570
586
  };
571
587
  } | undefined>;
572
588
  edges: import('vue').ComputedRef<Rule[]>;
@@ -4,7 +4,11 @@ type Rgb = {
4
4
  b: number;
5
5
  };
6
6
  export declare const useHexColor: () => {
7
+ getLuminance: (hex: string) => number | null;
7
8
  isLightHex: (hex: string) => boolean;
9
+ isNearWhiteHex: (hex: string) => boolean;
10
+ isTooDarkForDarkCanvas: (hex: string) => boolean;
11
+ mixWithWhite: (hex: string, amount: number) => string;
8
12
  normalizeHex: (hex: string) => string;
9
13
  parseHex: (hex: string) => Rgb | null;
10
14
  };
@@ -5,6 +5,6 @@ type AnchorOffset = WidgetConfiguration['configurations']['anchor']['offset'];
5
5
  export declare const useWidgetAnchor: () => {
6
6
  getOffset: (position: AnchorPosition, anchorOffset: AnchorOffset) => CSSProperties;
7
7
  getPosition: (position: AnchorPosition) => string;
8
- getTone: (primaryColor: string) => CSSProperties;
8
+ getTone: (_primaryColor?: string) => CSSProperties;
9
9
  };
10
10
  export {};
@@ -1,26 +1,36 @@
1
1
  import { WidgetProviderConfig } from '@opens/gateways/chat-config';
2
- export type WidgetConfiguration = Pick<WidgetProviderConfig, 'configurations'>;
2
+ /** Local demo config type — widens gateway configs with voice fields present in channel data. */
3
+ export type WidgetConfiguration = Pick<WidgetProviderConfig, 'configurations'> & {
4
+ configurations: WidgetProviderConfig['configurations'] & {
5
+ voiceRemoteAddress?: string;
6
+ voiceCode?: string;
7
+ voiceDevice?: string;
8
+ };
9
+ };
3
10
  export declare const demoWidgetConfig: {
4
11
  configurations: {
5
12
  alias: string;
6
13
  general: {
7
- defaultBehavior: "inactive";
14
+ defaultBehavior: "active";
8
15
  language: "pt-BR";
9
16
  isClosable: true;
10
17
  };
11
18
  appearance: {
12
- theme: "dark";
19
+ theme: "light";
13
20
  primaryColor: string;
14
21
  };
15
22
  anchor: {
16
23
  label: string;
17
24
  size: "medium";
18
- logo: string;
19
25
  position: "bottom-right";
20
26
  offset: {
21
27
  x: number;
22
28
  y: number;
23
29
  };
30
+ logo: string;
24
31
  };
32
+ voiceRemoteAddress: string;
33
+ voiceCode: string;
34
+ voiceDevice: string;
25
35
  };
26
36
  };
@@ -0,0 +1,7 @@
1
+ export declare const CHAT_ATTACHMENT_LIMITS_MB: Record<string, number>;
2
+ export declare const DEFAULT_CHAT_ATTACHMENT_LIMIT_MB = 25;
3
+ export declare const getChatAttachmentLimitMb: (file: Pick<File, "type">) => number;
4
+ export declare const validateChatAttachments: (files: File[]) => {
5
+ validFiles: File[];
6
+ errors: string[];
7
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-widget-anchor.vue.d.ts","sourceRoot":"","sources":["../../src/components/widget/app-widget-anchor.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qHAAqH,CAAC;AAC5I,cAAc,qHAAqH,CAAC;AACpI,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=700b6585&lang.css";
2
+ import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget-view.vue?vue&type=style&index=0&scoped=7ef2dcd4&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=877709ba&lang.css";
2
+ import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget.vue?vue&type=style&index=0&scoped=98ee11c8&lang.css";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=app-widget.vue.d.ts.map