@vouchfor/embeds 0.0.0-experiment.d99576c → 0.0.0-experiment.da12aaa

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/es/embeds.js +1146 -7
  2. package/dist/es/embeds.js.map +1 -1
  3. package/dist/es/src/components/DialogEmbed/DialogOverlay.d.ts +20 -0
  4. package/dist/es/src/components/DialogEmbed/DialogPortal.d.ts +36 -0
  5. package/dist/es/src/components/DialogEmbed/index.d.ts +38 -0
  6. package/dist/es/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +15 -0
  7. package/dist/es/src/components/{Embed → PlayerEmbed}/controllers/fetcher.d.ts +4 -4
  8. package/dist/es/src/components/{Embed/controllers/tracking.d.ts → PlayerEmbed/controllers/tracking/index.d.ts} +14 -11
  9. package/dist/es/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +17 -0
  10. package/dist/es/src/components/{Embed → PlayerEmbed}/index.d.ts +27 -22
  11. package/dist/es/src/components/PlayerEmbed/tests/data.d.ts +3 -0
  12. package/dist/es/src/index.d.ts +2 -1
  13. package/dist/iife/dialog-embed/embed.iife.js +1759 -0
  14. package/dist/iife/dialog-embed/embed.iife.js.map +1 -0
  15. package/dist/iife/embeds.iife.js +582 -381
  16. package/dist/iife/embeds.iife.js.map +1 -1
  17. package/dist/iife/player-embed/embed.iife.js +1621 -0
  18. package/dist/iife/player-embed/embed.iife.js.map +1 -0
  19. package/package.json +43 -32
  20. package/src/components/DialogEmbed/Dialog.stories.ts +91 -0
  21. package/src/components/DialogEmbed/DialogOverlay.ts +131 -0
  22. package/src/components/DialogEmbed/DialogPortal.ts +126 -0
  23. package/src/components/DialogEmbed/index.ts +97 -0
  24. package/src/components/PlayerEmbed/MultiEmbed.stories.ts +135 -0
  25. package/src/components/{Embed/Embed.stories.ts → PlayerEmbed/PlayerEmbed.stories.ts} +30 -16
  26. package/src/components/{Embed → PlayerEmbed}/controllers/event-forwarder.ts +6 -5
  27. package/src/components/{Embed → PlayerEmbed}/controllers/fetcher.ts +11 -11
  28. package/src/components/{Embed/controllers/tracking.ts → PlayerEmbed/controllers/tracking/index.ts} +47 -118
  29. package/src/components/PlayerEmbed/controllers/tracking/utils.ts +95 -0
  30. package/src/components/{Embed → PlayerEmbed}/index.ts +63 -23
  31. package/src/components/PlayerEmbed/tests/PlayerEmbed.spec.ts +80 -0
  32. package/src/components/PlayerEmbed/tests/data.ts +183 -0
  33. package/src/index.ts +2 -1
  34. package/dist/es/browser-9c97227e.js +0 -433
  35. package/dist/es/browser-9c97227e.js.map +0 -1
  36. package/dist/es/index-92fec846.js +0 -9950
  37. package/dist/es/index-92fec846.js.map +0 -1
  38. package/src/components/Embed/Embed.spec.ts +0 -17
@@ -1,17 +0,0 @@
1
- import { expect } from '@esm-bundle/chai';
2
- // import { fixture } from '@open-wc/testing';
3
- // import { html } from 'lit';
4
-
5
- // import type { Embed } from './index.js';
6
-
7
- // Can't use typescript aliases with esbuild file transforms apparently
8
- // No idea what a good way to actually build before testing is, the examples give nothing
9
- // https://modern-web.dev/guides/test-runner/typescript/
10
- import '../../test/lib/embeds.js';
11
-
12
- describe('Embeds', () => {
13
- it('passes', async () => {
14
- expect(true).to.be.true;
15
- // const player = await fixture<Embed>(html`<vouch-embed aspectratio=${1}></vouch-embed>`);
16
- });
17
- });