@vscode/markdown-editor 0.0.2-6 → 0.0.2-61

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 (39) hide show
  1. package/README.md +26 -0
  2. package/dist/_observables/observableInternal/index.d.ts +1 -1
  3. package/dist/_observables/observableInternal/logging/consoleObservableLogger.d.ts +1 -1
  4. package/dist/_observables/observableInternal/logging/debugger/devToolsLogger.d.ts +1 -1
  5. package/dist/_observables/observableInternal/logging/logging.d.ts +1 -1
  6. package/dist/_observables/observableInternal/reactions/{autorun.d.ts → createEffect.d.ts} +11 -3
  7. package/dist/commands.d.ts +65 -0
  8. package/dist/commands.js +159 -0
  9. package/dist/commands.js.map +1 -0
  10. package/dist/config-BGeaJqWk.js +286 -0
  11. package/dist/config-BGeaJqWk.js.map +1 -0
  12. package/dist/config.d.ts +10 -0
  13. package/dist/config.js +6 -0
  14. package/dist/config.js.map +1 -0
  15. package/dist/index.d.ts +1459 -104
  16. package/dist/index.js +6070 -2000
  17. package/dist/index.js.map +1 -1
  18. package/dist/markdown-editor.css +1 -0
  19. package/dist/observables.js +45 -43
  20. package/dist/observables.js.map +1 -1
  21. package/dist/{runOnChange-C00UIwqQ.js → runOnChange-e7FtCqOQ.js} +115 -111
  22. package/dist/runOnChange-e7FtCqOQ.js.map +1 -0
  23. package/dist/stringEdit-CVDbCUBY.js +215 -0
  24. package/dist/stringEdit-CVDbCUBY.js.map +1 -0
  25. package/dist/web-editors.d.ts +282 -0
  26. package/dist/web-editors.js +7240 -0
  27. package/dist/web-editors.js.map +1 -0
  28. package/package.json +60 -13
  29. package/src/contrib/comments/commentInput.css +150 -0
  30. package/src/contrib/comments/comments.css +129 -0
  31. package/src/contrib/commentsVscode/vscodeCommentWidgetV2.css +171 -0
  32. package/src/contrib/find/find.css +347 -0
  33. package/src/view/editor.css +505 -20
  34. package/src/view/themes/default.css +13 -4
  35. package/src/view/themes/github.css +16 -13
  36. package/src/view/themes/vscode-default.css +397 -0
  37. package/src/view/themes/vscode-github.css +393 -0
  38. package/dist/runOnChange-C00UIwqQ.js.map +0 -1
  39. /package/dist/_observables/observableInternal/reactions/{autorunImpl.d.ts → createEffectImpl.d.ts} +0 -0
@@ -0,0 +1,347 @@
1
+ .md-editor {
2
+ --md-find-widget-background: light-dark(#f3f3f3, #252526);
3
+ --md-find-widget-foreground: light-dark(#616161, #cccccc);
4
+ --md-find-widget-border: light-dark(#c8c8c8, #454545);
5
+ --md-find-widget-shadow: rgba(0, 0, 0, 0.24);
6
+ --md-find-input-background: light-dark(#ffffff, #313131);
7
+ --md-find-input-foreground: light-dark(#3b3b3b, #cccccc);
8
+ --md-find-placeholder-foreground: light-dark(#767676, #a6a6a6);
9
+ --md-find-input-caret: currentColor;
10
+ --md-find-input-border: light-dark(#cecece, #3c3c3c);
11
+ --md-find-count-foreground: light-dark(#616161, #cccccc);
12
+ --md-find-focus-border: light-dark(#0090f1, #007fd4);
13
+ --md-find-button-hover-background: light-dark(rgba(184, 184, 184, 0.31), rgba(90, 93, 94, 0.5));
14
+ --md-find-option-background: light-dark(rgba(0, 144, 241, 0.2), rgba(0, 127, 212, 0.4));
15
+ --md-find-option-border: light-dark(#007acc, #1c9cf0);
16
+ --md-find-option-foreground: light-dark(#000000, #ffffff);
17
+ --md-find-disabled-foreground: light-dark(#9d9d9d, rgba(204, 204, 204, 0.5));
18
+ --md-find-error-border: light-dark(#be1100, #be1100);
19
+ --md-find-error-foreground: light-dark(#a1260d, #f48771);
20
+ --md-find-editor-background: light-dark(#ffffff, #1e1e1e);
21
+ --md-find-match-background: rgba(234, 92, 0, 0.33);
22
+ --md-find-match-fill: color-mix(
23
+ in srgb,
24
+ var(--md-find-editor-background) 85%,
25
+ var(--md-find-match-background)
26
+ );
27
+ --md-find-match-border: color-mix(
28
+ in srgb,
29
+ var(--md-find-widget-foreground) 55%,
30
+ #ea5c00
31
+ );
32
+ --md-find-current-background: light-dark(#a8ac94, #515c6a);
33
+ --md-find-current-fill: color-mix(
34
+ in srgb,
35
+ var(--md-find-editor-background) 90%,
36
+ var(--md-find-current-background)
37
+ );
38
+ --md-find-current-border: color-mix(
39
+ in srgb,
40
+ var(--md-find-widget-foreground) 55%,
41
+ var(--md-find-current-background)
42
+ );
43
+ }
44
+
45
+ ::highlight(md-editor-find-match) {
46
+ background-color: var(--md-find-match-fill);
47
+ }
48
+
49
+ ::highlight(md-editor-find-current) {
50
+ background-color: var(--md-find-current-fill);
51
+ }
52
+
53
+ .md-find-highlight-layer {
54
+ position: absolute;
55
+ inset: 0;
56
+ width: 100%;
57
+ height: 100%;
58
+ overflow: visible;
59
+ pointer-events: none;
60
+ }
61
+
62
+ .md-find-match-rect,
63
+ .md-find-current-rect {
64
+ position: absolute;
65
+ border-radius: 2px;
66
+ }
67
+
68
+ .md-find-match-rect {
69
+ background: transparent;
70
+ outline: 1px solid var(--md-find-match-border);
71
+ outline-offset: -1px;
72
+ }
73
+
74
+ .md-find-current-rect {
75
+ background: transparent;
76
+ outline: 2px solid var(--md-find-current-border);
77
+ outline-offset: -1px;
78
+ }
79
+
80
+ .md-find-zero-width-rect.md-find-match-rect {
81
+ background: var(--md-find-match-fill);
82
+ }
83
+
84
+ .md-find-zero-width-rect.md-find-current-rect {
85
+ background: var(--md-find-current-fill);
86
+ }
87
+
88
+ .md-find-widget-host {
89
+ position: sticky;
90
+ top: 0;
91
+ z-index: 30;
92
+ display: flex;
93
+ height: 0;
94
+ justify-content: flex-end;
95
+ overflow: visible;
96
+ pointer-events: none;
97
+ }
98
+
99
+ .md-find-widget-host[hidden] {
100
+ display: none;
101
+ }
102
+
103
+ .md-editor.md-find-visible .md-find-widget-host {
104
+ height: auto;
105
+ }
106
+
107
+ .md-find-widget {
108
+ display: flex;
109
+ box-sizing: border-box;
110
+ width: min(420px, calc(100% - 8px));
111
+ margin: 4px 4px 0 0;
112
+ padding: 3px 4px;
113
+ align-self: flex-start;
114
+ flex: none;
115
+ flex-direction: column;
116
+ gap: 0;
117
+ color: var(--md-find-widget-foreground);
118
+ background: var(--md-find-widget-background);
119
+ border: 1px solid var(--md-find-widget-border);
120
+ border-radius: var(--vscode-cornerRadius-large, 8px);
121
+ box-shadow: 0 2px 8px var(--md-find-widget-shadow);
122
+ font: 13px/1.4 var(--vscode-font-family, system-ui, sans-serif);
123
+ pointer-events: auto;
124
+ }
125
+
126
+ .md-find-row {
127
+ display: flex;
128
+ min-width: 0;
129
+ align-items: center;
130
+ gap: 2px;
131
+ }
132
+
133
+ .md-find-input-shell {
134
+ display: flex;
135
+ box-sizing: border-box;
136
+ height: 26px;
137
+ min-width: 0;
138
+ flex: 1 1 auto;
139
+ align-items: center;
140
+ color: var(--md-find-input-foreground);
141
+ background: var(--md-find-input-background);
142
+ border: 1px solid var(--md-find-input-border);
143
+ border-radius: var(--vscode-cornerRadius-small, 2px);
144
+ }
145
+
146
+ .md-find-input-shell:focus-within {
147
+ border-color: var(--md-find-focus-border);
148
+ outline: 1px solid var(--md-find-focus-border);
149
+ outline-offset: -1px;
150
+ }
151
+
152
+ .md-find-input-shell.md-find-input-invalid {
153
+ border-color: var(--md-find-error-border);
154
+ outline-color: var(--md-find-error-border);
155
+ }
156
+
157
+ .md-find-input {
158
+ box-sizing: border-box;
159
+ width: 100%;
160
+ min-width: 48px;
161
+ height: 24px;
162
+ min-height: 24px;
163
+ max-height: 80px;
164
+ margin: 0;
165
+ padding: 2px 4px;
166
+ flex: 1 1 auto;
167
+ resize: none;
168
+ overflow: auto;
169
+ color: inherit;
170
+ caret-color: var(--md-find-input-caret);
171
+ background: transparent;
172
+ border: 0;
173
+ border-radius: inherit;
174
+ outline: 0;
175
+ font: inherit;
176
+ line-height: 20px;
177
+ }
178
+
179
+ .md-find-input:focus {
180
+ outline: 0;
181
+ }
182
+
183
+ .md-find-input::placeholder {
184
+ color: var(--md-find-placeholder-foreground);
185
+ opacity: 1;
186
+ }
187
+
188
+ .md-find-input[aria-invalid='true'] {
189
+ outline: 0;
190
+ }
191
+
192
+ .md-find-options {
193
+ display: flex;
194
+ flex: 0 0 auto;
195
+ align-items: center;
196
+ gap: 0;
197
+ padding-right: 1px;
198
+ }
199
+
200
+ .md-find-button {
201
+ display: inline-flex;
202
+ width: 24px;
203
+ height: 24px;
204
+ padding: 0;
205
+ align-items: center;
206
+ justify-content: center;
207
+ color: inherit;
208
+ background: transparent;
209
+ border: 1px solid transparent;
210
+ border-radius: var(--vscode-cornerRadius-small, 5px);
211
+ font: inherit;
212
+ flex: 0 0 24px;
213
+ cursor: pointer;
214
+ }
215
+
216
+ .md-find-button:hover:not(:disabled) {
217
+ background: var(--md-find-button-hover-background);
218
+ }
219
+
220
+ .md-find-button:focus-visible {
221
+ border-color: var(--md-find-focus-border);
222
+ outline: none;
223
+ }
224
+
225
+ .md-find-button:disabled {
226
+ color: var(--md-find-disabled-foreground);
227
+ cursor: default;
228
+ }
229
+
230
+ .md-find-option {
231
+ width: 24px;
232
+ font-size: 11px;
233
+ font-weight: 600;
234
+ letter-spacing: -0.04em;
235
+ }
236
+
237
+ .md-find-option-whole-word {
238
+ text-decoration: underline;
239
+ text-decoration-thickness: 1px;
240
+ text-underline-offset: 2px;
241
+ }
242
+
243
+ .md-find-option-active {
244
+ color: var(--md-find-option-foreground);
245
+ background: var(--md-find-option-background);
246
+ border-color: var(--md-find-option-border);
247
+ }
248
+
249
+ .md-find-option-active:hover:not(:disabled) {
250
+ background: var(--md-find-option-background);
251
+ }
252
+
253
+ .md-find-count {
254
+ min-width: 54px;
255
+ padding-inline: 2px;
256
+ color: var(--md-find-count-foreground, inherit);
257
+ font-variant-numeric: tabular-nums;
258
+ line-height: 22px;
259
+ text-align: center;
260
+ white-space: nowrap;
261
+ }
262
+
263
+ .md-find-error {
264
+ padding: 2px 6px 3px;
265
+ color: var(--md-find-error-foreground);
266
+ font-size: 12px;
267
+ overflow-wrap: anywhere;
268
+ }
269
+
270
+ .md-find-no-results .md-find-count {
271
+ color: var(--md-find-error-foreground);
272
+ }
273
+
274
+ .md-editor.md-find-widget-focused .md-cursor {
275
+ visibility: hidden;
276
+ animation: none;
277
+ }
278
+
279
+ .md-find-has-current-match .md-selection-path {
280
+ fill: transparent;
281
+ }
282
+
283
+ .md-editor.md-find-visible .md-readonly-toggle-host {
284
+ visibility: hidden;
285
+ pointer-events: none;
286
+ }
287
+
288
+ .md-find-compact .md-find-widget {
289
+ width: calc(100% - 4px);
290
+ margin-right: 2px;
291
+ }
292
+
293
+ .md-find-compact .md-find-row {
294
+ flex-wrap: wrap;
295
+ justify-content: flex-end;
296
+ }
297
+
298
+ .md-find-compact .md-find-input {
299
+ width: 100%;
300
+ min-width: 0;
301
+ flex: 1 1 100%;
302
+ }
303
+
304
+ .md-find-compact .md-find-count {
305
+ min-width: 40px;
306
+ margin-right: auto;
307
+ padding-inline: 0;
308
+ }
309
+
310
+ .md-find-compact .md-find-options {
311
+ display: none;
312
+ }
313
+
314
+ .md-find-compact .md-find-input-shell {
315
+ flex: 1 1 100%;
316
+ }
317
+
318
+ @media (forced-colors: active) {
319
+ ::highlight(md-editor-find-match),
320
+ ::highlight(md-editor-find-current) {
321
+ background-color: transparent;
322
+ }
323
+
324
+ .md-find-match-rect {
325
+ forced-color-adjust: none;
326
+ background: transparent;
327
+ outline: 1px solid Highlight;
328
+ }
329
+
330
+ .md-find-current-rect {
331
+ forced-color-adjust: none;
332
+ background: transparent;
333
+ opacity: 1;
334
+ outline: 2px solid Highlight;
335
+ }
336
+
337
+ .md-find-widget,
338
+ .md-find-input,
339
+ .md-find-button {
340
+ border-color: ButtonText;
341
+ }
342
+
343
+ .md-find-option-active {
344
+ color: HighlightText;
345
+ background: Highlight;
346
+ }
347
+ }