gleap 19.0.0 → 19.1.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/index.d.ts CHANGED
@@ -409,6 +409,19 @@ export namespace Gleap {
409
409
  }[];
410
410
  errorHandler?: (error: Error) => void;
411
411
  }): void;
412
+ /**
413
+ * Enables or disables screenshots and screen recordings that teammates, AI agents or workflows
414
+ * ask the customer for in the widget (default: enabled). While disabled, the widget offers
415
+ * uploading a file instead. Can be called before initialize.
416
+ */
417
+ function setCaptureEnabled(enabled: boolean): void;
418
+ /**
419
+ * Enables or disables sending logs when teammates, AI agents or workflows request them, on their
420
+ * own or along with a screenshot or screen recording (default: enabled). Only data a bug report
421
+ * carries is sent: console and network logs, custom data, environment data and events. Can be
422
+ * called before initialize.
423
+ */
424
+ function setRemoteLogCollectionEnabled(enabled: boolean): void;
412
425
  }
413
426
  export default Gleap;
414
427
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "JavaScript and TypeScript SDK for Gleap, an Intercom alternative with AI customer support, live chat, in-app bug reporting and customer feedback.",
3
3
  "name": "gleap",
4
- "version": "19.0.0",
4
+ "version": "19.1.0",
5
5
  "main": "build/cjs/index.js",
6
6
  "module": "build/esm/index.mjs",
7
7
  "exports": {
@@ -86,6 +86,7 @@
86
86
  "@floating-ui/dom": "^1.7.5",
87
87
  "@rrweb/packer": "^2.1.0",
88
88
  "@rrweb/record": "^2.1.0",
89
+ "modern-screenshot": "4.7.0",
89
90
  "unique-selector": "^0.5.0"
90
91
  }
91
92
  }