@haklex/rich-renderer-image 0.0.107 → 0.0.108
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":"ImageEditToolbar.d.ts","sourceRoot":"","sources":["../src/ImageEditToolbar.tsx"],"names":[],"mappings":"AAUA,wBAAgB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ImageEditToolbar.d.ts","sourceRoot":"","sources":["../src/ImageEditToolbar.tsx"],"names":[],"mappings":"AAUA,wBAAgB,gBAAgB,4CA6G/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReplacePopover.d.ts","sourceRoot":"","sources":["../src/ReplacePopover.tsx"],"names":[],"mappings":"AASA,wBAAgB,cAAc,
|
|
1
|
+
{"version":3,"file":"ReplacePopover.d.ts","sourceRoot":"","sources":["../src/ReplacePopover.tsx"],"names":[],"mappings":"AASA,wBAAgB,cAAc,4CAqB7B"}
|
package/dist/index.mjs
CHANGED
|
@@ -498,6 +498,10 @@ function ImageEditToolbar() {
|
|
|
498
498
|
{
|
|
499
499
|
className: `${editToolbarButton} ${semanticClassNames.editToolbarButton}`,
|
|
500
500
|
title: "Edit details",
|
|
501
|
+
onMouseDown: (e) => {
|
|
502
|
+
e.preventDefault();
|
|
503
|
+
e.stopPropagation();
|
|
504
|
+
},
|
|
501
505
|
children: /* @__PURE__ */ jsx(Type, { size: 14 })
|
|
502
506
|
}
|
|
503
507
|
),
|
|
@@ -519,6 +523,10 @@ function ImageEditToolbar() {
|
|
|
519
523
|
{
|
|
520
524
|
className: `${editToolbarButton} ${semanticClassNames.editToolbarButton}`,
|
|
521
525
|
title: "Replace image",
|
|
526
|
+
onMouseDown: (e) => {
|
|
527
|
+
e.preventDefault();
|
|
528
|
+
e.stopPropagation();
|
|
529
|
+
},
|
|
522
530
|
children: /* @__PURE__ */ jsx(Replace, { size: 14 })
|
|
523
531
|
}
|
|
524
532
|
),
|
|
@@ -594,6 +602,10 @@ function ReplacePopover() {
|
|
|
594
602
|
PopoverTrigger,
|
|
595
603
|
{
|
|
596
604
|
className: `${editPlaceholder} ${semanticClassNames.editPlaceholder}`,
|
|
605
|
+
onMouseDown: (e) => {
|
|
606
|
+
e.preventDefault();
|
|
607
|
+
e.stopPropagation();
|
|
608
|
+
},
|
|
597
609
|
children: [
|
|
598
610
|
/* @__PURE__ */ jsx(ImageIcon, { size: 24 }),
|
|
599
611
|
/* @__PURE__ */ jsx("span", { children: "Click to add image" })
|
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.108",
|
|
4
4
|
"description": "Image renderer with blurhash and lightbox",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"jotai": "2.18.0",
|
|
29
29
|
"react-photo-view": "^1.2.7",
|
|
30
|
-
"@haklex/rich-editor": "0.0.
|
|
31
|
-
"@haklex/rich-editor-ui": "0.0.
|
|
32
|
-
"@haklex/rich-style-token": "0.0.
|
|
30
|
+
"@haklex/rich-editor": "0.0.108",
|
|
31
|
+
"@haklex/rich-editor-ui": "0.0.108",
|
|
32
|
+
"@haklex/rich-style-token": "0.0.108"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@lexical/react": "^0.43.0",
|