Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2a48771e1 | ||
|
|
7bd6cf2466 | ||
|
|
ac9247fecb | ||
|
|
8439a1d100 | ||
|
|
b709245b46 | ||
|
|
52e30336ad | ||
|
|
bee884c52f | ||
|
|
2ffa63d583 | ||
|
|
a0d08f8f88 | ||
|
|
09cc934fbd | ||
|
|
5a0ed5d36d | ||
|
|
dbbe188adc | ||
|
|
91bec23c48 | ||
|
|
90815f361a | ||
|
|
4f0abfed09 | ||
|
|
ad28e4acc5 | ||
|
|
dcfbf8ae02 | ||
|
|
b02ee6282a | ||
|
|
3107cf6904 | ||
|
|
0fcb7e6e07 | ||
|
|
c80e3269c3 | ||
|
|
5ed83271d9 |
@@ -40,7 +40,14 @@ Options:
|
|||||||
| `confirmationMessage` (optional) | Text to show to ask for agreement to continue | `Waiting for a facilitator to join the chat...` |
|
| `confirmationMessage` (optional) | Text to show to ask for agreement to continue | `Waiting for a facilitator to join the chat...` |
|
||||||
| `exitMessage` (optional) | Text to show if the user rejects the Terms of Use. | `The chat is closed. You may close this window.` |
|
| `exitMessage` (optional) | Text to show if the user rejects the Terms of Use. | `The chat is closed. You may close this window.` |
|
||||||
| `anonymousDisplayName` (optional) | The display name for the chat user. | `Anonymous` |
|
| `anonymousDisplayName` (optional) | The display name for the chat user. | `Anonymous` |
|
||||||
| `chatUnavailableMessage` (optional) | Text to show if no-one is available to respond | `The chat service is not available right now. Please try again later.` |
|
| `chatUnavailableMessage` (optional) | Text to show on error or if the service is otherwise unavailable | `The chat service is not available right now. Please try again later.` |
|
||||||
|
| `waitMessage` (optional) | Text to show if there is at least one facilitator online but they do not respond right away | `Please be patient, our online facilitators are currently responding to other support requests.` |
|
||||||
|
| `chatOfflineMessage` (optional) | Text to show if there is no-one online respond | `All of the chat facilitators are currently offline.` |
|
||||||
|
| `size` (optional) | The size of the start button. Can be 'small' or 'large' | `large` |
|
||||||
|
| `position` (optional) | The position of the start button. Can be 'top left', 'top right', 'bottom left', 'bottom right'. | `bottom right` |
|
||||||
|
| `maxWaitTime` (optional) | The maximum time (in ms) the chatbox will wait for someone to join before closing the chat and displaying the chat unavailable message | 600000 |
|
||||||
|
| `waitInterval` (optional) | The interval (in ms) at which the bot sends the wait message | 120000 |
|
||||||
|
|
||||||
|
|
||||||
## Feature list
|
## Feature list
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,13 @@ export const mockInitCrypto = jest.fn()
|
|||||||
export const mockStartClient = jest.fn(() => {
|
export const mockStartClient = jest.fn(() => {
|
||||||
return Promise.resolve('value');
|
return Promise.resolve('value');
|
||||||
});
|
});
|
||||||
export const mockOnce = jest.fn()
|
export const mockOnce = jest
|
||||||
|
.fn()
|
||||||
|
.mockImplementation((event, callback) => {
|
||||||
|
if (event === 'sync') {
|
||||||
|
callback('PREPARED')
|
||||||
|
}
|
||||||
|
})
|
||||||
export const mockStopClient = jest.fn(() => {
|
export const mockStopClient = jest.fn(() => {
|
||||||
return Promise.resolve('value');
|
return Promise.resolve('value');
|
||||||
});
|
});
|
||||||
|
|||||||
38
dist/bookmarklet.js
vendored
38
dist/bookmarklet.js
vendored
File diff suppressed because one or more lines are too long
38
dist/chatbox.js
vendored
38
dist/chatbox.js
vendored
File diff suppressed because one or more lines are too long
36
dist/component.js
vendored
Normal file
36
dist/component.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
dist/index.html
vendored
7
dist/index.html
vendored
@@ -13,8 +13,8 @@
|
|||||||
<script src="./chatbox.js"></script>
|
<script src="./chatbox.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var config = {
|
var config = {
|
||||||
matrixServerUrl: 'https://matrix.safesupport.chat',
|
matrixServerUrl: 'https://matrix.rhok.space',
|
||||||
botId: '@help-bot:safesupport.chat',
|
botId: '@help-bot:rhok.space',
|
||||||
roomName: 'Support Chat',
|
roomName: 'Support Chat',
|
||||||
termsUrl: 'https://tosdr.org/',
|
termsUrl: 'https://tosdr.org/',
|
||||||
introMessage: "This chat application does not collect any of your personal data or any data from your use of this service.",
|
introMessage: "This chat application does not collect any of your personal data or any data from your use of this service.",
|
||||||
@@ -23,6 +23,9 @@
|
|||||||
exitMessage: 'The chat is closed. You may close this window.',
|
exitMessage: 'The chat is closed. You may close this window.',
|
||||||
chatUnavailableMessage: 'The chat service is not available right now. Please try again later.',
|
chatUnavailableMessage: 'The chat service is not available right now. Please try again later.',
|
||||||
anonymousDisplayName: 'Anonymous',
|
anonymousDisplayName: 'Anonymous',
|
||||||
|
position: 'bottom right',
|
||||||
|
size: 'large',
|
||||||
|
maxWaitTime: 1000*60*3, // 3 minutes
|
||||||
}
|
}
|
||||||
|
|
||||||
EmbeddableChatbox.mount(config);
|
EmbeddableChatbox.mount(config);
|
||||||
|
|||||||
15900
package-lock.json
generated
Normal file
15900
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "private-safesupport-chatbox",
|
"name": "private-safesupport-chatbox",
|
||||||
"version": "1.1.1",
|
"version": "2.1.1",
|
||||||
"description": "A secure and private embeddable chatbox that connects to Riot",
|
"description": "A secure and private embeddable chatbox that connects to Riot",
|
||||||
"main": "dist/chatbox.js",
|
"main": "dist/component.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "NODE_ENV=production webpack-cli --mode production",
|
"build": "NODE_ENV=production webpack-cli --mode production",
|
||||||
|
"build:profile": "webpack --mode production --config webpack.config.profile.js",
|
||||||
"start": "webpack-dev-server",
|
"start": "webpack-dev-server",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test-update-snapshots": "jest --updateSnapshot",
|
"test-update-snapshots": "jest --updateSnapshot",
|
||||||
@@ -76,7 +77,7 @@
|
|||||||
"author": "Nomadic Labs <sharon@nomadiclabs.ca",
|
"author": "Nomadic Labs <sharon@nomadiclabs.ca",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.7.7",
|
"@babel/core": "^7.10.3",
|
||||||
"@babel/plugin-proposal-class-properties": "7.7.4",
|
"@babel/plugin-proposal-class-properties": "7.7.4",
|
||||||
"@babel/plugin-proposal-decorators": "7.7.4",
|
"@babel/plugin-proposal-decorators": "7.7.4",
|
||||||
"@babel/plugin-proposal-export-namespace-from": "7.7.4",
|
"@babel/plugin-proposal-export-namespace-from": "7.7.4",
|
||||||
@@ -117,11 +118,13 @@
|
|||||||
"node-sass": "^4.13.1",
|
"node-sass": "^4.13.1",
|
||||||
"postcss-increase-specificity": "0.6.0",
|
"postcss-increase-specificity": "0.6.0",
|
||||||
"postcss-loader": "3.0.0",
|
"postcss-loader": "3.0.0",
|
||||||
|
"react": "^16.8.6",
|
||||||
|
"react-dom": "^16.8.6",
|
||||||
"sass-loader": "8.0.0",
|
"sass-loader": "8.0.0",
|
||||||
"style-loader": "1.1.2",
|
"style-loader": "1.1.2",
|
||||||
"wait-for-expect": "^3.0.2",
|
"wait-for-expect": "^3.0.2",
|
||||||
"webpack": "4.41.5",
|
"webpack": "4.41.5",
|
||||||
"webpack-bundle-analyzer": "^3.7.0",
|
"webpack-bundle-analyzer": "^3.8.0",
|
||||||
"webpack-cli": "3.3.10",
|
"webpack-cli": "3.3.10",
|
||||||
"webpack-dev-server": "3.10.1",
|
"webpack-dev-server": "3.10.1",
|
||||||
"webpack-obfuscator": "0.22.0",
|
"webpack-obfuscator": "0.22.0",
|
||||||
@@ -136,11 +139,13 @@
|
|||||||
"node-localstorage": "^2.1.5",
|
"node-localstorage": "^2.1.5",
|
||||||
"olm": "https://packages.matrix.org/npm/olm/olm-3.1.4.tgz",
|
"olm": "https://packages.matrix.org/npm/olm/olm-3.1.4.tgz",
|
||||||
"prop-types": "^15.6.2",
|
"prop-types": "^15.6.2",
|
||||||
"react": "^16.8.6",
|
|
||||||
"react-dom": "^16.8.6",
|
|
||||||
"react-onclickoutside": "^6.9.0",
|
"react-onclickoutside": "^6.9.0",
|
||||||
"react-test-renderer": "^16.13.0",
|
"react-test-renderer": "^16.13.0",
|
||||||
"react-transition-group": "^4.0.0",
|
"react-transition-group": "^4.0.0",
|
||||||
"uuidv4": "^6.0.2"
|
"uuidv4": "^6.0.2"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "^16.8.6",
|
||||||
|
"react-dom": "^16.8.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,9 @@
|
|||||||
exitMessage: 'The chat is closed. You may close this window.',
|
exitMessage: 'The chat is closed. You may close this window.',
|
||||||
chatUnavailableMessage: 'The chat service is not available right now. Please try again later.',
|
chatUnavailableMessage: 'The chat service is not available right now. Please try again later.',
|
||||||
anonymousDisplayName: 'Anonymous',
|
anonymousDisplayName: 'Anonymous',
|
||||||
|
position: 'bottom right',
|
||||||
|
size: 'large',
|
||||||
|
maxWaitTime: 1000*60*3, // 3 minutes
|
||||||
}
|
}
|
||||||
|
|
||||||
EmbeddableChatbox.mount(config);
|
EmbeddableChatbox.mount(config);
|
||||||
|
|||||||
@@ -26,14 +26,56 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@keyframes slideInDown {
|
||||||
|
from {
|
||||||
|
transform: translate3d(0, -100%, 0);
|
||||||
|
display: inherit;
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: translate3d(0, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideOutUp {
|
||||||
|
from {
|
||||||
|
transform: translate3d(0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
display: none;
|
||||||
|
visibility: hidden;
|
||||||
|
transform: translate3d(0, -100%, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.docked-widget {
|
.docked-widget {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 10px;
|
|
||||||
right: 10px;
|
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
width: 400px;
|
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
font-size: $base-font-size;
|
font-size: $base-font-size;
|
||||||
|
|
||||||
|
&.size-large {
|
||||||
|
width: 400px;
|
||||||
|
|
||||||
|
.dock {
|
||||||
|
width: 400px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.size-small {
|
||||||
|
#open-chatbox-label {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
margin-left: 0.5em;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dock {
|
.dock {
|
||||||
@@ -41,7 +83,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 400px;
|
|
||||||
max-width: calc(100vw - 10px);
|
max-width: calc(100vw - 10px);
|
||||||
color: $white;
|
color: $white;
|
||||||
font-family: $theme-font;
|
font-family: $theme-font;
|
||||||
@@ -53,6 +94,7 @@
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
|
||||||
|
|
||||||
#open-chatbox-label {
|
#open-chatbox-label {
|
||||||
background: $theme-color;
|
background: $theme-color;
|
||||||
padding: 0.75em;
|
padding: 0.75em;
|
||||||
@@ -105,6 +147,10 @@
|
|||||||
|
|
||||||
&-entering {
|
&-entering {
|
||||||
animation-name: slideInUp;
|
animation-name: slideInUp;
|
||||||
|
|
||||||
|
&.position-top {
|
||||||
|
animation-name: slideInDown;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&-entered {
|
&-entered {
|
||||||
display: inherit;
|
display: inherit;
|
||||||
@@ -112,6 +158,10 @@
|
|||||||
}
|
}
|
||||||
&-exiting {
|
&-exiting {
|
||||||
animation-name: slideOutDown;
|
animation-name: slideOutDown;
|
||||||
|
|
||||||
|
&.position-top {
|
||||||
|
animation-name: slideOutUp;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&-exited {
|
&-exited {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -521,6 +571,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 420px){
|
@media screen and (max-width: 420px){
|
||||||
|
.docked-widget {
|
||||||
|
.dock {
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
#open-chatbox-label {
|
||||||
|
flex: 0 1 auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.docked-widget {
|
.docked-widget {
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ const ENCRYPTION_CONFIG = { "algorithm": "m.megolm.v1.aes-sha2" };
|
|||||||
const ENCRYPTION_NOTICE = "Messages in this chat are secured with end-to-end encryption."
|
const ENCRYPTION_NOTICE = "Messages in this chat are secured with end-to-end encryption."
|
||||||
const UNENCRYPTION_NOTICE = "Messages in this chat are not encrypted."
|
const UNENCRYPTION_NOTICE = "Messages in this chat are not encrypted."
|
||||||
const RESTARTING_UNENCRYPTED_CHAT_MESSAGE = "Restarting chat without encryption."
|
const RESTARTING_UNENCRYPTED_CHAT_MESSAGE = "Restarting chat without encryption."
|
||||||
const WAIT_TIME_MS = 120000 // 2 minutes
|
|
||||||
const CHAT_IS_OFFLINE_NOTICE = "CHAT_OFFLINE"
|
const CHAT_IS_OFFLINE_NOTICE = "CHAT_OFFLINE"
|
||||||
|
|
||||||
const DEFAULT_MATRIX_SERVER = "https://matrix.rhok.space/"
|
const DEFAULT_MATRIX_SERVER = "https://matrix.rhok.space/"
|
||||||
@@ -40,6 +39,10 @@ const DEFAULT_CHAT_UNAVAILABLE_MESSAGE = "The chat service is not available righ
|
|||||||
const DEFAULT_CHAT_OFFLINE_MESSAGE = "All of the chat facilitators are currently offline."
|
const DEFAULT_CHAT_OFFLINE_MESSAGE = "All of the chat facilitators are currently offline."
|
||||||
const DEFAULT_WAIT_MESSAGE = "Please be patient, our online facilitators are currently responding to other support requests."
|
const DEFAULT_WAIT_MESSAGE = "Please be patient, our online facilitators are currently responding to other support requests."
|
||||||
const DEFAULT_ENCRYPTION_DISABLED = false
|
const DEFAULT_ENCRYPTION_DISABLED = false
|
||||||
|
const DEFAULT_POSITION = 'bottom right'
|
||||||
|
const DEFAULT_SIZE = 'large'
|
||||||
|
const DEFAULT_MAX_WAIT_MS = 600000 // 10 minutes
|
||||||
|
const DEFAULT_WAIT_INTERVAL_MS = 120000 // 2 minutes
|
||||||
|
|
||||||
|
|
||||||
class ChatBox extends React.Component {
|
class ChatBox extends React.Component {
|
||||||
@@ -163,10 +166,13 @@ class ChatBox extends React.Component {
|
|||||||
await this.state.client.deactivateAccount(auth, true)
|
await this.state.client.deactivateAccount(auth, true)
|
||||||
await this.state.client.stopClient()
|
await this.state.client.stopClient()
|
||||||
await this.state.client.clearStores()
|
await this.state.client.clearStores()
|
||||||
this.setState({ client: null })
|
this.setState({ client: null, ready: true }) // no more loading animation
|
||||||
|
window.clearInterval(this.state.waitIntervalId) // no more waiting messages
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.state.localStorage) {
|
||||||
this.state.localStorage.clear()
|
this.state.localStorage.clear()
|
||||||
|
}
|
||||||
|
|
||||||
if (resetState) {
|
if (resetState) {
|
||||||
this.setState(this.initialState)
|
this.setState(this.initialState)
|
||||||
@@ -229,12 +235,6 @@ class ChatBox extends React.Component {
|
|||||||
this.setState({ ready: false })
|
this.setState({ ready: false })
|
||||||
|
|
||||||
const client = await this.createClientWithAccount()
|
const client = await this.createClientWithAccount()
|
||||||
this.setState({
|
|
||||||
client: client
|
|
||||||
})
|
|
||||||
client.setDisplayName(this.props.anonymousDisplayName)
|
|
||||||
this.setMatrixListeners(client)
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await client.initCrypto()
|
await client.initCrypto()
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
@@ -242,8 +242,16 @@ class ChatBox extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await client.startClient()
|
await client.startClient()
|
||||||
|
|
||||||
|
client.once('sync', async (state, prevState, data) => {
|
||||||
|
if (state === "PREPARED") {
|
||||||
|
this.setState({ client })
|
||||||
|
client.setDisplayName(this.props.anonymousDisplayName)
|
||||||
|
this.setMatrixListeners(client)
|
||||||
await this.createRoom(client)
|
await this.createRoom(client)
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
restartWithoutCrypto = async () => {
|
restartWithoutCrypto = async () => {
|
||||||
if (this.state.client) {
|
if (this.state.client) {
|
||||||
@@ -274,35 +282,35 @@ class ChatBox extends React.Component {
|
|||||||
|
|
||||||
let client;
|
let client;
|
||||||
client = matrix.createClient(opts)
|
client = matrix.createClient(opts)
|
||||||
this.setState({
|
|
||||||
client: client,
|
|
||||||
})
|
|
||||||
|
|
||||||
try {
|
|
||||||
this.setMatrixListeners(client)
|
|
||||||
client.setDisplayName(this.props.anonymousDisplayName)
|
|
||||||
await this.createRoom(client)
|
|
||||||
await client.startClient()
|
await client.startClient()
|
||||||
|
|
||||||
|
client.once('sync', async (state, prevState, data) => {
|
||||||
|
if (state === "PREPARED") {
|
||||||
|
try {
|
||||||
|
this.setState({ client })
|
||||||
|
client.setDisplayName(this.props.anonymousDisplayName)
|
||||||
|
this.setMatrixListeners(client)
|
||||||
|
await this.createRoom(client)
|
||||||
this.displayBotMessage({ body: UNENCRYPTION_NOTICE })
|
this.displayBotMessage({ body: UNENCRYPTION_NOTICE })
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
console.log("error", err)
|
console.log("error", err)
|
||||||
this.handleInitError(err)
|
this.handleInitError(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
initializeUnencryptedChat = async () => {
|
initializeUnencryptedChat = async () => {
|
||||||
this.setState({ ready: false })
|
this.setState({ ready: false })
|
||||||
|
|
||||||
const client = await this.createClientWithAccount()
|
const client = await this.createClientWithAccount()
|
||||||
this.setState({
|
await client.startClient()
|
||||||
client: client
|
|
||||||
})
|
client.once('sync', async (state, prevState, data) => {
|
||||||
client.setDisplayName(this.props.anonymousDisplayName)
|
client.setDisplayName(this.props.anonymousDisplayName)
|
||||||
this.setMatrixListeners(client)
|
this.setMatrixListeners(client)
|
||||||
|
|
||||||
await client.startClient()
|
|
||||||
await this.createRoom(client)
|
await this.createRoom(client)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
handleInitError = (err) => {
|
handleInitError = (err) => {
|
||||||
@@ -453,39 +461,15 @@ class ChatBox extends React.Component {
|
|||||||
const decryptionErrors = {...this.state.decryptionErrors}
|
const decryptionErrors = {...this.state.decryptionErrors}
|
||||||
delete decryptionErrors[message.id]
|
delete decryptionErrors[message.id]
|
||||||
|
|
||||||
const isOfflineNotice = message.content.msgtype === "m.notice" && message.content.body === CHAT_IS_OFFLINE_NOTICE
|
|
||||||
|
|
||||||
let newMessage = message
|
|
||||||
|
|
||||||
// when the bot sends a notice that the chat is offline
|
|
||||||
// replace the message with the client-configured message
|
|
||||||
// for now we're treating m.notice and m.text messages the same
|
|
||||||
if (isOfflineNotice) {
|
|
||||||
newMessage = {
|
|
||||||
...message,
|
|
||||||
content: {
|
|
||||||
...message.content,
|
|
||||||
body: this.props.chatOfflineMessage
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.handleChatOffline(event.getRoomId())
|
|
||||||
}
|
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
messages: {
|
messages: {
|
||||||
...this.state.messages,
|
...this.state.messages,
|
||||||
[message.id]: newMessage,
|
[message.id]: message,
|
||||||
},
|
},
|
||||||
decryptionErrors
|
decryptionErrors
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
handleChatOffline = (roomId) => {
|
|
||||||
this.exitChat(false) // close the chat connection but keep chatbox state
|
|
||||||
window.clearInterval(this.state.timeoutId) // no more waiting messages
|
|
||||||
this.setState({ ready: true }) // no more loading animation
|
|
||||||
}
|
|
||||||
|
|
||||||
handleKeyDown = (e) => {
|
handleKeyDown = (e) => {
|
||||||
switch (e.keyCode) {
|
switch (e.keyCode) {
|
||||||
case 27:
|
case 27:
|
||||||
@@ -500,6 +484,21 @@ class ChatBox extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setMatrixListeners = client => {
|
setMatrixListeners = client => {
|
||||||
|
client.on("sync", (state, prevState, data) => {
|
||||||
|
switch (state) {
|
||||||
|
case "ERROR":
|
||||||
|
// update UI to say "Connection Lost"
|
||||||
|
break;
|
||||||
|
case "SYNCING":
|
||||||
|
// update UI to remove any "Connection Lost" message
|
||||||
|
break;
|
||||||
|
case "PREPARED":
|
||||||
|
// the client instance is ready to be queried.
|
||||||
|
this.setState({ client: client })
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
client.on("Room.timeline", (event, room) => {
|
client.on("Room.timeline", (event, room) => {
|
||||||
const eventType = event.getType()
|
const eventType = event.getType()
|
||||||
const content = event.getContent()
|
const content = event.getContent()
|
||||||
@@ -524,7 +523,7 @@ class ChatBox extends React.Component {
|
|||||||
if (eventType === "m.room.member" && content.membership === "join" && sender !== this.props.botId && sender !== this.state.userId) {
|
if (eventType === "m.room.member" && content.membership === "join" && sender !== this.props.botId && sender !== this.state.userId) {
|
||||||
this.verifyAllRoomDevices(client, room)
|
this.verifyAllRoomDevices(client, room)
|
||||||
this.setState({ facilitatorId: sender, ready: true })
|
this.setState({ facilitatorId: sender, ready: true })
|
||||||
window.clearInterval(this.state.timeoutId)
|
window.clearInterval(this.state.waitIntervalId)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -546,6 +545,26 @@ class ChatBox extends React.Component {
|
|||||||
this.setState({ typingStatus: null })
|
this.setState({ typingStatus: null })
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
client.on("event", (event) => {
|
||||||
|
const eventType = event.getType()
|
||||||
|
const content = event.getContent()
|
||||||
|
|
||||||
|
if (eventType === 'm.bot.signal') {
|
||||||
|
this.handleBotSignal(content.signal)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
handleBotSignal = (signal) => {
|
||||||
|
switch (signal) {
|
||||||
|
case 'END_CHAT':
|
||||||
|
this.displayBotMessage({ body: this.props.exitMessage })
|
||||||
|
return this.exitChat(false); // keep chat state
|
||||||
|
case 'CHAT_OFFLINE':
|
||||||
|
this.displayBotMessage({ body: this.props.chatOfflineMessage })
|
||||||
|
return this.exitChat(false); // keep chat state
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps, prevState) {
|
componentDidUpdate(prevProps, prevState) {
|
||||||
@@ -596,13 +615,13 @@ class ChatBox extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
startWaitTimeForFacilitator = () => {
|
startWaitTimeForFacilitator = () => {
|
||||||
const timeoutId = window.setInterval(() => {
|
const waitIntervalId = window.setInterval(() => {
|
||||||
if (!this.state.facilitatorId && !this.state.ready) {
|
if (!this.state.facilitatorId && !this.state.ready) {
|
||||||
this.displayBotMessage({ body: this.props.waitMessage })
|
this.displayBotMessage({ body: this.props.waitMessage })
|
||||||
}
|
}
|
||||||
}, WAIT_TIME_MS)
|
}, this.props.waitInterval)
|
||||||
|
|
||||||
this.setState({ timeoutId })
|
this.setState({ waitIntervalId })
|
||||||
}
|
}
|
||||||
|
|
||||||
handleRejectTerms = () => {
|
handleRejectTerms = () => {
|
||||||
@@ -638,14 +657,15 @@ class ChatBox extends React.Component {
|
|||||||
const { ready, messages, messagesInFlight, inputValue, userId, roomId, typingStatus, opened, showDock, emojiSelectorOpen, isMobile, decryptionErrors } = this.state;
|
const { ready, messages, messagesInFlight, inputValue, userId, roomId, typingStatus, opened, showDock, emojiSelectorOpen, isMobile, decryptionErrors } = this.state;
|
||||||
const orderedMessages = Object.values(messages).sort((a,b) => a.timestamp - b.timestamp)
|
const orderedMessages = Object.values(messages).sort((a,b) => a.timestamp - b.timestamp)
|
||||||
const inputLabel = 'Send a message...'
|
const inputLabel = 'Send a message...'
|
||||||
|
const [positionY, positionX] = this.props.position.split(' ')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div id="safesupport">
|
<div id="safesupport">
|
||||||
<div className="docked-widget" role="complementary">
|
<div className={`docked-widget size-${this.props.size}`} role="complementary" style={{ [positionY]: '10px', [positionX]: '10px' }}>
|
||||||
<Transition in={opened} timeout={250} onExited={this.handleWidgetExit} onEntered={this.handleWidgetEnter}>
|
<Transition in={opened} timeout={250} onExited={this.handleWidgetExit} onEntered={this.handleWidgetEnter}>
|
||||||
{(status) => {
|
{(status) => {
|
||||||
return (
|
return (
|
||||||
<div className={`widget widget-${status}`} aria-hidden={!opened}>
|
<div className={`widget widget-${status} position-${positionY}`} aria-hidden={!opened}>
|
||||||
<div id="safesupport-chatbox" aria-haspopup="dialog">
|
<div id="safesupport-chatbox" aria-haspopup="dialog">
|
||||||
<Header handleToggleOpen={this.handleToggleOpen} opened={opened} handleExitChat={this.handleExitChat} />
|
<Header handleToggleOpen={this.handleToggleOpen} opened={opened} handleExitChat={this.handleExitChat} />
|
||||||
|
|
||||||
@@ -736,7 +756,7 @@ class ChatBox extends React.Component {
|
|||||||
)}
|
)}
|
||||||
}
|
}
|
||||||
</Transition>
|
</Transition>
|
||||||
{showDock && !roomId && <Dock handleToggleOpen={this.handleToggleOpen} />}
|
{showDock && !roomId && <Dock handleToggleOpen={this.handleToggleOpen} size={this.props.size} />}
|
||||||
{showDock && roomId && <Header handleToggleOpen={this.handleToggleOpen} opened={opened} handleExitChat={this.handleExitChat} />}
|
{showDock && roomId && <Header handleToggleOpen={this.handleToggleOpen} opened={opened} handleExitChat={this.handleExitChat} />}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -758,6 +778,10 @@ ChatBox.propTypes = {
|
|||||||
waitMessage: PropTypes.string,
|
waitMessage: PropTypes.string,
|
||||||
chatOfflineMessage: PropTypes.string,
|
chatOfflineMessage: PropTypes.string,
|
||||||
isEncryptionDisabled: PropTypes.bool,
|
isEncryptionDisabled: PropTypes.bool,
|
||||||
|
position: PropTypes.oneOf(['top left', 'top right', 'bottom left', 'bottom right']),
|
||||||
|
size: PropTypes.oneOf(['small', 'large']),
|
||||||
|
maxWaitTime: PropTypes.number,
|
||||||
|
waitInterval: PropTypes.number,
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatBox.defaultProps = {
|
ChatBox.defaultProps = {
|
||||||
@@ -773,7 +797,11 @@ ChatBox.defaultProps = {
|
|||||||
chatUnavailableMessage: DEFAULT_CHAT_UNAVAILABLE_MESSAGE,
|
chatUnavailableMessage: DEFAULT_CHAT_UNAVAILABLE_MESSAGE,
|
||||||
waitMessage: DEFAULT_WAIT_MESSAGE,
|
waitMessage: DEFAULT_WAIT_MESSAGE,
|
||||||
chatOfflineMessage: DEFAULT_CHAT_OFFLINE_MESSAGE,
|
chatOfflineMessage: DEFAULT_CHAT_OFFLINE_MESSAGE,
|
||||||
isEncryptionDisabled: DEFAULT_ENCRYPTION_DISABLED
|
isEncryptionDisabled: DEFAULT_ENCRYPTION_DISABLED,
|
||||||
|
position: DEFAULT_POSITION,
|
||||||
|
size: DEFAULT_SIZE,
|
||||||
|
maxWaitTime: DEFAULT_MAX_WAIT_MS,
|
||||||
|
waitInterval: DEFAULT_WAIT_INTERVAL_MS,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ChatBox;
|
export default ChatBox;
|
||||||
|
|||||||
@@ -115,9 +115,7 @@ describe('Chatbox', () => {
|
|||||||
expect(createClient).toHaveBeenCalled()
|
expect(createClient).toHaveBeenCalled()
|
||||||
expect(mockInitCrypto).toHaveBeenCalled()
|
expect(mockInitCrypto).toHaveBeenCalled()
|
||||||
expect(mockStartClient).toHaveBeenCalled()
|
expect(mockStartClient).toHaveBeenCalled()
|
||||||
expect(mockCreateRoom).toHaveBeenCalled()
|
expect(mockOnce).toHaveBeenCalled()
|
||||||
expect(mockSetPowerLevel).toHaveBeenCalled()
|
|
||||||
expect(mockOn).toHaveBeenCalled()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
test('rejecting terms should not start chat', async () => {
|
test('rejecting terms should not start chat', async () => {
|
||||||
@@ -146,6 +144,10 @@ describe('Chatbox', () => {
|
|||||||
|
|
||||||
acceptButton.simulate('click')
|
acceptButton.simulate('click')
|
||||||
|
|
||||||
|
await waitForExpect(() => {
|
||||||
|
expect(mockOnce).toHaveBeenCalled()
|
||||||
|
});
|
||||||
|
|
||||||
await waitForExpect(() => {
|
await waitForExpect(() => {
|
||||||
expect(mockCreateRoom).toHaveBeenCalled()
|
expect(mockCreateRoom).toHaveBeenCalled()
|
||||||
});
|
});
|
||||||
@@ -169,7 +171,7 @@ describe('Chatbox', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
test('decryption failure should lead to a new unencrypted chat', async () => {
|
test('decryption failure should handle the message event and save the event ID in state', async () => {
|
||||||
const chatbox = mount(<Chatbox {...testConfig} />)
|
const chatbox = mount(<Chatbox {...testConfig} />)
|
||||||
const dock = chatbox.find('button.dock')
|
const dock = chatbox.find('button.dock')
|
||||||
const instance = chatbox.instance()
|
const instance = chatbox.instance()
|
||||||
@@ -183,25 +185,25 @@ describe('Chatbox', () => {
|
|||||||
acceptButton.simulate('click')
|
acceptButton.simulate('click')
|
||||||
|
|
||||||
await waitForExpect(() => {
|
await waitForExpect(() => {
|
||||||
expect(mockCreateRoom).toHaveBeenCalled()
|
expect(mockOnce).toHaveBeenCalled()
|
||||||
});
|
});
|
||||||
|
|
||||||
jest.spyOn(instance, 'initializeUnencryptedChat')
|
jest.spyOn(instance, 'handleMessageEvent')
|
||||||
instance.handleDecryptionError()
|
|
||||||
|
instance.handleDecryptionError({
|
||||||
|
getId: () => 'test_event_id',
|
||||||
|
getType: () => 'm.message',
|
||||||
|
getSender: () => 'sender',
|
||||||
|
getRoomId: () => 'room id',
|
||||||
|
getContent: () => ({ body: 'test msg' }),
|
||||||
|
getTs: () => '123',
|
||||||
|
})
|
||||||
|
|
||||||
await waitForExpect(() => {
|
await waitForExpect(() => {
|
||||||
expect(mockLeave).toHaveBeenCalled()
|
expect(instance.handleMessageEvent).toHaveBeenCalled()
|
||||||
});
|
})
|
||||||
|
|
||||||
await waitForExpect(() => {
|
expect(chatbox.state().decryptionErrors).toEqual({ 'test_event_id': true })
|
||||||
expect(mockStopClient).toHaveBeenCalled()
|
|
||||||
});
|
|
||||||
|
|
||||||
await waitForExpect(() => {
|
|
||||||
expect(mockClearStores).toHaveBeenCalled()
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(instance.initializeUnencryptedChat).toHaveBeenCalled()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
test('creating an unencrypted chat', async () => {
|
test('creating an unencrypted chat', async () => {
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import React from "react"
|
import React, { Fragment } from "react"
|
||||||
import PropTypes from "prop-types"
|
import PropTypes from "prop-types"
|
||||||
|
|
||||||
const Dock = ({ handleToggleOpen }) => {
|
const Dock = ({ handleToggleOpen, size }) => {
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@@ -11,10 +10,19 @@ const Dock = ({ handleToggleOpen }) => {
|
|||||||
onKeyPress={handleToggleOpen}
|
onKeyPress={handleToggleOpen}
|
||||||
aria-labelledby="open-chatbox-label"
|
aria-labelledby="open-chatbox-label"
|
||||||
>
|
>
|
||||||
|
{
|
||||||
|
size === 'small' ?
|
||||||
|
<div id="open-chatbox-label">
|
||||||
|
<span>Chat</span><span className="icon">+</span>
|
||||||
|
</div>
|
||||||
|
:
|
||||||
|
<Fragment>
|
||||||
<div id="open-chatbox-label">Start a new chat</div>
|
<div id="open-chatbox-label">Start a new chat</div>
|
||||||
<div className="label-icon">
|
<div className="label-icon">
|
||||||
<div className={`btn-icon`} aria-label={`Open support chat window`}>+</div>
|
<div className={`btn-icon`} aria-label={`Open support chat window`}>+</div>
|
||||||
</div>
|
</div>
|
||||||
|
</Fragment>
|
||||||
|
}
|
||||||
</button>
|
</button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
3
src/outputs/component.js
Normal file
3
src/outputs/component.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
import Chatbox from '../components/chatbox';
|
||||||
|
|
||||||
|
export default Chatbox;
|
||||||
3
src/setupTests.js
Normal file
3
src/setupTests.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
import { configure } from 'enzyme';
|
||||||
|
import Adapter from 'enzyme-adapter-react-16';
|
||||||
|
configure({ adapter: new Adapter() });
|
||||||
@@ -94,4 +94,29 @@ module.exports = [{
|
|||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
filename: 'bookmarklet.js',
|
filename: 'bookmarklet.js',
|
||||||
},
|
},
|
||||||
|
}, {
|
||||||
|
...defaultConfig,
|
||||||
|
entry: './src/outputs/component.js',
|
||||||
|
output: {
|
||||||
|
path: distDir,
|
||||||
|
publicPath: '/',
|
||||||
|
filename: 'component.js',
|
||||||
|
library: 'Chatbox',
|
||||||
|
libraryExport: 'default',
|
||||||
|
libraryTarget: 'commonjs2',
|
||||||
|
},
|
||||||
|
externals: {
|
||||||
|
react: {
|
||||||
|
commonjs: "react",
|
||||||
|
commonjs2: "react",
|
||||||
|
amd: "React",
|
||||||
|
root: "React"
|
||||||
|
},
|
||||||
|
"react-dom": {
|
||||||
|
commonjs: "react-dom",
|
||||||
|
commonjs2: "react-dom",
|
||||||
|
amd: "ReactDOM",
|
||||||
|
root: "ReactDOM"
|
||||||
|
}
|
||||||
|
}
|
||||||
}];
|
}];
|
||||||
|
|||||||
7
webpack.config.profile.js
Normal file
7
webpack.config.profile.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
const config = require('./webpack.config');
|
||||||
|
|
||||||
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||||
|
|
||||||
|
config[0].plugins = config[0].plugins.concat([new BundleAnalyzerPlugin({ analyzerPort: 5555 })]);
|
||||||
|
|
||||||
|
module.exports = config;
|
||||||
229
yarn.lock
229
yarn.lock
@@ -2,13 +2,20 @@
|
|||||||
# yarn lockfile v1
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.5.5", "@babel/code-frame@^7.8.3":
|
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e"
|
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e"
|
||||||
integrity sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==
|
integrity sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/highlight" "^7.8.3"
|
"@babel/highlight" "^7.8.3"
|
||||||
|
|
||||||
|
"@babel/code-frame@^7.10.3":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.3.tgz#324bcfd8d35cd3d47dae18cde63d752086435e9a"
|
||||||
|
integrity sha512-fDx9eNW0qz0WkUeqL6tXEXzVlPh6Y5aCDEZesl0xBGA8ndRukX91Uk44ZqnkECp01NAZUdCAl+aiQNGi0k88Eg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/highlight" "^7.10.3"
|
||||||
|
|
||||||
"@babel/compat-data@^7.8.4":
|
"@babel/compat-data@^7.8.4":
|
||||||
version "7.8.5"
|
version "7.8.5"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.8.5.tgz#d28ce872778c23551cbb9432fc68d28495b613b9"
|
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.8.5.tgz#d28ce872778c23551cbb9432fc68d28495b613b9"
|
||||||
@@ -27,26 +34,6 @@
|
|||||||
invariant "^2.2.4"
|
invariant "^2.2.4"
|
||||||
semver "^5.5.0"
|
semver "^5.5.0"
|
||||||
|
|
||||||
"@babel/core@7.7.7":
|
|
||||||
version "7.7.7"
|
|
||||||
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.7.tgz#ee155d2e12300bcc0cff6a8ad46f2af5063803e9"
|
|
||||||
integrity sha512-jlSjuj/7z138NLZALxVgrx13AOtqip42ATZP7+kYl53GvDV6+4dCek1mVUo8z8c8Xnw/mx2q3d9HWh3griuesQ==
|
|
||||||
dependencies:
|
|
||||||
"@babel/code-frame" "^7.5.5"
|
|
||||||
"@babel/generator" "^7.7.7"
|
|
||||||
"@babel/helpers" "^7.7.4"
|
|
||||||
"@babel/parser" "^7.7.7"
|
|
||||||
"@babel/template" "^7.7.4"
|
|
||||||
"@babel/traverse" "^7.7.4"
|
|
||||||
"@babel/types" "^7.7.4"
|
|
||||||
convert-source-map "^1.7.0"
|
|
||||||
debug "^4.1.0"
|
|
||||||
json5 "^2.1.0"
|
|
||||||
lodash "^4.17.13"
|
|
||||||
resolve "^1.3.2"
|
|
||||||
semver "^5.4.1"
|
|
||||||
source-map "^0.5.0"
|
|
||||||
|
|
||||||
"@babel/core@^7.1.0":
|
"@babel/core@^7.1.0":
|
||||||
version "7.8.4"
|
version "7.8.4"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.8.4.tgz#d496799e5c12195b3602d0fddd77294e3e38e80e"
|
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.8.4.tgz#d496799e5c12195b3602d0fddd77294e3e38e80e"
|
||||||
@@ -68,7 +55,39 @@
|
|||||||
semver "^5.4.1"
|
semver "^5.4.1"
|
||||||
source-map "^0.5.0"
|
source-map "^0.5.0"
|
||||||
|
|
||||||
"@babel/generator@^7.4.0", "@babel/generator@^7.7.7", "@babel/generator@^7.8.4":
|
"@babel/core@^7.10.3":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.10.3.tgz#73b0e8ddeec1e3fdd7a2de587a60e17c440ec77e"
|
||||||
|
integrity sha512-5YqWxYE3pyhIi84L84YcwjeEgS+fa7ZjK6IBVGTjDVfm64njkR2lfDhVR5OudLk8x2GK59YoSyVv+L/03k1q9w==
|
||||||
|
dependencies:
|
||||||
|
"@babel/code-frame" "^7.10.3"
|
||||||
|
"@babel/generator" "^7.10.3"
|
||||||
|
"@babel/helper-module-transforms" "^7.10.1"
|
||||||
|
"@babel/helpers" "^7.10.1"
|
||||||
|
"@babel/parser" "^7.10.3"
|
||||||
|
"@babel/template" "^7.10.3"
|
||||||
|
"@babel/traverse" "^7.10.3"
|
||||||
|
"@babel/types" "^7.10.3"
|
||||||
|
convert-source-map "^1.7.0"
|
||||||
|
debug "^4.1.0"
|
||||||
|
gensync "^1.0.0-beta.1"
|
||||||
|
json5 "^2.1.2"
|
||||||
|
lodash "^4.17.13"
|
||||||
|
resolve "^1.3.2"
|
||||||
|
semver "^5.4.1"
|
||||||
|
source-map "^0.5.0"
|
||||||
|
|
||||||
|
"@babel/generator@^7.10.3":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.10.3.tgz#32b9a0d963a71d7a54f5f6c15659c3dbc2a523a5"
|
||||||
|
integrity sha512-drt8MUHbEqRzNR0xnF8nMehbY11b1SDkRw03PSNH/3Rb2Z35oxkddVSi3rcaak0YJQ86PCuE7Qx1jSFhbLNBMA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/types" "^7.10.3"
|
||||||
|
jsesc "^2.5.1"
|
||||||
|
lodash "^4.17.13"
|
||||||
|
source-map "^0.5.0"
|
||||||
|
|
||||||
|
"@babel/generator@^7.4.0", "@babel/generator@^7.8.4":
|
||||||
version "7.8.4"
|
version "7.8.4"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.8.4.tgz#35bbc74486956fe4251829f9f6c48330e8d0985e"
|
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.8.4.tgz#35bbc74486956fe4251829f9f6c48330e8d0985e"
|
||||||
integrity sha512-PwhclGdRpNAf3IxZb0YVuITPZmmrXz9zf6fH8lT4XbrmfQKr6ryBzhv593P5C6poJRciFCL/eHGW2NuGrgEyxA==
|
integrity sha512-PwhclGdRpNAf3IxZb0YVuITPZmmrXz9zf6fH8lT4XbrmfQKr6ryBzhv593P5C6poJRciFCL/eHGW2NuGrgEyxA==
|
||||||
@@ -205,6 +224,15 @@
|
|||||||
"@babel/traverse" "^7.8.3"
|
"@babel/traverse" "^7.8.3"
|
||||||
"@babel/types" "^7.8.3"
|
"@babel/types" "^7.8.3"
|
||||||
|
|
||||||
|
"@babel/helper-function-name@^7.10.3":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.10.3.tgz#79316cd75a9fa25ba9787ff54544307ed444f197"
|
||||||
|
integrity sha512-FvSj2aiOd8zbeqijjgqdMDSyxsGHaMt5Tr0XjQsGKHD3/1FP3wksjnLAWzxw7lvXiej8W1Jt47SKTZ6upQNiRw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-get-function-arity" "^7.10.3"
|
||||||
|
"@babel/template" "^7.10.3"
|
||||||
|
"@babel/types" "^7.10.3"
|
||||||
|
|
||||||
"@babel/helper-function-name@^7.8.3":
|
"@babel/helper-function-name@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz#eeeb665a01b1f11068e9fb86ad56a1cb1a824cca"
|
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz#eeeb665a01b1f11068e9fb86ad56a1cb1a824cca"
|
||||||
@@ -214,6 +242,13 @@
|
|||||||
"@babel/template" "^7.8.3"
|
"@babel/template" "^7.8.3"
|
||||||
"@babel/types" "^7.8.3"
|
"@babel/types" "^7.8.3"
|
||||||
|
|
||||||
|
"@babel/helper-get-function-arity@^7.10.3":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.3.tgz#3a28f7b28ccc7719eacd9223b659fdf162e4c45e"
|
||||||
|
integrity sha512-iUD/gFsR+M6uiy69JA6fzM5seno8oE85IYZdbVVEuQaZlEzMO2MXblh+KSPJgsZAUx0EEbWXU0yJaW7C9CdAVg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/types" "^7.10.3"
|
||||||
|
|
||||||
"@babel/helper-get-function-arity@^7.8.3":
|
"@babel/helper-get-function-arity@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz#b894b947bd004381ce63ea1db9f08547e920abd5"
|
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz#b894b947bd004381ce63ea1db9f08547e920abd5"
|
||||||
@@ -228,6 +263,13 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/types" "^7.8.3"
|
"@babel/types" "^7.8.3"
|
||||||
|
|
||||||
|
"@babel/helper-member-expression-to-functions@^7.10.1":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.10.3.tgz#bc3663ac81ac57c39148fef4c69bf48a77ba8dd6"
|
||||||
|
integrity sha512-q7+37c4EPLSjNb2NmWOjNwj0+BOyYlssuQ58kHEWk1Z78K5i8vTUsteq78HMieRPQSl/NtpQyJfdjt3qZ5V2vw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/types" "^7.10.3"
|
||||||
|
|
||||||
"@babel/helper-member-expression-to-functions@^7.8.3":
|
"@babel/helper-member-expression-to-functions@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz#659b710498ea6c1d9907e0c73f206eee7dadc24c"
|
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz#659b710498ea6c1d9907e0c73f206eee7dadc24c"
|
||||||
@@ -235,6 +277,13 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/types" "^7.8.3"
|
"@babel/types" "^7.8.3"
|
||||||
|
|
||||||
|
"@babel/helper-module-imports@^7.10.1":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.10.3.tgz#766fa1d57608e53e5676f23ae498ec7a95e1b11a"
|
||||||
|
integrity sha512-Jtqw5M9pahLSUWA+76nhK9OG8nwYXzhQzVIGFoNaHnXF/r4l7kz4Fl0UAW7B6mqC5myoJiBP5/YQlXQTMfHI9w==
|
||||||
|
dependencies:
|
||||||
|
"@babel/types" "^7.10.3"
|
||||||
|
|
||||||
"@babel/helper-module-imports@^7.8.3":
|
"@babel/helper-module-imports@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz#7fe39589b39c016331b6b8c3f441e8f0b1419498"
|
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz#7fe39589b39c016331b6b8c3f441e8f0b1419498"
|
||||||
@@ -242,6 +291,19 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/types" "^7.8.3"
|
"@babel/types" "^7.8.3"
|
||||||
|
|
||||||
|
"@babel/helper-module-transforms@^7.10.1":
|
||||||
|
version "7.10.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.10.1.tgz#24e2f08ee6832c60b157bb0936c86bef7210c622"
|
||||||
|
integrity sha512-RLHRCAzyJe7Q7sF4oy2cB+kRnU4wDZY/H2xJFGof+M+SJEGhZsb+GFj5j1AD8NiSaVBJ+Pf0/WObiXu/zxWpFg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-module-imports" "^7.10.1"
|
||||||
|
"@babel/helper-replace-supers" "^7.10.1"
|
||||||
|
"@babel/helper-simple-access" "^7.10.1"
|
||||||
|
"@babel/helper-split-export-declaration" "^7.10.1"
|
||||||
|
"@babel/template" "^7.10.1"
|
||||||
|
"@babel/types" "^7.10.1"
|
||||||
|
lodash "^4.17.13"
|
||||||
|
|
||||||
"@babel/helper-module-transforms@^7.8.3":
|
"@babel/helper-module-transforms@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.8.3.tgz#d305e35d02bee720fbc2c3c3623aa0c316c01590"
|
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.8.3.tgz#d305e35d02bee720fbc2c3c3623aa0c316c01590"
|
||||||
@@ -267,6 +329,13 @@
|
|||||||
"@babel/types" "^7.9.0"
|
"@babel/types" "^7.9.0"
|
||||||
lodash "^4.17.13"
|
lodash "^4.17.13"
|
||||||
|
|
||||||
|
"@babel/helper-optimise-call-expression@^7.10.1":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.3.tgz#f53c4b6783093195b0f69330439908841660c530"
|
||||||
|
integrity sha512-kT2R3VBH/cnSz+yChKpaKRJQJWxdGoc6SjioRId2wkeV3bK0wLLioFpJROrX0U4xr/NmxSSAWT/9Ih5snwIIzg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/types" "^7.10.3"
|
||||||
|
|
||||||
"@babel/helper-optimise-call-expression@^7.8.3":
|
"@babel/helper-optimise-call-expression@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz#7ed071813d09c75298ef4f208956006b6111ecb9"
|
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz#7ed071813d09c75298ef4f208956006b6111ecb9"
|
||||||
@@ -297,6 +366,16 @@
|
|||||||
"@babel/traverse" "^7.8.3"
|
"@babel/traverse" "^7.8.3"
|
||||||
"@babel/types" "^7.8.3"
|
"@babel/types" "^7.8.3"
|
||||||
|
|
||||||
|
"@babel/helper-replace-supers@^7.10.1":
|
||||||
|
version "7.10.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.10.1.tgz#ec6859d20c5d8087f6a2dc4e014db7228975f13d"
|
||||||
|
integrity sha512-SOwJzEfpuQwInzzQJGjGaiG578UYmyi2Xw668klPWV5n07B73S0a9btjLk/52Mlcxa+5AdIYqws1KyXRfMoB7A==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-member-expression-to-functions" "^7.10.1"
|
||||||
|
"@babel/helper-optimise-call-expression" "^7.10.1"
|
||||||
|
"@babel/traverse" "^7.10.1"
|
||||||
|
"@babel/types" "^7.10.1"
|
||||||
|
|
||||||
"@babel/helper-replace-supers@^7.8.3":
|
"@babel/helper-replace-supers@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.8.3.tgz#91192d25f6abbcd41da8a989d4492574fb1530bc"
|
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.8.3.tgz#91192d25f6abbcd41da8a989d4492574fb1530bc"
|
||||||
@@ -317,6 +396,14 @@
|
|||||||
"@babel/traverse" "^7.8.6"
|
"@babel/traverse" "^7.8.6"
|
||||||
"@babel/types" "^7.8.6"
|
"@babel/types" "^7.8.6"
|
||||||
|
|
||||||
|
"@babel/helper-simple-access@^7.10.1":
|
||||||
|
version "7.10.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.10.1.tgz#08fb7e22ace9eb8326f7e3920a1c2052f13d851e"
|
||||||
|
integrity sha512-VSWpWzRzn9VtgMJBIWTZ+GP107kZdQ4YplJlCmIrjoLVSi/0upixezHCDG8kpPVTBJpKfxTH01wDhh+jS2zKbw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/template" "^7.10.1"
|
||||||
|
"@babel/types" "^7.10.1"
|
||||||
|
|
||||||
"@babel/helper-simple-access@^7.8.3":
|
"@babel/helper-simple-access@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz#7f8109928b4dab4654076986af575231deb639ae"
|
resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz#7f8109928b4dab4654076986af575231deb639ae"
|
||||||
@@ -325,6 +412,13 @@
|
|||||||
"@babel/template" "^7.8.3"
|
"@babel/template" "^7.8.3"
|
||||||
"@babel/types" "^7.8.3"
|
"@babel/types" "^7.8.3"
|
||||||
|
|
||||||
|
"@babel/helper-split-export-declaration@^7.10.1":
|
||||||
|
version "7.10.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz#c6f4be1cbc15e3a868e4c64a17d5d31d754da35f"
|
||||||
|
integrity sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==
|
||||||
|
dependencies:
|
||||||
|
"@babel/types" "^7.10.1"
|
||||||
|
|
||||||
"@babel/helper-split-export-declaration@^7.8.3":
|
"@babel/helper-split-export-declaration@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz#31a9f30070f91368a7182cf05f831781065fc7a9"
|
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz#31a9f30070f91368a7182cf05f831781065fc7a9"
|
||||||
@@ -332,6 +426,11 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/types" "^7.8.3"
|
"@babel/types" "^7.8.3"
|
||||||
|
|
||||||
|
"@babel/helper-validator-identifier@^7.10.3":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.3.tgz#60d9847f98c4cea1b279e005fdb7c28be5412d15"
|
||||||
|
integrity sha512-bU8JvtlYpJSBPuj1VUmKpFGaDZuLxASky3LhaKj3bmpSTY6VWooSM8msk+Z0CZoErFye2tlABF6yDkT3FOPAXw==
|
||||||
|
|
||||||
"@babel/helper-validator-identifier@^7.9.0":
|
"@babel/helper-validator-identifier@^7.9.0":
|
||||||
version "7.9.0"
|
version "7.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.0.tgz#ad53562a7fc29b3b9a91bbf7d10397fd146346ed"
|
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.0.tgz#ad53562a7fc29b3b9a91bbf7d10397fd146346ed"
|
||||||
@@ -347,7 +446,16 @@
|
|||||||
"@babel/traverse" "^7.8.3"
|
"@babel/traverse" "^7.8.3"
|
||||||
"@babel/types" "^7.8.3"
|
"@babel/types" "^7.8.3"
|
||||||
|
|
||||||
"@babel/helpers@^7.7.4", "@babel/helpers@^7.8.4":
|
"@babel/helpers@^7.10.1":
|
||||||
|
version "7.10.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.10.1.tgz#a6827b7cb975c9d9cef5fd61d919f60d8844a973"
|
||||||
|
integrity sha512-muQNHF+IdU6wGgkaJyhhEmI54MOZBKsFfsXFhboz1ybwJ1Kl7IHlbm2a++4jwrmY5UYsgitt5lfqo1wMFcHmyw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/template" "^7.10.1"
|
||||||
|
"@babel/traverse" "^7.10.1"
|
||||||
|
"@babel/types" "^7.10.1"
|
||||||
|
|
||||||
|
"@babel/helpers@^7.8.4":
|
||||||
version "7.8.4"
|
version "7.8.4"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.8.4.tgz#754eb3ee727c165e0a240d6c207de7c455f36f73"
|
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.8.4.tgz#754eb3ee727c165e0a240d6c207de7c455f36f73"
|
||||||
integrity sha512-VPbe7wcQ4chu4TDQjimHv/5tj73qz88o12EPkO2ValS2QiQS/1F2SsjyIGNnAD0vF/nZS6Cf9i+vW6HIlnaR8w==
|
integrity sha512-VPbe7wcQ4chu4TDQjimHv/5tj73qz88o12EPkO2ValS2QiQS/1F2SsjyIGNnAD0vF/nZS6Cf9i+vW6HIlnaR8w==
|
||||||
@@ -356,6 +464,15 @@
|
|||||||
"@babel/traverse" "^7.8.4"
|
"@babel/traverse" "^7.8.4"
|
||||||
"@babel/types" "^7.8.3"
|
"@babel/types" "^7.8.3"
|
||||||
|
|
||||||
|
"@babel/highlight@^7.10.3":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.10.3.tgz#c633bb34adf07c5c13156692f5922c81ec53f28d"
|
||||||
|
integrity sha512-Ih9B/u7AtgEnySE2L2F0Xm0GaM729XqqLfHkalTsbjXGyqmf/6M0Cu0WpvqueUlW+xk88BHw9Nkpj49naU+vWw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-validator-identifier" "^7.10.3"
|
||||||
|
chalk "^2.0.0"
|
||||||
|
js-tokens "^4.0.0"
|
||||||
|
|
||||||
"@babel/highlight@^7.8.3":
|
"@babel/highlight@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.8.3.tgz#28f173d04223eaaa59bc1d439a3836e6d1265797"
|
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.8.3.tgz#28f173d04223eaaa59bc1d439a3836e6d1265797"
|
||||||
@@ -365,11 +482,16 @@
|
|||||||
esutils "^2.0.2"
|
esutils "^2.0.2"
|
||||||
js-tokens "^4.0.0"
|
js-tokens "^4.0.0"
|
||||||
|
|
||||||
"@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.4.3", "@babel/parser@^7.7.7", "@babel/parser@^7.8.3", "@babel/parser@^7.8.4":
|
"@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.4.3", "@babel/parser@^7.8.3", "@babel/parser@^7.8.4":
|
||||||
version "7.8.4"
|
version "7.8.4"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.8.4.tgz#d1dbe64691d60358a974295fa53da074dd2ce8e8"
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.8.4.tgz#d1dbe64691d60358a974295fa53da074dd2ce8e8"
|
||||||
integrity sha512-0fKu/QqildpXmPVaRBoXOlyBb3MC+J0A66x97qEfLOMkn3u6nfY5esWogQwi/K0BjASYy4DbnsEWnpNL6qT5Mw==
|
integrity sha512-0fKu/QqildpXmPVaRBoXOlyBb3MC+J0A66x97qEfLOMkn3u6nfY5esWogQwi/K0BjASYy4DbnsEWnpNL6qT5Mw==
|
||||||
|
|
||||||
|
"@babel/parser@^7.10.3":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.10.3.tgz#7e71d892b0d6e7d04a1af4c3c79d72c1f10f5315"
|
||||||
|
integrity sha512-oJtNJCMFdIMwXGmx+KxuaD7i3b8uS7TTFYW/FNG2BT8m+fmGHoiPYoH0Pe3gya07WuFmM5FCDIr1x0irkD/hyA==
|
||||||
|
|
||||||
"@babel/parser@^7.8.6", "@babel/parser@^7.9.0":
|
"@babel/parser@^7.8.6", "@babel/parser@^7.9.0":
|
||||||
version "7.9.4"
|
version "7.9.4"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.9.4.tgz#68a35e6b0319bbc014465be43828300113f2f2e8"
|
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.9.4.tgz#68a35e6b0319bbc014465be43828300113f2f2e8"
|
||||||
@@ -1255,7 +1377,16 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
regenerator-runtime "^0.13.4"
|
regenerator-runtime "^0.13.4"
|
||||||
|
|
||||||
"@babel/template@^7.4.0", "@babel/template@^7.7.4", "@babel/template@^7.8.3":
|
"@babel/template@^7.10.1", "@babel/template@^7.10.3":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.10.3.tgz#4d13bc8e30bf95b0ce9d175d30306f42a2c9a7b8"
|
||||||
|
integrity sha512-5BjI4gdtD+9fHZUsaxPHPNpwa+xRkDO7c7JbhYn2afvrkDu5SfAAbi9AIMXw2xEhO/BR35TqiW97IqNvCo/GqA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/code-frame" "^7.10.3"
|
||||||
|
"@babel/parser" "^7.10.3"
|
||||||
|
"@babel/types" "^7.10.3"
|
||||||
|
|
||||||
|
"@babel/template@^7.4.0", "@babel/template@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.8.3.tgz#e02ad04fe262a657809327f578056ca15fd4d1b8"
|
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.8.3.tgz#e02ad04fe262a657809327f578056ca15fd4d1b8"
|
||||||
integrity sha512-04m87AcQgAFdvuoyiQ2kgELr2tV8B4fP/xJAVUL3Yb3bkNdMedD3d0rlSQr3PegP0cms3eHjl1F7PWlvWbU8FQ==
|
integrity sha512-04m87AcQgAFdvuoyiQ2kgELr2tV8B4fP/xJAVUL3Yb3bkNdMedD3d0rlSQr3PegP0cms3eHjl1F7PWlvWbU8FQ==
|
||||||
@@ -1273,7 +1404,7 @@
|
|||||||
"@babel/parser" "^7.8.6"
|
"@babel/parser" "^7.8.6"
|
||||||
"@babel/types" "^7.8.6"
|
"@babel/types" "^7.8.6"
|
||||||
|
|
||||||
"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.0", "@babel/traverse@^7.4.3", "@babel/traverse@^7.7.4", "@babel/traverse@^7.8.3", "@babel/traverse@^7.8.4":
|
"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.0", "@babel/traverse@^7.4.3", "@babel/traverse@^7.8.3", "@babel/traverse@^7.8.4":
|
||||||
version "7.8.4"
|
version "7.8.4"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.8.4.tgz#f0845822365f9d5b0e312ed3959d3f827f869e3c"
|
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.8.4.tgz#f0845822365f9d5b0e312ed3959d3f827f869e3c"
|
||||||
integrity sha512-NGLJPZwnVEyBPLI+bl9y9aSnxMhsKz42so7ApAv9D+b4vAFPpY013FTS9LdKxcABoIYFU52HcYga1pPlx454mg==
|
integrity sha512-NGLJPZwnVEyBPLI+bl9y9aSnxMhsKz42so7ApAv9D+b4vAFPpY013FTS9LdKxcABoIYFU52HcYga1pPlx454mg==
|
||||||
@@ -1288,6 +1419,21 @@
|
|||||||
globals "^11.1.0"
|
globals "^11.1.0"
|
||||||
lodash "^4.17.13"
|
lodash "^4.17.13"
|
||||||
|
|
||||||
|
"@babel/traverse@^7.10.1", "@babel/traverse@^7.10.3":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.10.3.tgz#0b01731794aa7b77b214bcd96661f18281155d7e"
|
||||||
|
integrity sha512-qO6623eBFhuPm0TmmrUFMT1FulCmsSeJuVGhiLodk2raUDFhhTECLd9E9jC4LBIWziqt4wgF6KuXE4d+Jz9yug==
|
||||||
|
dependencies:
|
||||||
|
"@babel/code-frame" "^7.10.3"
|
||||||
|
"@babel/generator" "^7.10.3"
|
||||||
|
"@babel/helper-function-name" "^7.10.3"
|
||||||
|
"@babel/helper-split-export-declaration" "^7.10.1"
|
||||||
|
"@babel/parser" "^7.10.3"
|
||||||
|
"@babel/types" "^7.10.3"
|
||||||
|
debug "^4.1.0"
|
||||||
|
globals "^11.1.0"
|
||||||
|
lodash "^4.17.13"
|
||||||
|
|
||||||
"@babel/traverse@^7.8.6":
|
"@babel/traverse@^7.8.6":
|
||||||
version "7.9.0"
|
version "7.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.9.0.tgz#d3882c2830e513f4fe4cec9fe76ea1cc78747892"
|
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.9.0.tgz#d3882c2830e513f4fe4cec9fe76ea1cc78747892"
|
||||||
@@ -1303,7 +1449,7 @@
|
|||||||
globals "^11.1.0"
|
globals "^11.1.0"
|
||||||
lodash "^4.17.13"
|
lodash "^4.17.13"
|
||||||
|
|
||||||
"@babel/types@^7.0.0", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.7.4", "@babel/types@^7.8.3":
|
"@babel/types@^7.0.0", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.8.3":
|
||||||
version "7.8.3"
|
version "7.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.8.3.tgz#5a383dffa5416db1b73dedffd311ffd0788fb31c"
|
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.8.3.tgz#5a383dffa5416db1b73dedffd311ffd0788fb31c"
|
||||||
integrity sha512-jBD+G8+LWpMBBWvVcdr4QysjUE4mU/syrhN17o1u3gx0/WzJB1kwiVZAXRtWbsIPOwW8pF/YJV5+nmetPzepXg==
|
integrity sha512-jBD+G8+LWpMBBWvVcdr4QysjUE4mU/syrhN17o1u3gx0/WzJB1kwiVZAXRtWbsIPOwW8pF/YJV5+nmetPzepXg==
|
||||||
@@ -1312,6 +1458,15 @@
|
|||||||
lodash "^4.17.13"
|
lodash "^4.17.13"
|
||||||
to-fast-properties "^2.0.0"
|
to-fast-properties "^2.0.0"
|
||||||
|
|
||||||
|
"@babel/types@^7.10.1", "@babel/types@^7.10.3":
|
||||||
|
version "7.10.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.10.3.tgz#6535e3b79fea86a6b09e012ea8528f935099de8e"
|
||||||
|
integrity sha512-nZxaJhBXBQ8HVoIcGsf9qWep3Oh3jCENK54V4mRF7qaJabVsAYdbTtmSD8WmAp1R6ytPiu5apMwSXyxB1WlaBA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/helper-validator-identifier" "^7.10.3"
|
||||||
|
lodash "^4.17.13"
|
||||||
|
to-fast-properties "^2.0.0"
|
||||||
|
|
||||||
"@babel/types@^7.8.6", "@babel/types@^7.9.0":
|
"@babel/types@^7.8.6", "@babel/types@^7.9.0":
|
||||||
version "7.9.0"
|
version "7.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.9.0.tgz#00b064c3df83ad32b2dbf5ff07312b15c7f1efb5"
|
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.9.0.tgz#00b064c3df83ad32b2dbf5ff07312b15c7f1efb5"
|
||||||
@@ -6336,6 +6491,13 @@ json5@^2.1.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
minimist "^1.2.0"
|
minimist "^1.2.0"
|
||||||
|
|
||||||
|
json5@^2.1.2:
|
||||||
|
version "2.1.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.3.tgz#c9b0f7fa9233bfe5807fe66fcf3a5617ed597d43"
|
||||||
|
integrity sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==
|
||||||
|
dependencies:
|
||||||
|
minimist "^1.2.5"
|
||||||
|
|
||||||
jsonfile@^4.0.0:
|
jsonfile@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
|
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
|
||||||
@@ -6947,6 +7109,11 @@ minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0:
|
|||||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
|
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
|
||||||
integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=
|
integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=
|
||||||
|
|
||||||
|
minimist@^1.2.5:
|
||||||
|
version "1.2.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
|
||||||
|
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
|
||||||
|
|
||||||
mississippi@^3.0.0:
|
mississippi@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-3.0.0.tgz#ea0a3291f97e0b5e8776b363d5f0a12d94c67022"
|
resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-3.0.0.tgz#ea0a3291f97e0b5e8776b363d5f0a12d94c67022"
|
||||||
@@ -10128,10 +10295,10 @@ webidl-conversions@^4.0.2:
|
|||||||
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"
|
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"
|
||||||
integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==
|
integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==
|
||||||
|
|
||||||
webpack-bundle-analyzer@^3.7.0:
|
webpack-bundle-analyzer@^3.8.0:
|
||||||
version "3.7.0"
|
version "3.8.0"
|
||||||
resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.7.0.tgz#84da434e89442899b884d9ad38e466d0db02a56f"
|
resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.8.0.tgz#ce6b3f908daf069fd1f7266f692cbb3bded9ba16"
|
||||||
integrity sha512-mETdjZ30a3Yf+NTB/wqTgACK7rAYQl5uxKK0WVTNmF0sM3Uv8s3R58YZMW7Rhu0Lk2Rmuhdj5dcH5Q76zCDVdA==
|
integrity sha512-PODQhAYVEourCcOuU+NiYI7WdR8QyELZGgPvB1y2tjbUpbmcQOt5Q7jEK+ttd5se0KSBKD9SXHCEozS++Wllmw==
|
||||||
dependencies:
|
dependencies:
|
||||||
acorn "^7.1.1"
|
acorn "^7.1.1"
|
||||||
acorn-walk "^7.1.1"
|
acorn-walk "^7.1.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user