@bigbinary/neeto-molecules 1.0.38 → 1.0.39

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.
@@ -3036,7 +3036,9 @@ var SelectionTabs = function SelectionTabs(_ref) {
3036
3036
  };
3037
3037
 
3038
3038
  var EmbedCode = function EmbedCode(_ref) {
3039
- var _ref$primaryApp = _ref.primaryApp,
3039
+ var showSessionContext = _ref.showSessionContext,
3040
+ showUserIdentity = _ref.showUserIdentity,
3041
+ _ref$primaryApp = _ref.primaryApp,
3040
3042
  primaryApp = _ref$primaryApp === void 0 ? "" : _ref$primaryApp,
3041
3043
  _ref$maxWidth = _ref.maxWidth,
3042
3044
  maxWidth = _ref$maxWidth === void 0 ? "max-w-3xl" : _ref$maxWidth;
@@ -3076,6 +3078,8 @@ var EmbedCode = function EmbedCode(_ref) {
3076
3078
  var enabledWidgets = ramda.fromPairs(selectedWidgets.map(function (widget) {
3077
3079
  return [widget, true];
3078
3080
  }));
3081
+ var shouldShowUserIdentity = showUserIdentity !== null && showUserIdentity !== void 0 ? showUserIdentity : enabledWidgets.chat || enabledWidgets.replay;
3082
+ var shouldShowSessionContext = showSessionContext !== null && showSessionContext !== void 0 ? showSessionContext : enabledWidgets.replay;
3079
3083
  var updateSelectedWidgets = function updateSelectedWidgets(widget) {
3080
3084
  var widgetId = neetoWidgetTokens.find(function (item) {
3081
3085
  return item.clientApplicationName.toLowerCase() === widget;
@@ -3243,7 +3247,7 @@ var EmbedCode = function EmbedCode(_ref) {
3243
3247
  })
3244
3248
  },
3245
3249
  i18nKey: pure.isNotEmpty(selectedWidgets) ? "neetoMolecules.widget.installation.instructions.placement.selectedWidgets" : "neetoMolecules.widget.installation.instructions.placement.noneOfThese"
3246
- }))), enabledWidgets.chat || enabledWidgets.replay ? /*#__PURE__*/React__default["default"].createElement("div", {
3250
+ }))), shouldShowUserIdentity ? /*#__PURE__*/React__default["default"].createElement("div", {
3247
3251
  className: "mb-8 w-full flex-grow flex-col items-center justify-start"
3248
3252
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3249
3253
  className: "mx-auto mb-2 w-full"
@@ -3269,7 +3273,7 @@ var EmbedCode = function EmbedCode(_ref) {
3269
3273
  })))
3270
3274
  })), /*#__PURE__*/React__default["default"].createElement("div", {
3271
3275
  className: "w-full"
3272
- }, t("neetoMolecules.widget.installation.instructions.userIdentity"))) : null, enabledWidgets.replay ? /*#__PURE__*/React__default["default"].createElement("div", {
3276
+ }, t("neetoMolecules.widget.installation.instructions.userIdentity"))) : null, shouldShowSessionContext ? /*#__PURE__*/React__default["default"].createElement("div", {
3273
3277
  className: "w-full flex-grow flex-col items-center justify-start"
3274
3278
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3275
3279
  className: "mx-auto mb-2 w-full"