@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
|
@@ -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.2767f772.iframe.bundle.js"></script></body></html>
|
package/dist/statics/janet/{main.18a75df1.iframe.bundle.js → main.2767f772.iframe.bundle.js}
RENAMED
|
@@ -15664,6 +15664,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
15664
15664
|
var max_namespaceObject = {};
|
|
15665
15665
|
__webpack_require__.r(max_namespaceObject);
|
|
15666
15666
|
__webpack_require__.d(max_namespaceObject, {
|
|
15667
|
+
et: () => (MEDIA_ROOT_URL),
|
|
15667
15668
|
ke: () => (max_STATIC_MEDIA_URL),
|
|
15668
15669
|
vO: () => (alignTypes),
|
|
15669
15670
|
$A: () => (fileType),
|
|
@@ -17752,7 +17753,8 @@ function getImageURI(transformsObj) {
|
|
|
17752
17753
|
function getURI(fittingType, src, target, options = {}, transformObj) {
|
|
17753
17754
|
// check if image transformation is applicable (e.g. .gif, .wix_mp)
|
|
17754
17755
|
if (isImageTransformApplicable(src.id, options?.hasAnimation, options?.allowAnimatedTransform, options?.allowFullGIFTransformation)) {
|
|
17755
|
-
if (imageServiceUtils_isWEBP(src.id) || isAVIF(src.id))
|
|
17756
|
+
if ((imageServiceUtils_isWEBP(src.id) || isAVIF(src.id)) &&
|
|
17757
|
+
!options.allowWebpAvifTransforms) {
|
|
17756
17758
|
// exclude alignment, focalPoint and crop from webp and avif transformation in order not to break webp or avif images before transformation was enabled
|
|
17757
17759
|
const { alignment, ...transformTarget } = target;
|
|
17758
17760
|
src.focalPoint = { x: undefined, y: undefined };
|
|
@@ -18366,6 +18368,7 @@ const sdk = {
|
|
|
18366
18368
|
};
|
|
18367
18369
|
|
|
18368
18370
|
const max_STATIC_MEDIA_URL = wixStaticWithMedia;
|
|
18371
|
+
const MEDIA_ROOT_URL = wixStatic;
|
|
18369
18372
|
|
|
18370
18373
|
//# sourceMappingURL=index.js.map
|
|
18371
18374
|
;// ../image/dist/esm/custom-element/utils.js
|
|
@@ -18407,8 +18410,16 @@ const getScreenHeight = (heightOverride) => heightOverride ||
|
|
|
18407
18410
|
document.documentElement.clientHeight ||
|
|
18408
18411
|
window.innerHeight ||
|
|
18409
18412
|
0;
|
|
18410
|
-
const
|
|
18411
|
-
const
|
|
18413
|
+
const matchesUserDomainMediaPrefix = (uri, prefixes) => prefixes.some((prefix) => uri.startsWith(`${prefix}_`));
|
|
18414
|
+
const ensureTrailingSlash = (value) => value.endsWith('/') ? value : `${value}/`;
|
|
18415
|
+
const resolveStaticMediaBaseUrl = ({ uri, envConsts, }) => {
|
|
18416
|
+
const { externalBaseUrl, userDomainMediaPrefixes = [], staticMediaUrl, } = envConsts;
|
|
18417
|
+
if (matchesUserDomainMediaPrefix(uri, userDomainMediaPrefixes) &&
|
|
18418
|
+
externalBaseUrl) {
|
|
18419
|
+
return `${ensureTrailingSlash(externalBaseUrl)}_media/`;
|
|
18420
|
+
}
|
|
18421
|
+
return ensureTrailingSlash(staticMediaUrl);
|
|
18422
|
+
};
|
|
18412
18423
|
const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
|
|
18413
18424
|
// todo: CLNT-5323 , wixapp sildergallery proxy is generating image data without uri
|
|
18414
18425
|
if (!extendedImageInfo.targetWidth ||
|
|
@@ -18436,12 +18447,12 @@ const getImageComputedProperties = (extendedImageInfo, envConsts, htmlTag) => {
|
|
|
18436
18447
|
alignment: extendedImageInfo.alignType || alignTypes.CENTER,
|
|
18437
18448
|
};
|
|
18438
18449
|
const imageComputedProperties = api_getData(fittingType, src, target, imageOptions);
|
|
18439
|
-
const
|
|
18440
|
-
|
|
18441
|
-
|
|
18442
|
-
|
|
18443
|
-
|
|
18444
|
-
|
|
18450
|
+
const staticMediaUrl = imageData.userDomainMediaURL
|
|
18451
|
+
? imageData.userDomainMediaURL
|
|
18452
|
+
: resolveStaticMediaBaseUrl({
|
|
18453
|
+
uri: imageData.uri,
|
|
18454
|
+
envConsts,
|
|
18455
|
+
});
|
|
18445
18456
|
imageComputedProperties.uri = getMediaUrlByContext(imageComputedProperties.uri, staticMediaUrl, envConsts.mediaRootUrl);
|
|
18446
18457
|
return imageComputedProperties;
|
|
18447
18458
|
};
|
|
@@ -18450,10 +18461,10 @@ const getMediaUrlByContext = (imageUri, staticMediaUrl, mediaRootUrl) => {
|
|
|
18450
18461
|
if (isExternalUrl) {
|
|
18451
18462
|
return imageUri;
|
|
18452
18463
|
}
|
|
18453
|
-
let path =
|
|
18464
|
+
let path = ensureTrailingSlash(staticMediaUrl);
|
|
18454
18465
|
if (imageUri) {
|
|
18455
18466
|
if (/^micons\//.test(imageUri)) {
|
|
18456
|
-
path = mediaRootUrl;
|
|
18467
|
+
path = ensureTrailingSlash(mediaRootUrl);
|
|
18457
18468
|
}
|
|
18458
18469
|
else if (/[^.]+$/.exec(imageUri)?.[0] === 'ico') {
|
|
18459
18470
|
// if the image is an icon then it's taken from a slightly different place
|
|
@@ -18896,6 +18907,7 @@ function registry_init(contextWindow, services) {
|
|
|
18896
18907
|
//# sourceMappingURL=registry.js.map
|
|
18897
18908
|
;// ../image/dist/esm/customElementInit.js
|
|
18898
18909
|
|
|
18910
|
+
|
|
18899
18911
|
const customElementInit_getDevicePixelRatio = () => {
|
|
18900
18912
|
const isMSMobileDevice = /iemobile/i.test(navigator.userAgent);
|
|
18901
18913
|
if (isMSMobileDevice) {
|
|
@@ -18906,20 +18918,19 @@ const customElementInit_getDevicePixelRatio = () => {
|
|
|
18906
18918
|
};
|
|
18907
18919
|
const getIsImagesLazyLoadingDisabled = () => {
|
|
18908
18920
|
try {
|
|
18909
|
-
return new URL(window.location.href).searchParams.get('disableLazyLoading') ===
|
|
18921
|
+
return (new URL(window.location.href).searchParams.get('disableLazyLoading') ===
|
|
18922
|
+
'true');
|
|
18910
18923
|
}
|
|
18911
18924
|
catch {
|
|
18912
18925
|
return false;
|
|
18913
18926
|
}
|
|
18914
18927
|
};
|
|
18915
|
-
const customElementInit_STATIC_MEDIA_URL = 'https://static.wixstatic.com/media';
|
|
18916
|
-
const MEDIA_ROOT_URL = 'https://static.wixstatic.com';
|
|
18917
18928
|
function customElementInit_initCustomElement(services = {}, contextWindow = null, envConsts = {}) {
|
|
18918
18929
|
if (typeof window === 'undefined') {
|
|
18919
18930
|
return;
|
|
18920
18931
|
}
|
|
18921
18932
|
const env = {
|
|
18922
|
-
staticMediaUrl:
|
|
18933
|
+
staticMediaUrl: max_STATIC_MEDIA_URL,
|
|
18923
18934
|
mediaRootUrl: MEDIA_ROOT_URL,
|
|
18924
18935
|
experiments: {},
|
|
18925
18936
|
devicePixelRatio: customElementInit_getDevicePixelRatio(),
|
|
@@ -18966,7 +18977,7 @@ const fetchLQIP = ({ fittingType, src, target, options, }) => {
|
|
|
18966
18977
|
};
|
|
18967
18978
|
const SCHEME_RE = /^[a-z]+:/;
|
|
18968
18979
|
const Image = (props) => {
|
|
18969
|
-
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;
|
|
18980
|
+
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;
|
|
18970
18981
|
const imageRef = react.useRef(null);
|
|
18971
18982
|
// fix containerId and id to support hoverBox component
|
|
18972
18983
|
let hasSsrSrc = '';
|
|
@@ -18981,6 +18992,7 @@ const Image = (props) => {
|
|
|
18981
18992
|
isSEOBot,
|
|
18982
18993
|
hasAnimation,
|
|
18983
18994
|
encoding,
|
|
18995
|
+
baseHostURL,
|
|
18984
18996
|
};
|
|
18985
18997
|
ssrImageData.current = (getPlaceholder || fetchLQIP)({
|
|
18986
18998
|
fittingType: displayMode,
|
|
@@ -73307,4 +73319,4 @@ module.exports = /*#__PURE__*/JSON.parse('["a","abbr","address","area","article"
|
|
|
73307
73319
|
/******/
|
|
73308
73320
|
/******/ })()
|
|
73309
73321
|
;
|
|
73310
|
-
//# sourceMappingURL=main.
|
|
73322
|
+
//# sourceMappingURL=main.2767f772.iframe.bundle.js.map
|