@blocklet/editor 2.0.26 → 2.0.28
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.
|
@@ -17,7 +17,7 @@ import { LexicalNestedComposer } from '@lexical/react/LexicalNestedComposer';
|
|
|
17
17
|
import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin';
|
|
18
18
|
import { useLexicalNodeSelection } from '@lexical/react/useLexicalNodeSelection';
|
|
19
19
|
import { mergeRegister } from '@lexical/utils';
|
|
20
|
-
import { Alert, Box, Button, Dialog, LinearProgress } from '@mui/material';
|
|
20
|
+
import { Alert, Box, Button, Dialog, LinearProgress, Skeleton } from '@mui/material';
|
|
21
21
|
import { $getNodeByKey, $getSelection, $isNodeSelection, $setSelection, CLICK_COMMAND, COMMAND_PRIORITY_LOW, KEY_BACKSPACE_COMMAND, KEY_DELETE_COMMAND, KEY_ENTER_COMMAND, KEY_ESCAPE_COMMAND, SELECTION_CHANGE_COMMAND, } from 'lexical';
|
|
22
22
|
import { Suspense, useCallback, useEffect, useRef, useState } from 'react';
|
|
23
23
|
import { createPortal } from 'react-dom';
|
|
@@ -246,7 +246,7 @@ export default function ImageComponent({ file, src, altText, nodeKey, width, hei
|
|
|
246
246
|
uploadImage();
|
|
247
247
|
}
|
|
248
248
|
}, [src, file, confirmText]);
|
|
249
|
-
const placeholder = objectUrl ? (_jsx(ImageContainer, { draggable: draggable, success: !!src, loading: loading, error: error, confirmText: confirmText, uploadImage: uploadImage, placeholder: objectUrl, placeholderProps: { style: { width, height, maxWidth } } })) :
|
|
249
|
+
const placeholder = objectUrl ? (_jsx(ImageContainer, { draggable: draggable, success: !!src, loading: loading, error: error, confirmText: confirmText, uploadImage: uploadImage, placeholder: objectUrl, placeholderProps: { style: { width, height, maxWidth } } })) : (_jsx(Skeleton, { variant: "rectangular", animation: "wave", sx: { width: 300, height: 200, borderRadius: 1 } }));
|
|
250
250
|
const imageDisplayWidth = useImageDisplayWidth({ src: src || objectUrl, sizeMode, width });
|
|
251
251
|
const { zoomOpened, openedImageRef } = useMediumZoom(imageRef, { enabled: !frame });
|
|
252
252
|
const renderImageAnnotationView = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.28",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "npm run storybook",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@arcblock/ux": "^2.10.1",
|
|
41
41
|
"@blocklet/embed": "^0.1.11",
|
|
42
42
|
"@blocklet/pages-kit": "^0.2.356",
|
|
43
|
-
"@blocklet/pdf": "2.0.
|
|
43
|
+
"@blocklet/pdf": "2.0.28",
|
|
44
44
|
"@excalidraw/excalidraw": "^0.14.2",
|
|
45
45
|
"@iconify/iconify": "^3.0.1",
|
|
46
46
|
"@iconify/icons-tabler": "^1.2.95",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"react": "*",
|
|
114
114
|
"react-dom": "*"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "8385dedb2d8966bee469bcc8abcbcb052ff5b076"
|
|
117
117
|
}
|