one 1.4.7 → 1.4.8
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/devtools/devtools.mjs +35 -27
- package/package.json +9 -9
package/devtools/devtools.mjs
CHANGED
|
@@ -263,35 +263,43 @@
|
|
|
263
263
|
function setupKeyboard() {
|
|
264
264
|
if (keyboardSetup) return
|
|
265
265
|
keyboardSetup = true
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
if (e.
|
|
266
|
+
// use capture: false so app handlers can preventDefault first
|
|
267
|
+
document.addEventListener(
|
|
268
|
+
'keydown',
|
|
269
|
+
(e) => {
|
|
270
|
+
// respect other handlers and browser shortcuts
|
|
271
|
+
if (e.defaultPrevented || e.metaKey || e.ctrlKey) return
|
|
272
|
+
|
|
273
|
+
if (e.altKey && e.code === 'Space') {
|
|
272
274
|
e.preventDefault()
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
275
|
+
toggleSpotlight()
|
|
276
|
+
} else if (e.altKey) {
|
|
277
|
+
if (e.code === 'KeyI') {
|
|
278
|
+
e.preventDefault()
|
|
279
|
+
hideSpotlight()
|
|
280
|
+
window.__oneSourceInspector?.activate()
|
|
281
|
+
return
|
|
282
|
+
}
|
|
283
|
+
const tabMap = {
|
|
284
|
+
KeyS: 'seo',
|
|
285
|
+
KeyR: 'route',
|
|
286
|
+
KeyL: 'loader',
|
|
287
|
+
KeyE: 'errors',
|
|
288
|
+
}
|
|
289
|
+
const tab = tabMap[e.code]
|
|
290
|
+
if (tab) {
|
|
291
|
+
e.preventDefault()
|
|
292
|
+
activeTab = tab
|
|
293
|
+
hideSpotlight()
|
|
294
|
+
showPanel()
|
|
295
|
+
}
|
|
296
|
+
} else if (e.code === 'Escape') {
|
|
297
|
+
if (spotlightDialog?.open) spotlightDialog.close()
|
|
298
|
+
else if (panelDialog?.open) panelDialog.close()
|
|
289
299
|
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
})
|
|
300
|
+
},
|
|
301
|
+
{ capture: false }
|
|
302
|
+
)
|
|
295
303
|
}
|
|
296
304
|
|
|
297
305
|
function toggleSpotlight() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "one",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.8",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"setup.mjs",
|
|
@@ -149,17 +149,17 @@
|
|
|
149
149
|
"@react-navigation/routers": "~7.5.1",
|
|
150
150
|
"@swc/core": "^1.14.0",
|
|
151
151
|
"@ungap/structured-clone": "^1.2.0",
|
|
152
|
-
"@vxrn/color-scheme": "1.4.
|
|
153
|
-
"@vxrn/compiler": "1.4.
|
|
154
|
-
"@vxrn/resolve": "1.4.
|
|
155
|
-
"@vxrn/tslib-lite": "1.4.
|
|
156
|
-
"@vxrn/use-isomorphic-layout-effect": "1.4.
|
|
157
|
-
"@vxrn/vite-plugin-metro": "1.4.
|
|
152
|
+
"@vxrn/color-scheme": "1.4.8",
|
|
153
|
+
"@vxrn/compiler": "1.4.8",
|
|
154
|
+
"@vxrn/resolve": "1.4.8",
|
|
155
|
+
"@vxrn/tslib-lite": "1.4.8",
|
|
156
|
+
"@vxrn/use-isomorphic-layout-effect": "1.4.8",
|
|
157
|
+
"@vxrn/vite-plugin-metro": "1.4.8",
|
|
158
158
|
"babel-dead-code-elimination": "1.0.10",
|
|
159
159
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
160
160
|
"citty": "^0.1.6",
|
|
161
161
|
"core-js": "^3.38.1",
|
|
162
|
-
"create-vxrn": "1.4.
|
|
162
|
+
"create-vxrn": "1.4.8",
|
|
163
163
|
"escape-string-regexp": "^5.0.0",
|
|
164
164
|
"expo-linking": "~8.0.8",
|
|
165
165
|
"expo-modules-core": "~3.0.24",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"vite": "^7.1.12",
|
|
186
186
|
"vite-plugin-barrel": "^0.4.1",
|
|
187
187
|
"vite-tsconfig-paths": "^5.1.4",
|
|
188
|
-
"vxrn": "1.4.
|
|
188
|
+
"vxrn": "1.4.8",
|
|
189
189
|
"ws": "^8.18.0",
|
|
190
190
|
"xxhashjs": "^0.2.2"
|
|
191
191
|
},
|