@seamly/web-ui 21.0.3 → 21.0.4
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 +7 -4
- package/build/dist/lib/components.min.js +1 -1
- package/build/dist/lib/deprecated-view.css +1 -0
- package/build/dist/lib/deprecated-view.js +1 -1
- package/build/dist/lib/hooks.js +7 -4
- package/build/dist/lib/hooks.min.js +1 -1
- package/build/dist/lib/index.debug.js +2 -2
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.js +8 -5
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/standalone.js +8 -5
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/style-guide.js +10 -7
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/styles-default-implementation.css +1 -0
- package/build/dist/lib/styles-default-implementation.js +1 -1
- package/build/dist/lib/styles.css +1 -0
- package/build/dist/lib/styles.js +1 -1
- package/build/dist/lib/utils.js +8 -5
- package/build/dist/lib/utils.min.js +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/javascripts/style-guide/states.js +2 -2
- package/src/javascripts/ui/hooks/seamly-option-hooks.js +10 -4
- package/src/stylesheets/7-deprecated/5-components/_chat-status.scss +0 -19
- package/webpack/config.package.js +8 -4
package/build/dist/lib/index.js
CHANGED
|
@@ -7294,7 +7294,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_layoutMode = n
|
|
|
7294
7294
|
return {
|
|
7295
7295
|
clientName: "@seamly/web-ui",
|
|
7296
7296
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
7297
|
-
clientVersion: "21.0.
|
|
7297
|
+
clientVersion: "21.0.4",
|
|
7298
7298
|
currentUrl: window.location.toString(),
|
|
7299
7299
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
7300
7300
|
timezone: getTimeZone(),
|
|
@@ -14297,21 +14297,24 @@ const useSeamlyOptions = () => {
|
|
|
14297
14297
|
features
|
|
14298
14298
|
} = options;
|
|
14299
14299
|
const {
|
|
14300
|
-
|
|
14300
|
+
extraMenuItem,
|
|
14301
14301
|
sendTranscript
|
|
14302
14302
|
} = features;
|
|
14303
14303
|
const optionsObj = {
|
|
14304
|
-
|
|
14304
|
+
extraMenuItem,
|
|
14305
14305
|
sendTranscript
|
|
14306
14306
|
};
|
|
14307
|
+
const menuTitle = option => {
|
|
14308
|
+
return option === 'extraMenuItem' ? 'Extra menu item' : t(`options.${option}.menuTitle`);
|
|
14309
|
+
};
|
|
14307
14310
|
const menuOptions = Object.keys(optionsObj).filter(key => {
|
|
14308
14311
|
return optionsObj[key];
|
|
14309
14312
|
}).map(option => ({
|
|
14310
14313
|
name: option,
|
|
14311
|
-
title:
|
|
14314
|
+
title: menuTitle(option),
|
|
14312
14315
|
available: optionsObj[option].enabled
|
|
14313
14316
|
}));
|
|
14314
|
-
const allowOptionSelection =
|
|
14317
|
+
const allowOptionSelection = extraMenuItem || sendTranscript;
|
|
14315
14318
|
const dispatch = useDispatch();
|
|
14316
14319
|
const {
|
|
14317
14320
|
get,
|