@open-slide/core 1.16.0 → 1.17.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.
@@ -1,5 +1,5 @@
1
1
  import "./design-cpzS8aud.js";
2
- import { createViteConfig } from "./config-CCHio3pk.js";
2
+ import { createViteConfig } from "./config-CSgUUnlv.js";
3
3
  import path from "node:path";
4
4
  import { build as build$1, mergeConfig } from "vite";
5
5
 
package/dist/cli/bin.js CHANGED
@@ -57,15 +57,15 @@ async function run(argv) {
57
57
  program.name("open-slide").description("Author slides — we handle the Vite/React stack.").version(version, "-v, --version", "print version").helpOption("-h, --help", "show help").showHelpAfterError(chalk.dim("(run `open-slide --help` for usage)"));
58
58
  program.command("dev").description("Start the dev server").addOption(new Option("-p, --port <port>", "port to listen on").argParser(parsePort)).addOption(new Option("--host [host]", "expose on the network (optional host)")).option("--open", "open the browser on start").option("--no-skills-check", "skip the built-in skills drift check").action(async (flags) => {
59
59
  if (flags.skillsCheck !== false) await runSkillsDriftCheck(resolveBuiltinSkillsDir());
60
- const { dev } = await import("../dev-DLRQoCkT.js");
60
+ const { dev } = await import("../dev-BkJdG_0u.js");
61
61
  await dev(flags);
62
62
  });
63
63
  program.command("build").description("Build a static site").option("--out-dir <dir>", "output directory (defaults to `dist`)").action(async (flags) => {
64
- const { build } = await import("../build-DaL4Gjn-.js");
64
+ const { build } = await import("../build-D7-fnqn8.js");
65
65
  await build(flags);
66
66
  });
67
67
  program.command("preview").description("Preview the production build").addOption(new Option("-p, --port <port>", "port to listen on").argParser(parsePort)).addOption(new Option("--host [host]", "expose on the network (optional host)")).option("--open", "open the browser on start").action(async (flags) => {
68
- const { preview } = await import("../preview-D3qVGc0S.js");
68
+ const { preview } = await import("../preview-CC_DNgvi.js");
69
69
  await preview(flags);
70
70
  });
71
71
  program.command("sync:skills").description("Sync built-in skills from @open-slide/core into this workspace").option("--dry-run", "show what would change without writing").action(async (flags) => {
@@ -4314,15 +4314,7 @@ async function createViteConfig(opts) {
4314
4314
  "class-variance-authority",
4315
4315
  "emoji-picker-react"
4316
4316
  ],
4317
- esbuildOptions: { plugins: [{
4318
- name: "open-slide:virtual-externals",
4319
- setup(build$1) {
4320
- build$1.onResolve({ filter: /^virtual:open-slide\// }, (args) => ({
4321
- path: args.path,
4322
- external: true
4323
- }));
4324
- }
4325
- }] }
4317
+ rolldownOptions: { external: [/^virtual:open-slide\//] }
4326
4318
  },
4327
4319
  server: {
4328
4320
  port: config.port ?? 5173,
@@ -1,5 +1,5 @@
1
1
  import "./design-cpzS8aud.js";
2
- import { DEV_SUPERVISED_ENV, RESTART_EXIT_CODE, createViteConfig } from "./config-CCHio3pk.js";
2
+ import { DEV_SUPERVISED_ENV, RESTART_EXIT_CODE, createViteConfig } from "./config-CSgUUnlv.js";
3
3
  import chalk from "chalk";
4
4
  import path from "node:path";
5
5
  import { existsSync } from "node:fs";
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Locale, Plural } from "./types-Di7nvL8V.js";
2
2
  import { OpenSlideConfig } from "./config-DIvIP8vY.js";
3
+ import * as react1 from "react";
4
+ import * as react0 from "react";
5
+ import * as react3 from "react";
6
+ import * as react4 from "react";
3
7
  import { CSSProperties, ComponentType, HTMLAttributes, PropsWithChildren, ReactNode } from "react";
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
- import * as react_jsx_runtime5 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_runtime0.JSX.Element;
24
+ }: ImagePlaceholderProps): react1.JSX.Element;
25
25
 
26
26
  //#endregion
27
27
  //#region src/app/components/morph-element.d.ts
@@ -36,7 +36,7 @@ declare function MorphElement({
36
36
  children,
37
37
  className,
38
38
  style
39
- }: MorphElementProps): react_jsx_runtime1.JSX.Element;
39
+ }: MorphElementProps): react0.JSX.Element;
40
40
 
41
41
  //#endregion
42
42
  //#region src/app/lib/design.d.ts
@@ -118,7 +118,7 @@ declare function useIsActivePage(): boolean;
118
118
  type StepsProps = PropsWithChildren;
119
119
  declare function Steps({
120
120
  children
121
- }: StepsProps): react_jsx_runtime4.JSX.Element;
121
+ }: StepsProps): react3.JSX.Element;
122
122
  type StepProps = PropsWithChildren<{
123
123
  duration?: number;
124
124
  }>;
@@ -129,7 +129,7 @@ declare function Step({
129
129
  children,
130
130
  duration,
131
131
  _revealed
132
- }: InternalStepProps): react_jsx_runtime5.JSX.Element;
132
+ }: InternalStepProps): react4.JSX.Element;
133
133
 
134
134
  //#endregion
135
135
  export { CANVAS_HEIGHT, CANVAS_WIDTH, DesignFonts, DesignPalette, DesignSystem, DesignTypeScale, ImagePlaceholder, ImagePlaceholderProps, Locale, MorphElement, MorphElementProps, MorphTransition, OpenSlideConfig, Page, Plural, SlideMeta, SlideModule, SlideTransition, Step, StepProps, Steps, StepsProps, TransitionPhase, cssVarsToString, defaultDesign, designToCssVars, useIsActivePage, useSlidePageNumber };
@@ -1,5 +1,5 @@
1
1
  import "./design-cpzS8aud.js";
2
- import { createViteConfig } from "./config-CCHio3pk.js";
2
+ import { createViteConfig } from "./config-CSgUUnlv.js";
3
3
  import { mergeConfig, preview as preview$1 } from "vite";
4
4
 
5
5
  //#region src/cli/preview.ts
@@ -1,4 +1,4 @@
1
1
  import "../design-cpzS8aud.js";
2
- import { createViteConfig } from "../config-CCHio3pk.js";
2
+ import { createViteConfig } from "../config-CSgUUnlv.js";
3
3
 
4
4
  export { createViteConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-slide/core",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "Runtime and CLI for open-slide — write slides in slides/, we handle the rest.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -67,7 +67,7 @@
67
67
  "@dnd-kit/utilities": "^3.2.2",
68
68
  "@fontsource-variable/geist": "^5.2.8",
69
69
  "@tailwindcss/vite": "^4.3.3",
70
- "@vitejs/plugin-react": "^4.3.3",
70
+ "@vitejs/plugin-react": "^6.0.3",
71
71
  "chalk": "^5.3.0",
72
72
  "class-variance-authority": "^0.7.1",
73
73
  "clsx": "^2.1.1",
@@ -78,8 +78,8 @@
78
78
  "html-to-image": "^1.11.13",
79
79
  "lucide-react": "^1.25.0",
80
80
  "next-themes": "^0.4.6",
81
- "react": "^18.3.1",
82
- "react-dom": "^18.3.1",
81
+ "react": "^19.2.7",
82
+ "react-dom": "^19.2.7",
83
83
  "react-image-crop": "^11.0.10",
84
84
  "react-router-dom": "^7.18.1",
85
85
  "shadcn": "^4.12.0",
@@ -88,12 +88,12 @@
88
88
  "tailwindcss": "^4.2.2",
89
89
  "tw-animate-css": "^1.4.0",
90
90
  "use-sync-external-store": "^1.6.0",
91
- "vite": "^5.4.10"
91
+ "vite": "^8.1.5"
92
92
  },
93
93
  "devDependencies": {
94
94
  "@types/node": "^22.19.17",
95
- "@types/react": "^18.3.12",
96
- "@types/react-dom": "^18.3.1",
95
+ "@types/react": "^19.2.17",
96
+ "@types/react-dom": "^19.2.3",
97
97
  "tsdown": "^0.9.9",
98
98
  "typescript": "^5.9.3"
99
99
  },
@@ -107,7 +107,7 @@ function Frame({
107
107
  showImageActions = false,
108
108
  }: {
109
109
  anchor: HTMLElement | null;
110
- overlayRef: React.RefObject<HTMLDivElement>;
110
+ overlayRef: React.RefObject<HTMLDivElement | null>;
111
111
  variant: FrameVariant;
112
112
  showImageActions?: boolean;
113
113
  }) {
@@ -7,7 +7,7 @@ const NAV_PASSTHROUGH =
7
7
  'a, button, input, textarea, select, label, summary, iframe, video, audio, embed, object, [role="button"], [role="link"], [contenteditable="true"], [data-osd-interactive], [data-osd-chrome]';
8
8
 
9
9
  type UseClickPageNavigationOptions<T extends HTMLElement> = {
10
- ref: RefObject<T>;
10
+ ref: RefObject<T | null>;
11
11
  enabled?: boolean;
12
12
  /** Fraction of the width on each side that navigates; the center is inert. */
13
13
  edgeRatio?: number;
@@ -5,7 +5,7 @@ const WHEEL_NAV_COOLDOWN_MS = 100;
5
5
  const WHEEL_GESTURE_IDLE_MS = 80;
6
6
 
7
7
  type UseWheelPageNavigationOptions<T extends HTMLElement> = {
8
- ref: RefObject<T>;
8
+ ref: RefObject<T | null>;
9
9
  enabled?: boolean;
10
10
  canPrev: boolean;
11
11
  canNext: boolean;
@@ -1005,7 +1005,7 @@ function SlideViewportNavigation({
1005
1005
  canPrev,
1006
1006
  canNext,
1007
1007
  }: {
1008
- targetRef: RefObject<HTMLElement>;
1008
+ targetRef: RefObject<HTMLElement | null>;
1009
1009
  onPrev: () => void;
1010
1010
  onNext: () => void;
1011
1011
  canPrev: boolean;