@egovernments/digit-ui-libraries 1.3.2 → 1.3.6

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/dist/index.js CHANGED
@@ -637,8 +637,10 @@ var ServiceRequest = function ServiceRequest(_ref2) {
637
637
 
638
638
  var _temp = function () {
639
639
  if (window[postHookName] && typeof window[postHookName] === "function") {
640
- _exit = true;
641
- return Promise.resolve(window[postHookName](resData));
640
+ return Promise.resolve(window[postHookName](resData)).then(function (_await$window$postHoo) {
641
+ _exit = true;
642
+ return _await$window$postHoo;
643
+ });
642
644
  }
643
645
  }();
644
646
 
@@ -2760,6 +2762,8 @@ var LoginService = {
2760
2762
  },
2761
2763
  authenticate: function (details, stateCode) {
2762
2764
  try {
2765
+ var _window, _window$globalConfigs;
2766
+
2763
2767
  var params = new URLSearchParams();
2764
2768
  Object.entries(details).forEach(function (_ref) {
2765
2769
  var key = _ref[0],
@@ -2773,7 +2777,7 @@ var LoginService = {
2773
2777
  method: "post",
2774
2778
  params: params,
2775
2779
  headers: {
2776
- authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
2780
+ authorization: "Basic " + ((_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : _window$globalConfigs.getConfig("JWT_TOKEN")),
2777
2781
  "Content-Type": "application/x-www-form-urlencoded"
2778
2782
  }
2779
2783
  };
@@ -35447,6 +35451,8 @@ var Complaint = {
35447
35451
 
35448
35452
  var UserService = {
35449
35453
  authenticate: function authenticate(details) {
35454
+ var _window, _window$globalConfigs;
35455
+
35450
35456
  var data = new URLSearchParams();
35451
35457
  Object.entries(details).forEach(function (_ref) {
35452
35458
  var key = _ref[0],
@@ -35460,7 +35466,7 @@ var UserService = {
35460
35466
  url: Urls.Authenticate,
35461
35467
  data: data,
35462
35468
  headers: {
35463
- authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
35469
+ authorization: "Basic " + ((_window = window) === null || _window === void 0 ? void 0 : (_window$globalConfigs = _window.globalConfigs) === null || _window$globalConfigs === void 0 ? void 0 : _window$globalConfigs.getConfig("JWT_TOKEN")),
35464
35470
  "Content-Type": "application/x-www-form-urlencoded"
35465
35471
  }
35466
35472
  });
@@ -36670,7 +36676,7 @@ var useLocalities = function useLocalities(tenant, boundaryType, config, t) {
36670
36676
  }
36671
36677
 
36672
36678
  return reactQuery.useQuery(["BOUNDARY_DATA", tenant, boundaryType], function () {
36673
- return getLocalities$1[boundaryType](tenant);
36679
+ return getLocalities$1[boundaryType.toLowerCase()](tenant);
36674
36680
  }, _extends({
36675
36681
  select: function select(data) {
36676
36682
  return LocalityService.get(data).map(function (key) {
@@ -41051,6 +41057,7 @@ var dss = {
41051
41057
  useGetChart: useGetChart
41052
41058
  };
41053
41059
  var mcollect = {
41060
+ useCommonMDMS: useMDMS,
41054
41061
  useMCollectMDMS: useMCollectMDMS,
41055
41062
  useMCollectSearch: useMCollectSearch,
41056
41063
  useMcollectSearchBill: useMcollectSearchBill,