@haklex/rich-kit-shiro 0.0.30 → 0.0.32
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/IsolateRenderer.d.ts.map +1 -1
- package/dist/{ShiroEditor-10Lrfj7a.js → ShiroEditor-B2kgB1Pc.js} +3 -3
- package/dist/{ShiroRenderer-B-khUmQf.js → ShiroRenderer-DG_iqCf0.js} +1 -1
- package/dist/ShiroRenderer.d.ts +1 -1
- package/dist/ShiroRenderer.d.ts.map +1 -1
- package/dist/editor.mjs +2 -2
- package/dist/index.css +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/renderer.css +1 -0
- package/dist/renderer.d.ts.map +1 -1
- package/dist/renderer.mjs +10 -3
- package/dist/style-DSfP74KE.js +4 -0
- package/package.json +18 -16
- package/dist/rich-kit-shiro.css +0 -1
- package/dist/style-BjmJDix0.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsolateRenderer.d.ts","sourceRoot":"","sources":["../src/IsolateRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAOzD,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"IsolateRenderer.d.ts","sourceRoot":"","sources":["../src/IsolateRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAOzD,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,2CAatB"}
|
|
@@ -5,15 +5,15 @@ import { FloatingToolbarPlugin } from "@haklex/rich-plugin-floating-toolbar";
|
|
|
5
5
|
import { FloatingLinkEditorPlugin } from "@haklex/rich-plugin-link-edit";
|
|
6
6
|
import { SlashMenuPlugin } from "@haklex/rich-plugin-slash-menu";
|
|
7
7
|
import { TableRowColumnHandlesPlugin, TableCellResizerPlugin } from "@haklex/rich-plugin-table";
|
|
8
|
-
import {
|
|
8
|
+
import { TldrawEditNode, galleryEditNodes } from "@haklex/rich-renderers";
|
|
9
9
|
import { embedEditNodes, linkCardEditNodes, katexEditNodes, codeSnippetEditNodes, ConvertToLinkCardAction, enhancedEditRendererConfig, TldrawPlugin, EmbedPlugin, PasteLinkCardPlugin } from "@haklex/rich-renderers-edit";
|
|
10
10
|
import { useMemo, useCallback } from "react";
|
|
11
11
|
const defaultExtraNodes = [
|
|
12
|
-
|
|
12
|
+
TldrawEditNode,
|
|
13
13
|
...embedEditNodes,
|
|
14
14
|
...linkCardEditNodes,
|
|
15
15
|
...katexEditNodes,
|
|
16
|
-
...
|
|
16
|
+
...galleryEditNodes,
|
|
17
17
|
...codeSnippetEditNodes
|
|
18
18
|
];
|
|
19
19
|
function ShiroEditor({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { RichRenderer } from "@haklex/rich-
|
|
2
|
+
import { RichRenderer } from "@haklex/rich-renderer";
|
|
3
3
|
import { TldrawNode, embedNodes, galleryNodes, codeSnippetNodes, enhancedRendererConfig } from "@haklex/rich-renderers";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
5
|
const defaultExtraNodes = [
|
package/dist/ShiroRenderer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RichRendererProps } from '@haklex/rich-
|
|
1
|
+
import { RichRendererProps } from '@haklex/rich-renderer';
|
|
2
2
|
import { Klass, LexicalNode } from 'lexical';
|
|
3
3
|
export interface ShiroRendererProps extends Omit<RichRendererProps, 'rendererConfig' | 'extraNodes'> {
|
|
4
4
|
extraNodes?: Array<Klass<LexicalNode>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShiroRenderer.d.ts","sourceRoot":"","sources":["../src/ShiroRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ShiroRenderer.d.ts","sourceRoot":"","sources":["../src/ShiroRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAS9D,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAUjD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAC9C,iBAAiB,EACjB,gBAAgB,GAAG,YAAY,CAChC;IACC,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAA;CACvC;AAED,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAczE"}
|
package/dist/editor.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-B2kgB1Pc.js";
|
|
4
|
+
import { c as cssText } from "./style-DSfP74KE.js";
|
|
5
5
|
const resolvedCss = cssText.replaceAll(":root {", ":root, :host {");
|
|
6
6
|
function IsolateEditor({
|
|
7
7
|
theme = "light",
|