@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.
- package/dist/{build-DOgOEZZA.js → build-DTmKJyjX.js} +1 -1
- package/dist/cli/bin.js +4 -4
- package/dist/{config-hT1o6Jct.js → config-Ces2X_3T.js} +159 -17
- package/dist/{config-GMR1QUlM.d.ts → config-CpmGqpQi.d.ts} +1 -1
- package/dist/{dev-_YkLNJRt.js → dev-ldYag-pR.js} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/locale/index.d.ts +5 -2
- package/dist/locale/index.js +2 -2
- package/dist/{preview-pABcGTQh.js → preview-GYMbZvvk.js} +1 -1
- package/dist/{types-BcbaKTNY.d.ts → types-CvAqFqsY.d.ts} +10 -5
- package/dist/{update-moCkSyvg.js → update-CPBitJQq.js} +24 -14
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/{zh-tw-DlZoAc2-.js → zh-tw-B7_Oqv2q.js} +550 -17
- package/package.json +3 -3
- package/skills/apply-comments/SKILL.md +10 -6
- package/skills/create-slide/SKILL.md +2 -0
- package/skills/current-slide/SKILL.md +1 -0
- package/skills/slide-authoring/SKILL.md +31 -1
- package/src/app/app.tsx +2 -0
- package/src/app/assets/open-slide.svg +39 -0
- package/src/app/components/command/command-menu.tsx +1 -3
- package/src/app/components/history-provider.tsx +25 -3
- package/src/app/components/icon-switcher-indicator.tsx +1 -1
- package/src/app/components/inspector/comment-layer.tsx +992 -0
- package/src/app/components/inspector/inspect-overlay.tsx +2 -39
- package/src/app/components/inspector/inspector-panel.tsx +9 -92
- package/src/app/components/inspector/inspector-provider.tsx +299 -67
- package/src/app/components/panel/editor-sidebar.tsx +1 -1
- package/src/app/components/panel/save-card.tsx +6 -2
- package/src/app/components/preview-step-host.tsx +16 -0
- package/src/app/components/sidebar/sidebar.tsx +2 -2
- package/src/app/components/slide-transition-layer.tsx +1 -1
- package/src/app/components/style-panel/style-panel.tsx +3 -2
- package/src/app/components/thumbnail-rail.tsx +76 -1
- package/src/app/favicon.ico +0 -0
- package/src/app/favicon.svg +39 -0
- package/src/app/index.html +2 -1
- package/src/app/lib/inspector/freeze-motion.ts +61 -0
- package/src/app/lib/inspector/use-comments.ts +32 -3
- package/src/app/lib/keys.ts +3 -0
- package/src/app/lib/locale-store.ts +6 -1
- package/src/app/lib/print-ready.ts +9 -6
- package/src/app/routes/presenter.tsx +1 -16
- package/src/app/routes/preview.tsx +169 -0
- package/src/app/routes/slide.tsx +119 -70
- package/src/app/styles.css +64 -80
- package/src/locale/en.ts +7 -4
- package/src/locale/es.ts +550 -0
- package/src/locale/index.ts +1 -0
- package/src/locale/ja.ts +7 -5
- package/src/locale/types.ts +10 -5
- package/src/locale/zh-cn.ts +7 -4
- package/src/locale/zh-tw.ts +7 -4
- package/src/app/assets/open-slide.png +0 -0
- package/src/app/components/inspector/comment-widget.tsx +0 -119
package/src/app/styles.css
CHANGED
|
@@ -222,109 +222,93 @@
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
/*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
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
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
-
|
|
236
|
-
|
|
237
|
-
|
|
239
|
+
@keyframes island-arrive {
|
|
240
|
+
from {
|
|
241
|
+
opacity: 0;
|
|
242
|
+
filter: blur(6px);
|
|
243
|
+
transform: scale(0.94);
|
|
244
|
+
}
|
|
238
245
|
}
|
|
239
246
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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
|
-
.
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
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:
|
|
265
|
+
animation: island-leave 320ms cubic-bezier(0.32, 0.72, 0, 1) both;
|
|
282
266
|
}
|
|
283
267
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
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
|
|
302
|
-
|
|
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:
|
|
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
|
-
.
|
|
318
|
-
.
|
|
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
|
-
|
|
290
|
+
commentMode: 'Comment',
|
|
291
291
|
commentPlaceholder: 'Describe a change for the agent…',
|
|
292
|
-
|
|
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
|
-
|
|
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',
|