@uxbertlabs/reportly 1.0.8 → 1.0.9
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/core/init.d.ts.map +1 -1
- package/dist/features/screenshot.d.ts.map +1 -1
- package/dist/reportly.cjs.js +7 -11
- package/dist/reportly.cjs.js.map +1 -1
- package/dist/reportly.esm.js +7 -11
- package/dist/reportly.esm.js.map +1 -1
- package/dist/reportly.js +7 -11
- package/dist/reportly.js.map +1 -1
- package/dist/reportly.min.js +1 -1
- package/dist/reportly.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core/init.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/core/init.ts"],"names":[],"mappings":"AAUA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAA4B,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEpG,cAAM,QAAQ;IACZ,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,UAAU,CAAoB;IACtC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,UAAU,CAAoB;IACtC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,aAAa,CAAU;;IAe/B,IAAI,CAAC,UAAU,GAAE,OAAO,CAAC,cAAc,CAAM,GAAG,IAAI;IAwDpD,OAAO,CAAC,sBAAsB;YAUhB,iBAAiB;YAUjB,eAAe;IAyB7B,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,cAAc;YASR,gBAAgB;YA2BhB,gBAAgB;
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/core/init.ts"],"names":[],"mappings":"AAUA,OA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C,OAAO,CAAC,IAAI,GAAE,UAAU,GAAG,UAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/features/screenshot.ts"],"names":[],"mappings":"AAGA,cAAM,UAAU;IACd,OAAO,CAAC,iBAAiB,CAAgB;;IAMnC,OAAO,CAAC,IAAI,GAAE,UAAU,GAAG,UAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IAgH1E,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,kBAAkB;IAY1B,aAAa,IAAI,MAAM,GAAG,IAAI;IAI9B,KAAK,IAAI,IAAI;CAGd;AAED,eAAe,UAAU,CAAC"}
|
package/dist/reportly.cjs.js
CHANGED
@@ -9459,9 +9459,8 @@ class Screenshot {
|
|
9459
9459
|
// Capture only the current viewport
|
9460
9460
|
canvas = await html2canvas(document.body, {
|
9461
9461
|
// foreignObjectRendering: true,
|
9462
|
-
imageTimeout: 40000,
|
9463
9462
|
useCORS: true,
|
9464
|
-
allowTaint:
|
9463
|
+
allowTaint: true,
|
9465
9464
|
logging: true,
|
9466
9465
|
width: window.innerWidth,
|
9467
9466
|
height: window.innerHeight,
|
@@ -10204,7 +10203,7 @@ class Reportly {
|
|
10204
10203
|
}
|
10205
10204
|
init(userConfig = {}) {
|
10206
10205
|
// Check if we're in a browser environment
|
10207
|
-
if (typeof window ===
|
10206
|
+
if (typeof window === "undefined" || typeof document === "undefined") {
|
10208
10207
|
console.warn("Uxbert Reportly can only be initialized in a browser environment");
|
10209
10208
|
return;
|
10210
10209
|
}
|
@@ -10271,7 +10270,7 @@ class Reportly {
|
|
10271
10270
|
try {
|
10272
10271
|
this.state?.setState(STATE.CAPTURING);
|
10273
10272
|
// Get capture mode from modal
|
10274
|
-
const captureMode = this.modal?.getCaptureMode() ||
|
10273
|
+
const captureMode = this.modal?.getCaptureMode() || "viewport";
|
10275
10274
|
// Save capture mode in state
|
10276
10275
|
this.state?.setCaptureMode(captureMode);
|
10277
10276
|
// Capture screenshot
|
@@ -10291,7 +10290,7 @@ class Reportly {
|
|
10291
10290
|
this.state?.setState(STATE.ANNOTATING);
|
10292
10291
|
this.modal?.close();
|
10293
10292
|
this.button?.hide();
|
10294
|
-
const captureMode = this.state?.getCaptureMode() ||
|
10293
|
+
const captureMode = this.state?.getCaptureMode() || "viewport";
|
10295
10294
|
this.annotation?.show(captureMode);
|
10296
10295
|
this.toolbar?.show();
|
10297
10296
|
}
|
@@ -10328,16 +10327,13 @@ class Reportly {
|
|
10328
10327
|
}
|
10329
10328
|
async retakeScreenshot() {
|
10330
10329
|
try {
|
10331
|
-
// Get the current capture mode from modal before closing
|
10332
|
-
const captureMode = this.modal?.getCaptureMode() || 'viewport';
|
10333
10330
|
this.modal?.close();
|
10334
10331
|
this.state?.setState(STATE.CAPTURING);
|
10335
10332
|
// Clear previous annotations
|
10336
10333
|
this.annotation?.clear();
|
10337
|
-
// Capture new screenshot
|
10338
|
-
const screenshot = await this.screenshot.capture(
|
10334
|
+
// Capture new screenshot
|
10335
|
+
const screenshot = await this.screenshot.capture();
|
10339
10336
|
this.state?.setScreenshot(screenshot);
|
10340
|
-
this.state?.setCaptureMode(captureMode);
|
10341
10337
|
// Show modal with new screenshot
|
10342
10338
|
this.modal?.setScreenshot(screenshot);
|
10343
10339
|
this.modal?.open();
|
@@ -10354,7 +10350,7 @@ class Reportly {
|
|
10354
10350
|
// Create complete issue package
|
10355
10351
|
const completeIssue = {
|
10356
10352
|
...issueData,
|
10357
|
-
screenshot: this.state?.getScreenshot() ||
|
10353
|
+
screenshot: this.state?.getScreenshot() || "",
|
10358
10354
|
deviceInfo: this.deviceInfo.get(),
|
10359
10355
|
createdAt: new Date().toISOString(),
|
10360
10356
|
};
|