@kolkrabbi/kol-shell 0.67.0 → 0.68.0
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/package.json +4 -4
- package/src/AppHub.jsx +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The application shell",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@kolkrabbi/kol-component": "^0.
|
|
23
|
+
"@kolkrabbi/kol-component": "^0.268.0",
|
|
24
|
+
"@kolkrabbi/kol-framework": "^0.51.0",
|
|
24
25
|
"@kolkrabbi/kol-icons": "^0.39.0",
|
|
25
|
-
"@kolkrabbi/kol-theme": "^0.175.0"
|
|
26
|
-
"@kolkrabbi/kol-framework": "^0.51.0"
|
|
26
|
+
"@kolkrabbi/kol-theme": "^0.175.0"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"src",
|
package/src/AppHub.jsx
CHANGED
|
@@ -3,9 +3,9 @@ import AppShell from './AppShell.jsx'
|
|
|
3
3
|
import HubHome from './HubHome.jsx'
|
|
4
4
|
import HubSettings from './HubSettings.jsx'
|
|
5
5
|
import HubDev from './HubDev.jsx'
|
|
6
|
-
import {
|
|
6
|
+
import { ShortcutsOverlay } from '@kolkrabbi/kol-component'
|
|
7
7
|
|
|
8
|
-
/* taxonomy-ok: organism — nests AppShell / HubHome / HubSettings / HubDev (relative) + kol-component's
|
|
8
|
+
/* taxonomy-ok: organism — nests AppShell / HubHome / HubSettings / HubDev (relative) + kol-component's ShortcutsOverlay */
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* AppHub — An app's shell and hub in one. Shell + Hub in one call; the app passes its Tool as children (the app anatomy,
|
|
@@ -70,12 +70,11 @@ export default function AppHub({
|
|
|
70
70
|
children,
|
|
71
71
|
}) {
|
|
72
72
|
const [sheet, setSheet] = useState(false)
|
|
73
|
-
const [sheetQuery, setSheetQuery] = useState('')
|
|
74
73
|
|
|
75
74
|
useEffect(() => {
|
|
76
75
|
if (!shortcutsKey) return undefined
|
|
77
76
|
const onKey = (e) => {
|
|
78
|
-
if (e.key
|
|
77
|
+
if (e.key !== shortcutsKey || e.shiftKey || e.metaKey || e.ctrlKey || e.altKey || e.repeat) return
|
|
79
78
|
const t = e.target
|
|
80
79
|
if (t?.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(t?.tagName)) return
|
|
81
80
|
e.preventDefault()
|
|
@@ -126,9 +125,10 @@ export default function AppHub({
|
|
|
126
125
|
{...shell}
|
|
127
126
|
>
|
|
128
127
|
{page}
|
|
129
|
-
{/* THE SHEET IS
|
|
130
|
-
*
|
|
131
|
-
|
|
128
|
+
{/* THE SHEET IS A LIST, NOT A SEARCH (ShortcutsOverlayList, kol-monitor 2026-10-18 — user: *"its alist of
|
|
129
|
+
* shortcuts NOT A SEARCH"*, *"why are we showing disabled shortcuts, named category elsewhere"*): this
|
|
130
|
+
* page's sections only, no field, no Run; `S` toggles it, Esc closes it. Reverses 5.3 (2026-10-17). */}
|
|
131
|
+
{sheet && <ShortcutsOverlay shortcuts={shortcuts} currentPath={currentPath} onClose={() => setSheet(false)} />}
|
|
132
132
|
</AppShell>
|
|
133
133
|
)
|
|
134
134
|
}
|