@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
|
@@ -15,7 +15,7 @@ var EmojiIcon = function EmojiIcon(_ref) {
|
|
|
15
15
|
className: "sc-user-input--emoji-icon-wrapper",
|
|
16
16
|
onClick: onClick
|
|
17
17
|
}, /*#__PURE__*/_react["default"].createElement("svg", {
|
|
18
|
-
className: "sc-user-input--emoji-icon " + (isActive ?
|
|
18
|
+
className: "sc-user-input--emoji-icon " + (isActive ? "active" : ""),
|
|
19
19
|
version: "1.1",
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
x: "0px",
|
|
@@ -28,11 +28,11 @@ var PopupWindow = /*#__PURE__*/function (_Component) {
|
|
|
28
28
|
}
|
|
29
29
|
var _proto = PopupWindow.prototype;
|
|
30
30
|
_proto.componentDidMount = function componentDidMount() {
|
|
31
|
-
this.scLauncher = document.querySelector(
|
|
32
|
-
this.scLauncher.addEventListener(
|
|
31
|
+
this.scLauncher = document.querySelector("#sc-launcher");
|
|
32
|
+
this.scLauncher.addEventListener("click", this.interceptLauncherClick);
|
|
33
33
|
};
|
|
34
34
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
35
|
-
this.scLauncher.removeEventListener(
|
|
35
|
+
this.scLauncher.removeEventListener("click", this.interceptLauncherClick);
|
|
36
36
|
};
|
|
37
37
|
_proto.render = function render() {
|
|
38
38
|
var _this2 = this;
|
|
@@ -45,7 +45,7 @@ var PopupWindow = /*#__PURE__*/function (_Component) {
|
|
|
45
45
|
return _this2.emojiPopup = e;
|
|
46
46
|
}
|
|
47
47
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
48
|
-
className: "sc-popup-window--cointainer " + (isOpen ?
|
|
48
|
+
className: "sc-popup-window--cointainer " + (isOpen ? "" : "closed")
|
|
49
49
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
50
50
|
onChange: this.props.onInputChange,
|
|
51
51
|
className: "sc-popup-window--search",
|
package/lib/messageTypes.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var MESSAGE_TYPES = {
|
|
4
4
|
CLIENT: {
|
|
5
|
-
NEW_VISITOR:
|
|
6
|
-
MESSAGE:
|
|
7
|
-
RETURNING_VISITOR:
|
|
5
|
+
NEW_VISITOR: "client.new_visitor",
|
|
6
|
+
MESSAGE: "client.message",
|
|
7
|
+
RETURNING_VISITOR: "client.returning_visitor"
|
|
8
8
|
},
|
|
9
9
|
BROKER: {
|
|
10
|
-
VISITOR_ID:
|
|
11
|
-
MESSAGE:
|
|
10
|
+
VISITOR_ID: "broker.visitor_id",
|
|
11
|
+
MESSAGE: "broker.message"
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
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/lib/styles/header.css
CHANGED
package/lib/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/lib/styles/message.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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/pioneer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Embedded blockchain intelligence",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -12,15 +12,19 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "nwb build-react-component --copy-files",
|
|
15
|
+
"build:watch": "nwb build-react-component --copy-files --watch",
|
|
15
16
|
"clean": "nwb clean-module && nwb clean-demo",
|
|
17
|
+
"format": "prettier --write src",
|
|
16
18
|
"lint": "eslint src demo/src",
|
|
17
19
|
"start": "nwb serve-react-demo",
|
|
18
20
|
"gh:publish": "nwb build-demo && gh-pages -d demo/dist"
|
|
19
21
|
},
|
|
20
22
|
"dependencies": {
|
|
23
|
+
"@pioneer-sdk/sdk": "1.1.42",
|
|
21
24
|
"classnames": "^2.2.6",
|
|
22
25
|
"emoji-js": "^3.5.0",
|
|
23
26
|
"gh-pages": "^3.1.0",
|
|
27
|
+
"prettier": "^2.8.3",
|
|
24
28
|
"prop-types": "^15.7.2",
|
|
25
29
|
"ramda": "^0.27.1",
|
|
26
30
|
"react-highlight.js": "^1.0.7",
|