@open-slide/core 1.13.5 → 1.13.6
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/index.d.ts +5 -5
- package/package.json +4 -4
- package/src/app/routes/slide.tsx +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { Locale, Plural } from "./types-DucrShh9.js";
|
|
|
2
2
|
import { OpenSlideConfig } from "./config-CvzwK0tq.js";
|
|
3
3
|
import { CSSProperties, ComponentType, HTMLAttributes, PropsWithChildren, ReactNode } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
-
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
6
|
-
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
7
5
|
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
6
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
7
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/app/components/image-placeholder.d.ts
|
|
10
10
|
type ImagePlaceholderProps = {
|
|
@@ -36,7 +36,7 @@ declare function unstable_SharedElement({
|
|
|
36
36
|
children,
|
|
37
37
|
className,
|
|
38
38
|
style
|
|
39
|
-
}: unstable_SharedElementProps):
|
|
39
|
+
}: unstable_SharedElementProps): react_jsx_runtime5.JSX.Element;
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/app/lib/design.d.ts
|
|
@@ -117,7 +117,7 @@ declare const CANVAS_HEIGHT = 1080;
|
|
|
117
117
|
type StepsProps = PropsWithChildren;
|
|
118
118
|
declare function Steps({
|
|
119
119
|
children
|
|
120
|
-
}: StepsProps):
|
|
120
|
+
}: StepsProps): react_jsx_runtime3.JSX.Element;
|
|
121
121
|
type StepProps = PropsWithChildren<{
|
|
122
122
|
duration?: number;
|
|
123
123
|
}>;
|
|
@@ -128,7 +128,7 @@ declare function Step({
|
|
|
128
128
|
children,
|
|
129
129
|
duration,
|
|
130
130
|
_revealed
|
|
131
|
-
}: InternalStepProps):
|
|
131
|
+
}: InternalStepProps): react_jsx_runtime4.JSX.Element;
|
|
132
132
|
|
|
133
133
|
//#endregion
|
|
134
134
|
export { CANVAS_HEIGHT, CANVAS_WIDTH, DesignFonts, DesignPalette, DesignSystem, DesignTypeScale, ImagePlaceholder, ImagePlaceholderProps, Locale, OpenSlideConfig, Page, Plural, SharedElementTransition, SlideMeta, SlideModule, SlideTransition, Step, StepProps, Steps, StepsProps, TransitionPhase, cssVarsToString, defaultDesign, designToCssVars, unstable_SharedElement, unstable_SharedElementProps, useSlidePageNumber };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-slide/core",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.6",
|
|
4
4
|
"description": "Runtime and CLI for open-slide — write slides in slides/, we handle the rest.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"commander": "^15.0.0",
|
|
74
74
|
"emoji-picker-react": "^4.19.1",
|
|
75
75
|
"fast-glob": "^3.3.2",
|
|
76
|
-
"fflate": "^0.8.
|
|
76
|
+
"fflate": "^0.8.3",
|
|
77
77
|
"html-to-image": "^1.11.13",
|
|
78
78
|
"lucide-react": "^1.8.0",
|
|
79
79
|
"next-themes": "^0.4.6",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"react": "^18.3.1",
|
|
82
82
|
"react-dom": "^18.3.1",
|
|
83
83
|
"react-image-crop": "^11.0.10",
|
|
84
|
-
"react-router-dom": "^7.18.
|
|
85
|
-
"shadcn": "^4.
|
|
84
|
+
"react-router-dom": "^7.18.1",
|
|
85
|
+
"shadcn": "^4.12.0",
|
|
86
86
|
"sonner": "^2.0.7",
|
|
87
87
|
"tailwind-merge": "^3.5.0",
|
|
88
88
|
"tailwindcss": "^4.2.2",
|
package/src/app/routes/slide.tsx
CHANGED
|
@@ -244,7 +244,10 @@ export function Slide() {
|
|
|
244
244
|
);
|
|
245
245
|
|
|
246
246
|
useEffect(() => {
|
|
247
|
-
|
|
247
|
+
// When showSlideUi is false the read-only <Player> is rendered and owns
|
|
248
|
+
// keyboard navigation (including step-aware advance/retreat). Attaching this
|
|
249
|
+
// page-nav handler too would race it and skip <Steps> reveals, so bail out.
|
|
250
|
+
if (playMode || !showSlideUi) return;
|
|
248
251
|
const onKey = (e: KeyboardEvent) => {
|
|
249
252
|
if (e.target instanceof HTMLElement && e.target.matches('input, textarea')) return;
|
|
250
253
|
// Letter shortcuts only fire bare so browser combos (Cmd/Ctrl-P, ⌘F…) stay intact.
|
|
@@ -386,6 +389,7 @@ export function Slide() {
|
|
|
386
389
|
<Player
|
|
387
390
|
pages={pages}
|
|
388
391
|
design={slide.design}
|
|
392
|
+
transition={slide.transition}
|
|
389
393
|
index={index}
|
|
390
394
|
onIndexChange={goTo}
|
|
391
395
|
onExit={() => {}}
|