@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
|
@@ -16708,7 +16708,7 @@ _API_ready = new (weak_map_default())(), _API_externalId = new (weak_map_default
|
|
|
16708
16708
|
return {
|
|
16709
16709
|
clientName: "@seamly/web-ui",
|
|
16710
16710
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
16711
|
-
clientVersion: "21.0.
|
|
16711
|
+
clientVersion: "21.0.4",
|
|
16712
16712
|
currentUrl: window.location.toString(),
|
|
16713
16713
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
16714
16714
|
timezone: getTimeZone(),
|
|
@@ -24015,21 +24015,24 @@ const useSeamlyOptions = () => {
|
|
|
24015
24015
|
features
|
|
24016
24016
|
} = options;
|
|
24017
24017
|
const {
|
|
24018
|
-
|
|
24018
|
+
extraMenuItem,
|
|
24019
24019
|
sendTranscript
|
|
24020
24020
|
} = features;
|
|
24021
24021
|
const optionsObj = {
|
|
24022
|
-
|
|
24022
|
+
extraMenuItem,
|
|
24023
24023
|
sendTranscript
|
|
24024
24024
|
};
|
|
24025
|
+
const menuTitle = option => {
|
|
24026
|
+
return option === 'extraMenuItem' ? 'Extra menu item' : t(`options.${option}.menuTitle`);
|
|
24027
|
+
};
|
|
24025
24028
|
const menuOptions = map_default()(_context = filter_default()(_context2 = keys_default()(optionsObj)).call(_context2, key => {
|
|
24026
24029
|
return optionsObj[key];
|
|
24027
24030
|
})).call(_context, option => ({
|
|
24028
24031
|
name: option,
|
|
24029
|
-
title:
|
|
24032
|
+
title: menuTitle(option),
|
|
24030
24033
|
available: optionsObj[option].enabled
|
|
24031
24034
|
}));
|
|
24032
|
-
const allowOptionSelection =
|
|
24035
|
+
const allowOptionSelection = extraMenuItem || sendTranscript;
|
|
24033
24036
|
const dispatch = useDispatch();
|
|
24034
24037
|
const {
|
|
24035
24038
|
get,
|