@confidencesystemsinc/sdk 2.0.15 → 2.0.17
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 +3 -3
- package/dist/context/expand-context.d.ts +1 -2
- package/dist/index.cjs +23 -23
- package/dist/index.js +1526 -1507
- package/dist/utils/cookies.d.ts +5 -33
- package/package.json +1 -1
package/dist/utils/cookies.d.ts
CHANGED
|
@@ -2,37 +2,9 @@ interface PlaybookCookieData {
|
|
|
2
2
|
playbookInstanceId: number;
|
|
3
3
|
email: string;
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @param persistKey - Optional custom key suffix for differentiating multiple embeds
|
|
11
|
-
*/
|
|
12
|
-
export declare function setPlaybookCookie(playbookId: string, playbookInstanceId: number, email: string, persistKey?: string): void;
|
|
13
|
-
/**
|
|
14
|
-
* Gets the playbook instance data from cookie
|
|
15
|
-
* Returns null if cookie doesn't exist or is invalid
|
|
16
|
-
* @param playbookId - The playbook ID
|
|
17
|
-
* @param persistKey - Optional custom key suffix for differentiating multiple embeds
|
|
18
|
-
*/
|
|
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;
|
|
32
|
-
/**
|
|
33
|
-
* Removes the playbook cookie
|
|
34
|
-
* @param playbookId - The playbook ID
|
|
35
|
-
* @param persistKey - Optional custom key suffix for differentiating multiple embeds
|
|
36
|
-
*/
|
|
37
|
-
export declare function removePlaybookCookie(playbookId: string, persistKey?: string): void;
|
|
5
|
+
export declare function setPlaybookCookie(playbookId: string, playbookInstanceId: number, email: string, persistKey?: string, namespace?: string): void;
|
|
6
|
+
export declare function getPlaybookCookie(playbookId: string, persistKey?: string, namespace?: string): PlaybookCookieData | null;
|
|
7
|
+
export declare function setEmbeddedExpandedCookie(isExpanded: boolean): void;
|
|
8
|
+
export declare function getEmbeddedExpandedCookie(): boolean | null;
|
|
9
|
+
export declare function removePlaybookCookie(playbookId: string, persistKey?: string, namespace?: string): void;
|
|
38
10
|
export {};
|