@apollo/client-integration-nextjs
Version:
<div align="center"> <img src="https://raw.githubusercontent.com/apollographql/apollo-client-integrations/main/banner.jpg" width="500" alt="Apollo Client + Next.js App Router" /> </div>
1 lines • 4.19 kB
Source Map (JSON)
{"version":3,"sources":["../src/index.shared.ts","../src/bundleInfo.ts","../src/index.rsc.ts"],"names":[],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;;;ACLA,IAAM,SAAS;AAAA,EACpB,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,OAAO;AACT;;;ADGA;AAAA,EACE,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,OACZ;AA0CA,IAAM,eAAN,cAA2B,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMrD,OAAgB,OAAO;AACzB;AASO,IAAM,gBAAN,cAA4B,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMvD,OAAgB,OAAO;AACzB;;;AE1EA,SAAS,4BAA4B","sourcesContent":["export {\n SSRMultipartLink,\n DebounceMultipartResponsesLink,\n RemoveMultipartDirectivesLink,\n type TransportedQueryRef,\n} from \"@apollo/client-react-streaming\";\nimport { bundle } from \"./bundleInfo.js\";\nimport {\n ApolloClient as UpstreamApolloClient,\n InMemoryCache as UpstreamInMemoryCache,\n} from \"@apollo/client-react-streaming\";\n\n/** @public */\nexport declare namespace ApolloClient {\n /** @public */\n export interface Options extends UpstreamApolloClient.Options {}\n /*\n We can currently not re-export these types from the upstream ApolloClient implementation because the build \n tooling doesn't support that:\n > DTS Build error\n > Error: namespace child (hoisting) not supported yet\n\n We could re-export them by defining them as new types that reference the originals, but that would require us\n to keep generics in sync and would either erase the docblocks or require us to duplicate them \n (and they would go out of sync).\n If you need any of the other types, please use the `ApolloClient` namespace exported from `@apollo/client` directly.\n */\n // export import DefaultOptions = UpstreamApolloClient.DefaultOptions;\n // export import DevtoolsOptions = UpstreamApolloClient.DevtoolsOptions;\n // export import MutateOptions = UpstreamApolloClient.MutateOptions;\n // export import MutateResult = UpstreamApolloClient.MutateResult;\n // export import QueryOptions = UpstreamApolloClient.QueryOptions;\n // export import QueryResult = UpstreamApolloClient.QueryResult;\n // export import RefetchQueriesOptions = UpstreamApolloClient.RefetchQueriesOptions;\n // export import RefetchQueriesResult = UpstreamApolloClient.RefetchQueriesResult;\n // export import SubscribeOptions = UpstreamApolloClient.SubscribeOptions;\n // export import SubscribeResult = UpstreamApolloClient.SubscribeResult;\n // export import WatchFragmentOptions = UpstreamApolloClient.WatchFragmentOptions;\n // export import WatchFragmentResult = UpstreamApolloClient.WatchFragmentResult;\n // export import WatchQueryOptions = UpstreamApolloClient.WatchQueryOptions;\n // export import ReadQueryOptions = UpstreamApolloClient.ReadQueryOptions;\n // export import WriteQueryOptions = UpstreamApolloClient.WriteQueryOptions;\n // export import WriteFragmentOptions = UpstreamApolloClient.WriteFragmentOptions;\n}\n\n/**\n * A version of `ApolloClient` to be used with streaming SSR or in React Server Components.\n *\n * For more documentation, please see {@link https://www.apollographql.com/docs/react/api/core/ApolloClient | the Apollo Client API documentation}.\n *\n * @public\n */\nexport class ApolloClient extends UpstreamApolloClient {\n /**\n * Information about the current package and it's export names, for use in error messages.\n *\n * @internal\n */\n static readonly info = bundle;\n}\n\n/**\n * A version of `InMemoryCache` to be used with streaming SSR.\n *\n * For more documentation, please see {@link https://www.apollographql.com/docs/react/api/cache/InMemoryCache | the Apollo Client API documentation}.\n *\n * @public\n */\nexport class InMemoryCache extends UpstreamInMemoryCache {\n /**\n * Information about the current package and it's export names, for use in error messages.\n *\n * @internal\n */\n static readonly info = bundle;\n}\n","export const bundle = {\n pkg: \"@apollo/client-integration-nextjs\",\n client: \"ApolloClient\",\n cache: \"InMemoryCache\",\n};\n","export * from \"./index.shared.js\";\nexport { registerApolloClient } from \"@apollo/client-react-streaming\";\nexport type {\n PreloadQueryComponent,\n PreloadQueryProps,\n} from \"@apollo/client-react-streaming\";\n"]}