polen 0.10.0-next.14 → 0.10.0-next.3
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 +375 -49
- package/build/api/api.d.ts +0 -1
- package/build/api/api.d.ts.map +1 -1
- package/build/api/api.js +0 -1
- package/build/api/api.js.map +1 -1
- package/build/api/builder/builder.js +1 -1
- package/build/api/builder/builder.js.map +1 -1
- package/build/api/config/load.js +6 -6
- 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/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/vite/plugins/branding/index.js +4 -4
- package/build/api/vite/plugins/branding/index.js.map +1 -1
- package/build/api/vite/plugins/build.d.ts.map +1 -1
- package/build/api/vite/plugins/build.js +4 -33
- 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 +13 -13
- package/build/api/vite/plugins/core.js.map +1 -1
- package/build/api/vite/plugins/pages.d.ts +14 -8
- package/build/api/vite/plugins/pages.d.ts.map +1 -1
- package/build/api/vite/plugins/pages.js +185 -111
- package/build/api/vite/plugins/pages.js.map +1 -1
- package/build/api/vite/plugins/serve.d.ts.map +1 -1
- package/build/api/vite/plugins/serve.js +12 -52
- 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/lib/file-router/diagnostic-reporter.js +2 -2
- package/build/lib/file-router/diagnostic-reporter.js.map +1 -1
- package/build/lib/file-router/file-router.d.ts +2 -0
- package/build/lib/file-router/file-router.d.ts.map +1 -1
- package/build/lib/file-router/file-router.js +2 -0
- package/build/lib/file-router/file-router.js.map +1 -1
- package/build/lib/file-router/route.d.ts +0 -2
- 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-tree.d.ts +20 -0
- package/build/lib/file-router/scan-tree.d.ts.map +1 -0
- package/build/lib/file-router/scan-tree.js +158 -0
- package/build/lib/file-router/scan-tree.js.map +1 -0
- package/build/lib/file-router/scan.d.ts.map +1 -1
- package/build/lib/file-router/scan.js +13 -22
- package/build/lib/file-router/scan.js.map +1 -1
- package/build/lib/file-router/sidebar/index.d.ts +3 -0
- package/build/lib/file-router/sidebar/index.d.ts.map +1 -0
- package/build/lib/file-router/sidebar/index.js +4 -0
- package/build/lib/file-router/sidebar/index.js.map +1 -0
- package/build/lib/file-router/sidebar/sidebar-tree.d.ts +9 -0
- package/build/lib/file-router/sidebar/sidebar-tree.d.ts.map +1 -0
- package/build/lib/file-router/sidebar/sidebar-tree.js +85 -0
- package/build/lib/file-router/sidebar/sidebar-tree.js.map +1 -0
- package/build/lib/file-router/sidebar/types.d.ts +17 -0
- package/build/lib/file-router/sidebar/types.d.ts.map +1 -0
- package/build/lib/file-router/sidebar/types.js.map +1 -0
- package/build/lib/helpers.d.ts.map +1 -1
- package/build/lib/helpers.js +3 -5
- package/build/lib/helpers.js.map +1 -1
- package/build/lib/kit-temp.d.ts +0 -157
- package/build/lib/kit-temp.d.ts.map +1 -1
- package/build/lib/kit-temp.js +14 -316
- package/build/lib/kit-temp.js.map +1 -1
- package/build/lib/tree/index.d.ts +3 -0
- package/build/lib/tree/index.d.ts.map +1 -0
- package/build/lib/tree/index.js +2 -0
- package/build/lib/tree/index.js.map +1 -0
- package/build/lib/tree/tree.d.ts +62 -0
- package/build/lib/tree/tree.d.ts.map +1 -0
- package/build/lib/tree/tree.js +134 -0
- package/build/lib/tree/tree.js.map +1 -0
- package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.d.ts +8 -1
- package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.d.ts.map +1 -1
- package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.js +53 -48
- package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.js.map +1 -1
- package/build/package-paths.js +3 -3
- package/build/package-paths.js.map +1 -1
- 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/ArgumentAnnotation.jsx +16 -0
- package/build/template/components/ArgumentAnnotation.jsx.map +1 -0
- package/build/template/components/ArgumentList.jsx +16 -0
- package/build/template/components/ArgumentList.jsx.map +1 -0
- package/build/template/components/ArgumentListAnnotation.jsx +23 -0
- package/build/template/components/ArgumentListAnnotation.jsx.map +1 -0
- package/build/template/components/Changelog.jsx +68 -0
- package/build/template/components/Changelog.jsx.map +1 -0
- package/build/template/components/{CodeBlock.js → CodeBlock.jsx} +5 -4
- package/build/template/components/{CodeBlock.js.map → CodeBlock.jsx.map} +1 -1
- package/build/template/components/DeprecationReason.jsx +10 -0
- package/build/template/components/DeprecationReason.jsx.map +1 -0
- package/build/template/components/Description.jsx +10 -0
- package/build/template/components/Description.jsx.map +1 -0
- package/build/template/components/Field.jsx +22 -0
- package/build/template/components/Field.jsx.map +1 -0
- package/build/template/components/{FieldList.js → FieldList.jsx} +5 -4
- package/build/template/components/FieldList.jsx.map +1 -0
- package/build/template/components/{FieldListSection.js → FieldListSection.jsx} +6 -4
- package/build/template/components/FieldListSection.jsx.map +1 -0
- package/build/template/components/Link.d.ts +2 -2
- package/build/template/components/Link.d.ts.map +1 -1
- package/build/template/components/{Link.js → Link.jsx} +10 -18
- package/build/template/components/Link.jsx.map +1 -0
- package/build/template/components/Logo.jsx +29 -0
- package/build/template/components/Logo.jsx.map +1 -0
- package/build/template/components/{Markdown.js → Markdown.jsx} +2 -3
- package/build/template/components/Markdown.jsx.map +1 -0
- package/build/template/components/MissingSchema.d.ts +1 -1
- package/build/template/components/MissingSchema.d.ts.map +1 -1
- package/build/template/components/MissingSchema.jsx +4 -0
- package/build/template/components/MissingSchema.jsx.map +1 -0
- package/build/template/components/NamedType.jsx +17 -0
- package/build/template/components/NamedType.jsx.map +1 -0
- package/build/template/components/{RadixLink.js → RadixLink.jsx} +1 -1
- package/build/template/components/RadixLink.jsx.map +1 -0
- package/build/template/components/Texts/{MinorHeading.js → MinorHeading.jsx} +3 -4
- package/build/template/components/Texts/MinorHeading.jsx.map +1 -0
- package/build/template/components/Texts/texts.js +1 -1
- package/build/template/components/Texts/texts.js.map +1 -1
- package/build/template/components/{TypeAnnotation.js → TypeAnnotation.jsx} +18 -8
- package/build/template/components/TypeAnnotation.jsx.map +1 -0
- package/build/template/components/TypeFieldsLinkList.jsx +17 -0
- package/build/template/components/TypeFieldsLinkList.jsx.map +1 -0
- package/build/template/components/TypeIndex.jsx +27 -0
- package/build/template/components/TypeIndex.jsx.map +1 -0
- package/build/template/components/graphql/graphql.d.ts +2 -2
- package/build/template/components/graphql/graphql.jsx +3 -0
- package/build/template/components/graphql/graphql.jsx.map +1 -0
- package/build/template/components/graphql/index.d.ts +1 -1
- package/build/template/components/graphql/index.js +1 -1
- package/build/template/components/graphql/index.js.map +1 -1
- package/build/template/components/graphql/{type-kind-icon.js → type-kind-icon.jsx} +2 -3
- package/build/template/components/graphql/type-kind-icon.jsx.map +1 -0
- package/build/template/components/graphql/type-link.jsx +16 -0
- package/build/template/components/graphql/type-link.jsx.map +1 -0
- package/build/template/components/sidebar/Sidebar.d.ts +3 -3
- package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
- package/build/template/components/sidebar/Sidebar.jsx +15 -0
- package/build/template/components/sidebar/Sidebar.jsx.map +1 -0
- 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.js → SidebarItem.jsx} +35 -18
- package/build/template/components/sidebar/SidebarItem.jsx.map +1 -0
- package/build/template/components/sidebar/ToggleButton.d.ts +1 -1
- package/build/template/components/sidebar/ToggleButton.d.ts.map +1 -1
- package/build/template/components/sidebar/ToggleButton.jsx +6 -0
- package/build/template/components/sidebar/ToggleButton.jsx.map +1 -0
- package/build/template/entry.client.d.ts +0 -1
- package/build/template/entry.client.d.ts.map +1 -1
- package/build/template/{entry.client.js → entry.client.jsx} +9 -5
- package/build/template/entry.client.jsx.map +1 -0
- package/build/template/routes/changelog.d.ts +1 -1
- package/build/template/routes/{changelog.js → changelog.jsx} +4 -5
- package/build/template/routes/changelog.jsx.map +1 -0
- package/build/template/routes/{index.js → index.jsx} +2 -3
- package/build/template/routes/index.jsx.map +1 -0
- package/build/template/routes/reference.$type.$field.d.ts +1 -1
- package/build/template/routes/{reference.$type.$field.js → reference.$type.$field.jsx} +5 -6
- package/build/template/routes/reference.$type.$field.jsx.map +1 -0
- package/build/template/routes/reference.$type.d.ts +1 -1
- package/build/template/routes/{reference.$type.js → reference.$type.jsx} +5 -6
- package/build/template/routes/reference.$type.jsx.map +1 -0
- package/build/template/routes/reference.d.ts +2 -2
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/{reference.js → reference.jsx} +12 -7
- package/build/template/routes/reference.jsx.map +1 -0
- package/build/template/routes/root.d.ts +2 -2
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.jsx +188 -0
- package/build/template/routes/root.jsx.map +1 -0
- package/build/template/routes.jsx +5 -0
- package/build/template/routes.jsx.map +1 -0
- package/build/template/server/app.d.ts +1 -8
- package/build/template/server/app.d.ts.map +1 -1
- package/build/template/server/app.js +21 -21
- package/build/template/server/app.js.map +1 -1
- package/build/template/server/main.js +1 -2
- package/build/template/server/main.js.map +1 -1
- package/build/template/server/render-page.d.ts +3 -0
- package/build/template/server/render-page.d.ts.map +1 -0
- package/build/template/server/{create-page-html-response.js → render-page.jsx} +17 -11
- package/build/template/server/render-page.jsx.map +1 -0
- package/build/template/server/ssg/generate.d.ts.map +1 -1
- package/build/template/server/ssg/generate.js +34 -33
- package/build/template/server/ssg/generate.js.map +1 -1
- package/build/template/server/ssg/get-route-paths.js +1 -1
- package/build/template/server/ssg/get-route-paths.js.map +1 -1
- package/build/template/server/view.js +1 -1
- package/build/template/server/view.js.map +1 -1
- package/package.json +9 -73
- package/src/api/api.ts +0 -1
- package/src/api/config/load.ts +5 -5
- package/src/api/config-resolver/resolve.ts +2 -2
- package/src/api/schema/data-sources/schema-directory/schema-directory.ts +1 -1
- package/src/api/singletons/markdown/markdown.test.ts +2 -2
- package/src/api/utils/asset-url/asset-url.test.ts +4 -4
- package/src/api/vite/plugins/branding/index.ts +4 -4
- package/src/api/vite/plugins/build.ts +89 -121
- package/src/api/vite/plugins/core.ts +17 -19
- package/src/api/vite/plugins/pages.ts +209 -135
- package/src/api/vite/plugins/serve.ts +14 -67
- package/src/cli/_/self-contained-mode.ts +5 -5
- package/src/lib/file-router/diagnostic-reporter.ts +2 -2
- package/src/lib/file-router/file-router.ts +2 -0
- package/src/lib/file-router/linter.test.ts +0 -2
- package/src/lib/file-router/route.ts +0 -2
- package/src/lib/file-router/scan-tree.test.ts +189 -0
- package/src/lib/file-router/scan-tree.ts +205 -0
- package/src/lib/file-router/scan.ts +14 -26
- package/src/lib/file-router/sidebar/index.ts +3 -0
- package/src/lib/file-router/sidebar/sidebar-tree.test.ts +123 -0
- package/src/lib/file-router/sidebar/sidebar-tree.ts +110 -0
- package/src/lib/file-router/sidebar/types.ts +19 -0
- package/src/lib/helpers.ts +3 -4
- package/src/lib/kit-temp.ts +14 -428
- package/src/lib/shiki/shiki.test.ts +1 -1
- package/src/lib/tree/index.ts +2 -0
- package/src/lib/tree/tree.test.ts +117 -0
- package/src/lib/tree/tree.ts +183 -0
- package/src/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.ts +58 -52
- package/src/package-paths.ts +3 -3
- package/src/singletons/debug.ts +1 -1
- package/src/template/components/ArgumentAnnotation.tsx +1 -1
- package/src/template/components/ArgumentList.tsx +1 -1
- package/src/template/components/ArgumentListAnnotation.tsx +2 -2
- package/src/template/components/DeprecationReason.tsx +1 -1
- package/src/template/components/Description.tsx +1 -1
- package/src/template/components/Field.tsx +4 -4
- package/src/template/components/FieldList.tsx +1 -1
- package/src/template/components/FieldListSection.tsx +1 -1
- package/src/template/components/Link.tsx +15 -23
- package/src/template/components/NamedType.tsx +2 -2
- package/src/template/components/TypeAnnotation.tsx +1 -1
- package/src/template/components/TypeFieldsLinkList.tsx +1 -1
- package/src/template/components/TypeIndex.tsx +1 -1
- package/src/template/components/graphql/graphql.tsx +2 -2
- package/src/template/components/graphql/index.ts +1 -1
- package/src/template/components/graphql/type-link.tsx +2 -2
- package/src/template/components/sidebar/Sidebar.tsx +2 -2
- package/src/template/components/sidebar/SidebarItem.tsx +14 -14
- package/src/template/entry.client.tsx +5 -2
- package/src/template/routes/changelog.tsx +1 -1
- package/src/template/routes/reference.$type.$field.tsx +3 -3
- package/src/template/routes/reference.$type.tsx +3 -3
- package/src/template/routes/reference.tsx +10 -6
- package/src/template/routes/root.tsx +108 -112
- package/src/template/routes.tsx +1 -1
- package/src/template/server/app.ts +23 -33
- package/src/template/server/main.ts +1 -2
- package/src/template/server/{create-page-html-response.ts → render-page.tsx} +16 -19
- package/src/template/server/ssg/generate.ts +72 -68
- package/src/template/server/ssg/get-route-paths.ts +1 -1
- package/src/template/server/view.ts +1 -1
- package/src/template/styles/code-block.css +0 -32
- package/build/api/content/$$.d.ts +0 -7
- package/build/api/content/$$.d.ts.map +0 -1
- package/build/api/content/$$.js +0 -7
- package/build/api/content/$$.js.map +0 -1
- package/build/api/content/$.d.ts +0 -2
- package/build/api/content/$.d.ts.map +0 -1
- package/build/api/content/$.js +0 -2
- package/build/api/content/$.js.map +0 -1
- package/build/api/content/metadata.d.ts +0 -10
- package/build/api/content/metadata.d.ts.map +0 -1
- package/build/api/content/metadata.js +0 -9
- package/build/api/content/metadata.js.map +0 -1
- package/build/api/content/navbar.d.ts +0 -10
- package/build/api/content/navbar.d.ts.map +0 -1
- package/build/api/content/navbar.js +0 -45
- package/build/api/content/navbar.js.map +0 -1
- package/build/api/content/page.d.ts +0 -11
- package/build/api/content/page.d.ts.map +0 -1
- package/build/api/content/page.js +0 -2
- package/build/api/content/page.js.map +0 -1
- package/build/api/content/scan.d.ts +0 -19
- package/build/api/content/scan.d.ts.map +0 -1
- package/build/api/content/scan.js +0 -90
- package/build/api/content/scan.js.map +0 -1
- package/build/api/content/sidebar.d.ts +0 -104
- package/build/api/content/sidebar.d.ts.map +0 -1
- package/build/api/content/sidebar.js +0 -166
- package/build/api/content/sidebar.js.map +0 -1
- package/build/api/content/utils.d.ts +0 -5
- package/build/api/content/utils.d.ts.map +0 -1
- package/build/api/content/utils.js +0 -8
- package/build/api/content/utils.js.map +0 -1
- package/build/api/static/index.d.ts +0 -2
- package/build/api/static/index.d.ts.map +0 -1
- package/build/api/static/index.js +0 -2
- package/build/api/static/index.js.map +0 -1
- package/build/api/static/manifest.d.ts +0 -18
- package/build/api/static/manifest.d.ts.map +0 -1
- package/build/api/static/manifest.js +0 -13
- package/build/api/static/manifest.js.map +0 -1
- package/build/api/static/rebase.d.ts +0 -14
- package/build/api/static/rebase.d.ts.map +0 -1
- package/build/api/static/rebase.js +0 -110
- package/build/api/static/rebase.js.map +0 -1
- package/build/api/static/static.d.ts +0 -3
- package/build/api/static/static.d.ts.map +0 -1
- package/build/api/static/static.js +0 -3
- package/build/api/static/static.js.map +0 -1
- package/build/cli/commands/static/$default.d.ts +0 -3
- package/build/cli/commands/static/$default.d.ts.map +0 -1
- package/build/cli/commands/static/$default.js +0 -38
- package/build/cli/commands/static/$default.js.map +0 -1
- package/build/cli/commands/static/rebase.d.ts +0 -2
- package/build/cli/commands/static/rebase.d.ts.map +0 -1
- package/build/cli/commands/static/rebase.js +0 -26
- package/build/cli/commands/static/rebase.js.map +0 -1
- package/build/cli/commands/static.d.ts +0 -3
- package/build/cli/commands/static.d.ts.map +0 -1
- package/build/cli/commands/static.js +0 -5
- package/build/cli/commands/static.js.map +0 -1
- package/build/exports/components.d.ts +0 -5
- package/build/exports/components.d.ts.map +0 -1
- package/build/exports/components.js +0 -5
- package/build/exports/components.js.map +0 -1
- package/build/lib/demos/builder.d.ts +0 -83
- package/build/lib/demos/builder.d.ts.map +0 -1
- package/build/lib/demos/builder.js +0 -237
- package/build/lib/demos/builder.js.map +0 -1
- package/build/lib/demos/config-schema.d.ts +0 -243
- package/build/lib/demos/config-schema.d.ts.map +0 -1
- package/build/lib/demos/config-schema.js +0 -52
- package/build/lib/demos/config-schema.js.map +0 -1
- package/build/lib/demos/config.d.ts +0 -40
- package/build/lib/demos/config.d.ts.map +0 -1
- package/build/lib/demos/config.js +0 -180
- package/build/lib/demos/config.js.map +0 -1
- package/build/lib/demos/index.d.ts +0 -9
- package/build/lib/demos/index.d.ts.map +0 -1
- package/build/lib/demos/index.js +0 -8
- package/build/lib/demos/index.js.map +0 -1
- package/build/lib/demos/ui/components.d.ts +0 -33
- package/build/lib/demos/ui/components.d.ts.map +0 -1
- package/build/lib/demos/ui/components.js +0 -699
- package/build/lib/demos/ui/components.js.map +0 -1
- package/build/lib/demos/ui/data-collector.d.ts +0 -88
- package/build/lib/demos/ui/data-collector.d.ts.map +0 -1
- package/build/lib/demos/ui/data-collector.js +0 -174
- package/build/lib/demos/ui/data-collector.js.map +0 -1
- package/build/lib/demos/ui/landing-page-cli.d.ts +0 -3
- package/build/lib/demos/ui/landing-page-cli.d.ts.map +0 -1
- package/build/lib/demos/ui/landing-page-cli.js +0 -21
- package/build/lib/demos/ui/landing-page-cli.js.map +0 -1
- package/build/lib/demos/ui/landing-page.d.ts +0 -32
- package/build/lib/demos/ui/landing-page.d.ts.map +0 -1
- package/build/lib/demos/ui/landing-page.js +0 -83
- package/build/lib/demos/ui/landing-page.js.map +0 -1
- package/build/lib/demos/ui/page-renderer.d.ts +0 -26
- package/build/lib/demos/ui/page-renderer.d.ts.map +0 -1
- package/build/lib/demos/ui/page-renderer.js +0 -104
- package/build/lib/demos/ui/page-renderer.js.map +0 -1
- package/build/lib/demos/utils.d.ts +0 -14
- package/build/lib/demos/utils.d.ts.map +0 -1
- package/build/lib/demos/utils.js +0 -37
- package/build/lib/demos/utils.js.map +0 -1
- package/build/lib/deployment/$$.d.ts +0 -3
- package/build/lib/deployment/$$.d.ts.map +0 -1
- package/build/lib/deployment/$$.js +0 -3
- package/build/lib/deployment/$$.js.map +0 -1
- package/build/lib/deployment/$.d.ts +0 -2
- package/build/lib/deployment/$.d.ts.map +0 -1
- package/build/lib/deployment/$.js +0 -2
- package/build/lib/deployment/$.js.map +0 -1
- package/build/lib/deployment/metadata.d.ts +0 -32
- package/build/lib/deployment/metadata.d.ts.map +0 -1
- package/build/lib/deployment/metadata.js +0 -37
- package/build/lib/deployment/metadata.js.map +0 -1
- package/build/lib/deployment/path-manager.d.ts +0 -41
- package/build/lib/deployment/path-manager.d.ts.map +0 -1
- package/build/lib/deployment/path-manager.js +0 -157
- package/build/lib/deployment/path-manager.js.map +0 -1
- package/build/lib/github-actions/git-controller.d.ts +0 -50
- package/build/lib/github-actions/git-controller.d.ts.map +0 -1
- package/build/lib/github-actions/git-controller.js +0 -90
- package/build/lib/github-actions/git-controller.js.map +0 -1
- package/build/lib/github-actions/github-actions.d.ts +0 -7
- package/build/lib/github-actions/github-actions.d.ts.map +0 -1
- package/build/lib/github-actions/github-actions.js +0 -7
- package/build/lib/github-actions/github-actions.js.map +0 -1
- package/build/lib/github-actions/index.d.ts +0 -2
- package/build/lib/github-actions/index.d.ts.map +0 -1
- package/build/lib/github-actions/index.js +0 -2
- package/build/lib/github-actions/index.js.map +0 -1
- package/build/lib/github-actions/lib/get-pr-deployments.d.ts +0 -12
- package/build/lib/github-actions/lib/get-pr-deployments.d.ts.map +0 -1
- package/build/lib/github-actions/lib/get-pr-deployments.js +0 -51
- package/build/lib/github-actions/lib/get-pr-deployments.js.map +0 -1
- package/build/lib/github-actions/pr-controller.d.ts +0 -39
- package/build/lib/github-actions/pr-controller.d.ts.map +0 -1
- package/build/lib/github-actions/pr-controller.js +0 -122
- package/build/lib/github-actions/pr-controller.js.map +0 -1
- package/build/lib/github-actions/run-step-cli.d.ts +0 -9
- package/build/lib/github-actions/run-step-cli.d.ts.map +0 -1
- package/build/lib/github-actions/run-step-cli.js +0 -71
- package/build/lib/github-actions/run-step-cli.js.map +0 -1
- package/build/lib/github-actions/runner.d.ts +0 -17
- package/build/lib/github-actions/runner.d.ts.map +0 -1
- package/build/lib/github-actions/runner.js +0 -195
- package/build/lib/github-actions/runner.js.map +0 -1
- package/build/lib/github-actions/schemas/context.d.ts +0 -933
- package/build/lib/github-actions/schemas/context.d.ts.map +0 -1
- package/build/lib/github-actions/schemas/context.js +0 -407
- package/build/lib/github-actions/schemas/context.js.map +0 -1
- package/build/lib/github-actions/schemas/index.d.ts +0 -5
- package/build/lib/github-actions/schemas/index.d.ts.map +0 -1
- package/build/lib/github-actions/schemas/index.js +0 -5
- package/build/lib/github-actions/schemas/index.js.map +0 -1
- package/build/lib/github-actions/search-module.d.ts +0 -38
- package/build/lib/github-actions/search-module.d.ts.map +0 -1
- package/build/lib/github-actions/search-module.js +0 -40
- package/build/lib/github-actions/search-module.js.map +0 -1
- package/build/lib/github-actions/step.d.ts +0 -163
- package/build/lib/github-actions/step.d.ts.map +0 -1
- package/build/lib/github-actions/step.js +0 -121
- package/build/lib/github-actions/step.js.map +0 -1
- package/build/lib/graphql-document/$$.d.ts +0 -5
- package/build/lib/graphql-document/$$.d.ts.map +0 -1
- package/build/lib/graphql-document/$$.js +0 -5
- package/build/lib/graphql-document/$$.js.map +0 -1
- package/build/lib/graphql-document/$.d.ts +0 -2
- package/build/lib/graphql-document/$.d.ts.map +0 -1
- package/build/lib/graphql-document/$.js +0 -2
- package/build/lib/graphql-document/$.js.map +0 -1
- package/build/lib/graphql-document/analysis.d.ts +0 -44
- package/build/lib/graphql-document/analysis.d.ts.map +0 -1
- package/build/lib/graphql-document/analysis.js +0 -361
- package/build/lib/graphql-document/analysis.js.map +0 -1
- package/build/lib/graphql-document/components/CopyButton.d.ts +0 -19
- package/build/lib/graphql-document/components/CopyButton.d.ts.map +0 -1
- package/build/lib/graphql-document/components/CopyButton.js +0 -43
- package/build/lib/graphql-document/components/CopyButton.js.map +0 -1
- package/build/lib/graphql-document/components/GraphQLDocument.d.ts +0 -38
- package/build/lib/graphql-document/components/GraphQLDocument.d.ts.map +0 -1
- package/build/lib/graphql-document/components/GraphQLDocument.js +0 -142
- package/build/lib/graphql-document/components/GraphQLDocument.js.map +0 -1
- package/build/lib/graphql-document/components/GraphQLDocumentWithSchema.d.ts +0 -7
- package/build/lib/graphql-document/components/GraphQLDocumentWithSchema.d.ts.map +0 -1
- package/build/lib/graphql-document/components/GraphQLDocumentWithSchema.js +0 -45
- package/build/lib/graphql-document/components/GraphQLDocumentWithSchema.js.map +0 -1
- package/build/lib/graphql-document/components/GraphQLIdentifierPopover.d.ts +0 -33
- package/build/lib/graphql-document/components/GraphQLIdentifierPopover.d.ts.map +0 -1
- package/build/lib/graphql-document/components/GraphQLIdentifierPopover.js +0 -48
- package/build/lib/graphql-document/components/GraphQLIdentifierPopover.js.map +0 -1
- package/build/lib/graphql-document/components/IdentifierLink.d.ts +0 -39
- package/build/lib/graphql-document/components/IdentifierLink.d.ts.map +0 -1
- package/build/lib/graphql-document/components/IdentifierLink.js +0 -75
- package/build/lib/graphql-document/components/IdentifierLink.js.map +0 -1
- package/build/lib/graphql-document/components/graphql-document-styles.d.ts +0 -5
- package/build/lib/graphql-document/components/graphql-document-styles.d.ts.map +0 -1
- package/build/lib/graphql-document/components/graphql-document-styles.js +0 -167
- package/build/lib/graphql-document/components/graphql-document-styles.js.map +0 -1
- package/build/lib/graphql-document/components/index.d.ts +0 -6
- package/build/lib/graphql-document/components/index.d.ts.map +0 -1
- package/build/lib/graphql-document/components/index.js +0 -6
- package/build/lib/graphql-document/components/index.js.map +0 -1
- package/build/lib/graphql-document/example.d.ts +0 -25
- package/build/lib/graphql-document/example.d.ts.map +0 -1
- package/build/lib/graphql-document/example.js +0 -140
- package/build/lib/graphql-document/example.js.map +0 -1
- package/build/lib/graphql-document/graphql-document.d.ts +0 -35
- package/build/lib/graphql-document/graphql-document.d.ts.map +0 -1
- package/build/lib/graphql-document/graphql-document.js +0 -36
- package/build/lib/graphql-document/graphql-document.js.map +0 -1
- package/build/lib/graphql-document/hooks/use-tooltip-state.d.ts +0 -43
- package/build/lib/graphql-document/hooks/use-tooltip-state.d.ts.map +0 -1
- package/build/lib/graphql-document/hooks/use-tooltip-state.js +0 -132
- package/build/lib/graphql-document/hooks/use-tooltip-state.js.map +0 -1
- package/build/lib/graphql-document/positioning-simple.d.ts +0 -63
- package/build/lib/graphql-document/positioning-simple.d.ts.map +0 -1
- package/build/lib/graphql-document/positioning-simple.js +0 -185
- package/build/lib/graphql-document/positioning-simple.js.map +0 -1
- package/build/lib/graphql-document/schema-context.d.ts +0 -8
- package/build/lib/graphql-document/schema-context.d.ts.map +0 -1
- package/build/lib/graphql-document/schema-context.js +0 -11
- package/build/lib/graphql-document/schema-context.js.map +0 -1
- package/build/lib/graphql-document/schema-integration-example.d.ts +0 -27
- package/build/lib/graphql-document/schema-integration-example.d.ts.map +0 -1
- package/build/lib/graphql-document/schema-integration-example.js +0 -297
- package/build/lib/graphql-document/schema-integration-example.js.map +0 -1
- package/build/lib/graphql-document/schema-integration.d.ts +0 -135
- package/build/lib/graphql-document/schema-integration.d.ts.map +0 -1
- package/build/lib/graphql-document/schema-integration.js +0 -328
- package/build/lib/graphql-document/schema-integration.js.map +0 -1
- package/build/lib/graphql-document/types.d.ts +0 -117
- package/build/lib/graphql-document/types.d.ts.map +0 -1
- package/build/lib/graphql-document/types.js.map +0 -1
- package/build/lib/kit-temp.test-d.d.ts +0 -2
- package/build/lib/kit-temp.test-d.d.ts.map +0 -1
- package/build/lib/kit-temp.test-d.js +0 -75
- package/build/lib/kit-temp.test-d.js.map +0 -1
- package/build/lib/mask/$$.d.ts +0 -3
- package/build/lib/mask/$$.d.ts.map +0 -1
- package/build/lib/mask/$$.js +0 -3
- package/build/lib/mask/$$.js.map +0 -1
- package/build/lib/mask/$.d.ts +0 -2
- package/build/lib/mask/$.d.ts.map +0 -1
- package/build/lib/mask/$.js +0 -2
- package/build/lib/mask/$.js.map +0 -1
- package/build/lib/mask/apply.d.ts +0 -86
- package/build/lib/mask/apply.d.ts.map +0 -1
- package/build/lib/mask/apply.js +0 -86
- package/build/lib/mask/apply.js.map +0 -1
- package/build/lib/mask/mask.d.ts +0 -124
- package/build/lib/mask/mask.d.ts.map +0 -1
- package/build/lib/mask/mask.js +0 -137
- package/build/lib/mask/mask.js.map +0 -1
- package/build/lib/mask/mask.test-d.d.ts +0 -2
- package/build/lib/mask/mask.test-d.d.ts.map +0 -1
- package/build/lib/mask/mask.test-d.js +0 -102
- package/build/lib/mask/mask.test-d.js.map +0 -1
- package/build/lib/task/$$.d.ts +0 -3
- package/build/lib/task/$$.d.ts.map +0 -1
- package/build/lib/task/$$.js +0 -3
- package/build/lib/task/$$.js.map +0 -1
- package/build/lib/task/$.d.ts +0 -2
- package/build/lib/task/$.d.ts.map +0 -1
- package/build/lib/task/$.js +0 -2
- package/build/lib/task/$.js.map +0 -1
- package/build/lib/task/report.d.ts +0 -28
- package/build/lib/task/report.d.ts.map +0 -1
- package/build/lib/task/report.js +0 -33
- package/build/lib/task/report.js.map +0 -1
- package/build/lib/task/task.d.ts +0 -44
- package/build/lib/task/task.d.ts.map +0 -1
- package/build/lib/task/task.js +0 -63
- package/build/lib/task/task.js.map +0 -1
- package/build/lib/version-history/index.d.ts +0 -3
- package/build/lib/version-history/index.d.ts.map +0 -1
- package/build/lib/version-history/index.js +0 -2
- package/build/lib/version-history/index.js.map +0 -1
- package/build/lib/version-history/types.d.ts +0 -64
- package/build/lib/version-history/types.d.ts.map +0 -1
- package/build/lib/version-history/types.js +0 -5
- package/build/lib/version-history/types.js.map +0 -1
- package/build/lib/version-history/version-history.d.ts +0 -85
- package/build/lib/version-history/version-history.d.ts.map +0 -1
- package/build/lib/version-history/version-history.js +0 -248
- package/build/lib/version-history/version-history.js.map +0 -1
- package/build/sandbox.d.ts +0 -2
- package/build/sandbox.d.ts.map +0 -1
- package/build/sandbox.js +0 -18
- package/build/sandbox.js.map +0 -1
- package/build/template/components/ArgumentAnnotation.js +0 -10
- package/build/template/components/ArgumentAnnotation.js.map +0 -1
- package/build/template/components/ArgumentList.js +0 -9
- package/build/template/components/ArgumentList.js.map +0 -1
- package/build/template/components/ArgumentListAnnotation.js +0 -15
- package/build/template/components/ArgumentListAnnotation.js.map +0 -1
- package/build/template/components/Changelog.js +0 -44
- package/build/template/components/Changelog.js.map +0 -1
- package/build/template/components/CodeBlockEnhancer.d.ts +0 -2
- package/build/template/components/CodeBlockEnhancer.d.ts.map +0 -1
- package/build/template/components/CodeBlockEnhancer.js +0 -175
- package/build/template/components/CodeBlockEnhancer.js.map +0 -1
- package/build/template/components/DeprecationReason.js +0 -9
- package/build/template/components/DeprecationReason.js.map +0 -1
- package/build/template/components/Description.js +0 -9
- package/build/template/components/Description.js.map +0 -1
- package/build/template/components/Field.js +0 -14
- package/build/template/components/Field.js.map +0 -1
- package/build/template/components/FieldList.js.map +0 -1
- package/build/template/components/FieldListSection.js.map +0 -1
- package/build/template/components/HamburgerMenu.d.ts +0 -9
- package/build/template/components/HamburgerMenu.d.ts.map +0 -1
- package/build/template/components/HamburgerMenu.js +0 -30
- package/build/template/components/HamburgerMenu.js.map +0 -1
- package/build/template/components/Link.js.map +0 -1
- package/build/template/components/Logo.js +0 -20
- package/build/template/components/Logo.js.map +0 -1
- package/build/template/components/MDXComponents.d.ts +0 -11
- package/build/template/components/MDXComponents.d.ts.map +0 -1
- package/build/template/components/MDXComponents.js +0 -70
- package/build/template/components/MDXComponents.js.map +0 -1
- package/build/template/components/Markdown.js.map +0 -1
- package/build/template/components/MissingSchema.js +0 -5
- package/build/template/components/MissingSchema.js.map +0 -1
- package/build/template/components/NamedType.js +0 -12
- package/build/template/components/NamedType.js.map +0 -1
- package/build/template/components/NotFound.d.ts +0 -2
- package/build/template/components/NotFound.d.ts.map +0 -1
- package/build/template/components/NotFound.js +0 -7
- package/build/template/components/NotFound.js.map +0 -1
- package/build/template/components/RadixLink.js.map +0 -1
- package/build/template/components/TestComponent.d.ts +0 -5
- package/build/template/components/TestComponent.d.ts.map +0 -1
- package/build/template/components/TestComponent.js +0 -7
- package/build/template/components/TestComponent.js.map +0 -1
- package/build/template/components/Texts/MinorHeading.js.map +0 -1
- package/build/template/components/ThemeToggle.d.ts +0 -3
- package/build/template/components/ThemeToggle.d.ts.map +0 -1
- package/build/template/components/ThemeToggle.js +0 -9
- package/build/template/components/ThemeToggle.js.map +0 -1
- package/build/template/components/TypeAnnotation.js.map +0 -1
- package/build/template/components/TypeFieldsLinkList.js +0 -9
- package/build/template/components/TypeFieldsLinkList.js.map +0 -1
- package/build/template/components/TypeIndex.js +0 -17
- package/build/template/components/TypeIndex.js.map +0 -1
- package/build/template/components/content/$$.d.ts +0 -3
- package/build/template/components/content/$$.d.ts.map +0 -1
- package/build/template/components/content/$$.js +0 -3
- package/build/template/components/content/$$.js.map +0 -1
- package/build/template/components/content/GraphQLDocumentWithSchema.d.ts +0 -8
- package/build/template/components/content/GraphQLDocumentWithSchema.d.ts.map +0 -1
- package/build/template/components/content/GraphQLDocumentWithSchema.js +0 -13
- package/build/template/components/content/GraphQLDocumentWithSchema.js.map +0 -1
- package/build/template/components/content/GraphQLDocumentWrapper.d.ts +0 -7
- package/build/template/components/content/GraphQLDocumentWrapper.d.ts.map +0 -1
- package/build/template/components/content/GraphQLDocumentWrapper.js +0 -63
- package/build/template/components/content/GraphQLDocumentWrapper.js.map +0 -1
- package/build/template/components/graphql/graphql.js +0 -3
- package/build/template/components/graphql/graphql.js.map +0 -1
- package/build/template/components/graphql/type-kind-icon.js.map +0 -1
- package/build/template/components/graphql/type-link.js +0 -11
- package/build/template/components/graphql/type-link.js.map +0 -1
- package/build/template/components/sidebar/Sidebar.js +0 -11
- package/build/template/components/sidebar/Sidebar.js.map +0 -1
- package/build/template/components/sidebar/SidebarItem.js.map +0 -1
- package/build/template/components/sidebar/ToggleButton.js +0 -5
- package/build/template/components/sidebar/ToggleButton.js.map +0 -1
- package/build/template/contexts/ThemeContext.d.ts +0 -12
- package/build/template/contexts/ThemeContext.d.ts.map +0 -1
- package/build/template/contexts/ThemeContext.js +0 -40
- package/build/template/contexts/ThemeContext.js.map +0 -1
- package/build/template/entry.client.js.map +0 -1
- package/build/template/hooks/useClientOnly.d.ts +0 -9
- package/build/template/hooks/useClientOnly.d.ts.map +0 -1
- package/build/template/hooks/useClientOnly.js +0 -16
- package/build/template/hooks/useClientOnly.js.map +0 -1
- package/build/template/routes/changelog.js.map +0 -1
- package/build/template/routes/index.js.map +0 -1
- package/build/template/routes/reference.$type.$field.js.map +0 -1
- package/build/template/routes/reference.$type.js.map +0 -1
- package/build/template/routes/reference.js.map +0 -1
- package/build/template/routes/root.js +0 -138
- package/build/template/routes/root.js.map +0 -1
- package/build/template/routes.js +0 -5
- package/build/template/routes.js.map +0 -1
- package/build/template/server/create-page-html-response.d.ts +0 -7
- package/build/template/server/create-page-html-response.d.ts.map +0 -1
- package/build/template/server/create-page-html-response.js.map +0 -1
- package/build/template/server/middleware/page.d.ts +0 -4
- package/build/template/server/middleware/page.d.ts.map +0 -1
- package/build/template/server/middleware/page.js +0 -15
- package/build/template/server/middleware/page.js.map +0 -1
- package/build/template/server/middleware/unsupported-assets.d.ts +0 -10
- package/build/template/server/middleware/unsupported-assets.d.ts.map +0 -1
- package/build/template/server/middleware/unsupported-assets.js +0 -21
- package/build/template/server/middleware/unsupported-assets.js.map +0 -1
- package/build/template/styles/code-block.css +0 -218
- package/src/api/content/$$.ts +0 -6
- package/src/api/content/$.test.ts +0 -72
- package/src/api/content/$.ts +0 -1
- package/src/api/content/metadata.ts +0 -11
- package/src/api/content/navbar.test.ts +0 -55
- package/src/api/content/navbar.ts +0 -61
- package/src/api/content/page.ts +0 -12
- package/src/api/content/scan.ts +0 -117
- package/src/api/content/sidebar.test.ts +0 -297
- package/src/api/content/sidebar.ts +0 -283
- package/src/api/content/utils.ts +0 -7
- package/src/api/static/index.ts +0 -1
- package/src/api/static/manifest.test.ts +0 -106
- package/src/api/static/manifest.ts +0 -16
- package/src/api/static/rebase.test.ts +0 -229
- package/src/api/static/rebase.ts +0 -140
- package/src/api/static/static.ts +0 -2
- package/src/cli/commands/static/$default.ts +0 -43
- package/src/cli/commands/static/rebase.ts +0 -37
- package/src/cli/commands/static.ts +0 -6
- package/src/exports/components.ts +0 -4
- package/src/lib/demos/builder.ts +0 -298
- package/src/lib/demos/config-schema.ts +0 -56
- package/src/lib/demos/config.test.ts +0 -193
- package/src/lib/demos/config.ts +0 -205
- package/src/lib/demos/index.ts +0 -9
- package/src/lib/demos/ui/components.ts +0 -739
- package/src/lib/demos/ui/data-collector.ts +0 -246
- package/src/lib/demos/ui/landing-page-cli.ts +0 -23
- package/src/lib/demos/ui/landing-page.ts +0 -126
- package/src/lib/demos/ui/page-renderer.ts +0 -124
- package/src/lib/demos/utils.ts +0 -43
- package/src/lib/deployment/$$.ts +0 -2
- package/src/lib/deployment/$.test.ts +0 -53
- package/src/lib/deployment/$.ts +0 -1
- package/src/lib/deployment/metadata.ts +0 -40
- package/src/lib/deployment/path-manager.ts +0 -186
- package/src/lib/github-actions/git-controller.ts +0 -151
- package/src/lib/github-actions/github-actions.ts +0 -6
- package/src/lib/github-actions/index.ts +0 -1
- package/src/lib/github-actions/lib/get-pr-deployments.ts +0 -76
- package/src/lib/github-actions/pr-controller.test.ts +0 -172
- package/src/lib/github-actions/pr-controller.ts +0 -183
- package/src/lib/github-actions/run-step-cli.ts +0 -84
- package/src/lib/github-actions/runner.test.ts +0 -192
- package/src/lib/github-actions/runner.ts +0 -226
- package/src/lib/github-actions/schemas/context.ts +0 -424
- package/src/lib/github-actions/schemas/index.ts +0 -5
- package/src/lib/github-actions/search-module.test.ts +0 -110
- package/src/lib/github-actions/search-module.ts +0 -76
- package/src/lib/github-actions/step.test.ts +0 -149
- package/src/lib/github-actions/step.ts +0 -232
- package/src/lib/graphql-document/$$.ts +0 -4
- package/src/lib/graphql-document/$.test.ts +0 -132
- package/src/lib/graphql-document/$.ts +0 -1
- package/src/lib/graphql-document/README.md +0 -102
- package/src/lib/graphql-document/analysis.ts +0 -415
- package/src/lib/graphql-document/components/CopyButton.tsx +0 -76
- package/src/lib/graphql-document/components/GraphQLDocument.tsx +0 -262
- package/src/lib/graphql-document/components/GraphQLDocument.unit.test.ts +0 -188
- package/src/lib/graphql-document/components/GraphQLDocumentWithSchema.tsx +0 -70
- package/src/lib/graphql-document/components/GraphQLIdentifierPopover.tsx +0 -197
- package/src/lib/graphql-document/components/IdentifierLink.tsx +0 -160
- package/src/lib/graphql-document/components/graphql-document-styles.ts +0 -167
- package/src/lib/graphql-document/components/index.ts +0 -5
- package/src/lib/graphql-document/demo.md +0 -155
- package/src/lib/graphql-document/example.ts +0 -163
- package/src/lib/graphql-document/graphql-document.ts +0 -37
- package/src/lib/graphql-document/hooks/use-tooltip-state.test.ts +0 -76
- package/src/lib/graphql-document/hooks/use-tooltip-state.ts +0 -191
- package/src/lib/graphql-document/positioning-simple.test.ts +0 -248
- package/src/lib/graphql-document/positioning-simple.ts +0 -260
- package/src/lib/graphql-document/schema-context.tsx +0 -20
- package/src/lib/graphql-document/schema-integration-example.ts +0 -341
- package/src/lib/graphql-document/schema-integration.test.ts +0 -365
- package/src/lib/graphql-document/schema-integration.ts +0 -497
- package/src/lib/graphql-document/types.ts +0 -129
- package/src/lib/kit-temp.test-d.ts +0 -115
- package/src/lib/kit-temp.test.ts +0 -139
- package/src/lib/mask/$$.ts +0 -2
- package/src/lib/mask/$.test.ts +0 -248
- package/src/lib/mask/$.ts +0 -1
- package/src/lib/mask/apply.ts +0 -134
- package/src/lib/mask/mask.test-d.ts +0 -144
- package/src/lib/mask/mask.ts +0 -244
- package/src/lib/task/$$.ts +0 -2
- package/src/lib/task/$.test.ts +0 -209
- package/src/lib/task/$.ts +0 -1
- package/src/lib/task/report.ts +0 -72
- package/src/lib/task/task.ts +0 -112
- package/src/lib/version-history/index.test.ts +0 -196
- package/src/lib/version-history/index.ts +0 -4
- package/src/lib/version-history/types.ts +0 -68
- package/src/lib/version-history/version-history.ts +0 -293
- package/src/sandbox.ts +0 -20
- package/src/template/components/CodeBlockEnhancer.tsx +0 -192
- package/src/template/components/HamburgerMenu.tsx +0 -96
- package/src/template/components/MDXComponents.tsx +0 -101
- package/src/template/components/NotFound.tsx +0 -28
- package/src/template/components/TestComponent.tsx +0 -6
- package/src/template/components/ThemeToggle.tsx +0 -21
- package/src/template/components/content/$$.ts +0 -2
- package/src/template/components/content/GraphQLDocumentWithSchema.tsx +0 -13
- package/src/template/components/content/GraphQLDocumentWrapper.tsx +0 -89
- package/src/template/contexts/ThemeContext.tsx +0 -60
- package/src/template/hooks/useClientOnly.ts +0 -21
- package/src/template/server/middleware/page.ts +0 -19
- package/src/template/server/middleware/unsupported-assets.ts +0 -25
- /package/build/lib/{graphql-document → file-router/sidebar}/types.js +0 -0
package/README.md
CHANGED
@@ -2,33 +2,34 @@
|
|
2
2
|
|
3
3
|
A framework for delightful GraphQL developer portals
|
4
4
|
|
5
|
-
##
|
5
|
+
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
```sh
|
8
|
+
npm add polen
|
9
|
+
```
|
8
10
|
|
9
|
-
|
10
|
-
- 📝 **Changelog** - Track schema evolution over time
|
11
|
-
- 📄 **Custom Pages** - Add guides, tutorials, and API documentation with Markdown/MDX
|
12
|
-
- 🎨 **Beautiful UI** - Modern, responsive design out of the box
|
13
|
-
- 🚀 **Instant Deploy** - Static site generation for easy hosting anywhere
|
11
|
+
## Quickstart
|
14
12
|
|
15
|
-
|
13
|
+
1. Have a `schema.graphql` GraphQL schema file in your project directory.
|
16
14
|
|
17
|
-
```
|
18
|
-
|
19
|
-
|
15
|
+
```graphql
|
16
|
+
type Query {
|
17
|
+
hello: String
|
18
|
+
}
|
19
|
+
```
|
20
20
|
|
21
|
-
|
22
|
-
echo "type Query { hello: String }" > schema.graphql
|
21
|
+
2. Build your developer portal.
|
23
22
|
|
24
|
-
|
25
|
-
npx polen build
|
23
|
+
```sh
|
24
|
+
npx polen build
|
25
|
+
```
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
```
|
27
|
+
3. You now have a deployable developer portal. Try it locally
|
28
|
+
(http://localhost:3001):
|
30
29
|
|
31
|
-
|
30
|
+
```sh
|
31
|
+
node build/app.js
|
32
|
+
```
|
32
33
|
|
33
34
|
## Live Demos
|
34
35
|
|
@@ -41,49 +42,374 @@ Featured examples:
|
|
41
42
|
- **[Pokemon GraphQL API](https://the-guild-org.github.io/polen/latest/pokemon/)** - Explore a fun GraphQL API with rich schema documentation
|
42
43
|
- **GitHub GraphQL API** (Coming soon) - Browse GitHub's extensive GraphQL API documentation
|
43
44
|
|
44
|
-
|
45
|
+
### Demo Versions
|
46
|
+
|
47
|
+
Our demos are available at different stability levels, matching npm's dist tags:
|
48
|
+
|
49
|
+
- **Stable Release** (`latest`): [/polen/latest/pokemon](https://the-guild-org.github.io/polen/latest/pokemon/)
|
50
|
+
- The most recent stable version (e.g., `1.0.0`)
|
51
|
+
- Same as `npm install polen`
|
45
52
|
|
46
|
-
- **[
|
47
|
-
-
|
48
|
-
-
|
49
|
-
- **[Build & Deploy](./docs/guide/build.md)** - Build configuration and deployment options
|
50
|
-
- **[CLI Reference](./docs/cli/index.md)** - All available commands
|
51
|
-
- **[Package API](./docs/api/package.md)** - Programmatic usage
|
53
|
+
- **Pre-release** (`next`): [/polen/next/pokemon](https://the-guild-org.github.io/polen/next/pokemon/)
|
54
|
+
- The latest pre-release version (e.g., `1.1.0-beta.1`)
|
55
|
+
- Same as `npm install polen@next`
|
52
56
|
|
53
|
-
|
57
|
+
- **Tagged Versions**: Access any specific release
|
58
|
+
- e.g., [/polen/1.0.0/pokemon](https://the-guild-org.github.io/polen/1.0.0/pokemon/)
|
59
|
+
- Same as `npm install polen@1.0.0`
|
54
60
|
|
55
|
-
|
56
|
-
|
61
|
+
> [!TIP]
|
62
|
+
> The correspondence between demo URLs and npm versions makes it easy to test features before upgrading. If you're using `polen@1.0.0`, visit `/polen/1.0.0/pokemon` to see exactly how your docs will look!
|
57
63
|
|
58
64
|
## Examples
|
59
65
|
|
60
|
-
Find
|
66
|
+
Find the source code for these demos and more in the [examples](./examples) directory.
|
67
|
+
|
68
|
+
## Guide
|
69
|
+
|
70
|
+
### Schema Reference
|
71
|
+
|
72
|
+
If you [provide Polen with a schema](#providing-a-schema), Polen will
|
73
|
+
automatically render reference documentation for it.
|
74
|
+
|
75
|
+
If you provide multiple versions of your schema then the reference is based on
|
76
|
+
the schema with the latest date.
|
77
|
+
|
78
|
+
### Schema Changelog
|
79
|
+
|
80
|
+
Polen can render a changelog for your schema.
|
81
|
+
|
82
|
+
This feature is automatically enabled when you provide multiple versions of your
|
83
|
+
schema. Refer to [Provide a Schema](#providing-a-schema) for details on how to
|
84
|
+
do that.
|
85
|
+
|
86
|
+
### Schema Augmentations
|
87
|
+
|
88
|
+
#### Descriptions
|
89
|
+
|
90
|
+
You can append/prepend/replace descriptions of types and fields in your schema.
|
91
|
+
|
92
|
+
Any Markdown syntax in your content will be automatically rendered.
|
93
|
+
|
94
|
+
```ts
|
95
|
+
import { Polen } from 'polen'
|
96
|
+
|
97
|
+
export default Polen.defineConfig({
|
98
|
+
templateVariables: {
|
99
|
+
title: `Pokemon Developer Portal`,
|
100
|
+
},
|
101
|
+
schemaAugmentations: [
|
102
|
+
{
|
103
|
+
type: `description`,
|
104
|
+
on: {
|
105
|
+
type: `TargetType`,
|
106
|
+
name: `Query`,
|
107
|
+
},
|
108
|
+
placement: `over`,
|
109
|
+
content:
|
110
|
+
`**Content from [Polen](https://github.com/the-guild-org/polen)**.`,
|
111
|
+
},
|
112
|
+
],
|
113
|
+
})
|
114
|
+
```
|
115
|
+
|
116
|
+
### Providing a Schema
|
117
|
+
|
118
|
+
You can provide a GraphQL schema to Polen in various ways.
|
119
|
+
|
120
|
+
#### File
|
121
|
+
|
122
|
+
Have a single `schema.graphql` SDL file in your project directory. Example:
|
123
|
+
|
124
|
+
```
|
125
|
+
schema.graphql
|
126
|
+
```
|
127
|
+
|
128
|
+
#### Directory
|
129
|
+
|
130
|
+
Have a `schema` directory in your project directory with multiple versions of
|
131
|
+
your schema as SDL files named using format: `YYYY-MM-DD.graphql`. Example:
|
132
|
+
|
133
|
+
```
|
134
|
+
schema/
|
135
|
+
2023-01-13.graphql
|
136
|
+
2020-09-26.graphql
|
137
|
+
```
|
138
|
+
|
139
|
+
This approach allows Polen to render a changelog for your schema. Refer to
|
140
|
+
[Changelog](#changelog).
|
141
|
+
|
142
|
+
#### Memory
|
143
|
+
|
144
|
+
You can provide a schema to Polen in memory via configuration.
|
145
|
+
|
146
|
+
You have control to provide one or multiple schemas, with or without dates.
|
147
|
+
|
148
|
+
If no dates are given then the current time is assumed.
|
149
|
+
|
150
|
+
If you provide multiple versions then Polen can render a changelog for you.
|
151
|
+
Refer to [Changelog](#changelog).
|
152
|
+
|
153
|
+
Basic example:
|
154
|
+
|
155
|
+
```ts
|
156
|
+
// polen.config.ts
|
157
|
+
import { Polen } from 'polen'
|
158
|
+
|
159
|
+
export default Polen.defineConfig({
|
160
|
+
schema: {
|
161
|
+
useDataSources: `memory`,
|
162
|
+
dataSources: {
|
163
|
+
memory: {
|
164
|
+
versions: [
|
165
|
+
{
|
166
|
+
date: new Date('2023-01-13'),
|
167
|
+
value: `type Query { hello: String }`,
|
168
|
+
},
|
169
|
+
],
|
170
|
+
},
|
171
|
+
},
|
172
|
+
},
|
173
|
+
})
|
174
|
+
```
|
175
|
+
|
176
|
+
### Pages
|
177
|
+
|
178
|
+
You can add pages to your developer portal by adding markdown (`.md`) or MDX (`.mdx`) files to a
|
179
|
+
`pages` directory.
|
180
|
+
|
181
|
+
#### Routing
|
182
|
+
|
183
|
+
- A file becomes a page.
|
184
|
+
- The relative (to `pages` directory) file path becomes the web path.
|
185
|
+
- _Navigation Bar_
|
186
|
+
- Top level pages are listed in the navigation bar.
|
187
|
+
- _Index Pages_
|
188
|
+
- A file named `index` is an index page.
|
189
|
+
- The file name is elided in the route. For example `foo/index.md` becomes
|
190
|
+
route `/foo` .
|
191
|
+
- Details:
|
192
|
+
- If both `foo/index.md` and `foo.md` exist, then the former is used, latter
|
193
|
+
ignored, and a warning is raised.
|
194
|
+
|
195
|
+
Example:
|
196
|
+
|
197
|
+
| File | Route | Navigation Bar Title |
|
198
|
+
| --------------------- | ---------- | -------------------- |
|
199
|
+
| `pages/foo.md` | `/foo` | `Foo` |
|
200
|
+
| `pages/foo.mdx` | `/foo` | `Foo` |
|
201
|
+
| `pages/foo/index.md` | `/foo` | `Foo` |
|
202
|
+
| `pages/foo/index.mdx` | `/foo` | `Foo` |
|
203
|
+
| `pages/foo/bar.md` | `/foo/bar` | `Foo` |
|
204
|
+
| `pages/foo/bar.mdx` | `/foo/bar` | `Foo` |
|
205
|
+
|
206
|
+
#### Page Ordering
|
207
|
+
|
208
|
+
You can control the order of pages in the sidebar by prefixing file names with numbers followed by `_` or `-`. The numeric prefix affects only the sidebar ordering - it does not appear in the page URL or title.
|
209
|
+
|
210
|
+
- _Syntax_
|
211
|
+
- Format: `<number>_<name>.md` or `<number>-<name>.md`
|
212
|
+
- Examples: `01_intro.md`, `10_getting-started.md`, `20-configuration.md`
|
213
|
+
- _Ordering_
|
214
|
+
- Pages with numeric prefixes appear before pages without prefixes
|
215
|
+
- Pages are sorted by their numeric value (not alphabetically)
|
216
|
+
- Pages without prefixes are sorted alphabetically after numbered pages
|
217
|
+
- _Collisions_
|
218
|
+
- If multiple files have the same name after removing the prefix (e.g., `10_about.md` and `20_about.md`), the file with the higher number is used
|
219
|
+
- A warning is shown for collision conflicts
|
220
|
+
|
221
|
+
Example:
|
222
|
+
|
223
|
+
| File | Route | Sidebar Title | Order |
|
224
|
+
| ----------------------------- | ------------------ | ----------------- | ----- |
|
225
|
+
| `pages/10_getting-started.md` | `/getting-started` | `Getting Started` | 1st |
|
226
|
+
| `pages/20_configuration.md` | `/configuration` | `Configuration` | 2nd |
|
227
|
+
| `pages/30_advanced.md` | `/advanced` | `Advanced` | 3rd |
|
228
|
+
| `pages/api-reference.md` | `/api-reference` | `Api Reference` | 4th |
|
229
|
+
| `pages/troubleshooting.md` | `/troubleshooting` | `Troubleshooting` | 5th |
|
230
|
+
|
231
|
+
#### Markdown
|
232
|
+
|
233
|
+
Markdown files (`.md`) are supported using [remark](https://remark.js.org/). This is the same underlying engine as [MDX](https://mdxjs.com/) thus you can rely on consistent behavior between your `.md` and `.mdx` files.
|
234
|
+
|
235
|
+
Polen supports:
|
236
|
+
|
237
|
+
- [CommonMark](https://commonmark.org/).
|
238
|
+
- [GitHub Flavored Markdown](https://github.github.com/gfm/).
|
239
|
+
|
240
|
+
In the future you will be able to extend Polen in your project with additional [Remark plugins](https://github.com/remarkjs/remark/blob/main/doc/plugins.md#list-of-plugins). Track this feature in [#64](https://github.com/the-guild-org/polen/issues/64).
|
61
241
|
|
62
|
-
|
63
|
-
- `github` - GitHub GraphQL API (coming soon)
|
64
|
-
- `minimal` - Minimal setup example
|
242
|
+
If you're new to Markdown, here are some great resources to get started:
|
65
243
|
|
66
|
-
|
244
|
+
- **[CommonMark Tutorial](https://commonmark.org/help/)** - Interactive 10-minute tutorial
|
245
|
+
- **[Markdown Guide](https://www.markdownguide.org/)** - Comprehensive reference and cheat sheets
|
246
|
+
- **[GitHub's Markdown Guide](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)** - Practical guide with examples
|
67
247
|
|
68
|
-
|
69
|
-
- **Developer Focused** - Built specifically for GraphQL API documentation
|
70
|
-
- **Modern Stack** - React, TypeScript, and Vite for fast builds
|
71
|
-
- **Flexible** - Customize everything from branding to page structure
|
72
|
-
- **Static or Server** - Deploy as static files or run as a Node.js server
|
248
|
+
Syntax features available to you include:
|
73
249
|
|
74
|
-
|
250
|
+
**Via CommonMark:**
|
75
251
|
|
76
|
-
|
252
|
+
- Headers, paragraphs, and line breaks
|
253
|
+
- Bold, italic, and code formatting
|
254
|
+
- Lists (ordered and unordered)
|
255
|
+
- Links and images
|
256
|
+
- Code blocks with syntax highlighting
|
257
|
+
- Blockquotes
|
258
|
+
- Horizontal rules
|
259
|
+
|
260
|
+
**Via GitHub Flavored Markdown:**
|
261
|
+
|
262
|
+
- Tables
|
263
|
+
- Task lists
|
264
|
+
- Strikethrough text
|
265
|
+
- Autolinks
|
266
|
+
|
267
|
+
#### MDX
|
268
|
+
|
269
|
+
MDX begins where [Markdown](#markdown) ends. So everything stated there such as regarding supported Markdown flavours applies here too.
|
270
|
+
|
271
|
+
MDX files (`.mdx`) allow you to use JSX/React components within your markdown content. This enables
|
272
|
+
interactive documentation with live examples, custom components, and more.
|
273
|
+
|
274
|
+
Example MDX page:
|
275
|
+
|
276
|
+
```mdx
|
277
|
+
# Interactive Documentation
|
278
|
+
|
279
|
+
import { Button } from "@radix-ui/themes";
|
280
|
+
|
281
|
+
This page demonstrates MDX features.
|
282
|
+
|
283
|
+
<Button onClick={() => alert("Hello from MDX!")}>Click me!</Button>
|
284
|
+
|
285
|
+
## Code Examples
|
286
|
+
|
287
|
+
You can mix markdown with React components for powerful documentation:
|
288
|
+
|
289
|
+
export const CodeExample = ({ language, code }) => (
|
290
|
+
<pre>
|
291
|
+
<code className={`language-${language}`}>{code}</code>
|
292
|
+
</pre>
|
293
|
+
);
|
294
|
+
|
295
|
+
<CodeExample
|
296
|
+
language="graphql"
|
297
|
+
code={`
|
298
|
+
query GetUser($id: ID!) {
|
299
|
+
user(id: $id) {
|
300
|
+
name
|
301
|
+
email
|
302
|
+
}
|
303
|
+
}
|
304
|
+
`}
|
305
|
+
/>
|
306
|
+
```
|
307
|
+
|
308
|
+
### Build
|
309
|
+
|
310
|
+
When you build you may choose between SSG and SSR. The default is SSG.
|
311
|
+
|
312
|
+
#### SSG
|
313
|
+
|
314
|
+
```sh
|
315
|
+
npx polen build --type ssg
|
316
|
+
```
|
317
|
+
|
318
|
+
Deploy the contents of the `./build` directory on your favourite static site provider.
|
319
|
+
|
320
|
+
#### SSR
|
321
|
+
|
322
|
+
In the future Polen will have features that motivate using a server, but for now there is no particular benefit. Use `SSG` instead.
|
323
|
+
|
324
|
+
#### Base Path Configuration
|
325
|
+
|
326
|
+
Polen supports deploying to subdirectories through the `build.base` configuration option. This is useful for:
|
327
|
+
|
328
|
+
- GitHub Pages project sites (e.g., `/my-project/`)
|
329
|
+
- PR preview deployments (e.g., `/pr-123/`)
|
330
|
+
- Hosting multiple Polen sites on one domain
|
331
|
+
|
332
|
+
```ts
|
333
|
+
// polen.config.ts
|
334
|
+
import { Polen } from 'polen'
|
335
|
+
|
336
|
+
export default Polen.defineConfig({
|
337
|
+
build: {
|
338
|
+
base: '/my-project/', // Must start and end with /
|
339
|
+
},
|
340
|
+
})
|
341
|
+
```
|
342
|
+
|
343
|
+
When configured, Polen will output differently:
|
344
|
+
|
345
|
+
- For SSG architecture:
|
346
|
+
- Generate static files that work in the subdirectory
|
347
|
+
- For SSR architecture:
|
348
|
+
- A server that serves static assets from the correct path
|
349
|
+
|
350
|
+
You can also set the base path via CLI:
|
351
|
+
|
352
|
+
```bash
|
353
|
+
npx polen build --base /my-project/
|
354
|
+
npx polen dev --base /my-project/
|
355
|
+
```
|
356
|
+
|
357
|
+
The CLI flag takes precedence over the config file setting.
|
358
|
+
|
359
|
+
#### Custom Logo
|
360
|
+
|
361
|
+
You can provide a custom logo for your developer portal by placing a `logo.svg` file in your project's `public` directory:
|
362
|
+
|
363
|
+
```
|
364
|
+
public/
|
365
|
+
logo.svg
|
366
|
+
```
|
367
|
+
|
368
|
+
Polen will automatically use this logo in the navigation bar instead of the default Polen logo.
|
369
|
+
|
370
|
+
### Package
|
371
|
+
|
372
|
+
#### ESM
|
373
|
+
|
374
|
+
Polen is an ESM only package. If you are using CJS, then you need
|
375
|
+
[NodeJS version `>=22.0.0` to `require` it](https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require).
|
376
|
+
|
377
|
+
#### Exports
|
378
|
+
|
379
|
+
You can import a `Polen` namespace from `polen`. You can import its bare exports
|
380
|
+
from `polen/polen`.
|
381
|
+
|
382
|
+
```ts
|
383
|
+
import { Polen } from 'polen'
|
384
|
+
import { defineConfig } from 'polen/polen'
|
385
|
+
|
386
|
+
console.log(Polen.defineConfig === defineConfig) // true
|
387
|
+
```
|
388
|
+
|
389
|
+
### Instant Schema Explorer
|
390
|
+
|
391
|
+
Polen comes with a light-weight command to instantly view any GraphQL schema.
|
392
|
+
|
393
|
+
Example:
|
394
|
+
|
395
|
+
```sh
|
396
|
+
npx polen open --name github
|
397
|
+
```
|
398
|
+
|
399
|
+
See docs for more details
|
400
|
+
|
401
|
+
```sh
|
402
|
+
npx polen open --help
|
403
|
+
```
|
77
404
|
|
78
|
-
|
79
|
-
- Architecture overview
|
80
|
-
- Testing guidelines
|
81
|
-
- Contribution process
|
405
|
+
## Other
|
82
406
|
|
83
|
-
|
407
|
+
### Changelog
|
84
408
|
|
85
|
-
|
409
|
+
Refer to
|
410
|
+
[releases on this repo](https://github.com/the-guild-org/polen/releases).
|
86
411
|
|
87
|
-
|
412
|
+
### Development
|
88
413
|
|
89
|
-
|
414
|
+
If you are working on Polen itself, then refer to
|
415
|
+
[DEVELOPMENT.md](./DEVELOPMENT.md) for details about workflow, testing, etc.
|
package/build/api/api.d.ts
CHANGED
package/build/api/api.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA"}
|
package/build/api/api.js
CHANGED
package/build/api/api.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA"}
|
@@ -33,7 +33,7 @@ export const build = async (buildConfigInput) => {
|
|
33
33
|
await builder.buildApp();
|
34
34
|
if (buildConfig.architecture === `ssg`) {
|
35
35
|
consola.info(`Generating static site...`);
|
36
|
-
await import(__rewriteRelativeImportExtension(viteUserConfig._polen.paths.project.absolute.build.serverEntrypoint));
|
36
|
+
await import(__rewriteRelativeImportExtension(viteUserConfig._polen.paths.project.absolute.build.serverEntrypoint, true));
|
37
37
|
// Clean up server file which should now be done being used for SSG geneation.
|
38
38
|
await Fs.remove(viteUserConfig._polen.paths.project.absolute.build.serverEntrypoint);
|
39
39
|
// todo: there is also some kind of prompt js asset that we probably need to clean up or review...
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../src/api/builder/builder.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AACpC,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,MAAM,aAAa,GAAG;IACpB,KAAK,EAAE,KAAK;IACZ,YAAY,EAAE,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,GA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K,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,CAAA;IACtG,CAAC;SAAM,IAAI,WAAW,CAAC,YAAY,KAAK,KAAK,EAAE,CAAC;QAC9C,OAAO,CAAC,IAAI,CAAC,gBAAgB,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,CAAA;QAC9F,0BAA0B;QAC1B,OAAO,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAA;IAClD,CAAC;AACH,CAAC,CAAA"}
|
package/build/api/config/load.js
CHANGED
@@ -8,7 +8,7 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte
|
|
8
8
|
};
|
9
9
|
import { assertOptionalPathAbsolute, pickFirstPathExisting } from '#lib/kit-temp';
|
10
10
|
import { packagePaths } from '#package-paths';
|
11
|
-
import {
|
11
|
+
import { debug } from '#singletons/debug';
|
12
12
|
import { Path } from '@wollybeard/kit';
|
13
13
|
import * as Module from 'node:module';
|
14
14
|
export const fileNameBases = [`polen.config`, `.polen.config`];
|
@@ -18,7 +18,7 @@ export const fileNameExtensions = [...fileNameExtensionsTypeScript, ...fileNameE
|
|
18
18
|
export const fileNames = fileNameBases.flatMap(base => fileNameExtensions.map(ext => `${base}${ext}`));
|
19
19
|
let isSelfContainedModeRegistered = false;
|
20
20
|
export const load = async (options) => {
|
21
|
-
const
|
21
|
+
const _debug = debug.sub(`load`);
|
22
22
|
assertOptionalPathAbsolute(options.dir);
|
23
23
|
//
|
24
24
|
// ━━ Enable Self-Contained Mode
|
@@ -31,7 +31,7 @@ export const load = async (options) => {
|
|
31
31
|
const initializeData = {
|
32
32
|
projectDirPathExp: options.dir,
|
33
33
|
};
|
34
|
-
|
34
|
+
_debug(`register node module hooks`, { data: initializeData });
|
35
35
|
// TODO: would be simpler to use sync hooks
|
36
36
|
// https://nodejs.org/api/module.html#synchronous-hooks-accepted-by-moduleregisterhooks
|
37
37
|
// Requires NodeJS 22.15+ -- which is not working with PW until its next release.
|
@@ -59,9 +59,9 @@ export const load = async (options) => {
|
|
59
59
|
}
|
60
60
|
else {
|
61
61
|
// eslint-disable-next-line
|
62
|
-
module = await import(__rewriteRelativeImportExtension(filePath));
|
62
|
+
module = await import(__rewriteRelativeImportExtension(filePath, true));
|
63
63
|
}
|
64
|
-
|
64
|
+
_debug(`imported config module`);
|
65
65
|
// // Use dynamic import with file URL to support Windows
|
66
66
|
// const configUrl = pathToFileURL(configPath).href
|
67
67
|
// todo: report errors nicely if this fails
|
@@ -82,7 +82,7 @@ export const load = async (options) => {
|
|
82
82
|
configInput.advanced ??= {};
|
83
83
|
configInput.advanced.isSelfContainedMode = true;
|
84
84
|
}
|
85
|
-
|
85
|
+
_debug(`loaded config input`, configInput);
|
86
86
|
return configInput;
|
87
87
|
};
|
88
88
|
//# sourceMappingURL=load.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../../src/api/config/load.ts"],"names":[],"mappings":";;;;;;;;AACA,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../../src/api/config/load.ts"],"names":[],"mappings":";;;;;;;;AACA,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAGrC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,cAAc,EAAE,eAAe,CAAC,CAAA;AAC9D,MAAM,C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C9C,EAAE;IACF,8EAA8E;IAC9E,oEAAoE;IAEpE,IAAI,0BAA0B,EAAE,CAAC;QAC/B,WAAW,CAAC,QAAQ,KAAK,EAAE,CAAA;QAC3B,WAAW,CAAC,QAAQ,CAAC,mBAAmB,GAAG,IAAI,CAAA;IACjD,CAAC;IAED,MAAM,CAAC,qBAAqB,EAAE,WAAW,CAAC,CAAA;IAE1C,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { debug } from '#singletons/debug';
|
2
2
|
import { normalizeInput } from "../config/configurator.js";
|
3
3
|
import { load } from "../config/load.js";
|
4
4
|
import { mergeInputs } from "../config/merge.js";
|
@@ -7,7 +7,7 @@ export const fromFile = async (options) => {
|
|
7
7
|
const configInput = await load(options);
|
8
8
|
const configInputMerged = mergeInputs(configInput, options.overrides);
|
9
9
|
const config = await fromMemory(configInputMerged, options.dir);
|
10
|
-
|
10
|
+
debug(`resolved config`, config);
|
11
11
|
return config;
|
12
12
|
};
|
13
13
|
export const fromMemory = async (input,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../../src/api/config-resolver/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../../src/api/config-resolver/resolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAoB,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC5E,OAAO,EAAE,IAAI,EAAoB,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAgC,MAAM,WAAW,CAAA;AAM1E,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAAE,OAA+B,EAAoC,EAAE;IAClG,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,CAAA;IACvC,MAAM,iBAAiB,GAAG,WAAW,CAAC,WAAW,EAAE,OAAO,CAAC,SAAS,CAAC,CAAA;IACrE,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;IAC/D,KAAK,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;IAChC,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAC7B,KAAkB;AAClB;;;;GAIG;AACH,eAAwB,EACxB,EAAE;IACF,MAAM,gBAAgB,GAAG,MAAM,cAAc,CAAC,KAAK,EAAE,eAAe,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;IACtF,MAAM,cAAc,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAA;IACzD,OAAO,cAAc,CAAA;AACvB,CAAC,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Grafaid } from '#lib/grafaid/index';
|
2
2
|
import { GraphqlChange } from '#lib/graphql-change/index';
|
3
|
-
import { debugPolen } from '#singletons/debug';
|
3
|
+
import { debug as debugPolen } from '#singletons/debug';
|
4
4
|
import { Arr, Path } from '@wollybeard/kit';
|
5
5
|
import { glob } from 'tinyglobby';
|
6
6
|
import { FileNameExpression } from "./file-name-expression/index.js";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema-directory.js","sourceRoot":"","sources":["../../../../../src/api/schema/data-sources/schema-directory/schema-directory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;
|
1
|
+
{"version":3,"file":"schema-directory.js","sourceRoot":"","sources":["../../../../../src/api/schema/data-sources/schema-directory/schema-directory.ts"],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M,CAAA;QAE5B,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,aAAa,CAAC;YAChD,MAAM;YACN,KAAK;SACN,CAAC,CAAA;QAEF,OAAO;YACL,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,MAAM;YACN,KAAK;YACL,OAAO;SACR,CAAA;IACH,CAAC,CAAC,CACH,CAAA;IAED,UAAU,CAAC,OAAO,EAAE,CAAA;IAEpB,MAAM,MAAM,GAAW;QACrB,QAAQ,EAAE,UAAU;KACrB,CAAA;IAED,KAAK,CAAC,iBAAiB,CAAC,CAAA;IAExB,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { polenVirtual } from '#api/vite/vi';
|
2
2
|
import { getMutationType, MutationType } from '#lib/mutation-type';
|
3
|
-
import {
|
3
|
+
import { debug } from '#singletons/debug';
|
4
4
|
import { Fs } from '@wollybeard/kit';
|
5
5
|
const viLogo = polenVirtual(['project', 'assets', 'logo.svg']);
|
6
6
|
const generateDefaultLogo = async () => {
|
@@ -9,8 +9,8 @@ const generateDefaultLogo = async () => {
|
|
9
9
|
</svg>`;
|
10
10
|
};
|
11
11
|
export function Branding(config) {
|
12
|
-
const
|
13
|
-
|
12
|
+
const _debug = debug.sub('vite-plugin:branding');
|
13
|
+
_debug('initialized');
|
14
14
|
return {
|
15
15
|
name: 'polen:branding',
|
16
16
|
enforce: 'pre',
|
@@ -23,7 +23,7 @@ export function Branding(config) {
|
|
23
23
|
changedFile: file,
|
24
24
|
moduleId: viLogo.resolved,
|
25
25
|
server,
|
26
|
-
debug:
|
26
|
+
debug: _debug,
|
27
27
|
});
|
28
28
|
},
|
29
29
|
resolveId(id) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/vite/plugins/branding/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,OAAO,EAAsB,eAA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EAAE,CAAC,CAAA;QACxF,OAAM;IACR,CAAC;IAED,MAAM,YAAY,GAAG,eAAe,CAAC;QACnC,MAAM,EAAE,aAAa;QACrB,KAAK,EAAE,SAAS;KACA,CAAC,CAAA;IAEnB,KAAK,CAAC,QAAQ,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAA;IAEpD,QAAQ,YAAY,EAAE,CAAC;QACrB,KAAK,YAAY,CAAC,MAAM;YACtB,4CAA4C;YAC5C,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC;gBACb,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,GAAG;aACV,CAAC,CAAA;YACF,MAAK;QAEP,KAAK,YAAY,CAAC,MAAM,CAAC;QACzB,KAAK,YAAY,CAAC,MAAM;YACtB,4BAA4B;YAC5B,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,MAAO,CAAC,CAAA;YAC5C,4CAA4C;YAC5C,OAAO,EAAE,CAAA;IACb,CAAC;AACH,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/api/vite/plugins/build.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/api/vite/plugins/build.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAMtC,eAAO,MAAM,KAAK,GAAI,QAAQ,MAAM,CAAC,MAAM,KAAG,IAAI,CAAC,MAAM,EA2GxD,CAAA"}
|