Giter Site home page Giter Site logo

hubtype / botonic Goto Github PK

View Code? Open in Web Editor NEW
481.0 15.0 74.0 43.11 MB

Build chatbots and conversational experiences using React

Home Page: https://botonic.io

License: MIT License

Shell 0.62% JavaScript 21.71% Batchfile 0.01% TypeScript 77.48% HTML 0.12% SCSS 0.07%
react javascript bot-framework conversational-ui conversational-apps conversational-interfaces bots chatbots nlu nlp cms contentful dialogflow watson

botonic's Introduction

Botonic

Website | Blog | Docs | Examples | Friday Office Hours


Build Chatbots and Conversational Apps Using React

botonic Version Downloads/week License Twitter Follow

🐣 Introducing Botonic Open Source Framework

Botonic is an open source full-stack framework to create chatbots and modern conversational apps made with ❤️ by Hubtype.

It's built on top of:

⚛️ React | ⚡ Serverless | 💡 Tensorflow.js

And it works on:

💬 Messaging apps like Whatsapp, Facebook Messenger, Telegram, Twitter DMs | 🌐 Your website | 📱 Your mobile app

With Botonic you can focus on creating the best conversational experience for your users instead of dealing with different messaging APIs, AI/NLP complexity or managing and scaling infrastructure. It also comes with a battery of plugins so you can easily integrate popular services into your project, for instance:

If you'd like to see more plugins/integrations, please submit an issue or a pull request

🚀 Quick Start

Prerequisites

  • Node (v10 or above) and NPM are required.
  • LTS version of NodeJS Installer is recommended.
  • You can verify the installation running npm --version and node --version on a terminal.

Step 1 - Install

$> npm install -g @botonic/cli

Step 2 - Create a bot

$> botonic new myBot tutorial

Step 3 - Run your bot

Run your bot locally while developing:

$> cd myBot
$> botonic serve

botonic serve is just an alias for npm run start which will start a local server at http://localhost:8080. While you develop, the server will auto reload every time you make changes to your code.

Step 4 - Deploy

$> botonic deploy

Check out the Getting Started Tutorial: a step-by-step guide to start building high quality conversational apps.

🤝 Contributing

  • ⭐⭐ Give us a Star on GitHub ⭐⭐
  • Submit an issue if you find a bug or want to request a feature.
  • Join our Slack community, let us know what you're building and give us feedback.
  • PRs are welcome! Just follow our Code of Conduct and Contributing Guide

👏 Supporters

Stargazers repo roster for @hubtype/botonic

Forkers repo roster for @hubtype/botonic

botonic's People

Contributors

ainavendrell avatar albertgom avatar alexgimenez02 avatar annehubtype avatar asastre avatar carloselorenzo avatar castledom04 avatar christophergs avatar danielruf avatar dependabot-preview[bot] avatar dependabot[bot] avatar dpinol avatar elozano98 avatar ericmarcos avatar gbarba avatar guinii avatar imoscarcrespo avatar iru89 avatar jianchen-it avatar jonty-terrence avatar jruivo-dev avatar khaeshah avatar manuelalferez avatar manuelfidalgo avatar marcosca avatar marcrabat avatar mbentel avatar mireiaespuga avatar snyk-bot avatar vanbasten17 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

botonic's Issues

Install dependencies optional

Is your feature request related to a problem? Please describe.
When I created the bot the process of install dependencies fail.

Describe the solution you'd like
Then I had to install them manually

Describe alternatives you've considered
I consider that install dependencies could be optional, like:
Install dependencies:

  • automatic
  • manually

Thanks for the amazing project

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/preset-env in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @types/react in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Add the ability to pass user and password as parameter to the botonic deploy instruction of the cli

Right now, when I configure automatic deployments from the CI/CD pipelines of the bots using the credentials.json, it just works during a short amount of time since the expiration of the refresh_token.

It would be nice to have the ability to pass the user and password as parameters to the botonic deploy instruction so it can be done in just one instruction. Something like:
botonic deploy -u username -p ****** --botName=chatbot1

Add event listener to <Message> component that tells when it is rendered

In my specific implementation, I am sending audio over the chatbot. After the audio is done playing, I want to display options to choose from.

It would be nice if Botonic has a pointer to the latest message, which is updated with the state of the message (e.g. 'typing', or 'sent').

Currently, i need to continuously check if the message element has already been rendered by passing it a checkable ID and checking if the document has such an ID every 100 ms, and if so, check the state of the audio component, and depending on that state render the options.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/core in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Text component without text inside won't show in production

Describe the bug
If you declare an action like this one:

export default class extends React.Component {
  render() {
    return <Text><Button payload={'handoff'}>Handoff</Button></Text>
  }
}

The message will be displayed like this in development:
Captura de pantalla de 2020-11-18 09-33-59

But in production it won't be displayed, the bot will remain "thinking" for a response:
Captura de pantalla de 2020-11-18 09-36-12

To Reproduce
Create an action like the stated before.

What is the expected behaviour?
I would expect to see the message without a text but with a button (like the screenshot in development) in both environments, development and production.

About the environment
Version: @botonic/react 0.15.2
Browser: Chrome
OS: Linux Ubuntu 18.04
Environment affected: production.

Enable/Disable userInput not working as expected through WebchatSettings

Describe the bug
Setting userInput enable/disable through userInput.enable instead of enableUserInput in webchat configuration provokes that the <WebchatSettings> option is not working as expected enabling/disabling the userInput using userInput.enable option.

In development the user input is neither enabled nor disabled, it seems like is not working at all.
When deployed in production, the user input is enabled/disabled correctly but if the website is refreshed (F5) after the user input has been activated through <WebchatSettings>, the user input is disabled again (doesn't load the changes made with <WebchatSettings> and shows de default configuration)

To Reproduce
Steps to reproduce the behaviour:

  1. Add this webchat configuration in webchat/index.js:
theme: {
        userInput: {
            enable: false,
        }
    }
  1. Create an action 1 that enables the user input with:
<WebchatSettings theme={{userInput:{enable: true}}}/>
  1. Create an action 2 that disables the user input with:
<WebchatSettings theme={{userInput:{enable: false}}}/>
  1. Make a flow so that first come action 1 and then action 2.

What is the expected behaviour?
The expected behaviour should be the user input to be enabled in action 1 and disabled in action 2 with the execution of <WebchatSettings> either in development and production.

About the environment
Version: @botonic/react 0.15.2
Browser: Chrome
OS: Linux Ubuntu 18.04
Environment affected: development and production.

Additional context
If the enabling/disabling of the user input is done with enableUserInput option, it seems is working correctly in development, but after refreshing the website, it doesn't work any more.

CSS styles for webviews

Describe the bug
when i try import css files in webview, css code inserted into the main html, not to webview iframe

To Reproduce
open any webview js file and try

import './any.css'

What is the expected behaviour?
want to see css stykles in webview iframe, not in parent html

About the environment
botonic 0.9.0
node 12.11.0

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/plugin-transform-runtime in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating react-hot-loader in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/preset-env in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Build error Error: Command failed: npm run build

Hi, I'm new to this. I followed your installation steps in the Docs at https://botonic.io/docs/getting-started.html and it doesn't work. I use Windows 10, node v11.9.0, npm 6.5.0 and cygwin 3.0.7. Any ideas what could be wrong? I get this error:

image

$ botonic new myBot tutorial
- Copying files...
√ Copying files...
- Installing dependencies...
√ Installing dependencies...
- Building...
× Building...
Build error Error: Command failed: npm run build
clean-webpack-plugin: C:\users\jakub\web\myBot\dist has been removed.
[BABEL] Note: The code generator has deoptimised the styling of C:\users\jakub\web\myBot\node_modules\react-dom\cjs\react-dom.development.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of C:\users\jakub\web\myBot\node_modules\react-dom\cjs\react-dom.development.js as it exceeds the max of 500KB.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ build: `webpack --env.node`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jakub\AppData\Roaming\npm-cache\_logs\2019-05-05T16_14_12_645Z-debug.log


✨  Bot myBot was successfully created!

Next steps:
cd myBot
botonic serve (test your bot locally from the browser)
botonic deploy (publish your bot to the world!)

When I run npm run build in myBot folder, I get a million warnings and this error:

ERROR in   Error: C:\users\jakub\web\myBot\node_modules\@botonic\react\src\webview.templa  te.html:130
      module.exports = _typeof;
                     ^
      TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
      - webview.template.html:130 Module.<anonymous>
        [myBot]/[@botonic]/react/src/webview.template.html:130:16

      - webview.template.html:131 Module../node_modules/@babel/runtime/helpers/typeo    f.js
        [myBot]/[@botonic]/react/src/webview.template.html:131:30

      - webview.template.html:21 __webpack_require__
        [myBot]/[@botonic]/react/src/webview.template.html:21:30

      - webview.template.html:17270 Module.<anonymous>
        [myBot]/[@botonic]/react/src/webview.template.html:17270:133

      - webview.template.html:17290 Module../node_modules/webpack/buildin/global.js
        [myBot]/[@botonic]/react/src/webview.template.html:17290:30

      - webview.template.html:21 __webpack_require__
        [myBot]/[@botonic]/react/src/webview.template.html:21:30

      - webview.template.html:17257 Object../node_modules/lodash/lodash.js
        [myBot]/[@botonic]/react/src/webview.template.html:17257:41

      - webview.template.html:21 __webpack_require__
        [myBot]/[@botonic]/react/src/webview.template.html:21:30

      - webview.template.html:142 Object../node_modules/html-webpack-plugin/lib/load    er.js!./node_modules/@botonic/react/src/webview.template.html
        [myBot]/[@botonic]/react/src/webview.template.html:142:9

      - webview.template.html:21 __webpack_require__
        [myBot]/[@botonic]/react/src/webview.template.html:21:30


    Child html-webpack-plugin for "index.html":
         1 asset
        Entrypoint undefined = index.html
           6 modules

deploy error

I get There was a problem building the bot when deploying my bot.

Updating the Webhook settings fails on hubtype.com with error {"feature_flags_json":["This field is required."]}

Describe the bug

Updating the Webhook settings fails on hubtype.com with error {"feature_flags_json":["This field is required."]}

To Reproduce
Steps to reproduce the behaviour:

  1. Go to Webhook settings
  2. Click on Save
  3. See error {"feature_flags_json":["This field is required."]}
  4. Intuition about the error / Proposed solution (optional)
    Editing the request payload from "feature_flags":{} to "feature_flags_json":{} allows the request to continue and save the data.

Screenshots
image

About the environment
hubtype.com

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/plugin-proposal-class-properties in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @types/react in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Etiqueta indicadora del día al que pertenecen los mensajes

Ya sea para diferenciar entre sesiones de chat (de cuando el usuario abre el chat) o para diferenciar los mensajes del día, estaría bien poder añadir un mensaje/etiqueta configurable en estilo, en medio de los mensajes del chat, similar a lo que hace whatsapp para separar los mensajes por días.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/plugin-transform-runtime in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Chat sin mensaje

Nos pasa en repetidas ocaciones, que habiendo iniciado una sesión del chat, si lo dejas un tiempo sin hacer nada, tras la recarga del chat, o el volver a abrir el navebador, se cargan los mensajes anteriores y visualmente se muestran tres puntos suspensivos como intentando conectar con Dialogflow, pero se queda ahí. No sabemos si no obtiene respuesta, si es porque la sesión finalizó.

Ayudita please!

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @types/react in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @types/react in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Cannot receive url parameters

Describe the bug

Try to pass URL parameters (https://docs.botonic.io/tutorials-and-examples/guided-flow#working-with-url-parameters), but receive an empty params

To Reproduce

index.js

...
<Button key={site.id} path={`menu?id=${site.id}`}>
{site.title}
</Button>
...

menu.js

...
render() {
    //
    console.log('Menu', this.context.params);
...

result of console.log():

params: {
e: ""
__proto__: Object
}

What is the expected behaviour?
Url parameters in params

About the environment
node 12
botonic 0.10.0

Did this work in previous versions of botonic?
work fine on 0.9.0

Additional context
Add any other context about the problem here.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/core in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

visual / screenshots?

Is your feature request related to a problem? Please describe.
this looks interesting, but i'm not quite sure, i think the docs could be a lot clearer
I can't understand what the result of this framework is!

Describe the solution you'd like
since it's react i assume it's a client side framework - so it would be great to see how it looks
also i think you have some widgets - I saw a calendar in the components dir
https://github.com/hubtype/botonic/tree/master/examples/hubtype_demo/src/webviews/components

so, it would be nice to have a library/listing of those components too!

finally is this meant to connect to a specific backend? I'm really unclear after looking at the docs.
where is the bot logic meant to be specified?

is that purely payloads => actions mapping?
https://botonic.io/docs/create-convapp

is there any other meta format for scripting?

thanks!

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @types/react in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Support for Knowledgebase and samll talk in dialogflow.

Is your feature request related to a problem? Please describe.
Currently we cannot get the intent matching for knowledgebase or smalltalk in botonic

Describe the solution you'd like
The support for knowledgebase and smalltalk will help in creating better FAQ bots using dialogflow.

Describe alternatives you've considered
Currently we have no options other than creating intent for every Q&A

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating react-hot-loader in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Does not integrate with TypeScript

The error "Could not find a declaration file for module [various modules] implicitly has an 'any' type" appears. This is TypeScript error 7016.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/cli in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/core@^0.10.0.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/runtime in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Self-hosted web app built but incorrectly

Describe the bug
When proceeding according to docs in order to build standalone JS bundle for chatbot, the only output file is /dist/main.js.

To Reproduce
Steps to reproduce the behaviour:

  1. Create blank Botonic project
  2. Proceed according to docs for standalone JS bundle deployment type
  3. Build the project
  4. See code generated by webpack that is unusable

What is the expected behaviour?
Generate dist/webchat.botonic.js which can be imported to any website.

Screenshots
Build log
Screen Shot 2020-12-18 at 19 57 24

Folder structure after reproducing steps from docs:
Screen Shot 2020-12-18 at 19 54 06

About the environment
Botonic CLI v0.16.0
Node v15.4.0

Additional context
No additional dependencies, just what is included for blank Botonic project

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating react-hot-loader in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

support for target="_self" in url

Describe the bug
currently there is no support for url to be opened in the same webchat window.
when we host the website and give links within our website, the url opens in a new browser window and a new chathead is displayed.

What is the expected behaviour?
support for target="_self" will have better approach when we have links in the bot pointing to our own website.
This needs to ensure that the chat window opened is active the session remains the same but the url in the background changes.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating react in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/core@^0.10.0.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating react-hot-loader in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @types/react in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @types/react in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/cli in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @types/react in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Broken tests/app.test.js in botonic-cli starter templates

Describe the bug
When a new botonic project is created from any of the botonic-cli templates, the tests that are created fail because they try to import the deprecated App from src/app.js (which no longer exists after v0.9.0)

To Reproduce
Steps to reproduce the behaviour:

  1. Make sure you have @botonic/cli v0.10.0: botonic -v
  2. Start a new project: > botonic new myBot tutorial
  3. Run tests: > cd myBot && npm run test
  4. See error:
> @ test /Users/eric/myBot
> jest

 FAIL  tests/app.test.js
  ● Test suite failed to run

    Cannot find module '../src/app' from 'app.test.js'

      1 | import { BotonicInputTester, BotonicOutputTester } from '@botonic/react'
      2 |
    > 3 | import App from '../src/app'
        | ^
      4 |
      5 | let i = new BotonicInputTester(App)
      6 | let o = new BotonicOutputTester(App)

      at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
      at Object.<anonymous> (app.test.js:3:1)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        4.699s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ test: `jest`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/eric/.npm/_logs/2019-12-30T09_45_29_800Z-debug.log

What is the expected behaviour?
Test shouldn't fail, the file tests/app.test.js should be updated to the new classes (post v0.9.0)

Screenshots
NA

About the environment
Which versions of botonic packages, and which browser/OS or environment (development/production) are affected by this issue? Did this work in previous versions of botonic packages?
v0.9.x and v0.10.x are affected

Botonic.clearMessages() doesn't delete all messages

Describe the bug
I am triggering this function (clearMessages) if the lastMessageUpdate is older than 3 hours- from onInit or onStart - but sometimes not all the messages are being deleted. Some of the messages that still remain (custom message types) are being shown as an empty chat bubble.

To Reproduce
Steps to reproduce the behaviour:

  1. Add the clearMessages in onOpen if lastMessageUpdate is older than 3 hours
  2. Open chatbot
  3. Add some messages
  4. Leave the browser and the chatbot open (I suspect this has something to do with this behavior - if I do everything the same but instead I close the browser/tab and reopen it 3 hours later then I don't get this problem)
  5. Notice some older messages - not necessary chronologically linked- , and some empty chat bubbles instead of the custom types messages

What is the expected behaviour?
No message to be present

Screenshots
image

About the environment
Which version: "@botonic/react": "^0.14.0-alpha.4"
Which browser/OS or environment (development/production) are affected by this issue: Any browser and OS, more frequently noticed in IE11 and Edge.
Did this work in previous versions: no

Additional context
The botonic state when this happened:
{"user":{"id":"67f2da2b-6233-4406-85b5-7a6fbd51bc89","name":"Windows Edge","extra_data":{"lang":"GB_en"},"orderNumber":"w612222"},"messages":[{"id":"8f056d8013a54774b02f0478b7f31bac","type":"text","data":{"text":"No problem. You can find your order number on the order confirmation email we sent you.\n\nHave you found your order number?"},"timestamp":"Sep 11, 8:31:17 AM","markdown":true,"from":"bot","buttons":[],"delay":0,"typing":0,"replies":[{"payload":"enterOrderNumber","text":"Yes, I have it"},{"payload":"iDontHaveIt","text":"No, I don't have it"}],"display":true,"ack":1},{"id":"72ad013e24d645bba2148c93e2bfeaa4","type":"text","data":{"text":""},"timestamp":"Sep 11, 8:31:17 AM","markdown":true,"from":"bot","buttons":[],"delay":0,"typing":0,"replies":[{"payload":"iDontKnowTheNumber","text":"I don't have my order number"}],"display":true,"ack":1},{"id":"2c73f78d6c4740cbb8db737168c4f8c1","type":"custom","data":{"id":"2c73f78d6c4740cbb8db737168c4f8c1","json":{"placeholder":"W123456789","label":"Order Number:","text":"Welcome to the order tracking service.\n\nSo we can assist you, please enter your full order number which starts with a letter followed by a sequence of numbers","replyText":"I don't have my order number","replyPayload":"iDontKnowTheNumber","customTypeName":"messageWithInput"},"placeholder":"W123456789","label":"Order Number:","text":"Welcome to the order tracking service.\n\nSo we can assist you, please enter your full order number which starts with a letter followed by a sequence of numbers","replyText":"I don't have my order number","replyPayload":"iDontKnowTheNumber","customTypeName":"messageWithInput"},"timestamp":"Sep 11, 8:31:18 AM","from":"bot","buttons":[],"delay":0,"typing":0,"replies":[],"display":true,"customTypeName":"messageWithInput","ack":1}],"session":{"user":{"extra_data":{"lang":"GB_en"},"orderNumber":"w612222"}},"lastRoutePath":null,"devSettings":{},"lastMessageUpdate":"2020-09-11T05:31:18.375Z"}

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/plugin-proposal-class-properties in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/core@^0.10.0.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Issue running botonic serve

Describe the bug

I get the following error when trying to run botonic serve, this is a default install have tried both the tutorial template and blank.

Serving Botonic...

> @ start /home/user/purr-bot
> next start


> Could not find a valid build in the '/home/user/purr-bot/.next' directory! Try building your app with 'next build' before starting the server.

npm
 ERR! code ELIFECYCLE
npm ERR! errno 1

npm
ERR! @ start: `next start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.



npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2020-08-26T08_34_09_409Z-debug.log

child process exited with code 1

To Reproduce
Steps to reproduce the behaviour:

  1. npm install -g @botonic/cli
  2. botonic new purr-bot tutorial
  3. cd purr-bot
  4. botonic serve
  5. See above error

What is the expected behaviour?

App to start up at localhost:8080

Screenshots
If applicable, add screenshots to help explain your problem.

About the environment
Latest version of botonic and running in WSL 20,04.

Additional context
Add any other context about the problem here.

Adding name and version fields to generated package.json

Describe the bug
A clear and concise description of what the bug is.

Currently the cli does not add name or version to the package.json this can cause issues when working with tools like lerna.

To Reproduce
Steps to reproduce the behaviour:

  1. Generate new project
  2. Open package.json
  3. name and version are not present

What is the expected behaviour?
A clear and concise description of what you expected to happen.

Fields would be added, name based on name given when using cli and version could default to something like 0.0.0 or 1.0.0.

Screenshots
If applicable, add screenshots to help explain your problem.

About the environment
Which versions of botonic packages, and which browser/OS or environment (development/production) are affected by this issue? Did this work in previous versions of botonic packages?

Using latest cli version.

Additional context
Add any other context about the problem here.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @rehooks/local-storage in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/core@^0.10.0.

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @types/react in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Dependabot can't resolve your JavaScript dependency files

Dependabot can't resolve your JavaScript dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Error whilst updating @babel/plugin-proposal-class-properties in /packages/botonic-react/package-lock.json:
No matching version found for @botonic/[email protected]

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.