@lemonriver/core 0.2.0 → 0.3.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/dist/{build-Df_xwIpg.js → build-Bqo69DWP.js} +1 -1
- package/dist/cli/bin.js +4 -4
- package/dist/{config-BjWCLoMQ.js → config-DJ5rkMMg.js} +1594 -974
- package/dist/{config-rMGCkz6i.d.ts → config-teo3kWz7.d.ts} +1 -1
- package/dist/{dev-Ctsx9IeO.js → dev-B2FJD5bJ.js} +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/{preview-CJgcqsPk.js → preview-C93BOZL1.js} +1 -1
- package/dist/{types-8VUyA2bu.d.ts → types-DFK02XVv.d.ts} +0 -35
- package/dist/{update-BKOA3Z6o.js → update-DsxZBtwv.js} +2 -70
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/{zh-tw-CeLrYwRE.js → zh-tw-DwTAZKa6.js} +6 -172
- package/package.json +1 -1
- package/src/app/app.tsx +5 -18
- package/src/app/components/agent/agent-panel.tsx +3 -0
- package/src/app/components/agent/agent-presence.tsx +2 -2
- package/src/app/components/agent/history-view.tsx +3 -2
- package/src/app/components/agent/transcript.tsx +15 -4
- package/src/app/components/asset-view.tsx +6 -6
- package/src/app/components/command/command-menu.tsx +2 -1
- package/src/app/components/inspector/asset-picker-dialog.tsx +7 -5
- package/src/app/components/inspector/comment-layer.tsx +2 -1
- package/src/app/components/inspector/inspector-panel.tsx +2 -2
- package/src/app/components/sidebar/sidebar-footer.tsx +1 -1
- package/src/app/components/sidebar/sidebar.tsx +3 -2
- package/src/app/components/themes/theme-detail.tsx +4 -2
- package/src/app/components/thumbnail-rail.tsx +1 -28
- package/src/app/index.html +2 -2
- package/src/app/lemonriver/agent/lemon.tsx +64 -0
- package/src/app/{components → lemonriver}/board/board-canvas.tsx +17 -17
- package/src/app/{routes/board.tsx → lemonriver/board/board-page.tsx} +16 -15
- package/src/app/{components → lemonriver}/board/layout.ts +1 -1
- package/src/app/lemonriver/board/model/cards.test.ts +239 -0
- package/src/app/lemonriver/board/model/cards.ts +234 -0
- package/src/app/lemonriver/board/model/structure.test.ts +101 -0
- package/src/app/lemonriver/board/model/structure.ts +82 -0
- package/src/app/{components → lemonriver}/board/page-node.tsx +34 -31
- package/src/app/{components → lemonriver}/board/use-board-cards.ts +6 -6
- package/src/app/{components → lemonriver}/board/use-board-columns.ts +7 -7
- package/src/app/{components → lemonriver}/board/use-page-order.ts +10 -6
- package/src/app/lemonriver/brand/app-icon.svg +44 -0
- package/src/app/lemonriver/brand/apple-touch-icon.png +0 -0
- package/src/app/lemonriver/brand/favicon-32.png +0 -0
- package/src/app/lemonriver/brand/mascot.tsx +59 -0
- package/src/app/lemonriver/brand/mascots/lemon-done.png +0 -0
- package/src/app/lemonriver/brand/mascots/lemon-idle.png +0 -0
- package/src/app/lemonriver/brand/mascots/lemon-needs-you.png +0 -0
- package/src/app/lemonriver/brand/mascots/lemon-thinking.png +0 -0
- package/src/app/lemonriver/brand/mascots/lemon-working.png +0 -0
- package/src/app/lemonriver/chrome/app-chrome.tsx +99 -0
- package/src/app/lemonriver/chrome/nav-row.tsx +34 -0
- package/src/app/lemonriver/chrome/not-found.tsx +34 -0
- package/src/app/lemonriver/chrome/sidebar-extras.tsx +57 -0
- package/src/app/lemonriver/chrome/use-slot.ts +23 -0
- package/src/app/lemonriver/features.test.ts +29 -0
- package/src/app/lemonriver/features.ts +26 -0
- package/src/app/lemonriver/feedback/export.ts +7 -0
- package/src/app/lemonriver/feedback/lemon-empty.tsx +54 -0
- package/src/app/lemonriver/feedback/offline-banner.tsx +41 -0
- package/src/app/lemonriver/feedback/pending-toast.test.ts +44 -0
- package/src/app/lemonriver/feedback/pending-toast.ts +39 -0
- package/src/app/lemonriver/feedback/toaster.tsx +34 -0
- package/src/app/lemonriver/feedback/upload.test.ts +26 -0
- package/src/app/lemonriver/feedback/upload.ts +19 -0
- package/src/app/lemonriver/home/brief-card.tsx +63 -0
- package/src/app/lemonriver/home/brief.test.ts +38 -0
- package/src/app/lemonriver/home/brief.ts +34 -0
- package/src/app/lemonriver/home/controls.tsx +93 -0
- package/src/app/lemonriver/home/deck-card.tsx +183 -0
- package/src/app/lemonriver/home/dialogs.tsx +292 -0
- package/src/app/lemonriver/home/home-page.tsx +335 -0
- package/src/app/lemonriver/home/sorting.test.ts +24 -0
- package/src/app/lemonriver/home/sorting.ts +59 -0
- package/src/app/lemonriver/home/time.test.ts +33 -0
- package/src/app/lemonriver/home/time.ts +33 -0
- package/src/app/lemonriver/home/use-deck-times.ts +27 -0
- package/src/app/lemonriver/home/use-delayed.ts +15 -0
- package/src/app/lemonriver/routes.test.tsx +37 -0
- package/src/app/lemonriver/routes.tsx +38 -0
- package/src/app/lemonriver/settings/settings-page.tsx +103 -0
- package/src/app/lemonriver/slide-extensions.tsx +73 -0
- package/src/app/lemonriver/text/all.ts +19 -0
- package/src/app/lemonriver/text/en.ts +106 -0
- package/src/app/lemonriver/text/es.ts +108 -0
- package/src/app/lemonriver/text/index.ts +9 -0
- package/src/app/lemonriver/text/ja.ts +106 -0
- package/src/app/lemonriver/text/text.test.ts +57 -0
- package/src/app/lemonriver/text/types.ts +111 -0
- package/src/app/lemonriver/text/zh-cn.ts +101 -0
- package/src/app/lemonriver/text/zh-tw.ts +101 -0
- package/src/app/lemonriver/theme/app.css +288 -0
- package/src/app/lemonriver/theme/controls.css +463 -0
- package/src/app/lemonriver/theme/index.css +3 -0
- package/src/app/lemonriver/theme/motion.ts +52 -0
- package/src/app/lemonriver/theme/pages.test.ts +66 -0
- package/src/app/lemonriver/theme/pages.ts +56 -0
- package/src/app/lemonriver/theme/theme-menu.tsx +64 -0
- package/src/app/lemonriver/theme/themes.test.ts +18 -0
- package/src/app/lemonriver/theme/themes.ts +16 -0
- package/src/app/lemonriver/theme/tokens.css +226 -0
- package/src/app/lemonriver/theme/use-theme.tsx +49 -0
- package/src/app/lemonriver/trash/api.test.ts +19 -0
- package/src/app/lemonriver/trash/api.ts +77 -0
- package/src/app/lemonriver/trash/trash-page.tsx +131 -0
- package/src/app/lib/pptx/raster.ts +1 -1
- package/src/app/main.tsx +8 -1
- package/src/app/routes/home-shell.tsx +4 -2
- package/src/app/routes/slide.tsx +12 -16
- package/src/app/styles.css +1 -0
- package/src/locale/en.ts +0 -35
- package/src/locale/es.ts +0 -34
- package/src/locale/ja.ts +0 -34
- package/src/locale/types.ts +0 -36
- package/src/locale/zh-cn.ts +3 -37
- package/src/locale/zh-tw.ts +3 -37
- /package/src/app/{components → lemonriver}/board/board.css +0 -0
- /package/src/app/{components → lemonriver}/board/layout.test.ts +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { isLrThemeChoice, themeClassOf } from './themes';
|
|
3
|
+
|
|
4
|
+
describe('themeClassOf', () => {
|
|
5
|
+
it('keeps only the theme classes, in a stable order', () => {
|
|
6
|
+
expect(themeClassOf('lime')).toBe('lime');
|
|
7
|
+
expect(themeClassOf('foo dark bar')).toBe('dark');
|
|
8
|
+
expect(themeClassOf('')).toBe('');
|
|
9
|
+
expect(themeClassOf('lime light')).toBe('light lime');
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
describe('isLrThemeChoice', () => {
|
|
14
|
+
it('accepts the four choices only', () => {
|
|
15
|
+
for (const v of ['system', 'light', 'dark', 'lime']) expect(isLrThemeChoice(v)).toBe(true);
|
|
16
|
+
for (const v of ['fresh', '', null, 3]) expect(isLrThemeChoice(v)).toBe(false);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** next-themes values. next-themes adds `system` itself. */
|
|
2
|
+
export const LR_THEMES = ['light', 'dark', 'lime'];
|
|
3
|
+
|
|
4
|
+
export type LrThemeChoice = 'system' | 'light' | 'dark' | 'lime';
|
|
5
|
+
|
|
6
|
+
export const LR_THEME_CHOICES: readonly LrThemeChoice[] = ['system', 'light', 'dark', 'lime'];
|
|
7
|
+
|
|
8
|
+
export function isLrThemeChoice(value: unknown): value is LrThemeChoice {
|
|
9
|
+
return typeof value === 'string' && (LR_THEME_CHOICES as readonly string[]).includes(value);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** The theme part of <html>'s class list, so other class changes don't count as a switch. */
|
|
13
|
+
export function themeClassOf(className: string): string {
|
|
14
|
+
const classes = className.split(/\s+/);
|
|
15
|
+
return LR_THEMES.filter((theme) => classes.includes(theme)).join(' ');
|
|
16
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
/* Design tokens from lemonriver-design v1. The shell marks <html data-lr-app> at runtime, so
|
|
2
|
+
none of this reaches exported HTML, and the extra attribute outranks the official :root / .dark. */
|
|
3
|
+
html[data-lr-app] {
|
|
4
|
+
background-color: var(--lr-bg);
|
|
5
|
+
--lr-font-sans:
|
|
6
|
+
-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "PingFang SC",
|
|
7
|
+
"Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
8
|
+
--lr-font-display:
|
|
9
|
+
-apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB",
|
|
10
|
+
"Microsoft YaHei", sans-serif;
|
|
11
|
+
--lr-radius-sm: 8px;
|
|
12
|
+
--lr-radius-md: 12px;
|
|
13
|
+
--lr-radius-lg: 16px;
|
|
14
|
+
--lr-radius-xl: 24px;
|
|
15
|
+
--lr-dur-fast: 160ms;
|
|
16
|
+
--lr-dur-base: 240ms;
|
|
17
|
+
--lr-dur-slow: 400ms;
|
|
18
|
+
--lr-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
19
|
+
--lr-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
20
|
+
|
|
21
|
+
--lr-bg: #fafbf5;
|
|
22
|
+
--lr-bg-image: none;
|
|
23
|
+
--lr-surface: #ffffff;
|
|
24
|
+
--lr-surface-2: #f2f6ea;
|
|
25
|
+
--lr-surface-sunken: #eef3e5;
|
|
26
|
+
--lr-border: #e3ead8;
|
|
27
|
+
--lr-hairline: #dbe3cf;
|
|
28
|
+
--lr-text: #13240f;
|
|
29
|
+
--lr-text-2: #55634f;
|
|
30
|
+
--lr-text-3: #8a9585;
|
|
31
|
+
--lr-primary: #fcd810;
|
|
32
|
+
--lr-primary-hover: #f2cc00;
|
|
33
|
+
--lr-on-primary: #0b3d12;
|
|
34
|
+
--lr-secondary: #ffffff;
|
|
35
|
+
--lr-on-secondary: #0b3d12;
|
|
36
|
+
--lr-secondary-border: #0b3d12;
|
|
37
|
+
--lr-accent: #a5d22f;
|
|
38
|
+
--lr-accent-soft: #eef6d6;
|
|
39
|
+
--lr-success: #2f7d1f;
|
|
40
|
+
--lr-warning: #a85f00;
|
|
41
|
+
--lr-danger: #d93d2b;
|
|
42
|
+
--lr-focus: #0b3d12;
|
|
43
|
+
--lr-overlay: rgba(19, 36, 15, 0.38);
|
|
44
|
+
--lr-shadow-1: 0 1px 2px rgba(19, 36, 15, 0.06), 0 2px 8px rgba(19, 36, 15, 0.05);
|
|
45
|
+
--lr-shadow-2: 0 8px 28px -10px rgba(19, 36, 15, 0.22);
|
|
46
|
+
--lr-toast-bg: #13240f;
|
|
47
|
+
--lr-toast-text: #fafbf5;
|
|
48
|
+
--lr-on-danger: #ffffff;
|
|
49
|
+
--lr-badge-bg: #fcd810;
|
|
50
|
+
--lr-badge-text: #0b3d12;
|
|
51
|
+
--lr-canvas-mark: #f65e02;
|
|
52
|
+
|
|
53
|
+
--background: var(--lr-bg);
|
|
54
|
+
--foreground: var(--lr-text);
|
|
55
|
+
--canvas: var(--lr-surface-sunken);
|
|
56
|
+
--card: var(--lr-surface);
|
|
57
|
+
--card-foreground: var(--lr-text);
|
|
58
|
+
--popover: var(--lr-surface);
|
|
59
|
+
--popover-foreground: var(--lr-text);
|
|
60
|
+
--primary: var(--lr-focus);
|
|
61
|
+
--primary-foreground: var(--lr-bg);
|
|
62
|
+
--secondary: var(--lr-surface-2);
|
|
63
|
+
--secondary-foreground: var(--lr-text);
|
|
64
|
+
--muted: var(--lr-surface-2);
|
|
65
|
+
--muted-foreground: var(--lr-text-2);
|
|
66
|
+
--accent: var(--lr-accent-soft);
|
|
67
|
+
--accent-foreground: var(--lr-text);
|
|
68
|
+
--destructive: var(--lr-danger);
|
|
69
|
+
--border: var(--lr-border);
|
|
70
|
+
--hairline: var(--lr-hairline);
|
|
71
|
+
--input: var(--lr-border);
|
|
72
|
+
--ring: var(--lr-focus);
|
|
73
|
+
--brand: var(--lr-focus);
|
|
74
|
+
--brand-foreground: var(--lr-primary);
|
|
75
|
+
--brand-soft: rgba(165, 210, 47, 0.22);
|
|
76
|
+
--sidebar: var(--lr-surface);
|
|
77
|
+
--sidebar-foreground: var(--lr-text);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
html[data-lr-app].dark {
|
|
81
|
+
--lr-bg: #111412;
|
|
82
|
+
--lr-surface: #1b201c;
|
|
83
|
+
--lr-surface-2: #232a24;
|
|
84
|
+
--lr-surface-sunken: #161a17;
|
|
85
|
+
--lr-border: #2a322b;
|
|
86
|
+
--lr-hairline: #323b33;
|
|
87
|
+
--lr-text: #eef3ea;
|
|
88
|
+
--lr-text-2: #a3ae9f;
|
|
89
|
+
--lr-text-3: #6f7a6c;
|
|
90
|
+
--lr-primary: #fcd810;
|
|
91
|
+
--lr-primary-hover: #ffe234;
|
|
92
|
+
--lr-on-primary: #111412;
|
|
93
|
+
--lr-secondary: #232a24;
|
|
94
|
+
--lr-on-secondary: #eef3ea;
|
|
95
|
+
--lr-secondary-border: #3a443b;
|
|
96
|
+
--lr-accent: #a5d22f;
|
|
97
|
+
--lr-accent-soft: #263214;
|
|
98
|
+
--lr-success: #a5d22f;
|
|
99
|
+
--lr-warning: #ffb020;
|
|
100
|
+
--lr-danger: #ff6b57;
|
|
101
|
+
--lr-focus: #fcd810;
|
|
102
|
+
--lr-overlay: rgba(0, 0, 0, 0.55);
|
|
103
|
+
--lr-shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 2px 8px rgba(0, 0, 0, 0.35);
|
|
104
|
+
--lr-shadow-2: 0 18px 44px -14px rgba(0, 0, 0, 0.7);
|
|
105
|
+
--lr-toast-bg: #eef3ea;
|
|
106
|
+
--lr-toast-text: #111412;
|
|
107
|
+
--lr-on-danger: #111412;
|
|
108
|
+
--lr-badge-text: #111412;
|
|
109
|
+
|
|
110
|
+
--popover: #1f2520;
|
|
111
|
+
--input: var(--lr-secondary-border);
|
|
112
|
+
--brand-foreground: var(--lr-on-primary);
|
|
113
|
+
--brand-soft: rgba(252, 216, 16, 0.16);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Lime is a brand theme: only the pages the shell marks with data-lr-brand wear it. */
|
|
117
|
+
html[data-lr-app].lime[data-lr-brand] {
|
|
118
|
+
--lr-bg: #c6e03c;
|
|
119
|
+
--lr-bg-image: linear-gradient(160deg, #eef56a 0%, #c9e23f 40%, #9bc929 100%);
|
|
120
|
+
--lr-surface: #ffffff;
|
|
121
|
+
--lr-surface-2: #f3f8e8;
|
|
122
|
+
--lr-surface-sunken: #eaf2d9;
|
|
123
|
+
--lr-border: #dde8c8;
|
|
124
|
+
--lr-hairline: #d2dfba;
|
|
125
|
+
--lr-text: #12300f;
|
|
126
|
+
--lr-text-2: #2c4426;
|
|
127
|
+
--lr-text-3: #4d6145;
|
|
128
|
+
--lr-primary: #1e7a1e;
|
|
129
|
+
--lr-primary-hover: #176617;
|
|
130
|
+
--lr-on-primary: #ffffff;
|
|
131
|
+
--lr-secondary: #ffffff;
|
|
132
|
+
--lr-on-secondary: #1e7a1e;
|
|
133
|
+
--lr-secondary-border: #1e7a1e;
|
|
134
|
+
--lr-accent: #fcd810;
|
|
135
|
+
--lr-accent-soft: #fff6c2;
|
|
136
|
+
--lr-success: #1e7a1e;
|
|
137
|
+
--lr-warning: #a85f00;
|
|
138
|
+
--lr-danger: #c7372a;
|
|
139
|
+
--lr-focus: #12300f;
|
|
140
|
+
--lr-overlay: rgba(18, 48, 15, 0.4);
|
|
141
|
+
--lr-shadow-1: 0 1px 2px rgba(18, 48, 15, 0.08), 0 4px 14px rgba(18, 48, 15, 0.08);
|
|
142
|
+
--lr-shadow-2: 0 14px 40px -14px rgba(18, 48, 15, 0.35);
|
|
143
|
+
--lr-toast-bg: #12300f;
|
|
144
|
+
--lr-toast-text: #ffffff;
|
|
145
|
+
--sidebar: transparent;
|
|
146
|
+
background: var(--lr-bg) var(--lr-bg-image) fixed;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
html[data-lr-app].lime {
|
|
150
|
+
color-scheme: light;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Comment frames and pins sit on top of arbitrary slide colors. */
|
|
154
|
+
html[data-lr-app] main[data-inspector-root] {
|
|
155
|
+
--brand: var(--lr-canvas-mark);
|
|
156
|
+
--brand-foreground: #13240f;
|
|
157
|
+
--brand-soft: rgba(246, 94, 2, 0.14);
|
|
158
|
+
background-color: var(--lr-surface-sunken);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Slides keep the font and every app token they had before the restyle, so a
|
|
162
|
+
deck renders the same in the editor, the present views and every export. */
|
|
163
|
+
html[data-lr-app] [data-osd-canvas] {
|
|
164
|
+
font-family: "Geist Variable", -apple-system, BlinkMacSystemFont, sans-serif;
|
|
165
|
+
--background: oklch(0.99 0 0);
|
|
166
|
+
--foreground: oklch(0.145 0 0);
|
|
167
|
+
--canvas: oklch(0.975 0 0);
|
|
168
|
+
--card: oklch(1 0 0);
|
|
169
|
+
--card-foreground: oklch(0.145 0 0);
|
|
170
|
+
--popover: oklch(1 0 0);
|
|
171
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
172
|
+
--primary: oklch(0.185 0 0);
|
|
173
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
174
|
+
--secondary: oklch(0.96 0 0);
|
|
175
|
+
--secondary-foreground: oklch(0.185 0 0);
|
|
176
|
+
--muted: oklch(0.955 0 0);
|
|
177
|
+
--muted-foreground: oklch(0.5 0 0);
|
|
178
|
+
--accent: oklch(0.945 0 0);
|
|
179
|
+
--accent-foreground: oklch(0.185 0 0);
|
|
180
|
+
--destructive: oklch(0.58 0.22 27);
|
|
181
|
+
--border: oklch(0.92 0 0);
|
|
182
|
+
--hairline: oklch(0.885 0 0);
|
|
183
|
+
--input: oklch(0.92 0 0);
|
|
184
|
+
--ring: oklch(0.6 0.2 25);
|
|
185
|
+
--brand: oklch(0.6 0.2 25);
|
|
186
|
+
--brand-foreground: oklch(0.985 0 0);
|
|
187
|
+
--brand-soft: oklch(0.6 0.2 25 / 0.1);
|
|
188
|
+
--sidebar: oklch(0.975 0 0);
|
|
189
|
+
--sidebar-foreground: oklch(0.185 0 0);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
html[data-lr-app].dark [data-osd-canvas] {
|
|
193
|
+
--background: oklch(0.175 0 0);
|
|
194
|
+
--foreground: oklch(0.93 0 0);
|
|
195
|
+
--canvas: oklch(0.1 0 0);
|
|
196
|
+
--card: oklch(0.19 0 0);
|
|
197
|
+
--card-foreground: oklch(0.93 0 0);
|
|
198
|
+
--popover: oklch(0.205 0 0);
|
|
199
|
+
--popover-foreground: oklch(0.93 0 0);
|
|
200
|
+
--primary: oklch(0.925 0 0);
|
|
201
|
+
--primary-foreground: oklch(0.17 0 0);
|
|
202
|
+
--secondary: oklch(0.24 0 0);
|
|
203
|
+
--secondary-foreground: oklch(0.93 0 0);
|
|
204
|
+
--muted: oklch(0.23 0 0);
|
|
205
|
+
--muted-foreground: oklch(0.68 0 0);
|
|
206
|
+
--accent: oklch(0.265 0 0);
|
|
207
|
+
--accent-foreground: oklch(0.93 0 0);
|
|
208
|
+
--destructive: oklch(0.66 0.2 25);
|
|
209
|
+
--border: oklch(1 0 0 / 0.1);
|
|
210
|
+
--hairline: oklch(1 0 0 / 0.07);
|
|
211
|
+
--input: oklch(1 0 0 / 0.14);
|
|
212
|
+
--ring: oklch(0.63 0.19 25);
|
|
213
|
+
--brand: oklch(0.63 0.2 25);
|
|
214
|
+
--brand-foreground: oklch(0.985 0 0);
|
|
215
|
+
--brand-soft: oklch(0.63 0.2 25 / 0.16);
|
|
216
|
+
--sidebar: oklch(0.1 0 0);
|
|
217
|
+
--sidebar-foreground: oklch(0.93 0 0);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
html[data-lr-app] main[data-inspector-root] .text-brand {
|
|
221
|
+
color: #b84400;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
html[data-lr-app].dark main[data-inspector-root] .text-brand {
|
|
225
|
+
color: #ff8a4c;
|
|
226
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Citrus } from 'lucide-react';
|
|
2
|
+
import { useTheme as useNextTheme } from 'next-themes';
|
|
3
|
+
import { useCallback } from 'react';
|
|
4
|
+
import { flushSync } from 'react-dom';
|
|
5
|
+
import type { CommandSpec } from '@/components/command/command-menu';
|
|
6
|
+
import { format } from '@/lib/use-locale';
|
|
7
|
+
import type { Locale } from '../../../locale/types';
|
|
8
|
+
import { lrTextFor } from '../text';
|
|
9
|
+
import { motionReduced } from './motion';
|
|
10
|
+
|
|
11
|
+
type ViewTransitionDocument = Document & {
|
|
12
|
+
startViewTransition?: (update: () => void) => unknown;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** Cross-fades the whole page once while the theme changes, unless motion is reduced. */
|
|
16
|
+
export function switchTheme(setTheme: (theme: string) => void, next: string): void {
|
|
17
|
+
const doc = document as ViewTransitionDocument;
|
|
18
|
+
if (motionReduced() || typeof doc.startViewTransition !== 'function') {
|
|
19
|
+
setTheme(next);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
doc.startViewTransition(() => flushSync(() => setTheme(next)));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** next-themes' hook, with every theme change cross-faded. */
|
|
26
|
+
export function useTheme() {
|
|
27
|
+
const value = useNextTheme();
|
|
28
|
+
const { setTheme: apply } = value;
|
|
29
|
+
const setTheme = useCallback((next: string) => switchTheme(apply, next), [apply]);
|
|
30
|
+
return { ...value, setTheme };
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** The lime entry for the command menu's appearance group. */
|
|
34
|
+
export function lemonRiverAppearanceCommands(
|
|
35
|
+
t: Locale,
|
|
36
|
+
theme: string | undefined,
|
|
37
|
+
setTheme: (theme: string) => void,
|
|
38
|
+
): CommandSpec[] {
|
|
39
|
+
return [
|
|
40
|
+
{
|
|
41
|
+
id: 'theme-lime',
|
|
42
|
+
label: format(t.commandMenu.themeItem, { name: lrTextFor(t.id).theme.lime }),
|
|
43
|
+
icon: <Citrus />,
|
|
44
|
+
keywords: ['theme', 'lime', 'appearance'],
|
|
45
|
+
active: theme === 'lime',
|
|
46
|
+
run: () => setTheme('lime'),
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { latestEntryFor, type TrashEntry } from './api';
|
|
3
|
+
|
|
4
|
+
const entry = (id: string, slideId: string, deletedAt: number): TrashEntry => ({
|
|
5
|
+
id,
|
|
6
|
+
slideId,
|
|
7
|
+
title: slideId,
|
|
8
|
+
folderId: null,
|
|
9
|
+
deletedAt,
|
|
10
|
+
expiresAt: deletedAt + 1,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
describe('latestEntryFor', () => {
|
|
14
|
+
it('picks the newest deletion of that deck', () => {
|
|
15
|
+
const entries = [entry('a.1', 'a', 1), entry('b.9', 'b', 9), entry('a.5', 'a', 5)];
|
|
16
|
+
expect(latestEntryFor(entries, 'a')?.id).toBe('a.5');
|
|
17
|
+
expect(latestEntryFor(entries, 'c')).toBeNull();
|
|
18
|
+
});
|
|
19
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { clearPendingToast, savePendingToast } from '../feedback/pending-toast';
|
|
2
|
+
|
|
3
|
+
export type TrashEntry = {
|
|
4
|
+
id: string;
|
|
5
|
+
slideId: string;
|
|
6
|
+
title: string;
|
|
7
|
+
folderId: string | null;
|
|
8
|
+
deletedAt: number;
|
|
9
|
+
expiresAt: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const DECKS_CHANGED_EVENT = 'lemonriver:decks-changed';
|
|
13
|
+
|
|
14
|
+
let ownChanges = 0;
|
|
15
|
+
|
|
16
|
+
/** True while this page changes the deck list itself and will reload on its own. */
|
|
17
|
+
export function changingDecksHere(): boolean {
|
|
18
|
+
return ownChanges > 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async function call<T>(method: string, url: string, body?: unknown): Promise<T> {
|
|
22
|
+
const res = await fetch(url, {
|
|
23
|
+
method,
|
|
24
|
+
headers: body === undefined ? undefined : { 'content-type': 'application/json' },
|
|
25
|
+
body: body === undefined ? undefined : JSON.stringify(body),
|
|
26
|
+
});
|
|
27
|
+
const data = (await res.json().catch(() => ({}))) as T & { error?: string };
|
|
28
|
+
if (!res.ok) throw new Error(data.error ?? `HTTP ${res.status}`);
|
|
29
|
+
return data;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export async function listTrash(): Promise<TrashEntry[]> {
|
|
33
|
+
const { entries } = await call<{ entries: TrashEntry[] }>('GET', '/__lr/trash');
|
|
34
|
+
return entries;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async function changeDecks(
|
|
38
|
+
pending: Parameters<typeof savePendingToast>[0],
|
|
39
|
+
run: () => Promise<unknown>,
|
|
40
|
+
): Promise<void> {
|
|
41
|
+
ownChanges++;
|
|
42
|
+
savePendingToast(pending);
|
|
43
|
+
try {
|
|
44
|
+
await run();
|
|
45
|
+
} catch (err) {
|
|
46
|
+
ownChanges--;
|
|
47
|
+
clearPendingToast();
|
|
48
|
+
throw err;
|
|
49
|
+
}
|
|
50
|
+
window.location.reload();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function moveToTrash(slideId: string, name: string): Promise<void> {
|
|
54
|
+
return changeDecks({ kind: 'trashed', slideId, name }, () =>
|
|
55
|
+
call('POST', '/__lr/trash', { slideId }),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function restoreFromTrash(entry: TrashEntry): Promise<void> {
|
|
60
|
+
return changeDecks({ kind: 'restored', slideId: entry.slideId, name: entry.title }, () =>
|
|
61
|
+
call('POST', `/__lr/trash/${encodeURIComponent(entry.id)}/restore`),
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export async function deleteForever(entryId: string): Promise<void> {
|
|
66
|
+
await call('DELETE', `/__lr/trash/${encodeURIComponent(entryId)}`);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** The newest trash entry for a deck, which is the one its undo restores. */
|
|
70
|
+
export function latestEntryFor(entries: TrashEntry[], slideId: string): TrashEntry | null {
|
|
71
|
+
let latest: TrashEntry | null = null;
|
|
72
|
+
for (const entry of entries) {
|
|
73
|
+
if (entry.slideId === slideId && (!latest || entry.deletedAt > latest.deletedAt))
|
|
74
|
+
latest = entry;
|
|
75
|
+
}
|
|
76
|
+
return latest;
|
|
77
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { RotateCcw, Trash2 } from 'lucide-react';
|
|
2
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
3
|
+
import { toast } from 'sonner';
|
|
4
|
+
import { Button } from '@/components/ui/button';
|
|
5
|
+
import { format, plural, useLocale } from '@/lib/use-locale';
|
|
6
|
+
import { LemonEmpty } from '../feedback/lemon-empty';
|
|
7
|
+
import { TypedConfirmDialog } from '../home/dialogs';
|
|
8
|
+
import { daysLeft, relativeTime } from '../home/time';
|
|
9
|
+
import { useLrText } from '../text';
|
|
10
|
+
import { deleteForever, listTrash, restoreFromTrash, type TrashEntry } from './api';
|
|
11
|
+
|
|
12
|
+
export function TrashPage() {
|
|
13
|
+
const t = useLocale();
|
|
14
|
+
const lr = useLrText();
|
|
15
|
+
const [entries, setEntries] = useState<TrashEntry[] | null>(null);
|
|
16
|
+
const [failed, setFailed] = useState(false);
|
|
17
|
+
const [purging, setPurging] = useState<TrashEntry | null>(null);
|
|
18
|
+
const [busy, setBusy] = useState<string | null>(null);
|
|
19
|
+
const now = Date.now();
|
|
20
|
+
|
|
21
|
+
const load = useCallback(async () => {
|
|
22
|
+
try {
|
|
23
|
+
setEntries(await listTrash());
|
|
24
|
+
setFailed(false);
|
|
25
|
+
} catch {
|
|
26
|
+
setFailed(true);
|
|
27
|
+
}
|
|
28
|
+
}, []);
|
|
29
|
+
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
void load();
|
|
32
|
+
}, [load]);
|
|
33
|
+
|
|
34
|
+
const restore = async (entry: TrashEntry) => {
|
|
35
|
+
setBusy(entry.id);
|
|
36
|
+
try {
|
|
37
|
+
await restoreFromTrash(entry);
|
|
38
|
+
} catch {
|
|
39
|
+
setBusy(null);
|
|
40
|
+
toast.error(lr.home.toastRestoreFailed);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<div data-lr-trash>
|
|
46
|
+
<header className="mb-6">
|
|
47
|
+
<h1 className="font-heading text-[28px] font-bold leading-[34px] tracking-[-0.01em]">
|
|
48
|
+
{lr.trash.title}
|
|
49
|
+
</h1>
|
|
50
|
+
<p className="lr-on-lime mt-0.5 text-[14px] text-muted-foreground">{lr.trash.subtitle}</p>
|
|
51
|
+
</header>
|
|
52
|
+
|
|
53
|
+
{failed ? (
|
|
54
|
+
<LemonEmpty
|
|
55
|
+
state="needs-you"
|
|
56
|
+
title={lr.trash.loadFailed}
|
|
57
|
+
actions={
|
|
58
|
+
<Button variant="outline" onClick={() => void load()}>
|
|
59
|
+
{t.common.tryAgain}
|
|
60
|
+
</Button>
|
|
61
|
+
}
|
|
62
|
+
/>
|
|
63
|
+
) : entries === null ? null : entries.length === 0 ? (
|
|
64
|
+
<LemonEmpty title={lr.trash.emptyTitle}>{lr.trash.emptyHint}</LemonEmpty>
|
|
65
|
+
) : (
|
|
66
|
+
<ul className="flex flex-col overflow-hidden rounded-[16px] border border-border bg-card shadow-[var(--lr-shadow-1)]">
|
|
67
|
+
{entries.map((entry) => (
|
|
68
|
+
<li
|
|
69
|
+
key={entry.id}
|
|
70
|
+
data-lr-trash-entry={entry.slideId}
|
|
71
|
+
className="flex flex-wrap items-center gap-3 border-t border-border px-5 py-3.5 first:border-t-0"
|
|
72
|
+
>
|
|
73
|
+
<div className="min-w-0 flex-1">
|
|
74
|
+
<p className="truncate text-[14px] font-semibold">{entry.title}</p>
|
|
75
|
+
<p className="text-[12px] text-muted-foreground">
|
|
76
|
+
{format(lr.trash.deletedWhen, {
|
|
77
|
+
when: relativeTime(entry.deletedAt, now, t.id),
|
|
78
|
+
})}
|
|
79
|
+
{' · '}
|
|
80
|
+
{format(plural(daysLeft(entry.expiresAt, now), lr.trash.daysLeft), {
|
|
81
|
+
n: daysLeft(entry.expiresAt, now),
|
|
82
|
+
})}
|
|
83
|
+
</p>
|
|
84
|
+
</div>
|
|
85
|
+
<Button
|
|
86
|
+
variant="outline"
|
|
87
|
+
size="sm"
|
|
88
|
+
disabled={busy !== null}
|
|
89
|
+
onClick={() => void restore(entry)}
|
|
90
|
+
>
|
|
91
|
+
<RotateCcw />
|
|
92
|
+
{lr.trash.restore}
|
|
93
|
+
</Button>
|
|
94
|
+
<Button
|
|
95
|
+
variant="ghost"
|
|
96
|
+
size="sm"
|
|
97
|
+
disabled={busy !== null}
|
|
98
|
+
className="text-destructive hover:text-destructive"
|
|
99
|
+
onClick={() => setPurging(entry)}
|
|
100
|
+
>
|
|
101
|
+
<Trash2 />
|
|
102
|
+
{lr.trash.deleteForever}
|
|
103
|
+
</Button>
|
|
104
|
+
</li>
|
|
105
|
+
))}
|
|
106
|
+
</ul>
|
|
107
|
+
)}
|
|
108
|
+
|
|
109
|
+
<TypedConfirmDialog
|
|
110
|
+
open={purging !== null}
|
|
111
|
+
name={purging?.title ?? ''}
|
|
112
|
+
title={lr.trash.confirmTitle}
|
|
113
|
+
hint={format(lr.trash.confirmHint, { name: purging?.title ?? '' })}
|
|
114
|
+
label={lr.trash.confirmLabel}
|
|
115
|
+
action={lr.trash.deleteForever}
|
|
116
|
+
onOpenChange={(open) => !open && setPurging(null)}
|
|
117
|
+
onConfirm={async () => {
|
|
118
|
+
if (!purging) return;
|
|
119
|
+
try {
|
|
120
|
+
await deleteForever(purging.id);
|
|
121
|
+
toast.success(format(lr.trash.toastPurged, { name: purging.title }));
|
|
122
|
+
setPurging(null);
|
|
123
|
+
await load();
|
|
124
|
+
} catch {
|
|
125
|
+
toast.error(lr.trash.toastPurgeFailed);
|
|
126
|
+
}
|
|
127
|
+
}}
|
|
128
|
+
/>
|
|
129
|
+
</div>
|
|
130
|
+
);
|
|
131
|
+
}
|
|
@@ -103,7 +103,7 @@ export class Rasterizer {
|
|
|
103
103
|
}
|
|
104
104
|
} catch (err) {
|
|
105
105
|
console.warn(
|
|
106
|
-
'[
|
|
106
|
+
'[open-slide] pptx export: could not rasterize an element, skipping it',
|
|
107
107
|
err,
|
|
108
108
|
);
|
|
109
109
|
} finally {
|
package/src/app/main.tsx
CHANGED
|
@@ -2,12 +2,19 @@ import { ThemeProvider } from 'next-themes';
|
|
|
2
2
|
import { StrictMode } from 'react';
|
|
3
3
|
import { createRoot } from 'react-dom/client';
|
|
4
4
|
import { App } from './app';
|
|
5
|
+
import { LR_THEMES } from './lemonriver/theme/themes';
|
|
5
6
|
import './styles.css';
|
|
6
7
|
|
|
7
8
|
// biome-ignore lint/style/noNonNullAssertion: #root is guaranteed by index.html
|
|
8
9
|
createRoot(document.getElementById('root')!).render(
|
|
9
10
|
<StrictMode>
|
|
10
|
-
<ThemeProvider
|
|
11
|
+
<ThemeProvider
|
|
12
|
+
attribute="class"
|
|
13
|
+
defaultTheme="system"
|
|
14
|
+
enableSystem
|
|
15
|
+
disableTransitionOnChange
|
|
16
|
+
themes={LR_THEMES}
|
|
17
|
+
>
|
|
11
18
|
<App />
|
|
12
19
|
</ThemeProvider>
|
|
13
20
|
</StrictMode>,
|
|
@@ -3,7 +3,6 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
3
3
|
import { Outlet, useLocation, useNavigate, useSearchParams } from 'react-router-dom';
|
|
4
4
|
import { toast } from 'sonner';
|
|
5
5
|
import { LanguageToggle } from '@/components/language-toggle';
|
|
6
|
-
import { ThemeToggle } from '@/components/theme-toggle';
|
|
7
6
|
import {
|
|
8
7
|
DropdownMenu,
|
|
9
8
|
DropdownMenuContent,
|
|
@@ -19,6 +18,8 @@ import { CommandMenuTrigger } from '../components/command/command-menu';
|
|
|
19
18
|
import { HomeCommandMenu } from '../components/command/home-command-menu';
|
|
20
19
|
import { SystemViewIcon } from '../components/sidebar/folder-item';
|
|
21
20
|
import { ALL_SLIDES_ID, ASSETS_ID, Sidebar, THEMES_ID } from '../components/sidebar/sidebar';
|
|
21
|
+
import { lemonRiverViewFor } from '../lemonriver/theme/pages';
|
|
22
|
+
import { ThemeToggle } from '../lemonriver/theme/theme-menu';
|
|
22
23
|
import type { FoldersManifest } from '../lib/sdk';
|
|
23
24
|
import { slideIds } from '../lib/slides';
|
|
24
25
|
import { themes as themeRegistry } from '../lib/themes';
|
|
@@ -63,7 +64,8 @@ export function HomeShell() {
|
|
|
63
64
|
const [searchParams] = useSearchParams();
|
|
64
65
|
const t = useLocale();
|
|
65
66
|
|
|
66
|
-
const selectedId =
|
|
67
|
+
const selectedId =
|
|
68
|
+
lemonRiverViewFor(location.pathname) ?? pathToSelectedId(location.pathname, searchParams);
|
|
67
69
|
|
|
68
70
|
useEffect(() => {
|
|
69
71
|
rememberHomeLocation(location.pathname, location.search);
|
package/src/app/routes/slide.tsx
CHANGED
|
@@ -91,6 +91,8 @@ import { SlideCanvas } from '../components/slide-canvas';
|
|
|
91
91
|
import { isDeckWarmed, markDeckWarmed, SlidePreloadLayer } from '../components/slide-preload-layer';
|
|
92
92
|
import { SlideTransitionLayer } from '../components/slide-transition-layer';
|
|
93
93
|
import { type ThumbnailActions, ThumbnailRail } from '../components/thumbnail-rail';
|
|
94
|
+
import { exportFailedHint } from '../lemonriver/feedback/export';
|
|
95
|
+
import { SlideExtensions } from '../lemonriver/slide-extensions';
|
|
94
96
|
import { exportSlideAsHtml } from '../lib/export-html';
|
|
95
97
|
import { exportSlideAsPdf, isSafari, type PdfExportProgress } from '../lib/export-pdf';
|
|
96
98
|
import {
|
|
@@ -354,11 +356,6 @@ export function Slide() {
|
|
|
354
356
|
setOverviewOpen((v) => !v);
|
|
355
357
|
return;
|
|
356
358
|
}
|
|
357
|
-
if (import.meta.env.DEV && !overviewOpen && (e.key === 'b' || e.key === 'B')) {
|
|
358
|
-
e.preventDefault();
|
|
359
|
-
navigate(`/s/${encodeURIComponent(slideId)}/board`);
|
|
360
|
-
return;
|
|
361
|
-
}
|
|
362
359
|
// Once overview owns focus, swallow everything else here — its
|
|
363
360
|
// capture-phase listener drives the focused thumbnail.
|
|
364
361
|
if (overviewOpen) return;
|
|
@@ -387,7 +384,7 @@ export function Slide() {
|
|
|
387
384
|
};
|
|
388
385
|
window.addEventListener('keydown', onKey);
|
|
389
386
|
return () => window.removeEventListener('keydown', onKey);
|
|
390
|
-
}, [index, goTo, playMode, slideId, overviewOpen,
|
|
387
|
+
}, [index, goTo, playMode, slideId, overviewOpen, toggleAgent]);
|
|
391
388
|
|
|
392
389
|
if (error) {
|
|
393
390
|
return (
|
|
@@ -544,7 +541,7 @@ export function Slide() {
|
|
|
544
541
|
if (linkCopiedTimerRef.current) clearTimeout(linkCopiedTimerRef.current);
|
|
545
542
|
linkCopiedTimerRef.current = setTimeout(() => setLinkCopied(false), 1200);
|
|
546
543
|
} catch (err) {
|
|
547
|
-
console.error('[
|
|
544
|
+
console.error('[open-slide] copy link failed', err);
|
|
548
545
|
toast.error(t.slide.toastCopyLinkFailed);
|
|
549
546
|
}
|
|
550
547
|
};
|
|
@@ -555,7 +552,7 @@ export function Slide() {
|
|
|
555
552
|
try {
|
|
556
553
|
await exportSlideAsHtml(slide, slideId);
|
|
557
554
|
} catch (err) {
|
|
558
|
-
console.error('[
|
|
555
|
+
console.error('[open-slide] export failed', err);
|
|
559
556
|
} finally {
|
|
560
557
|
setExporting(false);
|
|
561
558
|
}
|
|
@@ -579,9 +576,13 @@ export function Slide() {
|
|
|
579
576
|
await opts.run(show);
|
|
580
577
|
toast.dismiss(toastId);
|
|
581
578
|
} catch (err) {
|
|
582
|
-
console.error(`[
|
|
579
|
+
console.error(`[open-slide] ${opts.kind} export failed`, err);
|
|
583
580
|
// Reuses the progress toast's id, so it must outlive this handler.
|
|
584
|
-
toast.error(opts.failedMessage, {
|
|
581
|
+
toast.error(opts.failedMessage, {
|
|
582
|
+
id: toastId,
|
|
583
|
+
duration: 6000,
|
|
584
|
+
description: exportFailedHint(t),
|
|
585
|
+
});
|
|
585
586
|
} finally {
|
|
586
587
|
setExporting(false);
|
|
587
588
|
}
|
|
@@ -862,6 +863,7 @@ export function Slide() {
|
|
|
862
863
|
<DesignProvider slideId={slideId}>
|
|
863
864
|
<div className="relative flex min-h-0 flex-1 flex-col">
|
|
864
865
|
<div className="flex min-h-0 flex-1 flex-col md:flex-row">
|
|
866
|
+
<SlideExtensions slideId={slideId} overviewOpen={overviewOpen} />
|
|
865
867
|
<ResizableRail
|
|
866
868
|
pages={pages}
|
|
867
869
|
design={slide.design}
|
|
@@ -871,11 +873,6 @@ export function Slide() {
|
|
|
871
873
|
actions={thumbnailActions}
|
|
872
874
|
moduleTransition={slide.transition}
|
|
873
875
|
onOverview={() => setOverviewOpen(true)}
|
|
874
|
-
onBoard={
|
|
875
|
-
import.meta.env.DEV
|
|
876
|
-
? () => navigate(`/s/${encodeURIComponent(slideId)}/board`)
|
|
877
|
-
: undefined
|
|
878
|
-
}
|
|
879
876
|
/>
|
|
880
877
|
<main
|
|
881
878
|
ref={slideViewportRef}
|
|
@@ -1005,7 +1002,6 @@ function ResizableRail(props: {
|
|
|
1005
1002
|
actions?: ThumbnailActions;
|
|
1006
1003
|
moduleTransition?: SlideModule['transition'];
|
|
1007
1004
|
onOverview?: () => void;
|
|
1008
|
-
onBoard?: () => void;
|
|
1009
1005
|
}) {
|
|
1010
1006
|
const t = useLocale();
|
|
1011
1007
|
const [width, setWidth] = useStoredWidth(
|