@apollo/client 3.8.0-beta.6 → 3.8.0-beta.7

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.
Files changed (634) hide show
  1. package/apollo-client.cjs +201 -189
  2. package/apollo-client.cjs.map +1 -1
  3. package/apollo-client.min.cjs +1 -1
  4. package/cache/cache.cjs +12 -12
  5. package/cache/cache.cjs.map +1 -1
  6. package/cache/cache.cjs.native.js +12 -12
  7. package/cache/core/cache.d.ts +3 -3
  8. package/cache/core/cache.d.ts.map +1 -1
  9. package/cache/core/cache.js +1 -1
  10. package/cache/core/cache.js.map +1 -1
  11. package/cache/core/types/Cache.d.ts +3 -3
  12. package/cache/core/types/Cache.d.ts.map +1 -1
  13. package/cache/core/types/Cache.js.map +1 -1
  14. package/cache/core/types/DataProxy.d.ts +2 -2
  15. package/cache/core/types/DataProxy.d.ts.map +1 -1
  16. package/cache/core/types/DataProxy.js.map +1 -1
  17. package/cache/core/types/common.d.ts +2 -2
  18. package/cache/core/types/common.d.ts.map +1 -1
  19. package/cache/core/types/common.js.map +1 -1
  20. package/cache/index.d.ts +14 -14
  21. package/cache/index.d.ts.map +1 -1
  22. package/cache/index.js +13 -13
  23. package/cache/index.js.map +1 -1
  24. package/cache/inmemory/entityStore.d.ts +5 -5
  25. package/cache/inmemory/entityStore.d.ts.map +1 -1
  26. package/cache/inmemory/entityStore.js +3 -3
  27. package/cache/inmemory/entityStore.js.map +1 -1
  28. package/cache/inmemory/fragmentRegistry.js.map +1 -1
  29. package/cache/inmemory/helpers.d.ts +5 -5
  30. package/cache/inmemory/helpers.d.ts.map +1 -1
  31. package/cache/inmemory/helpers.js +1 -1
  32. package/cache/inmemory/helpers.js.map +1 -1
  33. package/cache/inmemory/inMemoryCache.d.ts +8 -8
  34. package/cache/inmemory/inMemoryCache.d.ts.map +1 -1
  35. package/cache/inmemory/inMemoryCache.js +13 -13
  36. package/cache/inmemory/inMemoryCache.js.map +1 -1
  37. package/cache/inmemory/key-extractor.d.ts +1 -1
  38. package/cache/inmemory/key-extractor.d.ts.map +1 -1
  39. package/cache/inmemory/key-extractor.js.map +1 -1
  40. package/cache/inmemory/object-canon.d.ts.map +1 -1
  41. package/cache/inmemory/object-canon.js +2 -3
  42. package/cache/inmemory/object-canon.js.map +1 -1
  43. package/cache/inmemory/policies.d.ts +6 -6
  44. package/cache/inmemory/policies.d.ts.map +1 -1
  45. package/cache/inmemory/policies.js +9 -9
  46. package/cache/inmemory/policies.js.map +1 -1
  47. package/cache/inmemory/reactiveVars.d.ts +1 -1
  48. package/cache/inmemory/reactiveVars.d.ts.map +1 -1
  49. package/cache/inmemory/reactiveVars.js.map +1 -1
  50. package/cache/inmemory/readFromStore.d.ts +6 -6
  51. package/cache/inmemory/readFromStore.d.ts.map +1 -1
  52. package/cache/inmemory/readFromStore.js +7 -7
  53. package/cache/inmemory/readFromStore.js.map +1 -1
  54. package/cache/inmemory/types.d.ts +6 -6
  55. package/cache/inmemory/types.d.ts.map +1 -1
  56. package/cache/inmemory/types.js.map +1 -1
  57. package/cache/inmemory/writeToStore.d.ts +6 -6
  58. package/cache/inmemory/writeToStore.d.ts.map +1 -1
  59. package/cache/inmemory/writeToStore.js +10 -10
  60. package/cache/inmemory/writeToStore.js.map +1 -1
  61. package/config/jest/setup.d.ts +1 -1
  62. package/config/jest/setup.d.ts.map +1 -1
  63. package/config/jest/setup.js +2 -2
  64. package/config/jest/setup.js.map +1 -1
  65. package/core/ApolloClient.d.ts +10 -10
  66. package/core/ApolloClient.d.ts.map +1 -1
  67. package/core/ApolloClient.js +10 -10
  68. package/core/ApolloClient.js.map +1 -1
  69. package/core/LocalState.d.ts +5 -5
  70. package/core/LocalState.d.ts.map +1 -1
  71. package/core/LocalState.js +3 -3
  72. package/core/LocalState.js.map +1 -1
  73. package/core/ObservableQuery.d.ts +10 -10
  74. package/core/ObservableQuery.d.ts.map +1 -1
  75. package/core/ObservableQuery.js +11 -11
  76. package/core/ObservableQuery.js.map +1 -1
  77. package/core/QueryInfo.d.ts +9 -9
  78. package/core/QueryInfo.d.ts.map +1 -1
  79. package/core/QueryInfo.js +4 -4
  80. package/core/QueryInfo.js.map +1 -1
  81. package/core/QueryManager.d.ts +10 -10
  82. package/core/QueryManager.d.ts.map +1 -1
  83. package/core/QueryManager.js +17 -17
  84. package/core/QueryManager.js.map +1 -1
  85. package/core/core.cjs +25 -24
  86. package/core/core.cjs.map +1 -1
  87. package/core/core.cjs.native.js +25 -24
  88. package/core/equalByQuery.d.ts +2 -2
  89. package/core/equalByQuery.d.ts.map +1 -1
  90. package/core/equalByQuery.js +9 -8
  91. package/core/equalByQuery.js.map +1 -1
  92. package/core/index.d.ts +13 -13
  93. package/core/index.d.ts.map +1 -1
  94. package/core/index.js +12 -13
  95. package/core/index.js.map +1 -1
  96. package/core/types.d.ts +10 -10
  97. package/core/types.d.ts.map +1 -1
  98. package/core/types.js.map +1 -1
  99. package/core/watchQueryOptions.d.ts +4 -4
  100. package/core/watchQueryOptions.d.ts.map +1 -1
  101. package/core/watchQueryOptions.js.map +1 -1
  102. package/dev/dev.cjs +2 -3
  103. package/dev/dev.cjs.map +1 -1
  104. package/dev/dev.cjs.native.js +2 -3
  105. package/dev/index.d.ts +3 -3
  106. package/dev/index.d.ts.map +1 -1
  107. package/dev/index.js +3 -3
  108. package/dev/index.js.map +1 -1
  109. package/dev/loadDevMessages.js +2 -2
  110. package/dev/loadDevMessages.js.map +1 -1
  111. package/dev/loadErrorMessageHandler.d.ts +1 -1
  112. package/dev/loadErrorMessageHandler.d.ts.map +1 -1
  113. package/dev/loadErrorMessageHandler.js +2 -2
  114. package/dev/loadErrorMessageHandler.js.map +1 -1
  115. package/dev/loadErrorMessages.js +2 -2
  116. package/dev/loadErrorMessages.js.map +1 -1
  117. package/errors/errors.cjs.map +1 -1
  118. package/errors/index.d.ts +4 -4
  119. package/errors/index.d.ts.map +1 -1
  120. package/errors/index.js +2 -2
  121. package/errors/index.js.map +1 -1
  122. package/index.d.ts +2 -2
  123. package/index.d.ts.map +1 -1
  124. package/index.js +2 -2
  125. package/index.js.map +1 -1
  126. package/link/batch/batch.cjs.map +1 -1
  127. package/link/batch/batchLink.d.ts +5 -5
  128. package/link/batch/batchLink.d.ts.map +1 -1
  129. package/link/batch/batchLink.js +3 -3
  130. package/link/batch/batchLink.js.map +1 -1
  131. package/link/batch/batching.d.ts +2 -2
  132. package/link/batch/batching.d.ts.map +1 -1
  133. package/link/batch/batching.js +1 -1
  134. package/link/batch/batching.js.map +1 -1
  135. package/link/batch/index.d.ts +1 -1
  136. package/link/batch/index.d.ts.map +1 -1
  137. package/link/batch/index.js +1 -1
  138. package/link/batch/index.js.map +1 -1
  139. package/link/batch-http/batch-http.cjs.map +1 -1
  140. package/link/batch-http/batchHttpLink.d.ts +5 -5
  141. package/link/batch-http/batchHttpLink.d.ts.map +1 -1
  142. package/link/batch-http/batchHttpLink.js +5 -5
  143. package/link/batch-http/batchHttpLink.js.map +1 -1
  144. package/link/batch-http/index.d.ts +1 -1
  145. package/link/batch-http/index.d.ts.map +1 -1
  146. package/link/batch-http/index.js +1 -1
  147. package/link/batch-http/index.js.map +1 -1
  148. package/link/context/context.cjs.map +1 -1
  149. package/link/context/index.d.ts +3 -3
  150. package/link/context/index.d.ts.map +1 -1
  151. package/link/context/index.js +2 -2
  152. package/link/context/index.js.map +1 -1
  153. package/link/core/ApolloLink.d.ts +3 -3
  154. package/link/core/ApolloLink.d.ts.map +1 -1
  155. package/link/core/ApolloLink.js +4 -4
  156. package/link/core/ApolloLink.js.map +1 -1
  157. package/link/core/concat.d.ts +1 -1
  158. package/link/core/concat.d.ts.map +1 -1
  159. package/link/core/concat.js +1 -1
  160. package/link/core/concat.js.map +1 -1
  161. package/link/core/core.cjs +1 -1
  162. package/link/core/core.cjs.map +1 -1
  163. package/link/core/core.cjs.native.js +1 -1
  164. package/link/core/empty.d.ts +1 -1
  165. package/link/core/empty.d.ts.map +1 -1
  166. package/link/core/empty.js +1 -1
  167. package/link/core/empty.js.map +1 -1
  168. package/link/core/execute.d.ts +1 -1
  169. package/link/core/execute.d.ts.map +1 -1
  170. package/link/core/execute.js +1 -1
  171. package/link/core/execute.js.map +1 -1
  172. package/link/core/from.d.ts +1 -1
  173. package/link/core/from.d.ts.map +1 -1
  174. package/link/core/from.js +1 -1
  175. package/link/core/from.js.map +1 -1
  176. package/link/core/index.d.ts +8 -8
  177. package/link/core/index.d.ts.map +1 -1
  178. package/link/core/index.js +8 -8
  179. package/link/core/index.js.map +1 -1
  180. package/link/core/split.d.ts +1 -1
  181. package/link/core/split.d.ts.map +1 -1
  182. package/link/core/split.js +1 -1
  183. package/link/core/split.js.map +1 -1
  184. package/link/core/types.d.ts +2 -2
  185. package/link/core/types.d.ts.map +1 -1
  186. package/link/core/types.js.map +1 -1
  187. package/link/error/error.cjs.map +1 -1
  188. package/link/error/index.d.ts +4 -4
  189. package/link/error/index.d.ts.map +1 -1
  190. package/link/error/index.js +2 -2
  191. package/link/error/index.js.map +1 -1
  192. package/link/http/HttpLink.d.ts +3 -3
  193. package/link/http/HttpLink.d.ts.map +1 -1
  194. package/link/http/HttpLink.js +2 -2
  195. package/link/http/HttpLink.js.map +1 -1
  196. package/link/http/checkFetcher.js +1 -1
  197. package/link/http/checkFetcher.js.map +1 -1
  198. package/link/http/createHttpLink.d.ts +2 -2
  199. package/link/http/createHttpLink.d.ts.map +1 -1
  200. package/link/http/createHttpLink.js +14 -14
  201. package/link/http/createHttpLink.js.map +1 -1
  202. package/link/http/http.cjs +2 -2
  203. package/link/http/http.cjs.map +1 -1
  204. package/link/http/http.cjs.native.js +2 -2
  205. package/link/http/index.d.ts +10 -10
  206. package/link/http/index.d.ts.map +1 -1
  207. package/link/http/index.js +10 -10
  208. package/link/http/index.js.map +1 -1
  209. package/link/http/iterators/nodeStream.js.map +1 -1
  210. package/link/http/iterators/promise.js.map +1 -1
  211. package/link/http/iterators/reader.js.map +1 -1
  212. package/link/http/parseAndCheckHttpResponse.d.ts +2 -2
  213. package/link/http/parseAndCheckHttpResponse.d.ts.map +1 -1
  214. package/link/http/parseAndCheckHttpResponse.js +2 -2
  215. package/link/http/parseAndCheckHttpResponse.js.map +1 -1
  216. package/link/http/responseIterator.js.map +1 -1
  217. package/link/http/rewriteURIForGET.d.ts +1 -1
  218. package/link/http/rewriteURIForGET.d.ts.map +1 -1
  219. package/link/http/rewriteURIForGET.js +1 -1
  220. package/link/http/rewriteURIForGET.js.map +1 -1
  221. package/link/http/selectHttpOptionsAndBody.d.ts +2 -2
  222. package/link/http/selectHttpOptionsAndBody.d.ts.map +1 -1
  223. package/link/http/selectHttpOptionsAndBody.js +1 -1
  224. package/link/http/selectHttpOptionsAndBody.js.map +1 -1
  225. package/link/http/selectURI.d.ts +1 -1
  226. package/link/http/selectURI.d.ts.map +1 -1
  227. package/link/http/selectURI.js.map +1 -1
  228. package/link/http/serializeFetchParameter.d.ts +1 -1
  229. package/link/http/serializeFetchParameter.d.ts.map +1 -1
  230. package/link/http/serializeFetchParameter.js +1 -1
  231. package/link/http/serializeFetchParameter.js.map +1 -1
  232. package/link/persisted-queries/index.d.ts +3 -3
  233. package/link/persisted-queries/index.d.ts.map +1 -1
  234. package/link/persisted-queries/index.js +4 -4
  235. package/link/persisted-queries/index.js.map +1 -1
  236. package/link/persisted-queries/persisted-queries.cjs.map +1 -1
  237. package/link/remove-typename/index.d.ts +1 -1
  238. package/link/remove-typename/index.d.ts.map +1 -1
  239. package/link/remove-typename/index.js +1 -1
  240. package/link/remove-typename/index.js.map +1 -1
  241. package/link/remove-typename/remove-typename.cjs.map +1 -1
  242. package/link/remove-typename/removeTypenameFromVariables.d.ts +1 -1
  243. package/link/remove-typename/removeTypenameFromVariables.d.ts.map +1 -1
  244. package/link/remove-typename/removeTypenameFromVariables.js +2 -2
  245. package/link/remove-typename/removeTypenameFromVariables.js.map +1 -1
  246. package/link/retry/delayFunction.d.ts +1 -1
  247. package/link/retry/delayFunction.d.ts.map +1 -1
  248. package/link/retry/delayFunction.js.map +1 -1
  249. package/link/retry/index.d.ts +1 -1
  250. package/link/retry/index.d.ts.map +1 -1
  251. package/link/retry/index.js +1 -1
  252. package/link/retry/index.js.map +1 -1
  253. package/link/retry/retry.cjs.map +1 -1
  254. package/link/retry/retryFunction.d.ts +1 -1
  255. package/link/retry/retryFunction.d.ts.map +1 -1
  256. package/link/retry/retryFunction.js.map +1 -1
  257. package/link/retry/retryLink.d.ts +5 -5
  258. package/link/retry/retryLink.d.ts.map +1 -1
  259. package/link/retry/retryLink.js +4 -4
  260. package/link/retry/retryLink.js.map +1 -1
  261. package/link/schema/index.d.ts +3 -3
  262. package/link/schema/index.d.ts.map +1 -1
  263. package/link/schema/index.js +2 -2
  264. package/link/schema/index.js.map +1 -1
  265. package/link/schema/schema.cjs.map +1 -1
  266. package/link/subscriptions/index.d.ts +3 -3
  267. package/link/subscriptions/index.d.ts.map +1 -1
  268. package/link/subscriptions/index.js +1 -1
  269. package/link/subscriptions/index.js.map +1 -1
  270. package/link/subscriptions/subscriptions.cjs.map +1 -1
  271. package/link/utils/createOperation.d.ts +1 -1
  272. package/link/utils/createOperation.d.ts.map +1 -1
  273. package/link/utils/createOperation.js.map +1 -1
  274. package/link/utils/fromError.d.ts +1 -1
  275. package/link/utils/fromError.d.ts.map +1 -1
  276. package/link/utils/fromError.js +1 -1
  277. package/link/utils/fromError.js.map +1 -1
  278. package/link/utils/fromPromise.d.ts +1 -1
  279. package/link/utils/fromPromise.d.ts.map +1 -1
  280. package/link/utils/fromPromise.js +1 -1
  281. package/link/utils/fromPromise.js.map +1 -1
  282. package/link/utils/index.d.ts +9 -9
  283. package/link/utils/index.d.ts.map +1 -1
  284. package/link/utils/index.js +9 -9
  285. package/link/utils/index.js.map +1 -1
  286. package/link/utils/toPromise.d.ts +1 -1
  287. package/link/utils/toPromise.d.ts.map +1 -1
  288. package/link/utils/toPromise.js +2 -2
  289. package/link/utils/toPromise.js.map +1 -1
  290. package/link/utils/transformOperation.d.ts +1 -1
  291. package/link/utils/transformOperation.d.ts.map +1 -1
  292. package/link/utils/transformOperation.js +1 -1
  293. package/link/utils/transformOperation.js.map +1 -1
  294. package/link/utils/utils.cjs +1 -1
  295. package/link/utils/utils.cjs.map +1 -1
  296. package/link/utils/utils.cjs.native.js +1 -1
  297. package/link/utils/validateOperation.d.ts +1 -1
  298. package/link/utils/validateOperation.d.ts.map +1 -1
  299. package/link/utils/validateOperation.js +1 -1
  300. package/link/utils/validateOperation.js.map +1 -1
  301. package/link/ws/index.d.ts +3 -3
  302. package/link/ws/index.d.ts.map +1 -1
  303. package/link/ws/index.js +1 -1
  304. package/link/ws/index.js.map +1 -1
  305. package/link/ws/ws.cjs.map +1 -1
  306. package/package.json +14 -10
  307. package/react/cache/QueryReference.d.ts +7 -6
  308. package/react/cache/QueryReference.d.ts.map +1 -1
  309. package/react/cache/QueryReference.js +84 -53
  310. package/react/cache/QueryReference.js.map +1 -1
  311. package/react/cache/SuspenseCache.d.ts +3 -3
  312. package/react/cache/SuspenseCache.d.ts.map +1 -1
  313. package/react/cache/SuspenseCache.js +2 -2
  314. package/react/cache/SuspenseCache.js.map +1 -1
  315. package/react/cache/index.d.ts +1 -1
  316. package/react/cache/index.d.ts.map +1 -1
  317. package/react/cache/index.js +1 -1
  318. package/react/cache/index.js.map +1 -1
  319. package/react/components/Mutation.d.ts +3 -3
  320. package/react/components/Mutation.d.ts.map +1 -1
  321. package/react/components/Mutation.js +1 -1
  322. package/react/components/Mutation.js.map +1 -1
  323. package/react/components/Query.d.ts +2 -2
  324. package/react/components/Query.d.ts.map +1 -1
  325. package/react/components/Query.js +1 -1
  326. package/react/components/Query.js.map +1 -1
  327. package/react/components/Subscription.d.ts +2 -2
  328. package/react/components/Subscription.d.ts.map +1 -1
  329. package/react/components/Subscription.js +1 -1
  330. package/react/components/Subscription.js.map +1 -1
  331. package/react/components/components.cjs.map +1 -1
  332. package/react/components/index.d.ts +4 -4
  333. package/react/components/index.d.ts.map +1 -1
  334. package/react/components/index.js +4 -4
  335. package/react/components/index.js.map +1 -1
  336. package/react/components/types.d.ts +2 -2
  337. package/react/components/types.d.ts.map +1 -1
  338. package/react/components/types.js.map +1 -1
  339. package/react/context/ApolloConsumer.d.ts +1 -1
  340. package/react/context/ApolloConsumer.d.ts.map +1 -1
  341. package/react/context/ApolloConsumer.js +2 -2
  342. package/react/context/ApolloConsumer.js.map +1 -1
  343. package/react/context/ApolloContext.d.ts +4 -5
  344. package/react/context/ApolloContext.d.ts.map +1 -1
  345. package/react/context/ApolloContext.js +11 -4
  346. package/react/context/ApolloContext.js.map +1 -1
  347. package/react/context/ApolloProvider.d.ts +2 -2
  348. package/react/context/ApolloProvider.d.ts.map +1 -1
  349. package/react/context/ApolloProvider.js +2 -2
  350. package/react/context/ApolloProvider.js.map +1 -1
  351. package/react/context/context.cjs +9 -2
  352. package/react/context/context.cjs.map +1 -1
  353. package/react/context/context.cjs.native.js +9 -2
  354. package/react/context/index.d.ts +4 -4
  355. package/react/context/index.d.ts.map +1 -1
  356. package/react/context/index.js +4 -4
  357. package/react/context/index.js.map +1 -1
  358. package/react/hoc/graphql.d.ts +2 -2
  359. package/react/hoc/graphql.d.ts.map +1 -1
  360. package/react/hoc/graphql.js +4 -4
  361. package/react/hoc/graphql.js.map +1 -1
  362. package/react/hoc/hoc-utils.d.ts +2 -2
  363. package/react/hoc/hoc-utils.d.ts.map +1 -1
  364. package/react/hoc/hoc-utils.js +1 -1
  365. package/react/hoc/hoc-utils.js.map +1 -1
  366. package/react/hoc/hoc.cjs.map +1 -1
  367. package/react/hoc/index.d.ts +7 -7
  368. package/react/hoc/index.d.ts.map +1 -1
  369. package/react/hoc/index.js +7 -7
  370. package/react/hoc/index.js.map +1 -1
  371. package/react/hoc/mutation-hoc.d.ts +3 -3
  372. package/react/hoc/mutation-hoc.d.ts.map +1 -1
  373. package/react/hoc/mutation-hoc.js +3 -3
  374. package/react/hoc/mutation-hoc.js.map +1 -1
  375. package/react/hoc/query-hoc.d.ts +1 -1
  376. package/react/hoc/query-hoc.d.ts.map +1 -1
  377. package/react/hoc/query-hoc.js +3 -3
  378. package/react/hoc/query-hoc.js.map +1 -1
  379. package/react/hoc/subscription-hoc.d.ts +1 -1
  380. package/react/hoc/subscription-hoc.d.ts.map +1 -1
  381. package/react/hoc/subscription-hoc.js +3 -3
  382. package/react/hoc/subscription-hoc.js.map +1 -1
  383. package/react/hoc/types.d.ts +4 -4
  384. package/react/hoc/types.d.ts.map +1 -1
  385. package/react/hoc/types.js.map +1 -1
  386. package/react/hoc/withApollo.d.ts +1 -1
  387. package/react/hoc/withApollo.d.ts.map +1 -1
  388. package/react/hoc/withApollo.js +2 -2
  389. package/react/hoc/withApollo.js.map +1 -1
  390. package/react/hooks/hooks.cjs +146 -129
  391. package/react/hooks/hooks.cjs.map +1 -1
  392. package/react/hooks/hooks.cjs.native.js +146 -129
  393. package/react/hooks/index.d.ts +11 -11
  394. package/react/hooks/index.d.ts.map +1 -1
  395. package/react/hooks/index.js +11 -11
  396. package/react/hooks/index.js.map +1 -1
  397. package/react/hooks/internal/__use.js +2 -2
  398. package/react/hooks/internal/__use.js.map +1 -1
  399. package/react/hooks/internal/index.d.ts +3 -4
  400. package/react/hooks/internal/index.d.ts.map +1 -1
  401. package/react/hooks/internal/index.js +3 -4
  402. package/react/hooks/internal/index.js.map +1 -1
  403. package/react/hooks/internal/useDeepMemo.js +2 -2
  404. package/react/hooks/internal/useDeepMemo.js.map +1 -1
  405. package/react/hooks/internal/useIsomorphicLayoutEffect.d.ts +2 -2
  406. package/react/hooks/internal/useIsomorphicLayoutEffect.d.ts.map +1 -1
  407. package/react/hooks/internal/useIsomorphicLayoutEffect.js +4 -4
  408. package/react/hooks/internal/useIsomorphicLayoutEffect.js.map +1 -1
  409. package/react/hooks/useApolloClient.d.ts +1 -1
  410. package/react/hooks/useApolloClient.d.ts.map +1 -1
  411. package/react/hooks/useApolloClient.js +4 -4
  412. package/react/hooks/useApolloClient.js.map +1 -1
  413. package/react/hooks/useBackgroundQuery.d.ts +5 -5
  414. package/react/hooks/useBackgroundQuery.d.ts.map +1 -1
  415. package/react/hooks/useBackgroundQuery.js +13 -13
  416. package/react/hooks/useBackgroundQuery.js.map +1 -1
  417. package/react/hooks/useFragment.d.ts +4 -4
  418. package/react/hooks/useFragment.d.ts.map +1 -1
  419. package/react/hooks/useFragment.js +2 -2
  420. package/react/hooks/useFragment.js.map +1 -1
  421. package/react/hooks/useLazyQuery.d.ts +2 -2
  422. package/react/hooks/useLazyQuery.d.ts.map +1 -1
  423. package/react/hooks/useLazyQuery.js +9 -9
  424. package/react/hooks/useLazyQuery.js.map +1 -1
  425. package/react/hooks/useMutation.d.ts +2 -2
  426. package/react/hooks/useMutation.d.ts.map +1 -1
  427. package/react/hooks/useMutation.js +10 -10
  428. package/react/hooks/useMutation.js.map +1 -1
  429. package/react/hooks/useQuery.d.ts +4 -4
  430. package/react/hooks/useQuery.d.ts.map +1 -1
  431. package/react/hooks/useQuery.js +17 -17
  432. package/react/hooks/useQuery.js.map +1 -1
  433. package/react/hooks/useReactiveVar.d.ts +1 -1
  434. package/react/hooks/useReactiveVar.d.ts.map +1 -1
  435. package/react/hooks/useReactiveVar.js +3 -3
  436. package/react/hooks/useReactiveVar.js.map +1 -1
  437. package/react/hooks/useReadQuery.d.ts +3 -3
  438. package/react/hooks/useReadQuery.d.ts.map +1 -1
  439. package/react/hooks/useReadQuery.js +5 -5
  440. package/react/hooks/useReadQuery.js.map +1 -1
  441. package/react/hooks/useSubscription.d.ts +2 -2
  442. package/react/hooks/useSubscription.d.ts.map +1 -1
  443. package/react/hooks/useSubscription.js +14 -14
  444. package/react/hooks/useSubscription.js.map +1 -1
  445. package/react/hooks/useSuspenseCache.d.ts +1 -1
  446. package/react/hooks/useSuspenseCache.d.ts.map +1 -1
  447. package/react/hooks/useSuspenseCache.js +4 -4
  448. package/react/hooks/useSuspenseCache.js.map +1 -1
  449. package/react/hooks/useSuspenseQuery.d.ts +4 -6
  450. package/react/hooks/useSuspenseQuery.d.ts.map +1 -1
  451. package/react/hooks/useSuspenseQuery.js +26 -29
  452. package/react/hooks/useSuspenseQuery.js.map +1 -1
  453. package/react/hooks/useSyncExternalStore.js +4 -4
  454. package/react/hooks/useSyncExternalStore.js.map +1 -1
  455. package/react/index.d.ts +6 -6
  456. package/react/index.d.ts.map +1 -1
  457. package/react/index.js +6 -6
  458. package/react/index.js.map +1 -1
  459. package/react/parser/index.js +1 -1
  460. package/react/parser/index.js.map +1 -1
  461. package/react/parser/parser.cjs.map +1 -1
  462. package/react/react.cjs +82 -51
  463. package/react/react.cjs.map +1 -1
  464. package/react/react.cjs.native.js +82 -51
  465. package/react/ssr/RenderPromises.d.ts +2 -2
  466. package/react/ssr/RenderPromises.d.ts.map +1 -1
  467. package/react/ssr/RenderPromises.js.map +1 -1
  468. package/react/ssr/getDataFromTree.js +2 -2
  469. package/react/ssr/getDataFromTree.js.map +1 -1
  470. package/react/ssr/index.d.ts +3 -3
  471. package/react/ssr/index.d.ts.map +1 -1
  472. package/react/ssr/index.js +3 -3
  473. package/react/ssr/index.js.map +1 -1
  474. package/react/ssr/renderToStringWithData.js +1 -1
  475. package/react/ssr/renderToStringWithData.js.map +1 -1
  476. package/react/ssr/ssr.cjs.map +1 -1
  477. package/react/types/types.d.ts +7 -7
  478. package/react/types/types.d.ts.map +1 -1
  479. package/react/types/types.js.map +1 -1
  480. package/testing/core/core.cjs.map +1 -1
  481. package/testing/core/index.d.ts +7 -7
  482. package/testing/core/index.d.ts.map +1 -1
  483. package/testing/core/index.js +7 -7
  484. package/testing/core/index.js.map +1 -1
  485. package/testing/core/mocking/mockClient.d.ts +2 -2
  486. package/testing/core/mocking/mockClient.d.ts.map +1 -1
  487. package/testing/core/mocking/mockClient.js +3 -3
  488. package/testing/core/mocking/mockClient.js.map +1 -1
  489. package/testing/core/mocking/mockLink.d.ts +3 -3
  490. package/testing/core/mocking/mockLink.d.ts.map +1 -1
  491. package/testing/core/mocking/mockLink.js +3 -3
  492. package/testing/core/mocking/mockLink.js.map +1 -1
  493. package/testing/core/mocking/mockQueryManager.d.ts +3 -3
  494. package/testing/core/mocking/mockQueryManager.d.ts.map +1 -1
  495. package/testing/core/mocking/mockQueryManager.js +3 -3
  496. package/testing/core/mocking/mockQueryManager.js.map +1 -1
  497. package/testing/core/mocking/mockSubscriptionLink.d.ts +3 -3
  498. package/testing/core/mocking/mockSubscriptionLink.d.ts.map +1 -1
  499. package/testing/core/mocking/mockSubscriptionLink.js +2 -2
  500. package/testing/core/mocking/mockSubscriptionLink.js.map +1 -1
  501. package/testing/core/mocking/mockWatchQuery.d.ts +2 -2
  502. package/testing/core/mocking/mockWatchQuery.d.ts.map +1 -1
  503. package/testing/core/mocking/mockWatchQuery.js +1 -1
  504. package/testing/core/mocking/mockWatchQuery.js.map +1 -1
  505. package/testing/core/observableToPromise.d.ts +2 -2
  506. package/testing/core/observableToPromise.d.ts.map +1 -1
  507. package/testing/core/observableToPromise.js.map +1 -1
  508. package/testing/core/subscribeAndCount.d.ts +1 -1
  509. package/testing/core/subscribeAndCount.d.ts.map +1 -1
  510. package/testing/core/subscribeAndCount.js +1 -1
  511. package/testing/core/subscribeAndCount.js.map +1 -1
  512. package/testing/index.d.ts +3 -3
  513. package/testing/index.d.ts.map +1 -1
  514. package/testing/index.js +3 -3
  515. package/testing/index.js.map +1 -1
  516. package/testing/matchers/index.js +2 -2
  517. package/testing/matchers/index.js.map +1 -1
  518. package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts +1 -1
  519. package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts.map +1 -1
  520. package/testing/matchers/toHaveSuspenseCacheEntryUsing.js +2 -2
  521. package/testing/matchers/toHaveSuspenseCacheEntryUsing.js.map +1 -1
  522. package/testing/matchers/toMatchDocument.d.ts +1 -1
  523. package/testing/matchers/toMatchDocument.d.ts.map +1 -1
  524. package/testing/matchers/toMatchDocument.js +1 -1
  525. package/testing/matchers/toMatchDocument.js.map +1 -1
  526. package/testing/react/MockedProvider.d.ts +7 -7
  527. package/testing/react/MockedProvider.d.ts.map +1 -1
  528. package/testing/react/MockedProvider.js +5 -5
  529. package/testing/react/MockedProvider.js.map +1 -1
  530. package/testing/testing.cjs.map +1 -1
  531. package/utilities/common/canUse.js.map +1 -1
  532. package/utilities/common/compact.d.ts +1 -1
  533. package/utilities/common/compact.d.ts.map +1 -1
  534. package/utilities/common/compact.js.map +1 -1
  535. package/utilities/common/errorHandling.d.ts +1 -1
  536. package/utilities/common/errorHandling.d.ts.map +1 -1
  537. package/utilities/common/errorHandling.js.map +1 -1
  538. package/utilities/common/incrementalResult.d.ts +1 -1
  539. package/utilities/common/incrementalResult.d.ts.map +1 -1
  540. package/utilities/common/incrementalResult.js.map +1 -1
  541. package/utilities/common/maybeDeepFreeze.d.ts.map +1 -1
  542. package/utilities/common/maybeDeepFreeze.js +3 -4
  543. package/utilities/common/maybeDeepFreeze.js.map +1 -1
  544. package/utilities/common/mergeDeep.d.ts +1 -1
  545. package/utilities/common/mergeDeep.d.ts.map +1 -1
  546. package/utilities/common/mergeDeep.js.map +1 -1
  547. package/utilities/common/mergeOptions.d.ts +1 -1
  548. package/utilities/common/mergeOptions.d.ts.map +1 -1
  549. package/utilities/common/mergeOptions.js.map +1 -1
  550. package/utilities/common/omitDeep.d.ts +1 -1
  551. package/utilities/common/omitDeep.d.ts.map +1 -1
  552. package/utilities/common/omitDeep.js +1 -1
  553. package/utilities/common/omitDeep.js.map +1 -1
  554. package/utilities/common/responseIterator.js.map +1 -1
  555. package/utilities/common/stringifyForDisplay.js.map +1 -1
  556. package/utilities/common/stripTypename.d.ts +1 -1
  557. package/utilities/common/stripTypename.d.ts.map +1 -1
  558. package/utilities/common/stripTypename.js +1 -1
  559. package/utilities/common/stripTypename.js.map +1 -1
  560. package/utilities/globals/global.d.ts.map +1 -1
  561. package/utilities/globals/global.js.map +1 -1
  562. package/utilities/globals/globals.cjs +4 -16
  563. package/utilities/globals/globals.cjs.map +1 -1
  564. package/utilities/globals/globals.cjs.native.js +4 -16
  565. package/utilities/globals/index.d.ts +5 -6
  566. package/utilities/globals/index.d.ts.map +1 -1
  567. package/utilities/globals/index.js +2 -5
  568. package/utilities/globals/index.js.map +1 -1
  569. package/utilities/globals/invariantWrappers.d.ts +1 -1
  570. package/utilities/globals/invariantWrappers.d.ts.map +1 -1
  571. package/utilities/globals/invariantWrappers.js +3 -3
  572. package/utilities/globals/invariantWrappers.js.map +1 -1
  573. package/utilities/graphql/DocumentTransform.js +3 -3
  574. package/utilities/graphql/DocumentTransform.js.map +1 -1
  575. package/utilities/graphql/directives.js +1 -1
  576. package/utilities/graphql/directives.js.map +1 -1
  577. package/utilities/graphql/fragments.js +1 -1
  578. package/utilities/graphql/fragments.js.map +1 -1
  579. package/utilities/graphql/getFromAST.js +2 -2
  580. package/utilities/graphql/getFromAST.js.map +1 -1
  581. package/utilities/graphql/operations.d.ts +1 -1
  582. package/utilities/graphql/operations.d.ts.map +1 -1
  583. package/utilities/graphql/operations.js +1 -1
  584. package/utilities/graphql/operations.js.map +1 -1
  585. package/utilities/graphql/print.js +1 -1
  586. package/utilities/graphql/print.js.map +1 -1
  587. package/utilities/graphql/storeUtils.d.ts +1 -1
  588. package/utilities/graphql/storeUtils.d.ts.map +1 -1
  589. package/utilities/graphql/storeUtils.js +3 -3
  590. package/utilities/graphql/storeUtils.js.map +1 -1
  591. package/utilities/graphql/transform.js +7 -7
  592. package/utilities/graphql/transform.js.map +1 -1
  593. package/utilities/index.d.ts +34 -34
  594. package/utilities/index.d.ts.map +1 -1
  595. package/utilities/index.js +32 -32
  596. package/utilities/index.js.map +1 -1
  597. package/utilities/observables/Concast.d.ts +2 -2
  598. package/utilities/observables/Concast.d.ts.map +1 -1
  599. package/utilities/observables/Concast.js.map +1 -1
  600. package/utilities/observables/asyncMap.d.ts +1 -1
  601. package/utilities/observables/asyncMap.d.ts.map +1 -1
  602. package/utilities/observables/asyncMap.js.map +1 -1
  603. package/utilities/observables/iteration.d.ts +1 -1
  604. package/utilities/observables/iteration.d.ts.map +1 -1
  605. package/utilities/observables/iteration.js.map +1 -1
  606. package/utilities/observables/subclassing.d.ts +1 -1
  607. package/utilities/observables/subclassing.d.ts.map +1 -1
  608. package/utilities/observables/subclassing.js.map +1 -1
  609. package/utilities/policies/pagination.d.ts +1 -1
  610. package/utilities/policies/pagination.d.ts.map +1 -1
  611. package/utilities/policies/pagination.js +1 -1
  612. package/utilities/policies/pagination.js.map +1 -1
  613. package/utilities/types/DeepOmit.d.ts +1 -1
  614. package/utilities/types/DeepOmit.d.ts.map +1 -1
  615. package/utilities/types/DeepOmit.js.map +1 -1
  616. package/utilities/types/DeepPartial.d.ts +1 -1
  617. package/utilities/types/DeepPartial.d.ts.map +1 -1
  618. package/utilities/types/DeepPartial.js.map +1 -1
  619. package/utilities/utilities.cjs +4 -4
  620. package/utilities/utilities.cjs.map +1 -1
  621. package/utilities/utilities.cjs.native.js +4 -4
  622. package/version.js +1 -1
  623. package/react/hooks/internal/useStrictModeSafeCleanupEffect.d.ts +0 -2
  624. package/react/hooks/internal/useStrictModeSafeCleanupEffect.d.ts.map +0 -1
  625. package/react/hooks/internal/useStrictModeSafeCleanupEffect.js +0 -11
  626. package/react/hooks/internal/useStrictModeSafeCleanupEffect.js.map +0 -1
  627. package/utilities/globals/DEV.d.ts +0 -3
  628. package/utilities/globals/DEV.d.ts.map +0 -1
  629. package/utilities/globals/DEV.js +0 -4
  630. package/utilities/globals/DEV.js.map +0 -1
  631. package/utilities/globals/fix-graphql.d.ts +0 -2
  632. package/utilities/globals/fix-graphql.d.ts.map +0 -1
  633. package/utilities/globals/fix-graphql.js +0 -6
  634. package/utilities/globals/fix-graphql.js.map +0 -1
@@ -1,5 +1,5 @@
1
- export { Query } from './Query';
2
- export { Mutation } from './Mutation';
3
- export { Subscription } from './Subscription';
4
- export * from './types';
1
+ export { Query } from './Query.js';
2
+ export { Mutation } from './Mutation.js';
3
+ export { Subscription } from './Subscription.js';
4
+ export * from './types.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,cAAc,YAAY,CAAC"}
@@ -1,5 +1,5 @@
1
- export { Query } from "./Query.js";
2
- export { Mutation } from "./Mutation.js";
3
- export { Subscription } from "./Subscription.js";
4
- export * from "./types.js";
1
+ export { Query } from './Query.js';
2
+ export { Mutation } from './Mutation.js';
3
+ export { Subscription } from './Subscription.js';
4
+ export * from './types.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,cAAc,SAAS,CAAC","sourcesContent":["export { Query } from './Query';\nexport { Mutation } from './Mutation';\nexport { Subscription } from './Subscription';\n\nexport * from './types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,cAAc,YAAY,CAAC","sourcesContent":["export { Query } from './Query.js';\nexport { Mutation } from './Mutation.js';\nexport { Subscription } from './Subscription.js';\n\nexport * from './types.js';\n"]}
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import type { DocumentNode } from 'graphql';
3
3
  import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
4
- import type { OperationVariables, DefaultContext, ApolloCache } from '../../core';
5
- import type { QueryFunctionOptions, QueryResult, BaseMutationOptions, MutationFunction, MutationResult, BaseSubscriptionOptions, SubscriptionResult } from '../types/types';
4
+ import type { OperationVariables, DefaultContext, ApolloCache } from '../../core/index.js';
5
+ import type { QueryFunctionOptions, QueryResult, BaseMutationOptions, MutationFunction, MutationResult, BaseSubscriptionOptions, SubscriptionResult } from '../types/types.js';
6
6
  export interface QueryComponentOptions<TData = any, TVariables extends OperationVariables = OperationVariables> extends QueryFunctionOptions<TData, TVariables> {
7
7
  children: (result: QueryResult<TData, TVariables>) => JSX.Element | null;
8
8
  query: DocumentNode | TypedDocumentNode<TData, TVariables>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/react/components/types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAClF,OAAO,KAAK,EACV,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,qBAAqB,CACpC,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,kBAAkB,GAAG,kBAAkB,CAC1D,SAAQ,oB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AAQ,uBAAuB,CAAC,KAAK,EAAE,UAAU,CAAC;IAClD,YAAY,EAAE,YAAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAClE,QAAQ,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,kBAAkB,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;CAC/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/react/components/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { DocumentNode } from 'graphql';\nimport type { TypedDocumentNode } from '@graphql-typed-document-node/core';\n\nimport type { OperationVariables, DefaultContext, ApolloCache } from '../../core';\nimport type {\n QueryFunctionOptions,\n QueryResult,\n BaseMutationOptions,\n MutationFunction,\n MutationResult,\n BaseSubscriptionOptions,\n SubscriptionResult\n} from '../types/types';\n\nexport interface QueryComponentOptions<\n TData = any,\n TVariables extends OperationVariables = OperationVariables\n> extends QueryFunctionOptions<TData, TVariables> {\n children: (result: QueryResult<TData, TVariables>) => JSX.Element | null;\n query: DocumentNode | TypedDocumentNode<TData, TVariables>;\n}\n\nexport interface MutationComponentOptions<\n TData = any,\n TVariables = OperationVariables,\n TContext = DefaultContext,\n TCache extends ApolloCache<any> = ApolloCache<any>\n> extends BaseMutationOptions<TData, TVariables, TContext, TCache> {\n mutation: DocumentNode | TypedDocumentNode<TData, TVariables>;\n children: (\n mutateFunction: MutationFunction<TData, TVariables, TContext>,\n result: MutationResult<TData>\n ) => JSX.Element | null;\n}\n\nexport interface SubscriptionComponentOptions<\n TData = any,\n TVariables extends OperationVariables = OperationVariables\n> extends BaseSubscriptionOptions<TData, TVariables> {\n subscription: DocumentNode | TypedDocumentNode<TData, TVariables>;\n children?: null | ((result: SubscriptionResult<TData>) => JSX.Element | null);\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/react/components/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { DocumentNode } from 'graphql';\nimport type { TypedDocumentNode } from '@graphql-typed-document-node/core';\n\nimport type { OperationVariables, DefaultContext, ApolloCache } from '../../core/index.js';\nimport type {\n QueryFunctionOptions,\n QueryResult,\n BaseMutationOptions,\n MutationFunction,\n MutationResult,\n BaseSubscriptionOptions,\n SubscriptionResult\n} from '../types/types.js';\n\nexport interface QueryComponentOptions<\n TData = any,\n TVariables extends OperationVariables = OperationVariables\n> extends QueryFunctionOptions<TData, TVariables> {\n children: (result: QueryResult<TData, TVariables>) => JSX.Element | null;\n query: DocumentNode | TypedDocumentNode<TData, TVariables>;\n}\n\nexport interface MutationComponentOptions<\n TData = any,\n TVariables = OperationVariables,\n TContext = DefaultContext,\n TCache extends ApolloCache<any> = ApolloCache<any>\n> extends BaseMutationOptions<TData, TVariables, TContext, TCache> {\n mutation: DocumentNode | TypedDocumentNode<TData, TVariables>;\n children: (\n mutateFunction: MutationFunction<TData, TVariables, TContext>,\n result: MutationResult<TData>\n ) => JSX.Element | null;\n}\n\nexport interface SubscriptionComponentOptions<\n TData = any,\n TVariables extends OperationVariables = OperationVariables\n> extends BaseSubscriptionOptions<TData, TVariables> {\n subscription: DocumentNode | TypedDocumentNode<TData, TVariables>;\n children?: null | ((result: SubscriptionResult<TData>) => JSX.Element | null);\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { ApolloClient } from '../../core';
2
+ import type { ApolloClient } from '../../core/index.js';
3
3
  export interface ApolloConsumerProps {
4
4
  children: (client: ApolloClient<object>) => React.ReactChild | null;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloConsumer.d.ts","sourceRoot":"","sources":["../../../src/react/context/ApolloConsumer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC;CACrE;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAcxD,CAAC"}
1
+ {"version":3,"file":"ApolloConsumer.d.ts","sourceRoot":"","sources":["../../../src/react/context/ApolloConsumer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC;CACrE;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAcxD,CAAC"}
@@ -1,6 +1,6 @@
1
- import { invariant } from "../../utilities/globals/index.js";
1
+ import { invariant } from '../../utilities/globals/index.js';
2
2
  import * as React from 'react';
3
- import { getApolloContext } from "./ApolloContext.js";
3
+ import { getApolloContext } from './ApolloContext.js';
4
4
  export var ApolloConsumer = function (props) {
5
5
  var ApolloContext = getApolloContext();
6
6
  return (React.createElement(ApolloContext.Consumer, null, function (context) {
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloConsumer.js","sourceRoot":"","sources":["../../../src/react/context/ApolloConsumer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAMnD,MAAM,CAAC,IAAM,cAAc,GAAkC,UAAA,KAAK;IAChE,IAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,OAAO,CACL,oBAAC,aAAa,CAAC,QAAQ,QACpB,UAAC,OAAY;QACZ,SAAS,CACP,OAAO,IAAI,OAAO,CAAC,MAAM,EACzB,4DAA4D;YAC1D,iDAAiD,CACpD,CAAC;QACF,OAAO,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC,CACsB,CAC1B,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { invariant } from '../../utilities/globals';\n\nimport * as React from 'react';\n\nimport type { ApolloClient } from '../../core';\nimport { getApolloContext } from './ApolloContext';\n\nexport interface ApolloConsumerProps {\n children: (client: ApolloClient<object>) => React.ReactChild | null;\n}\n\nexport const ApolloConsumer: React.FC<ApolloConsumerProps> = props => {\n const ApolloContext = getApolloContext();\n return (\n <ApolloContext.Consumer>\n {(context: any) => {\n invariant(\n context && context.client,\n 'Could not find \"client\" in the context of ApolloConsumer. ' +\n 'Wrap the root component in an <ApolloProvider>.'\n );\n return props.children(context.client);\n }}\n </ApolloContext.Consumer>\n );\n};\n"]}
1
+ {"version":3,"file":"ApolloConsumer.js","sourceRoot":"","sources":["../../../src/react/context/ApolloConsumer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAMtD,MAAM,CAAC,IAAM,cAAc,GAAkC,UAAA,KAAK;IAChE,IAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,OAAO,CACL,oBAAC,aAAa,CAAC,QAAQ,QACpB,UAAC,OAAY;QACZ,SAAS,CACP,OAAO,IAAI,OAAO,CAAC,MAAM,EACzB,4DAA4D;YAC1D,iDAAiD,CACpD,CAAC;QACF,OAAO,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC,CACsB,CAC1B,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { invariant } from '../../utilities/globals/index.js';\n\nimport * as React from 'react';\n\nimport type { ApolloClient } from '../../core/index.js';\nimport { getApolloContext } from './ApolloContext.js';\n\nexport interface ApolloConsumerProps {\n children: (client: ApolloClient<object>) => React.ReactChild | null;\n}\n\nexport const ApolloConsumer: React.FC<ApolloConsumerProps> = props => {\n const ApolloContext = getApolloContext();\n return (\n <ApolloContext.Consumer>\n {(context: any) => {\n invariant(\n context && context.client,\n 'Could not find \"client\" in the context of ApolloConsumer. ' +\n 'Wrap the root component in an <ApolloProvider>.'\n );\n return props.children(context.client);\n }}\n </ApolloContext.Consumer>\n );\n};\n"]}
@@ -1,16 +1,15 @@
1
1
  import * as React from 'react';
2
- import type { ApolloClient } from '../../core';
3
- import type { SuspenseCache } from '../cache';
4
- import type { RenderPromises } from '../ssr';
2
+ import type { ApolloClient } from '../../core/index.js';
3
+ import type { SuspenseCache } from '../cache/index.js';
4
+ import type { RenderPromises } from '../ssr/index.js';
5
5
  export interface ApolloContextValue {
6
6
  client?: ApolloClient<object>;
7
7
  renderPromises?: RenderPromises;
8
8
  suspenseCache?: SuspenseCache;
9
9
  }
10
- type ReactVersion = string;
11
10
  declare global {
12
11
  interface Window {
13
- [contextKey]: Record<ReactVersion, React.Context<ApolloContextValue>>;
12
+ [contextKey]: Map<typeof React.createContext, React.Context<ApolloContextValue>>;
14
13
  }
15
14
  }
16
15
  declare const contextKey: unique symbol;
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloContext.d.ts","sourceRoot":"","sources":["../../../src/react/context/ApolloContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAG7C,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC9B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AmB,CAAC"}
@@ -1,13 +1,20 @@
1
1
  import * as React from 'react';
2
- import { canUseSymbol } from "../../utilities/index.js";
3
- import { global, invariant } from "../../utilities/globals/index.js";
2
+ import { canUseSymbol } from '../../utilities/index.js';
3
+ import { global, invariant } from '../../utilities/globals/index.js';
4
4
  var contextKey = canUseSymbol
5
5
  ? Symbol.for('__APOLLO_CONTEXT__')
6
6
  : '__APOLLO_CONTEXT__';
7
7
  export function getApolloContext() {
8
8
  invariant('createContext' in React, 43);
9
- var contextStorage = global[contextKey] || (global[contextKey] = Object.create(null));
10
- return contextStorage[React.version] || (contextStorage[React.version] = Object.assign(React.createContext({}), { displayName: 'ApolloContext' }));
9
+ var contextStorage = global[contextKey] || (global[contextKey] = new Map());
10
+ var value = contextStorage.get(React.createContext);
11
+ if (!value) {
12
+ value = Object.assign(React.createContext({}), {
13
+ displayName: 'ApolloContext',
14
+ });
15
+ contextStorage.set(React.createContext, value);
16
+ }
17
+ return value;
11
18
  }
12
19
  export var resetApolloContext = getApolloContext;
13
20
  //# sourceMappingURL=ApolloContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloContext.js","sourceRoot":"","sources":["../../../src/react/context/ApolloContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAuB5D,IAAM,UAAU,GAAkB,YAAY;IAC5C,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC;IAClC,CAAC,CAAE,oBAA4B,CAAC;AAElC,MAAM,UAAU,gBAAgB;IAC9B,SAAS,CACP,eAAe,IAAI,KAAK,EACxB,+FAA+F;QAC7F,uGAAuG;QACvG,iEAAiE;QAEjE,sGAAsG,CACzG,CAAC;IAEF,IAAI,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CACzC,MAAM,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CACzC,CAAC;IAEF,OAAO,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CACtC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,CAC3C,KAAK,CAAC,aAAa,CAAqB,EAAE,CAAC,EAC3C,EAAE,WAAW,EAAE,eAAe,EAAE,CACjC,CACF,CAAC;AACJ,CAAC;AAOD,MAAM,CAAC,IAAM,kBAAkB,GAAG,gBAAgB,CAAC","sourcesContent":["import * as React from 'react';\nimport type { ApolloClient } from '../../core';\nimport { canUseSymbol } from '../../utilities';\nimport type { SuspenseCache } from '../cache';\nimport type { RenderPromises } from '../ssr';\nimport { global, invariant } from '../../utilities/globals';\n\nexport interface ApolloContextValue {\n client?: ApolloClient<object>;\n renderPromises?: RenderPromises;\n suspenseCache?: SuspenseCache;\n}\n\ntype ReactVersion = string;\ndeclare global {\n interface Window {\n [contextKey]: Record<ReactVersion, React.Context<ApolloContextValue>>;\n }\n}\n\n// To make sure that Apollo Client does not create more than one React context\n// per React version, we store that Context in a global Map, keyed by the\n// React version. This way, if there are multiple versions of React loaded,\n// (e.g. in a Microfrontend environment), each React version will get its own\n// Apollo context.\n// If there are multiple versions of Apollo Client though, which can happen by\n// accident, this can avoid bugs where those multiple Apollo Client versions\n// would be unable to \"see each other\", even if an ApolloProvider was present.\nconst contextKey: unique symbol = canUseSymbol\n ? Symbol.for('__APOLLO_CONTEXT__')\n : ('__APOLLO_CONTEXT__' as any);\n\nexport function getApolloContext(): React.Context<ApolloContextValue> {\n invariant(\n 'createContext' in React,\n 'Invoking `getApolloContext` in an environment where `React.createContext` is not available.\\n' +\n 'The Apollo Client functionality you are trying to use is only available in React Client Components.\\n' +\n 'Please make sure to add \"use client\" at the top of your file.\\n' +\n // TODO: change to React documentation once React documentation contains information about Client Components\n 'For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components'\n );\n\n let contextStorage = global[contextKey] || (\n global[contextKey] = Object.create(null)\n );\n\n return contextStorage[React.version] || (\n contextStorage[React.version] = Object.assign(\n React.createContext<ApolloContextValue>({}),\n { displayName: 'ApolloContext' },\n )\n );\n}\n\n/**\n * @deprecated This function has no \"resetting\" effect since Apollo Client 3.4.12,\n * and will be removed in the next major version of Apollo Client.\n * If you want to get the Apollo Context, use `getApolloContext` instead.\n */\nexport const resetApolloContext = getApolloContext;\n"]}
1
+ {"version":3,"file":"ApolloContext.js","sourceRoot":"","sources":["../../../src/react/context/ApolloContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAyBrE,IAAM,UAAU,GAAkB,YAAY;IAC5C,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC;IAClC,CAAC,CAAE,oBAA4B,CAAC;AAElC,MAAM,UAAU,gBAAgB;IAC9B,SAAS,CACP,eAAe,IAAI,KAAK,EACxB,+FAA+F;QAC7F,uGAAuG;QACvG,iEAAiE;QAEjE,sGAAsG,CACzG,CAAC;IAEF,IAAI,cAAc,GAChB,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC;IAEzD,IAAI,KAAK,GAAG,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IACpD,IAAI,CAAC,KAAK,EAAE;QACV,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAqB,EAAE,CAAC,EAAE;YACjE,WAAW,EAAE,eAAe;SAC7B,CAAC,CAAC;QACH,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KAChD;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAOD,MAAM,CAAC,IAAM,kBAAkB,GAAG,gBAAgB,CAAC","sourcesContent":["import * as React from 'react';\nimport type { ApolloClient } from '../../core/index.js';\nimport { canUseSymbol } from '../../utilities/index.js';\nimport type { SuspenseCache } from '../cache/index.js';\nimport type { RenderPromises } from '../ssr/index.js';\nimport { global, invariant } from '../../utilities/globals/index.js';\n\nexport interface ApolloContextValue {\n client?: ApolloClient<object>;\n renderPromises?: RenderPromises;\n suspenseCache?: SuspenseCache;\n}\n\ndeclare global {\n interface Window {\n [contextKey]: Map<\n typeof React.createContext,\n React.Context<ApolloContextValue>\n >;\n }\n}\n\n// To make sure that Apollo Client does not create more than one React context\n// per React version, we store that Context in a global Map, keyed by the\n// React version. This way, if there are multiple versions of React loaded,\n// (e.g. in a Microfrontend environment), each React version will get its own\n// Apollo context.\n// If there are multiple versions of Apollo Client though, which can happen by\n// accident, this can avoid bugs where those multiple Apollo Client versions\n// would be unable to \"see each other\", even if an ApolloProvider was present.\nconst contextKey: unique symbol = canUseSymbol\n ? Symbol.for('__APOLLO_CONTEXT__')\n : ('__APOLLO_CONTEXT__' as any);\n\nexport function getApolloContext(): React.Context<ApolloContextValue> {\n invariant(\n 'createContext' in React,\n 'Invoking `getApolloContext` in an environment where `React.createContext` is not available.\\n' +\n 'The Apollo Client functionality you are trying to use is only available in React Client Components.\\n' +\n 'Please make sure to add \"use client\" at the top of your file.\\n' +\n // TODO: change to React documentation once React documentation contains information about Client Components\n 'For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components'\n );\n\n let contextStorage =\n global[contextKey] || (global[contextKey] = new Map());\n\n let value = contextStorage.get(React.createContext);\n if (!value) {\n value = Object.assign(React.createContext<ApolloContextValue>({}), {\n displayName: 'ApolloContext',\n });\n contextStorage.set(React.createContext, value);\n }\n\n return value;\n}\n\n/**\n * @deprecated This function has no \"resetting\" effect since Apollo Client 3.4.12,\n * and will be removed in the next major version of Apollo Client.\n * If you want to get the Apollo Context, use `getApolloContext` instead.\n */\nexport const resetApolloContext = getApolloContext;\n"]}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import type { ApolloClient } from '../../core';
3
- import type { SuspenseCache } from '../cache';
2
+ import type { ApolloClient } from '../../core/index.js';
3
+ import type { SuspenseCache } from '../cache/index.js';
4
4
  export interface ApolloProviderProps<TCache> {
5
5
  client: ApolloClient<TCache>;
6
6
  suspenseCache?: SuspenseCache;
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloProvider.d.ts","sourceRoot":"","sources":["../../../src/react/context/ApolloProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,WAAW,mBAAmB,CAAC,MAAM;IACzC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC;CACtD;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAyB7D,CAAC"}
1
+ {"version":3,"file":"ApolloProvider.d.ts","sourceRoot":"","sources":["../../../src/react/context/ApolloProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,mBAAmB,CAAC,MAAM;IACzC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC;CACtD;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAyB7D,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
- import { invariant } from "../../utilities/globals/index.js";
2
+ import { invariant } from '../../utilities/globals/index.js';
3
3
  import * as React from 'react';
4
- import { getApolloContext } from "./ApolloContext.js";
4
+ import { getApolloContext } from './ApolloContext.js';
5
5
  export var ApolloProvider = function (_a) {
6
6
  var client = _a.client, suspenseCache = _a.suspenseCache, children = _a.children;
7
7
  var ApolloContext = getApolloContext();
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloProvider.js","sourceRoot":"","sources":["../../../src/react/context/ApolloProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AASnD,MAAM,CAAC,IAAM,cAAc,GAAuC,UAAC,EAIlE;QAHC,MAAM,YAAA,EACN,aAAa,mBAAA,EACb,QAAQ,cAAA;IAER,IAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,IAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAEtD,IAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAC5B,6BACK,aAAa,KAChB,MAAM,EAAE,MAAM,IAAI,aAAa,CAAC,MAAM,EACtC,aAAa,EAAE,aAAa,IAAI,aAAa,CAAC,aAAa,IAC3D;IACJ,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IAE3C,SAAS,CACP,OAAO,CAAC,MAAM,EACd,wDAAwD;QACtD,qDAAqD,CACxD,CAAC;IAEF,OAAO,CACL,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,IAAG,QAAQ,CAA0B,CAC5E,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { invariant } from '../../utilities/globals';\n\nimport * as React from 'react';\n\nimport type { ApolloClient } from '../../core';\nimport { getApolloContext } from './ApolloContext';\nimport type { SuspenseCache } from '../cache';\n\nexport interface ApolloProviderProps<TCache> {\n client: ApolloClient<TCache>;\n suspenseCache?: SuspenseCache;\n children: React.ReactNode | React.ReactNode[] | null;\n}\n\nexport const ApolloProvider: React.FC<ApolloProviderProps<any>> = ({\n client,\n suspenseCache,\n children,\n}) => {\n const ApolloContext = getApolloContext();\n const parentContext = React.useContext(ApolloContext);\n\n const context = React.useMemo(() => {\n return {\n ...parentContext,\n client: client || parentContext.client,\n suspenseCache: suspenseCache || parentContext.suspenseCache,\n };\n }, [parentContext, client, suspenseCache]);\n\n invariant(\n context.client,\n 'ApolloProvider was not passed a client instance. Make ' +\n 'sure you pass in your client via the \"client\" prop.'\n );\n\n return (\n <ApolloContext.Provider value={context}>{children}</ApolloContext.Provider>\n );\n};\n"]}
1
+ {"version":3,"file":"ApolloProvider.js","sourceRoot":"","sources":["../../../src/react/context/ApolloProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAStD,MAAM,CAAC,IAAM,cAAc,GAAuC,UAAC,EAIlE;QAHC,MAAM,YAAA,EACN,aAAa,mBAAA,EACb,QAAQ,cAAA;IAER,IAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,IAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAEtD,IAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAC5B,6BACK,aAAa,KAChB,MAAM,EAAE,MAAM,IAAI,aAAa,CAAC,MAAM,EACtC,aAAa,EAAE,aAAa,IAAI,aAAa,CAAC,aAAa,IAC3D;IACJ,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IAE3C,SAAS,CACP,OAAO,CAAC,MAAM,EACd,wDAAwD;QACtD,qDAAqD,CACxD,CAAC;IAEF,OAAO,CACL,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,IAAG,QAAQ,CAA0B,CAC5E,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { invariant } from '../../utilities/globals/index.js';\n\nimport * as React from 'react';\n\nimport type { ApolloClient } from '../../core/index.js';\nimport { getApolloContext } from './ApolloContext.js';\nimport type { SuspenseCache } from '../cache/index.js';\n\nexport interface ApolloProviderProps<TCache> {\n client: ApolloClient<TCache>;\n suspenseCache?: SuspenseCache;\n children: React.ReactNode | React.ReactNode[] | null;\n}\n\nexport const ApolloProvider: React.FC<ApolloProviderProps<any>> = ({\n client,\n suspenseCache,\n children,\n}) => {\n const ApolloContext = getApolloContext();\n const parentContext = React.useContext(ApolloContext);\n\n const context = React.useMemo(() => {\n return {\n ...parentContext,\n client: client || parentContext.client,\n suspenseCache: suspenseCache || parentContext.suspenseCache,\n };\n }, [parentContext, client, suspenseCache]);\n\n invariant(\n context.client,\n 'ApolloProvider was not passed a client instance. Make ' +\n 'sure you pass in your client via the \"client\" prop.'\n );\n\n return (\n <ApolloContext.Provider value={context}>{children}</ApolloContext.Provider>\n );\n};\n"]}
@@ -26,8 +26,15 @@ var contextKey = utilities.canUseSymbol
26
26
  : '__APOLLO_CONTEXT__';
27
27
  function getApolloContext() {
28
28
  globals.invariant('createContext' in React__namespace, 43);
29
- var contextStorage = globals.global[contextKey] || (globals.global[contextKey] = Object.create(null));
30
- return contextStorage[React__namespace.version] || (contextStorage[React__namespace.version] = Object.assign(React__namespace.createContext({}), { displayName: 'ApolloContext' }));
29
+ var contextStorage = globals.global[contextKey] || (globals.global[contextKey] = new Map());
30
+ var value = contextStorage.get(React__namespace.createContext);
31
+ if (!value) {
32
+ value = Object.assign(React__namespace.createContext({}), {
33
+ displayName: 'ApolloContext',
34
+ });
35
+ contextStorage.set(React__namespace.createContext, value);
36
+ }
37
+ return value;
31
38
  }
32
39
  var resetApolloContext = getApolloContext;
33
40
 
@@ -1 +1 @@
1
- {"version":3,"file":"context.cjs","sources":["ApolloContext.js","ApolloConsumer.js","ApolloProvider.js"],"sourcesContent":["import * as React from 'react';\nimport { canUseSymbol } from '../../utilities';\nimport { global, invariant } from '../../utilities/globals';\nvar contextKey = canUseSymbol\n ? Symbol.for('__APOLLO_CONTEXT__')\n : '__APOLLO_CONTEXT__';\nexport function getApolloContext() {\n invariant('createContext' in React, 43);\n var contextStorage = global[contextKey] || (global[contextKey] = Object.create(null));\n return contextStorage[React.version] || (contextStorage[React.version] = Object.assign(React.createContext({}), { displayName: 'ApolloContext' }));\n}\nexport var resetApolloContext = getApolloContext;\n//# sourceMappingURL=ApolloContext.js.map","import { invariant } from '../../utilities/globals';\nimport * as React from 'react';\nimport { getApolloContext } from './ApolloContext';\nexport var ApolloConsumer = function (props) {\n var ApolloContext = getApolloContext();\n return (React.createElement(ApolloContext.Consumer, null, function (context) {\n invariant(context && context.client, 42);\n return props.children(context.client);\n }));\n};\n//# sourceMappingURL=ApolloConsumer.js.map","import { __assign } from \"tslib\";\nimport { invariant } from '../../utilities/globals';\nimport * as React from 'react';\nimport { getApolloContext } from './ApolloContext';\nexport var ApolloProvider = function (_a) {\n var client = _a.client, suspenseCache = _a.suspenseCache, children = _a.children;\n var ApolloContext = getApolloContext();\n var parentContext = React.useContext(ApolloContext);\n var context = React.useMemo(function () {\n return __assign(__assign({}, parentContext), { client: client || parentContext.client, suspenseCache: suspenseCache || parentContext.suspenseCache });\n }, [parentContext, client, suspenseCache]);\n invariant(context.client, 44);\n return (React.createElement(ApolloContext.Provider, { value: context }, children));\n};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AG,EAAE,CAAC,QAAQ,CAAC;AACrF,IAAI,IAAI,aAAa,GAAG,gBAAgB,EAAE,CAAC;AAC3C,IAAI,IAAI,aAAa,GAAGC,gBAAK,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACxD,IAAI,IAAI,OAAO,GAAGA,gBAAK,CAAC,OAAO,CAAC,YAAY;AAC5C,QAAQ,OAAOE,cAAQ,CAACA,cAAQ,CAAC,EAAE,EAAE,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,IAAI,aAAa,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,IAAI,aAAa,CAAC,aAAa,EAAE,CAAC,CAAC;AAC9J,KAAK,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;AAC/C,IAAIH,iBAAS,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAClC,IAAI,QAAQC,gBAAK,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,CAAC,EAAE;AACvF;;;;;;;"}
1
+ {"version":3,"file":"context.cjs","sources":["ApolloContext.js","ApolloConsumer.js","ApolloProvider.js"],"sourcesContent":["import * as React from 'react';\nimport { canUseSymbol } from '../../utilities/index.js';\nimport { global, invariant } from '../../utilities/globals/index.js';\nvar contextKey = canUseSymbol\n ? Symbol.for('__APOLLO_CONTEXT__')\n : '__APOLLO_CONTEXT__';\nexport function getApolloContext() {\n invariant('createContext' in React, 43);\n var contextStorage = global[contextKey] || (global[contextKey] = new Map());\n var value = contextStorage.get(React.createContext);\n if (!value) {\n value = Object.assign(React.createContext({}), {\n displayName: 'ApolloContext',\n });\n contextStorage.set(React.createContext, value);\n }\n return value;\n}\nexport var resetApolloContext = getApolloContext;\n//# sourceMappingURL=ApolloContext.js.map","import { invariant } from '../../utilities/globals/index.js';\nimport * as React from 'react';\nimport { getApolloContext } from './ApolloContext.js';\nexport var ApolloConsumer = function (props) {\n var ApolloContext = getApolloContext();\n return (React.createElement(ApolloContext.Consumer, null, function (context) {\n invariant(context && context.client, 42);\n return props.children(context.client);\n }));\n};\n//# sourceMappingURL=ApolloConsumer.js.map","import { __assign } from \"tslib\";\nimport { invariant } from '../../utilities/globals/index.js';\nimport * as React from 'react';\nimport { getApolloContext } from './ApolloContext.js';\nexport var ApolloProvider = function (_a) {\n var client = _a.client, suspenseCache = _a.suspenseCache, children = _a.children;\n var ApolloContext = getApolloContext();\n var parentContext = React.useContext(ApolloContext);\n var context = React.useMemo(function () {\n return __assign(__assign({}, parentContext), { client: client || parentContext.client, suspenseCache: suspenseCache || parentContext.suspenseCache });\n }, [parentContext, client, suspenseCache]);\n invariant(context.client, 44);\n return (React.createElement(ApolloContext.Provider, { value: context }, children));\n};\n//# sourceMappingURL=ApolloProvider.js.map"],"names":["canUseSymbol","invariant","React","global","__assign"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAI,UAAU,GAAGA,sBAAY;AAC7B,MAAM,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC;AACtC,MAAM,oBAAoB,CAAC;AACpB,SAAS,gBAAgB,GAAG;AACnC,IAAIC,iBAAS,CAAC,eAAe,IAAIC,gBAAK,EAAE,EAAE,CAAC,CAAC;AAC5C,IAAI,IAAI,cAAc,GAAGC,cAAM,CAAC,UAAU,CAAC,KAAKA,cAAM,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC;AAChF,IAAI,IAAI,KAAK,GAAG,cAAc,CAAC,GAAG,CAACD,gBAAK,CAAC,aAAa,CAAC,CAAC;AACxD,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,QAAQ,KAAK,GAAG,MAAM,CAAC,MAAM,CAACA,gBAAK,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE;AACvD,YAAY,WAAW,EAAE,eAAe;AACxC,SAAS,CAAC,CAAC;AACX,QAAQ,cAAc,CAAC,GAAG,CAACA,g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aAAa,CAAC,aAAa,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,CAAC,EAAE;AACvF;;;;;;;"}
@@ -26,8 +26,15 @@ var contextKey = utilities.canUseSymbol
26
26
  : '__APOLLO_CONTEXT__';
27
27
  function getApolloContext() {
28
28
  globals.invariant('createContext' in React__namespace, 43);
29
- var contextStorage = globals.global[contextKey] || (globals.global[contextKey] = Object.create(null));
30
- return contextStorage[React__namespace.version] || (contextStorage[React__namespace.version] = Object.assign(React__namespace.createContext({}), { displayName: 'ApolloContext' }));
29
+ var contextStorage = globals.global[contextKey] || (globals.global[contextKey] = new Map());
30
+ var value = contextStorage.get(React__namespace.createContext);
31
+ if (!value) {
32
+ value = Object.assign(React__namespace.createContext({}), {
33
+ displayName: 'ApolloContext',
34
+ });
35
+ contextStorage.set(React__namespace.createContext, value);
36
+ }
37
+ return value;
31
38
  }
32
39
  var resetApolloContext = getApolloContext;
33
40
 
@@ -1,5 +1,5 @@
1
- import '../../utilities/globals';
2
- export { ApolloConsumer, ApolloConsumerProps } from './ApolloConsumer';
3
- export { ApolloContextValue, getApolloContext, resetApolloContext } from './ApolloContext';
4
- export { ApolloProvider, ApolloProviderProps } from './ApolloProvider';
1
+ import '../../utilities/globals/index.js';
2
+ export { ApolloConsumer, ApolloConsumerProps } from './ApolloConsumer.js';
3
+ export { ApolloContextValue, getApolloContext, resetApolloContext } from './ApolloContext.js';
4
+ export { ApolloProvider, ApolloProviderProps } from './ApolloProvider.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,5 +1,5 @@
1
- import "../../utilities/globals/index.js";
2
- export { ApolloConsumer } from "./ApolloConsumer.js";
3
- export { getApolloContext, resetApolloContext } from "./ApolloContext.js";
4
- export { ApolloProvider } from "./ApolloProvider.js";
1
+ import '../../utilities/globals/index.js';
2
+ export { ApolloConsumer } from './ApolloConsumer.js';
3
+ export { getApolloContext, resetApolloContext } from './ApolloContext.js';
4
+ export { ApolloProvider } from './ApolloProvider.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAuB,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAEL,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAuB,MAAM,kBAAkB,CAAC","sourcesContent":["import '../../utilities/globals';\n\nexport { ApolloConsumer, ApolloConsumerProps } from './ApolloConsumer';\nexport {\n ApolloContextValue,\n getApolloContext,\n resetApolloContext\n} from './ApolloContext';\nexport { ApolloProvider, ApolloProviderProps } from './ApolloProvider';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAuB,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAEL,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAuB,MAAM,qBAAqB,CAAC","sourcesContent":["import '../../utilities/globals/index.js';\n\nexport { ApolloConsumer, ApolloConsumerProps } from './ApolloConsumer.js';\nexport {\n ApolloContextValue,\n getApolloContext,\n resetApolloContext\n} from './ApolloContext.js';\nexport { ApolloProvider, ApolloProviderProps } from './ApolloProvider.js';\n"]}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { DocumentNode } from 'graphql';
3
- import type { OperationOption, DataProps, MutateProps } from './types';
4
- import type { OperationVariables } from '../../core';
3
+ import type { OperationOption, DataProps, MutateProps } from './types.js';
4
+ import type { OperationVariables } from '../../core/index.js';
5
5
  export declare function graphql<TProps extends TGraphQLVariables | {} = {}, TData extends object = {}, TGraphQLVariables extends OperationVariables = {}, TChildProps extends object = Partial<DataProps<TData, TGraphQLVariables>> & Partial<MutateProps<TData, TGraphQLVariables>>>(document: DocumentNode, operationOptions?: OperationOption<TProps, TData, TGraphQLVariables, TChildProps>): (WrappedComponent: React.ComponentType<TProps & TChildProps>) => React.ComponentClass<TProps>;
6
6
  //# sourceMappingURL=graphql.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/react/hoc/graphql.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAM5C,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD,wBAAgB,OAAO,CACrB,MAAM,SAAS,iBAAiB,GAAG,EAAE,GAAG,EAAE,EAC1C,KAAK,SAAS,MAAM,GAAG,EAAE,EAC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 +1,7 @@
1
- import { parser, DocumentType } from "../parser/index.js";
2
- import { withQuery } from "./query-hoc.js";
3
- import { withMutation } from "./mutation-hoc.js";
4
- import { withSubscription } from "./subscription-hoc.js";
1
+ import { parser, DocumentType } from '../parser/index.js';
2
+ import { withQuery } from './query-hoc.js';
3
+ import { withMutation } from './mutation-hoc.js';
4
+ import { withSubscription } from './subscription-hoc.js';
5
5
  export function graphql(document, operationOptions) {
6
6
  if (operationOptions === void 0) { operationOptions = {}; }
7
7
  switch (parser(document).type) {
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../../src/react/hoc/graphql.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItD,MAAM,UAAU,OAAO,CAOrB,QAAsB,EACtB,gBAKM;IALN,iCAAA,EAAA,qBAKM;IAIN,QAAQ,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE;QAC7B,KAAK,YAAY,CAAC,QAAQ;YACxB,OAAO,YAAY,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;QAClD,KAAK,YAAY,CAAC,YAAY;YAC5B,OAAO,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;QACtD,KAAK,YAAY,CAAC,KAAK,CAAC;QACxB;YACE,OAAO,SAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;KAChD;AACH,CAAC","sourcesContent":["import type { DocumentNode } from 'graphql';\n\nimport { parser, DocumentType } from '../parser';\nimport { withQuery } from './query-hoc';\nimport { withMutation } from './mutation-hoc';\nimport { withSubscription } from './subscription-hoc';\nimport type { OperationOption, DataProps, MutateProps } from './types';\nimport type { OperationVariables } from '../../core';\n\nexport function graphql<\n TProps extends TGraphQLVariables | {} = {},\n TData extends object = {},\n TGraphQLVariables extends OperationVariables = {},\n TChildProps extends object = Partial<DataProps<TData, TGraphQLVariables>> &\n Partial<MutateProps<TData, TGraphQLVariables>>\n>(\n document: DocumentNode,\n operationOptions: OperationOption<\n TProps,\n TData,\n TGraphQLVariables,\n TChildProps\n > = {}\n): (\n WrappedComponent: React.ComponentType<TProps & TChildProps>\n) => React.ComponentClass<TProps> {\n switch (parser(document).type) {\n case DocumentType.Mutation:\n return withMutation(document, operationOptions);\n case DocumentType.Subscription:\n return withSubscription(document, operationOptions);\n case DocumentType.Query:\n default:\n return withQuery(document, operationOptions);\n }\n}\n"]}
1
+ {"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../../src/react/hoc/graphql.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAIzD,MAAM,UAAU,OAAO,CAOrB,QAAsB,EACtB,gBAKM;IALN,iCAAA,EAAA,qBAKM;IAIN,QAAQ,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE;QAC7B,KAAK,YAAY,CAAC,QAAQ;YACxB,OAAO,YAAY,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;QAClD,KAAK,YAAY,CAAC,YAAY;YAC5B,OAAO,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;QACtD,KAAK,YAAY,CAAC,KAAK,CAAC;QACxB;YACE,OAAO,SAAS,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;KAChD;AACH,CAAC","sourcesContent":["import type { DocumentNode } from 'graphql';\n\nimport { parser, DocumentType } from '../parser/index.js';\nimport { withQuery } from './query-hoc.js';\nimport { withMutation } from './mutation-hoc.js';\nimport { withSubscription } from './subscription-hoc.js';\nimport type { OperationOption, DataProps, MutateProps } from './types.js';\nimport type { OperationVariables } from '../../core/index.js';\n\nexport function graphql<\n TProps extends TGraphQLVariables | {} = {},\n TData extends object = {},\n TGraphQLVariables extends OperationVariables = {},\n TChildProps extends object = Partial<DataProps<TData, TGraphQLVariables>> &\n Partial<MutateProps<TData, TGraphQLVariables>>\n>(\n document: DocumentNode,\n operationOptions: OperationOption<\n TProps,\n TData,\n TGraphQLVariables,\n TChildProps\n > = {}\n): (\n WrappedComponent: React.ComponentType<TProps & TChildProps>\n) => React.ComponentClass<TProps> {\n switch (parser(document).type) {\n case DocumentType.Mutation:\n return withMutation(document, operationOptions);\n case DocumentType.Subscription:\n return withSubscription(document, operationOptions);\n case DocumentType.Query:\n default:\n return withQuery(document, operationOptions);\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import type { OperationVariables } from '../../core';
3
- import type { IDocumentDefinition } from '../parser';
2
+ import type { OperationVariables } from '../../core/index.js';
3
+ import type { IDocumentDefinition } from '../parser/index.js';
4
4
  export declare const defaultMapPropsToOptions: () => {};
5
5
  export declare const defaultMapResultToProps: <P>(props: P) => P;
6
6
  export declare const defaultMapPropsToSkip: () => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"hoc-utils.d.ts","sourceRoot":"","sources":["../../../src/react/hoc/hoc-utils.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErD,eAAO,MAAM,wBAAwB,UAAa,CAAC;AACnD,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,CAAkB,CAAC;AAC1E,eAAO,MAAM,q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B,KAAK,EAAE,MAAM,sBAoBd;AAED,MAAM,MAAM,SAAS,CAAC,WAAW,IAAI,CACnC,GAAG,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,KACnC,IAAI,GAAG,IAAI,CAAC;AAGjB,qBAAa,WAAW,CACtB,MAAM,EACN,WAAW,EACX,MAAM,GAAG,GAAG,CACZ,SAAQ,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IAChC,OAAO,EAAE,OAAO,CAAS;IAEhC,OAAO,CAAC,eAAe,CAAC,CAAoC;gBAEhD,KAAK,EAAE,MAAM;IAKzB,kBAAkB;IAUlB,kBAAkB,CAAC,GAAG,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;CAG1D"}
@@ -1,5 +1,5 @@
1
1
  import { __extends } from "tslib";
2
- import { invariant } from "../../utilities/globals/index.js";
2
+ import { invariant } from '../../utilities/globals/index.js';
3
3
  import * as React from 'react';
4
4
  export var defaultMapPropsToOptions = function () { return ({}); };
5
5
  export var defaultMapResultToProps = function (props) { return props; };
@@ -1 +1 @@
1
- {"version":3,"file":"hoc-utils.js","sourceRoot":"","sources":["../../../src/react/hoc/hoc-utils.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,CAAC,IAAM,wBAAwB,GAAG,cAAM,OAAA,CAAC,EAAE,CAAC,EAAJ,CAAI,CAAC;AACnD,MAAM,CAAC,IAAM,uBAAuB,GAAuB,UAAA,KAAK,IAAI,OAAA,KAAK,EAAL,CAAK,CAAC;AAC1E,MAAM,CAAC,IAAM,qBAAqB,GAAG,cAAM,OAAA,KAAK,EAAL,CAAK,CAAC;AAEjD,MAAM,UAAU,cAAc,CAAI,gBAAwC;IACxE,OAAO,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;AAC9E,CAA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/globals';\nimport * as React from 'react';\nimport type { OperationVariables } from '../../core';\nimport type { IDocumentDefinition } from '../parser';\n\nexport const defaultMapPropsToOptions = () => ({});\nexport const defaultMapResultToProps: <P>(props: P) => P = props => props;\nexport const defaultMapPropsToSkip = () => false;\n\nexport function getDisplayName<P>(WrappedComponent: React.ComponentType<P>) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n}\n\nexport function calculateVariablesFromProps<TProps>(\n operation: IDocumentDefinition,\n props: TProps\n) {\n let variables: OperationVariables = {};\n for (let { variable, type } of operation.variables) {\n if (!variable.name || !variable.name.value) continue;\n\n const variableName = variable.name.value;\n const variableProp = (props as any)[variableName];\n\n if (typeof variableProp !== 'undefined') {\n variables[variableName] = variableProp;\n continue;\n }\n\n // Allow optional props\n if (type.kind !== 'NonNullType') {\n variables[variableName] = undefined;\n }\n }\n return variables;\n}\n\nexport type RefSetter<TChildProps> = (\n ref: React.ComponentClass<TChildProps>\n) => void | void;\n\n// base class for hocs to easily manage refs\nexport class GraphQLBase<\n TProps,\n TChildProps,\n TState = any\n> extends React.Component<TProps, TState> {\n public withRef: boolean = false;\n // wrapped instance\n private wrappedInstance?: React.ComponentClass<TChildProps>;\n\n constructor(props: TProps) {\n super(props);\n this.setWrappedInstance = this.setWrappedInstance.bind(this);\n }\n\n getWrappedInstance() {\n invariant(\n this.withRef,\n `To access the wrapped instance, you need to specify ` +\n `{ withRef: true } in the options`\n );\n\n return this.wrappedInstance;\n }\n\n setWrappedInstance(ref: React.ComponentClass<TChildProps>) {\n this.wrappedInstance = ref;\n }\n}\n"]}
1
+ {"version":3,"file":"hoc-utils.js","sourceRoot":"","sources":["../../../src/react/hoc/hoc-utils.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,CAAC,IAAM,wBAAwB,GAAG,cAAM,OAAA,CAAC,EAAE,CAAC,EAAJ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B;QACE,SAAS,CACP,IAAI,CAAC,OAAO,EACZ,sDAAsD;YACpD,kCAAkC,CACrC,CAAC;QAEF,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED,wCAAkB,GAAlB,UAAmB,GAAsC;QACvD,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;IACH,kBAAC;AAAD,CAAC,AA3BD,CAIU,KAAK,CAAC,SAAS,GAuBxB","sourcesContent":["import { invariant } from '../../utilities/globals/index.js';\nimport * as React from 'react';\nimport type { OperationVariables } from '../../core/index.js';\nimport type { IDocumentDefinition } from '../parser/index.js';\n\nexport const defaultMapPropsToOptions = () => ({});\nexport const defaultMapResultToProps: <P>(props: P) => P = props => props;\nexport const defaultMapPropsToSkip = () => false;\n\nexport function getDisplayName<P>(WrappedComponent: React.ComponentType<P>) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n}\n\nexport function calculateVariablesFromProps<TProps>(\n operation: IDocumentDefinition,\n props: TProps\n) {\n let variables: OperationVariables = {};\n for (let { variable, type } of operation.variables) {\n if (!variable.name || !variable.name.value) continue;\n\n const variableName = variable.name.value;\n const variableProp = (props as any)[variableName];\n\n if (typeof variableProp !== 'undefined') {\n variables[variableName] = variableProp;\n continue;\n }\n\n // Allow optional props\n if (type.kind !== 'NonNullType') {\n variables[variableName] = undefined;\n }\n }\n return variables;\n}\n\nexport type RefSetter<TChildProps> = (\n ref: React.ComponentClass<TChildProps>\n) => void | void;\n\n// base class for hocs to easily manage refs\nexport class GraphQLBase<\n TProps,\n TChildProps,\n TState = any\n> extends React.Component<TProps, TState> {\n public withRef: boolean = false;\n // wrapped instance\n private wrappedInstance?: React.ComponentClass<TChildProps>;\n\n constructor(props: TProps) {\n super(props);\n this.setWrappedInstance = this.setWrappedInstance.bind(this);\n }\n\n getWrappedInstance() {\n invariant(\n this.withRef,\n `To access the wrapped instance, you need to specify ` +\n `{ withRef: true } in the options`\n );\n\n return this.wrappedInstance;\n }\n\n setWrappedInstance(ref: React.ComponentClass<TChildProps>) {\n this.wrappedInstance = ref;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"hoc.cjs","sources":["hoc-utils.js","query-hoc.js","mutation-hoc.js","subscription-hoc.js","graphql.js","withApollo.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { invariant } from '../../utilities/globals';\nimport * as React from 'react';\nexport var defaultMapPropsToOptions = function () { return ({}); };\nexport var defaultMapResultToProps = function (props) { return props; };\nexport var defaultMapPropsToSkip = function () { return false; };\nexport function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n}\nexport function calculateVariablesFromProps(operation, props) {\n var variables = {};\n for (var _i = 0, _a = operation.variables; _i < _a.length; _i++) {\n var _b = _a[_i], variable = _b.variable, type = _b.type;\n if (!variable.name || !variable.name.value)\n continue;\n var variableName = variable.name.value;\n var variableProp = props[variableName];\n if (typeof variableProp !== 'undefined') {\n variables[variableName] = variableProp;\n continue;\n }\n if (type.kind !== 'NonNullType') {\n variables[variableName] = undefined;\n }\n }\n return variables;\n}\nvar GraphQLBase = (function (_super) {\n __extends(GraphQLBase, _super);\n function GraphQLBase(props) {\n var _this = _super.call(this, props) || this;\n _this.withRef = false;\n _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n return _this;\n }\n GraphQLBase.prototype.getWrappedInstance = function () {\n invariant(this.withRef, 45);\n return this.wrappedInstance;\n };\n GraphQLBase.prototype.setWrappedInstance = function (ref) {\n this.wrappedInstance = ref;\n };\n return GraphQLBase;\n}(React.Component));\nexport { GraphQLBase };\n//# sourceMappingURL=hoc-utils.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from 'react';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { parser } from '../parser';\nimport { Query } from '../components';\nimport { getDisplayName, GraphQLBase, calculateVariablesFromProps, defaultMapPropsToOptions, defaultMapPropsToSkip } from './hoc-utils';\nexport function withQuery(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n var operation = parser(document);\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.skip, skip = _b === void 0 ? defaultMapPropsToSkip : _b, _c = operationOptions.alias, alias = _c === void 0 ? 'Apollo' : _c;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== 'function') {\n mapPropsToOptions = function () { return options; };\n }\n var mapPropsToSkip = skip;\n if (typeof mapPropsToSkip !== 'function') {\n mapPropsToSkip = function () { return skip; };\n }\n var lastResultProps;\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n GraphQL.prototype.render = function () {\n var _this = this;\n var props = this.props;\n var shouldSkip = mapPropsToSkip(props);\n var opts = shouldSkip\n ? Object.create(null)\n : __assign({}, mapPropsToOptions(props));\n if (!shouldSkip && !opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (React.createElement(Query, __assign({}, opts, { displayName: graphQLDisplayName, skip: shouldSkip, query: document }), function (_a) {\n var _b, _c;\n var _ = _a.client, data = _a.data, r = __rest(_a, [\"client\", \"data\"]);\n if (operationOptions.withRef) {\n _this.withRef = true;\n props = Object.assign({}, props, {\n ref: _this.setWrappedInstance\n });\n }\n if (shouldSkip) {\n return (React.createElement(WrappedComponent, __assign({}, props, {})));\n }\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || 'data';\n var childProps = (_b = {}, _b[name] = result, _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = result,\n _c.ownProps = props,\n _c);\n lastResultProps = operationOptions.props(newResult, lastResultProps);\n childProps = lastResultProps;\n }\n return (React.createElement(WrappedComponent, __assign({}, props, childProps)));\n }));\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=query-hoc.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from 'react';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { parser } from '../parser';\nimport { Mutation } from '../components';\nimport { defaultMapPropsToOptions, getDisplayName, calculateVariablesFromProps, GraphQLBase } from './hoc-utils';\nexport function withMutation(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n var operation = parser(document);\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.alias, alias = _b === void 0 ? 'Apollo' : _b;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== 'function')\n mapPropsToOptions = function () { return options; };\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n GraphQL.prototype.render = function () {\n var props = this.props;\n var opts = mapPropsToOptions(props);\n if (operationOptions.withRef) {\n this.withRef = true;\n props = Object.assign({}, props, {\n ref: this.setWrappedInstance\n });\n }\n if (!opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (React.createElement(Mutation, __assign({ ignoreResults: true }, opts, { mutation: document }), function (mutate, _a) {\n var _b, _c;\n var data = _a.data, r = __rest(_a, [\"data\"]);\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || 'mutate';\n var resultName = operationOptions.name\n ? \"\".concat(name, \"Result\")\n : 'result';\n var childProps = (_b = {},\n _b[name] = mutate,\n _b[resultName] = result,\n _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = mutate,\n _c[resultName] = result,\n _c.ownProps = props,\n _c);\n childProps = operationOptions.props(newResult);\n }\n return React.createElement(WrappedComponent, __assign({}, props, childProps));\n }));\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=mutation-hoc.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from 'react';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { parser } from '../parser';\nimport { Subscription } from '../components';\nimport { getDisplayName, GraphQLBase, calculateVariablesFromProps, defaultMapPropsToOptions, defaultMapPropsToSkip } from './hoc-utils';\nexport function withSubscription(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n var operation = parser(document);\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.skip, skip = _b === void 0 ? defaultMapPropsToSkip : _b, _c = operationOptions.alias, alias = _c === void 0 ? 'Apollo' : _c, shouldResubscribe = operationOptions.shouldResubscribe;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== 'function')\n mapPropsToOptions = function () { return options; };\n var mapPropsToSkip = skip;\n if (typeof mapPropsToSkip !== 'function')\n mapPropsToSkip = function () { return skip; };\n var lastResultProps;\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL(props) {\n var _this = _super.call(this, props) || this;\n _this.state = { resubscribe: false };\n return _this;\n }\n GraphQL.prototype.updateResubscribe = function (resubscribe) {\n this.setState({ resubscribe: resubscribe });\n };\n GraphQL.prototype.componentDidUpdate = function (prevProps) {\n var resubscribe = !!(shouldResubscribe &&\n shouldResubscribe(prevProps, this.props));\n if (this.state.resubscribe !== resubscribe) {\n this.updateResubscribe(resubscribe);\n }\n };\n GraphQL.prototype.render = function () {\n var _this = this;\n var props = this.props;\n var shouldSkip = mapPropsToSkip(props);\n var opts = shouldSkip\n ? Object.create(null)\n : mapPropsToOptions(props);\n if (!shouldSkip && !opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (React.createElement(Subscription, __assign({}, opts, { displayName: graphQLDisplayName, skip: shouldSkip, subscription: document, shouldResubscribe: this.state.resubscribe }), function (_a) {\n var _b, _c;\n var data = _a.data, r = __rest(_a, [\"data\"]);\n if (operationOptions.withRef) {\n _this.withRef = true;\n props = Object.assign({}, props, {\n ref: _this.setWrappedInstance\n });\n }\n if (shouldSkip) {\n return (React.createElement(WrappedComponent, __assign({}, props, {})));\n }\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || 'data';\n var childProps = (_b = {}, _b[name] = result, _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = result,\n _c.ownProps = props,\n _c);\n lastResultProps = operationOptions.props(newResult, lastResultProps);\n childProps = lastResultProps;\n }\n return (React.createElement(WrappedComponent, __assign({}, props, childProps)));\n }));\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=subscription-hoc.js.map","import { parser, DocumentType } from '../parser';\nimport { withQuery } from './query-hoc';\nimport { withMutation } from './mutation-hoc';\nimport { withSubscription } from './subscription-hoc';\nexport function graphql(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n switch (parser(document).type) {\n case DocumentType.Mutation:\n return withMutation(document, operationOptions);\n case DocumentType.Subscription:\n return withSubscription(document, operationOptions);\n case DocumentType.Query:\n default:\n return withQuery(document, operationOptions);\n }\n}\n//# sourceMappingURL=graphql.js.map","import { __assign, __extends } from \"tslib\";\nimport { invariant } from '../../utilities/globals';\nimport * as React from 'react';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { ApolloConsumer } from '../context';\nfunction getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n}\nexport function withApollo(WrappedComponent, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n var withDisplayName = \"withApollo(\".concat(getDisplayName(WrappedComponent), \")\");\n var WithApollo = (function (_super) {\n __extends(WithApollo, _super);\n function WithApollo(props) {\n var _this = _super.call(this, props) || this;\n _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n return _this;\n }\n WithApollo.prototype.getWrappedInstance = function () {\n invariant(operationOptions.withRef, 46);\n return this.wrappedInstance;\n };\n WithApollo.prototype.setWrappedInstance = function (ref) {\n this.wrappedInstance = ref;\n };\n WithApollo.prototype.render = function () {\n var _this = this;\n return (React.createElement(ApolloConsumer, null, function (client) {\n var props = Object.assign({}, _this.props, {\n client: client,\n ref: operationOptions.withRef\n ? _this.setWrappedInstance\n : undefined\n });\n return React.createElement(WrappedComponent, __assign({}, props));\n }));\n };\n WithApollo.displayName = withDisplayName;\n WithApollo.WrappedComponent = WrappedComponent;\n return WithApollo;\n }(React.Component));\n return hoistNonReactStatics(WithApollo, WrappedComponent, {});\n}\n//# sourceMappingURL=withApollo.js.map"],"names":["getDisplayName","__extends","invariant","React","parser","__assign","Query","__rest","hoistNonReactStatics","Mutation","Subscription","DocumentType","ApolloConsumer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAI,wBAAwB,GAAG,YAAY,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;AAE5D,IAAI,qBAAqB,GAAG,YAAY,EAAE,OAAO,KAAK,CAAC,EAAE,CAAC;AAC1D,SAASA,gBAAc,CAAC,gBAAgB,EAAE;AACjD,IAAI,OAAO,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;AAChF,CAAC;AACM,SAAS,2BAA2B,CAAC,SAAS,EAAE,KAAK,EAAE;AAC9D,IAAI,IAAI,SAAS,GAAG,EAAE,CAAC;AACvB,IAAI,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC,SAAS,EA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.js","graphql.js","withApollo.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { invariant } from '../../utilities/globals/index.js';\nimport * as React from 'react';\nexport var defaultMapPropsToOptions = function () { return ({}); };\nexport var defaultMapResultToProps = function (props) { return props; };\nexport var defaultMapPropsToSkip = function () { return false; };\nexport function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n}\nexport function calculateVariablesFromProps(operation, props) {\n var variables = {};\n for (var _i = 0, _a = operation.variables; _i < _a.length; _i++) {\n var _b = _a[_i], variable = _b.variable, type = _b.type;\n if (!variable.name || !variable.name.value)\n continue;\n var variableName = variable.name.value;\n var variableProp = props[variableName];\n if (typeof variableProp !== 'undefined') {\n variables[variableName] = variableProp;\n continue;\n }\n if (type.kind !== 'NonNullType') {\n variables[variableName] = undefined;\n }\n }\n return variables;\n}\nvar GraphQLBase = (function (_super) {\n __extends(GraphQLBase, _super);\n function GraphQLBase(props) {\n var _this = _super.call(this, props) || this;\n _this.withRef = false;\n _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n return _this;\n }\n GraphQLBase.prototype.getWrappedInstance = function () {\n invariant(this.withRef, 45);\n return this.wrappedInstance;\n };\n GraphQLBase.prototype.setWrappedInstance = function (ref) {\n this.wrappedInstance = ref;\n };\n return GraphQLBase;\n}(React.Component));\nexport { GraphQLBase };\n//# sourceMappingURL=hoc-utils.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from 'react';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { parser } from '../parser/index.js';\nimport { Query } from '../components/index.js';\nimport { getDisplayName, GraphQLBase, calculateVariablesFromProps, defaultMapPropsToOptions, defaultMapPropsToSkip } from './hoc-utils.js';\nexport function withQuery(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n var operation = parser(document);\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.skip, skip = _b === void 0 ? defaultMapPropsToSkip : _b, _c = operationOptions.alias, alias = _c === void 0 ? 'Apollo' : _c;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== 'function') {\n mapPropsToOptions = function () { return options; };\n }\n var mapPropsToSkip = skip;\n if (typeof mapPropsToSkip !== 'function') {\n mapPropsToSkip = function () { return skip; };\n }\n var lastResultProps;\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n GraphQL.prototype.render = function () {\n var _this = this;\n var props = this.props;\n var shouldSkip = mapPropsToSkip(props);\n var opts = shouldSkip\n ? Object.create(null)\n : __assign({}, mapPropsToOptions(props));\n if (!shouldSkip && !opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (React.createElement(Query, __assign({}, opts, { displayName: graphQLDisplayName, skip: shouldSkip, query: document }), function (_a) {\n var _b, _c;\n var _ = _a.client, data = _a.data, r = __rest(_a, [\"client\", \"data\"]);\n if (operationOptions.withRef) {\n _this.withRef = true;\n props = Object.assign({}, props, {\n ref: _this.setWrappedInstance\n });\n }\n if (shouldSkip) {\n return (React.createElement(WrappedComponent, __assign({}, props, {})));\n }\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || 'data';\n var childProps = (_b = {}, _b[name] = result, _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = result,\n _c.ownProps = props,\n _c);\n lastResultProps = operationOptions.props(newResult, lastResultProps);\n childProps = lastResultProps;\n }\n return (React.createElement(WrappedComponent, __assign({}, props, childProps)));\n }));\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=query-hoc.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from 'react';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { parser } from '../parser/index.js';\nimport { Mutation } from '../components/index.js';\nimport { defaultMapPropsToOptions, getDisplayName, calculateVariablesFromProps, GraphQLBase } from './hoc-utils.js';\nexport function withMutation(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n var operation = parser(document);\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.alias, alias = _b === void 0 ? 'Apollo' : _b;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== 'function')\n mapPropsToOptions = function () { return options; };\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n GraphQL.prototype.render = function () {\n var props = this.props;\n var opts = mapPropsToOptions(props);\n if (operationOptions.withRef) {\n this.withRef = true;\n props = Object.assign({}, props, {\n ref: this.setWrappedInstance\n });\n }\n if (!opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (React.createElement(Mutation, __assign({ ignoreResults: true }, opts, { mutation: document }), function (mutate, _a) {\n var _b, _c;\n var data = _a.data, r = __rest(_a, [\"data\"]);\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || 'mutate';\n var resultName = operationOptions.name\n ? \"\".concat(name, \"Result\")\n : 'result';\n var childProps = (_b = {},\n _b[name] = mutate,\n _b[resultName] = result,\n _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = mutate,\n _c[resultName] = result,\n _c.ownProps = props,\n _c);\n childProps = operationOptions.props(newResult);\n }\n return React.createElement(WrappedComponent, __assign({}, props, childProps));\n }));\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=mutation-hoc.js.map","import { __assign, __extends, __rest } from \"tslib\";\nimport * as React from 'react';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { parser } from '../parser/index.js';\nimport { Subscription } from '../components/index.js';\nimport { getDisplayName, GraphQLBase, calculateVariablesFromProps, defaultMapPropsToOptions, defaultMapPropsToSkip } from './hoc-utils.js';\nexport function withSubscription(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n var operation = parser(document);\n var _a = operationOptions.options, options = _a === void 0 ? defaultMapPropsToOptions : _a, _b = operationOptions.skip, skip = _b === void 0 ? defaultMapPropsToSkip : _b, _c = operationOptions.alias, alias = _c === void 0 ? 'Apollo' : _c, shouldResubscribe = operationOptions.shouldResubscribe;\n var mapPropsToOptions = options;\n if (typeof mapPropsToOptions !== 'function')\n mapPropsToOptions = function () { return options; };\n var mapPropsToSkip = skip;\n if (typeof mapPropsToSkip !== 'function')\n mapPropsToSkip = function () { return skip; };\n var lastResultProps;\n return function (WrappedComponent) {\n var graphQLDisplayName = \"\".concat(alias, \"(\").concat(getDisplayName(WrappedComponent), \")\");\n var GraphQL = (function (_super) {\n __extends(GraphQL, _super);\n function GraphQL(props) {\n var _this = _super.call(this, props) || this;\n _this.state = { resubscribe: false };\n return _this;\n }\n GraphQL.prototype.updateResubscribe = function (resubscribe) {\n this.setState({ resubscribe: resubscribe });\n };\n GraphQL.prototype.componentDidUpdate = function (prevProps) {\n var resubscribe = !!(shouldResubscribe &&\n shouldResubscribe(prevProps, this.props));\n if (this.state.resubscribe !== resubscribe) {\n this.updateResubscribe(resubscribe);\n }\n };\n GraphQL.prototype.render = function () {\n var _this = this;\n var props = this.props;\n var shouldSkip = mapPropsToSkip(props);\n var opts = shouldSkip\n ? Object.create(null)\n : mapPropsToOptions(props);\n if (!shouldSkip && !opts.variables && operation.variables.length > 0) {\n opts.variables = calculateVariablesFromProps(operation, props);\n }\n return (React.createElement(Subscription, __assign({}, opts, { displayName: graphQLDisplayName, skip: shouldSkip, subscription: document, shouldResubscribe: this.state.resubscribe }), function (_a) {\n var _b, _c;\n var data = _a.data, r = __rest(_a, [\"data\"]);\n if (operationOptions.withRef) {\n _this.withRef = true;\n props = Object.assign({}, props, {\n ref: _this.setWrappedInstance\n });\n }\n if (shouldSkip) {\n return (React.createElement(WrappedComponent, __assign({}, props, {})));\n }\n var result = Object.assign(r, data || {});\n var name = operationOptions.name || 'data';\n var childProps = (_b = {}, _b[name] = result, _b);\n if (operationOptions.props) {\n var newResult = (_c = {},\n _c[name] = result,\n _c.ownProps = props,\n _c);\n lastResultProps = operationOptions.props(newResult, lastResultProps);\n childProps = lastResultProps;\n }\n return (React.createElement(WrappedComponent, __assign({}, props, childProps)));\n }));\n };\n GraphQL.displayName = graphQLDisplayName;\n GraphQL.WrappedComponent = WrappedComponent;\n return GraphQL;\n }(GraphQLBase));\n return hoistNonReactStatics(GraphQL, WrappedComponent, {});\n };\n}\n//# sourceMappingURL=subscription-hoc.js.map","import { parser, DocumentType } from '../parser/index.js';\nimport { withQuery } from './query-hoc.js';\nimport { withMutation } from './mutation-hoc.js';\nimport { withSubscription } from './subscription-hoc.js';\nexport function graphql(document, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n switch (parser(document).type) {\n case DocumentType.Mutation:\n return withMutation(document, operationOptions);\n case DocumentType.Subscription:\n return withSubscription(document, operationOptions);\n case DocumentType.Query:\n default:\n return withQuery(document, operationOptions);\n }\n}\n//# sourceMappingURL=graphql.js.map","import { __assign, __extends } from \"tslib\";\nimport { invariant } from '../../utilities/globals/index.js';\nimport * as React from 'react';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { ApolloConsumer } from '../context/index.js';\nfunction getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n}\nexport function withApollo(WrappedComponent, operationOptions) {\n if (operationOptions === void 0) { operationOptions = {}; }\n var withDisplayName = \"withApollo(\".concat(getDisplayName(WrappedComponent), \")\");\n var WithApollo = (function (_super) {\n __extends(WithApollo, _super);\n function WithApollo(props) {\n var _this = _super.call(this, props) || this;\n _this.setWrappedInstance = _this.setWrappedInstance.bind(_this);\n return _this;\n }\n WithApollo.prototype.getWrappedInstance = function () {\n invariant(operationOptions.withRef, 46);\n return this.wrappedInstance;\n };\n WithApollo.prototype.setWrappedInstance = function (ref) {\n this.wrappedInstance = ref;\n };\n WithApollo.prototype.render = function () {\n var _this = this;\n return (React.createElement(ApolloConsumer, null, function (client) {\n var props = Object.assign({}, _this.props, {\n client: client,\n ref: operationOptions.withRef\n ? _this.setWrappedInstance\n : undefined\n });\n return React.createElement(WrappedComponent, __assign({}, props));\n }));\n };\n WithApollo.displayName = withDisplayName;\n WithApollo.WrappedComponent = WrappedComponent;\n return WithApollo;\n }(React.Component));\n return hoistNonReactStatics(WithApollo, WrappedComponent, {});\n}\n//# sourceMappingURL=withApollo.js.map"],"names":["getDisplayName","__extends","invariant","React","parser","__assign","Query","__rest","hoistNonReactStatics","Mutation","Subscription","DocumentType","ApolloConsumer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAI,wBAAwB,GAAG,YAAY,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;AAE5D,IAAI,qBAAqB,GAAG,YAAY,EAAE,OAAO,KAAK,CAAC,EAAE,CAAC;AAC1D,SAASA,gBAAc,CAAC,gBAAgB,EAAE;AACjD,IAAI,OAAO,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;AAChF,CAAC;AACM,SAAS,2BAA2B,CAAC,SAAS,EAAE,KAAK,EAAE;AAC9D,IAAI,IAAI,SAAS,GAAG,EAAE,CAAC;AACvB,IAAI,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE;AACrE,QAAQ,IAAI,EAAE,GAAG,E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YAAY,OAAO,IAAI,CAAC,eAAe,CAAC;AACxC,SAAS,CAAC;AACV,QAAQ,UAAU,CAAC,SAAS,CAAC,kBAAkB,GAAG,UAAU,GAAG,EAAE;AACjE,YAAY,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;AACvC,SAAS,CAAC;AACV,QAAQ,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,YAAY;AAClD,YAAY,IAAI,KAAK,GAAG,IAAI,CAAC;AAC7B,YAAY,QAAQC,gBAAK,CAAC,aAAa,CAACS,sBAAc,EAAE,IAAI,EAAE,UAAU,MAAM,EAAE;AAChF,gBAAgB,IAAI,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE;AAC3D,oBAAoB,MAAM,EAAE,MAAM;AAClC,oBAAoB,GAAG,EAAE,gBAAgB,CAAC,OAAO;AACjD,0BAA0B,KAAK,CAAC,kBAAkB;AAClD,0BAA0B,SAAS;AACnC,iBAAiB,CAAC,CAAC;AACnB,gBAAgB,OAAOT,gBAAK,CAAC,aAAa,CAAC,gBAAgB,EAAEE,cAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC;AAClF,aAAa,CAAC,EAAE;AAChB,SAAS,CAAC;AACV,QAAQ,UAAU,CAAC,WAAW,GAAG,eAAe,CAAC;AACjD,QAAQ,UAAU,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AACvD,QAAQ,OAAO,UAAU,CAAC;AAC1B,KAAK,CAACF,gBAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AACxB,IAAI,OAAOK,6BAAoB,CAAC,UAAU,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC;AAClE;;;;;;;;"}
@@ -1,8 +1,8 @@
1
- import '../../utilities/globals';
2
- export { graphql } from './graphql';
3
- export { withQuery } from './query-hoc';
4
- export { withMutation } from './mutation-hoc';
5
- export { withSubscription } from './subscription-hoc';
6
- export { withApollo } from './withApollo';
7
- export * from './types';
1
+ import '../../utilities/globals/index.js';
2
+ export { graphql } from './graphql.js';
3
+ export { withQuery } from './query-hoc.js';
4
+ export { withMutation } from './mutation-hoc.js';
5
+ export { withSubscription } from './subscription-hoc.js';
6
+ export { withApollo } from './withApollo.js';
7
+ export * from './types.js';
8
8
  //# sourceMappingURL=index.d.ts.map