@trackunit/react-core-contexts 1.25.20 → 1.25.22
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 +9 -9
- package/index.esm.js +9 -9
- package/package.json +8 -8
package/index.cjs.js
CHANGED
|
@@ -374,7 +374,7 @@ const EnvironmentProviderIrisApp = ({ children }) => {
|
|
|
374
374
|
console.error("Could not load environment!");
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
|
-
updateEnv();
|
|
377
|
+
void updateEnv();
|
|
378
378
|
}, []);
|
|
379
379
|
if (!environment) {
|
|
380
380
|
return null;
|
|
@@ -424,17 +424,17 @@ const FilterBarProviderIrisApp = ({ children }) => {
|
|
|
424
424
|
const [customersFilterBarValues, setCustomersFilterBarValues] = react.useState(undefined);
|
|
425
425
|
const [sitesFilterBarValues, setSitesFilterBarValues] = react.useState(undefined);
|
|
426
426
|
react.useEffect(() => {
|
|
427
|
-
irisAppRuntimeCore.AssetsFilterBarRuntime.getAssetsFilterBarValues()
|
|
427
|
+
void irisAppRuntimeCore.AssetsFilterBarRuntime.getAssetsFilterBarValues()
|
|
428
428
|
.catch(() => {
|
|
429
429
|
return {};
|
|
430
430
|
})
|
|
431
431
|
.then(setAssetsFilterBarValues);
|
|
432
|
-
irisAppRuntimeCore.CustomersFilterBarRuntime.getCustomersFilterBarValues()
|
|
432
|
+
void irisAppRuntimeCore.CustomersFilterBarRuntime.getCustomersFilterBarValues()
|
|
433
433
|
.catch(() => {
|
|
434
434
|
return {};
|
|
435
435
|
})
|
|
436
436
|
.then(setCustomersFilterBarValues);
|
|
437
|
-
irisAppRuntimeCore.SitesFilterBarRuntime.getSitesFilterBarValues()
|
|
437
|
+
void irisAppRuntimeCore.SitesFilterBarRuntime.getSitesFilterBarValues()
|
|
438
438
|
.catch(() => {
|
|
439
439
|
return {};
|
|
440
440
|
})
|
|
@@ -520,7 +520,7 @@ const OemBrandingContextProviderIrisApp = ({ children }) => {
|
|
|
520
520
|
*/
|
|
521
521
|
const ThemeCssProviderIrisApp = ({ children }) => {
|
|
522
522
|
react.useEffect(() => {
|
|
523
|
-
irisAppRuntimeCore.ThemeCssRuntime.getThemeCssProperties().then(css => {
|
|
523
|
+
void irisAppRuntimeCore.ThemeCssRuntime.getThemeCssProperties().then(css => {
|
|
524
524
|
if (css) {
|
|
525
525
|
Object.entries(css).forEach(([key, value]) => {
|
|
526
526
|
document.documentElement.style.setProperty(key, value);
|
|
@@ -537,7 +537,7 @@ const ThemeCssProviderIrisApp = ({ children }) => {
|
|
|
537
537
|
const TimeRangeProviderIrisApp = ({ children }) => {
|
|
538
538
|
const [timeRangeContext, setTimeRangeContext] = react.useState();
|
|
539
539
|
react.useEffect(() => {
|
|
540
|
-
irisAppRuntimeCore.TimeRangeRuntime.getTimeRange()
|
|
540
|
+
void irisAppRuntimeCore.TimeRangeRuntime.getTimeRange()
|
|
541
541
|
.catch(() => null)
|
|
542
542
|
.then(result => {
|
|
543
543
|
setTimeRangeContext(prev => ({
|
|
@@ -673,10 +673,10 @@ const CurrentUserPreferenceProviderIrisApp = ({ children }) => {
|
|
|
673
673
|
dispatch({ type: "languageResolved", language: lang });
|
|
674
674
|
})
|
|
675
675
|
.catch(() => dispatch({ type: "error" }));
|
|
676
|
-
irisAppRuntimeCore.CurrentUserPreferenceRuntime.getCurrentUserSystemOfMeasurement()
|
|
676
|
+
void irisAppRuntimeCore.CurrentUserPreferenceRuntime.getCurrentUserSystemOfMeasurement()
|
|
677
677
|
.catch(() => undefined)
|
|
678
678
|
.then(systemOfMeasurement => dispatch({ type: "systemOfMeasurementResolved", systemOfMeasurement }));
|
|
679
|
-
irisAppRuntimeCore.CurrentUserPreferenceRuntime.getCurrentUserTimeZonePreference()
|
|
679
|
+
void irisAppRuntimeCore.CurrentUserPreferenceRuntime.getCurrentUserTimeZonePreference()
|
|
680
680
|
.catch(() => undefined)
|
|
681
681
|
.then(timeZonePreference => dispatch({ type: "timeZonePreferenceResolved", timeZonePreference }));
|
|
682
682
|
}, []);
|
|
@@ -699,7 +699,7 @@ const CurrentUserPreferenceProviderIrisApp = ({ children }) => {
|
|
|
699
699
|
const UserSubscriptionProviderIrisApp = ({ children }) => {
|
|
700
700
|
const [subscription, setSubscription] = react.useState(null);
|
|
701
701
|
react.useEffect(() => {
|
|
702
|
-
irisAppRuntimeCore.UserSubscriptionRuntime.getUserSubscriptionContext()
|
|
702
|
+
void irisAppRuntimeCore.UserSubscriptionRuntime.getUserSubscriptionContext()
|
|
703
703
|
.catch(() => null)
|
|
704
704
|
.then(setSubscription);
|
|
705
705
|
}, []);
|
package/index.esm.js
CHANGED
|
@@ -372,7 +372,7 @@ const EnvironmentProviderIrisApp = ({ children }) => {
|
|
|
372
372
|
console.error("Could not load environment!");
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
|
-
updateEnv();
|
|
375
|
+
void updateEnv();
|
|
376
376
|
}, []);
|
|
377
377
|
if (!environment) {
|
|
378
378
|
return null;
|
|
@@ -422,17 +422,17 @@ const FilterBarProviderIrisApp = ({ children }) => {
|
|
|
422
422
|
const [customersFilterBarValues, setCustomersFilterBarValues] = useState(undefined);
|
|
423
423
|
const [sitesFilterBarValues, setSitesFilterBarValues] = useState(undefined);
|
|
424
424
|
useEffect(() => {
|
|
425
|
-
AssetsFilterBarRuntime.getAssetsFilterBarValues()
|
|
425
|
+
void AssetsFilterBarRuntime.getAssetsFilterBarValues()
|
|
426
426
|
.catch(() => {
|
|
427
427
|
return {};
|
|
428
428
|
})
|
|
429
429
|
.then(setAssetsFilterBarValues);
|
|
430
|
-
CustomersFilterBarRuntime.getCustomersFilterBarValues()
|
|
430
|
+
void CustomersFilterBarRuntime.getCustomersFilterBarValues()
|
|
431
431
|
.catch(() => {
|
|
432
432
|
return {};
|
|
433
433
|
})
|
|
434
434
|
.then(setCustomersFilterBarValues);
|
|
435
|
-
SitesFilterBarRuntime.getSitesFilterBarValues()
|
|
435
|
+
void SitesFilterBarRuntime.getSitesFilterBarValues()
|
|
436
436
|
.catch(() => {
|
|
437
437
|
return {};
|
|
438
438
|
})
|
|
@@ -518,7 +518,7 @@ const OemBrandingContextProviderIrisApp = ({ children }) => {
|
|
|
518
518
|
*/
|
|
519
519
|
const ThemeCssProviderIrisApp = ({ children }) => {
|
|
520
520
|
useEffect(() => {
|
|
521
|
-
ThemeCssRuntime.getThemeCssProperties().then(css => {
|
|
521
|
+
void ThemeCssRuntime.getThemeCssProperties().then(css => {
|
|
522
522
|
if (css) {
|
|
523
523
|
Object.entries(css).forEach(([key, value]) => {
|
|
524
524
|
document.documentElement.style.setProperty(key, value);
|
|
@@ -535,7 +535,7 @@ const ThemeCssProviderIrisApp = ({ children }) => {
|
|
|
535
535
|
const TimeRangeProviderIrisApp = ({ children }) => {
|
|
536
536
|
const [timeRangeContext, setTimeRangeContext] = useState();
|
|
537
537
|
useEffect(() => {
|
|
538
|
-
TimeRangeRuntime.getTimeRange()
|
|
538
|
+
void TimeRangeRuntime.getTimeRange()
|
|
539
539
|
.catch(() => null)
|
|
540
540
|
.then(result => {
|
|
541
541
|
setTimeRangeContext(prev => ({
|
|
@@ -671,10 +671,10 @@ const CurrentUserPreferenceProviderIrisApp = ({ children }) => {
|
|
|
671
671
|
dispatch({ type: "languageResolved", language: lang });
|
|
672
672
|
})
|
|
673
673
|
.catch(() => dispatch({ type: "error" }));
|
|
674
|
-
CurrentUserPreferenceRuntime.getCurrentUserSystemOfMeasurement()
|
|
674
|
+
void CurrentUserPreferenceRuntime.getCurrentUserSystemOfMeasurement()
|
|
675
675
|
.catch(() => undefined)
|
|
676
676
|
.then(systemOfMeasurement => dispatch({ type: "systemOfMeasurementResolved", systemOfMeasurement }));
|
|
677
|
-
CurrentUserPreferenceRuntime.getCurrentUserTimeZonePreference()
|
|
677
|
+
void CurrentUserPreferenceRuntime.getCurrentUserTimeZonePreference()
|
|
678
678
|
.catch(() => undefined)
|
|
679
679
|
.then(timeZonePreference => dispatch({ type: "timeZonePreferenceResolved", timeZonePreference }));
|
|
680
680
|
}, []);
|
|
@@ -697,7 +697,7 @@ const CurrentUserPreferenceProviderIrisApp = ({ children }) => {
|
|
|
697
697
|
const UserSubscriptionProviderIrisApp = ({ children }) => {
|
|
698
698
|
const [subscription, setSubscription] = useState(null);
|
|
699
699
|
useEffect(() => {
|
|
700
|
-
UserSubscriptionRuntime.getUserSubscriptionContext()
|
|
700
|
+
void UserSubscriptionRuntime.getUserSubscriptionContext()
|
|
701
701
|
.catch(() => null)
|
|
702
702
|
.then(setSubscription);
|
|
703
703
|
}, []);
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.22",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/iris-app-api": "1.17.
|
|
11
|
-
"@trackunit/iris-app-runtime-core-api": "1.14.
|
|
12
|
-
"@trackunit/react-core-hooks": "1.15.
|
|
13
|
-
"@trackunit/i18n-library-translation": "1.18.
|
|
14
|
-
"@trackunit/react-components": "1.22.
|
|
15
|
-
"@trackunit/iris-app-runtime-core": "1.15.
|
|
10
|
+
"@trackunit/iris-app-api": "1.17.20",
|
|
11
|
+
"@trackunit/iris-app-runtime-core-api": "1.14.30",
|
|
12
|
+
"@trackunit/react-core-hooks": "1.15.31",
|
|
13
|
+
"@trackunit/i18n-library-translation": "1.18.22",
|
|
14
|
+
"@trackunit/react-components": "1.22.22",
|
|
15
|
+
"@trackunit/iris-app-runtime-core": "1.15.30",
|
|
16
16
|
"graphql-sse": "^2.5.4",
|
|
17
|
-
"@trackunit/react-core-contexts-api": "1.15.
|
|
17
|
+
"@trackunit/react-core-contexts-api": "1.15.30"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@apollo/client": "^3.13.8",
|