@betterbugs/web-sdk 0.0.40 → 0.0.42

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.
@@ -12,6 +12,7 @@ export interface BetterBugsStylesConfig {
12
12
 
13
13
  export interface BetterBugsConfiguration {
14
14
  styles?: BetterBugsStylesConfig;
15
+ email?: string;
15
16
  brandLogoUrl?: string;
16
17
  brandUrl?: string;
17
18
  mainHeaderText?: string;
package/types/index.d.ts CHANGED
@@ -16,6 +16,11 @@ declare module '@betterbugs/web-sdk' {
16
16
  styles?: BetterBugsStylesConfig;
17
17
  email?: string;
18
18
  apiKey: string;
19
+ /**
20
+ * The project to report bugs to. Required when using a workspace-wide API
21
+ * key; omit it if you are using a legacy project-scoped key.
22
+ */
23
+ projectId?: string;
19
24
  mainHeading?: string;
20
25
  emailFieldLabel?: string;
21
26
  emailFieldPlaceholder?: string;
@@ -5,8 +5,13 @@ export interface LoginDataResponse {
5
5
  session?: SessionObject;
6
6
  }
7
7
 
8
+ export interface LoginSuccessResponseLimits {
9
+ maxScreenRecordingDurationSeconds?: number;
10
+ }
11
+
8
12
  export interface LoginSuccessResponse {
9
- accessToken: string;
10
- expireAt: string;
11
13
  id: string;
14
+ projectId: string;
15
+ subscriptionPlanId?: string;
16
+ limits?: LoginSuccessResponseLimits;
12
17
  }
package/types/steps.d.ts CHANGED
@@ -12,4 +12,6 @@ export interface StepsObject {
12
12
  count?: number | string;
13
13
  responseTime?: number | string;
14
14
  requestTime?: number | string;
15
+ scrollDelta?: number;
16
+ scrollY?: number;
15
17
  }