@eui/core 15.5.0-snapshot-1694071906021 → 15.5.0

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.
@@ -1861,6 +1861,7 @@ const removeApiQueueItem = (state, action) => {
1861
1861
  }, {});
1862
1862
  return Object.assign({}, state, { apiQueue });
1863
1863
  };
1864
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1864
1865
  const emptyApiQueue = (state, action) =>
1865
1866
  // remove all items in the Api Queue
1866
1867
  Object.assign({}, state, { apiQueue: {} });
@@ -2026,7 +2027,7 @@ const loadState = (storage = localStorage) => {
2026
2027
  return undefined;
2027
2028
  }
2028
2029
  };
2029
- const cb = (reducer, storage) => function (state, action) {
2030
+ const cb = (reducer, storage) => (state, action) => {
2030
2031
  if (action.type === CoreAppActionTypes.INIT_STORE) {
2031
2032
  // This action must be dispatched from an app initializer
2032
2033
  // We load the state from a storage and compare the version and userId with the provided ones.
@@ -2447,7 +2448,7 @@ class ApiQueueServiceMock extends ApiQueueService {
2447
2448
  return of([]);
2448
2449
  }
2449
2450
  getQueueItem(id) {
2450
- return of(null);
2451
+ return of({ uri: id, method: 'GET' });
2451
2452
  }
2452
2453
  removeAllQueueItem() { }
2453
2454
  processAllQueueItems() {
@@ -4099,6 +4100,7 @@ class LocaleService extends EuiService {
4099
4100
  *
4100
4101
  * @param locale array of locale to load
4101
4102
  */
4103
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4102
4104
  loadLocale(locale) {
4103
4105
  // locale = Array.isArray(locale) ? locale : [locale];
4104
4106
  // const localeImports: Observable<{ data: any, localeId: string, extraData: any }>[]
@@ -4435,7 +4437,7 @@ class EuLoginSessionTimeoutHandlingInterceptor {
4435
4437
  checkRequestSuccessForEULoginSessionTimeout(request, event) {
4436
4438
  if (event instanceof HttpResponse) {
4437
4439
  if (this.isSsoResponse(event.body)) {
4438
- this.reauthenticate(request, event);
4440
+ this.reauthenticate();
4439
4441
  }
4440
4442
  }
4441
4443
  }
@@ -4478,7 +4480,7 @@ class EuLoginSessionTimeoutHandlingInterceptor {
4478
4480
  return false;
4479
4481
  }
4480
4482
  }
4481
- reauthenticate(request, response) {
4483
+ reauthenticate() {
4482
4484
  document.location.reload();
4483
4485
  }
4484
4486
  }