@trackunit/react-core-contexts 0.4.292 → 0.4.294
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.cjs.js +7 -3
- package/index.esm.js +7 -3
- package/package.json +7 -7
package/index.cjs.js
CHANGED
|
@@ -30594,7 +30594,7 @@ var createUploadLink = function createUploadLink({
|
|
|
30594
30594
|
|
|
30595
30595
|
var createUploadLink$1 = createUploadLink;
|
|
30596
30596
|
|
|
30597
|
-
const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, isDev, tracingHeaders, firstToken, }) => {
|
|
30597
|
+
const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManagerImageUploadUrl, graphqlInternalUrl, graphqlReportUrl, isDev, tracingHeaders, firstToken, }) => {
|
|
30598
30598
|
let token = firstToken;
|
|
30599
30599
|
const managerGraphQLLink = createUploadLink$1({
|
|
30600
30600
|
uri: request => graphqlManagerUrl + "/" + request.operationName,
|
|
@@ -30605,6 +30605,9 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
|
|
|
30605
30605
|
const imageUploadGraphQLLink = createUploadLink$1({
|
|
30606
30606
|
uri: request => graphqlManagerImageUploadUrl + "/" + request.operationName,
|
|
30607
30607
|
});
|
|
30608
|
+
const internalGraphQLLink = createUploadLink$1({
|
|
30609
|
+
uri: request => graphqlInternalUrl + "/" + request.operationName,
|
|
30610
|
+
});
|
|
30608
30611
|
const reportGraphQLLink = createUploadLink$1({
|
|
30609
30612
|
uri: request => graphqlReportUrl + "/" + request.operationName,
|
|
30610
30613
|
});
|
|
@@ -30696,7 +30699,7 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
|
|
|
30696
30699
|
errorLink,
|
|
30697
30700
|
authLink,
|
|
30698
30701
|
split(operation => operation.getContext().clientName === "imageupload", imageUploadGraphQLLink),
|
|
30699
|
-
split(operation => operation.getContext().clientName === "manager", managerGraphQLLink, split(operation => operation.getContext().clientName === "report", reportGraphQLLink, publicGraphQLLink)),
|
|
30702
|
+
split(operation => operation.getContext().clientName === "manager", managerGraphQLLink, split(operation => operation.getContext().clientName === "report", reportGraphQLLink, split(operation => operation.getContext().clientName === "internal", internalGraphQLLink, publicGraphQLLink))),
|
|
30700
30703
|
]),
|
|
30701
30704
|
}),
|
|
30702
30705
|
setToken: (newToken) => {
|
|
@@ -30709,7 +30712,7 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
|
|
|
30709
30712
|
};
|
|
30710
30713
|
const useApolloClient = () => {
|
|
30711
30714
|
var _a;
|
|
30712
|
-
const { graphqlManagerUrl, graphqlPublicUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, isDev, tracingHeaders } = reactCoreHooks.useEnvironment();
|
|
30715
|
+
const { graphqlManagerUrl, graphqlPublicUrl, graphqlInternalUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, isDev, tracingHeaders, } = reactCoreHooks.useEnvironment();
|
|
30713
30716
|
const { isAssuming } = reactCoreHooks.useCurrentUser();
|
|
30714
30717
|
const { token } = reactCoreHooks.useToken();
|
|
30715
30718
|
const isAssumingRef = React__namespace.useRef(null);
|
|
@@ -30726,6 +30729,7 @@ const useApolloClient = () => {
|
|
|
30726
30729
|
graphqlManagerUrl,
|
|
30727
30730
|
graphqlPublicUrl,
|
|
30728
30731
|
graphqlManagerImageUploadUrl,
|
|
30732
|
+
graphqlInternalUrl,
|
|
30729
30733
|
graphqlReportUrl,
|
|
30730
30734
|
isDev,
|
|
30731
30735
|
tracingHeaders,
|
package/index.esm.js
CHANGED
|
@@ -30571,7 +30571,7 @@ var createUploadLink = function createUploadLink({
|
|
|
30571
30571
|
|
|
30572
30572
|
var createUploadLink$1 = createUploadLink;
|
|
30573
30573
|
|
|
30574
|
-
const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, isDev, tracingHeaders, firstToken, }) => {
|
|
30574
|
+
const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManagerImageUploadUrl, graphqlInternalUrl, graphqlReportUrl, isDev, tracingHeaders, firstToken, }) => {
|
|
30575
30575
|
let token = firstToken;
|
|
30576
30576
|
const managerGraphQLLink = createUploadLink$1({
|
|
30577
30577
|
uri: request => graphqlManagerUrl + "/" + request.operationName,
|
|
@@ -30582,6 +30582,9 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
|
|
|
30582
30582
|
const imageUploadGraphQLLink = createUploadLink$1({
|
|
30583
30583
|
uri: request => graphqlManagerImageUploadUrl + "/" + request.operationName,
|
|
30584
30584
|
});
|
|
30585
|
+
const internalGraphQLLink = createUploadLink$1({
|
|
30586
|
+
uri: request => graphqlInternalUrl + "/" + request.operationName,
|
|
30587
|
+
});
|
|
30585
30588
|
const reportGraphQLLink = createUploadLink$1({
|
|
30586
30589
|
uri: request => graphqlReportUrl + "/" + request.operationName,
|
|
30587
30590
|
});
|
|
@@ -30673,7 +30676,7 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
|
|
|
30673
30676
|
errorLink,
|
|
30674
30677
|
authLink,
|
|
30675
30678
|
split(operation => operation.getContext().clientName === "imageupload", imageUploadGraphQLLink),
|
|
30676
|
-
split(operation => operation.getContext().clientName === "manager", managerGraphQLLink, split(operation => operation.getContext().clientName === "report", reportGraphQLLink, publicGraphQLLink)),
|
|
30679
|
+
split(operation => operation.getContext().clientName === "manager", managerGraphQLLink, split(operation => operation.getContext().clientName === "report", reportGraphQLLink, split(operation => operation.getContext().clientName === "internal", internalGraphQLLink, publicGraphQLLink))),
|
|
30677
30680
|
]),
|
|
30678
30681
|
}),
|
|
30679
30682
|
setToken: (newToken) => {
|
|
@@ -30686,7 +30689,7 @@ const createApolloClient = ({ graphqlManagerUrl, graphqlPublicUrl, graphqlManage
|
|
|
30686
30689
|
};
|
|
30687
30690
|
const useApolloClient = () => {
|
|
30688
30691
|
var _a;
|
|
30689
|
-
const { graphqlManagerUrl, graphqlPublicUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, isDev, tracingHeaders } = useEnvironment();
|
|
30692
|
+
const { graphqlManagerUrl, graphqlPublicUrl, graphqlInternalUrl, graphqlManagerImageUploadUrl, graphqlReportUrl, isDev, tracingHeaders, } = useEnvironment();
|
|
30690
30693
|
const { isAssuming } = useCurrentUser();
|
|
30691
30694
|
const { token } = useToken();
|
|
30692
30695
|
const isAssumingRef = React.useRef(null);
|
|
@@ -30703,6 +30706,7 @@ const useApolloClient = () => {
|
|
|
30703
30706
|
graphqlManagerUrl,
|
|
30704
30707
|
graphqlPublicUrl,
|
|
30705
30708
|
graphqlManagerImageUploadUrl,
|
|
30709
|
+
graphqlInternalUrl,
|
|
30706
30710
|
graphqlReportUrl,
|
|
30707
30711
|
isDev,
|
|
30708
30712
|
tracingHeaders,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.294",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"@apollo/client": "3.7.10",
|
|
12
12
|
"@js-temporal/polyfill": "0.4.3",
|
|
13
13
|
"@sentry/browser": "7.57.0",
|
|
14
|
-
"@trackunit/i18n-library-translation": "0.0.
|
|
15
|
-
"@trackunit/iris-app-runtime-core": "0.3.
|
|
16
|
-
"@trackunit/react-components": "0.1.
|
|
17
|
-
"@trackunit/react-core-contexts-api": "0.2.
|
|
18
|
-
"@trackunit/react-core-contexts-test": "0.1.
|
|
19
|
-
"@trackunit/react-core-hooks": "0.2.
|
|
14
|
+
"@trackunit/i18n-library-translation": "0.0.89",
|
|
15
|
+
"@trackunit/iris-app-runtime-core": "0.3.89",
|
|
16
|
+
"@trackunit/react-components": "0.1.185",
|
|
17
|
+
"@trackunit/react-core-contexts-api": "0.2.66",
|
|
18
|
+
"@trackunit/react-core-contexts-test": "0.1.123",
|
|
19
|
+
"@trackunit/react-core-hooks": "0.2.108",
|
|
20
20
|
"apollo-upload-client": "17.0.0",
|
|
21
21
|
"react": "18.2.0",
|
|
22
22
|
"react-router-dom": "6.11.2"
|