@vtex/ads-stories 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +12 -4
- package/dist/cdn/vtex-ads-stories.js +157 -18
- package/dist/cdn/vtex-ads-stories.js.map +1 -1
- package/dist/cjs/index.cjs +1833 -264
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +9 -8
- package/dist/cjs/react.d.cts +1 -0
- package/dist/esm/index.d.ts +9 -8
- package/dist/esm/index.js +385 -264
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/react.d.ts +1 -0
- package/package.json +4 -1
- package/src/components/card/card.ts +44 -106
- package/src/components/card/index.ts +1 -1
- package/src/components/icons/index.ts +24 -9
- package/src/components/media/index.ts +2 -0
- package/src/components/media/media.ts +66 -0
- package/src/components/media/video-controller.ts +78 -0
- package/src/components/player/index.ts +1 -1
- package/src/components/player/player.ts +199 -136
- package/src/story/story.ts +65 -88
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
1
4
|
declare const TAG_NAME = "vtex-ads-story";
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
private
|
|
5
|
-
private readonly
|
|
6
|
-
|
|
7
|
-
private cardVideo;
|
|
5
|
+
declare class VtexAdsStoryElement extends LitElement {
|
|
6
|
+
static readonly styles: lit.CSSResult[];
|
|
7
|
+
private readonly cardVideo;
|
|
8
|
+
private readonly player;
|
|
9
|
+
connectedCallback(): void;
|
|
8
10
|
private openPlayer;
|
|
9
11
|
private closePlayer;
|
|
10
|
-
|
|
11
|
-
disconnectedCallback(): void;
|
|
12
|
+
protected render(): lit.TemplateResult<1>;
|
|
12
13
|
}
|
|
13
14
|
declare global {
|
|
14
15
|
interface HTMLElementTagNameMap {
|
package/dist/cjs/react.d.cts
CHANGED
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
1
4
|
declare const TAG_NAME = "vtex-ads-story";
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
private
|
|
5
|
-
private readonly
|
|
6
|
-
|
|
7
|
-
private cardVideo;
|
|
5
|
+
declare class VtexAdsStoryElement extends LitElement {
|
|
6
|
+
static readonly styles: lit.CSSResult[];
|
|
7
|
+
private readonly cardVideo;
|
|
8
|
+
private readonly player;
|
|
9
|
+
connectedCallback(): void;
|
|
8
10
|
private openPlayer;
|
|
9
11
|
private closePlayer;
|
|
10
|
-
|
|
11
|
-
disconnectedCallback(): void;
|
|
12
|
+
protected render(): lit.TemplateResult<1>;
|
|
12
13
|
}
|
|
13
14
|
declare global {
|
|
14
15
|
interface HTMLElementTagNameMap {
|