@elmethis/qwik 0.0.35 → 0.0.36

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.
@@ -2224,7 +2224,14 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
2224
2224
  isShowModal.value = !isShowModal.value;
2225
2225
  }
2226
2226
  });
2227
+ const imgRef = qwik.useSignal();
2228
+ qwik.useVisibleTask$(() => {
2229
+ imgRef.value.decode().then(() => {
2230
+ isLoading.value = false;
2231
+ });
2232
+ });
2227
2233
  const ImageComponent = /* @__PURE__ */ jsxRuntime.jsx("img", {
2234
+ ref: imgRef,
2228
2235
  class: styles$h.image,
2229
2236
  src,
2230
2237
  alt: alt ?? caption2 ?? "Image",
@@ -2222,7 +2222,14 @@ const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height,
2222
2222
  isShowModal.value = !isShowModal.value;
2223
2223
  }
2224
2224
  });
2225
+ const imgRef = useSignal();
2226
+ useVisibleTask$(() => {
2227
+ imgRef.value.decode().then(() => {
2228
+ isLoading.value = false;
2229
+ });
2230
+ });
2225
2231
  const ImageComponent = /* @__PURE__ */ jsx("img", {
2232
+ ref: imgRef,
2226
2233
  class: styles$h.image,
2227
2234
  src,
2228
2235
  alt: alt ?? caption2 ?? "Image",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/qwik",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },