@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.
@@ -2,37 +2,9 @@ interface PlaybookCookieData {
2
2
  playbookInstanceId: number;
3
3
  email: string;
4
4
  }
5
- /**
6
- * Sets a cookie with the playbook instance data
7
- * @param playbookId - The playbook ID
8
- * @param playbookInstanceId - The initiated playbook instance ID
9
- * @param email - The user's email
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confidencesystemsinc/sdk",
3
- "version": "2.0.15",
3
+ "version": "2.0.17",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",