@d-id/client-sdk 1.1.19 → 1.1.20-staging.89

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.
@@ -1,4 +1,4 @@
1
- import { c as H, a as X, S as Y, d as Z, T as k, C as u, b as p, A as K, e as F, f as b, g as ee } from "./index-DKb-cXkg.js";
1
+ import { c as H, a as X, S as Y, d as Z, T as k, C as u, b as p, A as K, e as F, f as b, g as ee } from "./index-DcoRNuxp.js";
2
2
  function ne(c, f, s, i) {
3
3
  const h = H(c, `${f}/v2/agents/${s}`, i);
4
4
  return {
@@ -13,7 +13,7 @@ export interface Analytics {
13
13
  agentId: string;
14
14
  owner_id?: string;
15
15
  getRandom(): string;
16
- track(event: string, props?: Record<string, any>): Promise<any>;
16
+ track(event: string, props?: Record<string, any>, eventTimestamp?: number): Promise<any>;
17
17
  linkTrack(mixpanelEvent: string, props: Record<string, any>, event: string, dependencies: string[]): any;
18
18
  enrich(props: Record<string, any>): void;
19
19
  additionalProperties: Record<string, any>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Defers function execution until browser is idle to avoid blocking critical path.
3
+ * Uses requestIdleCallback when available, falls back to setTimeout.
4
+ *
5
+ * @param fn - Function to execute when browser is idle
6
+ */
7
+ export declare function defer(fn: () => void): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@d-id/client-sdk",
3
3
  "private": false,
4
- "version": "1.1.19",
4
+ "version": "1.1.20-staging.89",
5
5
  "type": "module",
6
6
  "description": "d-id client sdk",
7
7
  "repository": {