@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
|
@@ -7211,7 +7211,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_layoutMode = n
|
|
|
7211
7211
|
return {
|
|
7212
7212
|
clientName: "@seamly/web-ui",
|
|
7213
7213
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
7214
|
-
clientVersion: "21.0.1",
|
|
7214
|
+
clientVersion: "21.0.2-beta.1",
|
|
7215
7215
|
currentUrl: window.location.toString(),
|
|
7216
7216
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
7217
7217
|
timezone: getTimeZone(),
|
|
@@ -21259,23 +21259,28 @@ const EntryContainer = () => {
|
|
|
21259
21259
|
|
|
21260
21260
|
|
|
21261
21261
|
|
|
21262
|
-
|
|
21263
|
-
|
|
21264
|
-
}) => {
|
|
21262
|
+
|
|
21263
|
+
const CollapseButton = () => {
|
|
21265
21264
|
const {
|
|
21266
21265
|
t
|
|
21267
21266
|
} = useI18n();
|
|
21268
|
-
const
|
|
21269
|
-
|
|
21267
|
+
const {
|
|
21268
|
+
isOpen,
|
|
21269
|
+
closeChat
|
|
21270
|
+
} = useVisibility();
|
|
21271
|
+
const {
|
|
21272
|
+
isWindow
|
|
21273
|
+
} = useSeamlyLayoutMode();
|
|
21274
|
+
return isOpen && isWindow ? (0,jsx_runtime_namespaceObject.jsx)("button", {
|
|
21270
21275
|
type: "button",
|
|
21271
21276
|
className: css_className('button', 'collapse-button'),
|
|
21272
|
-
onClick:
|
|
21277
|
+
onClick: closeChat,
|
|
21273
21278
|
children: (0,jsx_runtime_namespaceObject.jsx)(layout_icon, {
|
|
21274
21279
|
name: "chevronDown",
|
|
21275
21280
|
size: "32",
|
|
21276
21281
|
alt: t('window.srCollapseButton')
|
|
21277
21282
|
})
|
|
21278
|
-
});
|
|
21283
|
+
}) : null;
|
|
21279
21284
|
};
|
|
21280
21285
|
/* harmony default export */ const collapse_button = (CollapseButton);
|
|
21281
21286
|
;// CONCATENATED MODULE: ./src/javascripts/ui/components/chat-status/index.tsx
|
|
@@ -21366,7 +21371,6 @@ function chat_frame_defineProperty(obj, key, value) { if (key in obj) { Object.d
|
|
|
21366
21371
|
|
|
21367
21372
|
|
|
21368
21373
|
|
|
21369
|
-
|
|
21370
21374
|
function ChatFrame({
|
|
21371
21375
|
children,
|
|
21372
21376
|
interruptComponent: InterruptComponent
|
|
@@ -21376,12 +21380,8 @@ function ChatFrame({
|
|
|
21376
21380
|
meta
|
|
21377
21381
|
} = useInterrupt();
|
|
21378
21382
|
const {
|
|
21379
|
-
isOpen
|
|
21380
|
-
closeChat
|
|
21383
|
+
isOpen
|
|
21381
21384
|
} = useVisibility();
|
|
21382
|
-
const {
|
|
21383
|
-
isWindow
|
|
21384
|
-
} = useSeamlyLayoutMode();
|
|
21385
21385
|
if (hasInterrupt) {
|
|
21386
21386
|
if (isOpen) {
|
|
21387
21387
|
return (0,jsx_runtime_namespaceObject.jsx)(InterruptComponent, chat_frame_objectSpread({}, meta));
|
|
@@ -21392,9 +21392,7 @@ function ChatFrame({
|
|
|
21392
21392
|
children: [(0,jsx_runtime_namespaceObject.jsxs)(chat_scroll_provider, {
|
|
21393
21393
|
children: [(0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
21394
21394
|
className: css_className('chat__container__header'),
|
|
21395
|
-
children: [(0,jsx_runtime_namespaceObject.jsx)(TranslationStatus, {}),
|
|
21396
|
-
onClick: closeChat
|
|
21397
|
-
})]
|
|
21395
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(TranslationStatus, {}), (0,jsx_runtime_namespaceObject.jsx)(collapse_button, {})]
|
|
21398
21396
|
}), children]
|
|
21399
21397
|
}), (0,jsx_runtime_namespaceObject.jsx)(entry_container, {}), isOpen && (0,jsx_runtime_namespaceObject.jsx)(AppOptions, {})]
|
|
21400
21398
|
});
|
|
@@ -21407,6 +21405,7 @@ function ChatFrame({
|
|
|
21407
21405
|
|
|
21408
21406
|
|
|
21409
21407
|
|
|
21408
|
+
|
|
21410
21409
|
const Interrupt = ({
|
|
21411
21410
|
originalError,
|
|
21412
21411
|
title,
|
|
@@ -21442,10 +21441,10 @@ const Interrupt = ({
|
|
|
21442
21441
|
}
|
|
21443
21442
|
focusSkiplinkTarget();
|
|
21444
21443
|
};
|
|
21445
|
-
return !isExpiredError ? (0,jsx_runtime_namespaceObject.
|
|
21444
|
+
return !isExpiredError ? (0,jsx_runtime_namespaceObject.jsxs)("section", {
|
|
21446
21445
|
className: css_className('interrupt'),
|
|
21447
21446
|
"aria-labelledby": headingId,
|
|
21448
|
-
children: (0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
21447
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)(collapse_button, {}), (0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
21449
21448
|
className: css_className('interrupt__body'),
|
|
21450
21449
|
children: [(0,jsx_runtime_namespaceObject.jsx)("h2", {
|
|
21451
21450
|
id: headingId,
|
|
@@ -21463,7 +21462,7 @@ const Interrupt = ({
|
|
|
21463
21462
|
children: buttonText
|
|
21464
21463
|
})
|
|
21465
21464
|
})]
|
|
21466
|
-
})
|
|
21465
|
+
})]
|
|
21467
21466
|
}) : (0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {});
|
|
21468
21467
|
};
|
|
21469
21468
|
/* harmony default export */ const interrupt = (Interrupt);
|