@confidencesystemsinc/sdk 2.0.6 → 2.0.8

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,16 @@
1
1
  import { ConfidencePlaybook } from './components/playbook/ConfidencePlaybook';
2
+ import { EmbeddedLayout } from './components/embedded-layout/EmbeddedLayout';
2
3
  export declare const SelfPlaybookShadowComponent: {
3
4
  (props: React.ComponentProps<typeof ConfidencePlaybook>): import('react').ReactPortal;
4
5
  AutoInstantiated: (props: React.ComponentProps<typeof ConfidencePlaybook.AutoInstantiated>) => import('react').ReactPortal;
6
+ EmbeddedLayout: EmbeddedLayoutShadowComponent;
7
+ AutoInstantiatedEmbeddedLayout: (props: React.ComponentProps<typeof EmbeddedLayout.AutoInstantiated>) => import('react').ReactPortal;
5
8
  };
9
+ declare const EmbeddedLayoutComponent: (props: React.ComponentProps<typeof EmbeddedLayout>) => import('react').ReactPortal;
10
+ declare const AutoInstantiatedEmbeddedLayoutComponent: (props: React.ComponentProps<typeof EmbeddedLayout.AutoInstantiated>) => import('react').ReactPortal;
11
+ declare const WithInstantiateButtonEmbeddedLayoutComponent: (props: React.ComponentProps<typeof EmbeddedLayout.WithInstantiateButton>) => import('react').ReactPortal;
12
+ type EmbeddedLayoutShadowComponent = typeof EmbeddedLayoutComponent & {
13
+ WithInstantiateButton: typeof WithInstantiateButtonEmbeddedLayoutComponent;
14
+ AutoInstantiated: typeof AutoInstantiatedEmbeddedLayoutComponent;
15
+ };
16
+ export {};
@@ -0,0 +1,26 @@
1
+ import { ConfidencePlaybookStyleConfiguration } from '../playbook/ConfidencePlaybook';
2
+ import { ConfidencePlaybookButtonColor } from '../playbook-button/ConfidencePlaybookButton';
3
+ export declare const EmbeddedLayout: {
4
+ ({ username, playbookMode, playbookStyle, }: {
5
+ username: string;
6
+ playbookMode?: "list" | "card";
7
+ playbookStyle?: ConfidencePlaybookStyleConfiguration;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ WithInstantiateButton: ({ playbookId, playbookMode, playbookStyle, btnLabel, btnColor, persistKey, }: {
10
+ playbookId: string;
11
+ playbookMode?: "list" | "card";
12
+ playbookStyle?: ConfidencePlaybookStyleConfiguration;
13
+ btnLabel?: string;
14
+ btnColor?: ConfidencePlaybookButtonColor;
15
+ persistKey?: string;
16
+ }) => import("react/jsx-runtime").JSX.Element;
17
+ AutoInstantiated: ({ playbookId, playbookMode, playbookStyle, persistKey, username, bank, timezone, }: {
18
+ playbookId: string;
19
+ playbookMode?: "list" | "card";
20
+ playbookStyle?: ConfidencePlaybookStyleConfiguration;
21
+ persistKey?: string;
22
+ username: string;
23
+ bank?: string;
24
+ timezone?: string;
25
+ }) => import("react/jsx-runtime").JSX.Element;
26
+ };
@@ -0,0 +1,10 @@
1
+ import { TaskStatus } from '../../types/task.types';
2
+ interface MyPlaybookListItemProps {
3
+ playbookName: string;
4
+ status: TaskStatus;
5
+ lastUpdated: string;
6
+ avatarSrc: string | null;
7
+ onClick: () => void;
8
+ }
9
+ export declare const MyPlaybookListItem: ({ playbookName, status, lastUpdated, avatarSrc, onClick, }: MyPlaybookListItemProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,5 @@
1
+ import { MyPlaybook } from '../../types/my-playbooks.types';
2
+ export declare const MyPlaybooks: ({ playbooks, onPlaybookClick, }: {
3
+ playbooks: MyPlaybook[];
4
+ onPlaybookClick: (playbookInstanceId: number) => void;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const MyPlaybooksBar: ({ onClick, username, }: {
2
+ onClick: () => void;
3
+ username?: string;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -40,19 +40,19 @@ export declare const ConfidencePlaybook: {
40
40
  playbookStyle?: ConfidencePlaybookStyleConfiguration;
41
41
  defaultExpanded?: boolean;
42
42
  }) => import("react/jsx-runtime").JSX.Element;
43
- AutoInstantiated: ({ email, playbookId, playbookMode, playbookStyle, bank, timezone, persistKey, defaultExpanded, }: {
43
+ AutoInstantiated: ({ email, playbookId, playbookMode, playbookStyle, bank, timezone, persistKey, playbookInstanceId: externalPlaybookInstanceId, defaultExpanded, }: {
44
44
  email: string;
45
45
  playbookId: string;
46
46
  playbookMode: "list" | "card";
47
47
  bank?: string;
48
48
  timezone?: string;
49
49
  playbookStyle?: ConfidencePlaybookStyleConfiguration;
50
- /** Optional key to differentiate multiple playbook embeds on the same page */
51
50
  persistKey?: string;
51
+ playbookInstanceId?: number | null;
52
52
  /** Whether the playbook starts expanded. Defaults to true. Cookie persistence overrides this on subsequent loads. */
53
53
  defaultExpanded?: boolean;
54
- }) => import("react/jsx-runtime").JSX.Element | null;
55
- WithInstantiateButton: ({ playbookId, playbookMode, playbookStyle, btnLabel, btnColor, persistKey, defaultExpanded, }: {
54
+ }) => import("react/jsx-runtime").JSX.Element;
55
+ WithInstantiateButton: ({ playbookId, playbookMode, playbookStyle, btnLabel, btnColor, persistKey, onSetUsername, onSetPlaybookInstanceId, playbookInstanceId: externalPlaybookInstanceId, username: externalUsername, defaultExpanded, }: {
56
56
  playbookId: string;
57
57
  playbookMode?: "list" | "card";
58
58
  playbookStyle?: ConfidencePlaybookStyleConfiguration;
@@ -60,6 +60,10 @@ export declare const ConfidencePlaybook: {
60
60
  btnColor?: ConfidencePlaybookButtonColor;
61
61
  /** Optional key to differentiate multiple playbook embeds on the same page */
62
62
  persistKey?: string;
63
+ onSetUsername?: (username: string) => void;
64
+ onSetPlaybookInstanceId?: (playbookInstanceId: number) => void;
65
+ playbookInstanceId?: number | null;
66
+ username?: string;
63
67
  /** Whether the playbook starts expanded. Defaults to true. Cookie persistence overrides this on subsequent loads. */
64
68
  defaultExpanded?: boolean;
65
69
  }) => import("react/jsx-runtime").JSX.Element;
@@ -2,8 +2,10 @@ import { TaskStatus } from '../../types/task.types';
2
2
  import { BadgeSolid } from '../badge';
3
3
  export interface TaskCardV2StatusBadgeProps {
4
4
  status: TaskStatus;
5
+ category?: "outline" | "solid";
6
+ className?: string;
5
7
  }
6
8
  export declare const STATUS_BADGE_COLOR: {
7
9
  [key in TaskStatus]?: keyof typeof BadgeSolid;
8
10
  };
9
- export declare const TaskStatusBadge: ({ status }: TaskCardV2StatusBadgeProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const TaskStatusBadge: ({ status, category, className, }: TaskCardV2StatusBadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const EmbeddedLayoutProvider: import('react').Provider<{
2
+ isEmbedded: boolean;
3
+ }>;
4
+ export declare const useEmbeddedLayoutContext: () => {
5
+ isEmbedded: boolean;
6
+ };
@@ -0,0 +1,9 @@
1
+ import { MyPlaybook } from '../types/my-playbooks.types';
2
+ export declare const useMyPlaybooks: ({ username }: {
3
+ username: string;
4
+ }) => {
5
+ myPlaybooks: MyPlaybook[];
6
+ prefetchQuery: (username: string) => void;
7
+ isLoading: boolean;
8
+ error: Error | null;
9
+ };