@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.
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confidencesystemsinc/sdk",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",