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
package/dist/index.cjs ADDED
@@ -0,0 +1,405 @@
1
+ 'use strict';
2
+
3
+ var chunk3ZOCCFDL_cjs = require('./chunk-3ZOCCFDL.cjs');
4
+ var chunk7JOEPNEV_cjs = require('./chunk-7JOEPNEV.cjs');
5
+ var chunkMLBEBFHB_cjs = require('./chunk-MLBEBFHB.cjs');
6
+ var chunkKNDWF2DP_cjs = require('./chunk-KNDWF2DP.cjs');
7
+ var chunkSWFUKJDO_cjs = require('./chunk-SWFUKJDO.cjs');
8
+ var chunkWFVCG4LD_cjs = require('./chunk-WFVCG4LD.cjs');
9
+
10
+
11
+
12
+ Object.defineProperty(exports, "extractPreviewTocFromMarkdown", {
13
+ enumerable: true,
14
+ get: function () { return chunk3ZOCCFDL_cjs.extractPreviewTocFromMarkdown; }
15
+ });
16
+ Object.defineProperty(exports, "generateCSS", {
17
+ enumerable: true,
18
+ get: function () { return chunk3ZOCCFDL_cjs.generateCSS; }
19
+ });
20
+ Object.defineProperty(exports, "preview", {
21
+ enumerable: true,
22
+ get: function () { return chunk3ZOCCFDL_cjs.preview; }
23
+ });
24
+ Object.defineProperty(exports, "CODE_COPY_SUCCESS_ICON", {
25
+ enumerable: true,
26
+ get: function () { return chunk7JOEPNEV_cjs.CODE_COPY_SUCCESS_ICON; }
27
+ });
28
+ Object.defineProperty(exports, "CodePlugin", {
29
+ enumerable: true,
30
+ get: function () { return chunk7JOEPNEV_cjs.CodePlugin; }
31
+ });
32
+ Object.defineProperty(exports, "EmojiPlugin", {
33
+ enumerable: true,
34
+ get: function () { return chunk7JOEPNEV_cjs.EmojiPlugin; }
35
+ });
36
+ Object.defineProperty(exports, "HRPlugin", {
37
+ enumerable: true,
38
+ get: function () { return chunk7JOEPNEV_cjs.HRPlugin; }
39
+ });
40
+ Object.defineProperty(exports, "HTMLPlugin", {
41
+ enumerable: true,
42
+ get: function () { return chunk7JOEPNEV_cjs.HTMLPlugin; }
43
+ });
44
+ Object.defineProperty(exports, "HeadingPlugin", {
45
+ enumerable: true,
46
+ get: function () { return chunk7JOEPNEV_cjs.HeadingPlugin; }
47
+ });
48
+ Object.defineProperty(exports, "ImagePlugin", {
49
+ enumerable: true,
50
+ get: function () { return chunk7JOEPNEV_cjs.ImagePlugin; }
51
+ });
52
+ Object.defineProperty(exports, "InlinePlugin", {
53
+ enumerable: true,
54
+ get: function () { return chunk7JOEPNEV_cjs.InlinePlugin; }
55
+ });
56
+ Object.defineProperty(exports, "LinkPlugin", {
57
+ enumerable: true,
58
+ get: function () { return chunk7JOEPNEV_cjs.LinkPlugin; }
59
+ });
60
+ Object.defineProperty(exports, "ListPlugin", {
61
+ enumerable: true,
62
+ get: function () { return chunk7JOEPNEV_cjs.ListPlugin; }
63
+ });
64
+ Object.defineProperty(exports, "MathPlugin", {
65
+ enumerable: true,
66
+ get: function () { return chunk7JOEPNEV_cjs.MathPlugin; }
67
+ });
68
+ Object.defineProperty(exports, "MermaidPlugin", {
69
+ enumerable: true,
70
+ get: function () { return chunk7JOEPNEV_cjs.MermaidPlugin; }
71
+ });
72
+ Object.defineProperty(exports, "ParagraphPlugin", {
73
+ enumerable: true,
74
+ get: function () { return chunk7JOEPNEV_cjs.ParagraphPlugin; }
75
+ });
76
+ Object.defineProperty(exports, "QuotePlugin", {
77
+ enumerable: true,
78
+ get: function () { return chunk7JOEPNEV_cjs.QuotePlugin; }
79
+ });
80
+ Object.defineProperty(exports, "TablePlugin", {
81
+ enumerable: true,
82
+ get: function () { return chunk7JOEPNEV_cjs.TablePlugin; }
83
+ });
84
+ Object.defineProperty(exports, "allPlugins", {
85
+ enumerable: true,
86
+ get: function () { return chunk7JOEPNEV_cjs.allPlugins; }
87
+ });
88
+ Object.defineProperty(exports, "bindCodeCopyButtons", {
89
+ enumerable: true,
90
+ get: function () { return chunk7JOEPNEV_cjs.bindCodeCopyButtons; }
91
+ });
92
+ Object.defineProperty(exports, "copyCodeTextToClipboard", {
93
+ enumerable: true,
94
+ get: function () { return chunk7JOEPNEV_cjs.copyCodeTextToClipboard; }
95
+ });
96
+ Object.defineProperty(exports, "decodeCodeCopyPayload", {
97
+ enumerable: true,
98
+ get: function () { return chunk7JOEPNEV_cjs.decodeCodeCopyPayload; }
99
+ });
100
+ Object.defineProperty(exports, "encodeCodeCopyPayload", {
101
+ enumerable: true,
102
+ get: function () { return chunk7JOEPNEV_cjs.encodeCodeCopyPayload; }
103
+ });
104
+ Object.defineProperty(exports, "essentialPlugins", {
105
+ enumerable: true,
106
+ get: function () { return chunk7JOEPNEV_cjs.essentialPlugins; }
107
+ });
108
+ Object.defineProperty(exports, "resolveCalloutTitleInputTarget", {
109
+ enumerable: true,
110
+ get: function () { return chunk7JOEPNEV_cjs.resolveCalloutTitleInputTarget; }
111
+ });
112
+ Object.defineProperty(exports, "resolveCalloutTypeChange", {
113
+ enumerable: true,
114
+ get: function () { return chunk7JOEPNEV_cjs.resolveCalloutTypeChange; }
115
+ });
116
+ Object.defineProperty(exports, "Compartment", {
117
+ enumerable: true,
118
+ get: function () { return chunkMLBEBFHB_cjs.Compartment; }
119
+ });
120
+ Object.defineProperty(exports, "DecorationPlugin", {
121
+ enumerable: true,
122
+ get: function () { return chunkMLBEBFHB_cjs.DecorationPlugin; }
123
+ });
124
+ Object.defineProperty(exports, "EditorSelection", {
125
+ enumerable: true,
126
+ get: function () { return chunkMLBEBFHB_cjs.EditorSelection; }
127
+ });
128
+ Object.defineProperty(exports, "EditorState", {
129
+ enumerable: true,
130
+ get: function () { return chunkMLBEBFHB_cjs.EditorState; }
131
+ });
132
+ Object.defineProperty(exports, "EditorView", {
133
+ enumerable: true,
134
+ get: function () { return chunkMLBEBFHB_cjs.EditorView; }
135
+ });
136
+ Object.defineProperty(exports, "MardoraPlugin", {
137
+ enumerable: true,
138
+ get: function () { return chunkMLBEBFHB_cjs.MardoraPlugin; }
139
+ });
140
+ Object.defineProperty(exports, "StateEffect", {
141
+ enumerable: true,
142
+ get: function () { return chunkMLBEBFHB_cjs.StateEffect; }
143
+ });
144
+ Object.defineProperty(exports, "StateField", {
145
+ enumerable: true,
146
+ get: function () { return chunkMLBEBFHB_cjs.StateField; }
147
+ });
148
+ Object.defineProperty(exports, "SyntaxPlugin", {
149
+ enumerable: true,
150
+ get: function () { return chunkMLBEBFHB_cjs.SyntaxPlugin; }
151
+ });
152
+ Object.defineProperty(exports, "attachments", {
153
+ enumerable: true,
154
+ get: function () { return chunkMLBEBFHB_cjs.attachments; }
155
+ });
156
+ Object.defineProperty(exports, "buildBlockTypeChange", {
157
+ enumerable: true,
158
+ get: function () { return chunkMLBEBFHB_cjs.buildBlockTypeChange; }
159
+ });
160
+ Object.defineProperty(exports, "buildInlineFormatChange", {
161
+ enumerable: true,
162
+ get: function () { return chunkMLBEBFHB_cjs.buildInlineFormatChange; }
163
+ });
164
+ Object.defineProperty(exports, "buildLinkChange", {
165
+ enumerable: true,
166
+ get: function () { return chunkMLBEBFHB_cjs.buildLinkChange; }
167
+ });
168
+ Object.defineProperty(exports, "buildListChange", {
169
+ enumerable: true,
170
+ get: function () { return chunkMLBEBFHB_cjs.buildListChange; }
171
+ });
172
+ Object.defineProperty(exports, "buildSlashReplacement", {
173
+ enumerable: true,
174
+ get: function () { return chunkMLBEBFHB_cjs.buildSlashReplacement; }
175
+ });
176
+ Object.defineProperty(exports, "computeSelectionToolbarLayout", {
177
+ enumerable: true,
178
+ get: function () { return chunkMLBEBFHB_cjs.computeSelectionToolbarLayout; }
179
+ });
180
+ Object.defineProperty(exports, "createSelectionToolbarElement", {
181
+ enumerable: true,
182
+ get: function () { return chunkMLBEBFHB_cjs.createSelectionToolbarElement; }
183
+ });
184
+ Object.defineProperty(exports, "createSlashMenuElement", {
185
+ enumerable: true,
186
+ get: function () { return chunkMLBEBFHB_cjs.createSlashMenuElement; }
187
+ });
188
+ Object.defineProperty(exports, "createSlashRuntimeConfig", {
189
+ enumerable: true,
190
+ get: function () { return chunkMLBEBFHB_cjs.createSlashRuntimeConfig; }
191
+ });
192
+ Object.defineProperty(exports, "createUploadMarker", {
193
+ enumerable: true,
194
+ get: function () { return chunkMLBEBFHB_cjs.createUploadMarker; }
195
+ });
196
+ Object.defineProperty(exports, "defaultMardoraLocale", {
197
+ enumerable: true,
198
+ get: function () { return chunkMLBEBFHB_cjs.defaultMardoraLocale; }
199
+ });
200
+ Object.defineProperty(exports, "defaultSlashCommands", {
201
+ enumerable: true,
202
+ get: function () { return chunkMLBEBFHB_cjs.defaultSlashCommands; }
203
+ });
204
+ Object.defineProperty(exports, "detectAttachmentKind", {
205
+ enumerable: true,
206
+ get: function () { return chunkMLBEBFHB_cjs.detectAttachmentKind; }
207
+ });
208
+ Object.defineProperty(exports, "detectSelectionBlockType", {
209
+ enumerable: true,
210
+ get: function () { return chunkMLBEBFHB_cjs.detectSelectionBlockType; }
211
+ });
212
+ Object.defineProperty(exports, "detectSlashQuery", {
213
+ enumerable: true,
214
+ get: function () { return chunkMLBEBFHB_cjs.detectSlashQuery; }
215
+ });
216
+ Object.defineProperty(exports, "extractHeadingFoldRangesFromState", {
217
+ enumerable: true,
218
+ get: function () { return chunkMLBEBFHB_cjs.extractHeadingFoldRangesFromState; }
219
+ });
220
+ Object.defineProperty(exports, "filterSlashCommands", {
221
+ enumerable: true,
222
+ get: function () { return chunkMLBEBFHB_cjs.filterSlashCommands; }
223
+ });
224
+ Object.defineProperty(exports, "formatAttachmentMarkdown", {
225
+ enumerable: true,
226
+ get: function () { return chunkMLBEBFHB_cjs.formatAttachmentMarkdown; }
227
+ });
228
+ Object.defineProperty(exports, "getDefaultSlashCommands", {
229
+ enumerable: true,
230
+ get: function () { return chunkMLBEBFHB_cjs.getDefaultSlashCommands; }
231
+ });
232
+ Object.defineProperty(exports, "getSelectionToolbarMessages", {
233
+ enumerable: true,
234
+ get: function () { return chunkMLBEBFHB_cjs.getSelectionToolbarMessages; }
235
+ });
236
+ Object.defineProperty(exports, "getSlashMessages", {
237
+ enumerable: true,
238
+ get: function () { return chunkMLBEBFHB_cjs.getSlashMessages; }
239
+ });
240
+ Object.defineProperty(exports, "headingFold", {
241
+ enumerable: true,
242
+ get: function () { return chunkMLBEBFHB_cjs.headingFold; }
243
+ });
244
+ Object.defineProperty(exports, "headingFoldTheme", {
245
+ enumerable: true,
246
+ get: function () { return chunkMLBEBFHB_cjs.headingFoldTheme; }
247
+ });
248
+ Object.defineProperty(exports, "highlightActiveLine", {
249
+ enumerable: true,
250
+ get: function () { return chunkMLBEBFHB_cjs.highlightActiveLine; }
251
+ });
252
+ Object.defineProperty(exports, "isAcceptedAttachment", {
253
+ enumerable: true,
254
+ get: function () { return chunkMLBEBFHB_cjs.isAcceptedAttachment; }
255
+ });
256
+ Object.defineProperty(exports, "keymap", {
257
+ enumerable: true,
258
+ get: function () { return chunkMLBEBFHB_cjs.keymap; }
259
+ });
260
+ Object.defineProperty(exports, "mardora", {
261
+ enumerable: true,
262
+ get: function () { return chunkMLBEBFHB_cjs.mardora; }
263
+ });
264
+ Object.defineProperty(exports, "mardoraBaseTheme", {
265
+ enumerable: true,
266
+ get: function () { return chunkMLBEBFHB_cjs.mardoraBaseTheme; }
267
+ });
268
+ Object.defineProperty(exports, "markdownResetExtension", {
269
+ enumerable: true,
270
+ get: function () { return chunkMLBEBFHB_cjs.markdownResetExtension; }
271
+ });
272
+ Object.defineProperty(exports, "parseSelectedLink", {
273
+ enumerable: true,
274
+ get: function () { return chunkMLBEBFHB_cjs.parseSelectedLink; }
275
+ });
276
+ Object.defineProperty(exports, "resolveHeadingFoldConfig", {
277
+ enumerable: true,
278
+ get: function () { return chunkMLBEBFHB_cjs.resolveHeadingFoldConfig; }
279
+ });
280
+ Object.defineProperty(exports, "resolveMardoraLocale", {
281
+ enumerable: true,
282
+ get: function () { return chunkMLBEBFHB_cjs.resolveMardoraLocale; }
283
+ });
284
+ Object.defineProperty(exports, "selectionToolbar", {
285
+ enumerable: true,
286
+ get: function () { return chunkMLBEBFHB_cjs.selectionToolbar; }
287
+ });
288
+ Object.defineProperty(exports, "selectionToolbarTheme", {
289
+ enumerable: true,
290
+ get: function () { return chunkMLBEBFHB_cjs.selectionToolbarTheme; }
291
+ });
292
+ Object.defineProperty(exports, "slashCommands", {
293
+ enumerable: true,
294
+ get: function () { return chunkMLBEBFHB_cjs.slashCommands; }
295
+ });
296
+ Object.defineProperty(exports, "slashMenuTheme", {
297
+ enumerable: true,
298
+ get: function () { return chunkMLBEBFHB_cjs.slashMenuTheme; }
299
+ });
300
+ Object.defineProperty(exports, "uploadAttachmentFile", {
301
+ enumerable: true,
302
+ get: function () { return chunkMLBEBFHB_cjs.uploadAttachmentFile; }
303
+ });
304
+ Object.defineProperty(exports, "createWrapSelectionInputHandler", {
305
+ enumerable: true,
306
+ get: function () { return chunkKNDWF2DP_cjs.createWrapSelectionInputHandler; }
307
+ });
308
+ Object.defineProperty(exports, "PreviewRenderer", {
309
+ enumerable: true,
310
+ get: function () { return chunkSWFUKJDO_cjs.PreviewRenderer; }
311
+ });
312
+ Object.defineProperty(exports, "defaultRenderers", {
313
+ enumerable: true,
314
+ get: function () { return chunkSWFUKJDO_cjs.defaultRenderers; }
315
+ });
316
+ Object.defineProperty(exports, "escapeHtml", {
317
+ enumerable: true,
318
+ get: function () { return chunkSWFUKJDO_cjs.escapeHtml; }
319
+ });
320
+ Object.defineProperty(exports, "generateSyntaxThemeCSS", {
321
+ enumerable: true,
322
+ get: function () { return chunkSWFUKJDO_cjs.generateSyntaxThemeCSS; }
323
+ });
324
+ Object.defineProperty(exports, "ThemeEnum", {
325
+ enumerable: true,
326
+ get: function () { return chunkWFVCG4LD_cjs.ThemeEnum; }
327
+ });
328
+ Object.defineProperty(exports, "clampTocWidth", {
329
+ enumerable: true,
330
+ get: function () { return chunkWFVCG4LD_cjs.clampTocWidth; }
331
+ });
332
+ Object.defineProperty(exports, "createMardoraIcon", {
333
+ enumerable: true,
334
+ get: function () { return chunkWFVCG4LD_cjs.createMardoraIcon; }
335
+ });
336
+ Object.defineProperty(exports, "createTheme", {
337
+ enumerable: true,
338
+ get: function () { return chunkWFVCG4LD_cjs.createTheme; }
339
+ });
340
+ Object.defineProperty(exports, "createTocPanelElement", {
341
+ enumerable: true,
342
+ get: function () { return chunkWFVCG4LD_cjs.createTocPanelElement; }
343
+ });
344
+ Object.defineProperty(exports, "createTocSlugger", {
345
+ enumerable: true,
346
+ get: function () { return chunkWFVCG4LD_cjs.createTocSlugger; }
347
+ });
348
+ Object.defineProperty(exports, "cursorInRange", {
349
+ enumerable: true,
350
+ get: function () { return chunkWFVCG4LD_cjs.cursorInRange; }
351
+ });
352
+ Object.defineProperty(exports, "deepMerge", {
353
+ enumerable: true,
354
+ get: function () { return chunkWFVCG4LD_cjs.deepMerge; }
355
+ });
356
+ Object.defineProperty(exports, "extractTocItemsFromState", {
357
+ enumerable: true,
358
+ get: function () { return chunkWFVCG4LD_cjs.extractTocItemsFromState; }
359
+ });
360
+ Object.defineProperty(exports, "fixSelector", {
361
+ enumerable: true,
362
+ get: function () { return chunkWFVCG4LD_cjs.fixSelector; }
363
+ });
364
+ Object.defineProperty(exports, "flattenThemeStyles", {
365
+ enumerable: true,
366
+ get: function () { return chunkWFVCG4LD_cjs.flattenThemeStyles; }
367
+ });
368
+ Object.defineProperty(exports, "hasMardoraIcon", {
369
+ enumerable: true,
370
+ get: function () { return chunkWFVCG4LD_cjs.hasMardoraIcon; }
371
+ });
372
+ Object.defineProperty(exports, "readTocPanelState", {
373
+ enumerable: true,
374
+ get: function () { return chunkWFVCG4LD_cjs.readTocPanelState; }
375
+ });
376
+ Object.defineProperty(exports, "resolveTocConfig", {
377
+ enumerable: true,
378
+ get: function () { return chunkWFVCG4LD_cjs.resolveTocConfig; }
379
+ });
380
+ Object.defineProperty(exports, "selectionOverlapsRange", {
381
+ enumerable: true,
382
+ get: function () { return chunkWFVCG4LD_cjs.selectionOverlapsRange; }
383
+ });
384
+ Object.defineProperty(exports, "stripMarkdownHeadingText", {
385
+ enumerable: true,
386
+ get: function () { return chunkWFVCG4LD_cjs.stripMarkdownHeadingText; }
387
+ });
388
+ Object.defineProperty(exports, "tableOfContents", {
389
+ enumerable: true,
390
+ get: function () { return chunkWFVCG4LD_cjs.tableOfContents; }
391
+ });
392
+ Object.defineProperty(exports, "tocTheme", {
393
+ enumerable: true,
394
+ get: function () { return chunkWFVCG4LD_cjs.tocTheme; }
395
+ });
396
+ Object.defineProperty(exports, "toggleMarkdownStyle", {
397
+ enumerable: true,
398
+ get: function () { return chunkWFVCG4LD_cjs.toggleMarkdownStyle; }
399
+ });
400
+ Object.defineProperty(exports, "writeTocPanelState", {
401
+ enumerable: true,
402
+ get: function () { return chunkWFVCG4LD_cjs.writeTocPanelState; }
403
+ });
404
+ //# sourceMappingURL=index.cjs.map
405
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,13 @@
1
+ export { ChangeSpec, Compartment, EditorSelection, EditorState, Extension, SelectionRange, StateEffect, StateField, Transaction } from '@codemirror/state';
2
+ export { EditorView, KeyBinding, ViewUpdate, highlightActiveLine, keymap } from '@codemirror/view';
3
+ export { D as DecorationContext, a as DecorationPlugin, I as InlineFormatInput, L as LinkChangeInput, M as MardoraAttachmentAccept, b as MardoraAttachmentKind, c as MardoraAttachmentUploadContext, d as MardoraAttachmentUploadResult, e as MardoraAttachmentUploadSource, f as MardoraAttachmentUploader, g as MardoraAttachmentsConfig, h as MardoraConfig, i as MardoraFileLike, j as MardoraHeadingFoldConfig, k as MardoraHeadingFoldLevel, l as MardoraHeadingFoldRange, m as MardoraI18nConfig, n as MardoraIconName, o as MardoraLocale, p as MardoraNode, q as MardoraPlugin, r as MardoraSelectionToolbarConfig, s as MardoraSlashCommand, t as MardoraSlashCommandContext, u as MardoraSlashCommandGroup, v as MardoraSlashCommandsConfig, w as MardoraSlashMessages, x as MardoraSlashQuery, y as MardoraTocConfig, z as MardoraTocItem, A as MardoraTocLevel, P as ParsedSelectionLink, B as PluginConfig, C as PluginContext, R as ResolvedMardoraHeadingFoldConfig, E as ResolvedMardoraTocConfig, S as SelectionToolbarActionId, F as SelectionToolbarAnchorRect, G as SelectionToolbarBlockType, H as SelectionToolbarBoundary, J as SelectionToolbarButton, K as SelectionToolbarFloatingSize, N as SelectionToolbarLayout, O as SelectionToolbarLayoutInput, Q as SelectionToolbarLinkState, T as SelectionToolbarListKind, U as SelectionToolbarMenuCallbacks, V as SelectionToolbarMenuState, W as SelectionToolbarMessages, X as SelectionToolbarPaletteItem, Y as SelectionToolbarPanel, Z as SelectionToolbarPlacement, _ as SelectionToolbarViewport, $ as SyntaxPlugin, a0 as TextChange, a1 as TextCommandResult, a2 as TextSelection, a3 as ThemeEnum, a4 as ThemeStyle, a5 as TocPanelState, a6 as TocStorageAdapter, 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';
4
+ export { MardoraAttachmentEditorView, MardoraSlashMenuCallbacks, MardoraSlashMenuState, MardoraSlashReplacement, MardoraSlashReplacementTemplate, MardoraSlashRuntimeConfig, MardoraUploadAttachmentOptions, MardoraUploadMarkerInput, MardoraUploadMarkerState, ResolvedMardoraSlashRuntimeConfig, TocPanelCallbacks, TocPanelRenderState, 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 } from './editor/index.cjs';
5
+ export { CODE_COPY_SUCCESS_ICON, CalloutLabel, CalloutTitleInputTarget, CalloutTypeChange, CodePlugin, EmojiPlugin, HRPlugin, HTMLPlugin, HeadingPlugin, ImagePlugin, InlinePlugin, LinkPlugin, ListPlugin, MathPlugin, MermaidPlugin, ParagraphPlugin, QuotePlugin, TablePlugin, allPlugins, bindCodeCopyButtons, copyCodeTextToClipboard, decodeCodeCopyPayload, encodeCodeCopyPayload, essentialPlugins, resolveCalloutTitleInputTarget, resolveCalloutTypeChange } from './plugins/index.cjs';
6
+ export { PreviewRenderer, defaultRenderers, escapeHtml, extractPreviewTocFromMarkdown, generateCSS, generateSyntaxThemeCSS, preview } from './preview/index.cjs';
7
+ export { G as GenerateCSSConfig, N as NodeRenderer, a as NodeRendererMap, P as PreviewConfig, b as PreviewContext, S as SyntaxThemeInput } from './types-NBsaxl4d.cjs';
8
+ export { WrapSelectionMarkerMap, createWrapSelectionInputHandler } from './lib/index.cjs';
9
+ import '@lezer/markdown';
10
+ import '@lezer/highlight';
11
+ import '@lezer/common';
12
+ import 'style-mod';
13
+ import '@codemirror/language';
@@ -0,0 +1,13 @@
1
+ export { ChangeSpec, Compartment, EditorSelection, EditorState, Extension, SelectionRange, StateEffect, StateField, Transaction } from '@codemirror/state';
2
+ export { EditorView, KeyBinding, ViewUpdate, highlightActiveLine, keymap } from '@codemirror/view';
3
+ export { D as DecorationContext, a as DecorationPlugin, I as InlineFormatInput, L as LinkChangeInput, M as MardoraAttachmentAccept, b as MardoraAttachmentKind, c as MardoraAttachmentUploadContext, d as MardoraAttachmentUploadResult, e as MardoraAttachmentUploadSource, f as MardoraAttachmentUploader, g as MardoraAttachmentsConfig, h as MardoraConfig, i as MardoraFileLike, j as MardoraHeadingFoldConfig, k as MardoraHeadingFoldLevel, l as MardoraHeadingFoldRange, m as MardoraI18nConfig, n as MardoraIconName, o as MardoraLocale, p as MardoraNode, q as MardoraPlugin, r as MardoraSelectionToolbarConfig, s as MardoraSlashCommand, t as MardoraSlashCommandContext, u as MardoraSlashCommandGroup, v as MardoraSlashCommandsConfig, w as MardoraSlashMessages, x as MardoraSlashQuery, y as MardoraTocConfig, z as MardoraTocItem, A as MardoraTocLevel, P as ParsedSelectionLink, B as PluginConfig, C as PluginContext, R as ResolvedMardoraHeadingFoldConfig, E as ResolvedMardoraTocConfig, S as SelectionToolbarActionId, F as SelectionToolbarAnchorRect, G as SelectionToolbarBlockType, H as SelectionToolbarBoundary, J as SelectionToolbarButton, K as SelectionToolbarFloatingSize, N as SelectionToolbarLayout, O as SelectionToolbarLayoutInput, Q as SelectionToolbarLinkState, T as SelectionToolbarListKind, U as SelectionToolbarMenuCallbacks, V as SelectionToolbarMenuState, W as SelectionToolbarMessages, X as SelectionToolbarPaletteItem, Y as SelectionToolbarPanel, Z as SelectionToolbarPlacement, _ as SelectionToolbarViewport, $ as SyntaxPlugin, a0 as TextChange, a1 as TextCommandResult, a2 as TextSelection, a3 as ThemeEnum, a4 as ThemeStyle, a5 as TocPanelState, a6 as TocStorageAdapter, 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';
4
+ export { MardoraAttachmentEditorView, MardoraSlashMenuCallbacks, MardoraSlashMenuState, MardoraSlashReplacement, MardoraSlashReplacementTemplate, MardoraSlashRuntimeConfig, MardoraUploadAttachmentOptions, MardoraUploadMarkerInput, MardoraUploadMarkerState, ResolvedMardoraSlashRuntimeConfig, TocPanelCallbacks, TocPanelRenderState, 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 } from './editor/index.js';
5
+ export { CODE_COPY_SUCCESS_ICON, CalloutLabel, CalloutTitleInputTarget, CalloutTypeChange, CodePlugin, EmojiPlugin, HRPlugin, HTMLPlugin, HeadingPlugin, ImagePlugin, InlinePlugin, LinkPlugin, ListPlugin, MathPlugin, MermaidPlugin, ParagraphPlugin, QuotePlugin, TablePlugin, allPlugins, bindCodeCopyButtons, copyCodeTextToClipboard, decodeCodeCopyPayload, encodeCodeCopyPayload, essentialPlugins, resolveCalloutTitleInputTarget, resolveCalloutTypeChange } from './plugins/index.js';
6
+ export { PreviewRenderer, defaultRenderers, escapeHtml, extractPreviewTocFromMarkdown, generateCSS, generateSyntaxThemeCSS, preview } from './preview/index.js';
7
+ export { G as GenerateCSSConfig, N as NodeRenderer, a as NodeRendererMap, P as PreviewConfig, b as PreviewContext, S as SyntaxThemeInput } from './types-Pw2SWWAR.js';
8
+ export { WrapSelectionMarkerMap, createWrapSelectionInputHandler } from './lib/index.js';
9
+ import '@lezer/markdown';
10
+ import '@lezer/highlight';
11
+ import '@lezer/common';
12
+ import 'style-mod';
13
+ import '@codemirror/language';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ export { extractPreviewTocFromMarkdown, generateCSS, preview } from './chunk-G4SE26YY.js';
2
+ export { CODE_COPY_SUCCESS_ICON, CodePlugin, EmojiPlugin, HRPlugin, HTMLPlugin, HeadingPlugin, ImagePlugin, InlinePlugin, LinkPlugin, ListPlugin, MathPlugin, MermaidPlugin, ParagraphPlugin, QuotePlugin, TablePlugin, allPlugins, bindCodeCopyButtons, copyCodeTextToClipboard, decodeCodeCopyPayload, encodeCodeCopyPayload, essentialPlugins, resolveCalloutTitleInputTarget, resolveCalloutTypeChange } from './chunk-3OCUX4OO.js';
3
+ 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';
4
+ export { createWrapSelectionInputHandler } from './chunk-BIKZQZ6W.js';
5
+ export { PreviewRenderer, defaultRenderers, escapeHtml, generateSyntaxThemeCSS } from './chunk-EQJESPP2.js';
6
+ 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';
7
+ //# sourceMappingURL=index.js.map
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkKNDWF2DP_cjs = require('../chunk-KNDWF2DP.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "createWrapSelectionInputHandler", {
8
+ enumerable: true,
9
+ get: function () { return chunkKNDWF2DP_cjs.createWrapSelectionInputHandler; }
10
+ });
11
+ //# sourceMappingURL=index.cjs.map
12
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,16 @@
1
+ import { Extension } from '@codemirror/state';
2
+
3
+ /**
4
+ * Mapping of typed input characters to surrounding markers.
5
+ *
6
+ * Example:
7
+ * { "*": "*", "=": "==" }
8
+ */
9
+ type WrapSelectionMarkerMap = Record<string, string>;
10
+ /**
11
+ * Creates an input handler that wraps non-empty selections with markdown markers
12
+ * when a mapped character is typed.
13
+ */
14
+ declare function createWrapSelectionInputHandler(markersByInput: WrapSelectionMarkerMap): Extension;
15
+
16
+ export { type WrapSelectionMarkerMap, createWrapSelectionInputHandler };
@@ -0,0 +1,16 @@
1
+ import { Extension } from '@codemirror/state';
2
+
3
+ /**
4
+ * Mapping of typed input characters to surrounding markers.
5
+ *
6
+ * Example:
7
+ * { "*": "*", "=": "==" }
8
+ */
9
+ type WrapSelectionMarkerMap = Record<string, string>;
10
+ /**
11
+ * Creates an input handler that wraps non-empty selections with markdown markers
12
+ * when a mapped character is typed.
13
+ */
14
+ declare function createWrapSelectionInputHandler(markersByInput: WrapSelectionMarkerMap): Extension;
15
+
16
+ export { type WrapSelectionMarkerMap, createWrapSelectionInputHandler };
@@ -0,0 +1,3 @@
1
+ export { createWrapSelectionInputHandler } from '../chunk-BIKZQZ6W.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}