@open-slide/core 2.0.1 → 2.2.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 (57) hide show
  1. package/dist/{build-DOgOEZZA.js → build-DTmKJyjX.js} +1 -1
  2. package/dist/cli/bin.js +4 -4
  3. package/dist/{config-hT1o6Jct.js → config-Ces2X_3T.js} +159 -17
  4. package/dist/{config-GMR1QUlM.d.ts → config-CpmGqpQi.d.ts} +1 -1
  5. package/dist/{dev-_YkLNJRt.js → dev-ldYag-pR.js} +1 -1
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +4 -3
  8. package/dist/locale/index.d.ts +5 -2
  9. package/dist/locale/index.js +2 -2
  10. package/dist/{preview-pABcGTQh.js → preview-GYMbZvvk.js} +1 -1
  11. package/dist/{types-BcbaKTNY.d.ts → types-CvAqFqsY.d.ts} +10 -5
  12. package/dist/{update-moCkSyvg.js → update-CPBitJQq.js} +24 -14
  13. package/dist/vite/index.d.ts +1 -1
  14. package/dist/vite/index.js +1 -1
  15. package/dist/{zh-tw-DlZoAc2-.js → zh-tw-B7_Oqv2q.js} +550 -17
  16. package/package.json +3 -3
  17. package/skills/apply-comments/SKILL.md +10 -6
  18. package/skills/create-slide/SKILL.md +2 -0
  19. package/skills/current-slide/SKILL.md +1 -0
  20. package/skills/slide-authoring/SKILL.md +31 -1
  21. package/src/app/app.tsx +2 -0
  22. package/src/app/assets/open-slide.svg +39 -0
  23. package/src/app/components/command/command-menu.tsx +1 -3
  24. package/src/app/components/history-provider.tsx +25 -3
  25. package/src/app/components/icon-switcher-indicator.tsx +1 -1
  26. package/src/app/components/inspector/comment-layer.tsx +992 -0
  27. package/src/app/components/inspector/inspect-overlay.tsx +2 -39
  28. package/src/app/components/inspector/inspector-panel.tsx +9 -92
  29. package/src/app/components/inspector/inspector-provider.tsx +299 -67
  30. package/src/app/components/panel/editor-sidebar.tsx +1 -1
  31. package/src/app/components/panel/save-card.tsx +6 -2
  32. package/src/app/components/preview-step-host.tsx +16 -0
  33. package/src/app/components/sidebar/sidebar.tsx +2 -2
  34. package/src/app/components/slide-transition-layer.tsx +1 -1
  35. package/src/app/components/style-panel/style-panel.tsx +3 -2
  36. package/src/app/components/thumbnail-rail.tsx +76 -1
  37. package/src/app/favicon.ico +0 -0
  38. package/src/app/favicon.svg +39 -0
  39. package/src/app/index.html +2 -1
  40. package/src/app/lib/inspector/freeze-motion.ts +61 -0
  41. package/src/app/lib/inspector/use-comments.ts +32 -3
  42. package/src/app/lib/keys.ts +3 -0
  43. package/src/app/lib/locale-store.ts +6 -1
  44. package/src/app/lib/print-ready.ts +9 -6
  45. package/src/app/routes/presenter.tsx +1 -16
  46. package/src/app/routes/preview.tsx +169 -0
  47. package/src/app/routes/slide.tsx +119 -70
  48. package/src/app/styles.css +64 -80
  49. package/src/locale/en.ts +7 -4
  50. package/src/locale/es.ts +550 -0
  51. package/src/locale/index.ts +1 -0
  52. package/src/locale/ja.ts +7 -5
  53. package/src/locale/types.ts +10 -5
  54. package/src/locale/zh-cn.ts +7 -4
  55. package/src/locale/zh-tw.ts +7 -4
  56. package/src/app/assets/open-slide.png +0 -0
  57. package/src/app/components/inspector/comment-widget.tsx +0 -119
@@ -222,109 +222,93 @@
222
222
  }
223
223
 
224
224
  /*
225
- * Comment input cue — kept from the original design but retoned to match
226
- * the new palette (warm vermillion + amber instead of the AI-classic
227
- * blue/violet halo). Plays once on first open, then settles.
225
+ * Indeterminate "line loader" — a hairline track with a short bar that
226
+ * glides back and forth. Used for full-screen loading states in place of
227
+ * a spinner; quieter, more typographic, easier on the eye.
228
228
  */
229
- @property --comment-cue-angle {
230
- syntax: "<angle>";
231
- initial-value: 0deg;
232
- inherits: false;
229
+ /* Comment-mode hint pill: the shell materializes once, then every text
230
+ swap blurs the old copy out while the new one blurs in. */
231
+ @keyframes island-enter {
232
+ from {
233
+ opacity: 0;
234
+ filter: blur(6px);
235
+ transform: translateY(6px) scale(0.9);
236
+ }
233
237
  }
234
238
 
235
- .comment-cue {
236
- position: relative;
237
- isolation: isolate;
239
+ @keyframes island-arrive {
240
+ from {
241
+ opacity: 0;
242
+ filter: blur(6px);
243
+ transform: scale(0.94);
244
+ }
238
245
  }
239
246
 
240
- .comment-cue::before {
241
- content: "";
242
- position: absolute;
243
- inset: -1px;
244
- border-radius: calc(var(--radius-md) + 1px);
245
- padding: 1.25px;
246
- background: conic-gradient(
247
- from var(--comment-cue-angle),
248
- transparent 0deg,
249
- transparent 250deg,
250
- oklch(0.78 0.14 60 / 0.55) 295deg,
251
- oklch(0.62 0.2 28 / 0.85) 325deg,
252
- oklch(0.78 0.14 60 / 0.55) 350deg,
253
- transparent 360deg
254
- );
255
- -webkit-mask:
256
- linear-gradient(#000 0 0) content-box,
257
- linear-gradient(#000 0 0);
258
- -webkit-mask-composite: xor;
259
- mask:
260
- linear-gradient(#000 0 0) content-box,
261
- linear-gradient(#000 0 0);
262
- mask-composite: exclude;
263
- pointer-events: none;
264
- opacity: 0;
265
- z-index: 1;
266
- animation: comment-cue-trace 1500ms cubic-bezier(0.22, 0.61, 0.36, 1) 220ms 1 both;
247
+ @keyframes island-leave {
248
+ to {
249
+ opacity: 0;
250
+ filter: blur(6px);
251
+ transform: scale(0.94);
252
+ }
267
253
  }
268
254
 
269
- .comment-cue::after {
270
- content: "";
271
- position: absolute;
272
- inset: -10px;
273
- border-radius: calc(var(--radius-md) + 10px);
274
- background:
275
- radial-gradient(80% 60% at 30% 50%, oklch(0.62 0.2 28 / 0.18), transparent 70%),
276
- radial-gradient(70% 60% at 75% 60%, oklch(0.78 0.14 60 / 0.16), transparent 70%);
277
- filter: blur(14px);
278
- opacity: 0;
279
- z-index: -1;
255
+ .island-enter {
256
+ animation: island-enter 420ms cubic-bezier(0.32, 0.72, 0, 1) both;
257
+ }
258
+
259
+ .island-arrive {
260
+ animation: island-arrive 320ms cubic-bezier(0.32, 0.72, 0, 1) both;
261
+ }
262
+
263
+ .island-leave {
280
264
  pointer-events: none;
281
- animation: comment-cue-halo 1700ms ease-out 180ms 1 both;
265
+ animation: island-leave 320ms cubic-bezier(0.32, 0.72, 0, 1) both;
282
266
  }
283
267
 
284
- @keyframes comment-cue-trace {
285
- 0% {
286
- --comment-cue-angle: 0deg;
287
- opacity: 0;
288
- }
289
- 18% {
290
- opacity: 1;
291
- }
292
- 82% {
293
- opacity: 1;
294
- }
295
- 100% {
296
- --comment-cue-angle: 360deg;
268
+ /* Counter digits roll in the direction of the change (--roll: 1 up, -1 down). */
269
+ @keyframes roll-arrive {
270
+ from {
297
271
  opacity: 0;
272
+ transform: translateY(calc(var(--roll, 1) * 100%));
298
273
  }
299
274
  }
300
275
 
301
- @keyframes comment-cue-halo {
302
- 0% {
303
- opacity: 0;
304
- transform: scale(0.97);
305
- }
306
- 40% {
307
- opacity: 1;
308
- transform: scale(1);
309
- }
310
- 100% {
276
+ @keyframes roll-leave {
277
+ to {
311
278
  opacity: 0;
312
- transform: scale(1.015);
279
+ transform: translateY(calc(var(--roll, 1) * -100%));
313
280
  }
314
281
  }
315
282
 
283
+ .roll-arrive {
284
+ animation: roll-arrive 320ms cubic-bezier(0.32, 0.72, 0, 1) both;
285
+ }
286
+
287
+ .roll-leave {
288
+ pointer-events: none;
289
+ animation: roll-leave 320ms cubic-bezier(0.32, 0.72, 0, 1) both;
290
+ }
291
+
316
292
  @media (prefers-reduced-motion: reduce) {
317
- .comment-cue::before,
318
- .comment-cue::after {
293
+ .island-enter,
294
+ .island-arrive {
295
+ animation: island-arrive 160ms ease-out both;
296
+ filter: none;
297
+ transform: none;
298
+ }
299
+
300
+ .island-leave,
301
+ .roll-leave {
319
302
  animation: none;
303
+ opacity: 0;
304
+ }
305
+
306
+ .roll-arrive {
307
+ animation: island-arrive 160ms ease-out both;
308
+ transform: none;
320
309
  }
321
310
  }
322
311
 
323
- /*
324
- * Indeterminate "line loader" — a hairline track with a short bar that
325
- * glides back and forth. Used for full-screen loading states in place of
326
- * a spinner; quieter, more typographic, easier on the eye.
327
- */
328
312
  @keyframes osd-line-loader {
329
313
  0% {
330
314
  transform: translateX(0%);
package/src/locale/en.ts CHANGED
@@ -287,10 +287,9 @@ export const en: Locale = {
287
287
  cropFitCover: 'Fill',
288
288
  cropFitContain: 'Fit',
289
289
  cropApply: 'Apply',
290
- leaveComment: 'Comment',
290
+ commentMode: 'Comment',
291
291
  commentPlaceholder: 'Describe a change for the agent…',
292
- commentShortcutHint: '⌘/ to focus · ⌘↵ to add',
293
- addComment: 'Add comment',
292
+ commentPost: 'Post',
294
293
  unsavedChanges: {
295
294
  one: '{count} unsaved change',
296
295
  other: '{count} unsaved changes',
@@ -300,10 +299,14 @@ export const en: Locale = {
300
299
  other: '{count} comments',
301
300
  },
302
301
  commentLineLabel: 'line {n}',
303
- commentsEmpty: 'No comments yet. Select an object and open Comment in the Format panel.',
302
+ commentRegionLabel: 'region',
303
+ commentEmptyHint: 'Click an element or drag across a region to leave a comment.',
304
304
  commentsApplyHintPrefix: 'Run ',
305
305
  commentsApplyHintSuffix: ' in your agent to apply these.',
306
306
  commentDeleteAria: 'Delete',
307
+ commentUpdateFailed: "Couldn't update comment:",
308
+ commentAddFailed: "Couldn't add comment:",
309
+ commentRegionNoTarget: "Couldn't find an element to attach this region to.",
307
310
  saveFailed: "Couldn't save:",
308
311
  decreaseFontSize: 'Decrease font size',
309
312
  increaseFontSize: 'Increase font size',