pb-sxp-ui 1.0.19 → 1.0.20
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/index.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -2
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +4 -5
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -2
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/PictureGroup/Picture.js +3 -3
- package/es/core/components/SxpPageRender/VideoWidget/index.js +1 -2
- package/lib/core/components/SxpPageRender/PictureGroup/Picture.js +3 -3
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +1 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -12237,7 +12237,7 @@ const FingerSwipeTip = ({ imageUrl }) => {
|
|
12237
12237
|
* @Author: binruan@chatlabs.com
|
12238
12238
|
* @Date: 2024-03-20 10:27:31
|
12239
12239
|
* @LastEditors: binruan@chatlabs.com
|
12240
|
-
* @LastEditTime: 2024-04-17
|
12240
|
+
* @LastEditTime: 2024-04-17 16:46:54
|
12241
12241
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
|
12242
12242
|
*
|
12243
12243
|
*/
|
@@ -12262,11 +12262,11 @@ const Picture = (props) => {
|
|
12262
12262
|
const getImg = React.useCallback((src, style) => {
|
12263
12263
|
if (src === '' || !src)
|
12264
12264
|
return;
|
12265
|
-
return (React.createElement("picture", null,
|
12266
|
-
React.createElement("source", { type: 'image/avif', srcSet:
|
12265
|
+
return (src === null || src === void 0 ? void 0 : src.indexOf('.avif')) !== -1 ? (React.createElement("picture", null,
|
12266
|
+
React.createElement("source", { type: 'image/avif', srcSet: src }),
|
12267
12267
|
React.createElement("source", { type: 'image/webp', srcSet: `${src}?imageMogr2/format/webp` }),
|
12268
12268
|
React.createElement("source", { type: 'image/jpeg', srcSet: `${src}?imageMogr2/format/jpg` }),
|
12269
|
-
React.createElement("img", { loading: 'lazy', src: src, style: style })));
|
12269
|
+
React.createElement("img", { loading: 'lazy', src: src, style: style }))) : (React.createElement("img", { loading: 'lazy', src: src, style: style }));
|
12270
12270
|
}, []);
|
12271
12271
|
return (React.createElement("div", { style: {
|
12272
12272
|
overflow: 'hidden',
|
@@ -13062,4 +13062,3 @@ exports.default = Pagebuilder;
|
|
13062
13062
|
exports.defaultSetting = defaultSetting;
|
13063
13063
|
exports.materials = _materials_;
|
13064
13064
|
exports.useEditorDataProvider = useEditorDataProvider;
|
13065
|
-
//# sourceMappingURL=index.cjs.map
|