@confidencesystemsinc/sdk 1.5.9 → 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.
@@ -1,5 +1,5 @@
1
- import { ConfidenceComment, CommentType } from '../../types/comments.types';
2
1
  import { IconDefinition } from '@fortawesome/pro-solid-svg-icons';
2
+ import { ConfidenceComment, CommentType } from '../../types/comments.types';
3
3
  export declare const COMMENT_TYPE_STYLE_MAP: {
4
4
  Info: {
5
5
  icon: IconDefinition;
@@ -22,10 +22,11 @@ export interface ConfidencePlaybookStyleConfiguration {
22
22
  };
23
23
  }
24
24
  export declare const ConfidencePlaybook: {
25
- ({ playbookInstanceId, playbookMode, playbookStyle, }: {
25
+ ({ playbookInstanceId, playbookMode, playbookStyle, username, }: {
26
26
  playbookInstanceId: string | number;
27
27
  playbookMode: "list" | "card";
28
28
  playbookStyle?: ConfidencePlaybookStyleConfiguration;
29
+ username: string | undefined;
29
30
  }): import("react/jsx-runtime").JSX.Element;
30
31
  Context: ({ children, }: {
31
32
  children: React.ReactNode;
@@ -7,6 +7,6 @@ export declare const ConfidencePlaybookButton: ({ btnClassName, buttonNode, size
7
7
  playbookId: string;
8
8
  disabled?: boolean;
9
9
  btnLabel?: string;
10
- onInitiated: (playbookInstanceId: number) => void;
10
+ onInitiated: (playbookInstanceId: number, email: string) => void;
11
11
  btnColor?: ConfidencePlaybookButtonColor;
12
12
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { ConfidenceComment } from '../types/comments.types';
2
2
  export declare const useCommentContext: () => {
3
3
  comments: ConfidenceComment[];
4
+ username: string | undefined;
4
5
  openTaskDetails: {
5
6
  taskInstanceId: number | null;
6
7
  taskName: string;
@@ -12,7 +13,8 @@ export declare const useCommentContext: () => {
12
13
  taskVerification: boolean;
13
14
  } | null) => void;
14
15
  };
15
- export declare const CommentProvider: ({ playbookInstanceId, children, }: {
16
+ export declare const CommentProvider: ({ playbookInstanceId, children, username, }: {
16
17
  children: React.ReactNode;
17
18
  playbookInstanceId: string | number;
19
+ username: string | undefined;
18
20
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,9 @@
1
1
  import { QueryClient } from '@tanstack/react-query';
2
2
  export declare const ConfidenceProvider: import('react').Provider<{
3
3
  queryClient: QueryClient;
4
- username: string;
5
- setUsername: (username: string) => void;
6
4
  }>;
7
5
  export declare const useConfidenceContext: () => {
8
6
  queryClient: QueryClient;
9
- username: string;
10
- setUsername: (username: string) => void;
11
7
  };
12
8
  export declare const ConfidenceContext: ({ children, }: {
13
9
  children: React.ReactNode;
@@ -1,6 +1,8 @@
1
- export declare const useComments: ({ taskInstanceId, enabled, }: {
1
+ export declare const COMMENTS_QUERY_KEY: (tId: string | number, username: string) => (string | number)[];
2
+ export declare const useComments: ({ taskInstanceId, enabled, username, }: {
2
3
  taskInstanceId: number;
3
4
  enabled: boolean;
5
+ username: string | undefined;
4
6
  }) => {
5
7
  isLoading: boolean;
6
8
  prefetchQuery: (prefetchTaskInstanceId: number) => void;