@haklex/rich-kit-shiro 0.0.65 → 0.0.67
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/README.md +51 -78
- package/dist/IsolateEditor.d.ts.map +1 -1
- package/dist/IsolateRenderer.d.ts.map +1 -1
- package/dist/{ShiroEditor-B1d8hQ_r.js → ShiroEditor-CQlJFd4n.js} +5 -12
- package/dist/ShiroEditor.d.ts +2 -2
- package/dist/ShiroEditor.d.ts.map +1 -1
- package/dist/{ShiroRenderer-D8y1KzIM.js → ShiroRenderer-BiO7D9Fq.js} +5 -14
- package/dist/ShiroRenderer.d.ts.map +1 -1
- package/dist/editor.mjs +4 -8
- package/dist/exports/editor-core.d.ts +4 -2
- package/dist/exports/editor-core.d.ts.map +1 -1
- package/dist/exports/editor-core.mjs +2 -1
- package/dist/exports/markdown.mjs +1 -1
- package/dist/exports/nodes.d.ts +1 -1
- package/dist/exports/nodes.d.ts.map +1 -1
- package/dist/exports/nodes.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +6 -4
- package/dist/{markdown-DFW9jcXy.js → markdown-6NDL-9Bg.js} +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.d.ts.map +1 -1
- package/dist/renderer.css +1 -1
- package/dist/renderer.mjs +3 -3
- package/dist/style-cfUKULBa.js +4 -0
- package/dist/style-renderer.d.ts.map +1 -1
- package/package.json +31 -25
- package/src/style.css +1 -0
- package/dist/style-BTA1ZhvB.js +0 -4
package/README.md
CHANGED
|
@@ -1,110 +1,83 @@
|
|
|
1
1
|
# @haklex/rich-kit-shiro
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Pre-configured integration bundle for Shiroi (Next.js blog). Provides `ShiroEditor` and `ShiroRenderer` with all plugins, extensions, and renderers pre-loaded.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pnpm add @haklex/rich-kit-shiro
|
|
8
|
+
pnpm add @haklex/rich-kit-shiro
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Peer Dependencies
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
| Package | Version |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| `@lexical/react` | `^0.41.0` |
|
|
16
|
+
| `lexical` | `^0.41.0` |
|
|
17
|
+
| `react` | `>=19` |
|
|
18
|
+
| `react-dom` | `>=19` |
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
### Editor
|
|
14
23
|
|
|
15
24
|
```tsx
|
|
16
25
|
import { ShiroEditor } from '@haklex/rich-kit-shiro/editor'
|
|
17
26
|
import '@haklex/rich-kit-shiro/style.css'
|
|
18
27
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
initialValue={state}
|
|
25
|
-
onChange={setState}
|
|
26
|
-
variant="article"
|
|
27
|
-
/>
|
|
28
|
-
)
|
|
29
|
-
}
|
|
28
|
+
<ShiroEditor
|
|
29
|
+
initialValue={savedState}
|
|
30
|
+
onChange={(value) => save(value)}
|
|
31
|
+
variant="article"
|
|
32
|
+
/>
|
|
30
33
|
```
|
|
31
34
|
|
|
32
|
-
###
|
|
35
|
+
### Renderer
|
|
33
36
|
|
|
34
37
|
```tsx
|
|
35
38
|
import { ShiroRenderer } from '@haklex/rich-kit-shiro/renderer'
|
|
36
|
-
import '@haklex/rich-kit-shiro/style.css'
|
|
39
|
+
import '@haklex/rich-kit-shiro/style-renderer.css'
|
|
37
40
|
|
|
38
|
-
|
|
39
|
-
return <ShiroRenderer value={content} variant="article" />
|
|
40
|
-
}
|
|
41
|
+
<ShiroRenderer value={editorState} variant="article" theme="light" />
|
|
41
42
|
```
|
|
42
43
|
|
|
43
|
-
##
|
|
44
|
-
|
|
45
|
-
ShiroEditor 自动包含:
|
|
44
|
+
## Exports
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
- SlashMenuPlugin
|
|
49
|
-
- FloatingToolbarPlugin
|
|
50
|
-
- FloatingLinkEditorPlugin
|
|
51
|
-
- TldrawPlugin
|
|
52
|
-
- EmbedPlugin
|
|
53
|
-
- 表格单元格调整
|
|
46
|
+
### Components
|
|
54
47
|
|
|
55
|
-
|
|
48
|
+
| Export | Description |
|
|
49
|
+
| --- | --- |
|
|
50
|
+
| `ShiroEditor` | Fully configured editor with all plugins and extensions |
|
|
51
|
+
| `ShiroRenderer` | Fully configured static renderer with all renderers |
|
|
56
52
|
|
|
57
|
-
###
|
|
53
|
+
### Types
|
|
58
54
|
|
|
59
|
-
|
|
55
|
+
| Export | Description |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| `ShiroEditorProps` | Props for `ShiroEditor` |
|
|
58
|
+
| `ShiroRendererProps` | Props for `ShiroRenderer` |
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
interface ShiroEditorProps extends Omit<RichEditorProps, 'rendererConfig' | 'extraNodes' | 'actions'> {
|
|
63
|
-
extraNodes?: Array<Klass<LexicalNode>>
|
|
64
|
-
actions?: ReactNode
|
|
65
|
-
selfHostnames?: string[] // EmbedPlugin 用
|
|
66
|
-
}
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### ShiroRendererProps
|
|
60
|
+
### Sub-path Exports
|
|
70
61
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
| Import Path | Description |
|
|
63
|
+
| --- | --- |
|
|
64
|
+
| `@haklex/rich-kit-shiro` | Main entry (ShiroEditor + ShiroRenderer + all re-exports) |
|
|
65
|
+
| `@haklex/rich-kit-shiro/editor` | Editor component only |
|
|
66
|
+
| `@haklex/rich-kit-shiro/editor-core` | Core editor re-exports |
|
|
67
|
+
| `@haklex/rich-kit-shiro/excalidraw` | Excalidraw extension re-exports |
|
|
68
|
+
| `@haklex/rich-kit-shiro/markdown` | Markdown conversion utilities |
|
|
69
|
+
| `@haklex/rich-kit-shiro/nodes` | All node classes |
|
|
70
|
+
| `@haklex/rich-kit-shiro/plugins` | All plugin re-exports |
|
|
71
|
+
| `@haklex/rich-kit-shiro/renderer` | Renderer component only |
|
|
72
|
+
| `@haklex/rich-kit-shiro/renderers` | Static renderer configs |
|
|
73
|
+
| `@haklex/rich-kit-shiro/renderers-edit` | Edit-mode renderer configs |
|
|
74
|
+
| `@haklex/rich-kit-shiro/style` | Style/theme utilities |
|
|
75
|
+
| `@haklex/rich-kit-shiro/style.css` | Compiled editor stylesheet |
|
|
76
|
+
| `@haklex/rich-kit-shiro/style-renderer.css` | Compiled renderer stylesheet |
|
|
78
77
|
|
|
79
|
-
##
|
|
78
|
+
## Part of Haklex
|
|
80
79
|
|
|
81
|
-
|
|
82
|
-
// 组件
|
|
83
|
-
export { ShiroEditor } from './ShiroEditor'
|
|
84
|
-
export { ShiroRenderer } from './ShiroRenderer'
|
|
85
|
-
|
|
86
|
-
// 类型
|
|
87
|
-
export type { ShiroEditorProps } from './ShiroEditor'
|
|
88
|
-
export type { ShiroRendererProps } from './ShiroRenderer'
|
|
89
|
-
|
|
90
|
-
// 重新导出常用类型
|
|
91
|
-
export type { ColorScheme, RendererConfig, RichEditorVariant } from '@haklex/rich-editor'
|
|
92
|
-
|
|
93
|
-
// 重新导出配置(高级用法)
|
|
94
|
-
export { enhancedRendererConfig } from '@haklex/rich-renderers'
|
|
95
|
-
export { enhancedEditRendererConfig } from '@haklex/rich-renderers-edit'
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## 依赖
|
|
99
|
-
|
|
100
|
-
```json
|
|
101
|
-
{
|
|
102
|
-
"lexical": "^0.41.0",
|
|
103
|
-
"@lexical/react": "^0.41.0",
|
|
104
|
-
"react": ">=19",
|
|
105
|
-
"react-dom": ">=19"
|
|
106
|
-
}
|
|
107
|
-
```
|
|
80
|
+
This package is part of the [Haklex](../../README.md) rich editor ecosystem.
|
|
108
81
|
|
|
109
82
|
## License
|
|
110
83
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsolateEditor.d.ts","sourceRoot":"","sources":["../src/IsolateEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"IsolateEditor.d.ts","sourceRoot":"","sources":["../src/IsolateEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAOtD,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAElD,wBAAgB,aAAa,CAAC,EAAE,KAAe,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CASzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsolateRenderer.d.ts","sourceRoot":"","sources":["../src/IsolateRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"IsolateRenderer.d.ts","sourceRoot":"","sources":["../src/IsolateRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAO1D,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,KAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,2CAatB"}
|
|
@@ -8,7 +8,7 @@ import { SlashMenuPlugin } from "@haklex/rich-plugin-slash-menu";
|
|
|
8
8
|
import { TableRowColumnHandlesPlugin, TableCellResizerPlugin } from "@haklex/rich-plugin-table";
|
|
9
9
|
import { ExcalidrawEditNode, embedEditNodes, linkCardEditNodes, katexEditNodes, galleryEditNodes, codeSnippetEditNodes, ConvertToLinkCardAction, enhancedEditRendererConfig, ExcalidrawPlugin, EmbedPlugin, PasteLinkCardPlugin } from "@haklex/rich-renderers-edit";
|
|
10
10
|
import { useMemo, useCallback } from "react";
|
|
11
|
-
import { S as ShiroRenderer } from "./ShiroRenderer-
|
|
11
|
+
import { S as ShiroRenderer } from "./ShiroRenderer-BiO7D9Fq.js";
|
|
12
12
|
const defaultExtraNodes = [
|
|
13
13
|
ExcalidrawEditNode,
|
|
14
14
|
...embedEditNodes,
|
|
@@ -32,7 +32,7 @@ function ShiroEditor({
|
|
|
32
32
|
[extraNodes]
|
|
33
33
|
);
|
|
34
34
|
const renderNestedContent = useCallback(
|
|
35
|
-
(value) => /* @__PURE__ */ jsx(ShiroRenderer, { value, variant
|
|
35
|
+
(value) => /* @__PURE__ */ jsx(ShiroRenderer, { theme, value, variant }),
|
|
36
36
|
[theme, variant]
|
|
37
37
|
);
|
|
38
38
|
const renderLinkExtraActions = useCallback(
|
|
@@ -40,24 +40,17 @@ function ShiroEditor({
|
|
|
40
40
|
url,
|
|
41
41
|
linkKey,
|
|
42
42
|
actionButtonClassName
|
|
43
|
-
}) => /* @__PURE__ */ jsx(
|
|
44
|
-
ConvertToLinkCardAction,
|
|
45
|
-
{
|
|
46
|
-
url,
|
|
47
|
-
linkKey,
|
|
48
|
-
className: actionButtonClassName
|
|
49
|
-
}
|
|
50
|
-
),
|
|
43
|
+
}) => /* @__PURE__ */ jsx(ConvertToLinkCardAction, { className: actionButtonClassName, linkKey, url }),
|
|
51
44
|
[]
|
|
52
45
|
);
|
|
53
46
|
return /* @__PURE__ */ jsx(NestedContentRendererProvider, { value: renderNestedContent, children: /* @__PURE__ */ jsxs(
|
|
54
47
|
RichEditor,
|
|
55
48
|
{
|
|
56
49
|
...props,
|
|
57
|
-
variant,
|
|
58
|
-
theme,
|
|
59
50
|
extraNodes: mergedNodes,
|
|
60
51
|
rendererConfig: enhancedEditRendererConfig,
|
|
52
|
+
theme,
|
|
53
|
+
variant,
|
|
61
54
|
actions: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
62
55
|
/* @__PURE__ */ jsx(SlashMenuPlugin, {}),
|
|
63
56
|
/* @__PURE__ */ jsx(MentionMenuPlugin, { extraPlatforms: extraMentionPlatforms }),
|
package/dist/ShiroEditor.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { MentionPlatformDef } from '@haklex/rich-plugin-mention';
|
|
|
3
3
|
import { Klass, LexicalNode } from 'lexical';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
export interface ShiroEditorProps extends Omit<RichEditorProps, 'rendererConfig' | 'extraNodes' | 'actions'> {
|
|
6
|
-
extraNodes?: Array<Klass<LexicalNode>>;
|
|
7
6
|
actions?: ReactNode;
|
|
8
|
-
selfHostnames?: string[];
|
|
9
7
|
extraMentionPlatforms?: MentionPlatformDef[];
|
|
8
|
+
extraNodes?: Array<Klass<LexicalNode>>;
|
|
9
|
+
selfHostnames?: string[];
|
|
10
10
|
}
|
|
11
11
|
export declare function ShiroEditor({ extraNodes, actions, children, selfHostnames, extraMentionPlatforms, variant, theme, ...props }: ShiroEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
//# sourceMappingURL=ShiroEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShiroEditor.d.ts","sourceRoot":"","sources":["../src/ShiroEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ShiroEditor.d.ts","sourceRoot":"","sources":["../src/ShiroEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAK3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAiBtE,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAyB,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAcvC,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,eAAe,EACf,gBAAgB,GAAG,YAAY,GAAG,SAAS,CAC5C;IACC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,qBAAqB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC7C,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,OAAO,EACP,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,OAAmB,EACnB,KAAe,EACf,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAsDlB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { nestedDocNodes } from "@haklex/rich-ext-nested-doc/static";
|
|
2
3
|
import { ExcalidrawNode, embedNodes, galleryNodes, codeSnippetNodes, enhancedRendererConfig } from "@haklex/rich-renderers";
|
|
3
4
|
import { RichRenderer } from "@haklex/rich-static-renderer";
|
|
4
5
|
import { useMemo } from "react";
|
|
@@ -6,13 +7,10 @@ const defaultExtraNodes = [
|
|
|
6
7
|
ExcalidrawNode,
|
|
7
8
|
...embedNodes,
|
|
8
9
|
...galleryNodes,
|
|
9
|
-
...codeSnippetNodes
|
|
10
|
+
...codeSnippetNodes,
|
|
11
|
+
...nestedDocNodes
|
|
10
12
|
];
|
|
11
|
-
function ShiroRenderer({
|
|
12
|
-
extraNodes,
|
|
13
|
-
rendererConfig,
|
|
14
|
-
...props
|
|
15
|
-
}) {
|
|
13
|
+
function ShiroRenderer({ extraNodes, rendererConfig, ...props }) {
|
|
16
14
|
const mergedNodes = useMemo(
|
|
17
15
|
() => extraNodes ? [...defaultExtraNodes, ...extraNodes] : defaultExtraNodes,
|
|
18
16
|
[extraNodes]
|
|
@@ -21,14 +19,7 @@ function ShiroRenderer({
|
|
|
21
19
|
() => rendererConfig ? { ...enhancedRendererConfig, ...rendererConfig } : enhancedRendererConfig,
|
|
22
20
|
[rendererConfig]
|
|
23
21
|
);
|
|
24
|
-
return /* @__PURE__ */ jsx(
|
|
25
|
-
RichRenderer,
|
|
26
|
-
{
|
|
27
|
-
...props,
|
|
28
|
-
extraNodes: mergedNodes,
|
|
29
|
-
rendererConfig: mergedConfig
|
|
30
|
-
}
|
|
31
|
-
);
|
|
22
|
+
return /* @__PURE__ */ jsx(RichRenderer, { ...props, extraNodes: mergedNodes, rendererConfig: mergedConfig });
|
|
32
23
|
}
|
|
33
24
|
export {
|
|
34
25
|
ShiroRenderer as S
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShiroRenderer.d.ts","sourceRoot":"","sources":["../src/ShiroRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ShiroRenderer.d.ts","sourceRoot":"","sources":["../src/ShiroRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAS1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAWlD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAC9C,iBAAiB,EACjB,gBAAgB,GAAG,YAAY,CAChC;IACC,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CAC1C;AAED,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAazF"}
|
package/dist/editor.mjs
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import root from "react-shadow";
|
|
3
|
-
import { S as ShiroEditor } from "./ShiroEditor-
|
|
4
|
-
import { c as cssText } from "./style-
|
|
3
|
+
import { S as ShiroEditor } from "./ShiroEditor-CQlJFd4n.js";
|
|
4
|
+
import { c as cssText } from "./style-cfUKULBa.js";
|
|
5
5
|
const resolvedCss = cssText.replaceAll(":root {", ":root, :host {");
|
|
6
|
-
function IsolateEditor({
|
|
7
|
-
theme
|
|
8
|
-
className,
|
|
9
|
-
...props
|
|
10
|
-
}) {
|
|
11
|
-
return /* @__PURE__ */ jsx(root.div, { className, children: /* @__PURE__ */ jsxs("div", { id: "shadow-html", "data-theme": theme, suppressHydrationWarning: true, children: [
|
|
6
|
+
function IsolateEditor({ theme = "light", className, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(root.div, { className, children: /* @__PURE__ */ jsxs("div", { suppressHydrationWarning: true, "data-theme": theme, id: "shadow-html", children: [
|
|
12
8
|
/* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: resolvedCss } }),
|
|
13
9
|
/* @__PURE__ */ jsx(ShiroEditor, { ...props, theme })
|
|
14
10
|
] }) });
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export type { ColorScheme, FootnoteDefinitionsContextValue, LinkFaviconProps, RendererConfig, RendererMode, RichEditorProps, RichEditorVariant,
|
|
2
|
-
export { ColorSchemeProvider,
|
|
1
|
+
export type { ColorScheme, FootnoteDefinitionsContextValue, LinkFaviconProps, RendererConfig, RendererMode, RichEditorProps, RichEditorVariant, } from '@haklex/rich-editor';
|
|
2
|
+
export { ColorSchemeProvider, getVariantClass, LinkFavicon, RichEditor, useColorScheme, useRendererConfig, useRendererMode, } from '@haklex/rich-editor';
|
|
3
3
|
export { FootnoteDefinitionsProvider, useFootnoteContent, useFootnoteDefinitions, useFootnoteDisplayNumber, } from '@haklex/rich-editor';
|
|
4
|
+
export type { SlashMenuItemConfig } from '@haklex/rich-editor/commands';
|
|
5
|
+
export { createRendererDecoration } from '@haklex/rich-editor/renderers';
|
|
4
6
|
//# sourceMappingURL=editor-core.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-core.d.ts","sourceRoot":"","sources":["../../src/exports/editor-core.ts"],"names":[],"mappings":"AACA,YAAY,EACV,WAAW,EACX,+BAA+B,EAC/B,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,iBAAiB,
|
|
1
|
+
{"version":3,"file":"editor-core.d.ts","sourceRoot":"","sources":["../../src/exports/editor-core.ts"],"names":[],"mappings":"AACA,YAAY,EACV,WAAW,EACX,+BAA+B,EAC/B,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAG7B,YAAY,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ColorSchemeProvider, FootnoteDefinitionsProvider, LinkFavicon, RichEditor,
|
|
1
|
+
import { ColorSchemeProvider, FootnoteDefinitionsProvider, LinkFavicon, RichEditor, getVariantClass, useColorScheme, useFootnoteContent, useFootnoteDefinitions, useFootnoteDisplayNumber, useRendererConfig, useRendererMode } from "@haklex/rich-editor";
|
|
2
|
+
import { createRendererDecoration } from "@haklex/rich-editor/renderers";
|
|
2
3
|
export {
|
|
3
4
|
ColorSchemeProvider,
|
|
4
5
|
FootnoteDefinitionsProvider,
|
package/dist/exports/nodes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { allEditNodes, allNodes, builtinNodes, customEditNodes, customNodes, getResolvedEditNodes, NESTED_EDITOR_NODES, setResolvedEditNodes, } from '@haklex/rich-editor';
|
|
1
|
+
export { allEditNodes, allNodes, builtinNodes, customEditNodes, customNodes, getResolvedEditNodes, NESTED_EDITOR_NODES, setResolvedEditNodes, } from '@haklex/rich-editor/nodes';
|
|
2
2
|
export type { SerializedExcalidrawNode } from '@haklex/rich-ext-excalidraw';
|
|
3
3
|
export { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawNode, } from '@haklex/rich-ext-excalidraw';
|
|
4
4
|
export type { SerializedCodeSnippetNode, SerializedEmbedNode, SerializedGalleryNode, } from '@haklex/rich-renderers';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../src/exports/nodes.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../src/exports/nodes.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AAGnC,YAAY,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,GACf,MAAM,6BAA6B,CAAC;AAGrC,YAAY,EACV,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,GACb,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,6BAA6B,CAAC"}
|
package/dist/exports/nodes.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NESTED_EDITOR_NODES, allEditNodes, allNodes, builtinNodes, customEditNodes, customNodes, getResolvedEditNodes, setResolvedEditNodes } from "@haklex/rich-editor";
|
|
1
|
+
import { NESTED_EDITOR_NODES, allEditNodes, allNodes, builtinNodes, customEditNodes, customNodes, getResolvedEditNodes, setResolvedEditNodes } from "@haklex/rich-editor/nodes";
|
|
2
2
|
import { $createExcalidrawNode, $isExcalidrawNode, ExcalidrawNode } from "@haklex/rich-ext-excalidraw";
|
|
3
3
|
import { $createCodeSnippetNode, $createGalleryNode, $isCodeSnippetNode, $isGalleryNode, CodeSnippetNode, EmbedNode, GalleryNode, codeSnippetNodes, embedNodes, galleryNodes } from "@haklex/rich-renderers";
|
|
4
4
|
import { $createCodeSnippetEditNode, $createEmbedEditNode, $isCodeSnippetEditNode, $isEmbedEditNode, CodeSnippetEditNode, EmbedEditNode, KaTeXBlockEditNode, KaTeXInlineEditNode, LinkCardEditNode, codeSnippetEditNodes, embedEditNodes, katexEditNodes, linkCardEditNodes } from "@haklex/rich-renderers-edit";
|