@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.
@@ -634,8 +634,10 @@ var ServiceRequest = function ServiceRequest(_ref2) {
634
634
 
635
635
  var _temp = function () {
636
636
  if (window[postHookName] && typeof window[postHookName] === "function") {
637
- _exit = true;
638
- return Promise.resolve(window[postHookName](resData));
637
+ return Promise.resolve(window[postHookName](resData)).then(function (_await$window$postHoo) {
638
+ _exit = true;
639
+ return _await$window$postHoo;
640
+ });
639
641
  }
640
642
  }();
641
643
 
@@ -2757,6 +2759,8 @@ var LoginService = {
2757
2759
  },
2758
2760
  authenticate: function (details, stateCode) {
2759
2761
  try {
2762
+ var _window, _window$globalConfigs;
2763
+
2760
2764
  var params = new URLSearchParams();
2761
2765
  Object.entries(details).forEach(function (_ref) {
2762
2766
  var key = _ref[0],
@@ -2770,7 +2774,7 @@ var LoginService = {
2770
2774
  method: "post",
2771
2775
  params: params,
2772
2776
  headers: {
2773
- authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
2777
+ 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")),
2774
2778
  "Content-Type": "application/x-www-form-urlencoded"
2775
2779
  }
2776
2780
  };
@@ -35444,6 +35448,8 @@ var Complaint = {
35444
35448
 
35445
35449
  var UserService = {
35446
35450
  authenticate: function authenticate(details) {
35451
+ var _window, _window$globalConfigs;
35452
+
35447
35453
  var data = new URLSearchParams();
35448
35454
  Object.entries(details).forEach(function (_ref) {
35449
35455
  var key = _ref[0],
@@ -35457,7 +35463,7 @@ var UserService = {
35457
35463
  url: Urls.Authenticate,
35458
35464
  data: data,
35459
35465
  headers: {
35460
- authorization: "Basic ZWdvdi11c2VyLWNsaWVudDo=",
35466
+ 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")),
35461
35467
  "Content-Type": "application/x-www-form-urlencoded"
35462
35468
  }
35463
35469
  });
@@ -36667,7 +36673,7 @@ var useLocalities = function useLocalities(tenant, boundaryType, config, t) {
36667
36673
  }
36668
36674
 
36669
36675
  return useQuery(["BOUNDARY_DATA", tenant, boundaryType], function () {
36670
- return getLocalities$1[boundaryType](tenant);
36676
+ return getLocalities$1[boundaryType.toLowerCase()](tenant);
36671
36677
  }, _extends({
36672
36678
  select: function select(data) {
36673
36679
  return LocalityService.get(data).map(function (key) {
@@ -41048,6 +41054,7 @@ var dss = {
41048
41054
  useGetChart: useGetChart
41049
41055
  };
41050
41056
  var mcollect = {
41057
+ useCommonMDMS: useMDMS,
41051
41058
  useMCollectMDMS: useMCollectMDMS,
41052
41059
  useMCollectSearch: useMCollectSearch,
41053
41060
  useMcollectSearchBill: useMcollectSearchBill,