polen 0.11.0-next.24 → 0.11.0-next.26
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/config/input.d.ts +259 -77
- package/build/api/config/input.d.ts.map +1 -1
- package/build/api/config/input.js +2 -0
- package/build/api/config/input.js.map +1 -1
- package/build/api/config/normalized.d.ts +433 -143
- package/build/api/config/normalized.d.ts.map +1 -1
- package/build/api/config/normalized.js +47 -0
- package/build/api/config/normalized.js.map +1 -1
- package/build/api/config-template/template.d.ts +191 -121
- package/build/api/config-template/template.d.ts.map +1 -1
- package/build/api/config-template/template.js +18 -1
- package/build/api/config-template/template.js.map +1 -1
- package/build/api/examples/diagnostic/diagnostic.d.ts +0 -23
- package/build/api/examples/diagnostic/diagnostic.d.ts.map +1 -1
- package/build/api/examples/diagnostic/diagnostic.js +1 -3
- package/build/api/examples/diagnostic/diagnostic.js.map +1 -1
- package/build/api/examples/scanner.d.ts +27 -1
- package/build/api/examples/scanner.d.ts.map +1 -1
- package/build/api/examples/scanner.js +30 -17
- package/build/api/examples/scanner.js.map +1 -1
- package/build/api/examples/schemas/catalog.d.ts +56 -12
- package/build/api/examples/schemas/catalog.d.ts.map +1 -1
- package/build/api/examples/schemas/example/example.d.ts +54 -11
- package/build/api/examples/schemas/example/example.d.ts.map +1 -1
- package/build/api/examples/schemas/example/example.js +5 -0
- package/build/api/examples/schemas/example/example.js.map +1 -1
- package/build/api/reference/$.d.ts +4 -0
- package/build/api/reference/$.d.ts.map +1 -0
- package/build/api/reference/$.js +4 -0
- package/build/api/reference/$.js.map +1 -0
- package/build/api/reference/catalog.d.ts +69 -0
- package/build/api/reference/catalog.d.ts.map +1 -0
- package/build/api/reference/catalog.js +44 -0
- package/build/api/reference/catalog.js.map +1 -0
- package/build/api/reference/config.d.ts +616 -0
- package/build/api/reference/config.d.ts.map +1 -0
- package/build/api/reference/config.js +162 -0
- package/build/api/reference/config.js.map +1 -0
- package/build/api/reference/scanner.d.ts +26 -0
- package/build/api/reference/scanner.d.ts.map +1 -0
- package/build/api/reference/scanner.js +27 -0
- package/build/api/reference/scanner.js.map +1 -0
- package/build/api/schema/augmentations/$$.d.ts +7 -0
- package/build/api/schema/augmentations/$$.d.ts.map +1 -0
- package/build/api/schema/augmentations/$$.js +7 -0
- package/build/api/schema/augmentations/$$.js.map +1 -0
- package/build/api/schema/augmentations/$.d.ts +1 -1
- package/build/api/schema/augmentations/$.d.ts.map +1 -1
- package/build/api/schema/augmentations/$.js +1 -1
- package/build/api/schema/augmentations/$.js.map +1 -1
- package/build/api/schema/augmentations/apply.d.ts +29 -0
- package/build/api/schema/augmentations/apply.d.ts.map +1 -0
- package/build/api/schema/augmentations/apply.js +181 -0
- package/build/api/schema/augmentations/apply.js.map +1 -0
- package/build/api/schema/augmentations/augmentation.d.ts +31 -0
- package/build/api/schema/augmentations/augmentation.d.ts.map +1 -0
- package/build/api/schema/augmentations/augmentation.js +22 -0
- package/build/api/schema/augmentations/augmentation.js.map +1 -0
- package/build/api/schema/augmentations/config.d.ts +24 -0
- package/build/api/schema/augmentations/config.d.ts.map +1 -0
- package/build/api/schema/augmentations/config.js +9 -0
- package/build/api/schema/augmentations/config.js.map +1 -0
- package/build/api/schema/augmentations/diagnostics/diagnostic.d.ts +67 -0
- package/build/api/schema/augmentations/diagnostics/diagnostic.d.ts.map +1 -0
- package/build/api/schema/augmentations/diagnostics/diagnostic.js +13 -0
- package/build/api/schema/augmentations/diagnostics/diagnostic.js.map +1 -0
- package/build/api/schema/augmentations/diagnostics/duplicate-version.d.ts +45 -0
- package/build/api/schema/augmentations/diagnostics/duplicate-version.d.ts.map +1 -0
- package/build/api/schema/augmentations/diagnostics/duplicate-version.js +17 -0
- package/build/api/schema/augmentations/diagnostics/duplicate-version.js.map +1 -0
- package/build/api/schema/augmentations/diagnostics/invalid-path.d.ts +46 -0
- package/build/api/schema/augmentations/diagnostics/invalid-path.d.ts.map +1 -0
- package/build/api/schema/augmentations/diagnostics/invalid-path.js +18 -0
- package/build/api/schema/augmentations/diagnostics/invalid-path.js.map +1 -0
- package/build/api/schema/augmentations/diagnostics/version-mismatch.d.ts +46 -0
- package/build/api/schema/augmentations/diagnostics/version-mismatch.d.ts.map +1 -0
- package/build/api/schema/augmentations/diagnostics/version-mismatch.js +18 -0
- package/build/api/schema/augmentations/diagnostics/version-mismatch.js.map +1 -0
- package/build/api/schema/augmentations/input.d.ts +145 -0
- package/build/api/schema/augmentations/input.d.ts.map +1 -0
- package/build/api/schema/augmentations/input.js +191 -0
- package/build/api/schema/augmentations/input.js.map +1 -0
- package/build/api/schema/augmentations/placement.d.ts +8 -0
- package/build/api/schema/augmentations/placement.d.ts.map +1 -0
- package/build/api/schema/augmentations/placement.js +7 -0
- package/build/api/schema/augmentations/placement.js.map +1 -0
- package/build/api/schema/config-schema.d.ts +66 -66
- package/build/api/schema/config-schema.d.ts.map +1 -1
- package/build/api/schema/config-schema.js +2 -2
- package/build/api/schema/config-schema.js.map +1 -1
- package/build/api/schema/input-source/load.d.ts +2 -0
- package/build/api/schema/input-source/load.d.ts.map +1 -1
- package/build/api/schema/input-source/load.js.map +1 -1
- package/build/api/schema/input-sources/directory.d.ts +39 -39
- package/build/api/schema/input-sources/file.d.ts +39 -39
- package/build/api/schema/input-sources/introspection-file.d.ts +39 -39
- package/build/api/schema/input-sources/introspection.d.ts +39 -39
- package/build/api/schema/input-sources/memory.d.ts +39 -39
- package/build/api/schema/input-sources/versioned-directory.d.ts +79 -79
- package/build/api/schema/load.d.ts.map +1 -1
- package/build/api/schema/load.js +9 -2
- package/build/api/schema/load.js.map +1 -1
- package/build/lib/catalog/catalog.d.ts +1181 -1181
- package/build/lib/catalog/unversioned.d.ts +312 -312
- package/build/lib/catalog/versioned.d.ts +634 -634
- package/build/lib/change/change.d.ts +238 -238
- package/build/lib/document/document.d.ts +14 -8
- package/build/lib/document/document.d.ts.map +1 -1
- package/build/lib/document/versioned.d.ts +17 -10
- package/build/lib/document/versioned.d.ts.map +1 -1
- package/build/lib/grafaid/schema/KindMap/_.d.ts +1 -1
- package/build/lib/grafaid/schema/format-default-value.d.ts +11 -0
- package/build/lib/grafaid/schema/format-default-value.d.ts.map +1 -0
- package/build/lib/grafaid/schema/format-default-value.js +20 -0
- package/build/lib/grafaid/schema/format-default-value.js.map +1 -0
- package/build/lib/grafaid/schema/schema.d.ts +1 -0
- package/build/lib/grafaid/schema/schema.d.ts.map +1 -1
- package/build/lib/grafaid/schema/schema.js +1 -0
- package/build/lib/grafaid/schema/schema.js.map +1 -1
- package/build/lib/graphql-path/$$.d.ts +7 -13
- package/build/lib/graphql-path/$$.d.ts.map +1 -1
- package/build/lib/graphql-path/$$.js +7 -13
- package/build/lib/graphql-path/$$.js.map +1 -1
- package/build/lib/graphql-path/definition.d.ts +104 -94
- package/build/lib/graphql-path/definition.d.ts.map +1 -1
- package/build/lib/graphql-path/definition.js +126 -125
- package/build/lib/graphql-path/definition.js.map +1 -1
- package/build/lib/graphql-path/query.d.ts +25 -57
- package/build/lib/graphql-path/query.d.ts.map +1 -1
- package/build/lib/graphql-path/query.js +15 -93
- package/build/lib/graphql-path/query.js.map +1 -1
- package/build/lib/graphql-path/schema.d.ts +49 -0
- package/build/lib/graphql-path/schema.d.ts.map +1 -0
- package/build/lib/graphql-path/schema.js +89 -0
- package/build/lib/graphql-path/schema.js.map +1 -0
- package/build/lib/graphql-path/types.d.ts +76 -28
- package/build/lib/graphql-path/types.d.ts.map +1 -1
- package/build/lib/graphql-path/types.js +101 -2
- package/build/lib/graphql-path/types.js.map +1 -1
- package/build/lib/revision/revision.d.ts +1170 -1170
- package/build/lib/schema/schema.d.ts +708 -708
- package/build/lib/schema/unversioned.d.ts +1092 -1092
- package/build/lib/schema/versioned.d.ts +634 -634
- package/build/lib/semver/official-release.d.ts +10 -10
- package/build/lib/semver/pre-release.d.ts +10 -10
- package/build/lib/semver/semver.d.ts +50 -50
- package/build/lib/version-coverage/version-coverage.d.ts +43 -11
- package/build/lib/version-coverage/version-coverage.d.ts.map +1 -1
- package/build/lib/version-coverage/version-coverage.js +40 -6
- package/build/lib/version-coverage/version-coverage.js.map +1 -1
- package/build/template/components/ArgumentAnnotation.d.ts +2 -1
- package/build/template/components/ArgumentAnnotation.d.ts.map +1 -1
- package/build/template/components/ArgumentAnnotation.js +14 -4
- package/build/template/components/ArgumentAnnotation.js.map +1 -1
- package/build/template/components/ArgumentListAnnotation.d.ts +1 -0
- package/build/template/components/ArgumentListAnnotation.d.ts.map +1 -1
- package/build/template/components/ArgumentListAnnotation.js +21 -8
- package/build/template/components/ArgumentListAnnotation.js.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.js +0 -1
- package/build/template/components/Changelog/groups/FieldArgument.js.map +1 -1
- package/build/template/components/CodeBlock.d.ts.map +1 -1
- package/build/template/components/CodeBlock.js +1 -1
- package/build/template/components/CodeBlock.js.map +1 -1
- package/build/template/components/Description.js +1 -1
- package/build/template/components/Description.js.map +1 -1
- package/build/template/components/ExampleLink.d.ts.map +1 -1
- package/build/template/components/ExampleLink.js +2 -1
- package/build/template/components/ExampleLink.js.map +1 -1
- package/build/template/components/Field.d.ts +2 -0
- package/build/template/components/Field.d.ts.map +1 -1
- package/build/template/components/Field.js +42 -4
- package/build/template/components/Field.js.map +1 -1
- package/build/template/components/FieldList.d.ts +2 -1
- package/build/template/components/FieldList.d.ts.map +1 -1
- package/build/template/components/FieldList.js +14 -3
- package/build/template/components/FieldList.js.map +1 -1
- package/build/template/components/FieldListSection.d.ts.map +1 -1
- package/build/template/components/FieldListSection.js +6 -1
- package/build/template/components/FieldListSection.js.map +1 -1
- package/build/template/components/GraphQLDocument.d.ts.map +1 -1
- package/build/template/components/GraphQLDocument.js +2 -1
- package/build/template/components/GraphQLDocument.js.map +1 -1
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts +2 -0
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts.map +1 -1
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js +4 -3
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js.map +1 -1
- package/build/template/components/GraphQLInteractive/lib/parser.d.ts +2 -2
- package/build/template/components/GraphQLInteractive/lib/parser.d.ts.map +1 -1
- package/build/template/components/GraphQLInteractive/lib/parser.js +17 -12
- package/build/template/components/GraphQLInteractive/lib/parser.js.map +1 -1
- package/build/template/components/IAPIndicator.d.ts +12 -0
- package/build/template/components/IAPIndicator.d.ts.map +1 -0
- package/build/template/components/IAPIndicator.js +21 -0
- package/build/template/components/IAPIndicator.js.map +1 -0
- package/build/template/components/Link.d.ts +1 -2
- package/build/template/components/Link.d.ts.map +1 -1
- package/build/template/components/Link.js +5 -2
- package/build/template/components/Link.js.map +1 -1
- package/build/template/components/NamedType.d.ts.map +1 -1
- package/build/template/components/NamedType.js +9 -5
- package/build/template/components/NamedType.js.map +1 -1
- package/build/template/components/ReferenceLink.d.ts +2 -2
- package/build/template/components/ReferenceLink.d.ts.map +1 -1
- package/build/template/components/ReferenceLink.js +5 -3
- package/build/template/components/ReferenceLink.js.map +1 -1
- package/build/template/components/TypeAnnotation.d.ts +2 -0
- package/build/template/components/TypeAnnotation.d.ts.map +1 -1
- package/build/template/components/TypeAnnotation.js +4 -4
- package/build/template/components/TypeAnnotation.js.map +1 -1
- package/build/template/components/ViewModeToggle.d.ts +3 -0
- package/build/template/components/ViewModeToggle.d.ts.map +1 -0
- package/build/template/components/ViewModeToggle.js +9 -0
- package/build/template/components/ViewModeToggle.js.map +1 -0
- package/build/template/components/graphql/type-link.d.ts +2 -0
- package/build/template/components/graphql/type-link.d.ts.map +1 -1
- package/build/template/components/graphql/type-link.js +15 -3
- package/build/template/components/graphql/type-link.js.map +1 -1
- package/build/template/components/home/PlaygroundPreview.d.ts.map +1 -1
- package/build/template/components/home/PlaygroundPreview.js +3 -2
- package/build/template/components/home/PlaygroundPreview.js.map +1 -1
- package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
- package/build/template/components/sidebar/SidebarItem.js +18 -5
- package/build/template/components/sidebar/SidebarItem.js.map +1 -1
- package/build/template/contexts/ReferenceConfigContext.d.ts +16 -0
- package/build/template/contexts/ReferenceConfigContext.d.ts.map +1 -0
- package/build/template/contexts/ReferenceConfigContext.js +14 -0
- package/build/template/contexts/ReferenceConfigContext.js.map +1 -0
- package/build/template/contexts/ViewModeContext.d.ts +14 -0
- package/build/template/contexts/ViewModeContext.d.ts.map +1 -0
- package/build/template/contexts/ViewModeContext.js +40 -0
- package/build/template/contexts/ViewModeContext.js.map +1 -0
- package/build/template/hooks/use-examples.d.ts +4 -1
- package/build/template/hooks/use-examples.d.ts.map +1 -1
- package/build/template/hooks/useAlignedColumns.d.ts +10 -0
- package/build/template/hooks/useAlignedColumns.d.ts.map +1 -0
- package/build/template/hooks/useAlignedColumns.js +17 -0
- package/build/template/hooks/useAlignedColumns.js.map +1 -0
- package/build/template/routes/changelog/ChangelogSidebar.d.ts +2 -2
- package/build/template/routes/changelog/ChangelogSidebar.d.ts.map +1 -1
- package/build/template/routes/changelog/ChangelogSidebar.js +4 -4
- package/build/template/routes/changelog/ChangelogSidebar.js.map +1 -1
- package/build/template/routes/examples/_.d.ts +12 -3
- package/build/template/routes/examples/_.d.ts.map +1 -1
- package/build/template/routes/examples/_index.d.ts +8 -2
- package/build/template/routes/examples/_index.d.ts.map +1 -1
- package/build/template/routes/examples/name.d.ts +12 -3
- package/build/template/routes/examples/name.d.ts.map +1 -1
- package/build/template/routes/examples/name.js +6 -2
- package/build/template/routes/examples/name.js.map +1 -1
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.js +37 -10
- package/build/template/routes/reference.js.map +1 -1
- package/build/template/stores/changelog.d.ts +39 -39
- package/build/vite/plugins/core.d.ts.map +1 -1
- package/build/vite/plugins/core.js +6 -0
- package/build/vite/plugins/core.js.map +1 -1
- package/build/vite/plugins/examples.d.ts.map +1 -1
- package/build/vite/plugins/examples.js +10 -3
- package/build/vite/plugins/examples.js.map +1 -1
- package/build/vite/plugins/index.d.ts +1 -0
- package/build/vite/plugins/index.d.ts.map +1 -1
- package/build/vite/plugins/index.js +1 -0
- package/build/vite/plugins/index.js.map +1 -1
- package/build/vite/plugins/navbar.d.ts.map +1 -1
- package/build/vite/plugins/navbar.js +3 -1
- package/build/vite/plugins/navbar.js.map +1 -1
- package/build/vite/plugins/reference.d.ts +19 -0
- package/build/vite/plugins/reference.d.ts.map +1 -0
- package/build/vite/plugins/reference.js +96 -0
- package/build/vite/plugins/reference.js.map +1 -0
- package/build/vite/plugins/schemas.d.ts.map +1 -1
- package/build/vite/plugins/schemas.js +38 -2
- package/build/vite/plugins/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/api/config/input.ts +2 -0
- package/src/api/config/normalized.ts +54 -0
- package/src/api/config-template/template.ts +18 -1
- package/src/api/examples/diagnostic/diagnostic.ts +0 -3
- package/src/api/examples/scanner.test.ts +83 -0
- package/src/api/examples/scanner.ts +31 -21
- package/src/api/examples/schemas/example/example.ts +6 -0
- package/src/api/reference/$.ts +3 -0
- package/src/api/reference/catalog.ts +55 -0
- package/src/api/reference/config.ts +193 -0
- package/src/api/reference/scanner.ts +53 -0
- package/src/api/schema/augmentations/$$.ts +6 -0
- package/src/api/schema/augmentations/$.ts +1 -1
- package/src/api/schema/augmentations/apply.test.ts +89 -0
- package/src/api/schema/augmentations/apply.ts +277 -0
- package/src/api/schema/augmentations/augmentation.ts +24 -0
- package/src/api/schema/augmentations/config.ts +11 -0
- package/src/api/schema/augmentations/diagnostics/diagnostic.ts +20 -0
- package/src/api/schema/augmentations/diagnostics/duplicate-version.ts +20 -0
- package/src/api/schema/augmentations/diagnostics/invalid-path.ts +21 -0
- package/src/api/schema/augmentations/diagnostics/version-mismatch.ts +21 -0
- package/src/api/schema/augmentations/input.test.ts +144 -0
- package/src/api/schema/augmentations/input.ts +215 -0
- package/src/api/schema/augmentations/placement.ts +11 -0
- package/src/api/schema/config-schema.ts +2 -2
- package/src/api/schema/input-source/load.ts +2 -0
- package/src/api/schema/load.ts +19 -2
- package/src/lib/grafaid/schema/format-default-value.ts +22 -0
- package/src/lib/grafaid/schema/schema.ts +2 -0
- package/src/lib/graphql-path/$$.ts +7 -13
- package/src/lib/graphql-path/$.test.ts +175 -0
- package/src/lib/graphql-path/definition.ts +162 -162
- package/src/lib/graphql-path/query.ts +15 -98
- package/src/lib/graphql-path/schema.ts +136 -0
- package/src/lib/graphql-path/types.ts +108 -28
- package/src/lib/version-coverage/version-coverage.ts +48 -6
- package/src/template/components/ArgumentAnnotation.tsx +58 -9
- package/src/template/components/ArgumentListAnnotation.tsx +50 -17
- package/src/template/components/Changelog/groups/FieldArgument.tsx +0 -1
- package/src/template/components/CodeBlock.tsx +1 -0
- package/src/template/components/Description.tsx +1 -1
- package/src/template/components/ExampleLink.tsx +2 -1
- package/src/template/components/Field.tsx +148 -20
- package/src/template/components/FieldList.tsx +28 -13
- package/src/template/components/FieldListSection.tsx +12 -2
- package/src/template/components/GraphQLDocument.tsx +2 -0
- package/src/template/components/GraphQLInteractive/GraphQLInteractive.tsx +6 -1
- package/src/template/components/GraphQLInteractive/lib/parser.ts +16 -3
- package/src/template/components/IAPIndicator.tsx +73 -0
- package/src/template/components/Link.tsx +9 -3
- package/src/template/components/NamedType.tsx +54 -28
- package/src/template/components/ReferenceLink.tsx +16 -10
- package/src/template/components/TypeAnnotation.tsx +17 -5
- package/src/template/components/ViewModeToggle.tsx +27 -0
- package/src/template/components/graphql/type-link.tsx +34 -3
- package/src/template/components/home/PlaygroundPreview.tsx +3 -0
- package/src/template/components/sidebar/SidebarItem.tsx +21 -5
- package/src/template/contexts/ReferenceConfigContext.tsx +37 -0
- package/src/template/contexts/ViewModeContext.tsx +64 -0
- package/src/template/hooks/useAlignedColumns.ts +19 -0
- package/src/template/routes/changelog/ChangelogSidebar.tsx +4 -4
- package/src/template/routes/examples/name.tsx +13 -1
- package/src/template/routes/reference.tsx +67 -23
- package/src/types/virtual-modules.d.ts +5 -0
- package/src/vite/plugins/core.ts +6 -0
- package/src/vite/plugins/examples.ts +12 -2
- package/src/vite/plugins/index.ts +1 -0
- package/src/vite/plugins/navbar.ts +4 -1
- package/src/vite/plugins/reference.ts +130 -0
- package/src/vite/plugins/schemas.ts +51 -2
- package/build/api/examples/diagnostic/unused-default.d.ts +0 -49
- package/build/api/examples/diagnostic/unused-default.d.ts.map +0 -1
- package/build/api/examples/diagnostic/unused-default.js +0 -19
- package/build/api/examples/diagnostic/unused-default.js.map +0 -1
- package/build/api/schema/augmentations/augmentations/description.d.ts +0 -26
- package/build/api/schema/augmentations/augmentations/description.d.ts.map +0 -1
- package/build/api/schema/augmentations/augmentations/description.js +0 -55
- package/build/api/schema/augmentations/augmentations/description.js.map +0 -1
- package/build/api/schema/augmentations/schema-augmentation.d.ts +0 -20
- package/build/api/schema/augmentations/schema-augmentation.d.ts.map +0 -1
- package/build/api/schema/augmentations/schema-augmentation.js +0 -22
- package/build/api/schema/augmentations/schema-augmentation.js.map +0 -1
- package/build/api/schema/augmentations/target.d.ts +0 -25
- package/build/api/schema/augmentations/target.d.ts.map +0 -1
- package/build/api/schema/augmentations/target.js +0 -39
- package/build/api/schema/augmentations/target.js.map +0 -1
- package/build/lib/graphql-path/constructors.d.ts +0 -57
- package/build/lib/graphql-path/constructors.d.ts.map +0 -1
- package/build/lib/graphql-path/constructors.js +0 -73
- package/build/lib/graphql-path/constructors.js.map +0 -1
- package/build/template/components/ArgumentList.d.ts +0 -6
- package/build/template/components/ArgumentList.d.ts.map +0 -1
- package/build/template/components/ArgumentList.js +0 -9
- package/build/template/components/ArgumentList.js.map +0 -1
- package/src/api/examples/diagnostic/unused-default.ts +0 -22
- package/src/api/schema/augmentations/augmentations/description.ts +0 -69
- package/src/api/schema/augmentations/schema-augmentation.ts +0 -32
- package/src/api/schema/augmentations/target.ts +0 -61
- package/src/lib/graphql-path/constructors.ts +0 -81
- package/src/template/components/ArgumentList.tsx +0 -22
@@ -10,8 +10,11 @@ declare const LayoutSchema: import("effect/Schema").Struct<{
|
|
10
10
|
document: import("effect/Schema").Union<[import("effect/Schema").TaggedStruct<"DocumentUnversioned", {
|
11
11
|
document: typeof import("effect/Schema").String;
|
12
12
|
}>, import("effect/Schema").TaggedStruct<"DocumentVersioned", {
|
13
|
-
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>;
|
13
|
+
versionDocuments: import("effect/Schema").HashMap<import("effect/Schema").Union<[typeof import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned, 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>;
|
14
14
|
}>]>;
|
15
|
+
description: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
16
|
+
path: typeof import("effect/Schema").String;
|
17
|
+
}>>;
|
15
18
|
}>>;
|
16
19
|
index: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
17
20
|
path: typeof import("effect/Schema").String;
|
@@ -24,6 +27,9 @@ declare const LayoutSchema: import("effect/Schema").Struct<{
|
|
24
27
|
}>;
|
25
28
|
export declare const layoutLoader: () => Promise<{
|
26
29
|
readonly examples: readonly {
|
30
|
+
readonly description?: {
|
31
|
+
readonly path: string;
|
32
|
+
} | undefined;
|
27
33
|
readonly path: string;
|
28
34
|
readonly name: string;
|
29
35
|
readonly document: {
|
@@ -31,7 +37,7 @@ export declare const layoutLoader: () => Promise<{
|
|
31
37
|
readonly document: string;
|
32
38
|
} | {
|
33
39
|
readonly _tag: "DocumentVersioned";
|
34
|
-
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>;
|
40
|
+
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("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | 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>;
|
35
41
|
};
|
36
42
|
}[];
|
37
43
|
readonly index?: {
|
@@ -49,8 +55,11 @@ export declare const examplesRoute: import("../../../lib/react-router-effect/typ
|
|
49
55
|
document: import("effect/Schema").Union<[import("effect/Schema").TaggedStruct<"DocumentUnversioned", {
|
50
56
|
document: typeof import("effect/Schema").String;
|
51
57
|
}>, import("effect/Schema").TaggedStruct<"DocumentVersioned", {
|
52
|
-
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>;
|
58
|
+
versionDocuments: import("effect/Schema").HashMap<import("effect/Schema").Union<[typeof import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned, 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>;
|
53
59
|
}>]>;
|
60
|
+
description: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
61
|
+
path: typeof import("effect/Schema").String;
|
62
|
+
}>>;
|
54
63
|
}>>;
|
55
64
|
index: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
56
65
|
path: typeof import("effect/Schema").String;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"_.d.ts","sourceRoot":"","sources":["../../../../src/template/routes/examples/_.tsx"],"names":[],"mappings":"AAgBA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,mBAAmB;QAC3B,UAAU,EAAE,OAAO,YAAY,CAAA;KAChC;CACF;AAMD,QAAA,MAAM,YAAY
|
1
|
+
{"version":3,"file":"_.d.ts","sourceRoot":"","sources":["../../../../src/template/routes/examples/_.tsx"],"names":[],"mappings":"AAgBA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,mBAAmB;QAC3B,UAAU,EAAE,OAAO,YAAY,CAAA;KAChC;CACF;AAMD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;EAAU,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;EAExB,CAAA;AAMD,eAAO,MAAM,eAAe,+CAkC3B,CAAA;AAMD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;GASxB,CAAA"}
|
@@ -1,5 +1,8 @@
|
|
1
1
|
export declare const loader: () => Promise<{
|
2
2
|
readonly examples: readonly {
|
3
|
+
readonly description?: {
|
4
|
+
readonly path: string;
|
5
|
+
} | undefined;
|
3
6
|
readonly path: string;
|
4
7
|
readonly name: string;
|
5
8
|
readonly document: {
|
@@ -7,7 +10,7 @@ export declare const loader: () => Promise<{
|
|
7
10
|
readonly document: string;
|
8
11
|
} | {
|
9
12
|
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>;
|
13
|
+
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("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | 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
14
|
};
|
12
15
|
}[];
|
13
16
|
readonly index?: {
|
@@ -24,8 +27,11 @@ export declare const examplesIndexRoute: import("#lib/react-router-effect/react-
|
|
24
27
|
document: import("effect/Schema").Union<[import("effect/Schema").TaggedStruct<"DocumentUnversioned", {
|
25
28
|
document: typeof import("effect/Schema").String;
|
26
29
|
}>, 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>;
|
30
|
+
versionDocuments: import("effect/Schema").HashMap<import("effect/Schema").Union<[typeof import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned, 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
31
|
}>]>;
|
32
|
+
description: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
33
|
+
path: typeof import("effect/Schema").String;
|
34
|
+
}>>;
|
29
35
|
}>>;
|
30
36
|
index: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
31
37
|
path: typeof import("effect/Schema").String;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"_index.d.ts","sourceRoot":"","sources":["../../../../src/template/routes/examples/_index.tsx"],"names":[],"mappings":"AAuBA,eAAO,MAAM,MAAM
|
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"}
|
@@ -5,10 +5,16 @@ export declare const NameSchema: import("effect/Schema").Struct<{
|
|
5
5
|
document: import("effect/Schema").Union<[import("effect/Schema").TaggedStruct<"DocumentUnversioned", {
|
6
6
|
document: typeof import("effect/Schema").String;
|
7
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>;
|
8
|
+
versionDocuments: import("effect/Schema").HashMap<import("effect/Schema").Union<[typeof import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned, 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
9
|
}>]>;
|
10
|
+
description: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
11
|
+
path: typeof import("effect/Schema").String;
|
12
|
+
}>>;
|
10
13
|
}>;
|
11
14
|
export declare const nameLoader: ({ params }: any) => Promise<{
|
15
|
+
readonly description?: {
|
16
|
+
readonly path: string;
|
17
|
+
} | undefined;
|
12
18
|
readonly path: string;
|
13
19
|
readonly name: string;
|
14
20
|
readonly document: {
|
@@ -16,7 +22,7 @@ export declare const nameLoader: ({ params }: any) => Promise<{
|
|
16
22
|
readonly document: string;
|
17
23
|
} | {
|
18
24
|
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>;
|
25
|
+
readonly versionDocuments: import("effect/HashMap").HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
20
26
|
};
|
21
27
|
}>;
|
22
28
|
export declare const nameRoute: import("../../../lib/react-router-effect/types.js").SchemaRoute<import("effect/Schema").Struct<{
|
@@ -25,7 +31,10 @@ export declare const nameRoute: import("../../../lib/react-router-effect/types.j
|
|
25
31
|
document: import("effect/Schema").Union<[import("effect/Schema").TaggedStruct<"DocumentUnversioned", {
|
26
32
|
document: typeof import("effect/Schema").String;
|
27
33
|
}>, 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>;
|
34
|
+
versionDocuments: import("effect/Schema").HashMap<import("effect/Schema").Union<[typeof import("../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned, 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
35
|
}>]>;
|
36
|
+
description: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
37
|
+
path: typeof import("effect/Schema").String;
|
38
|
+
}>>;
|
30
39
|
}>>;
|
31
40
|
//# sourceMappingURL=name.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../../src/template/routes/examples/name.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../../src/template/routes/examples/name.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAWxC,eAAO,MAAM,UAAU;;;;;;;;;;;EAAU,CAAA;AAMjC,eAAO,MAAM,UAAU,GAAU,YAAY,GAAG;;;;;;;;;;;;;EAe/C,CAAA;AAyCD,eAAO,MAAM,SAAS;;;;;;;;;;;GAKpB,CAAA"}
|
@@ -1,15 +1,18 @@
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { Example } from '#api/examples/schemas/example/example';
|
3
|
+
import { Catalog } from '#lib/catalog/$';
|
3
4
|
import { route } from '#lib/react-router-effect/route';
|
4
5
|
import { useLoaderData } from '#lib/react-router-effect/use-loader-data';
|
5
6
|
import { Version } from '#lib/version/$';
|
6
|
-
import { Heading } from '@radix-ui/themes';
|
7
|
+
import { Box, Heading } from '@radix-ui/themes';
|
7
8
|
import { Str } from '@wollybeard/kit';
|
8
9
|
import { Array, Option } from 'effect';
|
9
10
|
import { useSearchParams } from 'react-router';
|
11
|
+
import * as ExamplesModule from 'virtual:polen/project/examples';
|
10
12
|
import { examplesCatalog } from 'virtual:polen/project/examples';
|
11
13
|
import { schemasCatalog } from 'virtual:polen/project/schemas';
|
12
14
|
import { GraphQLDocument } from '../../components/GraphQLDocument.js';
|
15
|
+
import { MdxProvider } from '../../providers/mdx.js';
|
13
16
|
export const NameSchema = Example;
|
14
17
|
// ============================================================================
|
15
18
|
// Loader
|
@@ -38,7 +41,8 @@ const Component = () => {
|
|
38
41
|
const selectedVersion = versionParam
|
39
42
|
? Version.decodeSync(versionParam)
|
40
43
|
: undefined;
|
41
|
-
|
44
|
+
const DescriptionComponent = ExamplesModule[`DescriptionComponent_${example.name.replace(/-/g, '_')}`];
|
45
|
+
return (_jsxs(_Fragment, { children: [_jsx(Heading, { size: '6', mb: '4', children: Str.Case.title(example.name) }), DescriptionComponent && (_jsx(Box, { mb: '4', children: _jsx(MdxProvider, { schema: schemasCatalog && Catalog.getLatest(schemasCatalog).definition, children: _jsx(DescriptionComponent, {}) }) })), _jsx(GraphQLDocument, { document: example.document, schemaCatalog: schemasCatalog ?? undefined, selectedVersionCoverage: selectedVersion })] }));
|
42
46
|
};
|
43
47
|
// ============================================================================
|
44
48
|
// Export
|
@@ -1 +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;
|
1
|
+
{"version":3,"file":"name.js","sourceRoot":"","sources":["../../../../src/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AI,SAAS,EAC1C,uBAAuB,EAAE,eAAe,GACxC,IACD,CACJ,CAAA;AACH,CAAC,CAAA;AAED,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC;IAC7B,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,UAAU;IAClB,SAAS;CACV,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":"AAsPA;;;;;GAKG;AAEH,eAAO,MAAM,SAAS,MAclB,CAAA"}
|
@@ -8,25 +8,42 @@ import { Lifecycles } from '#lib/lifecycles/$';
|
|
8
8
|
import { route, useLoaderData } from '#lib/react-router-effect/react-router-effect';
|
9
9
|
import { Schema } from '#lib/schema/$';
|
10
10
|
import { Version } from '#lib/version/$';
|
11
|
+
import { SegmentedControl, Text } from '@radix-ui/themes';
|
11
12
|
import { Flex } from '@radix-ui/themes';
|
13
|
+
import { Str } from '@wollybeard/kit';
|
12
14
|
import { neverCase } from '@wollybeard/kit/language';
|
13
15
|
import { HashMap, Option } from 'effect';
|
14
16
|
import { Effect, Match } from 'effect';
|
15
17
|
import React from 'react';
|
16
|
-
import { useParams } from 'react-router';
|
18
|
+
import { redirect, useParams } from 'react-router';
|
19
|
+
import { templateConfig } from 'virtual:polen/project/config';
|
20
|
+
import { IndexComponent } from 'virtual:polen/project/reference';
|
17
21
|
import { schemasCatalog } from 'virtual:polen/project/schemas';
|
18
22
|
import { Field } from '../components/Field.js';
|
19
23
|
import { TypeKindIcon } from '../components/graphql/graphql.js';
|
20
24
|
import { MissingSchema } from '../components/MissingSchema.js';
|
21
25
|
import { NamedType } from '../components/NamedType.js';
|
22
26
|
import { ReferenceVersionPicker } from '../components/ReferenceVersionPicker.js';
|
27
|
+
import { ViewModeToggle } from '../components/ViewModeToggle.js';
|
23
28
|
import { GraphqlLifecycleProvider } from '../contexts/GraphqlLifecycleContext.js';
|
29
|
+
import { ReferenceConfigProvider } from '../contexts/ReferenceConfigContext.js';
|
30
|
+
import { ViewModeProvider } from '../contexts/ViewModeContext.js';
|
24
31
|
import { SidebarLayout } from '../layouts/index.js';
|
32
|
+
import { MdxProvider } from '../providers/mdx.js';
|
25
33
|
const routeSchema = S.Struct({
|
26
34
|
catalog: Catalog.Catalog,
|
27
35
|
schema: Schema.Schema,
|
28
36
|
});
|
29
37
|
const referenceLoader = ({ params }) => {
|
38
|
+
// Check if reference is enabled
|
39
|
+
if (!templateConfig.reference.enabled) {
|
40
|
+
throw new Response('Reference documentation is disabled', { status: 404 });
|
41
|
+
}
|
42
|
+
// Check if no type is selected (index route) and no custom index exists
|
43
|
+
if (!params.type && !params.version && !IndexComponent) {
|
44
|
+
// Redirect to Query type which is guaranteed to exist
|
45
|
+
throw redirect('/reference/Query');
|
46
|
+
}
|
30
47
|
// This should never be called when schemasCatalog is null
|
31
48
|
// because the route won't be added to the router
|
32
49
|
// But we return an Effect.fail for safety
|
@@ -81,7 +98,7 @@ const ReferenceView = () => {
|
|
81
98
|
for (const [title, types] of kindEntries) {
|
82
99
|
sidebarItems.push({
|
83
100
|
type: `ItemSection`,
|
84
|
-
title,
|
101
|
+
title: Str.Case.title(Str.Case.snake(title)),
|
85
102
|
pathExp: `reference-${title.toLowerCase()}`,
|
86
103
|
isLinkToo: false,
|
87
104
|
links: types.map(type => {
|
@@ -104,7 +121,12 @@ const ReferenceView = () => {
|
|
104
121
|
});
|
105
122
|
const content = (() => {
|
106
123
|
if (viewType === 'index') {
|
107
|
-
|
124
|
+
// Render custom index component if available
|
125
|
+
if (IndexComponent) {
|
126
|
+
return (_jsx(MdxProvider, { schema: schema.definition, children: _jsx(IndexComponent, {}) }));
|
127
|
+
}
|
128
|
+
// Fallback message (shouldn't reach here due to redirect)
|
129
|
+
return _jsx(Text, { children: "Select a type from the sidebar to view its documentation." });
|
108
130
|
}
|
109
131
|
else if (viewType === 'type-missing' || viewType === 'field-missing') {
|
110
132
|
return _jsx(MissingSchema, {});
|
@@ -123,12 +145,17 @@ const ReferenceView = () => {
|
|
123
145
|
neverCase(viewType);
|
124
146
|
}
|
125
147
|
})();
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
148
|
+
const referenceConfig = {
|
149
|
+
descriptionsView: templateConfig.reference.descriptionsView,
|
150
|
+
nullabilityRendering: templateConfig.reference.nullabilityRendering,
|
151
|
+
};
|
152
|
+
return (_jsx(ReferenceConfigProvider, { config: referenceConfig, children: _jsx(ViewModeProvider, { defaultMode: referenceConfig.descriptionsView.defaultMode, children: _jsx(GraphqlLifecycleProvider, { lifecycle: lifecycle, schema: schema, children: _jsx(SidebarLayout, { sidebar: sidebarItems, basePath: basePath, topContent: (() => {
|
153
|
+
const version = Schema.getVersion(schema);
|
154
|
+
const versionPicker = catalog._tag === 'CatalogVersioned' && version
|
155
|
+
? (_jsx(ReferenceVersionPicker, { data: Catalog.Versioned.getVersions(catalog), current: version }))
|
156
|
+
: null;
|
157
|
+
return (_jsxs(Flex, { gap: '3', align: 'center', children: [versionPicker, referenceConfig.descriptionsView.showControl && _jsx(ViewModeToggle, {})] }));
|
158
|
+
})(), children: content }) }) }) }));
|
132
159
|
};
|
133
160
|
// Define routes that handle type and field params
|
134
161
|
const typeAndFieldRoutes = [
|
@@ -161,7 +188,7 @@ const typeAndFieldRoutes = [
|
|
161
188
|
* - Leaf routes have components and loaders that always run fresh
|
162
189
|
* - Single ReferenceView component handles all variations
|
163
190
|
*/
|
164
|
-
export const reference = !schemasCatalog
|
191
|
+
export const reference = !schemasCatalog || !templateConfig.reference.enabled
|
165
192
|
? null
|
166
193
|
: route({
|
167
194
|
path: `reference`,
|
@@ -1 +1 @@
|
|
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,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;
|
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,KAA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