@planetaexo/design-system 0.58.2 → 0.58.3
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 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10081,6 +10081,7 @@ function Picture(_a) {
|
|
|
10081
10081
|
"onLoad",
|
|
10082
10082
|
"onError"
|
|
10083
10083
|
]);
|
|
10084
|
+
var _a2;
|
|
10084
10085
|
const ref = React31__namespace.useRef(null);
|
|
10085
10086
|
const [visible, setVisible] = React31__namespace.useState(eager);
|
|
10086
10087
|
const [loaded, setLoaded] = React31__namespace.useState(false);
|
|
@@ -10109,6 +10110,7 @@ function Picture(_a) {
|
|
|
10109
10110
|
const webp = webpVariantUrl(src);
|
|
10110
10111
|
const realSrc = visible ? src : PLACEHOLDER_SRC;
|
|
10111
10112
|
const decodingResolved = decoding != null ? decoding : eager ? void 0 : "async";
|
|
10113
|
+
const fetchPriorityResolved = (_a2 = imgProps.fetchPriority) != null ? _a2 : eager ? void 0 : "low";
|
|
10112
10114
|
const handleLoad = (e) => {
|
|
10113
10115
|
if (visible) setLoaded(true);
|
|
10114
10116
|
onLoad == null ? void 0 : onLoad(e);
|
|
@@ -10134,6 +10136,7 @@ function Picture(_a) {
|
|
|
10134
10136
|
onLoad: handleLoad,
|
|
10135
10137
|
onError: handleError
|
|
10136
10138
|
}, imgProps), {
|
|
10139
|
+
fetchPriority: fetchPriorityResolved,
|
|
10137
10140
|
style: mergedStyle
|
|
10138
10141
|
})
|
|
10139
10142
|
)
|
|
@@ -10156,6 +10159,7 @@ function Picture(_a) {
|
|
|
10156
10159
|
onLoad: handleLoad,
|
|
10157
10160
|
onError: handleError
|
|
10158
10161
|
}, imgProps), {
|
|
10162
|
+
fetchPriority: fetchPriorityResolved,
|
|
10159
10163
|
style: mergedStyle
|
|
10160
10164
|
})
|
|
10161
10165
|
)
|