@opens/widget-ui 1.0.3 → 1.0.5

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.
@@ -5,6 +5,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
5
5
  type: StringConstructor;
6
6
  default: string;
7
7
  };
8
+ label: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
8
12
  outline: BooleanConstructor;
9
13
  ghost: BooleanConstructor;
10
14
  disabled: BooleanConstructor;
@@ -18,6 +22,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
18
22
  type: StringConstructor;
19
23
  default: string;
20
24
  };
25
+ label: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
21
29
  outline: BooleanConstructor;
22
30
  ghost: BooleanConstructor;
23
31
  disabled: BooleanConstructor;
@@ -25,6 +33,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
25
33
  }>> & Readonly<{
26
34
  onClick?: ((event: MouseEvent) => any) | undefined;
27
35
  }>, {
36
+ label: string;
28
37
  small: boolean;
29
38
  large: boolean;
30
39
  disabled: boolean;
@@ -0,0 +1,19 @@
1
+ import { Rule, WorkflowData } from '@opens/gateways/chat-config';
2
+ import { WidgetConfiguration } from '../../mocks/demo-config';
3
+ type __VLS_Props = {
4
+ workflow: WorkflowData;
5
+ config: WidgetConfiguration;
6
+ fullscreen?: boolean;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ submit: (values: Record<string, string>) => any;
10
+ back: () => any;
11
+ close: () => any;
12
+ "edge-click": (edge: Rule) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onSubmit?: ((values: Record<string, string>) => any) | undefined;
15
+ onBack?: (() => any) | undefined;
16
+ onClose?: (() => any) | undefined;
17
+ "onEdge-click"?: ((edge: Rule) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -1,5 +1,5 @@
1
- import { Rule, WidgetProviderConfig, WorkflowData } from '@opens/gateways/chat-config';
2
- type WidgetConfiguration = Pick<WidgetProviderConfig, 'configurations'>;
1
+ import { Rule, WorkflowData } from '@opens/gateways/chat-config';
2
+ import { WidgetConfiguration } from '../../mocks/demo-config';
3
3
  type __VLS_Props = {
4
4
  workflow: WorkflowData;
5
5
  config: WidgetConfiguration;
@@ -10,10 +10,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
10
10
  back: () => any;
11
11
  close: () => any;
12
12
  "edge-click": (edge: Rule) => any;
13
+ open: () => any;
13
14
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
15
  onSubmit?: ((values: Record<string, string>) => any) | undefined;
15
16
  onBack?: (() => any) | undefined;
16
17
  onClose?: (() => any) | undefined;
17
18
  "onEdge-click"?: ((edge: Rule) => any) | undefined;
19
+ onOpen?: (() => any) | undefined;
18
20
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
21
  export default _default;
@@ -1,5 +1,7 @@
1
1
  export declare function useAppWidget(): {
2
+ currentRuleId: import('vue').Ref<string | undefined, string | undefined>;
2
3
  history: import('vue').Ref<string[], string[]>;
4
+ setCurrentRuleId: (id: string | undefined) => void;
3
5
  clearHistory: () => void;
4
6
  pushHistory: (id: string) => void;
5
7
  setHistory: (ids: string[]) => void;
@@ -0,0 +1,3 @@
1
+ export declare const useHexColor: () => {
2
+ isLightHex: (hex: string) => boolean;
3
+ };
@@ -0,0 +1,10 @@
1
+ import { WidgetConfiguration } from '../mocks/demo-config';
2
+ import { CSSProperties } from 'vue';
3
+ type AnchorPosition = WidgetConfiguration['configurations']['anchor']['position'];
4
+ type AnchorOffset = WidgetConfiguration['configurations']['anchor']['offset'];
5
+ export declare const useWidgetAnchor: () => {
6
+ getOffset: (position: AnchorPosition, anchorOffset: AnchorOffset) => CSSProperties;
7
+ getPosition: (position: AnchorPosition) => string;
8
+ getTone: (primaryColor: string) => CSSProperties;
9
+ };
10
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- export { default, AppIdentificationPage, AppServicePage, AppScreenPage, AppFormTextInput, AppTextInput, AppButton, AppWidget, AppAnchor, AppCarousel, AppGroup, AppMessage, AppIcon, AppText, } from './main';
1
+ export { default, AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppMessage, AppButton, AppWidget, AppGroup, AppIcon, AppText, } from './main';
2
2
  export { useMaskFunctions } from './composables/use-mask-functions';
3
3
  export type { MaskFunction } from './composables/use-mask-functions';
4
4
  export { useAppWidget } from './composables/use-app-widget';
5
- export { useAppFlow, getWorkflowEdges, getWorkflowRootRule } from './composables/use-app-flow';
6
- export { demoWidgetConfig } from './mocks/demo-config';
7
- export type { WidgetConfiguration } from './mocks/demo-config';
8
5
  export { demoWorkflow, demoRootRule, findDemoRuleById } from './mocks/demo-workflow';
6
+ export type { WidgetConfiguration } from './mocks/demo-config';
7
+ export { demoWidgetConfig } from './mocks/demo-config';
package/dist/main.d.ts CHANGED
@@ -1,24 +1,24 @@
1
1
  import { App } from 'vue';
2
2
  import { default as AppIdentificationPage } from './components/pages/app-identification-page.vue';
3
+ import { default as AppFormTextInput } from './components/inputs/app-form-text-input.vue';
4
+ import { default as AppWidgetAnchor } from './components/widget/app-widget-anchor.vue';
3
5
  import { default as AppServicePage } from './components/pages/app-service-page.vue';
6
+ import { default as AppWidgetView } from './components/widget/app-widget-view.vue';
4
7
  import { default as AppScreenPage } from './components/pages/app-screen-page.vue';
5
- import { default as AppFormTextInput } from './components/inputs/app-form-text-input.vue';
6
8
  import { default as AppTextInput } from './components/inputs/app-text-input.vue';
7
9
  import { default as AppMessage } from './components/messages/app-message.vue';
8
10
  import { default as AppButton } from './components/buttons/app-button.vue';
9
11
  import { default as AppText } from './components/typography/app-text.vue';
10
12
  import { default as AppWidget } from './components/widget/app-widget.vue';
11
- import { default as AppAnchor } from './components/widget/app-anchor.vue';
12
- import { default as AppIcon } from './components/icons/app-icon.vue';
13
13
  import { default as AppCarousel } from './components/ui/app-carousel.vue';
14
+ import { default as AppIcon } from './components/icons/app-icon.vue';
14
15
  import { default as AppGroup } from './components/ui/app-group.vue';
15
16
  declare const _default: {
16
17
  install: (app: App) => void;
17
18
  };
18
19
  export default _default;
19
- export { AppIdentificationPage, AppServicePage, AppScreenPage, AppFormTextInput, AppTextInput, AppMessage, AppWidget, AppAnchor, AppButton, AppCarousel, AppGroup, AppIcon, AppText, };
20
- export { demoWidgetConfig } from './mocks/demo-config';
21
- export type { WidgetConfiguration } from './mocks/demo-config';
22
- export { demoWorkflow, demoRootRule, findDemoRuleById } from './mocks/demo-workflow';
20
+ export { AppIdentificationPage, AppFormTextInput, AppWidgetAnchor, AppServicePage, AppWidgetView, AppScreenPage, AppTextInput, AppCarousel, AppMessage, AppWidget, AppButton, AppGroup, AppIcon, AppText, };
23
21
  export { useAppWidget } from './composables/use-app-widget';
24
- export { useAppFlow, getWorkflowEdges, getWorkflowRootRule } from './composables/use-app-flow';
22
+ export { demoWorkflow, demoRootRule, findDemoRuleById } from './mocks/demo-workflow';
23
+ export type { WidgetConfiguration } from './mocks/demo-config';
24
+ export { demoWidgetConfig } from './mocks/demo-config';
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget-anchor.vue?vue&type=script&setup=true&lang.ts";
2
+ export * from "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget-anchor.vue?vue&type=script&setup=true&lang.ts";
3
+ export default _sfc_main;
4
+ //# sourceMappingURL=app-widget-anchor.vue.d.ts.map
@@ -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"}
@@ -0,0 +1,5 @@
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=685573f8&lang.css";
3
+ declare const _default: any;
4
+ export default _default;
5
+ //# sourceMappingURL=app-widget-view.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-widget-view.vue.d.ts","sourceRoot":"","sources":["../../src/components/widget/app-widget-view.vue"],"names":[],"mappings":"AACA,cAAc,mHAAmH,CAAC;AAClI,OAAO,gIAAgI,CAAC;;AAExI,wBAA0F"}
@@ -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=ffab5770&lang.css";
2
+ import "/opt/atlassian/pipelines/agent/build/src/components/widget/app-widget.vue?vue&type=style&index=0&scoped=1610b3a0&lang.css";
3
3
  declare const _default: any;
4
4
  export default _default;
5
5
  //# sourceMappingURL=app-widget.vue.d.ts.map