polen 0.9.1-next.2 → 0.10.0-next.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.
- package/README.md +49 -364
- package/build/api/api.d.ts +1 -0
- package/build/api/api.d.ts.map +1 -1
- package/build/api/api.js +1 -0
- package/build/api/api.js.map +1 -1
- package/build/api/config/configurator.d.ts +9 -1
- package/build/api/config/configurator.d.ts.map +1 -1
- package/build/api/config/configurator.js +18 -6
- package/build/api/config/configurator.js.map +1 -1
- package/build/api/config/load.js +5 -5
- package/build/api/config/load.js.map +1 -1
- package/build/api/config-resolver/resolve.js +2 -2
- package/build/api/config-resolver/resolve.js.map +1 -1
- package/build/api/content/$$.d.ts +7 -0
- package/build/api/content/$$.d.ts.map +1 -0
- package/build/api/content/$$.js +7 -0
- package/build/api/content/$$.js.map +1 -0
- package/build/api/content/$.d.ts +2 -0
- package/build/api/content/$.d.ts.map +1 -0
- package/build/api/content/$.js +2 -0
- package/build/api/content/$.js.map +1 -0
- package/build/api/content/metadata.d.ts +10 -0
- package/build/api/content/metadata.d.ts.map +1 -0
- package/build/api/content/metadata.js +9 -0
- package/build/api/content/metadata.js.map +1 -0
- package/build/api/content/navbar.d.ts +10 -0
- package/build/api/content/navbar.d.ts.map +1 -0
- package/build/api/content/navbar.js +45 -0
- package/build/api/content/navbar.js.map +1 -0
- package/build/api/content/page.d.ts +11 -0
- package/build/api/content/page.d.ts.map +1 -0
- package/build/api/content/page.js +2 -0
- package/build/api/content/page.js.map +1 -0
- package/build/api/content/scan.d.ts +19 -0
- package/build/api/content/scan.d.ts.map +1 -0
- package/build/api/content/scan.js +90 -0
- package/build/api/content/scan.js.map +1 -0
- package/build/api/content/sidebar.d.ts +104 -0
- package/build/api/content/sidebar.d.ts.map +1 -0
- package/build/api/content/sidebar.js +166 -0
- package/build/api/content/sidebar.js.map +1 -0
- package/build/api/content/utils.d.ts +5 -0
- package/build/api/content/utils.d.ts.map +1 -0
- package/build/api/content/utils.js +8 -0
- package/build/api/content/utils.js.map +1 -0
- package/build/api/schema/data-sources/schema-directory/schema-directory.js +1 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.js.map +1 -1
- package/build/api/static/index.d.ts +2 -0
- package/build/api/static/index.d.ts.map +1 -0
- package/build/api/static/index.js +2 -0
- package/build/api/static/index.js.map +1 -0
- package/build/api/static/manifest.d.ts +18 -0
- package/build/api/static/manifest.d.ts.map +1 -0
- package/build/api/static/manifest.js +13 -0
- package/build/api/static/manifest.js.map +1 -0
- package/build/api/static/rebase.d.ts +14 -0
- package/build/api/static/rebase.d.ts.map +1 -0
- package/build/api/static/rebase.js +110 -0
- package/build/api/static/rebase.js.map +1 -0
- package/build/api/static/static.d.ts +3 -0
- package/build/api/static/static.d.ts.map +1 -0
- package/build/api/static/static.js +3 -0
- package/build/api/static/static.js.map +1 -0
- package/build/api/vite/plugins/branding/index.d.ts +4 -0
- package/build/api/vite/plugins/branding/index.d.ts.map +1 -0
- package/build/api/vite/plugins/branding/index.js +80 -0
- package/build/api/vite/plugins/branding/index.js.map +1 -0
- package/build/api/vite/plugins/build.d.ts.map +1 -1
- package/build/api/vite/plugins/build.js +22 -1
- package/build/api/vite/plugins/build.js.map +1 -1
- package/build/api/vite/plugins/core.d.ts +2 -2
- package/build/api/vite/plugins/core.d.ts.map +1 -1
- package/build/api/vite/plugins/core.js +4 -5
- package/build/api/vite/plugins/core.js.map +1 -1
- package/build/api/vite/plugins/main.d.ts.map +1 -1
- package/build/api/vite/plugins/main.js +2 -1
- package/build/api/vite/plugins/main.js.map +1 -1
- package/build/api/vite/plugins/pages.d.ts +8 -14
- package/build/api/vite/plugins/pages.d.ts.map +1 -1
- package/build/api/vite/plugins/pages.js +110 -183
- package/build/api/vite/plugins/pages.js.map +1 -1
- package/build/api/vite/plugins/serve.js +5 -5
- package/build/api/vite/plugins/serve.js.map +1 -1
- package/build/cli/_/self-contained-mode.js +5 -5
- package/build/cli/_/self-contained-mode.js.map +1 -1
- package/build/cli/commands/static/$default.d.ts +3 -0
- package/build/cli/commands/static/$default.d.ts.map +1 -0
- package/build/cli/commands/static/$default.js +38 -0
- package/build/cli/commands/static/$default.js.map +1 -0
- package/build/cli/commands/static/rebase.d.ts +2 -0
- package/build/cli/commands/static/rebase.d.ts.map +1 -0
- package/build/cli/commands/static/rebase.js +26 -0
- package/build/cli/commands/static/rebase.js.map +1 -0
- package/build/cli/commands/static.d.ts +3 -0
- package/build/cli/commands/static.d.ts.map +1 -0
- package/build/cli/commands/static.js +5 -0
- package/build/cli/commands/static.js.map +1 -0
- package/build/exports/components.d.ts +2 -0
- package/build/exports/components.d.ts.map +1 -0
- package/build/exports/components.js +2 -0
- package/build/exports/components.js.map +1 -0
- package/build/lib/demos/builder.d.ts +83 -0
- package/build/lib/demos/builder.d.ts.map +1 -0
- package/build/lib/demos/builder.js +237 -0
- package/build/lib/demos/builder.js.map +1 -0
- package/build/lib/demos/config-schema.d.ts +243 -0
- package/build/lib/demos/config-schema.d.ts.map +1 -0
- package/build/lib/demos/config-schema.js +52 -0
- package/build/lib/demos/config-schema.js.map +1 -0
- package/build/lib/demos/config.d.ts +40 -0
- package/build/lib/demos/config.d.ts.map +1 -0
- package/build/lib/demos/config.js +180 -0
- package/build/lib/demos/config.js.map +1 -0
- package/build/lib/demos/index.d.ts +9 -0
- package/build/lib/demos/index.d.ts.map +1 -0
- package/build/lib/demos/index.js +8 -0
- package/build/lib/demos/index.js.map +1 -0
- package/build/lib/demos/ui/components.d.ts +33 -0
- package/build/lib/demos/ui/components.d.ts.map +1 -0
- package/build/lib/demos/ui/components.js +699 -0
- package/build/lib/demos/ui/components.js.map +1 -0
- package/build/lib/demos/ui/data-collector.d.ts +88 -0
- package/build/lib/demos/ui/data-collector.d.ts.map +1 -0
- package/build/lib/demos/ui/data-collector.js +174 -0
- package/build/lib/demos/ui/data-collector.js.map +1 -0
- package/build/lib/demos/ui/landing-page-cli.d.ts +3 -0
- package/build/lib/demos/ui/landing-page-cli.d.ts.map +1 -0
- package/build/lib/demos/ui/landing-page-cli.js +21 -0
- package/build/lib/demos/ui/landing-page-cli.js.map +1 -0
- package/build/lib/demos/ui/landing-page.d.ts +32 -0
- package/build/lib/demos/ui/landing-page.d.ts.map +1 -0
- package/build/lib/demos/ui/landing-page.js +83 -0
- package/build/lib/demos/ui/landing-page.js.map +1 -0
- package/build/lib/demos/ui/page-renderer.d.ts +26 -0
- package/build/lib/demos/ui/page-renderer.d.ts.map +1 -0
- package/build/lib/demos/ui/page-renderer.js +104 -0
- package/build/lib/demos/ui/page-renderer.js.map +1 -0
- package/build/lib/demos/utils.d.ts +14 -0
- package/build/lib/demos/utils.d.ts.map +1 -0
- package/build/lib/demos/utils.js +37 -0
- package/build/lib/demos/utils.js.map +1 -0
- package/build/lib/deployment/$$.d.ts +3 -0
- package/build/lib/deployment/$$.d.ts.map +1 -0
- package/build/lib/deployment/$$.js +3 -0
- package/build/lib/deployment/$$.js.map +1 -0
- package/build/lib/deployment/$.d.ts +2 -0
- package/build/lib/deployment/$.d.ts.map +1 -0
- package/build/lib/deployment/$.js +2 -0
- package/build/lib/deployment/$.js.map +1 -0
- package/build/lib/deployment/metadata.d.ts +32 -0
- package/build/lib/deployment/metadata.d.ts.map +1 -0
- package/build/lib/deployment/metadata.js +37 -0
- package/build/lib/deployment/metadata.js.map +1 -0
- package/build/lib/deployment/path-manager.d.ts +41 -0
- package/build/lib/deployment/path-manager.d.ts.map +1 -0
- package/build/lib/deployment/path-manager.js +157 -0
- package/build/lib/deployment/path-manager.js.map +1 -0
- package/build/lib/file-router/file-router.d.ts +0 -2
- package/build/lib/file-router/file-router.d.ts.map +1 -1
- package/build/lib/file-router/file-router.js +0 -2
- package/build/lib/file-router/file-router.js.map +1 -1
- package/build/lib/file-router/route.d.ts +2 -0
- package/build/lib/file-router/route.d.ts.map +1 -1
- package/build/lib/file-router/route.js.map +1 -1
- package/build/lib/file-router/scan.d.ts.map +1 -1
- package/build/lib/file-router/scan.js +22 -13
- package/build/lib/file-router/scan.js.map +1 -1
- package/build/lib/github-actions/git-controller.d.ts +50 -0
- package/build/lib/github-actions/git-controller.d.ts.map +1 -0
- package/build/lib/github-actions/git-controller.js +90 -0
- package/build/lib/github-actions/git-controller.js.map +1 -0
- package/build/lib/github-actions/github-actions.d.ts +7 -0
- package/build/lib/github-actions/github-actions.d.ts.map +1 -0
- package/build/lib/github-actions/github-actions.js +7 -0
- package/build/lib/github-actions/github-actions.js.map +1 -0
- package/build/lib/github-actions/index.d.ts +2 -0
- package/build/lib/github-actions/index.d.ts.map +1 -0
- package/build/lib/github-actions/index.js +2 -0
- package/build/lib/github-actions/index.js.map +1 -0
- package/build/lib/github-actions/lib/get-pr-deployments.d.ts +12 -0
- package/build/lib/github-actions/lib/get-pr-deployments.d.ts.map +1 -0
- package/build/lib/github-actions/lib/get-pr-deployments.js +51 -0
- package/build/lib/github-actions/lib/get-pr-deployments.js.map +1 -0
- package/build/lib/github-actions/pr-controller.d.ts +39 -0
- package/build/lib/github-actions/pr-controller.d.ts.map +1 -0
- package/build/lib/github-actions/pr-controller.js +122 -0
- package/build/lib/github-actions/pr-controller.js.map +1 -0
- package/build/lib/github-actions/run-step-cli.d.ts +9 -0
- package/build/lib/github-actions/run-step-cli.d.ts.map +1 -0
- package/build/lib/github-actions/run-step-cli.js +71 -0
- package/build/lib/github-actions/run-step-cli.js.map +1 -0
- package/build/lib/github-actions/runner.d.ts +17 -0
- package/build/lib/github-actions/runner.d.ts.map +1 -0
- package/build/lib/github-actions/runner.js +195 -0
- package/build/lib/github-actions/runner.js.map +1 -0
- package/build/lib/github-actions/schemas/context.d.ts +933 -0
- package/build/lib/github-actions/schemas/context.d.ts.map +1 -0
- package/build/lib/github-actions/schemas/context.js +407 -0
- package/build/lib/github-actions/schemas/context.js.map +1 -0
- package/build/lib/github-actions/schemas/index.d.ts +5 -0
- package/build/lib/github-actions/schemas/index.d.ts.map +1 -0
- package/build/lib/github-actions/schemas/index.js +5 -0
- package/build/lib/github-actions/schemas/index.js.map +1 -0
- package/build/lib/github-actions/search-module.d.ts +38 -0
- package/build/lib/github-actions/search-module.d.ts.map +1 -0
- package/build/lib/github-actions/search-module.js +40 -0
- package/build/lib/github-actions/search-module.js.map +1 -0
- package/build/lib/github-actions/step.d.ts +163 -0
- package/build/lib/github-actions/step.d.ts.map +1 -0
- package/build/lib/github-actions/step.js +121 -0
- package/build/lib/github-actions/step.js.map +1 -0
- package/build/lib/helpers.d.ts.map +1 -1
- package/build/lib/helpers.js +5 -3
- package/build/lib/helpers.js.map +1 -1
- package/build/lib/kit-temp.d.ts +54 -0
- package/build/lib/kit-temp.d.ts.map +1 -1
- package/build/lib/kit-temp.js +82 -14
- package/build/lib/kit-temp.js.map +1 -1
- package/build/lib/kit-temp.test-d.d.ts +2 -0
- package/build/lib/kit-temp.test-d.d.ts.map +1 -0
- package/build/lib/kit-temp.test-d.js +75 -0
- package/build/lib/kit-temp.test-d.js.map +1 -0
- package/build/lib/mask/$$.d.ts +3 -0
- package/build/lib/mask/$$.d.ts.map +1 -0
- package/build/lib/mask/$$.js +3 -0
- package/build/lib/mask/$$.js.map +1 -0
- package/build/lib/mask/$.d.ts +2 -0
- package/build/lib/mask/$.d.ts.map +1 -0
- package/build/lib/mask/$.js +2 -0
- package/build/lib/mask/$.js.map +1 -0
- package/build/lib/mask/apply.d.ts +86 -0
- package/build/lib/mask/apply.d.ts.map +1 -0
- package/build/lib/mask/apply.js +86 -0
- package/build/lib/mask/apply.js.map +1 -0
- package/build/lib/mask/mask.d.ts +124 -0
- package/build/lib/mask/mask.d.ts.map +1 -0
- package/build/lib/mask/mask.js +137 -0
- package/build/lib/mask/mask.js.map +1 -0
- package/build/lib/mask/mask.test-d.d.ts +2 -0
- package/build/lib/mask/mask.test-d.d.ts.map +1 -0
- package/build/lib/mask/mask.test-d.js +102 -0
- package/build/lib/mask/mask.test-d.js.map +1 -0
- package/build/lib/mutation-type.d.ts +18 -0
- package/build/lib/mutation-type.d.ts.map +1 -0
- package/build/lib/mutation-type.js +16 -0
- package/build/lib/mutation-type.js.map +1 -0
- package/build/lib/task/$$.d.ts +3 -0
- package/build/lib/task/$$.d.ts.map +1 -0
- package/build/lib/task/$$.js +3 -0
- package/build/lib/task/$$.js.map +1 -0
- package/build/lib/task/$.d.ts +2 -0
- package/build/lib/task/$.d.ts.map +1 -0
- package/build/lib/task/$.js +2 -0
- package/build/lib/task/$.js.map +1 -0
- package/build/lib/task/report.d.ts +28 -0
- package/build/lib/task/report.d.ts.map +1 -0
- package/build/lib/task/report.js +33 -0
- package/build/lib/task/report.js.map +1 -0
- package/build/lib/task/task.d.ts +44 -0
- package/build/lib/task/task.d.ts.map +1 -0
- package/build/lib/task/task.js +63 -0
- package/build/lib/task/task.js.map +1 -0
- package/build/lib/version-history/index.d.ts +3 -0
- package/build/lib/version-history/index.d.ts.map +1 -0
- package/build/lib/version-history/index.js +2 -0
- package/build/lib/version-history/index.js.map +1 -0
- package/build/lib/version-history/types.d.ts +64 -0
- package/build/lib/version-history/types.d.ts.map +1 -0
- package/build/lib/version-history/types.js +5 -0
- package/build/lib/version-history/types.js.map +1 -0
- package/build/lib/version-history/version-history.d.ts +85 -0
- package/build/lib/version-history/version-history.d.ts.map +1 -0
- package/build/lib/version-history/version-history.js +248 -0
- package/build/lib/version-history/version-history.js.map +1 -0
- package/build/project-data.d.ts +0 -1
- package/build/project-data.d.ts.map +1 -1
- package/build/sandbox.d.ts +2 -0
- package/build/sandbox.d.ts.map +1 -0
- package/build/sandbox.js +18 -0
- package/build/sandbox.js.map +1 -0
- package/build/singletons/debug.d.ts +1 -1
- package/build/singletons/debug.d.ts.map +1 -1
- package/build/singletons/debug.js +1 -1
- package/build/singletons/debug.js.map +1 -1
- package/build/template/components/CodeBlockEnhancer.d.ts +2 -0
- package/build/template/components/CodeBlockEnhancer.d.ts.map +1 -0
- package/build/template/components/CodeBlockEnhancer.jsx +175 -0
- package/build/template/components/CodeBlockEnhancer.jsx.map +1 -0
- package/build/template/components/HamburgerMenu.d.ts +9 -0
- package/build/template/components/HamburgerMenu.d.ts.map +1 -0
- package/build/template/components/HamburgerMenu.jsx +53 -0
- package/build/template/components/HamburgerMenu.jsx.map +1 -0
- package/build/template/components/Link.jsx +1 -1
- package/build/template/components/Logo.d.ts +9 -0
- package/build/template/components/Logo.d.ts.map +1 -0
- package/build/template/components/Logo.jsx +29 -0
- package/build/template/components/Logo.jsx.map +1 -0
- package/build/template/components/NotFound.d.ts +2 -0
- package/build/template/components/NotFound.d.ts.map +1 -0
- package/build/template/components/NotFound.jsx +26 -0
- package/build/template/components/NotFound.jsx.map +1 -0
- package/build/template/components/ThemeToggle.d.ts +3 -0
- package/build/template/components/ThemeToggle.d.ts.map +1 -0
- package/build/template/components/ThemeToggle.jsx +10 -0
- package/build/template/components/ThemeToggle.jsx.map +1 -0
- package/build/template/components/content/$$.d.ts +2 -0
- package/build/template/components/content/$$.d.ts.map +1 -0
- package/build/template/components/content/$$.js +2 -0
- package/build/template/components/content/$$.js.map +1 -0
- package/build/template/components/sidebar/Sidebar.d.ts +2 -2
- package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
- package/build/template/components/sidebar/SidebarItem.d.ts +3 -3
- package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
- package/build/template/components/sidebar/SidebarItem.jsx +3 -3
- package/build/template/components/sidebar/SidebarItem.jsx.map +1 -1
- package/build/template/contexts/ThemeContext.d.ts +12 -0
- package/build/template/contexts/ThemeContext.d.ts.map +1 -0
- package/build/template/contexts/ThemeContext.jsx +41 -0
- package/build/template/contexts/ThemeContext.jsx.map +1 -0
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.jsx +4 -8
- package/build/template/routes/reference.jsx.map +1 -1
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.jsx +192 -55
- package/build/template/routes/root.jsx.map +1 -1
- package/build/template/server/app.d.ts.map +1 -1
- package/build/template/server/app.js +2 -21
- package/build/template/server/app.js.map +1 -1
- package/package.json +27 -13
- package/src/api/api.ts +1 -0
- package/src/api/config/configurator.ts +28 -6
- package/src/api/config/load.ts +5 -5
- package/src/api/config-resolver/resolve.ts +2 -2
- package/src/api/content/$$.ts +6 -0
- package/src/api/content/$.test.ts +72 -0
- package/src/api/content/$.ts +1 -0
- package/src/api/content/metadata.ts +11 -0
- package/src/api/content/navbar.test.ts +55 -0
- package/src/api/content/navbar.ts +61 -0
- package/src/api/content/page.ts +12 -0
- package/src/api/content/scan.ts +117 -0
- package/src/api/content/sidebar.test.ts +297 -0
- package/src/api/content/sidebar.ts +283 -0
- package/src/api/content/utils.ts +7 -0
- package/src/api/schema/data-sources/schema-directory/schema-directory.ts +1 -1
- package/src/api/singletons/markdown/markdown.test.ts +1 -1
- package/src/api/static/index.ts +1 -0
- package/src/api/static/manifest.test.ts +106 -0
- package/src/api/static/manifest.ts +16 -0
- package/src/api/static/rebase.test.ts +229 -0
- package/src/api/static/rebase.ts +140 -0
- package/src/api/static/static.ts +2 -0
- package/src/api/utils/asset-url/asset-url.test.ts +4 -4
- package/src/api/vite/plugins/branding/index.ts +108 -0
- package/src/api/vite/plugins/build.ts +25 -1
- package/src/api/vite/plugins/core.ts +6 -7
- package/src/api/vite/plugins/main.ts +2 -0
- package/src/api/vite/plugins/pages.ts +131 -207
- package/src/api/vite/plugins/serve.ts +5 -5
- package/src/cli/_/self-contained-mode.ts +5 -5
- package/src/cli/commands/static/$default.ts +43 -0
- package/src/cli/commands/static/rebase.ts +37 -0
- package/src/cli/commands/static.ts +6 -0
- package/src/exports/components.ts +1 -0
- package/src/lib/demos/builder.ts +298 -0
- package/src/lib/demos/config-schema.ts +56 -0
- package/src/lib/demos/config.test.ts +193 -0
- package/src/lib/demos/config.ts +205 -0
- package/src/lib/demos/index.ts +9 -0
- package/src/lib/demos/ui/components.ts +739 -0
- package/src/lib/demos/ui/data-collector.ts +246 -0
- package/src/lib/demos/ui/landing-page-cli.ts +23 -0
- package/src/lib/demos/ui/landing-page.ts +126 -0
- package/src/lib/demos/ui/page-renderer.ts +124 -0
- package/src/lib/demos/utils.ts +43 -0
- package/src/lib/deployment/$$.ts +2 -0
- package/src/lib/deployment/$.test.ts +53 -0
- package/src/lib/deployment/$.ts +1 -0
- package/src/lib/deployment/metadata.ts +40 -0
- package/src/lib/deployment/path-manager.ts +186 -0
- package/src/lib/file-router/file-router.ts +0 -2
- package/src/lib/file-router/linter.test.ts +2 -0
- package/src/lib/file-router/route.ts +2 -0
- package/src/lib/file-router/scan.ts +26 -14
- package/src/lib/github-actions/git-controller.ts +151 -0
- package/src/lib/github-actions/github-actions.ts +6 -0
- package/src/lib/github-actions/index.ts +1 -0
- package/src/lib/github-actions/lib/get-pr-deployments.ts +76 -0
- package/src/lib/github-actions/pr-controller.test.ts +172 -0
- package/src/lib/github-actions/pr-controller.ts +183 -0
- package/src/lib/github-actions/run-step-cli.ts +84 -0
- package/src/lib/github-actions/runner.test.ts +192 -0
- package/src/lib/github-actions/runner.ts +226 -0
- package/src/lib/github-actions/schemas/context.ts +424 -0
- package/src/lib/github-actions/schemas/index.ts +5 -0
- package/src/lib/github-actions/search-module.test.ts +110 -0
- package/src/lib/github-actions/search-module.ts +76 -0
- package/src/lib/github-actions/step.test.ts +149 -0
- package/src/lib/github-actions/step.ts +232 -0
- package/src/lib/helpers.ts +4 -3
- package/src/lib/kit-temp.test-d.ts +115 -0
- package/src/lib/kit-temp.test.ts +127 -0
- package/src/lib/kit-temp.ts +128 -14
- package/src/lib/mask/$$.ts +2 -0
- package/src/lib/mask/$.test.ts +248 -0
- package/src/lib/mask/$.ts +1 -0
- package/src/lib/mask/apply.ts +134 -0
- package/src/lib/mask/mask.test-d.ts +144 -0
- package/src/lib/mask/mask.ts +244 -0
- package/src/lib/mutation-type.ts +20 -0
- package/src/lib/shiki/shiki.test.ts +1 -1
- package/src/lib/task/$$.ts +2 -0
- package/src/lib/task/$.test.ts +209 -0
- package/src/lib/task/$.ts +1 -0
- package/src/lib/task/report.ts +72 -0
- package/src/lib/task/task.ts +112 -0
- package/src/lib/version-history/index.test.ts +196 -0
- package/src/lib/version-history/index.ts +4 -0
- package/src/lib/version-history/types.ts +68 -0
- package/src/lib/version-history/version-history.ts +293 -0
- package/src/project-data.ts +0 -1
- package/src/sandbox.ts +20 -0
- package/src/singletons/debug.ts +1 -1
- package/src/template/components/CodeBlockEnhancer.tsx +192 -0
- package/src/template/components/HamburgerMenu.tsx +96 -0
- package/src/template/components/Link.tsx +1 -1
- package/src/template/components/Logo.tsx +46 -0
- package/src/template/components/NotFound.tsx +28 -0
- package/src/template/components/ThemeToggle.tsx +21 -0
- package/src/template/components/content/$$.ts +1 -0
- package/src/template/components/sidebar/Sidebar.tsx +2 -2
- package/src/template/components/sidebar/SidebarItem.tsx +12 -12
- package/src/template/contexts/ThemeContext.tsx +60 -0
- package/src/template/routes/reference.tsx +4 -8
- package/src/template/routes/root.tsx +216 -76
- package/src/template/server/app.ts +2 -27
- package/build/lib/file-router/scan-tree.d.ts +0 -20
- package/build/lib/file-router/scan-tree.d.ts.map +0 -1
- package/build/lib/file-router/scan-tree.js +0 -158
- package/build/lib/file-router/scan-tree.js.map +0 -1
- package/build/lib/file-router/sidebar/index.d.ts +0 -3
- package/build/lib/file-router/sidebar/index.d.ts.map +0 -1
- package/build/lib/file-router/sidebar/index.js +0 -4
- package/build/lib/file-router/sidebar/index.js.map +0 -1
- package/build/lib/file-router/sidebar/sidebar-tree.d.ts +0 -9
- package/build/lib/file-router/sidebar/sidebar-tree.d.ts.map +0 -1
- package/build/lib/file-router/sidebar/sidebar-tree.js +0 -85
- package/build/lib/file-router/sidebar/sidebar-tree.js.map +0 -1
- package/build/lib/file-router/sidebar/types.d.ts +0 -17
- package/build/lib/file-router/sidebar/types.d.ts.map +0 -1
- package/build/lib/file-router/sidebar/types.js +0 -2
- package/build/lib/file-router/sidebar/types.js.map +0 -1
- package/build/lib/tree/index.d.ts +0 -3
- package/build/lib/tree/index.d.ts.map +0 -1
- package/build/lib/tree/index.js +0 -2
- package/build/lib/tree/index.js.map +0 -1
- package/build/lib/tree/tree.d.ts +0 -62
- package/build/lib/tree/tree.d.ts.map +0 -1
- package/build/lib/tree/tree.js +0 -134
- package/build/lib/tree/tree.js.map +0 -1
- package/src/lib/file-router/scan-tree.test.ts +0 -189
- package/src/lib/file-router/scan-tree.ts +0 -205
- package/src/lib/file-router/sidebar/index.ts +0 -3
- package/src/lib/file-router/sidebar/sidebar-tree.test.ts +0 -123
- package/src/lib/file-router/sidebar/sidebar-tree.ts +0 -110
- package/src/lib/file-router/sidebar/types.ts +0 -19
- package/src/lib/tree/index.ts +0 -2
- package/src/lib/tree/tree.test.ts +0 -117
- package/src/lib/tree/tree.ts +0 -183
@@ -1,10 +1,9 @@
|
|
1
1
|
import { createRoute } from '#lib/react-router-aid/react-router-aid';
|
2
2
|
import { createLoader, useLoaderData } from '#lib/react-router-loader/react-router-loader';
|
3
|
-
import {
|
3
|
+
import { Box } from '@radix-ui/themes';
|
4
4
|
import { Outlet } from 'react-router';
|
5
5
|
import PROJECT_DATA from 'virtual:polen/project/data.jsonsuper';
|
6
6
|
import { MissingSchema } from '../components/MissingSchema.jsx';
|
7
|
-
import { TypeIndex } from '../components/TypeIndex.jsx';
|
8
7
|
import { reference$type } from './reference.$type.jsx';
|
9
8
|
const loader = createLoader(() => {
|
10
9
|
const latestSchemaVersion = PROJECT_DATA.schema?.versions[0].after ?? null;
|
@@ -17,12 +16,9 @@ const Component = () => {
|
|
17
16
|
if (!data.schema) {
|
18
17
|
return <MissingSchema />;
|
19
18
|
}
|
20
|
-
return (<
|
21
|
-
<
|
22
|
-
|
23
|
-
<Outlet />
|
24
|
-
</Container>
|
25
|
-
</Flex>);
|
19
|
+
return (<Box className="prose">
|
20
|
+
<Outlet />
|
21
|
+
</Box>);
|
26
22
|
};
|
27
23
|
export const reference = createRoute({
|
28
24
|
path: `reference`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reference.jsx","sourceRoot":"","sources":["../../../src/template/routes/reference.tsx"],"names":[],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AS;IACT,QAAQ,EAAE,CAAC,cAAc,CAAC;CAC3B,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/template/routes/root.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/template/routes/root.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAsC1D,eAAO,MAAM,SAAS,mCAwBrB,CAAA;AAmUD,eAAO,MAAM,IAAI;;;;CAIf,CAAA"}
|
@@ -1,23 +1,30 @@
|
|
1
|
-
import {
|
1
|
+
import { GrafaidOld } from '#lib/grafaid-old/index';
|
2
2
|
import { createRoute } from '#lib/react-router-aid/react-router-aid';
|
3
|
-
import {
|
4
|
-
import { Box, Button, Grid, Heading, Text } from '@radix-ui/themes';
|
3
|
+
import { Box, Grid } from '@radix-ui/themes';
|
5
4
|
import { Flex, Theme } from '@radix-ui/themes';
|
6
5
|
import radixStylesUrl from '@radix-ui/themes/styles.css?url';
|
7
6
|
import { Arr } from '@wollybeard/kit';
|
7
|
+
import { useEffect, useState } from 'react';
|
8
8
|
import { Link as LinkReactRouter } from 'react-router';
|
9
9
|
import { Outlet, ScrollRestoration, useLocation } from 'react-router';
|
10
|
+
import logoSrc from 'virtual:polen/project/assets/logo.svg';
|
10
11
|
import PROJECT_DATA from 'virtual:polen/project/data.jsonsuper';
|
11
12
|
import projectDataNavbar from 'virtual:polen/project/data/navbar.jsonsuper';
|
12
|
-
import
|
13
|
-
import {
|
13
|
+
import projectPagesCatalog from 'virtual:polen/project/data/pages-catalog.jsonsuper';
|
14
|
+
import { routes } from 'virtual:polen/project/routes.jsx';
|
14
15
|
import { templateVariables } from 'virtual:polen/template/variables';
|
15
|
-
import {
|
16
|
+
import { HamburgerMenu } from "../components/HamburgerMenu.jsx";
|
17
|
+
import { Link } from "../components/Link.jsx";
|
18
|
+
import { Logo } from "../components/Logo.jsx";
|
19
|
+
import { NotFound } from "../components/NotFound.jsx";
|
20
|
+
import { CodeBlockEnhancer } from "../components/CodeBlockEnhancer.jsx";
|
16
21
|
import { Sidebar } from "../components/sidebar/Sidebar.jsx";
|
22
|
+
import { ThemeToggle } from "../components/ThemeToggle.jsx";
|
23
|
+
import { ThemeProvider, useTheme } from "../contexts/ThemeContext.jsx";
|
17
24
|
import entryClientUrl from '../entry.client.jsx?url';
|
18
|
-
import { changelog } from
|
19
|
-
import { index } from
|
20
|
-
import { reference } from
|
25
|
+
import { changelog } from "./changelog.jsx";
|
26
|
+
import { index } from "./index.jsx";
|
27
|
+
import { reference } from "./reference.jsx";
|
21
28
|
// todo: not needed anymore because not using hono dev vite plugin right?
|
22
29
|
const reactRefreshPreamble = `
|
23
30
|
import RefreshRuntime from "/@react-refresh";
|
@@ -35,11 +42,15 @@ export const Component = () => {
|
|
35
42
|
<meta name='viewport' content='width=device-width, initial-scale=1'/>
|
36
43
|
<title>{templateVariables.title}</title>
|
37
44
|
{import.meta.env.DEV && <link rel='stylesheet' href={radixStylesUrl}/>}
|
38
|
-
<link rel='icon' href={
|
39
|
-
<link rel='
|
45
|
+
{/* <link rel='icon' type='image/svg+xml' href={assetUrl('/favicon.svg', PROJECT_DATA.basePath)} /> */}
|
46
|
+
{/* <link rel='manifest' href={assetUrl('/manifest.json', PROJECT_DATA.basePath)} /> */}
|
47
|
+
{/* <meta name='theme-color' content='#000000' /> */}
|
40
48
|
</head>
|
41
49
|
<body style={{ margin: 0 }}>
|
42
|
-
<
|
50
|
+
<ThemeProvider>
|
51
|
+
<Layout />
|
52
|
+
<CodeBlockEnhancer />
|
53
|
+
</ThemeProvider>
|
43
54
|
<ScrollRestoration />
|
44
55
|
{import.meta.env.DEV && <script type='module' src={entryClientUrl}></script>}
|
45
56
|
</body>
|
@@ -47,6 +58,12 @@ export const Component = () => {
|
|
47
58
|
};
|
48
59
|
const Layout = () => {
|
49
60
|
const location = useLocation();
|
61
|
+
const { appearance } = useTheme();
|
62
|
+
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
63
|
+
// Close mobile menu on route change
|
64
|
+
useEffect(() => {
|
65
|
+
setMobileMenuOpen(false);
|
66
|
+
}, [location.pathname]);
|
50
67
|
// Determine if we should show sidebar based on current path
|
51
68
|
const getCurrentNavPathExp = () => {
|
52
69
|
// todo: general path manipulation lib because we are duplicating logic here found in FileRouter
|
@@ -58,64 +75,207 @@ const Layout = () => {
|
|
58
75
|
return null;
|
59
76
|
};
|
60
77
|
const currentNavPathExp = getCurrentNavPathExp();
|
61
|
-
const
|
78
|
+
const isReferencePage = currentNavPathExp === '/reference';
|
79
|
+
const sidebar = (() => {
|
80
|
+
if (isReferencePage && PROJECT_DATA.schema) {
|
81
|
+
// Build reference sidebar from schema types
|
82
|
+
const schema = PROJECT_DATA.schema.versions[0].after;
|
83
|
+
const kindMap = GrafaidOld.getKindMap(schema);
|
84
|
+
const sidebarItems = [];
|
85
|
+
const kindEntries = Object.entries(kindMap.list).filter(([_, types]) => types.length > 0);
|
86
|
+
for (const [title, types] of kindEntries) {
|
87
|
+
sidebarItems.push({
|
88
|
+
type: 'ItemSection',
|
89
|
+
title,
|
90
|
+
pathExp: `reference-${title.toLowerCase()}`,
|
91
|
+
isLinkToo: false,
|
92
|
+
links: types.map(type => ({
|
93
|
+
type: 'ItemLink',
|
94
|
+
title: type.name,
|
95
|
+
pathExp: `reference/${type.name}`,
|
96
|
+
})),
|
97
|
+
});
|
98
|
+
}
|
99
|
+
return { items: sidebarItems };
|
100
|
+
}
|
101
|
+
else {
|
102
|
+
// Use regular page sidebar
|
103
|
+
return currentNavPathExp ? projectPagesCatalog.sidebarIndex[currentNavPathExp] || null : null;
|
104
|
+
}
|
105
|
+
})();
|
62
106
|
const isShowSidebar = sidebar && sidebar.items.length > 0;
|
63
|
-
const header = (<Flex gridArea={'header'} align='center' gap='8' pb='4' mb='8' style={{
|
107
|
+
const header = (<Flex gridArea={'header'} align='center' gap={{ initial: '4', md: '8' }} pb='4' mb={{ initial: '4', md: '8' }} style={{
|
64
108
|
borderBottom: `1px solid var(--gray-3)`,
|
65
109
|
}}>
|
110
|
+
{/* Mobile menu - only show when sidebar exists */}
|
111
|
+
{isShowSidebar && (<HamburgerMenu isOpen={mobileMenuOpen} onToggle={() => setMobileMenuOpen(!mobileMenuOpen)} onClose={() => setMobileMenuOpen(false)} sidebarData={sidebar.items}/>)}
|
112
|
+
|
66
113
|
<LinkReactRouter to='/' style={{ color: `inherit`, textDecoration: `none` }}>
|
67
|
-
<
|
68
|
-
<
|
69
|
-
|
70
|
-
{templateVariables.title}
|
71
|
-
</Text>
|
72
|
-
</Flex>
|
114
|
+
<Box display={{ initial: 'block', md: 'block' }}>
|
115
|
+
<Logo src={logoSrc} title={templateVariables.title} height={30} showTitle={true}/>
|
116
|
+
</Box>
|
73
117
|
</LinkReactRouter>
|
74
|
-
<Flex direction='row' gap='4'>
|
118
|
+
<Flex direction='row' gap='4' style={{ flex: 1 }}>
|
75
119
|
{projectDataNavbar.map((item, key) => (<Link key={key} color='gray' to={item.pathExp}>
|
76
120
|
{item.title}
|
77
121
|
</Link>))}
|
78
122
|
</Flex>
|
123
|
+
<ThemeToggle />
|
79
124
|
</Flex>);
|
80
|
-
return (<Theme asChild>
|
81
|
-
<Grid width={{ initial: '
|
125
|
+
return (<Theme asChild appearance={appearance}>
|
126
|
+
<Grid width={{ initial: '100%', sm: '100%', md: 'var(--container-4)' }} maxWidth='100vw' areas={{
|
127
|
+
initial: "'header' 'content'",
|
128
|
+
sm: "'header' 'content'",
|
129
|
+
md: "'header header header header header header header header' 'sidebar sidebar . content content content content content'",
|
130
|
+
}} rows='min-content auto' columns={{ initial: '1fr', sm: '1fr', md: 'repeat(8, 1fr)' }} gapX={{ initial: '0', sm: '0', md: '2' }} my={{ initial: '0', sm: '0', md: '8' }} mx='auto' px={{ initial: '4', sm: '4', md: '0' }} py={{ initial: '4', sm: '4', md: '0' }}>
|
82
131
|
<style>
|
83
132
|
{`
|
133
|
+
/* Import Inter font */
|
134
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
135
|
+
|
136
|
+
/* Typography improvements */
|
137
|
+
body {
|
138
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
139
|
+
-webkit-font-smoothing: antialiased;
|
140
|
+
-moz-osx-font-smoothing: grayscale;
|
141
|
+
text-rendering: optimizeLegibility;
|
142
|
+
font-feature-settings: 'kern', 'liga', 'calt', 'ss01', 'ss02';
|
143
|
+
}
|
144
|
+
|
145
|
+
/* Improved paragraph spacing */
|
146
|
+
.prose p {
|
147
|
+
line-height: 1.7;
|
148
|
+
margin-bottom: 1.25rem;
|
149
|
+
}
|
150
|
+
|
151
|
+
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
|
152
|
+
font-weight: 600;
|
153
|
+
letter-spacing: -0.02em;
|
154
|
+
margin-top: 2rem;
|
155
|
+
margin-bottom: 1rem;
|
156
|
+
}
|
157
|
+
|
158
|
+
.prose h1 { font-size: 2.25rem; line-height: 1.2; }
|
159
|
+
.prose h2 { font-size: 1.875rem; line-height: 1.3; }
|
160
|
+
.prose h3 { font-size: 1.5rem; line-height: 1.4; }
|
161
|
+
.prose h4 { font-size: 1.25rem; line-height: 1.5; }
|
162
|
+
|
163
|
+
.prose ul, .prose ol {
|
164
|
+
margin-bottom: 1.25rem;
|
165
|
+
padding-left: 1.5rem;
|
166
|
+
}
|
167
|
+
|
168
|
+
.prose li {
|
169
|
+
margin-bottom: 0.5rem;
|
170
|
+
line-height: 1.7;
|
171
|
+
}
|
172
|
+
|
173
|
+
.prose a {
|
174
|
+
color: var(--accent-9);
|
175
|
+
text-decoration: none;
|
176
|
+
border-bottom: 1px solid transparent;
|
177
|
+
transition: border-color 0.2s;
|
178
|
+
}
|
179
|
+
|
180
|
+
.prose a:hover {
|
181
|
+
border-bottom-color: var(--accent-9);
|
182
|
+
}
|
183
|
+
|
184
|
+
.prose blockquote {
|
185
|
+
border-left: 4px solid var(--accent-6);
|
186
|
+
padding-left: 1rem;
|
187
|
+
margin-left: 0;
|
188
|
+
font-style: italic;
|
189
|
+
color: var(--gray-11);
|
190
|
+
}
|
191
|
+
|
192
|
+
/* Responsive container fixes */
|
193
|
+
@media (max-width: 768px) {
|
194
|
+
body {
|
195
|
+
overflow-x: hidden;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
/* Ensure proper centering on all screen sizes */
|
200
|
+
.rt-Grid {
|
201
|
+
box-sizing: border-box;
|
202
|
+
}
|
203
|
+
|
84
204
|
/* Shiki code blocks */
|
85
205
|
pre.shiki {
|
86
|
-
margin:
|
206
|
+
margin: 0;
|
87
207
|
padding: 1rem;
|
88
208
|
border-radius: 8px;
|
89
209
|
overflow-x: auto;
|
90
210
|
font-size: 14px;
|
91
211
|
line-height: 1.6;
|
92
212
|
background-color: #f6f8fa;
|
213
|
+
border: 1px solid var(--gray-4);
|
93
214
|
}
|
94
|
-
|
215
|
+
|
95
216
|
/* Light mode: use --shiki-light CSS variables from inline styles */
|
96
217
|
pre.shiki span {
|
97
218
|
color: var(--shiki-light);
|
98
219
|
}
|
99
|
-
|
220
|
+
|
100
221
|
/* Dark mode - Radix Themes uses [data-is-root-theme="dark"] */
|
101
222
|
[data-is-root-theme="dark"] pre.shiki {
|
102
223
|
background-color: #1a1b26;
|
224
|
+
border-color: var(--gray-7);
|
103
225
|
}
|
104
|
-
|
226
|
+
|
105
227
|
[data-is-root-theme="dark"] pre.shiki span {
|
106
228
|
color: var(--shiki-dark);
|
107
229
|
}
|
108
|
-
|
230
|
+
|
109
231
|
pre.shiki code {
|
110
232
|
font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
|
111
233
|
background: transparent;
|
112
234
|
display: block;
|
113
235
|
}
|
236
|
+
|
237
|
+
/* Inline code */
|
238
|
+
.prose code:not(pre code) {
|
239
|
+
background-color: var(--gray-3);
|
240
|
+
padding: 0.125rem 0.25rem;
|
241
|
+
border-radius: 0.25rem;
|
242
|
+
font-size: 0.875em;
|
243
|
+
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
244
|
+
}
|
245
|
+
|
246
|
+
/* Tables */
|
247
|
+
.prose table {
|
248
|
+
width: 100%;
|
249
|
+
border-collapse: collapse;
|
250
|
+
margin-bottom: 1.5rem;
|
251
|
+
}
|
252
|
+
|
253
|
+
.prose th {
|
254
|
+
background-color: var(--gray-3);
|
255
|
+
font-weight: 600;
|
256
|
+
text-align: left;
|
257
|
+
padding: 0.75rem;
|
258
|
+
border-bottom: 2px solid var(--gray-5);
|
259
|
+
}
|
260
|
+
|
261
|
+
.prose td {
|
262
|
+
padding: 0.75rem;
|
263
|
+
border-bottom: 1px solid var(--gray-4);
|
264
|
+
}
|
265
|
+
|
266
|
+
.prose tbody tr:last-child td {
|
267
|
+
border-bottom: none;
|
268
|
+
}
|
114
269
|
`}
|
115
270
|
</style>
|
116
271
|
{header}
|
117
|
-
|
118
|
-
|
272
|
+
|
273
|
+
{/* Desktop Sidebar */}
|
274
|
+
{isShowSidebar && (<Box display={{ initial: 'none', xs: 'none', sm: 'none', md: 'block' }} gridColumn='1 / 3' gridRow='2 / auto'>
|
275
|
+
<Sidebar data={sidebar.items}/>
|
276
|
+
</Box>)}
|
277
|
+
|
278
|
+
<Box gridArea='content / content / auto / 8' className="prose">
|
119
279
|
<Outlet />
|
120
280
|
</Box>
|
121
281
|
</Grid>
|
@@ -123,7 +283,7 @@ const Layout = () => {
|
|
123
283
|
};
|
124
284
|
const children = [
|
125
285
|
index,
|
126
|
-
...
|
286
|
+
...routes,
|
127
287
|
];
|
128
288
|
//
|
129
289
|
//
|
@@ -145,33 +305,10 @@ if (PROJECT_DATA.schema) {
|
|
145
305
|
//
|
146
306
|
//
|
147
307
|
//
|
148
|
-
const NotFoundComponent = () => {
|
149
|
-
return (<Flex direction='column' align='center' gap='6' style={{ textAlign: `center`, paddingTop: `4rem` }}>
|
150
|
-
<Heading size='9' style={{ color: `var(--gray-12)` }}>404</Heading>
|
151
|
-
<Box>
|
152
|
-
<Heading size='5' mb='2'>Page Not Found</Heading>
|
153
|
-
<Text size='3' color='gray'>
|
154
|
-
The page you're looking for doesn't exist or has been moved.
|
155
|
-
</Text>
|
156
|
-
</Box>
|
157
|
-
<Flex gap='3'>
|
158
|
-
<LinkReactRouter to='/'>
|
159
|
-
<Button variant='soft' size='3'>
|
160
|
-
Go Home
|
161
|
-
</Button>
|
162
|
-
</LinkReactRouter>
|
163
|
-
<LinkReactRouter to='/reference'>
|
164
|
-
<Button variant='outline' size='3'>
|
165
|
-
View API Reference
|
166
|
-
</Button>
|
167
|
-
</LinkReactRouter>
|
168
|
-
</Flex>
|
169
|
-
</Flex>);
|
170
|
-
};
|
171
308
|
const notFoundRoute = createRoute({
|
172
309
|
id: `*_not_found`,
|
173
310
|
path: `*`,
|
174
|
-
Component:
|
311
|
+
Component: NotFound,
|
175
312
|
handle: {
|
176
313
|
statusCode: 404,
|
177
314
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"root.jsx","sourceRoot":"","sources":["../../../src/template/routes/root.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"root.jsx","sourceRoot":"","sources":["../../../src/template/routes/root.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACpE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,cAAc,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM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E;QACN,UAAU,EAAE,GAAG;KAChB;CACF,CAAC,CAAA;AACF,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;AAE5B,EAAE;AACF,EAAE;AACF,EAAE;AACF,8BAA8B;AAC9B,EAAE;AACF,EAAE;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAC;IAC9B,IAAI,EAAE,GAAG;IACT,SAAS;IACT,QAAQ;CACT,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/template/server/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/template/server/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAStC,eAAO,MAAM,GAAG,iFAAkB,CAAA"}
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { Hono } from '#dep/hono/index';
|
2
|
-
// import { Hono } from '../../dep/hono/index.ts'
|
3
2
|
import { AppleTouchIcon } from '#lib/apple-touch-icon/index';
|
4
3
|
import { Favicon } from '#lib/favicon/index';
|
5
4
|
import { serveStatic } from '@hono/node-server/serve-static';
|
6
|
-
import {
|
5
|
+
import { Http } from '@wollybeard/kit';
|
7
6
|
import PROJECT_DATA from 'virtual:polen/project/data.jsonsuper';
|
8
7
|
import { renderPage } from './render-page.jsx';
|
9
8
|
import { view } from "./view.js";
|
@@ -11,29 +10,11 @@ export const app = new Hono.Hono();
|
|
11
10
|
if (__BUILDING__) {
|
12
11
|
app.use(PROJECT_DATA.server.static.route, serveStatic({ root: PROJECT_DATA.server.static.directory }));
|
13
12
|
}
|
14
|
-
app.
|
13
|
+
app.all(`*`, async (ctx) => {
|
15
14
|
const staticHandlerContext = await view.query(ctx.req.raw);
|
16
15
|
if (staticHandlerContext instanceof Response) {
|
17
16
|
return staticHandlerContext;
|
18
17
|
}
|
19
|
-
if (ctx.req.path.includes(PROJECT_DATA.faviconPath)
|
20
|
-
|| ctx.req.path.includes(PROJECT_DATA.faviconPath.replace(`.svg`, `.ico`))) {
|
21
|
-
const path = ctx.req.path === PROJECT_DATA.faviconPath
|
22
|
-
? PROJECT_DATA.faviconPath
|
23
|
-
: PROJECT_DATA.faviconPath.replace(`.svg`, `.ico`);
|
24
|
-
const faviconPath = Path.join(import.meta.dirname, `../../assets`, path);
|
25
|
-
const favicon = await Fs.read(faviconPath);
|
26
|
-
return new Response(favicon, {
|
27
|
-
headers: [
|
28
|
-
Http.Headers.contentType(path.endsWith(`.ico`) ? `image/x-icon` : `image/svg+xml`),
|
29
|
-
Http.Headers.responseCacheControl({
|
30
|
-
visibility: `public`,
|
31
|
-
maxAge: 31536000,
|
32
|
-
immutable: true,
|
33
|
-
}),
|
34
|
-
],
|
35
|
-
});
|
36
|
-
}
|
37
18
|
if (Favicon.fileNamePattern.test(ctx.req.path)) {
|
38
19
|
return Http.Response.notFound;
|
39
20
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/template/server/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/template/server/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,MAAM,CAAC,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,CAAA;AAElC,IAAI,YAAY,EAAE,CAAC;IACjB,GAAG,CAAC,GAAG,CACL,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EAChC,WAAW,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAC5D,CAAA;AACH,CAAC;AAED,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;IACzB,MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAE1D,IAAI,oBAAoB,YAAY,QAAQ,EAAE,CAAC;QAC7C,OAAO,oBAAoB,CAAA;IAC7B,CAAC;IAED,IAAI,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAA;IAC/B,CAAC;IAED,IAAI,cAAc,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAA;IAC/B,CAAC;IAED,OAAO,UAAU,CAAC,oBAAoB,CAAC,CAAA;AACzC,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "polen",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.10.0-next.11",
|
4
4
|
"type": "module",
|
5
5
|
"description": "A framework for delightful GraphQL developer portals",
|
6
6
|
"author": {
|
@@ -35,13 +35,24 @@
|
|
35
35
|
"#*": {
|
36
36
|
"source": "./src/*.ts",
|
37
37
|
"default": "./build/*.js"
|
38
|
-
}
|
38
|
+
},
|
39
|
+
"#lib/mask": "./src/lib/mask/$.ts",
|
40
|
+
"#lib/mask/mask": "./src/lib/mask/$$.ts",
|
41
|
+
"#lib/task": "./src/lib/task/$.ts",
|
42
|
+
"#lib/task/task": "./src/lib/task/$$.ts",
|
43
|
+
"#lib/deployment": "./src/lib/deployment/$.ts",
|
44
|
+
"#lib/deployment/deployment": "./src/lib/deployment/$$.ts",
|
45
|
+
"#template/components/content/$$": "./src/template/components/content/$$.ts"
|
39
46
|
},
|
40
47
|
"exports": {
|
41
48
|
".": {
|
42
49
|
"source": "./src/exports/index.ts",
|
43
50
|
"default": "./build/exports/index.js"
|
44
51
|
},
|
52
|
+
"./components": {
|
53
|
+
"source": "./src/exports/components.ts",
|
54
|
+
"default": "./build/exports/components.js"
|
55
|
+
},
|
45
56
|
"./polen": {
|
46
57
|
"source": "./src/exports/polen.ts",
|
47
58
|
"default": "./build/exports/polen.js"
|
@@ -86,8 +97,9 @@
|
|
86
97
|
"@types/jsesc": "^3.0.3",
|
87
98
|
"@vitejs/plugin-react": "^4.5.2",
|
88
99
|
"@vitejs/plugin-react-oxc": "^0.2.3",
|
100
|
+
"@vltpkg/semver": "0.0.0-15",
|
89
101
|
"@vue/reactivity": "^3.5.16",
|
90
|
-
"@wollybeard/kit": "^0.
|
102
|
+
"@wollybeard/kit": "^0.41.0",
|
91
103
|
"@wollybeard/projector": "^0.2.0",
|
92
104
|
"ansis": "^4.1.0",
|
93
105
|
"clean-stack": "^5.2.0",
|
@@ -97,6 +109,7 @@
|
|
97
109
|
"fuse.js": "^7.1.0",
|
98
110
|
"graffle": "8.0.0-next.163",
|
99
111
|
"graphql": "^16.11.0",
|
112
|
+
"gray-matter": "^4.0.3",
|
100
113
|
"hono": "^4.7.11",
|
101
114
|
"jsesc": "^3.1.0",
|
102
115
|
"jsonc-parser": "^3.3.1",
|
@@ -105,6 +118,7 @@
|
|
105
118
|
"react-router": "^7.6.2",
|
106
119
|
"rehype-stringify": "^10.0.1",
|
107
120
|
"remark": "^15.0.1",
|
121
|
+
"remark-frontmatter": "^5.0.0",
|
108
122
|
"remark-gfm": "^4.0.1",
|
109
123
|
"remark-html": "^16.0.1",
|
110
124
|
"remark-parse": "^11.0.0",
|
@@ -112,6 +126,7 @@
|
|
112
126
|
"resolve.imports": "^2.0.3",
|
113
127
|
"rolldown": "1.0.0-beta.16",
|
114
128
|
"shiki": "^3.6.0",
|
129
|
+
"simple-git": "^3.28.0",
|
115
130
|
"source-map": "^0.7.4",
|
116
131
|
"superjson": "^2.2.2",
|
117
132
|
"tinyglobby": "^0.2.14",
|
@@ -145,8 +160,8 @@
|
|
145
160
|
"@types/react": "^19.1.8",
|
146
161
|
"@types/react-dom": "^19.1.6",
|
147
162
|
"@types/semver": "^7.7.0",
|
148
|
-
"@typescript-eslint/eslint-plugin": "^8.34.
|
149
|
-
"@typescript-eslint/parser": "^8.34.
|
163
|
+
"@typescript-eslint/eslint-plugin": "^8.34.1",
|
164
|
+
"@typescript-eslint/parser": "^8.34.1",
|
150
165
|
"dprint": "^0.50.0",
|
151
166
|
"dripip": "^0.10.0",
|
152
167
|
"eslint": "^9.29.0",
|
@@ -156,6 +171,7 @@
|
|
156
171
|
"eslint-plugin-react-refresh": "^0.4.20",
|
157
172
|
"eslint-plugin-tsdoc": "^0.4.0",
|
158
173
|
"eslint-plugin-unused-imports": "^4.1.4",
|
174
|
+
"fast-check": "^4.1.1",
|
159
175
|
"fs-jetpack": "^5.1.0",
|
160
176
|
"get-port-please": "^3.1.2",
|
161
177
|
"globals": "^16.2.0",
|
@@ -165,28 +181,26 @@
|
|
165
181
|
"strip-ansi": "^7.1.0",
|
166
182
|
"type-fest": "^4.41.0",
|
167
183
|
"typescript": "^5.8.3",
|
168
|
-
"typescript-eslint": "^8.34.
|
184
|
+
"typescript-eslint": "^8.34.1",
|
169
185
|
"vite-tsconfig-paths": "^5.1.4",
|
170
186
|
"vitest": "^3.2.3",
|
171
|
-
"zod": "
|
187
|
+
"zod": "3.25.67"
|
172
188
|
},
|
173
189
|
"packageManager": "pnpm@10.11.1",
|
174
190
|
"scripts": {
|
175
|
-
"gh:demos-rebuild": "gh workflow run demos-rebuild.yaml -f since_version=0.9.0-next.8",
|
176
|
-
"gh:demos-rebuild:list": "gh run list --workflow=demos-rebuild.yaml",
|
177
|
-
"gh:demos-rebuild:logs": "gh run view $(gh run list --workflow=demos-rebuild.yaml --limit=1 --json databaseId -q '.[0].databaseId') --log",
|
178
|
-
"gh:demos-rebuild:watch": "gh run watch $(gh run list --workflow=demos-rebuild.yaml --limit=1 --json databaseId -q '.[0].databaseId')",
|
179
191
|
"sandbox": "tsx src/sandbox",
|
180
192
|
"sandbox:watch": "tsx --watch src/sandbox",
|
181
193
|
"sb": "pnpm sandbox",
|
182
194
|
"sb:w": "pnpm sandbox:watch",
|
183
|
-
"polen": "node --no-warnings --conditions source ./src/cli/index.ts",
|
195
|
+
"polen": "node --no-warnings --experimental-transform-types --conditions source ./src/cli/index.ts",
|
184
196
|
"test:examples": "playwright test --config 'tests/playwright.config.ts' --project=examples",
|
185
197
|
"test:integration": "playwright test --config 'tests/playwright.config.ts' --project=integration",
|
186
198
|
"test:unit": "vitest",
|
187
199
|
"dev": "pnpm build:watch:emit",
|
188
200
|
"dev:pokemon": "pnpm polen dev --project examples/pokemon",
|
189
|
-
"dev:
|
201
|
+
"dev:hive": "pnpm polen dev --project examples/hive",
|
202
|
+
"dev:github": "pnpm polen dev --project examples/github",
|
203
|
+
"dev:demo-index": "node --no-warnings --experimental-transform-types --conditions source ./src/lib/demos/ui/landing-page-cli.ts --mode dev --serve",
|
190
204
|
"build:demos": "zx ./scripts/build-demos.mjs",
|
191
205
|
"build:clean": "pnpm tsc --build tsconfig.build.json --clean && rm -rf build",
|
192
206
|
"build": "tsc --build tsconfig.build.json",
|
package/src/api/api.ts
CHANGED