@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.
@@ -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.3",
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
- cobrowsing,
24018
+ extraMenuItem,
24019
24019
  sendTranscript
24020
24020
  } = features;
24021
24021
  const optionsObj = {
24022
- cobrowsing,
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: t(`options.${option}.menuTitle`),
24032
+ title: menuTitle(option),
24030
24033
  available: optionsObj[option].enabled
24031
24034
  }));
24032
- const allowOptionSelection = cobrowsing || sendTranscript;
24035
+ const allowOptionSelection = extraMenuItem || sendTranscript;
24033
24036
  const dispatch = useDispatch();
24034
24037
  const {
24035
24038
  get,