@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.
@@ -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.3",
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
- cobrowsing,
14300
+ extraMenuItem,
14301
14301
  sendTranscript
14302
14302
  } = features;
14303
14303
  const optionsObj = {
14304
- cobrowsing,
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: t(`options.${option}.menuTitle`),
14314
+ title: menuTitle(option),
14312
14315
  available: optionsObj[option].enabled
14313
14316
  }));
14314
- const allowOptionSelection = cobrowsing || sendTranscript;
14317
+ const allowOptionSelection = extraMenuItem || sendTranscript;
14315
14318
  const dispatch = useDispatch();
14316
14319
  const {
14317
14320
  get,