@ethora/chat-component 25.11.3 → 25.11.5

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.
@@ -0,0 +1,6 @@
1
+ declare const storage: {
2
+ getItem(_key: string): Promise<any>;
3
+ setItem(_key: string, value: any): Promise<any>;
4
+ removeItem(_key: string): Promise<void>;
5
+ };
6
+ export { storage };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Utility functions for safe window access in SSR environments
3
+ */
4
+ export declare const isBrowser: () => boolean;
5
+ export declare const safeWindow: {
6
+ readonly innerWidth: number;
7
+ readonly innerHeight: number;
8
+ readonly location: Location | null;
9
+ readonly localStorage: Storage | null;
10
+ addEventListener: (type: string, listener: EventListener, options?: boolean | AddEventListenerOptions) => void;
11
+ removeEventListener: (type: string, listener: EventListener, options?: boolean | EventListenerOptions) => void;
12
+ setTimeout: (callback: () => void, delay?: number) => number;
13
+ clearTimeout: (id: number) => void;
14
+ history: {
15
+ pushState: (state: any, title: string, url?: string | null) => void;
16
+ replaceState: (state: any, title: string, url?: string | null) => void;
17
+ };
18
+ URL: {
19
+ createObjectURL: (object: Blob | MediaSource) => string;
20
+ };
21
+ open: (url: string, target?: string) => Window | null;
22
+ reload: () => void;
23
+ dispatchEvent: (event: Event) => boolean;
24
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "25.11.03",
3
+ "version": "25.11.05",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",