nextjs-slides 0.8.2 → 0.9.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/README.md CHANGED
@@ -309,6 +309,29 @@ app/slides/
309
309
  demo/page.tsx ← Breakout page (no deck chrome)
310
310
  ```
311
311
 
312
+ ## Project structure
313
+
314
+ You can put all slide-related routes in a **route group** like `(demo)` or `(internal)` to keep them separate from your main app. Route groups use parentheses and do not affect the URL. You can have two `api` folders — one for your main app, one inside the group:
315
+
316
+ ```
317
+ app/
318
+ api/
319
+ ...your main app routes
320
+ (demo)/
321
+ api/
322
+ nxs-sync/
323
+ route.ts
324
+ slides/
325
+ layout.tsx
326
+ slides.tsx
327
+ notes.md
328
+ [page]/page.tsx
329
+ notes/
330
+ page.tsx
331
+ ```
332
+
333
+ URLs stay `/slides`, `/notes`, `/api/nxs-sync` — the `(demo)` segment is invisible. Update paths in `parseSpeakerNotes` and `basePath` if you move things.
334
+
312
335
  ## Styling & CSS
313
336
 
314
337
  The library **inherits** your app's theme. Primitives use Tailwind utilities that resolve to CSS variables: `--foreground`, `--background`, `--muted-foreground`, `--primary`, `--primary-foreground`, `--border`, `--muted`. Compatible with shadcn/ui and any Tailwind v4 setup that defines these.
@@ -0,0 +1,9 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ /**
4
+ * Shared SVG icons used by slide deck UI.
5
+ * @internal Not exported from the public API.
6
+ */
7
+ declare function ExitIcon(): react_jsx_runtime.JSX.Element;
8
+
9
+ export { ExitIcon };
package/dist/icons.js ADDED
@@ -0,0 +1,25 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ function ExitIcon() {
3
+ return /* @__PURE__ */ jsxs(
4
+ "svg",
5
+ {
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: "20",
8
+ height: "20",
9
+ viewBox: "0 0 24 24",
10
+ fill: "none",
11
+ stroke: "currentColor",
12
+ strokeWidth: "2",
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round",
15
+ children: [
16
+ /* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
17
+ /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
18
+ ]
19
+ }
20
+ );
21
+ }
22
+ export {
23
+ ExitIcon
24
+ };
25
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/icons.tsx"],"sourcesContent":["/**\n * Shared SVG icons used by slide deck UI.\n * @internal Not exported from the public API.\n */\nexport function ExitIcon() {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n );\n}\n"],"mappings":"AAMI,SAWE,KAXF;AAFG,SAAS,WAAW;AACzB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAM;AAAA,MACN,OAAM;AAAA,MACN,QAAO;AAAA,MACP,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,QAAO;AAAA,MACP,aAAY;AAAA,MACZ,eAAc;AAAA,MACd,gBAAe;AAAA,MAEf;AAAA,4BAAC,UAAK,GAAE,cAAa;AAAA,QACrB,oBAAC,UAAK,GAAE,cAAa;AAAA;AAAA;AAAA,EACvB;AAEJ;","names":[]}
package/dist/slides.css CHANGED
@@ -158,13 +158,6 @@
158
158
  }
159
159
  }
160
160
 
161
- /* Reset default view transition animations */
162
- ::view-transition-old(*) {
163
- animation: none;
164
- }
165
- ::view-transition-new(*) {
166
- animation: none;
167
- }
168
161
 
169
162
  /* Slide forward */
170
163
  ::view-transition-new(.slide-from-right) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextjs-slides",
3
- "version": "0.8.2",
3
+ "version": "0.9.0",
4
4
  "description": "Composable slide deck primitives for Next.js — powered by React 19 ViewTransitions, Tailwind CSS, and highlight.js syntax highlighting.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -78,6 +78,10 @@
78
78
  ],
79
79
  "repository": {
80
80
  "type": "git",
81
- "url": "https://github.com/aurorascharff/nextjs-slides"
81
+ "url": "git+https://github.com/aurorascharff/nextjs-slides.git"
82
+ },
83
+ "homepage": "https://github.com/aurorascharff/nextjs-slides#readme",
84
+ "bugs": {
85
+ "url": "https://github.com/aurorascharff/nextjs-slides/issues"
82
86
  }
83
87
  }