@haklex/rich-renderer-image 0.0.35 → 0.0.37

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ImageRenderer.d.ts","sourceRoot":"","sources":["../src/ImageRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,4CAA4C,CAAA;AAEnD,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAA;AAuBzD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,kBAAkB,CA2F3D,CAAA"}
1
+ {"version":3,"file":"ImageRenderer.d.ts","sourceRoot":"","sources":["../src/ImageRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,4CAA4C,CAAA;AAEnD,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAA;AAuBzD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAgG3D,CAAA"}
package/dist/index.mjs CHANGED
@@ -752,6 +752,7 @@ const ImageRenderer = ({
752
752
  loading: "lazy",
753
753
  "data-state": state,
754
754
  className: `${image} ${state === "loaded" ? imageVisible : ""} ${semanticClassNames.image}`,
755
+ style: width && height ? { height: "100%", objectFit: "cover" } : void 0,
755
756
  onLoad: () => setState("loaded"),
756
757
  onError: () => setState("error")
757
758
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-renderer-image",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "description": "Image renderer with blurhash and lightbox",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,9 +20,9 @@
20
20
  "lucide-react": "^0.574.0",
21
21
  "react-photo-view": "^1.2.7",
22
22
  "thumbhash": "^0.1.1",
23
- "@haklex/rich-editor": "0.0.35",
24
- "@haklex/rich-editor-ui": "0.0.35",
25
- "@haklex/rich-style-token": "0.0.35"
23
+ "@haklex/rich-editor": "0.0.37",
24
+ "@haklex/rich-style-token": "0.0.37",
25
+ "@haklex/rich-editor-ui": "0.0.37"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@lexical/react": "^0.41.0",