0.0.37 • Published 4 months ago

moon-intercom-chat v0.0.37

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

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.

  1. Import script via cdn

  2. 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

  3. 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:

Simply add moon-intercom and call the window.MoonIntercom.