@haklex/rich-renderer-image 0.0.2 → 0.0.4

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.mjs CHANGED
@@ -5,6 +5,7 @@ import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext
5
5
  import { $getNearestNodeFromDOMNode } from "lexical";
6
6
  import { ImageIcon, Type, ExternalLink, Trash2 } from "lucide-react";
7
7
  import { useState, useMemo, useRef, useEffect, useCallback } from "react";
8
+ import "react-photo-view/dist/react-photo-view.css";
8
9
  import { PhotoProvider, PhotoView } from "react-photo-view";
9
10
  function getCaptionText$1(altText, caption) {
10
11
  if (caption) return caption;
@@ -208,4 +208,4 @@
208
208
  }
209
209
  .rr-image-edit-action-btn--end {
210
210
  margin-left: auto;
211
- }.PhotoView-Portal{direction:ltr;height:100%;left:0;overflow:hidden;position:fixed;top:0;touch-action:none;width:100%;z-index:2000}@keyframes PhotoView__rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes PhotoView__delayIn{0%,50%{opacity:0}to{opacity:1}}.PhotoView__Spinner{animation:PhotoView__delayIn .4s linear both}.PhotoView__Spinner svg{animation:PhotoView__rotate .6s linear infinite}.PhotoView__Photo{cursor:grab;max-width:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.PhotoView__Photo:active{cursor:grabbing}.PhotoView__icon{display:inline-block;left:0;position:absolute;top:0;transform:translate(-50%,-50%)}.PhotoView__PhotoBox,.PhotoView__PhotoWrap{bottom:0;direction:ltr;left:0;position:absolute;right:0;top:0;touch-action:none;width:100%}.PhotoView__PhotoWrap{overflow:hidden;z-index:10}.PhotoView__PhotoBox{transform-origin:left top}@keyframes PhotoView__fade{0%{opacity:0}to{opacity:1}}.PhotoView-Slider__clean .PhotoView-Slider__ArrowLeft,.PhotoView-Slider__clean .PhotoView-Slider__ArrowRight,.PhotoView-Slider__clean .PhotoView-Slider__BannerWrap,.PhotoView-Slider__clean .PhotoView-Slider__Overlay,.PhotoView-Slider__willClose .PhotoView-Slider__BannerWrap:hover{opacity:0}.PhotoView-Slider__Backdrop{background:#000;height:100%;left:0;position:absolute;top:0;transition-property:background-color;width:100%;z-index:-1}.PhotoView-Slider__fadeIn{animation:PhotoView__fade linear both;opacity:0}.PhotoView-Slider__fadeOut{animation:PhotoView__fade linear reverse both;opacity:0}.PhotoView-Slider__BannerWrap{align-items:center;background-color:rgba(0,0,0,.5);color:#fff;display:flex;height:44px;justify-content:space-between;left:0;position:absolute;top:0;transition:opacity .2s ease-out;width:100%;z-index:20}.PhotoView-Slider__BannerWrap:hover{opacity:1}.PhotoView-Slider__Counter{font-size:14px;opacity:.75;padding:0 10px}.PhotoView-Slider__BannerRight{align-items:center;display:flex;height:100%}.PhotoView-Slider__toolbarIcon{fill:#fff;box-sizing:border-box;cursor:pointer;opacity:.75;padding:10px;transition:opacity .2s linear}.PhotoView-Slider__toolbarIcon:hover{opacity:1}.PhotoView-Slider__ArrowLeft,.PhotoView-Slider__ArrowRight{align-items:center;bottom:0;cursor:pointer;display:flex;height:100px;justify-content:center;margin:auto;opacity:.75;position:absolute;top:0;transition:opacity .2s linear;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:70px;z-index:20}.PhotoView-Slider__ArrowLeft:hover,.PhotoView-Slider__ArrowRight:hover{opacity:1}.PhotoView-Slider__ArrowLeft svg,.PhotoView-Slider__ArrowRight svg{fill:#fff;background:rgba(0,0,0,.3);box-sizing:content-box;height:24px;padding:10px;width:24px}.PhotoView-Slider__ArrowLeft{left:0}.PhotoView-Slider__ArrowRight{right:0}
211
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-renderer-image",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Image renderer with blurhash and lightbox",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,7 +18,10 @@
18
18
  "dependencies": {
19
19
  "lucide-react": "^0.574.0",
20
20
  "react-photo-view": "^1.2.6",
21
- "thumbhash": "^0.1.1"
21
+ "thumbhash": "^0.1.1",
22
+ "@haklex/rich-editor": "0.0.4",
23
+ "@haklex/rich-editor-ui": "0.0.4",
24
+ "@haklex/rich-style-token": "0.0.4"
22
25
  },
23
26
  "devDependencies": {
24
27
  "@lexical/react": "^0.39.0",
@@ -31,19 +34,13 @@
31
34
  "react-dom": "19.2.4",
32
35
  "typescript": "^5.9.0",
33
36
  "vite": "^7.3.1",
34
- "vite-plugin-dts": "^4.5.0",
35
- "@haklex/rich-editor": "0.0.2",
36
- "@haklex/rich-style-token": "0.0.2",
37
- "@haklex/rich-editor-ui": "0.0.2"
37
+ "vite-plugin-dts": "^4.5.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@lexical/react": "^0.39.0",
41
41
  "lexical": "^0.39.0",
42
42
  "react": ">=19",
43
- "react-dom": ">=19",
44
- "@haklex/rich-editor-ui": "0.0.2",
45
- "@haklex/rich-style-token": "0.0.2",
46
- "@haklex/rich-editor": "0.0.2"
43
+ "react-dom": ">=19"
47
44
  },
48
45
  "publishConfig": {
49
46
  "access": "public"