moon-intercom-chat
v0.0.37
Published
Moon-Intercom
Downloads
53
Readme
Moon-Intercom
Configurable integrated crypto wallet that can operate as a web component or as an iframe. Default mode is iframe mode where it is started in iframe only mode.
Import script via cdn
Initialise the webcomponent. a. Iframe Mode: As only a provider where a provider will be attached to window.moon and the provider will spawn a new window with the wallet app and communicate using iframe messages.
b. Integrated mode: Will run the wallet app as a micro front end in the shadow dom as an intercom button on the host website
Config: You can pass in attributes for controlling behaviour and appearance of the wallet. a. Authentication flags. If the property is pressent it will enable users to use one click auth for the given service.
- auth-google
- auth-facebook
- auth-instagram
- auth-github
- auth-telegram
- auth-discord
Usage:
b. Position: Will modify the position of the intercom button when running as a webcomponent. (Not in iframe mode)
- position: (bottom-right | bottom-left | top-right | top-left) default: bottom-right
Usage:
<moon-wallet position="top-left"></moon-wallet>
Simply add moon-intercom and call the window.MoonIntercom.