@haklex/rich-editor 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertQuoteEditNode-C55sxsR3.js +267 -0
- package/dist/KaTeXRenderer-CQQT3BMw.js +215 -0
- package/dist/LinkCardRenderer-CigqFwCv.js +45 -0
- package/dist/MermaidPlugin-BrOr-wQi.js +67 -0
- package/dist/RubyRenderer-jOkydJHg.js +15 -0
- package/dist/SubmitShortcutPlugin-DhyVFzoj.js +2186 -0
- package/dist/commands-entry.mjs +54 -74
- package/dist/components/decorators/PollEditDecorator.d.ts +13 -0
- package/dist/components/decorators/PollEditDecorator.d.ts.map +1 -0
- package/dist/components/renderers/PollRenderer.d.ts +3 -0
- package/dist/components/renderers/PollRenderer.d.ts.map +1 -0
- package/dist/config-B5BuLljq.js +1633 -0
- package/dist/config-edit.d.ts.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/context/PollDataContext.d.ts +11 -0
- package/dist/context/PollDataContext.d.ts.map +1 -0
- package/dist/extractPolls-DO31LNrp.js +116 -0
- package/dist/grid.css-CJCkLTZc.js +44 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +121 -180
- package/dist/katex.css-CIOEOXyd.js +145 -0
- package/dist/node-registry-Dz5OTkh4.js +946 -0
- package/dist/nodes/PollEditNode.d.ts +14 -0
- package/dist/nodes/PollEditNode.d.ts.map +1 -0
- package/dist/nodes/PollNode.d.ts +52 -0
- package/dist/nodes/PollNode.d.ts.map +1 -0
- package/dist/nodes-entry.d.ts +3 -0
- package/dist/nodes-entry.d.ts.map +1 -1
- package/dist/nodes-entry.mjs +5 -50
- package/dist/normalizeSerializedEditorState-B-1wmGzd.js +78 -0
- package/dist/plugins-entry.mjs +3 -28
- package/dist/renderers-entry.mjs +41 -61
- package/dist/rich-editor.css +2 -1
- package/dist/static-entry.d.ts +5 -0
- package/dist/static-entry.d.ts.map +1 -1
- package/dist/static-entry.mjs +16 -66
- package/dist/styles/index.d.ts +2 -0
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/poll-edit.css.d.ts +35 -0
- package/dist/styles/poll-edit.css.d.ts.map +1 -0
- package/dist/styles/poll.css.d.ts +43 -0
- package/dist/styles/poll.css.d.ts.map +1 -0
- package/dist/styles-entry.mjs +3 -21
- package/dist/theme-B5B2EOWM.js +1099 -0
- package/dist/types/poll.d.ts +36 -0
- package/dist/types/poll.d.ts.map +1 -0
- package/dist/types/renderer-config.d.ts +3 -0
- package/dist/types/renderer-config.d.ts.map +1 -1
- package/dist/utils/extractPolls.d.ts +4 -0
- package/dist/utils/extractPolls.d.ts.map +1 -0
- package/package.json +30 -30
- package/dist/AlertQuoteEditNode-sPNf3_7P.js +0 -293
- package/dist/KaTeXRenderer-CQyQzNTJ.js +0 -218
- package/dist/LinkCardRenderer-QmkOlyXb.js +0 -36
- package/dist/MermaidPlugin-DKuGUcCG.js +0 -101
- package/dist/PresentDialogContext-DRroMIoK.js +0 -71
- package/dist/RubyRenderer-CJQmODir.js +0 -14
- package/dist/SubmitShortcutPlugin-D9uKYHda.js +0 -2427
- package/dist/config-Dl3ZkytB.js +0 -1362
- package/dist/grid.css-Md5-Cfx_.js +0 -11
- package/dist/katex.css-Csc-7N7u.js +0 -28
- package/dist/node-registry-CovhHUB6.js +0 -824
- package/dist/normalizeSerializedEditorState-k5G4xSi9.js +0 -85
- package/dist/theme-lEwScxEX.js +0 -1113
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
//#region src/styles/shared.css.ts
|
|
2
|
+
var semanticClassNames = {
|
|
3
|
+
paragraph: "rich-paragraph",
|
|
4
|
+
textBold: "rich-text-bold",
|
|
5
|
+
textItalic: "rich-text-italic",
|
|
6
|
+
textUnderline: "rich-text-underline",
|
|
7
|
+
textStrikethrough: "rich-text-strikethrough",
|
|
8
|
+
textSuperscript: "rich-text-superscript",
|
|
9
|
+
textSubscript: "rich-text-subscript",
|
|
10
|
+
textCode: "rich-text-code",
|
|
11
|
+
textHighlight: "rich-text-highlight",
|
|
12
|
+
headingAnchor: "rich-heading-anchor",
|
|
13
|
+
headingH1: "rich-heading-h1",
|
|
14
|
+
headingH2: "rich-heading-h2",
|
|
15
|
+
headingH3: "rich-heading-h3",
|
|
16
|
+
headingH4: "rich-heading-h4",
|
|
17
|
+
headingH5: "rich-heading-h5",
|
|
18
|
+
headingH6: "rich-heading-h6",
|
|
19
|
+
link: "rich-link",
|
|
20
|
+
linkFavicon: "rich-link-favicon",
|
|
21
|
+
listOl: "rich-list-ol",
|
|
22
|
+
listUl: "rich-list-ul",
|
|
23
|
+
listItem: "rich-list-item",
|
|
24
|
+
listNestedItem: "rich-list-nested-item",
|
|
25
|
+
checklist: "rich-checklist",
|
|
26
|
+
listItemChecked: "rich-list-item-checked",
|
|
27
|
+
listItemUnchecked: "rich-list-item-unchecked",
|
|
28
|
+
quote: "rich-quote",
|
|
29
|
+
hr: "rich-hr",
|
|
30
|
+
tableScrollableWrapper: "rich-table-scrollable-wrapper",
|
|
31
|
+
table: "rich-table",
|
|
32
|
+
tableCell: "rich-table-cell",
|
|
33
|
+
tableCellHeader: "rich-table-cell-header",
|
|
34
|
+
spoiler: "rich-spoiler",
|
|
35
|
+
spoilerRevealed: "rich-spoiler-revealed",
|
|
36
|
+
tag: "rich-tag",
|
|
37
|
+
comment: "rich-comment",
|
|
38
|
+
ruby: "rich-ruby",
|
|
39
|
+
rubyRt: "rich-ruby-rt",
|
|
40
|
+
footnote: "rich-footnote",
|
|
41
|
+
footnoteRef: "rich-footnote-ref",
|
|
42
|
+
footnoteHighlight: "rich-footnote-highlight",
|
|
43
|
+
footnoteRefWrapper: "rich-footnote-ref-wrapper",
|
|
44
|
+
footnoteSection: "rich-footnote-section",
|
|
45
|
+
footnoteSectionDivider: "rich-footnote-section-divider",
|
|
46
|
+
footnoteSectionList: "rich-footnote-section-list",
|
|
47
|
+
footnoteSectionItem: "rich-footnote-section-item",
|
|
48
|
+
footnoteBackRef: "rich-footnote-back-ref",
|
|
49
|
+
footnoteSectionItemEdit: "rich-footnote-section-item-edit",
|
|
50
|
+
footnoteSectionItemNum: "rich-footnote-section-item-num",
|
|
51
|
+
footnoteSectionItemInput: "rich-footnote-section-item-input",
|
|
52
|
+
footnoteSectionItemRemove: "rich-footnote-section-item-remove",
|
|
53
|
+
dragHandle: "rich-drag-handle",
|
|
54
|
+
dropIndicator: "rich-drop-indicator",
|
|
55
|
+
alert: "rich-alert"
|
|
56
|
+
};
|
|
57
|
+
var richContent = "r8uj4t2";
|
|
58
|
+
var sharedStyles = {
|
|
59
|
+
paragraph: "r8uj4t3",
|
|
60
|
+
textBold: "r8uj4t4",
|
|
61
|
+
textItalic: "r8uj4t5",
|
|
62
|
+
textUnderline: "r8uj4t6",
|
|
63
|
+
textStrikethrough: "r8uj4t7",
|
|
64
|
+
textSuperscript: "r8uj4t8",
|
|
65
|
+
textSubscript: "r8uj4t9",
|
|
66
|
+
textCode: "r8uj4ta",
|
|
67
|
+
textHighlight: "r8uj4tb",
|
|
68
|
+
headingAnchor: "r8uj4tc",
|
|
69
|
+
headingH1: "r8uj4td",
|
|
70
|
+
headingH2: "r8uj4te",
|
|
71
|
+
headingH3: "r8uj4tf",
|
|
72
|
+
headingH4: "r8uj4tg",
|
|
73
|
+
headingH5: "r8uj4th",
|
|
74
|
+
headingH6: "r8uj4ti",
|
|
75
|
+
link: "r8uj4tj",
|
|
76
|
+
linkFavicon: "r8uj4tk",
|
|
77
|
+
listOl: "r8uj4tl",
|
|
78
|
+
listUl: "r8uj4tm",
|
|
79
|
+
listItem: "r8uj4tn",
|
|
80
|
+
listNestedItem: "r8uj4to",
|
|
81
|
+
checklist: "r8uj4tp",
|
|
82
|
+
listItemChecked: "r8uj4tr",
|
|
83
|
+
listItemUnchecked: "r8uj4tq",
|
|
84
|
+
quote: "r8uj4ts",
|
|
85
|
+
hr: "r8uj4tt",
|
|
86
|
+
tableScrollableWrapper: "r8uj4tu",
|
|
87
|
+
table: "r8uj4tx",
|
|
88
|
+
tableCell: "r8uj4tv",
|
|
89
|
+
tableCellHeader: "r8uj4tw",
|
|
90
|
+
spoiler: "r8uj4ty",
|
|
91
|
+
spoilerRevealed: "r8uj4tz",
|
|
92
|
+
tag: "r8uj4t10",
|
|
93
|
+
comment: "r8uj4t11",
|
|
94
|
+
ruby: "r8uj4t12",
|
|
95
|
+
rubyRt: "r8uj4t13",
|
|
96
|
+
footnote: "r8uj4t14",
|
|
97
|
+
footnoteRef: "r8uj4t15",
|
|
98
|
+
footnoteHighlight: "r8uj4t16",
|
|
99
|
+
footnoteRefWrapper: "r8uj4t17",
|
|
100
|
+
footnoteSection: "r8uj4t18",
|
|
101
|
+
footnoteSectionDivider: "r8uj4t19",
|
|
102
|
+
footnoteSectionList: "r8uj4t1a",
|
|
103
|
+
footnoteSectionItem: "r8uj4t1b",
|
|
104
|
+
footnoteBackRef: "r8uj4t1c",
|
|
105
|
+
footnoteSectionItemEdit: "r8uj4t1d",
|
|
106
|
+
footnoteSectionItemNum: "r8uj4t1e",
|
|
107
|
+
footnoteSectionItemInput: "r8uj4t1f",
|
|
108
|
+
footnoteSectionItemRemove: "r8uj4t1g",
|
|
109
|
+
dragHandle: "r8uj4t1h",
|
|
110
|
+
dropIndicator: "r8uj4t1i",
|
|
111
|
+
alert: "r8uj4t1j"
|
|
112
|
+
};
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/styles/article.css.ts
|
|
115
|
+
var articleVariant = "v10dui1 r8uj4t2 _13h71jk0 v10dui0";
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/styles/comment.css.ts
|
|
118
|
+
var commentVariant = "_14ko36c1 r8uj4t2 _13h71jk2 _14ko36c0";
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/styles/note.css.ts
|
|
121
|
+
var noteVariant = "ys4fw91 r8uj4t2 _13h71jk1 ys4fw90";
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/components/utils.ts
|
|
124
|
+
function clsx(...args) {
|
|
125
|
+
return args.filter(Boolean).join(" ");
|
|
126
|
+
}
|
|
127
|
+
function getVariantClass(variant) {
|
|
128
|
+
if (variant === "comment") return commentVariant;
|
|
129
|
+
if (variant === "note") return noteVariant;
|
|
130
|
+
return articleVariant;
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/styles/katex.css.ts
|
|
134
|
+
var katexClassNames = {
|
|
135
|
+
inline: "rich-katex-inline",
|
|
136
|
+
block: "rich-katex-block",
|
|
137
|
+
fallback: "rich-katex-fallback"
|
|
138
|
+
};
|
|
139
|
+
var katexStyles = {
|
|
140
|
+
inline: "egstxq0",
|
|
141
|
+
block: "egstxq1",
|
|
142
|
+
fallback: "egstxq2"
|
|
143
|
+
};
|
|
144
|
+
//#endregion
|
|
145
|
+
export { noteVariant as a, richContent as c, getVariantClass as i, semanticClassNames as l, katexStyles as n, commentVariant as o, clsx as r, articleVariant as s, katexClassNames as t, sharedStyles as u };
|