@trackunit/react-core-contexts 0.3.12 → 0.3.14

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.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -2625,11 +2625,11 @@ const HostNavigator = ({
2625
2625
  const TrackunitRouter = ({
2626
2626
  children
2627
2627
  }) => {
2628
- const {
2629
- publicUrl
2630
- } = useEnvironment();
2628
+ var _a;
2629
+
2630
+ useEnvironment();
2631
2631
  return jsx(BrowserRouter, Object.assign({
2632
- basename: `${publicUrl}${global.module}`
2632
+ basename: `${((_a = document.getElementById("baseHref")) === null || _a === void 0 ? void 0 : _a.getAttribute("href")) || "<missing baseHref>"}${global.module}`
2633
2633
  }, {
2634
2634
  children: jsx(HostNavigator, {
2635
2635
  children: children
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
@@ -13,7 +13,7 @@
13
13
  "@apollo/client": "3.6.9",
14
14
  "@sentry/browser": "^7.15.0",
15
15
  "apollo-upload-client": "^14.1.3",
16
- "@trackunit/i18n-library-translation": "0.0.9",
16
+ "@trackunit/i18n-library-translation": "0.0.10",
17
17
  "@trackunit/react-components": "0.0.194",
18
18
  "react-router-dom": "6.4.1"
19
19
  },