@haklex/rich-renderers 0.4.0 → 0.5.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.
- package/dist/codeblock.d.ts +1 -1
- package/dist/codeblock.d.ts.map +1 -1
- package/dist/codeblock.mjs +2 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.mjs +19 -15
- package/package.json +18 -18
package/dist/codeblock.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CodeBlockRenderer
|
|
1
|
+
export { CodeBlockRenderer } from '@haklex/rich-renderer-codeblock/static';
|
|
2
2
|
//# sourceMappingURL=codeblock.d.ts.map
|
package/dist/codeblock.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeblock.d.ts","sourceRoot":"","sources":["../src/codeblock.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"codeblock.d.ts","sourceRoot":"","sources":["../src/codeblock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC"}
|
package/dist/codeblock.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { CodeBlockRenderer
|
|
1
|
+
import { CodeBlockRenderer } from "@haklex/rich-renderer-codeblock/static";
|
|
2
|
+
export { CodeBlockRenderer };
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,cAAc,EAGpB,MAAM,qBAAqB,CAAC;AAiB7B,eAAO,MAAM,sBAAsB,EAAE,cAapC,CAAC"}
|
package/dist/config.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { ChatRenderer } from "@haklex/rich-ext-chat/static";
|
|
2
|
-
import { CodeSnippetRenderer } from "@haklex/rich-ext-code-snippet/static";
|
|
3
|
-
import { GalleryRenderer } from "@haklex/rich-ext-gallery/static";
|
|
4
1
|
import { AlertRenderer } from "@haklex/rich-renderer-alert/static";
|
|
5
2
|
import { BannerRenderer } from "@haklex/rich-renderer-banner/static";
|
|
6
3
|
import { CodeBlockRenderer } from "@haklex/rich-renderer-codeblock/static";
|
|
@@ -10,20 +7,27 @@ import { MentionRenderer } from "@haklex/rich-renderer-mention/static";
|
|
|
10
7
|
import { MermaidRenderer } from "@haklex/rich-renderer-mermaid/static";
|
|
11
8
|
import { RubyRenderer } from "@haklex/rich-renderer-ruby/static";
|
|
12
9
|
import { VideoRenderer } from "@haklex/rich-renderer-video/static";
|
|
10
|
+
import { ALERT_NODE_KEY, BANNER_NODE_KEY, CODE_BLOCK_NODE_KEY, IMAGE_NODE_KEY, LINK_CARD_NODE_KEY, MENTION_NODE_KEY, MERMAID_NODE_KEY, RUBY_NODE_KEY, VIDEO_NODE_KEY } from "@haklex/rich-editor";
|
|
11
|
+
import { CHAT_NODE_KEY } from "@haklex/rich-ext-chat/node";
|
|
12
|
+
import { ChatRenderer } from "@haklex/rich-ext-chat/renderer";
|
|
13
|
+
import { CODE_SNIPPET_NODE_KEY } from "@haklex/rich-ext-code-snippet/node";
|
|
14
|
+
import { CodeSnippetRenderer } from "@haklex/rich-ext-code-snippet/renderer";
|
|
15
|
+
import { GALLERY_NODE_KEY } from "@haklex/rich-ext-gallery/node";
|
|
16
|
+
import { GalleryRenderer } from "@haklex/rich-ext-gallery/renderer";
|
|
13
17
|
//#region src/config.ts
|
|
14
18
|
var enhancedRendererConfig = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
[ALERT_NODE_KEY]: AlertRenderer,
|
|
20
|
+
[BANNER_NODE_KEY]: BannerRenderer,
|
|
21
|
+
[CHAT_NODE_KEY]: ChatRenderer,
|
|
22
|
+
[CODE_BLOCK_NODE_KEY]: CodeBlockRenderer,
|
|
23
|
+
[CODE_SNIPPET_NODE_KEY]: CodeSnippetRenderer,
|
|
24
|
+
[GALLERY_NODE_KEY]: GalleryRenderer,
|
|
25
|
+
[IMAGE_NODE_KEY]: ImageRenderer,
|
|
26
|
+
[LINK_CARD_NODE_KEY]: LinkCardRenderer,
|
|
27
|
+
[MENTION_NODE_KEY]: MentionRenderer,
|
|
28
|
+
[MERMAID_NODE_KEY]: MermaidRenderer,
|
|
29
|
+
[RUBY_NODE_KEY]: RubyRenderer,
|
|
30
|
+
[VIDEO_NODE_KEY]: VideoRenderer
|
|
27
31
|
};
|
|
28
32
|
//#endregion
|
|
29
33
|
export { enhancedRendererConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-renderers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Static renderers aggregator for haklex rich editor",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -74,20 +74,20 @@
|
|
|
74
74
|
"src/style.css"
|
|
75
75
|
],
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@haklex/rich-ext-
|
|
78
|
-
"@haklex/rich-ext-embed": "0.
|
|
79
|
-
"@haklex/rich-ext-
|
|
80
|
-
"@haklex/rich-renderer-
|
|
81
|
-
"@haklex/rich-renderer-
|
|
82
|
-
"@haklex/rich-ext-
|
|
83
|
-
"@haklex/rich-renderer-image": "0.
|
|
84
|
-
"@haklex/rich-renderer-
|
|
85
|
-
"@haklex/rich-renderer-
|
|
86
|
-
"@haklex/rich-renderer-
|
|
87
|
-
"@haklex/rich-
|
|
88
|
-
"@haklex/rich-renderer-
|
|
89
|
-
"@haklex/rich-renderer-
|
|
90
|
-
"@haklex/rich-
|
|
77
|
+
"@haklex/rich-ext-chat": "0.5.0",
|
|
78
|
+
"@haklex/rich-ext-embed": "0.5.0",
|
|
79
|
+
"@haklex/rich-ext-gallery": "0.5.0",
|
|
80
|
+
"@haklex/rich-renderer-banner": "0.5.0",
|
|
81
|
+
"@haklex/rich-renderer-codeblock": "0.5.0",
|
|
82
|
+
"@haklex/rich-ext-excalidraw": "0.5.0",
|
|
83
|
+
"@haklex/rich-renderer-image": "0.5.0",
|
|
84
|
+
"@haklex/rich-renderer-linkcard": "0.5.0",
|
|
85
|
+
"@haklex/rich-renderer-mention": "0.5.0",
|
|
86
|
+
"@haklex/rich-renderer-mermaid": "0.5.0",
|
|
87
|
+
"@haklex/rich-ext-code-snippet": "0.5.0",
|
|
88
|
+
"@haklex/rich-renderer-ruby": "0.5.0",
|
|
89
|
+
"@haklex/rich-renderer-alert": "0.5.0",
|
|
90
|
+
"@haklex/rich-renderer-video": "0.5.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@lexical/react": "^0.44.0",
|
|
@@ -99,14 +99,14 @@
|
|
|
99
99
|
"typescript": "^5.9.3",
|
|
100
100
|
"vite": "^8.0.10",
|
|
101
101
|
"vite-plugin-dts": "^4.5.4",
|
|
102
|
-
"@haklex/rich-editor": "0.
|
|
102
|
+
"@haklex/rich-editor": "0.5.0"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
|
-
"@haklex/rich-editor": ">=0.3.0",
|
|
106
105
|
"@lexical/react": "^0.44.0",
|
|
107
106
|
"lexical": "^0.44.0",
|
|
108
107
|
"react": ">=19",
|
|
109
|
-
"react-dom": ">=19"
|
|
108
|
+
"react-dom": ">=19",
|
|
109
|
+
"@haklex/rich-editor": "0.5.0"
|
|
110
110
|
},
|
|
111
111
|
"publishConfig": {
|
|
112
112
|
"access": "public"
|