@quintype/components 3.8.6-jw-player-integration.2 → 3.8.7-decode-image.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/cjs/index.js CHANGED
@@ -1926,10 +1926,14 @@ function responsiveProps(props) {
1926
1926
  }, props.imgParams));
1927
1927
  }
1928
1928
 
1929
+ var resolvePath = function resolvePath(size) {
1930
+ return props.shouldDecode ? decodeURIComponent(generatePath(size)) : generatePath(size);
1931
+ };
1932
+
1929
1933
  var imageProps = {
1930
- src: generatePath(props.defaultWidth),
1934
+ src: resolvePath(props.defaultWidth),
1931
1935
  srcSet: props.widths ? props.widths.map(function (size) {
1932
- return "".concat(generatePath(size), " ").concat(size, "w");
1936
+ return "".concat(resolvePath(size), " ").concat(size, "w");
1933
1937
  }).join(',') : undefined,
1934
1938
  key: hashString(props.slug),
1935
1939
  sizes: props === null || props === void 0 ? void 0 : props.sizes
@@ -3127,7 +3131,8 @@ var JWPlayerComponent = /*#__PURE__*/function (_React$Component) {
3127
3131
  }, /*#__PURE__*/React__default["default"].createElement("iframe", {
3128
3132
  className: "jw-player",
3129
3133
  src: playerUrl,
3130
- allowFullScreen: true
3134
+ allowFullScreen: true,
3135
+ frameBorder: "0"
3131
3136
  }));
3132
3137
  }
3133
3138
  }]);
@@ -31,10 +31,14 @@ export function responsiveProps(props) {
31
31
  }, props.imgParams));
32
32
  }
33
33
 
34
+ var resolvePath = function resolvePath(size) {
35
+ return props.shouldDecode ? decodeURIComponent(generatePath(size)) : generatePath(size);
36
+ };
37
+
34
38
  var imageProps = {
35
- src: generatePath(props.defaultWidth),
39
+ src: resolvePath(props.defaultWidth),
36
40
  srcSet: props.widths ? props.widths.map(function (size) {
37
- return "".concat(generatePath(size), " ").concat(size, "w");
41
+ return "".concat(resolvePath(size), " ").concat(size, "w");
38
42
  }).join(',') : undefined,
39
43
  key: hashString(props.slug),
40
44
  sizes: props === null || props === void 0 ? void 0 : props.sizes
@@ -38,7 +38,8 @@ var JWPlayerComponent = /*#__PURE__*/function (_React$Component) {
38
38
  }, /*#__PURE__*/React.createElement("iframe", {
39
39
  className: "jw-player",
40
40
  src: playerUrl,
41
- allowFullScreen: true
41
+ allowFullScreen: true,
42
+ frameBorder: "0"
42
43
  }));
43
44
  }
44
45
  }]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/components",
3
- "version": "3.8.6-jw-player-integration.2",
3
+ "version": "3.8.7-decode-image.2",
4
4
  "description": "Components to help build Quintype Node.js apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.js",