polen 0.11.0-next.12 → 0.11.0-next.14
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/README.md +1 -1
- 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/hooks/helpers.d.ts +5 -0
- package/build/api/hooks/helpers.d.ts.map +1 -0
- package/build/api/hooks/helpers.js +4 -0
- package/build/api/hooks/helpers.js.map +1 -0
- package/build/api/hooks/index.d.ts +3 -0
- package/build/api/hooks/index.d.ts.map +1 -0
- package/build/api/hooks/index.js +3 -0
- package/build/api/hooks/index.js.map +1 -0
- package/build/api/hooks/types.d.ts +11 -0
- package/build/api/hooks/types.d.ts.map +1 -0
- package/build/api/hooks/types.js +2 -0
- package/build/api/hooks/types.js.map +1 -0
- 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 +2 -1
- package/build/api/vite/plugins/core.d.ts.map +1 -1
- package/build/api/vite/plugins/core.js +47 -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/exports/polen.d.ts +1 -0
- package/build/exports/polen.d.ts.map +1 -1
- package/build/exports/polen.js +1 -0
- package/build/exports/polen.js.map +1 -1
- package/build/exports/radix-ui/react-icons.d.ts +2 -0
- package/build/exports/radix-ui/react-icons.d.ts.map +1 -0
- package/build/exports/radix-ui/react-icons.js +4 -0
- package/build/exports/radix-ui/react-icons.js.map +1 -0
- package/build/exports/radix-ui/themes.d.ts +2 -0
- package/build/exports/radix-ui/themes.d.ts.map +1 -0
- package/build/exports/radix-ui/themes.js +4 -0
- package/build/exports/radix-ui/themes.js.map +1 -0
- 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/navbar/DefaultNavbar.d.ts +4 -0
- package/build/template/components/navbar/DefaultNavbar.d.ts.map +1 -0
- package/build/template/components/navbar/DefaultNavbar.js +10 -0
- package/build/template/components/navbar/DefaultNavbar.js.map +1 -0
- package/build/template/components/navbar/Item.d.ts +7 -0
- package/build/template/components/navbar/Item.d.ts.map +1 -0
- package/build/template/components/navbar/Item.js +6 -0
- package/build/template/components/navbar/Item.js.map +1 -0
- 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 +12 -2
- 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 +124 -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/hooks/helpers.ts +5 -0
- package/src/api/hooks/index.ts +2 -0
- package/src/api/hooks/types.ts +8 -0
- 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 +51 -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/exports/polen.ts +1 -0
- package/src/exports/radix-ui/react-icons.ts +3 -0
- package/src/exports/radix-ui/themes.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/navbar/DefaultNavbar.tsx +22 -0
- package/src/template/components/navbar/Item.tsx +11 -0
- 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 +25 -18
- 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/vite-env.d.ts +5 -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/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 @@
|
|
1
|
+
{"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/lib/react-router-loader/$$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AAIzC,KAAK,MAAM,GAAG,EAAE,CAAC,MAAM,CAAA;AAEvB,eAAO,MAAM,YAAY,GAAI,MAAM,SAAS,MAAM,EAAE,QAAQ,MAAM,KAAG,MASpE,CAAA;AAMD,eAAO,MAAM,aAAa,GAAI,MAAM,SAAS,MAAM,EAAE,cAAc,MAAM,KAAG,OAAO,CACjF,UAAU,CAAC,MAAM,CAAC,CAiBnB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$$.js","sourceRoot":"","sources":["../../../src/lib/react-router-loader/$$.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,IAAI,eAAe,EAAE,kBAAkB,IAAI,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAC3G,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAIzD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAwB,MAAc,EAAU,EAAE;IAC5E,mBAAmB;IACnB,OAAO,KAAK,EAAE,GAAG,IAAW,EAAE,EAAE;QAC9B,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,IAAI,CAAC,CAAA;QAClC,MAAM,UAAU,GAAe;YAC7B,aAAa,EAAE,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC;SACzC,CAAA;QACD,OAAO,UAAU,CAAA;IACnB,CAAC,CAAA;AACH,CAAC,CAAA;AAMD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAwB,WAAoB,EAEvE,EAAE;IACF,MAAM,UAAU,GAAG,CACjB,WAAW;QACT,CAAC,CAAC,oBAAoB,CAAC,WAAW,CAAC;QACnC,CAAC,CAAC,eAAe,EAAE,CACR,CAAA;IAEf,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,sCAAsC,WAAW,IAAI,UAAU,EAAE,CAAC,CAAA;IACpF,CAAC;IAED,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAA;IAEpC,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;IAE3C,OAAO,IAAW,CAAA;AACpB,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/lib/react-router-loader/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,SAAS,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$.js","sourceRoot":"","sources":["../../../src/lib/react-router-loader/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,SAAS,CAAA"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export * from './FieldLifecycle.js';
|
2
|
+
export * from './LifecycleEvent.js';
|
3
|
+
export * from './NamedTypeLifecycle.js';
|
4
|
+
export * from './SchemaLifecycle.js';
|
5
|
+
export { getFieldAddedDate, getFieldLifecycle, getFieldLifecycleDescription, getFieldRemovedDate, getTypeAddedDate, getTypeLifecycle, getTypeLifecycleDescription, getTypeRemovedDate, getTypesAddedOnDate, getTypesRemovedOnDate, isFieldCurrentlyAvailable, isTypeCurrentlyAvailable, } from './utils.js';
|
6
|
+
//# sourceMappingURL=$$.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/$$.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AAEpC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,4BAA4B,EAC5B,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,YAAY,CAAA"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export * from './FieldLifecycle.js';
|
2
|
+
export * from './LifecycleEvent.js';
|
3
|
+
export * from './NamedTypeLifecycle.js';
|
4
|
+
export * from './SchemaLifecycle.js';
|
5
|
+
export { getFieldAddedDate, getFieldLifecycle, getFieldLifecycleDescription, getFieldRemovedDate, getTypeAddedDate, getTypeLifecycle, getTypeLifecycleDescription, getTypeRemovedDate, getTypesAddedOnDate, getTypesRemovedOnDate, isFieldCurrentlyAvailable, isTypeCurrentlyAvailable, } from './utils.js';
|
6
|
+
//# sourceMappingURL=$$.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$$.js","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/$$.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AAEpC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,4BAA4B,EAC5B,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,YAAY,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,SAAS,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"$.js","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,SAAS,CAAA"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { NonEmptyArray } from '#lib/kit-temp';
|
2
|
+
import type { LifecycleEventBase } from './LifecycleEvent.js';
|
3
|
+
/**
|
4
|
+
* Field lifecycle for object and interface types
|
5
|
+
*/
|
6
|
+
export interface FieldLifecycle {
|
7
|
+
name: string;
|
8
|
+
events: NonEmptyArray<LifecycleEventBase>;
|
9
|
+
}
|
10
|
+
/**
|
11
|
+
* Input field lifecycle for input object types
|
12
|
+
*/
|
13
|
+
export interface InputFieldLifecycle {
|
14
|
+
name: string;
|
15
|
+
events: NonEmptyArray<LifecycleEventBase>;
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=FieldLifecycle.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FieldLifecycle.d.ts","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/FieldLifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE7D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAA;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAA;CAC1C"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FieldLifecycle.js","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/FieldLifecycle.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { GraphqlChangeset } from '#lib/graphql-changeset';
|
2
|
+
/**
|
3
|
+
* Base lifecycle event
|
4
|
+
*/
|
5
|
+
export interface LifecycleEventBase {
|
6
|
+
date: Date;
|
7
|
+
/**
|
8
|
+
* null if unlinked. Soemthing external should use `date` to link changeSet.
|
9
|
+
*/
|
10
|
+
changeSet: GraphqlChangeset.ChangeSet | null;
|
11
|
+
schema: GraphqlChangeset.VersionableSchema;
|
12
|
+
}
|
13
|
+
/**
|
14
|
+
* Event when a type or field is added
|
15
|
+
*/
|
16
|
+
export interface AddedEvent extends LifecycleEventBase {
|
17
|
+
type: 'added';
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Event when a type or field is removed
|
21
|
+
*/
|
22
|
+
export interface RemovedEvent extends LifecycleEventBase {
|
23
|
+
type: 'removed';
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=LifecycleEvent.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LifecycleEvent.d.ts","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/LifecycleEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE9D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,CAAA;IACV;;OAEG;IACH,SAAS,EAAE,gBAAgB,CAAC,SAAS,GAAG,IAAI,CAAA;IAC5C,MAAM,EAAE,gBAAgB,CAAC,iBAAiB,CAAA;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD,IAAI,EAAE,OAAO,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD,IAAI,EAAE,SAAS,CAAA;CAChB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LifecycleEvent.js","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/LifecycleEvent.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { Grafaid } from '#lib/grafaid';
|
2
|
+
import type { NonEmptyArray } from '#lib/kit-temp';
|
3
|
+
import type { FieldLifecycle, InputFieldLifecycle } from './FieldLifecycle.js';
|
4
|
+
import type { AddedEvent, LifecycleEventBase } from './LifecycleEvent.js';
|
5
|
+
/**
|
6
|
+
* Union of all possible named type lifecycles
|
7
|
+
*/
|
8
|
+
export type NamedTypeLifecycle = ObjectTypeLifecycle | UnionTypeLifecycle | InterfaceTypeLifecycle | EnumTypeLifecycle | ScalarTypeLifecycle | InputObjectTypeLifecycle;
|
9
|
+
/**
|
10
|
+
* Object type lifecycle with fields
|
11
|
+
*/
|
12
|
+
export interface ObjectTypeLifecycle extends NamedTypeLifecycleBase {
|
13
|
+
kind: Grafaid.Schema.TypeKindName.Object;
|
14
|
+
fields: Record<string, FieldLifecycle>;
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* Union type lifecycle (no fields)
|
18
|
+
*/
|
19
|
+
export interface UnionTypeLifecycle extends NamedTypeLifecycleBase {
|
20
|
+
kind: Grafaid.Schema.TypeKindName.Union;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Interface type lifecycle with fields
|
24
|
+
*/
|
25
|
+
export interface InterfaceTypeLifecycle extends NamedTypeLifecycleBase {
|
26
|
+
kind: Grafaid.Schema.TypeKindName.Interface;
|
27
|
+
fields: Record<string, FieldLifecycle>;
|
28
|
+
}
|
29
|
+
/**
|
30
|
+
* Enum type lifecycle (no values for now)
|
31
|
+
*/
|
32
|
+
export interface EnumTypeLifecycle extends NamedTypeLifecycleBase {
|
33
|
+
kind: Grafaid.Schema.TypeKindName.Enum;
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* Scalar type lifecycle (no fields or values)
|
37
|
+
*/
|
38
|
+
export interface ScalarTypeLifecycle extends NamedTypeLifecycleBase {
|
39
|
+
kind: Grafaid.Schema.TypeKindName.Scalar;
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* Input object type lifecycle with input fields
|
43
|
+
*/
|
44
|
+
export interface InputObjectTypeLifecycle extends NamedTypeLifecycleBase {
|
45
|
+
kind: Grafaid.Schema.TypeKindName.InputObject;
|
46
|
+
fields: Record<string, InputFieldLifecycle>;
|
47
|
+
}
|
48
|
+
/**
|
49
|
+
* Base interface for all named type lifecycles
|
50
|
+
*/
|
51
|
+
export interface NamedTypeLifecycleBase {
|
52
|
+
name: string;
|
53
|
+
events: NonEmptyArray<LifecycleEventBase>;
|
54
|
+
}
|
55
|
+
/**
|
56
|
+
* Create a named type lifecycle with the correct type-specific structure
|
57
|
+
*/
|
58
|
+
export declare const createNamedTypeLifecycle: (typeName: string, kind: Grafaid.Schema.TypeKindName, addedEvent: AddedEvent) => NamedTypeLifecycle;
|
59
|
+
//# sourceMappingURL=NamedTypeLifecycle.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NamedTypeLifecycle.d.ts","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/NamedTypeLifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAEzE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,mBAAmB,GACnB,kBAAkB,GAClB,sBAAsB,GACtB,iBAAiB,GACjB,mBAAmB,GACnB,wBAAwB,CAAA;AAE5B;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IACjE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAA;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAA;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,sBAAsB;IACpE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,SAAS,CAAA;IAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,sBAAsB;IAC/D,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAA;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IACjE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAA;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB;IACtE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,WAAW,CAAA;IAC7C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAA;CAC1C;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,MAAM,EAChB,MAAM,OAAO,CAAC,MAAM,CAAC,YAAY,EACjC,YAAY,UAAU,KACrB,kBAmBF,CAAA"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { Grafaid } from '#lib/grafaid';
|
2
|
+
/**
|
3
|
+
* Create a named type lifecycle with the correct type-specific structure
|
4
|
+
*/
|
5
|
+
export const createNamedTypeLifecycle = (typeName, kind, addedEvent) => {
|
6
|
+
const base = { name: typeName, events: [addedEvent] };
|
7
|
+
switch (kind) {
|
8
|
+
case Grafaid.Schema.TypeKindNameEnum.Object:
|
9
|
+
return { ...base, kind, fields: {} };
|
10
|
+
case Grafaid.Schema.TypeKindNameEnum.Interface:
|
11
|
+
return { ...base, kind, fields: {} };
|
12
|
+
case Grafaid.Schema.TypeKindNameEnum.InputObject:
|
13
|
+
return { ...base, kind, fields: {} };
|
14
|
+
case Grafaid.Schema.TypeKindNameEnum.Union:
|
15
|
+
return { ...base, kind };
|
16
|
+
case Grafaid.Schema.TypeKindNameEnum.Enum:
|
17
|
+
return { ...base, kind };
|
18
|
+
case Grafaid.Schema.TypeKindNameEnum.Scalar:
|
19
|
+
return { ...base, kind };
|
20
|
+
default:
|
21
|
+
throw new Error(`Unknown type kind: ${kind}`);
|
22
|
+
}
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=NamedTypeLifecycle.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NamedTypeLifecycle.js","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/NamedTypeLifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAqEtC;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,QAAgB,EAChB,IAAiC,EACjC,UAAsB,EACF,EAAE;IACtB,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,UAAU,CAAsC,EAAE,CAAA;IAE1F,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM;YACzC,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAyB,CAAA;QAC7D,KAAK,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS;YAC5C,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAA4B,CAAA;QAChE,KAAK,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,WAAW;YAC9C,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAA8B,CAAA;QAClE,KAAK,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,KAAK;YACxC,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAwB,CAAA;QAChD,KAAK,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI;YACvC,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAuB,CAAA;QAC/C,KAAK,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM;YACzC,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAyB,CAAA;QACjD;YACE,MAAM,IAAI,KAAK,CAAC,sBAAsB,IAAI,EAAE,CAAC,CAAA;IACjD,CAAC;AACH,CAAC,CAAA"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { GraphqlChange } from '#lib/graphql-change';
|
2
|
+
import { GraphqlChangeset } from '#lib/graphql-changeset';
|
3
|
+
import type { NamedTypeLifecycle } from './NamedTypeLifecycle.js';
|
4
|
+
/**
|
5
|
+
* Schema lifecycle data structure containing all types and their evolution
|
6
|
+
*/
|
7
|
+
export interface SchemaLifecycle {
|
8
|
+
data: Record<string, NamedTypeLifecycle>;
|
9
|
+
}
|
10
|
+
export type SupportedChange = GraphqlChange.Group.TypeOperation | GraphqlChange.Group.FieldOperation | GraphqlChange.Group.InputFieldOperation;
|
11
|
+
/**
|
12
|
+
* Build schema lifecycle data from changesets
|
13
|
+
*/
|
14
|
+
export declare const create: (changelog: GraphqlChangeset.ChangelogLinked) => SchemaLifecycle;
|
15
|
+
/**
|
16
|
+
* Convert SchemaLifecycle to JSON string
|
17
|
+
*/
|
18
|
+
export declare const toJson: (lifecycle: SchemaLifecycle, options?: {
|
19
|
+
pretty?: boolean;
|
20
|
+
}) => string;
|
21
|
+
/**
|
22
|
+
* Parse SchemaLifecycle from JSON string
|
23
|
+
*/
|
24
|
+
export declare const fromJson: (json: string) => SchemaLifecycle;
|
25
|
+
//# sourceMappingURL=SchemaLifecycle.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SchemaLifecycle.d.ts","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/SchemaLifecycle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAIzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAkBjE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAA;CACzC;AAED,MAAM,MAAM,eAAe,GACvB,aAAa,CAAC,KAAK,CAAC,aAAa,GACjC,aAAa,CAAC,KAAK,CAAC,cAAc,GAClC,aAAa,CAAC,KAAK,CAAC,mBAAmB,CAAA;AAE3C;;GAEG;AACH,eAAO,MAAM,MAAM,GACjB,WAAW,gBAAgB,CAAC,eAAe,KAC1C,eAwBF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,WAAW,eAAe,EAAE,UAAU;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,KAAG,MAOnF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,KAAG,eAEvC,CAAA"}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { Grafaid } from '#lib/grafaid/$';
|
2
|
+
import { GraphqlChange } from '#lib/graphql-change';
|
3
|
+
import { GraphqlChangeset } from '#lib/graphql-changeset';
|
4
|
+
import { SuperJSON } from 'superjson';
|
5
|
+
import * as Handlers from './handlers.js';
|
6
|
+
const superjson = new SuperJSON();
|
7
|
+
// Register codec to handle GraphQL schemas - convert to null to avoid circular refs
|
8
|
+
superjson.registerCustom({
|
9
|
+
isApplicable: (v) => v?.constructor?.name === 'GraphQLSchema',
|
10
|
+
serialize: () => null,
|
11
|
+
deserialize: () => null,
|
12
|
+
}, 'GraphQLSchema');
|
13
|
+
// Register codec to handle ChangeSet objects - convert to null as per type design
|
14
|
+
superjson.registerCustom({
|
15
|
+
isApplicable: GraphqlChangeset.isChangeSet,
|
16
|
+
serialize: () => ({ value: null }),
|
17
|
+
deserialize: () => null,
|
18
|
+
}, 'ChangeSet');
|
19
|
+
/**
|
20
|
+
* Build schema lifecycle data from changesets
|
21
|
+
*/
|
22
|
+
export const create = (changelog) => {
|
23
|
+
const data = {};
|
24
|
+
// Process changesets in chronological order (oldest to newest)
|
25
|
+
for (const changeSet of changelog) {
|
26
|
+
if (GraphqlChangeset.isInitialChangeSetLinked(changeSet)) {
|
27
|
+
Handlers.createInitialTypeLifecycles(data, changeSet);
|
28
|
+
continue;
|
29
|
+
}
|
30
|
+
for (const change of changeSet.changes) {
|
31
|
+
if (GraphqlChange.Group.isTypeOperation(change)
|
32
|
+
|| GraphqlChange.Group.isFieldOperation(change)
|
33
|
+
|| GraphqlChange.Group.isInputFieldOperation(change)) {
|
34
|
+
const changeGroupType = GraphqlChange.Group.getType(change);
|
35
|
+
const handler = Handlers[changeGroupType];
|
36
|
+
handler(data, change, changeSet);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
return { data };
|
41
|
+
};
|
42
|
+
/**
|
43
|
+
* Convert SchemaLifecycle to JSON string
|
44
|
+
*/
|
45
|
+
export const toJson = (lifecycle, options) => {
|
46
|
+
const isPretty = options?.pretty ?? true;
|
47
|
+
if (isPretty) {
|
48
|
+
const serialized = superjson.serialize(lifecycle);
|
49
|
+
return JSON.stringify(serialized, null, 2);
|
50
|
+
}
|
51
|
+
return superjson.stringify(lifecycle);
|
52
|
+
};
|
53
|
+
/**
|
54
|
+
* Parse SchemaLifecycle from JSON string
|
55
|
+
*/
|
56
|
+
export const fromJson = (json) => {
|
57
|
+
return superjson.parse(json);
|
58
|
+
};
|
59
|
+
//# sourceMappingURL=SchemaLifecycle.js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38 @@
|
|
1
|
+
// import type { GraphQLSchema } from 'graphql'
|
2
|
+
export {};
|
3
|
+
// /**
|
4
|
+
// * Schema link for versioned schemas
|
5
|
+
// */
|
6
|
+
// export interface VersionedSchemaLink {
|
7
|
+
// type: 'versioned'
|
8
|
+
// version: string
|
9
|
+
// data: GraphQLSchema | null
|
10
|
+
// }
|
11
|
+
// /**
|
12
|
+
// * Schema link for unversioned/global schemas
|
13
|
+
// */
|
14
|
+
// export interface UnversionedSchemaLink {
|
15
|
+
// type: 'unversioned'
|
16
|
+
// data: GraphQLSchema | null
|
17
|
+
// }
|
18
|
+
// /**
|
19
|
+
// * Schema link can be either versioned or unversioned
|
20
|
+
// */
|
21
|
+
// export type SchemaLink = VersionedSchemaLink | UnversionedSchemaLink
|
22
|
+
// /**
|
23
|
+
// * Create a schema link based on version
|
24
|
+
// */
|
25
|
+
// export const createSchemaLink = (version: string | null): SchemaLink => {
|
26
|
+
// if (version === null) {
|
27
|
+
// return {
|
28
|
+
// type: 'unversioned',
|
29
|
+
// data: null,
|
30
|
+
// }
|
31
|
+
// }
|
32
|
+
// return {
|
33
|
+
// type: 'versioned',
|
34
|
+
// version,
|
35
|
+
// data: null,
|
36
|
+
// }
|
37
|
+
// }
|
38
|
+
//# sourceMappingURL=SchemaLink.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SchemaLink.js","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/SchemaLink.ts"],"names":[],"mappings":"AAAA,+CAA+C;;AAE/C,MAAM;AACN,uCAAuC;AACvC,MAAM;AACN,yCAAyC;AACzC,sBAAsB;AACtB,oBAAoB;AACpB,+BAA+B;AAC/B,IAAI;AAEJ,MAAM;AACN,gDAAgD;AAChD,MAAM;AACN,2CAA2C;AAC3C,wBAAwB;AACxB,+BAA+B;AAC/B,IAAI;AAEJ,MAAM;AACN,wDAAwD;AACxD,MAAM;AACN,uEAAuE;AAEvE,MAAM;AACN,2CAA2C;AAC3C,MAAM;AACN,4EAA4E;AAC5E,4BAA4B;AAC5B,eAAe;AACf,6BAA6B;AAC7B,oBAAoB;AACpB,QAAQ;AACR,MAAM;AACN,aAAa;AACb,yBAAyB;AACzB,eAAe;AACf,kBAAkB;AAClB,MAAM;AACN,IAAI"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import type { GraphqlChange } from '#lib/graphql-change';
|
2
|
+
import type { GraphqlChangeset } from '#lib/graphql-changeset';
|
3
|
+
import type { NamedTypeLifecycle } from './NamedTypeLifecycle.js';
|
4
|
+
/**
|
5
|
+
* Create lifecycle entries for all types in an initial schema (treat as "create events")
|
6
|
+
*/
|
7
|
+
export declare const createInitialTypeLifecycles: (data: Record<string, NamedTypeLifecycle>, changeSet: GraphqlChangeset.InitialChangeSetLinked) => void;
|
8
|
+
/**
|
9
|
+
* Handler for type operations (TYPE_ADDED, TYPE_REMOVED, TYPE_KIND_CHANGED)
|
10
|
+
*/
|
11
|
+
export declare const TypeOperation: (data: Record<string, NamedTypeLifecycle>, change: GraphqlChange.Group.TypeOperation, changeSet: GraphqlChangeset.IntermediateChangeSetLinked) => void;
|
12
|
+
/**
|
13
|
+
* Handler for field operations (FIELD_ADDED, FIELD_REMOVED, FIELD_TYPE_CHANGED)
|
14
|
+
*/
|
15
|
+
export declare const FieldOperation: (data: Record<string, NamedTypeLifecycle>, change: GraphqlChange.Group.FieldOperation, changeSet: GraphqlChangeset.IntermediateChangeSetLinked) => void;
|
16
|
+
/**
|
17
|
+
* Handler for input field operations (INPUT_FIELD_ADDED, INPUT_FIELD_REMOVED, INPUT_FIELD_TYPE_CHANGED)
|
18
|
+
*/
|
19
|
+
export declare const InputFieldOperation: (data: Record<string, NamedTypeLifecycle>, change: GraphqlChange.Group.InputFieldOperation, changeSet: GraphqlChangeset.IntermediateChangeSetLinked) => void;
|
20
|
+
//# sourceMappingURL=handlers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/handlers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAK9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAwGjE;;GAEG;AACH,eAAO,MAAM,2BAA2B,GACtC,MAAM,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,EACxC,WAAW,gBAAgB,CAAC,sBAAsB,SAwBnD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,GACxB,MAAM,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,EACxC,QAAQ,aAAa,CAAC,KAAK,CAAC,aAAa,EACzC,WAAW,gBAAgB,CAAC,2BAA2B,SA4CxD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,EACxC,QAAQ,aAAa,CAAC,KAAK,CAAC,cAAc,EAC1C,WAAW,gBAAgB,CAAC,2BAA2B,SAGxD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,EACxC,QAAQ,aAAa,CAAC,KAAK,CAAC,mBAAmB,EAC/C,WAAW,gBAAgB,CAAC,2BAA2B,SAGxD,CAAA"}
|
@@ -0,0 +1,168 @@
|
|
1
|
+
import { Grafaid } from '#lib/grafaid';
|
2
|
+
import { GraphQLPath } from '#lib/graphql-path/$';
|
3
|
+
import { isInputObjectType, isInterfaceType, isNamedType, isObjectType } from 'graphql';
|
4
|
+
import { createNamedTypeLifecycle } from './NamedTypeLifecycle.js';
|
5
|
+
/**
|
6
|
+
* Populate fields for a type that has fields (Object, Interface, or InputObject types)
|
7
|
+
*/
|
8
|
+
const populateTypeFields = (typeLifecycle, graphqlType, date, changeSet, schema) => {
|
9
|
+
if (isObjectType(graphqlType) || isInterfaceType(graphqlType) || isInputObjectType(graphqlType)) {
|
10
|
+
const fields = graphqlType.getFields();
|
11
|
+
const typeWithFields = typeLifecycle;
|
12
|
+
if (typeWithFields.fields) {
|
13
|
+
for (const [fieldName] of Object.entries(fields)) {
|
14
|
+
const fieldAddedEvent = {
|
15
|
+
type: 'added',
|
16
|
+
date,
|
17
|
+
changeSet,
|
18
|
+
schema,
|
19
|
+
};
|
20
|
+
typeWithFields.fields[fieldName] = {
|
21
|
+
name: fieldName,
|
22
|
+
events: [fieldAddedEvent],
|
23
|
+
};
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
};
|
28
|
+
/**
|
29
|
+
* Handle field changes (add/remove) for both regular fields and input fields
|
30
|
+
*/
|
31
|
+
const handleFieldChange = (data, change, changeSet, isInputField) => {
|
32
|
+
const addType = isInputField ? 'INPUT_FIELD_ADDED' : 'FIELD_ADDED';
|
33
|
+
const removeType = isInputField ? 'INPUT_FIELD_REMOVED' : 'FIELD_REMOVED';
|
34
|
+
if (change.type === addType) {
|
35
|
+
const { typeName, fieldName } = GraphQLPath.Definition.parseFieldPath(change.path);
|
36
|
+
if (!typeName || !fieldName)
|
37
|
+
return;
|
38
|
+
const addedEvent = {
|
39
|
+
type: 'added',
|
40
|
+
date: changeSet.date,
|
41
|
+
changeSet: changeSet,
|
42
|
+
schema: changeSet.after,
|
43
|
+
};
|
44
|
+
// Ensure type exists
|
45
|
+
if (!data[typeName]) {
|
46
|
+
const graphqlType = changeSet.after.data.getType(typeName);
|
47
|
+
if (!graphqlType || !isNamedType(graphqlType)) {
|
48
|
+
throw new Error(`Type ${typeName} not found in schema`);
|
49
|
+
}
|
50
|
+
const kind = Grafaid.Schema.typeKindFromClass(graphqlType);
|
51
|
+
const typeEvent = {
|
52
|
+
type: 'added',
|
53
|
+
date: new Date('1970-01-01'), // Unknown when type was added
|
54
|
+
changeSet: null,
|
55
|
+
schema: { version: null, data: null },
|
56
|
+
};
|
57
|
+
data[typeName] = createNamedTypeLifecycle(typeName, kind, typeEvent);
|
58
|
+
}
|
59
|
+
const typeLifecycle = data[typeName];
|
60
|
+
if ('fields' in typeLifecycle) {
|
61
|
+
typeLifecycle.fields[fieldName] = {
|
62
|
+
name: fieldName,
|
63
|
+
events: [addedEvent],
|
64
|
+
};
|
65
|
+
}
|
66
|
+
}
|
67
|
+
else if (change.type === removeType) {
|
68
|
+
const { typeName, fieldName } = GraphQLPath.Definition.parseFieldPath(change.path);
|
69
|
+
if (!typeName || !fieldName)
|
70
|
+
return;
|
71
|
+
const removedEvent = {
|
72
|
+
type: 'removed',
|
73
|
+
date: changeSet.date,
|
74
|
+
changeSet: changeSet,
|
75
|
+
schema: changeSet.after,
|
76
|
+
};
|
77
|
+
const typeLifecycle = data[typeName];
|
78
|
+
if (typeLifecycle && 'fields' in typeLifecycle && typeLifecycle.fields[fieldName]) {
|
79
|
+
typeLifecycle.fields[fieldName].events = [
|
80
|
+
removedEvent,
|
81
|
+
...typeLifecycle.fields[fieldName].events,
|
82
|
+
];
|
83
|
+
}
|
84
|
+
}
|
85
|
+
// TODO: Handle FIELD_TYPE_CHANGED / INPUT_FIELD_TYPE_CHANGED
|
86
|
+
};
|
87
|
+
/**
|
88
|
+
* Create lifecycle entries for all types in an initial schema (treat as "create events")
|
89
|
+
*/
|
90
|
+
export const createInitialTypeLifecycles = (data, changeSet) => {
|
91
|
+
const typeMap = changeSet.after.data.getTypeMap();
|
92
|
+
for (const [typeName, graphqlType] of Object.entries(typeMap)) {
|
93
|
+
// Skip built-in types that start with __
|
94
|
+
if (typeName.startsWith('__'))
|
95
|
+
continue;
|
96
|
+
if (!isNamedType(graphqlType))
|
97
|
+
continue;
|
98
|
+
const addedEvent = {
|
99
|
+
type: 'added',
|
100
|
+
date: changeSet.date,
|
101
|
+
changeSet: changeSet,
|
102
|
+
schema: changeSet.after,
|
103
|
+
};
|
104
|
+
const kind = Grafaid.Schema.typeKindFromClass(graphqlType);
|
105
|
+
const typeLifecycle = createNamedTypeLifecycle(typeName, kind, addedEvent);
|
106
|
+
data[typeName] = typeLifecycle;
|
107
|
+
// Populate fields for types that have them
|
108
|
+
populateTypeFields(typeLifecycle, graphqlType, changeSet.date, changeSet, changeSet.after);
|
109
|
+
}
|
110
|
+
};
|
111
|
+
/**
|
112
|
+
* Handler for type operations (TYPE_ADDED, TYPE_REMOVED, TYPE_KIND_CHANGED)
|
113
|
+
*/
|
114
|
+
export const TypeOperation = (data, change, changeSet) => {
|
115
|
+
if (change.type === 'TYPE_ADDED') {
|
116
|
+
const typeName = change.path || change.message || 'Unknown';
|
117
|
+
if (!typeName)
|
118
|
+
return;
|
119
|
+
const addedEvent = {
|
120
|
+
type: 'added',
|
121
|
+
date: changeSet.date,
|
122
|
+
changeSet: changeSet,
|
123
|
+
schema: changeSet.after,
|
124
|
+
};
|
125
|
+
// Get actual type from schema to determine kind
|
126
|
+
const graphqlType = changeSet.after.data.getType(typeName);
|
127
|
+
if (!graphqlType || !isNamedType(graphqlType)) {
|
128
|
+
throw new Error(`Type ${typeName} not found in schema`);
|
129
|
+
}
|
130
|
+
const kind = Grafaid.Schema.typeKindFromClass(graphqlType);
|
131
|
+
const typeLifecycle = createNamedTypeLifecycle(typeName, kind, addedEvent);
|
132
|
+
data[typeName] = typeLifecycle;
|
133
|
+
// Populate fields for types that have them
|
134
|
+
populateTypeFields(typeLifecycle, graphqlType, changeSet.date, changeSet, changeSet.after);
|
135
|
+
}
|
136
|
+
else if (change.type === 'TYPE_REMOVED') {
|
137
|
+
const typeName = change.path || change.message || 'Unknown';
|
138
|
+
if (!typeName)
|
139
|
+
return;
|
140
|
+
const removedEvent = {
|
141
|
+
type: 'removed',
|
142
|
+
date: changeSet.date,
|
143
|
+
changeSet: changeSet,
|
144
|
+
schema: changeSet.after,
|
145
|
+
};
|
146
|
+
// Add removal event to existing type
|
147
|
+
if (data[typeName]) {
|
148
|
+
data[typeName].events = [removedEvent, ...data[typeName].events];
|
149
|
+
}
|
150
|
+
}
|
151
|
+
else if (change.type === 'TYPE_KIND_CHANGED') {
|
152
|
+
// TODO: Handle type kind changes
|
153
|
+
// This would update the kind property of an existing type
|
154
|
+
}
|
155
|
+
};
|
156
|
+
/**
|
157
|
+
* Handler for field operations (FIELD_ADDED, FIELD_REMOVED, FIELD_TYPE_CHANGED)
|
158
|
+
*/
|
159
|
+
export const FieldOperation = (data, change, changeSet) => {
|
160
|
+
handleFieldChange(data, change, changeSet, false);
|
161
|
+
};
|
162
|
+
/**
|
163
|
+
* Handler for input field operations (INPUT_FIELD_ADDED, INPUT_FIELD_REMOVED, INPUT_FIELD_TYPE_CHANGED)
|
164
|
+
*/
|
165
|
+
export const InputFieldOperation = (data, change, changeSet) => {
|
166
|
+
handleFieldChange(data, change, changeSet, true);
|
167
|
+
};
|
168
|
+
//# sourceMappingURL=handlers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"handlers.js","sourceRoot":"","sources":["../../../src/lib/schema-lifecycle/handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,EAAyB,iBAAiB,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG9G,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAElE;;GAEG;AACH,MAAM,kBAAkB,GAAG,CACzB,aAAiC,EACjC,WAA6B,EAC7B,IAAU,EACV,SAA4C,EAC5C,MAA0C,EAC1C,EAAE;IACF,IAAI,YAAY,CAAC,WAAW,CAAC,IAAI,eAAe,CAAC,WAAW,CAAC,IAAI,iBAAiB,CAAC,WAAW,CAAC,EAAE,CAAC;QAChG,MAAM,MAAM,GAAG,WAAW,CAAC,SAAS,EAAE,CAAA;QACtC,MAAM,cAAc,GAAG,aAAoB,CAAA;QAE3C,IAAI,cAAc,CAAC,MAAM,EAAE,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