@betterbugs/web-sdk 0.0.11 → 0.0.13

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/README.md CHANGED
@@ -72,25 +72,24 @@ Here's what it does:
72
72
 
73
73
  You can customize the SDK behavior with the following parameters:
74
74
 
75
- | Option | Type | Description |
76
- | ------------------------- | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
77
- | apiKey | string | Project-specific API\* (required) |
78
- | metaData | array<object> | Custom metadata to attach to reports (e.g., { userId: 123 }) |
79
- | captureRewindOnScreenshot | boolen | Attach the last two minutes of the Rewind session video to screenshots. |
80
- | recordType | "recordVideo" \| "domRecord" | The "recordVideo" type (recommended for SPAs) is the traditional media recording method for video and audio. The "domRecord" type (recommended for Multi Page Apps) is the DOM recording method and may not be as accurate as the "recordVideo" type. |
81
- | disableScreenshot | boolean | Disable screenshot capturing |
82
- | disableRecording | boolean | Disable screen recording |
83
- | enableAnnotation | boolean | Enable annotation tools for screenshots and video recordings. |
84
- | showActionButton | boolean | Display/Hide the floating action button. |
85
- | position | { top? : string, left? : string, right? : string, bottom? : string } | Control the widget's screen position. |
86
- | mode | "development" \| "production" | Set development or production mode.<br><br>The "development" mode can be set when the app is under development, and the "production" mode is for end-users, meaning the app's customers can report a bug in the live environment. |
87
- | email | string | The user's email address who is reporting the bug. Works only in "production" mode. |
88
- | theme | "dark" \| "light" | Set a dark or light theme |
89
- | primaryColor | string | Set primary color (branding color) |
90
- | primaryTextColor | string | Set the primary text color for the buttons. |
91
- | actionButtonComponent | React.ReactNode \| string | Component for the action button (React component or HTML string accepted). |
92
- | bugSuccessComponent | React.ReactNode \| string | Component visible when the bug is successfully created (React component or HTML string accepted). |
93
- | maxRecordingMinutes | number | Set maximum recording length |
75
+ | Option | Type | Description |
76
+ | --------------------- | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
77
+ | apiKey | string | Project-specific API\* (required) |
78
+ | metaData | array<object> | Custom metadata to attach to reports (e.g., { userId: 123 }) |
79
+ | recordType | "recordVideo" \| "domRecord" | The "recordVideo" type (recommended for SPAs) is the traditional media recording method for video and audio. The "domRecord" type (recommended for Multi Page Apps) is the DOM recording method and may not be as accurate as the "recordVideo" type. |
80
+ | disableScreenshot | boolean | Disable screenshot capturing |
81
+ | disableRecording | boolean | Disable screen recording |
82
+ | enableAnnotation | boolean | Enable annotation tools for screenshots. |
83
+ | showActionButton | boolean | Display/Hide the floating action button. |
84
+ | position | { top? : string, left? : string, right? : string, bottom? : string } | Control the widget's screen position. |
85
+ | mode | "development" \| "production" | Set development or production mode.<br><br>The "development" mode can be set when the app is under development, and the "production" mode is for end-users, meaning the app's customers can report a bug in the live environment. |
86
+ | email | string | The user's email address who is reporting the bug. Works only in "production" mode. |
87
+ | theme | "dark" \| "light" | Set a dark or light theme |
88
+ | primaryColor | string | Set primary color (branding color) |
89
+ | primaryTextColor | string | Set the primary text color for the buttons. |
90
+ | actionButtonComponent | React.ReactNode \| string | Component for the action button (React component or HTML string accepted). |
91
+ | bugSuccessComponent | React.ReactNode \| string | Component visible when the bug is successfully created (React component or HTML string accepted). |
92
+ | maxRecordingMinutes | number | Set maximum recording length |
94
93
 
95
94
  ## Programmatic Methods: Control SDK behavior
96
95
 
@@ -106,7 +105,7 @@ Available methods for controlling the BetterBugs SDK behavior;
106
105
  | hide() | Hide the floating widget. |
107
106
  | openWidget() | Open the bug report widget. |
108
107
  | closeWidget() | Close the bug report widget. |
109
- | updateMetadata() | Update the attached metadata. |
108
+ | setMetadata() | Update the attached metadata. |
110
109
  | captureScreenshot() | Trigger screenshot capture. |
111
110
  | startRecording() | Start session recording. |
112
111
  | stopRecording() | Stop the ongoing recording. |