@confidencesystemsinc/sdk 1.7.5 → 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 +3628 -3595
- package/dist/utils/cookies.d.ts +12 -0
- package/package.json +1 -1
package/dist/utils/cookies.d.ts
CHANGED
|
@@ -17,6 +17,18 @@ export declare function setPlaybookCookie(playbookId: string, playbookInstanceId
|
|
|
17
17
|
* @param persistKey - Optional custom key suffix for differentiating multiple embeds
|
|
18
18
|
*/
|
|
19
19
|
export declare function getPlaybookCookie(playbookId: string, persistKey?: string): PlaybookCookieData | null;
|
|
20
|
+
/**
|
|
21
|
+
* Sets a cookie to persist the playbook expanded/collapsed state
|
|
22
|
+
* @param playbookInstanceId - The playbook instance ID
|
|
23
|
+
* @param isExpanded - Whether the playbook is expanded
|
|
24
|
+
*/
|
|
25
|
+
export declare function setPlaybookExpandedCookie(playbookInstanceId: string | number, isExpanded: boolean): void;
|
|
26
|
+
/**
|
|
27
|
+
* Gets the playbook expanded/collapsed state from cookie
|
|
28
|
+
* Returns null if cookie doesn't exist
|
|
29
|
+
* @param playbookInstanceId - The playbook instance ID
|
|
30
|
+
*/
|
|
31
|
+
export declare function getPlaybookExpandedCookie(playbookInstanceId: string | number): boolean | null;
|
|
20
32
|
/**
|
|
21
33
|
* Removes the playbook cookie
|
|
22
34
|
* @param playbookId - The playbook ID
|