@llui/markdown-editor 0.2.13 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/editor.d.ts +7 -0
  2. package/dist/editor.d.ts.map +1 -1
  3. package/dist/editor.js +66 -11
  4. package/dist/editor.js.map +1 -1
  5. package/dist/effects.d.ts +5 -4
  6. package/dist/effects.d.ts.map +1 -1
  7. package/dist/effects.js +11 -6
  8. package/dist/effects.js.map +1 -1
  9. package/dist/format.js.map +1 -1
  10. package/dist/index.d.ts +3 -3
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +3 -3
  13. package/dist/index.js.map +1 -1
  14. package/dist/paste.d.ts.map +1 -1
  15. package/dist/paste.js +5 -0
  16. package/dist/paste.js.map +1 -1
  17. package/dist/plugins/_preview.js.map +1 -1
  18. package/dist/plugins/callout.d.ts.map +1 -1
  19. package/dist/plugins/callout.js +37 -45
  20. package/dist/plugins/callout.js.map +1 -1
  21. package/dist/plugins/context-menu.js.map +1 -1
  22. package/dist/plugins/core.js.map +1 -1
  23. package/dist/plugins/emoji.js.map +1 -1
  24. package/dist/plugins/floating-toolbar.js.map +1 -1
  25. package/dist/plugins/hr.d.ts.map +1 -1
  26. package/dist/plugins/hr.js +4 -7
  27. package/dist/plugins/hr.js.map +1 -1
  28. package/dist/plugins/image.d.ts.map +1 -1
  29. package/dist/plugins/image.js +28 -20
  30. package/dist/plugins/image.js.map +1 -1
  31. package/dist/plugins/inline.js.map +1 -1
  32. package/dist/plugins/link.d.ts.map +1 -1
  33. package/dist/plugins/link.js +16 -9
  34. package/dist/plugins/link.js.map +1 -1
  35. package/dist/plugins/math.d.ts.map +1 -1
  36. package/dist/plugins/math.js +25 -34
  37. package/dist/plugins/math.js.map +1 -1
  38. package/dist/plugins/mention.js.map +1 -1
  39. package/dist/plugins/mermaid.d.ts.map +1 -1
  40. package/dist/plugins/mermaid.js +25 -34
  41. package/dist/plugins/mermaid.js.map +1 -1
  42. package/dist/plugins/overlay.js.map +1 -1
  43. package/dist/plugins/single-block.js.map +1 -1
  44. package/dist/plugins/slash.js.map +1 -1
  45. package/dist/plugins/table.d.ts.map +1 -1
  46. package/dist/plugins/table.js +84 -19
  47. package/dist/plugins/table.js.map +1 -1
  48. package/dist/plugins/types.js.map +1 -1
  49. package/dist/plugins/ui.js.map +1 -1
  50. package/dist/security.d.ts +26 -0
  51. package/dist/security.d.ts.map +1 -0
  52. package/dist/security.js +87 -0
  53. package/dist/security.js.map +1 -0
  54. package/dist/state.js.map +1 -1
  55. package/dist/styles/editor.css +0 -6
  56. package/dist/surfaces/link-dialog.js.map +1 -1
  57. package/dist/surfaces/toolbar.js.map +1 -1
  58. package/dist/theme.d.ts +2 -5
  59. package/dist/theme.d.ts.map +1 -1
  60. package/dist/theme.js +15 -11
  61. package/dist/theme.js.map +1 -1
  62. package/dist/transformers/gfm.d.ts +9 -1
  63. package/dist/transformers/gfm.d.ts.map +1 -1
  64. package/dist/transformers/gfm.js +9 -2
  65. package/dist/transformers/gfm.js.map +1 -1
  66. package/dist/transformers/registry.js.map +1 -1
  67. package/package.json +10 -8
  68. package/src/editor.ts +92 -11
  69. package/src/effects.ts +11 -7
  70. package/src/index.ts +3 -8
  71. package/src/paste.ts +5 -0
  72. package/src/plugins/callout.ts +44 -59
  73. package/src/plugins/hr.ts +4 -14
  74. package/src/plugins/image.ts +32 -29
  75. package/src/plugins/link.ts +20 -10
  76. package/src/plugins/math.ts +27 -41
  77. package/src/plugins/mermaid.ts +26 -45
  78. package/src/plugins/table.ts +94 -17
  79. package/src/security.ts +89 -0
  80. package/src/styles/editor.css +0 -6
  81. package/src/theme.ts +15 -11
  82. package/src/transformers/gfm.ts +10 -2
  83. package/dist/__llui_deps.json +0 -274
@@ -1,274 +0,0 @@
1
- {
2
- "compilerVersion": "0.3.0",
3
- "components": {},
4
- "helpers": {
5
- "editor#markdownEditor": {
6
- "helperLocalPaths": [],
7
- "kind": "view-helper",
8
- "viaParams": [
9
- {
10
- "index": 0,
11
- "reads": [
12
- "changeDebounceMs",
13
- "collab",
14
- "defaultValue",
15
- "namespace",
16
- "onChange",
17
- "onFormatChange",
18
- "pasteMarkdown",
19
- "placeholder",
20
- "plugins",
21
- "plugins.length",
22
- "readonly",
23
- "theme",
24
- "toolbar",
25
- "value"
26
- ],
27
- "shape": "state-value"
28
- }
29
- ]
30
- },
31
- "format#computeFormatState": {
32
- "helperLocalPaths": [],
33
- "kind": "view-helper",
34
- "viaParams": [
35
- {
36
- "index": 0,
37
- "shape": "opaque"
38
- },
39
- {
40
- "index": 1,
41
- "reads": [
42
- "canRedo",
43
- "canUndo"
44
- ],
45
- "shape": "state-value"
46
- }
47
- ]
48
- },
49
- "plugins/callout#calloutPlugin": {
50
- "helperLocalPaths": [],
51
- "kind": "view-helper",
52
- "viaParams": [
53
- {
54
- "index": 0,
55
- "reads": [
56
- "defaultKind"
57
- ],
58
- "shape": "state-value"
59
- }
60
- ]
61
- },
62
- "plugins/emoji#emojiPlugin": {
63
- "helperLocalPaths": [],
64
- "kind": "view-helper",
65
- "viaParams": [
66
- {
67
- "index": 0,
68
- "reads": [
69
- "emoji"
70
- ],
71
- "shape": "state-value"
72
- }
73
- ]
74
- },
75
- "plugins/image#imagePlugin": {
76
- "helperLocalPaths": [],
77
- "kind": "view-helper",
78
- "viaParams": [
79
- {
80
- "index": 0,
81
- "reads": [
82
- "upload"
83
- ],
84
- "shape": "state-value"
85
- }
86
- ]
87
- },
88
- "plugins/link#linkPlugin": {
89
- "helperLocalPaths": [],
90
- "kind": "view-helper",
91
- "viaParams": [
92
- {
93
- "index": 0,
94
- "reads": [
95
- "defaultUrl"
96
- ],
97
- "shape": "state-value"
98
- }
99
- ]
100
- },
101
- "plugins/math#mathPlugin": {
102
- "helperLocalPaths": [],
103
- "kind": "view-helper",
104
- "viaParams": [
105
- {
106
- "index": 0,
107
- "reads": [
108
- "render"
109
- ],
110
- "shape": "state-value"
111
- }
112
- ]
113
- },
114
- "plugins/mention#mentionPlugin": {
115
- "helperLocalPaths": [],
116
- "kind": "view-helper",
117
- "viaParams": [
118
- {
119
- "index": 0,
120
- "reads": [
121
- "source"
122
- ],
123
- "shape": "state-value"
124
- }
125
- ]
126
- },
127
- "plugins/mermaid#mermaidPlugin": {
128
- "helperLocalPaths": [],
129
- "kind": "view-helper",
130
- "viaParams": [
131
- {
132
- "index": 0,
133
- "reads": [
134
- "render"
135
- ],
136
- "shape": "state-value"
137
- }
138
- ]
139
- },
140
- "plugins/overlay#overlayRoot": {
141
- "helperLocalPaths": [],
142
- "kind": "view-helper",
143
- "viaParams": [
144
- {
145
- "index": 0,
146
- "reads": [
147
- "attrs",
148
- "before",
149
- "open",
150
- "transform",
151
- "x",
152
- "y",
153
- "zIndex"
154
- ],
155
- "shape": "state-value"
156
- }
157
- ]
158
- },
159
- "plugins/single-block#singleBlockPlugin": {
160
- "helperLocalPaths": [],
161
- "kind": "view-helper",
162
- "viaParams": [
163
- {
164
- "index": 0,
165
- "reads": [
166
- "allowLineBreaks",
167
- "formats",
168
- "link"
169
- ],
170
- "shape": "state-value"
171
- }
172
- ]
173
- },
174
- "plugins/ui#definePluginUI": {
175
- "helperLocalPaths": [],
176
- "kind": "view-helper",
177
- "viaParams": [
178
- {
179
- "index": 0,
180
- "reads": [
181
- "init",
182
- "onEffect",
183
- "update",
184
- "view"
185
- ],
186
- "shape": "state-value"
187
- }
188
- ]
189
- },
190
- "state#init": {
191
- "helperLocalPaths": [],
192
- "kind": "view-helper",
193
- "viaParams": [
194
- {
195
- "index": 0,
196
- "reads": [
197
- "collab",
198
- "readonly",
199
- "value",
200
- "value.length"
201
- ],
202
- "shape": "state-value"
203
- }
204
- ]
205
- },
206
- "state#update": {
207
- "helperLocalPaths": [],
208
- "kind": "view-helper",
209
- "viaParams": [
210
- {
211
- "index": 0,
212
- "shape": "opaque"
213
- },
214
- {
215
- "index": 1,
216
- "reads": [
217
- "charCount",
218
- "connected",
219
- "format",
220
- "id",
221
- "overlay",
222
- "peers",
223
- "query",
224
- "readonly",
225
- "synced",
226
- "type",
227
- "value",
228
- "wordCount",
229
- "x",
230
- "y"
231
- ],
232
- "shape": "state-value"
233
- }
234
- ]
235
- },
236
- "surfaces/link-dialog#linkDialog": {
237
- "helperLocalPaths": [],
238
- "kind": "view-helper",
239
- "viaParams": [
240
- {
241
- "index": 0,
242
- "reads": [
243
- "dialog",
244
- "id",
245
- "onDialog",
246
- "url"
247
- ],
248
- "shape": "state-value"
249
- }
250
- ]
251
- },
252
- "surfaces/toolbar#toolbar": {
253
- "helperLocalPaths": [],
254
- "kind": "view-helper",
255
- "viaParams": [
256
- {
257
- "index": 0,
258
- "reads": [
259
- "aria-label",
260
- "blockSelect",
261
- "collab",
262
- "format",
263
- "glyphs",
264
- "groups",
265
- "items",
266
- "send"
267
- ],
268
- "shape": "state-value"
269
- }
270
- ]
271
- }
272
- },
273
- "version": 2
274
- }