@eluvio/elv-player-js 2.0.1 → 2.0.3

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,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>";
@@ -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 = "// Built using `npm run build-icons`\n\n";
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
  });
@@ -242,7 +242,7 @@ export const SettingsMenu = ({player, Hide, className=""}) => {
242
242
  content = (
243
243
  <div key="menu" role="menu" className={`${CommonStyles["menu"]} ${CommonStyles["settings-menu"]} ${className}`}>
244
244
  {
245
- !options.hasQualityOptions <= 1 ? null :
245
+ !options.hasQualityOptions ? null :
246
246
  <button autoFocus role="menuitem" onClick={() => SetSubmenu("quality")}
247
247
  className={CommonStyles["menu-option"]}>
248
248
  {`${settings.quality.label}: ${(options.quality.active && options.quality.active.activeLabel) || ""}`}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "![Eluvio Logo](lib/static/images/Logo.png \"Eluvio Logo\")",
5
5
  "main": "lib/index.js",
6
6
  "license": "MIT",