@confidencesystemsinc/sdk 1.7.6 → 1.7.7
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.
- package/dist/components/playbook/ConfidencePlaybook.d.ts +11 -4
- package/dist/index.cjs +24 -24
- package/dist/index.js +3627 -3596
- package/dist/utils/cookies.d.ts +12 -0
- package/package.json +1 -1
|
@@ -22,22 +22,25 @@ export interface ConfidencePlaybookStyleConfiguration {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
export declare const ConfidencePlaybook: {
|
|
25
|
-
({ playbookInstanceId, playbookMode, playbookStyle, username, }: {
|
|
25
|
+
({ playbookInstanceId, playbookMode, playbookStyle, username, defaultExpanded, }: {
|
|
26
26
|
playbookInstanceId: string | number;
|
|
27
27
|
playbookMode: "list" | "card";
|
|
28
28
|
playbookStyle?: ConfidencePlaybookStyleConfiguration;
|
|
29
29
|
username: string | undefined;
|
|
30
|
+
/** Whether the playbook starts expanded. Defaults to true. Cookie persistence overrides this on subsequent loads. */
|
|
31
|
+
defaultExpanded?: boolean;
|
|
30
32
|
}): import("react/jsx-runtime").JSX.Element;
|
|
31
33
|
Context: ({ children, }: {
|
|
32
34
|
children: React.ReactNode;
|
|
33
35
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
View: ({ playbook, playbookMode, onTaskButtonClick, playbookStyle, }: {
|
|
36
|
+
View: ({ playbook, playbookMode, onTaskButtonClick, playbookStyle, defaultExpanded, }: {
|
|
35
37
|
playbookMode: "list" | "card";
|
|
36
38
|
playbook: Playbook;
|
|
37
39
|
onTaskButtonClick: (btn: TaskButton, taskId: number) => Promise<void>;
|
|
38
40
|
playbookStyle?: ConfidencePlaybookStyleConfiguration;
|
|
41
|
+
defaultExpanded?: boolean;
|
|
39
42
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
AutoInstantiated: ({ email, playbookId, playbookMode, playbookStyle, bank, timezone, persistKey, }: {
|
|
43
|
+
AutoInstantiated: ({ email, playbookId, playbookMode, playbookStyle, bank, timezone, persistKey, defaultExpanded, }: {
|
|
41
44
|
email: string;
|
|
42
45
|
playbookId: string;
|
|
43
46
|
playbookMode: "list" | "card";
|
|
@@ -46,8 +49,10 @@ export declare const ConfidencePlaybook: {
|
|
|
46
49
|
playbookStyle?: ConfidencePlaybookStyleConfiguration;
|
|
47
50
|
/** Optional key to differentiate multiple playbook embeds on the same page */
|
|
48
51
|
persistKey?: string;
|
|
52
|
+
/** Whether the playbook starts expanded. Defaults to true. Cookie persistence overrides this on subsequent loads. */
|
|
53
|
+
defaultExpanded?: boolean;
|
|
49
54
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
-
WithInstantiateButton: ({ playbookId, playbookMode, playbookStyle, btnLabel, btnColor, persistKey, }: {
|
|
55
|
+
WithInstantiateButton: ({ playbookId, playbookMode, playbookStyle, btnLabel, btnColor, persistKey, defaultExpanded, }: {
|
|
51
56
|
playbookId: string;
|
|
52
57
|
playbookMode?: "list" | "card";
|
|
53
58
|
playbookStyle?: ConfidencePlaybookStyleConfiguration;
|
|
@@ -55,5 +60,7 @@ export declare const ConfidencePlaybook: {
|
|
|
55
60
|
btnColor?: ConfidencePlaybookButtonColor;
|
|
56
61
|
/** Optional key to differentiate multiple playbook embeds on the same page */
|
|
57
62
|
persistKey?: string;
|
|
63
|
+
/** Whether the playbook starts expanded. Defaults to true. Cookie persistence overrides this on subsequent loads. */
|
|
64
|
+
defaultExpanded?: boolean;
|
|
58
65
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
59
66
|
};
|