@wistia/wistia-player 0.6.4 → 0.6.6
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/wistia-player.js
CHANGED
|
@@ -1718,7 +1718,7 @@ var getContrast = function getContrast(foreground, background) {
|
|
|
1718
1718
|
var l1 = foregroundColor.getRelativeLuminance();
|
|
1719
1719
|
var l2 = backgroundColor.getRelativeLuminance();
|
|
1720
1720
|
var contrastRatio = l1 > l2 ? (l1 + 0.05) / (l2 + 0.05) : (l2 + 0.05) / (l1 + 0.05);
|
|
1721
|
-
return Number.parseFloat(contrastRatio.toFixed(
|
|
1721
|
+
return Number.parseFloat(contrastRatio.toFixed(3));
|
|
1722
1722
|
};
|
|
1723
1723
|
var adjustColorForProperContrast = function adjustColorForProperContrast(foreground, background) {
|
|
1724
1724
|
var shape = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'paragraphText';
|
|
@@ -1884,10 +1884,10 @@ var getVideoPlayerIconColor = function getVideoPlayerIconColor(_playerColor, sho
|
|
|
1884
1884
|
if (isGradientEnabled || !hasQueryParamOverride && !shouldUseAccessibleIconColor) {
|
|
1885
1885
|
return '#ffffff';
|
|
1886
1886
|
}
|
|
1887
|
-
if (new _color_js__WEBPACK_IMPORTED_MODULE_1__/* .Color */ .Q1('#fff').getContrastRatio(playerColor) >= colorContrastRatiosByShape.
|
|
1887
|
+
if (new _color_js__WEBPACK_IMPORTED_MODULE_1__/* .Color */ .Q1('#fff').getContrastRatio(playerColor) >= colorContrastRatiosByShape.paragraphText) {
|
|
1888
1888
|
return '#ffffff';
|
|
1889
1889
|
}
|
|
1890
|
-
return adjustColorForProperContrast(_playerColor, _playerColor, '
|
|
1890
|
+
return adjustColorForProperContrast(_playerColor, _playerColor, 'paragraphText');
|
|
1891
1891
|
};
|
|
1892
1892
|
var getAudioPlayerIconColor = function getAudioPlayerIconColor(_playerColor, shouldUseAccessibleIconColor, isGradientEnabled) {
|
|
1893
1893
|
var _searchParams$get2;
|
|
@@ -1901,7 +1901,7 @@ var getAudioPlayerIconColor = function getAudioPlayerIconColor(_playerColor, sho
|
|
|
1901
1901
|
if (new Color('#fff').getContrastRatio(playerColor) >= colorContrastRatiosByShape.paragraphText) {
|
|
1902
1902
|
return '#ffffff';
|
|
1903
1903
|
}
|
|
1904
|
-
return adjustColorForProperContrast(_playerColor, _playerColor, '
|
|
1904
|
+
return adjustColorForProperContrast(_playerColor, _playerColor, 'paragraphText');
|
|
1905
1905
|
};
|
|
1906
1906
|
|
|
1907
1907
|
/***/ },
|
|
@@ -6010,7 +6010,7 @@ var Color = /*#__PURE__*/function () {
|
|
|
6010
6010
|
}, {
|
|
6011
6011
|
key: "getContrastRatio",
|
|
6012
6012
|
value: function getContrastRatio(backgroundColor) {
|
|
6013
|
-
return Number.parseFloat((0,_color_utils_ts__WEBPACK_IMPORTED_MODULE_0__/* .getContrast */ .bJ)(this.toHexWithHash(), new Color(backgroundColor).toHexWithHash()).toFixed(
|
|
6013
|
+
return Number.parseFloat((0,_color_utils_ts__WEBPACK_IMPORTED_MODULE_0__/* .getContrast */ .bJ)(this.toHexWithHash(), new Color(backgroundColor).toHexWithHash()).toFixed(3));
|
|
6014
6014
|
}
|
|
6015
6015
|
|
|
6016
6016
|
// background color can be a string or a Color
|
|
@@ -7172,8 +7172,8 @@ var PROD_EMBED_HOST = 'embed.wistia.com';
|
|
|
7172
7172
|
var PROD_SSL_EMBED_HOST = 'embed-ssl.wistia.com';
|
|
7173
7173
|
var PROD_FASTLY_SSL_HOST = 'embed-fastly.wistia.com';
|
|
7174
7174
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7175
|
-
var TAGGED_VERSION = "0.6.
|
|
7176
|
-
var CURRENT_SHA = (/* unused pure expression or super */ null && ("
|
|
7175
|
+
var TAGGED_VERSION = "0.6.6" || 0;
|
|
7176
|
+
var CURRENT_SHA = (/* unused pure expression or super */ null && ("baa38e5fb575eeb41b12d9518c0a44145ee8bd09" || 0));
|
|
7177
7177
|
var DEFAULT_PROTOCOL = function () {
|
|
7178
7178
|
if (typeof window !== 'undefined' && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location) {
|
|
7179
7179
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location.protocol;
|