@bigbinary/neeto-molecules 1.0.52 → 1.0.54

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.
@@ -130,13 +130,15 @@ var FRAMEWORK_SELECT_OPTIONS = [{
130
130
  var SAMPLE_USER_IDENTITY_CODE_STRING = (_SAMPLE_USER_IDENTITY = {}, _defineProperty(_SAMPLE_USER_IDENTITY, AVAILABLE_FRAMEWORK_OPTIONS.rails, "window.".concat(NEETO_WIDGET_USER_IDENTITY_KEY, " = {\n user_identifier: \"<%= current_user.id %>\", // User identifier\"\n name: \"<%= current_user.name %>\", // Full name\n email: \"<%= current_user.email %>\", // Email address\n started_at: \"<%= current_user.created_at.to_i %>\" // Signup date as a Unix timestamp ,\n}")), _defineProperty(_SAMPLE_USER_IDENTITY, AVAILABLE_FRAMEWORK_OPTIONS.django, "window.".concat(NEETO_WIDGET_USER_IDENTITY_KEY, " = {\n user_identifier: \"{{ request.user.id|escapejs }}\", // User identifier\n name: \"{{ request.user.name|escapejs }}\", // Full name\n email: \"{{ request.user.email|escapejs }}\", // Email address\n started_at: \"{{ request.user.created_at|date:'U' }}\" // Signup date as a Unix timestamp\"\n}")), _defineProperty(_SAMPLE_USER_IDENTITY, AVAILABLE_FRAMEWORK_OPTIONS.php, "window.".concat(NEETO_WIDGET_USER_IDENTITY_KEY, " = {\n user_identifier: <?php echo json_encode($current_user->id) ?>, // User identifier\n name: <?php echo json_encode($current_user->name) ?>, // Full name\n email: <?php echo json_encode($current_user->email) ?>, // Email address\n started_at: <?php echo strtotime($current_user->created_at) ?> // Signup date as a Unix timestamp\" ,\n}")), _SAMPLE_USER_IDENTITY);
131
131
  var WIDGET_CONFIG_URL = "api/widget/v1/neeto_widget_tokens";
132
132
  var EMBED_CODE_EMAIL_URL = "api/widget/v1/email_snippets";
133
- var WIDGET_KB_BASE_URL = "https://neetowidgethelp.neetokb.com";
134
- var NEETO_REPLAY_CONFIGURE_URL = "".concat(WIDGET_KB_BASE_URL, "/articles/configure-neetoreplay");
135
- var NEETO_CHAT_USER_IDENTITY_URL = "".concat(WIDGET_KB_BASE_URL, "/articles/configuring-neetochat");
133
+ var CHAT_WIDGET_KB_BASE_URL = "https://help.neetochat.com";
134
+ var CHANGELOG_WIDGET_KB_BASE_URL = "https://help.neetochangelog.com";
135
+ var REPLAY_WIDGET_KB_BASE_URL = "https://help.neetoreplay.com";
136
+ var NEETO_REPLAY_CONFIGURE_URL = "".concat(REPLAY_WIDGET_KB_BASE_URL, "/articles/configure-widget");
137
+ var NEETO_CHAT_USER_IDENTITY_URL = "".concat(CHAT_WIDGET_KB_BASE_URL, "/articles/info-about-logged-in-users");
136
138
  var WIDGET_KB_HELP_URL = {
137
- changelog: "".concat(WIDGET_KB_BASE_URL, "/categories/getting-started-with-neetochangelog"),
138
- chat: "".concat(WIDGET_KB_BASE_URL, "/categories/getting-started-with-neetochat"),
139
- replay: "".concat(WIDGET_KB_BASE_URL, "/categories/getting-started-with-neetoreplay")
139
+ changelog: "".concat(CHANGELOG_WIDGET_KB_BASE_URL, "/categories/widget-installation-usage"),
140
+ chat: "".concat(CHAT_WIDGET_KB_BASE_URL, "/categories/installation"),
141
+ replay: "".concat(REPLAY_WIDGET_KB_BASE_URL, "/categories/widget-installation-usage")
140
142
  };
141
143
 
142
144
  function _extends() {
@@ -3025,9 +3027,9 @@ var SelectionTabs = function SelectionTabs(_ref) {
3025
3027
  }), /*#__PURE__*/React__default["default"].createElement("div", {
3026
3028
  className: "flex items-center space-x-1"
3027
3029
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, null, "neeto", formattedPrimaryWidget), /*#__PURE__*/React__default["default"].createElement("a", {
3030
+ href: WIDGET_KB_HELP_URL[primarySelectedWidget],
3028
3031
  rel: "noreferrer",
3029
- target: "_blank",
3030
- href: primarySelectedWidget ? WIDGET_KB_HELP_URL[primarySelectedWidget] : WIDGET_KB_BASE_URL
3032
+ target: "_blank"
3031
3033
  }, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Info, {
3032
3034
  size: 16
3033
3035
  })))), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -3121,12 +3123,6 @@ var EmbedCode = function EmbedCode(_ref) {
3121
3123
  marginBottom: "8px"
3122
3124
  }
3123
3125
  }),
3124
- configureLink: /*#__PURE__*/React__default["default"].createElement("a", {
3125
- className: "neeto-ui-text-primary-800",
3126
- href: WIDGET_KB_BASE_URL,
3127
- rel: "noreferrer",
3128
- target: "_blank"
3129
- }),
3130
3126
  mail: /*#__PURE__*/React__default["default"].createElement("a", {
3131
3127
  className: "neeto-ui-text-primary-800",
3132
3128
  href: "mailto:".concat(INSTALLATION_HELP_EMAIL),
@@ -3136,7 +3132,6 @@ var EmbedCode = function EmbedCode(_ref) {
3136
3132
  },
3137
3133
  values: {
3138
3134
  val: getSortedPrefixedWidgets(selectedWidgets),
3139
- neetoKbUrl: WIDGET_KB_BASE_URL,
3140
3135
  helpEmail: INSTALLATION_HELP_EMAIL
3141
3136
  }
3142
3137
  }))