@steamfield/decks 1.0.0 → 1.1.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/cli.js +1 -1
- package/dist/control-tray.css +5 -1
- package/dist/index.js +1 -1
- package/dist/kit.js +2 -2
- package/dist/motion.js +1 -1
- package/dist/node.js +1 -1
- package/dist/presenter-view.css +14 -0
- package/dist/{src-BHlxNl0Z.js → src--lhAQ29p.js} +1 -1
- package/dist/{src-CDNWEWZz.js → src-BNyL3q7j.js} +1 -1
- package/dist/{src-BxuWgcUh.js → src-Cxck-eLP.js} +7 -1
- package/docs/cli.md +1 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/control-tray.css
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@layer react-decks {
|
|
2
|
+
/* The tray floats over any slide, so it carries its own light-on-dark scheme
|
|
3
|
+
rather than inheriting the deck's text colour, which can match the slide. */
|
|
2
4
|
.rd-tray {
|
|
3
|
-
--rd-ui-panel:
|
|
5
|
+
--rd-ui-panel: oklch(0.2 0 0 / 0.78);
|
|
4
6
|
--rd-ui-line: color-mix(in oklab, currentColor 22%, transparent);
|
|
5
7
|
--rd-ui-dim: color-mix(in oklab, currentColor 62%, transparent);
|
|
6
8
|
box-sizing: border-box;
|
|
@@ -9,6 +11,7 @@
|
|
|
9
11
|
bottom: 0;
|
|
10
12
|
left: 0;
|
|
11
13
|
padding: 1rem;
|
|
14
|
+
color: oklch(0.97 0 0);
|
|
12
15
|
opacity: 0;
|
|
13
16
|
transition: opacity var(--deck-dur-base, 300ms);
|
|
14
17
|
font:
|
|
@@ -36,6 +39,7 @@
|
|
|
36
39
|
border: 1px solid var(--rd-ui-line);
|
|
37
40
|
border-radius: 0.375rem;
|
|
38
41
|
background: var(--rd-ui-panel);
|
|
42
|
+
backdrop-filter: blur(8px);
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
.rd-tray:hover .rd-tray-buttons,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as useSlideScale, _ as SlideHost, a as createBroadcastTransport, b as useDeck, c as ImageSide, d as routeEmbedNavigation, f as registerCaptionProvider, g as OverviewView, h as PlayView, i as createDeckStore, l as Section, m as PresenterView, n as Link, o as Center, p as Deck, r as mountDeck, s as Cover, t as Toc, u as TwoCol, v as registerSettleProbe, x as useSlide, y as SlideFrame } from "./src
|
|
1
|
+
import { S as useSlideScale, _ as SlideHost, a as createBroadcastTransport, b as useDeck, c as ImageSide, d as routeEmbedNavigation, f as registerCaptionProvider, g as OverviewView, h as PlayView, i as createDeckStore, l as Section, m as PresenterView, n as Link, o as Center, p as Deck, r as mountDeck, s as Cover, t as Toc, u as TwoCol, v as registerSettleProbe, x as useSlide, y as SlideFrame } from "./src--lhAQ29p.js";
|
|
2
2
|
// ../runtime/src/notes.ts
|
|
3
3
|
function Notes(_props) {
|
|
4
4
|
return null;
|
package/dist/kit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as ease, l as gsap, o as useTween, t as useTimeline, u as motionMode } from "./src-
|
|
2
|
-
import { S as useSlideScale, b as useDeck, f as registerCaptionProvider, v as registerSettleProbe, x as useSlide } from "./src
|
|
1
|
+
import { c as ease, l as gsap, o as useTween, t as useTimeline, u as motionMode } from "./src-BNyL3q7j.js";
|
|
2
|
+
import { S as useSlideScale, b as useDeck, f as registerCaptionProvider, v as registerSettleProbe, x as useSlide } from "./src--lhAQ29p.js";
|
|
3
3
|
import { a as TERM_POSITION, i as TERM_INPUT, n as TERM_DATA, o as TERM_READY, r as TERM_GONE, s as TERM_STATE, t as TERM_ATTACH } from "./term-protocol-B_qHRDEp.js";
|
|
4
4
|
import { useCallback, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
package/dist/motion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { y as CodeBlock, a as CountUp, f as Draw, p as Highlight, i as MagicMove, r as Mark, n as Morph, m as Stagger, h as Step, g as Steps, _ as TextReveal, s as duration, c as ease, l as gsap, u as motionMode, d as stagger, v as useStepState, t as useTimeline, o as useTween } from "./src-
|
|
1
|
+
export { y as CodeBlock, a as CountUp, f as Draw, p as Highlight, i as MagicMove, r as Mark, n as Morph, m as Stagger, h as Step, g as Steps, _ as TextReveal, s as duration, c as ease, l as gsap, u as motionMode, d as stagger, v as useStepState, t as useTimeline, o as useTween } from "./src-BNyL3q7j.js";
|
package/dist/node.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as build, a as buildManifest, s as defineDeck, r as dev, c as loadDeck, i as reactDecks, t as runCli, o as scanSlides } from "./src-
|
|
1
|
+
export { n as build, a as buildManifest, s as defineDeck, r as dev, c as loadDeck, i as reactDecks, t as runCli, o as scanSlides } from "./src-Cxck-eLP.js";
|
package/dist/presenter-view.css
CHANGED
|
@@ -56,6 +56,20 @@
|
|
|
56
56
|
line-height: 1.45;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
/* scrollIntoView follows this, so the panel glides to the next click's notes. */
|
|
60
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
61
|
+
.rd-presenter-notes {
|
|
62
|
+
scroll-behavior: smooth;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Room below the last click, so any click's notes can scroll to the top of the panel. */
|
|
67
|
+
.rd-presenter-notes::after {
|
|
68
|
+
content: "";
|
|
69
|
+
display: block;
|
|
70
|
+
block-size: 100%;
|
|
71
|
+
}
|
|
72
|
+
|
|
59
73
|
.rd-presenter-notes > div {
|
|
60
74
|
opacity: 0.6;
|
|
61
75
|
padding-inline-start: 0.875rem;
|
|
@@ -1093,7 +1093,7 @@ function PresenterView() {
|
|
|
1093
1093
|
const aspect = useDeckSelector((state) => state.audienceAspect);
|
|
1094
1094
|
const [notes, setNotes] = useState(null);
|
|
1095
1095
|
const revealNote = useCallback((element) => {
|
|
1096
|
-
element?.scrollIntoView?.({ block: "
|
|
1096
|
+
element?.scrollIntoView?.({ block: "start" });
|
|
1097
1097
|
}, []);
|
|
1098
1098
|
const meta = source.manifest.slides[nav.slide - 1];
|
|
1099
1099
|
const next = navigate(nav, { type: "next" }, source.manifest);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as stepState, S as useSlideScale, v as registerSettleProbe, x as useSlide } from "./src
|
|
1
|
+
import { C as stepState, S as useSlideScale, v as registerSettleProbe, x as useSlide } from "./src--lhAQ29p.js";
|
|
2
2
|
import { Children, cloneElement, isValidElement, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { flushSync } from "react-dom";
|
|
@@ -2021,7 +2021,13 @@ const check = defineCommand({
|
|
|
2021
2021
|
try {
|
|
2022
2022
|
const loaded = await loadDeck(deck.dir, deck.alias);
|
|
2023
2023
|
present.push(deck);
|
|
2024
|
-
await scanSlidesWithCounts(loaded, /* @__PURE__ */ new Map());
|
|
2024
|
+
const { slides } = await scanSlidesWithCounts(loaded, /* @__PURE__ */ new Map());
|
|
2025
|
+
for (const { meta } of slides) {
|
|
2026
|
+
const { file, clicks } = meta;
|
|
2027
|
+
const path = join(deck.dir, file);
|
|
2028
|
+
const cues = (await renderNotes(await readSource(path), path, loaded.config.mdx?.remarkPlugins))?.at(-1)?.click ?? 0;
|
|
2029
|
+
if (cues > 0 && cues !== clicks) problems.push(`${deck.alias}: notes: ${path} has [click] cues for ${cues} click(s), but the slide has ${clicks}`);
|
|
2030
|
+
}
|
|
2025
2031
|
} catch (cause) {
|
|
2026
2032
|
if (!(cause instanceof DeckError)) throw cause;
|
|
2027
2033
|
if (cause.message.startsWith("no slides/*.mdx files in ") || cause.message.startsWith("every slide in ")) problems.push(`no slides: ${deck.alias}`);
|
package/docs/cli.md
CHANGED
|
@@ -18,6 +18,7 @@ Checks the whole project and exits 1 if anything is wrong, one problem per line:
|
|
|
18
18
|
| `<alias>: <message>` | The deck's config failed to load. |
|
|
19
19
|
| `no slides: <alias>` | The deck has no visible slides (`dev` and `build` would refuse it). |
|
|
20
20
|
| `<alias>: slide name: <file>` | A slide file is not `NN-slug.mdx`, or two share a number. |
|
|
21
|
+
| `<alias>: notes: <file> has [click] cues for N click(s), but the slide has M` | A visible slide's notes use `[click]` markers, and they cover a different number of clicks than the slide has, so cues would highlight on the wrong step. Notes with no markers are not checked. |
|
|
21
22
|
| `N error-level prose hit(s)` | `decks lint` finds error-level patterns. |
|
|
22
23
|
|
|
23
24
|
## `decks lint [alias...] [--stdin]`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steamfield/decks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "React slide decks for animated, data-driven talks: MDX slides, motion, story stages, charts, and a CLI, built with coding agents.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|