@lickle/docs 0.0.0-dev.1
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 +3 -0
- package/dist/esm/_lib/fs/index.js +20 -0
- package/dist/esm/_lib/fs/index.js.map +1 -0
- package/dist/esm/_lib/fs/watch.js +30 -0
- package/dist/esm/_lib/fs/watch.js.map +1 -0
- package/dist/esm/_lib/index.js +9 -0
- package/dist/esm/_lib/index.js.map +1 -0
- package/dist/esm/_lib/jiti/index.js +16 -0
- package/dist/esm/_lib/jiti/index.js.map +1 -0
- package/dist/esm/_lib/path/index.js +42 -0
- package/dist/esm/_lib/path/index.js.map +1 -0
- package/dist/esm/_lib/pkg/index.js +128 -0
- package/dist/esm/_lib/pkg/index.js.map +1 -0
- package/dist/esm/_lib/repo/index.js +100 -0
- package/dist/esm/_lib/repo/index.js.map +1 -0
- package/dist/esm/_lib/slug/index.js +23 -0
- package/dist/esm/_lib/slug/index.js.map +1 -0
- package/dist/esm/_lib/t.js +2 -0
- package/dist/esm/_lib/t.js.map +1 -0
- package/dist/esm/_lib/tsconfig/index.js +12 -0
- package/dist/esm/_lib/tsconfig/index.js.map +1 -0
- package/dist/esm/_lib/util/index.js +54 -0
- package/dist/esm/_lib/util/index.js.map +1 -0
- package/dist/esm/cli/cmd/dev.js +74 -0
- package/dist/esm/cli/cmd/dev.js.map +1 -0
- package/dist/esm/cli/cmd/index.js +4 -0
- package/dist/esm/cli/cmd/index.js.map +1 -0
- package/dist/esm/cli/cmd/init.js +74 -0
- package/dist/esm/cli/cmd/init.js.map +1 -0
- package/dist/esm/cli/cmd/json.js +28 -0
- package/dist/esm/cli/cmd/json.js.map +1 -0
- package/dist/esm/cli/env.js +5 -0
- package/dist/esm/cli/env.js.map +1 -0
- package/dist/esm/cli/index.js +13 -0
- package/dist/esm/cli/index.js.map +1 -0
- package/dist/esm/cli/vite/client/index.jsx +20 -0
- package/dist/esm/cli/vite/client/index.jsx.map +1 -0
- package/dist/esm/cli/vite/index.js +100 -0
- package/dist/esm/cli/vite/index.js.map +1 -0
- package/dist/esm/cli.js +5 -0
- package/dist/esm/cli.js.map +1 -0
- package/dist/esm/config/defaults.js +32 -0
- package/dist/esm/config/defaults.js.map +1 -0
- package/dist/esm/config/file.js +48 -0
- package/dist/esm/config/file.js.map +1 -0
- package/dist/esm/config/index.js +7 -0
- package/dist/esm/config/index.js.map +1 -0
- package/dist/esm/config/load.js +79 -0
- package/dist/esm/config/load.js.map +1 -0
- package/dist/esm/config/types.js +2 -0
- package/dist/esm/config/types.js.map +1 -0
- package/dist/esm/core/index.js +3 -0
- package/dist/esm/core/index.js.map +1 -0
- package/dist/esm/core/project/debug.js +26 -0
- package/dist/esm/core/project/debug.js.map +1 -0
- package/dist/esm/core/project/index.js +39 -0
- package/dist/esm/core/project/index.js.map +1 -0
- package/dist/esm/core/project/naming.js +39 -0
- package/dist/esm/core/project/naming.js.map +1 -0
- package/dist/esm/core/project/routing.js +173 -0
- package/dist/esm/core/project/routing.js.map +1 -0
- package/dist/esm/core/project/types.js +4 -0
- package/dist/esm/core/project/types.js.map +1 -0
- package/dist/esm/core/reflect/index.js +10 -0
- package/dist/esm/core/reflect/index.js.map +1 -0
- package/dist/esm/core/reflect/indexed.js +195 -0
- package/dist/esm/core/reflect/indexed.js.map +1 -0
- package/dist/esm/core/reflect/resolve.js +157 -0
- package/dist/esm/core/reflect/resolve.js.map +1 -0
- package/dist/esm/core/reflect/scan.js +787 -0
- package/dist/esm/core/reflect/scan.js.map +1 -0
- package/dist/esm/core/reflect/state.js +29 -0
- package/dist/esm/core/reflect/state.js.map +1 -0
- package/dist/esm/core/reflect/types.js +16 -0
- package/dist/esm/core/reflect/types.js.map +1 -0
- package/dist/esm/core/reflect/walk.js +106 -0
- package/dist/esm/core/reflect/walk.js.map +1 -0
- package/dist/esm/solidjs/index.js +2 -0
- package/dist/esm/solidjs/index.js.map +1 -0
- package/dist/esm/solidjs/jsx-runtime.js +2 -0
- package/dist/esm/solidjs/jsx-runtime.js.map +1 -0
- package/dist/esm/ui/App.jsx +71 -0
- package/dist/esm/ui/App.jsx.map +1 -0
- package/dist/esm/ui/components/Breadcrumb.jsx +45 -0
- package/dist/esm/ui/components/Breadcrumb.jsx.map +1 -0
- package/dist/esm/ui/components/Code/index.jsx +89 -0
- package/dist/esm/ui/components/Code/index.jsx.map +1 -0
- package/dist/esm/ui/components/Comment.jsx +176 -0
- package/dist/esm/ui/components/Comment.jsx.map +1 -0
- package/dist/esm/ui/components/Declaration.jsx +147 -0
- package/dist/esm/ui/components/Declaration.jsx.map +1 -0
- package/dist/esm/ui/components/Header.jsx +66 -0
- package/dist/esm/ui/components/Header.jsx.map +1 -0
- package/dist/esm/ui/components/Layout.jsx +44 -0
- package/dist/esm/ui/components/Layout.jsx.map +1 -0
- package/dist/esm/ui/components/Link.jsx +34 -0
- package/dist/esm/ui/components/Link.jsx.map +1 -0
- package/dist/esm/ui/components/LivePreview/Example.jsx +76 -0
- package/dist/esm/ui/components/LivePreview/Example.jsx.map +1 -0
- package/dist/esm/ui/components/LivePreview/Sandbox.jsx +25 -0
- package/dist/esm/ui/components/LivePreview/Sandbox.jsx.map +1 -0
- package/dist/esm/ui/components/LivePreview/index.js +4 -0
- package/dist/esm/ui/components/LivePreview/index.js.map +1 -0
- package/dist/esm/ui/components/LivePreview/transform.js +16 -0
- package/dist/esm/ui/components/LivePreview/transform.js.map +1 -0
- package/dist/esm/ui/components/Markdown.jsx +14 -0
- package/dist/esm/ui/components/Markdown.jsx.map +1 -0
- package/dist/esm/ui/components/Page.jsx +121 -0
- package/dist/esm/ui/components/Page.jsx.map +1 -0
- package/dist/esm/ui/components/References.jsx +32 -0
- package/dist/esm/ui/components/References.jsx.map +1 -0
- package/dist/esm/ui/components/SearchPalette.jsx +178 -0
- package/dist/esm/ui/components/SearchPalette.jsx.map +1 -0
- package/dist/esm/ui/components/Sidebar.jsx +63 -0
- package/dist/esm/ui/components/Sidebar.jsx.map +1 -0
- package/dist/esm/ui/components/Syntax.jsx +10 -0
- package/dist/esm/ui/components/Syntax.jsx.map +1 -0
- package/dist/esm/ui/components/ThemeToggle.jsx +25 -0
- package/dist/esm/ui/components/ThemeToggle.jsx.map +1 -0
- package/dist/esm/ui/components/Type.jsx +444 -0
- package/dist/esm/ui/components/Type.jsx.map +1 -0
- package/dist/esm/ui/components/index.js +16 -0
- package/dist/esm/ui/components/index.js.map +1 -0
- package/dist/esm/ui/context/components.jsx +30 -0
- package/dist/esm/ui/context/components.jsx.map +1 -0
- package/dist/esm/ui/context/global.js +15 -0
- package/dist/esm/ui/context/global.js.map +1 -0
- package/dist/esm/ui/context/index.js +5 -0
- package/dist/esm/ui/context/index.js.map +1 -0
- package/dist/esm/ui/context/markup/index.jsx +25 -0
- package/dist/esm/ui/context/markup/index.jsx.map +1 -0
- package/dist/esm/ui/context/markup/markdown.js +34 -0
- package/dist/esm/ui/context/markup/markdown.js.map +1 -0
- package/dist/esm/ui/context/markup/shiki.js +58 -0
- package/dist/esm/ui/context/markup/shiki.js.map +1 -0
- package/dist/esm/ui/context/markup/util.js +22 -0
- package/dist/esm/ui/context/markup/util.js.map +1 -0
- package/dist/esm/ui/context/project/index.jsx +27 -0
- package/dist/esm/ui/context/project/index.jsx.map +1 -0
- package/dist/esm/ui/context/project/indexed.js +47 -0
- package/dist/esm/ui/context/project/indexed.js.map +1 -0
- package/dist/esm/ui/context/project/types.js +2 -0
- package/dist/esm/ui/context/project/types.js.map +1 -0
- package/dist/esm/ui/context/theme.jsx +36 -0
- package/dist/esm/ui/context/theme.jsx.map +1 -0
- package/dist/esm/ui/hooks/index.js +94 -0
- package/dist/esm/ui/hooks/index.js.map +1 -0
- package/dist/esm/ui/index.js +5 -0
- package/dist/esm/ui/index.js.map +1 -0
- package/dist/esm/ui/renderer.jsx +21 -0
- package/dist/esm/ui/renderer.jsx.map +1 -0
- package/dist/esm/ui/util/comment.js +14 -0
- package/dist/esm/ui/util/comment.js.map +1 -0
- package/dist/esm/ui/util/kind.js +85 -0
- package/dist/esm/ui/util/kind.js.map +1 -0
- package/dist/esm/ui/util/markdown.js +66 -0
- package/dist/esm/ui/util/markdown.js.map +1 -0
- package/dist/esm/ui/util/search.js +75 -0
- package/dist/esm/ui/util/search.js.map +1 -0
- package/dist/ts/_lib/fs/index.d.ts +6 -0
- package/dist/ts/_lib/fs/index.d.ts.map +1 -0
- package/dist/ts/_lib/fs/watch.d.ts +14 -0
- package/dist/ts/_lib/fs/watch.d.ts.map +1 -0
- package/dist/ts/_lib/index.d.ts +10 -0
- package/dist/ts/_lib/index.d.ts.map +1 -0
- package/dist/ts/_lib/jiti/index.d.ts +2 -0
- package/dist/ts/_lib/jiti/index.d.ts.map +1 -0
- package/dist/ts/_lib/path/index.d.ts +12 -0
- package/dist/ts/_lib/path/index.d.ts.map +1 -0
- package/dist/ts/_lib/pkg/index.d.ts +28 -0
- package/dist/ts/_lib/pkg/index.d.ts.map +1 -0
- package/dist/ts/_lib/repo/index.d.ts +30 -0
- package/dist/ts/_lib/repo/index.d.ts.map +1 -0
- package/dist/ts/_lib/slug/index.d.ts +4 -0
- package/dist/ts/_lib/slug/index.d.ts.map +1 -0
- package/dist/ts/_lib/t.d.ts +11 -0
- package/dist/ts/_lib/t.d.ts.map +1 -0
- package/dist/ts/_lib/tsconfig/index.d.ts +8 -0
- package/dist/ts/_lib/tsconfig/index.d.ts.map +1 -0
- package/dist/ts/_lib/util/index.d.ts +9 -0
- package/dist/ts/_lib/util/index.d.ts.map +1 -0
- package/dist/ts/cli/cmd/dev.d.ts +27 -0
- package/dist/ts/cli/cmd/dev.d.ts.map +1 -0
- package/dist/ts/cli/cmd/index.d.ts +4 -0
- package/dist/ts/cli/cmd/index.d.ts.map +1 -0
- package/dist/ts/cli/cmd/init.d.ts +14 -0
- package/dist/ts/cli/cmd/init.d.ts.map +1 -0
- package/dist/ts/cli/cmd/json.d.ts +12 -0
- package/dist/ts/cli/cmd/json.d.ts.map +1 -0
- package/dist/ts/cli/env.d.ts +2 -0
- package/dist/ts/cli/env.d.ts.map +1 -0
- package/dist/ts/cli/index.d.ts +78 -0
- package/dist/ts/cli/index.d.ts.map +1 -0
- package/dist/ts/cli/vite/client/index.d.ts +10 -0
- package/dist/ts/cli/vite/client/index.d.ts.map +1 -0
- package/dist/ts/cli/vite/index.d.ts +12 -0
- package/dist/ts/cli/vite/index.d.ts.map +1 -0
- package/dist/ts/cli.d.ts +3 -0
- package/dist/ts/cli.d.ts.map +1 -0
- package/dist/ts/config/defaults.d.ts +10 -0
- package/dist/ts/config/defaults.d.ts.map +1 -0
- package/dist/ts/config/file.d.ts +3 -0
- package/dist/ts/config/file.d.ts.map +1 -0
- package/dist/ts/config/index.d.ts +6 -0
- package/dist/ts/config/index.d.ts.map +1 -0
- package/dist/ts/config/load.d.ts +36 -0
- package/dist/ts/config/load.d.ts.map +1 -0
- package/dist/ts/config/types.d.ts +56 -0
- package/dist/ts/config/types.d.ts.map +1 -0
- package/dist/ts/core/index.d.ts +3 -0
- package/dist/ts/core/index.d.ts.map +1 -0
- package/dist/ts/core/project/debug.d.ts +3 -0
- package/dist/ts/core/project/debug.d.ts.map +1 -0
- package/dist/ts/core/project/index.d.ts +17 -0
- package/dist/ts/core/project/index.d.ts.map +1 -0
- package/dist/ts/core/project/naming.d.ts +23 -0
- package/dist/ts/core/project/naming.d.ts.map +1 -0
- package/dist/ts/core/project/routing.d.ts +61 -0
- package/dist/ts/core/project/routing.d.ts.map +1 -0
- package/dist/ts/core/project/types.d.ts +56 -0
- package/dist/ts/core/project/types.d.ts.map +1 -0
- package/dist/ts/core/reflect/index.d.ts +22 -0
- package/dist/ts/core/reflect/index.d.ts.map +1 -0
- package/dist/ts/core/reflect/indexed.d.ts +83 -0
- package/dist/ts/core/reflect/indexed.d.ts.map +1 -0
- package/dist/ts/core/reflect/resolve.d.ts +3 -0
- package/dist/ts/core/reflect/resolve.d.ts.map +1 -0
- package/dist/ts/core/reflect/scan.d.ts +218 -0
- package/dist/ts/core/reflect/scan.d.ts.map +1 -0
- package/dist/ts/core/reflect/state.d.ts +44 -0
- package/dist/ts/core/reflect/state.d.ts.map +1 -0
- package/dist/ts/core/reflect/types.d.ts +289 -0
- package/dist/ts/core/reflect/types.d.ts.map +1 -0
- package/dist/ts/core/reflect/walk.d.ts +28 -0
- package/dist/ts/core/reflect/walk.d.ts.map +1 -0
- package/dist/ts/solidjs/index.d.ts +2 -0
- package/dist/ts/solidjs/index.d.ts.map +1 -0
- package/dist/ts/solidjs/jsx-runtime.d.ts +2 -0
- package/dist/ts/solidjs/jsx-runtime.d.ts.map +1 -0
- package/dist/ts/ui/App.d.ts +17 -0
- package/dist/ts/ui/App.d.ts.map +1 -0
- package/dist/ts/ui/components/Breadcrumb.d.ts +4 -0
- package/dist/ts/ui/components/Breadcrumb.d.ts.map +1 -0
- package/dist/ts/ui/components/Code/index.d.ts +17 -0
- package/dist/ts/ui/components/Code/index.d.ts.map +1 -0
- package/dist/ts/ui/components/Comment.d.ts +49 -0
- package/dist/ts/ui/components/Comment.d.ts.map +1 -0
- package/dist/ts/ui/components/Declaration.d.ts +122 -0
- package/dist/ts/ui/components/Declaration.d.ts.map +1 -0
- package/dist/ts/ui/components/Header.d.ts +5 -0
- package/dist/ts/ui/components/Header.d.ts.map +1 -0
- package/dist/ts/ui/components/Layout.d.ts +5 -0
- package/dist/ts/ui/components/Layout.d.ts.map +1 -0
- package/dist/ts/ui/components/Link.d.ts +15 -0
- package/dist/ts/ui/components/Link.d.ts.map +1 -0
- package/dist/ts/ui/components/LivePreview/Example.d.ts +16 -0
- package/dist/ts/ui/components/LivePreview/Example.d.ts.map +1 -0
- package/dist/ts/ui/components/LivePreview/Sandbox.d.ts +20 -0
- package/dist/ts/ui/components/LivePreview/Sandbox.d.ts.map +1 -0
- package/dist/ts/ui/components/LivePreview/index.d.ts +4 -0
- package/dist/ts/ui/components/LivePreview/index.d.ts.map +1 -0
- package/dist/ts/ui/components/LivePreview/transform.d.ts +19 -0
- package/dist/ts/ui/components/LivePreview/transform.d.ts.map +1 -0
- package/dist/ts/ui/components/Markdown.d.ts +11 -0
- package/dist/ts/ui/components/Markdown.d.ts.map +1 -0
- package/dist/ts/ui/components/Page.d.ts +21 -0
- package/dist/ts/ui/components/Page.d.ts.map +1 -0
- package/dist/ts/ui/components/References.d.ts +2 -0
- package/dist/ts/ui/components/References.d.ts.map +1 -0
- package/dist/ts/ui/components/SearchPalette.d.ts +5 -0
- package/dist/ts/ui/components/SearchPalette.d.ts.map +1 -0
- package/dist/ts/ui/components/Sidebar.d.ts +5 -0
- package/dist/ts/ui/components/Sidebar.d.ts.map +1 -0
- package/dist/ts/ui/components/Syntax.d.ts +15 -0
- package/dist/ts/ui/components/Syntax.d.ts.map +1 -0
- package/dist/ts/ui/components/ThemeToggle.d.ts +2 -0
- package/dist/ts/ui/components/ThemeToggle.d.ts.map +1 -0
- package/dist/ts/ui/components/Type.d.ts +82 -0
- package/dist/ts/ui/components/Type.d.ts.map +1 -0
- package/dist/ts/ui/components/index.d.ts +15 -0
- package/dist/ts/ui/components/index.d.ts.map +1 -0
- package/dist/ts/ui/context/components.d.ts +124 -0
- package/dist/ts/ui/context/components.d.ts.map +1 -0
- package/dist/ts/ui/context/global.d.ts +210 -0
- package/dist/ts/ui/context/global.d.ts.map +1 -0
- package/dist/ts/ui/context/index.d.ts +5 -0
- package/dist/ts/ui/context/index.d.ts.map +1 -0
- package/dist/ts/ui/context/markup/index.d.ts +20 -0
- package/dist/ts/ui/context/markup/index.d.ts.map +1 -0
- package/dist/ts/ui/context/markup/markdown.d.ts +4 -0
- package/dist/ts/ui/context/markup/markdown.d.ts.map +1 -0
- package/dist/ts/ui/context/markup/shiki.d.ts +17 -0
- package/dist/ts/ui/context/markup/shiki.d.ts.map +1 -0
- package/dist/ts/ui/context/markup/util.d.ts +11 -0
- package/dist/ts/ui/context/markup/util.d.ts.map +1 -0
- package/dist/ts/ui/context/project/index.d.ts +25 -0
- package/dist/ts/ui/context/project/index.d.ts.map +1 -0
- package/dist/ts/ui/context/project/indexed.d.ts +4 -0
- package/dist/ts/ui/context/project/indexed.d.ts.map +1 -0
- package/dist/ts/ui/context/project/types.d.ts +13 -0
- package/dist/ts/ui/context/project/types.d.ts.map +1 -0
- package/dist/ts/ui/context/theme.d.ts +12 -0
- package/dist/ts/ui/context/theme.d.ts.map +1 -0
- package/dist/ts/ui/hooks/index.d.ts +29 -0
- package/dist/ts/ui/hooks/index.d.ts.map +1 -0
- package/dist/ts/ui/index.d.ts +5 -0
- package/dist/ts/ui/index.d.ts.map +1 -0
- package/dist/ts/ui/renderer.d.ts +200 -0
- package/dist/ts/ui/renderer.d.ts.map +1 -0
- package/dist/ts/ui/util/comment.d.ts +4 -0
- package/dist/ts/ui/util/comment.d.ts.map +1 -0
- package/dist/ts/ui/util/kind.d.ts +15 -0
- package/dist/ts/ui/util/kind.d.ts.map +1 -0
- package/dist/ts/ui/util/markdown.d.ts +8 -0
- package/dist/ts/ui/util/markdown.d.ts.map +1 -0
- package/dist/ts/ui/util/search.d.ts +20 -0
- package/dist/ts/ui/util/search.d.ts.map +1 -0
- package/package.json +89 -0
- package/src/_lib/fs/index.ts +23 -0
- package/src/_lib/fs/watch.ts +40 -0
- package/src/_lib/index.ts +9 -0
- package/src/_lib/jiti/index.ts +18 -0
- package/src/_lib/path/index.ts +44 -0
- package/src/_lib/pkg/index.ts +165 -0
- package/src/_lib/repo/index.ts +138 -0
- package/src/_lib/slug/index.ts +26 -0
- package/src/_lib/t.ts +17 -0
- package/src/_lib/tsconfig/index.ts +20 -0
- package/src/_lib/util/index.ts +53 -0
- package/src/cli/cmd/dev.ts +86 -0
- package/src/cli/cmd/index.ts +3 -0
- package/src/cli/cmd/init.ts +80 -0
- package/src/cli/cmd/json.ts +28 -0
- package/src/cli/env.ts +6 -0
- package/src/cli/index.ts +14 -0
- package/src/cli/vite/client/index.html +27 -0
- package/src/cli/vite/client/index.tsx +30 -0
- package/src/cli/vite/client/public/apple-touch-icon.png +0 -0
- package/src/cli/vite/client/public/favicon-96x96.png +0 -0
- package/src/cli/vite/client/public/favicon.ico +0 -0
- package/src/cli/vite/client/public/favicon.svg +1 -0
- package/src/cli/vite/client/public/site.webmanifest +21 -0
- package/src/cli/vite/client/public/web-app-manifest-192x192.png +0 -0
- package/src/cli/vite/client/public/web-app-manifest-512x512.png +0 -0
- package/src/cli/vite/index.ts +115 -0
- package/src/cli.ts +6 -0
- package/src/config/defaults.ts +36 -0
- package/src/config/file.ts +53 -0
- package/src/config/index.ts +11 -0
- package/src/config/load.ts +95 -0
- package/src/config/types.ts +59 -0
- package/src/core/index.ts +2 -0
- package/src/core/project/debug.ts +30 -0
- package/src/core/project/index.ts +58 -0
- package/src/core/project/naming.ts +49 -0
- package/src/core/project/routing.ts +234 -0
- package/src/core/project/types.ts +47 -0
- package/src/core/reflect/index.ts +18 -0
- package/src/core/reflect/indexed.ts +242 -0
- package/src/core/reflect/resolve.ts +159 -0
- package/src/core/reflect/scan.ts +816 -0
- package/src/core/reflect/state.ts +75 -0
- package/src/core/reflect/types.ts +164 -0
- package/src/core/reflect/walk.ts +121 -0
- package/src/solidjs/index.ts +1 -0
- package/src/solidjs/jsx-runtime.ts +1 -0
- package/src/ui/App.tsx +115 -0
- package/src/ui/components/Breadcrumb.tsx +53 -0
- package/src/ui/components/Code/index.tsx +112 -0
- package/src/ui/components/Comment.tsx +221 -0
- package/src/ui/components/Declaration.tsx +210 -0
- package/src/ui/components/Header.tsx +99 -0
- package/src/ui/components/Layout.tsx +62 -0
- package/src/ui/components/Link.tsx +43 -0
- package/src/ui/components/LivePreview/Example.tsx +104 -0
- package/src/ui/components/LivePreview/Sandbox.tsx +36 -0
- package/src/ui/components/LivePreview/index.ts +3 -0
- package/src/ui/components/LivePreview/transform.ts +28 -0
- package/src/ui/components/Markdown.tsx +16 -0
- package/src/ui/components/Page.tsx +162 -0
- package/src/ui/components/References.tsx +34 -0
- package/src/ui/components/SearchPalette.tsx +266 -0
- package/src/ui/components/Sidebar.tsx +107 -0
- package/src/ui/components/Syntax.tsx +10 -0
- package/src/ui/components/ThemeToggle.tsx +50 -0
- package/src/ui/components/Type.tsx +583 -0
- package/src/ui/components/index.ts +15 -0
- package/src/ui/context/components.tsx +103 -0
- package/src/ui/context/global.ts +33 -0
- package/src/ui/context/index.ts +4 -0
- package/src/ui/context/markup/index.tsx +39 -0
- package/src/ui/context/markup/markdown.ts +37 -0
- package/src/ui/context/markup/shiki.ts +72 -0
- package/src/ui/context/markup/util.ts +20 -0
- package/src/ui/context/project/index.tsx +47 -0
- package/src/ui/context/project/indexed.ts +52 -0
- package/src/ui/context/project/types.ts +14 -0
- package/src/ui/context/theme.tsx +45 -0
- package/src/ui/hooks/index.ts +116 -0
- package/src/ui/index.ts +4 -0
- package/src/ui/renderer.tsx +31 -0
- package/src/ui/util/comment.ts +12 -0
- package/src/ui/util/kind.ts +120 -0
- package/src/ui/util/markdown.ts +74 -0
- package/src/ui/util/search.ts +84 -0
- package/theme.css +301 -0
- package/tsconfig.client.json +12 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Isolation level for the render container. Only `inline` ships today. */
|
|
2
|
+
export type SandboxIsolate = 'inline';
|
|
3
|
+
/** The element examples render into, plus its teardown. */
|
|
4
|
+
export type Container = {
|
|
5
|
+
target: HTMLElement;
|
|
6
|
+
dispose: () => void;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
};
|
|
9
|
+
/** Builds a {@link Container} inside `root`. Add new strategies to {@link strategies}. */
|
|
10
|
+
export type ContainerStrategy = (root: HTMLElement) => Container;
|
|
11
|
+
/**
|
|
12
|
+
* A contained render location. Resolves a target element via the chosen
|
|
13
|
+
* isolation strategy and hands it back through `ref` once mounted.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Sandbox: (props: {
|
|
16
|
+
isolate?: SandboxIsolate;
|
|
17
|
+
class?: string;
|
|
18
|
+
ref?: (target: HTMLElement) => void;
|
|
19
|
+
}) => import("solid-js").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=Sandbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sandbox.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/LivePreview/Sandbox.tsx"],"names":[],"mappings":"AAEA,2EAA2E;AAC3E,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAA;AAErC,2DAA2D;AAC3D,MAAM,MAAM,SAAS,GAAG;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,CAAA;AAEvF,0FAA0F;AAC1F,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,WAAW,KAAK,SAAS,CAAA;AAahE;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO;IAAE,OAAO,CAAC,EAAE,cAAc,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAA;CAAE,mCAS/G,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/LivePreview/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Transform } from 'sucrase';
|
|
2
|
+
/** Options forwarded to `sucrase.transform`, plus import handling. */
|
|
3
|
+
export type CompileOptions = {
|
|
4
|
+
/** Sucrase transforms to apply. Default `['typescript', 'jsx']`. */
|
|
5
|
+
transforms?: Transform[];
|
|
6
|
+
/** JSX factory, e.g. `'h'`. Left to sucrase's default when unset. */
|
|
7
|
+
jsxPragma?: string;
|
|
8
|
+
/** JSX fragment factory, e.g. `'Fragment'`. */
|
|
9
|
+
jsxFragmentPragma?: string;
|
|
10
|
+
/** Production JSX output (no `__source`/`__self`). Default `true`. */
|
|
11
|
+
production?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Transform a TS/JSX snippet into runnable JS. Framework-agnostic: point
|
|
15
|
+
* `jsxPragma` / `jsxFragmentPragma` at whatever runtime you inject when
|
|
16
|
+
* executing the result.
|
|
17
|
+
*/
|
|
18
|
+
export declare const transform: (src: string, options?: CompileOptions) => string;
|
|
19
|
+
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/LivePreview/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,SAAS,CAAA;AAEvE,sEAAsE;AACtE,MAAM,MAAM,cAAc,GAAG;IAC3B,oEAAoE;IACpE,UAAU,CAAC,EAAE,SAAS,EAAE,CAAA;IACxB,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,+CAA+C;IAC/C,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,sEAAsE;IACtE,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,EAAE,UAAS,cAAmB,KAAG,MAQrE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const Markdown: {
|
|
2
|
+
(props: {
|
|
3
|
+
source: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
}): import("solid-js").JSX.Element;
|
|
6
|
+
Inline(props: {
|
|
7
|
+
source?: string;
|
|
8
|
+
class?: string;
|
|
9
|
+
}): import("solid-js").JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=Markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/Markdown.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;YAAW;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;kBAMxC;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;CAF5D,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Types } from '../context/index.ts';
|
|
2
|
+
export declare const Page: import("solid-js").Component<{
|
|
3
|
+
decl: Types.Declaration;
|
|
4
|
+
route: Types.RouteNode<"declaration" | "module">;
|
|
5
|
+
}>;
|
|
6
|
+
/** Renders a markdown page — its `content` parsed inline. */
|
|
7
|
+
export declare const MarkdownPage: import("solid-js").Component<{
|
|
8
|
+
route: Types.RouteNode<"markdown">;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const PageHeader: import("solid-js").Component<{
|
|
11
|
+
decl: Types.Declaration;
|
|
12
|
+
route: Types.RouteNode<"declaration" | "module">;
|
|
13
|
+
}>;
|
|
14
|
+
/** Stock source-location renderer. Replaceable via `slots.source`. */
|
|
15
|
+
export declare const Source: import("solid-js").Component<{
|
|
16
|
+
sources?: Types.Source[] | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const References: import("solid-js").Component<{
|
|
19
|
+
id: number;
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=Page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/Page.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA0B,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAYxE,eAAO,MAAM,IAAI;;;EAOf,CAAA;AAEF,6DAA6D;AAC7D,eAAO,MAAM,YAAY;;EAIvB,CAAA;AAEF,eAAO,MAAM,UAAU;;;EAYrB,CAAA;AAEF,sEAAsE;AACtE,eAAO,MAAM,MAAM;;EAkBjB,CAAA;AAwEF,eAAO,MAAM,UAAU;;EAarB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"References.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/References.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchPalette.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/SearchPalette.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa,GAAI,OAAO;IAAE,IAAI,EAAE,MAAM,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,mCA6KhF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/Sidebar.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,OAAO;;;EAWlB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare namespace Syntax {
|
|
2
|
+
/** Muted punctuation — brackets, commas, `=`, etc. */
|
|
3
|
+
const Punct: (p: {
|
|
4
|
+
children: string;
|
|
5
|
+
}) => import("solid-js").JSX.Element;
|
|
6
|
+
/** Accent keyword — `const`, `type`, `extends`, intrinsics. */
|
|
7
|
+
const Kw: (p: {
|
|
8
|
+
children: string;
|
|
9
|
+
}) => import("solid-js").JSX.Element;
|
|
10
|
+
/** Default-styled identifier. */
|
|
11
|
+
const Name: (p: {
|
|
12
|
+
children: string;
|
|
13
|
+
}) => import("solid-js").JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Syntax.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Syntax.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/Syntax.tsx"],"names":[],"mappings":"AAAA,yBAAiB,MAAM,CAAC;IACtB,sDAAsD;IAC/C,MAAM,KAAK,GAAI,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,mCAAgD,CAAA;IAE7F,+DAA+D;IACxD,MAAM,EAAE,GAAI,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,mCAAkD,CAAA;IAE5F,iCAAiC;IAC1B,MAAM,IAAI,GAAI,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,mCAA8B,CAAA;CAC3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeToggle.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/ThemeToggle.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,WAAW,sCAqCvB,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type Types } from '../context/index.ts';
|
|
2
|
+
import { type Kind } from '../util/kind.ts';
|
|
3
|
+
type T = Types.Type;
|
|
4
|
+
/**
|
|
5
|
+
* Render an arbitrary type. The body re-evaluates when `props.type` changes
|
|
6
|
+
* so that navigating between pages with different type shapes swaps the
|
|
7
|
+
* sub-renderer instead of freezing on the original branch (a classic Solid
|
|
8
|
+
* pitfall where a top-level `switch` in a component runs only on mount).
|
|
9
|
+
*/
|
|
10
|
+
export declare const Type: {
|
|
11
|
+
(props: {
|
|
12
|
+
type: T | undefined;
|
|
13
|
+
}): any;
|
|
14
|
+
Join(props: {
|
|
15
|
+
sep: string;
|
|
16
|
+
items: T[];
|
|
17
|
+
}): import("solid-js").JSX.Element;
|
|
18
|
+
TypeArgs(props: {
|
|
19
|
+
args?: T[];
|
|
20
|
+
}): import("solid-js").JSX.Element;
|
|
21
|
+
ReferenceType(props: {
|
|
22
|
+
type: Types.Type<"reference">;
|
|
23
|
+
}): import("solid-js").JSX.Element;
|
|
24
|
+
ConditionalType(props: {
|
|
25
|
+
type: Types.Type<"conditional">;
|
|
26
|
+
}): import("solid-js").JSX.Element;
|
|
27
|
+
RecordType(props: {
|
|
28
|
+
type: Types.Type<"record">;
|
|
29
|
+
}): import("solid-js").JSX.Element;
|
|
30
|
+
SignatureExpr(props: {
|
|
31
|
+
sig: Types.Part<"signature">;
|
|
32
|
+
arrow?: boolean;
|
|
33
|
+
}): import("solid-js").JSX.Element;
|
|
34
|
+
Generics(props: {
|
|
35
|
+
generics?: Types.Part<"generic">[];
|
|
36
|
+
}): import("solid-js").JSX.Element;
|
|
37
|
+
TypeBlock(props: {
|
|
38
|
+
type: T | undefined;
|
|
39
|
+
}): import("solid-js").JSX.Element;
|
|
40
|
+
TypeBox(props: {
|
|
41
|
+
type: T | undefined;
|
|
42
|
+
class?: string;
|
|
43
|
+
}): import("solid-js").JSX.Element;
|
|
44
|
+
Inline(props: {
|
|
45
|
+
type?: Types.Type;
|
|
46
|
+
text: string;
|
|
47
|
+
}): import("solid-js").JSX.Element;
|
|
48
|
+
KindBadge(props: {
|
|
49
|
+
kind: Kind | string;
|
|
50
|
+
class?: string;
|
|
51
|
+
}): import("solid-js").JSX.Element;
|
|
52
|
+
KindLabel(props: {
|
|
53
|
+
kind: Kind | string;
|
|
54
|
+
class?: string;
|
|
55
|
+
}): import("solid-js").JSX.Element;
|
|
56
|
+
NameLink(props: {
|
|
57
|
+
id?: number;
|
|
58
|
+
name: string;
|
|
59
|
+
class?: string;
|
|
60
|
+
}): import("solid-js").JSX.Element;
|
|
61
|
+
SignatureLine(props: {
|
|
62
|
+
sig: Types.Part<"signature">;
|
|
63
|
+
name?: string;
|
|
64
|
+
/** Owning declaration id — when set, the name renders as a link to its page. */
|
|
65
|
+
id?: number;
|
|
66
|
+
kind?: "function" | "method" | "constructor";
|
|
67
|
+
}): import("solid-js").JSX.Element;
|
|
68
|
+
Signature(props: {
|
|
69
|
+
sig: Types.Part<"signature">;
|
|
70
|
+
name?: string;
|
|
71
|
+
id?: number;
|
|
72
|
+
kind?: "function" | "method" | "constructor";
|
|
73
|
+
}): import("solid-js").JSX.Element;
|
|
74
|
+
SignatureCompact(props: {
|
|
75
|
+
sig: Types.Part<"signature">;
|
|
76
|
+
name?: string;
|
|
77
|
+
id?: number;
|
|
78
|
+
kind?: "function" | "method" | "constructor";
|
|
79
|
+
}): import("solid-js").JSX.Element;
|
|
80
|
+
};
|
|
81
|
+
export {};
|
|
82
|
+
//# sourceMappingURL=Type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Type.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/Type.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAEhD,OAAO,EAAE,KAAK,IAAI,EAAoB,MAAM,iBAAiB,CAAA;AAQ7D,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,CAAA;AAEnB;;;;;GAKG;AACH,eAAO,MAAM,IAAI;YAAW;QAAE,IAAI,EAAE,CAAC,GAAG,SAAS,CAAA;KAAE,GAAG,GAAG;gBAoLrC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,CAAC,EAAE,CAAA;KAAE;oBAavB;QAAE,IAAI,CAAC,EAAE,CAAC,EAAE,CAAA;KAAE;yBAQT;QAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;KAAE;2BAmB/B;QAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;KAAE;sBAkDxC;QAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;KAAE;yBA6F3B;QAAE,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;oBA6BtD;QAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAA;KAAE;qBA6BrC;QAAE,IAAI,EAAE,CAAC,GAAG,SAAS,CAAA;KAAE;mBAMzB;QAAE,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;kBAMxC;QAAE,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;qBAiBhC;QAAE,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;qBAOvC;QAAE,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;oBASxC;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;yBAsBxC;QAC3B,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,gFAAgF;QAChF,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,IAAI,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,aAAa,CAAA;KAC7C;qBAuCwB;QACvB,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,IAAI,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,aAAa,CAAA;KAC7C;4BAa+B;QAC9B,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,IAAI,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,aAAa,CAAA;KAC7C;CA5iB+F,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './LivePreview/index.ts';
|
|
2
|
+
export * from './Breadcrumb.tsx';
|
|
3
|
+
export * from './Code/index.tsx';
|
|
4
|
+
export * from './Comment.tsx';
|
|
5
|
+
export * from './Declaration.tsx';
|
|
6
|
+
export * from './Header.tsx';
|
|
7
|
+
export * from './Layout.tsx';
|
|
8
|
+
export * from './Link.tsx';
|
|
9
|
+
export * from './Markdown.tsx';
|
|
10
|
+
export * from './Page.tsx';
|
|
11
|
+
export * from './References.tsx';
|
|
12
|
+
export * from './Sidebar.tsx';
|
|
13
|
+
export * from './Syntax.tsx';
|
|
14
|
+
export * from './Type.tsx';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAE7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { Accessor, Component } from 'solid-js';
|
|
2
|
+
import type { JSX } from 'solid-js/jsx-runtime';
|
|
3
|
+
import type { Types } from '../context/index.ts';
|
|
4
|
+
import type { t } from '../../_lib/index.ts';
|
|
5
|
+
/**
|
|
6
|
+
* Provide a component registry to descendants. When nested inside another
|
|
7
|
+
* `<ComponentsProvider>` the inner value is shallow-merged onto the outer one,
|
|
8
|
+
* so a wrapper preset can establish defaults that an app extends without
|
|
9
|
+
* losing the outer's entries.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ComponentsProvider: (props: {
|
|
12
|
+
value?: Components;
|
|
13
|
+
children: JSX.Element;
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
/** Read the active (already-merged) component registry. */
|
|
16
|
+
export declare const useComponents: () => Accessor<Components>;
|
|
17
|
+
/**
|
|
18
|
+
* Build a slot dispatcher in one line: look up the override under `key`,
|
|
19
|
+
* forward `Default` so it can decorate, otherwise render the default. The
|
|
20
|
+
* override and default share the same prop shape — that's what the
|
|
21
|
+
* `WithDefault<P>` wrapper in {@link Slots} pins down.
|
|
22
|
+
*/
|
|
23
|
+
export declare const createSlot: <K extends keyof Components>(key: K, Default: Component<t.Compute<Omit<Params<Components[K]>[0], "Default">>>) => Component<t.Compute<Omit<Params<Components[K]>[0], "Default">>>;
|
|
24
|
+
type Params<T> = T extends (...args: infer P) => any ? P : never;
|
|
25
|
+
type WithDefault<P extends Record<string, any>> = P & {
|
|
26
|
+
Default: Component<P>;
|
|
27
|
+
};
|
|
28
|
+
export type DeclarationProps<K extends keyof Types.DeclarationMap> = WithDefault<{
|
|
29
|
+
decl: Types.DeclarationMap[K];
|
|
30
|
+
}>;
|
|
31
|
+
type PageProps = {
|
|
32
|
+
decl: Types.Declaration;
|
|
33
|
+
route: Types.RouteNode<'declaration' | 'module'>;
|
|
34
|
+
};
|
|
35
|
+
export type SlotComponent<K extends keyof Components> = Components[K];
|
|
36
|
+
/**
|
|
37
|
+
* Slot override signatures. Every slot receives `Default` typed to the
|
|
38
|
+
* stock component's props so the override can decorate (`<Default {...p} />`
|
|
39
|
+
* plus extras) instead of replacing wholesale.
|
|
40
|
+
*/
|
|
41
|
+
export interface Components {
|
|
42
|
+
home?: Component<WithDefault<{}>>;
|
|
43
|
+
layout?: Component<WithDefault<{
|
|
44
|
+
children: JSX.Element;
|
|
45
|
+
}>>;
|
|
46
|
+
header?: Component<WithDefault<{
|
|
47
|
+
onMenu?: () => void;
|
|
48
|
+
onSearch?: () => void;
|
|
49
|
+
}>>;
|
|
50
|
+
sidebar?: Component<WithDefault<{
|
|
51
|
+
onNavigate?: () => void;
|
|
52
|
+
class?: string;
|
|
53
|
+
}>>;
|
|
54
|
+
page?: Component<WithDefault<PageProps>>;
|
|
55
|
+
'page.markdown'?: Component<WithDefault<{
|
|
56
|
+
route: Types.RouteNode<'markdown'>;
|
|
57
|
+
}>>;
|
|
58
|
+
'page.header'?: Component<WithDefault<PageProps>>;
|
|
59
|
+
'page.header.breadcrumb'?: Component<WithDefault<{
|
|
60
|
+
id: number;
|
|
61
|
+
}>>;
|
|
62
|
+
'page.source'?: Component<WithDefault<{
|
|
63
|
+
sources?: Types.Source[];
|
|
64
|
+
}>>;
|
|
65
|
+
'page.references'?: Component<WithDefault<{
|
|
66
|
+
id: number;
|
|
67
|
+
}>>;
|
|
68
|
+
declaration?: Component<WithDefault<{
|
|
69
|
+
decl: Types.Declaration;
|
|
70
|
+
}>>;
|
|
71
|
+
'declaration.function'?: Component<DeclarationProps<'function'>>;
|
|
72
|
+
'declaration.variable'?: Component<DeclarationProps<'variable'>>;
|
|
73
|
+
'declaration.type-alias'?: Component<DeclarationProps<'type-alias'>>;
|
|
74
|
+
'declaration.class'?: Component<DeclarationProps<'class'>>;
|
|
75
|
+
'declaration.interface'?: Component<DeclarationProps<'interface'>>;
|
|
76
|
+
'declaration.enum'?: Component<DeclarationProps<'enum'>>;
|
|
77
|
+
'declaration.module'?: Component<DeclarationProps<'module'>>;
|
|
78
|
+
'declaration.namespace'?: Component<DeclarationProps<'namespace'>>;
|
|
79
|
+
comment?: Component<WithDefault<{
|
|
80
|
+
comment?: Types.Comment;
|
|
81
|
+
class?: string;
|
|
82
|
+
}>>;
|
|
83
|
+
'comment.parameters'?: Component<WithDefault<{
|
|
84
|
+
tags: Types.CommentTagMap['@param'][];
|
|
85
|
+
}>>;
|
|
86
|
+
'comment.properties'?: Component<WithDefault<{
|
|
87
|
+
tags: Types.CommentTagMap['@property'][];
|
|
88
|
+
}>>;
|
|
89
|
+
tag?: Component<WithDefault<{
|
|
90
|
+
tag: Types.CommentTag;
|
|
91
|
+
}>>;
|
|
92
|
+
'tag.returns'?: Component<WithDefault<{
|
|
93
|
+
tag: t.Compute<Types.CommentTagMap['@returns']>;
|
|
94
|
+
}>>;
|
|
95
|
+
'tag.throws'?: Component<WithDefault<{
|
|
96
|
+
tag: Types.CommentTagMap['@throws'];
|
|
97
|
+
}>>;
|
|
98
|
+
'tag.type'?: Component<WithDefault<{
|
|
99
|
+
tag: Types.CommentTagMap['@type'];
|
|
100
|
+
}>>;
|
|
101
|
+
'tag.satisfies'?: Component<WithDefault<{
|
|
102
|
+
tag: Types.CommentTagMap['@satisfies'];
|
|
103
|
+
}>>;
|
|
104
|
+
'tag.example'?: Component<WithDefault<{
|
|
105
|
+
tag: Types.CommentTagMap['@example'];
|
|
106
|
+
}>>;
|
|
107
|
+
'tag.see'?: Component<WithDefault<{
|
|
108
|
+
tag: Types.CommentTagMap['@see'];
|
|
109
|
+
}>>;
|
|
110
|
+
'tag.template'?: Component<WithDefault<{
|
|
111
|
+
tag: Types.CommentTagMap['@template'];
|
|
112
|
+
}>>;
|
|
113
|
+
'tag.augments'?: Component<WithDefault<{
|
|
114
|
+
tag: Types.CommentTagMap['@augments'];
|
|
115
|
+
}>>;
|
|
116
|
+
'tag.implements'?: Component<WithDefault<{
|
|
117
|
+
tag: Types.CommentTagMap['@implements'];
|
|
118
|
+
}>>;
|
|
119
|
+
'tag.*'?: Component<WithDefault<{
|
|
120
|
+
tag: Types.CommentTag;
|
|
121
|
+
}>>;
|
|
122
|
+
}
|
|
123
|
+
export {};
|
|
124
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/ui/context/components.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAG/C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAI5C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aAAa,CAAC,CAAA;KAAE,CAAC,CAAC,CAAA;IACtF,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC;QAAE,GAAG,EAAE,KAAK,CAAC,UAAU,CAAA;KAAE,CAAC,CAAC,CAAA;CAC5D"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { type Signal } from 'solid-js';
|
|
2
|
+
import type { Types } from '../context/index.ts';
|
|
3
|
+
import type { Components } from './components.tsx';
|
|
4
|
+
declare global {
|
|
5
|
+
interface Lickle {
|
|
6
|
+
components: Signal<Components>;
|
|
7
|
+
json: Signal<Types.ProjectJson | null>;
|
|
8
|
+
rendered: Signal<boolean>;
|
|
9
|
+
}
|
|
10
|
+
interface Window {
|
|
11
|
+
lickle: Lickle;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare const getComponents: () => Components;
|
|
15
|
+
export declare const setComponents: (components: Partial<Components>) => {
|
|
16
|
+
home?: import("solid-js").Component<{
|
|
17
|
+
Default: import("solid-js").Component<{}>;
|
|
18
|
+
}>;
|
|
19
|
+
layout?: import("solid-js").Component<{
|
|
20
|
+
children: import("solid-js").JSX.Element;
|
|
21
|
+
} & {
|
|
22
|
+
Default: import("solid-js").Component<{
|
|
23
|
+
children: import("solid-js").JSX.Element;
|
|
24
|
+
}>;
|
|
25
|
+
}>;
|
|
26
|
+
header?: import("solid-js").Component<{
|
|
27
|
+
onMenu?: () => void;
|
|
28
|
+
onSearch?: () => void;
|
|
29
|
+
} & {
|
|
30
|
+
Default: import("solid-js").Component<{
|
|
31
|
+
onMenu?: () => void;
|
|
32
|
+
onSearch?: () => void;
|
|
33
|
+
}>;
|
|
34
|
+
}>;
|
|
35
|
+
sidebar?: import("solid-js").Component<{
|
|
36
|
+
onNavigate?: () => void;
|
|
37
|
+
class?: string;
|
|
38
|
+
} & {
|
|
39
|
+
Default: import("solid-js").Component<{
|
|
40
|
+
onNavigate?: () => void;
|
|
41
|
+
class?: string;
|
|
42
|
+
}>;
|
|
43
|
+
}>;
|
|
44
|
+
page?: import("solid-js").Component<{
|
|
45
|
+
decl: Types.Declaration;
|
|
46
|
+
route: Types.RouteNode<"declaration" | "module">;
|
|
47
|
+
} & {
|
|
48
|
+
Default: import("solid-js").Component<{
|
|
49
|
+
decl: Types.Declaration;
|
|
50
|
+
route: Types.RouteNode<"declaration" | "module">;
|
|
51
|
+
}>;
|
|
52
|
+
}>;
|
|
53
|
+
'page.markdown'?: import("solid-js").Component<{
|
|
54
|
+
route: Types.RouteNode<"markdown">;
|
|
55
|
+
} & {
|
|
56
|
+
Default: import("solid-js").Component<{
|
|
57
|
+
route: Types.RouteNode<"markdown">;
|
|
58
|
+
}>;
|
|
59
|
+
}>;
|
|
60
|
+
'page.header'?: import("solid-js").Component<{
|
|
61
|
+
decl: Types.Declaration;
|
|
62
|
+
route: Types.RouteNode<"declaration" | "module">;
|
|
63
|
+
} & {
|
|
64
|
+
Default: import("solid-js").Component<{
|
|
65
|
+
decl: Types.Declaration;
|
|
66
|
+
route: Types.RouteNode<"declaration" | "module">;
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
69
|
+
'page.header.breadcrumb'?: import("solid-js").Component<{
|
|
70
|
+
id: number;
|
|
71
|
+
} & {
|
|
72
|
+
Default: import("solid-js").Component<{
|
|
73
|
+
id: number;
|
|
74
|
+
}>;
|
|
75
|
+
}>;
|
|
76
|
+
'page.source'?: import("solid-js").Component<{
|
|
77
|
+
sources?: Types.Source[];
|
|
78
|
+
} & {
|
|
79
|
+
Default: import("solid-js").Component<{
|
|
80
|
+
sources?: Types.Source[];
|
|
81
|
+
}>;
|
|
82
|
+
}>;
|
|
83
|
+
'page.references'?: import("solid-js").Component<{
|
|
84
|
+
id: number;
|
|
85
|
+
} & {
|
|
86
|
+
Default: import("solid-js").Component<{
|
|
87
|
+
id: number;
|
|
88
|
+
}>;
|
|
89
|
+
}>;
|
|
90
|
+
declaration?: import("solid-js").Component<{
|
|
91
|
+
decl: Types.Declaration;
|
|
92
|
+
} & {
|
|
93
|
+
Default: import("solid-js").Component<{
|
|
94
|
+
decl: Types.Declaration;
|
|
95
|
+
}>;
|
|
96
|
+
}>;
|
|
97
|
+
'declaration.function'?: import("solid-js").Component<import("./components.tsx").DeclarationProps<"function">>;
|
|
98
|
+
'declaration.variable'?: import("solid-js").Component<import("./components.tsx").DeclarationProps<"variable">>;
|
|
99
|
+
'declaration.type-alias'?: import("solid-js").Component<import("./components.tsx").DeclarationProps<"type-alias">>;
|
|
100
|
+
'declaration.class'?: import("solid-js").Component<import("./components.tsx").DeclarationProps<"class">>;
|
|
101
|
+
'declaration.interface'?: import("solid-js").Component<import("./components.tsx").DeclarationProps<"interface">>;
|
|
102
|
+
'declaration.enum'?: import("solid-js").Component<import("./components.tsx").DeclarationProps<"enum">>;
|
|
103
|
+
'declaration.module'?: import("solid-js").Component<import("./components.tsx").DeclarationProps<"module">>;
|
|
104
|
+
'declaration.namespace'?: import("solid-js").Component<import("./components.tsx").DeclarationProps<"namespace">>;
|
|
105
|
+
comment?: import("solid-js").Component<{
|
|
106
|
+
comment?: Types.Comment;
|
|
107
|
+
class?: string;
|
|
108
|
+
} & {
|
|
109
|
+
Default: import("solid-js").Component<{
|
|
110
|
+
comment?: Types.Comment;
|
|
111
|
+
class?: string;
|
|
112
|
+
}>;
|
|
113
|
+
}>;
|
|
114
|
+
'comment.parameters'?: import("solid-js").Component<{
|
|
115
|
+
tags: Types.CommentTagMap["@param"][];
|
|
116
|
+
} & {
|
|
117
|
+
Default: import("solid-js").Component<{
|
|
118
|
+
tags: Types.CommentTagMap["@param"][];
|
|
119
|
+
}>;
|
|
120
|
+
}>;
|
|
121
|
+
'comment.properties'?: import("solid-js").Component<{
|
|
122
|
+
tags: Types.CommentTagMap["@property"][];
|
|
123
|
+
} & {
|
|
124
|
+
Default: import("solid-js").Component<{
|
|
125
|
+
tags: Types.CommentTagMap["@property"][];
|
|
126
|
+
}>;
|
|
127
|
+
}>;
|
|
128
|
+
tag?: import("solid-js").Component<{
|
|
129
|
+
tag: Types.CommentTag;
|
|
130
|
+
} & {
|
|
131
|
+
Default: import("solid-js").Component<{
|
|
132
|
+
tag: Types.CommentTag;
|
|
133
|
+
}>;
|
|
134
|
+
}>;
|
|
135
|
+
'tag.returns'?: import("solid-js").Component<{
|
|
136
|
+
tag: import("../../_lib/t.ts").Compute<Types.CommentTagMap["@returns"]>;
|
|
137
|
+
} & {
|
|
138
|
+
Default: import("solid-js").Component<{
|
|
139
|
+
tag: import("../../_lib/t.ts").Compute<Types.CommentTagMap["@returns"]>;
|
|
140
|
+
}>;
|
|
141
|
+
}>;
|
|
142
|
+
'tag.throws'?: import("solid-js").Component<{
|
|
143
|
+
tag: Types.CommentTagMap["@throws"];
|
|
144
|
+
} & {
|
|
145
|
+
Default: import("solid-js").Component<{
|
|
146
|
+
tag: Types.CommentTagMap["@throws"];
|
|
147
|
+
}>;
|
|
148
|
+
}>;
|
|
149
|
+
'tag.type'?: import("solid-js").Component<{
|
|
150
|
+
tag: Types.CommentTagMap["@type"];
|
|
151
|
+
} & {
|
|
152
|
+
Default: import("solid-js").Component<{
|
|
153
|
+
tag: Types.CommentTagMap["@type"];
|
|
154
|
+
}>;
|
|
155
|
+
}>;
|
|
156
|
+
'tag.satisfies'?: import("solid-js").Component<{
|
|
157
|
+
tag: Types.CommentTagMap["@satisfies"];
|
|
158
|
+
} & {
|
|
159
|
+
Default: import("solid-js").Component<{
|
|
160
|
+
tag: Types.CommentTagMap["@satisfies"];
|
|
161
|
+
}>;
|
|
162
|
+
}>;
|
|
163
|
+
'tag.example'?: import("solid-js").Component<{
|
|
164
|
+
tag: Types.CommentTagMap["@example"];
|
|
165
|
+
} & {
|
|
166
|
+
Default: import("solid-js").Component<{
|
|
167
|
+
tag: Types.CommentTagMap["@example"];
|
|
168
|
+
}>;
|
|
169
|
+
}>;
|
|
170
|
+
'tag.see'?: import("solid-js").Component<{
|
|
171
|
+
tag: Types.CommentTagMap["@see"];
|
|
172
|
+
} & {
|
|
173
|
+
Default: import("solid-js").Component<{
|
|
174
|
+
tag: Types.CommentTagMap["@see"];
|
|
175
|
+
}>;
|
|
176
|
+
}>;
|
|
177
|
+
'tag.template'?: import("solid-js").Component<{
|
|
178
|
+
tag: Types.CommentTagMap["@template"];
|
|
179
|
+
} & {
|
|
180
|
+
Default: import("solid-js").Component<{
|
|
181
|
+
tag: Types.CommentTagMap["@template"];
|
|
182
|
+
}>;
|
|
183
|
+
}>;
|
|
184
|
+
'tag.augments'?: import("solid-js").Component<{
|
|
185
|
+
tag: Types.CommentTagMap["@augments"];
|
|
186
|
+
} & {
|
|
187
|
+
Default: import("solid-js").Component<{
|
|
188
|
+
tag: Types.CommentTagMap["@augments"];
|
|
189
|
+
}>;
|
|
190
|
+
}>;
|
|
191
|
+
'tag.implements'?: import("solid-js").Component<{
|
|
192
|
+
tag: Types.CommentTagMap["@implements"];
|
|
193
|
+
} & {
|
|
194
|
+
Default: import("solid-js").Component<{
|
|
195
|
+
tag: Types.CommentTagMap["@implements"];
|
|
196
|
+
}>;
|
|
197
|
+
}>;
|
|
198
|
+
'tag.*'?: import("solid-js").Component<{
|
|
199
|
+
tag: Types.CommentTag;
|
|
200
|
+
} & {
|
|
201
|
+
Default: import("solid-js").Component<{
|
|
202
|
+
tag: Types.CommentTag;
|
|
203
|
+
}>;
|
|
204
|
+
}>;
|
|
205
|
+
};
|
|
206
|
+
export declare const getJson: () => Types.ProjectJson | null;
|
|
207
|
+
export declare const setJson: (json: Types.ProjectJson | null) => Types.ProjectJson | null;
|
|
208
|
+
export declare const getRendered: () => boolean;
|
|
209
|
+
export declare const setRendered: (rendered: boolean) => boolean;
|
|
210
|
+
//# sourceMappingURL=global.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../../src/ui/context/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,UAAU,CAAA;AAEpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAA;QAC9B,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;QACtC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;KAC1B;IACD,UAAU,MAAM;QACd,MAAM,EAAE,MAAM,CAAA;KACf;CACF;AAUD,eAAO,MAAM,aAAa,kBAAsC,CAAA;AAChE,eAAO,MAAM,aAAa,GAAI,YAAY,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACqB,CAAA;AAElF,eAAO,MAAM,OAAO,gCAAgC,CAAA;AACpD,eAAO,MAAM,OAAO,GAAI,MAAM,KAAK,CAAC,WAAW,GAAG,IAAI,6BAAgC,CAAA;AAEtF,eAAO,MAAM,WAAW,eAAoC,CAAA;AAC5D,eAAO,MAAM,WAAW,GAAI,UAAU,OAAO,YAAwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
import type { Marked } from 'marked';
|
|
3
|
+
import { type Highlighter, type CodeToHtmlOptions } from './shiki.ts';
|
|
4
|
+
export * from './util.ts';
|
|
5
|
+
export type { Highlighter, CodeToHtmlOptions };
|
|
6
|
+
type MarkupContext = {
|
|
7
|
+
promise: Promise<Highlighter>;
|
|
8
|
+
highlighter: () => Highlighter | undefined;
|
|
9
|
+
marked: () => Marked | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare const MarkupProvider: (props: {
|
|
12
|
+
children: JSX.Element;
|
|
13
|
+
}) => JSX.Element;
|
|
14
|
+
export declare const useMarkup: () => MarkupContext;
|
|
15
|
+
export declare const useCodeToHtml: (p: {
|
|
16
|
+
code: string;
|
|
17
|
+
lang?: string;
|
|
18
|
+
structure?: "inline" | "classic";
|
|
19
|
+
}) => import("solid-js").Accessor<string | undefined>;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|