@wix/video 1.99.0 → 1.101.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.2767f772.iframe.bundle.js} +29 -17
- package/dist/statics/janet/main.2767f772.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 +29 -17
- 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
- package/dist/statics/janet/main.18a75df1.iframe.bundle.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1778699406308,"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/773fa17a3ff4752b060b728c92504168ca67be7d13faa11c274084b2/video.css",
|
|
3
|
+
"video.js": "https://static.parastorage.com/services/video/773fa17a3ff4752b060b728c92504168ca67be7d13faa11c274084b2/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/773fa17a3ff4752b060b728c92504168ca67be7d13faa11c274084b2/video.min.css",
|
|
3
|
+
"video.js": "https://static.parastorage.com/services/video/773fa17a3ff4752b060b728c92504168ca67be7d13faa11c274084b2/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/773fa17a3ff4752b060b728c92504168ca67be7d13faa11c274084b2/";
|
|
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),
|
|
@@ -2709,7 +2710,8 @@ function getImageURI(transformsObj) {
|
|
|
2709
2710
|
function getURI(fittingType, src, target, options = {}, transformObj) {
|
|
2710
2711
|
// check if image transformation is applicable (e.g. .gif, .wix_mp)
|
|
2711
2712
|
if (isImageTransformApplicable(src.id, options?.hasAnimation, options?.allowAnimatedTransform, options?.allowFullGIFTransformation)) {
|
|
2712
|
-
if (imageServiceUtils_isWEBP(src.id) || isAVIF(src.id))
|
|
2713
|
+
if ((imageServiceUtils_isWEBP(src.id) || isAVIF(src.id)) &&
|
|
2714
|
+
!options.allowWebpAvifTransforms) {
|
|
2713
2715
|
// exclude alignment, focalPoint and crop from webp and avif transformation in order not to break webp or avif images before transformation was enabled
|
|
2714
2716
|
const { alignment, ...transformTarget } = target;
|
|
2715
2717
|
src.focalPoint = { x: undefined, y: undefined };
|
|
@@ -3323,6 +3325,7 @@ const sdk = {
|
|
|
3323
3325
|
};
|
|
3324
3326
|
|
|
3325
3327
|
const max_STATIC_MEDIA_URL = wixStaticWithMedia;
|
|
3328
|
+
const MEDIA_ROOT_URL = wixStatic;
|
|
3326
3329
|
|
|
3327
3330
|
//# sourceMappingURL=index.js.map
|
|
3328
3331
|
;// ../../image/dist/esm/custom-element/utils.js
|
|
@@ -3364,8 +3367,16 @@ const getScreenHeight = (heightOverride) => heightOverride ||
|
|
|
3364
3367
|
document.documentElement.clientHeight ||
|
|
3365
3368
|
window.innerHeight ||
|
|
3366
3369
|
0;
|
|
3367
|
-
const
|
|
3368
|
-
const
|
|
3370
|
+
const matchesUserDomainMediaPrefix = (uri, prefixes) => prefixes.some((prefix) => uri.startsWith(`${prefix}_`));
|
|
3371
|
+
const ensureTrailingSlash = (value) => value.endsWith('/') ? value : `${value}/`;
|
|
3372
|
+
const resolveStaticMediaBaseUrl = ({ uri, envConsts, }) => {
|
|
3373
|
+
const { externalBaseUrl, userDomainMediaPrefixes = [], staticMediaUrl, } = envConsts;
|
|
3374
|
+
if (matchesUserDomainMediaPrefix(uri, userDomainMediaPrefixes) &&
|
|
3375
|
+
externalBaseUrl) {
|
|
3376
|
+
return `${ensureTrailingSlash(externalBaseUrl)}_media/`;
|
|
3377
|
+
}
|
|
3378
|
+
return ensureTrailingSlash(staticMediaUrl);
|
|
3379
|
+
};
|
|
3369
3380
|
const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
|
|
3370
3381
|
// todo: CLNT-5323 , wixapp sildergallery proxy is generating image data without uri
|
|
3371
3382
|
if (!extendedImageInfo.targetWidth ||
|
|
@@ -3393,12 +3404,12 @@ const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
|
|
|
3393
3404
|
alignment: extendedImageInfo.alignType || alignTypes.CENTER,
|
|
3394
3405
|
};
|
|
3395
3406
|
const imageComputedProperties = api_getData(fittingType, src, target, imageOptions);
|
|
3396
|
-
const
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3407
|
+
const staticMediaUrl = imageData.userDomainMediaURL
|
|
3408
|
+
? imageData.userDomainMediaURL
|
|
3409
|
+
: resolveStaticMediaBaseUrl({
|
|
3410
|
+
uri: imageData.uri,
|
|
3411
|
+
envConsts,
|
|
3412
|
+
});
|
|
3402
3413
|
imageComputedProperties.uri = getMediaUrlByContext(imageComputedProperties.uri, staticMediaUrl, envConsts.mediaRootUrl);
|
|
3403
3414
|
return imageComputedProperties;
|
|
3404
3415
|
};
|
|
@@ -3407,10 +3418,10 @@ const getMediaUrlByContext = (imageUri, staticMediaUrl, mediaRootUrl) => {
|
|
|
3407
3418
|
if (isExternalUrl) {
|
|
3408
3419
|
return imageUri;
|
|
3409
3420
|
}
|
|
3410
|
-
let path =
|
|
3421
|
+
let path = ensureTrailingSlash(staticMediaUrl);
|
|
3411
3422
|
if (imageUri) {
|
|
3412
3423
|
if (/^micons\//.test(imageUri)) {
|
|
3413
|
-
path = mediaRootUrl;
|
|
3424
|
+
path = ensureTrailingSlash(mediaRootUrl);
|
|
3414
3425
|
}
|
|
3415
3426
|
else if (/[^.]+$/.exec(imageUri)?.[0] === 'ico') {
|
|
3416
3427
|
// if the image is an icon then it's taken from a slightly different place
|
|
@@ -3853,6 +3864,7 @@ function registry_init(contextWindow, services) {
|
|
|
3853
3864
|
//# sourceMappingURL=registry.js.map
|
|
3854
3865
|
;// ../../image/dist/esm/customElementInit.js
|
|
3855
3866
|
|
|
3867
|
+
|
|
3856
3868
|
const customElementInit_getDevicePixelRatio = () => {
|
|
3857
3869
|
const isMSMobileDevice = /iemobile/i.test(navigator.userAgent);
|
|
3858
3870
|
if (isMSMobileDevice) {
|
|
@@ -3863,20 +3875,19 @@ const customElementInit_getDevicePixelRatio = () => {
|
|
|
3863
3875
|
};
|
|
3864
3876
|
const getIsImagesLazyLoadingDisabled = () => {
|
|
3865
3877
|
try {
|
|
3866
|
-
return new URL(window.location.href).searchParams.get('disableLazyLoading') ===
|
|
3878
|
+
return (new URL(window.location.href).searchParams.get('disableLazyLoading') ===
|
|
3879
|
+
'true');
|
|
3867
3880
|
}
|
|
3868
3881
|
catch {
|
|
3869
3882
|
return false;
|
|
3870
3883
|
}
|
|
3871
3884
|
};
|
|
3872
|
-
const customElementInit_STATIC_MEDIA_URL = 'https://static.wixstatic.com/media';
|
|
3873
|
-
const MEDIA_ROOT_URL = 'https://static.wixstatic.com';
|
|
3874
3885
|
function customElementInit_initCustomElement(services = {}, contextWindow = null, envConsts = {}) {
|
|
3875
3886
|
if (typeof window === 'undefined') {
|
|
3876
3887
|
return;
|
|
3877
3888
|
}
|
|
3878
3889
|
const env = {
|
|
3879
|
-
staticMediaUrl:
|
|
3890
|
+
staticMediaUrl: max_STATIC_MEDIA_URL,
|
|
3880
3891
|
mediaRootUrl: MEDIA_ROOT_URL,
|
|
3881
3892
|
experiments: {},
|
|
3882
3893
|
devicePixelRatio: customElementInit_getDevicePixelRatio(),
|
|
@@ -3910,7 +3921,7 @@ const fetchLQIP = ({ fittingType, src, target, options, }) => {
|
|
|
3910
3921
|
};
|
|
3911
3922
|
const SCHEME_RE = /^[a-z]+:/;
|
|
3912
3923
|
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;
|
|
3924
|
+
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
3925
|
const imageRef = external_React_.useRef(null);
|
|
3915
3926
|
// fix containerId and id to support hoverBox component
|
|
3916
3927
|
let hasSsrSrc = '';
|
|
@@ -3925,6 +3936,7 @@ const Image = (props) => {
|
|
|
3925
3936
|
isSEOBot,
|
|
3926
3937
|
hasAnimation,
|
|
3927
3938
|
encoding,
|
|
3939
|
+
baseHostURL,
|
|
3928
3940
|
};
|
|
3929
3941
|
ssrImageData.current = (getPlaceholder || fetchLQIP)({
|
|
3930
3942
|
fittingType: displayMode,
|