@trackunit/react-core-contexts 0.4.68 → 0.4.70-alpha-307439490d.0

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 CHANGED
@@ -37,7 +37,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
37
37
  });
38
38
  }
39
39
 
40
- const ManagerApolloProvider = ({ children }) => {
40
+ const ManagerApolloProvider = ({ children, isIrisApp }) => {
41
41
  const { publicUrl, graphqlLegacyUrl, graphqlManagerUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, isDev, tracingHeaders, } = useEnvironment();
42
42
  const { token } = useToken();
43
43
  const legacyGraphQLLink = createUploadLink({
@@ -116,7 +116,7 @@ const ManagerApolloProvider = ({ children }) => {
116
116
  errorLink,
117
117
  authLink,
118
118
  split(operation => operation.getContext().clientName === "imageupload", imageUploadGraphQLLink),
119
- split(operation => operation.getContext().clientName === "manager", managerGraphQLLink, split(operation => operation.getContext().clientName === "report", reportGraphQLLink, legacyGraphQLLink)),
119
+ split(operation => operation.getContext().clientName === "manager", managerGraphQLLink, split(operation => operation.getContext().clientName === "report", reportGraphQLLink, isIrisApp ? managerGraphQLLink : legacyGraphQLLink)),
120
120
  ]),
121
121
  });
122
122
  return jsx(ApolloProvider, Object.assign({ client: client }, { children: children }));
@@ -249,7 +249,7 @@ const UserSubscriptionProvider = ({ children }) => {
249
249
  return jsx(UserSubscriptionProvider$1, Object.assign({ value: subscription }, { children: children }));
250
250
  };
251
251
 
252
- const TrackunitDataProviders = ({ children }) => (jsx(TileEnvironmentProvider, { children: jsx(TileTokenProvider, { children: jsx(TileCurrentUserProvider, { children: jsx(UserSubscriptionProvider, { children: jsx(TileGlobalSelectionProvider, { children: jsx(TileAssetSortingProvider, { children: jsx(ManagerApolloProvider, { children: children }) }) }) }) }) }) }));
252
+ const TrackunitDataProviders = ({ children }) => (jsx(TileEnvironmentProvider, { children: jsx(TileTokenProvider, { children: jsx(TileCurrentUserProvider, { children: jsx(UserSubscriptionProvider, { children: jsx(TileGlobalSelectionProvider, { children: jsx(TileAssetSortingProvider, { children: jsx(ManagerApolloProvider, Object.assign({ isIrisApp: true }, { children: children })) }) }) }) }) }) }));
253
253
 
254
254
  const HostNavigator = ({ children }) => {
255
255
  useURLSynchronization();
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "0.4.68",
3
+ "version": "0.4.70-alpha-307439490d.0",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
7
7
  "graphql": "^15.8.0",
8
- "@trackunit/iris-app-runtime-core": "0.3.14",
9
- "@trackunit/react-core-contexts-api": "0.2.13",
10
- "@trackunit/react-core-contexts-test": "0.1.24",
11
- "@trackunit/react-core-hooks": "0.2.23",
8
+ "@trackunit/iris-app-runtime-core": "0.3.15-alpha-307439490d.0",
9
+ "@trackunit/react-core-contexts-api": "0.2.14-alpha-307439490d.0",
10
+ "@trackunit/react-core-contexts-test": "0.1.25-alpha-307439490d.0",
11
+ "@trackunit/react-core-hooks": "0.2.24-alpha-307439490d.0",
12
12
  "react": "18.2.0",
13
13
  "@apollo/client": "3.6.9",
14
14
  "@sentry/browser": "7.24.2",
15
15
  "apollo-upload-client": "14.1.3",
16
- "@trackunit/i18n-library-translation": "0.0.26",
17
- "@trackunit/react-components": "0.1.45",
16
+ "@trackunit/i18n-library-translation": "0.0.27-alpha-307439490d.0",
17
+ "@trackunit/react-components": "0.1.47-alpha-307439490d.0",
18
18
  "react-router-dom": "6.4.5"
19
19
  },
20
20
  "module": "./index.js",
@@ -1,6 +1,7 @@
1
1
  import * as React from "react";
2
2
  interface IProps {
3
3
  children: React.ReactNode;
4
+ isIrisApp?: boolean;
4
5
  }
5
- export declare const ManagerApolloProvider: ({ children }: IProps) => JSX.Element;
6
+ export declare const ManagerApolloProvider: ({ children, isIrisApp }: IProps) => JSX.Element;
6
7
  export {};