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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VersionPicker.js","sourceRoot":"","sources":["../../../src/template/components/VersionPicker.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"VersionPicker.js","sourceRoot":"","sources":["../../../src/template/components/VersionPicker.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAO9D,MAAM,CAAC,MAAM,aAAa,GAAoB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;IAClE,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,MAAM,WAAW,GAAG,gBAAgB,EAAE,CAAA;IAEtC,MAAM,mBAAmB,GAAG,KAAK,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ACpC,CACH,CAAA;AACH,CAAC,CAAA"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { Api } from '#api/$';
|
2
|
+
import { Catalog } from '#lib/catalog/$';
|
3
|
+
import * as React from 'react';
|
4
|
+
interface ExamplesSectionProps {
|
5
|
+
schemaCatalog?: Catalog.Catalog | undefined;
|
6
|
+
title?: string | undefined;
|
7
|
+
description?: string | undefined;
|
8
|
+
maxExamples?: number | undefined;
|
9
|
+
examples: readonly Api.Examples.Example.Example[];
|
10
|
+
}
|
11
|
+
export declare const ExamplesSection: React.FC<ExamplesSectionProps>;
|
12
|
+
export {};
|
13
|
+
//# sourceMappingURL=ExamplesSection.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExamplesSection.d.ts","sourceRoot":"","sources":["../../../../src/template/components/home/ExamplesSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,UAAU,oBAAoB;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC,OAAO,GAAG,SAAS,CAAA;IAC3C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,QAAQ,EAAE,SAAS,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,CAAA;CAClD;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAiC1D,CAAA"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Catalog } from '#lib/catalog/$';
|
3
|
+
import { Box, Heading, Section } from '@radix-ui/themes';
|
4
|
+
import * as React from 'react';
|
5
|
+
import { Carousel } from '../Carousel.js';
|
6
|
+
import { GraphQLDocument } from '../GraphQLDocument.js';
|
7
|
+
export const ExamplesSection = ({ examples, schemaCatalog, title = 'API Examples', maxExamples = 3, }) => {
|
8
|
+
if (examples.length === 0) {
|
9
|
+
return null;
|
10
|
+
}
|
11
|
+
// Limit examples to maxExamples
|
12
|
+
const displayExamples = examples.slice(0, maxExamples);
|
13
|
+
return (_jsxs(Section, { size: '3', id: 'examples', style: { overflow: 'visible' }, children: [_jsx(Box, { mb: '4', style: { textAlign: 'center' }, children: _jsx(Heading, { size: '6', mb: '2', children: title }) }), _jsx(Carousel, { autoPlay: true, children: displayExamples.map((example) => (_jsx(GraphQLDocument, { style: { height: '100%' }, document: example.document, schemaCatalog: schemaCatalog }, example.name))) })] }));
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=ExamplesSection.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExamplesSection.js","sourceRoot":"","sources":["../../../../src/template/components/home/ExamplesSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAUvD,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,aAAa,EACb,KAAK,GAAG,cAAc,EACtB,WAAW,GAAG,CAAC,GAChB,EAAE,EAAE;IACH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,gCAAgC;IAChC,MAAM,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAA;IAEtD,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,GAAG,EAAC,EAAE,EAAC,UAAU,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,aAC5D,KAAC,GAAG,IAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,YACxC,KAAC,OAAO,IAAC,IAAI,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,YACrB,KAAK,GACE,GACN,EAEN,KAAC,QAAQ,IAAC,QAAQ,EAAE,IAAI,YACrB,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAChC,KAAC,eAAe,IACd,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAEzB,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,aAAa,EAAE,aAAa,IAFvB,OAAO,CAAC,IAAI,CAGjB,CACH,CAAC,GACO,IACH,CACX,CAAA;AACH,CAAC,CAAA"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
interface FeaturesGridProps {
|
2
|
+
features?: Feature[];
|
3
|
+
}
|
4
|
+
interface Feature {
|
5
|
+
title: string;
|
6
|
+
value: string | number;
|
7
|
+
description?: string;
|
8
|
+
link?: string;
|
9
|
+
}
|
10
|
+
export declare const FeaturesGridSection: React.FC<FeaturesGridProps>;
|
11
|
+
export {};
|
12
|
+
//# sourceMappingURL=FeaturesGrid.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FeaturesGrid.d.ts","sourceRoot":"","sources":["../../../../src/template/components/home/FeaturesGrid.tsx"],"names":[],"mappings":"AAMA,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;CACrB;AAED,UAAU,OAAO;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoB3D,CAAA"}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { CatalogStatistics } from '#lib/catalog-statistics/$';
|
3
|
+
import { Catalog } from '#lib/catalog/$';
|
4
|
+
import { Box, Card, Flex, Grid, Heading, Section, Text } from '@radix-ui/themes';
|
5
|
+
import { Link } from 'react-router';
|
6
|
+
import { schemasCatalog } from 'virtual:polen/project/schemas';
|
7
|
+
export const FeaturesGridSection = ({ features }) => {
|
8
|
+
const defaultFeatures = getDefaultFeatures();
|
9
|
+
const displayFeatures = features || defaultFeatures;
|
10
|
+
return (_jsx(Section, { size: '3', pb: '8', children: _jsxs(Box, { style: { maxWidth: '1200px', margin: '0 auto' }, children: [_jsx(Heading, { size: '7', mb: '2', style: { textAlign: 'center' }, children: "API at a Glance" }), _jsx(Text, { size: '3', color: 'gray', mb: '6', style: { textAlign: 'center', display: 'block' }, children: "Key metrics and resources" }), _jsx(Grid, { columns: { initial: '1', sm: '2', md: '4' }, gap: '4', children: displayFeatures.map((feature, index) => _jsx(FeatureCard, { ...feature }, index)) })] }) }));
|
11
|
+
};
|
12
|
+
const FeatureCard = ({ title, value, description, link }) => {
|
13
|
+
const content = (_jsx(Card, { size: '3', style: { height: '100%', cursor: link ? 'pointer' : 'default' }, children: _jsxs(Flex, { direction: 'column', gap: '2', children: [_jsx(Text, { size: '6', weight: 'bold', style: { lineHeight: 1 }, children: value }), _jsx(Text, { size: '2', weight: 'medium', children: title }), description && (_jsx(Text, { size: '1', color: 'gray', children: description }))] }) }));
|
14
|
+
if (link) {
|
15
|
+
if (link.startsWith('http')) {
|
16
|
+
return (_jsx("a", { href: link, target: '_blank', rel: 'noopener noreferrer', style: { textDecoration: 'none' }, children: content }));
|
17
|
+
}
|
18
|
+
return (_jsx(Link, { to: link, style: { textDecoration: 'none' }, children: content }));
|
19
|
+
}
|
20
|
+
return content;
|
21
|
+
};
|
22
|
+
function getDefaultFeatures() {
|
23
|
+
const features = [];
|
24
|
+
if (schemasCatalog) {
|
25
|
+
try {
|
26
|
+
// Get the latest schema from the catalog
|
27
|
+
const latestSchema = Catalog.getLatest(schemasCatalog);
|
28
|
+
if (latestSchema && latestSchema.definition) {
|
29
|
+
// Build stats from the schema definition
|
30
|
+
const versionStats = CatalogStatistics.analyzeSchema(latestSchema.definition, 'current');
|
31
|
+
features.push({
|
32
|
+
title: 'Types',
|
33
|
+
value: versionStats.totalTypes || 0,
|
34
|
+
description: 'GraphQL types',
|
35
|
+
link: '/reference',
|
36
|
+
});
|
37
|
+
features.push({
|
38
|
+
title: 'Fields',
|
39
|
+
value: versionStats.totalFields || 0,
|
40
|
+
description: 'Total fields',
|
41
|
+
link: '/reference',
|
42
|
+
});
|
43
|
+
features.push({
|
44
|
+
title: 'Changelog',
|
45
|
+
value: '📝',
|
46
|
+
description: 'Recent updates',
|
47
|
+
link: '/changelog',
|
48
|
+
});
|
49
|
+
return features;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
catch (error) {
|
53
|
+
console.warn('Failed to parse schema for features:', error);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
// Add static features only if no schema features were added
|
57
|
+
if (features.length === 0) {
|
58
|
+
features.push({
|
59
|
+
title: 'Documentation',
|
60
|
+
value: '📚',
|
61
|
+
description: 'Guides & tutorials',
|
62
|
+
link: '/guides',
|
63
|
+
});
|
64
|
+
features.push({
|
65
|
+
title: 'Changelog',
|
66
|
+
value: '📝',
|
67
|
+
description: 'Recent updates',
|
68
|
+
link: '/changelog',
|
69
|
+
});
|
70
|
+
}
|
71
|
+
return features;
|
72
|
+
}
|
73
|
+
//# sourceMappingURL=FeaturesGrid.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FeaturesGrid.js","s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AS;SAChB,CAAC,CAAA;QAEF,QAAQ,CAAC,IAAI,CAAC;YACZ,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,YAAY;SACnB,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { HeroCallToAction } from '#api/config/home';
|
2
|
+
import * as React from 'react';
|
3
|
+
interface HeroProps {
|
4
|
+
title?: string;
|
5
|
+
tagline?: string;
|
6
|
+
callToActions?: HeroCallToAction[] | {
|
7
|
+
before?: readonly HeroCallToAction[];
|
8
|
+
after?: readonly HeroCallToAction[];
|
9
|
+
over?: readonly HeroCallToAction[];
|
10
|
+
};
|
11
|
+
heroImage?: string;
|
12
|
+
layout?: 'asymmetric' | 'cinematic' | 'auto';
|
13
|
+
}
|
14
|
+
export declare const Hero: React.FC<HeroProps>;
|
15
|
+
export {};
|
16
|
+
//# sourceMappingURL=HeroSection.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HeroSection.d.ts","sourceRoot":"","sources":["../../../../src/template/components/home/HeroSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAKxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,gBAAgB,EAAE,GAAG;QACnC,MAAM,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAA;QACpC,KAAK,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAA;QACnC,IAAI,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAA;KACnC,CAAA;IACD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,YAAY,GAAG,WAAW,GAAG,MAAM,CAAA;CAC7C;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAkWpC,CAAA"}
|
@@ -0,0 +1,178 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { CatalogStatistics } from '#lib/catalog-statistics/$';
|
3
|
+
import { Catalog } from '#lib/catalog/$';
|
4
|
+
import { Swiss } from '#lib/swiss';
|
5
|
+
import { Box, Button, Container, Flex, Grid, Heading, Section, Text } from '@radix-ui/themes';
|
6
|
+
import * as React from 'react';
|
7
|
+
import { Link } from 'react-router';
|
8
|
+
import heroImageSrc from 'virtual:polen/project/assets/hero';
|
9
|
+
import { templateConfig } from 'virtual:polen/project/config';
|
10
|
+
import { examplesCatalog } from 'virtual:polen/project/examples';
|
11
|
+
import { schemasCatalog } from 'virtual:polen/project/schemas';
|
12
|
+
export const Hero = ({ title = templateConfig.templateVariables.title || 'GraphQL Developer Portal', tagline = 'Explore and integrate with our GraphQL API', callToActions, heroImage, layout = 'asymmetric', }) => {
|
13
|
+
// Build smart default CTAs based on conventions
|
14
|
+
const getDefaultCTAs = () => {
|
15
|
+
const defaults = [];
|
16
|
+
// If examples directory has files, add "View Examples" button
|
17
|
+
if (examplesCatalog && examplesCatalog.examples && examplesCatalog.examples.length > 0) {
|
18
|
+
defaults.push({
|
19
|
+
label: 'View Examples',
|
20
|
+
href: '/examples',
|
21
|
+
variant: 'primary',
|
22
|
+
});
|
23
|
+
}
|
24
|
+
// Add schema reference button if schema catalog exists
|
25
|
+
if (schemasCatalog) {
|
26
|
+
defaults.push({
|
27
|
+
label: 'View Reference',
|
28
|
+
href: '/reference',
|
29
|
+
variant: 'secondary',
|
30
|
+
});
|
31
|
+
}
|
32
|
+
return defaults;
|
33
|
+
};
|
34
|
+
// Process callToActions configuration
|
35
|
+
let ctaButtons;
|
36
|
+
if (callToActions) {
|
37
|
+
if (Array.isArray(callToActions)) {
|
38
|
+
ctaButtons = [...callToActions];
|
39
|
+
}
|
40
|
+
else {
|
41
|
+
const ctaConfig = callToActions;
|
42
|
+
if (ctaConfig.over) {
|
43
|
+
ctaButtons = [...ctaConfig.over];
|
44
|
+
}
|
45
|
+
else {
|
46
|
+
const defaults = getDefaultCTAs();
|
47
|
+
ctaButtons = [
|
48
|
+
...(ctaConfig.before || []),
|
49
|
+
...defaults,
|
50
|
+
...(ctaConfig.after || []),
|
51
|
+
];
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
else {
|
56
|
+
ctaButtons = getDefaultCTAs();
|
57
|
+
}
|
58
|
+
// Calculate schema stats if available
|
59
|
+
let schemaStats = null;
|
60
|
+
if (schemasCatalog) {
|
61
|
+
try {
|
62
|
+
const latestSchema = Catalog.getLatest(schemasCatalog);
|
63
|
+
if (latestSchema && latestSchema.definition) {
|
64
|
+
const versionStats = CatalogStatistics.analyzeSchema(latestSchema.definition, 'current');
|
65
|
+
schemaStats = {
|
66
|
+
types: versionStats.totalTypes,
|
67
|
+
queries: versionStats.queries,
|
68
|
+
mutations: versionStats.mutations,
|
69
|
+
subscriptions: versionStats.subscriptions,
|
70
|
+
};
|
71
|
+
}
|
72
|
+
}
|
73
|
+
catch (error) {
|
74
|
+
console.warn('Failed to calculate schema stats:', error);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
// Use the statically imported hero image or the prop
|
78
|
+
const imageSrc = heroImage || heroImageSrc;
|
79
|
+
// Auto layout now defaults to asymmetric
|
80
|
+
const effectiveLayout = layout === 'auto'
|
81
|
+
? 'asymmetric'
|
82
|
+
: layout;
|
83
|
+
// Render asymmetric layout (text left, image right)
|
84
|
+
if (effectiveLayout === 'asymmetric') {
|
85
|
+
return (_jsx(Swiss.Body, { children: _jsx(Section, { size: '4', py: '9', children: _jsx(Container, { size: '4', children: _jsxs(Grid, { columns: '12', gap: '5', align: 'center', children: [_jsxs(Box, { style: { gridColumn: '1 / 8' }, children: [_jsx(Heading, { size: '9', mb: '5', style: {
|
86
|
+
fontSize: 'clamp(2.5rem, 5vw, 4rem)',
|
87
|
+
lineHeight: 1.15,
|
88
|
+
letterSpacing: '-0.03em',
|
89
|
+
fontWeight: 900,
|
90
|
+
}, children: title }), _jsx(Text, { size: '4', color: 'gray', mb: '7', style: {
|
91
|
+
maxWidth: '420px',
|
92
|
+
display: 'block',
|
93
|
+
lineHeight: 1.6,
|
94
|
+
}, children: tagline }), _jsx(Flex, { gap: '3', wrap: 'wrap', mb: '8', children: ctaButtons.map((cta, index) => {
|
95
|
+
const isExternal = cta.href.startsWith('http') || cta.href.startsWith('#');
|
96
|
+
const isPrimary = cta.variant === 'primary' || (index === 0 && !cta.variant);
|
97
|
+
if (isExternal) {
|
98
|
+
return (_jsx(Button, { size: '3', variant: isPrimary ? 'solid' : 'outline', asChild: true, children: _jsx("a", { href: cta.href, children: cta.label }) }, index));
|
99
|
+
}
|
100
|
+
return (_jsx(Button, { size: '3', variant: isPrimary ? 'solid' : 'outline', asChild: true, children: _jsx(Link, { to: cta.href, children: cta.label }) }, index));
|
101
|
+
}) }), schemaStats && (_jsxs(Flex, { gap: '4', style: { opacity: 0.8 }, children: [_jsxs(Text, { size: '2', color: 'gray', children: [_jsx("strong", { children: schemaStats.types }), " Types"] }), _jsxs(Text, { size: '2', color: 'gray', children: [_jsx("strong", { children: schemaStats.queries }), " Queries"] }), schemaStats.mutations > 0 && (_jsxs(Text, { size: '2', color: 'gray', children: [_jsx("strong", { children: schemaStats.mutations }), " Mutations"] })), schemaStats.subscriptions > 0 && (_jsxs(Text, { size: '2', color: 'gray', children: [_jsx("strong", { children: schemaStats.subscriptions }), " Subscriptions"] }))] }))] }), imageSrc && (_jsx(Box, { style: {
|
102
|
+
gridColumn: '9 / 13',
|
103
|
+
display: 'flex',
|
104
|
+
alignItems: 'center',
|
105
|
+
justifyContent: 'flex-end',
|
106
|
+
}, children: _jsx("img", { src: imageSrc, alt: 'Hero', style: {
|
107
|
+
width: '100%',
|
108
|
+
height: 'auto',
|
109
|
+
maxWidth: '480px',
|
110
|
+
maxHeight: '420px',
|
111
|
+
objectFit: 'contain',
|
112
|
+
} }) }))] }) }) }) }));
|
113
|
+
}
|
114
|
+
// Render cinematic layout (full viewport image with overlaid text)
|
115
|
+
return (_jsx(Swiss.Viewport, { children: _jsx(Box, { style: {
|
116
|
+
display: 'grid',
|
117
|
+
placeItems: 'center',
|
118
|
+
height: '85vh',
|
119
|
+
minHeight: '600px',
|
120
|
+
position: 'relative',
|
121
|
+
...(imageSrc
|
122
|
+
? {
|
123
|
+
background: `
|
124
|
+
radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%),
|
125
|
+
linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%),
|
126
|
+
url(${imageSrc})
|
127
|
+
`,
|
128
|
+
backgroundSize: 'cover',
|
129
|
+
backgroundPosition: 'center',
|
130
|
+
backgroundRepeat: 'no-repeat',
|
131
|
+
}
|
132
|
+
: {
|
133
|
+
background: 'var(--gray-2)',
|
134
|
+
}),
|
135
|
+
}, children: _jsx(Container, { size: '4', style: { position: 'relative', zIndex: 3 }, children: _jsxs(Box, { style: {
|
136
|
+
textAlign: 'center',
|
137
|
+
padding: '2rem',
|
138
|
+
}, children: [_jsx(Heading, { size: '9', mb: '5', style: {
|
139
|
+
fontSize: 'clamp(3.5rem, 8vw, 5.5rem)',
|
140
|
+
lineHeight: 1.1,
|
141
|
+
letterSpacing: '-0.04em',
|
142
|
+
fontWeight: 900,
|
143
|
+
color: imageSrc ? 'white' : 'inherit',
|
144
|
+
textShadow: imageSrc ? '0 2px 20px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.8)' : 'none',
|
145
|
+
}, children: title }), _jsx(Text, { as: 'p', size: '6', mb: '7', style: {
|
146
|
+
maxWidth: '600px',
|
147
|
+
margin: '0 auto',
|
148
|
+
display: 'block',
|
149
|
+
lineHeight: 1.5,
|
150
|
+
color: imageSrc ? 'white' : 'var(--gray-11)',
|
151
|
+
textShadow: imageSrc ? '0 1px 10px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.8)' : 'none',
|
152
|
+
opacity: imageSrc ? 0.95 : 1,
|
153
|
+
}, children: tagline }), _jsx(Flex, { gap: '3', justify: 'center', wrap: 'wrap', mb: '8', mt: '9', children: ctaButtons.map((cta, index) => {
|
154
|
+
const isExternal = cta.href.startsWith('http') || cta.href.startsWith('#');
|
155
|
+
const isPrimary = cta.variant === 'primary' || (index === 0 && !cta.variant);
|
156
|
+
if (isExternal) {
|
157
|
+
return (_jsx(Button, { size: '4', variant: isPrimary ? 'solid' : 'outline', asChild: true, children: _jsx("a", { href: cta.href, children: cta.label }) }, index));
|
158
|
+
}
|
159
|
+
return (_jsx(Button, { size: '4', variant: isPrimary ? 'solid' : 'outline', asChild: true, children: _jsx(Link, { to: cta.href, children: cta.label }) }, index));
|
160
|
+
}) }), schemaStats && (_jsxs(Flex, { gap: '6', justify: 'center', children: [_jsxs(Text, { size: '3', style: {
|
161
|
+
color: imageSrc ? 'white' : 'var(--gray-11)',
|
162
|
+
textShadow: imageSrc ? '0 1px 3px rgba(0,0,0,0.5)' : 'none',
|
163
|
+
opacity: imageSrc ? 0.9 : 0.8,
|
164
|
+
}, children: [_jsx("strong", { children: schemaStats.types }), " Types"] }), _jsxs(Text, { size: '3', style: {
|
165
|
+
color: imageSrc ? 'white' : 'var(--gray-11)',
|
166
|
+
textShadow: imageSrc ? '0 1px 3px rgba(0,0,0,0.5)' : 'none',
|
167
|
+
opacity: imageSrc ? 0.9 : 0.8,
|
168
|
+
}, children: [_jsx("strong", { children: schemaStats.queries }), " Queries"] }), schemaStats.mutations > 0 && (_jsxs(Text, { size: '3', style: {
|
169
|
+
color: imageSrc ? 'white' : 'var(--gray-11)',
|
170
|
+
textShadow: imageSrc ? '0 1px 3px rgba(0,0,0,0.5)' : 'none',
|
171
|
+
opacity: imageSrc ? 0.9 : 0.8,
|
172
|
+
}, children: [_jsx("strong", { children: schemaStats.mutations }), " Mutations"] })), schemaStats.subscriptions > 0 && (_jsxs(Text, { size: '3', style: {
|
173
|
+
color: imageSrc ? 'white' : 'var(--gray-11)',
|
174
|
+
textShadow: imageSrc ? '0 1px 3px rgba(0,0,0,0.5)' : 'none',
|
175
|
+
opacity: imageSrc ? 0.9 : 0.8,
|
176
|
+
}, children: [_jsx("strong", { children: schemaStats.subscriptions }), " Subscriptions"] }))] }))] }) }) }) }));
|
177
|
+
};
|
178
|
+
//# sourceMappingURL=HeroSection.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HeroSection.js","sourceRoot":"","sources":["../../../../src/template/components/home/HeroSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC7F,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,YAAY,MAAM,mCAAmC,CAAA;AAC5D,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,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EACxC,KAAK,GAAG,cAAc,CAAC,iBAAiB,CAAC,KAAK,IAAI,0BAA0B,EAC5E,OAAO,GAAG,4CAA4C,EACtD,aAAa,EACb,SAAS,EACT,MAAM,GAAG,YAAY,GACtB,EAAE,EAAE;IACH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wCACL,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,gBAAgB;wCAC5C,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,MAAM;wCAC3D,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;qCAC9B,aAED,2BAAS,WAAW,CAAC,aAAa,GAAU,sBACvC,CACR,IACI,CACR,IACG,GACI,GACR,GACS,CAClB,CAAA;AACH,CAAC,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { GraphQLSchema } from 'graphql';
|
2
|
+
import * as React from 'react';
|
3
|
+
interface PlaygroundPreviewProps {
|
4
|
+
schema?: GraphQLSchema;
|
5
|
+
exampleQuery?: string;
|
6
|
+
}
|
7
|
+
export declare const PlaygroundPreviewSection: React.FC<PlaygroundPreviewProps>;
|
8
|
+
export {};
|
9
|
+
//# sourceMappingURL=PlaygroundPreview.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PlaygroundPreview.d.ts","sourceRoot":"","sources":["../../../../src/template/components/home/PlaygroundPreview.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAiBD,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA0FrE,CAAA"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Box, Button, Card, Flex, Heading, Section, Text } from '@radix-ui/themes';
|
3
|
+
import { highlight } from 'codehike/code';
|
4
|
+
import * as React from 'react';
|
5
|
+
import { Link } from 'react-router';
|
6
|
+
import { GraphQLInteractive } from '../GraphQLInteractive/GraphQLInteractive.js';
|
7
|
+
const defaultQuery = `# Welcome to the GraphQL Playground
|
8
|
+
# Try running this query to explore the API
|
9
|
+
|
10
|
+
query ExploreAPI {
|
11
|
+
__schema {
|
12
|
+
queryType {
|
13
|
+
name
|
14
|
+
fields {
|
15
|
+
name
|
16
|
+
description
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}`;
|
21
|
+
export const PlaygroundPreviewSection = ({ schema, exampleQuery = defaultQuery, }) => {
|
22
|
+
const [highlightedCode, setHighlightedCode] = React.useState(null);
|
23
|
+
React.useEffect(() => {
|
24
|
+
const highlightQuery = async () => {
|
25
|
+
const highlighted = await highlight({ value: exampleQuery, lang: 'graphql', meta: 'interactive' }, { theme: 'github-light' });
|
26
|
+
setHighlightedCode(highlighted);
|
27
|
+
};
|
28
|
+
highlightQuery();
|
29
|
+
}, [exampleQuery]);
|
30
|
+
if (!highlightedCode) {
|
31
|
+
return null;
|
32
|
+
}
|
33
|
+
return (_jsx(Section, { size: '3', pb: '8', id: 'playground', children: _jsxs(Box, { style: { maxWidth: '1200px', margin: '0 auto' }, children: [_jsx(Heading, { size: '7', mb: '2', style: { textAlign: 'center' }, children: "Try It Out" }), _jsx(Text, { size: '3', color: 'gray', mb: '6', style: { textAlign: 'center', display: 'block' }, children: "Explore the API with our interactive playground" }), _jsxs(Flex, { gap: '4', direction: 'column', children: [_jsx(Card, { size: '3', children: _jsxs(Flex, { direction: 'column', gap: '3', children: [_jsxs(Box, { children: [_jsx(Text, { size: '2', weight: 'medium', color: 'gray', mb: '2', children: "Example Query" }), schema
|
34
|
+
? (_jsx(GraphQLInteractive, { codeblock: highlightedCode, schema: schema, showWarningIfNoSchema: false }))
|
35
|
+
: (_jsx(GraphQLInteractive, { codeblock: highlightedCode, showWarningIfNoSchema: false }))] }), _jsxs(Flex, { gap: '3', justify: 'between', align: 'center', pt: '3', style: { borderTop: '1px solid var(--gray-4)' }, children: [_jsx(Text, { size: '2', color: 'gray', children: "This is a preview of our interactive GraphQL explorer" }), _jsx(Button, { size: '2', asChild: true, children: _jsx(Link, { to: '/playground', children: "Open Full Playground \u2192" }) })] })] }) }), _jsxs(Flex, { gap: '4', wrap: 'wrap', justify: 'center', children: [_jsx(FeatureCard, { title: 'Schema Explorer', description: 'Browse types, fields, and relationships', icon: '\uD83D\uDCDA' }), _jsx(FeatureCard, { title: 'Auto-complete', description: 'IntelliSense for queries and mutations', icon: '\u2728' }), _jsx(FeatureCard, { title: 'Mock Data', description: 'Test with realistic generated data', icon: '\uD83C\uDFB2' }), _jsx(FeatureCard, { title: 'Query History', description: 'Save and share your queries', icon: '\uD83D\uDCDD' })] })] })] }) }));
|
36
|
+
};
|
37
|
+
const FeatureCard = ({ title, description, icon }) => (_jsx(Card, { size: '2', style: { flex: '1 1 200px', maxWidth: '250px' }, children: _jsxs(Flex, { direction: 'column', gap: '2', align: 'center', style: { textAlign: 'center' }, children: [_jsx(Text, { size: '6', children: icon }), _jsx(Text, { size: '2', weight: 'medium', children: title }), _jsx(Text, { size: '1', color: 'gray', children: description })] }) }));
|
38
|
+
//# sourceMappingURL=PlaygroundPreview.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PlaygroundPreview.js","sourceRoot":"","sources":["../../../../src/template/components/home/PlaygroundPreview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAA;AAOhF,MAAM,YAAY,GAAG;;;;;;;;;;;;;EAanB,CA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IACV,KAAK,EAAC,eAAe,EACrB,WAAW,EAAC,6BAA6B,EACzC,IAAI,EAAC,cAAI,GACT,IACG,IACF,IACH,GACE,CACX,CAAA;AACH,CAAC,CAAA;AAQD,MAAM,WAAW,GAA+B,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAChF,KAAC,IAAI,IAAC,IAAI,EAAC,GAAG,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,YAC5D,MAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAC,GAAG,EAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,aAC5E,KAAC,IAAI,IAAC,IAAI,EAAC,GAAG,YAAE,IAAI,GAAQ,EAC5B,KAAC,IAAI,IAAC,IAAI,EAAC,GAAG,EAAC,MAAM,EAAC,QAAQ,YAC3B,KAAK,GACD,EACP,KAAC,IAAI,IAAC,IAAI,EAAC,GAAG,EAAC,KAAK,EAAC,MAAM,YACxB,WAAW,GACP,IACF,GACF,CACR,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QuickStart.d.ts","sourceRoot":"","sources":["../../../../src/template/components/home/QuickStart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,KAAK,EAAE,MAAM,CAAA;QACb,QAAQ,EAAE,MAAM,CAAA;QAChB,IAAI,EAAE,MAAM,CAAA;KACb,CAAC,CAAA;CACH;AAqDD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAmE7C,CAAA"}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Box, Card, Heading, Section, Tabs, Text } from '@radix-ui/themes';
|
3
|
+
import { highlight } from 'codehike/code';
|
4
|
+
import * as React from 'react';
|
5
|
+
import { CodeBlock } from '../CodeBlock.js';
|
6
|
+
const defaultExamples = [
|
7
|
+
{
|
8
|
+
label: 'JavaScript',
|
9
|
+
language: 'javascript',
|
10
|
+
code: `// Install the GraphQL client
|
11
|
+
npm install graphql-request
|
12
|
+
|
13
|
+
// Make your first query
|
14
|
+
import { request } from 'graphql-request'
|
15
|
+
|
16
|
+
const query = \`
|
17
|
+
query GetData {
|
18
|
+
# Your query here
|
19
|
+
}
|
20
|
+
\`
|
21
|
+
|
22
|
+
const data = await request('/graphql', query)
|
23
|
+
console.log(data)`,
|
24
|
+
},
|
25
|
+
{
|
26
|
+
label: 'cURL',
|
27
|
+
language: 'bash',
|
28
|
+
code: `# Make a GraphQL request with cURL
|
29
|
+
curl -X POST \\
|
30
|
+
-H "Content-Type: application/json" \\
|
31
|
+
-d '{"query": "{ __typename }"}' \\
|
32
|
+
https://api.example.com/graphql`,
|
33
|
+
},
|
34
|
+
{
|
35
|
+
label: 'Python',
|
36
|
+
language: 'python',
|
37
|
+
code: `# Install the GraphQL client
|
38
|
+
# pip install gql[requests]
|
39
|
+
|
40
|
+
from gql import gql, Client
|
41
|
+
from gql.transport.requests import RequestsHTTPTransport
|
42
|
+
|
43
|
+
transport = RequestsHTTPTransport(url="https://api.example.com/graphql")
|
44
|
+
client = Client(transport=transport)
|
45
|
+
|
46
|
+
query = gql("""
|
47
|
+
query GetData {
|
48
|
+
# Your query here
|
49
|
+
}
|
50
|
+
""")
|
51
|
+
|
52
|
+
result = client.execute(query)
|
53
|
+
print(result)`,
|
54
|
+
},
|
55
|
+
];
|
56
|
+
export const QuickStartSection = ({ examples = defaultExamples }) => {
|
57
|
+
// Pre-highlight code blocks during render
|
58
|
+
const [highlightedExamples, setHighlightedExamples] = React.useState([]);
|
59
|
+
React.useEffect(() => {
|
60
|
+
const highlightExamples = async () => {
|
61
|
+
const highlighted = await Promise.all(examples.map(async (example) => ({
|
62
|
+
label: example.label,
|
63
|
+
codeblock: await highlight({ value: example.code, lang: example.language, meta: '' }, { theme: 'github-light' }),
|
64
|
+
})));
|
65
|
+
setHighlightedExamples(highlighted);
|
66
|
+
};
|
67
|
+
highlightExamples();
|
68
|
+
}, [examples]);
|
69
|
+
if (highlightedExamples.length === 0) {
|
70
|
+
return (_jsx(Section, { size: '3', pb: '8', children: _jsx(Box, { style: { textAlign: 'center' }, children: _jsx(Text, { color: 'gray', children: "Loading examples..." }) }) }));
|
71
|
+
}
|
72
|
+
return (_jsx(Section, { size: '3', pb: '8', children: _jsxs(Box, { style: { maxWidth: '900px', margin: '0 auto' }, children: [_jsx(Heading, { size: '7', mb: '2', style: { textAlign: 'center' }, children: "Quick Start" }), _jsx(Text, { size: '3', color: 'gray', mb: '6', style: { textAlign: 'center', display: 'block' }, children: "Get up and running in minutes" }), _jsx(Card, { size: '3', children: _jsxs(Tabs.Root, { defaultValue: highlightedExamples[0]?.label || 'javascript', children: [_jsx(Tabs.List, { children: highlightedExamples.map((example) => (_jsx(Tabs.Trigger, { value: example.label, children: example.label }, example.label))) }), _jsx(Box, { pt: '4', children: highlightedExamples.map((example) => (_jsx(Tabs.Content, { value: example.label, children: _jsx(CodeBlock, { codeblock: example.codeblock }) }, example.label))) })] }) })] }) }));
|
73
|
+
};
|
74
|
+
//# sourceMappingURL=QuickStart.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QuickStart.js","sourceRoot":"","sources":["../../../../src/template/components/home/QuickStart.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAA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