@lemonriver/core 0.5.0 → 0.7.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 (83) hide show
  1. package/dist/{build-CS1goZxt.js → build-CKwrex8y.js} +1 -1
  2. package/dist/cli/bin.js +3 -3
  3. package/dist/{config-BpbcCbUv.js → config-B1_gk0sy.js} +2983 -266
  4. package/dist/{dev-BpYnfgLL.js → dev-DZ2Yzl2p.js} +1 -1
  5. package/dist/{preview-HSzPPkSs.js → preview-hMDcuHfP.js} +1 -1
  6. package/dist/vite/index.js +1 -1
  7. package/package.json +1 -1
  8. package/src/app/lemonriver/board/blocks/classify.test.ts +5 -0
  9. package/src/app/lemonriver/board/blocks/classify.ts +29 -2
  10. package/src/app/lemonriver/board/blocks/snapshot.ts +34 -4
  11. package/src/app/lemonriver/board/board-page.tsx +15 -0
  12. package/src/app/lemonriver/board/model/agent-tasks.ts +33 -1
  13. package/src/app/lemonriver/board/model/self-check.test.ts +329 -0
  14. package/src/app/lemonriver/board/model/self-check.ts +489 -0
  15. package/src/app/lemonriver/board/page-node.tsx +23 -1
  16. package/src/app/lemonriver/board/self-check-jump.ts +23 -0
  17. package/src/app/lemonriver/board/self-check-panel.tsx +272 -0
  18. package/src/app/lemonriver/board/self-check-runner.tsx +150 -0
  19. package/src/app/lemonriver/board/use-self-check.ts +117 -0
  20. package/src/app/lemonriver/chrome/app-chrome.tsx +12 -1
  21. package/src/app/lemonriver/chrome/filter-pill.tsx +30 -0
  22. package/src/app/lemonriver/chrome/sidebar-extras.tsx +12 -1
  23. package/src/app/lemonriver/features.test.ts +10 -0
  24. package/src/app/lemonriver/features.ts +3 -1
  25. package/src/app/lemonriver/feedback/pending-toast.ts +7 -2
  26. package/src/app/lemonriver/home/deck-card.tsx +20 -1
  27. package/src/app/lemonriver/home/home-page.tsx +107 -7
  28. package/src/app/lemonriver/home/use-deck-times.ts +4 -1
  29. package/src/app/lemonriver/outline/build-team.tsx +42 -0
  30. package/src/app/lemonriver/outline/describe-page.tsx +128 -27
  31. package/src/app/lemonriver/outline/draft.ts +38 -0
  32. package/src/app/lemonriver/outline/model.test.ts +79 -0
  33. package/src/app/lemonriver/outline/model.ts +80 -7
  34. package/src/app/lemonriver/outline/outline-page.tsx +56 -6
  35. package/src/app/lemonriver/outline/pick-style.tsx +282 -0
  36. package/src/app/lemonriver/routes.test.tsx +17 -5
  37. package/src/app/lemonriver/routes.tsx +28 -0
  38. package/src/app/lemonriver/share/capture.ts +76 -0
  39. package/src/app/lemonriver/share/client.ts +162 -0
  40. package/src/app/lemonriver/share/codes.test.ts +49 -0
  41. package/src/app/lemonriver/share/codes.ts +30 -0
  42. package/src/app/lemonriver/share/compare.test.ts +199 -0
  43. package/src/app/lemonriver/share/compare.ts +367 -0
  44. package/src/app/lemonriver/share/drop.ts +84 -0
  45. package/src/app/lemonriver/share/folder.test.ts +42 -0
  46. package/src/app/lemonriver/share/folder.ts +29 -0
  47. package/src/app/lemonriver/share/freeze.ts +51 -0
  48. package/src/app/lemonriver/share/guide.test.ts +78 -0
  49. package/src/app/lemonriver/share/guide.ts +222 -0
  50. package/src/app/lemonriver/share/import-dialog.tsx +391 -0
  51. package/src/app/lemonriver/share/import-entry.tsx +106 -0
  52. package/src/app/lemonriver/share/model.ts +150 -0
  53. package/src/app/lemonriver/share/naming.test.ts +59 -0
  54. package/src/app/lemonriver/share/naming.ts +71 -0
  55. package/src/app/lemonriver/share/paths.test.ts +75 -0
  56. package/src/app/lemonriver/share/paths.ts +181 -0
  57. package/src/app/lemonriver/share/pdf.test.ts +79 -0
  58. package/src/app/lemonriver/share/pdf.ts +169 -0
  59. package/src/app/lemonriver/share/share-dialog.tsx +286 -0
  60. package/src/app/lemonriver/share/summary.ts +47 -0
  61. package/src/app/lemonriver/slide-extensions.tsx +69 -23
  62. package/src/app/lemonriver/templates/client.ts +60 -0
  63. package/src/app/lemonriver/templates/demo-page.tsx +79 -0
  64. package/src/app/lemonriver/templates/knobs.test.ts +62 -0
  65. package/src/app/lemonriver/templates/knobs.ts +62 -0
  66. package/src/app/lemonriver/templates/library-page.tsx +295 -0
  67. package/src/app/lemonriver/templates/model.test.ts +175 -0
  68. package/src/app/lemonriver/templates/model.ts +339 -0
  69. package/src/app/lemonriver/templates/preview-content.test.ts +117 -0
  70. package/src/app/lemonriver/templates/preview-content.ts +149 -0
  71. package/src/app/lemonriver/templates/recommend.test.ts +71 -0
  72. package/src/app/lemonriver/templates/recommend.ts +72 -0
  73. package/src/app/lemonriver/templates/use-library.ts +58 -0
  74. package/src/app/lemonriver/templates/virtual.d.ts +28 -0
  75. package/src/app/lemonriver/text/en.ts +124 -0
  76. package/src/app/lemonriver/text/es.ts +124 -0
  77. package/src/app/lemonriver/text/ja.ts +124 -0
  78. package/src/app/lemonriver/text/types.ts +151 -0
  79. package/src/app/lemonriver/text/zh-cn.ts +119 -0
  80. package/src/app/lemonriver/text/zh-tw.ts +119 -0
  81. package/src/app/lemonriver/theme/pages.test.ts +4 -0
  82. package/src/app/lemonriver/theme/pages.ts +6 -1
  83. package/src/app/lemonriver/update/prompt.ts +1 -1
@@ -0,0 +1,149 @@
1
+ export type PreviewOutline = {
2
+ brief: string;
3
+ audience: string;
4
+ items: { title: string; kind: string }[];
5
+ };
6
+
7
+ export type PreviewContent = {
8
+ cover: { title: string; subtitle: string; meta: string; brand: string; mark: string };
9
+ data: {
10
+ title: string;
11
+ value: string;
12
+ unit?: string;
13
+ caption: string;
14
+ context: string;
15
+ /** True when the outline had no number anywhere and the template's own shows. */
16
+ sample: boolean;
17
+ };
18
+ };
19
+
20
+ const MAX_TITLE = 24;
21
+ const MAX_SUBTITLE = 30;
22
+ const MAX_LINE = 40;
23
+
24
+ const UNITS = [
25
+ '万亿',
26
+ '亿美元',
27
+ '亿元',
28
+ '美元',
29
+ '亿',
30
+ '万',
31
+ '千',
32
+ '%',
33
+ '%',
34
+ '倍',
35
+ '元',
36
+ '人',
37
+ '天',
38
+ '次',
39
+ '家',
40
+ '台',
41
+ '件',
42
+ '个',
43
+ '页',
44
+ ];
45
+
46
+ const NUMBER_RE = new RegExp(`(\\d+(?:[.,]\\d+)*)\\s*(${UNITS.join('|')})?`);
47
+
48
+ const DATA_KINDS = new Set(['kpi', 'chart']);
49
+
50
+ function firstSentence(text: string): string {
51
+ const flat = text.replace(/\s+/g, ' ').trim();
52
+ const cut = flat.split(/(?<=[。!?!?])|\.\s/)[0] ?? flat;
53
+ return cut.trim();
54
+ }
55
+
56
+ function truncate(text: string, max: number): string {
57
+ const flat = text.replace(/\s+/g, ' ').trim();
58
+ if (flat.length <= max) return flat;
59
+ return `${flat.slice(0, max - 1).trimEnd()}…`;
60
+ }
61
+
62
+ function readNumber(text: string): { value: string; unit?: string } | null {
63
+ const match = NUMBER_RE.exec(text);
64
+ if (!match) return null;
65
+ const value = match[1] ?? '';
66
+ if (!value) return null;
67
+ return match[2] ? { value, unit: match[2] } : { value };
68
+ }
69
+
70
+ function dateLabel(now: Date, locale?: string): string {
71
+ try {
72
+ return new Intl.DateTimeFormat(locale ?? 'zh-CN', {
73
+ year: 'numeric',
74
+ month: 'long',
75
+ day: 'numeric',
76
+ }).format(now);
77
+ } catch {
78
+ return now.toISOString().slice(0, 10);
79
+ }
80
+ }
81
+
82
+ const QUARTER_WORD = /第\s*([一二三四1-4])\s*季度/;
83
+ const QUARTER = /(?:^|[^A-Za-z0-9])Q\s?([1-4])(?![0-9])/i;
84
+ const FISCAL_PREFIX = /\bFY\s?'?(\d{2,4})\b/i;
85
+ const FISCAL_SUFFIX = /(\d{4})\s*财年/;
86
+ const YEAR = /(\d{4})\s*年/;
87
+
88
+ const QUARTER_DIGIT: Record<string, string> = { 一: '1', 二: '2', 三: '3', 四: '4' };
89
+
90
+ /**
91
+ * The big letter the cover sets beside the title. The user's own quarter or
92
+ * fiscal year when the outline names one, so the preview is never a sample.
93
+ */
94
+ export function readMark(text: string): string {
95
+ const word = QUARTER_WORD.exec(text);
96
+ if (word) {
97
+ const digit = QUARTER_DIGIT[word[1]] ?? word[1];
98
+ return `Q${digit}`;
99
+ }
100
+ const quarter = QUARTER.exec(text);
101
+ if (quarter) return `Q${quarter[1]}`;
102
+ const fiscalPrefix = FISCAL_PREFIX.exec(text);
103
+ if (fiscalPrefix) return `FY${fiscalPrefix[1].slice(-2)}`;
104
+ const fiscalSuffix = FISCAL_SUFFIX.exec(text);
105
+ if (fiscalSuffix) return `FY${fiscalSuffix[1].slice(-2)}`;
106
+ const year = YEAR.exec(text);
107
+ if (year) return year[1];
108
+ return '';
109
+ }
110
+
111
+ /** What the "pick a style" previews draw: the user's own title and number. */
112
+ export function previewContent(
113
+ outline: PreviewOutline,
114
+ options: { now?: Date; locale?: string } = {},
115
+ ): PreviewContent {
116
+ const items = outline.items.filter((item) => item.title.trim() !== '');
117
+ const cover = items.find((item) => item.kind === 'cover') ?? items[0] ?? null;
118
+ const sentence = firstSentence(outline.brief);
119
+
120
+ const coverTitle = cover?.title ?? sentence;
121
+ const audience = outline.audience.trim();
122
+ const meta = [dateLabel(options.now ?? new Date(), options.locale), audience]
123
+ .filter((part) => part !== '')
124
+ .join(' · ');
125
+
126
+ const dataPage = items.find((item) => DATA_KINDS.has(item.kind)) ?? null;
127
+ const pageTitle = dataPage?.title ?? sentence;
128
+ const inTitle = readNumber(pageTitle);
129
+ const found = inTitle ?? readNumber(outline.brief);
130
+ const source = inTitle ? pageTitle : sentence;
131
+
132
+ return {
133
+ cover: {
134
+ title: truncate(coverTitle, MAX_TITLE),
135
+ subtitle: truncate(sentence, MAX_SUBTITLE),
136
+ meta,
137
+ brand: '',
138
+ mark: readMark(cover?.title ?? '') || readMark(outline.brief),
139
+ },
140
+ data: {
141
+ title: truncate(pageTitle, MAX_TITLE),
142
+ value: found?.value ?? '',
143
+ unit: found?.unit,
144
+ caption: truncate(source || pageTitle, MAX_LINE),
145
+ context: truncate(audience, MAX_LINE),
146
+ sample: found === null,
147
+ },
148
+ };
149
+ }
@@ -0,0 +1,71 @@
1
+ import { describe, expect, it } from 'vitest';
2
+ import type { OccasionId } from './model.ts';
3
+ import { type Recommendable, recommendTemplates } from './recommend.ts';
4
+
5
+ const template = (id: string, occasions: OccasionId[]): Recommendable => ({
6
+ id,
7
+ occasions,
8
+ reason: `why ${id}`,
9
+ });
10
+
11
+ const LIBRARY: Recommendable[] = [
12
+ template('a-pitch', ['pitch']),
13
+ template('b-report', ['report']),
14
+ template('c-launch', ['launch']),
15
+ template('d-review', ['review']),
16
+ template('e-both', ['launch', 'report']),
17
+ ];
18
+
19
+ const ids = (picks: Recommendable[]) => picks.map((pick) => pick.id);
20
+
21
+ describe('recommendTemplates', () => {
22
+ it('puts the templates whose first occasion matches first', () => {
23
+ const { picks, reasons } = recommendTemplates(LIBRARY, { occasion: 'report' });
24
+ expect(ids(picks)).toEqual(['b-report', 'e-both', 'a-pitch']);
25
+ expect(reasons).toEqual(['why b-report', 'why e-both', 'why a-pitch']);
26
+ });
27
+
28
+ it('fills from the report occasion, then any template, when fewer than three match', () => {
29
+ const narrow = [template('x', ['review']), ...LIBRARY];
30
+ const { picks } = recommendTemplates(narrow, { occasion: 'review' });
31
+ expect(ids(picks)).toEqual(['x', 'd-review', 'b-report']);
32
+ expect(picks).toHaveLength(3);
33
+ });
34
+
35
+ it('takes one template per occasion when the user is unsure', () => {
36
+ const { picks } = recommendTemplates(LIBRARY, { occasion: null });
37
+ expect(ids(picks)).toEqual(['a-pitch', 'b-report', 'c-launch']);
38
+ });
39
+
40
+ it('leaves out the ones already shown and restarts once all have been seen', () => {
41
+ const first = recommendTemplates(LIBRARY, { occasion: 'report' });
42
+ const next = recommendTemplates(LIBRARY, {
43
+ occasion: 'report',
44
+ exclude: ids(first.picks),
45
+ });
46
+ expect(ids(next.picks)).toEqual(['c-launch', 'd-review']);
47
+
48
+ const again = recommendTemplates(LIBRARY, {
49
+ occasion: 'report',
50
+ exclude: ['a-pitch', 'b-report', 'c-launch', 'd-review', 'e-both'],
51
+ });
52
+ expect(ids(again.picks)).toEqual(ids(first.picks));
53
+ });
54
+
55
+ it('returns the one template a one-template library has, without padding', () => {
56
+ const single = [template('only', ['report'])];
57
+ expect(recommendTemplates(single, { occasion: 'report' }).picks).toHaveLength(1);
58
+ expect(recommendTemplates(single, { occasion: null }).picks).toHaveLength(1);
59
+ expect(ids(recommendTemplates(single, { occasion: null }).picks)).toEqual(['only']);
60
+ });
61
+
62
+ it('never repeats a template across the two pools', () => {
63
+ const overlapping = [
64
+ template('one', ['pitch', 'report', 'launch', 'review']),
65
+ template('two', ['report']),
66
+ template('three', ['report']),
67
+ ];
68
+ const { picks } = recommendTemplates(overlapping, { occasion: 'report' });
69
+ expect(new Set(ids(picks)).size).toBe(picks.length);
70
+ });
71
+ });
@@ -0,0 +1,72 @@
1
+ import { OCCASIONS, type OccasionId } from './model.ts';
2
+
3
+ export type Recommendable = { id: string; occasions: OccasionId[]; reason: string };
4
+
5
+ export type RecommendInput = {
6
+ occasion: OccasionId | null;
7
+ /** Accepted so callers can pass the audience; the reason stays the template's own. */
8
+ audience?: string;
9
+ /** Templates already shown, left out of the next round. */
10
+ exclude?: string[];
11
+ };
12
+
13
+ export type Recommendation<T> = { picks: T[]; reasons: string[] };
14
+
15
+ const LIMIT = 3;
16
+
17
+ function byOccasion<T extends Recommendable>(pool: T[], occasion: OccasionId): T[] {
18
+ const groups = [
19
+ pool.filter((template) => template.occasions[0] === occasion),
20
+ pool.filter((template) => template.occasions.includes(occasion)),
21
+ pool.filter((template) => template.occasions.includes('report')),
22
+ pool,
23
+ ];
24
+ const seen = new Set<string>();
25
+ const picks: T[] = [];
26
+ for (const group of groups) {
27
+ for (const template of group) {
28
+ if (seen.has(template.id)) continue;
29
+ seen.add(template.id);
30
+ picks.push(template);
31
+ if (picks.length === LIMIT) return picks;
32
+ }
33
+ }
34
+ return picks;
35
+ }
36
+
37
+ /** No occasion: one template per occasion in turn, so the three differ. */
38
+ function byTurns<T extends Recommendable>(pool: T[]): T[] {
39
+ const seen = new Set<string>();
40
+ const picks: T[] = [];
41
+ for (const occasion of OCCASIONS) {
42
+ const found = pool.find(
43
+ (template) => !seen.has(template.id) && template.occasions.includes(occasion.id),
44
+ );
45
+ if (!found) continue;
46
+ seen.add(found.id);
47
+ picks.push(found);
48
+ if (picks.length === LIMIT) return picks;
49
+ }
50
+ return picks;
51
+ }
52
+
53
+ /**
54
+ * Three templates to show after the outline. Everything excluded means the user
55
+ * has seen the whole library, so the next round starts over.
56
+ */
57
+ export function recommendTemplates<T extends Recommendable>(
58
+ templates: readonly T[],
59
+ input: RecommendInput,
60
+ ): Recommendation<T> {
61
+ const seen = new Set<string>();
62
+ const unique = templates.filter((template) => {
63
+ if (seen.has(template.id)) return false;
64
+ seen.add(template.id);
65
+ return true;
66
+ });
67
+ const excluded = new Set(input.exclude ?? []);
68
+ const kept = unique.filter((template) => !excluded.has(template.id));
69
+ const pool = kept.length > 0 ? kept : unique;
70
+ const picks = input.occasion ? byOccasion(pool, input.occasion) : byTurns(pool);
71
+ return { picks, reasons: picks.map((template) => template.reason) };
72
+ }
@@ -0,0 +1,58 @@
1
+ import { useEffect, useState } from 'react';
2
+ import type { TemplateMeta } from './client';
3
+ import type { OccasionId } from './model';
4
+
5
+ export type TemplateLibrary = {
6
+ available: boolean;
7
+ occasions: { id: OccasionId; name: string }[];
8
+ templates: TemplateMeta[];
9
+ };
10
+
11
+ const UNAVAILABLE: TemplateLibrary = { available: false, occasions: [], templates: [] };
12
+
13
+ let cache: TemplateLibrary | null = null;
14
+ let pending: Promise<TemplateLibrary> | null = null;
15
+
16
+ async function fetchLibrary(): Promise<TemplateLibrary> {
17
+ try {
18
+ const res = await fetch('/__lr/templates');
19
+ if (!res.ok) return UNAVAILABLE;
20
+ const body = (await res.json()) as Partial<TemplateLibrary>;
21
+ return {
22
+ available: body.available === true,
23
+ occasions: Array.isArray(body.occasions) ? body.occasions : [],
24
+ templates: Array.isArray(body.templates) ? body.templates : [],
25
+ };
26
+ } catch {
27
+ return UNAVAILABLE;
28
+ }
29
+ }
30
+
31
+ export function loadTemplateLibrary(): Promise<TemplateLibrary> {
32
+ if (cache) return Promise.resolve(cache);
33
+ pending ??= fetchLibrary().then((library) => {
34
+ cache = library;
35
+ pending = null;
36
+ return library;
37
+ });
38
+ return pending;
39
+ }
40
+
41
+ /** Null until the server has answered; the sidebar and the pages share one fetch. */
42
+ export function useTemplateLibrary(): TemplateLibrary | null {
43
+ const [library, setLibrary] = useState<TemplateLibrary | null>(cache);
44
+ useEffect(() => {
45
+ if (cache) {
46
+ setLibrary(cache);
47
+ return;
48
+ }
49
+ let cancelled = false;
50
+ void loadTemplateLibrary().then((next) => {
51
+ if (!cancelled) setLibrary(next);
52
+ });
53
+ return () => {
54
+ cancelled = true;
55
+ };
56
+ }, []);
57
+ return library;
58
+ }
@@ -0,0 +1,28 @@
1
+ declare module 'virtual:open-slide/templates' {
2
+ import type { DesignSystem } from '../../lib/design';
3
+ import type { Page } from '../../lib/sdk';
4
+ import type { OccasionId, TemplateKnobs } from './model';
5
+
6
+ export type TemplateMeta = {
7
+ id: string;
8
+ name: string;
9
+ occasions: OccasionId[];
10
+ audience: string;
11
+ object: string;
12
+ reason: string;
13
+ accent: string;
14
+ design: DesignSystem;
15
+ knobs: TemplateKnobs;
16
+ skeletons: string[];
17
+ hasDemo: boolean;
18
+ pages: number;
19
+ previewPages: number[] | null;
20
+ };
21
+
22
+ export const templates: TemplateMeta[];
23
+ export function loadTemplateDemo(id: string): Promise<{
24
+ default: Page[];
25
+ design?: DesignSystem;
26
+ }>;
27
+ export function loadTemplatePreview(id: string): Promise<unknown>;
28
+ }
@@ -187,6 +187,28 @@ export const en: LrText = {
187
187
  durationSeconds: '{s}s',
188
188
  durationMinSec: '{m}m {s}s',
189
189
  durationMinutes: '{m} min',
190
+ selfCheckPage: 'Page {n}',
191
+ selfCheck: 'Self-check',
192
+ selfCheckPassed: 'Self-check passed',
193
+ selfCheckFindings: '{n} things to look at',
194
+ selfCheckTimes: '{n} places',
195
+ selfCheckHints: 'Hints',
196
+ cardFindings: '{n} to check',
197
+ selfCheckFix: 'Ask the agent to fix',
198
+ selfCheckRunning: 'The agent is fixing what the self-check found…',
199
+ selfCheckDone: 'Fixed, and checked again',
200
+ selfCheckUnread: 'Page {pages} could not be read, so it was not checked',
201
+ selfCheckUnreadMany: '{n} pages could not be read, so they were not checked',
202
+ selfCheckUnreadBadge: '{n} unread',
203
+ selfCheckAgain: 'Check again',
204
+ cardUnread: 'Unread',
205
+ findingTiny: 'Type too small ({size}px)',
206
+ findingSmallBody: 'Body text under 24px',
207
+ findingOverflow: 'Runs off the page',
208
+ findingOverlap: 'Text sits on something else',
209
+ findingNoNotes: 'No speaker notes',
210
+ findingLongTitle: 'Title too long ({n} characters)',
211
+ findingAccent: 'Accent colour used {n} times',
190
212
  },
191
213
  theme: {
192
214
  lime: 'Lime',
@@ -385,6 +407,41 @@ export const en: LrText = {
385
407
  kindPage: 'Body',
386
408
  kindEnd: 'Closing',
387
409
  back: 'Back to slides',
410
+ occasionLabel: 'Occasion',
411
+ audienceLabel: 'Who is it for? (optional)',
412
+ audiencePlaceholder: 'e.g. Board members and executives',
413
+ unsure: 'Not sure',
414
+ selectedTemplate: 'Template: {name}',
415
+ removeTemplate: 'Clear the template',
416
+ pickTitle: 'Pick a look',
417
+ pickHint: 'Drawn with the titles and numbers from your own outline. Pick one, then start.',
418
+ pickBack: 'Back to the outline',
419
+ pickMore: 'Show me others',
420
+ pickYou: 'Choose for me',
421
+ pickNone: 'No template',
422
+ pickStart: 'Build with this look',
423
+ pickToast: 'Using {name}: {reason}',
424
+ pickSample: 'The number is a sample',
425
+ pickKnobsFor: 'Adjust “{name}”',
426
+ knobFormal: 'Formal ↔ Lively',
427
+ knobBright: 'Plain ↔ Bright',
428
+ knobMotion: 'Less motion ↔ More',
429
+ motionHint: 'Motion only shows in presentation',
430
+ },
431
+ templates: {
432
+ title: 'Template library',
433
+ subtitle: 'A template sets the structure and layout; Lemon writes the content for your brief.',
434
+ all: 'All',
435
+ pages: '{n} pages',
436
+ emptyTitle: 'No template library in this workspace',
437
+ emptyHint: 'The template library is only available in development.',
438
+ occasions: 'Best for',
439
+ audience: 'Audience',
440
+ object: 'Borrows from',
441
+ accent: 'Accent colour',
442
+ create: 'Start with this template',
443
+ close: 'Close',
444
+ previews: 'Page previews',
388
445
  },
389
446
  build: {
390
447
  lead: 'Lemon',
@@ -423,4 +480,71 @@ export const en: LrText = {
423
480
  followClient: 'client settings',
424
481
  followClientHint: 'Uses the model and effort set in {provider}.',
425
482
  },
483
+ share: {
484
+ open: 'Share',
485
+ menuItem: 'Share',
486
+ dialogTitle: 'Share “{title}”',
487
+ dialogDescription:
488
+ 'Pack it into one zip and send it over WeChat, email or a cloud drive. They can still read the PDF without LemonRiver.',
489
+ attachPdf: 'Attach a PDF so anyone can read it',
490
+ estimate: 'About {n} pages, takes {s} seconds',
491
+ generate: 'Create package',
492
+ capturing: 'Drawing page {k} of {n}',
493
+ preparing: 'Packing…',
494
+ done: 'Package ready: {name} ({size} MB)',
495
+ reveal: 'Show in Finder',
496
+ finish: 'Done',
497
+ warnings: 'Notes',
498
+ failed: 'Could not create the package',
499
+ moreFiles: 'and {n} more',
500
+ importTitle: 'Import package',
501
+ importAction: 'Import',
502
+ dropHint: 'Drop to import',
503
+ notAPackage: 'This is not a LemonRiver package',
504
+ madeWith: 'Made with LemonRiver {version}',
505
+ keepBoth: 'Keep both',
506
+ replaceExisting: 'Replace “{title}” on my computer (the old one goes to the trash)',
507
+ securityNotice:
508
+ 'A deck is program code that runs on your computer once imported. Only import packages from people you trust.',
509
+ importedToast: 'Imported “{title}”',
510
+ openAction: 'Open',
511
+ pageCount: '{n} pages',
512
+ pageOf: 'Page {n}',
513
+ earlier: 'Previous',
514
+ later: 'Next',
515
+ compareTitle: 'Compared with your copy',
516
+ compareSame: 'Same as your copy — nothing to import.',
517
+ compareUnreadable:
518
+ 'This deck cannot be compared page by page; only the overall change is visible.',
519
+ compareChanged: 'Pages changed: {pages}',
520
+ compareAdded: 'Pages added: {n}',
521
+ compareRemoved: 'Pages removed: {n}',
522
+ compareMoved: 'Page order changed',
523
+ compareNotesOnly: 'Speaker notes only: page {pages}',
524
+ compareShared: 'Shared parts (styles, template pieces) changed too, so every page may differ',
525
+ compareAssets: 'Assets: {added} added, {changed} changed, {removed} removed',
526
+ compareExpand: 'Show pages',
527
+ compareCollapse: 'Hide pages',
528
+ statusSame: 'same',
529
+ statusChanged: 'changed',
530
+ statusAdded: 'added',
531
+ statusRemoved: 'removed',
532
+ statusMoved: 'moved',
533
+ unknownVersion: 'unknown version',
534
+ errors: {
535
+ notAPackage: 'This is not a LemonRiver package, or the package is damaged.',
536
+ badManifest: 'This is not a LemonRiver package, or the package is damaged.',
537
+ newerVersion:
538
+ 'This package was made by a newer LemonRiver ({version}). Update first, then import.',
539
+ badPath: 'The package contains files it should not, so nothing was imported.',
540
+ blockedFile: 'The package contains files it should not, so nothing was imported.',
541
+ checksum:
542
+ 'Files in the package were changed or are missing. Ask the sender to share it again.',
543
+ missingFile:
544
+ 'Files in the package were changed or are missing. Ask the sender to share it again.',
545
+ extraFile: 'The package contains files it should not, so nothing was imported.',
546
+ tooLarge: 'The package is too large and was not imported.',
547
+ tooManyFiles: 'The package is too large and was not imported.',
548
+ },
549
+ },
426
550
  };
@@ -178,6 +178,28 @@ export const es: LrText = {
178
178
  durationSeconds: '{s} s',
179
179
  durationMinSec: '{m} min {s} s',
180
180
  durationMinutes: '{m} min',
181
+ selfCheckPage: 'Page {n}',
182
+ selfCheck: 'Self-check',
183
+ selfCheckPassed: 'Self-check passed',
184
+ selfCheckFindings: '{n} things to look at',
185
+ selfCheckTimes: '{n} sitios',
186
+ selfCheckHints: 'Sugerencias',
187
+ cardFindings: '{n} to check',
188
+ selfCheckFix: 'Ask the agent to fix',
189
+ selfCheckRunning: 'The agent is fixing what the self-check found…',
190
+ selfCheckDone: 'Fixed, and checked again',
191
+ selfCheckUnread: 'No se pudo leer la página {pages}, así que no se revisó',
192
+ selfCheckUnreadMany: 'No se pudieron leer {n} páginas, así que no se revisaron',
193
+ selfCheckUnreadBadge: '{n} sin leer',
194
+ selfCheckAgain: 'Revisar otra vez',
195
+ cardUnread: 'Sin leer',
196
+ findingTiny: 'Type too small ({size}px)',
197
+ findingSmallBody: 'Texto del cuerpo por debajo de 24px',
198
+ findingOverflow: 'Runs off the page',
199
+ findingOverlap: 'Text sits on something else',
200
+ findingNoNotes: 'No speaker notes',
201
+ findingLongTitle: 'Title too long ({n} characters)',
202
+ findingAccent: 'Accent colour used {n} times',
181
203
  },
182
204
  theme: {
183
205
  lime: 'Lima',
@@ -378,6 +400,41 @@ export const es: LrText = {
378
400
  kindPage: 'Cuerpo',
379
401
  kindEnd: 'Cierre',
380
402
  back: 'Volver a las presentaciones',
403
+ occasionLabel: 'Occasion',
404
+ audienceLabel: 'Who is it for? (optional)',
405
+ audiencePlaceholder: 'e.g. Board members and executives',
406
+ unsure: 'Not sure',
407
+ selectedTemplate: 'Template: {name}',
408
+ removeTemplate: 'Clear the template',
409
+ pickTitle: 'Pick a look',
410
+ pickHint: 'Drawn with the titles and numbers from your own outline. Pick one, then start.',
411
+ pickBack: 'Back to the outline',
412
+ pickMore: 'Show me others',
413
+ pickYou: 'Choose for me',
414
+ pickNone: 'No template',
415
+ pickStart: 'Build with this look',
416
+ pickToast: 'Using {name}: {reason}',
417
+ pickSample: 'The number is a sample',
418
+ pickKnobsFor: 'Adjust “{name}”',
419
+ knobFormal: 'Formal ↔ Lively',
420
+ knobBright: 'Plain ↔ Bright',
421
+ knobMotion: 'Less motion ↔ More',
422
+ motionHint: 'Motion only shows in presentation',
423
+ },
424
+ templates: {
425
+ title: 'Template library',
426
+ subtitle: 'A template sets the structure and layout; Lemon writes the content for your brief.',
427
+ all: 'All',
428
+ pages: '{n} pages',
429
+ emptyTitle: 'No template library in this workspace',
430
+ emptyHint: 'The template library is only available in development.',
431
+ occasions: 'Best for',
432
+ audience: 'Audience',
433
+ object: 'Borrows from',
434
+ accent: 'Accent colour',
435
+ create: 'Start with this template',
436
+ close: 'Close',
437
+ previews: 'Page previews',
381
438
  },
382
439
  build: {
383
440
  lead: 'Limón',
@@ -416,4 +473,71 @@ export const es: LrText = {
416
473
  followClient: 'ajustes del cliente',
417
474
  followClientHint: 'Usa el modelo y el esfuerzo configurados en {provider}.',
418
475
  },
476
+ share: {
477
+ open: 'Share',
478
+ menuItem: 'Share',
479
+ dialogTitle: 'Share “{title}”',
480
+ dialogDescription:
481
+ 'Pack it into one zip and send it over WeChat, email or a cloud drive. They can still read the PDF without LemonRiver.',
482
+ attachPdf: 'Attach a PDF so anyone can read it',
483
+ estimate: 'About {n} pages, takes {s} seconds',
484
+ generate: 'Create package',
485
+ capturing: 'Drawing page {k} of {n}',
486
+ preparing: 'Packing…',
487
+ done: 'Package ready: {name} ({size} MB)',
488
+ reveal: 'Show in Finder',
489
+ finish: 'Done',
490
+ warnings: 'Notes',
491
+ failed: 'Could not create the package',
492
+ moreFiles: 'and {n} more',
493
+ importTitle: 'Import package',
494
+ importAction: 'Import',
495
+ dropHint: 'Drop to import',
496
+ notAPackage: 'This is not a LemonRiver package',
497
+ madeWith: 'Made with LemonRiver {version}',
498
+ keepBoth: 'Keep both',
499
+ replaceExisting: 'Replace “{title}” on my computer (the old one goes to the trash)',
500
+ securityNotice:
501
+ 'A deck is program code that runs on your computer once imported. Only import packages from people you trust.',
502
+ importedToast: 'Imported “{title}”',
503
+ openAction: 'Open',
504
+ pageCount: '{n} pages',
505
+ pageOf: 'Page {n}',
506
+ earlier: 'Previous',
507
+ later: 'Next',
508
+ compareTitle: 'Compared with your copy',
509
+ compareSame: 'Same as your copy — nothing to import.',
510
+ compareUnreadable:
511
+ 'This deck cannot be compared page by page; only the overall change is visible.',
512
+ compareChanged: 'Pages changed: {pages}',
513
+ compareAdded: 'Pages added: {n}',
514
+ compareRemoved: 'Pages removed: {n}',
515
+ compareMoved: 'Page order changed',
516
+ compareNotesOnly: 'Speaker notes only: page {pages}',
517
+ compareShared: 'Shared parts (styles, template pieces) changed too, so every page may differ',
518
+ compareAssets: 'Assets: {added} added, {changed} changed, {removed} removed',
519
+ compareExpand: 'Show pages',
520
+ compareCollapse: 'Hide pages',
521
+ statusSame: 'same',
522
+ statusChanged: 'changed',
523
+ statusAdded: 'added',
524
+ statusRemoved: 'removed',
525
+ statusMoved: 'moved',
526
+ unknownVersion: 'unknown version',
527
+ errors: {
528
+ notAPackage: 'This is not a LemonRiver package, or the package is damaged.',
529
+ badManifest: 'This is not a LemonRiver package, or the package is damaged.',
530
+ newerVersion:
531
+ 'This package was made by a newer LemonRiver ({version}). Update first, then import.',
532
+ badPath: 'The package contains files it should not, so nothing was imported.',
533
+ blockedFile: 'The package contains files it should not, so nothing was imported.',
534
+ checksum:
535
+ 'Files in the package were changed or are missing. Ask the sender to share it again.',
536
+ missingFile:
537
+ 'Files in the package were changed or are missing. Ask the sender to share it again.',
538
+ extraFile: 'The package contains files it should not, so nothing was imported.',
539
+ tooLarge: 'The package is too large and was not imported.',
540
+ tooManyFiles: 'The package is too large and was not imported.',
541
+ },
542
+ },
419
543
  };