draftly 1.0.7 → 2.1.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/README.md +12 -0
- package/dist/chunk-3T55CBNZ.cjs +33 -0
- package/dist/chunk-3T55CBNZ.cjs.map +1 -0
- package/dist/chunk-5MC4T7JH.cjs +58 -0
- package/dist/chunk-5MC4T7JH.cjs.map +1 -0
- package/dist/{chunk-KBQDZ5IW.cjs → chunk-CLW73JRX.cjs} +100 -75
- package/dist/chunk-CLW73JRX.cjs.map +1 -0
- package/dist/{chunk-72ZYRGRT.cjs → chunk-EQUQHE2E.cjs} +30 -26
- package/dist/chunk-EQUQHE2E.cjs.map +1 -0
- package/dist/{chunk-HPSMS2WB.js → chunk-I563H35S.js} +101 -75
- package/dist/chunk-I563H35S.js.map +1 -0
- package/dist/chunk-IAXF4SJL.js +55 -0
- package/dist/chunk-IAXF4SJL.js.map +1 -0
- package/dist/chunk-JF3WXXMJ.js +31 -0
- package/dist/chunk-JF3WXXMJ.js.map +1 -0
- package/dist/{chunk-N3WL3XPB.js → chunk-NRPI5O6Y.js} +2603 -604
- package/dist/chunk-NRPI5O6Y.js.map +1 -0
- package/dist/{chunk-2B3A3VSQ.cjs → chunk-OMFUE4AQ.cjs} +2642 -622
- package/dist/chunk-OMFUE4AQ.cjs.map +1 -0
- package/dist/{chunk-DFQYXFOP.js → chunk-TD3L5C45.js} +28 -3
- package/dist/chunk-TD3L5C45.js.map +1 -0
- package/dist/{chunk-CG4M4TC7.js → chunk-UCHBDJ4R.js} +26 -22
- package/dist/chunk-UCHBDJ4R.js.map +1 -0
- package/dist/{chunk-KDEDLC3D.cjs → chunk-W75QUUQC.cjs} +29 -2
- package/dist/chunk-W75QUUQC.cjs.map +1 -0
- package/dist/{draftly-BLnx3uGX.d.cts → draftly-BBL-AdOl.d.cts} +5 -1
- package/dist/{draftly-BLnx3uGX.d.ts → draftly-BBL-AdOl.d.ts} +5 -1
- package/dist/editor/index.cjs +22 -14
- package/dist/editor/index.d.cts +2 -1
- package/dist/editor/index.d.ts +2 -1
- package/dist/editor/index.js +2 -2
- package/dist/index.cjs +65 -39
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +6 -4
- package/dist/lib/index.cjs +12 -0
- package/dist/lib/index.cjs.map +1 -0
- package/dist/lib/index.d.cts +16 -0
- package/dist/lib/index.d.ts +16 -0
- package/dist/lib/index.js +3 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/plugins/index.cjs +27 -17
- package/dist/plugins/index.d.cts +180 -10
- package/dist/plugins/index.d.ts +180 -10
- package/dist/plugins/index.js +5 -3
- package/dist/preview/index.cjs +16 -11
- package/dist/preview/index.d.cts +19 -4
- package/dist/preview/index.d.ts +19 -4
- package/dist/preview/index.js +3 -2
- package/package.json +8 -1
- package/src/editor/draftly.ts +30 -27
- package/src/editor/plugin.ts +5 -1
- package/src/editor/theme.ts +1 -0
- package/src/editor/utils.ts +33 -0
- package/src/index.ts +5 -4
- package/src/lib/index.ts +2 -0
- package/src/lib/input-handler.ts +45 -0
- package/src/plugins/code-plugin.theme.ts +426 -0
- package/src/plugins/code-plugin.ts +810 -561
- package/src/plugins/emoji-plugin.ts +140 -0
- package/src/plugins/index.ts +63 -57
- package/src/plugins/inline-plugin.ts +305 -291
- package/src/plugins/math-plugin.ts +12 -0
- package/src/plugins/table-plugin.ts +1759 -0
- package/src/preview/context.ts +4 -1
- package/src/preview/css-generator.ts +14 -1
- package/src/preview/index.ts +9 -1
- package/src/preview/preview.ts +2 -1
- package/src/preview/renderer.ts +21 -20
- package/src/preview/syntax-theme.ts +110 -0
- package/src/preview/types.ts +14 -0
- package/dist/chunk-2B3A3VSQ.cjs.map +0 -1
- package/dist/chunk-72ZYRGRT.cjs.map +0 -1
- package/dist/chunk-CG4M4TC7.js.map +0 -1
- package/dist/chunk-DFQYXFOP.js.map +0 -1
- package/dist/chunk-HPSMS2WB.js.map +0 -1
- package/dist/chunk-KBQDZ5IW.cjs.map +0 -1
- package/dist/chunk-KDEDLC3D.cjs.map +0 -1
- package/dist/chunk-N3WL3XPB.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,135 +1,161 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkOMFUE4AQ_cjs = require('./chunk-OMFUE4AQ.cjs');
|
|
4
|
+
var chunkEQUQHE2E_cjs = require('./chunk-EQUQHE2E.cjs');
|
|
5
|
+
var chunk3T55CBNZ_cjs = require('./chunk-3T55CBNZ.cjs');
|
|
6
|
+
var chunk5MC4T7JH_cjs = require('./chunk-5MC4T7JH.cjs');
|
|
7
|
+
var chunkCLW73JRX_cjs = require('./chunk-CLW73JRX.cjs');
|
|
8
|
+
var chunkW75QUUQC_cjs = require('./chunk-W75QUUQC.cjs');
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
Object.defineProperty(exports, "CodePlugin", {
|
|
11
13
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkOMFUE4AQ_cjs.CodePlugin; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "EmojiPlugin", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkOMFUE4AQ_cjs.EmojiPlugin; }
|
|
13
19
|
});
|
|
14
20
|
Object.defineProperty(exports, "HRPlugin", {
|
|
15
21
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkOMFUE4AQ_cjs.HRPlugin; }
|
|
17
23
|
});
|
|
18
24
|
Object.defineProperty(exports, "HTMLPlugin", {
|
|
19
25
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkOMFUE4AQ_cjs.HTMLPlugin; }
|
|
21
27
|
});
|
|
22
28
|
Object.defineProperty(exports, "HeadingPlugin", {
|
|
23
29
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkOMFUE4AQ_cjs.HeadingPlugin; }
|
|
25
31
|
});
|
|
26
32
|
Object.defineProperty(exports, "ImagePlugin", {
|
|
27
33
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkOMFUE4AQ_cjs.ImagePlugin; }
|
|
29
35
|
});
|
|
30
36
|
Object.defineProperty(exports, "InlinePlugin", {
|
|
31
37
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkOMFUE4AQ_cjs.InlinePlugin; }
|
|
33
39
|
});
|
|
34
40
|
Object.defineProperty(exports, "LinkPlugin", {
|
|
35
41
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkOMFUE4AQ_cjs.LinkPlugin; }
|
|
37
43
|
});
|
|
38
44
|
Object.defineProperty(exports, "ListPlugin", {
|
|
39
45
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkOMFUE4AQ_cjs.ListPlugin; }
|
|
41
47
|
});
|
|
42
48
|
Object.defineProperty(exports, "MathPlugin", {
|
|
43
49
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkOMFUE4AQ_cjs.MathPlugin; }
|
|
45
51
|
});
|
|
46
52
|
Object.defineProperty(exports, "MermaidPlugin", {
|
|
47
53
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkOMFUE4AQ_cjs.MermaidPlugin; }
|
|
49
55
|
});
|
|
50
56
|
Object.defineProperty(exports, "ParagraphPlugin", {
|
|
51
57
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkOMFUE4AQ_cjs.ParagraphPlugin; }
|
|
53
59
|
});
|
|
54
60
|
Object.defineProperty(exports, "QuotePlugin", {
|
|
55
61
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkOMFUE4AQ_cjs.QuotePlugin; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "TablePlugin", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return chunkOMFUE4AQ_cjs.TablePlugin; }
|
|
57
67
|
});
|
|
58
68
|
Object.defineProperty(exports, "allPlugins", {
|
|
59
69
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkOMFUE4AQ_cjs.allPlugins; }
|
|
61
71
|
});
|
|
62
72
|
Object.defineProperty(exports, "essentialPlugins", {
|
|
63
73
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkOMFUE4AQ_cjs.essentialPlugins; }
|
|
65
75
|
});
|
|
66
76
|
Object.defineProperty(exports, "DecorationPlugin", {
|
|
67
77
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkEQUQHE2E_cjs.DecorationPlugin; }
|
|
69
79
|
});
|
|
70
80
|
Object.defineProperty(exports, "DraftlyPlugin", {
|
|
71
81
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkEQUQHE2E_cjs.DraftlyPlugin; }
|
|
73
83
|
});
|
|
74
84
|
Object.defineProperty(exports, "SyntaxPlugin", {
|
|
75
85
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkEQUQHE2E_cjs.SyntaxPlugin; }
|
|
77
87
|
});
|
|
78
88
|
Object.defineProperty(exports, "draftly", {
|
|
79
89
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkEQUQHE2E_cjs.draftly; }
|
|
81
91
|
});
|
|
82
92
|
Object.defineProperty(exports, "draftlyBaseTheme", {
|
|
83
93
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkEQUQHE2E_cjs.draftlyBaseTheme; }
|
|
85
95
|
});
|
|
86
96
|
Object.defineProperty(exports, "markdownResetExtension", {
|
|
87
97
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkEQUQHE2E_cjs.markdownResetExtension; }
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "createWrapSelectionInputHandler", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunk3T55CBNZ_cjs.createWrapSelectionInputHandler; }
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(exports, "generateCSS", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function () { return chunk5MC4T7JH_cjs.generateCSS; }
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "preview", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () { return chunk5MC4T7JH_cjs.preview; }
|
|
89
111
|
});
|
|
90
112
|
Object.defineProperty(exports, "PreviewRenderer", {
|
|
91
113
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkCLW73JRX_cjs.PreviewRenderer; }
|
|
93
115
|
});
|
|
94
116
|
Object.defineProperty(exports, "defaultRenderers", {
|
|
95
117
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkCLW73JRX_cjs.defaultRenderers; }
|
|
97
119
|
});
|
|
98
120
|
Object.defineProperty(exports, "escapeHtml", {
|
|
99
121
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(exports, "generateCSS", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function () { return chunkKBQDZ5IW_cjs.generateCSS; }
|
|
122
|
+
get: function () { return chunkCLW73JRX_cjs.escapeHtml; }
|
|
105
123
|
});
|
|
106
|
-
Object.defineProperty(exports, "
|
|
124
|
+
Object.defineProperty(exports, "generateSyntaxThemeCSS", {
|
|
107
125
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkCLW73JRX_cjs.generateSyntaxThemeCSS; }
|
|
109
127
|
});
|
|
110
128
|
Object.defineProperty(exports, "ThemeEnum", {
|
|
111
129
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkW75QUUQC_cjs.ThemeEnum; }
|
|
113
131
|
});
|
|
114
132
|
Object.defineProperty(exports, "createTheme", {
|
|
115
133
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkW75QUUQC_cjs.createTheme; }
|
|
117
135
|
});
|
|
118
136
|
Object.defineProperty(exports, "cursorInRange", {
|
|
119
137
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkW75QUUQC_cjs.cursorInRange; }
|
|
121
139
|
});
|
|
122
140
|
Object.defineProperty(exports, "deepMerge", {
|
|
123
141
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkW75QUUQC_cjs.deepMerge; }
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "fixSelector", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () { return chunkW75QUUQC_cjs.fixSelector; }
|
|
147
|
+
});
|
|
148
|
+
Object.defineProperty(exports, "flattenThemeStyles", {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
get: function () { return chunkW75QUUQC_cjs.flattenThemeStyles; }
|
|
125
151
|
});
|
|
126
152
|
Object.defineProperty(exports, "selectionOverlapsRange", {
|
|
127
153
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkW75QUUQC_cjs.selectionOverlapsRange; }
|
|
129
155
|
});
|
|
130
156
|
Object.defineProperty(exports, "toggleMarkdownStyle", {
|
|
131
157
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkW75QUUQC_cjs.toggleMarkdownStyle; }
|
|
133
159
|
});
|
|
134
160
|
//# sourceMappingURL=index.cjs.map
|
|
135
161
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
export { D as DecorationContext, a as DecorationPlugin, b as DraftlyConfig, c as DraftlyNode, d as DraftlyPlugin, P as PluginConfig, e as PluginContext, S as SyntaxPlugin, T as ThemeEnum, f as ThemeStyle, g as createTheme, h as cursorInRange, i as deepMerge, j as draftly, s as selectionOverlapsRange, t as toggleMarkdownStyle } from './draftly-
|
|
1
|
+
export { D as DecorationContext, a as DecorationPlugin, b as DraftlyConfig, c as DraftlyNode, d as DraftlyPlugin, P as PluginConfig, e as PluginContext, S as SyntaxPlugin, T as ThemeEnum, f as ThemeStyle, g as createTheme, h as cursorInRange, i as deepMerge, j as draftly, k as fixSelector, l as flattenThemeStyles, s as selectionOverlapsRange, t as toggleMarkdownStyle } from './draftly-BBL-AdOl.cjs';
|
|
2
2
|
export { draftlyBaseTheme, markdownResetExtension } from './editor/index.cjs';
|
|
3
|
-
export { CodePlugin, HRPlugin, HTMLPlugin, HeadingPlugin, ImagePlugin, InlinePlugin, LinkPlugin, ListPlugin, MathPlugin, MermaidPlugin, ParagraphPlugin, QuotePlugin, allPlugins, essentialPlugins } from './plugins/index.cjs';
|
|
4
|
-
export { GenerateCSSConfig, NodeRenderer, NodeRendererMap, PreviewConfig, PreviewContext, PreviewRenderer, defaultRenderers, escapeHtml, generateCSS, preview } from './preview/index.cjs';
|
|
3
|
+
export { CodePlugin, EmojiPlugin, HRPlugin, HTMLPlugin, HeadingPlugin, ImagePlugin, InlinePlugin, LinkPlugin, ListPlugin, MathPlugin, MermaidPlugin, ParagraphPlugin, QuotePlugin, TablePlugin, allPlugins, essentialPlugins } from './plugins/index.cjs';
|
|
4
|
+
export { GenerateCSSConfig, NodeRenderer, NodeRendererMap, PreviewConfig, PreviewContext, PreviewRenderer, SyntaxThemeInput, defaultRenderers, escapeHtml, generateCSS, generateSyntaxThemeCSS, preview } from './preview/index.cjs';
|
|
5
|
+
export { WrapSelectionMarkerMap, createWrapSelectionInputHandler } from './lib/index.cjs';
|
|
5
6
|
import '@codemirror/state';
|
|
6
7
|
import '@codemirror/view';
|
|
7
8
|
import '@lezer/markdown';
|
|
9
|
+
import '@lezer/highlight';
|
|
8
10
|
import '@lezer/common';
|
|
9
11
|
import 'style-mod';
|
|
12
|
+
import '@codemirror/language';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
export { D as DecorationContext, a as DecorationPlugin, b as DraftlyConfig, c as DraftlyNode, d as DraftlyPlugin, P as PluginConfig, e as PluginContext, S as SyntaxPlugin, T as ThemeEnum, f as ThemeStyle, g as createTheme, h as cursorInRange, i as deepMerge, j as draftly, s as selectionOverlapsRange, t as toggleMarkdownStyle } from './draftly-
|
|
1
|
+
export { D as DecorationContext, a as DecorationPlugin, b as DraftlyConfig, c as DraftlyNode, d as DraftlyPlugin, P as PluginConfig, e as PluginContext, S as SyntaxPlugin, T as ThemeEnum, f as ThemeStyle, g as createTheme, h as cursorInRange, i as deepMerge, j as draftly, k as fixSelector, l as flattenThemeStyles, s as selectionOverlapsRange, t as toggleMarkdownStyle } from './draftly-BBL-AdOl.js';
|
|
2
2
|
export { draftlyBaseTheme, markdownResetExtension } from './editor/index.js';
|
|
3
|
-
export { CodePlugin, HRPlugin, HTMLPlugin, HeadingPlugin, ImagePlugin, InlinePlugin, LinkPlugin, ListPlugin, MathPlugin, MermaidPlugin, ParagraphPlugin, QuotePlugin, allPlugins, essentialPlugins } from './plugins/index.js';
|
|
4
|
-
export { GenerateCSSConfig, NodeRenderer, NodeRendererMap, PreviewConfig, PreviewContext, PreviewRenderer, defaultRenderers, escapeHtml, generateCSS, preview } from './preview/index.js';
|
|
3
|
+
export { CodePlugin, EmojiPlugin, HRPlugin, HTMLPlugin, HeadingPlugin, ImagePlugin, InlinePlugin, LinkPlugin, ListPlugin, MathPlugin, MermaidPlugin, ParagraphPlugin, QuotePlugin, TablePlugin, allPlugins, essentialPlugins } from './plugins/index.js';
|
|
4
|
+
export { GenerateCSSConfig, NodeRenderer, NodeRendererMap, PreviewConfig, PreviewContext, PreviewRenderer, SyntaxThemeInput, defaultRenderers, escapeHtml, generateCSS, generateSyntaxThemeCSS, preview } from './preview/index.js';
|
|
5
|
+
export { WrapSelectionMarkerMap, createWrapSelectionInputHandler } from './lib/index.js';
|
|
5
6
|
import '@codemirror/state';
|
|
6
7
|
import '@codemirror/view';
|
|
7
8
|
import '@lezer/markdown';
|
|
9
|
+
import '@lezer/highlight';
|
|
8
10
|
import '@lezer/common';
|
|
9
11
|
import 'style-mod';
|
|
12
|
+
import '@codemirror/language';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { CodePlugin, HRPlugin, HTMLPlugin, HeadingPlugin, ImagePlugin, InlinePlugin, LinkPlugin, ListPlugin, MathPlugin, MermaidPlugin, ParagraphPlugin, QuotePlugin, allPlugins, essentialPlugins } from './chunk-
|
|
2
|
-
export { DecorationPlugin, DraftlyPlugin, SyntaxPlugin, draftly, draftlyBaseTheme, markdownResetExtension } from './chunk-
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
1
|
+
export { CodePlugin, EmojiPlugin, HRPlugin, HTMLPlugin, HeadingPlugin, ImagePlugin, InlinePlugin, LinkPlugin, ListPlugin, MathPlugin, MermaidPlugin, ParagraphPlugin, QuotePlugin, TablePlugin, allPlugins, essentialPlugins } from './chunk-NRPI5O6Y.js';
|
|
2
|
+
export { DecorationPlugin, DraftlyPlugin, SyntaxPlugin, draftly, draftlyBaseTheme, markdownResetExtension } from './chunk-UCHBDJ4R.js';
|
|
3
|
+
export { createWrapSelectionInputHandler } from './chunk-JF3WXXMJ.js';
|
|
4
|
+
export { generateCSS, preview } from './chunk-IAXF4SJL.js';
|
|
5
|
+
export { PreviewRenderer, defaultRenderers, escapeHtml, generateSyntaxThemeCSS } from './chunk-I563H35S.js';
|
|
6
|
+
export { ThemeEnum, createTheme, cursorInRange, deepMerge, fixSelector, flattenThemeStyles, selectionOverlapsRange, toggleMarkdownStyle } from './chunk-TD3L5C45.js';
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk3T55CBNZ_cjs = require('../chunk-3T55CBNZ.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "createWrapSelectionInputHandler", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk3T55CBNZ_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 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/plugins/index.cjs
CHANGED
|
@@ -1,66 +1,76 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkOMFUE4AQ_cjs = require('../chunk-OMFUE4AQ.cjs');
|
|
4
|
+
require('../chunk-EQUQHE2E.cjs');
|
|
5
|
+
require('../chunk-3T55CBNZ.cjs');
|
|
6
|
+
require('../chunk-CLW73JRX.cjs');
|
|
7
|
+
require('../chunk-W75QUUQC.cjs');
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
Object.defineProperty(exports, "CodePlugin", {
|
|
10
12
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkOMFUE4AQ_cjs.CodePlugin; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "EmojiPlugin", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkOMFUE4AQ_cjs.EmojiPlugin; }
|
|
12
18
|
});
|
|
13
19
|
Object.defineProperty(exports, "HRPlugin", {
|
|
14
20
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkOMFUE4AQ_cjs.HRPlugin; }
|
|
16
22
|
});
|
|
17
23
|
Object.defineProperty(exports, "HTMLPlugin", {
|
|
18
24
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkOMFUE4AQ_cjs.HTMLPlugin; }
|
|
20
26
|
});
|
|
21
27
|
Object.defineProperty(exports, "HeadingPlugin", {
|
|
22
28
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkOMFUE4AQ_cjs.HeadingPlugin; }
|
|
24
30
|
});
|
|
25
31
|
Object.defineProperty(exports, "ImagePlugin", {
|
|
26
32
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkOMFUE4AQ_cjs.ImagePlugin; }
|
|
28
34
|
});
|
|
29
35
|
Object.defineProperty(exports, "InlinePlugin", {
|
|
30
36
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkOMFUE4AQ_cjs.InlinePlugin; }
|
|
32
38
|
});
|
|
33
39
|
Object.defineProperty(exports, "LinkPlugin", {
|
|
34
40
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkOMFUE4AQ_cjs.LinkPlugin; }
|
|
36
42
|
});
|
|
37
43
|
Object.defineProperty(exports, "ListPlugin", {
|
|
38
44
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkOMFUE4AQ_cjs.ListPlugin; }
|
|
40
46
|
});
|
|
41
47
|
Object.defineProperty(exports, "MathPlugin", {
|
|
42
48
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkOMFUE4AQ_cjs.MathPlugin; }
|
|
44
50
|
});
|
|
45
51
|
Object.defineProperty(exports, "MermaidPlugin", {
|
|
46
52
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkOMFUE4AQ_cjs.MermaidPlugin; }
|
|
48
54
|
});
|
|
49
55
|
Object.defineProperty(exports, "ParagraphPlugin", {
|
|
50
56
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkOMFUE4AQ_cjs.ParagraphPlugin; }
|
|
52
58
|
});
|
|
53
59
|
Object.defineProperty(exports, "QuotePlugin", {
|
|
54
60
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkOMFUE4AQ_cjs.QuotePlugin; }
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "TablePlugin", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () { return chunkOMFUE4AQ_cjs.TablePlugin; }
|
|
56
66
|
});
|
|
57
67
|
Object.defineProperty(exports, "allPlugins", {
|
|
58
68
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkOMFUE4AQ_cjs.allPlugins; }
|
|
60
70
|
});
|
|
61
71
|
Object.defineProperty(exports, "essentialPlugins", {
|
|
62
72
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkOMFUE4AQ_cjs.essentialPlugins; }
|
|
64
74
|
});
|
|
65
75
|
//# sourceMappingURL=index.cjs.map
|
|
66
76
|
//# sourceMappingURL=index.cjs.map
|