@trackunit/react-core-contexts 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -1
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -1848,6 +1848,7 @@ const ManagerApolloProvider = ({
|
|
|
1848
1848
|
publicUrl,
|
|
1849
1849
|
graphqlLegacyUrl,
|
|
1850
1850
|
graphqlManagerUrl,
|
|
1851
|
+
graphqlManagerImageUploadUrl,
|
|
1851
1852
|
graphqlReportUrl,
|
|
1852
1853
|
graphqlSimulatorUrl,
|
|
1853
1854
|
isDev,
|
|
@@ -1862,6 +1863,9 @@ const ManagerApolloProvider = ({
|
|
|
1862
1863
|
const managerGraphQLLink = createUploadLink({
|
|
1863
1864
|
uri: request => graphqlManagerUrl + "/" + request.operationName
|
|
1864
1865
|
});
|
|
1866
|
+
const imageUploadGraphQLLink = createUploadLink({
|
|
1867
|
+
uri: request => graphqlManagerImageUploadUrl + "/" + request.operationName
|
|
1868
|
+
});
|
|
1865
1869
|
const reportGraphQLLink = createUploadLink({
|
|
1866
1870
|
uri: request => graphqlReportUrl + "/" + request.operationName
|
|
1867
1871
|
});
|
|
@@ -1944,7 +1948,7 @@ const ManagerApolloProvider = ({
|
|
|
1944
1948
|
connectToDevTools: isDev,
|
|
1945
1949
|
cache: new InMemoryCache(),
|
|
1946
1950
|
defaultOptions,
|
|
1947
|
-
link: from([errorLink, authLink, split$1(operation => operation.getContext().clientName === "simulator", simulatorGraphQLLink), split$1(operation => operation.getContext().clientName === "manager", managerGraphQLLink, split$1(operation => operation.getContext().clientName === "report", reportGraphQLLink, legacyGraphQLLink))])
|
|
1951
|
+
link: from([errorLink, authLink, split$1(operation => operation.getContext().clientName === "imageupload", imageUploadGraphQLLink), split$1(operation => operation.getContext().clientName === "simulator", simulatorGraphQLLink), split$1(operation => operation.getContext().clientName === "manager", managerGraphQLLink, split$1(operation => operation.getContext().clientName === "report", reportGraphQLLink, legacyGraphQLLink))])
|
|
1948
1952
|
});
|
|
1949
1953
|
return jsx(ApolloProvider, Object.assign({
|
|
1950
1954
|
client: client
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"graphql": "^15.8.0",
|
|
8
|
-
"@trackunit/iris-app-runtime-core": "0.0.
|
|
9
|
-
"@trackunit/react-core-contexts-api": "0.0.
|
|
10
|
-
"@trackunit/react-core-hooks": "0.0.
|
|
8
|
+
"@trackunit/iris-app-runtime-core": "0.0.54",
|
|
9
|
+
"@trackunit/react-core-contexts-api": "0.0.50",
|
|
10
|
+
"@trackunit/react-core-hooks": "0.0.53",
|
|
11
11
|
"react": "17.0.1",
|
|
12
|
-
"@trackunit/react-core-contexts-test": "0.0.
|
|
12
|
+
"@trackunit/react-core-contexts-test": "0.0.23",
|
|
13
13
|
"@apollo/client": "3.6.9",
|
|
14
14
|
"@sentry/browser": "^6.19.4",
|
|
15
15
|
"apollo-upload-client": "^14.1.3",
|