2.6.7 • Published 3 years ago

botfuel-hermes-webchat-client v2.6.7

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
3 years ago

npm.io

Botfuel Hermes webchat client

Installation

In order to deploy a Botfuel Hermes app on your website, you need to:

  • create an account on the app,
  • create a new app
  • copy the code snippet
  • paste it on your website

Distribution

We use the CDN of jsDelivr to distribute the webchat client code.

Publishing a new version

Versioning

We rely on Semantic Versioning for versioning the webchat client. The code snippet uses the latest version of the webchat client.

1. Update package version

According to Semantic Versioning standards:

  • PATCH for backwards compatible bug fixes
  • MINOR for new functionalities in a backwards compatible manner
  • MAJOR for new functionalities that includes incompatible API changes

To update the package version:

npm version <patch|minor|major>

Don't forget to push the new version commit on GitHub.

2. Publish the new package version to jsDelivr

To publish the new package:

npm publish

Integration

To integrate the widget into a website put the following code at the end of the <body> tag:

<script src="https://cdn.jsdelivr.net/npm/botfuel-hermes-webchat-client"></script>
<script type="text/javascript">
  BotfuelWebChat.init({
    websiteId: 'WEBSITE_ID',
  });
</script>

Non-production environments

To use a non-production environment you'll have to define the two options serverUrl and backendUrl to define respectively the webchat server and backend to which the widget should communicate with.

Use the following code for the staging environment:

<script src="https://cdn.jsdelivr.net/npm/botfuel-hermes-webchat-client"></script>
<script type="text/javascript">
  BotfuelWebChat.init({
    websiteId: 'WEBSITE_ID',
    serverUrl: 'https://botfuel-hermes-webchat-srv-s.herokuapp.com',
    backendUrl: 'https://botfuel-hermes-backend-staging.herokuapp.com',
  });
</script>

Icons

For icons we use a font of icons generated on Icomoon App.

To update the icon list: 1. Go to https://icomoon.io/app 2. Click the "Import icons" button 3. Import the file src/assets/fonts/selection.json 4. Edit icons selection 5. Once the selection is ready to be downloaded go to "Generate font" tab (bottom right) 6. Click download and open archive 7. In src/assets/fonts/ replace font files (.eot, .svg, .ttf, .woff) and selection.json by the new files

Dates

Dates format and manipulations are handled using Date-fns.

License

See LICENSE.

2.6.7

3 years ago

2.6.6

3 years ago

2.6.5

3 years ago

2.6.4

3 years ago

2.6.3

3 years ago

2.6.2

3 years ago

2.6.1

3 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.5

3 years ago

2.4.4

3 years ago

2.4.3

3 years ago

2.4.1

3 years ago

2.4.2

3 years ago

2.4.0

3 years ago

2.3.0

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.8.13

4 years ago

0.8.12

4 years ago

0.8.11

4 years ago

0.8.10

4 years ago

0.8.9

4 years ago

0.8.8

4 years ago

0.8.7

4 years ago

0.8.6

4 years ago

0.8.5

4 years ago

0.8.4

4 years ago

0.8.3

4 years ago

0.8.1

4 years ago

0.8.2

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.6

4 years ago

0.6.5

4 years ago

0.6.3

4 years ago

0.6.4

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.8

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago