@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
|
@@ -7250,7 +7250,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_layoutMode = n
|
|
|
7250
7250
|
return {
|
|
7251
7251
|
clientName: "@seamly/web-ui",
|
|
7252
7252
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
7253
|
-
clientVersion: "21.0.
|
|
7253
|
+
clientVersion: "21.0.4",
|
|
7254
7254
|
currentUrl: window.location.toString(),
|
|
7255
7255
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
7256
7256
|
timezone: getTimeZone(),
|
|
@@ -14253,21 +14253,24 @@ const useSeamlyOptions = () => {
|
|
|
14253
14253
|
features
|
|
14254
14254
|
} = options;
|
|
14255
14255
|
const {
|
|
14256
|
-
|
|
14256
|
+
extraMenuItem,
|
|
14257
14257
|
sendTranscript
|
|
14258
14258
|
} = features;
|
|
14259
14259
|
const optionsObj = {
|
|
14260
|
-
|
|
14260
|
+
extraMenuItem,
|
|
14261
14261
|
sendTranscript
|
|
14262
14262
|
};
|
|
14263
|
+
const menuTitle = option => {
|
|
14264
|
+
return option === 'extraMenuItem' ? 'Extra menu item' : t(`options.${option}.menuTitle`);
|
|
14265
|
+
};
|
|
14263
14266
|
const menuOptions = Object.keys(optionsObj).filter(key => {
|
|
14264
14267
|
return optionsObj[key];
|
|
14265
14268
|
}).map(option => ({
|
|
14266
14269
|
name: option,
|
|
14267
|
-
title:
|
|
14270
|
+
title: menuTitle(option),
|
|
14268
14271
|
available: optionsObj[option].enabled
|
|
14269
14272
|
}));
|
|
14270
|
-
const allowOptionSelection =
|
|
14273
|
+
const allowOptionSelection = extraMenuItem || sendTranscript;
|
|
14271
14274
|
const dispatch = useDispatch();
|
|
14272
14275
|
const {
|
|
14273
14276
|
get,
|
|
@@ -23857,7 +23860,7 @@ const standardState = {
|
|
|
23857
23860
|
}, baseState), {}, {
|
|
23858
23861
|
options: states_objectSpread(states_objectSpread({}, baseState.options), {}, {
|
|
23859
23862
|
features: {
|
|
23860
|
-
|
|
23863
|
+
extraMenuItem: {
|
|
23861
23864
|
enabled: true
|
|
23862
23865
|
},
|
|
23863
23866
|
sendTranscript: {
|
|
@@ -23873,7 +23876,7 @@ const standardState = {
|
|
|
23873
23876
|
}, baseState), {}, {
|
|
23874
23877
|
options: states_objectSpread(states_objectSpread({}, baseState.options), {}, {
|
|
23875
23878
|
features: {
|
|
23876
|
-
|
|
23879
|
+
extraMenuItem: {
|
|
23877
23880
|
enabled: false
|
|
23878
23881
|
},
|
|
23879
23882
|
sendTranscript: {
|