openfox 1.6.60 → 1.6.61
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/{chunk-DTPVSVAJ.js → chunk-NUXLDPXN.js} +2 -2
- package/dist/{chunk-DKFXNO3L.js → chunk-RSBISZON.js} +2 -2
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/package.json +1 -1
- package/dist/{serve-MOB4AMHT.js → serve-L3JF62Z3.js} +2 -2
- package/dist/server/index.js +1 -1
- package/dist/server/public/__inspect__.js +17 -2
- package/package.json +1 -1
|
@@ -5058,7 +5058,7 @@ function createTerminalRoutes() {
|
|
|
5058
5058
|
}
|
|
5059
5059
|
|
|
5060
5060
|
// src/constants.ts
|
|
5061
|
-
var VERSION = "1.6.
|
|
5061
|
+
var VERSION = "1.6.61";
|
|
5062
5062
|
|
|
5063
5063
|
// src/server/index.ts
|
|
5064
5064
|
var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
|
|
@@ -5955,4 +5955,4 @@ export {
|
|
|
5955
5955
|
createServerHandle,
|
|
5956
5956
|
createServer
|
|
5957
5957
|
};
|
|
5958
|
-
//# sourceMappingURL=chunk-
|
|
5958
|
+
//# sourceMappingURL=chunk-NUXLDPXN.js.map
|
|
@@ -179,7 +179,7 @@ async function runCli(options) {
|
|
|
179
179
|
if (!configExists) {
|
|
180
180
|
await runNetworkSetup(mode);
|
|
181
181
|
}
|
|
182
|
-
const { runServe } = await import("./serve-
|
|
182
|
+
const { runServe } = await import("./serve-L3JF62Z3.js");
|
|
183
183
|
await runServe({
|
|
184
184
|
mode,
|
|
185
185
|
port: values.port ? parseInt(values.port) : void 0,
|
|
@@ -192,4 +192,4 @@ async function runCli(options) {
|
|
|
192
192
|
export {
|
|
193
193
|
runCli
|
|
194
194
|
};
|
|
195
|
-
//# sourceMappingURL=chunk-
|
|
195
|
+
//# sourceMappingURL=chunk-RSBISZON.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
package/dist/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
createServer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NUXLDPXN.js";
|
|
10
10
|
import "./chunk-GDE25PUA.js";
|
|
11
11
|
import "./chunk-K5THP6KN.js";
|
|
12
12
|
import "./chunk-NBU6KIOD.js";
|
|
@@ -187,4 +187,4 @@ async function runServe(options) {
|
|
|
187
187
|
export {
|
|
188
188
|
runServe
|
|
189
189
|
};
|
|
190
|
-
//# sourceMappingURL=serve-
|
|
190
|
+
//# sourceMappingURL=serve-L3JF62Z3.js.map
|
package/dist/server/index.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
window.__foxSessionTitle = null;
|
|
7
7
|
window.__foxInspectEnabled = true;
|
|
8
8
|
window.__foxSentPending = false;
|
|
9
|
+
window.__foxPopupOpen = false;
|
|
9
10
|
|
|
10
11
|
var overlayStyle = document.createElement('style');
|
|
11
12
|
overlayStyle.textContent = [
|
|
@@ -48,6 +49,13 @@
|
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
|
|
52
|
+
function clearHighlights() {
|
|
53
|
+
var highlighted = document.querySelectorAll('.__fox-highlight');
|
|
54
|
+
for (var i = 0; i < highlighted.length; i++) {
|
|
55
|
+
highlighted[i].classList.remove('__fox-highlight');
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
51
59
|
function generateXPath(el) {
|
|
52
60
|
if (!el || el.nodeType !== Node.ELEMENT_NODE) return '';
|
|
53
61
|
var parts = [];
|
|
@@ -99,6 +107,7 @@
|
|
|
99
107
|
var existing = document.getElementById('__fox-popup');
|
|
100
108
|
if (existing) existing.remove();
|
|
101
109
|
|
|
110
|
+
window.__foxPopupOpen = true;
|
|
102
111
|
var data = buildElementData(el);
|
|
103
112
|
var viewportWidth = window.innerWidth;
|
|
104
113
|
var viewportHeight = window.innerHeight;
|
|
@@ -141,6 +150,7 @@
|
|
|
141
150
|
|
|
142
151
|
popup.querySelector('.__fox-cancel').addEventListener('click', function(e) {
|
|
143
152
|
e.stopPropagation();
|
|
153
|
+
window.__foxPopupOpen = false;
|
|
144
154
|
popup.remove();
|
|
145
155
|
});
|
|
146
156
|
|
|
@@ -150,7 +160,9 @@
|
|
|
150
160
|
window.__foxSentPending = true;
|
|
151
161
|
setTimeout(function() { window.__foxSentPending = false; }, 3000);
|
|
152
162
|
var annotation = textarea.value.trim();
|
|
163
|
+
window.__foxPopupOpen = false;
|
|
153
164
|
popup.remove();
|
|
165
|
+
clearHighlights();
|
|
154
166
|
setInspectMode(false);
|
|
155
167
|
|
|
156
168
|
fetch('/__openfox_feedback', {
|
|
@@ -171,21 +183,24 @@
|
|
|
171
183
|
|
|
172
184
|
document.addEventListener('keydown', function escHandler(e) {
|
|
173
185
|
if (e.key === 'Escape') {
|
|
186
|
+
window.__foxPopupOpen = false;
|
|
174
187
|
popup.remove();
|
|
188
|
+
clearHighlights();
|
|
189
|
+
setInspectMode(false);
|
|
175
190
|
document.removeEventListener('keydown', escHandler);
|
|
176
191
|
}
|
|
177
192
|
});
|
|
178
193
|
}
|
|
179
194
|
|
|
180
195
|
document.addEventListener('mouseover', function(e) {
|
|
181
|
-
if (!window.__foxInspectMode) return;
|
|
196
|
+
if (!window.__foxInspectMode || window.__foxPopupOpen) return;
|
|
182
197
|
if (e.target === document.documentElement || e.target === document.body) return;
|
|
183
198
|
if (overlay.contains(e.target)) return;
|
|
184
199
|
e.target.classList.add('__fox-highlight');
|
|
185
200
|
}, true);
|
|
186
201
|
|
|
187
202
|
document.addEventListener('mouseout', function(e) {
|
|
188
|
-
if (!window.__foxInspectMode) return;
|
|
203
|
+
if (!window.__foxInspectMode || window.__foxPopupOpen) return;
|
|
189
204
|
if (e.target === document.documentElement || e.target === document.body) return;
|
|
190
205
|
if (overlay.contains(e.target)) return;
|
|
191
206
|
e.target.classList.remove('__fox-highlight');
|