@sprig-technologies/sprig-browser 2.21.6 → 2.22.0

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.
package/dist/index.d.ts CHANGED
@@ -534,7 +534,6 @@ declare type SprigEventMap = {
534
534
  }];
535
535
  [SprigRecordingEvent.AvPermission]: [
536
536
  {
537
- [SprigRecordingEventData.StreamCanceledCallback]: () => void;
538
537
  [SprigRecordingEventData.StreamReadyCallback]: (avStream: MediaStream | null, captureStream?: MediaStream | null) => void;
539
538
  [SprigRecordingEventData.PermissionDescriptors]: AvPermission[];
540
539
  }
@@ -560,13 +559,12 @@ declare type SprigEventMap = {
560
559
  ];
561
560
  [SprigRecordingEvent.PermissionStatus]: [
562
561
  {
563
- [SprigRecordingEventData.PermissionStatusCallback]: (avStream: MediaStream | undefined, hasVideoPermission: boolean, hasScreenPermission: boolean) => void;
562
+ [SprigRecordingEventData.PermissionStatusCallback]: (avStream: MediaStream | undefined, hasVideoPermission: boolean, hasScreenPermission: boolean, captureStream: MediaStream | undefined) => void;
564
563
  }
565
564
  ];
566
565
  [SprigRecordingEvent.ScreenPermission]: [
567
566
  {
568
567
  [SprigRecordingEventData.ScreenPermissionRequested]?: (data: boolean) => void;
569
- [SprigRecordingEventData.StreamCanceledCallback]: () => void;
570
568
  [SprigRecordingEventData.StreamReadyCallback]: (avStream: MediaStream | null, captureStream: MediaStream | null) => void;
571
569
  }
572
570
  ];
@@ -698,6 +696,8 @@ interface Config {
698
696
  pageUrlEvents: PageUrlEvent[];
699
697
  path?: string;
700
698
  platform?: Platform;
699
+ replayNonce?: string;
700
+ replaySettings?: object;
701
701
  requireUserIdForTracking: boolean;
702
702
  responseGroupUid: UUID;
703
703
  showStripes: boolean;
@@ -919,9 +919,11 @@ declare namespace sprigConfig {
919
919
  locale?: string;
920
920
  localStorageAvailable: boolean;
921
921
  maxHeight?: number | string;
922
+ maxInflightReplayRequests?: number;
922
923
  mobileHeadersJSON?: string;
923
924
  nonce?: string;
924
925
  partnerAnonymousId: string | null;
926
+ replayNonce?: string;
925
927
  reportError: (name: string, err: Error) => void;
926
928
  sampleRate?: unknown; // TODO: determine type
927
929
  token: string | null;