@wix/video 1.95.0 → 1.97.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
|
@@ -361,4 +361,4 @@
|
|
|
361
361
|
|
|
362
362
|
|
|
363
363
|
|
|
364
|
-
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="main.
|
|
364
|
+
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="main.18a75df1.iframe.bundle.js"></script></body></html>
|
package/dist/statics/janet/{main.2c19ad7d.iframe.bundle.js → main.18a75df1.iframe.bundle.js}
RENAMED
|
@@ -18407,6 +18407,8 @@ const getScreenHeight = (heightOverride) => heightOverride ||
|
|
|
18407
18407
|
document.documentElement.clientHeight ||
|
|
18408
18408
|
window.innerHeight ||
|
|
18409
18409
|
0;
|
|
18410
|
+
const STOCK_IMAGE_PREFIXES = ['11062b_', 'nsplsh_'];
|
|
18411
|
+
const isStockImage = (uri) => STOCK_IMAGE_PREFIXES.some((prefix) => uri.startsWith(prefix));
|
|
18410
18412
|
const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
|
|
18411
18413
|
// todo: CLNT-5323 , wixapp sildergallery proxy is generating image data without uri
|
|
18412
18414
|
if (!extendedImageInfo.targetWidth ||
|
|
@@ -18434,7 +18436,13 @@ const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
|
|
|
18434
18436
|
alignment: extendedImageInfo.alignType || alignTypes.CENTER,
|
|
18435
18437
|
};
|
|
18436
18438
|
const imageComputedProperties = api_getData(fittingType, src, target, imageOptions);
|
|
18437
|
-
|
|
18439
|
+
const useExternalUrl = !!envConsts.externalBaseUrl &&
|
|
18440
|
+
envConsts.hasUserDomainMedia === true &&
|
|
18441
|
+
!isStockImage(imageData.uri);
|
|
18442
|
+
const staticMediaUrl = useExternalUrl
|
|
18443
|
+
? `${envConsts.externalBaseUrl}/_media`
|
|
18444
|
+
: envConsts.staticMediaUrl;
|
|
18445
|
+
imageComputedProperties.uri = getMediaUrlByContext(imageComputedProperties.uri, staticMediaUrl, envConsts.mediaRootUrl);
|
|
18438
18446
|
return imageComputedProperties;
|
|
18439
18447
|
};
|
|
18440
18448
|
const getMediaUrlByContext = (imageUri, staticMediaUrl, mediaRootUrl) => {
|
|
@@ -73299,4 +73307,4 @@ module.exports = /*#__PURE__*/JSON.parse('["a","abbr","address","area","article"
|
|
|
73299
73307
|
/******/
|
|
73300
73308
|
/******/ })()
|
|
73301
73309
|
;
|
|
73302
|
-
//# sourceMappingURL=main.
|
|
73310
|
+
//# sourceMappingURL=main.18a75df1.iframe.bundle.js.map
|