nextjs-slides 0.8.3 → 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 +23 -0
- package/dist/slides.css +0 -7
- package/package.json +6 -2
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.
|
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.
|
|
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
|
}
|