@confidencesystemsinc/sdk 1.2.2 → 1.2.4
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/confidence-playbook.d.ts +13 -7
- package/dist/components/playbook/playbook-header.d.ts +2 -2
- package/dist/hooks/usePlaybookExpandedTasks.d.ts +3 -1
- package/dist/index.cjs +15 -15
- package/dist/index.js +1439 -1415
- package/package.json +2 -3
- package/src/components/badge.tsx +0 -116
- package/src/components/initiate-playbook-modal/InitiatePlaybookModal.tsx +0 -53
- package/src/components/playbook/confidence-playbook.tsx +0 -346
- package/src/components/playbook/playbook-header.tsx +0 -32
- package/src/components/playbook-button/ConfidencePlaybookButton.tsx +0 -79
- package/src/components/task/confidence-task.tsx +0 -297
- package/src/components/task/task-buttons.tsx +0 -35
- package/src/components/task/task-dropdown-badge.tsx +0 -118
- package/src/components/task/task-expanded-content.tsx +0 -46
- package/src/components/task/task-left-panel.tsx +0 -60
- package/src/components/task/task-status-badge.tsx +0 -23
- package/src/components/ui/button.tsx +0 -272
- package/src/components/ui/input.tsx +0 -39
- package/src/components/ui/modal.tsx +0 -88
- package/src/components/ui/ui-wrapper.tsx +0 -7
- package/src/constants/settings.constants.ts +0 -4
- package/src/context/confidence-context.tsx +0 -25
- package/src/hooks/task/useCompleteTask.ts +0 -32
- package/src/hooks/task/useStartTask.ts +0 -35
- package/src/hooks/task/useTaskDetails.ts +0 -42
- package/src/hooks/usePlaybook.ts +0 -54
- package/src/hooks/usePlaybookActions.ts +0 -69
- package/src/hooks/usePlaybookExpandedTasks.ts +0 -35
- package/src/hooks/useTaskButtons.ts +0 -47
- package/src/index.ts +0 -7
- package/src/services/complete-task.service.ts +0 -25
- package/src/services/initiate-playbook.service.ts +0 -26
- package/src/services/start-task.services.ts +0 -27
- package/src/services/task-details.service.ts +0 -17
- package/src/stories/confidence-playbook.stories.tsx +0 -124
- package/src/stories/confidence-task.stories.tsx +0 -63
- package/src/stories/initiate-playbook-modal.stories.tsx +0 -31
- package/src/stories/modal.stories.tsx +0 -50
- package/src/task-description.css +0 -629
- package/src/theme.css +0 -11
- package/src/types/playbook.types.ts +0 -22
- package/src/types/task.types.ts +0 -20
- package/src/utils/cn.ts +0 -6
- package/src/vite-env.d.ts +0 -1
|
@@ -1,17 +1,23 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
1
2
|
import { TaskButton } from '../../hooks/useTaskButtons';
|
|
2
3
|
import { Playbook } from '../../types/playbook.types';
|
|
3
4
|
export interface ConfidencePlaybookStyleConfiguration {
|
|
4
5
|
overlay?: {
|
|
5
6
|
position?: "left" | "right";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
size?: {
|
|
8
|
+
width?: CSSProperties["width"];
|
|
9
|
+
height?: CSSProperties["height"];
|
|
10
|
+
};
|
|
11
|
+
offset?: {
|
|
12
|
+
top?: CSSProperties["top"];
|
|
13
|
+
right?: CSSProperties["right"];
|
|
14
|
+
left?: CSSProperties["left"];
|
|
15
|
+
};
|
|
10
16
|
};
|
|
11
17
|
whiteLabel?: {
|
|
12
|
-
titleBackgroundColor?:
|
|
13
|
-
titleTextColor?:
|
|
14
|
-
primaryColor?:
|
|
18
|
+
titleBackgroundColor?: CSSProperties["backgroundColor"];
|
|
19
|
+
titleTextColor?: CSSProperties["color"];
|
|
20
|
+
primaryColor?: CSSProperties["color"];
|
|
15
21
|
};
|
|
16
22
|
}
|
|
17
23
|
export declare const ConfidencePlaybook: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfidencePlaybookStyleConfiguration } from './confidence-playbook';
|
|
2
|
-
export declare const PlaybookHeader: (
|
|
2
|
+
export declare const PlaybookHeader: import('react').ForwardRefExoticComponent<Omit<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
title: string;
|
|
4
4
|
playbookStyle?: ConfidencePlaybookStyleConfiguration;
|
|
5
|
-
}
|
|
5
|
+
}, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export declare const usePlaybookExpandedTasks: (playbookInstanceId: number | string
|
|
1
|
+
export declare const usePlaybookExpandedTasks: (playbookInstanceId: number | string, triggers?: {
|
|
2
|
+
onTaskExpanded?: (taskId: number | string, expanded: boolean) => void;
|
|
3
|
+
}) => {
|
|
2
4
|
isTaskExpanded: (taskId: number | string) => boolean;
|
|
3
5
|
toggleTaskExpanded: (taskId: number | string, expand?: boolean) => void;
|
|
4
6
|
};
|