@haklex/rich-ext-gallery 0.32.0 → 0.33.0
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.
|
@@ -9,7 +9,7 @@ import { createRendererDecoration } from "@haklex/rich-editor/renderers";
|
|
|
9
9
|
*/
|
|
10
10
|
var GALLERY_NODE_KEY = "Gallery";
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region \0@oxc-project+runtime@0.
|
|
12
|
+
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
|
|
13
13
|
function _typeof(o) {
|
|
14
14
|
"@babel/helpers - typeof";
|
|
15
15
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -19,7 +19,7 @@ function _typeof(o) {
|
|
|
19
19
|
}, _typeof(o);
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region \0@oxc-project+runtime@0.
|
|
22
|
+
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
|
|
23
23
|
function toPrimitive(t, r) {
|
|
24
24
|
if ("object" != _typeof(t) || !t) return t;
|
|
25
25
|
var e = t[Symbol.toPrimitive];
|
|
@@ -31,13 +31,13 @@ function toPrimitive(t, r) {
|
|
|
31
31
|
return ("string" === r ? String : Number)(t);
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region \0@oxc-project+runtime@0.
|
|
34
|
+
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
|
|
35
35
|
function toPropertyKey(t) {
|
|
36
36
|
var i = toPrimitive(t, "string");
|
|
37
37
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region \0@oxc-project+runtime@0.
|
|
40
|
+
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
|
|
41
41
|
function _defineProperty(e, r, t) {
|
|
42
42
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
43
43
|
value: t,
|
|
@@ -107,10 +107,11 @@ var GalleryNode = class GalleryNode extends DecoratorNode {
|
|
|
107
107
|
writable.__layout = layout;
|
|
108
108
|
}
|
|
109
109
|
decorate(_editor, _config) {
|
|
110
|
-
|
|
110
|
+
const props = {
|
|
111
111
|
images: this.__images,
|
|
112
112
|
layout: this.__layout
|
|
113
|
-
}
|
|
113
|
+
};
|
|
114
|
+
return createRendererDecoration(GALLERY_NODE_KEY, void 0, props);
|
|
114
115
|
}
|
|
115
116
|
};
|
|
116
117
|
function $createGalleryNode(payload) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as galleryImageDragHandle, D as galleryImageThumb, E as galleryImageList, O as galleryImageThumbPlaceholder, S as galleryImageDeleteBtn, T as galleryImageInput, _ as galleryFooterInfo, a as galleryDialogEmpty, b as galleryImageActions, c as galleryDialogPopup, d as galleryEditLabel, f as galleryEditOverlay, g as galleryFooterBtnSave, h as galleryFooterBtnCancel, i as galleryDialogBody, l as galleryDialogTitle, m as galleryFooterActions, o as galleryDialogFooter, p as galleryEmptyState, r as galleryAddBtn, s as galleryDialogHeader, t as GalleryRenderer, u as galleryEditContainer, v as galleryHeaderActions, w as galleryImageFields, x as galleryImageCard, y as galleryHeaderClose } from "./GalleryRenderer-CGc0vPjH.js";
|
|
2
|
-
import { i as _defineProperty, r as GalleryNode } from "./GalleryNode-
|
|
2
|
+
import { i as _defineProperty, r as GalleryNode } from "./GalleryNode-CbUVtq2d.js";
|
|
3
3
|
import { $getNodeByKey, $insertNodes } from "lexical";
|
|
4
4
|
import { GripVertical, ImageIcon, Images, Pencil, Plus, Trash2, X } from "lucide-react";
|
|
5
5
|
import { createElement, useCallback, useRef, useState } from "react";
|
|
@@ -479,7 +479,7 @@ var GalleryEditNode = class GalleryEditNode extends GalleryNode {
|
|
|
479
479
|
}
|
|
480
480
|
decorate(editor, _config) {
|
|
481
481
|
const nodeKey = this.__key;
|
|
482
|
-
|
|
482
|
+
const props = {
|
|
483
483
|
images: this.__images,
|
|
484
484
|
layout: this.__layout,
|
|
485
485
|
onImagesChange: (images) => {
|
|
@@ -494,7 +494,8 @@ var GalleryEditNode = class GalleryEditNode extends GalleryNode {
|
|
|
494
494
|
if (node) node.setLayout(layout);
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
|
-
}
|
|
497
|
+
};
|
|
498
|
+
return createElement(GalleryEditRenderer, props);
|
|
498
499
|
}
|
|
499
500
|
};
|
|
500
501
|
_defineProperty(GalleryEditNode, "commandItems", [{
|
package/dist/edit.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as __augmentLoaded_gallery } from "./augment-DgwFVGf9.js";
|
|
2
|
-
import { a as GalleryEditRenderer, i as GalleryEditNode, n as $createGalleryEditNode, r as $isGalleryEditNode, t as galleryEditNodes } from "./edit-
|
|
2
|
+
import { a as GalleryEditRenderer, i as GalleryEditNode, n as $createGalleryEditNode, r as $isGalleryEditNode, t as galleryEditNodes } from "./edit-MQYWrFc4.js";
|
|
3
3
|
export { $createGalleryEditNode, $isGalleryEditNode, GalleryEditNode, GalleryEditRenderer, __augmentLoaded_gallery, galleryEditNodes };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __augmentLoaded_gallery } from "./augment-DgwFVGf9.js";
|
|
2
2
|
import { t as GalleryRenderer } from "./GalleryRenderer-CGc0vPjH.js";
|
|
3
|
-
import { a as GalleryEditRenderer, i as GalleryEditNode, n as $createGalleryEditNode, r as $isGalleryEditNode, t as galleryEditNodes } from "./edit-
|
|
4
|
-
import { a as GALLERY_NODE_KEY, n as $isGalleryNode, r as GalleryNode, t as $createGalleryNode } from "./GalleryNode-
|
|
3
|
+
import { a as GalleryEditRenderer, i as GalleryEditNode, n as $createGalleryEditNode, r as $isGalleryEditNode, t as galleryEditNodes } from "./edit-MQYWrFc4.js";
|
|
4
|
+
import { a as GALLERY_NODE_KEY, n as $isGalleryNode, r as GalleryNode, t as $createGalleryNode } from "./GalleryNode-CbUVtq2d.js";
|
|
5
5
|
import { galleryNodes } from "./node.mjs";
|
|
6
6
|
import "./renderer.mjs";
|
|
7
7
|
export { $createGalleryEditNode, $createGalleryNode, $isGalleryEditNode, $isGalleryNode, GALLERY_NODE_KEY, GalleryEditNode, GalleryEditRenderer, GalleryNode, GalleryRenderer, __augmentLoaded_gallery, galleryEditNodes, galleryNodes };
|
package/dist/node.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __augmentLoaded_gallery } from "./augment-DgwFVGf9.js";
|
|
2
|
-
import { a as GALLERY_NODE_KEY, n as $isGalleryNode, r as GalleryNode, t as $createGalleryNode } from "./GalleryNode-
|
|
2
|
+
import { a as GALLERY_NODE_KEY, n as $isGalleryNode, r as GalleryNode, t as $createGalleryNode } from "./GalleryNode-CbUVtq2d.js";
|
|
3
3
|
//#region src/node.ts
|
|
4
4
|
var galleryNodes = [GalleryNode];
|
|
5
5
|
//#endregion
|
package/dist/static.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __augmentLoaded_gallery } from "./augment-DgwFVGf9.js";
|
|
2
2
|
import { n as GalleryRenderer_default, t as GalleryRenderer } from "./GalleryRenderer-CGc0vPjH.js";
|
|
3
|
-
import { a as GALLERY_NODE_KEY, n as $isGalleryNode, r as GalleryNode, t as $createGalleryNode } from "./GalleryNode-
|
|
3
|
+
import { a as GALLERY_NODE_KEY, n as $isGalleryNode, r as GalleryNode, t as $createGalleryNode } from "./GalleryNode-CbUVtq2d.js";
|
|
4
4
|
import { galleryNodes } from "./node.mjs";
|
|
5
5
|
import "./renderer.mjs";
|
|
6
6
|
export { $createGalleryNode, $isGalleryNode, GALLERY_NODE_KEY, GalleryNode, GalleryRenderer, __augmentLoaded_gallery, GalleryRenderer_default as default, galleryNodes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-ext-gallery",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Image gallery extension with drag-and-drop",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,29 +40,29 @@
|
|
|
40
40
|
"@dnd-kit/core": "^6.3.1",
|
|
41
41
|
"@dnd-kit/sortable": "^10.0.0",
|
|
42
42
|
"@dnd-kit/utilities": "^3.2.2",
|
|
43
|
-
"react-intersection-observer": "^
|
|
43
|
+
"react-intersection-observer": "^11.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/react": "^19.2.
|
|
47
|
-
"@types/react-dom": "^19.2.
|
|
48
|
-
"@vanilla-extract/css": "^1.21.
|
|
49
|
-
"@vanilla-extract/vite-plugin": "^5.2.
|
|
50
|
-
"lexical": "^0.
|
|
51
|
-
"lucide-react": "^1.
|
|
46
|
+
"@types/react": "^19.2.18",
|
|
47
|
+
"@types/react-dom": "^19.2.4",
|
|
48
|
+
"@vanilla-extract/css": "^1.21.2",
|
|
49
|
+
"@vanilla-extract/vite-plugin": "^5.2.6",
|
|
50
|
+
"lexical": "^0.49.0",
|
|
51
|
+
"lucide-react": "^1.28.0",
|
|
52
52
|
"react": "^19.2.8",
|
|
53
53
|
"react-dom": "^19.2.8",
|
|
54
54
|
"typescript": "^7.0.2",
|
|
55
55
|
"unplugin-dts": "^1.0.3",
|
|
56
|
-
"vite": "^8.
|
|
56
|
+
"vite": "^8.2.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"lexical": "^0.
|
|
59
|
+
"lexical": "^0.49.0",
|
|
60
60
|
"lucide-react": "^1.0.0",
|
|
61
61
|
"react": ">=19",
|
|
62
62
|
"react-dom": ">=19",
|
|
63
|
-
"@haklex/rich-editor": "^0.
|
|
64
|
-
"@haklex/rich-
|
|
65
|
-
"@haklex/rich-
|
|
63
|
+
"@haklex/rich-editor": "^0.33.0",
|
|
64
|
+
"@haklex/rich-editor-ui": "^0.33.0",
|
|
65
|
+
"@haklex/rich-style-token": "^0.33.0"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|