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
@@ -6,12 +6,12 @@ import type { React } from '#dep/react/index';
|
|
6
6
|
* <ReferenceLink type="User">User</ReferenceLink>
|
7
7
|
* <ReferenceLink type="User" field="name">User.name</ReferenceLink>
|
8
8
|
*/
|
9
|
-
export declare const ReferenceLink: React.
|
9
|
+
export declare const ReferenceLink: React.ForwardRefExoticComponent<{
|
10
10
|
/** The GraphQL type name */
|
11
11
|
type: string;
|
12
12
|
/** Optional field name for field-specific links */
|
13
13
|
field?: string;
|
14
14
|
/** Link content */
|
15
15
|
children: React.ReactNode;
|
16
|
-
}
|
16
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
17
17
|
//# sourceMappingURL=ReferenceLink.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ReferenceLink.d.ts","sourceRoot":"","sources":["../../../src/template/components/ReferenceLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;
|
1
|
+
{"version":3,"file":"ReferenceLink.d.ts","sourceRoot":"","sources":["../../../src/template/components/ReferenceLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAK7C;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;IAGtB,4BAA4B;UACtB,MAAM;IACZ,mDAAmD;YAC3C,MAAM;IACd,mBAAmB;cACT,KAAK,CAAC,SAAS;2CAiB3B,CAAA"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { Api } from '#api/iso';
|
3
|
+
import { forwardRef } from 'react';
|
3
4
|
import { useVersionPath } from '../hooks/useVersionPath.js';
|
4
5
|
import { Link } from './Link.js';
|
5
6
|
/**
|
@@ -9,9 +10,10 @@ import { Link } from './Link.js';
|
|
9
10
|
* <ReferenceLink type="User">User</ReferenceLink>
|
10
11
|
* <ReferenceLink type="User" field="name">User.name</ReferenceLink>
|
11
12
|
*/
|
12
|
-
export const ReferenceLink = ({ type, field, children }) => {
|
13
|
+
export const ReferenceLink = forwardRef(({ type, field, children, ...props }, ref) => {
|
13
14
|
const versionPath = useVersionPath();
|
14
15
|
const path = Api.Schema.Routing.joinSegmentsAndPaths(Api.Schema.Routing.segmentLiterals.reference, versionPath, type, field);
|
15
|
-
return (_jsx(Link, { to: path, children: children }));
|
16
|
-
};
|
16
|
+
return (_jsx(Link, { to: path, ref: ref, ...props, children: children }));
|
17
|
+
});
|
18
|
+
ReferenceLink.displayName = 'ReferenceLink';
|
17
19
|
//# sourceMappingURL=ReferenceLink.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ReferenceLink.js","sourceRoot":"","sources":["../../../src/template/components/ReferenceLink.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,
|
1
|
+
{"version":3,"file":"ReferenceLink.js","sourceRoot":"","sources":["../../../src/template/components/ReferenceLink.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAUrC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC7C,MAAM,WAAW,GAAG,cAAc,EAAE,CAAA;IAEpC,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,oBAAoB,CAClD,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,SAAS,EAC5C,WAAW,EACX,IAAI,EACJ,KAAK,CACN,CAAA;IAED,OAAO,CACL,KAAC,IAAI,IAAC,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,KAAM,KAAK,YAChC,QAAQ,GACJ,CACR,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TypeAnnotation.d.ts","sourceRoot":"","sources":["../../../src/template/components/TypeAnnotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"TypeAnnotation.d.ts","sourceRoot":"","sources":["../../../src/template/components/TypeAnnotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IACpC,IAAI,EAAE,WAAW,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,oBAAoB,CAAC,EAAE,cAAc,GAAG,UAAU,CAAA;CACnD,CAuCA,CAAA"}
|
@@ -5,18 +5,18 @@ import { TypeLink } from './graphql/graphql.js';
|
|
5
5
|
/**
|
6
6
|
* Renders a GraphQL type recursively, with links for named types
|
7
7
|
*/
|
8
|
-
export const TypeAnnotation = ({ type }) => {
|
8
|
+
export const TypeAnnotation = ({ type, showDescription = false, nullabilityRendering = 'bangMark' }) => {
|
9
9
|
// Handle NonNull type wrapper
|
10
10
|
if (isNonNullType(type)) {
|
11
|
-
return (_jsxs(_Fragment, { children: [_jsx(TypeAnnotation, { type: type.ofType }), _jsx(Text, { color: 'gray', children: "!" })] }));
|
11
|
+
return (_jsxs(_Fragment, { children: [_jsx(TypeAnnotation, { type: type.ofType, showDescription: showDescription, nullabilityRendering: nullabilityRendering }), nullabilityRendering === 'bangMark' && _jsx(Text, { color: 'gray', children: "!" })] }));
|
12
12
|
}
|
13
13
|
// Handle List type wrapper
|
14
14
|
if (isListType(type)) {
|
15
|
-
return (_jsxs(_Fragment, { children: [_jsx(Text, { color: 'gray', children: "[" }), _jsx(TypeAnnotation, { type: type.ofType }), _jsx(Text, { color: 'gray', children: "]" })] }));
|
15
|
+
return (_jsxs(_Fragment, { children: [_jsx(Text, { color: 'gray', children: "[" }), _jsx(TypeAnnotation, { type: type.ofType, showDescription: showDescription, nullabilityRendering: nullabilityRendering }), _jsx(Text, { color: 'gray', children: "]" })] }));
|
16
16
|
}
|
17
17
|
// Handle named types - use TypeLink which already has icon support
|
18
18
|
if (isNamedType(type)) {
|
19
|
-
return _jsx(TypeLink, { type: type });
|
19
|
+
return _jsx(TypeLink, { type: type, showDescription: showDescription });
|
20
20
|
}
|
21
21
|
// TypeScript exhaustiveness check - this should be unreachable
|
22
22
|
// as the above three cases cover all possible GraphQLType implementations
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TypeAnnotation.js","sourceRoot":"","sources":["../../../src/template/components/TypeAnnotation.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEvC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,
|
1
|
+
{"version":3,"file":"TypeAnnotation.js","sourceRoot":"","sources":["../../../src/template/components/TypeAnnotation.tsx"],"names":[],"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AAC,CAAA;AAChF,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ViewModeToggle.d.ts","sourceRoot":"","sources":["../../../src/template/components/ViewModeToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAK7C,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAqBlC,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { ReaderIcon, RowsIcon } from '@radix-ui/react-icons';
|
3
|
+
import { Flex, SegmentedControl } from '@radix-ui/themes';
|
4
|
+
import { useViewMode } from '../contexts/ViewModeContext.js';
|
5
|
+
export const ViewModeToggle = () => {
|
6
|
+
const { viewMode, setViewMode } = useViewMode();
|
7
|
+
return (_jsxs(SegmentedControl.Root, { value: viewMode, onValueChange: (value) => setViewMode(value), size: '1', children: [_jsx(SegmentedControl.Item, { value: 'expanded', children: _jsx(Flex, { align: 'center', gap: '2', children: _jsx(ReaderIcon, {}) }) }), _jsx(SegmentedControl.Item, { value: 'compact', children: _jsx(Flex, { align: 'center', gap: '2', children: _jsx(RowsIcon, {}) }) })] }));
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=ViewModeToggle.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ViewModeToggle.js","sourceRoot":"","sources":["../../../src/template/components/ViewModeToggle.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAE5D,MAAM,CAAC,MAAM,cAAc,GAAa,GAAG,EAAE;IAC3C,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,WAAW,EAAE,CAAA;IAE/C,OAAO,CACL,MAAC,gBAAgB,CAAC,IAAI,IACpB,KAAK,EAAE,QAAQ,EACf,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,KAA+B,CAAC,EACtE,IAAI,EAAC,GAAG,aAER,KAAC,gBAAgB,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU,YACrC,KAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,GAAG,EAAC,GAAG,YAC1B,KAAC,UAAU,KAAG,GACT,GACe,EACxB,KAAC,gBAAgB,CAAC,IAAI,IAAC,KAAK,EAAC,SAAS,YACpC,KAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,GAAG,EAAC,GAAG,YAC1B,KAAC,QAAQ,KAAG,GACP,GACe,IACF,CACzB,CAAA;AACH,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"type-link.d.ts","sourceRoot":"","sources":["../../../../src/template/components/graphql/type-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;
|
1
|
+
{"version":3,"file":"type-link.d.ts","sourceRoot":"","sources":["../../../../src/template/components/graphql/type-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;IAC9B,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAA;IACpC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAsCA,CAAA"}
|
@@ -1,11 +1,23 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { Grafaid } from '#lib/grafaid';
|
3
|
-
import { Code, Flex } from '@radix-ui/themes';
|
3
|
+
import { Code, Flex, HoverCard, Text } from '@radix-ui/themes';
|
4
|
+
import React from 'react';
|
5
|
+
import { Description } from '../Description.js';
|
4
6
|
import { ReferenceLink } from '../ReferenceLink.js';
|
5
7
|
import { TypeKindIcon } from './graphql.js';
|
6
8
|
import { typeKindTokensIndex } from './type-kind-tokens.js';
|
7
|
-
export const TypeLink = ({ type }) => {
|
9
|
+
export const TypeLink = ({ type, showDescription = false }) => {
|
8
10
|
const kind = Grafaid.Schema.typeKindFromClass(type);
|
9
|
-
|
11
|
+
const hasDescription = type.description && type.description.trim() !== '';
|
12
|
+
const linkContent = (
|
13
|
+
// <a href='https://foo.bar'>
|
14
|
+
_jsx(ReferenceLink, { type: type.name, children: _jsxs(Flex, { align: 'center', gap: '1', display: 'inline-flex', children: [_jsx(TypeKindIcon, { kind: kind }), ` `, _jsx(Code, { color: typeKindTokensIndex[kind].color, variant: 'ghost', children: type.name })] }) })
|
15
|
+
// {/*</a>*/}
|
16
|
+
);
|
17
|
+
// Only show HoverCard if showDescription is true AND description exists
|
18
|
+
if (!showDescription || !hasDescription) {
|
19
|
+
return linkContent;
|
20
|
+
}
|
21
|
+
return (_jsxs(HoverCard.Root, { children: [_jsx(HoverCard.Trigger, { children: linkContent }), _jsx(HoverCard.Content, { size: '2', maxWidth: '400px', side: 'top', align: 'center', children: _jsx(Text, { size: '2', color: 'gray', children: _jsx(Description, { data: type }) }) })] }));
|
10
22
|
};
|
11
23
|
//# sourceMappingURL=type-link.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"type-link.js","sourceRoot":"","sources":["../../../../src/template/components/graphql/type-link.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;
|
1
|
+
{"version":3,"file":"type-link.js","sourceRoot":"","sources":["../../../../src/template/components/graphql/type-link.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;A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AC,OAAO,IAChB,IAAI,EAAC,GAAG,EACR,QAAQ,EAAC,OAAO,EAChB,IAAI,EAAC,KAAK,EACV,KAAK,EAAC,QAAQ,YAEd,KAAC,IAAI,IAAC,IAAI,EAAC,GAAG,EAAC,KAAK,EAAC,MAAM,YACzB,KAAC,WAAW,IAAC,IAAI,EAAE,IAAI,GAAI,GACtB,GACW,IACL,CAClB,CAAA;AACH,CAAC,CAAA"}
|
@@ -1 +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;
|
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;AAK9B,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,CA4FrE,CAAA"}
|
@@ -3,6 +3,7 @@ import { Box, Button, Card, Flex, Heading, Section, Text } from '@radix-ui/theme
|
|
3
3
|
import { highlight } from 'codehike/code';
|
4
4
|
import * as React from 'react';
|
5
5
|
import { Link } from 'react-router';
|
6
|
+
import { templateConfig } from 'virtual:polen/project/config';
|
6
7
|
import { GraphQLInteractive } from '../GraphQLInteractive/GraphQLInteractive.js';
|
7
8
|
const defaultQuery = `# Welcome to the GraphQL Playground
|
8
9
|
# Try running this query to explore the API
|
@@ -31,8 +32,8 @@ export const PlaygroundPreviewSection = ({ schema, exampleQuery = defaultQuery,
|
|
31
32
|
return null;
|
32
33
|
}
|
33
34
|
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' })] })] })] }) }));
|
35
|
+
? (_jsx(GraphQLInteractive, { codeblock: highlightedCode, schema: schema, showWarningIfNoSchema: false, referenceEnabled: templateConfig.reference.enabled }))
|
36
|
+
: (_jsx(GraphQLInteractive, { codeblock: highlightedCode, showWarningIfNoSchema: false, referenceEnabled: templateConfig.reference.enabled }))] }), _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
|
};
|
37
38
|
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
39
|
//# sourceMappingURL=PlaygroundPreview.js.map
|
@@ -1 +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;AAC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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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SidebarItem.d.ts","sourceRoot":"","sources":["../../../../src/template/components/sidebar/SidebarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;
|
1
|
+
{"version":3,"file":"SidebarItem.d.ts","sourceRoot":"","sources":["../../../../src/template/components/sidebar/SidebarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAU7C,UAAU,gBAAiB,SAAQ,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC;IAChE,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;CAChC;AAED,UAAU,mBAAoB,SAAQ,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC;IAChF,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAC/B,KAAK,EAAE,gBAAgB,EAAE,CAAA;CAC1B;AAED,KAAK,YAAY,GAAG,gBAAgB,GAAG,mBAAmB,CAAA;AAE1D,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,YAAY,EAAE,CAAA;CAAE,CAWrD,CAAA;AAUD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,CAUjD,CAAA"}
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Api } from '#api/iso';
|
3
3
|
import { Texts } from '#template/components/Texts/index';
|
4
4
|
import { Box, Flex } from '@radix-ui/themes';
|
5
|
+
import { Str } from '@wollybeard/kit';
|
5
6
|
import { useContext } from 'react';
|
6
7
|
import { useLocation } from 'react-router';
|
7
8
|
import { getPathActiveReport, Link } from '../Link.js';
|
@@ -38,13 +39,17 @@ const SBLink = ({ link }) => {
|
|
38
39
|
const currentPathExp = location.pathname;
|
39
40
|
const href = Api.Schema.Routing.joinSegmentsAndPaths(basePath, link.pathExp);
|
40
41
|
const active = getPathActiveReport(href, currentPathExp);
|
42
|
+
// Apply title case transformation to string titles for better readability
|
43
|
+
const displayTitle = typeof link.title === 'string'
|
44
|
+
? Str.Case.title(link.title)
|
45
|
+
: link.title;
|
41
46
|
return (_jsx(Link, { role: 'Sidebar Link', color: active.is ? `iris` : `gray`, "data-testid": `sidebar-link-${link.pathExp}`, to: href, style: {
|
42
47
|
display: `block`,
|
43
48
|
textDecoration: `none`,
|
44
49
|
color: active.is ? `var(--accent-12)` : undefined,
|
45
|
-
backgroundColor: active.isDirect ? `var(--accent-
|
50
|
+
backgroundColor: active.isDirect ? `var(--accent-3)` : active.isDescendant ? `var(--gray-2)` : `transparent`,
|
46
51
|
borderRadius: `var(--radius-2)`,
|
47
|
-
}, children: _jsx(Box, { py: '2', px: '4', children:
|
52
|
+
}, children: _jsx(Box, { py: '2', px: '4', children: displayTitle }) }));
|
48
53
|
};
|
49
54
|
//
|
50
55
|
//
|
@@ -54,7 +59,11 @@ const SBLink = ({ link }) => {
|
|
54
59
|
//
|
55
60
|
//
|
56
61
|
const Section = ({ section }) => {
|
57
|
-
|
62
|
+
// Apply title case transformation to string titles for better readability
|
63
|
+
const displayTitle = typeof section.title === 'string'
|
64
|
+
? Str.Case.title(section.title)
|
65
|
+
: section.title;
|
66
|
+
return (_jsxs(Box, { mt: '8', children: [_jsx(Box, { ml: '4', mb: '2', children: _jsx(Texts.MinorHeading, { color: 'gray', children: displayTitle }) }), _jsx(Items, { items: section.links })] }));
|
58
67
|
};
|
59
68
|
//
|
60
69
|
//
|
@@ -73,12 +82,16 @@ const SectionLink = ({ link }) => {
|
|
73
82
|
const { basePath } = useContext(SidebarContext);
|
74
83
|
const href = Api.Schema.Routing.joinSegmentsAndPaths(basePath, link.pathExp);
|
75
84
|
const active = getPathActiveReport(href, location.pathname);
|
85
|
+
// Apply title case transformation to string titles for better readability
|
86
|
+
const displayTitle = typeof link.title === 'string'
|
87
|
+
? Str.Case.title(link.title)
|
88
|
+
: link.title;
|
76
89
|
return (_jsx(Link, { role: 'Sidebar Link', to: href, color: active.is ? `iris` : `gray`, style: {
|
77
90
|
textDecoration: `none`,
|
78
91
|
color: active.is ? `var(--accent-12)` : undefined,
|
79
|
-
backgroundColor: active.isDirect ? `var(--accent-
|
92
|
+
backgroundColor: active.isDirect ? `var(--accent-3)` : active.isDescendant ? `var(--gray-2)` : `transparent`,
|
80
93
|
borderBottomRightRadius: `var(--radius-2)`,
|
81
94
|
borderTopRightRadius: `var(--radius-2)`,
|
82
|
-
}, children: _jsx(Box, { py: '2', px: '4', children:
|
95
|
+
}, children: _jsx(Box, { py: '2', px: '4', children: displayTitle }) }));
|
83
96
|
};
|
84
97
|
//# sourceMappingURL=SidebarItem.js.map
|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e,CAAC,CAAC,CAAC,aAAa;YAC5G,uBAAuB,EAAE,iBAAiB;YAC1C,oBAAoB,EAAE,iBAAiB;SACxC,YAED,KAAC,GAAG,IAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,YAAE,YAAY,GAAO,GAClC,CACR,CAAA;AACH,CAAC,CAAA"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { React } from '#dep/react/index';
|
2
|
+
export interface ReferenceConfig {
|
3
|
+
descriptionsView: {
|
4
|
+
defaultMode: 'compact' | 'expanded';
|
5
|
+
showControl: boolean;
|
6
|
+
};
|
7
|
+
nullabilityRendering: 'questionMark' | 'bangMark';
|
8
|
+
}
|
9
|
+
interface ReferenceConfigProviderProps {
|
10
|
+
children: React.ReactNode;
|
11
|
+
config: ReferenceConfig;
|
12
|
+
}
|
13
|
+
export declare const ReferenceConfigProvider: React.FC<ReferenceConfigProviderProps>;
|
14
|
+
export declare const useReferenceConfig: () => ReferenceConfig;
|
15
|
+
export {};
|
16
|
+
//# sourceMappingURL=ReferenceConfigContext.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ReferenceConfigContext.d.ts","sourceRoot":"","sources":["../../../src/template/contexts/ReferenceConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAG7C,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE;QAChB,WAAW,EAAE,SAAS,GAAG,UAAU,CAAA;QACnC,WAAW,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,oBAAoB,EAAE,cAAc,GAAG,UAAU,CAAA;CAClD;AAQD,UAAU,4BAA4B;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,MAAM,EAAE,eAAe,CAAA;CACxB;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAM1E,CAAA;AAED,eAAO,MAAM,kBAAkB,uBAM9B,CAAA"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { createContext, useContext } from 'react';
|
3
|
+
const ReferenceConfigContext = createContext(undefined);
|
4
|
+
export const ReferenceConfigProvider = ({ children, config }) => {
|
5
|
+
return (_jsx(ReferenceConfigContext.Provider, { value: { config }, children: children }));
|
6
|
+
};
|
7
|
+
export const useReferenceConfig = () => {
|
8
|
+
const context = useContext(ReferenceConfigContext);
|
9
|
+
if (!context) {
|
10
|
+
throw new Error('useReferenceConfig must be used within ReferenceConfigProvider');
|
11
|
+
}
|
12
|
+
return context.config;
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=ReferenceConfigContext.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ReferenceConfigContext.js","sourceRoot":"","sources":["../../../src/template/contexts/ReferenceConfigContext.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAcjD,MAAM,sBAAsB,GAAG,aAAa,CAA0C,SAAS,CAAC,CAAA;AAOhG,MAAM,CAAC,MAAM,uBAAuB,GAA2C,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE;IACtG,OAAO,CACL,KAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,YAC/C,QAAQ,GACuB,CACnC,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,OAAO,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAA;IAClD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAA;IACnF,CAAC;IACD,OAAO,OAAO,CAAC,MAAM,CAAA;AACvB,CAAC,CAAA"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { React } from '#dep/react/index';
|
2
|
+
export type ViewMode = 'compact' | 'expanded';
|
3
|
+
interface ViewModeContextValue {
|
4
|
+
viewMode: ViewMode;
|
5
|
+
setViewMode: (mode: ViewMode) => void;
|
6
|
+
}
|
7
|
+
interface ViewModeProviderProps {
|
8
|
+
children: React.ReactNode;
|
9
|
+
defaultMode?: ViewMode;
|
10
|
+
}
|
11
|
+
export declare const ViewModeProvider: React.FC<ViewModeProviderProps>;
|
12
|
+
export declare const useViewMode: () => ViewModeContextValue;
|
13
|
+
export {};
|
14
|
+
//# sourceMappingURL=ViewModeContext.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ViewModeContext.d.ts","sourceRoot":"","sources":["../../../src/template/contexts/ViewModeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAG7C,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAA;AAE7C,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,WAAW,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;CACtC;AAMD,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,WAAW,CAAC,EAAE,QAAQ,CAAA;CACvB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoC5D,CAAA;AAED,eAAO,MAAM,WAAW,4BAMvB,CAAA"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { createContext, useContext, useEffect, useState } from 'react';
|
3
|
+
const ViewModeContext = createContext(undefined);
|
4
|
+
const STORAGE_KEY = 'polen-view-mode';
|
5
|
+
export const ViewModeProvider = ({ children, defaultMode = 'expanded' }) => {
|
6
|
+
const [viewMode, setViewModeState] = useState(defaultMode);
|
7
|
+
// Load from localStorage after mount to avoid hydration mismatch
|
8
|
+
useEffect(() => {
|
9
|
+
const saved = localStorage.getItem(STORAGE_KEY);
|
10
|
+
if (saved === 'compact' || saved === 'expanded') {
|
11
|
+
setViewModeState(saved);
|
12
|
+
}
|
13
|
+
}, []);
|
14
|
+
const setViewMode = (mode) => {
|
15
|
+
setViewModeState(mode);
|
16
|
+
// Save to localStorage
|
17
|
+
if (typeof window !== 'undefined') {
|
18
|
+
localStorage.setItem(STORAGE_KEY, mode);
|
19
|
+
}
|
20
|
+
};
|
21
|
+
useEffect(() => {
|
22
|
+
// Sync with localStorage changes from other tabs
|
23
|
+
const handleStorageChange = (e) => {
|
24
|
+
if (e.key === STORAGE_KEY && (e.newValue === 'compact' || e.newValue === 'expanded')) {
|
25
|
+
setViewModeState(e.newValue);
|
26
|
+
}
|
27
|
+
};
|
28
|
+
window.addEventListener('storage', handleStorageChange);
|
29
|
+
return () => window.removeEventListener('storage', handleStorageChange);
|
30
|
+
}, []);
|
31
|
+
return (_jsx(ViewModeContext.Provider, { value: { viewMode, setViewMode }, children: children }));
|
32
|
+
};
|
33
|
+
export const useViewMode = () => {
|
34
|
+
const context = useContext(ViewModeContext);
|
35
|
+
if (!context) {
|
36
|
+
throw new Error('useViewMode must be used within ViewModeProvider');
|
37
|
+
}
|
38
|
+
return context;
|
39
|
+
};
|
40
|
+
//# sourceMappingURL=ViewModeContext.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ViewModeContext.js","sourceRoot":"","sources":["../../../src/template/contexts/ViewModeContext.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAStE,MAAM,eAAe,GAAG,aAAa,CAAmC,SAAS,CAAC,CAAA;AAElF,MAAM,WAAW,GAAG,iBAAiB,CAAA;AAOrC,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAAE,QAAQ,EAAE,WAAW,GAAG,UAAU,EAAE,EAAE,EAAE;IAC1G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MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;IACrE,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
|
@@ -6,6 +6,9 @@ import { HashSet } from 'effect';
|
|
6
6
|
*/
|
7
7
|
export declare const useExamples: () => {
|
8
8
|
readonly examples: readonly {
|
9
|
+
readonly description?: {
|
10
|
+
readonly path: string;
|
11
|
+
} | undefined;
|
9
12
|
readonly path: string;
|
10
13
|
readonly name: string;
|
11
14
|
readonly document: {
|
@@ -13,7 +16,7 @@ export declare const useExamples: () => {
|
|
13
16
|
readonly document: string;
|
14
17
|
} | {
|
15
18
|
readonly _tag: "DocumentVersioned";
|
16
|
-
readonly versionDocuments: import("effect/HashMap").HashMap<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver | HashSet.HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
19
|
+
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 | HashSet.HashSet<Version.CustomVersion.Custom | Version.DateVersion.Date | Version.IntegerVersion.Integer | Version.SemverVersion.Semver>, string>;
|
17
20
|
};
|
18
21
|
}[];
|
19
22
|
readonly index?: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-examples.d.ts","sourceRoot":"","sources":["../../../src/template/hooks/use-examples.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAA;AAE9F,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAIhC;;GAEG;AACH,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"use-examples.d.ts","sourceRoot":"","sources":["../../../src/template/hooks/use-examples.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAA;AAE9F,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAIhC;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAEvB,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAU,MAAM,EAChB,UAAS,OAAO,CAAC,OAAO,GAAG,IAAW,KACrC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAalC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,QAAO,OAEjC,CAAA"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* Generic hook for calculating the maximum character width of names in a list.
|
3
|
+
* Used to align columns in lists like fields, arguments, etc.
|
4
|
+
*
|
5
|
+
* @param items - Array of items to measure
|
6
|
+
* @param getName - Function to extract the name from each item
|
7
|
+
* @returns Maximum character width across all names
|
8
|
+
*/
|
9
|
+
export declare const useAlignedColumns: <T>(items: T[], getName: (item: T) => string) => number;
|
10
|
+
//# sourceMappingURL=useAlignedColumns.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useAlignedColumns.d.ts","sourceRoot":"","sources":["../../../src/template/hooks/useAlignedColumns.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,EACjC,OAAO,CAAC,EAAE,EACV,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,KAC3B,MAKF,CAAA"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { useMemo } from 'react';
|
2
|
+
/**
|
3
|
+
* Generic hook for calculating the maximum character width of names in a list.
|
4
|
+
* Used to align columns in lists like fields, arguments, etc.
|
5
|
+
*
|
6
|
+
* @param items - Array of items to measure
|
7
|
+
* @param getName - Function to extract the name from each item
|
8
|
+
* @returns Maximum character width across all names
|
9
|
+
*/
|
10
|
+
export const useAlignedColumns = (items, getName) => {
|
11
|
+
return useMemo(() => {
|
12
|
+
if (items.length === 0)
|
13
|
+
return 0;
|
14
|
+
return Math.max(...items.map(item => getName(item).length));
|
15
|
+
}, [items]);
|
16
|
+
};
|
17
|
+
//# sourceMappingURL=useAlignedColumns.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useAlignedColumns.js","sourceRoot":"","sources":["../../../src/template/hooks/useAlignedColumns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,KAAU,EACV,OAA4B,EACpB,EAAE;IACV,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,CAAC,CAAA;QAChC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAC7D,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;AACb,CAAC,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Catalog } from '#lib/catalog
|
2
|
-
import { Schema } from '#lib/schema
|
1
|
+
import { Catalog } from '#lib/catalog';
|
2
|
+
import { Schema } from '#lib/schema';
|
3
3
|
export declare const ChangelogSidebar: React.FC<{
|
4
4
|
catalog: Catalog.Catalog;
|
5
5
|
schema: Schema.Schema;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ChangelogSidebar.d.ts","sourceRoot":"","sources":["../../../../src/template/routes/changelog/ChangelogSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"ChangelogSidebar.d.ts","sourceRoot":"","sources":["../../../../src/template/routes/changelog/ChangelogSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AASpC,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAA;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAA;CACtB,CAkEA,CAAA"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import { Catalog } from '#lib/catalog
|
3
|
-
import { Schema } from '#lib/schema
|
4
|
-
import { Swiss } from '#lib/swiss
|
2
|
+
import { Catalog } from '#lib/catalog';
|
3
|
+
import { Schema } from '#lib/schema';
|
4
|
+
import { Swiss } from '#lib/swiss';
|
5
5
|
import { Version } from '#lib/version';
|
6
6
|
import { Box, Text } from '@radix-ui/themes';
|
7
7
|
import { useEffect, useState } from 'react';
|
8
|
-
import { useNavigate
|
8
|
+
import { useNavigate } from 'react-router';
|
9
9
|
import { VersionPicker } from '../../components/VersionPicker.js';
|
10
10
|
import { ChangelogSidebarItem } from './ChangelogSidebarItem.js';
|
11
11
|
export const ChangelogSidebar = ({ catalog, schema }) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ChangelogSidebar.js","sourceRoot":"","sources":["../../../../src/template/routes/changelog/ChangelogSidebar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"ChangelogSidebar.js","sourceRoot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