@bigbinary/neeto-molecules 1.0.53 → 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.
@@ -104,13 +104,15 @@ var FRAMEWORK_SELECT_OPTIONS = [{
104
104
  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);
105
105
  var WIDGET_CONFIG_URL = "api/widget/v1/neeto_widget_tokens";
106
106
  var EMBED_CODE_EMAIL_URL = "api/widget/v1/email_snippets";
107
- var WIDGET_KB_BASE_URL = "https://neetowidgethelp.neetokb.com";
108
- var NEETO_REPLAY_CONFIGURE_URL = "".concat(WIDGET_KB_BASE_URL, "/articles/configure-neetoreplay");
109
- var NEETO_CHAT_USER_IDENTITY_URL = "".concat(WIDGET_KB_BASE_URL, "/articles/configuring-neetochat");
107
+ var CHAT_WIDGET_KB_BASE_URL = "https://help.neetochat.com";
108
+ var CHANGELOG_WIDGET_KB_BASE_URL = "https://help.neetochangelog.com";
109
+ var REPLAY_WIDGET_KB_BASE_URL = "https://help.neetoreplay.com";
110
+ var NEETO_REPLAY_CONFIGURE_URL = "".concat(REPLAY_WIDGET_KB_BASE_URL, "/articles/configure-widget");
111
+ var NEETO_CHAT_USER_IDENTITY_URL = "".concat(CHAT_WIDGET_KB_BASE_URL, "/articles/info-about-logged-in-users");
110
112
  var WIDGET_KB_HELP_URL = {
111
- changelog: "".concat(WIDGET_KB_BASE_URL, "/categories/getting-started-with-neetochangelog"),
112
- chat: "".concat(WIDGET_KB_BASE_URL, "/categories/getting-started-with-neetochat"),
113
- replay: "".concat(WIDGET_KB_BASE_URL, "/categories/getting-started-with-neetoreplay")
113
+ changelog: "".concat(CHANGELOG_WIDGET_KB_BASE_URL, "/categories/widget-installation-usage"),
114
+ chat: "".concat(CHAT_WIDGET_KB_BASE_URL, "/categories/installation"),
115
+ replay: "".concat(REPLAY_WIDGET_KB_BASE_URL, "/categories/widget-installation-usage")
114
116
  };
115
117
 
116
118
  function _extends() {
@@ -2999,9 +3001,9 @@ var SelectionTabs = function SelectionTabs(_ref) {
2999
3001
  }), /*#__PURE__*/React.createElement("div", {
3000
3002
  className: "flex items-center space-x-1"
3001
3003
  }, /*#__PURE__*/React.createElement(Label, null, "neeto", formattedPrimaryWidget), /*#__PURE__*/React.createElement("a", {
3004
+ href: WIDGET_KB_HELP_URL[primarySelectedWidget],
3002
3005
  rel: "noreferrer",
3003
- target: "_blank",
3004
- href: primarySelectedWidget ? WIDGET_KB_HELP_URL[primarySelectedWidget] : WIDGET_KB_BASE_URL
3006
+ target: "_blank"
3005
3007
  }, /*#__PURE__*/React.createElement(Info, {
3006
3008
  size: 16
3007
3009
  })))), /*#__PURE__*/React.createElement("div", {
@@ -3095,12 +3097,6 @@ var EmbedCode = function EmbedCode(_ref) {
3095
3097
  marginBottom: "8px"
3096
3098
  }
3097
3099
  }),
3098
- configureLink: /*#__PURE__*/React.createElement("a", {
3099
- className: "neeto-ui-text-primary-800",
3100
- href: WIDGET_KB_BASE_URL,
3101
- rel: "noreferrer",
3102
- target: "_blank"
3103
- }),
3104
3100
  mail: /*#__PURE__*/React.createElement("a", {
3105
3101
  className: "neeto-ui-text-primary-800",
3106
3102
  href: "mailto:".concat(INSTALLATION_HELP_EMAIL),
@@ -3110,7 +3106,6 @@ var EmbedCode = function EmbedCode(_ref) {
3110
3106
  },
3111
3107
  values: {
3112
3108
  val: getSortedPrefixedWidgets(selectedWidgets),
3113
- neetoKbUrl: WIDGET_KB_BASE_URL,
3114
3109
  helpEmail: INSTALLATION_HELP_EMAIL
3115
3110
  }
3116
3111
  }))