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,152 @@
|
|
1
|
+
/**
|
2
|
+
* Definition path operations
|
3
|
+
*/
|
4
|
+
import type { ArgumentSegment, FieldSegment, TypeSegment } from '#lib/graphql-path/types';
|
5
|
+
/**
|
6
|
+
* Encode a definition path to a human-readable expression string
|
7
|
+
*
|
8
|
+
* @param path - The definition path to encode
|
9
|
+
* @returns A string expression representation
|
10
|
+
* @example
|
11
|
+
* encode(field('User', 'name')) // 'User.name'
|
12
|
+
* encode(argument('User', 'posts', 'limit')) // 'User.posts(limit)'
|
13
|
+
*/
|
14
|
+
export declare const encode: (path: DefinitionPath) => string;
|
15
|
+
/**
|
16
|
+
* Decode a string expression into a definition path
|
17
|
+
*
|
18
|
+
* @param expression - The string expression to decode
|
19
|
+
* @returns The decoded definition path or null if invalid
|
20
|
+
* @example
|
21
|
+
* decode('User') // type definition path
|
22
|
+
* decode('User.name') // field definition path
|
23
|
+
* decode('User.posts(limit)') // argument definition path
|
24
|
+
*/
|
25
|
+
export declare const decode: (expression: string) => DefinitionPath | null;
|
26
|
+
/**
|
27
|
+
* Extract the type name from any definition path
|
28
|
+
*
|
29
|
+
* @param path - The definition path
|
30
|
+
* @returns The type name
|
31
|
+
* @example getType([{ kind: 'type', type: 'User' }]) // 'User'
|
32
|
+
*/
|
33
|
+
export declare const getType: (path: DefinitionPath) => string;
|
34
|
+
/**
|
35
|
+
* Extract the field name from a field or argument definition path
|
36
|
+
*
|
37
|
+
* @param path - The field or argument definition path
|
38
|
+
* @returns The field name
|
39
|
+
* @example getField([{ kind: 'type', type: 'User' }, { kind: 'field', field: 'name' }]) // 'name'
|
40
|
+
*/
|
41
|
+
export declare const getField: (path: FieldDefinitionPath | ArgumentDefinitionPath) => string;
|
42
|
+
/**
|
43
|
+
* Extract the argument name from an argument definition path
|
44
|
+
*
|
45
|
+
* @param path - The argument definition path
|
46
|
+
* @returns The argument name
|
47
|
+
* @example getArgument([{ kind: 'type', type: 'User' }, { kind: 'field', field: 'posts' }, { kind: 'argument', argument: 'limit' }]) // 'limit'
|
48
|
+
*/
|
49
|
+
export declare const getArgument: (path: ArgumentDefinitionPath) => string;
|
50
|
+
/**
|
51
|
+
* Parse field path like "User.email" into type and field names
|
52
|
+
*/
|
53
|
+
export declare const parseFieldPath: (path?: string) => {
|
54
|
+
typeName: string | null;
|
55
|
+
fieldName: string | null;
|
56
|
+
};
|
57
|
+
/**
|
58
|
+
* Definition paths - direct paths to schema definition elements
|
59
|
+
* These represent the "address" of a specific schema element
|
60
|
+
*/
|
61
|
+
export type DefinitionPath = TypeDefinitionPath | FieldDefinitionPath | ArgumentDefinitionPath;
|
62
|
+
/**
|
63
|
+
* Path to a type definition
|
64
|
+
* @example [{ kind: 'type', type: 'User' }]
|
65
|
+
*/
|
66
|
+
export type TypeDefinitionPath = [TypeSegment];
|
67
|
+
/**
|
68
|
+
* Path to a field definition (type + field)
|
69
|
+
* @example [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'name' }]
|
70
|
+
*/
|
71
|
+
export type FieldDefinitionPath = [TypeSegment, FieldSegment];
|
72
|
+
/**
|
73
|
+
* Path to an argument definition (type + field + argument)
|
74
|
+
* @example [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'posts' }, { kind: 'argument', argument: 'limit' }]
|
75
|
+
*/
|
76
|
+
export type ArgumentDefinitionPath = [TypeSegment, FieldSegment, ArgumentSegment];
|
77
|
+
/**
|
78
|
+
* Type guard to check if a path is a type definition path
|
79
|
+
*
|
80
|
+
* @param path - The path to check
|
81
|
+
* @returns True if the path is a type definition path
|
82
|
+
*/
|
83
|
+
export declare const isTypeDefinitionPath: (path: DefinitionPath) => path is TypeDefinitionPath;
|
84
|
+
/**
|
85
|
+
* Type guard to check if a path is a field definition path
|
86
|
+
*
|
87
|
+
* @param path - The path to check
|
88
|
+
* @returns True if the path is a field definition path
|
89
|
+
*/
|
90
|
+
export declare const isFieldDefinitionPath: (path: DefinitionPath) => path is FieldDefinitionPath;
|
91
|
+
/**
|
92
|
+
* Type guard to check if a path is an argument definition path
|
93
|
+
*
|
94
|
+
* @param path - The path to check
|
95
|
+
* @returns True if the path is an argument definition path
|
96
|
+
*/
|
97
|
+
export declare const isArgumentDefinitionPath: (path: DefinitionPath) => path is ArgumentDefinitionPath;
|
98
|
+
/**
|
99
|
+
* Create a path to a type definition
|
100
|
+
*
|
101
|
+
* @param type - The type name
|
102
|
+
* @returns A type definition path
|
103
|
+
* @example createTypeDefinitionPath('User') // [{ kind: 'type', type: 'User' }]
|
104
|
+
*/
|
105
|
+
export declare const createTypeDefinitionPath: (type: string) => TypeDefinitionPath;
|
106
|
+
/**
|
107
|
+
* Create a path to a field definition
|
108
|
+
*
|
109
|
+
* @param type - The type name
|
110
|
+
* @param field - The field name
|
111
|
+
* @returns A field definition path
|
112
|
+
* @example createFieldDefinitionPath('User', 'name') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'name' }]
|
113
|
+
*/
|
114
|
+
export declare const createFieldDefinitionPath: (type: string, field: string) => FieldDefinitionPath;
|
115
|
+
/**
|
116
|
+
* Create a path to an argument definition
|
117
|
+
*
|
118
|
+
* @param type - The type name
|
119
|
+
* @param field - The field name
|
120
|
+
* @param argument - The argument name
|
121
|
+
* @returns An argument definition path
|
122
|
+
* @example createArgumentDefinitionPath('User', 'posts', 'limit') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'posts' }, { kind: 'argument', argument: 'limit' }]
|
123
|
+
*/
|
124
|
+
export declare const createArgumentDefinitionPath: (type: string, field: string, argument: string) => ArgumentDefinitionPath;
|
125
|
+
/**
|
126
|
+
* Create a type definition path
|
127
|
+
*
|
128
|
+
* @param type - The type name
|
129
|
+
* @returns A type definition path
|
130
|
+
* @example type('User') // [{ kind: 'type', type: 'User' }]
|
131
|
+
*/
|
132
|
+
export declare const type: (type: string) => TypeDefinitionPath;
|
133
|
+
/**
|
134
|
+
* Create a field definition path
|
135
|
+
*
|
136
|
+
* @param type - The type name
|
137
|
+
* @param field - The field name
|
138
|
+
* @returns A field definition path
|
139
|
+
* @example field('User', 'name') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'name' }]
|
140
|
+
*/
|
141
|
+
export declare const field: (type: string, field: string) => FieldDefinitionPath;
|
142
|
+
/**
|
143
|
+
* Create an argument definition path
|
144
|
+
*
|
145
|
+
* @param type - The type name
|
146
|
+
* @param field - The field name
|
147
|
+
* @param argument - The argument name
|
148
|
+
* @returns An argument definition path
|
149
|
+
* @example argument('User', 'posts', 'limit') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'posts' }, { kind: 'argument', argument: 'limit' }]
|
150
|
+
*/
|
151
|
+
export declare const argument: (type: string, field: string, argument: string) => ArgumentDefinitionPath;
|
152
|
+
//# sourceMappingURL=definition.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../src/lib/graphql-path/definition.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEzF;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,GAAI,MAAM,cAAc,KAAG,MAS7C,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,GAAI,YAAY,MAAM,KAAG,cAAc,GAAG,IAwB5D,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,MAAM,cAAc,KAAG,MAE9C,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAM,mBAAmB,GAAG,sBAAsB,KAAG,MAE7E,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,sBAAsB,KAAG,MAE1D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG;IAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CAYjG,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GACtB,kBAAkB,G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eSegment } from './constructors.js';
|
5
|
+
/**
|
6
|
+
* Encode a definition path to a human-readable expression string
|
7
|
+
*
|
8
|
+
* @param path - The definition path to encode
|
9
|
+
* @returns A string expression representation
|
10
|
+
* @example
|
11
|
+
* encode(field('User', 'name')) // 'User.name'
|
12
|
+
* encode(argument('User', 'posts', 'limit')) // 'User.posts(limit)'
|
13
|
+
*/
|
14
|
+
export const encode = (path) => {
|
15
|
+
if (isTypeDefinitionPath(path)) {
|
16
|
+
return path[0].type;
|
17
|
+
}
|
18
|
+
else if (isFieldDefinitionPath(path)) {
|
19
|
+
return `${path[0].type}.${path[1].field}`;
|
20
|
+
}
|
21
|
+
else if (isArgumentDefinitionPath(path)) {
|
22
|
+
return `${path[0].type}.${path[1].field}(${path[2].argument})`;
|
23
|
+
}
|
24
|
+
return '';
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* Decode a string expression into a definition path
|
28
|
+
*
|
29
|
+
* @param expression - The string expression to decode
|
30
|
+
* @returns The decoded definition path or null if invalid
|
31
|
+
* @example
|
32
|
+
* decode('User') // type definition path
|
33
|
+
* decode('User.name') // field definition path
|
34
|
+
* decode('User.posts(limit)') // argument definition path
|
35
|
+
*/
|
36
|
+
export const decode = (expression) => {
|
37
|
+
// Handle argument path: Type.field(argument)
|
38
|
+
const argMatch = expression.match(/^([^.]+)\.([^.(]+)\(([^)]+)\)$/);
|
39
|
+
if (argMatch) {
|
40
|
+
const [, typeName, fieldName, argName] = argMatch;
|
41
|
+
if (!typeName || !fieldName || !argName)
|
42
|
+
return null;
|
43
|
+
return createArgumentDefinitionPath(typeName, fieldName, argName);
|
44
|
+
}
|
45
|
+
// Handle field path: Type.field
|
46
|
+
const fieldMatch = expression.match(/^([^.]+)\.([^.]+)$/);
|
47
|
+
if (fieldMatch) {
|
48
|
+
const [, typeName, fieldName] = fieldMatch;
|
49
|
+
if (!typeName || !fieldName)
|
50
|
+
return null;
|
51
|
+
return createFieldDefinitionPath(typeName, fieldName);
|
52
|
+
}
|
53
|
+
// Handle type path: Type
|
54
|
+
const typeMatch = expression.match(/^[^.]+$/);
|
55
|
+
if (typeMatch) {
|
56
|
+
return createTypeDefinitionPath(expression);
|
57
|
+
}
|
58
|
+
return null;
|
59
|
+
};
|
60
|
+
/**
|
61
|
+
* Extract the type name from any definition path
|
62
|
+
*
|
63
|
+
* @param path - The definition path
|
64
|
+
* @returns The type name
|
65
|
+
* @example getType([{ kind: 'type', type: 'User' }]) // 'User'
|
66
|
+
*/
|
67
|
+
export const getType = (path) => {
|
68
|
+
return path[0].type;
|
69
|
+
};
|
70
|
+
/**
|
71
|
+
* Extract the field name from a field or argument definition path
|
72
|
+
*
|
73
|
+
* @param path - The field or argument definition path
|
74
|
+
* @returns The field name
|
75
|
+
* @example getField([{ kind: 'type', type: 'User' }, { kind: 'field', field: 'name' }]) // 'name'
|
76
|
+
*/
|
77
|
+
export const getField = (path) => {
|
78
|
+
return path[1].field;
|
79
|
+
};
|
80
|
+
/**
|
81
|
+
* Extract the argument name from an argument definition path
|
82
|
+
*
|
83
|
+
* @param path - The argument definition path
|
84
|
+
* @returns The argument name
|
85
|
+
* @example getArgument([{ kind: 'type', type: 'User' }, { kind: 'field', field: 'posts' }, { kind: 'argument', argument: 'limit' }]) // 'limit'
|
86
|
+
*/
|
87
|
+
export const getArgument = (path) => {
|
88
|
+
return path[2].argument;
|
89
|
+
};
|
90
|
+
/**
|
91
|
+
* Parse field path like "User.email" into type and field names
|
92
|
+
*/
|
93
|
+
export const parseFieldPath = (path) => {
|
94
|
+
if (!path)
|
95
|
+
return { typeName: null, fieldName: null };
|
96
|
+
const parts = path.split('.');
|
97
|
+
if (parts.length >= 2) {
|
98
|
+
return {
|
99
|
+
typeName: parts[0] || null,
|
100
|
+
fieldName: parts[1] || null,
|
101
|
+
};
|
102
|
+
}
|
103
|
+
return { typeName: null, fieldName: null };
|
104
|
+
};
|
105
|
+
/**
|
106
|
+
* Type guard to check if a path is a type definition path
|
107
|
+
*
|
108
|
+
* @param path - The path to check
|
109
|
+
* @returns True if the path is a type definition path
|
110
|
+
*/
|
111
|
+
export const isTypeDefinitionPath = (path) => {
|
112
|
+
return path.length === 1 && path[0].kind === 'type';
|
113
|
+
};
|
114
|
+
/**
|
115
|
+
* Type guard to check if a path is a field definition path
|
116
|
+
*
|
117
|
+
* @param path - The path to check
|
118
|
+
* @returns True if the path is a field definition path
|
119
|
+
*/
|
120
|
+
export const isFieldDefinitionPath = (path) => {
|
121
|
+
return path.length === 2 && path[0].kind === 'type' && path[1].kind === 'field';
|
122
|
+
};
|
123
|
+
/**
|
124
|
+
* Type guard to check if a path is an argument definition path
|
125
|
+
*
|
126
|
+
* @param path - The path to check
|
127
|
+
* @returns True if the path is an argument definition path
|
128
|
+
*/
|
129
|
+
export const isArgumentDefinitionPath = (path) => {
|
130
|
+
return path.length === 3 && path[0].kind === 'type' && path[1].kind === 'field' && path[2].kind === 'argument';
|
131
|
+
};
|
132
|
+
/**
|
133
|
+
* Create a path to a type definition
|
134
|
+
*
|
135
|
+
* @param type - The type name
|
136
|
+
* @returns A type definition path
|
137
|
+
* @example createTypeDefinitionPath('User') // [{ kind: 'type', type: 'User' }]
|
138
|
+
*/
|
139
|
+
export const createTypeDefinitionPath = (type) => {
|
140
|
+
return [createTypeSegment(type)];
|
141
|
+
};
|
142
|
+
/**
|
143
|
+
* Create a path to a field definition
|
144
|
+
*
|
145
|
+
* @param type - The type name
|
146
|
+
* @param field - The field name
|
147
|
+
* @returns A field definition path
|
148
|
+
* @example createFieldDefinitionPath('User', 'name') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'name' }]
|
149
|
+
*/
|
150
|
+
export const createFieldDefinitionPath = (type, field) => {
|
151
|
+
return [createTypeSegment(type), createFieldSegment(field)];
|
152
|
+
};
|
153
|
+
/**
|
154
|
+
* Create a path to an argument definition
|
155
|
+
*
|
156
|
+
* @param type - The type name
|
157
|
+
* @param field - The field name
|
158
|
+
* @param argument - The argument name
|
159
|
+
* @returns An argument definition path
|
160
|
+
* @example createArgumentDefinitionPath('User', 'posts', 'limit') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'posts' }, { kind: 'argument', argument: 'limit' }]
|
161
|
+
*/
|
162
|
+
export const createArgumentDefinitionPath = (type, field, argument) => {
|
163
|
+
return [createTypeSegment(type), createFieldSegment(field), createArgumentSegment(argument)];
|
164
|
+
};
|
165
|
+
/**
|
166
|
+
* Create a type definition path
|
167
|
+
*
|
168
|
+
* @param type - The type name
|
169
|
+
* @returns A type definition path
|
170
|
+
* @example type('User') // [{ kind: 'type', type: 'User' }]
|
171
|
+
*/
|
172
|
+
export const type = createTypeDefinitionPath;
|
173
|
+
/**
|
174
|
+
* Create a field definition path
|
175
|
+
*
|
176
|
+
* @param type - The type name
|
177
|
+
* @param field - The field name
|
178
|
+
* @returns A field definition path
|
179
|
+
* @example field('User', 'name') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'name' }]
|
180
|
+
*/
|
181
|
+
export const field = createFieldDefinitionPath;
|
182
|
+
/**
|
183
|
+
* Create an argument definition path
|
184
|
+
*
|
185
|
+
* @param type - The type name
|
186
|
+
* @param field - The field name
|
187
|
+
* @param argument - The argument name
|
188
|
+
* @returns An argument definition path
|
189
|
+
* @example argument('User', 'posts', 'limit') // [{ kind: 'type', type: 'User' }, { kind: 'field', field: 'posts' }, { kind: 'argument', argument: 'limit' }]
|
190
|
+
*/
|
191
|
+
export const argument = createArgumentDefinitionPath;
|
192
|
+
//# sourceMappingURL=definition.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/lib/graphql-path/definition.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAIhG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,IAAoB,EAAU,EAAE;IACrD,IAAI,oBAAoB,CAAC,IA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,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAAE,qBAAqB,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC9F,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,wBAAwB,CAAA;AAE5C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,yBAAyB,CAAA;AAE9C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,4BAA4B,CAAA"}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
/**
|
2
|
+
* Query path operations
|
3
|
+
*/
|
4
|
+
import type { QueryPath } from './types.js';
|
5
|
+
/**
|
6
|
+
* Builder class for creating query paths with a fluent interface
|
7
|
+
*
|
8
|
+
* @example
|
9
|
+
* ```ts
|
10
|
+
* const path = builder()
|
11
|
+
* .type('User')
|
12
|
+
* .field('posts')
|
13
|
+
* .type('Post')
|
14
|
+
* .field('author')
|
15
|
+
* .build()
|
16
|
+
* ```
|
17
|
+
*/
|
18
|
+
export declare class QueryPathBuilder {
|
19
|
+
private segments;
|
20
|
+
/**
|
21
|
+
* Add a type segment to the path
|
22
|
+
*
|
23
|
+
* @param typeName - The type name
|
24
|
+
* @returns The builder for chaining
|
25
|
+
*/
|
26
|
+
type(typeName: string): this;
|
27
|
+
/**
|
28
|
+
* Add a field segment to the path
|
29
|
+
*
|
30
|
+
* @param fieldName - The field name
|
31
|
+
* @returns The builder for chaining
|
32
|
+
*/
|
33
|
+
field(fieldName: string): this;
|
34
|
+
/**
|
35
|
+
* Build the final query path
|
36
|
+
*
|
37
|
+
* @returns The constructed query path
|
38
|
+
*/
|
39
|
+
build(): QueryPath;
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* Create a new query path builder
|
43
|
+
*
|
44
|
+
* @returns A new query path builder instance
|
45
|
+
* @example
|
46
|
+
* ```ts
|
47
|
+
* const path = builder()
|
48
|
+
* .type('User')
|
49
|
+
* .field('posts')
|
50
|
+
* .type('Post')
|
51
|
+
* .field('author')
|
52
|
+
* .build()
|
53
|
+
* ```
|
54
|
+
*/
|
55
|
+
export declare const builder: () => QueryPathBuilder;
|
56
|
+
/**
|
57
|
+
* Encode a query path to a human-readable expression string
|
58
|
+
*
|
59
|
+
* @param path - The query path to encode
|
60
|
+
* @returns A string expression representation
|
61
|
+
* @example
|
62
|
+
* encode(builder().type('User').field('posts').type('Post').field('title').build()) // 'User.posts.Post.title'
|
63
|
+
*/
|
64
|
+
export declare const encode: (path: QueryPath) => string;
|
65
|
+
/**
|
66
|
+
* Decode a string expression into a query path
|
67
|
+
* Note: This assumes alternating type.field.type.field pattern
|
68
|
+
*
|
69
|
+
* @param expression - The string expression to decode
|
70
|
+
* @returns The decoded query path or null if invalid
|
71
|
+
* @example
|
72
|
+
* decode('User.posts.Post.title') // Query path traversing User->posts->Post->title
|
73
|
+
*/
|
74
|
+
export declare const decode: (expression: string) => QueryPath | null;
|
75
|
+
//# sourceMappingURL=query.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/lib/graphql-path/query.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,YAAY,CAAA;AAEzD;;;;;;;;;;;;GAYG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAqB;IAErC;;;;;OAKG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAK5B;;;;;OAKG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAK9B;;;;OAIG;IACH,KAAK,IAAI,SAAS;CAGnB;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,QAAO,gBAA0C,CAAA;AAErE;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,GAAI,MAAM,SAAS,KAAG,MAMxC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,GAAI,YAAY,MAAM,KAAG,SAAS,GAAG,IAqBvD,CAAA"}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
/**
|
2
|
+
* Query path operations
|
3
|
+
*/
|
4
|
+
import { createFieldSegment, createTypeSegment } from './constructors.js';
|
5
|
+
/**
|
6
|
+
* Builder class for creating query paths with a fluent interface
|
7
|
+
*
|
8
|
+
* @example
|
9
|
+
* ```ts
|
10
|
+
* const path = builder()
|
11
|
+
* .type('User')
|
12
|
+
* .field('posts')
|
13
|
+
* .type('Post')
|
14
|
+
* .field('author')
|
15
|
+
* .build()
|
16
|
+
* ```
|
17
|
+
*/
|
18
|
+
export class QueryPathBuilder {
|
19
|
+
segments = [];
|
20
|
+
/**
|
21
|
+
* Add a type segment to the path
|
22
|
+
*
|
23
|
+
* @param typeName - The type name
|
24
|
+
* @returns The builder for chaining
|
25
|
+
*/
|
26
|
+
type(typeName) {
|
27
|
+
this.segments.push(createTypeSegment(typeName));
|
28
|
+
return this;
|
29
|
+
}
|
30
|
+
/**
|
31
|
+
* Add a field segment to the path
|
32
|
+
*
|
33
|
+
* @param fieldName - The field name
|
34
|
+
* @returns The builder for chaining
|
35
|
+
*/
|
36
|
+
field(fieldName) {
|
37
|
+
this.segments.push(createFieldSegment(fieldName));
|
38
|
+
return this;
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
* Build the final query path
|
42
|
+
*
|
43
|
+
* @returns The constructed query path
|
44
|
+
*/
|
45
|
+
build() {
|
46
|
+
return this.segments;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
/**
|
50
|
+
* Create a new query path builder
|
51
|
+
*
|
52
|
+
* @returns A new query path builder instance
|
53
|
+
* @example
|
54
|
+
* ```ts
|
55
|
+
* const path = builder()
|
56
|
+
* .type('User')
|
57
|
+
* .field('posts')
|
58
|
+
* .type('Post')
|
59
|
+
* .field('author')
|
60
|
+
* .build()
|
61
|
+
* ```
|
62
|
+
*/
|
63
|
+
export const builder = () => new QueryPathBuilder();
|
64
|
+
/**
|
65
|
+
* Encode a query path to a human-readable expression string
|
66
|
+
*
|
67
|
+
* @param path - The query path to encode
|
68
|
+
* @returns A string expression representation
|
69
|
+
* @example
|
70
|
+
* encode(builder().type('User').field('posts').type('Post').field('title').build()) // 'User.posts.Post.title'
|
71
|
+
*/
|
72
|
+
export const encode = (path) => {
|
73
|
+
return path.map(segment => {
|
74
|
+
if (segment.kind === 'type')
|
75
|
+
return segment.type;
|
76
|
+
if (segment.kind === 'field')
|
77
|
+
return segment.field;
|
78
|
+
return '';
|
79
|
+
}).filter(Boolean).join('.');
|
80
|
+
};
|
81
|
+
/**
|
82
|
+
* Decode a string expression into a query path
|
83
|
+
* Note: This assumes alternating type.field.type.field pattern
|
84
|
+
*
|
85
|
+
* @param expression - The string expression to decode
|
86
|
+
* @returns The decoded query path or null if invalid
|
87
|
+
* @example
|
88
|
+
* decode('User.posts.Post.title') // Query path traversing User->posts->Post->title
|
89
|
+
*/
|
90
|
+
export const decode = (expression) => {
|
91
|
+
if (!expression)
|
92
|
+
return null;
|
93
|
+
const parts = expression.split('.');
|
94
|
+
const segments = [];
|
95
|
+
// Assume alternating pattern: type.field.type.field...
|
96
|
+
for (let i = 0; i < parts.length; i++) {
|
97
|
+
const part = parts[i];
|
98
|
+
if (!part)
|
99
|
+
continue;
|
100
|
+
if (i % 2 === 0) {
|
101
|
+
// Even indices are types
|
102
|
+
segments.push(createTypeSegment(part));
|
103
|
+
}
|
104
|
+
else {
|
105
|
+
// Odd indices are fields
|
106
|
+
segments.push(createFieldSegment(part));
|
107
|
+
}
|
108
|
+
}
|
109
|
+
return segments;
|
110
|
+
};
|
111
|
+
//# sourceMappingURL=query.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/lib/graphql-path/query.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MA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,GAAmB,EAAE,CAAA;IAEnC,uDAAuD;IACvD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI,CAAC,IAAI;YAAE,SAAQ;QAEnB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YAChB,yBAAyB;YACzB,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;QACxC,CAAC;aAAM,CAAC;YACN,yBAAyB;YACzB,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAA;QACzC,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* GraphQL Path type definitions
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* Base segment representing a GraphQL type in a path
|
6
|
+
*/
|
7
|
+
export interface TypeSegment {
|
8
|
+
kind: 'type';
|
9
|
+
type: string;
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* Base segment representing a field in a path
|
13
|
+
*/
|
14
|
+
export interface FieldSegment {
|
15
|
+
kind: 'field';
|
16
|
+
field: string;
|
17
|
+
}
|
18
|
+
/**
|
19
|
+
* Base segment representing an argument in a path
|
20
|
+
*/
|
21
|
+
export interface ArgumentSegment {
|
22
|
+
kind: 'argument';
|
23
|
+
argument: string;
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* Union of all possible segments
|
27
|
+
*/
|
28
|
+
export type Segment = TypeSegment | FieldSegment | ArgumentSegment;
|
29
|
+
/**
|
30
|
+
* Query segments - only types and fields can be traversed in queries
|
31
|
+
* Arguments cannot be part of query paths as they are not traversable
|
32
|
+
*/
|
33
|
+
export type QuerySegment = TypeSegment | FieldSegment;
|
34
|
+
/**
|
35
|
+
* Query/Data paths - potentially deep paths that span multiple types through fields
|
36
|
+
* These represent traversal paths through the schema graph
|
37
|
+
*
|
38
|
+
* @example
|
39
|
+
* User.posts.author.name would be:
|
40
|
+
* [
|
41
|
+
* { kind: 'type', type: 'User' },
|
42
|
+
* { kind: 'field', field: 'posts' },
|
43
|
+
* { kind: 'type', type: 'Post' },
|
44
|
+
* { kind: 'field', field: 'author' },
|
45
|
+
* { kind: 'type', type: 'User' },
|
46
|
+
* { kind: 'field', field: 'name' }
|
47
|
+
* ]
|
48
|
+
*/
|
49
|
+
export type QueryPath = QuerySegment[];
|
50
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/graphql-path/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,UAAU,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,CAAA;AAElE;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,YAAY,CAAA;AAErD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/lib/graphql-path/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export * as GraphqlSchemaLoader from './graphql-schema-loader.js';
|
2
|
-
//# sourceMappingURL
|
2
|
+
//# sourceMappingURL=$.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/lib/graphql-schema-loader/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,mBAAmB,MAAM,4BAA4B,CAAA"}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export * as GraphqlSchemaLoader from './graphql-schema-loader.js';
|
2
|
-
//# sourceMappingURL
|
2
|
+
//# sourceMappingURL=$.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$.js","sourceRoot":"","sources":["../../../src/lib/graphql-schema-loader/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,mBAAmB,MAAM,4BAA4B,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql-schema-loader.d.ts","sourceRoot":"","sources":["../../../src/lib/graphql-schema-loader/graphql-schema-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"graphql-schema-loader.d.ts","sourceRoot":"","sources":["../../../src/lib/graphql-schema-loader/graphql-schema-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAMtC,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,YAAY,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC,GAAG;IACF,IAAI,EAAE,KAAK,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;CAClB,GAAG;IACF,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,IAAI,GAAU,QAAQ,aAAa,KAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CA+D/E,CAAA"}
|