@teambit/graphql 0.0.881 → 0.0.882

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.
@@ -4,34 +4,28 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.createSplitLink = createSplitLink;
7
-
8
7
  function _client() {
9
8
  const data = require("@apollo/client");
10
-
11
9
  _client = function () {
12
10
  return data;
13
11
  };
14
-
15
12
  return data;
16
13
  }
17
-
18
14
  function _utilities() {
19
15
  const data = require("@apollo/client/utilities");
20
-
21
16
  _utilities = function () {
22
17
  return data;
23
18
  };
24
-
25
19
  return data;
26
20
  }
27
-
28
21
  /**
29
22
  * create a link which splits routes data depending on type of operation.
30
23
  * @param httpLink http link for apollo graphql
31
24
  * @param wsLink web socket link for apollo graphql
32
25
  */
33
26
  function createSplitLink(httpLink, wsLink) {
34
- return (0, _client().split)( // split based on operation type
27
+ return (0, _client().split)(
28
+ // split based on operation type
35
29
  ({
36
30
  query
37
31
  }) => {
@@ -1 +1 @@
1
- {"version":3,"names":["createSplitLink","httpLink","wsLink","split","query","definition","getMainDefinition","kind","operation"],"sources":["create-link.ts"],"sourcesContent":["import { HttpLink, split } from '@apollo/client';\nimport { getMainDefinition } from '@apollo/client/utilities';\nimport type { WebSocketLink } from '@apollo/client/link/ws';\n\n/**\n * create a link which splits routes data depending on type of operation.\n * @param httpLink http link for apollo graphql\n * @param wsLink web socket link for apollo graphql\n */\nexport function createSplitLink(httpLink: HttpLink, wsLink: WebSocketLink) {\n return split(\n // split based on operation type\n ({ query }) => {\n const definition = getMainDefinition(query);\n return definition.kind === 'OperationDefinition' && definition.operation === 'subscription';\n },\n wsLink,\n httpLink\n );\n}\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;AACA;AACA;AACA;AACA;AACO,SAASA,eAAT,CAAyBC,QAAzB,EAA6CC,MAA7C,EAAoE;EACzE,OAAO,IAAAC,eAAA,GACL;EACA,CAAC;IAAEC;EAAF,CAAD,KAAe;IACb,MAAMC,UAAU,GAAG,IAAAC,8BAAA,EAAkBF,KAAlB,CAAnB;IACA,OAAOC,UAAU,CAACE,IAAX,KAAoB,qBAApB,IAA6CF,UAAU,CAACG,SAAX,KAAyB,cAA7E;EACD,CALI,EAMLN,MANK,EAOLD,QAPK,CAAP;AASD"}
1
+ {"version":3,"names":["createSplitLink","httpLink","wsLink","split","query","definition","getMainDefinition","kind","operation"],"sources":["create-link.ts"],"sourcesContent":["import { HttpLink, split } from '@apollo/client';\nimport { getMainDefinition } from '@apollo/client/utilities';\nimport type { WebSocketLink } from '@apollo/client/link/ws';\n\n/**\n * create a link which splits routes data depending on type of operation.\n * @param httpLink http link for apollo graphql\n * @param wsLink web socket link for apollo graphql\n */\nexport function createSplitLink(httpLink: HttpLink, wsLink: WebSocketLink) {\n return split(\n // split based on operation type\n ({ query }) => {\n const definition = getMainDefinition(query);\n return definition.kind === 'OperationDefinition' && definition.operation === 'subscription';\n },\n wsLink,\n httpLink\n );\n}\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACO,SAASA,eAAe,CAACC,QAAkB,EAAEC,MAAqB,EAAE;EACzE,OAAO,IAAAC,eAAK;EACV;EACA,CAAC;IAAEC;EAAM,CAAC,KAAK;IACb,MAAMC,UAAU,GAAG,IAAAC,8BAAiB,EAACF,KAAK,CAAC;IAC3C,OAAOC,UAAU,CAACE,IAAI,KAAK,qBAAqB,IAAIF,UAAU,CAACG,SAAS,KAAK,cAAc;EAC7F,CAAC,EACDN,MAAM,EACND,QAAQ,CACT;AACH"}
@@ -1,106 +1,75 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  require("core-js/modules/es.array.iterator.js");
6
-
7
5
  require("core-js/modules/es.promise.js");
8
-
9
6
  Object.defineProperty(exports, "__esModule", {
10
7
  value: true
11
8
  });
12
9
  exports.createRemoteSchemas = createRemoteSchemas;
13
-
14
10
  function _nodeFetch() {
15
11
  const data = _interopRequireDefault(require("node-fetch"));
16
-
17
12
  _nodeFetch = function () {
18
13
  return data;
19
14
  };
20
-
21
15
  return data;
22
16
  }
23
-
24
17
  function _apolloLinkContext() {
25
18
  const data = require("apollo-link-context");
26
-
27
19
  _apolloLinkContext = function () {
28
20
  return data;
29
21
  };
30
-
31
22
  return data;
32
23
  }
33
-
34
24
  function _apolloLinkHttp() {
35
25
  const data = require("apollo-link-http");
36
-
37
26
  _apolloLinkHttp = function () {
38
27
  return data;
39
28
  };
40
-
41
29
  return data;
42
30
  }
43
-
44
31
  function _apolloServer() {
45
32
  const data = require("apollo-server");
46
-
47
33
  _apolloServer = function () {
48
34
  return data;
49
35
  };
50
-
51
36
  return data;
52
37
  }
53
-
54
38
  function _apolloLinkWs() {
55
39
  const data = require("apollo-link-ws");
56
-
57
40
  _apolloLinkWs = function () {
58
41
  return data;
59
42
  };
60
-
61
43
  return data;
62
44
  }
63
-
64
45
  function _apolloLink() {
65
46
  const data = require("apollo-link");
66
-
67
47
  _apolloLink = function () {
68
48
  return data;
69
49
  };
70
-
71
50
  return data;
72
51
  }
73
-
74
52
  function _apolloUtilities() {
75
53
  const data = require("apollo-utilities");
76
-
77
54
  _apolloUtilities = function () {
78
55
  return data;
79
56
  };
80
-
81
57
  return data;
82
58
  }
83
-
84
59
  function _subscriptionsTransportWs() {
85
60
  const data = require("subscriptions-transport-ws");
86
-
87
61
  _subscriptionsTransportWs = function () {
88
62
  return data;
89
63
  };
90
-
91
64
  return data;
92
65
  }
93
-
94
66
  function _ws() {
95
67
  const data = _interopRequireDefault(require("ws"));
96
-
97
68
  _ws = function () {
98
69
  return data;
99
70
  };
100
-
101
71
  return data;
102
72
  }
103
-
104
73
  async function getRemoteSchema({
105
74
  uri,
106
75
  subscriptionsUri
@@ -108,45 +77,40 @@ async function getRemoteSchema({
108
77
  const wrappingLink = new (_apolloLink().ApolloLink)((operation, forward) => {
109
78
  return forward(operation).map(response => {
110
79
  var _context$response, _context$response$hea;
111
-
112
80
  const context = operation.getContext();
113
-
114
81
  if (context !== null && context !== void 0 && (_context$response = context.response) !== null && _context$response !== void 0 && (_context$response$hea = _context$response.headers) !== null && _context$response$hea !== void 0 && _context$response$hea.get('set-cookie')) {
115
82
  var _context$graphqlConte, _context$graphqlConte2, _context$response2, _context$response2$he;
116
-
117
83
  context === null || context === void 0 ? void 0 : (_context$graphqlConte = context.graphqlContext) === null || _context$graphqlConte === void 0 ? void 0 : (_context$graphqlConte2 = _context$graphqlConte.res) === null || _context$graphqlConte2 === void 0 ? void 0 : _context$graphqlConte2.setHeader('set-cookie', context === null || context === void 0 ? void 0 : (_context$response2 = context.response) === null || _context$response2 === void 0 ? void 0 : (_context$response2$he = _context$response2.headers) === null || _context$response2$he === void 0 ? void 0 : _context$response2$he.get('set-cookie'));
118
84
  }
119
-
120
85
  return response;
121
86
  });
122
- }); // @ts-ignore
123
-
87
+ });
88
+ // @ts-ignore
124
89
  const http = new (_apolloLinkHttp().HttpLink)({
125
90
  uri,
126
91
  fetch: _nodeFetch().default
127
92
  });
128
93
  const httpLink = (0, _apolloLinkContext().setContext)((request, previousContext) => {
129
94
  var _previousContext$grap;
130
-
131
95
  return {
132
96
  headers: previousContext === null || previousContext === void 0 ? void 0 : (_previousContext$grap = previousContext.graphqlContext) === null || _previousContext$grap === void 0 ? void 0 : _previousContext$grap.headers
133
97
  };
134
98
  }).concat(wrappingLink).concat(http);
135
-
136
99
  if (!subscriptionsUri) {
137
100
  return (0, _apolloServer().makeRemoteExecutableSchema)({
138
101
  schema: await (0, _apolloServer().introspectSchema)(httpLink),
139
102
  link: httpLink
140
103
  });
141
- } // Create WebSocket link with custom client
142
-
104
+ }
143
105
 
106
+ // Create WebSocket link with custom client
144
107
  const client = new (_subscriptionsTransportWs().SubscriptionClient)(subscriptionsUri, {
145
108
  reconnect: true
146
109
  }, _ws().default);
147
- const wsLink = new (_apolloLinkWs().WebSocketLink)(client); // Using the ability to split links, we can send data to each link
148
- // depending on what kind of operation is being sent
110
+ const wsLink = new (_apolloLinkWs().WebSocketLink)(client);
149
111
 
112
+ // Using the ability to split links, we can send data to each link
113
+ // depending on what kind of operation is being sent
150
114
  const link = (0, _apolloLink().split)(operation => {
151
115
  const definition = (0, _apolloUtilities().getMainDefinition)(operation.query);
152
116
  return definition.kind === 'OperationDefinition' && definition.operation === 'subscription';
@@ -156,7 +120,6 @@ async function getRemoteSchema({
156
120
  link
157
121
  });
158
122
  }
159
-
160
123
  async function createRemoteSchemas(servers) {
161
124
  const schemasP = servers.map(async server => {
162
125
  return getRemoteSchema({
@@ -1 +1 @@
1
- {"version":3,"names":["getRemoteSchema","uri","subscriptionsUri","wrappingLink","ApolloLink","operation","forward","map","response","context","getContext","headers","get","graphqlContext","res","setHeader","http","HttpLink","fetch","httpLink","setContext","request","previousContext","concat","makeRemoteExecutableSchema","schema","introspectSchema","link","client","SubscriptionClient","reconnect","ws","wsLink","WebSocketLink","split","definition","getMainDefinition","query","kind","createRemoteSchemas","servers","schemasP","server","Promise","all"],"sources":["create-remote-schemas.ts"],"sourcesContent":["import fetch from 'node-fetch';\nimport { setContext } from 'apollo-link-context';\nimport { HttpLink } from 'apollo-link-http';\nimport { makeRemoteExecutableSchema, introspectSchema } from 'apollo-server';\nimport { WebSocketLink } from 'apollo-link-ws';\nimport { split, ApolloLink } from 'apollo-link';\nimport { getMainDefinition } from 'apollo-utilities';\nimport { SubscriptionClient } from 'subscriptions-transport-ws';\nimport ws from 'ws';\nimport { GraphQLServer } from '../graphql-server';\n\nasync function getRemoteSchema({ uri, subscriptionsUri }) {\n const wrappingLink = new ApolloLink((operation, forward) => {\n return forward(operation).map((response) => {\n const context = operation.getContext();\n if (context?.response?.headers?.get('set-cookie')) {\n context?.graphqlContext?.res?.setHeader('set-cookie', context?.response?.headers?.get('set-cookie'));\n }\n return response;\n });\n });\n // @ts-ignore\n const http = new HttpLink({ uri, fetch });\n const httpLink = setContext((request, previousContext) => {\n return {\n headers: previousContext?.graphqlContext?.headers,\n };\n })\n .concat(wrappingLink)\n .concat(http);\n\n if (!subscriptionsUri) {\n return makeRemoteExecutableSchema({\n schema: await introspectSchema(httpLink),\n link: httpLink,\n });\n }\n\n // Create WebSocket link with custom client\n const client = new SubscriptionClient(subscriptionsUri, { reconnect: true }, ws);\n const wsLink = new WebSocketLink(client);\n\n // Using the ability to split links, we can send data to each link\n // depending on what kind of operation is being sent\n const link = split(\n (operation) => {\n const definition = getMainDefinition(operation.query);\n return definition.kind === 'OperationDefinition' && definition.operation === 'subscription';\n },\n wsLink,\n httpLink\n );\n\n return makeRemoteExecutableSchema({\n schema: await introspectSchema(httpLink),\n link,\n });\n}\n\nexport async function createRemoteSchemas(servers: GraphQLServer[]) {\n const schemasP = servers.map(async (server) => {\n return getRemoteSchema({\n uri: server.uri,\n subscriptionsUri: server.subscriptionsUri,\n });\n });\n\n return Promise.all(schemasP);\n}\n"],"mappings":";;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA,eAAeA,eAAf,CAA+B;EAAEC,GAAF;EAAOC;AAAP,CAA/B,EAA0D;EACxD,MAAMC,YAAY,GA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AAM,GAAG,KAAIC,8CAAJ,EAAuB3B,gBAAvB,EAAyC;IAAE4B,SAAS,EAAE;EAAb,CAAzC,EAA8DC,aAA9D,CAAf;EACA,MAAMC,MAAM,GAAG,KAAIC,6BAAJ,EAAkBL,MAAlB,CAAf,CA7BwD,CA+BxD;EACA;;EACA,MAAMD,IAAI,GAAG,IAAAO,mBAAA,EACV7B,SAAD,IAAe;IACb,MAAM8B,UAAU,GAAG,IAAAC,oCAAA,EAAkB/B,SAAS,CAACgC,KAA5B,CAAnB;IACA,OAAOF,UAAU,CAACG,IAAX,KAAoB,qBAApB,IAA6CH,UAAU,CAAC9B,SAAX,KAAyB,cAA7E;EACD,CAJU,EAKX2B,MALW,EAMXb,QANW,CAAb;EASA,OAAO,IAAAK,0CAAA,EAA2B;IAChCC,MAAM,EAAE,MAAM,IAAAC,gCAAA,EAAiBP,QAAjB,CADkB;IAEhCQ;EAFgC,CAA3B,CAAP;AAID;;AAEM,eAAeY,mBAAf,CAAmCC,OAAnC,EAA6D;EAClE,MAAMC,QAAQ,GAAGD,OAAO,CAACjC,GAAR,CAAY,MAAOmC,MAAP,IAAkB;IAC7C,OAAO1C,eAAe,CAAC;MACrBC,GAAG,EAAEyC,MAAM,CAACzC,GADS;MAErBC,gBAAgB,EAAEwC,MAAM,CAACxC;IAFJ,CAAD,CAAtB;EAID,CALgB,CAAjB;EAOA,OAAOyC,OAAO,CAACC,GAAR,CAAYH,QAAZ,CAAP;AACD"}
1
+ {"version":3,"names":["getRemoteSchema","uri","subscriptionsUri","wrappingLink","ApolloLink","operation","forward","map","response","context","getContext","headers","get","graphqlContext","res","setHeader","http","HttpLink","fetch","httpLink","setContext","request","previousContext","concat","makeRemoteExecutableSchema","schema","introspectSchema","link","client","SubscriptionClient","reconnect","ws","wsLink","WebSocketLink","split","definition","getMainDefinition","query","kind","createRemoteSchemas","servers","schemasP","server","Promise","all"],"sources":["create-remote-schemas.ts"],"sourcesContent":["import fetch from 'node-fetch';\nimport { setContext } from 'apollo-link-context';\nimport { HttpLink } from 'apollo-link-http';\nimport { makeRemoteExecutableSchema, introspectSchema } from 'apollo-server';\nimport { WebSocketLink } from 'apollo-link-ws';\nimport { split, ApolloLink } from 'apollo-link';\nimport { getMainDefinition } from 'apollo-utilities';\nimport { SubscriptionClient } from 'subscriptions-transport-ws';\nimport ws from 'ws';\nimport { GraphQLServer } from '../graphql-server';\n\nasync function getRemoteSchema({ uri, subscriptionsUri }) {\n const wrappingLink = new ApolloLink((operation, forward) => {\n return forward(operation).map((response) => {\n const context = operation.getContext();\n if (context?.response?.headers?.get('set-cookie')) {\n context?.graphqlContext?.res?.setHeader('set-cookie', context?.response?.headers?.get('set-cookie'));\n }\n return response;\n });\n });\n // @ts-ignore\n const http = new HttpLink({ uri, fetch });\n const httpLink = setContext((request, previousContext) => {\n return {\n headers: previousContext?.graphqlContext?.headers,\n };\n })\n .concat(wrappingLink)\n .concat(http);\n\n if (!subscriptionsUri) {\n return makeRemoteExecutableSchema({\n schema: await introspectSchema(httpLink),\n link: httpLink,\n });\n }\n\n // Create WebSocket link with custom client\n const client = new SubscriptionClient(subscriptionsUri, { reconnect: true }, ws);\n const wsLink = new WebSocketLink(client);\n\n // Using the ability to split links, we can send data to each link\n // depending on what kind of operation is being sent\n const link = split(\n (operation) => {\n const definition = getMainDefinition(operation.query);\n return definition.kind === 'OperationDefinition' && definition.operation === 'subscription';\n },\n wsLink,\n httpLink\n );\n\n return makeRemoteExecutableSchema({\n schema: await introspectSchema(httpLink),\n link,\n });\n}\n\nexport async function createRemoteSchemas(servers: GraphQLServer[]) {\n const schemasP = servers.map(async (server) => {\n return getRemoteSchema({\n uri: server.uri,\n subscriptionsUri: server.subscriptionsUri,\n });\n });\n\n return Promise.all(schemasP);\n}\n"],"mappings":";;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA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emas().createRemoteSchemas;
10
10
  }
11
11
  });
12
-
13
12
  function _createRemoteSchemas() {
14
13
  const data = require("./create-remote-schemas");
15
-
16
14
  _createRemoteSchemas = function () {
17
15
  return data;
18
16
  };
19
-
20
17
  return data;
21
18
  }
22
19
 
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { createRemoteSchemas } from './create-remote-schemas';\n"],"mappings":";;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { createRemoteSchemas } from './create-remote-schemas';\n"],"mappings":";;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.GraphQlError = void 0;
7
-
8
7
  class GraphQlError {
9
8
  constructor(
10
9
  /**
@@ -18,9 +17,7 @@ class GraphQlError {
18
17
  this.code = code;
19
18
  this.message = message;
20
19
  }
21
-
22
20
  }
23
-
24
21
  exports.GraphQlError = GraphQlError;
25
22
 
26
23
  //# sourceMappingURL=graphql-error.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GraphQlError","constructor","code","message"],"sources":["graphql-error.ts"],"sourcesContent":["export class GraphQlError {\n constructor(\n /**\n * http status code of error\n */\n public readonly code: number,\n\n /**\n * error message of the error\n */\n public readonly message?: string\n ) {}\n}\n"],"mappings":";;;;;;;AAAO,MAAMA,YAAN,CAAmB;EACxBC,WAAW;EACT;AACJ;AACA;EACoBC,IAJP;EAMT;AACJ;AACA;EACoBC,OATP,EAUT;IAAA,KANgBD,IAMhB,GANgBA,IAMhB;IAAA,KADgBC,OAChB,GADgBA,OAChB;EAAE;;AAXoB"}
1
+ {"version":3,"names":["GraphQlError","constructor","code","message"],"sources":["graphql-error.ts"],"sourcesContent":["export class GraphQlError {\n constructor(\n /**\n * http status code of error\n */\n public readonly code: number,\n\n /**\n * error message of the error\n */\n public readonly message?: string\n ) {}\n}\n"],"mappings":";;;;;;AAAO,MAAMA,YAAY,CAAC;EACxBC,WAAW;EACT;AACJ;AACA;EACoBC,IAAY;EAE5B;AACJ;AACA;EACoBC,OAAgB,EAChC;IAAA,KANgBD,IAAY,GAAZA,IAAY;IAAA,KAKZC,OAAgB,GAAhBA,OAAgB;EAC/B;AACL;AAAC"}
@@ -1,32 +1,24 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.GraphQLProvider = GraphQLProvider;
9
-
10
8
  function _react() {
11
9
  const data = _interopRequireDefault(require("react"));
12
-
13
10
  _react = function () {
14
11
  return data;
15
12
  };
16
-
17
13
  return data;
18
14
  }
19
-
20
15
  function _client() {
21
16
  const data = require("@apollo/client");
22
-
23
17
  _client = function () {
24
18
  return data;
25
19
  };
26
-
27
20
  return data;
28
21
  }
29
-
30
22
  function GraphQLProvider({
31
23
  client,
32
24
  children
@@ -1 +1 @@
1
- {"version":3,"names":["GraphQLProvider","client","children"],"sources":["graphql-provider.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { ApolloProvider } from '@apollo/client';\nimport type { GraphQLClient } from '../graphql.ui.runtime';\n\nexport type GraphQLProviderProps = {\n client: GraphQLClient<any>;\n children: ReactNode;\n};\n\nexport function GraphQLProvider({ client, children }: GraphQLProviderProps) {\n return <ApolloProvider client={client}>{children}</ApolloProvider>;\n}\n"],"mappings":";;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAQO,SAASA,eAAT,CAAyB;EAAEC,MAAF;EAAUC;AAAV,CAAzB,EAAqE;EAC1E,oBAAO,+BAAC,wBAAD;IAAgB,MAAM,EAAED;EAAxB,GAAiCC,QAAjC,CAAP;AACD"}
1
+ {"version":3,"names":["GraphQLProvider","client","children"],"sources":["graphql-provider.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { ApolloProvider } from '@apollo/client';\nimport type { GraphQLClient } from '../graphql.ui.runtime';\n\nexport type GraphQLProviderProps = {\n client: GraphQLClient<any>;\n children: ReactNode;\n};\n\nexport function GraphQLProvider({ client, children }: GraphQLProviderProps) {\n return <ApolloProvider client={client}>{children}</ApolloProvider>;\n}\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAQO,SAASA,eAAe,CAAC;EAAEC,MAAM;EAAEC;AAA+B,CAAC,EAAE;EAC1E,oBAAO,+BAAC,wBAAc;IAAC,MAAM,EAAED;EAAO,GAAEC,QAAQ,CAAkB;AACpE"}
@@ -9,14 +9,11 @@ Object.defineProperty(exports, "GraphQLProvider", {
9
9
  return _graphqlProvider().GraphQLProvider;
10
10
  }
11
11
  });
12
-
13
12
  function _graphqlProvider() {
14
13
  const data = require("./graphql-provider");
15
-
16
14
  _graphqlProvider = function () {
17
15
  return data;
18
16
  };
19
-
20
17
  return data;
21
18
  }
22
19
 
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { GraphQLProvider } from './graphql-provider';\n"],"mappings":";;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA"}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { GraphQLProvider } from './graphql-provider';\n"],"mappings":";;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
@@ -4,23 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.GraphqlAspect = void 0;
7
-
8
7
  function _harmony() {
9
8
  const data = require("@teambit/harmony");
10
-
11
9
  _harmony = function () {
12
10
  return data;
13
11
  };
14
-
15
12
  return data;
16
13
  }
17
-
18
14
  const GraphqlAspect = _harmony().Aspect.create({
19
15
  id: 'teambit.harmony/graphql',
20
16
  dependencies: [],
21
17
  defaultConfig: {}
22
18
  });
23
-
24
19
  exports.GraphqlAspect = GraphqlAspect;
25
20
  var _default = GraphqlAspect;
26
21
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["GraphqlAspect","Aspect","create","id","dependencies","defaultConfig"],"sources":["graphql.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const GraphqlAspect = Aspect.create({\n id: 'teambit.harmony/graphql',\n dependencies: [],\n defaultConfig: {},\n});\n\nexport default GraphqlAspect;\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,aAAa,GAAGC,iBAAA,CAAOC,MAAP,CAAc;EACzCC,EAAE,EAAE,yBADqC;EAEzCC,YAAY,EAAE,EAF2B;EAGzCC,aAAa,EAAE;AAH0B,CAAd,CAAtB;;;eAMQL,a"}
1
+ {"version":3,"names":["GraphqlAspect","Aspect","create","id","dependencies","defaultConfig"],"sources":["graphql.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const GraphqlAspect = Aspect.create({\n id: 'teambit.harmony/graphql',\n dependencies: [],\n defaultConfig: {},\n});\n\nexport default GraphqlAspect;\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,aAAa,GAAGC,iBAAM,CAACC,MAAM,CAAC;EACzCC,EAAE,EAAE,yBAAyB;EAC7BC,YAAY,EAAE,EAAE;EAChBC,aAAa,EAAE,CAAC;AAClB,CAAC,CAAC;AAAC;AAAA,eAEYL,aAAa;AAAA"}
@@ -1,22 +1,17 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.Logo = void 0;
9
-
10
8
  function _react() {
11
9
  const data = _interopRequireDefault(require("react"));
12
-
13
10
  _react = function () {
14
11
  return data;
15
12
  };
16
-
17
13
  return data;
18
14
  }
19
-
20
15
  const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
21
16
  style: {
22
17
  height: '100%',
@@ -29,7 +24,6 @@ const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
29
24
  },
30
25
  src: "https://static.bit.dev/brands/logo-grphql.svg"
31
26
  }));
32
-
33
27
  exports.Logo = Logo;
34
28
 
35
29
  //# sourceMappingURL=graphql.composition.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["graphql.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/brands/logo-grphql.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAV;IAAkBC,OAAO,EAAE,MAA3B;IAAmCC,cAAc,EAAE;EAAnD;AAAZ,gBACE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAT,CAAZ;EAA2B,GAAG,EAAC;AAA/B,EADF,CADK"}
1
+ {"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["graphql.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/brands/logo-grphql.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAG,CAAE;EAAC,GAAG,EAAC;AAA+C,EAAG,CAEpF;AAAC"}