@haklex/rich-renderer-image 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.
- package/dist/ImageRenderer.d.ts.map +1 -1
- package/dist/index.mjs +1 -0
- package/package.json +4 -4
|
@@ -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,
|
|
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.
|
|
3
|
+
"version": "0.0.36",
|
|
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.
|
|
24
|
-
"@haklex/rich-
|
|
25
|
-
"@haklex/rich-
|
|
23
|
+
"@haklex/rich-editor": "0.0.36",
|
|
24
|
+
"@haklex/rich-style-token": "0.0.36",
|
|
25
|
+
"@haklex/rich-editor-ui": "0.0.36"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@lexical/react": "^0.41.0",
|