polen 0.11.0-next.12 → 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 +0 -1
- package/build/api/iso/schema/$$.d.ts.map +1 -1
- package/build/api/iso/schema/routing.js +1 -1
- package/build/api/iso/schema/routing.js.map +1 -1
- package/build/api/iso/schema/validation.js +1 -1
- package/build/api/iso/schema/validation.js.map +1 -1
- 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/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 +11 -8
- package/build/template/components/Changelog.js.map +1 -1
- package/build/template/components/DeprecationReason.d.ts +1 -1
- package/build/template/components/DeprecationReason.d.ts.map +1 -1
- package/build/template/components/Description.d.ts +1 -1
- package/build/template/components/Description.d.ts.map +1 -1
- package/build/template/components/Field.d.ts +2 -1
- 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.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/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/TypeIndex.js +1 -1
- package/build/template/components/TypeIndex.js.map +1 -1
- 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/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 +6 -1
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.js +8 -4
- package/build/template/routes/reference.js.map +1 -1
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.js +5 -1
- 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/package.json +118 -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 +0 -3
- package/src/api/iso/schema/routing.ts +1 -1
- package/src/api/iso/schema/validation.ts +1 -1
- 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/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 +12 -11
- package/src/template/components/DeprecationReason.tsx +1 -1
- package/src/template/components/Description.tsx +1 -1
- package/src/template/components/Field.tsx +48 -4
- package/src/template/components/FieldList.tsx +4 -2
- package/src/template/components/FieldListSection.tsx +2 -2
- package/src/template/components/HamburgerMenu.tsx +3 -1
- package/src/template/components/NamedType.tsx +31 -2
- package/src/template/components/TypeIndex.tsx +1 -1
- 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/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 +26 -11
- package/src/template/routes/root.tsx +16 -5
- 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/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/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/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,215 @@
|
|
1
|
+
import { Grafaid } from '#lib/grafaid'
|
2
|
+
import type { GraphqlChange } from '#lib/graphql-change'
|
3
|
+
import type { GraphqlChangeset } from '#lib/graphql-changeset'
|
4
|
+
import { GraphQLPath } from '#lib/graphql-path/$'
|
5
|
+
import type { NonEmptyArray } from '#lib/kit-temp'
|
6
|
+
import { type GraphQLNamedType, isInputObjectType, isInterfaceType, isNamedType, isObjectType } from 'graphql'
|
7
|
+
import type { AddedEvent, LifecycleEventBase, RemovedEvent } from './LifecycleEvent.js'
|
8
|
+
import type { NamedTypeLifecycle } from './NamedTypeLifecycle.js'
|
9
|
+
import { createNamedTypeLifecycle } from './NamedTypeLifecycle.js'
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Populate fields for a type that has fields (Object, Interface, or InputObject types)
|
13
|
+
*/
|
14
|
+
const populateTypeFields = (
|
15
|
+
typeLifecycle: NamedTypeLifecycle,
|
16
|
+
graphqlType: GraphQLNamedType,
|
17
|
+
date: Date,
|
18
|
+
changeSet: GraphqlChangeset.ChangeSet | null,
|
19
|
+
schema: GraphqlChangeset.VersionableSchema,
|
20
|
+
) => {
|
21
|
+
if (isObjectType(graphqlType) || isInterfaceType(graphqlType) || isInputObjectType(graphqlType)) {
|
22
|
+
const fields = graphqlType.getFields()
|
23
|
+
const typeWithFields = typeLifecycle as any
|
24
|
+
|
25
|
+
if (typeWithFields.fields) {
|
26
|
+
for (const [fieldName] of Object.entries(fields)) {
|
27
|
+
const fieldAddedEvent: AddedEvent = {
|
28
|
+
type: 'added',
|
29
|
+
date,
|
30
|
+
changeSet,
|
31
|
+
schema,
|
32
|
+
}
|
33
|
+
|
34
|
+
typeWithFields.fields[fieldName] = {
|
35
|
+
name: fieldName,
|
36
|
+
events: [fieldAddedEvent] as NonEmptyArray<LifecycleEventBase>,
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Handle field changes (add/remove) for both regular fields and input fields
|
45
|
+
*/
|
46
|
+
const handleFieldChange = (
|
47
|
+
data: Record<string, NamedTypeLifecycle>,
|
48
|
+
change: GraphqlChange.Group.FieldOperation | GraphqlChange.Group.InputFieldOperation,
|
49
|
+
changeSet: GraphqlChangeset.IntermediateChangeSetLinked,
|
50
|
+
isInputField: boolean,
|
51
|
+
) => {
|
52
|
+
const addType = isInputField ? 'INPUT_FIELD_ADDED' : 'FIELD_ADDED'
|
53
|
+
const removeType = isInputField ? 'INPUT_FIELD_REMOVED' : 'FIELD_REMOVED'
|
54
|
+
|
55
|
+
if (change.type === addType) {
|
56
|
+
const { typeName, fieldName } = GraphQLPath.Definition.parseFieldPath(change.path)
|
57
|
+
if (!typeName || !fieldName) return
|
58
|
+
|
59
|
+
const addedEvent: AddedEvent = {
|
60
|
+
type: 'added',
|
61
|
+
date: changeSet.date,
|
62
|
+
changeSet: changeSet,
|
63
|
+
schema: changeSet.after,
|
64
|
+
}
|
65
|
+
|
66
|
+
// Ensure type exists
|
67
|
+
if (!data[typeName]) {
|
68
|
+
const graphqlType = changeSet.after.data.getType(typeName)
|
69
|
+
if (!graphqlType || !isNamedType(graphqlType)) {
|
70
|
+
throw new Error(`Type ${typeName} not found in schema`)
|
71
|
+
}
|
72
|
+
|
73
|
+
const kind = Grafaid.Schema.typeKindFromClass(graphqlType)
|
74
|
+
const typeEvent: AddedEvent = {
|
75
|
+
type: 'added',
|
76
|
+
date: new Date('1970-01-01'), // Unknown when type was added
|
77
|
+
changeSet: null,
|
78
|
+
schema: { version: null, data: null },
|
79
|
+
}
|
80
|
+
data[typeName] = createNamedTypeLifecycle(typeName, kind, typeEvent)
|
81
|
+
}
|
82
|
+
|
83
|
+
const typeLifecycle = data[typeName]
|
84
|
+
if ('fields' in typeLifecycle) {
|
85
|
+
typeLifecycle.fields[fieldName] = {
|
86
|
+
name: fieldName,
|
87
|
+
events: [addedEvent],
|
88
|
+
}
|
89
|
+
}
|
90
|
+
} else if (change.type === removeType) {
|
91
|
+
const { typeName, fieldName } = GraphQLPath.Definition.parseFieldPath(change.path)
|
92
|
+
if (!typeName || !fieldName) return
|
93
|
+
|
94
|
+
const removedEvent: RemovedEvent = {
|
95
|
+
type: 'removed',
|
96
|
+
date: changeSet.date,
|
97
|
+
changeSet: changeSet,
|
98
|
+
schema: changeSet.after,
|
99
|
+
}
|
100
|
+
|
101
|
+
const typeLifecycle = data[typeName]
|
102
|
+
if (typeLifecycle && 'fields' in typeLifecycle && typeLifecycle.fields[fieldName]) {
|
103
|
+
typeLifecycle.fields[fieldName].events = [
|
104
|
+
removedEvent,
|
105
|
+
...typeLifecycle.fields[fieldName].events,
|
106
|
+
] as NonEmptyArray<any>
|
107
|
+
}
|
108
|
+
}
|
109
|
+
// TODO: Handle FIELD_TYPE_CHANGED / INPUT_FIELD_TYPE_CHANGED
|
110
|
+
}
|
111
|
+
|
112
|
+
/**
|
113
|
+
* Create lifecycle entries for all types in an initial schema (treat as "create events")
|
114
|
+
*/
|
115
|
+
export const createInitialTypeLifecycles = (
|
116
|
+
data: Record<string, NamedTypeLifecycle>,
|
117
|
+
changeSet: GraphqlChangeset.InitialChangeSetLinked,
|
118
|
+
) => {
|
119
|
+
const typeMap = changeSet.after.data.getTypeMap()
|
120
|
+
|
121
|
+
for (const [typeName, graphqlType] of Object.entries(typeMap)) {
|
122
|
+
// Skip built-in types that start with __
|
123
|
+
if (typeName.startsWith('__')) continue
|
124
|
+
|
125
|
+
if (!isNamedType(graphqlType)) continue
|
126
|
+
|
127
|
+
const addedEvent: AddedEvent = {
|
128
|
+
type: 'added',
|
129
|
+
date: changeSet.date,
|
130
|
+
changeSet: changeSet,
|
131
|
+
schema: changeSet.after,
|
132
|
+
}
|
133
|
+
|
134
|
+
const kind = Grafaid.Schema.typeKindFromClass(graphqlType)
|
135
|
+
const typeLifecycle = createNamedTypeLifecycle(typeName, kind, addedEvent)
|
136
|
+
data[typeName] = typeLifecycle
|
137
|
+
|
138
|
+
// Populate fields for types that have them
|
139
|
+
populateTypeFields(typeLifecycle, graphqlType, changeSet.date, changeSet, changeSet.after)
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
/**
|
144
|
+
* Handler for type operations (TYPE_ADDED, TYPE_REMOVED, TYPE_KIND_CHANGED)
|
145
|
+
*/
|
146
|
+
export const TypeOperation = (
|
147
|
+
data: Record<string, NamedTypeLifecycle>,
|
148
|
+
change: GraphqlChange.Group.TypeOperation,
|
149
|
+
changeSet: GraphqlChangeset.IntermediateChangeSetLinked,
|
150
|
+
) => {
|
151
|
+
if (change.type === 'TYPE_ADDED') {
|
152
|
+
const typeName = change.path || change.message || 'Unknown'
|
153
|
+
if (!typeName) return
|
154
|
+
|
155
|
+
const addedEvent: AddedEvent = {
|
156
|
+
type: 'added',
|
157
|
+
date: changeSet.date,
|
158
|
+
changeSet: changeSet,
|
159
|
+
schema: changeSet.after,
|
160
|
+
}
|
161
|
+
|
162
|
+
// Get actual type from schema to determine kind
|
163
|
+
const graphqlType = changeSet.after.data.getType(typeName)
|
164
|
+
if (!graphqlType || !isNamedType(graphqlType)) {
|
165
|
+
throw new Error(`Type ${typeName} not found in schema`)
|
166
|
+
}
|
167
|
+
|
168
|
+
const kind = Grafaid.Schema.typeKindFromClass(graphqlType)
|
169
|
+
const typeLifecycle = createNamedTypeLifecycle(typeName, kind, addedEvent)
|
170
|
+
data[typeName] = typeLifecycle
|
171
|
+
|
172
|
+
// Populate fields for types that have them
|
173
|
+
populateTypeFields(typeLifecycle, graphqlType, changeSet.date, changeSet, changeSet.after)
|
174
|
+
} else if (change.type === 'TYPE_REMOVED') {
|
175
|
+
const typeName = change.path || change.message || 'Unknown'
|
176
|
+
if (!typeName) return
|
177
|
+
|
178
|
+
const removedEvent: RemovedEvent = {
|
179
|
+
type: 'removed',
|
180
|
+
date: changeSet.date,
|
181
|
+
changeSet: changeSet,
|
182
|
+
schema: changeSet.after,
|
183
|
+
}
|
184
|
+
|
185
|
+
// Add removal event to existing type
|
186
|
+
if (data[typeName]) {
|
187
|
+
data[typeName].events = [removedEvent, ...data[typeName].events] as NonEmptyArray<any>
|
188
|
+
}
|
189
|
+
} else if (change.type === 'TYPE_KIND_CHANGED') {
|
190
|
+
// TODO: Handle type kind changes
|
191
|
+
// This would update the kind property of an existing type
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Handler for field operations (FIELD_ADDED, FIELD_REMOVED, FIELD_TYPE_CHANGED)
|
197
|
+
*/
|
198
|
+
export const FieldOperation = (
|
199
|
+
data: Record<string, NamedTypeLifecycle>,
|
200
|
+
change: GraphqlChange.Group.FieldOperation,
|
201
|
+
changeSet: GraphqlChangeset.IntermediateChangeSetLinked,
|
202
|
+
) => {
|
203
|
+
handleFieldChange(data, change, changeSet, false)
|
204
|
+
}
|
205
|
+
|
206
|
+
/**
|
207
|
+
* Handler for input field operations (INPUT_FIELD_ADDED, INPUT_FIELD_REMOVED, INPUT_FIELD_TYPE_CHANGED)
|
208
|
+
*/
|
209
|
+
export const InputFieldOperation = (
|
210
|
+
data: Record<string, NamedTypeLifecycle>,
|
211
|
+
change: GraphqlChange.Group.InputFieldOperation,
|
212
|
+
changeSet: GraphqlChangeset.IntermediateChangeSetLinked,
|
213
|
+
) => {
|
214
|
+
handleFieldChange(data, change, changeSet, true)
|
215
|
+
}
|
@@ -0,0 +1,234 @@
|
|
1
|
+
import { GraphQLPath } from '#lib/graphql-path'
|
2
|
+
import type { FieldLifecycle, InputFieldLifecycle } from './FieldLifecycle.js'
|
3
|
+
import type { AddedEvent, RemovedEvent } from './LifecycleEvent.js'
|
4
|
+
import type { NamedTypeLifecycle } from './NamedTypeLifecycle.js'
|
5
|
+
import type { SchemaLifecycle } from './SchemaLifecycle.js'
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Get lifecycle data for a specific type
|
9
|
+
*/
|
10
|
+
export const getTypeLifecycle = (
|
11
|
+
lifecycle: SchemaLifecycle,
|
12
|
+
typeName: string,
|
13
|
+
): NamedTypeLifecycle | null => {
|
14
|
+
return lifecycle.data[typeName] || null
|
15
|
+
}
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Get lifecycle data for a specific field
|
19
|
+
*/
|
20
|
+
export const getFieldLifecycle = (
|
21
|
+
lifecycle: SchemaLifecycle,
|
22
|
+
path: GraphQLPath.Definition.FieldDefinitionPath,
|
23
|
+
): FieldLifecycle | InputFieldLifecycle | null => {
|
24
|
+
const typeName = GraphQLPath.Definition.getType(path)
|
25
|
+
const fieldName = GraphQLPath.Definition.getField(path)
|
26
|
+
|
27
|
+
const typeLifecycle = getTypeLifecycle(lifecycle, typeName)
|
28
|
+
if (!typeLifecycle) return null
|
29
|
+
|
30
|
+
if ('fields' in typeLifecycle) {
|
31
|
+
return typeLifecycle.fields[fieldName] || null
|
32
|
+
}
|
33
|
+
|
34
|
+
return null
|
35
|
+
}
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Check if a type is currently available (not removed)
|
39
|
+
*/
|
40
|
+
export const isTypeCurrentlyAvailable = (
|
41
|
+
lifecycle: SchemaLifecycle,
|
42
|
+
typeName: string,
|
43
|
+
): boolean => {
|
44
|
+
const typeLifecycle = getTypeLifecycle(lifecycle, typeName)
|
45
|
+
if (!typeLifecycle) return false
|
46
|
+
|
47
|
+
const mostRecentEvent = typeLifecycle.events[0]
|
48
|
+
return (mostRecentEvent as AddedEvent | RemovedEvent).type === 'added'
|
49
|
+
}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Check if a field is currently available (not removed)
|
53
|
+
*/
|
54
|
+
export const isFieldCurrentlyAvailable = (
|
55
|
+
lifecycle: SchemaLifecycle,
|
56
|
+
path: GraphQLPath.Definition.FieldDefinitionPath,
|
57
|
+
): boolean => {
|
58
|
+
const fieldLifecycle = getFieldLifecycle(lifecycle, path)
|
59
|
+
if (!fieldLifecycle) return false
|
60
|
+
|
61
|
+
const mostRecentEvent = fieldLifecycle.events[0]
|
62
|
+
return (mostRecentEvent as AddedEvent | RemovedEvent).type === 'added'
|
63
|
+
}
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Get the date when a type was first added
|
67
|
+
*/
|
68
|
+
export const getTypeAddedDate = (
|
69
|
+
lifecycle: SchemaLifecycle,
|
70
|
+
typeName: string,
|
71
|
+
): Date | null => {
|
72
|
+
const typeLifecycle = getTypeLifecycle(lifecycle, typeName)
|
73
|
+
if (!typeLifecycle) return null
|
74
|
+
|
75
|
+
// Find the first (oldest) added event
|
76
|
+
const addedEvents = typeLifecycle.events.filter(
|
77
|
+
(event): event is AddedEvent => (event as AddedEvent | RemovedEvent).type === 'added',
|
78
|
+
)
|
79
|
+
|
80
|
+
if (addedEvents.length === 0) return null
|
81
|
+
|
82
|
+
// Events are in reverse chronological order, so last item is oldest
|
83
|
+
return addedEvents[addedEvents.length - 1]?.date || null
|
84
|
+
}
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Get the date when a type was most recently removed (if any)
|
88
|
+
*/
|
89
|
+
export const getTypeRemovedDate = (
|
90
|
+
lifecycle: SchemaLifecycle,
|
91
|
+
typeName: string,
|
92
|
+
): Date | null => {
|
93
|
+
const typeLifecycle = getTypeLifecycle(lifecycle, typeName)
|
94
|
+
if (!typeLifecycle) return null
|
95
|
+
|
96
|
+
// Find the most recent removed event
|
97
|
+
const removedEvent = typeLifecycle.events.find(
|
98
|
+
(event): event is RemovedEvent => (event as AddedEvent | RemovedEvent).type === 'removed',
|
99
|
+
)
|
100
|
+
|
101
|
+
return removedEvent?.date || null
|
102
|
+
}
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Get the date when a field was first added
|
106
|
+
*/
|
107
|
+
export const getFieldAddedDate = (
|
108
|
+
lifecycle: SchemaLifecycle,
|
109
|
+
path: GraphQLPath.Definition.FieldDefinitionPath,
|
110
|
+
): Date | null => {
|
111
|
+
const fieldLifecycle = getFieldLifecycle(lifecycle, path)
|
112
|
+
if (!fieldLifecycle) return null
|
113
|
+
|
114
|
+
// Find the first (oldest) added event
|
115
|
+
const addedEvents = fieldLifecycle.events.filter(
|
116
|
+
(event): event is AddedEvent => (event as AddedEvent | RemovedEvent).type === 'added',
|
117
|
+
)
|
118
|
+
|
119
|
+
if (addedEvents.length === 0) return null
|
120
|
+
|
121
|
+
// Events are in reverse chronological order, so last item is oldest
|
122
|
+
return addedEvents[addedEvents.length - 1]?.date || null
|
123
|
+
}
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Get the date when a field was most recently removed (if any)
|
127
|
+
*/
|
128
|
+
export const getFieldRemovedDate = (
|
129
|
+
lifecycle: SchemaLifecycle,
|
130
|
+
path: GraphQLPath.Definition.FieldDefinitionPath,
|
131
|
+
): Date | null => {
|
132
|
+
const fieldLifecycle = getFieldLifecycle(lifecycle, path)
|
133
|
+
if (!fieldLifecycle) return null
|
134
|
+
|
135
|
+
// Find the most recent removed event
|
136
|
+
const removedEvent = fieldLifecycle.events.find(
|
137
|
+
(event): event is RemovedEvent => (event as AddedEvent | RemovedEvent).type === 'removed',
|
138
|
+
)
|
139
|
+
|
140
|
+
return removedEvent?.date || null
|
141
|
+
}
|
142
|
+
|
143
|
+
/**
|
144
|
+
* Get all types that were added on a specific date
|
145
|
+
*/
|
146
|
+
export const getTypesAddedOnDate = (
|
147
|
+
lifecycle: SchemaLifecycle,
|
148
|
+
date: Date,
|
149
|
+
): string[] => {
|
150
|
+
const result: string[] = []
|
151
|
+
|
152
|
+
for (const [typeName, typeLifecycle] of Object.entries(lifecycle.data)) {
|
153
|
+
const addedOnDate = typeLifecycle.events.some(
|
154
|
+
event => (event as AddedEvent | RemovedEvent).type === 'added' && event.date.getTime() === date.getTime(),
|
155
|
+
)
|
156
|
+
|
157
|
+
if (addedOnDate) {
|
158
|
+
result.push(typeName)
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
return result
|
163
|
+
}
|
164
|
+
|
165
|
+
/**
|
166
|
+
* Get all types that were removed on a specific date
|
167
|
+
*/
|
168
|
+
export const getTypesRemovedOnDate = (
|
169
|
+
lifecycle: SchemaLifecycle,
|
170
|
+
date: Date,
|
171
|
+
): string[] => {
|
172
|
+
const result: string[] = []
|
173
|
+
|
174
|
+
for (const [typeName, typeLifecycle] of Object.entries(lifecycle.data)) {
|
175
|
+
const removedOnDate = typeLifecycle.events.some(
|
176
|
+
event => (event as AddedEvent | RemovedEvent).type === 'removed' && event.date.getTime() === date.getTime(),
|
177
|
+
)
|
178
|
+
|
179
|
+
if (removedOnDate) {
|
180
|
+
result.push(typeName)
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
return result
|
185
|
+
}
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Get a human-readable description of a type's lifecycle status
|
189
|
+
*/
|
190
|
+
export const getTypeLifecycleDescription = (
|
191
|
+
lifecycle: SchemaLifecycle,
|
192
|
+
typeName: string,
|
193
|
+
): string => {
|
194
|
+
const typeLifecycle = getTypeLifecycle(lifecycle, typeName)
|
195
|
+
if (!typeLifecycle) return `Type "${typeName}" not found`
|
196
|
+
|
197
|
+
const isAvailable = isTypeCurrentlyAvailable(lifecycle, typeName)
|
198
|
+
const addedDate = getTypeAddedDate(lifecycle, typeName)
|
199
|
+
const removedDate = getTypeRemovedDate(lifecycle, typeName)
|
200
|
+
|
201
|
+
if (isAvailable) {
|
202
|
+
return `Available since ${addedDate?.toISOString().split('T')[0] || 'unknown'}`
|
203
|
+
} else if (removedDate) {
|
204
|
+
return `Removed on ${removedDate.toISOString().split('T')[0]}`
|
205
|
+
} else {
|
206
|
+
return 'Status unknown'
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
/**
|
211
|
+
* Get a human-readable description of a field's lifecycle status
|
212
|
+
*/
|
213
|
+
export const getFieldLifecycleDescription = (
|
214
|
+
lifecycle: SchemaLifecycle,
|
215
|
+
path: GraphQLPath.Definition.FieldDefinitionPath,
|
216
|
+
): string => {
|
217
|
+
const typeName = GraphQLPath.Definition.getType(path)
|
218
|
+
const fieldName = GraphQLPath.Definition.getField(path)
|
219
|
+
|
220
|
+
const fieldLifecycle = getFieldLifecycle(lifecycle, path)
|
221
|
+
if (!fieldLifecycle) return `Field "${typeName}.${fieldName}" not found`
|
222
|
+
|
223
|
+
const isAvailable = isFieldCurrentlyAvailable(lifecycle, path)
|
224
|
+
const addedDate = getFieldAddedDate(lifecycle, path)
|
225
|
+
const removedDate = getFieldRemovedDate(lifecycle, path)
|
226
|
+
|
227
|
+
if (isAvailable) {
|
228
|
+
return `Available since ${addedDate?.toISOString().split('T')[0] || 'unknown'}`
|
229
|
+
} else if (removedDate) {
|
230
|
+
return `Removed on ${removedDate.toISOString().split('T')[0]}`
|
231
|
+
} else {
|
232
|
+
return 'Status unknown'
|
233
|
+
}
|
234
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * as SuperjsonCodecs from './$$.js'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './theme.js'
|
package/src/lib/theme/$.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Namespace export
|
2
|
-
export * as Theme from '
|
2
|
+
export * as Theme from './$$.js'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * as VitePluginConfig from './$$.js'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { VitePluginJson } from '#lib/vite-plugin-json
|
1
|
+
import type { VitePluginJson } from '#lib/vite-plugin-json'
|
2
2
|
import { debugPolen } from '#singletons/debug'
|
3
3
|
import { type ComputedRef, effect, isRef } from '@vue/reactivity'
|
4
4
|
import type { Plugin, ViteDevServer } from 'vite'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * as ViteVirtual from './$$.js'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Vite } from '#dep/vite/index'
|
2
|
-
import { StackProcessor } from '
|
2
|
+
import { StackProcessor } from '#lib/stack-processor'
|
3
3
|
import { debug } from './debug.js'
|
4
4
|
import type { HookLoad, HookResolveId } from './hooks.js'
|
5
5
|
import type { Identifier } from './identifier.js'
|
package/src/sandbox.ts
CHANGED
@@ -1,43 +1 @@
|
|
1
|
-
|
2
|
-
import { parseGraphQLWithTreeSitter } from './template/components/GraphQLInteractive/lib/parser.js'
|
3
|
-
|
4
|
-
const schema = buildSchema(`
|
5
|
-
type Pokemon {
|
6
|
-
id: ID!
|
7
|
-
name: String!
|
8
|
-
types: [PokemonType!]!
|
9
|
-
abilities: [Ability!]!
|
10
|
-
}
|
11
|
-
|
12
|
-
type Ability {
|
13
|
-
name: String!
|
14
|
-
description: String!
|
15
|
-
}
|
16
|
-
|
17
|
-
enum PokemonType {
|
18
|
-
FIRE
|
19
|
-
WATER
|
20
|
-
GRASS
|
21
|
-
ELECTRIC
|
22
|
-
PSYCHIC
|
23
|
-
}
|
24
|
-
|
25
|
-
type Query {
|
26
|
-
pokemon(id: ID!): Pokemon
|
27
|
-
}
|
28
|
-
`)
|
29
|
-
|
30
|
-
const code = `query GetPokemon($id: ID!) {
|
31
|
-
pokemon(id: $id) {
|
32
|
-
id
|
33
|
-
name
|
34
|
-
}
|
35
|
-
}`
|
36
|
-
|
37
|
-
console.log('Testing GraphQL parser...')
|
38
|
-
const tokens = await parseGraphQLWithTreeSitter(code, [], schema)
|
39
|
-
console.log('\nTotal tokens:', tokens.length)
|
40
|
-
console.log('\nInteractive tokens:')
|
41
|
-
tokens.filter(t => t.polen.isInteractive()).forEach(t => {
|
42
|
-
console.log(`- "${t.text}" (${t.highlighter.getCssClass()}) -> ${t.polen.getReferenceUrl()}`)
|
43
|
-
})
|
1
|
+
// Temporary sandbox file for testing
|
@@ -1,5 +1,5 @@
|
|
1
|
+
import type { GraphqlChange } from '#lib/graphql-change'
|
1
2
|
import { CRITICALITY_CONFIG, type CriticalityLevel } from '#lib/graphql-change/criticality'
|
2
|
-
import type { GraphqlChange } from '#lib/graphql-change/index'
|
3
3
|
import { Heading } from '@radix-ui/themes'
|
4
4
|
import type React from 'react'
|
5
5
|
|