@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.
- package/dist/{build-L50pau9v.js → build-CCoxDxL-.js} +11 -10
- package/dist/cli/bin.d.ts +1 -1
- package/dist/cli/bin.js +434 -28
- package/dist/{config-CDUdFE8N.js → config-D_U_aCQz.js} +484 -460
- package/dist/{config-C9or4m4J.d.ts → config-p-TWNXbv.d.ts} +4 -4
- package/dist/{design-C13iz9_4.js → design-Cpqx7SJs.js} +1 -2
- package/dist/{dev-CzJYXFOO.js → dev-CTrB263u.js} +40 -20
- package/dist/{export-DbVwSmKW.js → export-enKL9R7x.js} +7 -10
- package/dist/index.d.ts +6 -8
- package/dist/index.js +2 -3
- package/dist/locale/index.d.ts +8 -14
- package/dist/locale/index.js +67 -32
- package/dist/{open-pages-plugin-C0poXLsx.js → open-pages-plugin-C8cFhMB9.js} +23 -38
- package/dist/preview-Dmzyd1cf.js +24 -0
- package/dist/sync-ui-BzRiAGCK.js +132 -0
- package/dist/{types-C5NCdDT-.d.ts → types-DDdUFUIS.d.ts} +19 -6
- package/dist/{update-CV62NhBT.js → update-CWaCKlnl.js} +14 -5
- package/dist/{update-package-Cxt57pz7.js → update-package-GaNsVdr8.js} +50 -22
- package/dist/{version-B6AiiGvT.js → version-DZrXLoAD.js} +19 -3
- package/dist/vite/index.d.ts +3 -7
- package/dist/vite/index.js +2 -7
- package/package.json +24 -22
- package/src/app/app.tsx +19 -14
- package/src/app/assets/autono-social.png +0 -0
- package/src/app/assets/autono.svg +7 -0
- package/src/app/components/asset-view.tsx +510 -26
- package/src/app/components/command/command-menu.tsx +5 -1
- package/src/app/components/command/command.tsx +4 -2
- package/src/app/components/command/home-command-menu.tsx +6 -6
- package/src/app/components/icon-tooltip.tsx +24 -15
- package/src/app/components/sidebar/folder-item.tsx +46 -19
- package/src/app/components/sidebar/icon-picker.tsx +1 -1
- package/src/app/components/sidebar/sidebar-footer.tsx +18 -7
- package/src/app/components/sidebar/sidebar.tsx +91 -64
- package/src/app/components/theme-toggle.tsx +4 -5
- package/src/app/components/themes/theme-detail.tsx +6 -3
- package/src/app/components/themes/themes-gallery.tsx +12 -7
- package/src/app/index.html +33 -2
- package/src/app/lib/assets.ts +33 -0
- package/src/app/lib/last-home-location.ts +18 -0
- package/src/app/main.tsx +10 -1
- package/src/app/routes/home-shell.tsx +82 -61
- package/src/app/routes/home.tsx +42 -39
- package/src/app/routes/page.tsx +18 -3
- package/src/app/routes/themes.tsx +6 -8
- package/src/app/styles.css +40 -4
- package/src/app/virtual.d.ts +1 -0
- package/src/locale/en.ts +17 -6
- package/src/locale/ja.ts +18 -6
- package/src/locale/types.ts +17 -4
- package/src/locale/zh-cn.ts +19 -8
- package/src/locale/zh-tw.ts +17 -6
- package/src/shared/update-package.ts +193 -0
- package/workspace/components.json +25 -0
- package/workspace/deps.json +24 -0
- package/workspace/hooks/use-mobile.ts +19 -0
- package/workspace/lib/utils.ts +6 -0
- package/workspace/styles/globals.css +135 -0
- package/workspace/ui/accordion.tsx +79 -0
- package/workspace/ui/alert-dialog.tsx +197 -0
- package/workspace/ui/alert.tsx +76 -0
- package/workspace/ui/aspect-ratio.tsx +11 -0
- package/workspace/ui/attachment.tsx +204 -0
- package/workspace/ui/avatar.tsx +110 -0
- package/workspace/ui/badge.tsx +49 -0
- package/workspace/ui/breadcrumb.tsx +122 -0
- package/workspace/ui/bubble.tsx +125 -0
- package/workspace/ui/button-group.tsx +83 -0
- package/workspace/ui/button.tsx +67 -0
- package/workspace/ui/calendar.tsx +222 -0
- package/workspace/ui/card.tsx +103 -0
- package/workspace/ui/carousel.tsx +240 -0
- package/workspace/ui/chart.tsx +373 -0
- package/workspace/ui/checkbox.tsx +31 -0
- package/workspace/ui/collapsible.tsx +33 -0
- package/workspace/ui/combobox.tsx +297 -0
- package/workspace/ui/command.tsx +195 -0
- package/workspace/ui/context-menu.tsx +261 -0
- package/workspace/ui/dialog.tsx +168 -0
- package/workspace/ui/direction.tsx +22 -0
- package/workspace/ui/drawer.tsx +132 -0
- package/workspace/ui/dropdown-menu.tsx +269 -0
- package/workspace/ui/empty.tsx +104 -0
- package/workspace/ui/field.tsx +236 -0
- package/workspace/ui/hover-card.tsx +42 -0
- package/workspace/ui/input-group.tsx +156 -0
- package/workspace/ui/input-otp.tsx +87 -0
- package/workspace/ui/input.tsx +19 -0
- package/workspace/ui/item.tsx +196 -0
- package/workspace/ui/kbd.tsx +26 -0
- package/workspace/ui/label.tsx +22 -0
- package/workspace/ui/marker.tsx +69 -0
- package/workspace/ui/menubar.tsx +280 -0
- package/workspace/ui/message-scroller.tsx +129 -0
- package/workspace/ui/message.tsx +92 -0
- package/workspace/ui/native-select.tsx +61 -0
- package/workspace/ui/navigation-menu.tsx +164 -0
- package/workspace/ui/pagination.tsx +129 -0
- package/workspace/ui/popover.tsx +87 -0
- package/workspace/ui/progress.tsx +31 -0
- package/workspace/ui/radio-group.tsx +42 -0
- package/workspace/ui/resizable.tsx +50 -0
- package/workspace/ui/scroll-area.tsx +53 -0
- package/workspace/ui/select.tsx +192 -0
- package/workspace/ui/separator.tsx +26 -0
- package/workspace/ui/sheet.tsx +147 -0
- package/workspace/ui/sidebar.tsx +702 -0
- package/workspace/ui/skeleton.tsx +13 -0
- package/workspace/ui/slider.tsx +59 -0
- package/workspace/ui/sonner.tsx +47 -0
- package/workspace/ui/spinner.tsx +10 -0
- package/workspace/ui/switch.tsx +33 -0
- package/workspace/ui/table.tsx +114 -0
- package/workspace/ui/tabs.tsx +90 -0
- package/workspace/ui/textarea.tsx +18 -0
- package/workspace/ui/toggle-group.tsx +87 -0
- package/workspace/ui/toggle.tsx +45 -0
- package/workspace/ui/tooltip.tsx +57 -0
- package/dist/export-BsK6OCpc.js +0 -4
- package/dist/preview-CPufRmuj.js +0 -21
- package/dist/sync-Be_hxSOF.js +0 -139
- package/dist/sync-lKEXyPOh.js +0 -3
- package/dist/version-CeffgdfZ.js +0 -3
- package/src/app/components/language-toggle.tsx +0 -46
- 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.
|
|
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": ">=
|
|
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.
|
|
74
|
-
"@base-ui/react": "1.
|
|
75
|
-
"@fontsource-variable/geist": "^5.
|
|
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": "^
|
|
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.
|
|
85
|
+
"emoji-picker-react": "^4.22.2",
|
|
84
86
|
"fast-glob": "^3.3.2",
|
|
85
|
-
"lucide-react": "^1.
|
|
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.
|
|
90
|
-
"shadcn": "^4.
|
|
91
|
-
"sonner": "^2.0.
|
|
92
|
-
"tailwind-merge": "^3.
|
|
93
|
-
"tailwindcss": "^4.
|
|
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.
|
|
96
|
-
"vite": "^
|
|
97
|
+
"use-sync-external-store": "^1.7.0",
|
|
98
|
+
"vite": "^8.3.0"
|
|
97
99
|
},
|
|
98
100
|
"devDependencies": {
|
|
99
|
-
"@playwright/test": "
|
|
100
|
-
"@types/node": "^
|
|
101
|
-
"@types/react": "^19.
|
|
102
|
-
"@types/react-dom": "^19.
|
|
103
|
-
"tsdown": "^0.
|
|
104
|
-
"typescript": "^
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<Route
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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>
|