@seamly/web-ui 21.0.1 → 21.0.2-beta.1

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.
@@ -16664,7 +16664,7 @@ _API_ready = new (weak_map_default())(), _API_externalId = new (weak_map_default
16664
16664
  return {
16665
16665
  clientName: "@seamly/web-ui",
16666
16666
  clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
16667
- clientVersion: "21.0.1",
16667
+ clientVersion: "21.0.2-beta.1",
16668
16668
  currentUrl: window.location.toString(),
16669
16669
  screenResolution: `${window.screen.width}x${window.screen.height}`,
16670
16670
  timezone: getTimeZone(),
@@ -31430,24 +31430,28 @@ const EntryContainer = () => {
31430
31430
 
31431
31431
 
31432
31432
 
31433
- const CollapseButton = _ref => {
31434
- let {
31435
- onClick
31436
- } = _ref;
31433
+
31434
+ const CollapseButton = () => {
31437
31435
  const {
31438
31436
  t
31439
31437
  } = useI18n();
31440
- const handleClick = (0,hooks_module/* useCallback */.I4)(() => onClick(), [onClick]);
31441
- return o("button", {
31438
+ const {
31439
+ isOpen,
31440
+ closeChat
31441
+ } = useVisibility();
31442
+ const {
31443
+ isWindow
31444
+ } = useSeamlyLayoutMode();
31445
+ return isOpen && isWindow ? o("button", {
31442
31446
  type: "button",
31443
31447
  className: css_className('button', 'collapse-button'),
31444
- onClick: handleClick,
31448
+ onClick: closeChat,
31445
31449
  children: o(layout_icon, {
31446
31450
  name: "chevronDown",
31447
31451
  size: "32",
31448
31452
  alt: t('window.srCollapseButton')
31449
31453
  })
31450
- });
31454
+ }) : null;
31451
31455
  };
31452
31456
  /* harmony default export */ var collapse_button = (CollapseButton);
31453
31457
  ;// CONCATENATED MODULE: ./src/javascripts/ui/components/chat-status/index.tsx
@@ -31546,7 +31550,6 @@ function chat_frame_objectSpread(target) { for (var i = 1; i < arguments.length;
31546
31550
 
31547
31551
 
31548
31552
 
31549
-
31550
31553
  function ChatFrame(_ref) {
31551
31554
  let {
31552
31555
  children,
@@ -31557,12 +31560,8 @@ function ChatFrame(_ref) {
31557
31560
  meta
31558
31561
  } = useInterrupt();
31559
31562
  const {
31560
- isOpen,
31561
- closeChat
31563
+ isOpen
31562
31564
  } = useVisibility();
31563
- const {
31564
- isWindow
31565
- } = useSeamlyLayoutMode();
31566
31565
  if (hasInterrupt) {
31567
31566
  if (isOpen) {
31568
31567
  return o(InterruptComponent, chat_frame_objectSpread({}, meta));
@@ -31573,9 +31572,7 @@ function ChatFrame(_ref) {
31573
31572
  children: [o(chat_scroll_provider, {
31574
31573
  children: [o("div", {
31575
31574
  className: css_className('chat__container__header'),
31576
- children: [o(TranslationStatus, {}), isOpen && isWindow && o(collapse_button, {
31577
- onClick: closeChat
31578
- })]
31575
+ children: [o(TranslationStatus, {}), o(collapse_button, {})]
31579
31576
  }), children]
31580
31577
  }), o(entry_container, {}), isOpen && o(AppOptions, {})]
31581
31578
  });
@@ -31589,6 +31586,7 @@ function ChatFrame(_ref) {
31589
31586
 
31590
31587
 
31591
31588
 
31589
+
31592
31590
  const Interrupt = _ref => {
31593
31591
  let {
31594
31592
  originalError,
@@ -31628,7 +31626,7 @@ const Interrupt = _ref => {
31628
31626
  return !isExpiredError ? o("section", {
31629
31627
  className: css_className('interrupt'),
31630
31628
  "aria-labelledby": headingId,
31631
- children: o("div", {
31629
+ children: [o(collapse_button, {}), o("div", {
31632
31630
  className: css_className('interrupt__body'),
31633
31631
  children: [o("h2", {
31634
31632
  id: headingId,
@@ -31646,7 +31644,7 @@ const Interrupt = _ref => {
31646
31644
  children: buttonText
31647
31645
  })
31648
31646
  })]
31649
- })
31647
+ })]
31650
31648
  }) : o(preact_module/* Fragment */.HY, {});
31651
31649
  };
31652
31650
  /* harmony default export */ var interrupt = (Interrupt);