@autono/open-pages 0.5.0 → 0.7.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.
Files changed (125) hide show
  1. package/dist/{build-L50pau9v.js → build-CCoxDxL-.js} +11 -10
  2. package/dist/cli/bin.d.ts +1 -1
  3. package/dist/cli/bin.js +434 -28
  4. package/dist/{config-CDUdFE8N.js → config-D_U_aCQz.js} +484 -460
  5. package/dist/{config-C9or4m4J.d.ts → config-p-TWNXbv.d.ts} +4 -4
  6. package/dist/{design-C13iz9_4.js → design-Cpqx7SJs.js} +1 -2
  7. package/dist/{dev-CzJYXFOO.js → dev-CTrB263u.js} +40 -20
  8. package/dist/{export-DbVwSmKW.js → export-enKL9R7x.js} +7 -10
  9. package/dist/index.d.ts +6 -8
  10. package/dist/index.js +2 -3
  11. package/dist/locale/index.d.ts +8 -14
  12. package/dist/locale/index.js +67 -32
  13. package/dist/{open-pages-plugin-C0poXLsx.js → open-pages-plugin-C8cFhMB9.js} +23 -38
  14. package/dist/preview-Dmzyd1cf.js +24 -0
  15. package/dist/sync-ui-BzRiAGCK.js +132 -0
  16. package/dist/{types-C5NCdDT-.d.ts → types-DDdUFUIS.d.ts} +19 -6
  17. package/dist/{update-CV62NhBT.js → update-CWaCKlnl.js} +14 -5
  18. package/dist/{update-package-Cxt57pz7.js → update-package-GaNsVdr8.js} +50 -22
  19. package/dist/{version-B6AiiGvT.js → version-DZrXLoAD.js} +19 -3
  20. package/dist/vite/index.d.ts +3 -7
  21. package/dist/vite/index.js +2 -7
  22. package/package.json +24 -22
  23. package/src/app/app.tsx +19 -14
  24. package/src/app/assets/autono-social.png +0 -0
  25. package/src/app/assets/autono.svg +7 -0
  26. package/src/app/components/asset-view.tsx +510 -26
  27. package/src/app/components/command/command-menu.tsx +5 -1
  28. package/src/app/components/command/command.tsx +4 -2
  29. package/src/app/components/command/home-command-menu.tsx +6 -6
  30. package/src/app/components/icon-tooltip.tsx +24 -15
  31. package/src/app/components/sidebar/folder-item.tsx +46 -19
  32. package/src/app/components/sidebar/icon-picker.tsx +1 -1
  33. package/src/app/components/sidebar/sidebar-footer.tsx +18 -7
  34. package/src/app/components/sidebar/sidebar.tsx +91 -64
  35. package/src/app/components/theme-toggle.tsx +4 -5
  36. package/src/app/components/themes/theme-detail.tsx +6 -3
  37. package/src/app/components/themes/themes-gallery.tsx +12 -7
  38. package/src/app/index.html +33 -2
  39. package/src/app/lib/assets.ts +33 -0
  40. package/src/app/lib/last-home-location.ts +18 -0
  41. package/src/app/main.tsx +10 -1
  42. package/src/app/routes/home-shell.tsx +82 -61
  43. package/src/app/routes/home.tsx +42 -39
  44. package/src/app/routes/page.tsx +18 -3
  45. package/src/app/routes/themes.tsx +6 -8
  46. package/src/app/styles.css +40 -4
  47. package/src/app/virtual.d.ts +1 -0
  48. package/src/locale/en.ts +17 -6
  49. package/src/locale/ja.ts +18 -6
  50. package/src/locale/types.ts +17 -4
  51. package/src/locale/zh-cn.ts +19 -8
  52. package/src/locale/zh-tw.ts +17 -6
  53. package/src/shared/update-package.ts +193 -0
  54. package/workspace/components.json +25 -0
  55. package/workspace/deps.json +24 -0
  56. package/workspace/hooks/use-mobile.ts +19 -0
  57. package/workspace/lib/utils.ts +6 -0
  58. package/workspace/styles/globals.css +135 -0
  59. package/workspace/ui/accordion.tsx +79 -0
  60. package/workspace/ui/alert-dialog.tsx +197 -0
  61. package/workspace/ui/alert.tsx +76 -0
  62. package/workspace/ui/aspect-ratio.tsx +11 -0
  63. package/workspace/ui/attachment.tsx +204 -0
  64. package/workspace/ui/avatar.tsx +110 -0
  65. package/workspace/ui/badge.tsx +49 -0
  66. package/workspace/ui/breadcrumb.tsx +122 -0
  67. package/workspace/ui/bubble.tsx +125 -0
  68. package/workspace/ui/button-group.tsx +83 -0
  69. package/workspace/ui/button.tsx +67 -0
  70. package/workspace/ui/calendar.tsx +222 -0
  71. package/workspace/ui/card.tsx +103 -0
  72. package/workspace/ui/carousel.tsx +240 -0
  73. package/workspace/ui/chart.tsx +373 -0
  74. package/workspace/ui/checkbox.tsx +31 -0
  75. package/workspace/ui/collapsible.tsx +33 -0
  76. package/workspace/ui/combobox.tsx +297 -0
  77. package/workspace/ui/command.tsx +195 -0
  78. package/workspace/ui/context-menu.tsx +261 -0
  79. package/workspace/ui/dialog.tsx +168 -0
  80. package/workspace/ui/direction.tsx +22 -0
  81. package/workspace/ui/drawer.tsx +132 -0
  82. package/workspace/ui/dropdown-menu.tsx +269 -0
  83. package/workspace/ui/empty.tsx +104 -0
  84. package/workspace/ui/field.tsx +236 -0
  85. package/workspace/ui/hover-card.tsx +42 -0
  86. package/workspace/ui/input-group.tsx +156 -0
  87. package/workspace/ui/input-otp.tsx +87 -0
  88. package/workspace/ui/input.tsx +19 -0
  89. package/workspace/ui/item.tsx +196 -0
  90. package/workspace/ui/kbd.tsx +26 -0
  91. package/workspace/ui/label.tsx +22 -0
  92. package/workspace/ui/marker.tsx +69 -0
  93. package/workspace/ui/menubar.tsx +280 -0
  94. package/workspace/ui/message-scroller.tsx +129 -0
  95. package/workspace/ui/message.tsx +92 -0
  96. package/workspace/ui/native-select.tsx +61 -0
  97. package/workspace/ui/navigation-menu.tsx +164 -0
  98. package/workspace/ui/pagination.tsx +129 -0
  99. package/workspace/ui/popover.tsx +87 -0
  100. package/workspace/ui/progress.tsx +31 -0
  101. package/workspace/ui/radio-group.tsx +42 -0
  102. package/workspace/ui/resizable.tsx +50 -0
  103. package/workspace/ui/scroll-area.tsx +53 -0
  104. package/workspace/ui/select.tsx +192 -0
  105. package/workspace/ui/separator.tsx +26 -0
  106. package/workspace/ui/sheet.tsx +147 -0
  107. package/workspace/ui/sidebar.tsx +702 -0
  108. package/workspace/ui/skeleton.tsx +13 -0
  109. package/workspace/ui/slider.tsx +59 -0
  110. package/workspace/ui/sonner.tsx +47 -0
  111. package/workspace/ui/spinner.tsx +10 -0
  112. package/workspace/ui/switch.tsx +33 -0
  113. package/workspace/ui/table.tsx +114 -0
  114. package/workspace/ui/tabs.tsx +90 -0
  115. package/workspace/ui/textarea.tsx +18 -0
  116. package/workspace/ui/toggle-group.tsx +87 -0
  117. package/workspace/ui/toggle.tsx +45 -0
  118. package/workspace/ui/tooltip.tsx +57 -0
  119. package/dist/export-BsK6OCpc.js +0 -4
  120. package/dist/preview-CPufRmuj.js +0 -21
  121. package/dist/sync-Be_hxSOF.js +0 -139
  122. package/dist/sync-lKEXyPOh.js +0 -3
  123. package/dist/version-CeffgdfZ.js +0 -3
  124. package/src/app/components/language-toggle.tsx +0 -46
  125. package/src/app/favicon.ico +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autono/open-pages",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Runtime and CLI for open-pages — live preview of React and HTML pages, click-to-comment inspector, and static export.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -29,8 +29,10 @@
29
29
  "env.d.ts",
30
30
  "src/app",
31
31
  "src/locale",
32
+ "src/shared",
32
33
  "skills",
33
- "README.md"
34
+ "README.md",
35
+ "workspace"
34
36
  ],
35
37
  "scripts": {
36
38
  "build": "tsdown",
@@ -39,7 +41,7 @@
39
41
  "prepack": "pnpm build"
40
42
  },
41
43
  "engines": {
42
- "node": ">=18"
44
+ "node": "^20.19.0 || >=22.12.0"
43
45
  },
44
46
  "keywords": [
45
47
  "pages",
@@ -70,37 +72,37 @@
70
72
  },
71
73
  "dependencies": {
72
74
  "@babel/parser": "^8.0.4",
73
- "@babel/types": "^8.0.4",
74
- "@base-ui/react": "1.6.0",
75
- "@fontsource-variable/geist": "^5.2.8",
75
+ "@babel/types": "^8.0.6",
76
+ "@base-ui/react": "1.8.0",
77
+ "@fontsource-variable/geist": "^5.3.0",
76
78
  "@tailwindcss/vite": "^4.3.3",
77
- "@vitejs/plugin-react": "^4.3.3",
79
+ "@vitejs/plugin-react": "^6.1.1",
78
80
  "chalk": "^6.0.0",
79
81
  "class-variance-authority": "^0.7.1",
80
82
  "clsx": "^2.1.1",
81
83
  "cmdk": "^1.1.1",
82
84
  "commander": "^15.0.0",
83
- "emoji-picker-react": "^4.19.1",
85
+ "emoji-picker-react": "^4.22.2",
84
86
  "fast-glob": "^3.3.2",
85
- "lucide-react": "^1.25.0",
87
+ "lucide-react": "^1.47.0",
86
88
  "next-themes": "^0.4.6",
87
89
  "react": "^19.2.0",
88
90
  "react-dom": "^19.2.0",
89
- "react-router-dom": "^7.18.1",
90
- "shadcn": "^4.19.0",
91
- "sonner": "^2.0.7",
92
- "tailwind-merge": "^3.5.0",
93
- "tailwindcss": "^4.2.2",
91
+ "react-router-dom": "^7.18.4",
92
+ "shadcn": "^4.21.0",
93
+ "sonner": "^2.0.8",
94
+ "tailwind-merge": "^3.7.0",
95
+ "tailwindcss": "^4.3.3",
94
96
  "tw-animate-css": "^1.4.0",
95
- "use-sync-external-store": "^1.6.0",
96
- "vite": "^6.4.3"
97
+ "use-sync-external-store": "^1.7.0",
98
+ "vite": "^8.3.0"
97
99
  },
98
100
  "devDependencies": {
99
- "@playwright/test": "~1.62.1",
100
- "@types/node": "^22.19.17",
101
- "@types/react": "^19.2.0",
102
- "@types/react-dom": "^19.2.0",
103
- "tsdown": "^0.9.9",
104
- "typescript": "^5.9.3"
101
+ "@playwright/test": "1.63.0",
102
+ "@types/node": "^26.6.2",
103
+ "@types/react": "^19.3.0",
104
+ "@types/react-dom": "^19.3.0",
105
+ "tsdown": "^0.23.0",
106
+ "typescript": "^7.0.2"
105
107
  }
106
108
  }
package/src/app/app.tsx CHANGED
@@ -1,6 +1,7 @@
1
1
  import config from 'virtual:open-pages/config';
2
2
  import { BrowserRouter, Route, Routes } from 'react-router-dom';
3
3
  import { Toaster } from './components/ui/sonner';
4
+ import { TooltipProvider } from './components/ui/tooltip';
4
5
  import { useLocale } from './lib/use-locale';
5
6
  import { AssetsPage } from './routes/assets';
6
7
  import { Home } from './routes/home';
@@ -11,20 +12,24 @@ import { ThemeDetailPage, ThemesGalleryPage } from './routes/themes';
11
12
  export function App() {
12
13
  return (
13
14
  <BrowserRouter basename={import.meta.env.BASE_URL}>
14
- <Routes>
15
- {config.build.showPageBrowser ? (
16
- <Route element={<HomeShell />}>
17
- <Route path="/" element={<Home />} />
18
- <Route path="/themes" element={<ThemesGalleryPage />} />
19
- <Route path="/themes/:themeId" element={<ThemeDetailPage />} />
20
- <Route path="/assets" element={<AssetsPage />} />
21
- </Route>
22
- ) : (
23
- <Route path="/" element={<NotFound />} />
24
- )}
25
- <Route path="/p/:pageId" element={<PageView />} />
26
- <Route path="*" element={<NotFound />} />
27
- </Routes>
15
+ {/* One app-wide provider so adjacent tooltips group: after the first
16
+ opens, moving along a toolbar shows the rest instantly. */}
17
+ <TooltipProvider delay={200}>
18
+ <Routes>
19
+ {config.build.showPageBrowser ? (
20
+ <Route element={<HomeShell />}>
21
+ <Route path="/" element={<Home />} />
22
+ <Route path="/themes" element={<ThemesGalleryPage />} />
23
+ <Route path="/themes/:themeId" element={<ThemeDetailPage />} />
24
+ <Route path="/assets" element={<AssetsPage />} />
25
+ </Route>
26
+ ) : (
27
+ <Route path="/" element={<NotFound />} />
28
+ )}
29
+ <Route path="/p/:pageId" element={<PageView />} />
30
+ <Route path="*" element={<NotFound />} />
31
+ </Routes>
32
+ </TooltipProvider>
28
33
  <Toaster />
29
34
  </BrowserRouter>
30
35
  );
Binary file
@@ -0,0 +1,7 @@
1
+ <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <title>Autono</title>
3
+ <rect width="32" height="32" rx="6" fill="#141414"/>
4
+ <g transform="translate(6.33, 6) scale(1.035)">
5
+ <path d="M9.46582 0C11.2139 2.81177e-05 12.3625 0.599608 12.9619 2.17285L18.6562 17.1582H15.3848L13.9316 13.3086C11.8147 13.3191 9.3787 13.6765 7.3418 14.2637C6.30855 14.5615 5.41163 14.9086 4.72559 15.2793C4.21991 15.5526 3.89396 15.8047 3.7002 16.0078L3.24707 17.1582H0L5.91895 2.17285C6.54333 0.599424 7.69258 0 9.46582 0ZM9.44043 3.02246C9.04098 3.02255 8.76658 3.19718 8.5918 3.59668L5.03809 12.6123C5.56437 12.4065 6.12479 12.2197 6.7041 12.0527C8.67125 11.4857 10.958 11.1165 13.0703 11.0283L10.2646 3.59668C10.1148 3.19708 9.84004 3.02246 9.44043 3.02246Z" fill="#F7F7F7"/>
6
+ </g>
7
+ </svg>