@limekex/bugreport-widget-sdk 0.1.1 → 0.1.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenshotCapture.d.ts","sourceRoot":"","sources":["../../src/utils/screenshotCapture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"screenshotCapture.d.ts","sourceRoot":"","sources":["../../src/utils/screenshotCapture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA+DH;;;;;;GAMG;AACH,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAmBpE"}
|
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
* @see https://html2canvas.hertzen.com/
|
|
12
12
|
*/
|
|
13
13
|
const CDN_URL = 'https://cdn.jsdelivr.net/npm/html2canvas@1.4.1/dist/html2canvas.min.js';
|
|
14
|
-
/** Subresource Integrity hash for html2canvas 1.4.1 from jsdelivr */
|
|
15
|
-
const CDN_INTEGRITY = 'sha256-6IAfMRH9C/fLcuGGwCmMWi4svMLOHR0/5QL8IBLuVJo=';
|
|
16
14
|
let cachedHtml2Canvas = null;
|
|
17
15
|
/**
|
|
18
16
|
* Lazily loads html2canvas from CDN.
|
|
@@ -35,7 +33,6 @@ async function loadHtml2Canvas() {
|
|
|
35
33
|
await new Promise((resolve, reject) => {
|
|
36
34
|
const script = document.createElement('script');
|
|
37
35
|
script.src = CDN_URL;
|
|
38
|
-
script.integrity = CDN_INTEGRITY;
|
|
39
36
|
script.crossOrigin = 'anonymous';
|
|
40
37
|
script.async = true;
|
|
41
38
|
const timeout = setTimeout(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenshotCapture.js","sourceRoot":"","sources":["../../src/utils/screenshotCapture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAeH,MAA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
@@ -422,7 +422,7 @@ function buildFormHtml() {
|
|
|
422
422
|
|
|
423
423
|
<div class="__br_field">
|
|
424
424
|
<label for="__br_summary__" class="__br_label">Summary<span class="__br_required">*</span></label>
|
|
425
|
-
<input id="__br_summary__" name="summary" type="text" required maxlength="200"
|
|
425
|
+
<input id="__br_summary__" name="summary" type="text" required minlength="5" maxlength="200"
|
|
426
426
|
placeholder="One-line summary of the bug" class="__br_input" />
|
|
427
427
|
</div>
|
|
428
428
|
|
|
@@ -439,25 +439,25 @@ function buildFormHtml() {
|
|
|
439
439
|
<div class="__br_field">
|
|
440
440
|
<label for="__br_whatHappened__" class="__br_label">What happened?<span class="__br_required">*</span></label>
|
|
441
441
|
<textarea id="__br_whatHappened__" name="whatHappened" rows="3"
|
|
442
|
-
placeholder="Describe what you observed…" required class="__br_textarea"></textarea>
|
|
442
|
+
placeholder="Describe what you observed…" required minlength="10" class="__br_textarea"></textarea>
|
|
443
443
|
</div>
|
|
444
444
|
|
|
445
445
|
<div class="__br_field">
|
|
446
446
|
<label for="__br_expectedResult__" class="__br_label">Expected result<span class="__br_required">*</span></label>
|
|
447
447
|
<textarea id="__br_expectedResult__" name="expectedResult" rows="2"
|
|
448
|
-
placeholder="What should have happened?" required class="__br_textarea"></textarea>
|
|
448
|
+
placeholder="What should have happened?" required minlength="5" class="__br_textarea"></textarea>
|
|
449
449
|
</div>
|
|
450
450
|
|
|
451
451
|
<div class="__br_field">
|
|
452
452
|
<label for="__br_actualResult__" class="__br_label">Actual result<span class="__br_required">*</span></label>
|
|
453
453
|
<textarea id="__br_actualResult__" name="actualResult" rows="2"
|
|
454
|
-
placeholder="What actually happened?" required class="__br_textarea"></textarea>
|
|
454
|
+
placeholder="What actually happened?" required minlength="5" class="__br_textarea"></textarea>
|
|
455
455
|
</div>
|
|
456
456
|
|
|
457
457
|
<div class="__br_field">
|
|
458
458
|
<label for="__br_stepsToReproduce__" class="__br_label">Steps to reproduce<span class="__br_required">*</span></label>
|
|
459
459
|
<textarea id="__br_stepsToReproduce__" name="stepsToReproduce" rows="4"
|
|
460
|
-
placeholder="1. Go to /login\n2. Enter credentials\n3. Click Submit" required class="__br_textarea"></textarea>
|
|
460
|
+
placeholder="1. Go to /login\n2. Enter credentials\n3. Click Submit" required minlength="5" class="__br_textarea"></textarea>
|
|
461
461
|
</div>
|
|
462
462
|
|
|
463
463
|
<div class="__br_field">
|