@cshah18/sdk 3.0.2 → 3.0.3

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.
@@ -16,6 +16,7 @@ export declare class CoBuy implements CoBuySDK {
16
16
  private lobbyModal;
17
17
  private modals;
18
18
  private socketManager;
19
+ private widgets;
19
20
  constructor();
20
21
  /**
21
22
  * Initialize or retrieve existing session ID from storage
@@ -117,4 +117,12 @@ export declare class WidgetRoot {
117
117
  * Format reward text for rendering in external container
118
118
  */
119
119
  private formatRewardForContainer;
120
+ /**
121
+ * Public hook to request a realtime refresh from external callers
122
+ */
123
+ requestRefresh(): Promise<void>;
124
+ /**
125
+ * Expose current product id for optional filtering by host
126
+ */
127
+ getProductId(): string | null;
120
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cshah18/sdk",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "CoBuy Embedded SDK for browser JavaScript integration",
5
5
  "type": "module",
6
6
  "main": "dist/cobuy-sdk.umd.js",