@seamly/web-ui 21.0.3-beta.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
|
@@ -6483,21 +6483,24 @@ const useSeamlyOptions = () => {
|
|
|
6483
6483
|
features
|
|
6484
6484
|
} = options;
|
|
6485
6485
|
const {
|
|
6486
|
-
|
|
6486
|
+
extraMenuItem,
|
|
6487
6487
|
sendTranscript
|
|
6488
6488
|
} = features;
|
|
6489
6489
|
const optionsObj = {
|
|
6490
|
-
|
|
6490
|
+
extraMenuItem,
|
|
6491
6491
|
sendTranscript
|
|
6492
6492
|
};
|
|
6493
|
+
const menuTitle = option => {
|
|
6494
|
+
return option === 'extraMenuItem' ? 'Extra menu item' : t(`options.${option}.menuTitle`);
|
|
6495
|
+
};
|
|
6493
6496
|
const menuOptions = Object.keys(optionsObj).filter(key => {
|
|
6494
6497
|
return optionsObj[key];
|
|
6495
6498
|
}).map(option => ({
|
|
6496
6499
|
name: option,
|
|
6497
|
-
title:
|
|
6500
|
+
title: menuTitle(option),
|
|
6498
6501
|
available: optionsObj[option].enabled
|
|
6499
6502
|
}));
|
|
6500
|
-
const allowOptionSelection =
|
|
6503
|
+
const allowOptionSelection = extraMenuItem || sendTranscript;
|
|
6501
6504
|
const dispatch = useDispatch_useDispatch();
|
|
6502
6505
|
const {
|
|
6503
6506
|
get,
|