@bigbinary/neeto-molecules 3.7.32 → 3.7.33

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.
@@ -61,17 +61,17 @@ var SESSION_CONTEXT_KEY = "NeetoReplayWidgetSessionContext";
61
61
  var INSTALLATION_HELP_EMAIL = "support@neeto.com";
62
62
  var SAMPLE_CONTEXT_CODE_STRING = "window.".concat(SESSION_CONTEXT_KEY, " = {\n key1: \"value\",\n key2: [\"array\", \"of\", \"values\"],\n /* More key-value pairs */\n}");
63
63
  var WIDGET_TYPES = {
64
- changelog: "changelog",
64
+ engage: "engage",
65
65
  chat: "chat",
66
66
  replay: "replay"
67
67
  };
68
68
  var WIDGET_HELP_LINKS = {
69
- changelog: "https://help.neetochangelog.com/articles/installation",
69
+ engage: "https://help.neetoengage.com/articles/installation",
70
70
  chat: "https://help.neetochat.com/articles/installation-using-javascript-snippet",
71
71
  replay: "https://help.neetoreplay.com/articles/install-widget"
72
72
  };
73
73
  var WIDGET_DESCRIPTIONS = {
74
- changelog: i18next.t("neetoMolecules.widget.email.body.values.embedCode.description.changelog"),
74
+ engage: i18next.t("neetoMolecules.widget.email.body.values.embedCode.description.engage"),
75
75
  chat: i18next.t("neetoMolecules.widget.email.body.values.embedCode.description.chat"),
76
76
  replay: i18next.t("neetoMolecules.widget.email.body.values.embedCode.description.replay")
77
77
  };
@@ -116,12 +116,12 @@ var SAMPLE_USER_IDENTITY_CODE_STRING = _defineProperty(_defineProperty(_definePr
116
116
  var WIDGET_CONFIG_URL = "/api/widget/v1/neeto_widget_tokens";
117
117
  var EMBED_CODE_EMAIL_URL = "/api/widget/v1/email_snippets";
118
118
  var CHAT_WIDGET_KB_BASE_URL = "https://help.neetochat.com";
119
- var CHANGELOG_WIDGET_KB_BASE_URL = "https://help.neetochangelog.com";
119
+ var ENGAGE_WIDGET_KB_BASE_URL = "https://help.neetoengage.com";
120
120
  var REPLAY_WIDGET_KB_BASE_URL = "https://help.neetoreplay.com";
121
121
  var NEETO_REPLAY_CONFIGURE_URL = "".concat(REPLAY_WIDGET_KB_BASE_URL, "/articles/configure-widget");
122
122
  var NEETO_CHAT_USER_IDENTITY_URL = "".concat(CHAT_WIDGET_KB_BASE_URL, "/articles/info-about-logged-in-users");
123
123
  var WIDGET_KB_HELP_URL = {
124
- changelog: "".concat(CHANGELOG_WIDGET_KB_BASE_URL, "/categories/widget-installation-usage"),
124
+ engage: "".concat(ENGAGE_WIDGET_KB_BASE_URL, "/categories/widget-installation-usage"),
125
125
  chat: "".concat(CHAT_WIDGET_KB_BASE_URL, "/categories/installation"),
126
126
  replay: "".concat(REPLAY_WIDGET_KB_BASE_URL, "/categories/widget-installation-usage")
127
127
  };
@@ -130,10 +130,10 @@ var USE_NEETO_WIDGET_NPM_PAGE_URL = "https://www.npmjs.com/package/@bigbinary/re
130
130
  var ChatWidgetBody = function ChatWidgetBody(_ref) {
131
131
  var widgets = _ref.widgets;
132
132
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
133
- children: [widgets.includes(WIDGET_TYPES.changelog) && /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
134
- i18nKey: "neetoMolecules.widget.email.body.values.embedCode.changelogHelp",
133
+ children: [widgets.includes(WIDGET_TYPES.engage) && /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
134
+ i18nKey: "neetoMolecules.widget.email.body.values.embedCode.engageHelp",
135
135
  values: {
136
- helpLink: WIDGET_HELP_LINKS.changelog
136
+ helpLink: WIDGET_HELP_LINKS.engage
137
137
  },
138
138
  components: {
139
139
  p: /*#__PURE__*/jsxRuntime.jsx(Typography, {
@@ -141,7 +141,7 @@ var ChatWidgetBody = function ChatWidgetBody(_ref) {
141
141
  style: "body2"
142
142
  }),
143
143
  a: /*#__PURE__*/jsxRuntime.jsx(Button, {
144
- href: WIDGET_HELP_LINKS.changelog,
144
+ href: WIDGET_HELP_LINKS.engage,
145
145
  rel: "noreferrer",
146
146
  style: "link",
147
147
  target: "_blank"
@@ -2240,15 +2240,15 @@ var embedWidgetEnvironment = function embedWidgetEnvironment() {
2240
2240
  var embedWidgetApiKey = function embedWidgetApiKey(apiKey) {
2241
2241
  return "apiKey: \"".concat(apiKey, "\",");
2242
2242
  };
2243
- var addChangelogOptions = function addChangelogOptions() {
2244
- return "neetoChangelogOptions: {\n elementId: \"neetochangelog-trigger\",\n},";
2243
+ var addEngageOptions = function addEngageOptions() {
2244
+ return "neetoEngageOptions: {\n elementId: \"neetoengage-trigger\",\n},";
2245
2245
  };
2246
2246
  var wrapBlockInOnLoad = function wrapBlockInOnLoad(codeBlock) {
2247
2247
  return "window.addEventListener(\"load\", () => ".concat(codeBlock, ");");
2248
2248
  };
2249
2249
  var embedWidgetFunctionCall = function embedWidgetFunctionCall(enabledWidgets, apiKey) {
2250
- return "embedNeetoWidget({\n ".concat(embedWidgetEnvironment(), "\n ").concat(indentAndFormat(embedWidgetApiKey(apiKey)), "\n ").concat(indentAndFormat(addChangelogOptions(), function (cmd) {
2251
- return getCommentedCommand(cmd, enabledWidgets.changelog);
2250
+ return "embedNeetoWidget({\n ".concat(embedWidgetEnvironment(), "\n ").concat(indentAndFormat(embedWidgetApiKey(apiKey)), "\n ").concat(indentAndFormat(addEngageOptions(), function (cmd) {
2251
+ return getCommentedCommand(cmd, enabledWidgets.engage);
2252
2252
  }), "\n})");
2253
2253
  };
2254
2254
  var filterMarkedCommands = function filterMarkedCommands(queryString) {