@eluvio/elv-player-js 2.0.0 → 2.0.2
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/dist/.vite/manifest.json +17 -17
- package/dist/{Analytics-jM8HcyUa.js → Analytics-XftohbWA.js} +1 -1
- package/dist/{Analytics-MzZmvYgy.mjs → Analytics-n8VKJG5w.mjs} +1 -1
- package/dist/{dash.all.min-16Sl6Y0h.js → dash.all.min-YF2PD14A.js} +1 -1
- package/dist/{dash.all.min-2ST8aEXP.mjs → dash.all.min-fb0Sc_wE.mjs} +1 -1
- package/dist/elv-player-js.cjs.js +1 -1
- package/dist/elv-player-js.es.js +1 -1
- package/dist/{index-Cw8L2-NE.js → index-7Q_ZiMR6.js} +20 -20
- package/dist/{index-BThzGsbn.js → index-IJ7cIHhe.js} +1 -1
- package/dist/{index-mO9GR6Op.mjs → index-gtipGoW1.mjs} +176 -176
- package/dist/{index-herSXPMN.mjs → index-nE_iNLeQ.mjs} +1 -1
- package/lib/player/Controls.js +1 -0
- package/lib/static/icons/Icons.js +2 -0
- package/lib/ui/BuildIcons.cjs +4 -2
- package/lib/ui/PlayerUI.jsx +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-
|
|
1
|
+
import { c as cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-gtipGoW1.mjs";
|
|
2
2
|
class EA {
|
|
3
3
|
constructor(I) {
|
|
4
4
|
this.wasm = I;
|
package/lib/player/Controls.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// WARNING: Do not edit this file manually
|
|
1
2
|
// Built using `npm run build-icons`
|
|
2
3
|
|
|
3
4
|
export const CenterPlayCircleIcon = "<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <circle cx=\"16\" cy=\"16\" r=\"16\" fill=\"currentColor\"/> <path d=\"M22 15.5L13.75 21.1292L13.75 9.87083L22 15.5Z\" fill=\"black\"/></svg>";
|
|
@@ -27,3 +28,4 @@ export const ChevronRightIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" width
|
|
|
27
28
|
export const CheckmarkIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-check\"><polyline points=\"20 6 9 17 4 12\"></polyline></svg>";
|
|
28
29
|
export const CaptionsIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-badge-cc\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\" stroke=\"black\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path> <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" stroke=\"currentColor\"></rect> <path d=\"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0\" stroke=\"currentColor\"></path> <path d=\"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0\" stroke=\"currentColor\"></path></svg>";
|
|
29
30
|
export const CaptionsOffIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-badge-cc\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\" stroke=\"black\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path> <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" stroke=\"currentColor\"></rect> <path d=\"M10 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0\" stroke=\"currentColor\"></path> <path d=\"M17 10.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0\" stroke=\"currentColor\"></path> <path d=\"M3 3l18 18\" stroke=\"currentColor\"></path></svg>";
|
|
31
|
+
export const RotateIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-rotate-cw\"><polyline points=\"23 4 23 10 17 10\"></polyline><path d=\"M20.49 15a9 9 0 1 1-2.12-9.36L23 10\"></path></svg>";
|
package/lib/ui/BuildIcons.cjs
CHANGED
|
@@ -30,10 +30,12 @@ const iconSource = {
|
|
|
30
30
|
ChevronRightIcon: Path.resolve(__dirname, "../static/icons/svgs/chevron-right.svg"),
|
|
31
31
|
CheckmarkIcon: Path.resolve(__dirname, "../static/icons/svgs/check.svg"),
|
|
32
32
|
CaptionsIcon: Path.resolve(__dirname, "../static/icons/svgs/captions.svg"),
|
|
33
|
-
CaptionsOffIcon: Path.resolve(__dirname, "../static/icons/svgs/captions-off.svg")
|
|
33
|
+
CaptionsOffIcon: Path.resolve(__dirname, "../static/icons/svgs/captions-off.svg"),
|
|
34
|
+
RotateIcon: Path.resolve(__dirname, "../static/icons/svgs/rotate-cw.svg"),
|
|
34
35
|
};
|
|
35
36
|
|
|
36
|
-
let iconFile = "//
|
|
37
|
+
let iconFile = "// WARNING: Do not edit this file manually\n"
|
|
38
|
+
iconFile += "// Built using `npm run build-icons`\n\n";
|
|
37
39
|
Object.keys(iconSource).map(iconName => {
|
|
38
40
|
iconFile += `export const ${iconName} = "${fs.readFileSync(iconSource[iconName]).toString("utf8").replaceAll("\n", "").replaceAll("\"", "\\\"")}";\n`;
|
|
39
41
|
});
|
package/lib/ui/PlayerUI.jsx
CHANGED
|
@@ -187,6 +187,7 @@ const PlayerUI = ({target, parameters, InitCallback, ErrorCallback, Unmount, Res
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
const shouldRotate =
|
|
190
|
+
parameters.playerOptions.ui === EluvioPlayerParameters.ui.WEB &&
|
|
190
191
|
player &&
|
|
191
192
|
player.controls.IsRotatable() &&
|
|
192
193
|
allowRotation;
|