polen 0.11.0-next.15 → 0.11.0-next.17
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/build/api/{api.d.ts → $$.d.ts} +6 -3
- package/build/api/$$.d.ts.map +1 -0
- package/build/api/$$.js +13 -0
- package/build/api/$$.js.map +1 -0
- package/build/api/$.d.ts +2 -0
- package/build/api/$.d.ts.map +1 -0
- package/build/api/$.js +2 -0
- package/build/api/$.js.map +1 -0
- package/build/api/config/$$.d.ts +1 -0
- package/build/api/config/$$.d.ts.map +1 -1
- package/build/api/config/$$.js +1 -0
- package/build/api/config/$$.js.map +1 -1
- package/build/api/config/home.d.ts +639 -0
- package/build/api/config/home.d.ts.map +1 -0
- package/build/api/config/home.js +487 -0
- package/build/api/config/home.js.map +1 -0
- package/build/api/config/input.d.ts +1307 -9
- package/build/api/config/input.d.ts.map +1 -1
- package/build/api/config/input.js +102 -24
- package/build/api/config/input.js.map +1 -1
- package/build/api/config/normalized.d.ts +2261 -129
- package/build/api/config/normalized.d.ts.map +1 -1
- package/build/api/config/normalized.js +424 -27
- package/build/api/config/normalized.js.map +1 -1
- package/build/api/config-template/template.d.ts +2991 -0
- package/build/api/config-template/template.d.ts.map +1 -0
- package/build/api/config-template/template.js +53 -0
- package/build/api/config-template/template.js.map +1 -0
- package/build/api/content/$$.d.ts +1 -0
- package/build/api/content/$$.d.ts.map +1 -1
- package/build/api/content/$$.js +1 -0
- package/build/api/content/$$.js.map +1 -1
- package/build/api/content/mdx-compiler.d.ts +54 -0
- package/build/api/content/mdx-compiler.d.ts.map +1 -0
- package/build/api/content/mdx-compiler.js +68 -0
- package/build/api/content/mdx-compiler.js.map +1 -0
- package/build/api/content/navbar.js +1 -1
- package/build/api/content/navbar.js.map +1 -1
- package/build/api/examples/$$.d.ts +8 -0
- package/build/api/examples/$$.d.ts.map +1 -0
- package/build/api/examples/$$.js +8 -0
- package/build/api/examples/$$.js.map +1 -0
- package/build/api/examples/$.d.ts +2 -0
- package/build/api/examples/$.d.ts.map +1 -0
- package/build/api/examples/$.js +2 -0
- package/build/api/examples/$.js.map +1 -0
- package/build/api/examples/config.d.ts +709 -0
- package/build/api/examples/config.d.ts.map +1 -0
- package/build/api/examples/config.js +169 -0
- package/build/api/examples/config.js.map +1 -0
- package/build/api/examples/diagnostic/diagnostic.d.ts +152 -0
- package/build/api/examples/diagnostic/diagnostic.d.ts.map +1 -0
- package/build/api/examples/diagnostic/diagnostic.js +20 -0
- package/build/api/examples/diagnostic/diagnostic.js.map +1 -0
- package/build/api/examples/diagnostic/duplicate-content.d.ts +55 -0
- package/build/api/examples/diagnostic/duplicate-content.d.ts.map +1 -0
- package/build/api/examples/diagnostic/duplicate-content.js +22 -0
- package/build/api/examples/diagnostic/duplicate-content.js.map +1 -0
- package/build/api/examples/diagnostic/invalid-filename.d.ts +43 -0
- package/build/api/examples/diagnostic/invalid-filename.d.ts.map +1 -0
- package/build/api/examples/diagnostic/invalid-filename.js +16 -0
- package/build/api/examples/diagnostic/invalid-filename.js.map +1 -0
- package/build/api/examples/diagnostic/missing-versions.d.ts +52 -0
- package/build/api/examples/diagnostic/missing-versions.d.ts.map +1 -0
- package/build/api/examples/diagnostic/missing-versions.js +21 -0
- package/build/api/examples/diagnostic/missing-versions.js.map +1 -0
- package/build/api/examples/diagnostic/unknown-version.d.ts +52 -0
- package/build/api/examples/diagnostic/unknown-version.d.ts.map +1 -0
- package/build/api/examples/diagnostic/unknown-version.js +21 -0
- package/build/api/examples/diagnostic/unknown-version.js.map +1 -0
- package/build/api/examples/diagnostic/unused-default.d.ts +49 -0
- package/build/api/examples/diagnostic/unused-default.d.ts.map +1 -0
- package/build/api/examples/diagnostic/unused-default.js +19 -0
- package/build/api/examples/diagnostic/unused-default.js.map +1 -0
- package/build/api/examples/diagnostic/validation-error.d.ts +63 -0
- package/build/api/examples/diagnostic/validation-error.d.ts.map +1 -0
- package/build/api/examples/diagnostic/validation-error.js +21 -0
- package/build/api/examples/diagnostic/validation-error.js.map +1 -0
- package/build/api/examples/diagnostic/validator.d.ts +13 -0
- package/build/api/examples/diagnostic/validator.d.ts.map +1 -0
- package/build/api/examples/diagnostic/validator.js +115 -0
- package/build/api/examples/diagnostic/validator.js.map +1 -0
- package/build/api/examples/filter.d.ts +19 -0
- package/build/api/examples/filter.d.ts.map +1 -0
- package/build/api/examples/filter.js +64 -0
- package/build/api/examples/filter.js.map +1 -0
- package/build/api/examples/scanner.d.ts +18 -0
- package/build/api/examples/scanner.d.ts.map +1 -0
- package/build/api/examples/scanner.js +268 -0
- package/build/api/examples/scanner.js.map +1 -0
- package/build/api/examples/schemas/catalog.d.ts +248 -0
- package/build/api/examples/schemas/catalog.d.ts.map +1 -0
- package/build/api/examples/schemas/catalog.js +42 -0
- package/build/api/examples/schemas/catalog.js.map +1 -0
- package/build/api/examples/schemas/example/$$.d.ts +2 -0
- package/build/api/examples/schemas/example/$$.d.ts.map +1 -0
- package/build/api/examples/schemas/example/$$.js +2 -0
- package/build/api/examples/schemas/example/$$.js.map +1 -0
- package/build/api/examples/schemas/example/$.d.ts +2 -0
- package/build/api/examples/schemas/example/$.d.ts.map +1 -0
- package/build/api/examples/schemas/example/$.js +2 -0
- package/build/api/examples/schemas/example/$.js.map +1 -0
- package/build/api/examples/schemas/example/example.d.ts +134 -0
- package/build/api/examples/schemas/example/example.d.ts.map +1 -0
- package/build/api/examples/schemas/example/example.js +51 -0
- package/build/api/examples/schemas/example/example.js.map +1 -0
- package/build/api/examples/schemas/type-usage-index.d.ts +72 -0
- package/build/api/examples/schemas/type-usage-index.d.ts.map +1 -0
- package/build/api/examples/schemas/type-usage-index.js +64 -0
- package/build/api/examples/schemas/type-usage-index.js.map +1 -0
- package/build/api/examples/type-generator.d.ts +8 -0
- package/build/api/examples/type-generator.d.ts.map +1 -0
- package/build/api/examples/type-generator.js +36 -0
- package/build/api/examples/type-generator.js.map +1 -0
- package/build/api/examples/type-usage-indexer.d.ts +18 -0
- package/build/api/examples/type-usage-indexer.d.ts.map +1 -0
- package/build/api/examples/type-usage-indexer.js +219 -0
- package/build/api/examples/type-usage-indexer.js.map +1 -0
- package/build/api/iso/schema/routing.js +2 -2
- package/build/api/iso/schema/routing.js.map +1 -1
- package/build/api/project/$$.d.ts +2 -0
- package/build/api/project/$$.d.ts.map +1 -0
- package/build/api/project/$$.js +2 -0
- package/build/api/project/$$.js.map +1 -0
- package/build/api/project/$.d.ts +2 -0
- package/build/api/project/$.d.ts.map +1 -0
- package/build/api/project/$.js +2 -0
- package/build/api/project/$.js.map +1 -0
- package/build/api/schema/config-schema.d.ts +3 -3
- package/build/api/schema/input-sources/directory.d.ts +31 -31
- package/build/api/schema/input-sources/file.d.ts +31 -31
- package/build/api/schema/input-sources/introspection-file.d.ts +31 -31
- package/build/api/schema/input-sources/introspection.d.ts +31 -31
- package/build/api/schema/input-sources/memory.d.ts +31 -31
- package/build/api/schema/input-sources/versioned-directory.d.ts +68 -79
- package/build/api/schema/input-sources/versioned-directory.d.ts.map +1 -1
- package/build/api/schema/input-sources/versioned-directory.js +8 -6
- package/build/api/schema/input-sources/versioned-directory.js.map +1 -1
- package/build/api/schema/load.js +1 -1
- package/build/api/schema/load.js.map +1 -1
- package/build/api/typings/$$.d.ts +2 -0
- package/build/api/typings/$$.d.ts.map +1 -0
- package/build/api/typings/$$.js +2 -0
- package/build/api/typings/$$.js.map +1 -0
- package/build/api/typings/$.d.ts +2 -0
- package/build/api/typings/$.d.ts.map +1 -0
- package/build/api/typings/$.js +2 -0
- package/build/api/typings/$.js.map +1 -0
- package/build/api/typings/typings.d.ts +88 -0
- package/build/api/typings/typings.d.ts.map +1 -0
- package/build/api/typings/typings.js +180 -0
- package/build/api/typings/typings.js.map +1 -0
- package/build/cli/_/parameters.d.ts +4 -4
- package/build/cli/_/parameters.d.ts.map +1 -1
- package/build/cli/_/parameters.js +4 -10
- package/build/cli/_/parameters.js.map +1 -1
- package/build/cli/commands/build.d.ts +9 -10
- package/build/cli/commands/build.d.ts.map +1 -1
- package/build/cli/commands/build.js +36 -50
- package/build/cli/commands/build.js.map +1 -1
- package/build/cli/commands/cache/delete.d.ts +6 -1
- package/build/cli/commands/cache/delete.d.ts.map +1 -1
- package/build/cli/commands/cache/delete.js +12 -20
- package/build/cli/commands/cache/delete.js.map +1 -1
- package/build/cli/commands/cache/show.d.ts +5 -1
- package/build/cli/commands/cache/show.d.ts.map +1 -1
- package/build/cli/commands/cache/show.js +51 -59
- package/build/cli/commands/cache/show.js.map +1 -1
- package/build/cli/commands/cache.d.ts +10 -2
- package/build/cli/commands/cache.d.ts.map +1 -1
- package/build/cli/commands/cache.js +17 -6
- package/build/cli/commands/cache.js.map +1 -1
- package/build/cli/commands/config/create.d.ts +6 -1
- package/build/cli/commands/config/create.d.ts.map +1 -1
- package/build/cli/commands/config/create.js +27 -24
- package/build/cli/commands/config/create.js.map +1 -1
- package/build/cli/commands/config.d.ts +7 -2
- package/build/cli/commands/config.d.ts.map +1 -1
- package/build/cli/commands/config.js +15 -6
- package/build/cli/commands/config.js.map +1 -1
- package/build/cli/commands/create.d.ts +9 -1
- package/build/cli/commands/create.d.ts.map +1 -1
- package/build/cli/commands/create.js +63 -61
- package/build/cli/commands/create.js.map +1 -1
- package/build/cli/commands/dev.d.ts +9 -1
- package/build/cli/commands/dev.d.ts.map +1 -1
- package/build/cli/commands/dev.js +41 -51
- package/build/cli/commands/dev.js.map +1 -1
- package/build/cli/commands/hero-image.d.ts +8 -0
- package/build/cli/commands/hero-image.d.ts.map +1 -0
- package/build/cli/commands/hero-image.js +235 -0
- package/build/cli/commands/hero-image.js.map +1 -0
- package/build/cli/commands/open.d.ts +10 -1
- package/build/cli/commands/open.d.ts.map +1 -1
- package/build/cli/commands/open.js +93 -107
- package/build/cli/commands/open.js.map +1 -1
- package/build/cli/commands/static/rebase.d.ts +8 -1
- package/build/cli/commands/static/rebase.d.ts.map +1 -1
- package/build/cli/commands/static/rebase.js +43 -29
- package/build/cli/commands/static/rebase.js.map +1 -1
- package/build/cli/commands/static.d.ts +9 -2
- package/build/cli/commands/static.d.ts.map +1 -1
- package/build/cli/commands/static.js +28 -6
- package/build/cli/commands/static.js.map +1 -1
- package/build/cli/index.d.ts +54 -1
- package/build/cli/index.d.ts.map +1 -1
- package/build/cli/index.js +77 -8
- package/build/cli/index.js.map +1 -1
- package/build/lib/ai-image-generation/$$.d.ts +3 -0
- package/build/lib/ai-image-generation/$$.d.ts.map +1 -0
- package/build/lib/ai-image-generation/$$.js +3 -0
- package/build/lib/ai-image-generation/$$.js.map +1 -0
- package/build/lib/ai-image-generation/$.d.ts +2 -0
- package/build/lib/ai-image-generation/$.d.ts.map +1 -0
- package/build/lib/ai-image-generation/$.js +2 -0
- package/build/lib/ai-image-generation/$.js.map +1 -0
- package/build/lib/ai-image-generation/ai-image-generation.d.ts +132 -0
- package/build/lib/ai-image-generation/ai-image-generation.d.ts.map +1 -0
- package/build/lib/ai-image-generation/ai-image-generation.js +170 -0
- package/build/lib/ai-image-generation/ai-image-generation.js.map +1 -0
- package/build/lib/ai-image-generation/providers/pollinations.d.ts +22 -0
- package/build/lib/ai-image-generation/providers/pollinations.d.ts.map +1 -0
- package/build/lib/ai-image-generation/providers/pollinations.js +45 -0
- package/build/lib/ai-image-generation/providers/pollinations.js.map +1 -0
- package/build/lib/ai-image-generation/service.d.ts +42 -0
- package/build/lib/ai-image-generation/service.d.ts.map +1 -0
- package/build/lib/ai-image-generation/service.js +147 -0
- package/build/lib/ai-image-generation/service.js.map +1 -0
- package/build/lib/catalog/catalog.d.ts +7823 -717
- package/build/lib/catalog/catalog.d.ts.map +1 -1
- package/build/lib/catalog/catalog.js +25 -2
- package/build/lib/catalog/catalog.js.map +1 -1
- package/build/lib/catalog/unversioned.d.ts +245 -245
- package/build/lib/catalog/unversioned.d.ts.map +1 -1
- package/build/lib/catalog/versioned.d.ts +540 -609
- package/build/lib/catalog/versioned.d.ts.map +1 -1
- package/build/lib/catalog/versioned.js +38 -1
- package/build/lib/catalog/versioned.js.map +1 -1
- package/build/lib/catalog-statistics/$$.d.ts +5 -0
- package/build/lib/catalog-statistics/$$.d.ts.map +1 -0
- package/build/lib/catalog-statistics/$$.js +5 -0
- package/build/lib/catalog-statistics/$$.js.map +1 -0
- package/build/lib/catalog-statistics/$.d.ts +2 -0
- package/build/lib/catalog-statistics/$.d.ts.map +1 -0
- package/build/lib/catalog-statistics/$.js +2 -0
- package/build/lib/catalog-statistics/$.js.map +1 -0
- package/build/lib/catalog-statistics/analyze-catalog.d.ts +8 -0
- package/build/lib/catalog-statistics/analyze-catalog.d.ts.map +1 -0
- package/build/lib/catalog-statistics/analyze-catalog.js +132 -0
- package/build/lib/catalog-statistics/analyze-catalog.js.map +1 -0
- package/build/lib/catalog-statistics/analyze-options.d.ts +16 -0
- package/build/lib/catalog-statistics/analyze-options.d.ts.map +1 -0
- package/build/lib/catalog-statistics/analyze-options.js +2 -0
- package/build/lib/catalog-statistics/analyze-options.js.map +1 -0
- package/build/lib/catalog-statistics/analyze-schema.d.ts +8 -0
- package/build/lib/catalog-statistics/analyze-schema.d.ts.map +1 -0
- package/build/lib/catalog-statistics/analyze-schema.js +185 -0
- package/build/lib/catalog-statistics/analyze-schema.js.map +1 -0
- package/build/lib/catalog-statistics/data.d.ts +195 -0
- package/build/lib/catalog-statistics/data.d.ts.map +1 -0
- package/build/lib/catalog-statistics/data.js +176 -0
- package/build/lib/catalog-statistics/data.js.map +1 -0
- package/build/lib/catalog-statistics/report.d.ts +841 -0
- package/build/lib/catalog-statistics/report.d.ts.map +1 -0
- package/build/lib/catalog-statistics/report.js +37 -0
- package/build/lib/catalog-statistics/report.js.map +1 -0
- package/build/lib/change/change.d.ts +185 -185
- package/build/lib/change/change.d.ts.map +1 -1
- package/build/lib/change/criticality.d.ts +2 -2
- package/build/lib/change/criticality.d.ts.map +1 -1
- package/build/lib/date-only/date-only.d.ts +1 -1
- package/build/lib/date-only/date-only.d.ts.map +1 -1
- package/build/lib/diagnostic/$$.d.ts +6 -0
- package/build/lib/diagnostic/$$.d.ts.map +1 -0
- package/build/lib/diagnostic/$$.js +6 -0
- package/build/lib/diagnostic/$$.js.map +1 -0
- package/build/lib/diagnostic/$.d.ts +2 -0
- package/build/lib/diagnostic/$.d.ts.map +1 -0
- package/build/lib/diagnostic/$.js +2 -0
- package/build/lib/diagnostic/$.js.map +1 -0
- package/build/lib/diagnostic/control.d.ts +79 -0
- package/build/lib/diagnostic/control.d.ts.map +1 -0
- package/build/lib/diagnostic/control.js +107 -0
- package/build/lib/diagnostic/control.js.map +1 -0
- package/build/lib/diagnostic/diagnostic.d.ts +130 -0
- package/build/lib/diagnostic/diagnostic.d.ts.map +1 -0
- package/build/lib/diagnostic/diagnostic.js +106 -0
- package/build/lib/diagnostic/diagnostic.js.map +1 -0
- package/build/lib/diagnostic/filter.d.ts +11 -0
- package/build/lib/diagnostic/filter.d.ts.map +1 -0
- package/build/lib/diagnostic/filter.js +16 -0
- package/build/lib/diagnostic/filter.js.map +1 -0
- package/build/lib/diagnostic/reporter.d.ts +22 -0
- package/build/lib/diagnostic/reporter.d.ts.map +1 -0
- package/build/lib/diagnostic/reporter.js +66 -0
- package/build/lib/diagnostic/reporter.js.map +1 -0
- package/build/lib/diagnostic/severity.d.ts +32 -0
- package/build/lib/diagnostic/severity.d.ts.map +1 -0
- package/build/lib/diagnostic/severity.js +73 -0
- package/build/lib/diagnostic/severity.js.map +1 -0
- package/build/lib/directed-filter/$$.d.ts +2 -0
- package/build/lib/directed-filter/$$.d.ts.map +1 -0
- package/build/lib/directed-filter/$$.js +2 -0
- package/build/lib/directed-filter/$$.js.map +1 -0
- package/build/lib/directed-filter/$.d.ts +2 -0
- package/build/lib/directed-filter/$.d.ts.map +1 -0
- package/build/lib/directed-filter/$.js +2 -0
- package/build/lib/directed-filter/$.js.map +1 -0
- package/build/lib/directed-filter/directed-filter.d.ts +127 -0
- package/build/lib/directed-filter/directed-filter.d.ts.map +1 -0
- package/build/lib/directed-filter/directed-filter.js +153 -0
- package/build/lib/directed-filter/directed-filter.js.map +1 -0
- package/build/lib/document/$$.d.ts +4 -0
- package/build/lib/document/$$.d.ts.map +1 -0
- package/build/lib/document/$$.js +4 -0
- package/build/lib/document/$$.js.map +1 -0
- package/build/lib/document/$.d.ts +2 -0
- package/build/lib/document/$.d.ts.map +1 -0
- package/build/lib/document/$.js +2 -0
- package/build/lib/document/$.js.map +1 -0
- package/build/lib/document/document.d.ts +59 -0
- package/build/lib/document/document.d.ts.map +1 -0
- package/build/lib/document/document.js +23 -0
- package/build/lib/document/document.js.map +1 -0
- package/build/lib/document/unversioned.d.ts +38 -0
- package/build/lib/document/unversioned.d.ts.map +1 -0
- package/build/lib/document/unversioned.js +22 -0
- package/build/lib/document/unversioned.js.map +1 -0
- package/build/lib/document/versioned.d.ts +58 -0
- package/build/lib/document/versioned.d.ts.map +1 -0
- package/build/lib/document/versioned.js +82 -0
- package/build/lib/document/versioned.js.map +1 -0
- package/build/lib/effect-cli-help-markdown/$$.d.ts +2 -0
- package/build/lib/effect-cli-help-markdown/$$.d.ts.map +1 -0
- package/build/lib/effect-cli-help-markdown/$$.js +2 -0
- package/build/lib/effect-cli-help-markdown/$$.js.map +1 -0
- package/build/lib/effect-cli-help-markdown/$.d.ts +2 -0
- package/build/lib/effect-cli-help-markdown/$.d.ts.map +1 -0
- package/build/lib/effect-cli-help-markdown/$.js +2 -0
- package/build/lib/effect-cli-help-markdown/$.js.map +1 -0
- package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.d.ts +32 -0
- package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.d.ts.map +1 -0
- package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.js +477 -0
- package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.js.map +1 -0
- package/build/lib/effect-glob/$$.d.ts +2 -0
- package/build/lib/effect-glob/$$.d.ts.map +1 -0
- package/build/lib/effect-glob/$$.js +2 -0
- package/build/lib/effect-glob/$$.js.map +1 -0
- package/build/lib/effect-glob/$.d.ts +2 -0
- package/build/lib/effect-glob/$.d.ts.map +1 -0
- package/build/lib/effect-glob/$.js +2 -0
- package/build/lib/effect-glob/$.js.map +1 -0
- package/build/lib/effect-glob/effect-glob.d.ts +13 -0
- package/build/lib/effect-glob/effect-glob.d.ts.map +1 -0
- package/build/lib/effect-glob/effect-glob.js +18 -0
- package/build/lib/effect-glob/effect-glob.js.map +1 -0
- package/build/lib/file-path/$$.d.ts +3 -0
- package/build/lib/file-path/$$.d.ts.map +1 -1
- package/build/lib/file-path/$$.js +3 -3
- package/build/lib/file-path/$$.js.map +1 -1
- package/build/lib/file-path/$.d.ts +1 -1
- package/build/lib/file-path/$.d.ts.map +1 -1
- package/build/lib/file-path/$.js +1 -1
- package/build/lib/file-path/$.js.map +1 -1
- package/build/lib/file-path/absolute.d.ts +38 -0
- package/build/lib/file-path/absolute.d.ts.map +1 -0
- package/build/lib/file-path/absolute.js +47 -0
- package/build/lib/file-path/absolute.js.map +1 -0
- package/build/lib/file-path/file-path.d.ts +41 -43
- package/build/lib/file-path/file-path.d.ts.map +1 -1
- package/build/lib/file-path/file-path.js +15 -87
- package/build/lib/file-path/file-path.js.map +1 -1
- package/build/lib/file-path/relative.d.ts +38 -0
- package/build/lib/file-path/relative.d.ts.map +1 -0
- package/build/lib/file-path/relative.js +51 -0
- package/build/lib/file-path/relative.js.map +1 -0
- package/build/lib/file-path/segment/$.d.ts +2 -0
- package/build/lib/file-path/segment/$.d.ts.map +1 -0
- package/build/lib/file-path/segment/$.js +2 -0
- package/build/lib/file-path/segment/$.js.map +1 -0
- package/build/lib/file-path/segment/segment.d.ts +45 -0
- package/build/lib/file-path/segment/segment.d.ts.map +1 -0
- package/build/lib/file-path/segment/segment.js +96 -0
- package/build/lib/file-path/segment/segment.js.map +1 -0
- package/build/lib/file-router/linter.d.ts +214 -34
- package/build/lib/file-router/linter.d.ts.map +1 -1
- package/build/lib/file-router/linter.js +66 -12
- package/build/lib/file-router/linter.js.map +1 -1
- package/build/lib/graph/graph.d.ts +1 -1
- package/build/lib/graph/graph.d.ts.map +1 -1
- package/build/lib/graphql-error/$$.d.ts +2 -0
- package/build/lib/graphql-error/$$.d.ts.map +1 -0
- package/build/lib/graphql-error/$$.js +2 -0
- package/build/lib/graphql-error/$$.js.map +1 -0
- package/build/lib/graphql-error/$.d.ts +2 -0
- package/build/lib/graphql-error/$.d.ts.map +1 -0
- package/build/lib/graphql-error/$.js +2 -0
- package/build/lib/graphql-error/$.js.map +1 -0
- package/build/lib/graphql-error/graphql-error.d.ts +150 -0
- package/build/lib/graphql-error/graphql-error.d.ts.map +1 -0
- package/build/lib/graphql-error/graphql-error.js +57 -0
- package/build/lib/graphql-error/graphql-error.js.map +1 -0
- package/build/lib/kit-temp/effect.d.ts +14 -0
- package/build/lib/kit-temp/effect.d.ts.map +1 -1
- package/build/lib/kit-temp/effect.js +29 -0
- package/build/lib/kit-temp/effect.js.map +1 -1
- package/build/lib/kit-temp/ob.d.ts +4 -0
- package/build/lib/kit-temp/ob.d.ts.map +1 -1
- package/build/lib/kit-temp/ob.js +3 -1
- package/build/lib/kit-temp/ob.js.map +1 -1
- package/build/lib/kit-temp/resource.d.ts +1 -2
- package/build/lib/kit-temp/resource.d.ts.map +1 -1
- package/build/lib/kit-temp/resource.js +1 -2
- package/build/lib/kit-temp/resource.js.map +1 -1
- package/build/lib/lifecycles/lifecycles.js +1 -1
- package/build/lib/lifecycles/lifecycles.js.map +1 -1
- package/build/lib/react-router-effect/route-helpers.d.ts +9 -3
- package/build/lib/react-router-effect/route-helpers.d.ts.map +1 -1
- package/build/lib/react-router-effect/route-helpers.js +54 -6
- package/build/lib/react-router-effect/route-helpers.js.map +1 -1
- package/build/lib/react-router-effect/route.d.ts.map +1 -1
- package/build/lib/react-router-effect/route.js +13 -1
- package/build/lib/react-router-effect/route.js.map +1 -1
- package/build/lib/react-router-effect/types.d.ts +10 -2
- package/build/lib/react-router-effect/types.d.ts.map +1 -1
- package/build/lib/react-router-effect/use-loader-data.d.ts +3 -3
- package/build/lib/react-router-effect/use-loader-data.d.ts.map +1 -1
- package/build/lib/react-router-effect/use-loader-data.js +2 -2
- package/build/lib/react-router-effect/use-loader-data.js.map +1 -1
- package/build/lib/revision/revision.d.ts +925 -925
- package/build/lib/revision/revision.d.ts.map +1 -1
- package/build/lib/schema/schema.d.ts +553 -629
- package/build/lib/schema/schema.d.ts.map +1 -1
- package/build/lib/schema/unversioned.d.ts +865 -865
- package/build/lib/schema/unversioned.d.ts.map +1 -1
- package/build/lib/schema/versioned.d.ts +495 -583
- package/build/lib/schema/versioned.d.ts.map +1 -1
- package/build/lib/schema-definition/schema-definition.d.ts +1 -1
- package/build/lib/schema-definition/schema-definition.d.ts.map +1 -1
- package/build/lib/semver/official-release.d.ts +1 -1
- package/build/lib/semver/official-release.d.ts.map +1 -1
- package/build/lib/semver/pre-release.d.ts +1 -1
- package/build/lib/semver/pre-release.d.ts.map +1 -1
- package/build/lib/semver/semver.d.ts +1 -1
- package/build/lib/semver/semver.d.ts.map +1 -1
- package/build/lib/swiss/$$.d.ts +5 -0
- package/build/lib/swiss/$$.d.ts.map +1 -0
- package/build/lib/swiss/$$.js +6 -0
- package/build/lib/swiss/$$.js.map +1 -0
- package/build/lib/swiss/$.d.ts +2 -0
- package/build/lib/swiss/$.d.ts.map +1 -0
- package/build/lib/swiss/$.js +3 -0
- package/build/lib/swiss/$.js.map +1 -0
- package/build/lib/swiss/grid.d.ts +17 -0
- package/build/lib/swiss/grid.d.ts.map +1 -0
- package/build/lib/swiss/grid.js +30 -0
- package/build/lib/swiss/grid.js.map +1 -0
- package/build/lib/swiss/items.d.ts +53 -0
- package/build/lib/swiss/items.d.ts.map +1 -0
- package/build/lib/swiss/items.js +188 -0
- package/build/lib/swiss/items.js.map +1 -0
- package/build/lib/swiss/styles.css +298 -0
- package/build/lib/swiss/subgrid.d.ts +25 -0
- package/build/lib/swiss/subgrid.d.ts.map +1 -0
- package/build/lib/swiss/subgrid.js +48 -0
- package/build/lib/swiss/subgrid.js.map +1 -0
- package/build/lib/swiss/types.d.ts +340 -0
- package/build/lib/swiss/types.d.ts.map +1 -0
- package/build/lib/swiss/types.js +2 -0
- package/build/lib/swiss/types.js.map +1 -0
- package/build/lib/swiss/utils.d.ts +37 -0
- package/build/lib/swiss/utils.d.ts.map +1 -0
- package/build/lib/swiss/utils.js +163 -0
- package/build/lib/swiss/utils.js.map +1 -0
- package/build/lib/version/custom.d.ts +11 -30
- package/build/lib/version/custom.d.ts.map +1 -1
- package/build/lib/version/custom.js +3 -7
- package/build/lib/version/custom.js.map +1 -1
- package/build/lib/version/date.d.ts +11 -30
- package/build/lib/version/date.d.ts.map +1 -1
- package/build/lib/version/date.js +3 -7
- package/build/lib/version/date.js.map +1 -1
- package/build/lib/version/integer.d.ts +11 -30
- package/build/lib/version/integer.d.ts.map +1 -1
- package/build/lib/version/integer.js +3 -7
- package/build/lib/version/integer.js.map +1 -1
- package/build/lib/version/semver.d.ts +11 -30
- package/build/lib/version/semver.d.ts.map +1 -1
- package/build/lib/version/semver.js +3 -7
- package/build/lib/version/semver.js.map +1 -1
- package/build/lib/version/version.d.ts +17 -333
- package/build/lib/version/version.d.ts.map +1 -1
- package/build/lib/version/version.js +11 -11
- package/build/lib/version/version.js.map +1 -1
- package/build/lib/version-selection/$$.d.ts +2 -0
- package/build/lib/version-selection/$$.d.ts.map +1 -0
- package/build/lib/version-selection/$$.js +2 -0
- package/build/lib/version-selection/$$.js.map +1 -0
- package/build/lib/version-selection/$.d.ts +2 -0
- package/build/lib/version-selection/$.d.ts.map +1 -0
- package/build/lib/version-selection/$.js +2 -0
- package/build/lib/version-selection/$.js.map +1 -0
- package/build/lib/version-selection/version-selection.d.ts +42 -0
- package/build/lib/version-selection/version-selection.d.ts.map +1 -0
- package/build/lib/version-selection/version-selection.js +86 -0
- package/build/lib/version-selection/version-selection.js.map +1 -0
- package/build/lib/vite-reactive/$$.d.ts +2 -0
- package/build/lib/vite-reactive/$$.d.ts.map +1 -0
- package/build/lib/vite-reactive/$$.js +2 -0
- package/build/lib/vite-reactive/$$.js.map +1 -0
- package/build/lib/vite-reactive/$.d.ts +2 -0
- package/build/lib/vite-reactive/$.d.ts.map +1 -0
- package/build/lib/vite-reactive/$.js +2 -0
- package/build/lib/vite-reactive/$.js.map +1 -0
- package/build/lib/vite-reactive/reactive-asset-plugin.d.ts +71 -0
- package/build/lib/vite-reactive/reactive-asset-plugin.d.ts.map +1 -0
- package/build/lib/vite-reactive/reactive-asset-plugin.js +155 -0
- package/build/lib/vite-reactive/reactive-asset-plugin.js.map +1 -0
- package/build/template/components/Carousel.d.ts +25 -0
- package/build/template/components/Carousel.d.ts.map +1 -0
- package/build/template/components/Carousel.js +134 -0
- package/build/template/components/Carousel.js.map +1 -0
- package/build/template/components/CarouselPill.d.ts +19 -0
- package/build/template/components/CarouselPill.d.ts.map +1 -0
- package/build/template/components/CarouselPill.js +31 -0
- package/build/template/components/CarouselPill.js.map +1 -0
- package/build/template/components/Changelog/Changelog.d.ts.map +1 -1
- package/build/template/components/Changelog/Changelog.js +19 -13
- package/build/template/components/Changelog/Changelog.js.map +1 -1
- package/build/template/components/Changelog/groups/TypeOperation.d.ts +2 -0
- package/build/template/components/Changelog/groups/TypeOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/TypeOperation.js +31 -5
- package/build/template/components/Changelog/groups/TypeOperation.js.map +1 -1
- package/build/template/components/CodeBlock.js +2 -2
- package/build/template/components/CodeBlock.js.map +1 -1
- package/build/template/components/DevelopmentTip.d.ts +13 -0
- package/build/template/components/DevelopmentTip.d.ts.map +1 -0
- package/build/template/components/DevelopmentTip.js +16 -0
- package/build/template/components/DevelopmentTip.js.map +1 -0
- package/build/template/components/ExampleLink.d.ts +11 -0
- package/build/template/components/ExampleLink.d.ts.map +1 -0
- package/build/template/components/ExampleLink.js +13 -0
- package/build/template/components/ExampleLink.js.map +1 -0
- package/build/template/components/Field.js +1 -1
- package/build/template/components/Field.js.map +1 -1
- package/build/template/components/GraphQLDocument.d.ts +25 -0
- package/build/template/components/GraphQLDocument.d.ts.map +1 -0
- package/build/template/components/GraphQLDocument.js +68 -0
- package/build/template/components/GraphQLDocument.js.map +1 -0
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts +6 -2
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts.map +1 -1
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js +8 -2
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js.map +1 -1
- package/build/template/components/HamburgerMenu.d.ts +11 -1
- package/build/template/components/HamburgerMenu.d.ts.map +1 -1
- package/build/template/components/HamburgerMenu.js.map +1 -1
- package/build/template/components/Logo.d.ts +8 -1
- package/build/template/components/Logo.d.ts.map +1 -1
- package/build/template/components/Logo.js +27 -12
- package/build/template/components/Logo.js.map +1 -1
- package/build/template/components/NamedType.d.ts.map +1 -1
- package/build/template/components/NamedType.js +12 -4
- package/build/template/components/NamedType.js.map +1 -1
- package/build/template/components/SimpleVersionPicker.d.ts +15 -0
- package/build/template/components/SimpleVersionPicker.d.ts.map +1 -0
- package/build/template/components/SimpleVersionPicker.js +15 -0
- package/build/template/components/SimpleVersionPicker.js.map +1 -0
- package/build/template/components/TypeAnnotation.d.ts.map +1 -1
- package/build/template/components/TypeAnnotation.js +8 -15
- package/build/template/components/TypeAnnotation.js.map +1 -1
- package/build/template/components/VersionCoveragePicker.d.ts +17 -0
- package/build/template/components/VersionCoveragePicker.d.ts.map +1 -0
- package/build/template/components/VersionCoveragePicker.js +28 -0
- package/build/template/components/VersionCoveragePicker.js.map +1 -0
- package/build/template/components/VersionPicker.d.ts.map +1 -1
- package/build/template/components/VersionPicker.js +13 -18
- package/build/template/components/VersionPicker.js.map +1 -1
- package/build/template/components/home/ExamplesSection.d.ts +13 -0
- package/build/template/components/home/ExamplesSection.d.ts.map +1 -0
- package/build/template/components/home/ExamplesSection.js +15 -0
- package/build/template/components/home/ExamplesSection.js.map +1 -0
- package/build/template/components/home/FeaturesGrid.d.ts +12 -0
- package/build/template/components/home/FeaturesGrid.d.ts.map +1 -0
- package/build/template/components/home/FeaturesGrid.js +73 -0
- package/build/template/components/home/FeaturesGrid.js.map +1 -0
- package/build/template/components/home/HeroSection.d.ts +16 -0
- package/build/template/components/home/HeroSection.d.ts.map +1 -0
- package/build/template/components/home/HeroSection.js +178 -0
- package/build/template/components/home/HeroSection.js.map +1 -0
- package/build/template/components/home/PlaygroundPreview.d.ts +9 -0
- package/build/template/components/home/PlaygroundPreview.d.ts.map +1 -0
- package/build/template/components/home/PlaygroundPreview.js +38 -0
- package/build/template/components/home/PlaygroundPreview.js.map +1 -0
- package/build/template/components/home/QuickStart.d.ts +11 -0
- package/build/template/components/home/QuickStart.d.ts.map +1 -0
- package/build/template/components/home/QuickStart.js +74 -0
- package/build/template/components/home/QuickStart.js.map +1 -0
- package/build/template/components/home/RecentChanges.d.ts +8 -0
- package/build/template/components/home/RecentChanges.d.ts.map +1 -0
- package/build/template/components/home/RecentChanges.js +61 -0
- package/build/template/components/home/RecentChanges.js.map +1 -0
- package/build/template/components/home/Resources.d.ts +24 -0
- package/build/template/components/home/Resources.d.ts.map +1 -0
- package/build/template/components/home/Resources.js +53 -0
- package/build/template/components/home/Resources.js.map +1 -0
- package/build/template/components/home/SocialProof.d.ts +13 -0
- package/build/template/components/home/SocialProof.d.ts.map +1 -0
- package/build/template/components/home/SocialProof.js +47 -0
- package/build/template/components/home/SocialProof.js.map +1 -0
- package/build/template/components/navbar/DefaultNavbar.d.ts.map +1 -1
- package/build/template/components/navbar/DefaultNavbar.js +5 -6
- package/build/template/components/navbar/DefaultNavbar.js.map +1 -1
- package/build/template/components/sidebar/Sidebar.d.ts +10 -1
- package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
- package/build/template/components/sidebar/Sidebar.js.map +1 -1
- package/build/template/components/sidebar/SidebarItem.d.ts +11 -2
- package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
- package/build/template/components/sidebar/SidebarItem.js.map +1 -1
- package/build/template/components/swiss/SwissHeading.d.ts +10 -0
- package/build/template/components/swiss/SwissHeading.d.ts.map +1 -0
- package/build/template/components/swiss/SwissHeading.js +26 -0
- package/build/template/components/swiss/SwissHeading.js.map +1 -0
- package/build/template/components/swiss/index.d.ts +2 -0
- package/build/template/components/swiss/index.d.ts.map +1 -0
- package/build/template/components/swiss/index.js +2 -0
- package/build/template/components/swiss/index.js.map +1 -0
- package/build/template/contexts/GraphqlLifecycleContext.d.ts +1 -13
- package/build/template/contexts/GraphqlLifecycleContext.d.ts.map +1 -1
- package/build/template/entry.client.js +3 -3
- package/build/template/entry.client.js.map +1 -1
- package/build/template/hooks/use-examples.d.ts +38 -0
- package/build/template/hooks/use-examples.d.ts.map +1 -0
- package/build/template/hooks/use-examples.js +37 -0
- package/build/template/hooks/use-examples.js.map +1 -0
- package/build/template/hooks/use-highlighted.d.ts +14 -0
- package/build/template/hooks/use-highlighted.d.ts.map +1 -0
- package/build/template/hooks/use-highlighted.js +41 -0
- package/build/template/hooks/use-highlighted.js.map +1 -0
- package/build/template/layouts/SidebarLayout.d.ts +9 -1
- package/build/template/layouts/SidebarLayout.d.ts.map +1 -1
- package/build/template/layouts/SidebarLayout.js +4 -7
- package/build/template/layouts/SidebarLayout.js.map +1 -1
- package/build/template/layouts/index.d.ts +0 -1
- package/build/template/layouts/index.d.ts.map +1 -1
- package/build/template/layouts/index.js +0 -1
- package/build/template/layouts/index.js.map +1 -1
- package/build/template/lib/polen-url.js +3 -3
- package/build/template/lib/polen-url.js.map +1 -1
- package/build/template/providers/mdx.d.ts +8 -0
- package/build/template/providers/mdx.d.ts.map +1 -0
- package/build/template/providers/mdx.js +44 -0
- package/build/template/providers/mdx.js.map +1 -0
- package/build/template/routes/changelog.d.ts +4 -19
- package/build/template/routes/changelog.d.ts.map +1 -1
- package/build/template/routes/changelog.js +160 -26
- package/build/template/routes/changelog.js.map +1 -1
- package/build/template/routes/examples/_.d.ts +65 -0
- package/build/template/routes/examples/_.d.ts.map +1 -0
- package/build/template/routes/examples/_.js +56 -0
- package/build/template/routes/examples/_.js.map +1 -0
- package/build/template/routes/examples/_index.d.ts +39 -0
- package/build/template/routes/examples/_index.d.ts.map +1 -0
- package/build/template/routes/examples/_index.js +54 -0
- package/build/template/routes/examples/_index.js.map +1 -0
- package/build/template/routes/examples/name.d.ts +31 -0
- package/build/template/routes/examples/name.d.ts.map +1 -0
- package/build/template/routes/examples/name.js +50 -0
- package/build/template/routes/examples/name.js.map +1 -0
- package/build/template/routes/index.d.ts +1 -1
- package/build/template/routes/index.d.ts.map +1 -1
- package/build/template/routes/index.js +23 -3
- package/build/template/routes/index.js.map +1 -1
- package/build/template/routes/pages.d.ts.map +1 -1
- package/build/template/routes/pages.js +4 -44
- package/build/template/routes/pages.js.map +1 -1
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.js +54 -39
- package/build/template/routes/reference.js.map +1 -1
- package/build/template/routes/root.d.ts +3 -2
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.js +57 -17
- package/build/template/routes/root.js.map +1 -1
- package/build/template/server/create-page-html-response.js +2 -2
- package/build/template/server/create-page-html-response.js.map +1 -1
- package/build/template/server/main.js +5 -5
- package/build/template/server/main.js.map +1 -1
- package/build/template/server/view.js +3 -3
- package/build/template/server/view.js.map +1 -1
- package/build/template/stores/changelog.d.ts +31 -31
- package/build/template/stores/changelog.js +3 -3
- package/build/template/stores/changelog.js.map +1 -1
- package/build/template/stores/schema.d.ts +1 -1
- package/build/template/stores/toast.d.ts +1 -1
- package/build/template/theme/swiss-sharp.css +117 -0
- package/build/template/theme/swiss-sharp.d.ts +9 -0
- package/build/template/theme/swiss-sharp.d.ts.map +1 -0
- package/build/template/theme/swiss-sharp.js +13 -0
- package/build/template/theme/swiss-sharp.js.map +1 -0
- package/build/vite/config.d.ts +1 -1
- package/build/vite/config.d.ts.map +1 -1
- package/build/vite/logger.d.ts +2 -2
- package/build/vite/logger.d.ts.map +1 -1
- package/build/vite/logger.js +0 -1
- package/build/vite/logger.js.map +1 -1
- package/build/vite/plugins/branding.d.ts +2 -2
- package/build/vite/plugins/branding.d.ts.map +1 -1
- package/build/vite/plugins/branding.js +125 -10
- package/build/vite/plugins/branding.js.map +1 -1
- package/build/vite/plugins/build.d.ts +1 -1
- package/build/vite/plugins/build.d.ts.map +1 -1
- package/build/vite/plugins/config.d.ts +17 -0
- package/build/vite/plugins/config.d.ts.map +1 -0
- package/build/vite/plugins/config.js +33 -0
- package/build/vite/plugins/config.js.map +1 -0
- package/build/vite/plugins/core.d.ts +1 -5
- package/build/vite/plugins/core.d.ts.map +1 -1
- package/build/vite/plugins/core.js +43 -127
- package/build/vite/plugins/core.js.map +1 -1
- package/build/vite/plugins/examples.d.ts +23 -0
- package/build/vite/plugins/examples.d.ts.map +1 -0
- package/build/vite/plugins/examples.js +149 -0
- package/build/vite/plugins/examples.js.map +1 -0
- package/build/vite/plugins/hooks.d.ts +12 -0
- package/build/vite/plugins/hooks.d.ts.map +1 -0
- package/build/vite/plugins/hooks.js +41 -0
- package/build/vite/plugins/hooks.js.map +1 -0
- package/build/vite/plugins/index.d.ts +2 -1
- package/build/vite/plugins/index.d.ts.map +1 -1
- package/build/vite/plugins/index.js +2 -1
- package/build/vite/plugins/index.js.map +1 -1
- package/build/vite/plugins/main.d.ts +1 -1
- package/build/vite/plugins/main.d.ts.map +1 -1
- package/build/vite/plugins/manifest.d.ts +1 -1
- package/build/vite/plugins/manifest.d.ts.map +1 -1
- package/build/vite/plugins/navbar.d.ts +16 -0
- package/build/vite/plugins/navbar.d.ts.map +1 -0
- package/build/vite/plugins/navbar.js +60 -0
- package/build/vite/plugins/navbar.js.map +1 -0
- package/build/vite/plugins/pages.d.ts +10 -4
- package/build/vite/plugins/pages.d.ts.map +1 -1
- package/build/vite/plugins/pages.js +48 -120
- package/build/vite/plugins/pages.js.map +1 -1
- package/build/vite/plugins/routes-manifest.d.ts +1 -1
- package/build/vite/plugins/routes-manifest.d.ts.map +1 -1
- package/build/vite/plugins/routes-manifest.js +13 -16
- package/build/vite/plugins/routes-manifest.js.map +1 -1
- package/build/vite/plugins/schemas.d.ts +30 -0
- package/build/vite/plugins/schemas.d.ts.map +1 -0
- package/build/vite/plugins/schemas.js +116 -0
- package/build/vite/plugins/schemas.js.map +1 -0
- package/build/vite/plugins/serve.d.ts +1 -1
- package/build/vite/plugins/serve.d.ts.map +1 -1
- package/package.json +62 -11
- package/src/api/{api.ts → $$.ts} +6 -2
- package/src/api/$.ts +1 -0
- package/src/api/config/$$.ts +1 -0
- package/src/api/config/home.ts +542 -0
- package/src/api/config/input.ts +109 -26
- package/src/api/config/normalized.ts +474 -30
- package/src/api/config-template/template.ts +77 -0
- package/src/api/content/$$.ts +1 -0
- package/src/api/content/mdx-compiler.ts +74 -0
- package/src/api/content/navbar.test.ts +3 -3
- package/src/api/content/navbar.ts +1 -1
- package/src/api/examples/$$.ts +7 -0
- package/src/api/examples/$.test.ts +201 -0
- package/src/api/examples/$.ts +1 -0
- package/src/api/examples/config.test.ts +92 -0
- package/src/api/examples/config.ts +242 -0
- package/src/api/examples/diagnostic/diagnostic.ts +30 -0
- package/src/api/examples/diagnostic/duplicate-content.ts +25 -0
- package/src/api/examples/diagnostic/invalid-filename.ts +19 -0
- package/src/api/examples/diagnostic/missing-versions.ts +24 -0
- package/src/api/examples/diagnostic/unknown-version.ts +24 -0
- package/src/api/examples/diagnostic/unused-default.ts +22 -0
- package/src/api/examples/diagnostic/validation-error.ts +24 -0
- package/src/api/examples/diagnostic/validator.test.ts +292 -0
- package/src/api/examples/diagnostic/validator.ts +176 -0
- package/src/api/examples/filter.test.ts +56 -0
- package/src/api/examples/filter.ts +82 -0
- package/src/api/examples/scanner.ts +346 -0
- package/src/api/examples/schemas/catalog.ts +51 -0
- package/src/api/examples/schemas/example/$$.ts +1 -0
- package/src/api/examples/schemas/example/$.ts +1 -0
- package/src/api/examples/schemas/example/example.ts +73 -0
- package/src/api/examples/schemas/type-usage-index.ts +75 -0
- package/src/api/examples/type-generator.ts +49 -0
- package/src/api/examples/type-usage-indexer.test.ts +276 -0
- package/src/api/examples/type-usage-indexer.ts +291 -0
- package/src/api/iso/schema/routing.ts +2 -2
- package/src/api/project/$.ts +1 -0
- package/src/api/schema/$.test.ts +2 -2
- package/src/api/schema/input-sources/versioned-directory.ts +11 -6
- package/src/api/schema/load.ts +1 -1
- package/src/api/typings/$$.ts +1 -0
- package/src/api/typings/$.ts +1 -0
- package/src/api/typings/typings.ts +273 -0
- package/src/cli/_/parameters.ts +12 -12
- package/src/cli/commands/build.ts +58 -67
- package/src/cli/commands/cache/delete.ts +17 -24
- package/src/cli/commands/cache/show.ts +70 -72
- package/src/cli/commands/cache.ts +24 -6
- package/src/cli/commands/config/create.ts +37 -31
- package/src/cli/commands/config.ts +22 -6
- package/src/cli/commands/create.ts +104 -84
- package/src/cli/commands/dev.ts +59 -65
- package/src/cli/commands/hero-image.ts +282 -0
- package/src/cli/commands/open.ts +139 -140
- package/src/cli/commands/static/rebase.ts +61 -39
- package/src/cli/commands/static.ts +36 -6
- package/src/cli/index.ts +103 -8
- package/src/lib/ai-image-generation/$$.ts +2 -0
- package/src/lib/ai-image-generation/$.test.ts +344 -0
- package/src/lib/ai-image-generation/$.ts +1 -0
- package/src/lib/ai-image-generation/ai-image-generation.ts +231 -0
- package/src/lib/ai-image-generation/providers/pollinations.ts +65 -0
- package/src/lib/ai-image-generation/service.ts +185 -0
- package/src/lib/catalog/catalog.ts +30 -3
- package/src/lib/catalog/unversioned.ts +1 -1
- package/src/lib/catalog/versioned.ts +51 -2
- package/src/lib/catalog-statistics/$$.ts +4 -0
- package/src/lib/catalog-statistics/$.test.ts +161 -0
- package/src/lib/catalog-statistics/$.ts +1 -0
- package/src/lib/catalog-statistics/analyze-catalog.ts +158 -0
- package/src/lib/catalog-statistics/analyze-options.ts +15 -0
- package/src/lib/catalog-statistics/analyze-schema.ts +226 -0
- package/src/lib/catalog-statistics/data.ts +196 -0
- package/src/lib/catalog-statistics/report.ts +45 -0
- package/src/lib/change/change.ts +1 -1
- package/src/lib/change/criticality.ts +2 -2
- package/src/lib/date-only/date-only.ts +1 -1
- package/src/lib/diagnostic/$$.ts +5 -0
- package/src/lib/diagnostic/$.test.ts +109 -0
- package/src/lib/diagnostic/$.ts +1 -0
- package/src/lib/diagnostic/control.test.ts +75 -0
- package/src/lib/diagnostic/control.ts +140 -0
- package/src/lib/diagnostic/diagnostic.ts +144 -0
- package/src/lib/diagnostic/filter.ts +21 -0
- package/src/lib/diagnostic/reporter.ts +74 -0
- package/src/lib/diagnostic/severity.ts +93 -0
- package/src/lib/directed-filter/$$.ts +1 -0
- package/src/lib/directed-filter/$.test.ts +169 -0
- package/src/lib/directed-filter/$.ts +1 -0
- package/src/lib/directed-filter/directed-filter.ts +241 -0
- package/src/lib/document/$$.ts +3 -0
- package/src/lib/document/$.ts +1 -0
- package/src/lib/document/document.ts +37 -0
- package/src/lib/document/unversioned.ts +35 -0
- package/src/lib/document/versioned.ts +106 -0
- package/src/lib/effect-cli-help-markdown/$$.ts +1 -0
- package/src/lib/effect-cli-help-markdown/$.test.ts +49 -0
- package/src/lib/effect-cli-help-markdown/$.ts +1 -0
- package/src/lib/effect-cli-help-markdown/effect-cli-help-markdown.ts +699 -0
- package/src/lib/effect-glob/$$.ts +1 -0
- package/src/lib/effect-glob/$.ts +1 -0
- package/src/lib/effect-glob/effect-glob.ts +33 -0
- package/src/lib/file-path/$$.ts +3 -4
- package/src/lib/file-path/$.test.ts +45 -0
- package/src/lib/file-path/$.ts +1 -1
- package/src/lib/file-path/absolute.ts +66 -0
- package/src/lib/file-path/file-path.ts +17 -117
- package/src/lib/file-path/relative.ts +72 -0
- package/src/lib/file-path/segment/$.ts +1 -0
- package/src/lib/file-path/{file-path.test.ts → segment/segment.test.ts} +2 -2
- package/src/lib/file-path/segment/segment.ts +134 -0
- package/src/lib/file-router/linter.ts +82 -49
- package/src/lib/graph/graph.ts +1 -1
- package/src/lib/graphql-error/$$.ts +1 -0
- package/src/lib/graphql-error/$.ts +1 -0
- package/src/lib/graphql-error/graphql-error.ts +74 -0
- package/src/lib/kit-temp/effect.ts +69 -0
- package/src/lib/kit-temp/ob.ts +13 -0
- package/src/lib/kit-temp/other.test.ts +1 -1
- package/src/lib/kit-temp/resource.ts +1 -2
- package/src/lib/lifecycles/lifecycles.ts +1 -1
- package/src/lib/react-router-effect/route-helpers.ts +71 -8
- package/src/lib/react-router-effect/route.ts +14 -1
- package/src/lib/react-router-effect/types.ts +11 -3
- package/src/lib/react-router-effect/use-loader-data.ts +3 -3
- package/src/lib/revision/revision.ts +1 -1
- package/src/lib/schema/$.test.ts +1 -1
- package/src/lib/schema/schema.ts +1 -1
- package/src/lib/schema/unversioned.ts +1 -1
- package/src/lib/schema-definition/schema-definition.ts +1 -1
- package/src/lib/semver/official-release.ts +1 -1
- package/src/lib/semver/pre-release.ts +1 -1
- package/src/lib/semver/semver.ts +1 -1
- package/src/lib/swiss/$$.ts +5 -0
- package/src/lib/swiss/$.test.ts +89 -0
- package/src/lib/swiss/$.ts +2 -0
- package/src/lib/swiss/grid.tsx +61 -0
- package/src/lib/swiss/items.tsx +288 -0
- package/src/lib/swiss/styles.css +298 -0
- package/src/lib/swiss/subgrid.tsx +83 -0
- package/src/lib/swiss/types.ts +353 -0
- package/src/lib/swiss/utils.ts +144 -0
- package/src/lib/version/$.test.ts +2 -2
- package/src/lib/version/custom.ts +2 -13
- package/src/lib/version/date.ts +2 -13
- package/src/lib/version/integer.ts +2 -13
- package/src/lib/version/semver.ts +2 -13
- package/src/lib/version/version.ts +15 -12
- package/src/lib/version-selection/$$.ts +1 -0
- package/src/lib/version-selection/$.ts +1 -0
- package/src/lib/version-selection/version-selection.ts +117 -0
- package/src/lib/vite-reactive/$$.ts +1 -0
- package/src/lib/vite-reactive/$.ts +1 -0
- package/src/lib/vite-reactive/reactive-asset-plugin.ts +280 -0
- package/src/template/components/Carousel.tsx +224 -0
- package/src/template/components/CarouselPill.tsx +101 -0
- package/src/template/components/Changelog/Changelog.tsx +22 -12
- package/src/template/components/Changelog/groups/TypeOperation.tsx +53 -5
- package/src/template/components/CodeBlock.tsx +2 -2
- package/src/template/components/DevelopmentTip.tsx +43 -0
- package/src/template/components/ExampleLink.tsx +25 -0
- package/src/template/components/Field.tsx +1 -1
- package/src/template/components/GraphQLDocument.tsx +146 -0
- package/src/template/components/GraphQLInteractive/GraphQLInteractive.tsx +25 -3
- package/src/template/components/HamburgerMenu.tsx +14 -1
- package/src/template/components/Logo.tsx +35 -15
- package/src/template/components/NamedType.tsx +27 -3
- package/src/template/components/SimpleVersionPicker.tsx +48 -0
- package/src/template/components/TypeAnnotation.tsx +8 -26
- package/src/template/components/VersionCoveragePicker.tsx +57 -0
- package/src/template/components/VersionPicker.tsx +20 -31
- package/src/template/components/home/ExamplesSection.tsx +49 -0
- package/src/template/components/home/FeaturesGrid.tsx +135 -0
- package/src/template/components/home/HeroSection.tsx +379 -0
- package/src/template/components/home/PlaygroundPreview.tsx +138 -0
- package/src/template/components/home/QuickStart.tsx +132 -0
- package/src/template/components/home/RecentChanges.tsx +154 -0
- package/src/template/components/home/Resources.tsx +207 -0
- package/src/template/components/home/SocialProof.tsx +109 -0
- package/src/template/components/navbar/DefaultNavbar.tsx +23 -12
- package/src/template/components/sidebar/Sidebar.tsx +14 -1
- package/src/template/components/sidebar/SidebarItem.tsx +18 -6
- package/src/template/components/swiss/SwissHeading.tsx +44 -0
- package/src/template/components/swiss/index.ts +1 -0
- package/src/template/entry.client.tsx +3 -3
- package/src/template/hooks/use-examples.ts +46 -0
- package/src/template/hooks/use-highlighted.ts +57 -0
- package/src/template/layouts/SidebarLayout.tsx +34 -27
- package/src/template/layouts/index.ts +0 -1
- package/src/template/lib/polen-url.ts +3 -3
- package/src/template/providers/mdx.tsx +75 -0
- package/src/template/routes/changelog.tsx +253 -28
- package/src/template/routes/examples/_.tsx +90 -0
- package/src/template/routes/examples/_index.tsx +93 -0
- package/src/template/routes/examples/name.tsx +69 -0
- package/src/template/routes/index.tsx +48 -2
- package/src/template/routes/pages.tsx +5 -67
- package/src/template/routes/reference.tsx +41 -19
- package/src/template/routes/root.tsx +94 -38
- package/src/template/server/create-page-html-response.ts +2 -2
- package/src/template/server/main.ts +6 -6
- package/src/template/server/view.ts +3 -3
- package/src/template/stores/changelog.ts +3 -3
- package/src/template/theme/swiss-sharp.css +117 -0
- package/src/template/theme/swiss-sharp.ts +14 -0
- package/src/types/virtual-modules.d.ts +26 -19
- package/src/vite/config.ts +1 -1
- package/src/vite/logger.ts +2 -3
- package/src/vite/plugins/branding.ts +141 -12
- package/src/vite/plugins/build.ts +1 -1
- package/src/vite/plugins/config.ts +57 -0
- package/src/vite/plugins/core.ts +45 -167
- package/src/vite/plugins/examples.ts +201 -0
- package/src/vite/plugins/hooks.ts +49 -0
- package/src/vite/plugins/index.ts +2 -1
- package/src/vite/plugins/main.ts +1 -1
- package/src/vite/plugins/manifest.ts +1 -1
- package/src/vite/plugins/navbar.ts +102 -0
- package/src/vite/plugins/pages.ts +70 -155
- package/src/vite/plugins/routes-manifest.ts +16 -14
- package/src/vite/plugins/schemas.ts +145 -0
- package/src/vite/plugins/serve.ts +1 -1
- package/build/api/api.d.ts.map +0 -1
- package/build/api/api.js +0 -9
- package/build/api/api.js.map +0 -1
- package/build/api/index.d.ts +0 -2
- package/build/api/index.d.ts.map +0 -1
- package/build/api/index.js +0 -2
- package/build/api/index.js.map +0 -1
- package/build/api/project/index.d.ts +0 -2
- package/build/api/project/index.d.ts.map +0 -1
- package/build/api/project/index.js +0 -2
- package/build/api/project/index.js.map +0 -1
- package/build/cli/commands/$default.d.ts +0 -3
- package/build/cli/commands/$default.d.ts.map +0 -1
- package/build/cli/commands/$default.js +0 -89
- package/build/cli/commands/$default.js.map +0 -1
- package/build/cli/commands/cache/$default.d.ts +0 -3
- package/build/cli/commands/cache/$default.d.ts.map +0 -1
- package/build/cli/commands/cache/$default.js +0 -10
- package/build/cli/commands/cache/$default.js.map +0 -1
- package/build/cli/commands/config/$default.d.ts +0 -2
- package/build/cli/commands/config/$default.d.ts.map +0 -1
- package/build/cli/commands/config/$default.js +0 -7
- package/build/cli/commands/config/$default.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-effect/_/parameters.d.ts +0 -7
- package/build/cli-effect/_/parameters.d.ts.map +0 -1
- package/build/cli-effect/_/parameters.js +0 -7
- package/build/cli-effect/_/parameters.js.map +0 -1
- package/build/cli-effect/commands/build.d.ts +0 -11
- package/build/cli-effect/commands/build.d.ts.map +0 -1
- package/build/cli-effect/commands/build.js +0 -40
- package/build/cli-effect/commands/build.js.map +0 -1
- package/build/cli-effect/commands/cache/delete.d.ts +0 -7
- package/build/cli-effect/commands/cache/delete.d.ts.map +0 -1
- package/build/cli-effect/commands/cache/delete.js +0 -15
- package/build/cli-effect/commands/cache/delete.js.map +0 -1
- package/build/cli-effect/commands/cache/show.d.ts +0 -6
- package/build/cli-effect/commands/cache/show.d.ts.map +0 -1
- package/build/cli-effect/commands/cache/show.js +0 -80
- package/build/cli-effect/commands/cache/show.js.map +0 -1
- package/build/cli-effect/commands/cache.d.ts +0 -11
- package/build/cli-effect/commands/cache.d.ts.map +0 -1
- package/build/cli-effect/commands/cache.js +0 -18
- package/build/cli-effect/commands/cache.js.map +0 -1
- package/build/cli-effect/commands/config/create.d.ts +0 -7
- package/build/cli-effect/commands/config/create.d.ts.map +0 -1
- package/build/cli-effect/commands/config/create.js +0 -36
- package/build/cli-effect/commands/config/create.js.map +0 -1
- package/build/cli-effect/commands/config.d.ts +0 -8
- package/build/cli-effect/commands/config.d.ts.map +0 -1
- package/build/cli-effect/commands/config.js +0 -16
- package/build/cli-effect/commands/config.js.map +0 -1
- package/build/cli-effect/commands/create.d.ts +0 -10
- package/build/cli-effect/commands/create.d.ts.map +0 -1
- package/build/cli-effect/commands/create.js +0 -112
- package/build/cli-effect/commands/create.js.map +0 -1
- package/build/cli-effect/commands/dev.d.ts +0 -10
- package/build/cli-effect/commands/dev.d.ts.map +0 -1
- package/build/cli-effect/commands/dev.js +0 -48
- package/build/cli-effect/commands/dev.js.map +0 -1
- package/build/cli-effect/commands/open.d.ts +0 -11
- package/build/cli-effect/commands/open.d.ts.map +0 -1
- package/build/cli-effect/commands/open.js +0 -131
- package/build/cli-effect/commands/open.js.map +0 -1
- package/build/cli-effect/commands/static/rebase.d.ts +0 -9
- package/build/cli-effect/commands/static/rebase.d.ts.map +0 -1
- package/build/cli-effect/commands/static/rebase.js +0 -44
- package/build/cli-effect/commands/static/rebase.js.map +0 -1
- package/build/cli-effect/commands/static.d.ts +0 -10
- package/build/cli-effect/commands/static.d.ts.map +0 -1
- package/build/cli-effect/commands/static.js +0 -29
- package/build/cli-effect/commands/static.js.map +0 -1
- package/build/cli-effect/index.d.ts +0 -3
- package/build/cli-effect/index.d.ts.map +0 -1
- package/build/cli-effect/index.js +0 -61
- package/build/cli-effect/index.js.map +0 -1
- package/build/lib/file-router/diagnostic-reporter.d.ts +0 -3
- package/build/lib/file-router/diagnostic-reporter.d.ts.map +0 -1
- package/build/lib/file-router/diagnostic-reporter.js +0 -18
- package/build/lib/file-router/diagnostic-reporter.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 -45
- package/build/lib/task/task.d.ts.map +0 -1
- package/build/lib/task/task.js +0 -71
- package/build/lib/task/task.js.map +0 -1
- package/build/project-data.d.ts +0 -10
- package/build/project-data.d.ts.map +0 -1
- package/build/project-data.js +0 -2
- package/build/project-data.js.map +0 -1
- package/build/template/catalog-bridge.d.ts +0 -1837
- package/build/template/catalog-bridge.d.ts.map +0 -1
- package/build/template/catalog-bridge.js +0 -87
- package/build/template/catalog-bridge.js.map +0 -1
- package/build/template/data/catalog.d.ts +0 -3
- package/build/template/data/catalog.d.ts.map +0 -1
- package/build/template/data/catalog.js +0 -7
- package/build/template/data/catalog.js.map +0 -1
- package/build/template/layouts/ChangelogLayout.d.ts +0 -9
- package/build/template/layouts/ChangelogLayout.d.ts.map +0 -1
- package/build/template/layouts/ChangelogLayout.js +0 -97
- package/build/template/layouts/ChangelogLayout.js.map +0 -1
- package/build/vite/plugins/schema-assets.d.ts +0 -20
- package/build/vite/plugins/schema-assets.d.ts.map +0 -1
- package/build/vite/plugins/schema-assets.js +0 -225
- package/build/vite/plugins/schema-assets.js.map +0 -1
- package/src/api/index.ts +0 -1
- package/src/cli/commands/$default.ts +0 -102
- package/src/cli/commands/cache/$default.ts +0 -10
- package/src/cli/commands/config/$default.ts +0 -7
- package/src/cli/commands/static/$default.ts +0 -43
- package/src/cli-effect/_/parameters.ts +0 -17
- package/src/cli-effect/commands/build.ts +0 -66
- package/src/cli-effect/commands/cache/delete.ts +0 -21
- package/src/cli-effect/commands/cache/show.ts +0 -99
- package/src/cli-effect/commands/cache.ts +0 -27
- package/src/cli-effect/commands/config/create.ts +0 -49
- package/src/cli-effect/commands/config.ts +0 -25
- package/src/cli-effect/commands/create.ts +0 -167
- package/src/cli-effect/commands/dev.ts +0 -72
- package/src/cli-effect/commands/open.ts +0 -183
- package/src/cli-effect/commands/static/rebase.ts +0 -66
- package/src/cli-effect/commands/static.ts +0 -39
- package/src/cli-effect/index.ts +0 -79
- package/src/lib/file-router/diagnostic-reporter.ts +0 -22
- package/src/lib/task/$$.ts +0 -2
- package/src/lib/task/$.test.ts +0 -210
- package/src/lib/task/$.ts +0 -1
- package/src/lib/task/report.ts +0 -72
- package/src/lib/task/task.ts +0 -129
- package/src/project-data.ts +0 -10
- package/src/template/catalog-bridge.ts +0 -102
- package/src/template/data/catalog.ts +0 -7
- package/src/template/layouts/ChangelogLayout.tsx +0 -185
- package/src/vite/plugins/schema-assets.ts +0 -265
- /package/src/api/project/{index.ts → $$.ts} +0 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Catalog } from '#api/examples/schemas/catalog';
|
3
|
+
import { route } from '#lib/react-router-effect/route';
|
4
|
+
import { useLoaderData } from '#lib/react-router-effect/use-loader-data';
|
5
|
+
import { Swiss } from '#lib/swiss';
|
6
|
+
import { Heading } from '@radix-ui/themes';
|
7
|
+
import { Str } from '@wollybeard/kit';
|
8
|
+
import { Outlet } from 'react-router';
|
9
|
+
import { examplesCatalog } from 'virtual:polen/project/examples';
|
10
|
+
import { Sidebar } from '../../components/sidebar/Sidebar.js';
|
11
|
+
import { examplesIndexRoute } from './_index.js';
|
12
|
+
import { nameRoute } from './name.js';
|
13
|
+
// ============================================================================
|
14
|
+
// Schema
|
15
|
+
// ============================================================================
|
16
|
+
const LayoutSchema = Catalog;
|
17
|
+
// ============================================================================
|
18
|
+
// Loader
|
19
|
+
// ============================================================================
|
20
|
+
export const layoutLoader = async () => {
|
21
|
+
return examplesCatalog;
|
22
|
+
};
|
23
|
+
// ============================================================================
|
24
|
+
// Component
|
25
|
+
// ============================================================================
|
26
|
+
export const LayoutComponent = () => {
|
27
|
+
const examplesCatalog = useLoaderData(Catalog);
|
28
|
+
const sidebarData = examplesCatalog.examples.map((example) => ({
|
29
|
+
type: 'ItemLink',
|
30
|
+
title: Str.Case.title(example.name),
|
31
|
+
pathExp: example.name,
|
32
|
+
})) ?? [];
|
33
|
+
return (_jsxs(Swiss.Body, { subgrid: true, children: [_jsxs(Swiss.Item, { cols: 4, style: {
|
34
|
+
// width: '250px',
|
35
|
+
// borderRight: '1px solid var(--gray-a5)',
|
36
|
+
// padding: '1rem',
|
37
|
+
overflowY: 'auto',
|
38
|
+
position: 'sticky',
|
39
|
+
top: 0,
|
40
|
+
// height: '100vh',
|
41
|
+
}, children: [_jsx(Heading, { size: '4', mb: '4', style: { paddingLeft: '1rem' }, children: "Examples" }), _jsx(Sidebar, { data: sidebarData, basePath: '/examples' })] }), _jsx(Swiss.Item, { cols: 8, children: _jsx(Outlet, {}) })] }));
|
42
|
+
};
|
43
|
+
// ============================================================================
|
44
|
+
// Export
|
45
|
+
// ============================================================================
|
46
|
+
export const examplesRoute = route({
|
47
|
+
path: 'examples',
|
48
|
+
schema: LayoutSchema,
|
49
|
+
loader: layoutLoader,
|
50
|
+
Component: LayoutComponent,
|
51
|
+
children: [
|
52
|
+
examplesIndexRoute,
|
53
|
+
nameRoute,
|
54
|
+
],
|
55
|
+
});
|
56
|
+
//# sourceMappingURL=_.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_.js","sourceRoot":"","sources":["../../../../src/template/routes/examples/_.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAA;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAYrC,+EAA+E;AAC/E,SAAS;AACT,+E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AAE/E,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC;IACjC,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,SAAS,EAAE,eAAe;IAC1B,QAAQ,EAAE;QACR,kBAAkB;QAClB,SAAS;KACV;CACF,CAAC,CAAA"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
export declare const loader: () => Promise<{
|
2
|
+
readonly examples: readonly {
|
3
|
+
readonly path: string;
|
4
|
+
readonly name: string;
|
5
|
+
readonly document: {
|
6
|
+
readonly _tag: "DocumentUnversioned";
|
7
|
+
readonly document: string;
|
8
|
+
} | {
|
9
|
+
readonly _tag: "DocumentVersioned";
|
10
|
+
readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
|
11
|
+
};
|
12
|
+
}[];
|
13
|
+
readonly index?: {
|
14
|
+
readonly path: string;
|
15
|
+
} | undefined;
|
16
|
+
readonly typeUsageIndex?: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | {
|
17
|
+
readonly _tag: "UnversionedKey";
|
18
|
+
}, import("effect/HashMap").HashMap<string, import("effect/HashSet").HashSet<import("../../../api/examples/schemas/type-usage-index.js").ExampleReference>>> | undefined;
|
19
|
+
}>;
|
20
|
+
export declare const examplesIndexRoute: import("#lib/react-router-effect/react-router-effect").SchemaRoute<import("effect/Schema").Struct<{
|
21
|
+
examples: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
22
|
+
name: typeof import("effect/Schema").String;
|
23
|
+
path: typeof import("effect/Schema").String;
|
24
|
+
document: import("effect/Schema").Union<[import("effect/Schema").TaggedStruct<"DocumentUnversioned", {
|
25
|
+
document: typeof import("effect/Schema").String;
|
26
|
+
}>, import("effect/Schema").TaggedStruct<"DocumentVersioned", {
|
27
|
+
versionDocuments: import("effect/Schema").HashMap<import("effect/Schema").Union<[import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>, import("effect/Schema").HashSet<import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>>]>, typeof import("effect/Schema").String>;
|
28
|
+
}>]>;
|
29
|
+
}>>;
|
30
|
+
index: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
31
|
+
path: typeof import("effect/Schema").String;
|
32
|
+
}>>;
|
33
|
+
typeUsageIndex: import("effect/Schema").optional<import("effect/Schema").transform<import("effect/Schema").Array$<import("effect/Schema").Tuple2<import("effect/Schema").Union<[import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>, import("effect/Schema").TaggedStruct<"UnversionedKey", {}>]>, import("effect/Schema").HashMap<typeof import("effect/Schema").String, import("effect/Schema").HashSet<typeof import("../../../api/examples/schemas/type-usage-index.js").ExampleReference>>>>, import("effect/Schema").HashMapFromSelf<import("effect/Schema").SchemaClass<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | {
|
34
|
+
readonly _tag: "UnversionedKey";
|
35
|
+
}, import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | {
|
36
|
+
readonly _tag: "UnversionedKey";
|
37
|
+
}, never>, import("effect/Schema").SchemaClass<import("effect/HashMap").HashMap<string, import("effect/HashSet").HashSet<import("../../../api/examples/schemas/type-usage-index.js").ExampleReference>>, import("effect/HashMap").HashMap<string, import("effect/HashSet").HashSet<import("../../../api/examples/schemas/type-usage-index.js").ExampleReference>>, never>>>>;
|
38
|
+
}>>;
|
39
|
+
//# sourceMappingURL=_index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_index.d.ts","sourceRoot":"","sources":["../../../../src/template/routes/examples/_index.tsx"],"names":[],"mappings":"AAuBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;EAOlB,CAAA;AA0DD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;GAI7B,CAAA"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
+
import { Catalog as ExamplesCatalog } from '#api/examples/schemas/catalog';
|
3
|
+
import { Catalog } from '#lib/catalog/$';
|
4
|
+
import { routeIndex } from '#lib/react-router-effect/react-router-effect';
|
5
|
+
import { useLoaderData } from '#lib/react-router-effect/use-loader-data';
|
6
|
+
import { Box, Code, Text } from '@radix-ui/themes';
|
7
|
+
import { redirect } from 'react-router';
|
8
|
+
import { examplesCatalog, IndexComponent } from 'virtual:polen/project/examples';
|
9
|
+
import { schemasCatalog } from 'virtual:polen/project/schemas';
|
10
|
+
import { DevelopmentTip } from '../../components/DevelopmentTip.js';
|
11
|
+
import { MdxProvider } from '../../providers/mdx.js';
|
12
|
+
// ============================================================================
|
13
|
+
// Schema
|
14
|
+
// ============================================================================
|
15
|
+
const IndexSchema = ExamplesCatalog;
|
16
|
+
// ============================================================================
|
17
|
+
// Loader
|
18
|
+
// ============================================================================
|
19
|
+
const isHasExamplesIndexPage = !!IndexComponent;
|
20
|
+
export const loader = async () => {
|
21
|
+
const firstExample = examplesCatalog.examples[0];
|
22
|
+
if (!isHasExamplesIndexPage && firstExample) {
|
23
|
+
throw redirect(`/examples/${firstExample.name}`);
|
24
|
+
}
|
25
|
+
return examplesCatalog;
|
26
|
+
};
|
27
|
+
// ============================================================================
|
28
|
+
// Component
|
29
|
+
// ============================================================================
|
30
|
+
const Component = () => {
|
31
|
+
const examplesCatalog = useLoaderData(IndexSchema);
|
32
|
+
const schema = schemasCatalog && Catalog.getLatest(schemasCatalog).definition;
|
33
|
+
const hasExamples = examplesCatalog && examplesCatalog.examples.length > 0;
|
34
|
+
// TODO: This should become a proper diagnostic viewer component that displays
|
35
|
+
// diagnostics from the Polen diagnostic system, ensuring symmetry between
|
36
|
+
// terminal and UI communication. The component would consume the same diagnostic
|
37
|
+
// data that gets logged to the terminal during build/dev processes.
|
38
|
+
const insituDiagnostic = !hasExamples && (_jsxs(DevelopmentTip, { title: 'Examples Setup', variant: 'warning', children: [_jsx(Text, { children: "The examples section is enabled but no example files were found. To get started:" }), _jsx(Box, { mt: '2', children: _jsxs(Text, { children: [_jsx("strong", { children: "Option 1:" }), " Add ", _jsx(Code, { children: ".graphql" }), " or ", _jsx(Code, { children: ".gql" }), " files to your ", _jsx(Code, { children: "examples/" }), ' ', "directory"] }) }), _jsx(Box, { mt: '1', children: _jsxs(Text, { children: [_jsx("strong", { children: "Option 2:" }), " If you don't need examples, disable this section in your config by setting", ' ', _jsx(Code, { children: "examples.enabled: false" })] }) })] }));
|
39
|
+
// Render index component if available
|
40
|
+
if (IndexComponent) {
|
41
|
+
return (_jsxs(_Fragment, { children: [insituDiagnostic, IndexComponent && (_jsx(MdxProvider, { schema: schema, children: _jsx(IndexComponent, {}) }))] }));
|
42
|
+
}
|
43
|
+
// Has examples but no index - shouldn't reach here due to redirect
|
44
|
+
return null;
|
45
|
+
};
|
46
|
+
// ============================================================================
|
47
|
+
// Route
|
48
|
+
// ============================================================================
|
49
|
+
export const examplesIndexRoute = routeIndex({
|
50
|
+
schema: IndexSchema,
|
51
|
+
loader,
|
52
|
+
Component,
|
53
|
+
});
|
54
|
+
//# sourceMappingURL=_index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_index.js","sourceRoot":"","sources":["../../../../src/template/routes/examples/_index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAA;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAA;AACxE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEpD,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,MAAM,WAAW,GAAG,eAAe,CAAA;AAEnC,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,MAAM,sBAAsB,GAAG,CAAC,CAAC,cAAc,CAAA;AAE/C,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,IAAI,EAAE;IAC/B,MAAM,YAAY,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CA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A;AACb,CAAC,CAAA;AAED,+EAA+E;AAC/E,QAAQ;AACR,+EAA+E;AAE/E,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IAC3C,MAAM,EAAE,WAAW;IACnB,MAAM;IACN,SAAS;CACV,CAAC,CAAA"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { Version } from '#lib/version/$';
|
2
|
+
export declare const NameSchema: import("effect/Schema").Struct<{
|
3
|
+
name: typeof import("effect/Schema").String;
|
4
|
+
path: typeof import("effect/Schema").String;
|
5
|
+
document: import("effect/Schema").Union<[import("effect/Schema").TaggedStruct<"DocumentUnversioned", {
|
6
|
+
document: typeof import("effect/Schema").String;
|
7
|
+
}>, import("effect/Schema").TaggedStruct<"DocumentVersioned", {
|
8
|
+
versionDocuments: import("effect/Schema").HashMap<import("effect/Schema").Union<[import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>, import("effect/Schema").HashSet<import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>>]>, typeof import("effect/Schema").String>;
|
9
|
+
}>]>;
|
10
|
+
}>;
|
11
|
+
export declare const nameLoader: ({ params }: any) => Promise<{
|
12
|
+
readonly path: string;
|
13
|
+
readonly name: string;
|
14
|
+
readonly document: {
|
15
|
+
readonly _tag: "DocumentUnversioned";
|
16
|
+
readonly document: string;
|
17
|
+
} | {
|
18
|
+
readonly _tag: "DocumentVersioned";
|
19
|
+
readonly versionDocuments: import("effect/HashMap").HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
20
|
+
};
|
21
|
+
}>;
|
22
|
+
export declare const nameRoute: import("../../../lib/react-router-effect/types.js").SchemaRoute<import("effect/Schema").Struct<{
|
23
|
+
name: typeof import("effect/Schema").String;
|
24
|
+
path: typeof import("effect/Schema").String;
|
25
|
+
document: import("effect/Schema").Union<[import("effect/Schema").TaggedStruct<"DocumentUnversioned", {
|
26
|
+
document: typeof import("effect/Schema").String;
|
27
|
+
}>, import("effect/Schema").TaggedStruct<"DocumentVersioned", {
|
28
|
+
versionDocuments: import("effect/Schema").HashMap<import("effect/Schema").Union<[import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>, import("effect/Schema").HashSet<import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>>]>, typeof import("effect/Schema").String>;
|
29
|
+
}>]>;
|
30
|
+
}>>;
|
31
|
+
//# sourceMappingURL=name.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../../src/template/routes/examples/name.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAQxC,eAAO,MAAM,UAAU;;;;;;;;EAAU,CAAA;AAMjC,eAAO,MAAM,UAAU,GAAU,YAAY,GAAG;;;;;;;;;;EAc/C,CAAA;AAgCD,eAAO,MAAM,SAAS;;;;;;;;GAKpB,CAAA"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Example } from '#api/examples/schemas/example/example';
|
3
|
+
import { route } from '#lib/react-router-effect/route';
|
4
|
+
import { useLoaderData } from '#lib/react-router-effect/use-loader-data';
|
5
|
+
import { Version } from '#lib/version/$';
|
6
|
+
import { Heading } from '@radix-ui/themes';
|
7
|
+
import { Str } from '@wollybeard/kit';
|
8
|
+
import { useSearchParams } from 'react-router';
|
9
|
+
import { examplesCatalog } from 'virtual:polen/project/examples';
|
10
|
+
import { schemasCatalog } from 'virtual:polen/project/schemas';
|
11
|
+
import { GraphQLDocument } from '../../components/GraphQLDocument.js';
|
12
|
+
export const NameSchema = Example;
|
13
|
+
// ============================================================================
|
14
|
+
// Loader
|
15
|
+
// ============================================================================
|
16
|
+
export const nameLoader = async ({ params }) => {
|
17
|
+
const { name } = params;
|
18
|
+
if (!name) {
|
19
|
+
throw new Response('Not Found', { status: 404 });
|
20
|
+
}
|
21
|
+
// Check if the example exists
|
22
|
+
const example = examplesCatalog.examples.find((e) => e.name === name);
|
23
|
+
if (!example) {
|
24
|
+
throw new Response('Not Found', { status: 404 });
|
25
|
+
}
|
26
|
+
return example;
|
27
|
+
};
|
28
|
+
// ============================================================================
|
29
|
+
// Component
|
30
|
+
// ============================================================================
|
31
|
+
const Component = () => {
|
32
|
+
const example = useLoaderData(NameSchema);
|
33
|
+
const [searchParams] = useSearchParams();
|
34
|
+
// Parse version from query parameter if present
|
35
|
+
const versionParam = searchParams.get('version');
|
36
|
+
const selectedVersion = versionParam
|
37
|
+
? Version.decodeSync(versionParam)
|
38
|
+
: undefined;
|
39
|
+
return (_jsxs(_Fragment, { children: [_jsx(Heading, { size: '6', mb: '4', children: Str.Case.title(example.name) }), _jsx(GraphQLDocument, { document: example.document, schemaCatalog: schemasCatalog ?? undefined, selectedVersionCoverage: selectedVersion })] }));
|
40
|
+
};
|
41
|
+
// ============================================================================
|
42
|
+
// Export
|
43
|
+
// ============================================================================
|
44
|
+
export const nameRoute = route({
|
45
|
+
path: ':name',
|
46
|
+
schema: NameSchema,
|
47
|
+
loader: nameLoader,
|
48
|
+
Component,
|
49
|
+
});
|
50
|
+
//# sourceMappingURL=name.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"name.js","sourceRoot":"","sources":["../../../../src/template/routes/examples/name.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAA;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAA;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAErE,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAA;AAEjC,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAE,EAAE,MAAM,EAAO,EAAE,EAAE;IAClD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAA;IAEvB,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,QAAQ,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAA;IAClD,CAAC;IAED,8BAA8B;IAC9B,MAAM,OAAO,GAAG,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAM,EAAE,E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|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/routes/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/routes/index.tsx"],"names":[],"mappings":"AAoDA,eAAO,MAAM,KAAK,OAGhB,CAAA"}
|
@@ -1,10 +1,30 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { DirectedFilter } from '#lib/directed-filter';
|
2
3
|
import { routeIndex } from '#lib/react-router-effect/react-router-effect';
|
3
|
-
import {
|
4
|
+
import { Swiss } from '#lib/swiss';
|
5
|
+
import { redirect } from 'react-router';
|
6
|
+
import { templateConfig } from 'virtual:polen/project/config';
|
7
|
+
import { examplesCatalog } from 'virtual:polen/project/examples';
|
8
|
+
import { schemasCatalog } from 'virtual:polen/project/schemas';
|
9
|
+
import { ExamplesSection } from '../components/home/ExamplesSection.js';
|
10
|
+
import { Hero } from '../components/home/HeroSection.js';
|
11
|
+
const loader = () => {
|
12
|
+
// If home is disabled, redirect to reference page
|
13
|
+
if (!templateConfig.home.enabled) {
|
14
|
+
return redirect('/reference');
|
15
|
+
}
|
16
|
+
return null;
|
17
|
+
};
|
4
18
|
const Component = () => {
|
5
|
-
|
19
|
+
const filteredExamples = DirectedFilter.filterByProperty(templateConfig.home.examples.filter)('name')(examplesCatalog.examples);
|
20
|
+
return (_jsxs(_Fragment, { children: [templateConfig.home.hero.enabled && (_jsx(Hero, { ...Object.fromEntries(Object.entries(templateConfig.home.hero).filter(([k, v]) => k !== 'enabled' && v !== undefined)) })), _jsx(Swiss.Body, { children: templateConfig.home.examples.enabled && filteredExamples.length > 0 && (_jsx(ExamplesSection, { examples: filteredExamples, schemaCatalog: schemasCatalog ?? undefined, ...Object.fromEntries(Object.entries({
|
21
|
+
title: templateConfig.home.examples.title,
|
22
|
+
description: templateConfig.home.examples.description,
|
23
|
+
maxExamples: templateConfig.home.examples.maxExamples,
|
24
|
+
}).filter(([_, v]) => v !== undefined)) })) })] }));
|
6
25
|
};
|
7
26
|
export const index = routeIndex({
|
27
|
+
loader,
|
8
28
|
Component,
|
9
29
|
});
|
10
30
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/template/routes/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAA;AACzE,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/template/routes/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAA;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAA;AAExD,MAAM,MAAM,GAAG,GAAG,EAAE;IAClB,kDAAkD;IAClD,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QACjC,OAAO,QAAQ,CAAC,YAAY,CAAC,CAAA;IAC/B,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,gBAAgB,GAAG,cAAc,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CACnG,eAAe,CAAC,QAAQ,CACzB,CAAA;IAED,OAAO,CACL,8BACG,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CACnC,KAAC,IAAI,OACC,MAAM,CAAC,WAAW,CACpB,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,SAAS,CAAC,CAChG,GACD,CACH,EACD,KAAC,KAAK,CAAC,IAAI,cACR,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,IAAI,CACtE,KAAC,eAAe,IACd,QAAQ,EAAE,gBAAgB,EAC1B,aAAa,EAAE,cAAc,IAAI,SAAS,KACtC,MAAM,CAAC,WAAW,CACpB,MAAM,CAAC,OAAO,CAAC;wBACb,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK;wBACzC,WAAW,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW;wBACrD,WAAW,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW;qBACtD,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CACvC,GACD,CACH,GACU,IACZ,CACJ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAAC;IAC9B,MAAM;IACN,SAAS;CACV,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../src/template/routes/pages.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../src/template/routes/pages.tsx"],"names":[],"mappings":"AA2BA,eAAO,MAAM,KAAK,OAIhB,CAAA"}
|
@@ -1,12 +1,10 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { route } from '#lib/react-router-effect/route';
|
3
3
|
import { SidebarLayout } from '#template/layouts/index';
|
4
|
-
import { MDXProvider } from '@mdx-js/react';
|
5
|
-
import { Badge, Box, Button, Callout, Card, Code, DataList, Em, Heading, Link, Quote, Separator, Strong, Table, Tabs, Text, Tooltip, } from '@radix-ui/themes';
|
6
4
|
import { Outlet, useLocation } from 'react-router';
|
7
|
-
import
|
5
|
+
import { pagesCatalog } from 'virtual:polen/project/pages';
|
8
6
|
import { routes } from 'virtual:polen/project/routes.jsx';
|
9
|
-
import {
|
7
|
+
import { MdxProvider } from '../providers/mdx.js';
|
10
8
|
const Component = () => {
|
11
9
|
const location = useLocation();
|
12
10
|
// Build sidebar from pages catalog
|
@@ -14,46 +12,8 @@ const Component = () => {
|
|
14
12
|
const pathSegments = location.pathname.split('/').filter(Boolean);
|
15
13
|
const topLevelPath = pathSegments[0] ? `/${pathSegments[0]}` : '/';
|
16
14
|
// Get the sidebar for this section
|
17
|
-
const sidebar =
|
18
|
-
return (_jsx(
|
19
|
-
// Map markdown elements to Radix with spacing
|
20
|
-
p: (props) => _jsx(Text, { as: 'p', mb: '4', ...props }),
|
21
|
-
h1: (props) => _jsx(Heading, { size: '8', mt: '6', mb: '4', ...props }),
|
22
|
-
h2: (props) => _jsx(Heading, { size: '7', mt: '6', mb: '3', ...props }),
|
23
|
-
h3: (props) => _jsx(Heading, { size: '6', mt: '5', mb: '3', ...props }),
|
24
|
-
h4: (props) => _jsx(Heading, { size: '5', mt: '5', mb: '2', ...props }),
|
25
|
-
h5: (props) => _jsx(Heading, { size: '4', mt: '4', mb: '2', ...props }),
|
26
|
-
h6: (props) => _jsx(Heading, { size: '3', mt: '4', mb: '2', ...props }),
|
27
|
-
strong: Strong,
|
28
|
-
em: Em,
|
29
|
-
code: Code,
|
30
|
-
blockquote: (props) => _jsx(Quote, { my: '4', ...props }),
|
31
|
-
a: Link,
|
32
|
-
hr: (props) => _jsx(Separator, { my: '6', ...props }),
|
33
|
-
table: Table.Root,
|
34
|
-
thead: Table.Header,
|
35
|
-
tbody: Table.Body,
|
36
|
-
tr: Table.Row,
|
37
|
-
th: Table.ColumnHeaderCell,
|
38
|
-
td: Table.Cell,
|
39
|
-
// Lists need spacing too
|
40
|
-
ul: (props) => _jsx(Box, { as: 'ul', mb: '4', style: { paddingLeft: '1.5rem' }, ...props }),
|
41
|
-
ol: (props) => _jsx(Box, { as: 'ol', mb: '4', style: { paddingLeft: '1.5rem' }, ...props }),
|
42
|
-
li: (props) => _jsx(Box, { as: 'li', mb: '2', ...props }),
|
43
|
-
// Direct Radix components for MDX
|
44
|
-
Badge,
|
45
|
-
Button,
|
46
|
-
// @ts-expect-error
|
47
|
-
Callout,
|
48
|
-
Card,
|
49
|
-
// @ts-expect-error
|
50
|
-
DataList,
|
51
|
-
// @ts-expect-error
|
52
|
-
Tabs,
|
53
|
-
Tooltip,
|
54
|
-
// Code Hike component - schema will be loaded client-side if needed
|
55
|
-
CodeBlock: (props) => _jsx(CodeBlock, { ...props, schema: null }),
|
56
|
-
}, children: _jsx(SidebarLayout, { sidebar: sidebar, children: _jsx(Outlet, {}) }) }));
|
15
|
+
const sidebar = pagesCatalog.sidebarIndex[topLevelPath]?.items || [];
|
16
|
+
return (_jsx(MdxProvider, { children: _jsx(SidebarLayout, { sidebar: sidebar, children: _jsx(Outlet, {}) }) }));
|
57
17
|
};
|
58
18
|
export const pages = route({
|
59
19
|
// Pathless layout route - doesn't affect URL paths
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pages.js","sourceRoot":"","sources":["../../../src/template/routes/pages.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"pages.js","sourceRoot":"","sources":["../../../src/template/routes/pages.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEjD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAE9B,mCAAmC;IACnC,kEAAkE;IAClE,MAAM,YAAY,GAAG,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IACjE,MAAM,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAA;IAElE,mCAAmC;IACnC,MAAM,OAAO,GAAG,YAAY,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,EAAE,CAAA;IAEpE,OAAO,CACL,KAAC,WAAW,cACV,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,YAC7B,KAAC,MAAM,KAAG,GACI,GACJ,CACf,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC;IACzB,mDAAmD;IACnD,SAAS;IACT,QAAQ,EAAE,CAAC,GAAG,MAAM,CAAC,EAAE,8BAA8B;CACtD,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../src/template/routes/reference.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../src/template/routes/reference.tsx"],"names":[],"mappings":"AA0MA;;;;;GAKG;AAEH,eAAO,MAAM,SAAS,MAclB,CAAA"}
|
@@ -1,19 +1,22 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { Api } from '#api/iso';
|
3
3
|
import { Catalog } from '#lib/catalog/$';
|
4
4
|
import { GrafaidOld } from '#lib/grafaid-old';
|
5
|
+
import { Grafaid } from '#lib/grafaid/$';
|
5
6
|
import { S } from '#lib/kit-temp/effect';
|
6
7
|
import { Lifecycles } from '#lib/lifecycles/$';
|
7
8
|
import { route, useLoaderData } from '#lib/react-router-effect/react-router-effect';
|
8
9
|
import { Schema } from '#lib/schema/$';
|
9
10
|
import { Version } from '#lib/version/$';
|
10
|
-
import {
|
11
|
+
import { Flex } from '@radix-ui/themes';
|
11
12
|
import { neverCase } from '@wollybeard/kit/language';
|
13
|
+
import { HashMap, Option } from 'effect';
|
12
14
|
import { Effect, Match } from 'effect';
|
13
15
|
import React from 'react';
|
14
16
|
import { useParams } from 'react-router';
|
15
|
-
import {
|
17
|
+
import { schemasCatalog } from 'virtual:polen/project/schemas';
|
16
18
|
import { Field } from '../components/Field.js';
|
19
|
+
import { TypeKindIcon } from '../components/graphql/graphql.js';
|
17
20
|
import { MissingSchema } from '../components/MissingSchema.js';
|
18
21
|
import { NamedType } from '../components/NamedType.js';
|
19
22
|
import { VersionPicker } from '../components/VersionPicker.js';
|
@@ -23,48 +26,57 @@ const routeSchema = S.Struct({
|
|
23
26
|
catalog: Catalog.Catalog,
|
24
27
|
schema: Schema.Schema,
|
25
28
|
});
|
26
|
-
const referenceLoader = ({ params }) =>
|
27
|
-
//
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
29
|
+
const referenceLoader = ({ params }) => {
|
30
|
+
// This should never be called when schemasCatalog is null
|
31
|
+
// because the route won't be added to the router
|
32
|
+
// But we return an Effect.fail for safety
|
33
|
+
if (!schemasCatalog) {
|
34
|
+
return Effect.fail(new Error('No schema catalog available. This page requires a GraphQL schema to be configured. '
|
35
|
+
+ 'Please ensure your Polen configuration includes a valid schema source.'));
|
36
|
+
}
|
37
|
+
return Effect.succeed(schemasCatalog).pipe(Effect.map(catalog => {
|
38
|
+
// Resolve the actual schema based on catalog type and params
|
39
|
+
const schema = Match.value(catalog).pipe(Match.tagsExhaustive({
|
40
|
+
CatalogUnversioned: (c) => c.schema,
|
41
|
+
CatalogVersioned: (c) => {
|
42
|
+
// If version param provided, find that specific version
|
43
|
+
if (params.version) {
|
44
|
+
const requestedVersion = Version.decodeSync(params.version);
|
45
|
+
const foundOption = HashMap.get(c.entries, requestedVersion);
|
46
|
+
if (Option.isNone(foundOption)) {
|
47
|
+
// TODO: Return 404 error
|
48
|
+
throw new Error(`Version ${params.version} not found`);
|
49
|
+
}
|
50
|
+
return Option.getOrThrow(foundOption);
|
51
|
+
}
|
52
|
+
// No version param means "latest" - use the last entry
|
53
|
+
const latest = Catalog.Versioned.getLatestOrThrow(c);
|
54
|
+
if (!latest) {
|
55
|
+
throw new Error('No schemas available in versioned catalog');
|
38
56
|
}
|
39
|
-
return
|
40
|
-
}
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
return latest;
|
47
|
-
},
|
57
|
+
return latest;
|
58
|
+
},
|
59
|
+
}));
|
60
|
+
return {
|
61
|
+
catalog,
|
62
|
+
schema,
|
63
|
+
};
|
48
64
|
}));
|
49
|
-
|
50
|
-
catalog,
|
51
|
-
schema,
|
52
|
-
};
|
53
|
-
}));
|
65
|
+
};
|
54
66
|
// Single component that handles all reference route variations
|
55
67
|
const ReferenceView = () => {
|
56
68
|
const params = useParams();
|
57
69
|
const loaderData = useLoaderData(routeSchema);
|
58
70
|
const { catalog, schema } = loaderData;
|
59
71
|
// Create lifecycles from schema
|
60
|
-
const lifecycle =
|
72
|
+
const lifecycle = Lifecycles.createFromSchema(schema);
|
61
73
|
if (!schema) {
|
62
74
|
// this would be some sort of internal error, make issue more clear.
|
63
75
|
return _jsx(MissingSchema, {});
|
64
76
|
}
|
65
77
|
// Build reference sidebar from schema types
|
66
78
|
const kindMap = GrafaidOld.getKindMap(schema.definition);
|
67
|
-
const sidebarItems = [];
|
79
|
+
const sidebarItems = []; // Will be cast to template types in SidebarLayout
|
68
80
|
const kindEntries = Object.entries(kindMap.list).filter(([_, types]) => types.length > 0);
|
69
81
|
for (const [title, types] of kindEntries) {
|
70
82
|
sidebarItems.push({
|
@@ -72,11 +84,14 @@ const ReferenceView = () => {
|
|
72
84
|
title,
|
73
85
|
pathExp: `reference-${title.toLowerCase()}`,
|
74
86
|
isLinkToo: false,
|
75
|
-
links: types.map(type =>
|
76
|
-
type
|
77
|
-
|
78
|
-
|
79
|
-
|
87
|
+
links: types.map(type => {
|
88
|
+
const kind = Grafaid.Schema.typeKindFromClass(type);
|
89
|
+
return {
|
90
|
+
type: `ItemLink`,
|
91
|
+
title: (_jsxs(Flex, { align: 'center', gap: '1', display: 'inline-flex', children: [_jsx(TypeKindIcon, { kind: kind }), type.name] })),
|
92
|
+
pathExp: type.name, // Just the type name, basePath will be prepended
|
93
|
+
};
|
94
|
+
}),
|
80
95
|
});
|
81
96
|
}
|
82
97
|
// Calculate basePath based on schema version
|
@@ -111,7 +126,7 @@ const ReferenceView = () => {
|
|
111
126
|
return (_jsx(GraphqlLifecycleProvider, { lifecycle: lifecycle, schema: schema, children: _jsx(SidebarLayout, { sidebar: sidebarItems, basePath: basePath, topContent: (() => {
|
112
127
|
const version = Schema.getVersion(schema);
|
113
128
|
return catalog._tag === 'CatalogVersioned' && version
|
114
|
-
? (_jsx(VersionPicker, { data:
|
129
|
+
? (_jsx(VersionPicker, { data: Catalog.Versioned.getVersions(catalog), current: version }))
|
115
130
|
: null;
|
116
131
|
})(), children: content }) }));
|
117
132
|
};
|
@@ -146,14 +161,14 @@ const typeAndFieldRoutes = [
|
|
146
161
|
* - Leaf routes have components and loaders that always run fresh
|
147
162
|
* - Single ReferenceView component handles all variations
|
148
163
|
*/
|
149
|
-
export const reference = !
|
164
|
+
export const reference = !schemasCatalog
|
150
165
|
? null
|
151
166
|
: route({
|
152
167
|
path: `reference`,
|
153
168
|
children: [
|
154
169
|
...typeAndFieldRoutes,
|
155
170
|
// Only add version routes if versioned
|
156
|
-
...(Catalog.Versioned.is(
|
171
|
+
...(Catalog.Versioned.is(schemasCatalog)
|
157
172
|
? [route({
|
158
173
|
path: `version/:version`,
|
159
174
|
children: typeAndFieldRoutes,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reference.js","sourceRoot":"","sources":["../../../src/template/routes/reference.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"reference.js","sourceRoot":"","sources":["../../../src/template/routes/reference.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAA;AACnF,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,O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,SAAS,CAAC,EAAE,CAAC,cAAc,CAAC;gBACtC,CAAC,CAAC,CAAC,KAAK,CAAC;wBACP,IAAI,EAAE,kBAAkB;wBACxB,QAAQ,EAAE,kBAAkB;qBAC7B,CAAC,CAAC;gBACH,CAAC,CAAC,EAAE,CAAC;SACR;KACF,CAAC,CAAA"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import '../theme/swiss-sharp.css';
|
2
|
+
import '../../lib/swiss/styles.css';
|
2
3
|
export declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
3
|
-
export declare const root:
|
4
|
+
export declare const root: never;
|
4
5
|
//# sourceMappingURL=root.d.ts.map
|