@opens/widget-ui 1.6.0 → 1.7.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/{pages/app-article-page.vue.d.ts → app-article-page.vue.d.ts} +1 -1
- package/dist/app-article-page.vue.d.ts.map +1 -0
- package/dist/app-identification-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 +1 -1
- package/dist/components/icons/app-icon.vue.d.ts +1 -1
- package/dist/composables/use-app-widget.d.ts +87 -18
- package/dist/mocks/demo-config.d.ts +1 -27
- package/dist/utils/resolve-localized-text.d.ts +8 -0
- package/dist/utils/resolve-widget-language.d.ts +7 -0
- package/dist/widget/app-widget-anchor.vue.d.ts.map +1 -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 +11 -11
- package/dist/yunique_widget_ui.css +1 -1
- package/dist/yunique_widget_ui.es.js +2295 -2262
- package/dist/yunique_widget_ui.umd.js +12 -12
- package/package.json +3 -3
- package/dist/app-widget-anchor.vue.d.ts.map +0 -1
- package/dist/pages/app-article-page.vue.d.ts.map +0 -1
- package/dist/pages/app-identification-page.vue.d.ts.map +0 -1
- package/dist/pages/app-service-page.vue.d.ts.map +0 -1
- /package/dist/{pages/app-identification-page.vue.d.ts → app-identification-page.vue.d.ts} +0 -0
- /package/dist/{pages/app-service-page.vue.d.ts → app-service-page.vue.d.ts} +0 -0
- /package/dist/{app-widget-anchor.vue.d.ts → widget/app-widget-anchor.vue.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
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=
|
|
2
|
+
import "/opt/atlassian/pipelines/agent/build/src/components/pages/app-article-page.vue?vue&type=style&index=0&scoped=e558a3fb&lang.css";
|
|
3
3
|
import "/opt/atlassian/pipelines/agent/build/src/components/pages/app-article-page.vue?vue&type=style&index=1&lang.css";
|
|
4
4
|
declare const _default: any;
|
|
5
5
|
export default _default;
|
|
@@ -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-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"}
|
|
@@ -35,8 +35,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
35
35
|
}>> & Readonly<{
|
|
36
36
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
37
37
|
}>, {
|
|
38
|
-
small: boolean;
|
|
39
38
|
link: boolean;
|
|
39
|
+
small: boolean;
|
|
40
40
|
fit: boolean;
|
|
41
41
|
disabled: boolean;
|
|
42
42
|
fluid: boolean;
|
|
@@ -17,9 +17,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
17
17
|
dark: BooleanConstructor;
|
|
18
18
|
outlined: BooleanConstructor;
|
|
19
19
|
}>> & Readonly<{}>, {
|
|
20
|
+
small: boolean;
|
|
20
21
|
light: boolean;
|
|
21
22
|
dark: boolean;
|
|
22
|
-
small: boolean;
|
|
23
23
|
large: boolean;
|
|
24
24
|
base: boolean;
|
|
25
25
|
extraLarge: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rule, ScreenRuleHeaderComponent, WorkflowData } from '@opens/gateways/chat-config';
|
|
1
|
+
import { Rule, ScreenRuleHeaderComponent, WidgetLanguage, WorkflowData } from '@opens/gateways/chat-config';
|
|
2
2
|
import { WidgetConfiguration } from '../mocks/demo-config';
|
|
3
3
|
export declare const useAppWidget: () => {
|
|
4
4
|
chat: {
|
|
@@ -317,14 +317,34 @@ export declare const useAppWidget: () => {
|
|
|
317
317
|
} | undefined;
|
|
318
318
|
header?: {
|
|
319
319
|
logo?: string | undefined;
|
|
320
|
-
title?:
|
|
321
|
-
|
|
320
|
+
title?: {
|
|
321
|
+
"pt-BR": string;
|
|
322
|
+
"en-US": string;
|
|
323
|
+
"es-ES": string;
|
|
324
|
+
} | undefined;
|
|
325
|
+
subtitle?: {
|
|
326
|
+
"pt-BR": string;
|
|
327
|
+
"en-US": string;
|
|
328
|
+
"es-ES": string;
|
|
329
|
+
} | undefined;
|
|
322
330
|
} | undefined;
|
|
323
331
|
body?: {
|
|
324
332
|
logo?: string | undefined;
|
|
325
|
-
eyebrow?:
|
|
326
|
-
|
|
327
|
-
|
|
333
|
+
eyebrow?: {
|
|
334
|
+
"pt-BR": string;
|
|
335
|
+
"en-US": string;
|
|
336
|
+
"es-ES": string;
|
|
337
|
+
} | undefined;
|
|
338
|
+
title?: {
|
|
339
|
+
"pt-BR": string;
|
|
340
|
+
"en-US": string;
|
|
341
|
+
"es-ES": string;
|
|
342
|
+
} | undefined;
|
|
343
|
+
subtitle?: {
|
|
344
|
+
"pt-BR": string;
|
|
345
|
+
"en-US": string;
|
|
346
|
+
"es-ES": string;
|
|
347
|
+
} | undefined;
|
|
328
348
|
} | undefined;
|
|
329
349
|
features?: {
|
|
330
350
|
sendMessage?: boolean | undefined;
|
|
@@ -348,6 +368,11 @@ export declare const useAppWidget: () => {
|
|
|
348
368
|
required: boolean;
|
|
349
369
|
}[] | undefined;
|
|
350
370
|
} | undefined;
|
|
371
|
+
label?: {
|
|
372
|
+
"pt-BR": string;
|
|
373
|
+
"en-US": string;
|
|
374
|
+
"es-ES": string;
|
|
375
|
+
} | undefined;
|
|
351
376
|
} | null;
|
|
352
377
|
archivedAt: string | null;
|
|
353
378
|
autoTagEnabled: boolean;
|
|
@@ -466,14 +491,34 @@ export declare const useAppWidget: () => {
|
|
|
466
491
|
} | undefined;
|
|
467
492
|
header?: {
|
|
468
493
|
logo?: string | undefined;
|
|
469
|
-
title?:
|
|
470
|
-
|
|
494
|
+
title?: {
|
|
495
|
+
"pt-BR": string;
|
|
496
|
+
"en-US": string;
|
|
497
|
+
"es-ES": string;
|
|
498
|
+
} | undefined;
|
|
499
|
+
subtitle?: {
|
|
500
|
+
"pt-BR": string;
|
|
501
|
+
"en-US": string;
|
|
502
|
+
"es-ES": string;
|
|
503
|
+
} | undefined;
|
|
471
504
|
} | undefined;
|
|
472
505
|
body?: {
|
|
473
506
|
logo?: string | undefined;
|
|
474
|
-
eyebrow?:
|
|
475
|
-
|
|
476
|
-
|
|
507
|
+
eyebrow?: {
|
|
508
|
+
"pt-BR": string;
|
|
509
|
+
"en-US": string;
|
|
510
|
+
"es-ES": string;
|
|
511
|
+
} | undefined;
|
|
512
|
+
title?: {
|
|
513
|
+
"pt-BR": string;
|
|
514
|
+
"en-US": string;
|
|
515
|
+
"es-ES": string;
|
|
516
|
+
} | undefined;
|
|
517
|
+
subtitle?: {
|
|
518
|
+
"pt-BR": string;
|
|
519
|
+
"en-US": string;
|
|
520
|
+
"es-ES": string;
|
|
521
|
+
} | undefined;
|
|
477
522
|
} | undefined;
|
|
478
523
|
features?: {
|
|
479
524
|
sendMessage?: boolean | undefined;
|
|
@@ -497,6 +542,11 @@ export declare const useAppWidget: () => {
|
|
|
497
542
|
required: boolean;
|
|
498
543
|
}[] | undefined;
|
|
499
544
|
} | undefined;
|
|
545
|
+
label?: {
|
|
546
|
+
"pt-BR": string;
|
|
547
|
+
"en-US": string;
|
|
548
|
+
"es-ES": string;
|
|
549
|
+
} | undefined;
|
|
500
550
|
} | null;
|
|
501
551
|
archivedAt: string | null;
|
|
502
552
|
autoTagEnabled: boolean;
|
|
@@ -507,7 +557,8 @@ export declare const useAppWidget: () => {
|
|
|
507
557
|
}[];
|
|
508
558
|
edges: Record<string, import('@opens/gateways/chat-config').WorkflowEdge[]>;
|
|
509
559
|
} | undefined>;
|
|
510
|
-
|
|
560
|
+
languages: import('vue').ComputedRef<WidgetLanguage[]>;
|
|
561
|
+
language: import('vue').ComputedRef<WidgetLanguage>;
|
|
511
562
|
history: import('vue').Ref<string[], string[]>;
|
|
512
563
|
isOpen: import('vue').Ref<boolean, boolean>;
|
|
513
564
|
config: import('vue').Ref<{
|
|
@@ -515,7 +566,7 @@ export declare const useAppWidget: () => {
|
|
|
515
566
|
alias: string;
|
|
516
567
|
general: {
|
|
517
568
|
defaultBehavior: "active" | "inactive";
|
|
518
|
-
|
|
569
|
+
languages: WidgetLanguage[];
|
|
519
570
|
isClosable: boolean;
|
|
520
571
|
};
|
|
521
572
|
appearance: {
|
|
@@ -523,7 +574,11 @@ export declare const useAppWidget: () => {
|
|
|
523
574
|
primaryColor: string;
|
|
524
575
|
};
|
|
525
576
|
anchor: {
|
|
526
|
-
label:
|
|
577
|
+
label: {
|
|
578
|
+
"pt-BR": string;
|
|
579
|
+
"en-US": string;
|
|
580
|
+
"es-ES": string;
|
|
581
|
+
};
|
|
527
582
|
size: "small" | "medium" | "large";
|
|
528
583
|
logo?: string | undefined;
|
|
529
584
|
position: "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
@@ -533,7 +588,12 @@ export declare const useAppWidget: () => {
|
|
|
533
588
|
};
|
|
534
589
|
};
|
|
535
590
|
audio?: {
|
|
536
|
-
|
|
591
|
+
messageIncoming?: {
|
|
592
|
+
enabled: boolean;
|
|
593
|
+
} | undefined;
|
|
594
|
+
messageOutgoing?: {
|
|
595
|
+
enabled: boolean;
|
|
596
|
+
} | undefined;
|
|
537
597
|
} | undefined;
|
|
538
598
|
notifications?: {
|
|
539
599
|
enabled: boolean;
|
|
@@ -547,7 +607,7 @@ export declare const useAppWidget: () => {
|
|
|
547
607
|
alias: string;
|
|
548
608
|
general: {
|
|
549
609
|
defaultBehavior: "active" | "inactive";
|
|
550
|
-
|
|
610
|
+
languages: WidgetLanguage[];
|
|
551
611
|
isClosable: boolean;
|
|
552
612
|
};
|
|
553
613
|
appearance: {
|
|
@@ -555,7 +615,11 @@ export declare const useAppWidget: () => {
|
|
|
555
615
|
primaryColor: string;
|
|
556
616
|
};
|
|
557
617
|
anchor: {
|
|
558
|
-
label:
|
|
618
|
+
label: {
|
|
619
|
+
"pt-BR": string;
|
|
620
|
+
"en-US": string;
|
|
621
|
+
"es-ES": string;
|
|
622
|
+
};
|
|
559
623
|
size: "small" | "medium" | "large";
|
|
560
624
|
logo?: string | undefined;
|
|
561
625
|
position: "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
@@ -565,7 +629,12 @@ export declare const useAppWidget: () => {
|
|
|
565
629
|
};
|
|
566
630
|
};
|
|
567
631
|
audio?: {
|
|
568
|
-
|
|
632
|
+
messageIncoming?: {
|
|
633
|
+
enabled: boolean;
|
|
634
|
+
} | undefined;
|
|
635
|
+
messageOutgoing?: {
|
|
636
|
+
enabled: boolean;
|
|
637
|
+
} | undefined;
|
|
569
638
|
} | undefined;
|
|
570
639
|
notifications?: {
|
|
571
640
|
enabled: boolean;
|
|
@@ -7,30 +7,4 @@ export type WidgetConfiguration = Pick<WidgetProviderConfig, 'configurations'> &
|
|
|
7
7
|
voiceDevice?: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
export declare const demoWidgetConfig:
|
|
11
|
-
configurations: {
|
|
12
|
-
alias: string;
|
|
13
|
-
general: {
|
|
14
|
-
defaultBehavior: "active";
|
|
15
|
-
language: "pt-BR";
|
|
16
|
-
isClosable: true;
|
|
17
|
-
};
|
|
18
|
-
appearance: {
|
|
19
|
-
theme: "light";
|
|
20
|
-
primaryColor: string;
|
|
21
|
-
};
|
|
22
|
-
anchor: {
|
|
23
|
-
label: string;
|
|
24
|
-
size: "medium";
|
|
25
|
-
position: "bottom-right";
|
|
26
|
-
offset: {
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
|
-
};
|
|
30
|
-
logo: string;
|
|
31
|
-
};
|
|
32
|
-
voiceRemoteAddress: string;
|
|
33
|
-
voiceCode: string;
|
|
34
|
-
voiceDevice: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
10
|
+
export declare const demoWidgetConfig: WidgetConfiguration;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WidgetLanguage } from '@opens/gateways/chat-config';
|
|
2
|
+
type LocalizedText = string | Partial<Record<WidgetLanguage, string>> | null | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Resolves a localized string for the active widget language.
|
|
5
|
+
* Accepts legacy plain strings and Record-by-language values.
|
|
6
|
+
*/
|
|
7
|
+
export declare const resolveLocalizedText: (value: LocalizedText, language: WidgetLanguage) => string;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WidgetLanguage } from '@opens/gateways/chat-config';
|
|
2
|
+
/**
|
|
3
|
+
* Picks the active widget language from the configured list.
|
|
4
|
+
* - one language: always that language (preview can force a locale)
|
|
5
|
+
* - many languages: match browser locale, then en-US → es-ES → pt-BR
|
|
6
|
+
*/
|
|
7
|
+
export declare const resolveWidgetLanguage: (languages?: readonly WidgetLanguage[], locale?: string) => WidgetLanguage;
|
|
@@ -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=
|
|
2
|
+
import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget-view.vue?vue&type=style&index=0&scoped=19999fa9&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=186731ce&lang.css";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=app-widget.vue.d.ts.map
|