@lemonriver/core 1.2.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.
Files changed (124) hide show
  1. package/dist/{build-CSkdswfd.js → build-Cv0nNc4G.js} +1 -1
  2. package/dist/cli/bin.js +5 -5
  3. package/dist/{config-C5-myPY6.js → config-Di9kipre.js} +2773 -714
  4. package/dist/{config-CYNOR93W.d.ts → config-f1SqAhtR.d.ts} +1 -1
  5. package/dist/{dev-DHtYH8sw.js → dev-Az1UzCQp.js} +11 -11
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +21 -2
  8. package/dist/locale/index.d.ts +1 -1
  9. package/dist/locale/index.js +1 -1
  10. package/dist/{mcp-B2UeO1un.js → mcp-CW7H6oUg.js} +1 -1
  11. package/dist/{preview-C1B6-umF.js → preview-DtSq5uN1.js} +1 -1
  12. package/dist/{types-tdaXSyah.d.ts → types-C4VfD89E.d.ts} +12 -0
  13. package/dist/{update-DzL8fpcI.js → update-DVe2kQA7.js} +86 -13
  14. package/dist/vite/index.d.ts +1 -1
  15. package/dist/vite/index.js +1 -1
  16. package/dist/{zh-tw-BhYyMx0-.js → zh-tw-BX3oQAc2.js} +110 -0
  17. package/package.json +5 -6
  18. package/release-notes.json +34 -0
  19. package/src/agent/types.ts +9 -2
  20. package/src/app/app.tsx +2 -0
  21. package/src/app/components/agent/agent-panel.tsx +12 -3
  22. package/src/app/components/agent/agent-presence.tsx +1 -1
  23. package/src/app/components/command/home-command-menu.tsx +4 -1
  24. package/src/app/components/command/slide-command-menu.tsx +4 -1
  25. package/src/app/components/export-progress-toast.tsx +3 -1
  26. package/src/app/components/inspector/asset-picker-dialog.tsx +1 -1
  27. package/src/app/components/inspector/comment-layer.tsx +3 -3
  28. package/src/app/components/inspector/inline-text-editor.tsx +1 -12
  29. package/src/app/components/inspector/inspect-overlay.tsx +9 -1
  30. package/src/app/components/inspector/inspector-panel.tsx +7 -23
  31. package/src/app/components/inspector/inspector-provider.tsx +177 -36
  32. package/src/app/components/inspector/page-panel.tsx +270 -0
  33. package/src/app/components/language-toggle.tsx +13 -11
  34. package/src/app/components/overview-grid.tsx +3 -3
  35. package/src/app/components/panel/editor-sidebar.tsx +43 -8
  36. package/src/app/components/panel/panel-shell.tsx +9 -5
  37. package/src/app/components/panel/save-card.tsx +1 -1
  38. package/src/app/components/player.tsx +6 -1
  39. package/src/app/components/sidebar/folder-item.tsx +4 -1
  40. package/src/app/components/sidebar/sidebar.tsx +11 -8
  41. package/src/app/components/slide-canvas.tsx +1 -1
  42. package/src/app/components/style-panel/design-provider.tsx +48 -11
  43. package/src/app/components/style-panel/use-design.ts +6 -1
  44. package/src/app/components/theme-toggle.tsx +16 -22
  45. package/src/app/components/thumbnail-rail.tsx +69 -50
  46. package/src/app/components/ui/context-menu.tsx +9 -10
  47. package/src/app/components/ui/dialog.tsx +2 -4
  48. package/src/app/components/ui/dropdown-menu.tsx +9 -10
  49. package/src/app/components/ui/popover.tsx +1 -1
  50. package/src/app/components/ui/select.tsx +2 -2
  51. package/src/app/components/ui/sonner.tsx +2 -2
  52. package/src/app/index.html +7 -0
  53. package/src/app/lemonriver/agent-cli/model.ts +22 -0
  54. package/src/app/lemonriver/agent-install/model.ts +46 -0
  55. package/src/app/lemonriver/agent-install/section.tsx +178 -0
  56. package/src/app/lemonriver/agent-install/use-install.ts +51 -0
  57. package/src/app/lemonriver/agent-providers/section.tsx +385 -44
  58. package/src/app/lemonriver/agent-providers/use-providers.ts +50 -3
  59. package/src/app/lemonriver/backup/places.ts +22 -12
  60. package/src/app/lemonriver/chrome/sidebar-extras.tsx +1 -1
  61. package/src/app/lemonriver/feedback/dialog.tsx +1 -2
  62. package/src/app/lemonriver/feedback/model.ts +0 -5
  63. package/src/app/lemonriver/guide/clipboard.ts +19 -0
  64. package/src/app/lemonriver/guide/create-board.tsx +150 -0
  65. package/src/app/lemonriver/guide/install-board.tsx +208 -0
  66. package/src/app/lemonriver/guide/more-agents-page.tsx +89 -0
  67. package/src/app/lemonriver/guide/more-agents.ts +137 -0
  68. package/src/app/lemonriver/guide/quick-board.tsx +57 -0
  69. package/src/app/lemonriver/guide/start-board.tsx +38 -0
  70. package/src/app/lemonriver/guide/start-card.tsx +105 -0
  71. package/src/app/lemonriver/guide/start.ts +174 -0
  72. package/src/app/lemonriver/guide/state.ts +5 -21
  73. package/src/app/lemonriver/help/help-page.tsx +24 -6
  74. package/src/app/lemonriver/help/model.ts +1 -0
  75. package/src/app/lemonriver/home/home-page.tsx +12 -6
  76. package/src/app/lemonriver/home/sorting.ts +45 -0
  77. package/src/app/lemonriver/home/use-deck-times.ts +1 -2
  78. package/src/app/lemonriver/i18n/system-locale.ts +39 -0
  79. package/src/app/lemonriver/present/dual-screen.ts +154 -0
  80. package/src/app/lemonriver/present/presenter-blocked-hint.tsx +28 -0
  81. package/src/app/lemonriver/present/wake-lock.ts +74 -0
  82. package/src/app/lemonriver/routes.tsx +2 -0
  83. package/src/app/lemonriver/settings/backup-section.tsx +3 -2
  84. package/src/app/lemonriver/settings/settings-page.tsx +5 -6
  85. package/src/app/lemonriver/settings/workspace-card.tsx +2 -1
  86. package/src/app/lemonriver/share/share-dialog.tsx +2 -1
  87. package/src/app/lemonriver/text/en.ts +594 -452
  88. package/src/app/lemonriver/text/es.ts +404 -270
  89. package/src/app/lemonriver/text/ja.ts +405 -273
  90. package/src/app/lemonriver/text/platform.ts +7 -0
  91. package/src/app/lemonriver/text/types.ts +122 -1
  92. package/src/app/lemonriver/text/zh-cn.ts +645 -507
  93. package/src/app/lemonriver/text/zh-tw.ts +681 -544
  94. package/src/app/lemonriver/theme/app.css +9 -0
  95. package/src/app/lemonriver/theme/controls.css +5 -2
  96. package/src/app/lemonriver/theme/index.css +9 -0
  97. package/src/app/lemonriver/theme/pages.ts +2 -0
  98. package/src/app/lemonriver/theme/theme-menu.tsx +10 -11
  99. package/src/app/lemonriver/update/restart-wait.ts +45 -0
  100. package/src/app/lemonriver/update/update-prompt.tsx +9 -0
  101. package/src/app/lib/agent/use-agent.ts +117 -30
  102. package/src/app/lib/desktop-host.ts +31 -0
  103. package/src/app/lib/desktop-routes.ts +22 -0
  104. package/src/app/lib/desktop.ts +106 -0
  105. package/src/app/lib/export-pdf.ts +15 -7
  106. package/src/app/lib/inspector/color.ts +51 -0
  107. package/src/app/lib/inspector/fiber.ts +6 -0
  108. package/src/app/lib/inspector/use-editor.ts +2 -1
  109. package/src/app/lib/inspector/use-notes.ts +331 -57
  110. package/src/app/lib/inspector/use-visual-editor.ts +9 -1
  111. package/src/app/lib/locale-store.ts +6 -1
  112. package/src/app/lib/transition.ts +43 -0
  113. package/src/app/lib/unsaved.ts +155 -0
  114. package/src/app/routes/home.tsx +1 -1
  115. package/src/app/routes/presenter.tsx +2 -0
  116. package/src/app/routes/slide.tsx +130 -74
  117. package/src/app/styles.css +39 -1
  118. package/src/locale/en.ts +19 -0
  119. package/src/locale/es.ts +19 -0
  120. package/src/locale/ja.ts +19 -0
  121. package/src/locale/types.ts +12 -0
  122. package/src/locale/zh-cn.ts +19 -0
  123. package/src/locale/zh-tw.ts +19 -0
  124. 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;
@@ -784,4 +901,8 @@ export type LrText = {
784
901
  executablesHint: string;
785
902
  executablesConfirm: string;
786
903
  };
904
+ present: {
905
+ /** Shown inside the slide window when the browser blocked the presenter popup. */
906
+ presenterBlocked: string;
907
+ };
787
908
  };