@kolkrabbi/kol-shell 0.81.0 → 0.82.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/HubHome.jsx +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.82.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The application shell",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@kolkrabbi/kol-component": "^0.301.0",
|
|
25
|
-
"@kolkrabbi/kol-icons": "^0.45.0",
|
|
26
24
|
"@kolkrabbi/kol-framework": "^0.55.0",
|
|
27
|
-
"@kolkrabbi/kol-theme": "^0.189.0"
|
|
25
|
+
"@kolkrabbi/kol-theme": "^0.189.0",
|
|
26
|
+
"@kolkrabbi/kol-component": "^0.301.0",
|
|
27
|
+
"@kolkrabbi/kol-icons": "^0.45.0"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"src",
|
package/src/HubHome.jsx
CHANGED
|
@@ -59,6 +59,8 @@ import { useTouchPrimary } from './TouchDeviceOverlay.jsx'
|
|
|
59
59
|
* @param {Function} onBack `(file, src)` — the rail's Back pick over the file's `images`; the consumer stores it as `back`
|
|
60
60
|
* @param {boolean} flipped · backHover the cards' back (AppCardWholeFlip, 2026-10-24): `flipped` turns every card that has a `back` — the
|
|
61
61
|
* page turns them on a key; `backHover` opts the hover reveal in (default off)
|
|
62
|
+
* @param {string} backReveal the cards' back treatment (HubHomeBackReveal, 2026-10-24): `flip-image` (default) · `flip-card` ·
|
|
63
|
+
* `hover`, for every card; a file's own `backReveal` wins
|
|
62
64
|
* @param {Function} onImages `(file, next)` — the rail's Upload tile and × write the WHOLE list back (`[{ id, src, label? }]`, the
|
|
63
65
|
* rail names a new image's id); the consumer stores it as the file's `images`. Absent → no tile, no ×.
|
|
64
66
|
* An image removed while it was the cover or the back clears it: `onCover(file, null)` · `onBack(file, null)`
|
|
@@ -130,6 +132,7 @@ export default function HubHome({
|
|
|
130
132
|
onImages,
|
|
131
133
|
flipped,
|
|
132
134
|
backHover,
|
|
135
|
+
backReveal,
|
|
133
136
|
filterGroups,
|
|
134
137
|
action,
|
|
135
138
|
views = HUB_VIEWS,
|
|
@@ -176,6 +179,7 @@ export default function HubHome({
|
|
|
176
179
|
size: item.bytes,
|
|
177
180
|
media: item.cover,
|
|
178
181
|
back: item.back,
|
|
182
|
+
backReveal: item.backReveal ?? backReveal,
|
|
179
183
|
tags: item.tags,
|
|
180
184
|
details: item.details,
|
|
181
185
|
onTags: onTags ? (tags) => onTags(item, tags) : undefined,
|