@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.
@@ -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.3",
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
- cobrowsing,
14256
+ extraMenuItem,
14257
14257
  sendTranscript
14258
14258
  } = features;
14259
14259
  const optionsObj = {
14260
- cobrowsing,
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: t(`options.${option}.menuTitle`),
14270
+ title: menuTitle(option),
14268
14271
  available: optionsObj[option].enabled
14269
14272
  }));
14270
- const allowOptionSelection = cobrowsing || sendTranscript;
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
- cobrowsing: {
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
- cobrowsing: {
23879
+ extraMenuItem: {
23877
23880
  enabled: false
23878
23881
  },
23879
23882
  sendTranscript: {