@haklex/rich-editor 0.0.82 → 0.0.84
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/AlertQuoteEditNode-CB8C24Xf.js +293 -0
- package/dist/KaTeXRenderer-CQyQzNTJ.js +218 -0
- package/dist/LinkCardRenderer-QmkOlyXb.js +36 -0
- package/dist/MermaidPlugin-DfIhGe-1.js +97 -0
- package/dist/PresentDialogContext-B4E78UB5.js +58 -0
- package/dist/RubyRenderer-CJQmODir.js +14 -0
- package/dist/SubmitShortcutPlugin-CkuM_8Wk.js +1650 -0
- package/dist/commands-entry.mjs +23 -14
- package/dist/components/LinkFavicon.d.ts.map +1 -1
- package/dist/components/decorators/GridEditDecorator.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteSectionEditRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteSectionRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteStaticRenderer.d.ts.map +1 -1
- package/dist/components/renderers/GridStaticDecorator.d.ts.map +1 -1
- package/dist/components/renderers/KaTeXRenderer.d.ts.map +1 -1
- package/dist/components/renderers/RubyRenderer.d.ts.map +1 -1
- package/dist/components/renderers/TagRenderer.d.ts.map +1 -1
- package/dist/config-BulxE6hd.js +1362 -0
- package/dist/config-edit.d.ts.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/favicon-BQgbXF_a.js +43 -0
- package/dist/grid.css-Md5-Cfx_.js +11 -0
- package/dist/index.mjs +292 -259
- package/dist/katex.css-Csc-7N7u.js +28 -0
- package/dist/node-registry-eMijRh3N.js +824 -0
- package/dist/nodes/AlertQuoteNode.d.ts.map +1 -1
- package/dist/nodes/CommentNode.d.ts +21 -0
- package/dist/nodes/CommentNode.d.ts.map +1 -0
- package/dist/nodes/DetailsNode.d.ts.map +1 -1
- package/dist/nodes/FootnoteNode.d.ts.map +1 -1
- package/dist/nodes/FootnoteSectionNode.d.ts.map +1 -1
- package/dist/nodes/GridContainerNode.d.ts.map +1 -1
- package/dist/nodes/RubyNode.d.ts.map +1 -1
- package/dist/nodes/SpoilerNode.d.ts.map +1 -1
- package/dist/nodes/TagNode.d.ts.map +1 -1
- package/dist/nodes-entry.d.ts +2 -0
- package/dist/nodes-entry.d.ts.map +1 -1
- package/dist/nodes-entry.mjs +50 -7
- package/dist/plugins/MarkdownPastePlugin.d.ts.map +1 -1
- package/dist/plugins-entry.mjs +27 -10
- package/dist/renderers-entry.mjs +61 -40
- package/dist/rich-editor.css +1 -2
- package/dist/static-entry.d.ts +4 -1
- package/dist/static-entry.d.ts.map +1 -1
- package/dist/static-entry.mjs +62 -16
- package/dist/styles/article.css.d.ts.map +1 -1
- package/dist/styles/comment.css.d.ts.map +1 -1
- package/dist/styles/details.css.d.ts +19 -1
- package/dist/styles/details.css.d.ts.map +1 -1
- package/dist/styles/grid.css.d.ts +34 -1
- package/dist/styles/grid.css.d.ts.map +1 -1
- package/dist/styles/index.d.ts +5 -2
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/katex.css.d.ts +13 -1
- package/dist/styles/katex.css.d.ts.map +1 -1
- package/dist/styles/note.css.d.ts.map +1 -1
- package/dist/styles/shared.css.d.ts +164 -0
- package/dist/styles/shared.css.d.ts.map +1 -1
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles-entry.d.ts +5 -2
- package/dist/styles-entry.d.ts.map +1 -1
- package/dist/styles-entry.mjs +21 -3
- package/dist/theme-D_efLk4K.js +1034 -0
- package/dist/transformers/comment.d.ts +4 -0
- package/dist/transformers/comment.d.ts.map +1 -0
- package/dist/transformers/index.d.ts +1 -0
- package/dist/transformers/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/AlertQuoteEditNode-BDoonB4u.js +0 -267
- package/dist/KaTeXRenderer-BsyRH5_t.js +0 -214
- package/dist/LinkCardRenderer-OEMBDUhD.js +0 -45
- package/dist/MermaidPlugin-Df2Cm2yX.js +0 -67
- package/dist/PresentDialogContext-DQw6MrNh.js +0 -59
- package/dist/RubyRenderer-BpDb_amz.js +0 -14
- package/dist/SubmitShortcutPlugin-6IvsbZD-.js +0 -1463
- package/dist/config-tfg1FWhG.js +0 -1149
- package/dist/favicon-DIWusrrw.js +0 -41
- package/dist/node-registry-CeVi2y9f.js +0 -666
- package/dist/shared.css-wgGgtK_e.js +0 -23
- package/dist/theme-DHOUKKSr.js +0 -1034
package/dist/static-entry.mjs
CHANGED
|
@@ -1,20 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { C as useColorScheme, S as ColorSchemeProvider, n as builtinNodes, r as customNodes, t as allNodes } from "./config-tfg1FWhG.js";
|
|
4
|
-
import "./LinkCardRenderer-OEMBDUhD.js";
|
|
5
|
-
import { n as usePresentDialog, r as LinkFavicon, t as PresentDialogProvider } from "./PresentDialogContext-DQw6MrNh.js";
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { a as commentVariant, i as noteVariant, o as articleVariant, r as getVariantClass, t as richContent } from "./shared.css-wgGgtK_e.js";
|
|
8
|
-
import { t as RubyRenderer } from "./RubyRenderer-BpDb_amz.js";
|
|
1
|
+
import { L, P, u } from "./PresentDialogContext-B4E78UB5.js";
|
|
2
|
+
import { R } from "./RubyRenderer-CJQmODir.js";
|
|
9
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { e as clsx, d as sharedStyles, s as semanticClassNames } from "./katex.css-Csc-7N7u.js";
|
|
5
|
+
import { a, c, g, k, b, n, r } from "./katex.css-Csc-7N7u.js";
|
|
6
|
+
import { m as getTagBgColor } from "./theme-D_efLk4K.js";
|
|
7
|
+
import { N, n as n2, o, u as u2, p } from "./theme-D_efLk4K.js";
|
|
8
|
+
import { F, R as R2, a as a2, c as c2, u as u3, b as b2, d, e, f, g as g2 } from "./KaTeXRenderer-CQyQzNTJ.js";
|
|
9
|
+
import { n as n3, k as k2, l, m, u as u4 } from "./config-BulxE6hd.js";
|
|
10
|
+
import { d as d2, a as a3, g as g3, b as b3 } from "./grid.css-Md5-Cfx_.js";
|
|
10
11
|
import { articleTheme, commentTheme, noteTheme, vars } from "@haklex/rich-style-token/styles";
|
|
11
|
-
//#region src/components/renderers/TagRenderer.tsx
|
|
12
12
|
function TagRenderer({ text }) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
"span",
|
|
15
|
+
{
|
|
16
|
+
className: clsx(semanticClassNames.tag, sharedStyles.tag),
|
|
17
|
+
style: { backgroundColor: getTagBgColor(text) },
|
|
18
|
+
children: text
|
|
19
|
+
}
|
|
20
|
+
);
|
|
18
21
|
}
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
export {
|
|
23
|
+
n3 as ColorSchemeProvider,
|
|
24
|
+
F as FootnoteDefinitionsProvider,
|
|
25
|
+
L as LinkFavicon,
|
|
26
|
+
N as NestedContentRendererProvider,
|
|
27
|
+
P as PresentDialogProvider,
|
|
28
|
+
R2 as RendererConfigProvider,
|
|
29
|
+
a2 as RendererWrapper,
|
|
30
|
+
R as RubyRenderer,
|
|
31
|
+
TagRenderer,
|
|
32
|
+
k2 as allNodes,
|
|
33
|
+
articleTheme,
|
|
34
|
+
a as articleVariant,
|
|
35
|
+
l as builtinNodes,
|
|
36
|
+
commentTheme,
|
|
37
|
+
c as commentVariant,
|
|
38
|
+
c2 as createRendererDecoration,
|
|
39
|
+
m as customNodes,
|
|
40
|
+
d2 as detailsClassNames,
|
|
41
|
+
a3 as detailsStyles,
|
|
42
|
+
n2 as editorTheme,
|
|
43
|
+
o as extractTextContent,
|
|
44
|
+
getTagBgColor,
|
|
45
|
+
g as getVariantClass,
|
|
46
|
+
g3 as gridClassNames,
|
|
47
|
+
b3 as gridStyles,
|
|
48
|
+
k as katexClassNames,
|
|
49
|
+
b as katexStyles,
|
|
50
|
+
noteTheme,
|
|
51
|
+
n as noteVariant,
|
|
52
|
+
r as richContent,
|
|
53
|
+
semanticClassNames,
|
|
54
|
+
sharedStyles,
|
|
55
|
+
u4 as useColorScheme,
|
|
56
|
+
u3 as useFootnoteContent,
|
|
57
|
+
b2 as useFootnoteDefinitions,
|
|
58
|
+
d as useFootnoteDisplayNumber,
|
|
59
|
+
u2 as useNestedContentRenderer,
|
|
60
|
+
p as useOptionalNestedContentRenderer,
|
|
61
|
+
u as usePresentDialog,
|
|
62
|
+
e as useRendererConfig,
|
|
63
|
+
f as useRendererMode,
|
|
64
|
+
g2 as useVariant,
|
|
65
|
+
vars
|
|
66
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"article.css.d.ts","sourceRoot":"","sources":["../../src/styles/article.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"article.css.d.ts","sourceRoot":"","sources":["../../src/styles/article.css.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,cAAc,QAAkD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.css.d.ts","sourceRoot":"","sources":["../../src/styles/comment.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"comment.css.d.ts","sourceRoot":"","sources":["../../src/styles/comment.css.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,cAAc,QAAkD,CAAC"}
|
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export declare const detailsClassNames: {
|
|
2
|
+
readonly details: "rich-details";
|
|
3
|
+
readonly summary: "rich-details-summary";
|
|
4
|
+
readonly summaryText: "rich-details-summary-text";
|
|
5
|
+
readonly chevron: "rich-details-chevron";
|
|
6
|
+
readonly content: "rich-details-content";
|
|
7
|
+
};
|
|
8
|
+
export declare const details: string;
|
|
9
|
+
export declare const summary: string;
|
|
10
|
+
export declare const summaryText: string;
|
|
11
|
+
export declare const chevron: string;
|
|
12
|
+
export declare const content: string;
|
|
13
|
+
export declare const detailsStyles: {
|
|
14
|
+
readonly details: string;
|
|
15
|
+
readonly summary: string;
|
|
16
|
+
readonly summaryText: string;
|
|
17
|
+
readonly chevron: string;
|
|
18
|
+
readonly content: string;
|
|
19
|
+
};
|
|
2
20
|
//# sourceMappingURL=details.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details.css.d.ts","sourceRoot":"","sources":["../../src/styles/details.css.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"details.css.d.ts","sourceRoot":"","sources":["../../src/styles/details.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,eAAO,MAAM,OAAO,QAKlB,CAAC;AAEH,eAAO,MAAM,OAAO,QA8BlB,CAAC;AAEH,eAAO,MAAM,WAAW,QAGtB,CAAC;AAEH,eAAO,MAAM,OAAO,QAYlB,CAAC;AAEH,eAAO,MAAM,OAAO,QAMlB,CAAC;AAmCH,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC"}
|
|
@@ -1,2 +1,35 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export declare const gridClassNames: {
|
|
2
|
+
readonly container: "rich-grid-container";
|
|
3
|
+
readonly toolbar: "rich-grid-toolbar";
|
|
4
|
+
readonly toolbarIcon: "rich-grid-toolbar-icon";
|
|
5
|
+
readonly colButton: "rich-grid-col-btn";
|
|
6
|
+
readonly colButtonActive: "rich-grid-col-btn-active";
|
|
7
|
+
readonly toolbarDivider: "rich-grid-toolbar-divider";
|
|
8
|
+
readonly actionButton: "rich-grid-action-btn";
|
|
9
|
+
readonly inner: "rich-grid-inner";
|
|
10
|
+
readonly cell: "rich-grid-cell";
|
|
11
|
+
readonly cellEditable: "rich-grid-cell-editable";
|
|
12
|
+
};
|
|
13
|
+
export declare const container: string;
|
|
14
|
+
export declare const toolbar: string;
|
|
15
|
+
export declare const toolbarIcon: string;
|
|
16
|
+
export declare const colButton: string;
|
|
17
|
+
export declare const colButtonActive: string;
|
|
18
|
+
export declare const toolbarDivider: string;
|
|
19
|
+
export declare const actionButton: string;
|
|
20
|
+
export declare const inner: string;
|
|
21
|
+
export declare const cell: string;
|
|
22
|
+
export declare const cellEditable: string;
|
|
23
|
+
export declare const gridStyles: {
|
|
24
|
+
readonly container: string;
|
|
25
|
+
readonly toolbar: string;
|
|
26
|
+
readonly toolbarIcon: string;
|
|
27
|
+
readonly colButton: string;
|
|
28
|
+
readonly colButtonActive: string;
|
|
29
|
+
readonly toolbarDivider: string;
|
|
30
|
+
readonly actionButton: string;
|
|
31
|
+
readonly inner: string;
|
|
32
|
+
readonly cell: string;
|
|
33
|
+
readonly cellEditable: string;
|
|
34
|
+
};
|
|
2
35
|
//# sourceMappingURL=grid.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.css.d.ts","sourceRoot":"","sources":["../../src/styles/grid.css.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"grid.css.d.ts","sourceRoot":"","sources":["../../src/styles/grid.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;;;;;;;;;;CAWjB,CAAC;AAEX,eAAO,MAAM,SAAS,QAGpB,CAAC;AAEH,eAAO,MAAM,OAAO,QAmBlB,CAAC;AAEH,eAAO,MAAM,WAAW,QAQtB,CAAC;AAEH,eAAO,MAAM,SAAS,QAsBpB,CAAC;AAEH,eAAO,MAAM,eAAe,QAI1B,CAAC;AAEH,eAAO,MAAM,cAAc,QAMzB,CAAC;AAEH,eAAO,MAAM,YAAY,QAmBvB,CAAC;AAEH,eAAO,MAAM,KAAK,QAGhB,CAAC;AAEH,eAAO,MAAM,IAAI,QAEf,CAAC;AAEH,eAAO,MAAM,YAAY,QAEvB,CAAC;AAOH,eAAO,MAAM,UAAU;;;;;;;;;;;CAWb,CAAC"}
|
package/dist/styles/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export { articleVariant } from './article.css';
|
|
2
2
|
export { commentVariant } from './comment.css';
|
|
3
|
+
export { detailsClassNames, detailsStyles } from './details.css';
|
|
4
|
+
export { gridClassNames, gridStyles } from './grid.css';
|
|
5
|
+
export { katexClassNames, katexStyles } from './katex.css';
|
|
3
6
|
export { noteVariant } from './note.css';
|
|
4
|
-
export { richContent } from './shared.css';
|
|
7
|
+
export { richContent, semanticClassNames, type SharedStyleKey, sharedStyles } from './shared.css';
|
|
5
8
|
export { editorTheme } from './theme';
|
|
6
|
-
export { articleTheme, commentTheme, noteTheme, vars
|
|
9
|
+
export { articleTheme, commentTheme, noteTheme, vars } from '@haklex/rich-style-token/styles';
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AACrB,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;AAEpB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,KAAK,cAAc,EAAC,YAAY,EAAE,MAAM,cAAc,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export declare const katexClassNames: {
|
|
2
|
+
readonly inline: "rich-katex-inline";
|
|
3
|
+
readonly block: "rich-katex-block";
|
|
4
|
+
readonly fallback: "rich-katex-fallback";
|
|
5
|
+
};
|
|
6
|
+
export declare const inline: string;
|
|
7
|
+
export declare const block: string;
|
|
8
|
+
export declare const fallback: string;
|
|
9
|
+
export declare const katexStyles: {
|
|
10
|
+
readonly inline: string;
|
|
11
|
+
readonly block: string;
|
|
12
|
+
readonly fallback: string;
|
|
13
|
+
};
|
|
2
14
|
//# sourceMappingURL=katex.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"katex.css.d.ts","sourceRoot":"","sources":["../../src/styles/katex.css.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"katex.css.d.ts","sourceRoot":"","sources":["../../src/styles/katex.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,eAAO,MAAM,MAAM,QAIjB,CAAC;AAEH,eAAO,MAAM,KAAK,QAMhB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAOnB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;CAId,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"note.css.d.ts","sourceRoot":"","sources":["../../src/styles/note.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"note.css.d.ts","sourceRoot":"","sources":["../../src/styles/note.css.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,WAAW,QAA4C,CAAC"}
|
|
@@ -1,2 +1,166 @@
|
|
|
1
|
+
export declare const semanticClassNames: {
|
|
2
|
+
readonly paragraph: "rich-paragraph";
|
|
3
|
+
readonly textBold: "rich-text-bold";
|
|
4
|
+
readonly textItalic: "rich-text-italic";
|
|
5
|
+
readonly textUnderline: "rich-text-underline";
|
|
6
|
+
readonly textStrikethrough: "rich-text-strikethrough";
|
|
7
|
+
readonly textSuperscript: "rich-text-superscript";
|
|
8
|
+
readonly textSubscript: "rich-text-subscript";
|
|
9
|
+
readonly textCode: "rich-text-code";
|
|
10
|
+
readonly textHighlight: "rich-text-highlight";
|
|
11
|
+
readonly headingAnchor: "rich-heading-anchor";
|
|
12
|
+
readonly headingH1: "rich-heading-h1";
|
|
13
|
+
readonly headingH2: "rich-heading-h2";
|
|
14
|
+
readonly headingH3: "rich-heading-h3";
|
|
15
|
+
readonly headingH4: "rich-heading-h4";
|
|
16
|
+
readonly headingH5: "rich-heading-h5";
|
|
17
|
+
readonly headingH6: "rich-heading-h6";
|
|
18
|
+
readonly link: "rich-link";
|
|
19
|
+
readonly linkFavicon: "rich-link-favicon";
|
|
20
|
+
readonly listOl: "rich-list-ol";
|
|
21
|
+
readonly listUl: "rich-list-ul";
|
|
22
|
+
readonly listItem: "rich-list-item";
|
|
23
|
+
readonly listNestedItem: "rich-list-nested-item";
|
|
24
|
+
readonly checklist: "rich-checklist";
|
|
25
|
+
readonly listItemChecked: "rich-list-item-checked";
|
|
26
|
+
readonly listItemUnchecked: "rich-list-item-unchecked";
|
|
27
|
+
readonly quote: "rich-quote";
|
|
28
|
+
readonly hr: "rich-hr";
|
|
29
|
+
readonly tableScrollableWrapper: "rich-table-scrollable-wrapper";
|
|
30
|
+
readonly table: "rich-table";
|
|
31
|
+
readonly tableCell: "rich-table-cell";
|
|
32
|
+
readonly tableCellHeader: "rich-table-cell-header";
|
|
33
|
+
readonly spoiler: "rich-spoiler";
|
|
34
|
+
readonly spoilerRevealed: "rich-spoiler-revealed";
|
|
35
|
+
readonly tag: "rich-tag";
|
|
36
|
+
readonly comment: "rich-comment";
|
|
37
|
+
readonly ruby: "rich-ruby";
|
|
38
|
+
readonly rubyRt: "rich-ruby-rt";
|
|
39
|
+
readonly footnote: "rich-footnote";
|
|
40
|
+
readonly footnoteRef: "rich-footnote-ref";
|
|
41
|
+
readonly footnoteHighlight: "rich-footnote-highlight";
|
|
42
|
+
readonly footnoteRefWrapper: "rich-footnote-ref-wrapper";
|
|
43
|
+
readonly footnoteSection: "rich-footnote-section";
|
|
44
|
+
readonly footnoteSectionDivider: "rich-footnote-section-divider";
|
|
45
|
+
readonly footnoteSectionList: "rich-footnote-section-list";
|
|
46
|
+
readonly footnoteSectionItem: "rich-footnote-section-item";
|
|
47
|
+
readonly footnoteBackRef: "rich-footnote-back-ref";
|
|
48
|
+
readonly footnoteSectionItemEdit: "rich-footnote-section-item-edit";
|
|
49
|
+
readonly footnoteSectionItemNum: "rich-footnote-section-item-num";
|
|
50
|
+
readonly footnoteSectionItemInput: "rich-footnote-section-item-input";
|
|
51
|
+
readonly footnoteSectionItemRemove: "rich-footnote-section-item-remove";
|
|
52
|
+
readonly dragHandle: "rich-drag-handle";
|
|
53
|
+
readonly dropIndicator: "rich-drop-indicator";
|
|
54
|
+
readonly alert: "rich-alert";
|
|
55
|
+
};
|
|
1
56
|
export declare const richContent: string;
|
|
57
|
+
export declare const paragraph: string;
|
|
58
|
+
export declare const textBold: string;
|
|
59
|
+
export declare const textItalic: string;
|
|
60
|
+
export declare const textUnderline: string;
|
|
61
|
+
export declare const textStrikethrough: string;
|
|
62
|
+
export declare const textSuperscript: string;
|
|
63
|
+
export declare const textSubscript: string;
|
|
64
|
+
export declare const textCode: string;
|
|
65
|
+
export declare const textHighlight: string;
|
|
66
|
+
export declare const headingAnchor: string;
|
|
67
|
+
export declare const headingH1: string;
|
|
68
|
+
export declare const headingH2: string;
|
|
69
|
+
export declare const headingH3: string;
|
|
70
|
+
export declare const headingH4: string;
|
|
71
|
+
export declare const headingH5: string;
|
|
72
|
+
export declare const headingH6: string;
|
|
73
|
+
export declare const link: string;
|
|
74
|
+
export declare const linkFavicon: string;
|
|
75
|
+
export declare const listOl: string;
|
|
76
|
+
export declare const listUl: string;
|
|
77
|
+
export declare const listItem: string;
|
|
78
|
+
export declare const listNestedItem: string;
|
|
79
|
+
export declare const checklist: string;
|
|
80
|
+
export declare const listItemUnchecked: string;
|
|
81
|
+
export declare const listItemChecked: string;
|
|
82
|
+
export declare const quote: string;
|
|
83
|
+
export declare const hr: string;
|
|
84
|
+
export declare const tableScrollableWrapper: string;
|
|
85
|
+
export declare const tableCell: string;
|
|
86
|
+
export declare const tableCellHeader: string;
|
|
87
|
+
export declare const table: string;
|
|
88
|
+
export declare const spoiler: string;
|
|
89
|
+
export declare const spoilerRevealed: string;
|
|
90
|
+
export declare const tag: string;
|
|
91
|
+
export declare const comment: string;
|
|
92
|
+
export declare const ruby: string;
|
|
93
|
+
export declare const rubyRt: string;
|
|
94
|
+
export declare const footnote: string;
|
|
95
|
+
export declare const footnoteRef: string;
|
|
96
|
+
export declare const footnoteHighlight: string;
|
|
97
|
+
export declare const footnoteRefWrapper: string;
|
|
98
|
+
export declare const footnoteSection: string;
|
|
99
|
+
export declare const footnoteSectionDivider: string;
|
|
100
|
+
export declare const footnoteSectionList: string;
|
|
101
|
+
export declare const footnoteSectionItem: string;
|
|
102
|
+
export declare const footnoteBackRef: string;
|
|
103
|
+
export declare const footnoteSectionItemEdit: string;
|
|
104
|
+
export declare const footnoteSectionItemNum: string;
|
|
105
|
+
export declare const footnoteSectionItemInput: string;
|
|
106
|
+
export declare const footnoteSectionItemRemove: string;
|
|
107
|
+
export declare const dragHandle: string;
|
|
108
|
+
export declare const dropIndicator: string;
|
|
109
|
+
export declare const alert: string;
|
|
110
|
+
export declare const sharedStyles: {
|
|
111
|
+
paragraph: string;
|
|
112
|
+
textBold: string;
|
|
113
|
+
textItalic: string;
|
|
114
|
+
textUnderline: string;
|
|
115
|
+
textStrikethrough: string;
|
|
116
|
+
textSuperscript: string;
|
|
117
|
+
textSubscript: string;
|
|
118
|
+
textCode: string;
|
|
119
|
+
textHighlight: string;
|
|
120
|
+
headingAnchor: string;
|
|
121
|
+
headingH1: string;
|
|
122
|
+
headingH2: string;
|
|
123
|
+
headingH3: string;
|
|
124
|
+
headingH4: string;
|
|
125
|
+
headingH5: string;
|
|
126
|
+
headingH6: string;
|
|
127
|
+
link: string;
|
|
128
|
+
linkFavicon: string;
|
|
129
|
+
listOl: string;
|
|
130
|
+
listUl: string;
|
|
131
|
+
listItem: string;
|
|
132
|
+
listNestedItem: string;
|
|
133
|
+
checklist: string;
|
|
134
|
+
listItemChecked: string;
|
|
135
|
+
listItemUnchecked: string;
|
|
136
|
+
quote: string;
|
|
137
|
+
hr: string;
|
|
138
|
+
tableScrollableWrapper: string;
|
|
139
|
+
table: string;
|
|
140
|
+
tableCell: string;
|
|
141
|
+
tableCellHeader: string;
|
|
142
|
+
spoiler: string;
|
|
143
|
+
spoilerRevealed: string;
|
|
144
|
+
tag: string;
|
|
145
|
+
comment: string;
|
|
146
|
+
ruby: string;
|
|
147
|
+
rubyRt: string;
|
|
148
|
+
footnote: string;
|
|
149
|
+
footnoteRef: string;
|
|
150
|
+
footnoteHighlight: string;
|
|
151
|
+
footnoteRefWrapper: string;
|
|
152
|
+
footnoteSection: string;
|
|
153
|
+
footnoteSectionDivider: string;
|
|
154
|
+
footnoteSectionList: string;
|
|
155
|
+
footnoteSectionItem: string;
|
|
156
|
+
footnoteBackRef: string;
|
|
157
|
+
footnoteSectionItemEdit: string;
|
|
158
|
+
footnoteSectionItemNum: string;
|
|
159
|
+
footnoteSectionItemInput: string;
|
|
160
|
+
footnoteSectionItemRemove: string;
|
|
161
|
+
dragHandle: string;
|
|
162
|
+
dropIndicator: string;
|
|
163
|
+
alert: string;
|
|
164
|
+
};
|
|
165
|
+
export type SharedStyleKey = keyof typeof sharedStyles;
|
|
2
166
|
//# sourceMappingURL=shared.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.css.d.ts","sourceRoot":"","sources":["../../src/styles/shared.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,QAOtB,CAAC"}
|
|
1
|
+
{"version":3,"file":"shared.css.d.ts","sourceRoot":"","sources":["../../src/styles/shared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kB,EAAE,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/styles/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAOlD,eAAO,MAAM,WAAW,EAAE,kBAwCzB,CAAC"}
|
package/dist/styles-entry.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export { getVariantClass } from './components/utils';
|
|
2
2
|
export { articleVariant } from './styles/article.css';
|
|
3
3
|
export { commentVariant } from './styles/comment.css';
|
|
4
|
+
export { detailsClassNames, detailsStyles } from './styles/details.css';
|
|
5
|
+
export { gridClassNames, gridStyles } from './styles/grid.css';
|
|
6
|
+
export { katexClassNames, katexStyles } from './styles/katex.css';
|
|
4
7
|
export { noteVariant } from './styles/note.css';
|
|
5
|
-
export { richContent } from './styles/shared.css';
|
|
6
|
-
export { articleTheme, commentTheme, noteTheme, vars
|
|
8
|
+
export { richContent, semanticClassNames, type SharedStyleKey, sharedStyles, } from './styles/shared.css';
|
|
9
|
+
export { articleTheme, commentTheme, noteTheme, vars } from '@haklex/rich-style-token/styles';
|
|
7
10
|
//# sourceMappingURL=styles-entry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles-entry.d.ts","sourceRoot":"","sources":["../src/styles-entry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"styles-entry.d.ts","sourceRoot":"","sources":["../src/styles-entry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,KAAK,cAAc,EACnB,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC"}
|
package/dist/styles-entry.mjs
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
import { a, c, g, k, b, n, r, s, d } from "./katex.css-Csc-7N7u.js";
|
|
2
|
+
import { d as d2, a as a2, g as g2, b as b2 } from "./grid.css-Md5-Cfx_.js";
|
|
3
3
|
import { articleTheme, commentTheme, noteTheme, vars } from "@haklex/rich-style-token/styles";
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
articleTheme,
|
|
6
|
+
a as articleVariant,
|
|
7
|
+
commentTheme,
|
|
8
|
+
c as commentVariant,
|
|
9
|
+
d2 as detailsClassNames,
|
|
10
|
+
a2 as detailsStyles,
|
|
11
|
+
g as getVariantClass,
|
|
12
|
+
g2 as gridClassNames,
|
|
13
|
+
b2 as gridStyles,
|
|
14
|
+
k as katexClassNames,
|
|
15
|
+
b as katexStyles,
|
|
16
|
+
noteTheme,
|
|
17
|
+
n as noteVariant,
|
|
18
|
+
r as richContent,
|
|
19
|
+
s as semanticClassNames,
|
|
20
|
+
d as sharedStyles,
|
|
21
|
+
vars
|
|
22
|
+
};
|