@jxrstudios/jxr 1.0.9 → 1.0.11

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 (89) hide show
  1. package/bin/jxr.js +6 -0
  2. package/dist/index.d.ts +43 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +57 -2
  5. package/dist/jxr-server-manager.d.ts.map +1 -1
  6. package/package.json +1 -1
  7. package/src/jxr-server-manager.ts +57 -1
  8. package/zzz_react_template/App.tsx +43 -156
  9. package/zzz_react_template/components/ErrorBoundary.tsx +62 -0
  10. package/zzz_react_template/components/ManusDialog.tsx +85 -0
  11. package/zzz_react_template/components/Map.tsx +155 -0
  12. package/zzz_react_template/components/jxr/CodeEditor.tsx +313 -0
  13. package/zzz_react_template/components/jxr/FileExplorer.tsx +230 -0
  14. package/zzz_react_template/components/jxr/IDEShell.tsx +159 -0
  15. package/zzz_react_template/components/jxr/LandingPage.tsx +414 -0
  16. package/zzz_react_template/components/jxr/LivePreview.tsx +169 -0
  17. package/zzz_react_template/components/jxr/PerformanceDashboard.tsx +379 -0
  18. package/zzz_react_template/components/jxr/TopBar.tsx +149 -0
  19. package/zzz_react_template/components/ui/accordion.tsx +64 -0
  20. package/zzz_react_template/components/ui/alert-dialog.tsx +155 -0
  21. package/zzz_react_template/components/ui/alert.tsx +66 -0
  22. package/zzz_react_template/components/ui/aspect-ratio.tsx +9 -0
  23. package/zzz_react_template/components/ui/avatar.tsx +51 -0
  24. package/zzz_react_template/components/ui/badge.tsx +46 -0
  25. package/zzz_react_template/components/ui/breadcrumb.tsx +109 -0
  26. package/zzz_react_template/components/ui/button-group.tsx +83 -0
  27. package/zzz_react_template/components/ui/button.tsx +60 -0
  28. package/zzz_react_template/components/ui/calendar.tsx +211 -0
  29. package/zzz_react_template/components/ui/card.tsx +92 -0
  30. package/zzz_react_template/components/ui/carousel.tsx +239 -0
  31. package/zzz_react_template/components/ui/chart.tsx +355 -0
  32. package/zzz_react_template/components/ui/checkbox.tsx +30 -0
  33. package/zzz_react_template/components/ui/collapsible.tsx +31 -0
  34. package/zzz_react_template/components/ui/command.tsx +184 -0
  35. package/zzz_react_template/components/ui/context-menu.tsx +250 -0
  36. package/zzz_react_template/components/ui/dialog.tsx +209 -0
  37. package/zzz_react_template/components/ui/drawer.tsx +133 -0
  38. package/zzz_react_template/components/ui/dropdown-menu.tsx +255 -0
  39. package/zzz_react_template/components/ui/empty.tsx +104 -0
  40. package/zzz_react_template/components/ui/field.tsx +242 -0
  41. package/zzz_react_template/components/ui/form.tsx +168 -0
  42. package/zzz_react_template/components/ui/hover-card.tsx +42 -0
  43. package/zzz_react_template/components/ui/input-group.tsx +168 -0
  44. package/zzz_react_template/components/ui/input-otp.tsx +75 -0
  45. package/zzz_react_template/components/ui/input.tsx +70 -0
  46. package/zzz_react_template/components/ui/item.tsx +193 -0
  47. package/zzz_react_template/components/ui/kbd.tsx +28 -0
  48. package/zzz_react_template/components/ui/label.tsx +22 -0
  49. package/zzz_react_template/components/ui/menubar.tsx +274 -0
  50. package/zzz_react_template/components/ui/navigation-menu.tsx +168 -0
  51. package/zzz_react_template/components/ui/pagination.tsx +127 -0
  52. package/zzz_react_template/components/ui/popover.tsx +46 -0
  53. package/zzz_react_template/components/ui/progress.tsx +29 -0
  54. package/zzz_react_template/components/ui/radio-group.tsx +43 -0
  55. package/zzz_react_template/components/ui/resizable.tsx +54 -0
  56. package/zzz_react_template/components/ui/scroll-area.tsx +56 -0
  57. package/zzz_react_template/components/ui/select.tsx +185 -0
  58. package/zzz_react_template/components/ui/separator.tsx +26 -0
  59. package/zzz_react_template/components/ui/sheet.tsx +139 -0
  60. package/zzz_react_template/components/ui/sidebar.tsx +734 -0
  61. package/zzz_react_template/components/ui/skeleton.tsx +13 -0
  62. package/zzz_react_template/components/ui/slider.tsx +61 -0
  63. package/zzz_react_template/components/ui/sonner.tsx +23 -0
  64. package/zzz_react_template/components/ui/spinner.tsx +16 -0
  65. package/zzz_react_template/components/ui/switch.tsx +29 -0
  66. package/zzz_react_template/components/ui/table.tsx +114 -0
  67. package/zzz_react_template/components/ui/tabs.tsx +64 -0
  68. package/zzz_react_template/components/ui/textarea.tsx +67 -0
  69. package/zzz_react_template/components/ui/toggle-group.tsx +73 -0
  70. package/zzz_react_template/components/ui/toggle.tsx +45 -0
  71. package/zzz_react_template/components/ui/tooltip.tsx +59 -0
  72. package/zzz_react_template/const.ts +17 -0
  73. package/zzz_react_template/contexts/JXRContext.tsx +264 -0
  74. package/zzz_react_template/contexts/ThemeContext.tsx +64 -0
  75. package/zzz_react_template/hooks/useComposition.ts +81 -0
  76. package/zzz_react_template/hooks/useMobile.tsx +21 -0
  77. package/zzz_react_template/hooks/usePersistFn.ts +20 -0
  78. package/zzz_react_template/index.css +518 -11
  79. package/zzz_react_template/lib/jxr-runtime/index.ts +201 -0
  80. package/zzz_react_template/lib/jxr-runtime/module-resolver.ts +520 -0
  81. package/zzz_react_template/lib/jxr-runtime/moq-transport.ts +267 -0
  82. package/zzz_react_template/lib/jxr-runtime/web-crypto.ts +279 -0
  83. package/zzz_react_template/lib/jxr-runtime/worker-pool.ts +321 -0
  84. package/zzz_react_template/lib/utils.ts +6 -0
  85. package/zzz_react_template/main.tsx +4 -9
  86. package/zzz_react_template/pages/Docs.tsx +955 -0
  87. package/zzz_react_template/pages/Home.tsx +1080 -0
  88. package/zzz_react_template/pages/NotFound.tsx +105 -0
  89. package/zzz_react_template/tsconfig.json +24 -0
@@ -0,0 +1,105 @@
1
+ /**
2
+ * JXR.js — 404 Not Found
3
+ * LavaFlow OS Design System
4
+ */
5
+
6
+ import { Link } from 'wouter';
7
+ import { Zap, ArrowLeft, Terminal } from 'lucide-react';
8
+
9
+ export default function NotFound() {
10
+ return (
11
+ <div
12
+ className="min-h-screen flex flex-col items-center justify-center"
13
+ style={{ background: 'oklch(0.09 0.005 285)' }}
14
+ >
15
+ <div className="text-center max-w-lg px-6">
16
+ {/* Logo */}
17
+ <div className="flex items-center justify-center gap-2.5 mb-10">
18
+ <div
19
+ className="w-9 h-9 rounded-lg flex items-center justify-center"
20
+ style={{ background: 'oklch(0.62 0.21 42)', boxShadow: '0 0 40px oklch(0.62 0.21 42 / 30%)' }}
21
+ >
22
+ <Zap size={18} className="text-white" />
23
+ </div>
24
+ <span className="font-bold text-xl" style={{ fontFamily: 'Space Grotesk' }}>
25
+ <span
26
+ style={{
27
+ background: 'linear-gradient(135deg, oklch(0.72 0.21 42) 0%, oklch(0.82 0.18 55) 100%)',
28
+ WebkitBackgroundClip: 'text',
29
+ WebkitTextFillColor: 'transparent',
30
+ backgroundClip: 'text',
31
+ }}
32
+ >JXR</span>
33
+ <span style={{ color: 'oklch(0.93 0.005 65)' }}>.js</span>
34
+ </span>
35
+ </div>
36
+
37
+ {/* Error code */}
38
+ <div
39
+ className="font-mono text-9xl font-extrabold mb-4 leading-none"
40
+ style={{ color: 'oklch(0.62 0.21 42 / 15%)' }}
41
+ >
42
+ 404
43
+ </div>
44
+
45
+ <h1 className="text-2xl font-bold mb-3" style={{ fontFamily: 'Space Grotesk', color: 'oklch(0.85 0.01 65)' }}>
46
+ Route not found
47
+ </h1>
48
+ <p className="mb-8" style={{ color: 'oklch(0.5 0.01 285)' }}>
49
+ This path does not exist in the JXR edge runtime.
50
+ </p>
51
+
52
+ {/* Terminal hint */}
53
+ <div
54
+ className="rounded-lg p-4 font-mono text-sm mb-8 text-left relative"
55
+ style={{
56
+ background: 'oklch(0.06 0.004 285)',
57
+ border: '1px solid oklch(1 0 0 / 8%)',
58
+ }}
59
+ >
60
+ <span style={{ color: 'oklch(0.62 0.21 42)' }}>$ </span>
61
+ <span style={{ color: 'oklch(0.85 0.01 65)' }}>jxr info</span>
62
+ <br />
63
+ <span style={{ color: 'oklch(0.45 0.01 285)' }}># Check available routes</span>
64
+ <span
65
+ style={{
66
+ display: 'inline-block',
67
+ width: '2px',
68
+ height: '1.1em',
69
+ background: 'oklch(0.62 0.21 42)',
70
+ verticalAlign: 'text-bottom',
71
+ marginLeft: '2px',
72
+ animation: 'blink 1s step-end infinite',
73
+ }}
74
+ />
75
+ </div>
76
+
77
+ <div className="flex justify-center gap-4">
78
+ <Link
79
+ href="/"
80
+ className="no-underline inline-flex items-center gap-2 px-6 py-3 rounded-lg font-bold text-sm transition-all"
81
+ style={{
82
+ background: 'oklch(0.62 0.21 42)',
83
+ color: 'white',
84
+ }}
85
+ >
86
+ <ArrowLeft size={16} />
87
+ Back to Home
88
+ </Link>
89
+ <Link
90
+ href="/docs"
91
+ className="no-underline inline-flex items-center gap-2 px-6 py-3 rounded-lg font-semibold text-sm transition-all"
92
+ style={{
93
+ background: 'transparent',
94
+ color: 'oklch(0.75 0.01 65)',
95
+ border: '1px solid oklch(1 0 0 / 15%)',
96
+ }}
97
+ >
98
+ <Terminal size={16} />
99
+ Docs
100
+ </Link>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ );
105
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
5
+ "module": "ESNext",
6
+ "skipLibCheck": true,
7
+ "moduleResolution": "bundler",
8
+ "allowImportingTsExtensions": true,
9
+ "resolveJsonModule": true,
10
+ "isolatedModules": true,
11
+ "noEmit": true,
12
+ "jsx": "react-jsx",
13
+ "strict": true,
14
+ "noUnusedLocals": true,
15
+ "noUnusedParameters": true,
16
+ "noFallthroughCasesInSwitch": true,
17
+ "baseUrl": ".",
18
+ "paths": {
19
+ "@/*": ["./*"]
20
+ }
21
+ },
22
+ "include": ["**/*.ts", "**/*.tsx"],
23
+ "exclude": ["node_modules"]
24
+ }