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.js
CHANGED
@@ -12214,7 +12214,7 @@ const FingerSwipeTip = ({ imageUrl }) => {
|
|
12214
12214
|
* @Author: binruan@chatlabs.com
|
12215
12215
|
* @Date: 2024-03-20 10:27:31
|
12216
12216
|
* @LastEditors: binruan@chatlabs.com
|
12217
|
-
* @LastEditTime: 2024-04-17
|
12217
|
+
* @LastEditTime: 2024-04-17 16:46:54
|
12218
12218
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
|
12219
12219
|
*
|
12220
12220
|
*/
|
@@ -12239,11 +12239,11 @@ const Picture = (props) => {
|
|
12239
12239
|
const getImg = useCallback((src, style) => {
|
12240
12240
|
if (src === '' || !src)
|
12241
12241
|
return;
|
12242
|
-
return (React.createElement("picture", null,
|
12243
|
-
React.createElement("source", { type: 'image/avif', srcSet:
|
12242
|
+
return (src === null || src === void 0 ? void 0 : src.indexOf('.avif')) !== -1 ? (React.createElement("picture", null,
|
12243
|
+
React.createElement("source", { type: 'image/avif', srcSet: src }),
|
12244
12244
|
React.createElement("source", { type: 'image/webp', srcSet: `${src}?imageMogr2/format/webp` }),
|
12245
12245
|
React.createElement("source", { type: 'image/jpeg', srcSet: `${src}?imageMogr2/format/jpg` }),
|
12246
|
-
React.createElement("img", { loading: 'lazy', src: src, style: style })));
|
12246
|
+
React.createElement("img", { loading: 'lazy', src: src, style: style }))) : (React.createElement("img", { loading: 'lazy', src: src, style: style }));
|
12247
12247
|
}, []);
|
12248
12248
|
return (React.createElement("div", { style: {
|
12249
12249
|
overflow: 'hidden',
|
@@ -13030,4 +13030,3 @@ function useEditorDataProvider() {
|
|
13030
13030
|
*/
|
13031
13031
|
|
13032
13032
|
export { EditorDataProvider, Modal$1 as Modal, SxpDataSourceProvider$1 as SxpDataSourceProvider, index as SxpPageCore, SxpPageRender, index$1 as core, Pagebuilder as default, defaultSetting, _materials_ as materials, useEditorDataProvider };
|
13033
|
-
//# sourceMappingURL=index.js.map
|