@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.
- package/dist/{build-DaL4Gjn-.js → build-D7-fnqn8.js} +1 -1
- package/dist/cli/bin.js +3 -3
- package/dist/{config-CCHio3pk.js → config-CSgUUnlv.js} +1 -9
- package/dist/{dev-DLRQoCkT.js → dev-BkJdG_0u.js} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/{preview-D3qVGc0S.js → preview-CC_DNgvi.js} +1 -1
- package/dist/vite/index.js +1 -1
- package/package.json +7 -7
- package/src/app/components/inspector/inspect-overlay.tsx +1 -1
- package/src/app/lib/use-click-page-navigation.ts +1 -1
- package/src/app/lib/use-wheel-page-navigation.ts +1 -1
- package/src/app/routes/slide.tsx +1 -1
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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):
|
|
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):
|
|
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):
|
|
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):
|
|
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 };
|
package/dist/vite/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-slide/core",
|
|
3
|
-
"version": "1.
|
|
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": "^
|
|
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": "^
|
|
82
|
-
"react-dom": "^
|
|
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": "^
|
|
91
|
+
"vite": "^8.1.5"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@types/node": "^22.19.17",
|
|
95
|
-
"@types/react": "^
|
|
96
|
-
"@types/react-dom": "^
|
|
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;
|
package/src/app/routes/slide.tsx
CHANGED