mardora 1.2.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.
Files changed (138) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +113 -0
  3. package/dist/chunk-3OCUX4OO.js +7690 -0
  4. package/dist/chunk-3OCUX4OO.js.map +1 -0
  5. package/dist/chunk-3ZOCCFDL.cjs +74 -0
  6. package/dist/chunk-3ZOCCFDL.cjs.map +1 -0
  7. package/dist/chunk-7JOEPNEV.cjs +7740 -0
  8. package/dist/chunk-7JOEPNEV.cjs.map +1 -0
  9. package/dist/chunk-BIKZQZ6W.js +33 -0
  10. package/dist/chunk-BIKZQZ6W.js.map +1 -0
  11. package/dist/chunk-EQJESPP2.js +234 -0
  12. package/dist/chunk-EQJESPP2.js.map +1 -0
  13. package/dist/chunk-G4SE26YY.js +70 -0
  14. package/dist/chunk-G4SE26YY.js.map +1 -0
  15. package/dist/chunk-KNDWF2DP.cjs +35 -0
  16. package/dist/chunk-KNDWF2DP.cjs.map +1 -0
  17. package/dist/chunk-MLBEBFHB.cjs +2971 -0
  18. package/dist/chunk-MLBEBFHB.cjs.map +1 -0
  19. package/dist/chunk-P7JFCYU3.js +905 -0
  20. package/dist/chunk-P7JFCYU3.js.map +1 -0
  21. package/dist/chunk-SWFUKJDO.cjs +243 -0
  22. package/dist/chunk-SWFUKJDO.cjs.map +1 -0
  23. package/dist/chunk-WFVCG4LD.cjs +926 -0
  24. package/dist/chunk-WFVCG4LD.cjs.map +1 -0
  25. package/dist/chunk-XL6WFGJT.js +2901 -0
  26. package/dist/chunk-XL6WFGJT.js.map +1 -0
  27. package/dist/editor/index.cjs +277 -0
  28. package/dist/editor/index.cjs.map +1 -0
  29. package/dist/editor/index.d.cts +186 -0
  30. package/dist/editor/index.d.ts +186 -0
  31. package/dist/editor/index.js +4 -0
  32. package/dist/editor/index.js.map +1 -0
  33. package/dist/index.cjs +405 -0
  34. package/dist/index.cjs.map +1 -0
  35. package/dist/index.d.cts +13 -0
  36. package/dist/index.d.ts +13 -0
  37. package/dist/index.js +8 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/lib/index.cjs +12 -0
  40. package/dist/lib/index.cjs.map +1 -0
  41. package/dist/lib/index.d.cts +16 -0
  42. package/dist/lib/index.d.ts +16 -0
  43. package/dist/lib/index.js +3 -0
  44. package/dist/lib/index.js.map +1 -0
  45. package/dist/mardora-DCwjomil.d.cts +640 -0
  46. package/dist/mardora-DCwjomil.d.ts +640 -0
  47. package/dist/plugins/index.cjs +104 -0
  48. package/dist/plugins/index.cjs.map +1 -0
  49. package/dist/plugins/index.d.cts +740 -0
  50. package/dist/plugins/index.d.ts +740 -0
  51. package/dist/plugins/index.js +7 -0
  52. package/dist/plugins/index.js.map +1 -0
  53. package/dist/preview/index.cjs +38 -0
  54. package/dist/preview/index.cjs.map +1 -0
  55. package/dist/preview/index.d.cts +101 -0
  56. package/dist/preview/index.d.ts +101 -0
  57. package/dist/preview/index.js +5 -0
  58. package/dist/preview/index.js.map +1 -0
  59. package/dist/types-NBsaxl4d.d.cts +71 -0
  60. package/dist/types-Pw2SWWAR.d.ts +71 -0
  61. package/package.json +92 -0
  62. package/src/editor/attachments/extension.ts +181 -0
  63. package/src/editor/attachments/format.ts +63 -0
  64. package/src/editor/attachments/index.ts +3 -0
  65. package/src/editor/attachments/types.ts +37 -0
  66. package/src/editor/heading-fold/config.ts +25 -0
  67. package/src/editor/heading-fold/extension.ts +268 -0
  68. package/src/editor/heading-fold/extract.ts +88 -0
  69. package/src/editor/heading-fold/index.ts +5 -0
  70. package/src/editor/heading-fold/theme.ts +85 -0
  71. package/src/editor/heading-fold/types.ts +24 -0
  72. package/src/editor/i18n.ts +13 -0
  73. package/src/editor/icons/index.ts +367 -0
  74. package/src/editor/index.ts +16 -0
  75. package/src/editor/mardora.ts +257 -0
  76. package/src/editor/media-lightbox-theme.ts +146 -0
  77. package/src/editor/media-lightbox.ts +125 -0
  78. package/src/editor/plugin.ts +294 -0
  79. package/src/editor/selection-toolbar/activation.ts +123 -0
  80. package/src/editor/selection-toolbar/commands.ts +279 -0
  81. package/src/editor/selection-toolbar/extension.ts +564 -0
  82. package/src/editor/selection-toolbar/i18n.ts +164 -0
  83. package/src/editor/selection-toolbar/index.ts +7 -0
  84. package/src/editor/selection-toolbar/menu.ts +252 -0
  85. package/src/editor/selection-toolbar/position.ts +43 -0
  86. package/src/editor/selection-toolbar/theme.ts +195 -0
  87. package/src/editor/selection-toolbar/types.ts +155 -0
  88. package/src/editor/slash/default-commands.ts +190 -0
  89. package/src/editor/slash/extension.ts +319 -0
  90. package/src/editor/slash/index.ts +7 -0
  91. package/src/editor/slash/insertions.ts +26 -0
  92. package/src/editor/slash/menu.ts +123 -0
  93. package/src/editor/slash/position.ts +61 -0
  94. package/src/editor/slash/query.ts +33 -0
  95. package/src/editor/slash/theme.ts +113 -0
  96. package/src/editor/slash/types.ts +40 -0
  97. package/src/editor/table-of-contents/extension.ts +202 -0
  98. package/src/editor/table-of-contents/extract.ts +53 -0
  99. package/src/editor/table-of-contents/index.ts +7 -0
  100. package/src/editor/table-of-contents/panel.ts +83 -0
  101. package/src/editor/table-of-contents/slug.ts +50 -0
  102. package/src/editor/table-of-contents/storage.ts +35 -0
  103. package/src/editor/table-of-contents/theme.ts +153 -0
  104. package/src/editor/table-of-contents/types.ts +44 -0
  105. package/src/editor/theme.ts +72 -0
  106. package/src/editor/utils.ts +176 -0
  107. package/src/editor/view-plugin.ts +189 -0
  108. package/src/index.ts +5 -0
  109. package/src/lib/index.ts +2 -0
  110. package/src/lib/input-handler.ts +47 -0
  111. package/src/plugins/code-plugin.theme.ts +545 -0
  112. package/src/plugins/code-plugin.ts +1892 -0
  113. package/src/plugins/emoji-plugin.ts +140 -0
  114. package/src/plugins/heading-plugin.ts +194 -0
  115. package/src/plugins/hr-plugin.ts +102 -0
  116. package/src/plugins/html-plugin.ts +353 -0
  117. package/src/plugins/image-plugin.ts +806 -0
  118. package/src/plugins/index.ts +71 -0
  119. package/src/plugins/inline-plugin.ts +311 -0
  120. package/src/plugins/link-plugin.ts +509 -0
  121. package/src/plugins/list-plugin.ts +492 -0
  122. package/src/plugins/math-plugin.ts +526 -0
  123. package/src/plugins/mermaid-plugin.ts +513 -0
  124. package/src/plugins/paragraph-plugin.ts +38 -0
  125. package/src/plugins/quote-plugin.ts +733 -0
  126. package/src/plugins/table-controls-theme.ts +126 -0
  127. package/src/plugins/table-controls.ts +423 -0
  128. package/src/plugins/table-model.ts +661 -0
  129. package/src/plugins/table-plugin.ts +2111 -0
  130. package/src/preview/context.ts +45 -0
  131. package/src/preview/css-generator.ts +64 -0
  132. package/src/preview/default-renderers.ts +29 -0
  133. package/src/preview/index.ts +29 -0
  134. package/src/preview/preview.ts +41 -0
  135. package/src/preview/renderer.ts +184 -0
  136. package/src/preview/syntax-theme.ts +112 -0
  137. package/src/preview/toc.ts +23 -0
  138. package/src/preview/types.ts +89 -0
@@ -0,0 +1,277 @@
1
+ 'use strict';
2
+
3
+ var chunkMLBEBFHB_cjs = require('../chunk-MLBEBFHB.cjs');
4
+ var chunkWFVCG4LD_cjs = require('../chunk-WFVCG4LD.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Compartment", {
9
+ enumerable: true,
10
+ get: function () { return chunkMLBEBFHB_cjs.Compartment; }
11
+ });
12
+ Object.defineProperty(exports, "DecorationPlugin", {
13
+ enumerable: true,
14
+ get: function () { return chunkMLBEBFHB_cjs.DecorationPlugin; }
15
+ });
16
+ Object.defineProperty(exports, "EditorSelection", {
17
+ enumerable: true,
18
+ get: function () { return chunkMLBEBFHB_cjs.EditorSelection; }
19
+ });
20
+ Object.defineProperty(exports, "EditorState", {
21
+ enumerable: true,
22
+ get: function () { return chunkMLBEBFHB_cjs.EditorState; }
23
+ });
24
+ Object.defineProperty(exports, "EditorView", {
25
+ enumerable: true,
26
+ get: function () { return chunkMLBEBFHB_cjs.EditorView; }
27
+ });
28
+ Object.defineProperty(exports, "MardoraPlugin", {
29
+ enumerable: true,
30
+ get: function () { return chunkMLBEBFHB_cjs.MardoraPlugin; }
31
+ });
32
+ Object.defineProperty(exports, "StateEffect", {
33
+ enumerable: true,
34
+ get: function () { return chunkMLBEBFHB_cjs.StateEffect; }
35
+ });
36
+ Object.defineProperty(exports, "StateField", {
37
+ enumerable: true,
38
+ get: function () { return chunkMLBEBFHB_cjs.StateField; }
39
+ });
40
+ Object.defineProperty(exports, "SyntaxPlugin", {
41
+ enumerable: true,
42
+ get: function () { return chunkMLBEBFHB_cjs.SyntaxPlugin; }
43
+ });
44
+ Object.defineProperty(exports, "attachments", {
45
+ enumerable: true,
46
+ get: function () { return chunkMLBEBFHB_cjs.attachments; }
47
+ });
48
+ Object.defineProperty(exports, "buildBlockTypeChange", {
49
+ enumerable: true,
50
+ get: function () { return chunkMLBEBFHB_cjs.buildBlockTypeChange; }
51
+ });
52
+ Object.defineProperty(exports, "buildInlineFormatChange", {
53
+ enumerable: true,
54
+ get: function () { return chunkMLBEBFHB_cjs.buildInlineFormatChange; }
55
+ });
56
+ Object.defineProperty(exports, "buildLinkChange", {
57
+ enumerable: true,
58
+ get: function () { return chunkMLBEBFHB_cjs.buildLinkChange; }
59
+ });
60
+ Object.defineProperty(exports, "buildListChange", {
61
+ enumerable: true,
62
+ get: function () { return chunkMLBEBFHB_cjs.buildListChange; }
63
+ });
64
+ Object.defineProperty(exports, "buildSlashReplacement", {
65
+ enumerable: true,
66
+ get: function () { return chunkMLBEBFHB_cjs.buildSlashReplacement; }
67
+ });
68
+ Object.defineProperty(exports, "computeSelectionToolbarLayout", {
69
+ enumerable: true,
70
+ get: function () { return chunkMLBEBFHB_cjs.computeSelectionToolbarLayout; }
71
+ });
72
+ Object.defineProperty(exports, "createSelectionToolbarElement", {
73
+ enumerable: true,
74
+ get: function () { return chunkMLBEBFHB_cjs.createSelectionToolbarElement; }
75
+ });
76
+ Object.defineProperty(exports, "createSlashMenuElement", {
77
+ enumerable: true,
78
+ get: function () { return chunkMLBEBFHB_cjs.createSlashMenuElement; }
79
+ });
80
+ Object.defineProperty(exports, "createSlashRuntimeConfig", {
81
+ enumerable: true,
82
+ get: function () { return chunkMLBEBFHB_cjs.createSlashRuntimeConfig; }
83
+ });
84
+ Object.defineProperty(exports, "createUploadMarker", {
85
+ enumerable: true,
86
+ get: function () { return chunkMLBEBFHB_cjs.createUploadMarker; }
87
+ });
88
+ Object.defineProperty(exports, "defaultMardoraLocale", {
89
+ enumerable: true,
90
+ get: function () { return chunkMLBEBFHB_cjs.defaultMardoraLocale; }
91
+ });
92
+ Object.defineProperty(exports, "defaultSlashCommands", {
93
+ enumerable: true,
94
+ get: function () { return chunkMLBEBFHB_cjs.defaultSlashCommands; }
95
+ });
96
+ Object.defineProperty(exports, "detectAttachmentKind", {
97
+ enumerable: true,
98
+ get: function () { return chunkMLBEBFHB_cjs.detectAttachmentKind; }
99
+ });
100
+ Object.defineProperty(exports, "detectSelectionBlockType", {
101
+ enumerable: true,
102
+ get: function () { return chunkMLBEBFHB_cjs.detectSelectionBlockType; }
103
+ });
104
+ Object.defineProperty(exports, "detectSlashQuery", {
105
+ enumerable: true,
106
+ get: function () { return chunkMLBEBFHB_cjs.detectSlashQuery; }
107
+ });
108
+ Object.defineProperty(exports, "extractHeadingFoldRangesFromState", {
109
+ enumerable: true,
110
+ get: function () { return chunkMLBEBFHB_cjs.extractHeadingFoldRangesFromState; }
111
+ });
112
+ Object.defineProperty(exports, "filterSlashCommands", {
113
+ enumerable: true,
114
+ get: function () { return chunkMLBEBFHB_cjs.filterSlashCommands; }
115
+ });
116
+ Object.defineProperty(exports, "formatAttachmentMarkdown", {
117
+ enumerable: true,
118
+ get: function () { return chunkMLBEBFHB_cjs.formatAttachmentMarkdown; }
119
+ });
120
+ Object.defineProperty(exports, "getDefaultSlashCommands", {
121
+ enumerable: true,
122
+ get: function () { return chunkMLBEBFHB_cjs.getDefaultSlashCommands; }
123
+ });
124
+ Object.defineProperty(exports, "getSelectionToolbarMessages", {
125
+ enumerable: true,
126
+ get: function () { return chunkMLBEBFHB_cjs.getSelectionToolbarMessages; }
127
+ });
128
+ Object.defineProperty(exports, "getSlashMessages", {
129
+ enumerable: true,
130
+ get: function () { return chunkMLBEBFHB_cjs.getSlashMessages; }
131
+ });
132
+ Object.defineProperty(exports, "headingFold", {
133
+ enumerable: true,
134
+ get: function () { return chunkMLBEBFHB_cjs.headingFold; }
135
+ });
136
+ Object.defineProperty(exports, "headingFoldTheme", {
137
+ enumerable: true,
138
+ get: function () { return chunkMLBEBFHB_cjs.headingFoldTheme; }
139
+ });
140
+ Object.defineProperty(exports, "highlightActiveLine", {
141
+ enumerable: true,
142
+ get: function () { return chunkMLBEBFHB_cjs.highlightActiveLine; }
143
+ });
144
+ Object.defineProperty(exports, "isAcceptedAttachment", {
145
+ enumerable: true,
146
+ get: function () { return chunkMLBEBFHB_cjs.isAcceptedAttachment; }
147
+ });
148
+ Object.defineProperty(exports, "keymap", {
149
+ enumerable: true,
150
+ get: function () { return chunkMLBEBFHB_cjs.keymap; }
151
+ });
152
+ Object.defineProperty(exports, "mardora", {
153
+ enumerable: true,
154
+ get: function () { return chunkMLBEBFHB_cjs.mardora; }
155
+ });
156
+ Object.defineProperty(exports, "mardoraBaseTheme", {
157
+ enumerable: true,
158
+ get: function () { return chunkMLBEBFHB_cjs.mardoraBaseTheme; }
159
+ });
160
+ Object.defineProperty(exports, "markdownResetExtension", {
161
+ enumerable: true,
162
+ get: function () { return chunkMLBEBFHB_cjs.markdownResetExtension; }
163
+ });
164
+ Object.defineProperty(exports, "parseSelectedLink", {
165
+ enumerable: true,
166
+ get: function () { return chunkMLBEBFHB_cjs.parseSelectedLink; }
167
+ });
168
+ Object.defineProperty(exports, "resolveHeadingFoldConfig", {
169
+ enumerable: true,
170
+ get: function () { return chunkMLBEBFHB_cjs.resolveHeadingFoldConfig; }
171
+ });
172
+ Object.defineProperty(exports, "resolveMardoraLocale", {
173
+ enumerable: true,
174
+ get: function () { return chunkMLBEBFHB_cjs.resolveMardoraLocale; }
175
+ });
176
+ Object.defineProperty(exports, "selectionToolbar", {
177
+ enumerable: true,
178
+ get: function () { return chunkMLBEBFHB_cjs.selectionToolbar; }
179
+ });
180
+ Object.defineProperty(exports, "selectionToolbarTheme", {
181
+ enumerable: true,
182
+ get: function () { return chunkMLBEBFHB_cjs.selectionToolbarTheme; }
183
+ });
184
+ Object.defineProperty(exports, "slashCommands", {
185
+ enumerable: true,
186
+ get: function () { return chunkMLBEBFHB_cjs.slashCommands; }
187
+ });
188
+ Object.defineProperty(exports, "slashMenuTheme", {
189
+ enumerable: true,
190
+ get: function () { return chunkMLBEBFHB_cjs.slashMenuTheme; }
191
+ });
192
+ Object.defineProperty(exports, "uploadAttachmentFile", {
193
+ enumerable: true,
194
+ get: function () { return chunkMLBEBFHB_cjs.uploadAttachmentFile; }
195
+ });
196
+ Object.defineProperty(exports, "ThemeEnum", {
197
+ enumerable: true,
198
+ get: function () { return chunkWFVCG4LD_cjs.ThemeEnum; }
199
+ });
200
+ Object.defineProperty(exports, "clampTocWidth", {
201
+ enumerable: true,
202
+ get: function () { return chunkWFVCG4LD_cjs.clampTocWidth; }
203
+ });
204
+ Object.defineProperty(exports, "createMardoraIcon", {
205
+ enumerable: true,
206
+ get: function () { return chunkWFVCG4LD_cjs.createMardoraIcon; }
207
+ });
208
+ Object.defineProperty(exports, "createTheme", {
209
+ enumerable: true,
210
+ get: function () { return chunkWFVCG4LD_cjs.createTheme; }
211
+ });
212
+ Object.defineProperty(exports, "createTocPanelElement", {
213
+ enumerable: true,
214
+ get: function () { return chunkWFVCG4LD_cjs.createTocPanelElement; }
215
+ });
216
+ Object.defineProperty(exports, "createTocSlugger", {
217
+ enumerable: true,
218
+ get: function () { return chunkWFVCG4LD_cjs.createTocSlugger; }
219
+ });
220
+ Object.defineProperty(exports, "cursorInRange", {
221
+ enumerable: true,
222
+ get: function () { return chunkWFVCG4LD_cjs.cursorInRange; }
223
+ });
224
+ Object.defineProperty(exports, "deepMerge", {
225
+ enumerable: true,
226
+ get: function () { return chunkWFVCG4LD_cjs.deepMerge; }
227
+ });
228
+ Object.defineProperty(exports, "extractTocItemsFromState", {
229
+ enumerable: true,
230
+ get: function () { return chunkWFVCG4LD_cjs.extractTocItemsFromState; }
231
+ });
232
+ Object.defineProperty(exports, "fixSelector", {
233
+ enumerable: true,
234
+ get: function () { return chunkWFVCG4LD_cjs.fixSelector; }
235
+ });
236
+ Object.defineProperty(exports, "flattenThemeStyles", {
237
+ enumerable: true,
238
+ get: function () { return chunkWFVCG4LD_cjs.flattenThemeStyles; }
239
+ });
240
+ Object.defineProperty(exports, "hasMardoraIcon", {
241
+ enumerable: true,
242
+ get: function () { return chunkWFVCG4LD_cjs.hasMardoraIcon; }
243
+ });
244
+ Object.defineProperty(exports, "readTocPanelState", {
245
+ enumerable: true,
246
+ get: function () { return chunkWFVCG4LD_cjs.readTocPanelState; }
247
+ });
248
+ Object.defineProperty(exports, "resolveTocConfig", {
249
+ enumerable: true,
250
+ get: function () { return chunkWFVCG4LD_cjs.resolveTocConfig; }
251
+ });
252
+ Object.defineProperty(exports, "selectionOverlapsRange", {
253
+ enumerable: true,
254
+ get: function () { return chunkWFVCG4LD_cjs.selectionOverlapsRange; }
255
+ });
256
+ Object.defineProperty(exports, "stripMarkdownHeadingText", {
257
+ enumerable: true,
258
+ get: function () { return chunkWFVCG4LD_cjs.stripMarkdownHeadingText; }
259
+ });
260
+ Object.defineProperty(exports, "tableOfContents", {
261
+ enumerable: true,
262
+ get: function () { return chunkWFVCG4LD_cjs.tableOfContents; }
263
+ });
264
+ Object.defineProperty(exports, "tocTheme", {
265
+ enumerable: true,
266
+ get: function () { return chunkWFVCG4LD_cjs.tocTheme; }
267
+ });
268
+ Object.defineProperty(exports, "toggleMarkdownStyle", {
269
+ enumerable: true,
270
+ get: function () { return chunkWFVCG4LD_cjs.toggleMarkdownStyle; }
271
+ });
272
+ Object.defineProperty(exports, "writeTocPanelState", {
273
+ enumerable: true,
274
+ get: function () { return chunkWFVCG4LD_cjs.writeTocPanelState; }
275
+ });
276
+ //# sourceMappingURL=index.cjs.map
277
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,186 @@
1
+ import * as _codemirror_state from '@codemirror/state';
2
+ import { Extension, ChangeSpec, EditorState } from '@codemirror/state';
3
+ export { ChangeSpec, Compartment, EditorSelection, EditorState, Extension, SelectionRange, StateEffect, StateField, Transaction } from '@codemirror/state';
4
+ export { EditorView, KeyBinding, ViewUpdate, highlightActiveLine, keymap } from '@codemirror/view';
5
+ import { b as MardoraAttachmentKind, i as MardoraFileLike, d as MardoraAttachmentUploadResult, e as MardoraAttachmentUploadSource, f as MardoraAttachmentUploader, g as MardoraAttachmentsConfig, x as MardoraSlashQuery, s as MardoraSlashCommand, o as MardoraLocale, w as MardoraSlashMessages, v as MardoraSlashCommandsConfig, O as SelectionToolbarLayoutInput, N as SelectionToolbarLayout, a1 as TextCommandResult, I as InlineFormatInput, L as LinkChangeInput, T as SelectionToolbarListKind, a0 as TextChange, G as SelectionToolbarBlockType, P as ParsedSelectionLink, V as SelectionToolbarMenuState, U as SelectionToolbarMenuCallbacks, r as MardoraSelectionToolbarConfig, E as ResolvedMardoraTocConfig, y as MardoraTocConfig, a6 as TocStorageAdapter, a5 as TocPanelState, z as MardoraTocItem, j as MardoraHeadingFoldConfig, R as ResolvedMardoraHeadingFoldConfig, l as MardoraHeadingFoldRange } from '../mardora-DCwjomil.cjs';
6
+ export { D as DecorationContext, a as DecorationPlugin, M as MardoraAttachmentAccept, c as MardoraAttachmentUploadContext, h as MardoraConfig, k as MardoraHeadingFoldLevel, m as MardoraI18nConfig, n as MardoraIconName, p as MardoraNode, q as MardoraPlugin, t as MardoraSlashCommandContext, u as MardoraSlashCommandGroup, A as MardoraTocLevel, B as PluginConfig, C as PluginContext, S as SelectionToolbarActionId, F as SelectionToolbarAnchorRect, H as SelectionToolbarBoundary, J as SelectionToolbarButton, K as SelectionToolbarFloatingSize, Q as SelectionToolbarLinkState, W as SelectionToolbarMessages, X as SelectionToolbarPaletteItem, Y as SelectionToolbarPanel, Z as SelectionToolbarPlacement, _ as SelectionToolbarViewport, $ as SyntaxPlugin, a2 as TextSelection, a3 as ThemeEnum, a4 as ThemeStyle, a7 as createMardoraIcon, a8 as createTheme, a9 as cursorInRange, aa as deepMerge, ab as defaultMardoraLocale, ac as fixSelector, ad as flattenThemeStyles, ae as getSelectionToolbarMessages, af as hasMardoraIcon, ag as mardora, ah as resolveMardoraLocale, ai as selectionOverlapsRange, aj as toggleMarkdownStyle } from '../mardora-DCwjomil.cjs';
7
+ import '@lezer/markdown';
8
+ import '@lezer/highlight';
9
+ import '@lezer/common';
10
+ import 'style-mod';
11
+
12
+ type MardoraUploadMarkerState = "uploading" | "failed";
13
+ type MardoraUploadMarkerInput = {
14
+ taskId: string;
15
+ kind: MardoraAttachmentKind;
16
+ name: string;
17
+ state: MardoraUploadMarkerState;
18
+ };
19
+ declare function detectAttachmentKind(file: MardoraFileLike): MardoraAttachmentKind;
20
+ declare function isAcceptedAttachment(file: MardoraFileLike, acceptRules: readonly string[]): boolean;
21
+ declare function createUploadMarker(input: MardoraUploadMarkerInput): string;
22
+ declare function formatAttachmentMarkdown(kind: MardoraAttachmentKind, result: MardoraAttachmentUploadResult): string;
23
+
24
+ type MardoraAttachmentEditorView = {
25
+ state: {
26
+ doc: {
27
+ length: number;
28
+ toString(): string;
29
+ lineAt(position: number): {
30
+ from: number;
31
+ to: number;
32
+ };
33
+ };
34
+ selection: {
35
+ main: {
36
+ from: number;
37
+ to: number;
38
+ };
39
+ };
40
+ };
41
+ dispatch(spec: {
42
+ changes?: {
43
+ from: number;
44
+ to?: number;
45
+ insert?: string;
46
+ } | Array<{
47
+ from: number;
48
+ to?: number;
49
+ insert?: string;
50
+ }>;
51
+ selection?: {
52
+ anchor: number;
53
+ };
54
+ scrollIntoView?: boolean;
55
+ }): void;
56
+ focus?(): void;
57
+ };
58
+ type MardoraUploadAttachmentOptions = {
59
+ kind?: MardoraAttachmentKind;
60
+ source: MardoraAttachmentUploadSource;
61
+ range?: {
62
+ from: number;
63
+ to: number;
64
+ };
65
+ uploader: MardoraAttachmentUploader;
66
+ };
67
+ declare function uploadAttachmentFile(view: MardoraAttachmentEditorView, file: File, options: MardoraUploadAttachmentOptions): Promise<void>;
68
+ declare function attachments(config?: MardoraAttachmentsConfig): Extension[];
69
+
70
+ declare function detectSlashQuery(documentText: string, cursorPosition: number): MardoraSlashQuery | null;
71
+ declare function filterSlashCommands(commands: readonly MardoraSlashCommand[], query: string): MardoraSlashCommand[];
72
+
73
+ type MardoraSlashReplacementTemplate = {
74
+ marker: string;
75
+ cursorOffset: number;
76
+ };
77
+ type MardoraSlashReplacement = {
78
+ changes: ChangeSpec;
79
+ selectionAnchor: number;
80
+ };
81
+ declare function buildSlashReplacement(template: MardoraSlashReplacementTemplate, query: MardoraSlashQuery): MardoraSlashReplacement;
82
+
83
+ declare function getDefaultSlashCommands(locale?: MardoraLocale): MardoraSlashCommand[];
84
+ declare const defaultSlashCommands: MardoraSlashCommand[];
85
+
86
+ type MardoraSlashMenuState = {
87
+ commands: MardoraSlashCommand[];
88
+ activeIndex: number;
89
+ messages: MardoraSlashMessages;
90
+ };
91
+ type MardoraSlashMenuCallbacks = {
92
+ onHover: (index: number) => void;
93
+ onSelect: (index: number) => void;
94
+ };
95
+ declare function getSlashMessages(locale: MardoraLocale): MardoraSlashMessages;
96
+ declare function createSlashMenuElement(state: MardoraSlashMenuState, callbacks: MardoraSlashMenuCallbacks): HTMLElement;
97
+
98
+ declare const slashMenuTheme: _codemirror_state.Extension;
99
+
100
+ type MardoraSlashRuntimeConfig = MardoraSlashCommandsConfig & {
101
+ attachmentUploader?: MardoraAttachmentUploader | undefined;
102
+ inheritedLocale?: MardoraLocale | undefined;
103
+ };
104
+ type ResolvedMardoraSlashRuntimeConfig = Required<Pick<MardoraSlashRuntimeConfig, "commands">> & MardoraSlashRuntimeConfig & {
105
+ locale: MardoraLocale;
106
+ messages: MardoraSlashMessages;
107
+ };
108
+ declare function createSlashRuntimeConfig(config?: MardoraSlashRuntimeConfig): ResolvedMardoraSlashRuntimeConfig;
109
+ declare function slashCommands(config?: MardoraSlashRuntimeConfig): Extension[];
110
+
111
+ declare function computeSelectionToolbarLayout(input: SelectionToolbarLayoutInput): SelectionToolbarLayout;
112
+
113
+ declare function buildInlineFormatChange(input: InlineFormatInput): TextCommandResult;
114
+ declare function parseSelectedLink(text: string): ParsedSelectionLink;
115
+ declare function buildLinkChange(input: LinkChangeInput): TextCommandResult;
116
+ declare function buildListChange(input: {
117
+ doc: string;
118
+ from: number;
119
+ to: number;
120
+ kind: SelectionToolbarListKind;
121
+ }): {
122
+ changes: TextChange[];
123
+ };
124
+ declare function detectSelectionBlockType(input: {
125
+ doc: string;
126
+ from: number;
127
+ to: number;
128
+ }): SelectionToolbarBlockType;
129
+ declare function buildBlockTypeChange(input: {
130
+ doc: string;
131
+ from: number;
132
+ to: number;
133
+ level: 0 | 1 | 2 | 3 | 4 | 5 | 6;
134
+ }): TextCommandResult;
135
+
136
+ declare function createSelectionToolbarElement(state: SelectionToolbarMenuState, callbacks: SelectionToolbarMenuCallbacks): HTMLElement;
137
+
138
+ declare const selectionToolbarTheme: _codemirror_state.Extension;
139
+
140
+ type MardoraSelectionToolbarRuntimeConfig = MardoraSelectionToolbarConfig & {
141
+ inheritedLocale?: MardoraLocale;
142
+ };
143
+ declare function selectionToolbar(config?: MardoraSelectionToolbarRuntimeConfig): Extension[];
144
+
145
+ declare function clampTocWidth(width: number, config: Pick<ResolvedMardoraTocConfig, "minWidth" | "maxWidth">): number;
146
+ declare function resolveTocConfig(config?: MardoraTocConfig): ResolvedMardoraTocConfig;
147
+ declare function createTocSlugger(): (text: string) => string;
148
+
149
+ declare function readTocPanelState(storageKey?: string, storage?: TocStorageAdapter | null): TocPanelState | null;
150
+ declare function writeTocPanelState(storageKey: string | undefined, state: TocPanelState, storage?: TocStorageAdapter | null): void;
151
+
152
+ declare function stripMarkdownHeadingText(text: string): string;
153
+ declare function extractTocItemsFromState(state: EditorState, config?: MardoraTocConfig): MardoraTocItem[];
154
+
155
+ interface TocPanelRenderState {
156
+ expanded: boolean;
157
+ width: number;
158
+ items: MardoraTocItem[];
159
+ }
160
+ interface TocPanelCallbacks {
161
+ onSelect(item: MardoraTocItem): void;
162
+ onToggle(): void;
163
+ onResizeStart(event: MouseEvent): void;
164
+ }
165
+ declare function createTocPanelElement(state: TocPanelRenderState, callbacks: TocPanelCallbacks): HTMLElement;
166
+
167
+ declare const tocTheme: _codemirror_state.Extension;
168
+
169
+ declare function tableOfContents(config?: MardoraTocConfig): Extension[];
170
+
171
+ declare function resolveHeadingFoldConfig(config?: MardoraHeadingFoldConfig): ResolvedMardoraHeadingFoldConfig;
172
+
173
+ declare function extractHeadingFoldRangesFromState(state: EditorState, config?: MardoraHeadingFoldConfig): MardoraHeadingFoldRange[];
174
+
175
+ declare const headingFoldTheme: _codemirror_state.Extension;
176
+
177
+ declare function headingFold(config?: MardoraHeadingFoldConfig): Extension[];
178
+
179
+ /**
180
+ * Base theme for mardora styling
181
+ * Note: Layout styles are scoped under .cm-mardora which is added by the view plugin
182
+ */
183
+ declare const mardoraBaseTheme: _codemirror_state.Extension;
184
+ declare const markdownResetExtension: _codemirror_state.Extension;
185
+
186
+ export { InlineFormatInput, LinkChangeInput, type MardoraAttachmentEditorView, MardoraAttachmentKind, MardoraAttachmentUploadResult, MardoraAttachmentUploadSource, MardoraAttachmentUploader, MardoraAttachmentsConfig, MardoraFileLike, MardoraHeadingFoldConfig, MardoraHeadingFoldRange, MardoraLocale, MardoraSelectionToolbarConfig, MardoraSlashCommand, MardoraSlashCommandsConfig, type MardoraSlashMenuCallbacks, type MardoraSlashMenuState, MardoraSlashMessages, MardoraSlashQuery, type MardoraSlashReplacement, type MardoraSlashReplacementTemplate, type MardoraSlashRuntimeConfig, MardoraTocConfig, MardoraTocItem, type MardoraUploadAttachmentOptions, type MardoraUploadMarkerInput, type MardoraUploadMarkerState, ParsedSelectionLink, ResolvedMardoraHeadingFoldConfig, type ResolvedMardoraSlashRuntimeConfig, ResolvedMardoraTocConfig, SelectionToolbarBlockType, SelectionToolbarLayout, SelectionToolbarLayoutInput, SelectionToolbarListKind, SelectionToolbarMenuCallbacks, SelectionToolbarMenuState, TextChange, TextCommandResult, type TocPanelCallbacks, type TocPanelRenderState, TocPanelState, TocStorageAdapter, attachments, buildBlockTypeChange, buildInlineFormatChange, buildLinkChange, buildListChange, buildSlashReplacement, clampTocWidth, computeSelectionToolbarLayout, createSelectionToolbarElement, createSlashMenuElement, createSlashRuntimeConfig, createTocPanelElement, createTocSlugger, createUploadMarker, defaultSlashCommands, detectAttachmentKind, detectSelectionBlockType, detectSlashQuery, extractHeadingFoldRangesFromState, extractTocItemsFromState, filterSlashCommands, formatAttachmentMarkdown, getDefaultSlashCommands, getSlashMessages, headingFold, headingFoldTheme, isAcceptedAttachment, mardoraBaseTheme, markdownResetExtension, parseSelectedLink, readTocPanelState, resolveHeadingFoldConfig, resolveTocConfig, selectionToolbar, selectionToolbarTheme, slashCommands, slashMenuTheme, stripMarkdownHeadingText, tableOfContents, tocTheme, uploadAttachmentFile, writeTocPanelState };
@@ -0,0 +1,186 @@
1
+ import * as _codemirror_state from '@codemirror/state';
2
+ import { Extension, ChangeSpec, EditorState } from '@codemirror/state';
3
+ export { ChangeSpec, Compartment, EditorSelection, EditorState, Extension, SelectionRange, StateEffect, StateField, Transaction } from '@codemirror/state';
4
+ export { EditorView, KeyBinding, ViewUpdate, highlightActiveLine, keymap } from '@codemirror/view';
5
+ import { b as MardoraAttachmentKind, i as MardoraFileLike, d as MardoraAttachmentUploadResult, e as MardoraAttachmentUploadSource, f as MardoraAttachmentUploader, g as MardoraAttachmentsConfig, x as MardoraSlashQuery, s as MardoraSlashCommand, o as MardoraLocale, w as MardoraSlashMessages, v as MardoraSlashCommandsConfig, O as SelectionToolbarLayoutInput, N as SelectionToolbarLayout, a1 as TextCommandResult, I as InlineFormatInput, L as LinkChangeInput, T as SelectionToolbarListKind, a0 as TextChange, G as SelectionToolbarBlockType, P as ParsedSelectionLink, V as SelectionToolbarMenuState, U as SelectionToolbarMenuCallbacks, r as MardoraSelectionToolbarConfig, E as ResolvedMardoraTocConfig, y as MardoraTocConfig, a6 as TocStorageAdapter, a5 as TocPanelState, z as MardoraTocItem, j as MardoraHeadingFoldConfig, R as ResolvedMardoraHeadingFoldConfig, l as MardoraHeadingFoldRange } from '../mardora-DCwjomil.js';
6
+ export { D as DecorationContext, a as DecorationPlugin, M as MardoraAttachmentAccept, c as MardoraAttachmentUploadContext, h as MardoraConfig, k as MardoraHeadingFoldLevel, m as MardoraI18nConfig, n as MardoraIconName, p as MardoraNode, q as MardoraPlugin, t as MardoraSlashCommandContext, u as MardoraSlashCommandGroup, A as MardoraTocLevel, B as PluginConfig, C as PluginContext, S as SelectionToolbarActionId, F as SelectionToolbarAnchorRect, H as SelectionToolbarBoundary, J as SelectionToolbarButton, K as SelectionToolbarFloatingSize, Q as SelectionToolbarLinkState, W as SelectionToolbarMessages, X as SelectionToolbarPaletteItem, Y as SelectionToolbarPanel, Z as SelectionToolbarPlacement, _ as SelectionToolbarViewport, $ as SyntaxPlugin, a2 as TextSelection, a3 as ThemeEnum, a4 as ThemeStyle, a7 as createMardoraIcon, a8 as createTheme, a9 as cursorInRange, aa as deepMerge, ab as defaultMardoraLocale, ac as fixSelector, ad as flattenThemeStyles, ae as getSelectionToolbarMessages, af as hasMardoraIcon, ag as mardora, ah as resolveMardoraLocale, ai as selectionOverlapsRange, aj as toggleMarkdownStyle } from '../mardora-DCwjomil.js';
7
+ import '@lezer/markdown';
8
+ import '@lezer/highlight';
9
+ import '@lezer/common';
10
+ import 'style-mod';
11
+
12
+ type MardoraUploadMarkerState = "uploading" | "failed";
13
+ type MardoraUploadMarkerInput = {
14
+ taskId: string;
15
+ kind: MardoraAttachmentKind;
16
+ name: string;
17
+ state: MardoraUploadMarkerState;
18
+ };
19
+ declare function detectAttachmentKind(file: MardoraFileLike): MardoraAttachmentKind;
20
+ declare function isAcceptedAttachment(file: MardoraFileLike, acceptRules: readonly string[]): boolean;
21
+ declare function createUploadMarker(input: MardoraUploadMarkerInput): string;
22
+ declare function formatAttachmentMarkdown(kind: MardoraAttachmentKind, result: MardoraAttachmentUploadResult): string;
23
+
24
+ type MardoraAttachmentEditorView = {
25
+ state: {
26
+ doc: {
27
+ length: number;
28
+ toString(): string;
29
+ lineAt(position: number): {
30
+ from: number;
31
+ to: number;
32
+ };
33
+ };
34
+ selection: {
35
+ main: {
36
+ from: number;
37
+ to: number;
38
+ };
39
+ };
40
+ };
41
+ dispatch(spec: {
42
+ changes?: {
43
+ from: number;
44
+ to?: number;
45
+ insert?: string;
46
+ } | Array<{
47
+ from: number;
48
+ to?: number;
49
+ insert?: string;
50
+ }>;
51
+ selection?: {
52
+ anchor: number;
53
+ };
54
+ scrollIntoView?: boolean;
55
+ }): void;
56
+ focus?(): void;
57
+ };
58
+ type MardoraUploadAttachmentOptions = {
59
+ kind?: MardoraAttachmentKind;
60
+ source: MardoraAttachmentUploadSource;
61
+ range?: {
62
+ from: number;
63
+ to: number;
64
+ };
65
+ uploader: MardoraAttachmentUploader;
66
+ };
67
+ declare function uploadAttachmentFile(view: MardoraAttachmentEditorView, file: File, options: MardoraUploadAttachmentOptions): Promise<void>;
68
+ declare function attachments(config?: MardoraAttachmentsConfig): Extension[];
69
+
70
+ declare function detectSlashQuery(documentText: string, cursorPosition: number): MardoraSlashQuery | null;
71
+ declare function filterSlashCommands(commands: readonly MardoraSlashCommand[], query: string): MardoraSlashCommand[];
72
+
73
+ type MardoraSlashReplacementTemplate = {
74
+ marker: string;
75
+ cursorOffset: number;
76
+ };
77
+ type MardoraSlashReplacement = {
78
+ changes: ChangeSpec;
79
+ selectionAnchor: number;
80
+ };
81
+ declare function buildSlashReplacement(template: MardoraSlashReplacementTemplate, query: MardoraSlashQuery): MardoraSlashReplacement;
82
+
83
+ declare function getDefaultSlashCommands(locale?: MardoraLocale): MardoraSlashCommand[];
84
+ declare const defaultSlashCommands: MardoraSlashCommand[];
85
+
86
+ type MardoraSlashMenuState = {
87
+ commands: MardoraSlashCommand[];
88
+ activeIndex: number;
89
+ messages: MardoraSlashMessages;
90
+ };
91
+ type MardoraSlashMenuCallbacks = {
92
+ onHover: (index: number) => void;
93
+ onSelect: (index: number) => void;
94
+ };
95
+ declare function getSlashMessages(locale: MardoraLocale): MardoraSlashMessages;
96
+ declare function createSlashMenuElement(state: MardoraSlashMenuState, callbacks: MardoraSlashMenuCallbacks): HTMLElement;
97
+
98
+ declare const slashMenuTheme: _codemirror_state.Extension;
99
+
100
+ type MardoraSlashRuntimeConfig = MardoraSlashCommandsConfig & {
101
+ attachmentUploader?: MardoraAttachmentUploader | undefined;
102
+ inheritedLocale?: MardoraLocale | undefined;
103
+ };
104
+ type ResolvedMardoraSlashRuntimeConfig = Required<Pick<MardoraSlashRuntimeConfig, "commands">> & MardoraSlashRuntimeConfig & {
105
+ locale: MardoraLocale;
106
+ messages: MardoraSlashMessages;
107
+ };
108
+ declare function createSlashRuntimeConfig(config?: MardoraSlashRuntimeConfig): ResolvedMardoraSlashRuntimeConfig;
109
+ declare function slashCommands(config?: MardoraSlashRuntimeConfig): Extension[];
110
+
111
+ declare function computeSelectionToolbarLayout(input: SelectionToolbarLayoutInput): SelectionToolbarLayout;
112
+
113
+ declare function buildInlineFormatChange(input: InlineFormatInput): TextCommandResult;
114
+ declare function parseSelectedLink(text: string): ParsedSelectionLink;
115
+ declare function buildLinkChange(input: LinkChangeInput): TextCommandResult;
116
+ declare function buildListChange(input: {
117
+ doc: string;
118
+ from: number;
119
+ to: number;
120
+ kind: SelectionToolbarListKind;
121
+ }): {
122
+ changes: TextChange[];
123
+ };
124
+ declare function detectSelectionBlockType(input: {
125
+ doc: string;
126
+ from: number;
127
+ to: number;
128
+ }): SelectionToolbarBlockType;
129
+ declare function buildBlockTypeChange(input: {
130
+ doc: string;
131
+ from: number;
132
+ to: number;
133
+ level: 0 | 1 | 2 | 3 | 4 | 5 | 6;
134
+ }): TextCommandResult;
135
+
136
+ declare function createSelectionToolbarElement(state: SelectionToolbarMenuState, callbacks: SelectionToolbarMenuCallbacks): HTMLElement;
137
+
138
+ declare const selectionToolbarTheme: _codemirror_state.Extension;
139
+
140
+ type MardoraSelectionToolbarRuntimeConfig = MardoraSelectionToolbarConfig & {
141
+ inheritedLocale?: MardoraLocale;
142
+ };
143
+ declare function selectionToolbar(config?: MardoraSelectionToolbarRuntimeConfig): Extension[];
144
+
145
+ declare function clampTocWidth(width: number, config: Pick<ResolvedMardoraTocConfig, "minWidth" | "maxWidth">): number;
146
+ declare function resolveTocConfig(config?: MardoraTocConfig): ResolvedMardoraTocConfig;
147
+ declare function createTocSlugger(): (text: string) => string;
148
+
149
+ declare function readTocPanelState(storageKey?: string, storage?: TocStorageAdapter | null): TocPanelState | null;
150
+ declare function writeTocPanelState(storageKey: string | undefined, state: TocPanelState, storage?: TocStorageAdapter | null): void;
151
+
152
+ declare function stripMarkdownHeadingText(text: string): string;
153
+ declare function extractTocItemsFromState(state: EditorState, config?: MardoraTocConfig): MardoraTocItem[];
154
+
155
+ interface TocPanelRenderState {
156
+ expanded: boolean;
157
+ width: number;
158
+ items: MardoraTocItem[];
159
+ }
160
+ interface TocPanelCallbacks {
161
+ onSelect(item: MardoraTocItem): void;
162
+ onToggle(): void;
163
+ onResizeStart(event: MouseEvent): void;
164
+ }
165
+ declare function createTocPanelElement(state: TocPanelRenderState, callbacks: TocPanelCallbacks): HTMLElement;
166
+
167
+ declare const tocTheme: _codemirror_state.Extension;
168
+
169
+ declare function tableOfContents(config?: MardoraTocConfig): Extension[];
170
+
171
+ declare function resolveHeadingFoldConfig(config?: MardoraHeadingFoldConfig): ResolvedMardoraHeadingFoldConfig;
172
+
173
+ declare function extractHeadingFoldRangesFromState(state: EditorState, config?: MardoraHeadingFoldConfig): MardoraHeadingFoldRange[];
174
+
175
+ declare const headingFoldTheme: _codemirror_state.Extension;
176
+
177
+ declare function headingFold(config?: MardoraHeadingFoldConfig): Extension[];
178
+
179
+ /**
180
+ * Base theme for mardora styling
181
+ * Note: Layout styles are scoped under .cm-mardora which is added by the view plugin
182
+ */
183
+ declare const mardoraBaseTheme: _codemirror_state.Extension;
184
+ declare const markdownResetExtension: _codemirror_state.Extension;
185
+
186
+ export { InlineFormatInput, LinkChangeInput, type MardoraAttachmentEditorView, MardoraAttachmentKind, MardoraAttachmentUploadResult, MardoraAttachmentUploadSource, MardoraAttachmentUploader, MardoraAttachmentsConfig, MardoraFileLike, MardoraHeadingFoldConfig, MardoraHeadingFoldRange, MardoraLocale, MardoraSelectionToolbarConfig, MardoraSlashCommand, MardoraSlashCommandsConfig, type MardoraSlashMenuCallbacks, type MardoraSlashMenuState, MardoraSlashMessages, MardoraSlashQuery, type MardoraSlashReplacement, type MardoraSlashReplacementTemplate, type MardoraSlashRuntimeConfig, MardoraTocConfig, MardoraTocItem, type MardoraUploadAttachmentOptions, type MardoraUploadMarkerInput, type MardoraUploadMarkerState, ParsedSelectionLink, ResolvedMardoraHeadingFoldConfig, type ResolvedMardoraSlashRuntimeConfig, ResolvedMardoraTocConfig, SelectionToolbarBlockType, SelectionToolbarLayout, SelectionToolbarLayoutInput, SelectionToolbarListKind, SelectionToolbarMenuCallbacks, SelectionToolbarMenuState, TextChange, TextCommandResult, type TocPanelCallbacks, type TocPanelRenderState, TocPanelState, TocStorageAdapter, attachments, buildBlockTypeChange, buildInlineFormatChange, buildLinkChange, buildListChange, buildSlashReplacement, clampTocWidth, computeSelectionToolbarLayout, createSelectionToolbarElement, createSlashMenuElement, createSlashRuntimeConfig, createTocPanelElement, createTocSlugger, createUploadMarker, defaultSlashCommands, detectAttachmentKind, detectSelectionBlockType, detectSlashQuery, extractHeadingFoldRangesFromState, extractTocItemsFromState, filterSlashCommands, formatAttachmentMarkdown, getDefaultSlashCommands, getSlashMessages, headingFold, headingFoldTheme, isAcceptedAttachment, mardoraBaseTheme, markdownResetExtension, parseSelectedLink, readTocPanelState, resolveHeadingFoldConfig, resolveTocConfig, selectionToolbar, selectionToolbarTheme, slashCommands, slashMenuTheme, stripMarkdownHeadingText, tableOfContents, tocTheme, uploadAttachmentFile, writeTocPanelState };
@@ -0,0 +1,4 @@
1
+ export { Compartment, DecorationPlugin, EditorSelection, EditorState, EditorView, MardoraPlugin, StateEffect, StateField, SyntaxPlugin, attachments, buildBlockTypeChange, buildInlineFormatChange, buildLinkChange, buildListChange, buildSlashReplacement, computeSelectionToolbarLayout, createSelectionToolbarElement, createSlashMenuElement, createSlashRuntimeConfig, createUploadMarker, defaultMardoraLocale, defaultSlashCommands, detectAttachmentKind, detectSelectionBlockType, detectSlashQuery, extractHeadingFoldRangesFromState, filterSlashCommands, formatAttachmentMarkdown, getDefaultSlashCommands, getSelectionToolbarMessages, getSlashMessages, headingFold, headingFoldTheme, highlightActiveLine, isAcceptedAttachment, keymap, mardora, mardoraBaseTheme, markdownResetExtension, parseSelectedLink, resolveHeadingFoldConfig, resolveMardoraLocale, selectionToolbar, selectionToolbarTheme, slashCommands, slashMenuTheme, uploadAttachmentFile } from '../chunk-XL6WFGJT.js';
2
+ export { ThemeEnum, clampTocWidth, createMardoraIcon, createTheme, createTocPanelElement, createTocSlugger, cursorInRange, deepMerge, extractTocItemsFromState, fixSelector, flattenThemeStyles, hasMardoraIcon, readTocPanelState, resolveTocConfig, selectionOverlapsRange, stripMarkdownHeadingText, tableOfContents, tocTheme, toggleMarkdownStyle, writeTocPanelState } from '../chunk-P7JFCYU3.js';
3
+ //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}