@opens/widget-ui 1.5.1 → 1.6.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/components/icons/app-icon.vue.d.ts +1 -1
- package/dist/composables/use-app-widget.d.ts +6 -0
- package/dist/composables/use-hex-color.d.ts +4 -0
- package/dist/composables/use-widget-anchor.d.ts +1 -1
- package/dist/mocks/demo-config.d.ts +14 -4
- package/dist/utils/validate-chat-attachments.d.ts +7 -0
- 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 +409 -874
- package/dist/yunique_widget_ui.css +1 -1
- package/dist/yunique_widget_ui.es.js +3479 -3710
- package/dist/yunique_widget_ui.umd.js +410 -875
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -538,6 +538,9 @@ export declare const useAppWidget: () => {
|
|
|
538
538
|
notifications?: {
|
|
539
539
|
enabled: boolean;
|
|
540
540
|
} | undefined;
|
|
541
|
+
voiceRemoteAddress?: string | undefined;
|
|
542
|
+
voiceCode?: string | undefined;
|
|
543
|
+
voiceDevice?: string | undefined;
|
|
541
544
|
};
|
|
542
545
|
} | undefined, WidgetConfiguration | {
|
|
543
546
|
configurations: {
|
|
@@ -567,6 +570,9 @@ export declare const useAppWidget: () => {
|
|
|
567
570
|
notifications?: {
|
|
568
571
|
enabled: boolean;
|
|
569
572
|
} | undefined;
|
|
573
|
+
voiceRemoteAddress?: string | undefined;
|
|
574
|
+
voiceCode?: string | undefined;
|
|
575
|
+
voiceDevice?: string | undefined;
|
|
570
576
|
};
|
|
571
577
|
} | undefined>;
|
|
572
578
|
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: (
|
|
8
|
+
getTone: (_primaryColor?: string) => CSSProperties;
|
|
9
9
|
};
|
|
10
10
|
export {};
|
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
import { WidgetProviderConfig } from '@opens/gateways/chat-config';
|
|
2
|
-
|
|
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: "
|
|
14
|
+
defaultBehavior: "active";
|
|
8
15
|
language: "pt-BR";
|
|
9
16
|
isClosable: true;
|
|
10
17
|
};
|
|
11
18
|
appearance: {
|
|
12
|
-
theme: "
|
|
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
|
+
};
|
|
@@ -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=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=
|
|
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
|