@wix/video 1.95.0 → 1.96.0
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/statics/janet/iframe.html +1 -1
- package/dist/statics/janet/{main.2c19ad7d.iframe.bundle.js → main.18a75df1.iframe.bundle.js} +10 -2
- package/dist/statics/janet/main.18a75df1.iframe.bundle.js.map +1 -0
- package/dist/statics/janet/project.json +1 -1
- package/dist/statics/manifest.json +2 -2
- package/dist/statics/manifest.min.json +2 -2
- package/dist/statics/video.umd.js +10 -2
- package/dist/statics/video.umd.js.map +1 -1
- package/dist/statics/video.umd.min.js +1 -1
- package/dist/statics/video.umd.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/statics/janet/main.2c19ad7d.iframe.bundle.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1773726657183,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"monorepo":"Turborepo","packageManager":{"type":"yarn","version":"4.12.0"},"typescriptOptions":{"check":false,"reactDocgen":false},"language":"typescript","storybookPackages":{"@wix/yoshi-storybook-dependencies":{"version":"6.163.0"}},"framework":{},"addons":{"@storybook/addon-controls":{"version":"6.5.16"},"@storybook/addon-docs":{"version":"6.5.16"}}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"video.css": "https://static.parastorage.com/services/video/
|
|
3
|
-
"video.js": "https://static.parastorage.com/services/video/
|
|
2
|
+
"video.css": "https://static.parastorage.com/services/video/ef73bb885df2dd6c1c054fe607a015348552f2e559842c1228aa1c83/video.css",
|
|
3
|
+
"video.js": "https://static.parastorage.com/services/video/ef73bb885df2dd6c1c054fe607a015348552f2e559842c1228aa1c83/video.umd.js"
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"video.css": "https://static.parastorage.com/services/video/
|
|
3
|
-
"video.js": "https://static.parastorage.com/services/video/
|
|
2
|
+
"video.css": "https://static.parastorage.com/services/video/ef73bb885df2dd6c1c054fe607a015348552f2e559842c1228aa1c83/video.min.css",
|
|
3
|
+
"video.js": "https://static.parastorage.com/services/video/ef73bb885df2dd6c1c054fe607a015348552f2e559842c1228aa1c83/video.umd.min.js"
|
|
4
4
|
}
|
|
@@ -523,7 +523,7 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
|
|
|
523
523
|
/******/
|
|
524
524
|
/******/ /* webpack/runtime/publicPath */
|
|
525
525
|
/******/ (() => {
|
|
526
|
-
/******/ __webpack_require__.p = "https://static.parastorage.com/services/video/
|
|
526
|
+
/******/ __webpack_require__.p = "https://static.parastorage.com/services/video/ef73bb885df2dd6c1c054fe607a015348552f2e559842c1228aa1c83/";
|
|
527
527
|
/******/ })();
|
|
528
528
|
/******/
|
|
529
529
|
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
@@ -3364,6 +3364,8 @@ const getScreenHeight = (heightOverride) => heightOverride ||
|
|
|
3364
3364
|
document.documentElement.clientHeight ||
|
|
3365
3365
|
window.innerHeight ||
|
|
3366
3366
|
0;
|
|
3367
|
+
const STOCK_IMAGE_PREFIXES = ['11062b_', 'nsplsh_'];
|
|
3368
|
+
const isStockImage = (uri) => STOCK_IMAGE_PREFIXES.some((prefix) => uri.startsWith(prefix));
|
|
3367
3369
|
const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
|
|
3368
3370
|
// todo: CLNT-5323 , wixapp sildergallery proxy is generating image data without uri
|
|
3369
3371
|
if (!extendedImageInfo.targetWidth ||
|
|
@@ -3391,7 +3393,13 @@ const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
|
|
|
3391
3393
|
alignment: extendedImageInfo.alignType || alignTypes.CENTER,
|
|
3392
3394
|
};
|
|
3393
3395
|
const imageComputedProperties = api_getData(fittingType, src, target, imageOptions);
|
|
3394
|
-
|
|
3396
|
+
const useExternalUrl = !!envConsts.externalBaseUrl &&
|
|
3397
|
+
envConsts.hasUserDomainMedia === true &&
|
|
3398
|
+
!isStockImage(imageData.uri);
|
|
3399
|
+
const staticMediaUrl = useExternalUrl
|
|
3400
|
+
? `${envConsts.externalBaseUrl}/_media`
|
|
3401
|
+
: envConsts.staticMediaUrl;
|
|
3402
|
+
imageComputedProperties.uri = getMediaUrlByContext(imageComputedProperties.uri, staticMediaUrl, envConsts.mediaRootUrl);
|
|
3395
3403
|
return imageComputedProperties;
|
|
3396
3404
|
};
|
|
3397
3405
|
const getMediaUrlByContext = (imageUri, staticMediaUrl, mediaRootUrl) => {
|