@haklex/rich-editor 0.0.14 → 0.0.15
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/{RichEditor-DeAuc6CQ.js → RichEditor-CfssqZyj.js} +45 -37
- package/dist/{RichRenderer-CtBjK31O.js → RichRenderer-CCmxHoGP.js} +29 -21
- package/dist/components/RichEditor.d.ts.map +1 -1
- package/dist/components/RichRenderer.d.ts.map +1 -1
- package/dist/components/renderers/CodeBlockRenderer.d.ts +1 -1
- package/dist/components/renderers/CodeBlockRenderer.d.ts.map +1 -1
- package/dist/context/RendererConfigContext.d.ts +4 -1
- package/dist/context/RendererConfigContext.d.ts.map +1 -1
- package/dist/editor.mjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/nodes/DetailsNode.d.ts.map +1 -1
- package/dist/renderer.mjs +1 -1
- package/dist/rich-editor.css +103 -102
- package/dist/{utils-DvP2uSr7.js → utils-C0yvhBcx.js} +48 -32
- package/package.json +4 -4
|
@@ -9,7 +9,7 @@ import { ListPlugin } from "@lexical/react/LexicalListPlugin";
|
|
|
9
9
|
import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin";
|
|
10
10
|
import { TabIndentationPlugin } from "@lexical/react/LexicalTabIndentationPlugin";
|
|
11
11
|
import { TablePlugin } from "@lexical/react/LexicalTablePlugin";
|
|
12
|
-
import {
|
|
12
|
+
import { W as $isAlertQuoteNode, X as RendererWrapper, Y as AlertRenderer, Z as AlertQuoteNode, _ as $isBannerNode, a0 as BannerRenderer, a1 as BannerNode, a2 as normalizeBannerType, a3 as $isCodeBlockNode, a4 as CodeBlockRenderer, a5 as CodeBlockNode, Q as useFootnoteDefinitions, s as FootnoteSectionNode, k as $isGridContainerNode, G as GridContainerNode, e as editorTheme, N as NESTED_EDITOR_NODES, b as builtinNodes, a6 as SpoilerNode, a7 as MentionNode, t as KaTeXInlineNode, K as KaTeXBlockNode, a8 as ImageNode, a9 as FootnoteNode, aa as VideoNode, L as LinkCardNode, ab as DetailsNode, M as MermaidNode, ac as $createAlertQuoteNode, ad as $createImageNode, ae as $createKaTeXInlineNode, af as $createKaTeXBlockNode, ag as $createBannerNode, ah as $createDetailsNode, ai as $createFootnoteNode, j as $isFootnoteSectionNode, $ as $createFootnoteSectionNode, aj as $createMentionNode, ak as $createSpoilerNode, i as $createMermaidNode, d as clsx, C as ColorSchemeProvider, R as RendererConfigProvider, F as FootnotePlugin, g as getVariantClass } from "./utils-C0yvhBcx.js";
|
|
13
13
|
import { useCallback, createElement, useState, useEffect, useRef } from "react";
|
|
14
14
|
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
15
15
|
import { ContentEditable as ContentEditable$1 } from "@lexical/react/LexicalContentEditable";
|
|
@@ -1037,47 +1037,55 @@ function RichEditor({
|
|
|
1037
1037
|
...initialValue ? { editorState: JSON.stringify(initialValue) } : {}
|
|
1038
1038
|
};
|
|
1039
1039
|
const variantClass = getVariantClass(variant, theme);
|
|
1040
|
-
return /* @__PURE__ */ jsx(PortalThemeProvider, { className: variantClass, children: /* @__PURE__ */ jsx(ColorSchemeProvider, { colorScheme: theme, children: /* @__PURE__ */ jsx(
|
|
1041
|
-
|
|
1040
|
+
return /* @__PURE__ */ jsx(PortalThemeProvider, { className: variantClass, children: /* @__PURE__ */ jsx(ColorSchemeProvider, { colorScheme: theme, children: /* @__PURE__ */ jsx(
|
|
1041
|
+
RendererConfigProvider,
|
|
1042
1042
|
{
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1043
|
+
config: rendererConfig,
|
|
1044
|
+
mode: "editor",
|
|
1045
|
+
variant,
|
|
1046
|
+
children: /* @__PURE__ */ jsx(LexicalComposer, { initialConfig, children: /* @__PURE__ */ jsx(FootnotePlugin, { children: /* @__PURE__ */ jsxs(
|
|
1047
|
+
"div",
|
|
1048
|
+
{
|
|
1049
|
+
className: clsx("rich-editor", variantClass, className),
|
|
1050
|
+
style,
|
|
1051
|
+
children: [
|
|
1052
|
+
/* @__PURE__ */ jsx(
|
|
1053
|
+
RichTextPlugin,
|
|
1051
1054
|
{
|
|
1052
|
-
|
|
1053
|
-
|
|
1055
|
+
contentEditable: /* @__PURE__ */ jsx(
|
|
1056
|
+
ContentEditable,
|
|
1057
|
+
{
|
|
1058
|
+
className: contentClassName,
|
|
1059
|
+
placeholder
|
|
1060
|
+
}
|
|
1061
|
+
),
|
|
1062
|
+
ErrorBoundary: LexicalErrorBoundary
|
|
1054
1063
|
}
|
|
1055
1064
|
),
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
]
|
|
1065
|
+
/* @__PURE__ */ jsx(HistoryPlugin, {}),
|
|
1066
|
+
/* @__PURE__ */ jsx(ListPlugin, {}),
|
|
1067
|
+
/* @__PURE__ */ jsx(LinkPlugin, {}),
|
|
1068
|
+
/* @__PURE__ */ jsx(TabIndentationPlugin, {}),
|
|
1069
|
+
/* @__PURE__ */ jsx(TablePlugin, {}),
|
|
1070
|
+
/* @__PURE__ */ jsx(MarkdownShortcutsPlugin, {}),
|
|
1071
|
+
/* @__PURE__ */ jsx(OnChangePlugin, { onChange, debounceMs }),
|
|
1072
|
+
/* @__PURE__ */ jsx(SubmitShortcutPlugin, { onSubmit }),
|
|
1073
|
+
/* @__PURE__ */ jsx(ImagePlugin, {}),
|
|
1074
|
+
/* @__PURE__ */ jsx(KaTeXPlugin, {}),
|
|
1075
|
+
/* @__PURE__ */ jsx(AlertPlugin, {}),
|
|
1076
|
+
/* @__PURE__ */ jsx(MermaidPlugin, {}),
|
|
1077
|
+
/* @__PURE__ */ jsx(HorizontalRulePlugin, {}),
|
|
1078
|
+
/* @__PURE__ */ jsx(CheckListPlugin, {}),
|
|
1079
|
+
/* @__PURE__ */ jsx(AutoLinkPlugin, {}),
|
|
1080
|
+
/* @__PURE__ */ jsx(EditorRefPlugin, { onEditorReady }),
|
|
1081
|
+
autoFocus && /* @__PURE__ */ jsx(AutoFocusPlugin, {}),
|
|
1082
|
+
children,
|
|
1083
|
+
actions && /* @__PURE__ */ jsx("div", { className: "rich-editor__actions", children: actions })
|
|
1084
|
+
]
|
|
1085
|
+
}
|
|
1086
|
+
) }) })
|
|
1079
1087
|
}
|
|
1080
|
-
) }) })
|
|
1088
|
+
) }) });
|
|
1081
1089
|
}
|
|
1082
1090
|
export {
|
|
1083
1091
|
ALL_TRANSFORMERS as A,
|
|
@@ -4,7 +4,7 @@ import { LexicalComposer } from "@lexical/react/LexicalComposer";
|
|
|
4
4
|
import { ContentEditable } from "@lexical/react/LexicalContentEditable";
|
|
5
5
|
import { LexicalErrorBoundary } from "@lexical/react/LexicalErrorBoundary";
|
|
6
6
|
import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin";
|
|
7
|
-
import { a as allNodes, C as ColorSchemeProvider, R as RendererConfigProvider, e as editorTheme, F as FootnotePlugin, d as clsx, g as getVariantClass } from "./utils-
|
|
7
|
+
import { a as allNodes, C as ColorSchemeProvider, R as RendererConfigProvider, e as editorTheme, F as FootnotePlugin, d as clsx, g as getVariantClass } from "./utils-C0yvhBcx.js";
|
|
8
8
|
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
9
9
|
import { HeadingNode } from "@lexical/rich-text";
|
|
10
10
|
import { useEffect } from "react";
|
|
@@ -73,31 +73,39 @@ function RichRenderer({
|
|
|
73
73
|
console.error("[RichRenderer]", error);
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
return /* @__PURE__ */ jsx(PortalThemeProvider, { className: variantClass, children: /* @__PURE__ */ jsx(ColorSchemeProvider, { colorScheme: theme, children: /* @__PURE__ */ jsx(
|
|
77
|
-
|
|
76
|
+
return /* @__PURE__ */ jsx(PortalThemeProvider, { className: variantClass, children: /* @__PURE__ */ jsx(ColorSchemeProvider, { colorScheme: theme, children: /* @__PURE__ */ jsx(
|
|
77
|
+
RendererConfigProvider,
|
|
78
78
|
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
79
|
+
config: rendererConfig,
|
|
80
|
+
mode: "renderer",
|
|
81
|
+
variant,
|
|
82
|
+
children: /* @__PURE__ */ jsx(
|
|
83
|
+
Component,
|
|
84
|
+
{
|
|
85
|
+
className: clsx("rich-content", variantClass, className),
|
|
86
|
+
style,
|
|
87
|
+
children: /* @__PURE__ */ jsx(LexicalComposer, { initialConfig, children: /* @__PURE__ */ jsxs(FootnotePlugin, { children: [
|
|
88
|
+
/* @__PURE__ */ jsx(
|
|
89
|
+
RichTextPlugin,
|
|
87
90
|
{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
contentEditable: /* @__PURE__ */ jsx(
|
|
92
|
+
ContentEditable,
|
|
93
|
+
{
|
|
94
|
+
className: "rich-content__body",
|
|
95
|
+
style: { outline: "none" },
|
|
96
|
+
"aria-placeholder": "",
|
|
97
|
+
placeholder: /* @__PURE__ */ jsx("span", { style: { display: "none" } })
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
ErrorBoundary: LexicalErrorBoundary
|
|
92
101
|
}
|
|
93
102
|
),
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
] }) })
|
|
103
|
+
/* @__PURE__ */ jsx(HeadingAnchorPlugin, {})
|
|
104
|
+
] }) })
|
|
105
|
+
}
|
|
106
|
+
)
|
|
99
107
|
}
|
|
100
|
-
) }) })
|
|
108
|
+
) }) });
|
|
101
109
|
}
|
|
102
110
|
export {
|
|
103
111
|
RichRenderer as R
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichEditor.d.ts","sourceRoot":"","sources":["../../src/components/RichEditor.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C,wBAAgB,UAAU,CAAC,EACzB,YAAY,EACZ,QAAQ,EACR,OAAmB,EACnB,KAAe,EACf,WAAkC,EAClC,QAAQ,EACR,SAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,KAAK,EACL,OAAO,EACP,aAAa,EACb,UAAU,EACV,cAAc,EACd,UAAU,EACV,QAAQ,GACT,EAAE,eAAe,+
|
|
1
|
+
{"version":3,"file":"RichEditor.d.ts","sourceRoot":"","sources":["../../src/components/RichEditor.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C,wBAAgB,UAAU,CAAC,EACzB,YAAY,EACZ,QAAQ,EACR,OAAmB,EACnB,KAAe,EACf,WAAkC,EAClC,QAAQ,EACR,SAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,KAAK,EACL,OAAO,EACP,aAAa,EACb,UAAU,EACV,cAAc,EACd,UAAU,EACV,QAAQ,GACT,EAAE,eAAe,+BAmEjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichRenderer.d.ts","sourceRoot":"","sources":["../../src/components/RichRenderer.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAGjD,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,OAAmB,EACnB,KAAe,EACf,SAAS,EACT,KAAK,EACL,EAAE,EAAE,SAAiB,EACrB,cAAc,EACd,UAAU,GACX,EAAE,iBAAiB,+
|
|
1
|
+
{"version":3,"file":"RichRenderer.d.ts","sourceRoot":"","sources":["../../src/components/RichRenderer.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAGjD,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,OAAmB,EACnB,KAAe,EACf,SAAS,EACT,KAAK,EACL,EAAE,EAAE,SAAiB,EACrB,cAAc,EACd,UAAU,GACX,EAAE,iBAAiB,+BAiDnB"}
|
|
@@ -5,5 +5,5 @@ export interface CodeBlockRendererProps {
|
|
|
5
5
|
editable?: boolean;
|
|
6
6
|
onCodeChange?: (code: string) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare function CodeBlockRenderer({ code, language, showLineNumbers, }: CodeBlockRendererProps): import("react").JSX.Element;
|
|
8
|
+
export declare function CodeBlockRenderer({ code, language, showLineNumbers: showLineNumbersProp, }: CodeBlockRendererProps): import("react").JSX.Element;
|
|
9
9
|
//# sourceMappingURL=CodeBlockRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlockRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/renderers/CodeBlockRenderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeBlockRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/renderers/CodeBlockRenderer.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACtC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,QAAQ,EACR,eAAe,EAAE,mBAAmB,GACrC,EAAE,sBAAsB,+BA8FxB"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { RichEditorVariant } from '../types';
|
|
2
3
|
import { RendererConfig } from '../types/renderer-config';
|
|
3
4
|
export type RendererMode = 'editor' | 'renderer';
|
|
4
5
|
export interface RendererConfigProviderProps {
|
|
5
6
|
config?: RendererConfig;
|
|
6
7
|
mode: RendererMode;
|
|
8
|
+
variant: RichEditorVariant;
|
|
7
9
|
children: ReactNode;
|
|
8
10
|
}
|
|
9
|
-
export declare function RendererConfigProvider({ config, mode, children, }: RendererConfigProviderProps): import("react").JSX.Element;
|
|
11
|
+
export declare function RendererConfigProvider({ config, mode, variant, children, }: RendererConfigProviderProps): import("react").JSX.Element;
|
|
10
12
|
export declare function useRendererConfig(): RendererConfig | undefined;
|
|
11
13
|
export declare function useRendererMode(): RendererMode;
|
|
14
|
+
export declare function useVariant(): RichEditorVariant;
|
|
12
15
|
//# sourceMappingURL=RendererConfigContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RendererConfigContext.d.ts","sourceRoot":"","sources":["../../src/context/RendererConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"RendererConfigContext.d.ts","sourceRoot":"","sources":["../../src/context/RendererConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAA;AAchD,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,EAAE,iBAAiB,CAAA;IAC1B,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,IAAI,EACJ,OAAO,EACP,QAAQ,GACT,EAAE,2BAA2B,+BAU7B;AAED,wBAAgB,iBAAiB,IAAI,cAAc,GAAG,SAAS,CAE9D;AAED,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAED,wBAAgB,UAAU,IAAI,iBAAiB,CAE9C"}
|
package/dist/editor.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R, a, c, g, s } from "./RichEditor-
|
|
2
|
-
import { a as a2, b, c as c2 } from "./utils-
|
|
1
|
+
import { R, a, c, g, s } from "./RichEditor-CfssqZyj.js";
|
|
2
|
+
import { a as a2, b, c as c2 } from "./utils-C0yvhBcx.js";
|
|
3
3
|
export {
|
|
4
4
|
R as RichEditor,
|
|
5
5
|
a as allEditNodes,
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { ColorSchemeProvider, useColorScheme, } from './context/ColorSchemeConte
|
|
|
7
7
|
export type { FootnoteDefinitionsContextValue } from './context/FootnoteDefinitionsContext';
|
|
8
8
|
export { FootnoteDefinitionsProvider, useFootnoteContent, useFootnoteDefinitions, useFootnoteDisplayNumber, } from './context/FootnoteDefinitionsContext';
|
|
9
9
|
export type { RendererMode } from './context/RendererConfigContext';
|
|
10
|
-
export { useRendererMode } from './context/RendererConfigContext';
|
|
10
|
+
export { useRendererMode, useVariant } from './context/RendererConfigContext';
|
|
11
11
|
export * from './styles';
|
|
12
12
|
export { ALL_TRANSFORMERS } from './transformers';
|
|
13
13
|
export type { RichEditorProps, RichEditorVariant, RichRendererProps, } from './types';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC7D,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,EACL,mBAAmB,EACnB,cAAc,GACf,MAAM,8BAA8B,CAAA;AACrC,YAAY,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAA;AAC3F,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,sCAAsC,CAAA;AAC7C,YAAY,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A, F, I, b, d, e, f, R, a, c, g, s } from "./RichEditor-
|
|
2
|
-
import { R as R2 } from "./RichRenderer-
|
|
3
|
-
import { $, f as f2, h, i, j, k, l, m, n, o, A as A2, p, B, q, C, r, F as F2, s as s2, G, K, t, u, L, v, M, N, a as a2, w, b as b2, x, y, z, c as c2, D, E, H, I as I2, e as e2, g as g2, J, O, P, Q, S, T, U } from "./utils-
|
|
1
|
+
import { A, F, I, b, d, e, f, R, a, c, g, s } from "./RichEditor-CfssqZyj.js";
|
|
2
|
+
import { R as R2 } from "./RichRenderer-CCmxHoGP.js";
|
|
3
|
+
import { $, f as f2, h, i, j, k, l, m, n, o, A as A2, p, B, q, C, r, F as F2, s as s2, G, K, t, u, L, v, M, N, a as a2, w, b as b2, x, y, z, c as c2, D, E, H, I as I2, e as e2, g as g2, J, O, P, Q, S, T, U, V } from "./utils-C0yvhBcx.js";
|
|
4
4
|
var richContent = "r8uj4t0";
|
|
5
5
|
var articleTheme = "_17pm0gw0";
|
|
6
6
|
var commentTheme = "_17pm0gw1";
|
|
@@ -8,7 +8,7 @@ var darkArticleTheme = "_17pm0gw2";
|
|
|
8
8
|
var darkCommentTheme = "_17pm0gw3";
|
|
9
9
|
var noteTheme = "_17pm0gw4";
|
|
10
10
|
var darkNoteTheme = "_17pm0gw5";
|
|
11
|
-
var vars = { color: { text: "var(--rc-text)", textSecondary: "var(--rc-text-secondary)", bg: "var(--rc-bg)", bgSecondary: "var(--rc-bg-secondary)", border: "var(--rc-border)", accent: "var(--rc-accent)", accentLight: "var(--rc-accent-light)", link: "var(--rc-link)", codeText: "var(--rc-code-text)", codeBg: "var(--rc-code-bg)", quoteBorder: "var(--rc-quote-border)", quoteBg: "var(--rc-quote-bg)", alertInfo: "var(--rc-alert-info)", alertWarning: "var(--rc-alert-warning)", alertTip: "var(--rc-alert-tip)", alertCaution: "var(--rc-alert-caution)", alertImportant: "var(--rc-alert-important)" }, spacing: { xs: "var(--rc-space-xs)", sm: "var(--rc-space-sm)", md: "var(--rc-space-md)", lg: "var(--rc-space-lg)", xl: "var(--rc-space-xl)" }, typography: { fontFamily: "var(--rc-font-family)", fontMono: "var(--rc-font-mono)", fontSizeBase: "var(--rc-font-size-base)", fontSizeSmall: "var(--rc-font-size-small)",
|
|
11
|
+
var vars = { color: { text: "var(--rc-text)", textSecondary: "var(--rc-text-secondary)", bg: "var(--rc-bg)", bgSecondary: "var(--rc-bg-secondary)", border: "var(--rc-border)", accent: "var(--rc-accent)", accentLight: "var(--rc-accent-light)", link: "var(--rc-link)", codeText: "var(--rc-code-text)", codeBg: "var(--rc-code-bg)", quoteBorder: "var(--rc-quote-border)", quoteBg: "var(--rc-quote-bg)", alertInfo: "var(--rc-alert-info)", alertWarning: "var(--rc-alert-warning)", alertTip: "var(--rc-alert-tip)", alertCaution: "var(--rc-alert-caution)", alertImportant: "var(--rc-alert-important)" }, spacing: { xs: "var(--rc-space-xs)", sm: "var(--rc-space-sm)", md: "var(--rc-space-md)", lg: "var(--rc-space-lg)", xl: "var(--rc-space-xl)" }, typography: { fontFamily: "var(--rc-font-family)", fontMono: "var(--rc-font-mono)", fontSizeBase: "var(--rc-font-size-base)", fontSizeSmall: "var(--rc-font-size-small)", lineHeight: "var(--rc-line-height)", lineHeightTight: "var(--rc-line-height-tight)" }, borderRadius: { sm: "var(--rc-radius-sm)", md: "var(--rc-radius-md)", lg: "var(--rc-radius-lg)" }, layout: { maxWidth: "var(--rc-max-width)" } };
|
|
12
12
|
export {
|
|
13
13
|
$ as $createFootnoteSectionNode,
|
|
14
14
|
f2 as $createGridContainerNode,
|
|
@@ -76,5 +76,6 @@ export {
|
|
|
76
76
|
S as useFootnoteDisplayNumber,
|
|
77
77
|
T as useRendererConfig,
|
|
78
78
|
U as useRendererMode,
|
|
79
|
+
V as useVariant,
|
|
79
80
|
vars
|
|
80
81
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsNode.d.ts","sourceRoot":"","sources":["../../src/nodes/DetailsNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,CAAA;AAChB,OAAO,EAAgB,WAAW,EAAE,MAAM,SAAS,CAAA;AAInD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"DetailsNode.d.ts","sourceRoot":"","sources":["../../src/nodes/DetailsNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,MAAM,EACP,MAAM,SAAS,CAAA;AAChB,OAAO,EAAgB,WAAW,EAAE,MAAM,SAAS,CAAA;AAInD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAO9D,MAAM,MAAM,qBAAqB,GAAG,MAAM,CACxC;IACE,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;CACd,EACD,qBAAqB,CACtB,CAAA;AAED,qBAAa,WAAY,SAAQ,WAAW;IAC1C,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;IAEf,MAAM,CAAC,cAAc,EAAE,mBAAmB,EAAE,CAa3C;IAED,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW;gBAIhC,OAAO,EAAE,MAAM,EAAE,IAAI,UAAQ,EAAE,GAAG,CAAC,EAAE,OAAO;IAMxD,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW;IAkC7C,SAAS,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO;IAc3D,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,qBAAqB,GAAG,WAAW;IAIrE,UAAU,IAAI,qBAAqB;IAUnC,UAAU,IAAI,MAAM;IAIpB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAKjC,OAAO,IAAI,OAAO;IAIlB,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAK5B,UAAU,IAAI,IAAI;IAIlB,UAAU,CAAC,OAAO,EAAE,WAAW;IAO/B,QAAQ,IAAI,OAAO;CAGpB;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,UAAQ,GAAG,WAAW,CAE7E;AAED,wBAAgB,cAAc,CAC5B,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,WAAW,CAErB"}
|
package/dist/renderer.mjs
CHANGED
package/dist/rich-editor.css
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--rc-alert-tip: #22c55e;
|
|
17
17
|
--rc-alert-caution: #ef4444;
|
|
18
18
|
--rc-alert-important: #a855f7;
|
|
19
|
-
--rc-max-width:
|
|
19
|
+
--rc-max-width: 700px;
|
|
20
20
|
--rc-space-xs: 4px;
|
|
21
21
|
--rc-space-sm: 8px;
|
|
22
22
|
--rc-space-md: 16px;
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
|
|
27
27
|
--rc-font-size-base: 16px;
|
|
28
28
|
--rc-font-size-small: 14px;
|
|
29
|
-
--rc-font-size-large: 18px;
|
|
30
29
|
--rc-line-height: 1.7;
|
|
31
30
|
--rc-line-height-tight: 1.4;
|
|
32
31
|
--rc-radius-sm: 4px;
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
--rc-alert-tip: #22c55e;
|
|
52
51
|
--rc-alert-caution: #ef4444;
|
|
53
52
|
--rc-alert-important: #a855f7;
|
|
54
|
-
--rc-max-width:
|
|
53
|
+
--rc-max-width: 700px;
|
|
55
54
|
--rc-space-xs: 4px;
|
|
56
55
|
--rc-space-sm: 8px;
|
|
57
56
|
--rc-space-md: 16px;
|
|
@@ -61,7 +60,6 @@
|
|
|
61
60
|
--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
|
|
62
61
|
--rc-font-size-base: 16px;
|
|
63
62
|
--rc-font-size-small: 14px;
|
|
64
|
-
--rc-font-size-large: 18px;
|
|
65
63
|
--rc-line-height: 1.7;
|
|
66
64
|
--rc-line-height-tight: 1.4;
|
|
67
65
|
--rc-radius-sm: 4px;
|
|
@@ -96,7 +94,6 @@
|
|
|
96
94
|
--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
|
|
97
95
|
--rc-font-size-base: 14px;
|
|
98
96
|
--rc-font-size-small: 12px;
|
|
99
|
-
--rc-font-size-large: 15px;
|
|
100
97
|
--rc-line-height: 1.5;
|
|
101
98
|
--rc-line-height-tight: 1.3;
|
|
102
99
|
--rc-radius-sm: 3px;
|
|
@@ -121,7 +118,7 @@
|
|
|
121
118
|
--rc-alert-tip: #4ade80;
|
|
122
119
|
--rc-alert-caution: #f87171;
|
|
123
120
|
--rc-alert-important: #c084fc;
|
|
124
|
-
--rc-max-width:
|
|
121
|
+
--rc-max-width: 700px;
|
|
125
122
|
--rc-space-xs: 4px;
|
|
126
123
|
--rc-space-sm: 8px;
|
|
127
124
|
--rc-space-md: 16px;
|
|
@@ -131,7 +128,6 @@
|
|
|
131
128
|
--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
|
|
132
129
|
--rc-font-size-base: 16px;
|
|
133
130
|
--rc-font-size-small: 14px;
|
|
134
|
-
--rc-font-size-large: 18px;
|
|
135
131
|
--rc-line-height: 1.7;
|
|
136
132
|
--rc-line-height-tight: 1.4;
|
|
137
133
|
--rc-radius-sm: 4px;
|
|
@@ -166,7 +162,6 @@
|
|
|
166
162
|
--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
|
|
167
163
|
--rc-font-size-base: 14px;
|
|
168
164
|
--rc-font-size-small: 12px;
|
|
169
|
-
--rc-font-size-large: 15px;
|
|
170
165
|
--rc-line-height: 1.5;
|
|
171
166
|
--rc-line-height-tight: 1.3;
|
|
172
167
|
--rc-radius-sm: 3px;
|
|
@@ -191,7 +186,7 @@
|
|
|
191
186
|
--rc-alert-tip: #22c55e;
|
|
192
187
|
--rc-alert-caution: #ef4444;
|
|
193
188
|
--rc-alert-important: #a855f7;
|
|
194
|
-
--rc-max-width:
|
|
189
|
+
--rc-max-width: 700px;
|
|
195
190
|
--rc-space-xs: 4px;
|
|
196
191
|
--rc-space-sm: 8px;
|
|
197
192
|
--rc-space-md: 16px;
|
|
@@ -201,7 +196,6 @@
|
|
|
201
196
|
--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
|
|
202
197
|
--rc-font-size-base: 16px;
|
|
203
198
|
--rc-font-size-small: 14px;
|
|
204
|
-
--rc-font-size-large: 18px;
|
|
205
199
|
--rc-line-height: 1.8;
|
|
206
200
|
--rc-line-height-tight: 1.4;
|
|
207
201
|
--rc-radius-sm: 4px;
|
|
@@ -226,7 +220,7 @@
|
|
|
226
220
|
--rc-alert-tip: #4ade80;
|
|
227
221
|
--rc-alert-caution: #f87171;
|
|
228
222
|
--rc-alert-important: #c084fc;
|
|
229
|
-
--rc-max-width:
|
|
223
|
+
--rc-max-width: 700px;
|
|
230
224
|
--rc-space-xs: 4px;
|
|
231
225
|
--rc-space-sm: 8px;
|
|
232
226
|
--rc-space-md: 16px;
|
|
@@ -236,7 +230,6 @@
|
|
|
236
230
|
--rc-font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
|
|
237
231
|
--rc-font-size-base: 16px;
|
|
238
232
|
--rc-font-size-small: 14px;
|
|
239
|
-
--rc-font-size-large: 18px;
|
|
240
233
|
--rc-line-height: 1.8;
|
|
241
234
|
--rc-line-height-tight: 1.4;
|
|
242
235
|
--rc-radius-sm: 4px;
|
|
@@ -685,25 +678,32 @@
|
|
|
685
678
|
pointer-events: none;
|
|
686
679
|
z-index: 10;
|
|
687
680
|
}
|
|
681
|
+
.r8uj4t0 .rich-alert {
|
|
682
|
+
margin: 2em 0;
|
|
683
|
+
padding: 0 1em;
|
|
684
|
+
background-color: transparent;
|
|
685
|
+
border: none;
|
|
686
|
+
border-radius: 0;
|
|
687
|
+
}
|
|
688
688
|
.r8uj4t0 > *:first-child, .r8uj4t0 .rich-editor__content > *:first-child {
|
|
689
689
|
margin-top: 0;
|
|
690
690
|
}
|
|
691
691
|
.r8uj4t0 > *:last-child, .r8uj4t0 .rich-editor__content > *:last-child {
|
|
692
692
|
margin-bottom: 0;
|
|
693
693
|
}.v10dui0 {
|
|
694
|
-
max-width:
|
|
695
|
-
font-size: var(--rc-font-size-
|
|
696
|
-
line-height: 1.
|
|
694
|
+
max-width: 700px;
|
|
695
|
+
font-size: var(--rc-font-size-base);
|
|
696
|
+
line-height: 1.75;
|
|
697
697
|
color: var(--rc-text);
|
|
698
698
|
}
|
|
699
699
|
.v10dui0 .rich-paragraph {
|
|
700
|
-
margin-top: 1.
|
|
701
|
-
margin-bottom: 1.
|
|
700
|
+
margin-top: 1.5em;
|
|
701
|
+
margin-bottom: 1.5em;
|
|
702
702
|
}
|
|
703
703
|
.v10dui0 .rich-heading-h1 {
|
|
704
704
|
color: var(--rc-text);
|
|
705
705
|
font-weight: 800;
|
|
706
|
-
font-size:
|
|
706
|
+
font-size: 3em;
|
|
707
707
|
margin-top: 0;
|
|
708
708
|
margin-bottom: 0.8333333333333334em;
|
|
709
709
|
line-height: 1;
|
|
@@ -711,7 +711,7 @@
|
|
|
711
711
|
.v10dui0 .rich-heading-h2 {
|
|
712
712
|
color: var(--rc-text);
|
|
713
713
|
font-weight: 700;
|
|
714
|
-
font-size: 1.
|
|
714
|
+
font-size: 1.875em;
|
|
715
715
|
margin-top: 1.8666666666666667em;
|
|
716
716
|
margin-bottom: 1.0666666666666667em;
|
|
717
717
|
line-height: 1.3333333;
|
|
@@ -719,7 +719,7 @@
|
|
|
719
719
|
.v10dui0 .rich-heading-h3 {
|
|
720
720
|
color: var(--rc-text);
|
|
721
721
|
font-weight: 600;
|
|
722
|
-
font-size: 1.
|
|
722
|
+
font-size: 1.5em;
|
|
723
723
|
margin-top: 1.6666666666666667em;
|
|
724
724
|
margin-bottom: 0.6666666666666666em;
|
|
725
725
|
line-height: 1.5;
|
|
@@ -727,9 +727,9 @@
|
|
|
727
727
|
.v10dui0 .rich-heading-h4 {
|
|
728
728
|
color: var(--rc-text);
|
|
729
729
|
font-weight: 600;
|
|
730
|
-
margin-top:
|
|
731
|
-
margin-bottom: 0.
|
|
732
|
-
line-height: 1.
|
|
730
|
+
margin-top: 2em;
|
|
731
|
+
margin-bottom: 0.5em;
|
|
732
|
+
line-height: 1.5625;
|
|
733
733
|
}
|
|
734
734
|
.v10dui0 .rich-heading-h2 + *, .v10dui0 .rich-heading-h3 + *, .v10dui0 .rich-heading-h4 + * {
|
|
735
735
|
margin-top: 0;
|
|
@@ -741,9 +741,9 @@
|
|
|
741
741
|
border-left-width: 0.25rem;
|
|
742
742
|
border-left-style: solid;
|
|
743
743
|
border-left-color: var(--rc-quote-border);
|
|
744
|
-
margin-top: 2.
|
|
745
|
-
margin-bottom: 2.
|
|
746
|
-
padding-left: 1.
|
|
744
|
+
margin-top: 2.5em;
|
|
745
|
+
margin-bottom: 2.5em;
|
|
746
|
+
padding-left: 1.5em;
|
|
747
747
|
background-color: transparent;
|
|
748
748
|
border-radius: 0;
|
|
749
749
|
quotes: "\201C""\201D""\2018""\2019";
|
|
@@ -763,7 +763,7 @@
|
|
|
763
763
|
.v10dui0 .rich-text-code {
|
|
764
764
|
color: var(--rc-text);
|
|
765
765
|
font-weight: 600;
|
|
766
|
-
font-size: 0.
|
|
766
|
+
font-size: 0.875em;
|
|
767
767
|
background-color: var(--rc-code-bg);
|
|
768
768
|
padding: 0.2em 0.4em;
|
|
769
769
|
border-radius: var(--rc-radius-sm);
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
border-radius: 0.375rem;
|
|
781
781
|
margin-top: 2em;
|
|
782
782
|
margin-bottom: 2em;
|
|
783
|
-
font-size: 0.
|
|
783
|
+
font-size: 0.875em;
|
|
784
784
|
line-height: 1.75;
|
|
785
785
|
}
|
|
786
786
|
.v10dui0 .rich-code-block pre {
|
|
@@ -791,33 +791,33 @@
|
|
|
791
791
|
margin: 0;
|
|
792
792
|
}
|
|
793
793
|
.v10dui0 .rich-list-ul, .v10dui0 .rich-list-ol {
|
|
794
|
-
margin-top: 1.
|
|
795
|
-
margin-bottom: 1.
|
|
796
|
-
padding-left: 1.
|
|
794
|
+
margin-top: 1.5em;
|
|
795
|
+
margin-bottom: 1.5em;
|
|
796
|
+
padding-left: 1.75em;
|
|
797
797
|
}
|
|
798
798
|
.v10dui0 .rich-list-item {
|
|
799
|
-
margin-top: 0.
|
|
800
|
-
margin-bottom: 0.
|
|
801
|
-
padding-left: 0.
|
|
799
|
+
margin-top: 0.75em;
|
|
800
|
+
margin-bottom: 0.75em;
|
|
801
|
+
padding-left: 0.5em;
|
|
802
802
|
}
|
|
803
803
|
.v10dui0 .rich-list-item .rich-paragraph {
|
|
804
|
-
margin-top:
|
|
805
|
-
margin-bottom:
|
|
804
|
+
margin-top: 1em;
|
|
805
|
+
margin-bottom: 1em;
|
|
806
806
|
}
|
|
807
807
|
.v10dui0 .rich-list-item > .rich-paragraph:first-child {
|
|
808
|
-
margin-top: 1.
|
|
808
|
+
margin-top: 1.5em;
|
|
809
809
|
}
|
|
810
810
|
.v10dui0 .rich-list-item > .rich-paragraph:last-child {
|
|
811
|
-
margin-bottom: 1.
|
|
811
|
+
margin-bottom: 1.5em;
|
|
812
812
|
}
|
|
813
813
|
.v10dui0 .rich-list-ul .rich-list-ul, .v10dui0 .rich-list-ul .rich-list-ol, .v10dui0 .rich-list-ol .rich-list-ul, .v10dui0 .rich-list-ol .rich-list-ol {
|
|
814
|
-
margin-top:
|
|
815
|
-
margin-bottom:
|
|
814
|
+
margin-top: 1em;
|
|
815
|
+
margin-bottom: 1em;
|
|
816
816
|
}
|
|
817
817
|
.v10dui0 .rich-table {
|
|
818
|
-
margin-top:
|
|
819
|
-
margin-bottom:
|
|
820
|
-
font-size: 0.
|
|
818
|
+
margin-top: 2em;
|
|
819
|
+
margin-bottom: 2em;
|
|
820
|
+
font-size: 0.875em;
|
|
821
821
|
line-height: 1.5;
|
|
822
822
|
}
|
|
823
823
|
.v10dui0 .rich-table .rich-paragraph {
|
|
@@ -826,8 +826,8 @@
|
|
|
826
826
|
line-height: inherit;
|
|
827
827
|
}
|
|
828
828
|
.v10dui0 .rich-image {
|
|
829
|
-
margin-top:
|
|
830
|
-
margin-bottom:
|
|
829
|
+
margin-top: 2em;
|
|
830
|
+
margin-bottom: 2em;
|
|
831
831
|
}
|
|
832
832
|
.v10dui0 .rich-image > * {
|
|
833
833
|
margin-top: 0;
|
|
@@ -835,15 +835,15 @@
|
|
|
835
835
|
}
|
|
836
836
|
.v10dui0 .rich-image figcaption {
|
|
837
837
|
color: var(--rc-text-secondary);
|
|
838
|
-
font-size: 0.
|
|
838
|
+
font-size: 0.875em;
|
|
839
839
|
line-height: 1.5;
|
|
840
840
|
margin-top: 1em;
|
|
841
841
|
}
|
|
842
842
|
.v10dui0 .rich-hr {
|
|
843
843
|
border-color: var(--rc-border);
|
|
844
844
|
border-top-width: 1px;
|
|
845
|
-
margin-top: 3.
|
|
846
|
-
margin-bottom: 3.
|
|
845
|
+
margin-top: 3.5em;
|
|
846
|
+
margin-bottom: 3.5em;
|
|
847
847
|
width: 60px;
|
|
848
848
|
margin-left: auto;
|
|
849
849
|
margin-right: auto;
|
|
@@ -856,20 +856,13 @@
|
|
|
856
856
|
text-decoration: underline;
|
|
857
857
|
}
|
|
858
858
|
.v10dui0 .rich-banner {
|
|
859
|
-
margin:
|
|
860
|
-
}
|
|
861
|
-
.v10dui0 .rich-alert {
|
|
862
|
-
margin: 1.7777777777777777em 0;
|
|
863
|
-
padding: 0 0.8888888888888888em;
|
|
864
|
-
background-color: transparent;
|
|
865
|
-
border-left-width: 0.25rem;
|
|
866
|
-
border-radius: 0;
|
|
859
|
+
margin: 2em 0;
|
|
867
860
|
}
|
|
868
861
|
.v10dui0 .rich-code-snippet {
|
|
869
|
-
margin:
|
|
862
|
+
margin: 2em 0;
|
|
870
863
|
}
|
|
871
864
|
.v10dui0 .rich-details {
|
|
872
|
-
margin:
|
|
865
|
+
margin: 2em 0;
|
|
873
866
|
}
|
|
874
867
|
.v10dui0 > *:first-child {
|
|
875
868
|
margin-top: 0;
|
|
@@ -940,6 +933,9 @@
|
|
|
940
933
|
._14ko36c0 .rich-code-block pre {
|
|
941
934
|
padding: var(--rc-space-sm);
|
|
942
935
|
}
|
|
936
|
+
._14ko36c0 .line::before {
|
|
937
|
+
display: none !important;
|
|
938
|
+
}
|
|
943
939
|
._14ko36c0 .rich-table {
|
|
944
940
|
margin: var(--rc-space-sm) 0;
|
|
945
941
|
font-size: var(--rc-font-size-small);
|
|
@@ -961,37 +957,42 @@
|
|
|
961
957
|
}
|
|
962
958
|
._14ko36c0 .rich-alert {
|
|
963
959
|
padding: var(--rc-space-sm) var(--rc-space-md);
|
|
960
|
+
padding-left: var(--rc-space-lg);
|
|
964
961
|
margin: var(--rc-space-sm) 0;
|
|
965
|
-
border-left-width: 3px;
|
|
966
962
|
}
|
|
967
963
|
._14ko36c0 .rich-katex-block {
|
|
968
964
|
padding: var(--rc-space-sm) 0;
|
|
969
965
|
margin: var(--rc-space-sm) 0;
|
|
970
966
|
}.ys4fw90 {
|
|
971
967
|
max-width: var(--rc-max-width);
|
|
972
|
-
font-size: var(--rc-font-size-
|
|
968
|
+
font-size: var(--rc-font-size-base);
|
|
973
969
|
line-height: 1.8;
|
|
974
970
|
color: var(--rc-text);
|
|
975
971
|
}
|
|
976
|
-
.ys4fw90 .rich-paragraph {
|
|
972
|
+
.ys4fw90 > .rich-paragraph, .ys4fw90 .rich-editor__content > .rich-paragraph, .ys4fw90 .rich-content__body > .rich-paragraph {
|
|
977
973
|
margin-top: 1.25em;
|
|
978
974
|
margin-bottom: 1.25em;
|
|
979
975
|
line-height: 1.8;
|
|
980
976
|
}
|
|
981
|
-
.ys4fw90 .rich-paragraph:first-
|
|
977
|
+
.ys4fw90 > .rich-paragraph:first-of-type, .ys4fw90 .rich-editor__content > .rich-paragraph:first-of-type, .ys4fw90 .rich-content__body > .rich-paragraph:first-of-type {
|
|
982
978
|
margin-top: 0;
|
|
983
979
|
margin-bottom: 2rem;
|
|
984
980
|
}
|
|
985
|
-
.ys4fw90 .rich-paragraph:not(:first-child) {
|
|
986
|
-
|
|
981
|
+
.ys4fw90 > .rich-paragraph:not(:first-of-type) > [data-lexical-text]:first-child, .ys4fw90 .rich-editor__content > .rich-paragraph:not(:first-of-type) > [data-lexical-text]:first-child, .ys4fw90 .rich-content__body > .rich-paragraph:not(:first-of-type) > [data-lexical-text]:first-child {
|
|
982
|
+
margin-inline-start: 2rem;
|
|
987
983
|
}
|
|
988
|
-
.ys4fw90 .rich-paragraph:first-
|
|
984
|
+
.ys4fw90 > .rich-paragraph:first-of-type::first-letter, .ys4fw90 .rich-content__body > .rich-paragraph:first-of-type::first-letter {
|
|
989
985
|
float: left;
|
|
990
986
|
font-size: 2.4em;
|
|
991
987
|
margin-right: 0.2em;
|
|
992
988
|
line-height: 1;
|
|
993
989
|
}
|
|
994
|
-
.ys4fw90 .rich-paragraph:
|
|
990
|
+
.ys4fw90 .rich-editor__content > .rich-paragraph:first-of-type::first-letter {
|
|
991
|
+
font-size: 1.5em;
|
|
992
|
+
font-weight: 700;
|
|
993
|
+
color: var(--rc-accent);
|
|
994
|
+
}
|
|
995
|
+
.ys4fw90 > .rich-paragraph:last-child, .ys4fw90 .rich-editor__content > .rich-paragraph:last-child, .ys4fw90 .rich-content__body > .rich-paragraph:last-child {
|
|
995
996
|
margin-bottom: 0;
|
|
996
997
|
}
|
|
997
998
|
.ys4fw90 .rich-text-bold {
|
|
@@ -1082,12 +1083,6 @@
|
|
|
1082
1083
|
padding-right: 2em;
|
|
1083
1084
|
border-radius: 0;
|
|
1084
1085
|
}
|
|
1085
|
-
.ys4fw90 .rich-quote p:first-of-type {
|
|
1086
|
-
text-indent: 0;
|
|
1087
|
-
}
|
|
1088
|
-
.ys4fw90 .rich-quote .rich-paragraph {
|
|
1089
|
-
text-indent: 0;
|
|
1090
|
-
}
|
|
1091
1086
|
.ys4fw90 .rich-quote .rich-paragraph:first-child::first-letter {
|
|
1092
1087
|
float: none;
|
|
1093
1088
|
font-size: inherit;
|
|
@@ -1182,24 +1177,6 @@
|
|
|
1182
1177
|
margin-left: auto;
|
|
1183
1178
|
margin-right: auto;
|
|
1184
1179
|
}
|
|
1185
|
-
.ys4fw90 .rich-alert {
|
|
1186
|
-
padding: 1em 1.5em;
|
|
1187
|
-
margin-top: 1.6em;
|
|
1188
|
-
margin-bottom: 1.6em;
|
|
1189
|
-
border-left-width: 0.25rem;
|
|
1190
|
-
border-left-style: solid;
|
|
1191
|
-
border-radius: 0 var(--rc-radius-sm) var(--rc-radius-sm) 0;
|
|
1192
|
-
background-color: var(--rc-bg-secondary);
|
|
1193
|
-
}
|
|
1194
|
-
.ys4fw90 .rich-alert .rich-paragraph:first-child::first-letter {
|
|
1195
|
-
float: none;
|
|
1196
|
-
font-size: inherit;
|
|
1197
|
-
margin-right: 0;
|
|
1198
|
-
}
|
|
1199
|
-
.ys4fw90 .rich-alert-header {
|
|
1200
|
-
margin-bottom: 0.75em;
|
|
1201
|
-
font-size: 0.875em;
|
|
1202
|
-
}
|
|
1203
1180
|
.ys4fw90 .rich-katex-block {
|
|
1204
1181
|
margin-top: 1.6em;
|
|
1205
1182
|
margin-bottom: 1.6em;
|
|
@@ -1237,17 +1214,25 @@
|
|
|
1237
1214
|
}.r8uj4t0 .rich-details {
|
|
1238
1215
|
margin: var(--rc-space-md) 0;
|
|
1239
1216
|
border: none;
|
|
1217
|
+
interpolate-size: allow-keywords;
|
|
1240
1218
|
}
|
|
1241
1219
|
.r8uj4t0 .rich-details-summary {
|
|
1242
1220
|
display: flex;
|
|
1243
|
-
width: 100%;
|
|
1244
|
-
cursor: pointer;
|
|
1245
1221
|
align-items: center;
|
|
1246
1222
|
justify-content: space-between;
|
|
1247
|
-
|
|
1223
|
+
gap: 1rem;
|
|
1224
|
+
cursor: pointer;
|
|
1248
1225
|
user-select: none;
|
|
1249
|
-
font-weight:
|
|
1250
|
-
|
|
1226
|
+
font-weight: 500;
|
|
1227
|
+
font-size: 0.9375rem;
|
|
1228
|
+
line-height: 1.5;
|
|
1229
|
+
padding: 0.75rem 0;
|
|
1230
|
+
color: var(--rc-text);
|
|
1231
|
+
list-style: none;
|
|
1232
|
+
transition: color 0.2s ease;
|
|
1233
|
+
}
|
|
1234
|
+
.r8uj4t0 .rich-details-summary:hover {
|
|
1235
|
+
opacity: 0.8;
|
|
1251
1236
|
}
|
|
1252
1237
|
.r8uj4t0 .rich-details-summary::-webkit-details-marker {
|
|
1253
1238
|
display: none;
|
|
@@ -1257,23 +1242,39 @@
|
|
|
1257
1242
|
display: none;
|
|
1258
1243
|
}
|
|
1259
1244
|
.r8uj4t0 .rich-details-summary-text {
|
|
1260
|
-
flex: 1
|
|
1261
|
-
min-width: 0;
|
|
1262
|
-
overflow: hidden;
|
|
1263
|
-
text-overflow: ellipsis;
|
|
1264
|
-
white-space: nowrap;
|
|
1245
|
+
flex: 1;
|
|
1265
1246
|
}
|
|
1266
1247
|
.r8uj4t0 .rich-details-chevron {
|
|
1267
1248
|
display: inline-flex;
|
|
1268
1249
|
flex-shrink: 0;
|
|
1269
1250
|
color: var(--rc-text-secondary);
|
|
1270
|
-
transition: transform 0.
|
|
1251
|
+
transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
|
1271
1252
|
}
|
|
1272
1253
|
.r8uj4t0 .rich-details[open] .rich-details-chevron {
|
|
1273
1254
|
transform: rotate(180deg);
|
|
1274
1255
|
}
|
|
1256
|
+
.r8uj4t0 .rich-details::details-content {
|
|
1257
|
+
display: block;
|
|
1258
|
+
height: 0;
|
|
1259
|
+
overflow: hidden;
|
|
1260
|
+
opacity: 0;
|
|
1261
|
+
content-visibility: hidden;
|
|
1262
|
+
transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), content-visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1) allow-discrete;
|
|
1263
|
+
}
|
|
1264
|
+
.r8uj4t0 .rich-details[open]::details-content {
|
|
1265
|
+
height: auto;
|
|
1266
|
+
opacity: 1;
|
|
1267
|
+
content-visibility: visible;
|
|
1268
|
+
}
|
|
1275
1269
|
.r8uj4t0 .rich-details-content {
|
|
1276
|
-
padding:
|
|
1270
|
+
padding: 0 0 0.75rem;
|
|
1271
|
+
color: var(--rc-text-secondary);
|
|
1272
|
+
}
|
|
1273
|
+
[contenteditable="true"] .rich-details-content {
|
|
1274
|
+
background-color: var(--rc-bg-secondary);
|
|
1275
|
+
border-radius: var(--rc-radius-sm);
|
|
1276
|
+
padding: var(--rc-space-sm) var(--rc-space-md);
|
|
1277
|
+
margin-top: var(--rc-space-xs);
|
|
1277
1278
|
}
|
|
1278
1279
|
.r8uj4t0 .rich-details-content > .rich-paragraph:first-child {
|
|
1279
1280
|
margin-top: 0;
|
|
@@ -8,7 +8,7 @@ import { ListNode, ListItemNode } from "@lexical/list";
|
|
|
8
8
|
import { HeadingNode, QuoteNode } from "@lexical/rich-text";
|
|
9
9
|
import { TableNode, TableCellNode, TableRowNode } from "@lexical/table";
|
|
10
10
|
import { DecoratorNode, ElementNode, $insertNodes, $getRoot, createEditor, $getNodeByKey, $nodesOfType } from "lexical";
|
|
11
|
-
import { OctagonAlert, TriangleAlert, MessageSquareWarning, Lightbulb, Info, Flag, Code,
|
|
11
|
+
import { OctagonAlert, TriangleAlert, MessageSquareWarning, Lightbulb, Info, Flag, Code, ChevronRight, LayoutGrid, ImageIcon, Sigma, Link, Workflow, Video } from "lucide-react";
|
|
12
12
|
import { createContext, use, useMemo, createElement, useCallback, useState, useEffect, useRef } from "react";
|
|
13
13
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
14
14
|
import { ContentEditable } from "@lexical/react/LexicalContentEditable";
|
|
@@ -21,14 +21,19 @@ import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext
|
|
|
21
21
|
import { TooltipRoot, TooltipTrigger, TooltipContent } from "@haklex/rich-editor-ui";
|
|
22
22
|
const RendererConfigContext = createContext({
|
|
23
23
|
config: void 0,
|
|
24
|
-
mode: "renderer"
|
|
24
|
+
mode: "renderer",
|
|
25
|
+
variant: "article"
|
|
25
26
|
});
|
|
26
27
|
function RendererConfigProvider({
|
|
27
28
|
config,
|
|
28
29
|
mode,
|
|
30
|
+
variant,
|
|
29
31
|
children
|
|
30
32
|
}) {
|
|
31
|
-
const value = useMemo(
|
|
33
|
+
const value = useMemo(
|
|
34
|
+
() => ({ config, mode, variant }),
|
|
35
|
+
[config, mode, variant]
|
|
36
|
+
);
|
|
32
37
|
return /* @__PURE__ */ jsx(RendererConfigContext.Provider, { value, children });
|
|
33
38
|
}
|
|
34
39
|
function useRendererConfig() {
|
|
@@ -37,6 +42,9 @@ function useRendererConfig() {
|
|
|
37
42
|
function useRendererMode() {
|
|
38
43
|
return use(RendererConfigContext).mode;
|
|
39
44
|
}
|
|
45
|
+
function useVariant() {
|
|
46
|
+
return use(RendererConfigContext).variant;
|
|
47
|
+
}
|
|
40
48
|
function RendererWrapper({
|
|
41
49
|
rendererKey,
|
|
42
50
|
defaultRenderer: DefaultRenderer,
|
|
@@ -855,8 +863,10 @@ function loadCodeToHtml() {
|
|
|
855
863
|
function CodeBlockRenderer({
|
|
856
864
|
code,
|
|
857
865
|
language,
|
|
858
|
-
showLineNumbers
|
|
866
|
+
showLineNumbers: showLineNumbersProp
|
|
859
867
|
}) {
|
|
868
|
+
const variant = useVariant();
|
|
869
|
+
const showLineNumbers = showLineNumbersProp ?? variant !== "comment";
|
|
860
870
|
const colorScheme = useColorScheme();
|
|
861
871
|
const shikiTheme = colorScheme === "dark" ? "github-dark" : "github-light";
|
|
862
872
|
const [highlightedHtml, setHighlightedHtml] = useState(null);
|
|
@@ -1030,7 +1040,7 @@ function createLucideSvg(iconNode, attrs = {}) {
|
|
|
1030
1040
|
}
|
|
1031
1041
|
return svg;
|
|
1032
1042
|
}
|
|
1033
|
-
const ChevronDownIconNode =
|
|
1043
|
+
const ChevronDownIconNode = [["path", { d: "M6 8L10 12L14 8" }]];
|
|
1034
1044
|
const _DetailsNode = class _DetailsNode extends ElementNode {
|
|
1035
1045
|
constructor(summary, open = false, key) {
|
|
1036
1046
|
super(key);
|
|
@@ -1060,7 +1070,12 @@ const _DetailsNode = class _DetailsNode extends ElementNode {
|
|
|
1060
1070
|
const chevron = document.createElement("span");
|
|
1061
1071
|
chevron.className = "rich-details-chevron";
|
|
1062
1072
|
chevron.append(
|
|
1063
|
-
createLucideSvg(ChevronDownIconNode, {
|
|
1073
|
+
createLucideSvg(ChevronDownIconNode, {
|
|
1074
|
+
width: "20",
|
|
1075
|
+
height: "20",
|
|
1076
|
+
viewBox: "0 0 20 20",
|
|
1077
|
+
"stroke-width": "1.5"
|
|
1078
|
+
})
|
|
1064
1079
|
);
|
|
1065
1080
|
summary.append(chevron);
|
|
1066
1081
|
const content = document.createElement("div");
|
|
@@ -2281,33 +2296,34 @@ export {
|
|
|
2281
2296
|
useFootnoteDisplayNumber as S,
|
|
2282
2297
|
useRendererConfig as T,
|
|
2283
2298
|
useRendererMode as U,
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2299
|
+
useVariant as V,
|
|
2300
|
+
$isAlertQuoteNode as W,
|
|
2301
|
+
RendererWrapper as X,
|
|
2302
|
+
AlertRenderer as Y,
|
|
2303
|
+
AlertQuoteNode as Z,
|
|
2304
|
+
$isBannerNode as _,
|
|
2290
2305
|
allNodes as a,
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
$
|
|
2304
|
-
$
|
|
2305
|
-
$
|
|
2306
|
-
$
|
|
2307
|
-
$
|
|
2308
|
-
$
|
|
2309
|
-
$
|
|
2310
|
-
$
|
|
2306
|
+
BannerRenderer as a0,
|
|
2307
|
+
BannerNode as a1,
|
|
2308
|
+
normalizeBannerType as a2,
|
|
2309
|
+
$isCodeBlockNode as a3,
|
|
2310
|
+
CodeBlockRenderer as a4,
|
|
2311
|
+
CodeBlockNode as a5,
|
|
2312
|
+
SpoilerNode as a6,
|
|
2313
|
+
MentionNode as a7,
|
|
2314
|
+
ImageNode as a8,
|
|
2315
|
+
FootnoteNode as a9,
|
|
2316
|
+
VideoNode as aa,
|
|
2317
|
+
DetailsNode as ab,
|
|
2318
|
+
$createAlertQuoteNode as ac,
|
|
2319
|
+
$createImageNode as ad,
|
|
2320
|
+
$createKaTeXInlineNode as ae,
|
|
2321
|
+
$createKaTeXBlockNode as af,
|
|
2322
|
+
$createBannerNode as ag,
|
|
2323
|
+
$createDetailsNode as ah,
|
|
2324
|
+
$createFootnoteNode as ai,
|
|
2325
|
+
$createMentionNode as aj,
|
|
2326
|
+
$createSpoilerNode as ak,
|
|
2311
2327
|
builtinNodes as b,
|
|
2312
2328
|
customNodes as c,
|
|
2313
2329
|
clsx as d,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "Core rich text editor based on Lexical",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"thumbhash": "^0.1.1",
|
|
28
|
-
"@haklex/rich-editor-ui": "0.0.
|
|
29
|
-
"@haklex/rich-headless": "0.0.
|
|
30
|
-
"@haklex/rich-style-token": "0.0.
|
|
28
|
+
"@haklex/rich-editor-ui": "0.0.15",
|
|
29
|
+
"@haklex/rich-headless": "0.0.15",
|
|
30
|
+
"@haklex/rich-style-token": "0.0.15"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@base-ui/react": "^1.1.0",
|