qapture2 0.2.4 → 0.3.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/README.md +145 -23
- package/dist/bin/init.cjs +31 -266
- package/dist/{chunk-DPJW626S.cjs → chunk-6KAXMN77.cjs} +2269 -993
- package/dist/{chunk-RC7ZUQ5X.js → chunk-ESRQOU32.js} +2270 -994
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +27 -5
- package/dist/index.d.ts +27 -5
- package/dist/index.js +1 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +1 -1
- package/dist/standalone.cjs +2 -2
- package/dist/standalone.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6KAXMN77_cjs = require('./chunk-6KAXMN77.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "QaStudio", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk6KAXMN77_cjs.Qapture; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "Qapture", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6KAXMN77_cjs.Qapture; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deleteQaDatabase", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6KAXMN77_cjs.deleteQaDatabase; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "initQaStudio", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk6KAXMN77_cjs.initQaStudio; }
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=index.cjs.map
|
|
24
24
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -5,15 +5,23 @@
|
|
|
5
5
|
* or skips invalid entries, and NEVER throws. Returns a fully-resolved config
|
|
6
6
|
* plus human-readable warnings.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* Custom themes were removed in Qapture 0.3.0 — QaConfig.theme is kept only
|
|
9
|
+
* so older config objects still type-check; it is IGNORED by validateConfig
|
|
10
|
+
* (a warning is pushed) and ResolvedConfig no longer carries a theme field.
|
|
10
11
|
*/
|
|
11
12
|
/** A bilingual string: either a plain string (language-neutral) or { en, ar? }. */
|
|
12
13
|
type QaBilingual = string | {
|
|
13
14
|
en: string;
|
|
14
15
|
ar?: string;
|
|
15
16
|
};
|
|
16
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Brand colour palette for the QA panel.
|
|
19
|
+
*
|
|
20
|
+
* @deprecated Custom themes were removed in Qapture 0.3.0 — the widget now
|
|
21
|
+
* ships one fixed, self-contained design. This type is kept only so that
|
|
22
|
+
* existing `theme?: Partial<QaTheme>` config objects still type-check; it has
|
|
23
|
+
* no effect on the rendered UI.
|
|
24
|
+
*/
|
|
17
25
|
type QaTheme = {
|
|
18
26
|
primary: string;
|
|
19
27
|
primaryDark: string;
|
|
@@ -43,6 +51,8 @@ type QaRisk = 'red' | 'amber' | 'green';
|
|
|
43
51
|
type QaJourneyStep = {
|
|
44
52
|
path: string;
|
|
45
53
|
what: QaBilingual;
|
|
54
|
+
/** Optional "what pass looks like" — shown alongside `what` when present. */
|
|
55
|
+
expect?: QaBilingual;
|
|
46
56
|
risk?: QaRisk;
|
|
47
57
|
riskWhy?: string;
|
|
48
58
|
};
|
|
@@ -78,7 +88,13 @@ type QaPreamble = {
|
|
|
78
88
|
type QaConfig = {
|
|
79
89
|
/** Storage + DB namespace. Defaults to 'qapture'. */
|
|
80
90
|
namespace?: string;
|
|
81
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Override any subset of the colour palette.
|
|
93
|
+
*
|
|
94
|
+
* @deprecated Custom themes were removed in Qapture 0.3.0 — the widget now
|
|
95
|
+
* ships one fixed, self-contained design. This key is IGNORED (a warning is
|
|
96
|
+
* pushed by validateConfig); remove it from your qa.config to silence it.
|
|
97
|
+
*/
|
|
82
98
|
theme?: Partial<QaTheme>;
|
|
83
99
|
/** Panel brand label. */
|
|
84
100
|
brand?: {
|
|
@@ -108,10 +124,15 @@ type QaConfig = {
|
|
|
108
124
|
alwaysVisible?: boolean;
|
|
109
125
|
/** Keyboard shortcut to toggle the panel. Default: 'shift+alt+q'. */
|
|
110
126
|
hotkey?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Whether to capture ambient runtime context (console errors/warnings,
|
|
129
|
+
* uncaught errors, network failures, env snapshot) alongside new notes.
|
|
130
|
+
* Default: true.
|
|
131
|
+
*/
|
|
132
|
+
captureContext?: boolean;
|
|
111
133
|
};
|
|
112
134
|
type ResolvedConfig = {
|
|
113
135
|
namespace: string;
|
|
114
|
-
theme: QaTheme;
|
|
115
136
|
brand: {
|
|
116
137
|
label: string;
|
|
117
138
|
};
|
|
@@ -134,6 +155,7 @@ type ResolvedConfig = {
|
|
|
134
155
|
visible: boolean | undefined;
|
|
135
156
|
alwaysVisible: boolean;
|
|
136
157
|
hotkey: string;
|
|
158
|
+
captureContext: boolean;
|
|
137
159
|
};
|
|
138
160
|
|
|
139
161
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -5,15 +5,23 @@
|
|
|
5
5
|
* or skips invalid entries, and NEVER throws. Returns a fully-resolved config
|
|
6
6
|
* plus human-readable warnings.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* Custom themes were removed in Qapture 0.3.0 — QaConfig.theme is kept only
|
|
9
|
+
* so older config objects still type-check; it is IGNORED by validateConfig
|
|
10
|
+
* (a warning is pushed) and ResolvedConfig no longer carries a theme field.
|
|
10
11
|
*/
|
|
11
12
|
/** A bilingual string: either a plain string (language-neutral) or { en, ar? }. */
|
|
12
13
|
type QaBilingual = string | {
|
|
13
14
|
en: string;
|
|
14
15
|
ar?: string;
|
|
15
16
|
};
|
|
16
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Brand colour palette for the QA panel.
|
|
19
|
+
*
|
|
20
|
+
* @deprecated Custom themes were removed in Qapture 0.3.0 — the widget now
|
|
21
|
+
* ships one fixed, self-contained design. This type is kept only so that
|
|
22
|
+
* existing `theme?: Partial<QaTheme>` config objects still type-check; it has
|
|
23
|
+
* no effect on the rendered UI.
|
|
24
|
+
*/
|
|
17
25
|
type QaTheme = {
|
|
18
26
|
primary: string;
|
|
19
27
|
primaryDark: string;
|
|
@@ -43,6 +51,8 @@ type QaRisk = 'red' | 'amber' | 'green';
|
|
|
43
51
|
type QaJourneyStep = {
|
|
44
52
|
path: string;
|
|
45
53
|
what: QaBilingual;
|
|
54
|
+
/** Optional "what pass looks like" — shown alongside `what` when present. */
|
|
55
|
+
expect?: QaBilingual;
|
|
46
56
|
risk?: QaRisk;
|
|
47
57
|
riskWhy?: string;
|
|
48
58
|
};
|
|
@@ -78,7 +88,13 @@ type QaPreamble = {
|
|
|
78
88
|
type QaConfig = {
|
|
79
89
|
/** Storage + DB namespace. Defaults to 'qapture'. */
|
|
80
90
|
namespace?: string;
|
|
81
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Override any subset of the colour palette.
|
|
93
|
+
*
|
|
94
|
+
* @deprecated Custom themes were removed in Qapture 0.3.0 — the widget now
|
|
95
|
+
* ships one fixed, self-contained design. This key is IGNORED (a warning is
|
|
96
|
+
* pushed by validateConfig); remove it from your qa.config to silence it.
|
|
97
|
+
*/
|
|
82
98
|
theme?: Partial<QaTheme>;
|
|
83
99
|
/** Panel brand label. */
|
|
84
100
|
brand?: {
|
|
@@ -108,10 +124,15 @@ type QaConfig = {
|
|
|
108
124
|
alwaysVisible?: boolean;
|
|
109
125
|
/** Keyboard shortcut to toggle the panel. Default: 'shift+alt+q'. */
|
|
110
126
|
hotkey?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Whether to capture ambient runtime context (console errors/warnings,
|
|
129
|
+
* uncaught errors, network failures, env snapshot) alongside new notes.
|
|
130
|
+
* Default: true.
|
|
131
|
+
*/
|
|
132
|
+
captureContext?: boolean;
|
|
111
133
|
};
|
|
112
134
|
type ResolvedConfig = {
|
|
113
135
|
namespace: string;
|
|
114
|
-
theme: QaTheme;
|
|
115
136
|
brand: {
|
|
116
137
|
label: string;
|
|
117
138
|
};
|
|
@@ -134,6 +155,7 @@ type ResolvedConfig = {
|
|
|
134
155
|
visible: boolean | undefined;
|
|
135
156
|
alwaysVisible: boolean;
|
|
136
157
|
hotkey: string;
|
|
158
|
+
captureContext: boolean;
|
|
137
159
|
};
|
|
138
160
|
|
|
139
161
|
/**
|
package/dist/index.js
CHANGED
package/dist/next.cjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunk6KAXMN77_cjs = require('./chunk-6KAXMN77.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "QaStudio", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk6KAXMN77_cjs.Qapture; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "Qapture", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk6KAXMN77_cjs.Qapture; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "initQaStudio", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk6KAXMN77_cjs.initQaStudio; }
|
|
19
19
|
});
|
|
20
20
|
//# sourceMappingURL=next.cjs.map
|
|
21
21
|
//# sourceMappingURL=next.cjs.map
|
package/dist/next.js
CHANGED
package/dist/standalone.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6KAXMN77_cjs = require('./chunk-6KAXMN77.cjs');
|
|
4
4
|
|
|
5
5
|
// src/standalone.ts
|
|
6
6
|
if (typeof window !== "undefined" && typeof customElements !== "undefined" && !customElements.get("qapture-widget")) {
|
|
@@ -38,7 +38,7 @@ if (typeof window !== "undefined" && typeof customElements !== "undefined" && !c
|
|
|
38
38
|
|
|
39
39
|
Object.defineProperty(exports, "initQaStudio", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk6KAXMN77_cjs.initQaStudio; }
|
|
42
42
|
});
|
|
43
43
|
//# sourceMappingURL=standalone.cjs.map
|
|
44
44
|
//# sourceMappingURL=standalone.cjs.map
|
package/dist/standalone.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qapture2",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Drop-in, AI-aware in-browser QA capture widget. A tester annotates the live app (element/region + auto-screenshot + note), tracks a graded testing journey, and exports a ZIP your own coding agent reads. Ships zero AI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|