1.1.5 • Published 4 years ago

slaask-react v1.1.5

Weekly downloads
136
License
-
Repository
-
Last release
4 years ago

React Slaask

This package is a fork of react-slaask. This component adds the possibility to add extra information when sending a message. The extra information is defined as an object.

Installation

npm install slaask-react --save

Next , import the component into a React project:

import Slaask from 'slaask-react';

Usage of the component

render() {
return (
<Slaask widgetKey="your-widget-key" name="name-of-person" extraOptions={object} showChatBox={bool} logChat={function} />
);
}
propdescription
widgetKeyThe widgetKey you can obtain via slaask
nameName of the person sending you a message
extraOptionsExtra options you want to include in the message.
showChatBoxBool that hides or shows the button and chatbox
logChatExecute a function when a first message is sent

How to develop

Publishing the npm package constantly wouldn't be feasible. Luckily, you can use yarn link! This links this package to the project you wanna use it in!

Steps:

  1. Go to this project
  2. yarn link
  3. yarn start
  4. Go to project you want to use the package in (for example LPF)
  5. yarn link slaask-react
  6. Succes!

Publishing

This could be done automatically, but for now only local publishing is possible:

  1. Bump version number in package.json
  2. npm run-script build
  3. npm publish
1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.10

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