0.33.2 • Published 10 months ago
@talentdigital/kit-snippet-integration v0.33.2
TalentKit snippet integration
This package provides a single file snippet to integrate TalentKit. It works by finding elements with specific css classes and attaching the TalentKit functionality to them.
Production usage
Include the following script tag in your HTML file:
<script src="https://unpkg.com/@talentdigital/kit-snippet-integration/dist/talent-kit-snippet-integration.umd.js"></script>
Or use a specific version:
<script src="https://unpkg.com/@talentdigital/kit-snippet-integration/dist/talent-kit-snippet-integration.umd.js"></script>
For full description on how to integrate see the description in freshdesk.
Available classes
.td-test-pass
- On click, sends a test pass event with the specified id, e.g.td-test-pass td-test-id-secure-password
.td-test-fail
- On click, sends a test fail event with the specified id, e.g.td-test-fail td-test-id-secure-password
.td-test-id-${id}
- Used in together withtd-test-pass
ortd-test-fail
to specifc the id of the test.td-episode-end
- On click, sends an episode end event and redirects back to the main application.
Development
After making changes, build the package with pnpm build
and test it through apps/canary-snippet-integration
.