@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.
- package/build/dist/lib/components.js +18 -19
- package/build/dist/lib/components.min.js +1 -1
- package/build/dist/lib/index.debug.js +4 -4
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +19 -20
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +18 -20
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +19 -20
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/utils.js +19 -20
- package/build/dist/lib/utils.min.js +1 -1
- package/package.json +1 -1
- package/src/javascripts/ui/components/layout/chat-frame.js +2 -4
- package/src/javascripts/ui/components/layout/interrupt.js +2 -0
- package/src/javascripts/ui/components/view/window-view/collapse-button.js +8 -6
package/build/dist/lib/utils.js
CHANGED
|
@@ -7355,7 +7355,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_layoutMode = n
|
|
|
7355
7355
|
return {
|
|
7356
7356
|
clientName: "@seamly/web-ui",
|
|
7357
7357
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
7358
|
-
clientVersion: "21.0.1",
|
|
7358
|
+
clientVersion: "21.0.2-beta.1",
|
|
7359
7359
|
currentUrl: window.location.toString(),
|
|
7360
7360
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
7361
7361
|
timezone: getTimeZone(),
|
|
@@ -21266,23 +21266,28 @@ const EntryContainer = () => {
|
|
|
21266
21266
|
|
|
21267
21267
|
|
|
21268
21268
|
|
|
21269
|
-
|
|
21270
|
-
|
|
21271
|
-
}) => {
|
|
21269
|
+
|
|
21270
|
+
const CollapseButton = () => {
|
|
21272
21271
|
const {
|
|
21273
21272
|
t
|
|
21274
21273
|
} = useI18n();
|
|
21275
|
-
const
|
|
21276
|
-
|
|
21274
|
+
const {
|
|
21275
|
+
isOpen,
|
|
21276
|
+
closeChat
|
|
21277
|
+
} = useVisibility();
|
|
21278
|
+
const {
|
|
21279
|
+
isWindow
|
|
21280
|
+
} = useSeamlyLayoutMode();
|
|
21281
|
+
return isOpen && isWindow ? (0,jsx_runtime_namespaceObject.jsx)("button", {
|
|
21277
21282
|
type: "button",
|
|
21278
21283
|
className: css_className('button', 'collapse-button'),
|
|
21279
|
-
onClick:
|
|
21284
|
+
onClick: closeChat,
|
|
21280
21285
|
children: (0,jsx_runtime_namespaceObject.jsx)(layout_icon, {
|
|
21281
21286
|
name: "chevronDown",
|
|
21282
21287
|
size: "32",
|
|
21283
21288
|
alt: t('window.srCollapseButton')
|
|
21284
21289
|
})
|
|
21285
|
-
});
|
|
21290
|
+
}) : null;
|
|
21286
21291
|
};
|
|
21287
21292
|
/* harmony default export */ const collapse_button = (CollapseButton);
|
|
21288
21293
|
;// CONCATENATED MODULE: ./src/javascripts/ui/components/chat-status/index.tsx
|
|
@@ -21373,7 +21378,6 @@ function chat_frame_defineProperty(obj, key, value) { if (key in obj) { Object.d
|
|
|
21373
21378
|
|
|
21374
21379
|
|
|
21375
21380
|
|
|
21376
|
-
|
|
21377
21381
|
function ChatFrame({
|
|
21378
21382
|
children,
|
|
21379
21383
|
interruptComponent: InterruptComponent
|
|
@@ -21383,12 +21387,8 @@ function ChatFrame({
|
|
|
21383
21387
|
meta
|
|
21384
21388
|
} = useInterrupt();
|
|
21385
21389
|
const {
|
|
21386
|
-
isOpen
|
|
21387
|
-
closeChat
|
|
21390
|
+
isOpen
|
|
21388
21391
|
} = useVisibility();
|
|
21389
|
-
const {
|
|
21390
|
-
isWindow
|
|
21391
|
-
} = useSeamlyLayoutMode();
|
|
21392
21392
|
if (hasInterrupt) {
|
|
21393
21393
|
if (isOpen) {
|
|
21394
21394
|
return (0,jsx_runtime_namespaceObject.jsx)(InterruptComponent, chat_frame_objectSpread({}, meta));
|
|
@@ -21399,9 +21399,7 @@ function ChatFrame({
|
|
|
21399
21399
|
children: [(0,jsx_runtime_namespaceObject.jsxs)(chat_scroll_provider, {
|
|
21400
21400
|
children: [(0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
21401
21401
|
className: css_className('chat__container__header'),
|
|
21402
|
-
children: [(0,jsx_runtime_namespaceObject.jsx)(TranslationStatus, {}),
|
|
21403
|
-
onClick: closeChat
|
|
21404
|
-
})]
|
|
21402
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(TranslationStatus, {}), (0,jsx_runtime_namespaceObject.jsx)(collapse_button, {})]
|
|
21405
21403
|
}), children]
|
|
21406
21404
|
}), (0,jsx_runtime_namespaceObject.jsx)(entry_container, {}), isOpen && (0,jsx_runtime_namespaceObject.jsx)(AppOptions, {})]
|
|
21407
21405
|
});
|
|
@@ -21414,6 +21412,7 @@ function ChatFrame({
|
|
|
21414
21412
|
|
|
21415
21413
|
|
|
21416
21414
|
|
|
21415
|
+
|
|
21417
21416
|
const Interrupt = ({
|
|
21418
21417
|
originalError,
|
|
21419
21418
|
title,
|
|
@@ -21449,10 +21448,10 @@ const Interrupt = ({
|
|
|
21449
21448
|
}
|
|
21450
21449
|
focusSkiplinkTarget();
|
|
21451
21450
|
};
|
|
21452
|
-
return !isExpiredError ? (0,jsx_runtime_namespaceObject.
|
|
21451
|
+
return !isExpiredError ? (0,jsx_runtime_namespaceObject.jsxs)("section", {
|
|
21453
21452
|
className: css_className('interrupt'),
|
|
21454
21453
|
"aria-labelledby": headingId,
|
|
21455
|
-
children: (0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
21454
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(collapse_button, {}), (0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
21456
21455
|
className: css_className('interrupt__body'),
|
|
21457
21456
|
children: [(0,jsx_runtime_namespaceObject.jsx)("h2", {
|
|
21458
21457
|
id: headingId,
|
|
@@ -21470,7 +21469,7 @@ const Interrupt = ({
|
|
|
21470
21469
|
children: buttonText
|
|
21471
21470
|
})
|
|
21472
21471
|
})]
|
|
21473
|
-
})
|
|
21472
|
+
})]
|
|
21474
21473
|
}) : (0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {});
|
|
21475
21474
|
};
|
|
21476
21475
|
/* harmony default export */ const interrupt = (Interrupt);
|