@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.
- package/es/assets/Pioneer-round.png +0 -0
- package/es/assets/chat-icon.svg +5339 -1
- package/es/components/ChatWindow.js +10 -10
- package/es/components/Header.js +5 -3
- package/es/components/LauncherNew.js +82 -20
- package/es/components/MessageList.js +4 -4
- package/es/components/Messages/EmojiMessage.js +1 -1
- package/es/components/Messages/FileMessage.js +2 -2
- package/es/components/Messages/TextMessage.js +3 -3
- package/es/components/Messages/index.js +16 -16
- package/es/components/PinMessage.js +7 -7
- package/es/components/UserInput.js +16 -16
- package/es/components/emoji-picker/EmojiPicker.js +3 -3
- package/es/components/emoji-picker/emojiData.json +1305 -1
- package/es/components/icons/EmojiIcon.js +2 -2
- package/es/components/icons/FileIcon.js +1 -1
- package/es/components/icons/SendIcon.js +1 -1
- package/es/components/popups/PopupWindow.js +5 -5
- package/es/index.js +2 -3
- package/es/messageTypes.js +5 -5
- package/es/styles/emojiPicker.css +2 -2
- package/es/styles/header.css +1 -1
- package/es/styles/index.js +8 -8
- package/es/styles/launcher.css +4 -5
- package/es/styles/message.css +1 -1
- package/es/styles/popup-window.css +2 -2
- package/es/styles/user-input.css +3 -3
- package/lib/assets/Pioneer-round.png +0 -0
- package/lib/assets/chat-icon.svg +5339 -1
- package/lib/components/ChatWindow.js +3 -3
- package/lib/components/Header.js +3 -1
- package/lib/components/LauncherNew.js +74 -12
- package/lib/components/MessageList.js +1 -1
- package/lib/components/Messages/TextMessage.js +1 -1
- package/lib/components/Messages/index.js +9 -9
- package/lib/components/PinMessage.js +3 -3
- package/lib/components/UserInput.js +9 -9
- package/lib/components/emoji-picker/emojiData.json +1305 -1
- package/lib/components/icons/EmojiIcon.js +1 -1
- package/lib/components/popups/PopupWindow.js +4 -4
- package/lib/messageTypes.js +5 -5
- package/lib/styles/emojiPicker.css +2 -2
- package/lib/styles/header.css +1 -1
- package/lib/styles/launcher.css +4 -5
- package/lib/styles/message.css +1 -1
- package/lib/styles/popup-window.css +2 -2
- package/lib/styles/user-input.css +3 -3
- package/package.json +5 -1
- package/umd/chat-icon.ef44a9ae.svg +5339 -0
- package/umd/{main.8da8d3c4.css → main.97f3bf4c.css} +2 -2
- package/umd/main.97f3bf4c.css.map +1 -0
- package/umd/pioneer.js +18411 -1823
- package/umd/pioneer.min.js +14 -3
- package/umd/pioneer.min.js.map +1 -1
- package/es/components/Launcher.js +0 -96
- package/lib/components/Launcher.js +0 -105
- package/umd/chat-icon.f032be1d.svg +0 -1
- package/umd/main.8da8d3c4.css.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
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 ?
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
26
|
-
this.scLauncher.addEventListener(
|
|
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(
|
|
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 ?
|
|
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
package/es/messageTypes.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var MESSAGE_TYPES = {
|
|
2
2
|
CLIENT: {
|
|
3
|
-
NEW_VISITOR:
|
|
4
|
-
MESSAGE:
|
|
5
|
-
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:
|
|
9
|
-
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
|
|
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
|
+
}
|
package/es/styles/header.css
CHANGED
package/es/styles/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
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";
|
package/es/styles/launcher.css
CHANGED
|
@@ -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
|
-
|
|
77
|
+
width: 22px;
|
|
79
78
|
height: 22px;
|
|
80
79
|
background: #ff4646;
|
|
81
80
|
color: white;
|
package/es/styles/message.css
CHANGED
package/es/styles/user-input.css
CHANGED
|
@@ -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,
|
|
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
|