@rickcedwhat/playwright-smart-vision 0.1.0-next.a2f44fc → 0.1.0-next.b19c880
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/configure.d.ts +2 -2
- package/dist/configure.js +2 -2
- package/dist/devtools.d.ts.map +1 -1
- package/dist/devtools.js +200 -205
- package/dist/devtools.js.map +1 -1
- package/package.json +6 -1
package/dist/configure.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ interface GlobalConfig {
|
|
|
11
11
|
export declare function getGlobalConfig(): GlobalConfig;
|
|
12
12
|
/**
|
|
13
13
|
* Configure storage root and optional devtools FAB.
|
|
14
|
-
* Pass `page`
|
|
14
|
+
* Pass `page` to inject the FAB immediately (QA Wolf / non-fixture usage).
|
|
15
15
|
* In fixture-based Playwright tests the FAB is injected automatically by the ocrScreen fixture.
|
|
16
16
|
*
|
|
17
|
-
* await configure({ storage: { root: process.env.TEAM_STORAGE_DIR + '/screens' }, devtools: true
|
|
17
|
+
* await configure({ storage: { root: process.env.TEAM_STORAGE_DIR + '/screens' }, devtools: true, page });
|
|
18
18
|
*/
|
|
19
19
|
export declare function configure(config: GlobalConfig): Promise<void>;
|
|
20
20
|
/**
|
package/dist/configure.js
CHANGED
|
@@ -6,10 +6,10 @@ export function getGlobalConfig() {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Configure storage root and optional devtools FAB.
|
|
9
|
-
* Pass `page`
|
|
9
|
+
* Pass `page` to inject the FAB immediately (QA Wolf / non-fixture usage).
|
|
10
10
|
* In fixture-based Playwright tests the FAB is injected automatically by the ocrScreen fixture.
|
|
11
11
|
*
|
|
12
|
-
* await configure({ storage: { root: process.env.TEAM_STORAGE_DIR + '/screens' }, devtools: true
|
|
12
|
+
* await configure({ storage: { root: process.env.TEAM_STORAGE_DIR + '/screens' }, devtools: true, page });
|
|
13
13
|
*/
|
|
14
14
|
export async function configure(config) {
|
|
15
15
|
const { page, ...rest } = config;
|
package/dist/devtools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.d.ts","sourceRoot":"","sources":["../src/devtools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"devtools.d.ts","sourceRoot":"","sources":["../src/devtools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AA4N7C,wBAAsB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAa9D"}
|
package/dist/devtools.js
CHANGED
|
@@ -3,223 +3,216 @@ const FAB_SCRIPT = `(function () {
|
|
|
3
3
|
if (window.__ocrDevtools) return;
|
|
4
4
|
window.__ocrDevtools = true;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
border-radius: 6px;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
right: 20px;
|
|
126
|
-
z-index: 2147483647;
|
|
127
|
-
background: #16a34a;
|
|
128
|
-
color: #fff;
|
|
129
|
-
padding: 8px 14px;
|
|
130
|
-
border-radius: 6px;
|
|
131
|
-
font-size: 13px;
|
|
132
|
-
font-family: system-ui, sans-serif;
|
|
133
|
-
box-shadow: 0 4px 12px rgba(0,0,0,0.4);
|
|
134
|
-
transition: opacity 0.3s;
|
|
135
|
-
}
|
|
136
|
-
\`;
|
|
137
|
-
document.head.appendChild(style);
|
|
138
|
-
|
|
139
|
-
const fab = document.createElement('div');
|
|
140
|
-
fab.id = '__ocr-fab';
|
|
141
|
-
fab.innerHTML = \`
|
|
142
|
-
<div id="__ocr-fab-menu">
|
|
143
|
-
<button id="__ocr-capture-btn">📷 Capture Screen</button>
|
|
144
|
-
</div>
|
|
145
|
-
<button id="__ocr-fab-btn" title="OCR Devtools">👁</button>
|
|
146
|
-
\`;
|
|
147
|
-
document.body.appendChild(fab);
|
|
148
|
-
|
|
149
|
-
const fabBtn = document.getElementById('__ocr-fab-btn');
|
|
150
|
-
const menu = document.getElementById('__ocr-fab-menu');
|
|
151
|
-
const captureBtn = document.getElementById('__ocr-capture-btn');
|
|
152
|
-
|
|
153
|
-
fabBtn.addEventListener('click', () => menu.classList.toggle('open'));
|
|
154
|
-
document.addEventListener('click', (e) => {
|
|
155
|
-
if (!fab.contains(e.target)) menu.classList.remove('open');
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
captureBtn.addEventListener('click', async () => {
|
|
159
|
-
menu.classList.remove('open');
|
|
160
|
-
fab.style.display = 'none';
|
|
161
|
-
let b64;
|
|
162
|
-
try {
|
|
163
|
-
b64 = await window.__ocrCapture();
|
|
164
|
-
} finally {
|
|
165
|
-
fab.style.display = '';
|
|
166
|
-
}
|
|
167
|
-
showModal(b64);
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
function showModal(b64) {
|
|
171
|
-
const backdrop = document.createElement('div');
|
|
172
|
-
backdrop.id = '__ocr-modal-backdrop';
|
|
173
|
-
backdrop.innerHTML = \`
|
|
174
|
-
<div id="__ocr-modal">
|
|
175
|
-
<h3>Captured Screen</h3>
|
|
176
|
-
<img src="data:image/png;base64,\${b64}" />
|
|
177
|
-
<input id="__ocr-name-input" type="text" placeholder="Screen name (e.g. desktop, customer-info)" />
|
|
178
|
-
<div id="__ocr-modal-actions">
|
|
179
|
-
<button id="__ocr-modal-cancel">Cancel</button>
|
|
180
|
-
<button id="__ocr-modal-save">Save</button>
|
|
181
|
-
</div>
|
|
6
|
+
console.log('[OCR devtools] script loaded, readyState:', document.readyState);
|
|
7
|
+
|
|
8
|
+
function init() {
|
|
9
|
+
if (document.getElementById('__ocr-fab')) return;
|
|
10
|
+
console.log('[OCR devtools] mounting FAB');
|
|
11
|
+
|
|
12
|
+
const style = document.createElement('style');
|
|
13
|
+
style.textContent = \`
|
|
14
|
+
#__ocr-fab {
|
|
15
|
+
position: fixed;
|
|
16
|
+
bottom: 20px;
|
|
17
|
+
right: 20px;
|
|
18
|
+
z-index: 2147483647;
|
|
19
|
+
font-family: system-ui, sans-serif;
|
|
20
|
+
}
|
|
21
|
+
#__ocr-fab-btn {
|
|
22
|
+
width: 48px;
|
|
23
|
+
height: 48px;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
background: #1a1a2e;
|
|
26
|
+
border: 2px solid #4f46e5;
|
|
27
|
+
color: #fff;
|
|
28
|
+
font-size: 20px;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
box-shadow: 0 4px 12px rgba(0,0,0,0.4);
|
|
34
|
+
transition: transform 0.15s;
|
|
35
|
+
}
|
|
36
|
+
#__ocr-fab-btn:hover { transform: scale(1.1); }
|
|
37
|
+
#__ocr-fab-menu {
|
|
38
|
+
position: absolute;
|
|
39
|
+
bottom: 56px;
|
|
40
|
+
right: 0;
|
|
41
|
+
background: #1a1a2e;
|
|
42
|
+
border: 1px solid #4f46e5;
|
|
43
|
+
border-radius: 8px;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
box-shadow: 0 4px 16px rgba(0,0,0,0.5);
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
#__ocr-fab-menu.open { display: block; }
|
|
49
|
+
#__ocr-fab-menu button {
|
|
50
|
+
display: block;
|
|
51
|
+
width: 100%;
|
|
52
|
+
padding: 10px 16px;
|
|
53
|
+
background: none;
|
|
54
|
+
border: none;
|
|
55
|
+
color: #e2e8f0;
|
|
56
|
+
font-size: 13px;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
text-align: left;
|
|
60
|
+
}
|
|
61
|
+
#__ocr-fab-menu button:hover { background: #2d2d4e; }
|
|
62
|
+
#__ocr-modal-backdrop {
|
|
63
|
+
position: fixed;
|
|
64
|
+
inset: 0;
|
|
65
|
+
background: rgba(0,0,0,0.6);
|
|
66
|
+
z-index: 2147483646;
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
}
|
|
71
|
+
#__ocr-modal {
|
|
72
|
+
background: #1a1a2e;
|
|
73
|
+
border: 1px solid #4f46e5;
|
|
74
|
+
border-radius: 12px;
|
|
75
|
+
padding: 20px;
|
|
76
|
+
width: 480px;
|
|
77
|
+
max-width: 90vw;
|
|
78
|
+
box-shadow: 0 8px 32px rgba(0,0,0,0.6);
|
|
79
|
+
font-family: system-ui, sans-serif;
|
|
80
|
+
}
|
|
81
|
+
#__ocr-modal h3 { margin: 0 0 12px; color: #e2e8f0; font-size: 15px; }
|
|
82
|
+
#__ocr-modal img { width: 100%; border-radius: 6px; border: 1px solid #4f46e5; margin-bottom: 12px; }
|
|
83
|
+
#__ocr-modal input {
|
|
84
|
+
width: 100%;
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
padding: 8px 10px;
|
|
87
|
+
border-radius: 6px;
|
|
88
|
+
border: 1px solid #4f46e5;
|
|
89
|
+
background: #0f0f1a;
|
|
90
|
+
color: #e2e8f0;
|
|
91
|
+
font-size: 13px;
|
|
92
|
+
margin-bottom: 12px;
|
|
93
|
+
outline: none;
|
|
94
|
+
}
|
|
95
|
+
#__ocr-modal input:focus { border-color: #818cf8; }
|
|
96
|
+
#__ocr-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
|
|
97
|
+
#__ocr-modal-actions button { padding: 7px 16px; border-radius: 6px; border: none; font-size: 13px; cursor: pointer; }
|
|
98
|
+
#__ocr-modal-save { background: #4f46e5; color: #fff; }
|
|
99
|
+
#__ocr-modal-save:hover { background: #6366f1; }
|
|
100
|
+
#__ocr-modal-save:disabled { opacity: 0.5; cursor: default; }
|
|
101
|
+
#__ocr-modal-cancel { background: #2d2d4e; color: #e2e8f0; }
|
|
102
|
+
#__ocr-modal-cancel:hover { background: #3d3d5e; }
|
|
103
|
+
#__ocr-toast {
|
|
104
|
+
position: fixed;
|
|
105
|
+
bottom: 80px;
|
|
106
|
+
right: 20px;
|
|
107
|
+
z-index: 2147483647;
|
|
108
|
+
background: #16a34a;
|
|
109
|
+
color: #fff;
|
|
110
|
+
padding: 8px 14px;
|
|
111
|
+
border-radius: 6px;
|
|
112
|
+
font-size: 13px;
|
|
113
|
+
font-family: system-ui, sans-serif;
|
|
114
|
+
box-shadow: 0 4px 12px rgba(0,0,0,0.4);
|
|
115
|
+
transition: opacity 0.3s;
|
|
116
|
+
}
|
|
117
|
+
\`;
|
|
118
|
+
(document.head || document.documentElement).appendChild(style);
|
|
119
|
+
|
|
120
|
+
const fab = document.createElement('div');
|
|
121
|
+
fab.id = '__ocr-fab';
|
|
122
|
+
fab.innerHTML = \`
|
|
123
|
+
<div id="__ocr-fab-menu">
|
|
124
|
+
<button id="__ocr-capture-btn">\u{1F4F7} Capture Screen</button>
|
|
182
125
|
</div>
|
|
126
|
+
<button id="__ocr-fab-btn" title="OCR Devtools">\u{1F441}</button>
|
|
183
127
|
\`;
|
|
184
|
-
document.body.appendChild(backdrop);
|
|
185
128
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
129
|
+
fab.addEventListener('mousedown', (e) => e.stopPropagation());
|
|
130
|
+
fab.addEventListener('mouseup', (e) => e.stopPropagation());
|
|
131
|
+
fab.addEventListener('click', (e) => e.stopPropagation());
|
|
189
132
|
|
|
190
|
-
|
|
133
|
+
(document.body || document.documentElement).appendChild(fab);
|
|
191
134
|
|
|
192
|
-
|
|
193
|
-
|
|
135
|
+
const fabBtn = fab.querySelector('#__ocr-fab-btn');
|
|
136
|
+
const menu = fab.querySelector('#__ocr-fab-menu');
|
|
137
|
+
const captureBtn = fab.querySelector('#__ocr-capture-btn');
|
|
138
|
+
|
|
139
|
+
fabBtn.addEventListener('click', (e) => { e.stopPropagation(); menu.classList.toggle('open'); });
|
|
140
|
+
document.addEventListener('click', (e) => {
|
|
141
|
+
if (!fab.contains(e.target)) menu.classList.remove('open');
|
|
142
|
+
});
|
|
194
143
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
saveBtn.textContent = 'Saving…';
|
|
144
|
+
captureBtn.addEventListener('click', async () => {
|
|
145
|
+
menu.classList.remove('open');
|
|
146
|
+
fab.style.display = 'none';
|
|
147
|
+
let b64;
|
|
200
148
|
try {
|
|
201
|
-
await window.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
} catch (err) {
|
|
205
|
-
saveBtn.disabled = false;
|
|
206
|
-
saveBtn.textContent = 'Save';
|
|
207
|
-
alert('Save failed: ' + err.message);
|
|
149
|
+
b64 = await window.__ocrCapture();
|
|
150
|
+
} finally {
|
|
151
|
+
fab.style.display = '';
|
|
208
152
|
}
|
|
153
|
+
showModal(b64);
|
|
209
154
|
});
|
|
210
155
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
156
|
+
function showModal(b64) {
|
|
157
|
+
const backdrop = document.createElement('div');
|
|
158
|
+
backdrop.id = '__ocr-modal-backdrop';
|
|
159
|
+
backdrop.innerHTML = \`
|
|
160
|
+
<div id="__ocr-modal">
|
|
161
|
+
<h3>Captured Screen</h3>
|
|
162
|
+
<img src="data:image/png;base64,\${b64}" />
|
|
163
|
+
<input id="__ocr-name-input" type="text" placeholder="Screen name (e.g. desktop, customer-info)" />
|
|
164
|
+
<div id="__ocr-modal-actions">
|
|
165
|
+
<button id="__ocr-modal-cancel">Cancel</button>
|
|
166
|
+
<button id="__ocr-modal-save">Save</button>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
\`;
|
|
170
|
+
document.body.appendChild(backdrop);
|
|
171
|
+
|
|
172
|
+
const input = backdrop.querySelector('#__ocr-name-input');
|
|
173
|
+
const saveBtn = backdrop.querySelector('#__ocr-modal-save');
|
|
174
|
+
const cancelBtn = backdrop.querySelector('#__ocr-modal-cancel');
|
|
175
|
+
|
|
176
|
+
input.focus();
|
|
177
|
+
|
|
178
|
+
cancelBtn.addEventListener('click', () => backdrop.remove());
|
|
179
|
+
backdrop.addEventListener('click', (e) => { if (e.target === backdrop) backdrop.remove(); });
|
|
180
|
+
|
|
181
|
+
saveBtn.addEventListener('click', async () => {
|
|
182
|
+
const name = input.value.trim();
|
|
183
|
+
if (!name) { input.focus(); return; }
|
|
184
|
+
saveBtn.disabled = true;
|
|
185
|
+
saveBtn.textContent = 'Saving…';
|
|
186
|
+
try {
|
|
187
|
+
await window.__ocrSave(name, b64);
|
|
188
|
+
backdrop.remove();
|
|
189
|
+
showToast('Saved: ' + name);
|
|
190
|
+
} catch (err) {
|
|
191
|
+
saveBtn.disabled = false;
|
|
192
|
+
saveBtn.textContent = 'Save';
|
|
193
|
+
alert('Save failed: ' + err.message);
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
input.addEventListener('keydown', (e) => {
|
|
198
|
+
if (e.key === 'Enter') saveBtn.click();
|
|
199
|
+
if (e.key === 'Escape') backdrop.remove();
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
function showToast(msg) {
|
|
204
|
+
const t = document.createElement('div');
|
|
205
|
+
t.id = '__ocr-toast';
|
|
206
|
+
t.textContent = msg;
|
|
207
|
+
document.body.appendChild(t);
|
|
208
|
+
setTimeout(() => { t.style.opacity = '0'; setTimeout(() => t.remove(), 300); }, 2500);
|
|
209
|
+
}
|
|
215
210
|
}
|
|
216
211
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
document.body.appendChild(t);
|
|
222
|
-
setTimeout(() => { t.style.opacity = '0'; setTimeout(() => t.remove(), 300); }, 2500);
|
|
212
|
+
if (document.readyState === 'loading') {
|
|
213
|
+
document.addEventListener('DOMContentLoaded', init);
|
|
214
|
+
} else {
|
|
215
|
+
init();
|
|
223
216
|
}
|
|
224
217
|
})();`;
|
|
225
218
|
export async function injectDevtools(page) {
|
|
@@ -230,6 +223,8 @@ export async function injectDevtools(page) {
|
|
|
230
223
|
await page.exposeFunction('__ocrSave', async (name, b64) => {
|
|
231
224
|
writeScreenBuffer(name, Buffer.from(b64, 'base64'));
|
|
232
225
|
});
|
|
226
|
+
// addInitScript covers future navigations; evaluate covers the already-loaded page.
|
|
233
227
|
await page.addInitScript(FAB_SCRIPT);
|
|
228
|
+
await page.evaluate(FAB_SCRIPT);
|
|
234
229
|
}
|
|
235
230
|
//# sourceMappingURL=devtools.js.map
|
package/dist/devtools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools.js","sourceRoot":"","sources":["../src/devtools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,UAAU,GAAG
|
|
1
|
+
{"version":3,"file":"devtools.js","sourceRoot":"","sources":["../src/devtools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuNb,CAAC;AAEP,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAU;IAC7C,MAAM,IAAI,CAAC,cAAc,CAAC,cAAc,EAAE,KAAK,IAAqB,EAAE;QACpE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,IAAY,EAAE,GAAW,EAAiB,EAAE;QACxF,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,oFAAoF;IACpF,MAAM,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACrC,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rickcedwhat/playwright-smart-vision",
|
|
3
|
-
"version": "0.1.0-next.
|
|
3
|
+
"version": "0.1.0-next.b19c880",
|
|
4
4
|
"description": "Computer-vision and OCR-based element assertions for Playwright — local, fast, no GPT Vision required",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -55,6 +55,11 @@
|
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@playwright/test": ">=1.50.0"
|
|
57
57
|
},
|
|
58
|
+
"peerDependenciesMeta": {
|
|
59
|
+
"@playwright/test": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
58
63
|
"dependencies": {
|
|
59
64
|
"@techstark/opencv-js": "^5.0.0-release.1",
|
|
60
65
|
"pixelmatch": "^7.2.0",
|