qapture2 0.8.3 → 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.cjs CHANGED
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var chunkOSYYMS6R_cjs = require('./chunk-OSYYMS6R.cjs');
3
+ var chunkJ77SGE5E_cjs = require('./chunk-J77SGE5E.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "QaStudio", {
8
8
  enumerable: true,
9
- get: function () { return chunkOSYYMS6R_cjs.Qapture; }
9
+ get: function () { return chunkJ77SGE5E_cjs.Qapture; }
10
10
  });
11
11
  Object.defineProperty(exports, "Qapture", {
12
12
  enumerable: true,
13
- get: function () { return chunkOSYYMS6R_cjs.Qapture; }
13
+ get: function () { return chunkJ77SGE5E_cjs.Qapture; }
14
14
  });
15
15
  Object.defineProperty(exports, "deleteQaDatabase", {
16
16
  enumerable: true,
17
- get: function () { return chunkOSYYMS6R_cjs.deleteQaDatabase; }
17
+ get: function () { return chunkJ77SGE5E_cjs.deleteQaDatabase; }
18
18
  });
19
19
  Object.defineProperty(exports, "initQaStudio", {
20
20
  enumerable: true,
21
- get: function () { return chunkOSYYMS6R_cjs.initQaStudio; }
21
+ get: function () { return chunkJ77SGE5E_cjs.initQaStudio; }
22
22
  });
23
23
  //# sourceMappingURL=index.cjs.map
24
24
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -113,6 +113,36 @@ type QaConfig = {
113
113
  preamble?: QaPreamble;
114
114
  /** If true, default language initializes to 'ar' (RTL). */
115
115
  rtl?: boolean;
116
+ /**
117
+ * Show a small "beta" mark on the button.
118
+ *
119
+ * For shipping this into a client's live site during a review period. It
120
+ * sets an expectation before anything goes wrong -- a client who knows a
121
+ * tool is new forgives a rough edge and tells you about it, and a client who
122
+ * thought it was finished quietly stops using it instead.
123
+ *
124
+ * Deliberately a mark on the button and nothing else: no banner, no modal,
125
+ * no interruption. It is a label, not an announcement.
126
+ */
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
+ };
116
146
  /**
117
147
  * Whether the panel is visible.
118
148
  * - true / false: always show / always hide
@@ -156,6 +186,14 @@ type ResolvedConfig = {
156
186
  journey: QaJourneyLane[];
157
187
  preamble: QaPreamble | null;
158
188
  rtl: boolean;
189
+ beta: boolean;
190
+ collector: {
191
+ url: string;
192
+ token: string;
193
+ project: string;
194
+ campaign?: string;
195
+ tester?: string;
196
+ } | null;
159
197
  /**
160
198
  * Visibility sentinel.
161
199
  * - true: always show
package/dist/index.d.ts CHANGED
@@ -113,6 +113,36 @@ type QaConfig = {
113
113
  preamble?: QaPreamble;
114
114
  /** If true, default language initializes to 'ar' (RTL). */
115
115
  rtl?: boolean;
116
+ /**
117
+ * Show a small "beta" mark on the button.
118
+ *
119
+ * For shipping this into a client's live site during a review period. It
120
+ * sets an expectation before anything goes wrong -- a client who knows a
121
+ * tool is new forgives a rough edge and tells you about it, and a client who
122
+ * thought it was finished quietly stops using it instead.
123
+ *
124
+ * Deliberately a mark on the button and nothing else: no banner, no modal,
125
+ * no interruption. It is a label, not an announcement.
126
+ */
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
+ };
116
146
  /**
117
147
  * Whether the panel is visible.
118
148
  * - true / false: always show / always hide
@@ -156,6 +186,14 @@ type ResolvedConfig = {
156
186
  journey: QaJourneyLane[];
157
187
  preamble: QaPreamble | null;
158
188
  rtl: boolean;
189
+ beta: boolean;
190
+ collector: {
191
+ url: string;
192
+ token: string;
193
+ project: string;
194
+ campaign?: string;
195
+ tester?: string;
196
+ } | null;
159
197
  /**
160
198
  * Visibility sentinel.
161
199
  * - true: always show
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { Qapture as QaStudio, Qapture, deleteQaDatabase, initQaStudio } from './chunk-32LKZ2PG.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 chunkOSYYMS6R_cjs = require('./chunk-OSYYMS6R.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 chunkOSYYMS6R_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 chunkOSYYMS6R_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 chunkOSYYMS6R_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-32LKZ2PG.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 chunkOSYYMS6R_cjs = require('./chunk-OSYYMS6R.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 chunkOSYYMS6R_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-32LKZ2PG.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.8.3",
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",