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
@@ -362,17 +362,16 @@ export declare const TemplateConfig: S.extend<S.SchemaClass<{
|
|
362
362
|
}, never>, S.Struct<{
|
363
363
|
schema: S.extend<S.SchemaClass<{
|
364
364
|
readonly augmentations?: readonly {
|
365
|
-
readonly
|
366
|
-
readonly
|
367
|
-
readonly
|
368
|
-
|
369
|
-
readonly
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
};
|
375
|
-
readonly placement: "before" | "after" | "over";
|
365
|
+
readonly content?: string | undefined;
|
366
|
+
readonly on?: string | undefined;
|
367
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
368
|
+
readonly versions?: {
|
369
|
+
readonly [x: string]: {
|
370
|
+
readonly content?: string | undefined;
|
371
|
+
readonly on?: string | undefined;
|
372
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
373
|
+
};
|
374
|
+
} | undefined;
|
376
375
|
}[] | undefined;
|
377
376
|
readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
|
378
377
|
readonly sources?: {
|
@@ -400,17 +399,16 @@ export declare const TemplateConfig: S.extend<S.SchemaClass<{
|
|
400
399
|
} | undefined;
|
401
400
|
}, {
|
402
401
|
readonly augmentations?: readonly {
|
403
|
-
readonly
|
404
|
-
readonly
|
405
|
-
readonly
|
406
|
-
|
407
|
-
readonly
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
};
|
413
|
-
readonly placement: "before" | "after" | "over";
|
402
|
+
readonly content?: string | undefined;
|
403
|
+
readonly on?: string | undefined;
|
404
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
405
|
+
readonly versions?: {
|
406
|
+
readonly [x: string]: {
|
407
|
+
readonly content?: string | undefined;
|
408
|
+
readonly on?: string | undefined;
|
409
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
410
|
+
};
|
411
|
+
} | undefined;
|
414
412
|
}[] | undefined;
|
415
413
|
readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
|
416
414
|
readonly sources?: {
|
@@ -439,6 +437,15 @@ export declare const TemplateConfig: S.extend<S.SchemaClass<{
|
|
439
437
|
}, never>, S.Struct<{
|
440
438
|
enabled: typeof S.Boolean;
|
441
439
|
}>>;
|
440
|
+
reference: S.Struct<{
|
441
|
+
enabled: typeof S.Boolean;
|
442
|
+
descriptionsView: S.Struct<{
|
443
|
+
defaultMode: S.Literal<["compact", "expanded"]>;
|
444
|
+
showControl: typeof S.Boolean;
|
445
|
+
}>;
|
446
|
+
nullabilityRendering: S.Literal<["questionMark", "bangMark"]>;
|
447
|
+
diagnostics: S.optional<typeof S.Unknown>;
|
448
|
+
}>;
|
442
449
|
examples: S.extend<S.SchemaClass<{
|
443
450
|
readonly display?: "all" | "none" | {
|
444
451
|
readonly include: readonly string[];
|
@@ -899,17 +906,16 @@ export declare const makeTemplateConfig: S.extend<S.SchemaClass<{
|
|
899
906
|
}, never>, S.Struct<{
|
900
907
|
schema: S.extend<S.SchemaClass<{
|
901
908
|
readonly augmentations?: readonly {
|
902
|
-
readonly
|
903
|
-
readonly
|
904
|
-
readonly
|
905
|
-
|
906
|
-
readonly
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
};
|
912
|
-
readonly placement: "before" | "after" | "over";
|
909
|
+
readonly content?: string | undefined;
|
910
|
+
readonly on?: string | undefined;
|
911
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
912
|
+
readonly versions?: {
|
913
|
+
readonly [x: string]: {
|
914
|
+
readonly content?: string | undefined;
|
915
|
+
readonly on?: string | undefined;
|
916
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
917
|
+
};
|
918
|
+
} | undefined;
|
913
919
|
}[] | undefined;
|
914
920
|
readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
|
915
921
|
readonly sources?: {
|
@@ -937,17 +943,16 @@ export declare const makeTemplateConfig: S.extend<S.SchemaClass<{
|
|
937
943
|
} | undefined;
|
938
944
|
}, {
|
939
945
|
readonly augmentations?: readonly {
|
940
|
-
readonly
|
941
|
-
readonly
|
942
|
-
readonly
|
943
|
-
|
944
|
-
readonly
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
};
|
950
|
-
readonly placement: "before" | "after" | "over";
|
946
|
+
readonly content?: string | undefined;
|
947
|
+
readonly on?: string | undefined;
|
948
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
949
|
+
readonly versions?: {
|
950
|
+
readonly [x: string]: {
|
951
|
+
readonly content?: string | undefined;
|
952
|
+
readonly on?: string | undefined;
|
953
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
954
|
+
};
|
955
|
+
} | undefined;
|
951
956
|
}[] | undefined;
|
952
957
|
readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
|
953
958
|
readonly sources?: {
|
@@ -976,6 +981,15 @@ export declare const makeTemplateConfig: S.extend<S.SchemaClass<{
|
|
976
981
|
}, never>, S.Struct<{
|
977
982
|
enabled: typeof S.Boolean;
|
978
983
|
}>>;
|
984
|
+
reference: S.Struct<{
|
985
|
+
enabled: typeof S.Boolean;
|
986
|
+
descriptionsView: S.Struct<{
|
987
|
+
defaultMode: S.Literal<["compact", "expanded"]>;
|
988
|
+
showControl: typeof S.Boolean;
|
989
|
+
}>;
|
990
|
+
nullabilityRendering: S.Literal<["questionMark", "bangMark"]>;
|
991
|
+
diagnostics: S.optional<typeof S.Unknown>;
|
992
|
+
}>;
|
979
993
|
examples: S.extend<S.SchemaClass<{
|
980
994
|
readonly display?: "all" | "none" | {
|
981
995
|
readonly include: readonly string[];
|
@@ -1319,17 +1333,16 @@ export declare const isTemplateConfig: (u: unknown, overrideOptions?: import("ef
|
|
1319
1333
|
};
|
1320
1334
|
readonly schema: {
|
1321
1335
|
readonly augmentations?: readonly {
|
1322
|
-
readonly
|
1323
|
-
readonly
|
1324
|
-
readonly
|
1325
|
-
|
1326
|
-
readonly
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
};
|
1332
|
-
readonly placement: "before" | "after" | "over";
|
1336
|
+
readonly content?: string | undefined;
|
1337
|
+
readonly on?: string | undefined;
|
1338
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
1339
|
+
readonly versions?: {
|
1340
|
+
readonly [x: string]: {
|
1341
|
+
readonly content?: string | undefined;
|
1342
|
+
readonly on?: string | undefined;
|
1343
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
1344
|
+
};
|
1345
|
+
} | undefined;
|
1333
1346
|
}[] | undefined;
|
1334
1347
|
readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
|
1335
1348
|
readonly sources?: {
|
@@ -1358,6 +1371,15 @@ export declare const isTemplateConfig: (u: unknown, overrideOptions?: import("ef
|
|
1358
1371
|
} & {
|
1359
1372
|
readonly enabled: boolean;
|
1360
1373
|
};
|
1374
|
+
readonly reference: {
|
1375
|
+
readonly enabled: boolean;
|
1376
|
+
readonly diagnostics?: unknown;
|
1377
|
+
readonly descriptionsView: {
|
1378
|
+
readonly defaultMode: "compact" | "expanded";
|
1379
|
+
readonly showControl: boolean;
|
1380
|
+
};
|
1381
|
+
readonly nullabilityRendering: "questionMark" | "bangMark";
|
1382
|
+
};
|
1361
1383
|
};
|
1362
1384
|
export declare const decodeTemplateConfig: (i: {
|
1363
1385
|
readonly build: {
|
@@ -1588,17 +1610,16 @@ export declare const decodeTemplateConfig: (i: {
|
|
1588
1610
|
};
|
1589
1611
|
readonly schema: {
|
1590
1612
|
readonly augmentations?: readonly {
|
1591
|
-
readonly
|
1592
|
-
readonly
|
1593
|
-
readonly
|
1594
|
-
|
1595
|
-
readonly
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
};
|
1601
|
-
readonly placement: "before" | "after" | "over";
|
1613
|
+
readonly content?: string | undefined;
|
1614
|
+
readonly on?: string | undefined;
|
1615
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
1616
|
+
readonly versions?: {
|
1617
|
+
readonly [x: string]: {
|
1618
|
+
readonly content?: string | undefined;
|
1619
|
+
readonly on?: string | undefined;
|
1620
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
1621
|
+
};
|
1622
|
+
} | undefined;
|
1602
1623
|
}[] | undefined;
|
1603
1624
|
readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
|
1604
1625
|
readonly sources?: {
|
@@ -1627,6 +1648,15 @@ export declare const decodeTemplateConfig: (i: {
|
|
1627
1648
|
} & {
|
1628
1649
|
readonly enabled: boolean;
|
1629
1650
|
};
|
1651
|
+
readonly reference: {
|
1652
|
+
readonly enabled: boolean;
|
1653
|
+
readonly descriptionsView: {
|
1654
|
+
readonly defaultMode: "compact" | "expanded";
|
1655
|
+
readonly showControl: boolean;
|
1656
|
+
};
|
1657
|
+
readonly nullabilityRendering: "questionMark" | "bangMark";
|
1658
|
+
readonly diagnostics?: unknown;
|
1659
|
+
};
|
1630
1660
|
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
|
1631
1661
|
readonly build: {
|
1632
1662
|
readonly architecture: "ssr" | "ssg" | "spa";
|
@@ -1862,17 +1892,16 @@ export declare const decodeTemplateConfig: (i: {
|
|
1862
1892
|
};
|
1863
1893
|
readonly schema: {
|
1864
1894
|
readonly augmentations?: readonly {
|
1865
|
-
readonly
|
1866
|
-
readonly
|
1867
|
-
readonly
|
1868
|
-
|
1869
|
-
readonly
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
};
|
1875
|
-
readonly placement: "before" | "after" | "over";
|
1895
|
+
readonly content?: string | undefined;
|
1896
|
+
readonly on?: string | undefined;
|
1897
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
1898
|
+
readonly versions?: {
|
1899
|
+
readonly [x: string]: {
|
1900
|
+
readonly content?: string | undefined;
|
1901
|
+
readonly on?: string | undefined;
|
1902
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
1903
|
+
};
|
1904
|
+
} | undefined;
|
1876
1905
|
}[] | undefined;
|
1877
1906
|
readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
|
1878
1907
|
readonly sources?: {
|
@@ -1901,6 +1930,15 @@ export declare const decodeTemplateConfig: (i: {
|
|
1901
1930
|
} & {
|
1902
1931
|
readonly enabled: boolean;
|
1903
1932
|
};
|
1933
|
+
readonly reference: {
|
1934
|
+
readonly enabled: boolean;
|
1935
|
+
readonly diagnostics?: unknown;
|
1936
|
+
readonly descriptionsView: {
|
1937
|
+
readonly defaultMode: "compact" | "expanded";
|
1938
|
+
readonly showControl: boolean;
|
1939
|
+
};
|
1940
|
+
readonly nullabilityRendering: "questionMark" | "bangMark";
|
1941
|
+
};
|
1904
1942
|
}, import("effect/ParseResult").ParseError, never>;
|
1905
1943
|
export declare const encodeTemplateConfig: (a: {
|
1906
1944
|
readonly build: {
|
@@ -2137,17 +2175,16 @@ export declare const encodeTemplateConfig: (a: {
|
|
2137
2175
|
};
|
2138
2176
|
readonly schema: {
|
2139
2177
|
readonly augmentations?: readonly {
|
2140
|
-
readonly
|
2141
|
-
readonly
|
2142
|
-
readonly
|
2143
|
-
|
2144
|
-
readonly
|
2145
|
-
|
2146
|
-
|
2147
|
-
|
2148
|
-
|
2149
|
-
};
|
2150
|
-
readonly placement: "before" | "after" | "over";
|
2178
|
+
readonly content?: string | undefined;
|
2179
|
+
readonly on?: string | undefined;
|
2180
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
2181
|
+
readonly versions?: {
|
2182
|
+
readonly [x: string]: {
|
2183
|
+
readonly content?: string | undefined;
|
2184
|
+
readonly on?: string | undefined;
|
2185
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
2186
|
+
};
|
2187
|
+
} | undefined;
|
2151
2188
|
}[] | undefined;
|
2152
2189
|
readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
|
2153
2190
|
readonly sources?: {
|
@@ -2176,6 +2213,15 @@ export declare const encodeTemplateConfig: (a: {
|
|
2176
2213
|
} & {
|
2177
2214
|
readonly enabled: boolean;
|
2178
2215
|
};
|
2216
|
+
readonly reference: {
|
2217
|
+
readonly enabled: boolean;
|
2218
|
+
readonly diagnostics?: unknown;
|
2219
|
+
readonly descriptionsView: {
|
2220
|
+
readonly defaultMode: "compact" | "expanded";
|
2221
|
+
readonly showControl: boolean;
|
2222
|
+
};
|
2223
|
+
readonly nullabilityRendering: "questionMark" | "bangMark";
|
2224
|
+
};
|
2179
2225
|
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
|
2180
2226
|
readonly build: {
|
2181
2227
|
readonly architecture: "ssr" | "ssg" | "spa";
|
@@ -2405,17 +2451,16 @@ export declare const encodeTemplateConfig: (a: {
|
|
2405
2451
|
};
|
2406
2452
|
readonly schema: {
|
2407
2453
|
readonly augmentations?: readonly {
|
2408
|
-
readonly
|
2409
|
-
readonly
|
2410
|
-
readonly
|
2411
|
-
|
2412
|
-
readonly
|
2413
|
-
|
2414
|
-
|
2415
|
-
|
2416
|
-
|
2417
|
-
};
|
2418
|
-
readonly placement: "before" | "after" | "over";
|
2454
|
+
readonly content?: string | undefined;
|
2455
|
+
readonly on?: string | undefined;
|
2456
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
2457
|
+
readonly versions?: {
|
2458
|
+
readonly [x: string]: {
|
2459
|
+
readonly content?: string | undefined;
|
2460
|
+
readonly on?: string | undefined;
|
2461
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
2462
|
+
};
|
2463
|
+
} | undefined;
|
2419
2464
|
}[] | undefined;
|
2420
2465
|
readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
|
2421
2466
|
readonly sources?: {
|
@@ -2444,6 +2489,15 @@ export declare const encodeTemplateConfig: (a: {
|
|
2444
2489
|
} & {
|
2445
2490
|
readonly enabled: boolean;
|
2446
2491
|
};
|
2492
|
+
readonly reference: {
|
2493
|
+
readonly enabled: boolean;
|
2494
|
+
readonly descriptionsView: {
|
2495
|
+
readonly defaultMode: "compact" | "expanded";
|
2496
|
+
readonly showControl: boolean;
|
2497
|
+
};
|
2498
|
+
readonly nullabilityRendering: "questionMark" | "bangMark";
|
2499
|
+
readonly diagnostics?: unknown;
|
2500
|
+
};
|
2447
2501
|
}, import("effect/ParseResult").ParseError, never>;
|
2448
2502
|
export declare const encodeSyncTemplateConfig: (a: {
|
2449
2503
|
readonly build: {
|
@@ -2680,17 +2734,16 @@ export declare const encodeSyncTemplateConfig: (a: {
|
|
2680
2734
|
};
|
2681
2735
|
readonly schema: {
|
2682
2736
|
readonly augmentations?: readonly {
|
2683
|
-
readonly
|
2684
|
-
readonly
|
2685
|
-
readonly
|
2686
|
-
|
2687
|
-
readonly
|
2688
|
-
|
2689
|
-
|
2690
|
-
|
2691
|
-
|
2692
|
-
};
|
2693
|
-
readonly placement: "before" | "after" | "over";
|
2737
|
+
readonly content?: string | undefined;
|
2738
|
+
readonly on?: string | undefined;
|
2739
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
2740
|
+
readonly versions?: {
|
2741
|
+
readonly [x: string]: {
|
2742
|
+
readonly content?: string | undefined;
|
2743
|
+
readonly on?: string | undefined;
|
2744
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
2745
|
+
};
|
2746
|
+
} | undefined;
|
2694
2747
|
}[] | undefined;
|
2695
2748
|
readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
|
2696
2749
|
readonly sources?: {
|
@@ -2719,6 +2772,15 @@ export declare const encodeSyncTemplateConfig: (a: {
|
|
2719
2772
|
} & {
|
2720
2773
|
readonly enabled: boolean;
|
2721
2774
|
};
|
2775
|
+
readonly reference: {
|
2776
|
+
readonly enabled: boolean;
|
2777
|
+
readonly diagnostics?: unknown;
|
2778
|
+
readonly descriptionsView: {
|
2779
|
+
readonly defaultMode: "compact" | "expanded";
|
2780
|
+
readonly showControl: boolean;
|
2781
|
+
};
|
2782
|
+
readonly nullabilityRendering: "questionMark" | "bangMark";
|
2783
|
+
};
|
2722
2784
|
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
|
2723
2785
|
readonly build: {
|
2724
2786
|
readonly architecture: "ssr" | "ssg" | "spa";
|
@@ -2948,17 +3010,16 @@ export declare const encodeSyncTemplateConfig: (a: {
|
|
2948
3010
|
};
|
2949
3011
|
readonly schema: {
|
2950
3012
|
readonly augmentations?: readonly {
|
2951
|
-
readonly
|
2952
|
-
readonly
|
2953
|
-
readonly
|
2954
|
-
|
2955
|
-
readonly
|
2956
|
-
|
2957
|
-
|
2958
|
-
|
2959
|
-
|
2960
|
-
};
|
2961
|
-
readonly placement: "before" | "after" | "over";
|
3013
|
+
readonly content?: string | undefined;
|
3014
|
+
readonly on?: string | undefined;
|
3015
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
3016
|
+
readonly versions?: {
|
3017
|
+
readonly [x: string]: {
|
3018
|
+
readonly content?: string | undefined;
|
3019
|
+
readonly on?: string | undefined;
|
3020
|
+
readonly placement?: "before" | "after" | "over" | undefined;
|
3021
|
+
};
|
3022
|
+
} | undefined;
|
2962
3023
|
}[] | undefined;
|
2963
3024
|
readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
|
2964
3025
|
readonly sources?: {
|
@@ -2987,5 +3048,14 @@ export declare const encodeSyncTemplateConfig: (a: {
|
|
2987
3048
|
} & {
|
2988
3049
|
readonly enabled: boolean;
|
2989
3050
|
};
|
3051
|
+
readonly reference: {
|
3052
|
+
readonly enabled: boolean;
|
3053
|
+
readonly descriptionsView: {
|
3054
|
+
readonly defaultMode: "compact" | "expanded";
|
3055
|
+
readonly showControl: boolean;
|
3056
|
+
};
|
3057
|
+
readonly nullabilityRendering: "questionMark" | "bangMark";
|
3058
|
+
readonly diagnostics?: unknown;
|
3059
|
+
};
|
2990
3060
|
};
|
2991
3061
|
//# sourceMappingURL=template.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../src/api/config-template/template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../src/api/config-template/template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAIjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAEhD,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,EAAE,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+B,CAAA"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ExamplesConfigObject } from '#api/examples/config';
|
2
|
+
import { ReferenceConfigObject } from '#api/reference/config';
|
2
3
|
import { ConfigSchema } from '#api/schema/config-schema';
|
3
4
|
import { S } from '#lib/kit-temp/effect';
|
4
5
|
import { Fn, Obj } from '@wollybeard/kit';
|
@@ -10,6 +11,13 @@ export const resolve = (config, data) => {
|
|
10
11
|
...config.schema,
|
11
12
|
enabled: Boolean(config.schema.enabled ?? data.schemas),
|
12
13
|
},
|
14
|
+
reference: {
|
15
|
+
...config.reference,
|
16
|
+
// Reference is enabled if explicitly enabled OR if schemas exist (unless explicitly disabled)
|
17
|
+
enabled: Boolean(config.reference.enabled ?? data.schemas),
|
18
|
+
descriptionsView: config.reference.descriptionsView,
|
19
|
+
nullabilityRendering: config.reference.nullabilityRendering,
|
20
|
+
},
|
13
21
|
examples: {
|
14
22
|
...config.examples,
|
15
23
|
enabled: Boolean(config.examples.enabled ?? (data.examples && data.examples.examples.length > 0)),
|
@@ -24,10 +32,19 @@ export const resolve = (config, data) => {
|
|
24
32
|
* This is the configuration that templates receive, where optional fields
|
25
33
|
* that control feature enablement have been resolved to concrete values.
|
26
34
|
*/
|
27
|
-
export const TemplateConfig = S.extend(Config.pipe(S.omit('_input', 'schema', 'examples')), S.Struct({
|
35
|
+
export const TemplateConfig = S.extend(Config.pipe(S.omit('_input', 'schema', 'reference', 'examples')), S.Struct({
|
28
36
|
schema: S.extend(ConfigSchema.pipe(S.omit('enabled')), S.Struct({
|
29
37
|
enabled: S.Boolean,
|
30
38
|
})),
|
39
|
+
reference: S.Struct({
|
40
|
+
enabled: S.Boolean,
|
41
|
+
descriptionsView: S.Struct({
|
42
|
+
defaultMode: S.Literal('compact', 'expanded'),
|
43
|
+
showControl: S.Boolean,
|
44
|
+
}),
|
45
|
+
nullabilityRendering: S.Literal('questionMark', 'bangMark'),
|
46
|
+
diagnostics: S.optional(S.Unknown), // From ReferenceConfigObject
|
47
|
+
}),
|
31
48
|
examples: S.extend(ExamplesConfigObject.pipe(S.omit('enabled')), S.Struct({
|
32
49
|
enabled: S.Boolean,
|
33
50
|
})),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/api/config-template/template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAc,EAAE,IAGvC,EAAkB,EAAE;IACnB,OAAO;QACL,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC;QAC/B,MAAM,EAAE;YACN,GAAG,MAAM,CAAC,MAAM;YAChB,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,IAAI,IAAI,CAAC,OAA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C,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,6BAA6B;KAClE,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAChB,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAC5C,CAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC,CAAC,OAAO;KACnB,CAAC,CACH;CACF,CAAC,CACH,CAAC,WAAW,CAAC;IACZ,UAAU,EAAE,gBAAgB;IAC5B,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EAAE,yFAAyF;CACvG,CAAC,CAAA;AAIF,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAA;AAE7D,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAA;AAEpD,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;AAC5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;AAC5D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA"}
|
@@ -3,7 +3,6 @@ export * from './duplicate-content.js';
|
|
3
3
|
export * from './invalid-filename.js';
|
4
4
|
export * from './missing-versions.js';
|
5
5
|
export * from './unknown-version.js';
|
6
|
-
export * from './unused-default.js';
|
7
6
|
export * from './validation-error.js';
|
8
7
|
export { validateExamples } from './validator.js';
|
9
8
|
export declare const Diagnostic: S.Union<[S.Struct<{
|
@@ -18,28 +17,6 @@ export declare const Diagnostic: S.Union<[S.Struct<{
|
|
18
17
|
readonly info: "info";
|
19
18
|
}>;
|
20
19
|
message: typeof S.String;
|
21
|
-
}, "_tag" | "name" | "source" | "severity"> & {
|
22
|
-
name: S.Literal<["unused-default"]>;
|
23
|
-
source: S.Literal<["examples-scanner"]>;
|
24
|
-
severity: S.Literal<["warning"]>;
|
25
|
-
} & {
|
26
|
-
example: S.Struct<{
|
27
|
-
name: typeof S.String;
|
28
|
-
path: typeof S.String;
|
29
|
-
}>;
|
30
|
-
versions: S.Array$<typeof S.String>;
|
31
|
-
}>, S.Struct<{
|
32
|
-
_tag: S.tag<"Diagnostic">;
|
33
|
-
} & Omit<{
|
34
|
-
_tag: S.Literal<["Diagnostic"]>;
|
35
|
-
source: typeof S.String;
|
36
|
-
name: typeof S.String;
|
37
|
-
severity: S.Enums<{
|
38
|
-
readonly error: "error";
|
39
|
-
readonly warning: "warning";
|
40
|
-
readonly info: "info";
|
41
|
-
}>;
|
42
|
-
message: typeof S.String;
|
43
20
|
}, "_tag" | "name" | "source" | "severity"> & {
|
44
21
|
name: S.Literal<["duplicate-content"]>;
|
45
22
|
source: S.Literal<["examples-scanner"]>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"diagnostic.d.ts","sourceRoot":"","sources":["../../../../src/api/examples/diagnostic/diagnostic.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"diagnostic.d.ts","sourceRoot":"","sources":["../../../../src/api/examples/diagnostic/diagnostic.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAGxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEjD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASrB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA"}
|
@@ -2,7 +2,6 @@ import { DiagnosticDuplicateContent } from '#api/examples/diagnostic/duplicate-c
|
|
2
2
|
import { DiagnosticInvalidFilename } from '#api/examples/diagnostic/invalid-filename';
|
3
3
|
import { DiagnosticMissingVersions } from '#api/examples/diagnostic/missing-versions';
|
4
4
|
import { DiagnosticUnknownVersion } from '#api/examples/diagnostic/unknown-version';
|
5
|
-
import { DiagnosticUnusedDefault } from '#api/examples/diagnostic/unused-default';
|
6
5
|
import { DiagnosticValidationError } from '#api/examples/diagnostic/validation-error';
|
7
6
|
import { S } from '#lib/kit-temp/effect';
|
8
7
|
// Re-export all individual diagnostics
|
@@ -10,10 +9,9 @@ export * from './duplicate-content.js';
|
|
10
9
|
export * from './invalid-filename.js';
|
11
10
|
export * from './missing-versions.js';
|
12
11
|
export * from './unknown-version.js';
|
13
|
-
export * from './unused-default.js';
|
14
12
|
export * from './validation-error.js';
|
15
13
|
export { validateExamples } from './validator.js';
|
16
|
-
export const Diagnostic = S.Union(
|
14
|
+
export const Diagnostic = S.Union(DiagnosticDuplicateContent, DiagnosticMissingVersions, DiagnosticInvalidFilename, DiagnosticUnknownVersion, DiagnosticValidationError).annotations({
|
17
15
|
identifier: 'ExamplesDiagnostic',
|
18
16
|
description: 'All diagnostics that can be generated for examples',
|
19
17
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"diagnostic.js","sourceRoot":"","sources":["../../../../src/api/examples/diagnostic/diagnostic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAA;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AACnF,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"diagnostic.js","sourceRoot":"","sources":["../../../../src/api/examples/diagnostic/diagnostic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAA;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AACrF,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAExC,uCAAuC;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEjD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAC/B,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,CAC1B,CAAC,WAAW,CAAC;IACZ,UAAU,EAAE,oBAAoB;IAChC,WAAW,EAAE,oDAAoD;CAClE,CAAC,CAAA"}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { Catalog as SchemaCatalog } from '#lib/catalog/$';
|
2
|
+
import { VersionCoverage } from '#lib/version-coverage';
|
3
|
+
import { Version } from '#lib/version/$';
|
2
4
|
import { FileSystem } from '@effect/platform';
|
3
|
-
import { Effect } from 'effect';
|
5
|
+
import { Effect, HashMap } from 'effect';
|
4
6
|
import type { Diagnostic } from './diagnostic/diagnostic.js';
|
5
7
|
import { Catalog } from './schemas/catalog.js';
|
6
8
|
export interface ScanResult {
|
@@ -12,7 +14,31 @@ export interface ScanOptions {
|
|
12
14
|
extensions?: string[];
|
13
15
|
schemaCatalog?: SchemaCatalog.Catalog;
|
14
16
|
}
|
17
|
+
type ParsedExampleFile = {
|
18
|
+
type: 'unversioned';
|
19
|
+
name: string;
|
20
|
+
file: string;
|
21
|
+
} | {
|
22
|
+
type: 'versioned';
|
23
|
+
name: string;
|
24
|
+
version: Version.Version;
|
25
|
+
file: string;
|
26
|
+
};
|
27
|
+
type GroupedExampleFiles = Map<string, {
|
28
|
+
unversioned?: string;
|
29
|
+
versioned: Map<Version.Version, string>;
|
30
|
+
}>;
|
31
|
+
export declare const parseExampleFile: (filename: string) => ParsedExampleFile;
|
32
|
+
/**
|
33
|
+
* Resolve .default files into proper version coverage.
|
34
|
+
* This erases the .default convention and converts it to semantic version sets.
|
35
|
+
*/
|
36
|
+
export declare const resolveDefaultFiles: (grouped: GroupedExampleFiles, schemaVersions: Version.Version[]) => Map<string, {
|
37
|
+
versionDocuments: HashMap.HashMap<VersionCoverage.VersionCoverage, string>;
|
38
|
+
unversioned?: string;
|
39
|
+
}>;
|
15
40
|
export declare const scan: (options: ScanOptions & {
|
16
41
|
files?: string[];
|
17
42
|
}) => Effect.Effect<ScanResult, Error, FileSystem.FileSystem>;
|
43
|
+
export {};
|
18
44
|
//# sourceMappingURL=scanner.d.ts.map
|