@haklex/rich-ext-gallery 0.0.54 → 0.0.56
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,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CommandItemConfig } from '@haklex/rich-editor';
|
|
2
2
|
import { EditorConfig, LexicalEditor, LexicalNode, NodeKey } from 'lexical';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
4
|
import { GalleryNode, GalleryNodePayload, SerializedGalleryNode } from './GalleryNode';
|
|
5
5
|
export declare class GalleryEditNode extends GalleryNode {
|
|
6
|
-
static
|
|
6
|
+
static commandItems: CommandItemConfig[];
|
|
7
7
|
static clone(node: GalleryEditNode): GalleryEditNode;
|
|
8
8
|
constructor(payload: GalleryNodePayload, key?: NodeKey);
|
|
9
9
|
static importJSON(serializedNode: SerializedGalleryNode): GalleryEditNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryEditNode.d.ts","sourceRoot":"","sources":["../src/GalleryEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"GalleryEditNode.d.ts","sourceRoot":"","sources":["../src/GalleryEditNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAGlB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EACL,WAAW,EACX,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC3B,MAAM,eAAe,CAAA;AAGtB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C,MAAM,CAAC,YAAY,EAAE,iBAAiB,EAAE,CAevC;IAED,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe;gBAUxC,OAAO,EAAE,kBAAkB,EAAE,GAAG,CAAC,EAAE,OAAO;IAItD,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,qBAAqB,GAAG,eAAe;IAOzE,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,YAAY;CAoBrE;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,kBAAkB,GAC1B,eAAe,CAEjB;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,eAAe,CAEzB"}
|
package/dist/index.mjs
CHANGED
|
@@ -54,13 +54,15 @@ const _GalleryEditNode = class _GalleryEditNode extends GalleryNode {
|
|
|
54
54
|
return createRendererDecoration("Gallery", GalleryRenderer, props);
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
__publicField(_GalleryEditNode, "
|
|
57
|
+
__publicField(_GalleryEditNode, "commandItems", [
|
|
58
58
|
{
|
|
59
59
|
title: "Gallery",
|
|
60
60
|
icon: createElement(Images, { size: 20 }),
|
|
61
61
|
description: "Image gallery grid",
|
|
62
62
|
keywords: ["gallery", "images", "grid"],
|
|
63
63
|
section: "MEDIA",
|
|
64
|
+
placement: ["slash", "toolbar"],
|
|
65
|
+
group: "insert",
|
|
64
66
|
onSelect: (editor) => {
|
|
65
67
|
editor.update(() => {
|
|
66
68
|
$insertNodes([$createGalleryEditNode({ images: [] })]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-ext-gallery",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"description": "Image gallery extension with drag-and-drop",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"react-intersection-observer": "^10.0.3",
|
|
27
27
|
"react-photo-view": "^1.2.7",
|
|
28
28
|
"thumbhash": "^0.1.1",
|
|
29
|
-
"@haklex/rich-editor": "0.0.
|
|
30
|
-
"@haklex/rich-
|
|
31
|
-
"@haklex/rich-
|
|
29
|
+
"@haklex/rich-editor": "0.0.56",
|
|
30
|
+
"@haklex/rich-editor-ui": "0.0.56",
|
|
31
|
+
"@haklex/rich-style-token": "0.0.56"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/react": "^19.2.14",
|