@confidencesystemsinc/sdk 1.1.1 → 1.1.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.
@@ -1,29 +1,36 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { TaskButton } from '../../hooks/useTaskButtons';
3
3
  import { Playbook } from '../../types/playbook.types';
4
+ export interface ConfidencePlaybookStyleConfiguration {
5
+ overlay?: {
6
+ position?: "left" | "right";
7
+ width?: number;
8
+ height?: number;
9
+ };
10
+ }
4
11
  export declare const ConfidencePlaybook: {
5
- ({ playbookInstanceId, viewMode, }: {
12
+ ({ playbookInstanceId, playbookMode, playbookStyle, }: {
6
13
  playbookInstanceId: string | number;
7
- viewMode: "list" | "card";
14
+ playbookMode: "list" | "card";
15
+ playbookStyle?: ConfidencePlaybookStyleConfiguration;
8
16
  }): import("react/jsx-runtime").JSX.Element;
9
17
  Context: ({ children }: {
10
18
  children: ReactNode;
11
19
  }) => import("react/jsx-runtime").JSX.Element;
12
- View: ({ playbook, viewMode, onTaskButtonClick, }: {
13
- viewMode: "list" | "card";
20
+ View: ({ playbook, playbookMode, onTaskButtonClick, playbookStyle, }: {
21
+ playbookMode: "list" | "card";
14
22
  playbook: Playbook;
15
23
  onTaskButtonClick: (btn: TaskButton, taskId: number) => void;
24
+ playbookStyle?: ConfidencePlaybookStyleConfiguration;
16
25
  }) => import("react/jsx-runtime").JSX.Element;
17
- TasksContainer: ({ className, children, }: {
18
- className?: string;
19
- children: React.ReactNode;
20
- }) => import("react/jsx-runtime").JSX.Element;
21
- AutoInstantiated: ({ email, playbookId, viewMode, }: {
26
+ AutoInstantiated: ({ email, playbookId, playbookMode, }: {
22
27
  email: string;
23
28
  playbookId: string;
24
- viewMode: "list" | "card";
29
+ playbookMode: "list" | "card";
25
30
  }) => import("react/jsx-runtime").JSX.Element;
26
- WithInstantiateButton: ({ playbookId }: {
31
+ WithInstantiateButton: ({ playbookId, playbookMode, playbookStyle, }: {
27
32
  playbookId: string;
33
+ playbookMode?: "list" | "card";
34
+ playbookStyle?: ConfidencePlaybookStyleConfiguration;
28
35
  }) => import("react/jsx-runtime").JSX.Element;
29
36
  };
@@ -1,8 +1,9 @@
1
1
  import { ButtonSizeType } from '../ui/button';
2
- export declare const ConfidencePlaybookButton: ({ btnClassName, buttonNode, size, playbookId, onInitiated, }: {
2
+ export declare const ConfidencePlaybookButton: ({ btnClassName, buttonNode, size, playbookId, onInitiated, disabled, }: {
3
3
  btnClassName?: string;
4
4
  buttonNode?: React.ReactNode;
5
5
  size?: ButtonSizeType;
6
6
  playbookId: string;
7
+ disabled?: boolean;
7
8
  onInitiated: (playbookInstanceId: number) => void;
8
9
  }) => import("react/jsx-runtime").JSX.Element;
@@ -6,12 +6,12 @@ declare const TASK_VERIFICATION_TYPE: {
6
6
  readonly SCREENSHOT: "screenshot";
7
7
  };
8
8
  export type TaskVerificationType = (typeof TASK_VERIFICATION_TYPE)[keyof typeof TASK_VERIFICATION_TYPE];
9
- export declare const ConfidenceTask: ({ task, step, playbookType, onButtonClick, viewMode, canStart, }: {
9
+ export declare const ConfidenceTask: ({ task, step, playbookType, onButtonClick, playbookMode, canStart, }: {
10
10
  task: Task;
11
11
  playbookType: PlaybookType;
12
12
  step: number;
13
13
  onButtonClick: (buttonType: TaskButton) => void;
14
- viewMode?: "card" | "list";
14
+ playbookMode?: "card" | "list";
15
15
  canStart?: boolean;
16
16
  }) => import("react/jsx-runtime").JSX.Element;
17
17
  export {};