@open-slide/core 1.13.4 → 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 CHANGED
@@ -1,10 +1,10 @@
1
1
  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
- import * as react_jsx_runtime4 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
5
5
  import * as react_jsx_runtime5 from "react/jsx-runtime";
6
- import * as react_jsx_runtime2 from "react/jsx-runtime";
7
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 = {
@@ -21,7 +21,7 @@ declare function ImagePlaceholder({
21
21
  style,
22
22
  className,
23
23
  ...rest
24
- }: ImagePlaceholderProps): react_jsx_runtime4.JSX.Element;
24
+ }: ImagePlaceholderProps): react_jsx_runtime0.JSX.Element;
25
25
 
26
26
  //#endregion
27
27
  //#region src/app/components/shared-element.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): react_jsx_runtime2.JSX.Element;
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): react_jsx_runtime3.JSX.Element;
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.4",
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.2",
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.0",
85
- "shadcn": "^4.11.0",
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",
@@ -145,6 +145,11 @@ export function SlidePreloadLayer({ pages, index, design, includeCurrent = false
145
145
  inset: 0,
146
146
  overflow: 'hidden',
147
147
  visibility: 'hidden',
148
+ // Descendants can override inherited visibility back to visible —
149
+ // <Step> does exactly that on revealed steps. Group opacity can't be
150
+ // overridden from inside, and an opacity<1 ancestor also becomes the
151
+ // containing block for position:fixed content, so nothing escapes.
152
+ opacity: 0,
148
153
  pointerEvents: 'none',
149
154
  ...(design ? designToCssVars(design) : {}),
150
155
  }}
@@ -244,7 +244,10 @@ export function Slide() {
244
244
  );
245
245
 
246
246
  useEffect(() => {
247
- if (playMode) return;
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={() => {}}