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/dist/index.cjs CHANGED
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var chunkDPJW626S_cjs = require('./chunk-DPJW626S.cjs');
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 chunkDPJW626S_cjs.Qapture; }
9
+ get: function () { return chunk6KAXMN77_cjs.Qapture; }
10
10
  });
11
11
  Object.defineProperty(exports, "Qapture", {
12
12
  enumerable: true,
13
- get: function () { return chunkDPJW626S_cjs.Qapture; }
13
+ get: function () { return chunk6KAXMN77_cjs.Qapture; }
14
14
  });
15
15
  Object.defineProperty(exports, "deleteQaDatabase", {
16
16
  enumerable: true,
17
- get: function () { return chunkDPJW626S_cjs.deleteQaDatabase; }
17
+ get: function () { return chunk6KAXMN77_cjs.deleteQaDatabase; }
18
18
  });
19
19
  Object.defineProperty(exports, "initQaStudio", {
20
20
  enumerable: true,
21
- get: function () { return chunkDPJW626S_cjs.initQaStudio; }
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
- * Also exports DEFAULT_THEME so that defaults.ts can import it without
9
- * creating a circular dependency (defaults.ts schema.ts, not the reverse).
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
- /** Brand colour palette for the QA panel. All fields optional on input. */
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
- /** Override any subset of the colour palette. */
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
- * Also exports DEFAULT_THEME so that defaults.ts can import it without
9
- * creating a circular dependency (defaults.ts schema.ts, not the reverse).
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
- /** Brand colour palette for the QA panel. All fields optional on input. */
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
- /** Override any subset of the colour palette. */
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
@@ -1,3 +1,3 @@
1
- export { Qapture as QaStudio, Qapture, deleteQaDatabase, initQaStudio } from './chunk-RC7ZUQ5X.js';
1
+ export { Qapture as QaStudio, Qapture, deleteQaDatabase, initQaStudio } from './chunk-ESRQOU32.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
package/dist/next.cjs CHANGED
@@ -1,21 +1,21 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkDPJW626S_cjs = require('./chunk-DPJW626S.cjs');
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 chunkDPJW626S_cjs.Qapture; }
10
+ get: function () { return chunk6KAXMN77_cjs.Qapture; }
11
11
  });
12
12
  Object.defineProperty(exports, "Qapture", {
13
13
  enumerable: true,
14
- get: function () { return chunkDPJW626S_cjs.Qapture; }
14
+ get: function () { return chunk6KAXMN77_cjs.Qapture; }
15
15
  });
16
16
  Object.defineProperty(exports, "initQaStudio", {
17
17
  enumerable: true,
18
- get: function () { return chunkDPJW626S_cjs.initQaStudio; }
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
@@ -1,4 +1,4 @@
1
1
  "use client";
2
- export { Qapture as QaStudio, Qapture, initQaStudio } from './chunk-RC7ZUQ5X.js';
2
+ export { Qapture as QaStudio, Qapture, initQaStudio } from './chunk-ESRQOU32.js';
3
3
  //# sourceMappingURL=next.js.map
4
4
  //# sourceMappingURL=next.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkDPJW626S_cjs = require('./chunk-DPJW626S.cjs');
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 chunkDPJW626S_cjs.initQaStudio; }
41
+ get: function () { return chunk6KAXMN77_cjs.initQaStudio; }
42
42
  });
43
43
  //# sourceMappingURL=standalone.cjs.map
44
44
  //# sourceMappingURL=standalone.cjs.map
@@ -1,4 +1,4 @@
1
- export { initQaStudio } from './chunk-RC7ZUQ5X.js';
1
+ export { initQaStudio } from './chunk-ESRQOU32.js';
2
2
 
3
3
  // src/standalone.ts
4
4
  if (typeof window !== "undefined" && typeof customElements !== "undefined" && !customElements.get("qapture-widget")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qapture2",
3
- "version": "0.2.4",
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",