@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.
- package/dist/es/embeds.js +1146 -7
- package/dist/es/embeds.js.map +1 -1
- package/dist/es/src/components/DialogEmbed/DialogOverlay.d.ts +20 -0
- package/dist/es/src/components/DialogEmbed/DialogPortal.d.ts +36 -0
- package/dist/es/src/components/DialogEmbed/index.d.ts +38 -0
- package/dist/es/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +15 -0
- package/dist/es/src/components/{Embed → PlayerEmbed}/controllers/fetcher.d.ts +4 -4
- package/dist/es/src/components/{Embed/controllers/tracking.d.ts → PlayerEmbed/controllers/tracking/index.d.ts} +14 -11
- package/dist/es/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +17 -0
- package/dist/es/src/components/{Embed → PlayerEmbed}/index.d.ts +27 -22
- package/dist/es/src/components/PlayerEmbed/tests/data.d.ts +3 -0
- package/dist/es/src/index.d.ts +2 -1
- package/dist/iife/dialog-embed/embed.iife.js +1759 -0
- package/dist/iife/dialog-embed/embed.iife.js.map +1 -0
- package/dist/iife/embeds.iife.js +582 -381
- package/dist/iife/embeds.iife.js.map +1 -1
- package/dist/iife/player-embed/embed.iife.js +1621 -0
- package/dist/iife/player-embed/embed.iife.js.map +1 -0
- package/package.json +43 -32
- package/src/components/DialogEmbed/Dialog.stories.ts +91 -0
- package/src/components/DialogEmbed/DialogOverlay.ts +131 -0
- package/src/components/DialogEmbed/DialogPortal.ts +126 -0
- package/src/components/DialogEmbed/index.ts +97 -0
- package/src/components/PlayerEmbed/MultiEmbed.stories.ts +135 -0
- package/src/components/{Embed/Embed.stories.ts → PlayerEmbed/PlayerEmbed.stories.ts} +30 -16
- package/src/components/{Embed → PlayerEmbed}/controllers/event-forwarder.ts +6 -5
- package/src/components/{Embed → PlayerEmbed}/controllers/fetcher.ts +11 -11
- package/src/components/{Embed/controllers/tracking.ts → PlayerEmbed/controllers/tracking/index.ts} +47 -118
- package/src/components/PlayerEmbed/controllers/tracking/utils.ts +95 -0
- package/src/components/{Embed → PlayerEmbed}/index.ts +63 -23
- package/src/components/PlayerEmbed/tests/PlayerEmbed.spec.ts +80 -0
- package/src/components/PlayerEmbed/tests/data.ts +183 -0
- package/src/index.ts +2 -1
- package/dist/es/browser-9c97227e.js +0 -433
- package/dist/es/browser-9c97227e.js.map +0 -1
- package/dist/es/index-92fec846.js +0 -9950
- package/dist/es/index-92fec846.js.map +0 -1
- 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
|
-
});
|