@roku-sdk/ads 0.0.0-stage → 2.18.0
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/LICENSE +21 -0
- package/README.md +20 -2
- package/package.json +47 -3
- package/src/__tests__/ads.test.tsx +735 -0
- package/src/ads.tsx +388 -0
- package/src/index.ts +22 -0
- package/src/xml-components/ads/ads.brs +198 -0
- package/src/xml-components/ads/ads.xml +35 -0
- package/src/xml-components/ads/ads.xml.d.ts +68 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// Auto-generated TypeScript declarations for XML component import.
|
|
2
|
+
// DO NOT EDIT — this file is regenerated during build.
|
|
3
|
+
//
|
|
4
|
+
// Source component: ads
|
|
5
|
+
// Extends: Task
|
|
6
|
+
|
|
7
|
+
import type { INodeProps } from "@roku-sdk/components";
|
|
8
|
+
import type { TypedXmlComponent } from "@roku-sdk/interfaces";
|
|
9
|
+
|
|
10
|
+
interface adsFields {
|
|
11
|
+
/** @default "false" */
|
|
12
|
+
debugOutput: boolean;
|
|
13
|
+
/** @default "none" */
|
|
14
|
+
command: string;
|
|
15
|
+
/** @default "none" */
|
|
16
|
+
adsState: string;
|
|
17
|
+
/** @default "" */
|
|
18
|
+
adUrl: string;
|
|
19
|
+
adView: import("@roku-sdk/interfaces").DomNode;
|
|
20
|
+
contentView: import("@roku-sdk/interfaces").DomNode;
|
|
21
|
+
contentMetadata: Record<string, unknown>;
|
|
22
|
+
getAdsResult: unknown[];
|
|
23
|
+
/** @default "none" */
|
|
24
|
+
showAdsResult: string;
|
|
25
|
+
adCounter: Record<string, unknown>;
|
|
26
|
+
stitchedAdResult: Record<string, unknown>;
|
|
27
|
+
/** @default "none" */
|
|
28
|
+
stitchedAdsInitResult: string;
|
|
29
|
+
/** @default "none" */
|
|
30
|
+
constructStitchedStreamResult: string;
|
|
31
|
+
/** @default "none" */
|
|
32
|
+
renderStitchedStreamResult: string;
|
|
33
|
+
/** @default "false" */
|
|
34
|
+
enableAdMeasurements: boolean;
|
|
35
|
+
/** @default "" */
|
|
36
|
+
contentGenre: string;
|
|
37
|
+
/** @default "" */
|
|
38
|
+
contentId: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface IadsProps extends INodeProps, Partial<adsFields> {}
|
|
42
|
+
|
|
43
|
+
declare const _default: TypedXmlComponent<"ads", adsFields>;
|
|
44
|
+
export default _default;
|
|
45
|
+
|
|
46
|
+
declare module "@roku-sdk/solid" {
|
|
47
|
+
namespace JSX {
|
|
48
|
+
interface IntrinsicElements {
|
|
49
|
+
ads: IadsProps;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare module "@roku-sdk/solid/jsx-runtime" {
|
|
55
|
+
namespace JSX {
|
|
56
|
+
interface IntrinsicElements {
|
|
57
|
+
ads: IadsProps;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare module "solid-js" {
|
|
63
|
+
namespace JSX {
|
|
64
|
+
interface IntrinsicElements {
|
|
65
|
+
ads: IadsProps;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|