@wix/video 1.98.0 → 1.100.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.18a75df1.iframe.bundle.js → main.3a729171.iframe.bundle.js} +27 -16
- package/dist/statics/janet/{main.18a75df1.iframe.bundle.js.map → main.3a729171.iframe.bundle.js.map} +1 -1
- 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 +27 -16
- 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 +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1778412371862,"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/db07e8557688d5b68c4853378f6596ea1084c7ce309ac169b2a91721/video.css",
|
|
3
|
+
"video.js": "https://static.parastorage.com/services/video/db07e8557688d5b68c4853378f6596ea1084c7ce309ac169b2a91721/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/db07e8557688d5b68c4853378f6596ea1084c7ce309ac169b2a91721/video.min.css",
|
|
3
|
+
"video.js": "https://static.parastorage.com/services/video/db07e8557688d5b68c4853378f6596ea1084c7ce309ac169b2a91721/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/db07e8557688d5b68c4853378f6596ea1084c7ce309ac169b2a91721/";
|
|
527
527
|
/******/ })();
|
|
528
528
|
/******/
|
|
529
529
|
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
@@ -637,6 +637,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
637
637
|
var max_namespaceObject = {};
|
|
638
638
|
__webpack_require__.r(max_namespaceObject);
|
|
639
639
|
__webpack_require__.d(max_namespaceObject, {
|
|
640
|
+
et: () => (MEDIA_ROOT_URL),
|
|
640
641
|
ke: () => (max_STATIC_MEDIA_URL),
|
|
641
642
|
vO: () => (alignTypes),
|
|
642
643
|
$A: () => (fileType),
|
|
@@ -3323,6 +3324,7 @@ const sdk = {
|
|
|
3323
3324
|
};
|
|
3324
3325
|
|
|
3325
3326
|
const max_STATIC_MEDIA_URL = wixStaticWithMedia;
|
|
3327
|
+
const MEDIA_ROOT_URL = wixStatic;
|
|
3326
3328
|
|
|
3327
3329
|
//# sourceMappingURL=index.js.map
|
|
3328
3330
|
;// ../../image/dist/esm/custom-element/utils.js
|
|
@@ -3364,8 +3366,16 @@ const getScreenHeight = (heightOverride) => heightOverride ||
|
|
|
3364
3366
|
document.documentElement.clientHeight ||
|
|
3365
3367
|
window.innerHeight ||
|
|
3366
3368
|
0;
|
|
3367
|
-
const
|
|
3368
|
-
const
|
|
3369
|
+
const matchesUserDomainMediaPrefix = (uri, prefixes) => prefixes.some((prefix) => uri.startsWith(`${prefix}_`));
|
|
3370
|
+
const ensureTrailingSlash = (value) => value.endsWith('/') ? value : `${value}/`;
|
|
3371
|
+
const resolveStaticMediaBaseUrl = ({ uri, envConsts, }) => {
|
|
3372
|
+
const { externalBaseUrl, userDomainMediaPrefixes = [], staticMediaUrl, } = envConsts;
|
|
3373
|
+
if (matchesUserDomainMediaPrefix(uri, userDomainMediaPrefixes) &&
|
|
3374
|
+
externalBaseUrl) {
|
|
3375
|
+
return `${ensureTrailingSlash(externalBaseUrl)}_media/`;
|
|
3376
|
+
}
|
|
3377
|
+
return ensureTrailingSlash(staticMediaUrl);
|
|
3378
|
+
};
|
|
3369
3379
|
const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
|
|
3370
3380
|
// todo: CLNT-5323 , wixapp sildergallery proxy is generating image data without uri
|
|
3371
3381
|
if (!extendedImageInfo.targetWidth ||
|
|
@@ -3393,12 +3403,12 @@ const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
|
|
|
3393
3403
|
alignment: extendedImageInfo.alignType || alignTypes.CENTER,
|
|
3394
3404
|
};
|
|
3395
3405
|
const imageComputedProperties = api_getData(fittingType, src, target, imageOptions);
|
|
3396
|
-
const
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3406
|
+
const staticMediaUrl = imageData.userDomainMediaURL
|
|
3407
|
+
? imageData.userDomainMediaURL
|
|
3408
|
+
: resolveStaticMediaBaseUrl({
|
|
3409
|
+
uri: imageData.uri,
|
|
3410
|
+
envConsts,
|
|
3411
|
+
});
|
|
3402
3412
|
imageComputedProperties.uri = getMediaUrlByContext(imageComputedProperties.uri, staticMediaUrl, envConsts.mediaRootUrl);
|
|
3403
3413
|
return imageComputedProperties;
|
|
3404
3414
|
};
|
|
@@ -3407,10 +3417,10 @@ const getMediaUrlByContext = (imageUri, staticMediaUrl, mediaRootUrl) => {
|
|
|
3407
3417
|
if (isExternalUrl) {
|
|
3408
3418
|
return imageUri;
|
|
3409
3419
|
}
|
|
3410
|
-
let path =
|
|
3420
|
+
let path = ensureTrailingSlash(staticMediaUrl);
|
|
3411
3421
|
if (imageUri) {
|
|
3412
3422
|
if (/^micons\//.test(imageUri)) {
|
|
3413
|
-
path = mediaRootUrl;
|
|
3423
|
+
path = ensureTrailingSlash(mediaRootUrl);
|
|
3414
3424
|
}
|
|
3415
3425
|
else if (/[^.]+$/.exec(imageUri)?.[0] === 'ico') {
|
|
3416
3426
|
// if the image is an icon then it's taken from a slightly different place
|
|
@@ -3853,6 +3863,7 @@ function registry_init(contextWindow, services) {
|
|
|
3853
3863
|
//# sourceMappingURL=registry.js.map
|
|
3854
3864
|
;// ../../image/dist/esm/customElementInit.js
|
|
3855
3865
|
|
|
3866
|
+
|
|
3856
3867
|
const customElementInit_getDevicePixelRatio = () => {
|
|
3857
3868
|
const isMSMobileDevice = /iemobile/i.test(navigator.userAgent);
|
|
3858
3869
|
if (isMSMobileDevice) {
|
|
@@ -3863,20 +3874,19 @@ const customElementInit_getDevicePixelRatio = () => {
|
|
|
3863
3874
|
};
|
|
3864
3875
|
const getIsImagesLazyLoadingDisabled = () => {
|
|
3865
3876
|
try {
|
|
3866
|
-
return new URL(window.location.href).searchParams.get('disableLazyLoading') ===
|
|
3877
|
+
return (new URL(window.location.href).searchParams.get('disableLazyLoading') ===
|
|
3878
|
+
'true');
|
|
3867
3879
|
}
|
|
3868
3880
|
catch {
|
|
3869
3881
|
return false;
|
|
3870
3882
|
}
|
|
3871
3883
|
};
|
|
3872
|
-
const customElementInit_STATIC_MEDIA_URL = 'https://static.wixstatic.com/media';
|
|
3873
|
-
const MEDIA_ROOT_URL = 'https://static.wixstatic.com';
|
|
3874
3884
|
function customElementInit_initCustomElement(services = {}, contextWindow = null, envConsts = {}) {
|
|
3875
3885
|
if (typeof window === 'undefined') {
|
|
3876
3886
|
return;
|
|
3877
3887
|
}
|
|
3878
3888
|
const env = {
|
|
3879
|
-
staticMediaUrl:
|
|
3889
|
+
staticMediaUrl: max_STATIC_MEDIA_URL,
|
|
3880
3890
|
mediaRootUrl: MEDIA_ROOT_URL,
|
|
3881
3891
|
experiments: {},
|
|
3882
3892
|
devicePixelRatio: customElementInit_getDevicePixelRatio(),
|
|
@@ -3910,7 +3920,7 @@ const fetchLQIP = ({ fittingType, src, target, options, }) => {
|
|
|
3910
3920
|
};
|
|
3911
3921
|
const SCHEME_RE = /^[a-z]+:/;
|
|
3912
3922
|
const Image = (props) => {
|
|
3913
|
-
const { id, containerId, uri, alt, name = '', role, width, height, displayMode, devicePixelRatio, quality, alignType, bgEffectName = '', focalPoint, upscaleMethod, className = '', crop, imageStyles = {}, targetWidth, targetHeight, targetScale, onLoad = () => { }, onError = () => { }, shouldUseLQIP, containerWidth, containerHeight, getPlaceholder, isInFirstFold, placeholderTransition, socialAttrs, isSEOBot, skipMeasure, hasAnimation, encoding, isFluidLayout, } = props;
|
|
3923
|
+
const { id, containerId, uri, alt, name = '', role, width, height, displayMode, devicePixelRatio, quality, alignType, bgEffectName = '', focalPoint, upscaleMethod, className = '', crop, imageStyles = {}, targetWidth, targetHeight, targetScale, onLoad = () => { }, onError = () => { }, shouldUseLQIP, containerWidth, containerHeight, getPlaceholder, isInFirstFold, placeholderTransition, socialAttrs, isSEOBot, skipMeasure, hasAnimation, encoding, isFluidLayout, baseHostURL, } = props;
|
|
3914
3924
|
const imageRef = external_React_.useRef(null);
|
|
3915
3925
|
// fix containerId and id to support hoverBox component
|
|
3916
3926
|
let hasSsrSrc = '';
|
|
@@ -3925,6 +3935,7 @@ const Image = (props) => {
|
|
|
3925
3935
|
isSEOBot,
|
|
3926
3936
|
hasAnimation,
|
|
3927
3937
|
encoding,
|
|
3938
|
+
baseHostURL,
|
|
3928
3939
|
};
|
|
3929
3940
|
ssrImageData.current = (getPlaceholder || fetchLQIP)({
|
|
3930
3941
|
fittingType: displayMode,
|