stormcloud-video-player 0.8.59 → 0.8.60
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 -21
- package/README.md +1369 -1369
- package/dist/stormcloud-vp.min.js +3 -1
- package/lib/Player.cjs +548 -0
- package/lib/Player.cjs.map +1 -0
- package/lib/Player.d.cts +146 -0
- package/lib/{index.js → StormcloudPlayer.cjs} +1108 -1877
- package/lib/StormcloudPlayer.cjs.map +1 -0
- package/lib/{index.d.ts → StormcloudPlayer.d.cts} +7 -400
- package/lib/index.cjs +979 -251
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +18 -4032
- package/lib/patterns.cjs +111 -0
- package/lib/patterns.cjs.map +1 -0
- package/lib/patterns.d.cts +14 -0
- package/lib/player/AdBreakOrchestrator.cjs +48 -14
- package/lib/player/AdBreakOrchestrator.cjs.map +1 -1
- package/lib/player/AdBreakOrchestrator.d.cts +3 -1
- package/lib/player/AdConfigManager.cjs +155 -17
- package/lib/player/AdConfigManager.cjs.map +1 -1
- package/lib/player/AdConfigManager.d.cts +1 -1
- package/lib/player/AdTimingService.cjs.map +1 -1
- package/lib/player/AdTimingService.d.cts +1 -1
- package/lib/player/HlsEngine.cjs.map +1 -1
- package/lib/player/HlsEngine.d.cts +1 -1
- package/lib/player/PlaceholderLayer.cjs.map +1 -1
- package/lib/player/PlayerControls.cjs.map +1 -1
- package/lib/player/PlayerControls.d.cts +1 -1
- package/lib/player/Scte35CueManager.cjs.map +1 -1
- package/lib/player/Scte35CueManager.d.cts +1 -1
- package/lib/player/Scte35Parser.cjs.map +1 -1
- package/lib/player/Scte35Parser.d.cts +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +979 -251
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/player/playerTypes.cjs.map +1 -1
- package/lib/player/playerTypes.d.cts +1 -1
- package/lib/players/FilePlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +979 -251
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.d.cts +1 -1
- package/lib/players/index.cjs +979 -251
- package/lib/players/index.cjs.map +1 -1
- package/lib/props.cjs +186 -0
- package/lib/props.cjs.map +1 -0
- package/lib/props.d.cts +62 -0
- package/lib/sdk/hlsAdPlayer.cjs +884 -234
- package/lib/sdk/hlsAdPlayer.cjs.map +1 -1
- package/lib/sdk/hlsAdPlayer.d.cts +1 -1
- package/lib/sdk/pal.cjs.map +1 -1
- package/lib/types.cjs +49 -0
- package/lib/types.cjs.map +1 -0
- package/lib/{types-52ASml2N.d.cts → types.d.cts} +47 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +979 -251
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.d.cts +1 -1
- package/lib/utils/browserCompat.cjs.map +1 -1
- package/lib/utils/ctvVastSignals.cjs +155 -17
- package/lib/utils/ctvVastSignals.cjs.map +1 -1
- package/lib/utils/devUrl.cjs.map +1 -1
- package/lib/utils/polyfills.cjs.map +1 -1
- package/lib/utils/tracking.cjs +42 -14
- package/lib/utils/tracking.cjs.map +1 -1
- package/lib/utils/tracking.d.cts +1 -1
- package/lib/utils/trackingIngest.cjs.map +1 -1
- package/lib/utils/vastEnvironmentSignals.cjs +167 -17
- package/lib/utils/vastEnvironmentSignals.cjs.map +1 -1
- package/lib/utils/vastEnvironmentSignals.d.cts +12 -1
- package/lib/utils/vastMacros.cjs +26 -0
- package/lib/utils/vastMacros.cjs.map +1 -1
- package/lib/utils/vastTrackingMacros.cjs +5 -0
- package/lib/utils/vastTrackingMacros.cjs.map +1 -1
- package/lib/utils/vastTrackingMacros.d.cts +2 -0
- package/lib/utils.cjs +292 -0
- package/lib/utils.cjs.map +1 -0
- package/lib/utils.d.cts +17 -0
- package/package.json +91 -91
- package/rollup.config.js +90 -90
- package/lib/index.js.map +0 -1
package/rollup.config.js
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
import resolve from "@rollup/plugin-node-resolve";
|
|
2
|
-
import commonjs from "@rollup/plugin-commonjs";
|
|
3
|
-
import terser from "@rollup/plugin-terser";
|
|
4
|
-
import typescript from "@rollup/plugin-typescript";
|
|
5
|
-
import replace from "@rollup/plugin-replace";
|
|
6
|
-
import babel from "@rollup/plugin-babel";
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
input: "src/index.ts",
|
|
10
|
-
|
|
11
|
-
output: {
|
|
12
|
-
file: "dist/stormcloud-vp.min.js",
|
|
13
|
-
format: "umd",
|
|
14
|
-
name: "StormcloudVP",
|
|
15
|
-
sourcemap: false,
|
|
16
|
-
globals: {},
|
|
17
|
-
exports: "named",
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
treeshake: false,
|
|
21
|
-
|
|
22
|
-
plugins: [
|
|
23
|
-
resolve({
|
|
24
|
-
browser: true,
|
|
25
|
-
preferBuiltins: false,
|
|
26
|
-
}),
|
|
27
|
-
commonjs({
|
|
28
|
-
include: ["node_modules/**"],
|
|
29
|
-
}),
|
|
30
|
-
typescript({
|
|
31
|
-
tsconfig: "./tsconfig.json",
|
|
32
|
-
sourceMap: false,
|
|
33
|
-
inlineSources: false,
|
|
34
|
-
declaration: false,
|
|
35
|
-
declarationMap: false,
|
|
36
|
-
}),
|
|
37
|
-
babel({
|
|
38
|
-
babelHelpers: "bundled",
|
|
39
|
-
exclude: /node_modules\/core-js/,
|
|
40
|
-
extensions: [".js", ".jsx", ".ts", ".tsx", ".mjs"],
|
|
41
|
-
presets: [
|
|
42
|
-
[
|
|
43
|
-
"@babel/preset-env",
|
|
44
|
-
{
|
|
45
|
-
targets: {
|
|
46
|
-
chrome: "38",
|
|
47
|
-
},
|
|
48
|
-
modules: false,
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
],
|
|
52
|
-
}),
|
|
53
|
-
replace({
|
|
54
|
-
preventAssignment: true,
|
|
55
|
-
values: {
|
|
56
|
-
"process.env.NODE_ENV": JSON.stringify("production"),
|
|
57
|
-
"process.env": JSON.stringify({}),
|
|
58
|
-
},
|
|
59
|
-
}),
|
|
60
|
-
terser({
|
|
61
|
-
ecma: 5,
|
|
62
|
-
compress: {
|
|
63
|
-
drop_console: false,
|
|
64
|
-
drop_debugger: true,
|
|
65
|
-
pure_funcs: ["console.debug"],
|
|
66
|
-
ecma: 5,
|
|
67
|
-
},
|
|
68
|
-
mangle: {
|
|
69
|
-
reserved: ["StormcloudVP"],
|
|
70
|
-
},
|
|
71
|
-
output: {
|
|
72
|
-
ecma: 5,
|
|
73
|
-
},
|
|
74
|
-
}),
|
|
75
|
-
{
|
|
76
|
-
name: "globalthis-to-self",
|
|
77
|
-
renderChunk(code) {
|
|
78
|
-
return code.replace(/\bglobalThis\b/g, "self");
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
|
|
83
|
-
external: [],
|
|
84
|
-
|
|
85
|
-
onwarn(warning, warn) {
|
|
86
|
-
if (warning.code === "CIRCULAR_DEPENDENCY") return;
|
|
87
|
-
if (warning.code === "THIS_IS_UNDEFINED") return;
|
|
88
|
-
warn(warning);
|
|
89
|
-
},
|
|
90
|
-
};
|
|
1
|
+
import resolve from "@rollup/plugin-node-resolve";
|
|
2
|
+
import commonjs from "@rollup/plugin-commonjs";
|
|
3
|
+
import terser from "@rollup/plugin-terser";
|
|
4
|
+
import typescript from "@rollup/plugin-typescript";
|
|
5
|
+
import replace from "@rollup/plugin-replace";
|
|
6
|
+
import babel from "@rollup/plugin-babel";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
input: "src/index.ts",
|
|
10
|
+
|
|
11
|
+
output: {
|
|
12
|
+
file: "dist/stormcloud-vp.min.js",
|
|
13
|
+
format: "umd",
|
|
14
|
+
name: "StormcloudVP",
|
|
15
|
+
sourcemap: false,
|
|
16
|
+
globals: {},
|
|
17
|
+
exports: "named",
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
treeshake: false,
|
|
21
|
+
|
|
22
|
+
plugins: [
|
|
23
|
+
resolve({
|
|
24
|
+
browser: true,
|
|
25
|
+
preferBuiltins: false,
|
|
26
|
+
}),
|
|
27
|
+
commonjs({
|
|
28
|
+
include: ["node_modules/**"],
|
|
29
|
+
}),
|
|
30
|
+
typescript({
|
|
31
|
+
tsconfig: "./tsconfig.json",
|
|
32
|
+
sourceMap: false,
|
|
33
|
+
inlineSources: false,
|
|
34
|
+
declaration: false,
|
|
35
|
+
declarationMap: false,
|
|
36
|
+
}),
|
|
37
|
+
babel({
|
|
38
|
+
babelHelpers: "bundled",
|
|
39
|
+
exclude: /node_modules\/core-js/,
|
|
40
|
+
extensions: [".js", ".jsx", ".ts", ".tsx", ".mjs"],
|
|
41
|
+
presets: [
|
|
42
|
+
[
|
|
43
|
+
"@babel/preset-env",
|
|
44
|
+
{
|
|
45
|
+
targets: {
|
|
46
|
+
chrome: "38",
|
|
47
|
+
},
|
|
48
|
+
modules: false,
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
],
|
|
52
|
+
}),
|
|
53
|
+
replace({
|
|
54
|
+
preventAssignment: true,
|
|
55
|
+
values: {
|
|
56
|
+
"process.env.NODE_ENV": JSON.stringify("production"),
|
|
57
|
+
"process.env": JSON.stringify({}),
|
|
58
|
+
},
|
|
59
|
+
}),
|
|
60
|
+
terser({
|
|
61
|
+
ecma: 5,
|
|
62
|
+
compress: {
|
|
63
|
+
drop_console: false,
|
|
64
|
+
drop_debugger: true,
|
|
65
|
+
pure_funcs: ["console.debug"],
|
|
66
|
+
ecma: 5,
|
|
67
|
+
},
|
|
68
|
+
mangle: {
|
|
69
|
+
reserved: ["StormcloudVP"],
|
|
70
|
+
},
|
|
71
|
+
output: {
|
|
72
|
+
ecma: 5,
|
|
73
|
+
},
|
|
74
|
+
}),
|
|
75
|
+
{
|
|
76
|
+
name: "globalthis-to-self",
|
|
77
|
+
renderChunk(code) {
|
|
78
|
+
return code.replace(/\bglobalThis\b/g, "self");
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
|
|
83
|
+
external: [],
|
|
84
|
+
|
|
85
|
+
onwarn(warning, warn) {
|
|
86
|
+
if (warning.code === "CIRCULAR_DEPENDENCY") return;
|
|
87
|
+
if (warning.code === "THIS_IS_UNDEFINED") return;
|
|
88
|
+
warn(warning);
|
|
89
|
+
},
|
|
90
|
+
};
|