@open-slide/core 0.0.8 → 0.0.10

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.
Files changed (34) hide show
  1. package/dist/{build-CXY2DSzy.js → build-DHiRlpjn.js} +1 -1
  2. package/dist/cli/bin.js +3 -3
  3. package/dist/{config-BYTf0qVz.js → config-LZM903FE.js} +742 -44
  4. package/dist/{dev-BxCKugi3.js → dev-B3JzCYn7.js} +1 -1
  5. package/dist/{preview-C1F-rHfx.js → preview-UikovHEt.js} +1 -1
  6. package/dist/vite/index.js +1 -1
  7. package/package.json +3 -1
  8. package/src/app/App.tsx +2 -0
  9. package/src/app/components/AssetView.tsx +846 -0
  10. package/src/app/components/ClickNavZones.tsx +2 -2
  11. package/src/app/components/PdfProgressToast.tsx +23 -0
  12. package/src/app/components/ThumbnailRail.tsx +2 -2
  13. package/src/app/components/inspector/CommentWidget.tsx +1 -1
  14. package/src/app/components/inspector/InspectOverlay.tsx +81 -41
  15. package/src/app/components/inspector/InspectorPanel.tsx +948 -0
  16. package/src/app/components/inspector/InspectorProvider.tsx +229 -13
  17. package/src/app/components/inspector/SaveBar.tsx +77 -0
  18. package/src/app/components/ui/input.tsx +21 -0
  19. package/src/app/components/ui/label.tsx +24 -0
  20. package/src/app/components/ui/progress.tsx +31 -0
  21. package/src/app/components/ui/select.tsx +190 -0
  22. package/src/app/components/ui/slider.tsx +61 -0
  23. package/src/app/components/ui/sonner.tsx +38 -0
  24. package/src/app/components/ui/textarea.tsx +18 -0
  25. package/src/app/components/ui/toggle-group.tsx +83 -0
  26. package/src/app/components/ui/toggle.tsx +45 -0
  27. package/src/app/components/ui/tooltip.tsx +55 -0
  28. package/src/app/lib/assets.ts +166 -0
  29. package/src/app/lib/export-pdf.ts +194 -0
  30. package/src/app/lib/inspector/fiber.ts +40 -5
  31. package/src/app/lib/inspector/useEditor.ts +62 -0
  32. package/src/app/lib/print-ready.ts +58 -0
  33. package/src/app/routes/Slide.tsx +140 -51
  34. package/src/app/components/inspector/CommentPopover.tsx +0 -94
@@ -1,4 +1,4 @@
1
- import { createViteConfig } from "./config-BYTf0qVz.js";
1
+ import { createViteConfig } from "./config-LZM903FE.js";
2
2
  import { createServer, mergeConfig } from "vite";
3
3
 
4
4
  //#region src/cli/dev.ts
@@ -1,4 +1,4 @@
1
- import { createViteConfig } from "./config-BYTf0qVz.js";
1
+ import { createViteConfig } from "./config-LZM903FE.js";
2
2
  import { mergeConfig, preview as preview$1 } from "vite";
3
3
 
4
4
  //#region src/cli/preview.ts
@@ -1,3 +1,3 @@
1
- import { createViteConfig } from "../config-BYTf0qVz.js";
1
+ import { createViteConfig } from "../config-LZM903FE.js";
2
2
 
3
3
  export { createViteConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-slide/core",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Runtime and CLI for open-slide — write slides in slides/, we handle the rest.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -53,11 +53,13 @@
53
53
  "fast-glob": "^3.3.2",
54
54
  "fflate": "^0.8.2",
55
55
  "lucide-react": "^1.8.0",
56
+ "next-themes": "^0.4.6",
56
57
  "radix-ui": "^1.4.3",
57
58
  "react": "^18.3.1",
58
59
  "react-dom": "^18.3.1",
59
60
  "react-router-dom": "^6.26.2",
60
61
  "shadcn": "^4.3.0",
62
+ "sonner": "^2.0.7",
61
63
  "tailwind-merge": "^3.5.0",
62
64
  "tailwindcss": "^4.2.2",
63
65
  "tw-animate-css": "^1.4.0",
package/src/app/App.tsx CHANGED
@@ -1,5 +1,6 @@
1
1
  import { BrowserRouter, Route, Routes } from 'react-router-dom';
2
2
  import config from 'virtual:open-slide/config';
3
+ import { Toaster } from './components/ui/sonner';
3
4
  import { Home } from './routes/Home';
4
5
  import { Slide } from './routes/Slide';
5
6
 
@@ -11,6 +12,7 @@ export function App() {
11
12
  <Route path="/s/:slideId" element={<Slide />} />
12
13
  <Route path="*" element={<NotFound />} />
13
14
  </Routes>
15
+ <Toaster />
14
16
  </BrowserRouter>
15
17
  );
16
18
  }