@lemonriver/core 1.3.0 → 1.4.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-CSkdswfd.js → build-Cv0nNc4G.js} +1 -1
- package/dist/cli/bin.js +5 -5
- package/dist/{config-C5-myPY6.js → config-Di9kipre.js} +2773 -714
- package/dist/{config-CYNOR93W.d.ts → config-f1SqAhtR.d.ts} +1 -1
- package/dist/{dev-DHtYH8sw.js → dev-Az1UzCQp.js} +11 -11
- package/dist/index.d.ts +2 -2
- package/dist/index.js +21 -2
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/{mcp-B2UeO1un.js → mcp-CW7H6oUg.js} +1 -1
- package/dist/{preview-C1B6-umF.js → preview-DtSq5uN1.js} +1 -1
- package/dist/{types-tdaXSyah.d.ts → types-C4VfD89E.d.ts} +12 -0
- package/dist/{update-DzL8fpcI.js → update-DVe2kQA7.js} +86 -13
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/{zh-tw-BhYyMx0-.js → zh-tw-BX3oQAc2.js} +110 -0
- package/package.json +5 -6
- package/release-notes.json +20 -0
- package/src/agent/types.ts +9 -2
- package/src/app/app.tsx +2 -0
- package/src/app/components/agent/agent-panel.tsx +12 -3
- package/src/app/components/agent/agent-presence.tsx +1 -1
- package/src/app/components/command/home-command-menu.tsx +4 -1
- package/src/app/components/command/slide-command-menu.tsx +4 -1
- package/src/app/components/export-progress-toast.tsx +3 -1
- package/src/app/components/inspector/asset-picker-dialog.tsx +1 -1
- package/src/app/components/inspector/comment-layer.tsx +3 -3
- package/src/app/components/inspector/inline-text-editor.tsx +1 -12
- package/src/app/components/inspector/inspect-overlay.tsx +9 -1
- package/src/app/components/inspector/inspector-panel.tsx +7 -23
- package/src/app/components/inspector/inspector-provider.tsx +177 -36
- package/src/app/components/inspector/page-panel.tsx +270 -0
- package/src/app/components/language-toggle.tsx +13 -11
- package/src/app/components/overview-grid.tsx +3 -3
- package/src/app/components/panel/editor-sidebar.tsx +43 -8
- package/src/app/components/panel/panel-shell.tsx +9 -5
- package/src/app/components/panel/save-card.tsx +1 -1
- package/src/app/components/sidebar/folder-item.tsx +4 -1
- package/src/app/components/sidebar/sidebar.tsx +11 -8
- package/src/app/components/slide-canvas.tsx +1 -1
- package/src/app/components/style-panel/design-provider.tsx +48 -11
- package/src/app/components/style-panel/use-design.ts +6 -1
- package/src/app/components/theme-toggle.tsx +16 -22
- package/src/app/components/thumbnail-rail.tsx +69 -50
- package/src/app/components/ui/context-menu.tsx +9 -10
- package/src/app/components/ui/dialog.tsx +2 -4
- package/src/app/components/ui/dropdown-menu.tsx +9 -10
- package/src/app/components/ui/popover.tsx +1 -1
- package/src/app/components/ui/select.tsx +2 -2
- package/src/app/components/ui/sonner.tsx +2 -2
- package/src/app/index.html +7 -0
- package/src/app/lemonriver/agent-cli/model.ts +22 -0
- package/src/app/lemonriver/agent-install/model.ts +46 -0
- package/src/app/lemonriver/agent-install/section.tsx +178 -0
- package/src/app/lemonriver/agent-install/use-install.ts +51 -0
- package/src/app/lemonriver/agent-providers/section.tsx +385 -44
- package/src/app/lemonriver/agent-providers/use-providers.ts +50 -3
- package/src/app/lemonriver/backup/places.ts +22 -12
- package/src/app/lemonriver/chrome/sidebar-extras.tsx +1 -1
- package/src/app/lemonriver/feedback/dialog.tsx +1 -2
- package/src/app/lemonriver/feedback/model.ts +0 -5
- package/src/app/lemonriver/guide/clipboard.ts +19 -0
- package/src/app/lemonriver/guide/create-board.tsx +150 -0
- package/src/app/lemonriver/guide/install-board.tsx +208 -0
- package/src/app/lemonriver/guide/more-agents-page.tsx +89 -0
- package/src/app/lemonriver/guide/more-agents.ts +137 -0
- package/src/app/lemonriver/guide/quick-board.tsx +57 -0
- package/src/app/lemonriver/guide/start-board.tsx +38 -0
- package/src/app/lemonriver/guide/start-card.tsx +105 -0
- package/src/app/lemonriver/guide/start.ts +174 -0
- package/src/app/lemonriver/guide/state.ts +5 -21
- package/src/app/lemonriver/help/help-page.tsx +24 -6
- package/src/app/lemonriver/help/model.ts +1 -0
- package/src/app/lemonriver/home/home-page.tsx +12 -6
- package/src/app/lemonriver/home/sorting.ts +45 -0
- package/src/app/lemonriver/home/use-deck-times.ts +1 -2
- package/src/app/lemonriver/i18n/system-locale.ts +39 -0
- package/src/app/lemonriver/routes.tsx +2 -0
- package/src/app/lemonriver/settings/backup-section.tsx +3 -2
- package/src/app/lemonriver/settings/settings-page.tsx +5 -6
- package/src/app/lemonriver/settings/workspace-card.tsx +2 -1
- package/src/app/lemonriver/share/share-dialog.tsx +2 -1
- package/src/app/lemonriver/text/en.ts +592 -453
- package/src/app/lemonriver/text/es.ts +402 -271
- package/src/app/lemonriver/text/ja.ts +403 -274
- package/src/app/lemonriver/text/platform.ts +7 -0
- package/src/app/lemonriver/text/types.ts +118 -1
- package/src/app/lemonriver/text/zh-cn.ts +643 -508
- package/src/app/lemonriver/text/zh-tw.ts +679 -545
- package/src/app/lemonriver/theme/app.css +9 -0
- package/src/app/lemonriver/theme/controls.css +5 -2
- package/src/app/lemonriver/theme/index.css +9 -0
- package/src/app/lemonriver/theme/pages.ts +2 -0
- package/src/app/lemonriver/theme/theme-menu.tsx +10 -11
- package/src/app/lemonriver/update/restart-wait.ts +45 -0
- package/src/app/lemonriver/update/update-prompt.tsx +9 -0
- package/src/app/lib/agent/use-agent.ts +117 -30
- package/src/app/lib/desktop-host.ts +31 -0
- package/src/app/lib/desktop-routes.ts +22 -0
- package/src/app/lib/desktop.ts +106 -0
- package/src/app/lib/export-pdf.ts +15 -7
- package/src/app/lib/inspector/color.ts +51 -0
- package/src/app/lib/inspector/fiber.ts +6 -0
- package/src/app/lib/inspector/use-editor.ts +2 -1
- package/src/app/lib/inspector/use-notes.ts +331 -57
- package/src/app/lib/inspector/use-visual-editor.ts +9 -1
- package/src/app/lib/locale-store.ts +6 -1
- package/src/app/lib/transition.ts +43 -0
- package/src/app/lib/unsaved.ts +155 -0
- package/src/app/routes/home.tsx +1 -1
- package/src/app/routes/slide.tsx +116 -73
- package/src/app/styles.css +39 -1
- package/src/locale/en.ts +19 -0
- package/src/locale/es.ts +19 -0
- package/src/locale/ja.ts +19 -0
- package/src/locale/types.ts +12 -0
- package/src/locale/zh-cn.ts +19 -0
- package/src/locale/zh-tw.ts +19 -0
- package/src/app/lemonriver/guide/guide-prompt.tsx +0 -89
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export function isWindowsUserAgent(userAgent: string): boolean {
|
|
2
|
+
return /\bWindows\b/i.test(userAgent);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export function revealLabel(userAgent: string, macLabel: string, windowsLabel: string): string {
|
|
6
|
+
return isWindowsUserAgent(userAgent) ? windowsLabel : macLabel;
|
|
7
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Plural } from '../../../locale/types';
|
|
2
2
|
import type { BlockKind, WholeReason } from '../board/blocks/classify.ts';
|
|
3
3
|
import type { PageAction } from '../board/model/agent-tasks.ts';
|
|
4
|
+
import type { MoreMethod } from '../guide/more-agents.ts';
|
|
4
5
|
import type { HelpContent } from '../help/model.ts';
|
|
5
6
|
|
|
6
7
|
export type LrText = {
|
|
@@ -246,6 +247,66 @@ export type LrText = {
|
|
|
246
247
|
trash: string;
|
|
247
248
|
offline: string;
|
|
248
249
|
};
|
|
250
|
+
start: {
|
|
251
|
+
title: string;
|
|
252
|
+
subtitle: string;
|
|
253
|
+
done: string;
|
|
254
|
+
close: string;
|
|
255
|
+
reopen: string;
|
|
256
|
+
quick: {
|
|
257
|
+
title: string;
|
|
258
|
+
forWhom: string;
|
|
259
|
+
howTo: string;
|
|
260
|
+
/** templates: {path}, {url} */
|
|
261
|
+
prompt: string;
|
|
262
|
+
copy: string;
|
|
263
|
+
copied: string;
|
|
264
|
+
afterCopy: string;
|
|
265
|
+
agents: string;
|
|
266
|
+
};
|
|
267
|
+
install: {
|
|
268
|
+
title: string;
|
|
269
|
+
forWhom: string;
|
|
270
|
+
missing: string;
|
|
271
|
+
download: string;
|
|
272
|
+
install: string;
|
|
273
|
+
installed: string;
|
|
274
|
+
/** template: "Back in {name}, paste and send this line:" */
|
|
275
|
+
shortTitle: string;
|
|
276
|
+
shortLine: string;
|
|
277
|
+
copyLine: string;
|
|
278
|
+
copiedLine: string;
|
|
279
|
+
more: string;
|
|
280
|
+
};
|
|
281
|
+
create: {
|
|
282
|
+
title: string;
|
|
283
|
+
forWhom: string;
|
|
284
|
+
ready: string;
|
|
285
|
+
login: string;
|
|
286
|
+
missing: string;
|
|
287
|
+
installed: string;
|
|
288
|
+
unsupported: string;
|
|
289
|
+
installLink: string;
|
|
290
|
+
start: string;
|
|
291
|
+
noneReady: string;
|
|
292
|
+
more: string;
|
|
293
|
+
unavailable: string;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
agentsMore: {
|
|
297
|
+
title: string;
|
|
298
|
+
intro: string;
|
|
299
|
+
download: string;
|
|
300
|
+
downloadHint: string;
|
|
301
|
+
methods: Record<MoreMethod, { title: string; body: string }>;
|
|
302
|
+
examplesTitle: string;
|
|
303
|
+
/** template: "Where: {entry}" */
|
|
304
|
+
entryLabel: string;
|
|
305
|
+
/** template: "Where: {entry} (English menu)", for a menu only named in English. */
|
|
306
|
+
entryEnglishLabel: string;
|
|
307
|
+
uncertain: string;
|
|
308
|
+
official: string;
|
|
309
|
+
};
|
|
249
310
|
home: {
|
|
250
311
|
greetingMorning: string;
|
|
251
312
|
greetingAfternoon: string;
|
|
@@ -317,6 +378,7 @@ export type LrText = {
|
|
|
317
378
|
workspaceCopy: string;
|
|
318
379
|
workspaceCopied: string;
|
|
319
380
|
workspaceReveal: string;
|
|
381
|
+
workspaceRevealExplorer: string;
|
|
320
382
|
workspaceCopiedToast: string;
|
|
321
383
|
supportTitle: string;
|
|
322
384
|
supportText: string;
|
|
@@ -332,8 +394,61 @@ export type LrText = {
|
|
|
332
394
|
/** template: "Turn on {name}" */
|
|
333
395
|
unlock: string;
|
|
334
396
|
ownWindow: string;
|
|
335
|
-
ownWindowLink: string;
|
|
336
397
|
saveFailed: string;
|
|
398
|
+
found: string;
|
|
399
|
+
/** template: "Version {version}" */
|
|
400
|
+
versionLine: string;
|
|
401
|
+
/** template: "Location: {path}" */
|
|
402
|
+
location: string;
|
|
403
|
+
needsLogin: string;
|
|
404
|
+
/** template: "Run {command} in a terminal and sign in once." */
|
|
405
|
+
needsLoginHint: string;
|
|
406
|
+
searchedLabel: string;
|
|
407
|
+
installLink: string;
|
|
408
|
+
recheck: string;
|
|
409
|
+
manualLabel: string;
|
|
410
|
+
manualPlaceholder: string;
|
|
411
|
+
manualSave: string;
|
|
412
|
+
manualClear: string;
|
|
413
|
+
manualInvalid: string;
|
|
414
|
+
cliTitle: string;
|
|
415
|
+
cliHint: string;
|
|
416
|
+
panelUnsupported: string;
|
|
417
|
+
details: string;
|
|
418
|
+
};
|
|
419
|
+
agentInstall: {
|
|
420
|
+
title: string;
|
|
421
|
+
hint: string;
|
|
422
|
+
state: {
|
|
423
|
+
noApp: string;
|
|
424
|
+
available: string;
|
|
425
|
+
installed: string;
|
|
426
|
+
outdated: string;
|
|
427
|
+
broken: string;
|
|
428
|
+
};
|
|
429
|
+
/** template: "Version {version}" */
|
|
430
|
+
version: string;
|
|
431
|
+
install: string;
|
|
432
|
+
update: string;
|
|
433
|
+
uninstall: string;
|
|
434
|
+
check: string;
|
|
435
|
+
/** template: "Install LemonRiver into {name}?" */
|
|
436
|
+
confirmTitle: string;
|
|
437
|
+
/** template: "LemonRiver writes its plugin to: {path}" */
|
|
438
|
+
confirmTarget: string;
|
|
439
|
+
confirmBackup: string;
|
|
440
|
+
confirmInstall: string;
|
|
441
|
+
/** template: "Remove LemonRiver from {name}?" */
|
|
442
|
+
confirmUninstallTitle: string;
|
|
443
|
+
confirmUninstallBody: string;
|
|
444
|
+
cancel: string;
|
|
445
|
+
working: string;
|
|
446
|
+
/** template: "Could not install into {name}: {error}" */
|
|
447
|
+
installFailed: string;
|
|
448
|
+
/** template: "Could not remove from {name}: {error}" */
|
|
449
|
+
uninstallFailed: string;
|
|
450
|
+
/** template: "Self-check failed: {error}" */
|
|
451
|
+
checkFailedDetail: string;
|
|
337
452
|
};
|
|
338
453
|
feedback: {
|
|
339
454
|
notFoundHint: string;
|
|
@@ -618,6 +733,7 @@ export type LrText = {
|
|
|
618
733
|
/** template: "The package is ready: {name} ({size} MB)" */
|
|
619
734
|
done: string;
|
|
620
735
|
reveal: string;
|
|
736
|
+
revealExplorer: string;
|
|
621
737
|
finish: string;
|
|
622
738
|
warnings: string;
|
|
623
739
|
/** template: "{n} files were left out of the package" */
|
|
@@ -739,6 +855,7 @@ export type LrText = {
|
|
|
739
855
|
tooLarge: string;
|
|
740
856
|
never: string;
|
|
741
857
|
reveal: string;
|
|
858
|
+
revealExplorer: string;
|
|
742
859
|
restore: string;
|
|
743
860
|
restoreGo: string;
|
|
744
861
|
restoreTitle: string;
|