react-easy-wall 1.0.18 → 1.0.21

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 (682) hide show
  1. package/dist/cjs/assets/corona.svg.js +10 -0
  2. package/dist/cjs/assets/corona.svg.js.map +1 -0
  3. package/dist/cjs/components/panel/Panel.js +1 -0
  4. package/dist/cjs/components/panel/Panel.js.map +1 -1
  5. package/dist/cjs/components/panel/PanelAvatar.js +4 -2
  6. package/dist/cjs/components/panel/PanelAvatar.js.map +1 -1
  7. package/dist/cjs/components/panel/PanelButton.js +1 -0
  8. package/dist/cjs/components/panel/PanelButton.js.map +1 -1
  9. package/dist/cjs/components/panel/PanelDivider.js +1 -0
  10. package/dist/cjs/components/panel/PanelDivider.js.map +1 -1
  11. package/dist/cjs/components/panel/PanelFooter.js +1 -0
  12. package/dist/cjs/components/panel/PanelFooter.js.map +1 -1
  13. package/dist/cjs/components/panel/PanelHeader.js +1 -0
  14. package/dist/cjs/components/panel/PanelHeader.js.map +1 -1
  15. package/dist/cjs/components/panel/PanelItem.js +1 -0
  16. package/dist/cjs/components/panel/PanelItem.js.map +1 -1
  17. package/dist/cjs/components/panel/PanelListItems.js +2 -1
  18. package/dist/cjs/components/panel/PanelListItems.js.map +1 -1
  19. package/dist/cjs/components/session/SessionProvider.js +1 -0
  20. package/dist/cjs/components/session/SessionProvider.js.map +1 -1
  21. package/dist/cjs/components/session/SessionUserContext.js +1 -0
  22. package/dist/cjs/components/session/SessionUserContext.js.map +1 -1
  23. package/dist/cjs/components/session/SessionUserProvider.js +2 -0
  24. package/dist/cjs/components/session/SessionUserProvider.js.map +1 -1
  25. package/dist/cjs/index.js +2 -0
  26. package/dist/cjs/index.js.map +1 -1
  27. package/dist/cjs/shared/apollo/apollo.client.js +2 -2
  28. package/dist/cjs/shared/apollo/apollo.client.js.map +1 -1
  29. package/dist/cjs/shared/types/generated.js +2 -2
  30. package/dist/cjs/shared/types/generated.js.map +1 -1
  31. package/dist/esm/_virtual/_commonjsHelpers.js +30 -1
  32. package/dist/esm/_virtual/_commonjsHelpers.js.map +1 -1
  33. package/dist/esm/_virtual/_react.js +7 -0
  34. package/dist/esm/_virtual/_react.js.map +1 -0
  35. package/dist/esm/_virtual/navigation.js +5 -2
  36. package/dist/esm/_virtual/navigation.js.map +1 -1
  37. package/dist/esm/_virtual/router.js +5 -2
  38. package/dist/esm/_virtual/router.js.map +1 -1
  39. package/dist/esm/assets/corona.svg.js +6 -0
  40. package/dist/esm/assets/corona.svg.js.map +1 -0
  41. package/dist/esm/components/panel/Panel.js +1 -0
  42. package/dist/esm/components/panel/Panel.js.map +1 -1
  43. package/dist/esm/components/panel/PanelAvatar.js +4 -2
  44. package/dist/esm/components/panel/PanelAvatar.js.map +1 -1
  45. package/dist/esm/components/panel/PanelButton.js +1 -0
  46. package/dist/esm/components/panel/PanelButton.js.map +1 -1
  47. package/dist/esm/components/panel/PanelDivider.js +1 -0
  48. package/dist/esm/components/panel/PanelDivider.js.map +1 -1
  49. package/dist/esm/components/panel/PanelFooter.js +1 -0
  50. package/dist/esm/components/panel/PanelFooter.js.map +1 -1
  51. package/dist/esm/components/panel/PanelHeader.js +1 -0
  52. package/dist/esm/components/panel/PanelHeader.js.map +1 -1
  53. package/dist/esm/components/panel/PanelItem.js +1 -0
  54. package/dist/esm/components/panel/PanelItem.js.map +1 -1
  55. package/dist/esm/components/panel/PanelListItems.js +2 -1
  56. package/dist/esm/components/panel/PanelListItems.js.map +1 -1
  57. package/dist/esm/components/session/SessionProvider.js +1 -0
  58. package/dist/esm/components/session/SessionProvider.js.map +1 -1
  59. package/dist/esm/components/session/SessionUserContext.js +1 -0
  60. package/dist/esm/components/session/SessionUserContext.js.map +1 -1
  61. package/dist/esm/components/session/SessionUserProvider.js +2 -0
  62. package/dist/esm/components/session/SessionUserProvider.js.map +1 -1
  63. package/dist/esm/index.js +1 -0
  64. package/dist/esm/index.js.map +1 -1
  65. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/hooks.js +2 -2
  66. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/hooks.js.map +1 -1
  67. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/store-hooks.js +2 -2
  68. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/store-hooks.js.map +1 -1
  69. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/views.js +2 -2
  70. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/views.js.map +1 -1
  71. package/dist/esm/node_modules/@mui/material-nextjs/esm/nextCompatRouter.js +1 -1
  72. package/dist/esm/node_modules/@mui/material-nextjs/esm/v13-appRouter/nextNavigation.js +1 -1
  73. package/dist/esm/shared/apollo/apollo.client.js +1 -1
  74. package/dist/esm/shared/types/generated.js +1 -1
  75. package/dist/esm/types/components/panel/index.d.ts +1 -0
  76. package/dist/esm/types/components/session/session.types.d.ts +2 -1
  77. package/dist/index.d.ts +9 -3
  78. package/package.json +3 -1
  79. package/dist/cjs/_virtual/_interop_require_default.js +0 -6
  80. package/dist/cjs/_virtual/_interop_require_default.js.map +0 -1
  81. package/dist/cjs/_virtual/_interop_require_wildcard.js +0 -6
  82. package/dist/cjs/_virtual/_interop_require_wildcard.js.map +0 -1
  83. package/dist/cjs/_virtual/action-async-storage-instance.js +0 -6
  84. package/dist/cjs/_virtual/action-async-storage-instance.js.map +0 -1
  85. package/dist/cjs/_virtual/action-async-storage.external.js +0 -6
  86. package/dist/cjs/_virtual/action-async-storage.external.js.map +0 -1
  87. package/dist/cjs/_virtual/after-task-async-storage-instance.js +0 -6
  88. package/dist/cjs/_virtual/after-task-async-storage-instance.js.map +0 -1
  89. package/dist/cjs/_virtual/after-task-async-storage.external.js +0 -6
  90. package/dist/cjs/_virtual/after-task-async-storage.external.js.map +0 -1
  91. package/dist/cjs/_virtual/app-router-context.shared-runtime.js +0 -6
  92. package/dist/cjs/_virtual/app-router-context.shared-runtime.js.map +0 -1
  93. package/dist/cjs/_virtual/app-router-headers.js +0 -6
  94. package/dist/cjs/_virtual/app-router-headers.js.map +0 -1
  95. package/dist/cjs/_virtual/async-local-storage.js +0 -6
  96. package/dist/cjs/_virtual/async-local-storage.js.map +0 -1
  97. package/dist/cjs/_virtual/bailout-to-client-rendering.js +0 -6
  98. package/dist/cjs/_virtual/bailout-to-client-rendering.js.map +0 -1
  99. package/dist/cjs/_virtual/bailout-to-csr.js +0 -6
  100. package/dist/cjs/_virtual/bailout-to-csr.js.map +0 -1
  101. package/dist/cjs/_virtual/boundary-constants.js +0 -6
  102. package/dist/cjs/_virtual/boundary-constants.js.map +0 -1
  103. package/dist/cjs/_virtual/cookies.js +0 -6
  104. package/dist/cjs/_virtual/cookies.js.map +0 -1
  105. package/dist/cjs/_virtual/cookies2.js +0 -6
  106. package/dist/cjs/_virtual/cookies2.js.map +0 -1
  107. package/dist/cjs/_virtual/create-deduped-by-callsite-server-error-logger.js +0 -6
  108. package/dist/cjs/_virtual/create-deduped-by-callsite-server-error-logger.js.map +0 -1
  109. package/dist/cjs/_virtual/draft-mode.js +0 -6
  110. package/dist/cjs/_virtual/draft-mode.js.map +0 -1
  111. package/dist/cjs/_virtual/dynamic-rendering-utils.js +0 -6
  112. package/dist/cjs/_virtual/dynamic-rendering-utils.js.map +0 -1
  113. package/dist/cjs/_virtual/dynamic-rendering.js +0 -6
  114. package/dist/cjs/_virtual/dynamic-rendering.js.map +0 -1
  115. package/dist/cjs/_virtual/forbidden.js +0 -6
  116. package/dist/cjs/_virtual/forbidden.js.map +0 -1
  117. package/dist/cjs/_virtual/get-segment-value.js +0 -6
  118. package/dist/cjs/_virtual/get-segment-value.js.map +0 -1
  119. package/dist/cjs/_virtual/headers.js +0 -8
  120. package/dist/cjs/_virtual/headers.js.map +0 -1
  121. package/dist/cjs/_virtual/headers2.js +0 -6
  122. package/dist/cjs/_virtual/headers2.js.map +0 -1
  123. package/dist/cjs/_virtual/headers3.js +0 -6
  124. package/dist/cjs/_virtual/headers3.js.map +0 -1
  125. package/dist/cjs/_virtual/headers4.js +0 -6
  126. package/dist/cjs/_virtual/headers4.js.map +0 -1
  127. package/dist/cjs/_virtual/hooks-client-context.shared-runtime.js +0 -6
  128. package/dist/cjs/_virtual/hooks-client-context.shared-runtime.js.map +0 -1
  129. package/dist/cjs/_virtual/hooks-server-context.js +0 -6
  130. package/dist/cjs/_virtual/hooks-server-context.js.map +0 -1
  131. package/dist/cjs/_virtual/http-access-fallback.js +0 -6
  132. package/dist/cjs/_virtual/http-access-fallback.js.map +0 -1
  133. package/dist/cjs/_virtual/invariant-error.js +0 -6
  134. package/dist/cjs/_virtual/invariant-error.js.map +0 -1
  135. package/dist/cjs/_virtual/is-next-router-error.js +0 -6
  136. package/dist/cjs/_virtual/is-next-router-error.js.map +0 -1
  137. package/dist/cjs/_virtual/is-postpone.js +0 -6
  138. package/dist/cjs/_virtual/is-postpone.js.map +0 -1
  139. package/dist/cjs/_virtual/navigation.react-server.js +0 -6
  140. package/dist/cjs/_virtual/navigation.react-server.js.map +0 -1
  141. package/dist/cjs/_virtual/not-found.js +0 -6
  142. package/dist/cjs/_virtual/not-found.js.map +0 -1
  143. package/dist/cjs/_virtual/redirect-error.js +0 -6
  144. package/dist/cjs/_virtual/redirect-error.js.map +0 -1
  145. package/dist/cjs/_virtual/redirect-status-code.js +0 -6
  146. package/dist/cjs/_virtual/redirect-status-code.js.map +0 -1
  147. package/dist/cjs/_virtual/redirect.js +0 -6
  148. package/dist/cjs/_virtual/redirect.js.map +0 -1
  149. package/dist/cjs/_virtual/reflect.js +0 -6
  150. package/dist/cjs/_virtual/reflect.js.map +0 -1
  151. package/dist/cjs/_virtual/request-cookies.js +0 -6
  152. package/dist/cjs/_virtual/request-cookies.js.map +0 -1
  153. package/dist/cjs/_virtual/router-context.shared-runtime.js +0 -6
  154. package/dist/cjs/_virtual/router-context.shared-runtime.js.map +0 -1
  155. package/dist/cjs/_virtual/scheduler.js +0 -6
  156. package/dist/cjs/_virtual/scheduler.js.map +0 -1
  157. package/dist/cjs/_virtual/segment.js +0 -6
  158. package/dist/cjs/_virtual/segment.js.map +0 -1
  159. package/dist/cjs/_virtual/server-inserted-html.shared-runtime.js +0 -6
  160. package/dist/cjs/_virtual/server-inserted-html.shared-runtime.js.map +0 -1
  161. package/dist/cjs/_virtual/static-generation-bailout.js +0 -6
  162. package/dist/cjs/_virtual/static-generation-bailout.js.map +0 -1
  163. package/dist/cjs/_virtual/unauthorized.js +0 -6
  164. package/dist/cjs/_virtual/unauthorized.js.map +0 -1
  165. package/dist/cjs/_virtual/unrecognized-action-error.js +0 -6
  166. package/dist/cjs/_virtual/unrecognized-action-error.js.map +0 -1
  167. package/dist/cjs/_virtual/unstable-rethrow.browser.js +0 -6
  168. package/dist/cjs/_virtual/unstable-rethrow.browser.js.map +0 -1
  169. package/dist/cjs/_virtual/unstable-rethrow.js +0 -6
  170. package/dist/cjs/_virtual/unstable-rethrow.js.map +0 -1
  171. package/dist/cjs/_virtual/unstable-rethrow.server.js +0 -6
  172. package/dist/cjs/_virtual/unstable-rethrow.server.js.map +0 -1
  173. package/dist/cjs/_virtual/utils.js +0 -6
  174. package/dist/cjs/_virtual/utils.js.map +0 -1
  175. package/dist/cjs/_virtual/work-async-storage-instance.js +0 -6
  176. package/dist/cjs/_virtual/work-async-storage-instance.js.map +0 -1
  177. package/dist/cjs/_virtual/work-async-storage.external.js +0 -6
  178. package/dist/cjs/_virtual/work-async-storage.external.js.map +0 -1
  179. package/dist/cjs/_virtual/work-unit-async-storage-instance.js +0 -6
  180. package/dist/cjs/_virtual/work-unit-async-storage-instance.js.map +0 -1
  181. package/dist/cjs/_virtual/work-unit-async-storage.external.js +0 -6
  182. package/dist/cjs/_virtual/work-unit-async-storage.external.js.map +0 -1
  183. package/dist/cjs/node_modules/@apollo/client/errors/CombinedProtocolErrors.js +0 -85
  184. package/dist/cjs/node_modules/@apollo/client/errors/CombinedProtocolErrors.js.map +0 -1
  185. package/dist/cjs/node_modules/@apollo/client/errors/ServerError.js +0 -80
  186. package/dist/cjs/node_modules/@apollo/client/errors/ServerError.js.map +0 -1
  187. package/dist/cjs/node_modules/@apollo/client/errors/ServerParseError.js +0 -77
  188. package/dist/cjs/node_modules/@apollo/client/errors/ServerParseError.js.map +0 -1
  189. package/dist/cjs/node_modules/@apollo/client/errors/index.js +0 -9
  190. package/dist/cjs/node_modules/@apollo/client/errors/index.js.map +0 -1
  191. package/dist/cjs/node_modules/@apollo/client/errors/utils.js +0 -19
  192. package/dist/cjs/node_modules/@apollo/client/errors/utils.js.map +0 -1
  193. package/dist/cjs/node_modules/@apollo/client/link/client-awareness/ClientAwarenessLink.js +0 -91
  194. package/dist/cjs/node_modules/@apollo/client/link/client-awareness/ClientAwarenessLink.js.map +0 -1
  195. package/dist/cjs/node_modules/@apollo/client/link/core/ApolloLink.js +0 -262
  196. package/dist/cjs/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
  197. package/dist/cjs/node_modules/@apollo/client/link/http/BaseHttpLink.js +0 -155
  198. package/dist/cjs/node_modules/@apollo/client/link/http/BaseHttpLink.js.map +0 -1
  199. package/dist/cjs/node_modules/@apollo/client/link/http/HttpLink.js +0 -41
  200. package/dist/cjs/node_modules/@apollo/client/link/http/HttpLink.js.map +0 -1
  201. package/dist/cjs/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js +0 -168
  202. package/dist/cjs/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js.map +0 -1
  203. package/dist/cjs/node_modules/@apollo/client/link/http/rewriteURIForGET.js +0 -56
  204. package/dist/cjs/node_modules/@apollo/client/link/http/rewriteURIForGET.js.map +0 -1
  205. package/dist/cjs/node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js +0 -106
  206. package/dist/cjs/node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js.map +0 -1
  207. package/dist/cjs/node_modules/@apollo/client/link/http/selectURI.js +0 -18
  208. package/dist/cjs/node_modules/@apollo/client/link/http/selectURI.js.map +0 -1
  209. package/dist/cjs/node_modules/@apollo/client/link/utils/createOperation.js +0 -40
  210. package/dist/cjs/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
  211. package/dist/cjs/node_modules/@apollo/client/link/utils/filterOperationVariables.js +0 -27
  212. package/dist/cjs/node_modules/@apollo/client/link/utils/filterOperationVariables.js.map +0 -1
  213. package/dist/cjs/node_modules/@apollo/client/utilities/caching/sizes.js +0 -31
  214. package/dist/cjs/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
  215. package/dist/cjs/node_modules/@apollo/client/utilities/environment/index.production.js +0 -6
  216. package/dist/cjs/node_modules/@apollo/client/utilities/environment/index.production.js.map +0 -1
  217. package/dist/cjs/node_modules/@apollo/client/utilities/graphql/operations.js +0 -65
  218. package/dist/cjs/node_modules/@apollo/client/utilities/graphql/operations.js.map +0 -1
  219. package/dist/cjs/node_modules/@apollo/client/utilities/graphql/print.js +0 -31
  220. package/dist/cjs/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
  221. package/dist/cjs/node_modules/@apollo/client/utilities/internal/caches.js +0 -49
  222. package/dist/cjs/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
  223. package/dist/cjs/node_modules/@apollo/client/utilities/internal/checkDocument.js +0 -62
  224. package/dist/cjs/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
  225. package/dist/cjs/node_modules/@apollo/client/utilities/internal/compact.js +0 -27
  226. package/dist/cjs/node_modules/@apollo/client/utilities/internal/compact.js.map +0 -1
  227. package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +0 -16
  228. package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
  229. package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -13
  230. package/dist/cjs/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
  231. package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/global.js +0 -21
  232. package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
  233. package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -11
  234. package/dist/cjs/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
  235. package/dist/cjs/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -13
  236. package/dist/cjs/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
  237. package/dist/cjs/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +0 -19
  238. package/dist/cjs/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
  239. package/dist/cjs/node_modules/@apollo/client/utilities/internal/memoize.js +0 -33
  240. package/dist/cjs/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
  241. package/dist/cjs/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +0 -20
  242. package/dist/cjs/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
  243. package/dist/cjs/node_modules/@apollo/client/utilities/invariant/index.js +0 -94
  244. package/dist/cjs/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
  245. package/dist/cjs/node_modules/@apollo/client/version.js +0 -6
  246. package/dist/cjs/node_modules/@apollo/client/version.js.map +0 -1
  247. package/dist/cjs/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -19
  248. package/dist/cjs/node_modules/@swc/helpers/cjs/_interop_require_default.js.map +0 -1
  249. package/dist/cjs/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -51
  250. package/dist/cjs/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js.map +0 -1
  251. package/dist/cjs/node_modules/@wry/caches/lib/weak.js +0 -147
  252. package/dist/cjs/node_modules/@wry/caches/lib/weak.js.map +0 -1
  253. package/dist/cjs/node_modules/@wry/trie/lib/index.js +0 -86
  254. package/dist/cjs/node_modules/@wry/trie/lib/index.js.map +0 -1
  255. package/dist/cjs/node_modules/graphql/error/GraphQLError.js +0 -232
  256. package/dist/cjs/node_modules/graphql/error/GraphQLError.js.map +0 -1
  257. package/dist/cjs/node_modules/graphql/error/syntaxError.js +0 -18
  258. package/dist/cjs/node_modules/graphql/error/syntaxError.js.map +0 -1
  259. package/dist/cjs/node_modules/graphql/jsutils/devAssert.js +0 -12
  260. package/dist/cjs/node_modules/graphql/jsutils/devAssert.js.map +0 -1
  261. package/dist/cjs/node_modules/graphql/jsutils/inspect.js +0 -120
  262. package/dist/cjs/node_modules/graphql/jsutils/inspect.js.map +0 -1
  263. package/dist/cjs/node_modules/graphql/jsutils/instanceOf.js +0 -63
  264. package/dist/cjs/node_modules/graphql/jsutils/instanceOf.js.map +0 -1
  265. package/dist/cjs/node_modules/graphql/jsutils/invariant.js +0 -14
  266. package/dist/cjs/node_modules/graphql/jsutils/invariant.js.map +0 -1
  267. package/dist/cjs/node_modules/graphql/jsutils/isObjectLike.js +0 -12
  268. package/dist/cjs/node_modules/graphql/jsutils/isObjectLike.js.map +0 -1
  269. package/dist/cjs/node_modules/graphql/language/ast.js +0 -227
  270. package/dist/cjs/node_modules/graphql/language/ast.js.map +0 -1
  271. package/dist/cjs/node_modules/graphql/language/blockString.js +0 -114
  272. package/dist/cjs/node_modules/graphql/language/blockString.js.map +0 -1
  273. package/dist/cjs/node_modules/graphql/language/characterClasses.js +0 -73
  274. package/dist/cjs/node_modules/graphql/language/characterClasses.js.map +0 -1
  275. package/dist/cjs/node_modules/graphql/language/directiveLocation.js +0 -34
  276. package/dist/cjs/node_modules/graphql/language/directiveLocation.js.map +0 -1
  277. package/dist/cjs/node_modules/graphql/language/kinds.js +0 -63
  278. package/dist/cjs/node_modules/graphql/language/kinds.js.map +0 -1
  279. package/dist/cjs/node_modules/graphql/language/lexer.js +0 -925
  280. package/dist/cjs/node_modules/graphql/language/lexer.js.map +0 -1
  281. package/dist/cjs/node_modules/graphql/language/location.js +0 -36
  282. package/dist/cjs/node_modules/graphql/language/location.js.map +0 -1
  283. package/dist/cjs/node_modules/graphql/language/parser.js +0 -1582
  284. package/dist/cjs/node_modules/graphql/language/parser.js.map +0 -1
  285. package/dist/cjs/node_modules/graphql/language/printLocation.js +0 -72
  286. package/dist/cjs/node_modules/graphql/language/printLocation.js.map +0 -1
  287. package/dist/cjs/node_modules/graphql/language/printString.js +0 -181
  288. package/dist/cjs/node_modules/graphql/language/printString.js.map +0 -1
  289. package/dist/cjs/node_modules/graphql/language/printer.js +0 -374
  290. package/dist/cjs/node_modules/graphql/language/printer.js.map +0 -1
  291. package/dist/cjs/node_modules/graphql/language/source.js +0 -56
  292. package/dist/cjs/node_modules/graphql/language/source.js.map +0 -1
  293. package/dist/cjs/node_modules/graphql/language/tokenKind.js +0 -39
  294. package/dist/cjs/node_modules/graphql/language/tokenKind.js.map +0 -1
  295. package/dist/cjs/node_modules/graphql/language/visitor.js +0 -274
  296. package/dist/cjs/node_modules/graphql/language/visitor.js.map +0 -1
  297. package/dist/cjs/node_modules/graphql-tag/lib/index.js +0 -129
  298. package/dist/cjs/node_modules/graphql-tag/lib/index.js.map +0 -1
  299. package/dist/cjs/node_modules/next/compat/router.js +0 -16
  300. package/dist/cjs/node_modules/next/compat/router.js.map +0 -1
  301. package/dist/cjs/node_modules/next/dist/client/compat/router.js +0 -40
  302. package/dist/cjs/node_modules/next/dist/client/compat/router.js.map +0 -1
  303. package/dist/cjs/node_modules/next/dist/client/components/app-router-headers.js +0 -109
  304. package/dist/cjs/node_modules/next/dist/client/components/app-router-headers.js.map +0 -1
  305. package/dist/cjs/node_modules/next/dist/client/components/bailout-to-client-rendering.js +0 -58
  306. package/dist/cjs/node_modules/next/dist/client/components/bailout-to-client-rendering.js.map +0 -1
  307. package/dist/cjs/node_modules/next/dist/client/components/forbidden.js +0 -65
  308. package/dist/cjs/node_modules/next/dist/client/components/forbidden.js.map +0 -1
  309. package/dist/cjs/node_modules/next/dist/client/components/hooks-server-context.js +0 -53
  310. package/dist/cjs/node_modules/next/dist/client/components/hooks-server-context.js.map +0 -1
  311. package/dist/cjs/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -80
  312. package/dist/cjs/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js.map +0 -1
  313. package/dist/cjs/node_modules/next/dist/client/components/is-next-router-error.js +0 -40
  314. package/dist/cjs/node_modules/next/dist/client/components/is-next-router-error.js.map +0 -1
  315. package/dist/cjs/node_modules/next/dist/client/components/navigation.js +0 -192
  316. package/dist/cjs/node_modules/next/dist/client/components/navigation.js.map +0 -1
  317. package/dist/cjs/node_modules/next/dist/client/components/navigation.react-server.js +0 -102
  318. package/dist/cjs/node_modules/next/dist/client/components/navigation.react-server.js.map +0 -1
  319. package/dist/cjs/node_modules/next/dist/client/components/not-found.js +0 -59
  320. package/dist/cjs/node_modules/next/dist/client/components/not-found.js.map +0 -1
  321. package/dist/cjs/node_modules/next/dist/client/components/redirect-error.js +0 -63
  322. package/dist/cjs/node_modules/next/dist/client/components/redirect-error.js.map +0 -1
  323. package/dist/cjs/node_modules/next/dist/client/components/redirect-status-code.js +0 -39
  324. package/dist/cjs/node_modules/next/dist/client/components/redirect-status-code.js.map +0 -1
  325. package/dist/cjs/node_modules/next/dist/client/components/redirect.js +0 -104
  326. package/dist/cjs/node_modules/next/dist/client/components/redirect.js.map +0 -1
  327. package/dist/cjs/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js +0 -36
  328. package/dist/cjs/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js.map +0 -1
  329. package/dist/cjs/node_modules/next/dist/client/components/static-generation-bailout.js +0 -53
  330. package/dist/cjs/node_modules/next/dist/client/components/static-generation-bailout.js.map +0 -1
  331. package/dist/cjs/node_modules/next/dist/client/components/unauthorized.js +0 -66
  332. package/dist/cjs/node_modules/next/dist/client/components/unauthorized.js.map +0 -1
  333. package/dist/cjs/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -50
  334. package/dist/cjs/node_modules/next/dist/client/components/unrecognized-action-error.js.map +0 -1
  335. package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.browser.js +0 -45
  336. package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.browser.js.map +0 -1
  337. package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.js +0 -44
  338. package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.js.map +0 -1
  339. package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.server.js +0 -53
  340. package/dist/cjs/node_modules/next/dist/client/components/unstable-rethrow.server.js.map +0 -1
  341. package/dist/cjs/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +0 -343
  342. package/dist/cjs/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +0 -1
  343. package/dist/cjs/node_modules/next/dist/lib/framework/boundary-constants.js +0 -45
  344. package/dist/cjs/node_modules/next/dist/lib/framework/boundary-constants.js.map +0 -1
  345. package/dist/cjs/node_modules/next/dist/lib/scheduler.js +0 -73
  346. package/dist/cjs/node_modules/next/dist/lib/scheduler.js.map +0 -1
  347. package/dist/cjs/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -30
  348. package/dist/cjs/node_modules/next/dist/server/app-render/action-async-storage-instance.js.map +0 -1
  349. package/dist/cjs/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -29
  350. package/dist/cjs/node_modules/next/dist/server/app-render/action-async-storage.external.js.map +0 -1
  351. package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +0 -30
  352. package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js.map +0 -1
  353. package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +0 -29
  354. package/dist/cjs/node_modules/next/dist/server/app-render/after-task-async-storage.external.js.map +0 -1
  355. package/dist/cjs/node_modules/next/dist/server/app-render/async-local-storage.js +0 -85
  356. package/dist/cjs/node_modules/next/dist/server/app-render/async-local-storage.js.map +0 -1
  357. package/dist/cjs/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -656
  358. package/dist/cjs/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +0 -1
  359. package/dist/cjs/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -30
  360. package/dist/cjs/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +0 -1
  361. package/dist/cjs/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -29
  362. package/dist/cjs/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +0 -1
  363. package/dist/cjs/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -30
  364. package/dist/cjs/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +0 -1
  365. package/dist/cjs/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -212
  366. package/dist/cjs/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +0 -1
  367. package/dist/cjs/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +0 -112
  368. package/dist/cjs/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js.map +0 -1
  369. package/dist/cjs/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -92
  370. package/dist/cjs/node_modules/next/dist/server/dynamic-rendering-utils.js.map +0 -1
  371. package/dist/cjs/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -31
  372. package/dist/cjs/node_modules/next/dist/server/lib/router-utils/is-postpone.js.map +0 -1
  373. package/dist/cjs/node_modules/next/dist/server/request/cookies.js +0 -415
  374. package/dist/cjs/node_modules/next/dist/server/request/cookies.js.map +0 -1
  375. package/dist/cjs/node_modules/next/dist/server/request/draft-mode.js +0 -293
  376. package/dist/cjs/node_modules/next/dist/server/request/draft-mode.js.map +0 -1
  377. package/dist/cjs/node_modules/next/dist/server/request/headers.js +0 -366
  378. package/dist/cjs/node_modules/next/dist/server/request/headers.js.map +0 -1
  379. package/dist/cjs/node_modules/next/dist/server/request/utils.js +0 -73
  380. package/dist/cjs/node_modules/next/dist/server/request/utils.js.map +0 -1
  381. package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +0 -204
  382. package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/headers.js.map +0 -1
  383. package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +0 -45
  384. package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js.map +0 -1
  385. package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +0 -218
  386. package/dist/cjs/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js.map +0 -1
  387. package/dist/cjs/node_modules/next/dist/server/web/spec-extension/cookies.js +0 -40
  388. package/dist/cjs/node_modules/next/dist/server/web/spec-extension/cookies.js.map +0 -1
  389. package/dist/cjs/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -60
  390. package/dist/cjs/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js.map +0 -1
  391. package/dist/cjs/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -49
  392. package/dist/cjs/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js.map +0 -1
  393. package/dist/cjs/node_modules/next/dist/shared/lib/invariant-error.js +0 -33
  394. package/dist/cjs/node_modules/next/dist/shared/lib/invariant-error.js.map +0 -1
  395. package/dist/cjs/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -47
  396. package/dist/cjs/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +0 -1
  397. package/dist/cjs/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -35
  398. package/dist/cjs/node_modules/next/dist/shared/lib/router-context.shared-runtime.js.map +0 -1
  399. package/dist/cjs/node_modules/next/dist/shared/lib/segment.js +0 -61
  400. package/dist/cjs/node_modules/next/dist/shared/lib/segment.js.map +0 -1
  401. package/dist/cjs/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -48
  402. package/dist/cjs/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js.map +0 -1
  403. package/dist/cjs/node_modules/next/headers.js +0 -20
  404. package/dist/cjs/node_modules/next/headers.js.map +0 -1
  405. package/dist/cjs/node_modules/next/navigation.js +0 -16
  406. package/dist/cjs/node_modules/next/navigation.js.map +0 -1
  407. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Observable.js +0 -106
  408. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
  409. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscriber.js +0 -158
  410. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
  411. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.js +0 -148
  412. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
  413. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/config.js +0 -7
  414. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
  415. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/observable/empty.js +0 -8
  416. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
  417. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -20
  418. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
  419. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +0 -6
  420. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
  421. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -17
  422. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
  423. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -11
  424. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
  425. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -15
  426. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
  427. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +0 -10
  428. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
  429. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -8
  430. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
  431. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -8
  432. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
  433. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -6
  434. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
  435. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/pipe.js +0 -18
  436. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
  437. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -14
  438. package/dist/cjs/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
  439. package/dist/cjs/node_modules/tslib/tslib.es6.js +0 -93
  440. package/dist/cjs/node_modules/tslib/tslib.es6.js.map +0 -1
  441. package/dist/components/Panel.d.ts +0 -4
  442. package/dist/components/panel/Panel.d.ts +0 -7
  443. package/dist/components/panel/PanelAvatar.d.ts +0 -7
  444. package/dist/components/panel/PanelDivider.d.ts +0 -5
  445. package/dist/components/panel/PanelHeader.d.ts +0 -7
  446. package/dist/components/panel/PanelItem.d.ts +0 -9
  447. package/dist/components/panel/PanelListItems.d.ts +0 -12
  448. package/dist/components/panel/index.d.ts +0 -9
  449. package/dist/components/panel/panel.actions.d.ts +0 -3
  450. package/dist/components/panel/panel.store.d.ts +0 -5
  451. package/dist/components/panel/panel.types.d.ts +0 -7
  452. package/dist/components/session/SessionProvider.d.ts +0 -8
  453. package/dist/components/session/SessionUserContext.d.ts +0 -3
  454. package/dist/components/session/SessionUserProvider.d.ts +0 -10
  455. package/dist/components/session/index.d.ts +0 -1
  456. package/dist/components/session/session.constants.d.ts +0 -3
  457. package/dist/components/session/session.hooks.d.ts +0 -1
  458. package/dist/components/session/session.types.d.ts +0 -6
  459. package/dist/config/config.types.d.ts +0 -4
  460. package/dist/esm/_virtual/_interop_require_default.js +0 -4
  461. package/dist/esm/_virtual/_interop_require_default.js.map +0 -1
  462. package/dist/esm/_virtual/_interop_require_wildcard.js +0 -4
  463. package/dist/esm/_virtual/_interop_require_wildcard.js.map +0 -1
  464. package/dist/esm/_virtual/action-async-storage-instance.js +0 -4
  465. package/dist/esm/_virtual/action-async-storage-instance.js.map +0 -1
  466. package/dist/esm/_virtual/action-async-storage.external.js +0 -4
  467. package/dist/esm/_virtual/action-async-storage.external.js.map +0 -1
  468. package/dist/esm/_virtual/after-task-async-storage-instance.js +0 -4
  469. package/dist/esm/_virtual/after-task-async-storage-instance.js.map +0 -1
  470. package/dist/esm/_virtual/after-task-async-storage.external.js +0 -4
  471. package/dist/esm/_virtual/after-task-async-storage.external.js.map +0 -1
  472. package/dist/esm/_virtual/app-router-context.shared-runtime.js +0 -4
  473. package/dist/esm/_virtual/app-router-context.shared-runtime.js.map +0 -1
  474. package/dist/esm/_virtual/app-router-headers.js +0 -4
  475. package/dist/esm/_virtual/app-router-headers.js.map +0 -1
  476. package/dist/esm/_virtual/async-local-storage.js +0 -4
  477. package/dist/esm/_virtual/async-local-storage.js.map +0 -1
  478. package/dist/esm/_virtual/bailout-to-client-rendering.js +0 -4
  479. package/dist/esm/_virtual/bailout-to-client-rendering.js.map +0 -1
  480. package/dist/esm/_virtual/bailout-to-csr.js +0 -4
  481. package/dist/esm/_virtual/bailout-to-csr.js.map +0 -1
  482. package/dist/esm/_virtual/boundary-constants.js +0 -4
  483. package/dist/esm/_virtual/boundary-constants.js.map +0 -1
  484. package/dist/esm/_virtual/cookies.js +0 -4
  485. package/dist/esm/_virtual/cookies.js.map +0 -1
  486. package/dist/esm/_virtual/cookies2.js +0 -4
  487. package/dist/esm/_virtual/cookies2.js.map +0 -1
  488. package/dist/esm/_virtual/create-deduped-by-callsite-server-error-logger.js +0 -4
  489. package/dist/esm/_virtual/create-deduped-by-callsite-server-error-logger.js.map +0 -1
  490. package/dist/esm/_virtual/draft-mode.js +0 -4
  491. package/dist/esm/_virtual/draft-mode.js.map +0 -1
  492. package/dist/esm/_virtual/dynamic-rendering-utils.js +0 -4
  493. package/dist/esm/_virtual/dynamic-rendering-utils.js.map +0 -1
  494. package/dist/esm/_virtual/dynamic-rendering.js +0 -4
  495. package/dist/esm/_virtual/dynamic-rendering.js.map +0 -1
  496. package/dist/esm/_virtual/forbidden.js +0 -4
  497. package/dist/esm/_virtual/forbidden.js.map +0 -1
  498. package/dist/esm/_virtual/get-segment-value.js +0 -4
  499. package/dist/esm/_virtual/get-segment-value.js.map +0 -1
  500. package/dist/esm/_virtual/headers.js +0 -6
  501. package/dist/esm/_virtual/headers.js.map +0 -1
  502. package/dist/esm/_virtual/headers2.js +0 -4
  503. package/dist/esm/_virtual/headers2.js.map +0 -1
  504. package/dist/esm/_virtual/headers3.js +0 -4
  505. package/dist/esm/_virtual/headers3.js.map +0 -1
  506. package/dist/esm/_virtual/headers4.js +0 -4
  507. package/dist/esm/_virtual/headers4.js.map +0 -1
  508. package/dist/esm/_virtual/hooks-client-context.shared-runtime.js +0 -4
  509. package/dist/esm/_virtual/hooks-client-context.shared-runtime.js.map +0 -1
  510. package/dist/esm/_virtual/hooks-server-context.js +0 -4
  511. package/dist/esm/_virtual/hooks-server-context.js.map +0 -1
  512. package/dist/esm/_virtual/http-access-fallback.js +0 -4
  513. package/dist/esm/_virtual/http-access-fallback.js.map +0 -1
  514. package/dist/esm/_virtual/invariant-error.js +0 -4
  515. package/dist/esm/_virtual/invariant-error.js.map +0 -1
  516. package/dist/esm/_virtual/is-next-router-error.js +0 -4
  517. package/dist/esm/_virtual/is-next-router-error.js.map +0 -1
  518. package/dist/esm/_virtual/is-postpone.js +0 -4
  519. package/dist/esm/_virtual/is-postpone.js.map +0 -1
  520. package/dist/esm/_virtual/navigation.react-server.js +0 -4
  521. package/dist/esm/_virtual/navigation.react-server.js.map +0 -1
  522. package/dist/esm/_virtual/not-found.js +0 -4
  523. package/dist/esm/_virtual/not-found.js.map +0 -1
  524. package/dist/esm/_virtual/redirect-error.js +0 -4
  525. package/dist/esm/_virtual/redirect-error.js.map +0 -1
  526. package/dist/esm/_virtual/redirect-status-code.js +0 -4
  527. package/dist/esm/_virtual/redirect-status-code.js.map +0 -1
  528. package/dist/esm/_virtual/redirect.js +0 -4
  529. package/dist/esm/_virtual/redirect.js.map +0 -1
  530. package/dist/esm/_virtual/reflect.js +0 -4
  531. package/dist/esm/_virtual/reflect.js.map +0 -1
  532. package/dist/esm/_virtual/request-cookies.js +0 -4
  533. package/dist/esm/_virtual/request-cookies.js.map +0 -1
  534. package/dist/esm/_virtual/router-context.shared-runtime.js +0 -4
  535. package/dist/esm/_virtual/router-context.shared-runtime.js.map +0 -1
  536. package/dist/esm/_virtual/scheduler.js +0 -4
  537. package/dist/esm/_virtual/scheduler.js.map +0 -1
  538. package/dist/esm/_virtual/segment.js +0 -4
  539. package/dist/esm/_virtual/segment.js.map +0 -1
  540. package/dist/esm/_virtual/server-inserted-html.shared-runtime.js +0 -4
  541. package/dist/esm/_virtual/server-inserted-html.shared-runtime.js.map +0 -1
  542. package/dist/esm/_virtual/static-generation-bailout.js +0 -4
  543. package/dist/esm/_virtual/static-generation-bailout.js.map +0 -1
  544. package/dist/esm/_virtual/unauthorized.js +0 -4
  545. package/dist/esm/_virtual/unauthorized.js.map +0 -1
  546. package/dist/esm/_virtual/unrecognized-action-error.js +0 -4
  547. package/dist/esm/_virtual/unrecognized-action-error.js.map +0 -1
  548. package/dist/esm/_virtual/unstable-rethrow.browser.js +0 -4
  549. package/dist/esm/_virtual/unstable-rethrow.browser.js.map +0 -1
  550. package/dist/esm/_virtual/unstable-rethrow.js +0 -4
  551. package/dist/esm/_virtual/unstable-rethrow.js.map +0 -1
  552. package/dist/esm/_virtual/unstable-rethrow.server.js +0 -4
  553. package/dist/esm/_virtual/unstable-rethrow.server.js.map +0 -1
  554. package/dist/esm/_virtual/utils.js +0 -4
  555. package/dist/esm/_virtual/utils.js.map +0 -1
  556. package/dist/esm/_virtual/work-async-storage-instance.js +0 -4
  557. package/dist/esm/_virtual/work-async-storage-instance.js.map +0 -1
  558. package/dist/esm/_virtual/work-async-storage.external.js +0 -4
  559. package/dist/esm/_virtual/work-async-storage.external.js.map +0 -1
  560. package/dist/esm/_virtual/work-unit-async-storage-instance.js +0 -4
  561. package/dist/esm/_virtual/work-unit-async-storage-instance.js.map +0 -1
  562. package/dist/esm/_virtual/work-unit-async-storage.external.js +0 -4
  563. package/dist/esm/_virtual/work-unit-async-storage.external.js.map +0 -1
  564. package/dist/esm/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -17
  565. package/dist/esm/node_modules/@swc/helpers/cjs/_interop_require_default.js.map +0 -1
  566. package/dist/esm/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -49
  567. package/dist/esm/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js.map +0 -1
  568. package/dist/esm/node_modules/next/compat/router.js +0 -14
  569. package/dist/esm/node_modules/next/compat/router.js.map +0 -1
  570. package/dist/esm/node_modules/next/dist/client/compat/router.js +0 -38
  571. package/dist/esm/node_modules/next/dist/client/compat/router.js.map +0 -1
  572. package/dist/esm/node_modules/next/dist/client/components/app-router-headers.js +0 -107
  573. package/dist/esm/node_modules/next/dist/client/components/app-router-headers.js.map +0 -1
  574. package/dist/esm/node_modules/next/dist/client/components/bailout-to-client-rendering.js +0 -56
  575. package/dist/esm/node_modules/next/dist/client/components/bailout-to-client-rendering.js.map +0 -1
  576. package/dist/esm/node_modules/next/dist/client/components/forbidden.js +0 -63
  577. package/dist/esm/node_modules/next/dist/client/components/forbidden.js.map +0 -1
  578. package/dist/esm/node_modules/next/dist/client/components/hooks-server-context.js +0 -51
  579. package/dist/esm/node_modules/next/dist/client/components/hooks-server-context.js.map +0 -1
  580. package/dist/esm/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -78
  581. package/dist/esm/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js.map +0 -1
  582. package/dist/esm/node_modules/next/dist/client/components/is-next-router-error.js +0 -38
  583. package/dist/esm/node_modules/next/dist/client/components/is-next-router-error.js.map +0 -1
  584. package/dist/esm/node_modules/next/dist/client/components/navigation.js +0 -190
  585. package/dist/esm/node_modules/next/dist/client/components/navigation.js.map +0 -1
  586. package/dist/esm/node_modules/next/dist/client/components/navigation.react-server.js +0 -100
  587. package/dist/esm/node_modules/next/dist/client/components/navigation.react-server.js.map +0 -1
  588. package/dist/esm/node_modules/next/dist/client/components/not-found.js +0 -57
  589. package/dist/esm/node_modules/next/dist/client/components/not-found.js.map +0 -1
  590. package/dist/esm/node_modules/next/dist/client/components/redirect-error.js +0 -61
  591. package/dist/esm/node_modules/next/dist/client/components/redirect-error.js.map +0 -1
  592. package/dist/esm/node_modules/next/dist/client/components/redirect-status-code.js +0 -37
  593. package/dist/esm/node_modules/next/dist/client/components/redirect-status-code.js.map +0 -1
  594. package/dist/esm/node_modules/next/dist/client/components/redirect.js +0 -102
  595. package/dist/esm/node_modules/next/dist/client/components/redirect.js.map +0 -1
  596. package/dist/esm/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js +0 -34
  597. package/dist/esm/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js.map +0 -1
  598. package/dist/esm/node_modules/next/dist/client/components/static-generation-bailout.js +0 -51
  599. package/dist/esm/node_modules/next/dist/client/components/static-generation-bailout.js.map +0 -1
  600. package/dist/esm/node_modules/next/dist/client/components/unauthorized.js +0 -64
  601. package/dist/esm/node_modules/next/dist/client/components/unauthorized.js.map +0 -1
  602. package/dist/esm/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -48
  603. package/dist/esm/node_modules/next/dist/client/components/unrecognized-action-error.js.map +0 -1
  604. package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.browser.js +0 -43
  605. package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.browser.js.map +0 -1
  606. package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.js +0 -42
  607. package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.js.map +0 -1
  608. package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.server.js +0 -51
  609. package/dist/esm/node_modules/next/dist/client/components/unstable-rethrow.server.js.map +0 -1
  610. package/dist/esm/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +0 -341
  611. package/dist/esm/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +0 -1
  612. package/dist/esm/node_modules/next/dist/lib/framework/boundary-constants.js +0 -43
  613. package/dist/esm/node_modules/next/dist/lib/framework/boundary-constants.js.map +0 -1
  614. package/dist/esm/node_modules/next/dist/lib/scheduler.js +0 -71
  615. package/dist/esm/node_modules/next/dist/lib/scheduler.js.map +0 -1
  616. package/dist/esm/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -28
  617. package/dist/esm/node_modules/next/dist/server/app-render/action-async-storage-instance.js.map +0 -1
  618. package/dist/esm/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -27
  619. package/dist/esm/node_modules/next/dist/server/app-render/action-async-storage.external.js.map +0 -1
  620. package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +0 -28
  621. package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js.map +0 -1
  622. package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +0 -27
  623. package/dist/esm/node_modules/next/dist/server/app-render/after-task-async-storage.external.js.map +0 -1
  624. package/dist/esm/node_modules/next/dist/server/app-render/async-local-storage.js +0 -83
  625. package/dist/esm/node_modules/next/dist/server/app-render/async-local-storage.js.map +0 -1
  626. package/dist/esm/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -654
  627. package/dist/esm/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +0 -1
  628. package/dist/esm/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -28
  629. package/dist/esm/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +0 -1
  630. package/dist/esm/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -27
  631. package/dist/esm/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +0 -1
  632. package/dist/esm/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -28
  633. package/dist/esm/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +0 -1
  634. package/dist/esm/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -210
  635. package/dist/esm/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +0 -1
  636. package/dist/esm/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +0 -110
  637. package/dist/esm/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js.map +0 -1
  638. package/dist/esm/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -90
  639. package/dist/esm/node_modules/next/dist/server/dynamic-rendering-utils.js.map +0 -1
  640. package/dist/esm/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -29
  641. package/dist/esm/node_modules/next/dist/server/lib/router-utils/is-postpone.js.map +0 -1
  642. package/dist/esm/node_modules/next/dist/server/request/cookies.js +0 -413
  643. package/dist/esm/node_modules/next/dist/server/request/cookies.js.map +0 -1
  644. package/dist/esm/node_modules/next/dist/server/request/draft-mode.js +0 -291
  645. package/dist/esm/node_modules/next/dist/server/request/draft-mode.js.map +0 -1
  646. package/dist/esm/node_modules/next/dist/server/request/headers.js +0 -364
  647. package/dist/esm/node_modules/next/dist/server/request/headers.js.map +0 -1
  648. package/dist/esm/node_modules/next/dist/server/request/utils.js +0 -71
  649. package/dist/esm/node_modules/next/dist/server/request/utils.js.map +0 -1
  650. package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +0 -202
  651. package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/headers.js.map +0 -1
  652. package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +0 -43
  653. package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js.map +0 -1
  654. package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +0 -216
  655. package/dist/esm/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js.map +0 -1
  656. package/dist/esm/node_modules/next/dist/server/web/spec-extension/cookies.js +0 -38
  657. package/dist/esm/node_modules/next/dist/server/web/spec-extension/cookies.js.map +0 -1
  658. package/dist/esm/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -58
  659. package/dist/esm/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js.map +0 -1
  660. package/dist/esm/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -47
  661. package/dist/esm/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js.map +0 -1
  662. package/dist/esm/node_modules/next/dist/shared/lib/invariant-error.js +0 -31
  663. package/dist/esm/node_modules/next/dist/shared/lib/invariant-error.js.map +0 -1
  664. package/dist/esm/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -45
  665. package/dist/esm/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +0 -1
  666. package/dist/esm/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -33
  667. package/dist/esm/node_modules/next/dist/shared/lib/router-context.shared-runtime.js.map +0 -1
  668. package/dist/esm/node_modules/next/dist/shared/lib/segment.js +0 -59
  669. package/dist/esm/node_modules/next/dist/shared/lib/segment.js.map +0 -1
  670. package/dist/esm/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -46
  671. package/dist/esm/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js.map +0 -1
  672. package/dist/esm/node_modules/next/headers.js +0 -18
  673. package/dist/esm/node_modules/next/headers.js.map +0 -1
  674. package/dist/esm/node_modules/next/navigation.js +0 -14
  675. package/dist/esm/node_modules/next/navigation.js.map +0 -1
  676. package/dist/index.esm.js +0 -28936
  677. package/dist/index.esm.js.map +0 -1
  678. package/dist/index.js +0 -28966
  679. package/dist/index.js.map +0 -1
  680. package/dist/shared/apollo/apollo.client.d.ts +0 -7
  681. package/dist/shared/mui/theme.d.ts +0 -1
  682. package/dist/shared/types/generated.d.ts +0 -1480
@@ -1,155 +0,0 @@
1
- 'use strict';
2
-
3
- var ApolloLink = require('../core/ApolloLink.js');
4
- var filterOperationVariables = require('../utils/filterOperationVariables.js');
5
- var operations = require('../../utilities/graphql/operations.js');
6
- var maybe = require('../../utilities/internal/globals/maybe.js');
7
- var parseAndCheckHttpResponse = require('./parseAndCheckHttpResponse.js');
8
- var rewriteURIForGET = require('./rewriteURIForGET.js');
9
- var selectHttpOptionsAndBody = require('./selectHttpOptionsAndBody.js');
10
- var selectURI = require('./selectURI.js');
11
- var Observable = require('../../../../rxjs/dist/esm5/internal/Observable.js');
12
- var compact = require('../../utilities/internal/compact.js');
13
-
14
- const backupFetch = maybe.maybe(() => fetch);
15
- function noop() { }
16
- /**
17
- * `BaseHttpLink` is a terminating link that sends a GraphQL operation to a
18
- * remote endpoint over HTTP. It serves as a base link to `HttpLink`.
19
- *
20
- * @remarks
21
- *
22
- * `BaseHttpLink` supports both POST and GET requests, and you can configure
23
- * HTTP options on a per-operation basis. You can use these options for
24
- * authentication, persisted queries, dynamic URIs, and other granular updates.
25
- *
26
- * > [!NOTE]
27
- * > Prefer using `HttpLink` over `BaseHttpLink`. Use `BaseHttpLink` when you
28
- * > need to disable client awareness features and would like to tree-shake
29
- * > the implementation of `ClientAwarenessLink` out of your app bundle.
30
- *
31
- * @example
32
- *
33
- * ```ts
34
- * import { BaseHttpLink } from "@apollo/client/link/http";
35
- *
36
- * const link = new BaseHttpLink({
37
- * uri: "http://localhost:4000/graphql",
38
- * headers: {
39
- * authorization: `Bearer ${token}`,
40
- * },
41
- * });
42
- * ```
43
- */
44
- class BaseHttpLink extends ApolloLink.ApolloLink {
45
- constructor(options = {}) {
46
- let { uri = "/graphql",
47
- // use default global fetch if nothing passed in
48
- fetch: preferredFetch, print = selectHttpOptionsAndBody.defaultPrinter, includeExtensions, preserveHeaderCase, useGETForQueries, includeUnusedVariables = false, ...requestOptions } = options;
49
- const linkConfig = {
50
- http: compact.compact({ includeExtensions, preserveHeaderCase }),
51
- options: requestOptions.fetchOptions,
52
- credentials: requestOptions.credentials,
53
- headers: requestOptions.headers,
54
- };
55
- super((operation) => {
56
- let chosenURI = selectURI.selectURI(operation, uri);
57
- const context = operation.getContext();
58
- const http = { ...context.http };
59
- if (operations.isSubscriptionOperation(operation.query)) {
60
- http.accept = [
61
- "multipart/mixed;boundary=graphql;subscriptionSpec=1.0",
62
- ...(http.accept || []),
63
- ];
64
- }
65
- const contextConfig = {
66
- http,
67
- options: context.fetchOptions,
68
- credentials: context.credentials,
69
- headers: context.headers,
70
- };
71
- //uses fallback, link, and then context to build options
72
- const { options, body } = selectHttpOptionsAndBody.selectHttpOptionsAndBodyInternal(operation, print, selectHttpOptionsAndBody.fallbackHttpConfig, linkConfig, contextConfig);
73
- if (body.variables && !includeUnusedVariables) {
74
- body.variables = filterOperationVariables.filterOperationVariables(body.variables, operation.query);
75
- }
76
- let controller = new AbortController();
77
- let cleanupController = () => {
78
- controller = undefined;
79
- };
80
- if (options.signal) {
81
- const externalSignal = options.signal;
82
- // in an ideal world we could use `AbortSignal.any` here, but
83
- // React Native uses https://github.com/mysticatea/abort-controller as
84
- // a polyfill for `AbortController`, and it does not support `AbortSignal.any`.
85
- const listener = () => {
86
- controller?.abort(externalSignal.reason);
87
- };
88
- externalSignal.addEventListener("abort", listener, { once: true });
89
- cleanupController = () => {
90
- controller?.signal.removeEventListener("abort", cleanupController);
91
- controller = undefined;
92
- // on cleanup, we need to stop listening to `options.signal` to avoid memory leaks
93
- externalSignal.removeEventListener("abort", listener);
94
- cleanupController = noop;
95
- };
96
- // react native also does not support the addEventListener `signal` option
97
- // so we have to simulate that ourself
98
- controller.signal.addEventListener("abort", cleanupController, {
99
- once: true,
100
- });
101
- }
102
- options.signal = controller.signal;
103
- if (useGETForQueries && !operations.isMutationOperation(operation.query)) {
104
- options.method = "GET";
105
- }
106
- return new Observable.Observable((observer) => {
107
- if (options.method === "GET") {
108
- const { newURI, parseError } = rewriteURIForGET.rewriteURIForGET(chosenURI, body);
109
- if (parseError) {
110
- throw parseError;
111
- }
112
- chosenURI = newURI;
113
- }
114
- else {
115
- options.body = JSON.stringify(body);
116
- }
117
- // Prefer linkOptions.fetch (preferredFetch) if provided, and otherwise
118
- // fall back to the *current* global window.fetch function (see issue
119
- // #7832), or (if all else fails) the backupFetch function we saved when
120
- // this module was first evaluated. This last option protects against the
121
- // removal of window.fetch, which is unlikely but not impossible.
122
- const currentFetch = preferredFetch || maybe.maybe(() => fetch) || backupFetch;
123
- const observerNext = observer.next.bind(observer);
124
- currentFetch(chosenURI, options)
125
- .then((response) => {
126
- operation.setContext({ response });
127
- const ctype = response.headers?.get("content-type");
128
- if (ctype !== null && /^multipart\/mixed/i.test(ctype)) {
129
- return parseAndCheckHttpResponse.readMultipartBody(response, observerNext);
130
- }
131
- else {
132
- return parseAndCheckHttpResponse.parseAndCheckHttpResponse(operation)(response).then(observerNext);
133
- }
134
- })
135
- .then(() => {
136
- cleanupController();
137
- observer.complete();
138
- })
139
- .catch((err) => {
140
- cleanupController();
141
- observer.error(err);
142
- });
143
- return () => {
144
- // XXX support canceling this request
145
- // https://developers.google.com/web/updates/2017/09/abortable-fetch
146
- if (controller)
147
- controller.abort();
148
- };
149
- });
150
- });
151
- }
152
- }
153
-
154
- exports.BaseHttpLink = BaseHttpLink;
155
- //# sourceMappingURL=BaseHttpLink.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseHttpLink.js","sources":["../../../../../../../node_modules/@apollo/client/link/http/BaseHttpLink.js"],"sourcesContent":["import { Observable } from \"rxjs\";\nimport { ApolloLink } from \"@apollo/client/link\";\nimport { filterOperationVariables } from \"@apollo/client/link/utils\";\nimport { isMutationOperation, isSubscriptionOperation, } from \"@apollo/client/utilities\";\nimport { __DEV__ } from \"@apollo/client/utilities/environment\";\nimport { compact } from \"@apollo/client/utilities/internal\";\nimport { maybe } from \"@apollo/client/utilities/internal/globals\";\nimport { checkFetcher } from \"./checkFetcher.js\";\nimport { parseAndCheckHttpResponse, readMultipartBody, } from \"./parseAndCheckHttpResponse.js\";\nimport { rewriteURIForGET } from \"./rewriteURIForGET.js\";\nimport { defaultPrinter, fallbackHttpConfig, selectHttpOptionsAndBodyInternal, } from \"./selectHttpOptionsAndBody.js\";\nimport { selectURI } from \"./selectURI.js\";\nconst backupFetch = maybe(() => fetch);\nfunction noop() { }\n/**\n * `BaseHttpLink` is a terminating link that sends a GraphQL operation to a\n * remote endpoint over HTTP. It serves as a base link to `HttpLink`.\n *\n * @remarks\n *\n * `BaseHttpLink` supports both POST and GET requests, and you can configure\n * HTTP options on a per-operation basis. You can use these options for\n * authentication, persisted queries, dynamic URIs, and other granular updates.\n *\n * > [!NOTE]\n * > Prefer using `HttpLink` over `BaseHttpLink`. Use `BaseHttpLink` when you\n * > need to disable client awareness features and would like to tree-shake\n * > the implementation of `ClientAwarenessLink` out of your app bundle.\n *\n * @example\n *\n * ```ts\n * import { BaseHttpLink } from \"@apollo/client/link/http\";\n *\n * const link = new BaseHttpLink({\n * uri: \"http://localhost:4000/graphql\",\n * headers: {\n * authorization: `Bearer ${token}`,\n * },\n * });\n * ```\n */\nexport class BaseHttpLink extends ApolloLink {\n constructor(options = {}) {\n let { uri = \"/graphql\", \n // use default global fetch if nothing passed in\n fetch: preferredFetch, print = defaultPrinter, includeExtensions, preserveHeaderCase, useGETForQueries, includeUnusedVariables = false, ...requestOptions } = options;\n if (__DEV__) {\n // Make sure at least one of preferredFetch, window.fetch, or backupFetch is\n // defined, so requests won't fail at runtime.\n checkFetcher(preferredFetch || backupFetch);\n }\n const linkConfig = {\n http: compact({ includeExtensions, preserveHeaderCase }),\n options: requestOptions.fetchOptions,\n credentials: requestOptions.credentials,\n headers: requestOptions.headers,\n };\n super((operation) => {\n let chosenURI = selectURI(operation, uri);\n const context = operation.getContext();\n const http = { ...context.http };\n if (isSubscriptionOperation(operation.query)) {\n http.accept = [\n \"multipart/mixed;boundary=graphql;subscriptionSpec=1.0\",\n ...(http.accept || []),\n ];\n }\n const contextConfig = {\n http,\n options: context.fetchOptions,\n credentials: context.credentials,\n headers: context.headers,\n };\n //uses fallback, link, and then context to build options\n const { options, body } = selectHttpOptionsAndBodyInternal(operation, print, fallbackHttpConfig, linkConfig, contextConfig);\n if (body.variables && !includeUnusedVariables) {\n body.variables = filterOperationVariables(body.variables, operation.query);\n }\n let controller = new AbortController();\n let cleanupController = () => {\n controller = undefined;\n };\n if (options.signal) {\n const externalSignal = options.signal;\n // in an ideal world we could use `AbortSignal.any` here, but\n // React Native uses https://github.com/mysticatea/abort-controller as\n // a polyfill for `AbortController`, and it does not support `AbortSignal.any`.\n const listener = () => {\n controller?.abort(externalSignal.reason);\n };\n externalSignal.addEventListener(\"abort\", listener, { once: true });\n cleanupController = () => {\n controller?.signal.removeEventListener(\"abort\", cleanupController);\n controller = undefined;\n // on cleanup, we need to stop listening to `options.signal` to avoid memory leaks\n externalSignal.removeEventListener(\"abort\", listener);\n cleanupController = noop;\n };\n // react native also does not support the addEventListener `signal` option\n // so we have to simulate that ourself\n controller.signal.addEventListener(\"abort\", cleanupController, {\n once: true,\n });\n }\n options.signal = controller.signal;\n if (useGETForQueries && !isMutationOperation(operation.query)) {\n options.method = \"GET\";\n }\n return new Observable((observer) => {\n if (options.method === \"GET\") {\n const { newURI, parseError } = rewriteURIForGET(chosenURI, body);\n if (parseError) {\n throw parseError;\n }\n chosenURI = newURI;\n }\n else {\n options.body = JSON.stringify(body);\n }\n // Prefer linkOptions.fetch (preferredFetch) if provided, and otherwise\n // fall back to the *current* global window.fetch function (see issue\n // #7832), or (if all else fails) the backupFetch function we saved when\n // this module was first evaluated. This last option protects against the\n // removal of window.fetch, which is unlikely but not impossible.\n const currentFetch = preferredFetch || maybe(() => fetch) || backupFetch;\n const observerNext = observer.next.bind(observer);\n currentFetch(chosenURI, options)\n .then((response) => {\n operation.setContext({ response });\n const ctype = response.headers?.get(\"content-type\");\n if (ctype !== null && /^multipart\\/mixed/i.test(ctype)) {\n return readMultipartBody(response, observerNext);\n }\n else {\n return parseAndCheckHttpResponse(operation)(response).then(observerNext);\n }\n })\n .then(() => {\n cleanupController();\n observer.complete();\n })\n .catch((err) => {\n cleanupController();\n observer.error(err);\n });\n return () => {\n // XXX support canceling this request\n // https://developers.google.com/web/updates/2017/09/abortable-fetch\n if (controller)\n controller.abort();\n };\n });\n });\n }\n}\n//# sourceMappingURL=BaseHttpLink.js.map"],"names":["maybe","ApolloLink","defaultPrinter","compact","selectURI","isSubscriptionOperation","selectHttpOptionsAndBodyInternal","fallbackHttpConfig","filterOperationVariables","isMutationOperation","Observable","rewriteURIForGET","readMultipartBody","parseAndCheckHttpResponse"],"mappings":";;;;;;;;;;;;;AAYA,MAAM,WAAW,GAAGA,WAAK,CAAC,MAAM,KAAK,CAAC;AACtC,SAAS,IAAI,GAAG,EAAE;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,YAAY,SAASC,qBAAU,CAAC;AAC7C,IAAI,WAAW,CAAC,OAAO,GAAG,EAAE,EAAE;AAC9B,QAAQ,IAAI,EAAE,GAAG,GAAG,UAAU;AAC9B;AACA,QAAQ,KAAK,EAAE,cAAc,EAAE,KAAK,GAAGC,uCAAc,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,sBAAsB,GAAG,KAAK,EAAE,GAAG,cAAc,EAAE,GAAG,OAAO;AAM7K,QAAQ,MAAM,UAAU,GAAG;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AAG,CAAC;AACvC,gBAAgB,CAAC,CAAC;AAClB,gBAAgB,OAAO,MAAM;AAC7B;AACA;AACA,oBAAoB,IAAI,UAAU;AAClC,wBAAwB,UAAU,CAAC,KAAK,EAAE;AAC1C,gBAAgB,CAAC;AACjB,YAAY,CAAC,CAAC;AACd,QAAQ,CAAC,CAAC;AACV,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,41 +0,0 @@
1
- 'use strict';
2
-
3
- var ApolloLink = require('../core/ApolloLink.js');
4
- var ClientAwarenessLink = require('../client-awareness/ClientAwarenessLink.js');
5
- var BaseHttpLink = require('./BaseHttpLink.js');
6
-
7
- /**
8
- * `HttpLink` is a terminating link that sends a GraphQL operation to a remote
9
- * endpoint over HTTP. It combines the functionality of `BaseHttpLink` and
10
- * `ClientAwarenessLink` into a single link.
11
- *
12
- * @remarks
13
- *
14
- * `HttpLink` supports both POST and GET requests, and you can configure HTTP
15
- * options on a per-operation basis. You can use these options for
16
- * authentication, persisted queries, dynamic URIs, and other granular updates.
17
- *
18
- * @example
19
- *
20
- * ```ts
21
- * import { HttpLink } from "@apollo/client";
22
- *
23
- * const link = new HttpLink({
24
- * uri: "http://localhost:4000/graphql",
25
- * // Additional options
26
- * });
27
- * ```
28
- */
29
- class HttpLink extends ApolloLink.ApolloLink {
30
- constructor(options = {}) {
31
- const { left, right, request } = ApolloLink.ApolloLink.from([
32
- new ClientAwarenessLink.ClientAwarenessLink(options),
33
- new BaseHttpLink.BaseHttpLink(options),
34
- ]);
35
- super(request);
36
- Object.assign(this, { left, right });
37
- }
38
- }
39
-
40
- exports.HttpLink = HttpLink;
41
- //# sourceMappingURL=HttpLink.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HttpLink.js","sources":["../../../../../../../node_modules/@apollo/client/link/http/HttpLink.js"],"sourcesContent":["import { ApolloLink } from \"@apollo/client/link\";\nimport { ClientAwarenessLink } from \"@apollo/client/link/client-awareness\";\nimport { BaseHttpLink } from \"./BaseHttpLink.js\";\n/**\n * `HttpLink` is a terminating link that sends a GraphQL operation to a remote\n * endpoint over HTTP. It combines the functionality of `BaseHttpLink` and\n * `ClientAwarenessLink` into a single link.\n *\n * @remarks\n *\n * `HttpLink` supports both POST and GET requests, and you can configure HTTP\n * options on a per-operation basis. You can use these options for\n * authentication, persisted queries, dynamic URIs, and other granular updates.\n *\n * @example\n *\n * ```ts\n * import { HttpLink } from \"@apollo/client\";\n *\n * const link = new HttpLink({\n * uri: \"http://localhost:4000/graphql\",\n * // Additional options\n * });\n * ```\n */\nexport class HttpLink extends ApolloLink {\n constructor(options = {}) {\n const { left, right, request } = ApolloLink.from([\n new ClientAwarenessLink(options),\n new BaseHttpLink(options),\n ]);\n super(request);\n Object.assign(this, { left, right });\n }\n}\n/**\n * @deprecated\n * Use `HttpLink` from `@apollo/client/link/http` instead.\n */\nexport const createHttpLink = (options = {}) => new HttpLink(options);\n//# sourceMappingURL=HttpLink.js.map"],"names":["ApolloLink","ClientAwarenessLink","BaseHttpLink"],"mappings":";;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,QAAQ,SAASA,qBAAU,CAAC;AACzC,IAAI,WAAW,CAAC,OAAO,GAAG,EAAE,EAAE;AAC9B,QAAQ,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,GAAGA,qBAAU,CAAC,IAAI,CAAC;AACzD,YAAY,IAAIC,uCAAmB,CAAC,OAAO,CAAC;AAC5C,YAAY,IAAIC,yBAAY,CAAC,OAAO,CAAC;AACrC,SAAS,CAAC;AACV,QAAQ,KAAK,CAAC,OAAO,CAAC;AACtB,QAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAC5C,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,168 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('../../errors/index.js');
4
- var index$1 = require('../../utilities/invariant/index.js');
5
- var CombinedProtocolErrors = require('../../errors/CombinedProtocolErrors.js');
6
- var ServerError = require('../../errors/ServerError.js');
7
- var ServerParseError = require('../../errors/ServerParseError.js');
8
- var isNonNullObject = require('../../utilities/internal/isNonNullObject.js');
9
-
10
- const { hasOwnProperty } = Object.prototype;
11
- /**
12
- * This function detects an Apollo payload result before it is transformed
13
- * into a FetchResult via HttpLink; it cannot detect an ApolloPayloadResult
14
- * once it leaves the link chain.
15
- */
16
- function isApolloPayloadResult(value) {
17
- return isNonNullObject.isNonNullObject(value) && "payload" in value;
18
- }
19
- async function* consumeMultipartBody(response) {
20
- const decoder = new TextDecoder("utf-8");
21
- const contentType = response.headers?.get("content-type");
22
- // parse boundary value and ignore any subsequent name/value pairs after ;
23
- // https://www.rfc-editor.org/rfc/rfc9110.html#name-parameters
24
- // e.g. multipart/mixed;boundary="graphql";deferSpec=20220824
25
- // if no boundary is specified, default to -
26
- const match = contentType?.match(
27
- /*
28
- ;\s*boundary= # Match the boundary parameter
29
- (?: # either
30
- '([^']*)' # a string starting with ' doesn't contain ', ends with '
31
- | # or
32
- "([^"]*)" # a string starting with " doesn't contain ", ends with "
33
- | # or
34
- ([^"'].*?) # a string that doesn't start with ' or ", parsed non-greedily
35
- ) # end of the group
36
- \s* # optional whitespace
37
- (?:;|$) # match a semicolon or end of string
38
- */
39
- /;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i);
40
- const boundary = "\r\n--" + (match ? match[1] ?? match[2] ?? match[3] ?? "-" : "-");
41
- let buffer = "";
42
- index$1.invariant(response.body && typeof response.body.getReader === "function", 62);
43
- const stream = response.body;
44
- const reader = stream.getReader();
45
- let done = false;
46
- let encounteredBoundary = false;
47
- let value;
48
- // check to see if we received the final boundary, which is a normal boundary followed by "--"
49
- // as described in https://www.rfc-editor.org/rfc/rfc2046#section-5.1.1
50
- const passedFinalBoundary = () => encounteredBoundary && buffer[0] == "-" && buffer[1] == "-";
51
- try {
52
- while (!done) {
53
- ({ value, done } = await reader.read());
54
- const chunk = typeof value === "string" ? value : decoder.decode(value);
55
- const searchFrom = buffer.length - boundary.length + 1;
56
- buffer += chunk;
57
- let bi = buffer.indexOf(boundary, searchFrom);
58
- while (bi > -1 && !passedFinalBoundary()) {
59
- encounteredBoundary = true;
60
- let message;
61
- [message, buffer] = [
62
- buffer.slice(0, bi),
63
- buffer.slice(bi + boundary.length),
64
- ];
65
- const i = message.indexOf("\r\n\r\n");
66
- const headers = parseHeaders(message.slice(0, i));
67
- const contentType = headers["content-type"];
68
- if (contentType &&
69
- contentType.toLowerCase().indexOf("application/json") === -1) {
70
- throw new Error("Unsupported patch content type: application/json is required.");
71
- }
72
- // nb: Technically you'd want to slice off the beginning "\r\n" but since
73
- // this is going to be `JSON.parse`d there is no need.
74
- const body = message.slice(i);
75
- if (body) {
76
- yield body;
77
- }
78
- bi = buffer.indexOf(boundary);
79
- }
80
- if (passedFinalBoundary()) {
81
- return;
82
- }
83
- }
84
- throw new Error("premature end of multipart body");
85
- }
86
- finally {
87
- reader.cancel();
88
- }
89
- }
90
- async function readMultipartBody(response, nextValue) {
91
- for await (const body of consumeMultipartBody(response)) {
92
- const result = parseJsonEncoding(response, body);
93
- if (Object.keys(result).length == 0)
94
- continue;
95
- if (isApolloPayloadResult(result)) {
96
- if (Object.keys(result).length === 1 && result.payload === null) {
97
- return;
98
- }
99
- let next = { ...result.payload };
100
- if ("errors" in result) {
101
- next.extensions = {
102
- ...next.extensions,
103
- [index.PROTOCOL_ERRORS_SYMBOL]: new CombinedProtocolErrors.CombinedProtocolErrors(result.errors ?? []),
104
- };
105
- }
106
- nextValue(next);
107
- }
108
- else {
109
- nextValue(result);
110
- }
111
- }
112
- }
113
- function parseHeaders(headerText) {
114
- const headersInit = {};
115
- headerText.split("\n").forEach((line) => {
116
- const i = line.indexOf(":");
117
- if (i > -1) {
118
- // normalize headers to lowercase
119
- const name = line.slice(0, i).trim().toLowerCase();
120
- const value = line.slice(i + 1).trim();
121
- headersInit[name] = value;
122
- }
123
- });
124
- return headersInit;
125
- }
126
- function parseJsonEncoding(response, bodyText) {
127
- if (response.status >= 300) {
128
- throw new ServerError.ServerError(`Response not successful: Received status code ${response.status}`, { response, bodyText });
129
- }
130
- try {
131
- return JSON.parse(bodyText);
132
- }
133
- catch (err) {
134
- throw new ServerParseError.ServerParseError(err, { response, bodyText });
135
- }
136
- }
137
- function parseGraphQLResponseJsonEncoding(response, bodyText) {
138
- try {
139
- return JSON.parse(bodyText);
140
- }
141
- catch (err) {
142
- throw new ServerParseError.ServerParseError(err, { response, bodyText });
143
- }
144
- }
145
- function parseResponse(response, bodyText) {
146
- const contentType = response.headers.get("content-type");
147
- if (contentType?.includes("application/graphql-response+json")) {
148
- return parseGraphQLResponseJsonEncoding(response, bodyText);
149
- }
150
- return parseJsonEncoding(response, bodyText);
151
- }
152
- function parseAndCheckHttpResponse(operations) {
153
- return (response) => response.text().then((bodyText) => {
154
- const result = parseResponse(response, bodyText);
155
- if (!Array.isArray(result) &&
156
- !hasOwnProperty.call(result, "data") &&
157
- !hasOwnProperty.call(result, "errors")) {
158
- throw new ServerError.ServerError(`Server response was malformed for query '${Array.isArray(operations) ?
159
- operations.map((op) => op.operationName)
160
- : operations.operationName}'.`, { response, bodyText });
161
- }
162
- return result;
163
- });
164
- }
165
-
166
- exports.parseAndCheckHttpResponse = parseAndCheckHttpResponse;
167
- exports.readMultipartBody = readMultipartBody;
168
- //# sourceMappingURL=parseAndCheckHttpResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseAndCheckHttpResponse.js","sources":["../../../../../../../node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js"],"sourcesContent":["import { CombinedProtocolErrors, PROTOCOL_ERRORS_SYMBOL, ServerError, ServerParseError, } from \"@apollo/client/errors\";\nimport { isNonNullObject } from \"@apollo/client/utilities/internal\";\nimport { invariant } from \"@apollo/client/utilities/invariant\";\nconst { hasOwnProperty } = Object.prototype;\n/**\n * This function detects an Apollo payload result before it is transformed\n * into a FetchResult via HttpLink; it cannot detect an ApolloPayloadResult\n * once it leaves the link chain.\n */\nfunction isApolloPayloadResult(value) {\n return isNonNullObject(value) && \"payload\" in value;\n}\nasync function* consumeMultipartBody(response) {\n const decoder = new TextDecoder(\"utf-8\");\n const contentType = response.headers?.get(\"content-type\");\n // parse boundary value and ignore any subsequent name/value pairs after ;\n // https://www.rfc-editor.org/rfc/rfc9110.html#name-parameters\n // e.g. multipart/mixed;boundary=\"graphql\";deferSpec=20220824\n // if no boundary is specified, default to -\n const match = contentType?.match(\n /*\n ;\\s*boundary= # Match the boundary parameter\n (?: # either\n '([^']*)' # a string starting with ' doesn't contain ', ends with '\n | # or\n \"([^\"]*)\" # a string starting with \" doesn't contain \", ends with \"\n | # or\n ([^\"'].*?) # a string that doesn't start with ' or \", parsed non-greedily\n ) # end of the group\n \\s* # optional whitespace\n (?:;|$) # match a semicolon or end of string\n */\n /;\\s*boundary=(?:'([^']+)'|\"([^\"]+)\"|([^\"'].+?))\\s*(?:;|$)/i);\n const boundary = \"\\r\\n--\" + (match ? match[1] ?? match[2] ?? match[3] ?? \"-\" : \"-\");\n let buffer = \"\";\n invariant(response.body && typeof response.body.getReader === \"function\", 62);\n const stream = response.body;\n const reader = stream.getReader();\n let done = false;\n let encounteredBoundary = false;\n let value;\n // check to see if we received the final boundary, which is a normal boundary followed by \"--\"\n // as described in https://www.rfc-editor.org/rfc/rfc2046#section-5.1.1\n const passedFinalBoundary = () => encounteredBoundary && buffer[0] == \"-\" && buffer[1] == \"-\";\n try {\n while (!done) {\n ({ value, done } = await reader.read());\n const chunk = typeof value === \"string\" ? value : decoder.decode(value);\n const searchFrom = buffer.length - boundary.length + 1;\n buffer += chunk;\n let bi = buffer.indexOf(boundary, searchFrom);\n while (bi > -1 && !passedFinalBoundary()) {\n encounteredBoundary = true;\n let message;\n [message, buffer] = [\n buffer.slice(0, bi),\n buffer.slice(bi + boundary.length),\n ];\n const i = message.indexOf(\"\\r\\n\\r\\n\");\n const headers = parseHeaders(message.slice(0, i));\n const contentType = headers[\"content-type\"];\n if (contentType &&\n contentType.toLowerCase().indexOf(\"application/json\") === -1) {\n throw new Error(\"Unsupported patch content type: application/json is required.\");\n }\n // nb: Technically you'd want to slice off the beginning \"\\r\\n\" but since\n // this is going to be `JSON.parse`d there is no need.\n const body = message.slice(i);\n if (body) {\n yield body;\n }\n bi = buffer.indexOf(boundary);\n }\n if (passedFinalBoundary()) {\n return;\n }\n }\n throw new Error(\"premature end of multipart body\");\n }\n finally {\n reader.cancel();\n }\n}\nexport async function readMultipartBody(response, nextValue) {\n for await (const body of consumeMultipartBody(response)) {\n const result = parseJsonEncoding(response, body);\n if (Object.keys(result).length == 0)\n continue;\n if (isApolloPayloadResult(result)) {\n if (Object.keys(result).length === 1 && result.payload === null) {\n return;\n }\n let next = { ...result.payload };\n if (\"errors\" in result) {\n next.extensions = {\n ...next.extensions,\n [PROTOCOL_ERRORS_SYMBOL]: new CombinedProtocolErrors(result.errors ?? []),\n };\n }\n nextValue(next);\n }\n else {\n nextValue(result);\n }\n }\n}\nfunction parseHeaders(headerText) {\n const headersInit = {};\n headerText.split(\"\\n\").forEach((line) => {\n const i = line.indexOf(\":\");\n if (i > -1) {\n // normalize headers to lowercase\n const name = line.slice(0, i).trim().toLowerCase();\n const value = line.slice(i + 1).trim();\n headersInit[name] = value;\n }\n });\n return headersInit;\n}\nfunction parseJsonEncoding(response, bodyText) {\n if (response.status >= 300) {\n throw new ServerError(`Response not successful: Received status code ${response.status}`, { response, bodyText });\n }\n try {\n return JSON.parse(bodyText);\n }\n catch (err) {\n throw new ServerParseError(err, { response, bodyText });\n }\n}\nfunction parseGraphQLResponseJsonEncoding(response, bodyText) {\n try {\n return JSON.parse(bodyText);\n }\n catch (err) {\n throw new ServerParseError(err, { response, bodyText });\n }\n}\nfunction parseResponse(response, bodyText) {\n const contentType = response.headers.get(\"content-type\");\n if (contentType?.includes(\"application/graphql-response+json\")) {\n return parseGraphQLResponseJsonEncoding(response, bodyText);\n }\n return parseJsonEncoding(response, bodyText);\n}\nexport function parseAndCheckHttpResponse(operations) {\n return (response) => response.text().then((bodyText) => {\n const result = parseResponse(response, bodyText);\n if (!Array.isArray(result) &&\n !hasOwnProperty.call(result, \"data\") &&\n !hasOwnProperty.call(result, \"errors\")) {\n throw new ServerError(`Server response was malformed for query '${Array.isArray(operations) ?\n operations.map((op) => op.operationName)\n : operations.operationName}'.`, { response, bodyText });\n }\n return result;\n });\n}\n//# sourceMappingURL=parseAndCheckHttpResponse.js.map\n"],"names":["isNonNullObject","invariant","PROTOCOL_ERRORS_SYMBOL","CombinedProtocolErrors","ServerError","ServerParseError"],"mappings":";;;;;;;;;AAGA,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC,SAAS;AAC3C;AACA;AACA;AACA;AACA;AACA,SAAS,qBAAqB,CAAC,KAAK,EAAE;AACtC,IAAI,OAAOA,+BAAe,CAAC,KAAK,CAAC,IAAI,SAAS,IAAI,KAAK;AACvD;AACA,gBAAgB,oBAAoB,CAAC,QAAQ,EAAE;AAC/C,IAAI,MAAM,OAAO,GAAG,IAAI,WAAW,CAAC,OAAO,CAAC;AAC5C,IAAI,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,cAAc,CAAC;AAC7D;AACA;AACA;AACA;AACA,IAAI,MAAM,KAAK,GAAG,WAAW,EAAE,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,4DAA4D,CAAC;AACjE,IAAI,MAAM,QAAQ,GAAG,QAAQ,IAAI,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,GAAG,CAAC;AACvF,IAAI,IAAI,MAAM,GAAG,EAAE;AACnB,IAAIC,iBAA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AAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;AAClC,YAAY,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;AAChD,YAAY,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE;AACpD,YAAY,MAAM,IAAID,uBAAW,CAAC,CAAC,yCAAyC,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;AACvG,gBAAgB,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,aAAa;AACvD,kBAAkB,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;AACvE,QAAQ;AACR,QAAQ,OAAO,MAAM;AACrB,IAAI,CAAC,CAAC;AACN;;;;;","x_google_ignoreList":[0]}
@@ -1,56 +0,0 @@
1
- 'use strict';
2
-
3
- // For GET operations, returns the given URI rewritten with parameters, or a
4
- // parse error.
5
- function rewriteURIForGET(chosenURI, body) {
6
- // Implement the standard HTTP GET serialization, plus 'extensions'. Note
7
- // the extra level of JSON serialization!
8
- const queryParams = [];
9
- const addQueryParam = (key, value) => {
10
- queryParams.push(`${key}=${encodeURIComponent(value)}`);
11
- };
12
- if ("query" in body) {
13
- addQueryParam("query", body.query);
14
- }
15
- if (body.operationName) {
16
- addQueryParam("operationName", body.operationName);
17
- }
18
- if (body.variables) {
19
- let serializedVariables;
20
- try {
21
- serializedVariables = JSON.stringify(body.variables);
22
- }
23
- catch (parseError) {
24
- return { parseError };
25
- }
26
- addQueryParam("variables", serializedVariables);
27
- }
28
- if (body.extensions) {
29
- let serializedExtensions;
30
- try {
31
- serializedExtensions = JSON.stringify(body.extensions);
32
- }
33
- catch (parseError) {
34
- return { parseError };
35
- }
36
- addQueryParam("extensions", serializedExtensions);
37
- }
38
- // Reconstruct the URI with added query params.
39
- // XXX This assumes that the URI is well-formed and that it doesn't
40
- // already contain any of these query params. We could instead use the
41
- // URL API and take a polyfill (whatwg-url@6) for older browsers that
42
- // don't support URLSearchParams. Note that some browsers (and
43
- // versions of whatwg-url) support URL but not URLSearchParams!
44
- let fragment = "", preFragment = chosenURI;
45
- const fragmentStart = chosenURI.indexOf("#");
46
- if (fragmentStart !== -1) {
47
- fragment = chosenURI.substr(fragmentStart);
48
- preFragment = chosenURI.substr(0, fragmentStart);
49
- }
50
- const queryParamsPrefix = preFragment.indexOf("?") === -1 ? "?" : "&";
51
- const newURI = preFragment + queryParamsPrefix + queryParams.join("&") + fragment;
52
- return { newURI };
53
- }
54
-
55
- exports.rewriteURIForGET = rewriteURIForGET;
56
- //# sourceMappingURL=rewriteURIForGET.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rewriteURIForGET.js","sources":["../../../../../../../node_modules/@apollo/client/link/http/rewriteURIForGET.js"],"sourcesContent":["// For GET operations, returns the given URI rewritten with parameters, or a\n// parse error.\nexport function rewriteURIForGET(chosenURI, body) {\n // Implement the standard HTTP GET serialization, plus 'extensions'. Note\n // the extra level of JSON serialization!\n const queryParams = [];\n const addQueryParam = (key, value) => {\n queryParams.push(`${key}=${encodeURIComponent(value)}`);\n };\n if (\"query\" in body) {\n addQueryParam(\"query\", body.query);\n }\n if (body.operationName) {\n addQueryParam(\"operationName\", body.operationName);\n }\n if (body.variables) {\n let serializedVariables;\n try {\n serializedVariables = JSON.stringify(body.variables);\n }\n catch (parseError) {\n return { parseError };\n }\n addQueryParam(\"variables\", serializedVariables);\n }\n if (body.extensions) {\n let serializedExtensions;\n try {\n serializedExtensions = JSON.stringify(body.extensions);\n }\n catch (parseError) {\n return { parseError };\n }\n addQueryParam(\"extensions\", serializedExtensions);\n }\n // Reconstruct the URI with added query params.\n // XXX This assumes that the URI is well-formed and that it doesn't\n // already contain any of these query params. We could instead use the\n // URL API and take a polyfill (whatwg-url@6) for older browsers that\n // don't support URLSearchParams. Note that some browsers (and\n // versions of whatwg-url) support URL but not URLSearchParams!\n let fragment = \"\", preFragment = chosenURI;\n const fragmentStart = chosenURI.indexOf(\"#\");\n if (fragmentStart !== -1) {\n fragment = chosenURI.substr(fragmentStart);\n preFragment = chosenURI.substr(0, fragmentStart);\n }\n const queryParamsPrefix = preFragment.indexOf(\"?\") === -1 ? \"?\" : \"&\";\n const newURI = preFragment + queryParamsPrefix + queryParams.join(\"&\") + fragment;\n return { newURI };\n}\n//# sourceMappingURL=rewriteURIForGET.js.map"],"names":[],"mappings":";;AAAA;AACA;AACO,SAAS,gBAAgB,CAAC,SAAS,EAAE,IAAI,EAAE;AAClD;AACA;AACA,IAAI,MAAM,WAAW,GAAG,EAAE;AAC1B,IAAI,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,KAAK,KAAK;AAC1C,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC/D,IAAI,CAAC;AACL,IAAI,IAAI,OAAO,IAAI,IAAI,EAAE;AACzB,QAAQ,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC;AAC1C,IAAI;AACJ,IAAI,IAAI,IAAI,CAAC,aAAa,EAAE;AAC5B,QAAQ,aAAa,CAAC,eAAe,EAAE,IAAI,CAAC,aAAa,CAAC;AAC1D,IAAI;AACJ,IAAI,IAAI,IAAI,CAAC,SAAS,EAAE;AACxB,QAAQ,IAAI,mBAAmB;AAC/B,QAAQ,IAAI;AACZ,YAAY,mBAAmB,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC;AAChE,QAAQ;AACR,QAAQ,OAAO,UAAU,EAAE;AAC3B,YAAY,OAAO,EAAE,UAAU,EAAE;AACjC,QAAQ;AACR,QAAQ,aAAa,CAAC,WAAW,EAAE,mBAAmB,CAAC;AACvD,IAAI;AACJ,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,QAAQ,IAAI,oBAAoB;AAChC,QAAQ,IAAI;AACZ,YAAY,oBAAoB,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;AAClE,QAAQ;AACR,QAAQ,OAAO,UAAU,EAAE;AAC3B,YAAY,OAAO,EAAE,UAAU,EAAE;AACjC,QAAQ;AACR,QAAQ,aAAa,CAAC,YAAY,EAAE,oBAAoB,CAAC;AACzD,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,QAAQ,GAAG,EAAE,EAAE,WAAW,GAAG,SAAS;AAC9C,IAAI,MAAM,aAAa,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC;AAChD,IAAI,IAAI,aAAa,KAAK,EAAE,EAAE;AAC9B,QAAQ,QAAQ,GAAG,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC;AAClD,QAAQ,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,CAAC;AACxD,IAAI;AACJ,IAAI,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,GAAG;AACzE,IAAI,MAAM,MAAM,GAAG,WAAW,GAAG,iBAAiB,GAAG,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ;AACrF,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB;;;;","x_google_ignoreList":[0]}
@@ -1,106 +0,0 @@
1
- 'use strict';
2
-
3
- var print = require('../../utilities/graphql/print.js');
4
-
5
- const defaultHttpOptions = {
6
- includeQuery: true,
7
- includeExtensions: true,
8
- preserveHeaderCase: false,
9
- };
10
- const defaultHeaders = {
11
- // headers are case insensitive (https://stackoverflow.com/a/5259004)
12
- accept: "application/graphql-response+json,application/json;q=0.9",
13
- // The content-type header describes the type of the body of the request, and
14
- // so it typically only is sent with requests that actually have bodies. One
15
- // could imagine that Apollo Client would remove this header when constructing
16
- // a GET request (which has no body), but we historically have not done that.
17
- // This means that browsers will preflight all Apollo Client requests (even
18
- // GET requests). Apollo Server's CSRF prevention feature (introduced in
19
- // AS3.7) takes advantage of this fact and does not block requests with this
20
- // header. If you want to drop this header from GET requests, then you should
21
- // probably replace it with a `apollo-require-preflight` header, or servers
22
- // with CSRF prevention enabled might block your GET request. See
23
- // https://www.apollographql.com/docs/apollo-server/security/cors/#preventing-cross-site-request-forgery-csrf
24
- // for more details.
25
- "content-type": "application/json",
26
- };
27
- const defaultOptions = {
28
- method: "POST",
29
- };
30
- const fallbackHttpConfig = {
31
- http: defaultHttpOptions,
32
- headers: defaultHeaders,
33
- options: defaultOptions,
34
- };
35
- const defaultPrinter = (ast, printer) => printer(ast);
36
- function selectHttpOptionsAndBodyInternal(operation, printer, ...configs) {
37
- let options = {};
38
- let http = {};
39
- configs.forEach((config) => {
40
- options = {
41
- ...options,
42
- ...config.options,
43
- headers: {
44
- ...options.headers,
45
- ...config.headers,
46
- },
47
- };
48
- if (config.credentials) {
49
- options.credentials = config.credentials;
50
- }
51
- options.headers.accept = (config.http?.accept || [])
52
- .concat(options.headers.accept)
53
- .join(",");
54
- http = {
55
- ...http,
56
- ...config.http,
57
- };
58
- });
59
- options.headers = removeDuplicateHeaders(options.headers, http.preserveHeaderCase);
60
- //The body depends on the http options
61
- const { operationName, extensions, variables, query } = operation;
62
- const body = { operationName, variables };
63
- if (http.includeExtensions && Object.keys(extensions || {}).length)
64
- body.extensions = extensions;
65
- // not sending the query (i.e persisted queries)
66
- if (http.includeQuery)
67
- body.query = printer(query, print.print);
68
- return {
69
- options,
70
- body,
71
- };
72
- }
73
- // Remove potential duplicate header names, preserving last (by insertion order).
74
- // This is done to prevent unintentionally duplicating a header instead of
75
- // overwriting it (See #8447 and #8449).
76
- function removeDuplicateHeaders(headers, preserveHeaderCase) {
77
- // If we're not preserving the case, just remove duplicates w/ normalization.
78
- if (!preserveHeaderCase) {
79
- const normalizedHeaders = {};
80
- Object.keys(Object(headers)).forEach((name) => {
81
- normalizedHeaders[name.toLowerCase()] = headers[name];
82
- });
83
- return normalizedHeaders;
84
- }
85
- // If we are preserving the case, remove duplicates w/ normalization,
86
- // preserving the original name.
87
- // This allows for non-http-spec-compliant servers that expect intentionally
88
- // capitalized header names (See #6741).
89
- const headerData = {};
90
- Object.keys(Object(headers)).forEach((name) => {
91
- headerData[name.toLowerCase()] = {
92
- originalName: name,
93
- value: headers[name],
94
- };
95
- });
96
- const normalizedHeaders = {};
97
- Object.keys(headerData).forEach((name) => {
98
- normalizedHeaders[headerData[name].originalName] = headerData[name].value;
99
- });
100
- return normalizedHeaders;
101
- }
102
-
103
- exports.defaultPrinter = defaultPrinter;
104
- exports.fallbackHttpConfig = fallbackHttpConfig;
105
- exports.selectHttpOptionsAndBodyInternal = selectHttpOptionsAndBodyInternal;
106
- //# sourceMappingURL=selectHttpOptionsAndBody.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectHttpOptionsAndBody.js","sources":["../../../../../../../node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js"],"sourcesContent":["import { print } from \"@apollo/client/utilities\";\nconst defaultHttpOptions = {\n includeQuery: true,\n includeExtensions: true,\n preserveHeaderCase: false,\n};\nconst defaultHeaders = {\n // headers are case insensitive (https://stackoverflow.com/a/5259004)\n accept: \"application/graphql-response+json,application/json;q=0.9\",\n // The content-type header describes the type of the body of the request, and\n // so it typically only is sent with requests that actually have bodies. One\n // could imagine that Apollo Client would remove this header when constructing\n // a GET request (which has no body), but we historically have not done that.\n // This means that browsers will preflight all Apollo Client requests (even\n // GET requests). Apollo Server's CSRF prevention feature (introduced in\n // AS3.7) takes advantage of this fact and does not block requests with this\n // header. If you want to drop this header from GET requests, then you should\n // probably replace it with a `apollo-require-preflight` header, or servers\n // with CSRF prevention enabled might block your GET request. See\n // https://www.apollographql.com/docs/apollo-server/security/cors/#preventing-cross-site-request-forgery-csrf\n // for more details.\n \"content-type\": \"application/json\",\n};\nconst defaultOptions = {\n method: \"POST\",\n};\nexport const fallbackHttpConfig = {\n http: defaultHttpOptions,\n headers: defaultHeaders,\n options: defaultOptions,\n};\nexport const defaultPrinter = (ast, printer) => printer(ast);\nexport function selectHttpOptionsAndBody(operation, fallbackConfig, ...configs) {\n configs.unshift(fallbackConfig);\n return selectHttpOptionsAndBodyInternal(operation, defaultPrinter, ...configs);\n}\nexport function selectHttpOptionsAndBodyInternal(operation, printer, ...configs) {\n let options = {};\n let http = {};\n configs.forEach((config) => {\n options = {\n ...options,\n ...config.options,\n headers: {\n ...options.headers,\n ...config.headers,\n },\n };\n if (config.credentials) {\n options.credentials = config.credentials;\n }\n options.headers.accept = (config.http?.accept || [])\n .concat(options.headers.accept)\n .join(\",\");\n http = {\n ...http,\n ...config.http,\n };\n });\n options.headers = removeDuplicateHeaders(options.headers, http.preserveHeaderCase);\n //The body depends on the http options\n const { operationName, extensions, variables, query } = operation;\n const body = { operationName, variables };\n if (http.includeExtensions && Object.keys(extensions || {}).length)\n body.extensions = extensions;\n // not sending the query (i.e persisted queries)\n if (http.includeQuery)\n body.query = printer(query, print);\n return {\n options,\n body,\n };\n}\n// Remove potential duplicate header names, preserving last (by insertion order).\n// This is done to prevent unintentionally duplicating a header instead of\n// overwriting it (See #8447 and #8449).\nfunction removeDuplicateHeaders(headers, preserveHeaderCase) {\n // If we're not preserving the case, just remove duplicates w/ normalization.\n if (!preserveHeaderCase) {\n const normalizedHeaders = {};\n Object.keys(Object(headers)).forEach((name) => {\n normalizedHeaders[name.toLowerCase()] = headers[name];\n });\n return normalizedHeaders;\n }\n // If we are preserving the case, remove duplicates w/ normalization,\n // preserving the original name.\n // This allows for non-http-spec-compliant servers that expect intentionally\n // capitalized header names (See #6741).\n const headerData = {};\n Object.keys(Object(headers)).forEach((name) => {\n headerData[name.toLowerCase()] = {\n originalName: name,\n value: headers[name],\n };\n });\n const normalizedHeaders = {};\n Object.keys(headerData).forEach((name) => {\n normalizedHeaders[headerData[name].originalName] = headerData[name].value;\n });\n return normalizedHeaders;\n}\n//# sourceMappingURL=selectHttpOptionsAndBody.js.map"],"names":["print"],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AAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AACnD,QAAQ,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAG;AACzC,YAAY,YAAY,EAAE,IAAI;AAC9B,YAAY,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC;AAChC,SAAS;AACT,IAAI,CAAC,CAAC;AACN,IAAI,MAAM,iBAAiB,GAAG,EAAE;AAChC,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AAC9C,QAAQ,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,KAAK;AACjF,IAAI,CAAC,CAAC;AACN,IAAI,OAAO,iBAAiB;AAC5B;;;;;;","x_google_ignoreList":[0]}
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- const selectURI = (operation, fallbackURI) => {
4
- const context = operation.getContext();
5
- const contextURI = context.uri;
6
- if (contextURI) {
7
- return contextURI;
8
- }
9
- else if (typeof fallbackURI === "function") {
10
- return fallbackURI(operation);
11
- }
12
- else {
13
- return fallbackURI || "/graphql";
14
- }
15
- };
16
-
17
- exports.selectURI = selectURI;
18
- //# sourceMappingURL=selectURI.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectURI.js","sources":["../../../../../../../node_modules/@apollo/client/link/http/selectURI.js"],"sourcesContent":["export const selectURI = (operation, fallbackURI) => {\n const context = operation.getContext();\n const contextURI = context.uri;\n if (contextURI) {\n return contextURI;\n }\n else if (typeof fallbackURI === \"function\") {\n return fallbackURI(operation);\n }\n else {\n return fallbackURI || \"/graphql\";\n }\n};\n//# sourceMappingURL=selectURI.js.map"],"names":[],"mappings":";;AAAY,MAAC,SAAS,GAAG,CAAC,SAAS,EAAE,WAAW,KAAK;AACrD,IAAI,MAAM,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE;AAC1C,IAAI,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG;AAClC,IAAI,IAAI,UAAU,EAAE;AACpB,QAAQ,OAAO,UAAU;AACzB,IAAI;AACJ,SAAS,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE;AAChD,QAAQ,OAAO,WAAW,CAAC,SAAS,CAAC;AACrC,IAAI;AACJ,SAAS;AACT,QAAQ,OAAO,WAAW,IAAI,UAAU;AACxC,IAAI;AACJ;;;;","x_google_ignoreList":[0]}