@trackunit/react-core-contexts 2.1.5-alpha-ecf53e535f3.0 → 2.1.5

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 CHANGED
@@ -813,6 +813,8 @@ const preferenceReducer = (state, action) => {
813
813
  return { ...state, systemOfMeasurement: action.systemOfMeasurement };
814
814
  case "timeZonePreferenceResolved":
815
815
  return { ...state, timeZonePreference: action.timeZonePreference };
816
+ case "customTimezoneResolved":
817
+ return { ...state, customTimezone: action.customTimezone };
816
818
  case "error":
817
819
  return { ...state, error: true };
818
820
  default:
@@ -823,6 +825,7 @@ const INITIAL_STATE = {
823
825
  language: null,
824
826
  systemOfMeasurement: undefined,
825
827
  timeZonePreference: undefined,
828
+ customTimezone: undefined,
826
829
  error: false,
827
830
  };
828
831
  /**
@@ -846,6 +849,9 @@ const CurrentUserPreferenceProviderIrisApp = ({ children }) => {
846
849
  void irisAppRuntimeCore.CurrentUserPreferenceRuntime.getCurrentUserTimeZonePreference()
847
850
  .catch(() => undefined)
848
851
  .then(timeZonePreference => dispatch({ type: "timeZonePreferenceResolved", timeZonePreference }));
852
+ void irisAppRuntimeCore.CurrentUserPreferenceRuntime.getCurrentUserCustomTimezone()
853
+ .catch(() => undefined)
854
+ .then(customTimezone => dispatch({ type: "customTimezoneResolved", customTimezone }));
849
855
  }, []);
850
856
  if (state.error) {
851
857
  throw new Error("Language context is invalid");
@@ -857,6 +863,7 @@ const CurrentUserPreferenceProviderIrisApp = ({ children }) => {
857
863
  language: state.language,
858
864
  systemOfMeasurement: state.systemOfMeasurement,
859
865
  timeZonePreference: state.timeZonePreference,
866
+ customTimezone: state.customTimezone,
860
867
  }, children: children }));
861
868
  };
862
869
 
package/index.esm.js CHANGED
@@ -811,6 +811,8 @@ const preferenceReducer = (state, action) => {
811
811
  return { ...state, systemOfMeasurement: action.systemOfMeasurement };
812
812
  case "timeZonePreferenceResolved":
813
813
  return { ...state, timeZonePreference: action.timeZonePreference };
814
+ case "customTimezoneResolved":
815
+ return { ...state, customTimezone: action.customTimezone };
814
816
  case "error":
815
817
  return { ...state, error: true };
816
818
  default:
@@ -821,6 +823,7 @@ const INITIAL_STATE = {
821
823
  language: null,
822
824
  systemOfMeasurement: undefined,
823
825
  timeZonePreference: undefined,
826
+ customTimezone: undefined,
824
827
  error: false,
825
828
  };
826
829
  /**
@@ -844,6 +847,9 @@ const CurrentUserPreferenceProviderIrisApp = ({ children }) => {
844
847
  void CurrentUserPreferenceRuntime.getCurrentUserTimeZonePreference()
845
848
  .catch(() => undefined)
846
849
  .then(timeZonePreference => dispatch({ type: "timeZonePreferenceResolved", timeZonePreference }));
850
+ void CurrentUserPreferenceRuntime.getCurrentUserCustomTimezone()
851
+ .catch(() => undefined)
852
+ .then(customTimezone => dispatch({ type: "customTimezoneResolved", customTimezone }));
847
853
  }, []);
848
854
  if (state.error) {
849
855
  throw new Error("Language context is invalid");
@@ -855,6 +861,7 @@ const CurrentUserPreferenceProviderIrisApp = ({ children }) => {
855
861
  language: state.language,
856
862
  systemOfMeasurement: state.systemOfMeasurement,
857
863
  timeZonePreference: state.timeZonePreference,
864
+ customTimezone: state.customTimezone,
858
865
  }, children: children }));
859
866
  };
860
867
 
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts",
3
- "version": "2.1.5-alpha-ecf53e535f3.0",
3
+ "version": "2.1.5",
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": "2.0.7-alpha-ecf53e535f3.0",
11
- "@trackunit/iris-app-runtime-core-api": "1.16.15-alpha-ecf53e535f3.0",
12
- "@trackunit/react-core-hooks": "1.17.19-alpha-ecf53e535f3.0",
13
- "@trackunit/i18n-library-translation": "2.0.7-alpha-ecf53e535f3.0",
14
- "@trackunit/react-components": "2.1.5-alpha-ecf53e535f3.0",
15
- "@trackunit/iris-app-runtime-core": "1.17.15-alpha-ecf53e535f3.0",
10
+ "@trackunit/iris-app-api": "2.0.7",
11
+ "@trackunit/iris-app-runtime-core-api": "1.16.15",
12
+ "@trackunit/react-core-hooks": "1.17.19",
13
+ "@trackunit/i18n-library-translation": "2.0.7",
14
+ "@trackunit/react-components": "2.1.5",
15
+ "@trackunit/iris-app-runtime-core": "1.17.15",
16
16
  "graphql-sse": "^2.5.4",
17
- "@trackunit/react-core-contexts-api": "1.17.15-alpha-ecf53e535f3.0"
17
+ "@trackunit/react-core-contexts-api": "1.17.15"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@apollo/client": "^3.13.8",