@pioneer-platform/pioneer 1.0.5 → 1.0.6

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.
Files changed (58) hide show
  1. package/es/assets/Pioneer-round.png +0 -0
  2. package/es/assets/chat-icon.svg +5339 -1
  3. package/es/components/ChatWindow.js +10 -10
  4. package/es/components/Header.js +5 -3
  5. package/es/components/LauncherNew.js +82 -20
  6. package/es/components/MessageList.js +4 -4
  7. package/es/components/Messages/EmojiMessage.js +1 -1
  8. package/es/components/Messages/FileMessage.js +2 -2
  9. package/es/components/Messages/TextMessage.js +3 -3
  10. package/es/components/Messages/index.js +16 -16
  11. package/es/components/PinMessage.js +7 -7
  12. package/es/components/UserInput.js +16 -16
  13. package/es/components/emoji-picker/EmojiPicker.js +3 -3
  14. package/es/components/emoji-picker/emojiData.json +1305 -1
  15. package/es/components/icons/EmojiIcon.js +2 -2
  16. package/es/components/icons/FileIcon.js +1 -1
  17. package/es/components/icons/SendIcon.js +1 -1
  18. package/es/components/popups/PopupWindow.js +5 -5
  19. package/es/index.js +2 -3
  20. package/es/messageTypes.js +5 -5
  21. package/es/styles/emojiPicker.css +2 -2
  22. package/es/styles/header.css +1 -1
  23. package/es/styles/index.js +8 -8
  24. package/es/styles/launcher.css +4 -5
  25. package/es/styles/message.css +1 -1
  26. package/es/styles/popup-window.css +2 -2
  27. package/es/styles/user-input.css +3 -3
  28. package/lib/assets/Pioneer-round.png +0 -0
  29. package/lib/assets/chat-icon.svg +5339 -1
  30. package/lib/components/ChatWindow.js +3 -3
  31. package/lib/components/Header.js +3 -1
  32. package/lib/components/LauncherNew.js +74 -12
  33. package/lib/components/MessageList.js +1 -1
  34. package/lib/components/Messages/TextMessage.js +1 -1
  35. package/lib/components/Messages/index.js +9 -9
  36. package/lib/components/PinMessage.js +3 -3
  37. package/lib/components/UserInput.js +9 -9
  38. package/lib/components/emoji-picker/emojiData.json +1305 -1
  39. package/lib/components/icons/EmojiIcon.js +1 -1
  40. package/lib/components/popups/PopupWindow.js +4 -4
  41. package/lib/messageTypes.js +5 -5
  42. package/lib/styles/emojiPicker.css +2 -2
  43. package/lib/styles/header.css +1 -1
  44. package/lib/styles/launcher.css +4 -5
  45. package/lib/styles/message.css +1 -1
  46. package/lib/styles/popup-window.css +2 -2
  47. package/lib/styles/user-input.css +3 -3
  48. package/package.json +5 -1
  49. package/umd/chat-icon.ef44a9ae.svg +5339 -0
  50. package/umd/{main.8da8d3c4.css → main.97f3bf4c.css} +2 -2
  51. package/umd/main.97f3bf4c.css.map +1 -0
  52. package/umd/pioneer.js +18411 -1823
  53. package/umd/pioneer.min.js +14 -3
  54. package/umd/pioneer.min.js.map +1 -1
  55. package/es/components/Launcher.js +0 -96
  56. package/lib/components/Launcher.js +0 -105
  57. package/umd/chat-icon.f032be1d.svg +0 -1
  58. package/umd/main.8da8d3c4.css.map +0 -1
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  var EmojiIcon = function EmojiIcon(_ref) {
3
3
  var tooltip = _ref.tooltip,
4
4
  onClick = _ref.onClick,
@@ -10,7 +10,7 @@ var EmojiIcon = function EmojiIcon(_ref) {
10
10
  className: "sc-user-input--emoji-icon-wrapper",
11
11
  onClick: onClick
12
12
  }, /*#__PURE__*/React.createElement("svg", {
13
- className: "sc-user-input--emoji-icon " + (isActive ? 'active' : ''),
13
+ className: "sc-user-input--emoji-icon " + (isActive ? "active" : ""),
14
14
  version: "1.1",
15
15
  xmlns: "http://www.w3.org/2000/svg",
16
16
  x: "0px",
@@ -1,6 +1,6 @@
1
1
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
2
2
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3
- import React, { Component } from 'react';
3
+ import React, { Component } from "react";
4
4
  var FileIcon = /*#__PURE__*/function (_Component) {
5
5
  _inheritsLoose(FileIcon, _Component);
6
6
  function FileIcon() {
@@ -1,6 +1,6 @@
1
1
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
2
2
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3
- import React, { Component } from 'react';
3
+ import React, { Component } from "react";
4
4
  var SendIcon = /*#__PURE__*/function (_Component) {
5
5
  _inheritsLoose(SendIcon, _Component);
6
6
  function SendIcon() {
@@ -4,7 +4,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
6
6
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
- import React, { Component } from 'react';
7
+ import React, { Component } from "react";
8
8
  var PopupWindow = /*#__PURE__*/function (_Component) {
9
9
  _inheritsLoose(PopupWindow, _Component);
10
10
  function PopupWindow() {
@@ -22,11 +22,11 @@ var PopupWindow = /*#__PURE__*/function (_Component) {
22
22
  }
23
23
  var _proto = PopupWindow.prototype;
24
24
  _proto.componentDidMount = function componentDidMount() {
25
- this.scLauncher = document.querySelector('#sc-launcher');
26
- this.scLauncher.addEventListener('click', this.interceptLauncherClick);
25
+ this.scLauncher = document.querySelector("#sc-launcher");
26
+ this.scLauncher.addEventListener("click", this.interceptLauncherClick);
27
27
  };
28
28
  _proto.componentWillUnmount = function componentWillUnmount() {
29
- this.scLauncher.removeEventListener('click', this.interceptLauncherClick);
29
+ this.scLauncher.removeEventListener("click", this.interceptLauncherClick);
30
30
  };
31
31
  _proto.render = function render() {
32
32
  var _this2 = this;
@@ -39,7 +39,7 @@ var PopupWindow = /*#__PURE__*/function (_Component) {
39
39
  return _this2.emojiPopup = e;
40
40
  }
41
41
  }, /*#__PURE__*/React.createElement("div", {
42
- className: "sc-popup-window--cointainer " + (isOpen ? '' : 'closed')
42
+ className: "sc-popup-window--cointainer " + (isOpen ? "" : "closed")
43
43
  }, /*#__PURE__*/React.createElement("input", {
44
44
  onChange: this.props.onInputChange,
45
45
  className: "sc-popup-window--search",
package/es/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import './styles';
2
- // import Launcher from './components/Launcher';
3
- import Launcher from './components/LauncherNew';
1
+ import "./styles";
2
+ import Launcher from "./components/LauncherNew";
4
3
  export { Launcher };
@@ -1,12 +1,12 @@
1
1
  var MESSAGE_TYPES = {
2
2
  CLIENT: {
3
- NEW_VISITOR: 'client.new_visitor',
4
- MESSAGE: 'client.message',
5
- RETURNING_VISITOR: 'client.returning_visitor'
3
+ NEW_VISITOR: "client.new_visitor",
4
+ MESSAGE: "client.message",
5
+ RETURNING_VISITOR: "client.returning_visitor"
6
6
  },
7
7
  BROKER: {
8
- VISITOR_ID: 'broker.visitor_id',
9
- MESSAGE: 'broker.message'
8
+ VISITOR_ID: "broker.visitor_id",
9
+ MESSAGE: "broker.message"
10
10
  }
11
11
  };
12
12
  module.exports = MESSAGE_TYPES;
@@ -29,10 +29,10 @@
29
29
  cursor: pointer;
30
30
  vertical-align: middle;
31
31
  font-size: 28px;
32
- transition: transform 60ms ease-out,-webkit-transform 60ms ease-out;
32
+ transition: transform 60ms ease-out, -webkit-transform 60ms ease-out;
33
33
  transition-delay: 60ms;
34
34
  }
35
35
 
36
36
  .sc-emoji-picker--emoji:hover {
37
37
  transform: scale(1.4);
38
- }
38
+ }
@@ -5,7 +5,7 @@
5
5
  border-top-right-radius: 9px;
6
6
  color: white;
7
7
  padding: 10px;
8
- box-shadow: 0 1px 4px rgba(0,0,0,.2);
8
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
9
9
  position: relative;
10
10
  box-sizing: border-box;
11
11
  display: flex;
@@ -1,8 +1,8 @@
1
- import './emojiPicker.css';
2
- import './chat-window.css';
3
- import './launcher.css';
4
- import './header.css';
5
- import './message.css';
6
- import './user-input.css';
7
- import './popup-window.css';
8
- import './pin-message.css';
1
+ import "./emojiPicker.css";
2
+ import "./chat-window.css";
3
+ import "./launcher.css";
4
+ import "./header.css";
5
+ import "./message.css";
6
+ import "./user-input.css";
7
+ import "./popup-window.css";
8
+ import "./pin-message.css";
@@ -13,11 +13,11 @@
13
13
  }
14
14
 
15
15
  .sc-launcher:before {
16
- content: '';
16
+ content: "";
17
17
  position: relative;
18
18
  display: block;
19
19
  width: 60px;
20
- height: 60px;
20
+ height: 60px;
21
21
  border-radius: 50%;
22
22
  transition: box-shadow 0.2s ease-in-out;
23
23
  }
@@ -40,7 +40,6 @@
40
40
  transition: opacity 100ms ease-in-out, transform 100ms ease-in-out;
41
41
  width: 60px;
42
42
  height: 60px;
43
-
44
43
  }
45
44
 
46
45
  .sc-launcher .sc-open-icon {
@@ -64,7 +63,7 @@
64
63
  }
65
64
 
66
65
  .sc-launcher:hover {
67
- box-shadow: 0 0px 27px 1.5px rgba(0,0,0,0.2);
66
+ box-shadow: 0 0px 27px 1.5px rgba(0, 0, 0, 0.2);
68
67
  }
69
68
 
70
69
  .sc-new-messages-count {
@@ -75,7 +74,7 @@
75
74
  justify-content: center;
76
75
  flex-direction: column;
77
76
  border-radius: 50%;
78
- width: 22px;
77
+ width: 22px;
79
78
  height: 22px;
80
79
  background: #ff4646;
81
80
  color: white;
@@ -61,7 +61,7 @@
61
61
 
62
62
  .sc-message--file {
63
63
  background: white;
64
- border: solid 1px #CCCDD1;
64
+ border: solid 1px #cccdd1;
65
65
  padding: 15px 20px;
66
66
  border-radius: 5px;
67
67
  display: flex;
@@ -57,5 +57,5 @@
57
57
  }
58
58
 
59
59
  .sc-popup-window--search::placeholder {
60
- color: #C1C7CD;
61
- }
60
+ color: #c1c7cd;
61
+ }
@@ -7,10 +7,9 @@
7
7
  background-color: #f4f7f9;
8
8
  border-bottom-left-radius: 10px;
9
9
  border-bottom-right-radius: 10px;
10
- transition: background-color .2s ease,box-shadow .2s ease;
10
+ transition: background-color 0.2s ease, box-shadow 0.2s ease;
11
11
  }
12
12
 
13
-
14
13
  .sc-user-input--text {
15
14
  width: 300px;
16
15
  resize: none;
@@ -126,7 +125,8 @@
126
125
  align-self: center;
127
126
  }
128
127
 
129
- .sc-user-input--emoji-icon path, .sc-user-input--emoji-icon circle {
128
+ .sc-user-input--emoji-icon path,
129
+ .sc-user-input--emoji-icon circle {
130
130
  fill: rgba(86, 88, 103, 0.3);
131
131
  }
132
132
 
Binary file