@botonic/react 0.21.2 → 0.21.4
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/package.json +10 -10
- package/src/components/location.jsx +2 -2
- package/src/components/pic.jsx +1 -1
- package/src/webview.jsx +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botonic/react",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Build Chatbots using React",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"README.md"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@botonic/core": "~0.21.
|
|
32
|
+
"@botonic/core": "~0.21.5",
|
|
33
33
|
"axios": "^0.24.0",
|
|
34
34
|
"emoji-picker-react": "^3.2.3",
|
|
35
35
|
"framer-motion": "^3.1.1",
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
"uuid": "^8.3.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/cli": "^7.
|
|
57
|
-
"@babel/core": "^7.
|
|
58
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
59
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
|
60
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
61
|
-
"@babel/preset-env": "^7.
|
|
62
|
-
"@babel/preset-react": "^7.
|
|
56
|
+
"@babel/cli": "^7.21.0",
|
|
57
|
+
"@babel/core": "^7.21.4",
|
|
58
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
59
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
60
|
+
"@babel/plugin-transform-runtime": "^7.21.4",
|
|
61
|
+
"@babel/preset-env": "^7.21.4",
|
|
62
|
+
"@babel/preset-react": "^7.18.6",
|
|
63
63
|
"@testing-library/react": "^12.0.0",
|
|
64
64
|
"@testing-library/react-hooks": "^7.0.0",
|
|
65
65
|
"@types/react": "17.0.27",
|
|
66
|
-
"babel-plugin-add-module-exports": "^1.0.
|
|
66
|
+
"babel-plugin-add-module-exports": "^1.0.4",
|
|
67
67
|
"identity-obj-proxy": "^3.0.0",
|
|
68
68
|
"react-test-renderer": "^16.14.0"
|
|
69
69
|
},
|
|
@@ -16,8 +16,8 @@ const serialize = locationProps => {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export const Location = props => {
|
|
19
|
-
const lat =
|
|
20
|
-
|
|
19
|
+
const { lat, long } = props
|
|
20
|
+
|
|
21
21
|
const renderBrowser = () => {
|
|
22
22
|
const locationUrl = `https://www.google.com/maps/search/?api=1&query=${lat},${long}`
|
|
23
23
|
return (
|
package/src/components/pic.jsx
CHANGED
|
@@ -4,7 +4,7 @@ import styled from 'styled-components'
|
|
|
4
4
|
import { COLORS, WEBCHAT } from '../constants'
|
|
5
5
|
import { renderComponent } from '../util/react'
|
|
6
6
|
|
|
7
|
-
const PicStyled = styled.
|
|
7
|
+
const PicStyled = styled.img`
|
|
8
8
|
border-top-left-radius: 8px;
|
|
9
9
|
border-top-right-radius: 8px;
|
|
10
10
|
width: ${WEBCHAT.DEFAULTS.ELEMENT_WIDTH}px;
|
package/src/webview.jsx
CHANGED
|
@@ -56,6 +56,9 @@ class App extends React.Component {
|
|
|
56
56
|
location.href =
|
|
57
57
|
'https://twitter.com/messages/compose?recipient_id=' + impId
|
|
58
58
|
}
|
|
59
|
+
if (provider === PROVIDER.INSTAGRAM) {
|
|
60
|
+
window.close()
|
|
61
|
+
}
|
|
59
62
|
if (provider === PROVIDER.FACEBOOK) {
|
|
60
63
|
try {
|
|
61
64
|
window.MessengerExtensions.requestCloseBrowser(
|