@open-slide/core 2.3.2 → 2.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 (85) hide show
  1. package/dist/{build-8lRsgsO4.js → build-D7GwYl8d.js} +1 -1
  2. package/dist/cli/bin.js +4 -4
  3. package/dist/{config-DJ8ZOe7C.d.ts → config-CfhtJxQH.d.ts} +1 -1
  4. package/dist/{config-D2Mq1vSW.js → config-D4uPk_tM.js} +383 -138
  5. package/dist/{dev-BvefEp1Q.js → dev-DyCDMbHB.js} +10 -10
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +9 -1
  8. package/dist/locale/index.d.ts +1 -1
  9. package/dist/locale/index.js +1 -1
  10. package/dist/{preview-D8ognobz.js → preview-DjIFvt0K.js} +1 -1
  11. package/dist/{types-tdaXSyah.d.ts → types-ZfArJF0d.d.ts} +20 -13
  12. package/dist/{update-BivdNgL3.js → update-BKhRM7o4.js} +30 -3
  13. package/dist/vite/index.d.ts +1 -1
  14. package/dist/vite/index.js +1 -1
  15. package/dist/{zh-tw-DXcqQTrA.js → zh-tw-D7LfGVmA.js} +215 -65
  16. package/package.json +4 -5
  17. package/src/agent/provider.ts +8 -1
  18. package/src/agent/types.ts +17 -2
  19. package/src/app/app.tsx +2 -0
  20. package/src/app/components/agent/agent-markdown.tsx +3 -6
  21. package/src/app/components/agent/agent-panel.tsx +36 -258
  22. package/src/app/components/agent/agent-presence.tsx +1 -1
  23. package/src/app/components/agent/composer.tsx +52 -24
  24. package/src/app/components/agent/effort-slider.tsx +172 -0
  25. package/src/app/components/agent/model-menu.tsx +170 -0
  26. package/src/app/components/agent/permission-menu.tsx +88 -0
  27. package/src/app/components/agent/transcript.tsx +23 -31
  28. package/src/app/components/command/home-command-menu.tsx +4 -1
  29. package/src/app/components/command/slide-command-menu.tsx +4 -1
  30. package/src/app/components/export-progress-toast.tsx +3 -1
  31. package/src/app/components/inspector/asset-picker-dialog.tsx +1 -1
  32. package/src/app/components/inspector/comment-layer.tsx +3 -3
  33. package/src/app/components/inspector/inline-text-editor.tsx +1 -12
  34. package/src/app/components/inspector/inspect-overlay.tsx +9 -1
  35. package/src/app/components/inspector/inspector-panel.tsx +8 -35
  36. package/src/app/components/inspector/inspector-provider.tsx +177 -36
  37. package/src/app/components/inspector/page-panel.tsx +270 -0
  38. package/src/app/components/language-toggle.tsx +13 -11
  39. package/src/app/components/note-markdown.test.tsx +12 -6
  40. package/src/app/components/note-markdown.tsx +16 -21
  41. package/src/app/components/overview-grid.tsx +3 -3
  42. package/src/app/components/panel/editor-sidebar.tsx +43 -8
  43. package/src/app/components/panel/panel-shell.tsx +9 -5
  44. package/src/app/components/panel/save-card.tsx +1 -1
  45. package/src/app/components/sidebar/folder-item.tsx +4 -1
  46. package/src/app/components/sidebar/sidebar.tsx +11 -8
  47. package/src/app/components/style-panel/design-provider.tsx +48 -11
  48. package/src/app/components/style-panel/use-design.ts +6 -1
  49. package/src/app/components/theme-toggle.tsx +16 -22
  50. package/src/app/components/thumbnail-rail.tsx +68 -49
  51. package/src/app/components/ui/context-menu.tsx +9 -10
  52. package/src/app/components/ui/dialog.tsx +2 -4
  53. package/src/app/components/ui/dropdown-menu.tsx +9 -10
  54. package/src/app/components/ui/popover.tsx +1 -1
  55. package/src/app/components/ui/select.tsx +2 -2
  56. package/src/app/components/ui/sonner.tsx +2 -2
  57. package/src/app/index.html +7 -0
  58. package/src/app/lib/agent/use-agent.ts +131 -37
  59. package/src/app/lib/desktop-host.ts +31 -0
  60. package/src/app/lib/desktop-routes.test.ts +54 -0
  61. package/src/app/lib/desktop-routes.ts +22 -0
  62. package/src/app/lib/desktop.ts +106 -0
  63. package/src/app/lib/export-pdf.ts +15 -7
  64. package/src/app/lib/inspector/color.ts +51 -0
  65. package/src/app/lib/inspector/fiber.ts +6 -0
  66. package/src/app/lib/inspector/use-editor.ts +2 -1
  67. package/src/app/lib/inspector/use-notes.test.ts +209 -0
  68. package/src/app/lib/inspector/use-notes.ts +331 -57
  69. package/src/app/lib/inspector/use-visual-editor.ts +9 -1
  70. package/src/app/lib/locale-store.ts +14 -2
  71. package/src/app/lib/note-markdown.test.ts +69 -5
  72. package/src/app/lib/note-markdown.ts +97 -22
  73. package/src/app/lib/transition.test.ts +84 -1
  74. package/src/app/lib/transition.ts +43 -0
  75. package/src/app/lib/unsaved.test.ts +253 -0
  76. package/src/app/lib/unsaved.ts +155 -0
  77. package/src/app/routes/home.tsx +1 -1
  78. package/src/app/routes/slide.tsx +114 -117
  79. package/src/app/styles.css +421 -1
  80. package/src/locale/en.ts +40 -15
  81. package/src/locale/es.ts +40 -17
  82. package/src/locale/ja.ts +40 -15
  83. package/src/locale/types.ts +19 -14
  84. package/src/locale/zh-cn.ts +40 -14
  85. package/src/locale/zh-tw.ts +40 -14
@@ -1,10 +1,28 @@
1
1
  @import "tailwindcss";
2
2
  @import "tw-animate-css";
3
- @import "shadcn/tailwind.css";
4
3
  @import "@fontsource-variable/geist";
5
4
 
6
5
  @custom-variant dark (&:is(.dark *));
7
6
 
7
+ @custom-variant data-active {
8
+ &:where([data-state="active"]),
9
+ &:where([data-active]:not([data-active="false"])) {
10
+ @slot;
11
+ }
12
+ }
13
+
14
+ @custom-variant data-horizontal {
15
+ &:where([data-orientation="horizontal"]) {
16
+ @slot;
17
+ }
18
+ }
19
+
20
+ @custom-variant data-vertical {
21
+ &:where([data-orientation="vertical"]) {
22
+ @slot;
23
+ }
24
+ }
25
+
8
26
  @theme inline {
9
27
  --font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont, sans-serif;
10
28
  --font-heading: "Geist Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
@@ -30,6 +48,7 @@
30
48
  --color-primary: var(--primary);
31
49
  --color-popover-foreground: var(--popover-foreground);
32
50
  --color-popover: var(--popover);
51
+ --color-material: var(--material);
33
52
  --color-card-foreground: var(--card-foreground);
34
53
  --color-card: var(--card);
35
54
  --color-canvas: var(--canvas);
@@ -75,6 +94,9 @@
75
94
  --card-foreground: oklch(0.145 0 0);
76
95
  --popover: oklch(1 0 0);
77
96
  --popover-foreground: oklch(0.145 0 0);
97
+ /* Translucent fill for floating surfaces; pair with backdrop-blur-xl
98
+ backdrop-saturate-150 so it reads like a native menu material. */
99
+ --material: oklch(1 0 0 / 0.72);
78
100
 
79
101
  --primary: oklch(0.185 0 0);
80
102
  --primary-foreground: oklch(0.985 0 0);
@@ -117,6 +139,7 @@
117
139
  --card-foreground: oklch(0.93 0 0);
118
140
  --popover: oklch(0.205 0 0);
119
141
  --popover-foreground: oklch(0.93 0 0);
142
+ --material: oklch(0.22 0 0 / 0.72);
120
143
 
121
144
  --primary: oklch(0.925 0 0);
122
145
  --primary-foreground: oklch(0.17 0 0);
@@ -194,6 +217,175 @@
194
217
  .folio {
195
218
  @apply nums font-mono text-[10.5px] tracking-[0.08em] text-muted-foreground;
196
219
  }
220
+
221
+ /* Markdown body for speaker notes; .agent-prose tunes it for chat replies. */
222
+ .md {
223
+ white-space: pre-wrap;
224
+ overflow-wrap: break-word;
225
+ }
226
+ .md :is(ul, ol) {
227
+ padding-left: var(--md-indent, 1.35em);
228
+ }
229
+ .md > * + *,
230
+ .md li > * {
231
+ margin-top: var(--md-gap, 0.65em);
232
+ }
233
+ .md li > :is(ul, ol) {
234
+ margin-top: var(--md-item-gap, 0.25em);
235
+ }
236
+ .md :is(h4, h5, h6) {
237
+ font-weight: 600;
238
+ line-height: 1.35;
239
+ }
240
+ .md h4 {
241
+ font-size: 1.25em;
242
+ }
243
+ .md h5 {
244
+ font-size: 1.12em;
245
+ }
246
+ .md h6 {
247
+ font-size: 1.05em;
248
+ }
249
+ .md strong {
250
+ font-weight: 600;
251
+ }
252
+ .md ul {
253
+ list-style-type: disc;
254
+ }
255
+ .md ol {
256
+ list-style-type: decimal;
257
+ }
258
+ .md :is(ul, ol) ul {
259
+ list-style-type: circle;
260
+ }
261
+ .md :is(ul, ol) :is(ul, ol) ul {
262
+ list-style-type: square;
263
+ }
264
+ .md li {
265
+ padding-left: var(--md-marker-gap, 0.15em);
266
+ }
267
+ .md li + li {
268
+ margin-top: var(--md-item-gap, 0.25em);
269
+ }
270
+ .md li::marker {
271
+ color: var(--muted-foreground);
272
+ }
273
+ .md ol > li::marker {
274
+ font-variant-numeric: tabular-nums;
275
+ }
276
+ .md hr {
277
+ border-top: 1px solid var(--hairline);
278
+ }
279
+ .md code {
280
+ @apply rounded-[4px] bg-foreground/[0.07] font-mono;
281
+ padding: 0.1em 0.32em;
282
+ font-size: 0.88em;
283
+ }
284
+
285
+ .agent-prose {
286
+ --md-gap: 0.8em;
287
+ --md-item-gap: 0.3em;
288
+ --md-indent: 1.3em;
289
+ --md-marker-gap: 0.2em;
290
+ font-size: 13.5px;
291
+ line-height: 1.7;
292
+ letter-spacing: -0.003em;
293
+ color: color-mix(in oklch, var(--foreground) 88%, transparent);
294
+ text-wrap: pretty;
295
+ }
296
+ .agent-prose > * + * {
297
+ margin-top: var(--md-gap);
298
+ }
299
+ .agent-prose :is(h4, h5, h6, strong) {
300
+ color: var(--foreground);
301
+ }
302
+ .agent-prose :is(h4, h5, h6) {
303
+ letter-spacing: -0.012em;
304
+ }
305
+ .agent-prose h4 {
306
+ font-size: 1.18em;
307
+ }
308
+ .agent-prose h5 {
309
+ font-size: 1.07em;
310
+ }
311
+ .agent-prose h6 {
312
+ font-size: 1em;
313
+ }
314
+ .agent-prose * + :is(h4, h5, h6) {
315
+ margin-top: 1.5em;
316
+ }
317
+ .agent-prose :is(h4, h5, h6) + * {
318
+ margin-top: 0.45em;
319
+ }
320
+ .agent-prose hr {
321
+ margin-block: 1.4em;
322
+ }
323
+ .agent-prose pre {
324
+ @apply overflow-x-auto rounded-[8px] border border-hairline bg-muted/50 font-mono;
325
+ padding: 0.7em 0.9em;
326
+ font-size: 11.5px;
327
+ line-height: 1.6;
328
+ white-space: pre;
329
+ }
330
+ .agent-prose pre code {
331
+ padding: 0;
332
+ background: none;
333
+ font-size: inherit;
334
+ }
335
+ }
336
+
337
+ /* Fades a scroll container's edges only while there is more to scroll that
338
+ way. Browsers without scroll timelines keep the edges crisp. */
339
+ @property --fade-top {
340
+ syntax: "<length>";
341
+ inherits: false;
342
+ initial-value: 0px;
343
+ }
344
+ @property --fade-bottom {
345
+ syntax: "<length>";
346
+ inherits: false;
347
+ initial-value: 0px;
348
+ }
349
+
350
+ @keyframes osd-fade-top {
351
+ to {
352
+ --fade-top: var(--fade-size);
353
+ }
354
+ }
355
+ @keyframes osd-fade-bottom {
356
+ from {
357
+ --fade-bottom: var(--fade-size);
358
+ }
359
+ }
360
+
361
+ @supports (animation-timeline: scroll()) {
362
+ .scroll-fade {
363
+ --fade-size: 28px;
364
+ mask-image: linear-gradient(
365
+ to bottom,
366
+ transparent,
367
+ #000 var(--fade-top),
368
+ #000 calc(100% - var(--fade-bottom)),
369
+ transparent
370
+ );
371
+ animation:
372
+ osd-fade-top linear both,
373
+ osd-fade-bottom linear both;
374
+ animation-timeline: scroll(self), scroll(self);
375
+ animation-range:
376
+ 0 var(--fade-size),
377
+ calc(100% - var(--fade-size)) 100%;
378
+ }
379
+ }
380
+
381
+ /* Lets the desktop window's native material show through the chrome; content
382
+ cards stay opaque, so nothing should scroll beneath a chrome surface. */
383
+ html[data-translucent] {
384
+ --sidebar: transparent;
385
+ }
386
+
387
+ html[data-translucent] body {
388
+ background-color: transparent;
197
389
  }
198
390
 
199
391
  /*
@@ -332,6 +524,11 @@
332
524
  }
333
525
  }
334
526
 
527
+ [data-osd-removed] {
528
+ /* biome-ignore lint/complexity/noImportantStyles: A pending removal must hide the element over any slide-authored display, including inline styles. */
529
+ display: none !important;
530
+ }
531
+
335
532
  [data-osd-freeze-motion],
336
533
  [data-osd-freeze-motion] *,
337
534
  [data-osd-freeze-motion] *::before,
@@ -553,3 +750,226 @@
553
750
  animation: none;
554
751
  }
555
752
  }
753
+
754
+ .effort-slider {
755
+ --thumb: 16px;
756
+ --ease-snap: cubic-bezier(0.34, 1.45, 0.64, 1);
757
+ --heat: calc(var(--p) * var(--p));
758
+ }
759
+
760
+ .effort-slider-track {
761
+ position: relative;
762
+ container-type: inline-size;
763
+ height: 22px;
764
+ margin-top: 8px;
765
+ border-radius: 999px;
766
+ outline: none;
767
+ touch-action: none;
768
+ cursor: grab;
769
+ }
770
+
771
+ .effort-slider[data-dragging] .effort-slider-track {
772
+ cursor: grabbing;
773
+ }
774
+
775
+ .effort-slider-rail,
776
+ .effort-slider-fill,
777
+ .effort-slider-glow {
778
+ position: absolute;
779
+ inset-inline: 0;
780
+ top: 50%;
781
+ height: 6px;
782
+ margin-top: -3px;
783
+ border-radius: 999px;
784
+ }
785
+
786
+ .effort-slider-rail {
787
+ background: color-mix(in oklch, var(--foreground) 9%, transparent);
788
+ }
789
+
790
+ .effort-slider-fill,
791
+ .effort-slider-glow {
792
+ overflow: hidden;
793
+ background: linear-gradient(90deg, var(--agent-b), var(--agent-a));
794
+ clip-path: inset(
795
+ 0 calc(100% - var(--thumb) / 2 - var(--p) * (100% - var(--thumb))) 0 0 round 999px
796
+ );
797
+ transition:
798
+ clip-path 280ms var(--ease-snap),
799
+ opacity 200ms ease;
800
+ }
801
+
802
+ .effort-slider-fill {
803
+ opacity: calc(0.6 + var(--p) * 0.4);
804
+ }
805
+
806
+ .effort-slider-glow {
807
+ filter: blur(8px);
808
+ opacity: var(--heat);
809
+ }
810
+
811
+ .effort-slider-tick {
812
+ position: absolute;
813
+ top: 50%;
814
+ left: calc(var(--thumb) / 2 + var(--at) * (100% - var(--thumb)));
815
+ width: 3px;
816
+ height: 3px;
817
+ margin: -1.5px 0 0 -1.5px;
818
+ border-radius: 999px;
819
+ background: color-mix(in oklch, var(--foreground) 24%, transparent);
820
+ transition: background-color 200ms ease;
821
+ }
822
+
823
+ .effort-slider-tick[data-lit] {
824
+ background: oklch(1 0 0 / 0.85);
825
+ }
826
+
827
+ .effort-slider-thumb {
828
+ position: absolute;
829
+ top: 50%;
830
+ left: 0;
831
+ width: var(--thumb);
832
+ height: var(--thumb);
833
+ margin-top: calc(var(--thumb) / -2);
834
+ border-radius: 999px;
835
+ background: oklch(1 0 0);
836
+ translate: calc(var(--p) * (100cqw - var(--thumb))) 0;
837
+ box-shadow:
838
+ 0 0 0 0.5px oklch(0 0 0 / 0.14),
839
+ 0 1px 3px oklch(0 0 0 / 0.22),
840
+ 0 0 0 calc(var(--p) * 3px) color-mix(in oklch, var(--agent-a) 28%, transparent),
841
+ 0 0 calc(var(--heat) * 18px)
842
+ color-mix(in oklch, var(--agent-a) calc(var(--heat) * 85%), transparent);
843
+ transition:
844
+ translate 280ms var(--ease-snap),
845
+ scale 160ms var(--ease-swift),
846
+ box-shadow 280ms ease,
847
+ opacity 200ms ease;
848
+ }
849
+
850
+ .effort-slider[data-dragging] .effort-slider-thumb,
851
+ .effort-slider[data-dragging] .effort-slider-fill,
852
+ .effort-slider[data-dragging] .effort-slider-glow {
853
+ transition-duration: 0ms, 160ms, 0ms, 200ms;
854
+ }
855
+
856
+ @media (hover: hover) and (pointer: fine) {
857
+ .effort-slider-track:hover .effort-slider-thumb {
858
+ scale: 1.08;
859
+ }
860
+ }
861
+
862
+ .effort-slider[data-dragging] .effort-slider-thumb {
863
+ scale: 1.18;
864
+ }
865
+
866
+ .effort-slider-track:focus-visible .effort-slider-thumb {
867
+ outline: 2px solid color-mix(in oklch, var(--agent-a) 55%, transparent);
868
+ outline-offset: 2px;
869
+ }
870
+
871
+ .effort-slider[data-auto] .effort-slider-fill,
872
+ .effort-slider[data-auto] .effort-slider-glow {
873
+ opacity: 0;
874
+ }
875
+
876
+ .effort-slider[data-auto] .effort-slider-thumb {
877
+ scale: 0.85;
878
+ background: color-mix(in oklch, oklch(1 0 0), var(--muted-foreground) 18%);
879
+ box-shadow:
880
+ 0 0 0 0.5px oklch(0 0 0 / 0.14),
881
+ 0 1px 3px oklch(0 0 0 / 0.22);
882
+ }
883
+
884
+ .effort-slider-smarter {
885
+ color: color-mix(in oklch, var(--muted-foreground), var(--agent-a) calc(var(--heat) * 100%));
886
+ transition: color 200ms ease;
887
+ }
888
+
889
+ .effort-slider[data-auto] .effort-slider-smarter {
890
+ color: var(--muted-foreground);
891
+ }
892
+
893
+ .effort-slider[data-peak] .effort-slider-level,
894
+ .effort-peak-text {
895
+ background: linear-gradient(90deg, var(--agent-a), var(--agent-b));
896
+ background-clip: text;
897
+ color: transparent;
898
+ }
899
+
900
+ .effort-slider[data-peak] .effort-slider-fill::after {
901
+ content: "";
902
+ position: absolute;
903
+ inset-block: 0;
904
+ left: 0;
905
+ width: 35%;
906
+ background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.6), transparent);
907
+ animation: effort-shimmer 1.8s linear infinite;
908
+ }
909
+
910
+ @keyframes effort-shimmer {
911
+ from {
912
+ transform: translateX(-100%);
913
+ }
914
+ to {
915
+ transform: translateX(300%);
916
+ }
917
+ }
918
+
919
+ .effort-slider-burst {
920
+ position: absolute;
921
+ inset: 0;
922
+ border-radius: 999px;
923
+ box-shadow: 0 0 0 2px var(--agent-a);
924
+ animation: effort-burst 650ms var(--ease-swift) both;
925
+ }
926
+
927
+ @keyframes effort-burst {
928
+ from {
929
+ opacity: 0.9;
930
+ transform: scale(1);
931
+ }
932
+ to {
933
+ opacity: 0;
934
+ transform: scale(2.6);
935
+ }
936
+ }
937
+
938
+ .effort-slider-label[data-direction="up"] {
939
+ animation: effort-label-up 240ms var(--ease-swift) both;
940
+ }
941
+
942
+ .effort-slider-label[data-direction="down"] {
943
+ animation: effort-label-down 240ms var(--ease-swift) both;
944
+ }
945
+
946
+ @keyframes effort-label-up {
947
+ from {
948
+ opacity: 0;
949
+ transform: translateY(6px);
950
+ filter: blur(2px);
951
+ }
952
+ }
953
+
954
+ @keyframes effort-label-down {
955
+ from {
956
+ opacity: 0;
957
+ transform: translateY(-6px);
958
+ filter: blur(2px);
959
+ }
960
+ }
961
+
962
+ @media (prefers-reduced-motion: reduce) {
963
+ .effort-slider {
964
+ --ease-snap: ease-out;
965
+ }
966
+
967
+ .effort-slider-label[data-direction] {
968
+ animation: agent-fade-in 160ms ease-out both;
969
+ }
970
+
971
+ .effort-slider[data-peak] .effort-slider-fill::after,
972
+ .effort-slider-burst {
973
+ display: none;
974
+ }
975
+ }
package/src/locale/en.ts CHANGED
@@ -99,12 +99,6 @@ export const en: Locale = {
99
99
  resizeSidePanel: 'Resize side panel',
100
100
  home: 'Home',
101
101
  backToHome: 'Back to home',
102
- agentConnected: 'Agent connected',
103
- agentConnectedTooltip:
104
- 'The current slide and inspector selection are synced to your agent in real time.',
105
- agentDisconnected: 'Agent disconnected',
106
- agentDisconnectedTooltip:
107
- 'Lost connection to the dev server, so your agent can no longer see the current slide or inspector selection. Restart the dev server to restore the connection.',
108
102
  download: 'Download',
109
103
  copyLink: 'Copy link',
110
104
  moreActions: 'More actions',
@@ -204,7 +198,6 @@ export const en: Locale = {
204
198
  previewMode: 'Preview',
205
199
  closeFormatPanel: 'Close Format panel',
206
200
  editText: 'Edit on slide',
207
- emptySelectionTitle: 'Select an object',
208
201
  emptySelectionHint: 'Click an object to format it. Double-click text to edit.',
209
202
  textSelectionHint: 'Formatting applies to the selected text.',
210
203
  elementText: 'Text',
@@ -214,6 +207,24 @@ export const en: Locale = {
214
207
  rotateHandle: 'Rotate element',
215
208
  resizeHandle: 'Resize {handle}',
216
209
  arrangeSection: 'Arrange',
210
+ pageLabel: 'Page {page} of {total}',
211
+ pageBackground: 'Background',
212
+ pageBackgroundTheme: 'From theme',
213
+ pageBackgroundShared: 'Shared across pages',
214
+ pageBackgroundComplex: 'Gradient or image',
215
+ pageTransition: 'Transition',
216
+ pageTransitionInherited: 'Deck default',
217
+ pageSteps: 'Steps',
218
+ pageStepsCount: { one: '1 step', other: '{count} steps' },
219
+ pageNone: 'None',
220
+ transitionKinds: {
221
+ fade: 'Fade',
222
+ slide: 'Slide',
223
+ zoom: 'Zoom',
224
+ wipe: 'Wipe',
225
+ morph: 'Morph',
226
+ custom: 'Custom',
227
+ },
217
228
  selectionCount: '{count} elements selected',
218
229
  positionLabel: 'Position',
219
230
  positionX: 'Horizontal position',
@@ -459,6 +470,7 @@ export const en: Locale = {
459
470
  title: 'Exporting PDF',
460
471
  processing: 'Processing page {current} of {total}',
461
472
  printing: 'Opening print dialog…',
473
+ saving: 'Saving PDF…',
462
474
  done: 'Done',
463
475
  },
464
476
 
@@ -545,9 +557,6 @@ export const en: Locale = {
545
557
 
546
558
  agent: {
547
559
  title: 'Agent',
548
- beta: 'Beta',
549
- betaTitle: 'Early preview',
550
- betaHint: 'Replies, edits and tool calls can occasionally fail or do something unexpected.',
551
560
  open: 'Agent',
552
561
  openTitle: 'Open the agent panel',
553
562
  close: 'Close agent panel',
@@ -589,11 +598,25 @@ export const en: Locale = {
589
598
  deny: 'Deny',
590
599
  allowed: 'Allowed',
591
600
  denied: 'Denied',
592
- autoApprove: 'Auto-approve',
593
- autoApproveHint: 'Run commands without asking. Edits inside the workspace are always allowed.',
594
- resultDone: 'Done',
595
- resultStopped: 'Stopped',
596
- resultSeconds: '{seconds}s',
601
+ permissionMode: 'Permissions',
602
+ permissionModes: {
603
+ supervised: 'Supervised',
604
+ acceptEdits: 'Auto-accept edits',
605
+ auto: 'Auto',
606
+ fullAccess: 'Full access',
607
+ },
608
+ permissionHints: {
609
+ supervised: 'Asks before commands and file changes.',
610
+ acceptEdits: 'Edits files freely; asks before other actions.',
611
+ auto: 'Approves routine actions; asks about the rest.',
612
+ fullAccess: 'Runs commands and edits without asking.',
613
+ },
614
+ permissionHintsCodex: {
615
+ supervised: "Codex can't ask mid-turn, so it only reads and suggests changes.",
616
+ acceptEdits: 'Edits and runs commands inside the workspace sandbox.',
617
+ auto: 'Edits and runs commands inside the workspace sandbox.',
618
+ fullAccess: 'Runs commands and edits with no sandbox.',
619
+ },
597
620
  errorEyebrow: 'Error',
598
621
  statusLoading: 'Checking agents',
599
622
  disabled: 'The agent panel is disabled in open-slide.config.ts.',
@@ -635,6 +658,8 @@ export const en: Locale = {
635
658
  modelDefault: 'Default',
636
659
  reasoning: 'Reasoning',
637
660
  effortAuto: 'Auto',
661
+ effortFaster: 'Faster',
662
+ effortSmarter: 'Smarter',
638
663
  efforts: {
639
664
  minimal: 'Minimal',
640
665
  low: 'Low',
package/src/locale/es.ts CHANGED
@@ -101,12 +101,6 @@ export const es: Locale = {
101
101
  resizeSidePanel: 'Redimensionar panel lateral',
102
102
  home: 'Inicio',
103
103
  backToHome: 'Volver al inicio',
104
- agentConnected: 'Agente conectado',
105
- agentConnectedTooltip:
106
- 'La diapositiva actual y la selección del inspector se sincronizan con tu agente en tiempo real.',
107
- agentDisconnected: 'Agente desconectado',
108
- agentDisconnectedTooltip:
109
- 'Se perdió la conexión con el servidor de desarrollo, así que tu agente ya no ve la diapositiva actual ni la selección del inspector. Reinicia el servidor de desarrollo para restablecerla.',
110
104
  download: 'Descargar',
111
105
  copyLink: 'Copiar enlace',
112
106
  moreActions: 'Más acciones',
@@ -206,7 +200,6 @@ export const es: Locale = {
206
200
  previewMode: 'Vista previa',
207
201
  closeFormatPanel: 'Cerrar panel de formato',
208
202
  editText: 'Editar en la diapositiva',
209
- emptySelectionTitle: 'Selecciona un objeto',
210
203
  emptySelectionHint:
211
204
  'Haz clic en un objeto para darle formato. Doble clic en un texto para editarlo.',
212
205
  textSelectionHint: 'El formato se aplica al texto seleccionado.',
@@ -217,6 +210,24 @@ export const es: Locale = {
217
210
  rotateHandle: 'Rotar elemento',
218
211
  resizeHandle: 'Redimensionar {handle}',
219
212
  arrangeSection: 'Organizar',
213
+ pageLabel: 'Página {page} de {total}',
214
+ pageBackground: 'Fondo',
215
+ pageBackgroundTheme: 'Del tema',
216
+ pageBackgroundShared: 'Compartido entre páginas',
217
+ pageBackgroundComplex: 'Degradado o imagen',
218
+ pageTransition: 'Transición',
219
+ pageTransitionInherited: 'Predeterminada de la presentación',
220
+ pageSteps: 'Pasos',
221
+ pageStepsCount: { one: '1 paso', other: '{count} pasos' },
222
+ pageNone: 'Ninguna',
223
+ transitionKinds: {
224
+ fade: 'Fundido',
225
+ slide: 'Desplazar',
226
+ zoom: 'Zoom',
227
+ wipe: 'Barrido',
228
+ morph: 'Morph',
229
+ custom: 'Personalizada',
230
+ },
220
231
  selectionCount: '{count} elementos seleccionados',
221
232
  positionLabel: 'Posición',
222
233
  positionX: 'Posición horizontal',
@@ -465,6 +476,7 @@ export const es: Locale = {
465
476
  title: 'Exportando PDF',
466
477
  processing: 'Procesando página {current} de {total}',
467
478
  printing: 'Abriendo diálogo de impresión…',
479
+ saving: 'Guardando PDF…',
468
480
  done: 'Hecho',
469
481
  },
470
482
 
@@ -551,10 +563,6 @@ export const es: Locale = {
551
563
  },
552
564
  agent: {
553
565
  title: 'Agente',
554
- beta: 'Beta',
555
- betaTitle: 'Versión preliminar',
556
- betaHint:
557
- 'Las respuestas, ediciones y acciones pueden fallar o hacer algo inesperado de vez en cuando.',
558
566
  open: 'Agente',
559
567
  openTitle: 'Abrir el panel del agente',
560
568
  close: 'Cerrar el panel del agente',
@@ -597,12 +605,25 @@ export const es: Locale = {
597
605
  deny: 'Denegar',
598
606
  allowed: 'Permitido',
599
607
  denied: 'Denegado',
600
- autoApprove: 'Aprobar automáticamente',
601
- autoApproveHint:
602
- 'Ejecuta comandos sin preguntar. Las ediciones dentro del workspace siempre se permiten.',
603
- resultDone: 'Listo',
604
- resultStopped: 'Detenido',
605
- resultSeconds: '{seconds}s',
608
+ permissionMode: 'Permisos',
609
+ permissionModes: {
610
+ supervised: 'Supervisado',
611
+ acceptEdits: 'Aceptar ediciones',
612
+ auto: 'Automático',
613
+ fullAccess: 'Acceso total',
614
+ },
615
+ permissionHints: {
616
+ supervised: 'Pregunta antes de ejecutar comandos y cambiar archivos.',
617
+ acceptEdits: 'Aprueba las ediciones automáticamente; otras acciones pueden preguntar.',
618
+ auto: 'Una revisión automática aprueba las acciones habituales y pregunta por el resto.',
619
+ fullAccess: 'Ejecuta comandos y ediciones sin preguntar.',
620
+ },
621
+ permissionHintsCodex: {
622
+ supervised: 'Codex no puede preguntar durante un turno, así que solo lee y sugiere cambios.',
623
+ acceptEdits: 'Edita y ejecuta comandos dentro del sandbox del espacio de trabajo.',
624
+ auto: 'Edita y ejecuta comandos dentro del sandbox del espacio de trabajo.',
625
+ fullAccess: 'Ejecuta comandos y ediciones sin sandbox.',
626
+ },
606
627
  errorEyebrow: 'Error',
607
628
  statusLoading: 'Comprobando agentes',
608
629
  disabled: 'El panel del agente está desactivado en open-slide.config.ts.',
@@ -644,6 +665,8 @@ export const es: Locale = {
644
665
  modelDefault: 'Predeterminado',
645
666
  reasoning: 'Razonamiento',
646
667
  effortAuto: 'Auto',
668
+ effortFaster: 'Más rápido',
669
+ effortSmarter: 'Más listo',
647
670
  efforts: {
648
671
  minimal: 'Mínimo',
649
672
  low: 'Bajo',