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