@confidencesystemsinc/sdk 2.0.8 → 2.0.10
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/SelfShadowComponent.d.ts +1 -0
- package/dist/components/playbook/ConfidencePlaybook.d.ts +4 -2
- package/dist/hooks/useMyPlaybooks.d.ts +1 -0
- package/dist/hooks/usePlaybook.d.ts +2 -2
- package/dist/hooks/usePlaybookActions.d.ts +2 -2
- package/dist/index.cjs +24 -24
- package/dist/index.js +4341 -4293
- package/dist/theme.css +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { EmbeddedLayout } from './components/embedded-layout/EmbeddedLayout';
|
|
|
3
3
|
export declare const SelfPlaybookShadowComponent: {
|
|
4
4
|
(props: React.ComponentProps<typeof ConfidencePlaybook>): import('react').ReactPortal;
|
|
5
5
|
AutoInstantiated: (props: React.ComponentProps<typeof ConfidencePlaybook.AutoInstantiated>) => import('react').ReactPortal;
|
|
6
|
+
WithInstantiateButton: (props: React.ComponentProps<typeof ConfidencePlaybook.WithInstantiateButton>) => import('react').ReactPortal;
|
|
6
7
|
EmbeddedLayout: EmbeddedLayoutShadowComponent;
|
|
7
8
|
AutoInstantiatedEmbeddedLayout: (props: React.ComponentProps<typeof EmbeddedLayout.AutoInstantiated>) => import('react').ReactPortal;
|
|
8
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { TaskButton } from '../../hooks/useTaskButtons';
|
|
3
3
|
import { Playbook } from '../../types/playbook.types';
|
|
4
4
|
import { ConfidencePlaybookButtonColor } from '../playbook-button/ConfidencePlaybookButton';
|
|
@@ -52,7 +52,7 @@ export declare const ConfidencePlaybook: {
|
|
|
52
52
|
/** Whether the playbook starts expanded. Defaults to true. Cookie persistence overrides this on subsequent loads. */
|
|
53
53
|
defaultExpanded?: boolean;
|
|
54
54
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
55
|
-
WithInstantiateButton: ({ playbookId, playbookMode, playbookStyle, btnLabel, btnColor, persistKey, onSetUsername, onSetPlaybookInstanceId, playbookInstanceId: externalPlaybookInstanceId, username: externalUsername, defaultExpanded, }: {
|
|
55
|
+
WithInstantiateButton: ({ playbookId, playbookMode, playbookStyle, btnLabel, btnColor, persistKey, onSetUsername, onSetPlaybookInstanceId, playbookInstanceId: externalPlaybookInstanceId, username: externalUsername, defaultExpanded, renderPlaybook, }: {
|
|
56
56
|
playbookId: string;
|
|
57
57
|
playbookMode?: "list" | "card";
|
|
58
58
|
playbookStyle?: ConfidencePlaybookStyleConfiguration;
|
|
@@ -66,5 +66,7 @@ export declare const ConfidencePlaybook: {
|
|
|
66
66
|
username?: string;
|
|
67
67
|
/** Whether the playbook starts expanded. Defaults to true. Cookie persistence overrides this on subsequent loads. */
|
|
68
68
|
defaultExpanded?: boolean;
|
|
69
|
+
/** When set (e.g. embedded layout), only the playbook node is wrapped; the instantiate button stays a sibling outside that wrapper. */
|
|
70
|
+
renderPlaybook?: (playbook: ReactNode | null) => ReactNode;
|
|
69
71
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
70
72
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Playbook } from '../types/playbook.types';
|
|
2
|
-
export declare const usePlaybook: (playbookInstanceId: number | string) => {
|
|
2
|
+
export declare const usePlaybook: (playbookInstanceId: number | string, username: string) => {
|
|
3
3
|
playbook: Playbook;
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
error: Error | null;
|
|
6
6
|
actions: {
|
|
7
7
|
completeTask: (taskInstanceId: number, sequenceOrder: number) => Promise<void>;
|
|
8
|
-
startTask: (taskInstanceId: number) => Promise<void>;
|
|
8
|
+
startTask: (taskInstanceId: number, sequenceOrder: number) => Promise<void>;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const usePlaybookActions: (playbookInstanceId: number | string, options: {
|
|
1
|
+
export declare const usePlaybookActions: (playbookInstanceId: number | string, username: string, options: {
|
|
2
2
|
quickComplete?: boolean;
|
|
3
3
|
}) => {
|
|
4
4
|
completeTask: (taskInstanceId: number, sequenceOrder: number) => Promise<void>;
|
|
5
|
-
startTask: (taskInstanceId: number) => Promise<void>;
|
|
5
|
+
startTask: (taskInstanceId: number, sequenceOrder: number) => Promise<void>;
|
|
6
6
|
};
|