polen 0.11.0-next.11 → 0.11.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/api/api.d.ts +1 -0
- package/build/api/api.d.ts.map +1 -1
- package/build/api/api.js +1 -0
- package/build/api/api.js.map +1 -1
- package/build/api/cache/$$.d.ts +2 -0
- package/build/api/cache/$$.d.ts.map +1 -0
- package/build/api/cache/$$.js +2 -0
- package/build/api/cache/$$.js.map +1 -0
- package/build/api/cache/$.d.ts +2 -0
- package/build/api/cache/$.d.ts.map +1 -0
- package/build/api/cache/$.js +2 -0
- package/build/api/cache/$.js.map +1 -0
- package/build/api/cache/cache.d.ts +40 -0
- package/build/api/cache/cache.d.ts.map +1 -0
- package/build/api/cache/cache.js +158 -0
- package/build/api/cache/cache.js.map +1 -0
- package/build/api/content/navbar.d.ts +1 -0
- package/build/api/content/navbar.d.ts.map +1 -1
- package/build/api/content/navbar.js +1 -0
- package/build/api/content/navbar.js.map +1 -1
- package/build/api/content/page.d.ts +1 -1
- package/build/api/content/page.d.ts.map +1 -1
- package/build/api/content/scan.d.ts +1 -1
- package/build/api/content/scan.d.ts.map +1 -1
- package/build/api/content/scan.js +1 -1
- package/build/api/content/scan.js.map +1 -1
- package/build/api/content/sidebar.js +1 -1
- package/build/api/content/sidebar.js.map +1 -1
- package/build/api/iso/schema/$$.d.ts +1 -1
- package/build/api/iso/schema/$$.d.ts.map +1 -1
- package/build/api/iso/schema/$$.js +1 -0
- package/build/api/iso/schema/$$.js.map +1 -1
- package/build/api/iso/schema/routing.d.ts +34 -0
- package/build/api/iso/schema/routing.d.ts.map +1 -1
- package/build/api/iso/schema/routing.js +58 -0
- package/build/api/iso/schema/routing.js.map +1 -1
- package/build/api/iso/schema/validation.d.ts +32 -0
- package/build/api/iso/schema/validation.d.ts.map +1 -0
- package/build/api/iso/schema/validation.js +101 -0
- package/build/api/iso/schema/validation.js.map +1 -0
- package/build/api/schema/data-sources/introspection/introspection.d.ts +4 -3
- package/build/api/schema/data-sources/introspection/introspection.d.ts.map +1 -1
- package/build/api/schema/data-sources/introspection/introspection.js +6 -5
- package/build/api/schema/data-sources/introspection/introspection.js.map +1 -1
- package/build/api/schema/data-sources/memory/memory.d.ts +2 -2
- package/build/api/schema/data-sources/memory/memory.d.ts.map +1 -1
- package/build/api/schema/data-sources/memory/memory.js +24 -12
- package/build/api/schema/data-sources/memory/memory.js.map +1 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts +2 -2
- package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts.map +1 -1
- package/build/api/schema/data-sources/schema-directory/schema-directory.js +24 -12
- package/build/api/schema/data-sources/schema-directory/schema-directory.js.map +1 -1
- package/build/api/schema/data-sources/schema-file/schema-file.d.ts +3 -3
- package/build/api/schema/data-sources/schema-file/schema-file.d.ts.map +1 -1
- package/build/api/schema/data-sources/schema-file/schema-file.js +5 -4
- package/build/api/schema/data-sources/schema-file/schema-file.js.map +1 -1
- package/build/api/schema/read.d.ts +4 -4
- package/build/api/schema/read.d.ts.map +1 -1
- package/build/api/schema/read.js +1 -1
- package/build/api/schema/read.js.map +1 -1
- package/build/api/schema/schema.d.ts +0 -10
- package/build/api/schema/schema.d.ts.map +1 -1
- package/build/api/schema/schema.js.map +1 -1
- package/build/api/schema-augmentation/augmentations/description.d.ts +1 -1
- package/build/api/schema-augmentation/augmentations/description.d.ts.map +1 -1
- package/build/api/schema-augmentation/schema-augmentation.d.ts +1 -1
- package/build/api/schema-augmentation/schema-augmentation.d.ts.map +1 -1
- package/build/api/schema-augmentation/target.d.ts +1 -1
- package/build/api/schema-augmentation/target.d.ts.map +1 -1
- package/build/api/schema-augmentation/target.js +1 -1
- package/build/api/schema-augmentation/target.js.map +1 -1
- package/build/api/schema-source/schema-source.d.ts +9 -5
- package/build/api/schema-source/schema-source.d.ts.map +1 -1
- package/build/api/schema-source/schema-source.js +37 -24
- package/build/api/schema-source/schema-source.js.map +1 -1
- package/build/api/vite/plugins/build.js +1 -1
- package/build/api/vite/plugins/build.js.map +1 -1
- package/build/api/vite/plugins/core.d.ts +1 -1
- package/build/api/vite/plugins/core.d.ts.map +1 -1
- package/build/api/vite/plugins/core.js +20 -9
- package/build/api/vite/plugins/core.js.map +1 -1
- package/build/api/vite/plugins/pages.js +1 -1
- package/build/api/vite/plugins/pages.js.map +1 -1
- package/build/api/vite/plugins/schema-assets.d.ts +1 -1
- package/build/api/vite/plugins/schema-assets.d.ts.map +1 -1
- package/build/api/vite/plugins/schema-assets.js +14 -5
- package/build/api/vite/plugins/schema-assets.js.map +1 -1
- package/build/api/vite/vi.d.ts +1 -1
- package/build/api/vite/vi.d.ts.map +1 -1
- package/build/api/vite/vi.js +1 -1
- package/build/api/vite/vi.js.map +1 -1
- package/build/cli/commands/cache/$default.d.ts +3 -0
- package/build/cli/commands/cache/$default.d.ts.map +1 -0
- package/build/cli/commands/cache/$default.js +10 -0
- package/build/cli/commands/cache/$default.js.map +1 -0
- package/build/cli/commands/cache/delete.d.ts +2 -0
- package/build/cli/commands/cache/delete.d.ts.map +1 -0
- package/build/cli/commands/cache/delete.js +22 -0
- package/build/cli/commands/cache/delete.js.map +1 -0
- package/build/cli/commands/cache/show.d.ts +2 -0
- package/build/cli/commands/cache/show.d.ts.map +1 -0
- package/build/cli/commands/cache/show.js +86 -0
- package/build/cli/commands/cache/show.js.map +1 -0
- package/build/cli/commands/cache.d.ts +3 -0
- package/build/cli/commands/cache.d.ts.map +1 -0
- package/build/cli/commands/cache.js +7 -0
- package/build/cli/commands/cache.js.map +1 -0
- package/build/cli/commands/config.js +2 -0
- package/build/cli/commands/config.js.map +1 -1
- package/build/cli/commands/open.js +2 -2
- package/build/cli/commands/open.js.map +1 -1
- package/build/cli/commands/static.js +2 -0
- package/build/cli/commands/static.js.map +1 -1
- package/build/lib/apple-touch-icon/{index.js → $.d.ts} +1 -1
- package/build/lib/apple-touch-icon/$.d.ts.map +1 -0
- package/build/lib/apple-touch-icon/{index.d.ts → $.js} +1 -1
- package/build/lib/apple-touch-icon/$.js.map +1 -0
- package/build/lib/errors/{errors.js → $$.d.ts} +1 -1
- package/build/lib/errors/$$.d.ts.map +1 -0
- package/build/lib/errors/{errors.d.ts → $$.js} +1 -1
- package/build/lib/errors/$$.js.map +1 -0
- package/build/lib/errors/$.d.ts +2 -0
- package/build/lib/errors/$.d.ts.map +1 -0
- package/build/lib/errors/$.js +2 -0
- package/build/lib/errors/$.js.map +1 -0
- package/build/lib/extensible-data/{index.js → $.d.ts} +1 -1
- package/build/lib/extensible-data/$.d.ts.map +1 -0
- package/build/lib/extensible-data/{index.d.ts → $.js} +1 -1
- package/build/lib/extensible-data/$.js.map +1 -0
- package/build/lib/favicon/{index.js → $.d.ts} +1 -1
- package/build/lib/favicon/$.d.ts.map +1 -0
- package/build/lib/favicon/{index.d.ts → $.js} +1 -1
- package/build/lib/favicon/$.js.map +1 -0
- package/build/lib/file-router/{file-router.js → $$.d.ts} +1 -1
- package/build/lib/file-router/$$.d.ts.map +1 -0
- package/build/lib/file-router/{file-router.d.ts → $$.js} +1 -1
- package/build/lib/file-router/$$.js.map +1 -0
- package/build/lib/file-router/$.d.ts +2 -0
- package/build/lib/file-router/$.d.ts.map +1 -0
- package/build/lib/file-router/$.js +2 -0
- package/build/lib/file-router/$.js.map +1 -0
- package/build/lib/grafaid/{grafaid.js → $$.d.ts} +1 -1
- package/build/lib/grafaid/$$.d.ts.map +1 -0
- package/build/lib/grafaid/{grafaid.d.ts → $$.js} +1 -1
- package/build/lib/grafaid/$$.js.map +1 -0
- package/build/lib/grafaid/$.d.ts +2 -0
- package/build/lib/grafaid/$.d.ts.map +1 -0
- package/build/lib/grafaid/$.js +2 -0
- package/build/lib/grafaid/$.js.map +1 -0
- package/build/lib/grafaid/schema/type.d.ts.map +1 -1
- package/build/lib/grafaid/schema/type.js.map +1 -1
- package/build/lib/grafaid-old/{index.js → $.d.ts} +1 -1
- package/build/lib/grafaid-old/$.d.ts.map +1 -0
- package/build/lib/grafaid-old/{index.d.ts → $.js} +1 -1
- package/build/lib/grafaid-old/$.js.map +1 -0
- package/build/lib/graphql-change/{graphql-change.d.ts → $$.d.ts} +2 -2
- package/build/lib/graphql-change/$$.d.ts.map +1 -0
- package/build/lib/graphql-change/{graphql-change.js → $$.js} +1 -1
- package/build/lib/graphql-change/$$.js.map +1 -0
- package/build/lib/graphql-change/$.d.ts +2 -0
- package/build/lib/graphql-change/$.d.ts.map +1 -0
- package/build/lib/graphql-change/$.js +2 -0
- package/build/lib/graphql-change/$.js.map +1 -0
- package/build/lib/graphql-change/change-groups.d.ts +5 -1
- package/build/lib/graphql-change/change-groups.d.ts.map +1 -1
- package/build/lib/graphql-change/change-groups.js.map +1 -1
- package/build/lib/graphql-changeset/$$.d.ts +4 -0
- package/build/lib/graphql-changeset/$$.d.ts.map +1 -0
- package/build/lib/graphql-changeset/$$.js +4 -0
- package/build/lib/graphql-changeset/$$.js.map +1 -0
- package/build/lib/graphql-changeset/$.d.ts +2 -0
- package/build/lib/graphql-changeset/$.d.ts.map +1 -0
- package/build/lib/graphql-changeset/$.js +2 -0
- package/build/lib/graphql-changeset/$.js.map +1 -0
- package/build/lib/graphql-changeset/changelog.d.ts +4 -0
- package/build/lib/graphql-changeset/changelog.d.ts.map +1 -0
- package/build/lib/graphql-changeset/changelog.js +2 -0
- package/build/lib/graphql-changeset/changelog.js.map +1 -0
- package/build/lib/graphql-changeset/changeset.d.ts +66 -0
- package/build/lib/graphql-changeset/changeset.d.ts.map +1 -0
- package/build/lib/graphql-changeset/changeset.js +139 -0
- package/build/lib/graphql-changeset/changeset.js.map +1 -0
- package/build/lib/graphql-changeset/versioned-schema.d.ts +31 -0
- package/build/lib/graphql-changeset/versioned-schema.d.ts.map +1 -0
- package/build/lib/graphql-changeset/versioned-schema.js +14 -0
- package/build/lib/graphql-changeset/versioned-schema.js.map +1 -0
- package/build/lib/graphql-path/$$.d.ts +42 -0
- package/build/lib/graphql-path/$$.d.ts.map +1 -0
- package/build/lib/graphql-path/$$.js +42 -0
- package/build/lib/graphql-path/$$.js.map +1 -0
- package/build/lib/graphql-path/$.d.ts +5 -0
- package/build/lib/graphql-path/$.d.ts.map +1 -0
- package/build/lib/graphql-path/$.js +5 -0
- package/build/lib/graphql-path/$.js.map +1 -0
- package/build/lib/graphql-path/constructors.d.ts +57 -0
- package/build/lib/graphql-path/constructors.d.ts.map +1 -0
- package/build/lib/graphql-path/constructors.js +73 -0
- package/build/lib/graphql-path/constructors.js.map +1 -0
- package/build/lib/graphql-path/definition.d.ts +152 -0
- package/build/lib/graphql-path/definition.d.ts.map +1 -0
- package/build/lib/graphql-path/definition.js +192 -0
- package/build/lib/graphql-path/definition.js.map +1 -0
- package/build/lib/graphql-path/query.d.ts +75 -0
- package/build/lib/graphql-path/query.d.ts.map +1 -0
- package/build/lib/graphql-path/query.js +111 -0
- package/build/lib/graphql-path/query.js.map +1 -0
- package/build/lib/graphql-path/types.d.ts +50 -0
- package/build/lib/graphql-path/types.d.ts.map +1 -0
- package/build/lib/graphql-path/types.js +5 -0
- package/build/lib/graphql-path/types.js.map +1 -0
- package/build/lib/graphql-schema-loader/{index.js → $.d.ts} +1 -1
- package/build/lib/graphql-schema-loader/$.d.ts.map +1 -0
- package/build/lib/graphql-schema-loader/{index.d.ts → $.js} +1 -1
- package/build/lib/graphql-schema-loader/$.js.map +1 -0
- package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts +1 -1
- package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts.map +1 -1
- package/build/lib/graphql-schema-loader/graphql-schema-loader.js +1 -1
- package/build/lib/graphql-schema-loader/graphql-schema-loader.js.map +1 -1
- package/build/lib/hono-aid/{index.js → $.d.ts} +1 -1
- package/build/lib/hono-aid/$.d.ts.map +1 -0
- package/build/lib/hono-aid/{index.d.ts → $.js} +1 -1
- package/build/lib/hono-aid/$.js.map +1 -0
- package/build/lib/html-utils/$$.d.ts +3 -0
- package/build/lib/html-utils/$$.d.ts.map +1 -0
- package/build/lib/html-utils/$$.js +3 -0
- package/build/lib/html-utils/$$.js.map +1 -0
- package/build/lib/html-utils/$.d.ts +2 -0
- package/build/lib/html-utils/$.d.ts.map +1 -0
- package/build/lib/html-utils/$.js +2 -0
- package/build/lib/html-utils/$.js.map +1 -0
- package/build/lib/kit-temp.d.ts +1 -0
- package/build/lib/kit-temp.d.ts.map +1 -1
- package/build/lib/react-router-aid/{react-router-aid.d.ts → $$.d.ts} +1 -1
- package/build/lib/react-router-aid/$$.d.ts.map +1 -0
- package/build/lib/react-router-aid/{react-router-aid.js → $$.js} +1 -1
- package/build/lib/react-router-aid/$$.js.map +1 -0
- package/build/lib/react-router-aid/$.d.ts +2 -0
- package/build/lib/react-router-aid/$.d.ts.map +1 -0
- package/build/lib/react-router-aid/$.js +2 -0
- package/build/lib/react-router-aid/$.js.map +1 -0
- package/build/lib/react-router-loader/{react-router-loader.d.ts → $$.d.ts} +1 -1
- package/build/lib/react-router-loader/$$.d.ts.map +1 -0
- package/build/lib/react-router-loader/{react-router-loader.js → $$.js} +1 -1
- package/build/lib/react-router-loader/$$.js.map +1 -0
- package/build/lib/react-router-loader/$.d.ts +2 -0
- package/build/lib/react-router-loader/$.d.ts.map +1 -0
- package/build/lib/react-router-loader/$.js +2 -0
- package/build/lib/react-router-loader/$.js.map +1 -0
- package/build/lib/schema-lifecycle/$$.d.ts +6 -0
- package/build/lib/schema-lifecycle/$$.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/$$.js +6 -0
- package/build/lib/schema-lifecycle/$$.js.map +1 -0
- package/build/lib/schema-lifecycle/$.d.ts +2 -0
- package/build/lib/schema-lifecycle/$.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/$.js +2 -0
- package/build/lib/schema-lifecycle/$.js.map +1 -0
- package/build/lib/schema-lifecycle/FieldLifecycle.d.ts +17 -0
- package/build/lib/schema-lifecycle/FieldLifecycle.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/FieldLifecycle.js +2 -0
- package/build/lib/schema-lifecycle/FieldLifecycle.js.map +1 -0
- package/build/lib/schema-lifecycle/LifecycleEvent.d.ts +25 -0
- package/build/lib/schema-lifecycle/LifecycleEvent.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/LifecycleEvent.js +2 -0
- package/build/lib/schema-lifecycle/LifecycleEvent.js.map +1 -0
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.d.ts +59 -0
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.js +24 -0
- package/build/lib/schema-lifecycle/NamedTypeLifecycle.js.map +1 -0
- package/build/lib/schema-lifecycle/SchemaLifecycle.d.ts +25 -0
- package/build/lib/schema-lifecycle/SchemaLifecycle.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/SchemaLifecycle.js +59 -0
- package/build/lib/schema-lifecycle/SchemaLifecycle.js.map +1 -0
- package/build/lib/schema-lifecycle/SchemaLink.d.ts +2 -0
- package/build/lib/schema-lifecycle/SchemaLink.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/SchemaLink.js +38 -0
- package/build/lib/schema-lifecycle/SchemaLink.js.map +1 -0
- package/build/lib/schema-lifecycle/handlers.d.ts +20 -0
- package/build/lib/schema-lifecycle/handlers.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/handlers.js +168 -0
- package/build/lib/schema-lifecycle/handlers.js.map +1 -0
- package/build/lib/schema-lifecycle/utils.d.ts +53 -0
- package/build/lib/schema-lifecycle/utils.d.ts.map +1 -0
- package/build/lib/schema-lifecycle/utils.js +160 -0
- package/build/lib/schema-lifecycle/utils.js.map +1 -0
- package/build/lib/stack-processor/{index.js → $.d.ts} +1 -1
- package/build/lib/stack-processor/$.d.ts.map +1 -0
- package/build/lib/stack-processor/{index.d.ts → $.js} +1 -1
- package/build/lib/stack-processor/$.js.map +1 -0
- package/build/lib/superjson-codec/{exports.js → $$.d.ts} +1 -1
- package/build/lib/superjson-codec/$$.d.ts.map +1 -0
- package/build/lib/superjson-codec/{exports.d.ts → $$.js} +1 -1
- package/build/lib/superjson-codec/$$.js.map +1 -0
- package/build/lib/superjson-codec/$.d.ts +2 -0
- package/build/lib/superjson-codec/$.d.ts.map +1 -0
- package/build/lib/superjson-codec/$.js +2 -0
- package/build/lib/superjson-codec/$.js.map +1 -0
- package/build/lib/superjson-codec/codecs/graphql-schema.d.ts +1 -1
- package/build/lib/superjson-codec/codecs/graphql-schema.d.ts.map +1 -1
- package/build/lib/superjson-codec/codecs/graphql-schema.js +1 -1
- package/build/lib/superjson-codec/codecs/graphql-schema.js.map +1 -1
- package/build/lib/theme/$$.d.ts +2 -0
- package/build/lib/theme/$$.d.ts.map +1 -0
- package/build/lib/theme/$$.js +2 -0
- package/build/lib/theme/$$.js.map +1 -0
- package/build/lib/theme/$.d.ts +1 -1
- package/build/lib/theme/$.d.ts.map +1 -1
- package/build/lib/theme/$.js +1 -1
- package/build/lib/theme/$.js.map +1 -1
- package/build/lib/vite-plugin-config/{vite-plugin-config.d.ts → $$.d.ts} +1 -1
- package/build/lib/vite-plugin-config/$$.d.ts.map +1 -0
- package/build/lib/vite-plugin-config/{vite-plugin-config.js → $$.js} +1 -1
- package/build/lib/vite-plugin-config/$$.js.map +1 -0
- package/build/lib/vite-plugin-config/$.d.ts +2 -0
- package/build/lib/vite-plugin-config/$.d.ts.map +1 -0
- package/build/lib/vite-plugin-config/$.js +2 -0
- package/build/lib/vite-plugin-config/$.js.map +1 -0
- package/build/lib/vite-plugin-json/{index.js → $.d.ts} +1 -1
- package/build/lib/vite-plugin-json/$.d.ts.map +1 -0
- package/build/lib/vite-plugin-json/{index.d.ts → $.js} +1 -1
- package/build/lib/vite-plugin-json/$.js.map +1 -0
- package/build/lib/vite-plugin-mdx/{index.js → $.d.ts} +1 -1
- package/build/lib/vite-plugin-mdx/$.d.ts.map +1 -0
- package/build/lib/vite-plugin-mdx/{index.d.ts → $.js} +1 -1
- package/build/lib/vite-plugin-mdx/$.js.map +1 -0
- package/build/lib/vite-plugin-reactive-data/{index.js → $.d.ts} +1 -1
- package/build/lib/vite-plugin-reactive-data/$.d.ts.map +1 -0
- package/build/lib/vite-plugin-reactive-data/{index.d.ts → $.js} +1 -1
- package/build/lib/vite-plugin-reactive-data/$.js.map +1 -0
- package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.d.ts +1 -1
- package/build/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.d.ts.map +1 -1
- package/build/lib/vite-plugins/$$.d.ts +2 -0
- package/build/lib/vite-plugins/$$.d.ts.map +1 -0
- package/build/lib/vite-plugins/$$.js +2 -0
- package/build/lib/vite-plugins/$$.js.map +1 -0
- package/build/lib/vite-plugins/$.d.ts +5 -0
- package/build/lib/vite-plugins/$.d.ts.map +1 -0
- package/build/lib/vite-plugins/$.js +5 -0
- package/build/lib/vite-plugins/$.js.map +1 -0
- package/build/lib/vite-virtual/{vite-virtual.js → $$.d.ts} +1 -1
- package/build/lib/vite-virtual/$$.d.ts.map +1 -0
- package/build/lib/vite-virtual/{vite-virtual.d.ts → $$.js} +1 -1
- package/build/lib/vite-virtual/$$.js.map +1 -0
- package/build/lib/vite-virtual/$.d.ts +2 -0
- package/build/lib/vite-virtual/$.d.ts.map +1 -0
- package/build/lib/vite-virtual/$.js +2 -0
- package/build/lib/vite-virtual/$.js.map +1 -0
- package/build/lib/vite-virtual/identified-loader.js +1 -1
- package/build/lib/vite-virtual/identified-loader.js.map +1 -1
- package/build/sandbox.js +2 -40
- package/build/sandbox.js.map +1 -1
- package/build/singletons/superjson.js +1 -1
- package/build/singletons/superjson.js.map +1 -1
- package/build/template/components/ArgumentList.d.ts +3 -4
- package/build/template/components/ArgumentList.d.ts.map +1 -1
- package/build/template/components/ArgumentList.js.map +1 -1
- package/build/template/components/ArgumentListAnnotation.js +1 -1
- package/build/template/components/ArgumentListAnnotation.js.map +1 -1
- package/build/template/components/Changelog/ChangeBase.d.ts +1 -1
- package/build/template/components/Changelog/ChangeBase.d.ts.map +1 -1
- package/build/template/components/Changelog/CriticalitySection.d.ts +1 -1
- package/build/template/components/Changelog/CriticalitySection.d.ts.map +1 -1
- package/build/template/components/Changelog/CriticalitySection.js.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgument.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgument.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveArgumentOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveLocationOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveLocationOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/DirectiveUsage.d.ts +1 -1
- package/build/template/components/Changelog/groups/DirectiveUsage.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueDeprecationReason.d.ts +1 -1
- package/build/template/components/Changelog/groups/EnumValueDeprecationReason.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/EnumValueDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/EnumValueOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/EnumValueOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldArgumentOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecation.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecationReason.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldDeprecationReason.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/FieldOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldDefaultValue.d.ts +1 -1
- package/build/template/components/Changelog/groups/InputFieldDefaultValue.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/InputFieldDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/InputFieldOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/InputFieldOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/ObjectTypeInterfaceOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/SchemaRootType.d.ts +1 -1
- package/build/template/components/Changelog/groups/SchemaRootType.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/TypeDescription.d.ts +1 -1
- package/build/template/components/Changelog/groups/TypeDescription.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/TypeOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/TypeOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/UnionMemberOperation.d.ts +1 -1
- package/build/template/components/Changelog/groups/UnionMemberOperation.d.ts.map +1 -1
- package/build/template/components/Changelog.d.ts +2 -2
- package/build/template/components/Changelog.d.ts.map +1 -1
- package/build/template/components/Changelog.js +13 -10
- package/build/template/components/Changelog.js.map +1 -1
- package/build/template/components/DeprecationReason.d.ts +3 -3
- package/build/template/components/DeprecationReason.d.ts.map +1 -1
- package/build/template/components/DeprecationReason.js.map +1 -1
- package/build/template/components/Description.d.ts +3 -3
- package/build/template/components/Description.d.ts.map +1 -1
- package/build/template/components/Description.js.map +1 -1
- package/build/template/components/Field.d.ts +5 -5
- package/build/template/components/Field.d.ts.map +1 -1
- package/build/template/components/Field.js +23 -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 +3 -3
- package/build/template/components/FieldList.js.map +1 -1
- package/build/template/components/FieldListSection.d.ts +3 -4
- package/build/template/components/FieldListSection.d.ts.map +1 -1
- package/build/template/components/FieldListSection.js +2 -2
- package/build/template/components/FieldListSection.js.map +1 -1
- package/build/template/components/HamburgerMenu.d.ts +1 -0
- package/build/template/components/HamburgerMenu.d.ts.map +1 -1
- package/build/template/components/HamburgerMenu.js +2 -2
- package/build/template/components/HamburgerMenu.js.map +1 -1
- package/build/template/components/MissingSchema.d.ts +2 -1
- package/build/template/components/MissingSchema.d.ts.map +1 -1
- package/build/template/components/MissingSchema.js.map +1 -1
- package/build/template/components/NamedType.d.ts.map +1 -1
- package/build/template/components/NamedType.js +11 -2
- package/build/template/components/NamedType.js.map +1 -1
- package/build/template/components/ReferenceLink.d.ts +9 -11
- package/build/template/components/ReferenceLink.d.ts.map +1 -1
- package/build/template/components/ReferenceLink.js.map +1 -1
- package/build/template/components/ToastContainer.d.ts +3 -0
- package/build/template/components/ToastContainer.d.ts.map +1 -0
- package/build/template/components/ToastContainer.js +44 -0
- package/build/template/components/ToastContainer.js.map +1 -0
- package/build/template/components/ToastItem.d.ts +7 -0
- package/build/template/components/ToastItem.d.ts.map +1 -0
- package/build/template/components/ToastItem.js +48 -0
- package/build/template/components/ToastItem.js.map +1 -0
- package/build/template/components/TypeAnnotation.d.ts +4 -5
- package/build/template/components/TypeAnnotation.d.ts.map +1 -1
- package/build/template/components/TypeAnnotation.js.map +1 -1
- package/build/template/components/TypeIndex.js +1 -1
- package/build/template/components/TypeIndex.js.map +1 -1
- package/build/template/components/VersionPicker.d.ts +8 -0
- package/build/template/components/VersionPicker.d.ts.map +1 -0
- package/build/template/components/VersionPicker.js +66 -0
- package/build/template/components/VersionPicker.js.map +1 -0
- package/build/template/components/graphql/type-kind-icon.d.ts +1 -1
- package/build/template/components/graphql/type-kind-icon.d.ts.map +1 -1
- package/build/template/components/graphql/type-link.d.ts +1 -1
- package/build/template/components/graphql/type-link.d.ts.map +1 -1
- package/build/template/components/graphql/type-link.js +1 -1
- package/build/template/components/graphql/type-link.js.map +1 -1
- package/build/template/components/sidebar/Sidebar.d.ts +2 -1
- package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
- package/build/template/components/sidebar/Sidebar.js +2 -2
- package/build/template/components/sidebar/Sidebar.js.map +1 -1
- package/build/template/contexts/SchemaLifecycleContext.d.ts +14 -0
- package/build/template/contexts/SchemaLifecycleContext.d.ts.map +1 -0
- package/build/template/contexts/SchemaLifecycleContext.js +15 -0
- package/build/template/contexts/SchemaLifecycleContext.js.map +1 -0
- package/build/template/hooks/useReferencePath.d.ts +9 -0
- package/build/template/hooks/useReferencePath.d.ts.map +1 -0
- package/build/template/hooks/useReferencePath.js +18 -0
- package/build/template/hooks/useReferencePath.js.map +1 -0
- package/build/template/layouts/ChangelogLayout.d.ts +1 -1
- package/build/template/layouts/ChangelogLayout.d.ts.map +1 -1
- package/build/template/layouts/ChangelogLayout.js +11 -3
- package/build/template/layouts/ChangelogLayout.js.map +1 -1
- package/build/template/layouts/SidebarLayout.d.ts +1 -0
- package/build/template/layouts/SidebarLayout.d.ts.map +1 -1
- package/build/template/layouts/SidebarLayout.js +2 -2
- package/build/template/layouts/SidebarLayout.js.map +1 -1
- package/build/template/routes/changelog.d.ts +4 -2
- package/build/template/routes/changelog.d.ts.map +1 -1
- package/build/template/routes/changelog.js.map +1 -1
- package/build/template/routes/reference.d.ts +30 -9
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.js +53 -55
- package/build/template/routes/reference.js.map +1 -1
- package/build/template/routes/root.d.ts +1 -0
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.js +21 -6
- package/build/template/routes/root.js.map +1 -1
- package/build/template/server/middleware/unsupported-assets.js +2 -2
- package/build/template/server/middleware/unsupported-assets.js.map +1 -1
- package/build/template/server/ssg/get-route-paths.js +1 -1
- package/build/template/server/ssg/get-route-paths.js.map +1 -1
- package/build/template/sources/schema-source.d.ts +6 -4
- package/build/template/sources/schema-source.d.ts.map +1 -1
- package/build/template/stores/$$.d.ts +13 -0
- package/build/template/stores/$$.d.ts.map +1 -0
- package/build/template/stores/$$.js +5 -0
- package/build/template/stores/$$.js.map +1 -0
- package/build/template/stores/$.d.ts +2 -0
- package/build/template/stores/$.d.ts.map +1 -0
- package/build/template/stores/$.js +2 -0
- package/build/template/stores/$.js.map +1 -0
- package/build/template/stores/schema.d.ts +40 -0
- package/build/template/stores/schema.d.ts.map +1 -0
- package/build/template/stores/schema.js +36 -0
- package/build/template/stores/schema.js.map +1 -0
- package/build/template/stores/toast.d.ts +103 -0
- package/build/template/stores/toast.d.ts.map +1 -0
- package/build/template/stores/toast.js +105 -0
- package/build/template/stores/toast.js.map +1 -0
- package/build/template/utils/try-with-toast.d.ts +9 -0
- package/build/template/utils/try-with-toast.d.ts.map +1 -0
- package/build/template/utils/try-with-toast.js +37 -0
- package/build/template/utils/try-with-toast.js.map +1 -0
- package/package.json +119 -4
- package/src/api/api.ts +1 -0
- package/src/api/cache/$$.ts +1 -0
- package/src/api/cache/$.ts +1 -0
- package/src/api/cache/cache.ts +210 -0
- package/src/api/content/navbar.test.ts +3 -3
- package/src/api/content/navbar.ts +2 -0
- package/src/api/content/page.ts +1 -1
- package/src/api/content/scan.ts +1 -1
- package/src/api/content/sidebar.ts +1 -1
- package/src/api/iso/schema/$$.ts +1 -3
- package/src/api/iso/schema/routing.ts +89 -0
- package/src/api/iso/schema/validation.ts +136 -0
- package/src/api/schema/data-sources/introspection/introspection.ts +13 -10
- package/src/api/schema/data-sources/memory/memory.ts +26 -16
- package/src/api/schema/data-sources/schema-directory/schema-directory.ts +28 -18
- package/src/api/schema/data-sources/schema-file/schema-file.ts +10 -10
- package/src/api/schema/read.ts +5 -5
- package/src/api/schema/schema.ts +0 -14
- package/src/api/schema-augmentation/augmentations/description.ts +1 -1
- package/src/api/schema-augmentation/schema-augmentation.ts +1 -1
- package/src/api/schema-augmentation/target.ts +1 -1
- package/src/api/schema-source/schema-source.ts +59 -32
- package/src/api/vite/plugins/build.ts +1 -1
- package/src/api/vite/plugins/core.ts +21 -12
- package/src/api/vite/plugins/pages.ts +1 -1
- package/src/api/vite/plugins/schema-assets.ts +21 -7
- package/src/api/vite/vi.ts +1 -1
- package/src/cli/commands/cache/$default.ts +10 -0
- package/src/cli/commands/cache/delete.ts +27 -0
- package/src/cli/commands/cache/show.ts +99 -0
- package/src/cli/commands/cache.ts +9 -0
- package/src/cli/commands/config.ts +3 -0
- package/src/cli/commands/open.ts +2 -2
- package/src/cli/commands/static.ts +3 -0
- package/src/lib/errors/$.ts +1 -0
- package/src/lib/file-router/$.ts +1 -0
- package/src/lib/file-router/index.test.ts +1 -1
- package/src/lib/grafaid/$.ts +1 -0
- package/src/lib/grafaid/schema/type.ts +1 -0
- package/src/lib/graphql-change/{graphql-change.ts → $$.ts} +1 -1
- package/src/lib/graphql-change/$.ts +1 -0
- package/src/lib/graphql-change/change-groups.ts +56 -26
- package/src/lib/graphql-changeset/$$.ts +3 -0
- package/src/lib/graphql-changeset/$.ts +1 -0
- package/src/lib/graphql-changeset/changelog.ts +9 -0
- package/src/lib/graphql-changeset/changeset.ts +190 -0
- package/src/lib/graphql-changeset/versioned-schema.ts +43 -0
- package/src/lib/graphql-path/$$.ts +42 -0
- package/src/lib/graphql-path/$.ts +4 -0
- package/src/lib/graphql-path/constructors.ts +81 -0
- package/src/lib/graphql-path/definition.ts +240 -0
- package/src/lib/graphql-path/query.ts +118 -0
- package/src/lib/graphql-path/types.ts +55 -0
- package/src/lib/graphql-schema-loader/graphql-schema-loader.ts +1 -1
- package/src/lib/html-utils/$$.ts +2 -0
- package/src/lib/html-utils/$.ts +1 -0
- package/src/lib/kit-temp.ts +3 -0
- package/src/lib/path-map/$.test.ts +4 -3
- package/src/lib/react-router-aid/$.ts +1 -0
- package/src/lib/react-router-loader/$.ts +1 -0
- package/src/lib/schema-lifecycle/$$.ts +19 -0
- package/src/lib/schema-lifecycle/$.test.ts +222 -0
- package/src/lib/schema-lifecycle/$.ts +1 -0
- package/src/lib/schema-lifecycle/FieldLifecycle.ts +18 -0
- package/src/lib/schema-lifecycle/LifecycleEvent.ts +27 -0
- package/src/lib/schema-lifecycle/NamedTypeLifecycle.ts +96 -0
- package/src/lib/schema-lifecycle/SchemaLifecycle.ts +85 -0
- package/src/lib/schema-lifecycle/SchemaLink.ts +40 -0
- package/src/lib/schema-lifecycle/handlers.ts +215 -0
- package/src/lib/schema-lifecycle/utils.ts +234 -0
- package/src/lib/superjson-codec/$.ts +1 -0
- package/src/lib/superjson-codec/codecs/graphql-schema.ts +1 -1
- package/src/lib/theme/$$.ts +1 -0
- package/src/lib/theme/$.ts +1 -1
- package/src/lib/vite-plugin-config/$.ts +1 -0
- package/src/lib/vite-plugin-reactive-data/vite-plugin-reactive-data.ts +1 -1
- package/src/lib/vite-plugins/$.ts +4 -0
- package/src/lib/vite-virtual/$.ts +1 -0
- package/src/lib/vite-virtual/identified-loader.ts +1 -1
- package/src/sandbox.ts +1 -43
- package/src/singletons/superjson.ts +1 -1
- package/src/template/components/ArgumentList.tsx +2 -6
- package/src/template/components/ArgumentListAnnotation.tsx +1 -1
- package/src/template/components/Changelog/ChangeBase.tsx +1 -1
- package/src/template/components/Changelog/CriticalitySection.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveArgument.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveArgumentDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveArgumentOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveLocationOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/DirectiveUsage.tsx +1 -1
- package/src/template/components/Changelog/groups/EnumValueDeprecationReason.tsx +1 -1
- package/src/template/components/Changelog/groups/EnumValueDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/EnumValueOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldArgument.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldArgumentDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldArgumentOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldDeprecation.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldDeprecationReason.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/FieldOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/InputFieldDefaultValue.tsx +1 -1
- package/src/template/components/Changelog/groups/InputFieldDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/InputFieldOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/ObjectTypeInterfaceOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/SchemaRootType.tsx +1 -1
- package/src/template/components/Changelog/groups/TypeDescription.tsx +1 -1
- package/src/template/components/Changelog/groups/TypeOperation.tsx +1 -1
- package/src/template/components/Changelog/groups/UnionMemberOperation.tsx +1 -1
- package/src/template/components/Changelog.tsx +14 -13
- package/src/template/components/DeprecationReason.tsx +3 -3
- package/src/template/components/Description.tsx +3 -3
- package/src/template/components/Field.tsx +48 -8
- package/src/template/components/FieldList.tsx +4 -2
- package/src/template/components/FieldListSection.tsx +4 -8
- package/src/template/components/HamburgerMenu.tsx +3 -1
- package/src/template/components/MissingSchema.tsx +3 -1
- package/src/template/components/NamedType.tsx +31 -2
- package/src/template/components/ReferenceLink.tsx +9 -11
- package/src/template/components/ToastContainer.tsx +67 -0
- package/src/template/components/ToastItem.tsx +119 -0
- package/src/template/components/TypeAnnotation.tsx +2 -6
- package/src/template/components/TypeIndex.tsx +1 -1
- package/src/template/components/VersionPicker.tsx +94 -0
- package/src/template/components/graphql/type-kind-icon.tsx +1 -1
- package/src/template/components/graphql/type-kind-tokens.ts +1 -1
- package/src/template/components/graphql/type-link.tsx +1 -1
- package/src/template/components/sidebar/Sidebar.tsx +7 -1
- package/src/template/contexts/SchemaLifecycleContext.tsx +30 -0
- package/src/template/hooks/useReferencePath.ts +20 -0
- package/src/template/layouts/ChangelogLayout.tsx +11 -4
- package/src/template/layouts/SidebarLayout.tsx +4 -2
- package/src/template/routes/changelog.tsx +4 -2
- package/src/template/routes/reference.tsx +70 -69
- package/src/template/routes/root.tsx +45 -11
- package/src/template/server/create-page-html-response.ts +1 -1
- package/src/template/server/middleware/unsupported-assets.ts +2 -2
- package/src/template/server/ssg/get-route-paths.ts +1 -1
- package/src/template/stores/$$.ts +15 -0
- package/src/template/stores/$.ts +1 -0
- package/src/template/stores/schema.ts +52 -0
- package/src/template/stores/toast.ts +153 -0
- package/src/template/utils/try-with-toast.ts +41 -0
- package/build/lib/apple-touch-icon/index.d.ts.map +0 -1
- package/build/lib/apple-touch-icon/index.js.map +0 -1
- package/build/lib/errors/errors.d.ts.map +0 -1
- package/build/lib/errors/errors.js.map +0 -1
- package/build/lib/errors/index.d.ts +0 -2
- package/build/lib/errors/index.d.ts.map +0 -1
- package/build/lib/errors/index.js +0 -2
- package/build/lib/errors/index.js.map +0 -1
- package/build/lib/extensible-data/index.d.ts.map +0 -1
- package/build/lib/extensible-data/index.js.map +0 -1
- package/build/lib/favicon/index.d.ts.map +0 -1
- package/build/lib/favicon/index.js.map +0 -1
- package/build/lib/file-router/file-router.d.ts.map +0 -1
- package/build/lib/file-router/file-router.js.map +0 -1
- package/build/lib/file-router/index.d.ts +0 -2
- package/build/lib/file-router/index.d.ts.map +0 -1
- package/build/lib/file-router/index.js +0 -2
- package/build/lib/file-router/index.js.map +0 -1
- package/build/lib/grafaid/grafaid.d.ts.map +0 -1
- package/build/lib/grafaid/grafaid.js.map +0 -1
- package/build/lib/grafaid/index.d.ts +0 -2
- package/build/lib/grafaid/index.d.ts.map +0 -1
- package/build/lib/grafaid/index.js +0 -2
- package/build/lib/grafaid/index.js.map +0 -1
- package/build/lib/grafaid-old/index.d.ts.map +0 -1
- package/build/lib/grafaid-old/index.js.map +0 -1
- package/build/lib/graphql-change/graphql-change.d.ts.map +0 -1
- package/build/lib/graphql-change/graphql-change.js.map +0 -1
- package/build/lib/graphql-change/index.d.ts +0 -2
- package/build/lib/graphql-change/index.d.ts.map +0 -1
- package/build/lib/graphql-change/index.js +0 -2
- package/build/lib/graphql-change/index.js.map +0 -1
- package/build/lib/graphql-changeset/graphql-changeset.d.ts +0 -9
- package/build/lib/graphql-changeset/graphql-changeset.d.ts.map +0 -1
- package/build/lib/graphql-changeset/graphql-changeset.js +0 -2
- package/build/lib/graphql-changeset/graphql-changeset.js.map +0 -1
- package/build/lib/graphql-changeset/index.d.ts +0 -2
- package/build/lib/graphql-changeset/index.d.ts.map +0 -1
- package/build/lib/graphql-changeset/index.js +0 -2
- package/build/lib/graphql-changeset/index.js.map +0 -1
- package/build/lib/graphql-schema-loader/index.d.ts.map +0 -1
- package/build/lib/graphql-schema-loader/index.js.map +0 -1
- package/build/lib/hono-aid/index.d.ts.map +0 -1
- package/build/lib/hono-aid/index.js.map +0 -1
- package/build/lib/react-router-aid/index.d.ts +0 -2
- package/build/lib/react-router-aid/index.d.ts.map +0 -1
- package/build/lib/react-router-aid/index.js +0 -2
- package/build/lib/react-router-aid/index.js.map +0 -1
- package/build/lib/react-router-aid/react-router-aid.d.ts.map +0 -1
- package/build/lib/react-router-aid/react-router-aid.js.map +0 -1
- package/build/lib/react-router-loader/react-router-loader.d.ts.map +0 -1
- package/build/lib/react-router-loader/react-router-loader.js.map +0 -1
- package/build/lib/stack-processor/index.d.ts.map +0 -1
- package/build/lib/stack-processor/index.js.map +0 -1
- package/build/lib/superjson-codec/exports.d.ts.map +0 -1
- package/build/lib/superjson-codec/exports.js.map +0 -1
- package/build/lib/superjson-codec/index.d.ts +0 -2
- package/build/lib/superjson-codec/index.d.ts.map +0 -1
- package/build/lib/superjson-codec/index.js +0 -2
- package/build/lib/superjson-codec/index.js.map +0 -1
- package/build/lib/vite-plugin-config/vite-plugin-config.d.ts.map +0 -1
- package/build/lib/vite-plugin-config/vite-plugin-config.js.map +0 -1
- package/build/lib/vite-plugin-json/index.d.ts.map +0 -1
- package/build/lib/vite-plugin-json/index.js.map +0 -1
- package/build/lib/vite-plugin-mdx/index.d.ts.map +0 -1
- package/build/lib/vite-plugin-mdx/index.js.map +0 -1
- package/build/lib/vite-plugin-reactive-data/index.d.ts.map +0 -1
- package/build/lib/vite-plugin-reactive-data/index.js.map +0 -1
- package/build/lib/vite-plugins/index.d.ts +0 -5
- package/build/lib/vite-plugins/index.d.ts.map +0 -1
- package/build/lib/vite-plugins/index.js +0 -5
- package/build/lib/vite-plugins/index.js.map +0 -1
- package/build/lib/vite-plugins/vite-plugins.d.ts +0 -2
- package/build/lib/vite-plugins/vite-plugins.d.ts.map +0 -1
- package/build/lib/vite-plugins/vite-plugins.js +0 -2
- package/build/lib/vite-plugins/vite-plugins.js.map +0 -1
- package/build/lib/vite-virtual/index.d.ts +0 -2
- package/build/lib/vite-virtual/index.d.ts.map +0 -1
- package/build/lib/vite-virtual/index.js +0 -2
- package/build/lib/vite-virtual/index.js.map +0 -1
- package/build/lib/vite-virtual/vite-virtual.d.ts.map +0 -1
- package/build/lib/vite-virtual/vite-virtual.js.map +0 -1
- package/build/template/components/VersionSelector.d.ts +0 -8
- package/build/template/components/VersionSelector.d.ts.map +0 -1
- package/build/template/components/VersionSelector.js +0 -22
- package/build/template/components/VersionSelector.js.map +0 -1
- package/src/lib/errors/index.ts +0 -1
- package/src/lib/file-router/index.ts +0 -1
- package/src/lib/grafaid/index.ts +0 -1
- package/src/lib/graphql-change/index.ts +0 -1
- package/src/lib/graphql-changeset/graphql-changeset.ts +0 -9
- package/src/lib/graphql-changeset/index.ts +0 -1
- package/src/lib/react-router-aid/index.ts +0 -1
- package/src/lib/superjson-codec/index.ts +0 -1
- package/src/lib/vite-plugins/index.ts +0 -4
- package/src/lib/vite-virtual/index.ts +0 -1
- package/src/template/components/VersionSelector.tsx +0 -42
- /package/src/lib/apple-touch-icon/{index.ts → $.ts} +0 -0
- /package/src/lib/errors/{errors.ts → $$.ts} +0 -0
- /package/src/lib/extensible-data/{index.ts → $.ts} +0 -0
- /package/src/lib/favicon/{index.ts → $.ts} +0 -0
- /package/src/lib/file-router/{file-router.ts → $$.ts} +0 -0
- /package/src/lib/grafaid/{grafaid.ts → $$.ts} +0 -0
- /package/src/lib/grafaid-old/{index.ts → $.ts} +0 -0
- /package/src/lib/graphql-schema-loader/{index.ts → $.ts} +0 -0
- /package/src/lib/hono-aid/{index.ts → $.ts} +0 -0
- /package/src/lib/react-router-aid/{react-router-aid.ts → $$.ts} +0 -0
- /package/src/lib/react-router-loader/{react-router-loader.ts → $$.ts} +0 -0
- /package/src/lib/stack-processor/{index.ts → $.ts} +0 -0
- /package/src/lib/superjson-codec/{exports.ts → $$.ts} +0 -0
- /package/src/lib/vite-plugin-config/{vite-plugin-config.ts → $$.ts} +0 -0
- /package/src/lib/vite-plugin-json/{index.ts → $.ts} +0 -0
- /package/src/lib/vite-plugin-mdx/{index.ts → $.ts} +0 -0
- /package/src/lib/vite-plugin-reactive-data/{index.ts → $.ts} +0 -0
- /package/src/lib/vite-plugins/{vite-plugins.ts → $$.ts} +0 -0
- /package/src/lib/vite-virtual/{vite-virtual.ts → $$.ts} +0 -0
@@ -0,0 +1,94 @@
|
|
1
|
+
import { Api } from '#api/iso'
|
2
|
+
import type { React } from '#dep/react/index'
|
3
|
+
import { Select } from '@radix-ui/themes'
|
4
|
+
import { useNavigate } from 'react-router'
|
5
|
+
import { useReferencePath } from '../hooks/useReferencePath.js'
|
6
|
+
import { schemaSource } from '../sources/schema-source.js'
|
7
|
+
import { Stores } from '../stores/$.js'
|
8
|
+
import { tryWithToast } from '../utils/try-with-toast.js'
|
9
|
+
|
10
|
+
interface Props {
|
11
|
+
all: string[]
|
12
|
+
current: string
|
13
|
+
}
|
14
|
+
|
15
|
+
export const VersionPicker: React.FC<Props> = ({ all, current }) => {
|
16
|
+
const navigate = useNavigate()
|
17
|
+
const currentPath = useReferencePath()
|
18
|
+
|
19
|
+
// Don't show selector if only one version
|
20
|
+
if (all.length <= 1) {
|
21
|
+
return null
|
22
|
+
}
|
23
|
+
|
24
|
+
const handleVersionChange = async (newVersion: string) => {
|
25
|
+
const error = await tryWithToast(async () => {
|
26
|
+
// Check if current path exists in target version
|
27
|
+
const targetSchema = await schemaSource.get(newVersion)
|
28
|
+
// Find fallback path if needed
|
29
|
+
const fallbackPath = Api.Schema.Validation.findFallbackPath(targetSchema, currentPath)
|
30
|
+
// Get redirect description if path changed
|
31
|
+
const redirectDescription = Api.Schema.Validation.getRedirectDescription(
|
32
|
+
targetSchema,
|
33
|
+
currentPath,
|
34
|
+
fallbackPath,
|
35
|
+
newVersion,
|
36
|
+
)
|
37
|
+
// Create the new path
|
38
|
+
const newPath = Api.Schema.Routing.createReferencePath({
|
39
|
+
version: newVersion,
|
40
|
+
type: fallbackPath.type,
|
41
|
+
field: fallbackPath.field,
|
42
|
+
})
|
43
|
+
// Show toast notification if schema location redirect will occur
|
44
|
+
if (redirectDescription) {
|
45
|
+
Stores.Toast.store.info(redirectDescription, {
|
46
|
+
duration: 160_000,
|
47
|
+
actions: [
|
48
|
+
{
|
49
|
+
label: 'Go back',
|
50
|
+
onClick() {
|
51
|
+
navigate(-1)
|
52
|
+
},
|
53
|
+
},
|
54
|
+
{
|
55
|
+
label: 'View changelog',
|
56
|
+
onClick() {
|
57
|
+
// Navigate to changelog page
|
58
|
+
navigate('/changelog')
|
59
|
+
},
|
60
|
+
},
|
61
|
+
],
|
62
|
+
})
|
63
|
+
}
|
64
|
+
|
65
|
+
navigate(newPath)
|
66
|
+
}, 'Failed to switch version')
|
67
|
+
|
68
|
+
// Fallback logic if error occurred
|
69
|
+
if (error) {
|
70
|
+
// Fallback to simple navigation if schema loading fails
|
71
|
+
const newPath = Api.Schema.Routing.createReferencePath({
|
72
|
+
version: newVersion,
|
73
|
+
type: currentPath.type,
|
74
|
+
field: currentPath.field,
|
75
|
+
})
|
76
|
+
navigate(newPath)
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
return (
|
81
|
+
<Select.Root value={current} onValueChange={handleVersionChange}>
|
82
|
+
<Select.Trigger>
|
83
|
+
{current === Api.Schema.VERSION_LATEST ? `Latest` : current}
|
84
|
+
</Select.Trigger>
|
85
|
+
<Select.Content>
|
86
|
+
{all.map(version => (
|
87
|
+
<Select.Item key={version} value={version}>
|
88
|
+
{version === Api.Schema.VERSION_LATEST ? `Latest` : version}
|
89
|
+
</Select.Item>
|
90
|
+
))}
|
91
|
+
</Select.Content>
|
92
|
+
</Select.Root>
|
93
|
+
)
|
94
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { React } from '#dep/react/index'
|
2
|
-
import type { Grafaid } from '#lib/grafaid
|
2
|
+
import type { Grafaid } from '#lib/grafaid'
|
3
3
|
import { Code } from '@radix-ui/themes'
|
4
4
|
import { typeKindTokensIndex, unknownTypeKindToken } from './type-kind-tokens.js'
|
5
5
|
|
@@ -8,9 +8,10 @@ interface Props extends LayoutProps, MarginProps, BoxOwnProps {
|
|
8
8
|
data: Content.Item[]
|
9
9
|
basePath?: string
|
10
10
|
style?: React.CSSProperties
|
11
|
+
topContent?: React.ReactNode
|
11
12
|
}
|
12
13
|
|
13
|
-
export const Sidebar = ({ data, basePath, ...props }: Props) => {
|
14
|
+
export const Sidebar = ({ data, basePath, topContent, ...props }: Props) => {
|
14
15
|
return (
|
15
16
|
<SidebarContext.Provider value={{ basePath }}>
|
16
17
|
<Box
|
@@ -25,6 +26,11 @@ export const Sidebar = ({ data, basePath, ...props }: Props) => {
|
|
25
26
|
}
|
26
27
|
`}
|
27
28
|
</style>
|
29
|
+
{topContent && (
|
30
|
+
<Box mb='4'>
|
31
|
+
{topContent}
|
32
|
+
</Box>
|
33
|
+
)}
|
28
34
|
<Items items={data} />
|
29
35
|
</Box>
|
30
36
|
</SidebarContext.Provider>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import type { React } from '#dep/react/index'
|
2
|
+
import { SchemaLifecycle } from '#lib/schema-lifecycle'
|
3
|
+
import { createContext, useContext } from 'react'
|
4
|
+
|
5
|
+
interface SchemaLifecycleContextValue {
|
6
|
+
lifecycle: SchemaLifecycle.SchemaLifecycle | null
|
7
|
+
currentVersion: string
|
8
|
+
}
|
9
|
+
|
10
|
+
const SchemaLifecycleContext = createContext<SchemaLifecycleContextValue | undefined>(undefined)
|
11
|
+
|
12
|
+
export const SchemaLifecycleProvider: React.FC<{
|
13
|
+
children: React.ReactNode
|
14
|
+
lifecycle: SchemaLifecycle.SchemaLifecycle | null
|
15
|
+
currentVersion: string
|
16
|
+
}> = ({ children, lifecycle, currentVersion }) => {
|
17
|
+
return (
|
18
|
+
<SchemaLifecycleContext.Provider value={{ lifecycle, currentVersion }}>
|
19
|
+
{children}
|
20
|
+
</SchemaLifecycleContext.Provider>
|
21
|
+
)
|
22
|
+
}
|
23
|
+
|
24
|
+
export const useSchemaLifecycle = () => {
|
25
|
+
const context = useContext(SchemaLifecycleContext)
|
26
|
+
if (!context) {
|
27
|
+
throw new Error(`useSchemaLifecycle must be used within a SchemaLifecycleProvider`)
|
28
|
+
}
|
29
|
+
return context
|
30
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Api } from '#api/iso'
|
2
|
+
import { useLocation, useParams } from 'react-router'
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Hook that returns parsed reference path parameters
|
6
|
+
*
|
7
|
+
* @throws {Error} If not currently on a reference route
|
8
|
+
* @returns Parsed reference path object
|
9
|
+
*/
|
10
|
+
export const useReferencePath = (): Api.Schema.Validation.PathValidation => {
|
11
|
+
const params = useParams()
|
12
|
+
const location = useLocation()
|
13
|
+
|
14
|
+
Api.Schema.Routing.assertReferenceRoute({
|
15
|
+
pathname: location.pathname,
|
16
|
+
params,
|
17
|
+
})
|
18
|
+
|
19
|
+
return params
|
20
|
+
}
|
@@ -4,7 +4,7 @@ import {
|
|
4
4
|
isCriticalityDangerous,
|
5
5
|
isCriticalitySafe,
|
6
6
|
} from '#lib/graphql-change/criticality'
|
7
|
-
import
|
7
|
+
import { GraphqlChangeset } from '#lib/graphql-changeset'
|
8
8
|
import { Box, Flex, Text } from '@radix-ui/themes'
|
9
9
|
import type React from 'react'
|
10
10
|
import { useEffect, useState } from 'react'
|
@@ -22,10 +22,17 @@ interface VersionCounts {
|
|
22
22
|
}
|
23
23
|
|
24
24
|
const calculateCounts = (version: GraphqlChangeset.ChangeSet): VersionCounts => {
|
25
|
+
if (GraphqlChangeset.isIntermediateChangeSet(version)) {
|
26
|
+
return {
|
27
|
+
breaking: version.changes.filter(isCriticalityBreaking).length,
|
28
|
+
dangerous: version.changes.filter(isCriticalityDangerous).length,
|
29
|
+
safe: version.changes.filter(isCriticalitySafe).length,
|
30
|
+
}
|
31
|
+
}
|
25
32
|
return {
|
26
|
-
breaking:
|
27
|
-
dangerous:
|
28
|
-
safe:
|
33
|
+
breaking: 0,
|
34
|
+
dangerous: 0,
|
35
|
+
safe: 0,
|
29
36
|
}
|
30
37
|
}
|
31
38
|
|
@@ -10,9 +10,10 @@ interface Props {
|
|
10
10
|
children: React.ReactNode
|
11
11
|
sidebar: Content.Item[]
|
12
12
|
basePath?: string
|
13
|
+
topContent?: React.ReactNode
|
13
14
|
}
|
14
15
|
|
15
|
-
export const SidebarLayout: React.FC<Props> = ({ children, sidebar, basePath }) => {
|
16
|
+
export const SidebarLayout: React.FC<Props> = ({ children, sidebar, basePath, topContent }) => {
|
16
17
|
const location = useLocation()
|
17
18
|
const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
|
18
19
|
|
@@ -47,6 +48,7 @@ export const SidebarLayout: React.FC<Props> = ({ children, sidebar, basePath })
|
|
47
48
|
}}
|
48
49
|
sidebarData={sidebar}
|
49
50
|
basePath={basePath}
|
51
|
+
topContent={topContent}
|
50
52
|
/>
|
51
53
|
</Box>
|
52
54
|
)}
|
@@ -58,7 +60,7 @@ export const SidebarLayout: React.FC<Props> = ({ children, sidebar, basePath })
|
|
58
60
|
gridColumn='1 / 3'
|
59
61
|
gridRow='1 / auto'
|
60
62
|
>
|
61
|
-
<Sidebar data={sidebar} basePath={basePath} />
|
63
|
+
<Sidebar data={sidebar} basePath={basePath} topContent={topContent} />
|
62
64
|
</Box>
|
63
65
|
)}
|
64
66
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { GraphqlChangeset } from '#lib/graphql-changeset
|
1
|
+
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
2
2
|
import { route } from '#lib/react-router-aid/react-router-aid'
|
3
3
|
import { createLoader, useLoaderData } from '#lib/react-router-loader/react-router-loader'
|
4
4
|
import { Changelog } from '../components/Changelog.js'
|
@@ -28,7 +28,9 @@ const Component = () => {
|
|
28
28
|
|
29
29
|
return (
|
30
30
|
<ChangelogLayout versions={data.changesets}>
|
31
|
-
<Changelog
|
31
|
+
<Changelog
|
32
|
+
changesets={data.changesets as [GraphqlChangeset.ChangeSet, ...GraphqlChangeset.ChangeSet[]]}
|
33
|
+
/>
|
32
34
|
</ChangelogLayout>
|
33
35
|
)
|
34
36
|
}
|
@@ -1,15 +1,17 @@
|
|
1
1
|
import type { Content } from '#api/content/$'
|
2
2
|
import { Api } from '#api/iso'
|
3
|
-
import {
|
4
|
-
import {
|
3
|
+
import type { React } from '#dep/react/index'
|
4
|
+
import { GrafaidOld } from '#lib/grafaid-old'
|
5
5
|
import { route, routeIndex } from '#lib/react-router-aid/react-router-aid'
|
6
6
|
import { createLoader, useLoaderData } from '#lib/react-router-loader/react-router-loader'
|
7
7
|
import { Box } from '@radix-ui/themes'
|
8
|
-
import {
|
8
|
+
import { neverCase } from '@wollybeard/kit/language'
|
9
|
+
import { useParams } from 'react-router'
|
9
10
|
import { Field } from '../components/Field.js'
|
10
11
|
import { MissingSchema } from '../components/MissingSchema.js'
|
11
12
|
import { NamedType } from '../components/NamedType.js'
|
12
|
-
import {
|
13
|
+
import { VersionPicker } from '../components/VersionPicker.js'
|
14
|
+
import { SchemaLifecycleProvider } from '../contexts/SchemaLifecycleContext.js'
|
13
15
|
import { SidebarLayout } from '../layouts/index.js'
|
14
16
|
import { schemaSource } from '../sources/schema-source.js'
|
15
17
|
|
@@ -22,14 +24,20 @@ export const loader = createLoader(async ({ params }) => {
|
|
22
24
|
const schema = await schemaSource.get(currentVersion)
|
23
25
|
const availableVersions = schemaSource.versions
|
24
26
|
|
27
|
+
// Load lifecycle data if available
|
28
|
+
const lifecycle = await schemaSource.getLifecycle()
|
29
|
+
|
25
30
|
return {
|
26
31
|
schema,
|
27
32
|
currentVersion,
|
28
33
|
availableVersions,
|
34
|
+
lifecycle,
|
29
35
|
}
|
30
36
|
})
|
31
37
|
|
32
|
-
|
38
|
+
// Single component that handles all reference route variations
|
39
|
+
const ReferenceView = () => {
|
40
|
+
const params = useParams() as { version?: string; type?: string; field?: string }
|
33
41
|
const data = useLoaderData<typeof loader>()
|
34
42
|
|
35
43
|
if (!data.schema) {
|
@@ -59,91 +67,84 @@ const RouteReferenceComponent = () => {
|
|
59
67
|
// Calculate basePath based on current version
|
60
68
|
const basePath = Api.Schema.Routing.createReferenceBasePath(data.currentVersion)
|
61
69
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
70
|
+
// Determine view type and render appropriate content
|
71
|
+
const viewType = Api.Schema.Routing.getReferenceViewType({
|
72
|
+
schema: data.schema,
|
73
|
+
type: params.type,
|
74
|
+
field: params.field,
|
75
|
+
})
|
76
|
+
|
77
|
+
const content: React.ReactNode = (() => {
|
78
|
+
if (viewType === 'index') {
|
79
|
+
return <div>Select a type from the sidebar to view its documentation.</div>
|
80
|
+
} else if (viewType === 'type-missing' || viewType === 'field-missing') {
|
81
|
+
return <MissingSchema />
|
82
|
+
} else if (viewType === 'type') {
|
83
|
+
const type = data.schema.getType(params.type!)!
|
84
|
+
return <NamedType data={type} />
|
85
|
+
} else if (viewType === 'field') {
|
86
|
+
const type = data.schema.getType(params.type!)!
|
87
|
+
const fields = (type as any).getFields()
|
88
|
+
const field = fields[params.field!]
|
89
|
+
return (
|
90
|
+
<Field
|
91
|
+
data={field}
|
92
|
+
parentTypeName={params.type!}
|
68
93
|
/>
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
}
|
74
|
-
|
75
|
-
// Shared hooks for schema data validation and retrieval
|
76
|
-
const useReferenceSchema = () => {
|
77
|
-
const data = useLoaderData<typeof loader>('reference')
|
78
|
-
if (!data?.schema) {
|
79
|
-
throw new Error('Schema not found')
|
80
|
-
}
|
81
|
-
return data
|
82
|
-
}
|
83
|
-
|
84
|
-
const useSchemaType = (typeName: string) => {
|
85
|
-
const { schema } = useReferenceSchema()
|
86
|
-
const type = schema.getType(typeName)
|
87
|
-
if (!type) {
|
88
|
-
throw new Error(`Could not find type ${typeName}`)
|
89
|
-
}
|
90
|
-
return type
|
91
|
-
}
|
92
|
-
|
93
|
-
const useSchemaField = (typeName: string, fieldName: string) => {
|
94
|
-
const type = useSchemaType(typeName)
|
95
|
-
if (!Grafaid.Schema.TypesLike.isFielded(type)) {
|
96
|
-
throw new Error(`Type ${typeName} does not have fields`)
|
97
|
-
}
|
98
|
-
|
99
|
-
const fields = type.getFields()
|
100
|
-
const field = fields[fieldName]
|
101
|
-
if (!field) {
|
102
|
-
throw new Error(`Could not find field ${fieldName} on type ${typeName}`)
|
103
|
-
}
|
104
|
-
return field
|
105
|
-
}
|
106
|
-
|
107
|
-
const RouteComponentIndex = () => {
|
108
|
-
return <div>Select a type from the sidebar to view its documentation.</div>
|
109
|
-
}
|
94
|
+
)
|
95
|
+
} else {
|
96
|
+
neverCase(viewType)
|
97
|
+
}
|
98
|
+
})()
|
110
99
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
}
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
100
|
+
return (
|
101
|
+
<SchemaLifecycleProvider lifecycle={data.lifecycle} currentVersion={data.currentVersion}>
|
102
|
+
<SidebarLayout
|
103
|
+
sidebar={sidebarItems}
|
104
|
+
basePath={basePath}
|
105
|
+
topContent={
|
106
|
+
<VersionPicker
|
107
|
+
all={[...data.availableVersions]} // Convert readonly to mutable
|
108
|
+
current={data.currentVersion}
|
109
|
+
/>
|
110
|
+
}
|
111
|
+
>
|
112
|
+
{content}
|
113
|
+
</SidebarLayout>
|
114
|
+
</SchemaLifecycleProvider>
|
115
|
+
)
|
121
116
|
}
|
122
117
|
|
118
|
+
// Define routes that handle type and field params
|
123
119
|
const typeAndFieldRoutes = [
|
124
|
-
routeIndex(
|
120
|
+
routeIndex({
|
121
|
+
Component: ReferenceView,
|
122
|
+
loader,
|
123
|
+
}),
|
125
124
|
route({
|
126
125
|
path: `:type`,
|
127
|
-
Component:
|
126
|
+
Component: ReferenceView,
|
128
127
|
errorElement: <MissingSchema />,
|
128
|
+
loader,
|
129
129
|
children: [
|
130
130
|
route({
|
131
131
|
path: `:field`,
|
132
|
-
Component:
|
132
|
+
Component: ReferenceView,
|
133
133
|
errorElement: <MissingSchema />,
|
134
|
+
loader,
|
134
135
|
}),
|
135
136
|
],
|
136
137
|
}),
|
137
138
|
]
|
138
139
|
|
139
140
|
/**
|
140
|
-
* Reference documentation
|
141
|
+
* Reference documentation routes using proper React Router patterns
|
142
|
+
* - Parent routes have no components (automatically render Outlet)
|
143
|
+
* - Leaf routes have components and loaders that always run fresh
|
144
|
+
* - Single ReferenceView component handles all variations
|
141
145
|
*/
|
142
146
|
export const reference = route({
|
143
|
-
id: 'reference',
|
144
147
|
path: `reference`,
|
145
|
-
loader,
|
146
|
-
Component: RouteReferenceComponent,
|
147
148
|
children: [
|
148
149
|
...typeAndFieldRoutes,
|
149
150
|
route({
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import type { ReactRouter } from '#dep/react-router/index'
|
2
2
|
import { route } from '#lib/react-router-aid/react-router-aid'
|
3
|
+
import { createLoader } from '#lib/react-router-loader/react-router-loader'
|
4
|
+
import type { Stores } from '#template/stores/$'
|
3
5
|
import { Box, Flex, Theme } from '@radix-ui/themes'
|
4
6
|
import { Link as LinkReactRouter } from 'react-router'
|
5
7
|
import { Outlet, ScrollRestoration } from 'react-router'
|
@@ -11,6 +13,7 @@ import { Link as PolenLink } from '../components/Link.js'
|
|
11
13
|
import { Logo } from '../components/Logo.js'
|
12
14
|
import { NotFound } from '../components/NotFound.js'
|
13
15
|
import { ThemeToggle } from '../components/ThemeToggle.js'
|
16
|
+
import { ToastContainer } from '../components/ToastContainer.js'
|
14
17
|
import { ThemeProvider, useTheme } from '../contexts/ThemeContext.js'
|
15
18
|
import { changelog } from './changelog.js'
|
16
19
|
import { index } from './index.js'
|
@@ -46,22 +49,38 @@ const Layout = () => {
|
|
46
49
|
style={{ color: `inherit`, textDecoration: `none` }}
|
47
50
|
>
|
48
51
|
<Box display={{ initial: `block`, md: `block` }}>
|
49
|
-
<Logo
|
52
|
+
<Logo
|
53
|
+
src={logoSrc}
|
54
|
+
title={templateVariables.title}
|
55
|
+
height={30}
|
56
|
+
showTitle={true}
|
57
|
+
/>
|
50
58
|
</Box>
|
51
59
|
</LinkReactRouter>
|
52
60
|
<Flex direction='row' gap='4' style={{ flex: 1 }}>
|
53
|
-
{PROJECT_DATA.navbar
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
61
|
+
{PROJECT_DATA.navbar
|
62
|
+
.filter(item => item.position !== 'right')
|
63
|
+
.map((item, key) => (
|
64
|
+
<PolenLink key={key} color='gray' to={item.pathExp}>
|
65
|
+
{item.title}
|
66
|
+
</PolenLink>
|
67
|
+
))}
|
68
|
+
</Flex>
|
69
|
+
<Flex direction='row' gap='4'>
|
70
|
+
{PROJECT_DATA.navbar
|
71
|
+
.filter(item => item.position === 'right')
|
72
|
+
.map((item, key) => (
|
73
|
+
<PolenLink key={key} color='gray' to={item.pathExp}>
|
74
|
+
{item.title}
|
75
|
+
</PolenLink>
|
76
|
+
))}
|
58
77
|
</Flex>
|
59
78
|
<ThemeToggle />
|
60
79
|
</Flex>
|
61
80
|
)
|
62
81
|
|
63
82
|
return (
|
64
|
-
<Theme asChild appearance={appearance}>
|
83
|
+
<Theme asChild appearance={appearance} radius='none'>
|
65
84
|
<Box
|
66
85
|
width={{ initial: `100%`, sm: `100%`, md: `var(--container-4)` }}
|
67
86
|
maxWidth='100vw'
|
@@ -72,15 +91,13 @@ const Layout = () => {
|
|
72
91
|
>
|
73
92
|
{header}
|
74
93
|
<Outlet />
|
94
|
+
<ToastContainer />
|
75
95
|
</Box>
|
76
96
|
</Theme>
|
77
97
|
)
|
78
98
|
}
|
79
99
|
|
80
|
-
const children: ReactRouter.RouteObject[] = [
|
81
|
-
index,
|
82
|
-
pages,
|
83
|
-
]
|
100
|
+
const children: ReactRouter.RouteObject[] = [index, pages]
|
84
101
|
|
85
102
|
//
|
86
103
|
//
|
@@ -122,8 +139,25 @@ children.push(notFoundRoute)
|
|
122
139
|
//
|
123
140
|
//
|
124
141
|
|
142
|
+
const storeModules = import.meta.glob('../stores/!($.*)*.ts', { eager: true }) as Record<
|
143
|
+
string,
|
144
|
+
Stores.StoreModule
|
145
|
+
>
|
146
|
+
|
125
147
|
export const root = route({
|
126
148
|
path: `/`,
|
127
149
|
Component,
|
150
|
+
loader: createLoader(async () => {
|
151
|
+
// Reset all stores on SSR to prevent cross-request pollution
|
152
|
+
if (import.meta.env.SSR) {
|
153
|
+
for (const module of Object.values(storeModules)) {
|
154
|
+
if (module.store?.reset) {
|
155
|
+
module.store.reset()
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
return {}
|
161
|
+
}),
|
128
162
|
children,
|
129
163
|
})
|
@@ -3,7 +3,7 @@ import type { Hono } from '#dep/hono/index'
|
|
3
3
|
import type { ReactRouter } from '#dep/react-router/index'
|
4
4
|
import { React } from '#dep/react/index'
|
5
5
|
import { ResponseInternalServerError } from '#lib/kit-temp'
|
6
|
-
import type { ReactRouterAid } from '#lib/react-router-aid
|
6
|
+
import type { ReactRouterAid } from '#lib/react-router-aid'
|
7
7
|
import * as Theme from '#lib/theme/theme'
|
8
8
|
import { Arr } from '@wollybeard/kit'
|
9
9
|
import * as ReactDomServer from 'react-dom/server'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Hono } from '#dep/hono/index'
|
2
|
-
import { AppleTouchIcon } from '#lib/apple-touch-icon
|
3
|
-
import { Favicon } from '#lib/favicon
|
2
|
+
import { AppleTouchIcon } from '#lib/apple-touch-icon'
|
3
|
+
import { Favicon } from '#lib/favicon'
|
4
4
|
import { Http } from '@wollybeard/kit'
|
5
5
|
|
6
6
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Api } from '#api/index'
|
2
|
-
import { ReactRouterAid } from '#lib/react-router-aid
|
2
|
+
import { ReactRouterAid } from '#lib/react-router-aid'
|
3
3
|
import { visit } from 'graphql'
|
4
4
|
import * as NodeFs from 'node:fs/promises'
|
5
5
|
import * as NodePath from 'node:path'
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export * as Schema from './schema.js'
|
2
|
+
export { store as schema } from './schema.js'
|
3
|
+
|
4
|
+
export * as Toast from './toast.js'
|
5
|
+
export { store as toast } from './toast.js'
|
6
|
+
|
7
|
+
export interface Store {
|
8
|
+
reset: () => void
|
9
|
+
set: (data?: unknown) => void
|
10
|
+
}
|
11
|
+
|
12
|
+
export interface StoreModule {
|
13
|
+
store: Store
|
14
|
+
initialState: unknown
|
15
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * as Stores from './$$.js'
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import type { GraphQLSchema } from 'graphql'
|
2
|
+
import { proxy, ref } from 'valtio'
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Schema store state interface
|
6
|
+
*/
|
7
|
+
export interface State {
|
8
|
+
/** Currently selected schema version */
|
9
|
+
currentVersion: string
|
10
|
+
/** All available schema versions */
|
11
|
+
availableVersions: string[]
|
12
|
+
/** Currently loaded GraphQL schema instance */
|
13
|
+
currentSchema: GraphQLSchema | null
|
14
|
+
}
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Initial state for the schema store
|
18
|
+
*/
|
19
|
+
export const initialState: State = {
|
20
|
+
currentVersion: 'latest',
|
21
|
+
availableVersions: [],
|
22
|
+
currentSchema: null,
|
23
|
+
}
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Schema store
|
27
|
+
*
|
28
|
+
* Manages GraphQL schema state including version selection and schema instances.
|
29
|
+
* Used for version switching and schema-aware navigation.
|
30
|
+
*/
|
31
|
+
export const store = proxy({
|
32
|
+
...initialState,
|
33
|
+
|
34
|
+
/**
|
35
|
+
* Reset store to initial state
|
36
|
+
*/
|
37
|
+
reset() {
|
38
|
+
Object.assign(store, initialState)
|
39
|
+
},
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Set store state
|
43
|
+
* @param data - New state data
|
44
|
+
*/
|
45
|
+
set(data: State) {
|
46
|
+
// Set each property individually to avoid issues with complex objects
|
47
|
+
store.currentVersion = data.currentVersion
|
48
|
+
store.availableVersions = data.availableVersions
|
49
|
+
// Use ref() to prevent Valtio from deeply proxying the GraphQL schema
|
50
|
+
store.currentSchema = data.currentSchema ? ref(data.currentSchema) : null
|
51
|
+
},
|
52
|
+
})
|