@internetarchive/ia-zendesk-help-widget

0.2.0 • Public • Published

Zendesk Help Widget Component

Usage

<ia-zendesk-help-widget
  widgetSrc="https://static.zdassets.com/ekr/snippet.js?key=[zendesk-api-key]"
></ia-zendesk-help-widget>

Properties:

widgetSrc: { type: String }, // widget src

Events

  • initiateZenDesk: Initiate third party script injection

Testing

Unit tests are placed in the ./test directory with the suffix and extension ".test.js". Any other JS files in the test directory will be ignored by Karma. Run the tests with yarn test.

Structure

  • index.js - main component export
  • index.html - file opened when running yarn start
  • karma.conf.js - Karma runner config
  • karma.bs.conf.js - Karma BrowserStack config. Note that BROWSER_STACK_USERNAME and BROWSER_STACK_ACCESS_KEY need to be set as environment variables before running.
  • /src/ia-zendesk-help-widget - main component definition
  • /stories - Storybook setup
  • /test - unit tests

Readme

Keywords

none

Package Sidebar

Install

npm i @internetarchive/ia-zendesk-help-widget

Weekly Downloads

9

Version

0.2.0

License

AGPL-3.0-only

Unpacked Size

50.8 kB

Total Files

19

Last publish

Collaborators

  • jeffwklein
  • jim-at-ia
  • tracey.pooh
  • latonv
  • markcarranza
  • ibnesayeed
  • bfalling
  • mitraardron
  • vbanos
  • kngenie
  • iisa
  • cdrini
  • nsharma123
  • dualcnhq