qapture2 0.9.0 → 0.9.1

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.d.ts CHANGED
@@ -125,6 +125,24 @@ type QaConfig = {
125
125
  * no interruption. It is a label, not an announcement.
126
126
  */
127
127
  beta?: boolean;
128
+ /**
129
+ * Post each note to a collector as it is written, so the client never has to
130
+ * remember to export and send anything.
131
+ *
132
+ * Purely additive: notes are saved locally first and the export is unchanged,
133
+ * so a collector that is down or unreachable costs nothing at all.
134
+ *
135
+ * The token here is WRITE-ONLY and ships to the browser, which is fine by
136
+ * design: it can add notes to one project and cannot read anything back.
137
+ * Never put the collector's admin token in a page.
138
+ */
139
+ collector?: {
140
+ url: string;
141
+ token: string;
142
+ project: string;
143
+ campaign?: string;
144
+ tester?: string;
145
+ };
128
146
  /**
129
147
  * Whether the panel is visible.
130
148
  * - true / false: always show / always hide
@@ -169,6 +187,13 @@ type ResolvedConfig = {
169
187
  preamble: QaPreamble | null;
170
188
  rtl: boolean;
171
189
  beta: boolean;
190
+ collector: {
191
+ url: string;
192
+ token: string;
193
+ project: string;
194
+ campaign?: string;
195
+ tester?: string;
196
+ } | null;
172
197
  /**
173
198
  * Visibility sentinel.
174
199
  * - true: always show
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { Qapture as QaStudio, Qapture, deleteQaDatabase, initQaStudio } from './chunk-B22X5Y6U.js';
1
+ export { Qapture as QaStudio, Qapture, deleteQaDatabase, initQaStudio } from './chunk-HEHVZCSV.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 chunk5EWNGJ2N_cjs = require('./chunk-5EWNGJ2N.cjs');
4
+ var chunkJ77SGE5E_cjs = require('./chunk-J77SGE5E.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "QaStudio", {
9
9
  enumerable: true,
10
- get: function () { return chunk5EWNGJ2N_cjs.Qapture; }
10
+ get: function () { return chunkJ77SGE5E_cjs.Qapture; }
11
11
  });
12
12
  Object.defineProperty(exports, "Qapture", {
13
13
  enumerable: true,
14
- get: function () { return chunk5EWNGJ2N_cjs.Qapture; }
14
+ get: function () { return chunkJ77SGE5E_cjs.Qapture; }
15
15
  });
16
16
  Object.defineProperty(exports, "initQaStudio", {
17
17
  enumerable: true,
18
- get: function () { return chunk5EWNGJ2N_cjs.initQaStudio; }
18
+ get: function () { return chunkJ77SGE5E_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-B22X5Y6U.js';
2
+ export { Qapture as QaStudio, Qapture, initQaStudio } from './chunk-HEHVZCSV.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 chunk5EWNGJ2N_cjs = require('./chunk-5EWNGJ2N.cjs');
3
+ var chunkJ77SGE5E_cjs = require('./chunk-J77SGE5E.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 chunk5EWNGJ2N_cjs.initQaStudio; }
41
+ get: function () { return chunkJ77SGE5E_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-B22X5Y6U.js';
1
+ export { initQaStudio } from './chunk-HEHVZCSV.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.9.0",
3
+ "version": "0.9.1",
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",