@kolkrabbi/kol-shell 0.78.1 → 0.79.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-shell",
3
- "version": "0.78.1",
3
+ "version": "0.79.0",
4
4
  "private": false,
5
5
  "description": "The application shell",
6
6
  "license": "MIT",
@@ -12,19 +12,19 @@
12
12
  "./src/*": "./src/*"
13
13
  },
14
14
  "peerDependencies": {
15
- "@kolkrabbi/kol-component": ">=0.296.0",
15
+ "@kolkrabbi/kol-component": ">=0.299.0",
16
16
  "@kolkrabbi/kol-framework": ">=0.53.0",
17
17
  "@kolkrabbi/kol-icons": ">=0.16.0",
18
- "@kolkrabbi/kol-theme": ">=0.184.0",
18
+ "@kolkrabbi/kol-theme": ">=0.187.0",
19
19
  "gsap": "^3.13.0",
20
20
  "react": "^18.3.0 || ^19.0.0",
21
21
  "react-dom": "^18.3.0 || ^19.0.0"
22
22
  },
23
23
  "devDependencies": {
24
+ "@kolkrabbi/kol-component": "^0.299.0",
24
25
  "@kolkrabbi/kol-icons": "^0.45.0",
25
- "@kolkrabbi/kol-component": "^0.297.0",
26
- "@kolkrabbi/kol-framework": "^0.53.0",
27
- "@kolkrabbi/kol-theme": "^0.185.0"
26
+ "@kolkrabbi/kol-theme": "^0.187.0",
27
+ "@kolkrabbi/kol-framework": "^0.54.0"
28
28
  },
29
29
  "files": [
30
30
  "src",
package/src/HubHome.jsx CHANGED
@@ -38,8 +38,11 @@ import { useTouchPrimary } from './TouchDeviceOverlay.jsx'
38
38
  * @param {string} title · subtitle Home's own masthead instead — for a Home that is not the front
39
39
  * door (media-hub's Library at `/library`, 2026-09-26: it said "Media")
40
40
  * @param {Array} files the user's files, the ONLY source of cards:
41
- * `[{ id, name, updatedAt (ms), bytes?, cover? (src | node), tags?: string[],
42
- * note?: string, mark?: { icon, label, of? }, details?: [{ label, value }] }]` — `mark` is a glyph
41
+ * `[{ id, name, updatedAt (ms), bytes?, cover? (src | node), back? (src | node), images?: [{ id, src, label? }],
42
+ * tags?: string[], note?: string, mark?: { icon, label, of? }, details?: [{ label, value }] }]` — `back` is the card's
43
+ * second cover, revealed on hover (AppCardBackCover, monitor: the rack behind the output); `images` are the
44
+ * file's pictures, the rail's Files section (FileRailImages): quicklook, remove, upload, and the cover and back
45
+ * picked from them; `mark` is a glyph
43
46
  * on the cover's other corner for what the file is (FXR: the chrome it was made with) — newest first wherever they come from; a
44
47
  * file may carry the keys its `filterGroups` read (monitor's `type`)
45
48
  * @param {Function} onOpen `(file)` — the card and the row click; required with `files`
@@ -51,7 +54,12 @@ import { useTouchPrimary } from './TouchDeviceOverlay.jsx'
51
54
  * @param {Function} onTags `(file, tags)` — the rail's tag chips write through it; absent → tags read-only
52
55
  * @param {Function} onNote `(file, text)` — the rail's note (a plain description, 2026-10-23) writes through it; absent → read-only
53
56
  * @param {Function} onCover `(file, src)` — the rail's Upload image (2026-10-24): the DS picker's webp data URL for the
54
- * file's cover; the consumer stores it as the file's `cover`. Absent → no Cover row
57
+ * file's cover; the consumer stores it as the file's `cover`. Absent → no Cover row. With `images`
58
+ * on the file it is the Cover PICK instead — `src` is the picked image's, or `null` when that image is removed (FileRailImages)
59
+ * @param {Function} onBack `(file, src)` — the rail's Back pick over the file's `images`; the consumer stores it as `back`
60
+ * @param {Function} onImages `(file, next)` — the rail's Upload tile and × write the WHOLE list back (`[{ id, src, label? }]`, the
61
+ * rail names a new image's id); the consumer stores it as the file's `images`. Absent → no tile, no ×.
62
+ * An image removed while it was the cover or the back clears it: `onCover(file, null)` · `onBack(file, null)`
55
63
  * @param {Object} touch QUICK LINKS ON A PHONE, opt-in (studio-hub review 2, § 7.2 — *"fxr would use the quicklinks
56
64
  * for picking chrome right on mobile, while monitor and mirror wouldn't"*):
57
65
  * `{ doors: [{ icon, label, onPress }] }` — on a coarse pointer or below `md`, the doors as a
@@ -116,6 +124,8 @@ export default function HubHome({
116
124
  onTags,
117
125
  onNote,
118
126
  onCover,
127
+ onBack,
128
+ onImages,
119
129
  filterGroups,
120
130
  action,
121
131
  views = HUB_VIEWS,
@@ -161,6 +171,7 @@ export default function HubHome({
161
171
  date: item.updatedAt,
162
172
  size: item.bytes,
163
173
  media: item.cover,
174
+ back: item.back,
164
175
  tags: item.tags,
165
176
  details: item.details,
166
177
  onTags: onTags ? (tags) => onTags(item, tags) : undefined,
@@ -168,6 +179,10 @@ export default function HubHome({
168
179
  mark: item.mark,
169
180
  onNote: onNote ? (text) => onNote(item, text) : undefined,
170
181
  onCover: onCover ? (src) => onCover(item, src) : undefined,
182
+ /* the rail's Files section (FileRailImages, 2026-10-24): the file's images, and the picks and writes over them */
183
+ images: item.images,
184
+ onBack: onBack ? (src) => onBack(item, src) : undefined,
185
+ onImages: onImages ? (next) => onImages(item, next) : undefined,
171
186
  verbs: Object.keys(verbs).length ? verbs : undefined,
172
187
  download: onDownload ? () => onDownload(item) : undefined,
173
188
  onClick: onOpen ? () => onOpen(item) : undefined,
package/src/PageShell.jsx CHANGED
@@ -52,7 +52,7 @@
52
52
  * surface swap would hide. The ink stays `text-auto` (surface-on-primary).
53
53
  * ONE OWNER PER PIXEL (2026-09-03): the variable means what is LEFT to paint.
54
54
  * kol-shell's `AppShell` hands the wash down for this to paint; kol-framework's
55
- * `PageLayout` paints it on its own plane and hands down `transparent`, so a
55
+ * `SiteLayout` paints it on its own plane and hands down `transparent`, so a
56
56
  * PageShell inside it does not paint it again (it used to — two 0.02 layers).
57
57
  *
58
58
  * @param {'scroll'|'fixed'} mode scroll (default) | fixed — see above