@the-it-dept/bugsplat-react 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.
@@ -4,9 +4,10 @@ export interface SplatConfig {
4
4
  /**
5
5
  * Position of the widget button.
6
6
  * - 'bottom-right' / 'bottom-left': Floating button in corner
7
+ * - 'left' / 'right': Side handle on screen edge, midway up
7
8
  * - 'trigger': No button shown, use trigger() method to open as modal
8
9
  */
9
- position?: 'bottom-right' | 'bottom-left' | 'trigger';
10
+ position?: 'bottom-right' | 'bottom-left' | 'left' | 'right' | 'trigger';
10
11
  primaryColor?: string;
11
12
  onSubmit?: (report: Report) => void;
12
13
  /** Container element or selector to constrain widget to (default: document.body) */
@@ -21,7 +22,7 @@ export interface SplatConfig {
21
22
  historyEnabled?: boolean;
22
23
  }
23
24
  export interface WidgetConfig {
24
- position: 'bottom-right' | 'bottom-left' | 'trigger';
25
+ position: 'bottom-right' | 'bottom-left' | 'left' | 'right' | 'trigger';
25
26
  buttonText: string;
26
27
  accentColor: string;
27
28
  theme: 'light' | 'dark';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-it-dept/bugsplat-react",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "Embeddable bug report widget for BugSplat",
5
5
  "type": "module",
6
6
  "main": "./dist/bugsplat.umd.cjs",