@seamly/web-ui 21.0.7 → 21.0.8

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.
@@ -7393,7 +7393,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_layoutMode = n
7393
7393
  return {
7394
7394
  clientName: "@seamly/web-ui",
7395
7395
  clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
7396
- clientVersion: "21.0.7",
7396
+ clientVersion: "21.0.8",
7397
7397
  currentUrl: window.location.toString(),
7398
7398
  screenResolution: `${window.screen.width}x${window.screen.height}`,
7399
7399
  timezone: getTimeZone(),
@@ -12671,12 +12671,7 @@ const {
12671
12671
  ;// CONCATENATED MODULE: ./src/javascripts/domains/interrupt/middleware.ts
12672
12672
 
12673
12673
 
12674
-
12675
-
12676
-
12677
-
12678
-
12679
- const handledErrorTypes = [SeamlyGeneralError, SeamlyConfigurationError, SeamlySessionExpiredError, SeamlyOfflineError, SeamlyUnauthorizedError, SeamlyUnavailableError];
12674
+ const handledErrorTypes = ['SeamlyGeneralError', 'SeamlyConfigurationError', 'SeamlySessionExpiredError', 'SeamlyOfflineError', 'SeamlyUnauthorizedError', 'SeamlyUnavailableError'];
12680
12675
  function createInterruptMiddleware({
12681
12676
  api
12682
12677
  }) {
@@ -12686,7 +12681,7 @@ function createInterruptMiddleware({
12686
12681
  type
12687
12682
  } = action;
12688
12683
  if (type === setInterrupt.type) {
12689
- if (!handledErrorTypes.some(ErrorType => payload.name === ErrorType.name)) {
12684
+ if (!handledErrorTypes.includes(payload.name)) {
12690
12685
  throw new SeamlyGeneralError(payload);
12691
12686
  } else if (payload.action === 'reset') {
12692
12687
  // [SMLY-942] We clear the store before a reset to force a new conversation if the page is refreshed before the conversation is reset