@seamly/web-ui 21.0.1-beta.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.
@@ -7254,7 +7254,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_layoutMode = n
7254
7254
  return {
7255
7255
  clientName: "@seamly/web-ui",
7256
7256
  clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
7257
- clientVersion: "21.0.0",
7257
+ clientVersion: "21.0.2-beta.1",
7258
7258
  currentUrl: window.location.toString(),
7259
7259
  screenResolution: `${window.screen.width}x${window.screen.height}`,
7260
7260
  timezone: getTimeZone(),
@@ -21302,23 +21302,28 @@ const EntryContainer = () => {
21302
21302
 
21303
21303
 
21304
21304
 
21305
- const CollapseButton = ({
21306
- onClick
21307
- }) => {
21305
+
21306
+ const CollapseButton = () => {
21308
21307
  const {
21309
21308
  t
21310
21309
  } = useI18n();
21311
- const handleClick = (0,hooks_.useCallback)(() => onClick(), [onClick]);
21312
- return (0,jsx_runtime_namespaceObject.jsx)("button", {
21310
+ const {
21311
+ isOpen,
21312
+ closeChat
21313
+ } = useVisibility();
21314
+ const {
21315
+ isWindow
21316
+ } = useSeamlyLayoutMode();
21317
+ return isOpen && isWindow ? (0,jsx_runtime_namespaceObject.jsx)("button", {
21313
21318
  type: "button",
21314
21319
  className: css_className('button', 'collapse-button'),
21315
- onClick: handleClick,
21320
+ onClick: closeChat,
21316
21321
  children: (0,jsx_runtime_namespaceObject.jsx)(layout_icon, {
21317
21322
  name: "chevronDown",
21318
21323
  size: "32",
21319
21324
  alt: t('window.srCollapseButton')
21320
21325
  })
21321
- });
21326
+ }) : null;
21322
21327
  };
21323
21328
  /* harmony default export */ const collapse_button = (CollapseButton);
21324
21329
  ;// CONCATENATED MODULE: ./src/javascripts/ui/components/chat-status/index.tsx
@@ -21409,7 +21414,6 @@ function chat_frame_defineProperty(obj, key, value) { if (key in obj) { Object.d
21409
21414
 
21410
21415
 
21411
21416
 
21412
-
21413
21417
  function ChatFrame({
21414
21418
  children,
21415
21419
  interruptComponent: InterruptComponent
@@ -21419,12 +21423,8 @@ function ChatFrame({
21419
21423
  meta
21420
21424
  } = useInterrupt();
21421
21425
  const {
21422
- isOpen,
21423
- closeChat
21426
+ isOpen
21424
21427
  } = useVisibility();
21425
- const {
21426
- isWindow
21427
- } = useSeamlyLayoutMode();
21428
21428
  if (hasInterrupt) {
21429
21429
  if (isOpen) {
21430
21430
  return (0,jsx_runtime_namespaceObject.jsx)(InterruptComponent, chat_frame_objectSpread({}, meta));
@@ -21435,9 +21435,7 @@ function ChatFrame({
21435
21435
  children: [(0,jsx_runtime_namespaceObject.jsxs)(chat_scroll_provider, {
21436
21436
  children: [(0,jsx_runtime_namespaceObject.jsxs)("div", {
21437
21437
  className: css_className('chat__container__header'),
21438
- children: [(0,jsx_runtime_namespaceObject.jsx)(TranslationStatus, {}), isOpen && isWindow && (0,jsx_runtime_namespaceObject.jsx)(collapse_button, {
21439
- onClick: closeChat
21440
- })]
21438
+ children: [(0,jsx_runtime_namespaceObject.jsx)(TranslationStatus, {}), (0,jsx_runtime_namespaceObject.jsx)(collapse_button, {})]
21441
21439
  }), children]
21442
21440
  }), (0,jsx_runtime_namespaceObject.jsx)(entry_container, {}), isOpen && (0,jsx_runtime_namespaceObject.jsx)(AppOptions, {})]
21443
21441
  });
@@ -21450,6 +21448,7 @@ function ChatFrame({
21450
21448
 
21451
21449
 
21452
21450
 
21451
+
21453
21452
  const Interrupt = ({
21454
21453
  originalError,
21455
21454
  title,
@@ -21485,10 +21484,10 @@ const Interrupt = ({
21485
21484
  }
21486
21485
  focusSkiplinkTarget();
21487
21486
  };
21488
- return !isExpiredError ? (0,jsx_runtime_namespaceObject.jsx)("section", {
21487
+ return !isExpiredError ? (0,jsx_runtime_namespaceObject.jsxs)("section", {
21489
21488
  className: css_className('interrupt'),
21490
21489
  "aria-labelledby": headingId,
21491
- children: (0,jsx_runtime_namespaceObject.jsxs)("div", {
21490
+ children: [(0,jsx_runtime_namespaceObject.jsx)(collapse_button, {}), (0,jsx_runtime_namespaceObject.jsxs)("div", {
21492
21491
  className: css_className('interrupt__body'),
21493
21492
  children: [(0,jsx_runtime_namespaceObject.jsx)("h2", {
21494
21493
  id: headingId,
@@ -21506,7 +21505,7 @@ const Interrupt = ({
21506
21505
  children: buttonText
21507
21506
  })
21508
21507
  })]
21509
- })
21508
+ })]
21510
21509
  }) : (0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {});
21511
21510
  };
21512
21511
  /* harmony default export */ const interrupt = (Interrupt);