@trackunit/react-core-contexts 0.4.300 → 0.4.304
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 +11 -1
- package/index.esm.js +13 -3
- package/package.json +7 -7
- package/src/navigation/NavigationProviderIrisApp.d.ts +9 -0
package/index.cjs.js
CHANGED
|
@@ -30886,6 +30886,16 @@ const GlobalSelectionProviderIrisApp = ({ children }) => {
|
|
|
30886
30886
|
return jsxRuntime.jsx(reactCoreHooks.GlobalSelectionProvider, { value: GlobalSelectionContext, children: children });
|
|
30887
30887
|
};
|
|
30888
30888
|
|
|
30889
|
+
/**
|
|
30890
|
+
* This is a provider for the NavigationContext.
|
|
30891
|
+
*/
|
|
30892
|
+
const NavigationProviderIrisApp = ({ children }) => {
|
|
30893
|
+
const environment = React__namespace.useMemo(() => {
|
|
30894
|
+
return irisAppRuntimeCore.NavigationRuntime;
|
|
30895
|
+
}, []);
|
|
30896
|
+
return jsxRuntime.jsx(reactCoreHooks.NavigationContextProvider, { value: environment, children: children });
|
|
30897
|
+
};
|
|
30898
|
+
|
|
30889
30899
|
/**
|
|
30890
30900
|
* This is a provider for the IOemBrandingContext.
|
|
30891
30901
|
*/
|
|
@@ -31026,7 +31036,7 @@ const TrackunitProviders = ({ translations, children }) => {
|
|
|
31026
31036
|
i18nLibraryTranslation.registerTranslations(translations); // Register the apps translations if passed.
|
|
31027
31037
|
}
|
|
31028
31038
|
i18nLibraryTranslation.initializeTranslationsForApp(); // Initialize all registered translations
|
|
31029
|
-
return (jsxRuntime.jsx(EnvironmentProviderIrisApp, { children: jsxRuntime.jsx(TokenProviderIrisApp, { children: jsxRuntime.jsx(CurrentUserPreferenceProviderIrisApp, { children: jsxRuntime.jsx(CurrentUserProviderIrisApp, { children: jsxRuntime.jsx(UserSubscriptionProviderIrisApp, { children: jsxRuntime.jsx(AnalyticsProviderIrisApp, { children: jsxRuntime.jsx(GlobalSelectionProviderIrisApp, { children: jsxRuntime.jsx(OemBrandingContextProviderIrisApp, { children: jsxRuntime.jsx(AssetSortingProviderIrisApp, { children: jsxRuntime.jsx(ManagerApolloProvider, { children: jsxRuntime.jsx(ToastProviderIrisApp, { children: jsxRuntime.jsx(FilterBarProviderIrisApp, { children: jsxRuntime.jsx(React__namespace.Suspense, { fallback: jsxRuntime.jsx(reactComponents.Spinner, { centering: "centered" }), children: jsxRuntime.jsx(TrackunitRouterIrisApp, { children: children }) }) }) }) }) }) }) }) }) }) }) }) }) }));
|
|
31039
|
+
return (jsxRuntime.jsx(EnvironmentProviderIrisApp, { children: jsxRuntime.jsx(TokenProviderIrisApp, { children: jsxRuntime.jsx(CurrentUserPreferenceProviderIrisApp, { children: jsxRuntime.jsx(CurrentUserProviderIrisApp, { children: jsxRuntime.jsx(UserSubscriptionProviderIrisApp, { children: jsxRuntime.jsx(AnalyticsProviderIrisApp, { children: jsxRuntime.jsx(GlobalSelectionProviderIrisApp, { children: jsxRuntime.jsx(OemBrandingContextProviderIrisApp, { children: jsxRuntime.jsx(AssetSortingProviderIrisApp, { children: jsxRuntime.jsx(ManagerApolloProvider, { children: jsxRuntime.jsx(NavigationProviderIrisApp, { children: jsxRuntime.jsx(ToastProviderIrisApp, { children: jsxRuntime.jsx(FilterBarProviderIrisApp, { children: jsxRuntime.jsx(React__namespace.Suspense, { fallback: jsxRuntime.jsx(reactComponents.Spinner, { centering: "centered" }), children: jsxRuntime.jsx(TrackunitRouterIrisApp, { children: children }) }) }) }) }) }) }) }) }) }) }) }) }) }) }));
|
|
31030
31040
|
};
|
|
31031
31041
|
|
|
31032
31042
|
exports.ManagerApolloProvider = ManagerApolloProvider;
|
package/index.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { Source, visit as visit$1, BREAK, Kind, print, isSelectionNode, parse } from 'graphql';
|
|
3
|
-
import { useEnvironment, useCurrentUser, useToken, AnalyticsContextProvider, AssetSortingProvider, EnvironmentContextProvider, FilterBarProvider, GlobalSelectionProvider, OemBrandingContextProvider, ToastProvider, TokenProvider, useURLSynchronization, CurrentUserProvider, CurrentUserPreferenceProvider, UserSubscriptionProvider } from '@trackunit/react-core-hooks';
|
|
3
|
+
import { useEnvironment, useCurrentUser, useToken, AnalyticsContextProvider, AssetSortingProvider, EnvironmentContextProvider, FilterBarProvider, GlobalSelectionProvider, NavigationContextProvider, OemBrandingContextProvider, ToastProvider, TokenProvider, useURLSynchronization, CurrentUserProvider, CurrentUserPreferenceProvider, UserSubscriptionProvider } from '@trackunit/react-core-hooks';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useMemo, useEffect, useState } from 'react';
|
|
6
6
|
import { registerTranslations, initializeTranslationsForApp } from '@trackunit/i18n-library-translation';
|
|
7
7
|
import { Spinner } from '@trackunit/react-components';
|
|
8
|
-
import { AnalyticsContextRuntime, setupHostConnector, AssetSortingRuntime, EnvironmentRuntime, FilterBarRuntime, GlobalSelectionRuntime, OemBrandingContextRuntime, ToastRuntime, TokenRuntime, CurrentUserRuntime, CurrentUserPreferenceRuntime, UserSubscriptionRuntime } from '@trackunit/iris-app-runtime-core';
|
|
8
|
+
import { AnalyticsContextRuntime, setupHostConnector, AssetSortingRuntime, EnvironmentRuntime, FilterBarRuntime, GlobalSelectionRuntime, NavigationRuntime, OemBrandingContextRuntime, ToastRuntime, TokenRuntime, CurrentUserRuntime, CurrentUserPreferenceRuntime, UserSubscriptionRuntime } from '@trackunit/iris-app-runtime-core';
|
|
9
9
|
import { BrowserRouter } from 'react-router-dom';
|
|
10
10
|
|
|
11
11
|
/******************************************************************************
|
|
@@ -30863,6 +30863,16 @@ const GlobalSelectionProviderIrisApp = ({ children }) => {
|
|
|
30863
30863
|
return jsx(GlobalSelectionProvider, { value: GlobalSelectionContext, children: children });
|
|
30864
30864
|
};
|
|
30865
30865
|
|
|
30866
|
+
/**
|
|
30867
|
+
* This is a provider for the NavigationContext.
|
|
30868
|
+
*/
|
|
30869
|
+
const NavigationProviderIrisApp = ({ children }) => {
|
|
30870
|
+
const environment = React.useMemo(() => {
|
|
30871
|
+
return NavigationRuntime;
|
|
30872
|
+
}, []);
|
|
30873
|
+
return jsx(NavigationContextProvider, { value: environment, children: children });
|
|
30874
|
+
};
|
|
30875
|
+
|
|
30866
30876
|
/**
|
|
30867
30877
|
* This is a provider for the IOemBrandingContext.
|
|
30868
30878
|
*/
|
|
@@ -31003,7 +31013,7 @@ const TrackunitProviders = ({ translations, children }) => {
|
|
|
31003
31013
|
registerTranslations(translations); // Register the apps translations if passed.
|
|
31004
31014
|
}
|
|
31005
31015
|
initializeTranslationsForApp(); // Initialize all registered translations
|
|
31006
|
-
return (jsx(EnvironmentProviderIrisApp, { children: jsx(TokenProviderIrisApp, { children: jsx(CurrentUserPreferenceProviderIrisApp, { children: jsx(CurrentUserProviderIrisApp, { children: jsx(UserSubscriptionProviderIrisApp, { children: jsx(AnalyticsProviderIrisApp, { children: jsx(GlobalSelectionProviderIrisApp, { children: jsx(OemBrandingContextProviderIrisApp, { children: jsx(AssetSortingProviderIrisApp, { children: jsx(ManagerApolloProvider, { children: jsx(ToastProviderIrisApp, { children: jsx(FilterBarProviderIrisApp, { children: jsx(React.Suspense, { fallback: jsx(Spinner, { centering: "centered" }), children: jsx(TrackunitRouterIrisApp, { children: children }) }) }) }) }) }) }) }) }) }) }) }) }) }));
|
|
31016
|
+
return (jsx(EnvironmentProviderIrisApp, { children: jsx(TokenProviderIrisApp, { children: jsx(CurrentUserPreferenceProviderIrisApp, { children: jsx(CurrentUserProviderIrisApp, { children: jsx(UserSubscriptionProviderIrisApp, { children: jsx(AnalyticsProviderIrisApp, { children: jsx(GlobalSelectionProviderIrisApp, { children: jsx(OemBrandingContextProviderIrisApp, { children: jsx(AssetSortingProviderIrisApp, { children: jsx(ManagerApolloProvider, { children: jsx(NavigationProviderIrisApp, { children: jsx(ToastProviderIrisApp, { children: jsx(FilterBarProviderIrisApp, { children: jsx(React.Suspense, { fallback: jsx(Spinner, { centering: "centered" }), children: jsx(TrackunitRouterIrisApp, { children: children }) }) }) }) }) }) }) }) }) }) }) }) }) }) }));
|
|
31007
31017
|
};
|
|
31008
31018
|
|
|
31009
31019
|
export { ManagerApolloProvider, ToastProviderIrisApp, TrackunitProviders };
|
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.304",
|
|
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.90",
|
|
15
|
+
"@trackunit/iris-app-runtime-core": "0.3.92",
|
|
16
|
+
"@trackunit/react-components": "0.1.193",
|
|
17
|
+
"@trackunit/react-core-contexts-api": "0.2.69",
|
|
18
|
+
"@trackunit/react-core-contexts-test": "0.1.126",
|
|
19
|
+
"@trackunit/react-core-hooks": "0.2.111",
|
|
20
20
|
"apollo-upload-client": "17.0.0",
|
|
21
21
|
"react": "18.2.0",
|
|
22
22
|
"react-router-dom": "6.11.2"
|