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.
Files changed (79) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1369 -1369
  3. package/dist/stormcloud-vp.min.js +3 -1
  4. package/lib/Player.cjs +548 -0
  5. package/lib/Player.cjs.map +1 -0
  6. package/lib/Player.d.cts +146 -0
  7. package/lib/{index.js → StormcloudPlayer.cjs} +1108 -1877
  8. package/lib/StormcloudPlayer.cjs.map +1 -0
  9. package/lib/{index.d.ts → StormcloudPlayer.d.cts} +7 -400
  10. package/lib/index.cjs +979 -251
  11. package/lib/index.cjs.map +1 -1
  12. package/lib/index.d.cts +18 -4032
  13. package/lib/patterns.cjs +111 -0
  14. package/lib/patterns.cjs.map +1 -0
  15. package/lib/patterns.d.cts +14 -0
  16. package/lib/player/AdBreakOrchestrator.cjs +48 -14
  17. package/lib/player/AdBreakOrchestrator.cjs.map +1 -1
  18. package/lib/player/AdBreakOrchestrator.d.cts +3 -1
  19. package/lib/player/AdConfigManager.cjs +155 -17
  20. package/lib/player/AdConfigManager.cjs.map +1 -1
  21. package/lib/player/AdConfigManager.d.cts +1 -1
  22. package/lib/player/AdTimingService.cjs.map +1 -1
  23. package/lib/player/AdTimingService.d.cts +1 -1
  24. package/lib/player/HlsEngine.cjs.map +1 -1
  25. package/lib/player/HlsEngine.d.cts +1 -1
  26. package/lib/player/PlaceholderLayer.cjs.map +1 -1
  27. package/lib/player/PlayerControls.cjs.map +1 -1
  28. package/lib/player/PlayerControls.d.cts +1 -1
  29. package/lib/player/Scte35CueManager.cjs.map +1 -1
  30. package/lib/player/Scte35CueManager.d.cts +1 -1
  31. package/lib/player/Scte35Parser.cjs.map +1 -1
  32. package/lib/player/Scte35Parser.d.cts +1 -1
  33. package/lib/player/StormcloudVideoPlayer.cjs +979 -251
  34. package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
  35. package/lib/player/StormcloudVideoPlayer.d.cts +1 -1
  36. package/lib/player/playerTypes.cjs.map +1 -1
  37. package/lib/player/playerTypes.d.cts +1 -1
  38. package/lib/players/FilePlayer.cjs.map +1 -1
  39. package/lib/players/HlsPlayer.cjs +979 -251
  40. package/lib/players/HlsPlayer.cjs.map +1 -1
  41. package/lib/players/HlsPlayer.d.cts +1 -1
  42. package/lib/players/index.cjs +979 -251
  43. package/lib/players/index.cjs.map +1 -1
  44. package/lib/props.cjs +186 -0
  45. package/lib/props.cjs.map +1 -0
  46. package/lib/props.d.cts +62 -0
  47. package/lib/sdk/hlsAdPlayer.cjs +884 -234
  48. package/lib/sdk/hlsAdPlayer.cjs.map +1 -1
  49. package/lib/sdk/hlsAdPlayer.d.cts +1 -1
  50. package/lib/sdk/pal.cjs.map +1 -1
  51. package/lib/types.cjs +49 -0
  52. package/lib/types.cjs.map +1 -0
  53. package/lib/{types-52ASml2N.d.cts → types.d.cts} +47 -1
  54. package/lib/ui/StormcloudVideoPlayer.cjs +979 -251
  55. package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
  56. package/lib/ui/StormcloudVideoPlayer.d.cts +1 -1
  57. package/lib/utils/browserCompat.cjs.map +1 -1
  58. package/lib/utils/ctvVastSignals.cjs +155 -17
  59. package/lib/utils/ctvVastSignals.cjs.map +1 -1
  60. package/lib/utils/devUrl.cjs.map +1 -1
  61. package/lib/utils/polyfills.cjs.map +1 -1
  62. package/lib/utils/tracking.cjs +42 -14
  63. package/lib/utils/tracking.cjs.map +1 -1
  64. package/lib/utils/tracking.d.cts +1 -1
  65. package/lib/utils/trackingIngest.cjs.map +1 -1
  66. package/lib/utils/vastEnvironmentSignals.cjs +167 -17
  67. package/lib/utils/vastEnvironmentSignals.cjs.map +1 -1
  68. package/lib/utils/vastEnvironmentSignals.d.cts +12 -1
  69. package/lib/utils/vastMacros.cjs +26 -0
  70. package/lib/utils/vastMacros.cjs.map +1 -1
  71. package/lib/utils/vastTrackingMacros.cjs +5 -0
  72. package/lib/utils/vastTrackingMacros.cjs.map +1 -1
  73. package/lib/utils/vastTrackingMacros.d.cts +2 -0
  74. package/lib/utils.cjs +292 -0
  75. package/lib/utils.cjs.map +1 -0
  76. package/lib/utils.d.cts +17 -0
  77. package/package.json +91 -91
  78. package/rollup.config.js +90 -90
  79. 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
+ };