@opens/widget-ui 1.0.11 → 1.0.13

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 (37) hide show
  1. package/README.md +1 -1
  2. package/dist/app-icon.vue.d.ts.map +1 -0
  3. package/dist/components/pages/app-service-page.vue.d.ts +2 -0
  4. package/dist/components/typography/use-typography-classes.d.ts +30 -30
  5. package/dist/components/ui/app-empty.vue.d.ts +18 -0
  6. package/dist/components/ui/app-skeleton.vue.d.ts +14 -0
  7. package/dist/components/widget/app-widget-view.vue.d.ts +2 -0
  8. package/dist/components/widget/app-widget.vue.d.ts +2 -0
  9. package/dist/composables/use-app-widget.d.ts +3 -0
  10. package/dist/composables/use-button-style.d.ts +3 -3
  11. package/dist/composables/use-input-style.d.ts +2 -2
  12. package/dist/composables/use-service-chat-behavior.d.ts +3 -0
  13. package/dist/composables/use-service-page.d.ts +3 -0
  14. package/dist/composables/use-widget-appearance.d.ts +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/main.d.ts +3 -1
  17. package/dist/pages/app-identification-page.vue.d.ts.map +1 -0
  18. package/dist/pages/app-screen-page.vue.d.ts.map +1 -0
  19. package/dist/typography/app-text.vue.d.ts +1 -1
  20. package/dist/ui/app-carousel.vue.d.ts +1 -1
  21. package/dist/ui/app-empty.vue.d.ts +4 -0
  22. package/dist/ui/app-empty.vue.d.ts.map +1 -0
  23. package/dist/ui/app-skeleton.vue.d.ts +4 -0
  24. package/dist/ui/app-skeleton.vue.d.ts.map +1 -0
  25. package/dist/widget/app-widget-view.vue.d.ts +1 -1
  26. package/dist/widget/app-widget.vue.d.ts +1 -1
  27. package/dist/yunique_widget_ui.cjs.js +1 -1
  28. package/dist/yunique_widget_ui.css +1 -1
  29. package/dist/yunique_widget_ui.es.js +1363 -1244
  30. package/dist/yunique_widget_ui.umd.js +2 -2
  31. package/package.json +1 -1
  32. package/dist/app-identification-page.vue.d.ts.map +0 -1
  33. package/dist/app-screen-page.vue.d.ts.map +0 -1
  34. package/dist/icons/app-icon.vue.d.ts.map +0 -1
  35. /package/dist/{icons/app-icon.vue.d.ts → app-icon.vue.d.ts} +0 -0
  36. /package/dist/{app-identification-page.vue.d.ts → pages/app-identification-page.vue.d.ts} +0 -0
  37. /package/dist/{app-screen-page.vue.d.ts → pages/app-screen-page.vue.d.ts} +0 -0
package/README.md CHANGED
@@ -38,4 +38,4 @@ npm run test:unit
38
38
  - `src/composables` — composables
39
39
  - `__tests__` — testes unitários (espelha a estrutura de `src`)
40
40
  - `src/*.story.vue` — stories do Histoire (junto ao componente)
41
- - Configs: Vite, Tailwind (`yu-` prefix), Histoire, Vitest, Cypress
41
+ - Configs: Vite, Tailwind (`wu-` prefix), Histoire, Vitest, Cypress
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-icon.vue.d.ts","sourceRoot":"","sources":["../src/components/icons/app-icon.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,2GAA2G,CAAC;AAClI,cAAc,2GAA2G,CAAC;AAC1H,eAAe,SAAS,CAAC"}
@@ -5,7 +5,9 @@ type __VLS_Props = {
5
5
  };
6
6
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
7
  "send-message": (text: string) => any;
8
+ "retry-loading-messages": () => any;
8
9
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
10
  "onSend-message"?: ((text: string) => any) | undefined;
11
+ "onRetry-loading-messages"?: (() => any) | undefined;
10
12
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
13
  export default _default;
@@ -1,43 +1,43 @@
1
1
  import { IElement, ITypographyProps } from './types';
2
2
  export declare function useTypographyClasses(element: IElement, props: ITypographyProps): {
3
3
  fontClass: import('vue').ComputedRef<{
4
- '!yu-font-plus': boolean | undefined;
5
- '!yu-font-inter': boolean | undefined;
6
- '!yu-font-titillium': boolean | undefined;
7
- '!yu-font-mono': boolean | undefined;
4
+ '!wu-font-plus': boolean | undefined;
5
+ '!wu-font-inter': boolean | undefined;
6
+ '!wu-font-titillium': boolean | undefined;
7
+ '!wu-font-mono': boolean | undefined;
8
8
  }>;
9
9
  colorClass: import('vue').ComputedRef<{
10
- '!yu-text-white': boolean | undefined;
11
- '!yu-text-primary': boolean | undefined;
12
- '!yu-text-secondary': boolean | undefined;
13
- '!yu-text-base': boolean | undefined;
14
- '!yu-text-neutral dark:!yu-text-neutral-200': boolean | undefined;
10
+ '!wu-text-white': boolean | undefined;
11
+ '!wu-text-primary': boolean | undefined;
12
+ '!wu-text-secondary': boolean | undefined;
13
+ '!wu-text-base': boolean | undefined;
14
+ '!wu-text-neutral dark:!wu-text-neutral-200': boolean | undefined;
15
15
  }>;
16
16
  weightClass: import('vue').ComputedRef<{
17
- '!yu-font-thin': boolean | undefined;
18
- '!yu-font-extralight': boolean | undefined;
19
- '!yu-font-light': boolean | undefined;
20
- '!yu-font-normal': boolean | undefined;
21
- '!yu-font-medium': boolean | undefined;
22
- '!yu-font-semibold': boolean | undefined;
23
- '!yu-font-bold': boolean | undefined;
24
- '!yu-font-extrabold': boolean | undefined;
25
- '!yu-font-black': boolean | undefined;
17
+ '!wu-font-thin': boolean | undefined;
18
+ '!wu-font-extralight': boolean | undefined;
19
+ '!wu-font-light': boolean | undefined;
20
+ '!wu-font-normal': boolean | undefined;
21
+ '!wu-font-medium': boolean | undefined;
22
+ '!wu-font-semibold': boolean | undefined;
23
+ '!wu-font-bold': boolean | undefined;
24
+ '!wu-font-extrabold': boolean | undefined;
25
+ '!wu-font-black': boolean | undefined;
26
26
  }>;
27
27
  sizeClass: import('vue').ComputedRef<{
28
- '!yu-text-xl': boolean | undefined;
29
- '!yu-text-2xl': boolean | undefined;
30
- '!yu-text-3xl': boolean | undefined;
31
- '!yu-text-4xl': boolean | undefined;
28
+ '!wu-text-xl': boolean | undefined;
29
+ '!wu-text-2xl': boolean | undefined;
30
+ '!wu-text-3xl': boolean | undefined;
31
+ '!wu-text-4xl': boolean | undefined;
32
32
  } | {
33
- '!yu-text-sm': boolean | undefined;
34
- '!yu-text-md': boolean | undefined;
35
- '!yu-text-xl': boolean | undefined;
33
+ '!wu-text-sm': boolean | undefined;
34
+ '!wu-text-md': boolean | undefined;
35
+ '!wu-text-xl': boolean | undefined;
36
36
  } | {
37
- '!yu-text-xxs': boolean | undefined;
38
- '!yu-text-xs': boolean | undefined;
39
- '!yu-text-sm': boolean | undefined;
40
- '!yu-text-lg': boolean | undefined;
41
- '!yu-text-2xl': boolean | undefined;
37
+ '!wu-text-xxs': boolean | undefined;
38
+ '!wu-text-xs': boolean | undefined;
39
+ '!wu-text-sm': boolean | undefined;
40
+ '!wu-text-lg': boolean | undefined;
41
+ '!wu-text-2xl': boolean | undefined;
42
42
  }>;
43
43
  };
@@ -0,0 +1,18 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ error: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ refetch: (...args: any[]) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ error: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }>> & Readonly<{
14
+ onRefetch?: ((...args: any[]) => any) | undefined;
15
+ }>, {
16
+ error: boolean;
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ round: BooleanConstructor;
3
+ fluid: BooleanConstructor;
4
+ block: BooleanConstructor;
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
6
+ round: BooleanConstructor;
7
+ fluid: BooleanConstructor;
8
+ block: BooleanConstructor;
9
+ }>> & Readonly<{}>, {
10
+ fluid: boolean;
11
+ round: boolean;
12
+ block: boolean;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ export default _default;
@@ -10,12 +10,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
10
10
  back: () => any;
11
11
  close: () => any;
12
12
  "send-message": (text: string) => any;
13
+ "retry-loading-messages": () => any;
13
14
  "edge-click": (edge: Rule) => any;
14
15
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
16
  onSubmit?: ((values: Record<string, string>) => any) | undefined;
16
17
  onBack?: (() => any) | undefined;
17
18
  onClose?: (() => any) | undefined;
18
19
  "onSend-message"?: ((text: string) => any) | undefined;
20
+ "onRetry-loading-messages"?: (() => any) | undefined;
19
21
  "onEdge-click"?: ((edge: Rule) => any) | undefined;
20
22
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
23
  export default _default;
@@ -10,6 +10,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
10
10
  back: () => any;
11
11
  close: () => any;
12
12
  "send-message": (text: string) => any;
13
+ "retry-loading-messages": () => any;
13
14
  open: () => any;
14
15
  "edge-click": (edge: Rule) => any;
15
16
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -17,6 +18,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
17
18
  onBack?: (() => any) | undefined;
18
19
  onClose?: (() => any) | undefined;
19
20
  "onSend-message"?: ((text: string) => any) | undefined;
21
+ "onRetry-loading-messages"?: (() => any) | undefined;
20
22
  onOpen?: (() => any) | undefined;
21
23
  "onEdge-click"?: ((edge: Rule) => any) | undefined;
22
24
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,6 +1,9 @@
1
1
  import { Rule, WorkflowData } from '@opens/gateways/chat-config';
2
2
  export declare const useAppWidget: () => {
3
3
  chat: {
4
+ isErrorLoadingMessages: import('vue').Ref<boolean, boolean>;
5
+ isLoadingMessages: import('vue').Ref<boolean, boolean>;
6
+ isSendingMessage: import('vue').Ref<boolean, boolean>;
4
7
  messages: import('vue').Ref<{
5
8
  from: import('./use-service-chat-behavior').ServiceChatMessageFrom;
6
9
  text: string;
@@ -3,9 +3,9 @@ interface StyleProps {
3
3
  small?: boolean;
4
4
  }
5
5
  export declare function useButtonStyle(props: StyleProps): {
6
- height: import('vue').ComputedRef<"" | "!yu-h-8 !yu-min-h-[2rem]">;
6
+ height: import('vue').ComputedRef<"" | "!wu-h-8 !wu-min-h-[2rem]">;
7
7
  textSize: import('vue').ComputedRef<string>;
8
- padding: import('vue').ComputedRef<"yu-px-[0.625rem]" | "yu-p-[0.9rem]">;
9
- width: import('vue').ComputedRef<"!yu-w-full" | "yu-w-fit">;
8
+ padding: import('vue').ComputedRef<"wu-px-[0.625rem]" | "wu-p-[0.9rem]">;
9
+ width: import('vue').ComputedRef<"!wu-w-full" | "wu-w-fit">;
10
10
  };
11
11
  export {};
@@ -3,8 +3,8 @@ interface StyleProps {
3
3
  small?: boolean;
4
4
  }
5
5
  export declare function useInputStyle(props: StyleProps): {
6
- height: import('vue').ComputedRef<"!yu-h-8 !yu-min-h-[2rem]" | "!yu-h-12 !yu-min-h-[3rem]">;
6
+ height: import('vue').ComputedRef<"!wu-h-8 !wu-min-h-[2rem]" | "!wu-h-12 !wu-min-h-[3rem]">;
7
7
  textSize: import('vue').ComputedRef<string>;
8
- width: import('vue').ComputedRef<"!yu-w-full" | "yu-w-fit">;
8
+ width: import('vue').ComputedRef<"!wu-w-full" | "wu-w-fit">;
9
9
  };
10
10
  export {};
@@ -4,6 +4,9 @@ export type ServiceChatMessage = {
4
4
  text: string;
5
5
  };
6
6
  export declare function useServiceChatBehavior(): {
7
+ isErrorLoadingMessages: import('vue').Ref<boolean, boolean>;
8
+ isLoadingMessages: import('vue').Ref<boolean, boolean>;
9
+ isSendingMessage: import('vue').Ref<boolean, boolean>;
7
10
  messages: import('vue').Ref<{
8
11
  from: ServiceChatMessageFrom;
9
12
  text: string;
@@ -1,5 +1,8 @@
1
1
  export declare function useServicePage(): {
2
2
  chat: {
3
+ isErrorLoadingMessages: import('vue').Ref<boolean, boolean>;
4
+ isLoadingMessages: import('vue').Ref<boolean, boolean>;
5
+ isSendingMessage: import('vue').Ref<boolean, boolean>;
3
6
  messages: import('vue').Ref<{
4
7
  from: import('./use-service-chat-behavior').ServiceChatMessageFrom;
5
8
  text: string;
@@ -7,7 +7,7 @@ type WidgetAppearance = {
7
7
  };
8
8
  export declare const useWidgetAppearance: (appearance: MaybeRefOrGetter<WidgetAppearance>) => {
9
9
  isDark: import('vue').ComputedRef<boolean>;
10
- themeClass: import('vue').ComputedRef<"" | "yu-dark">;
10
+ themeClass: import('vue').ComputedRef<"" | "wu-dark">;
11
11
  resolvedTheme: import('vue').ComputedRef<ResolvedWidgetTheme>;
12
12
  appearanceStyle: import('vue').ComputedRef<{
13
13
  colorScheme: ResolvedWidgetTheme;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { default, AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppMessage, AppButton, AppWidget, AppGroup, AppIcon, AppText, } from './main';
1
+ export { default, AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppSkeleton, AppMessage, AppButton, AppWidget, AppEmpty, AppGroup, AppIcon, AppText, } from './main';
2
2
  export type { ServiceChatMessage, ServiceChatMessageFrom } from './composables/use-service-chat-behavior';
3
3
  export { useServiceVoiceBehavior } from './composables/use-service-voice-behavior';
4
4
  export { useServiceChatBehavior } from './composables/use-service-chat-behavior';
package/dist/main.d.ts CHANGED
@@ -11,13 +11,15 @@ import { default as AppButton } from './components/buttons/app-button.vue';
11
11
  import { default as AppText } from './components/typography/app-text.vue';
12
12
  import { default as AppWidget } from './components/widget/app-widget.vue';
13
13
  import { default as AppCarousel } from './components/ui/app-carousel.vue';
14
+ import { default as AppSkeleton } from './components/ui/app-skeleton.vue';
14
15
  import { default as AppIcon } from './components/icons/app-icon.vue';
16
+ import { default as AppEmpty } from './components/ui/app-empty.vue';
15
17
  import { default as AppGroup } from './components/ui/app-group.vue';
16
18
  declare const _default: {
17
19
  install: (app: App) => void;
18
20
  };
19
21
  export default _default;
20
- export { AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppMessage, AppWidget, AppButton, AppGroup, AppIcon, AppText, };
22
+ export { AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppSkeleton, AppEmpty, AppMessage, AppWidget, AppButton, AppGroup, AppIcon, AppText, };
21
23
  export type { ServiceChatMessage, ServiceChatMessageFrom } from './composables/use-service-chat-behavior';
22
24
  export { useServiceVoiceBehavior } from './composables/use-service-voice-behavior';
23
25
  export { useServiceChatBehavior } from './composables/use-service-chat-behavior';
@@ -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"}
@@ -1,5 +1,5 @@
1
1
  export * from "/opt/atlassian/pipelines/agent/build/src/components/typography/app-text.vue?vue&type=script&setup=true&lang.ts";
2
- import "/opt/atlassian/pipelines/agent/build/src/components/typography/app-text.vue?vue&type=style&index=0&scoped=030e2417&lang.css";
2
+ import "/opt/atlassian/pipelines/agent/build/src/components/typography/app-text.vue?vue&type=style&index=0&scoped=5fc0fe9d&lang.css";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=app-text.vue.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export * from "/opt/atlassian/pipelines/agent/build/src/components/ui/app-carousel.vue?vue&type=script&setup=true&lang.ts";
2
- import "/opt/atlassian/pipelines/agent/build/src/components/ui/app-carousel.vue?vue&type=style&index=0&scoped=c6006063&lang.css";
2
+ import "/opt/atlassian/pipelines/agent/build/src/components/ui/app-carousel.vue?vue&type=style&index=0&scoped=744169d9&lang.css";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=app-carousel.vue.d.ts.map
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/ui/app-empty.vue?vue&type=script&setup=true&lang.ts";
2
+ export * from "/opt/atlassian/pipelines/agent/build/src/components/ui/app-empty.vue?vue&type=script&setup=true&lang.ts";
3
+ export default _sfc_main;
4
+ //# sourceMappingURL=app-empty.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-empty.vue.d.ts","sourceRoot":"","sources":["../../src/components/ui/app-empty.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,yGAAyG,CAAC;AAChI,cAAc,yGAAyG,CAAC;AACxH,eAAe,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/ui/app-skeleton.vue?vue&type=script&setup=true&lang.ts";
2
+ export * from "/opt/atlassian/pipelines/agent/build/src/components/ui/app-skeleton.vue?vue&type=script&setup=true&lang.ts";
3
+ export default _sfc_main;
4
+ //# sourceMappingURL=app-skeleton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-skeleton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ui/app-skeleton.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,4GAA4G,CAAC;AACnI,cAAc,4GAA4G,CAAC;AAC3H,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=5996da4f&lang.css";
2
+ import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget-view.vue?vue&type=style&index=0&scoped=fbee4c58&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=5da01276&lang.css";
2
+ import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget.vue?vue&type=style&index=0&scoped=cabdae96&lang.css";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=app-widget.vue.d.ts.map