close
Skip to content

livechat: scaffold adapter (LiveChatWidget.call + .on) #37

@productdevbook

Description

@productdevbook

Add `ahize/livechat` adapter. Wraps LiveChat (text.com) widget — the best-documented, best-typed competitor reference.

Reference

Tasks

  • `load({ license })` — injects script with `window.__lc`
  • `identify({ email, name })` → `LiveChatWidget.call('set_customer_email'|'set_customer_name', ...)`
  • `track(event, meta)` → `LiveChatWidget.call('update_session_variables', {[event]: meta})`
  • `show()/hide()` → `LiveChatWidget.call('maximize'|'hide')`
  • `shutdown()` → `LiveChatWidget.call('destroy')`
  • `onReady`, `onVisibilityChanged`, `onNewEvent`, `onCustomerStatusChanged` passthroughs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions