@vtex/ads-stories 0.3.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.
@@ -1,13 +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 const BaseElement: typeof HTMLElement;
3
- declare class VtexAdsStoryElement extends BaseElement {
4
- private player;
5
- private readonly onKeyDown;
6
- private render;
5
+ declare class VtexAdsStoryElement extends LitElement {
6
+ static readonly styles: lit.CSSResult[];
7
+ private readonly cardVideo;
8
+ private readonly player;
9
+ connectedCallback(): void;
7
10
  private openPlayer;
8
11
  private closePlayer;
9
- connectedCallback(): void;
10
- disconnectedCallback(): void;
12
+ protected render(): lit.TemplateResult<1>;
11
13
  }
12
14
  declare global {
13
15
  interface HTMLElementTagNameMap {
@@ -1,5 +1,6 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
2
  import { VtexAdsStoryElement } from './index.cjs';
3
+ import 'lit';
3
4
 
4
5
  /**
5
6
  * React JSX types for <vtex-ads-story>. Types only: the JS output is empty.
@@ -1,13 +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 const BaseElement: typeof HTMLElement;
3
- declare class VtexAdsStoryElement extends BaseElement {
4
- private player;
5
- private readonly onKeyDown;
6
- private render;
5
+ declare class VtexAdsStoryElement extends LitElement {
6
+ static readonly styles: lit.CSSResult[];
7
+ private readonly cardVideo;
8
+ private readonly player;
9
+ connectedCallback(): void;
7
10
  private openPlayer;
8
11
  private closePlayer;
9
- connectedCallback(): void;
10
- disconnectedCallback(): void;
12
+ protected render(): lit.TemplateResult<1>;
11
13
  }
12
14
  declare global {
13
15
  interface HTMLElementTagNameMap {