@stonecrop/code-editor 0.31.0 → 0.33.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.
@@ -1,352 +0,0 @@
1
- import { editor } from 'monaco-editor'
2
-
3
- // picked from https://bitwiser.in/monaco-themes/
4
- // currently set to: Github Light
5
- export const theme: editor.IStandaloneThemeData = {
6
- base: 'vs',
7
- inherit: true,
8
- colors: {
9
- 'editor.foreground': '#24292e',
10
- 'editor.background': '#ffffff',
11
- 'editor.selectionBackground': '#c8c8fa',
12
- 'editor.inactiveSelectionBackground': '#fafbfc',
13
- 'editor.lineHighlightBackground': '#fafbfc',
14
- 'editorCursor.foreground': '#24292e',
15
- 'editorWhitespace.foreground': '#959da5',
16
- 'editorIndentGuide.background': '#959da5',
17
- 'editorIndentGuide.activeBackground': '#24292e',
18
- 'editor.selectionHighlightBorder': '#fafbfc',
19
- },
20
- rules: [
21
- {
22
- background: 'ffffff',
23
- token: '',
24
- },
25
- {
26
- foreground: '6a737d',
27
- token: 'comment',
28
- },
29
- {
30
- foreground: '6a737d',
31
- token: 'punctuation.definition.comment',
32
- },
33
- {
34
- foreground: '6a737d',
35
- token: 'string.comment',
36
- },
37
- {
38
- foreground: '005cc5',
39
- token: 'constant',
40
- },
41
- {
42
- foreground: '005cc5',
43
- token: 'entity.name.constant',
44
- },
45
- {
46
- foreground: '005cc5',
47
- token: 'variable.other.constant',
48
- },
49
- {
50
- foreground: '005cc5',
51
- token: 'variable.language',
52
- },
53
- {
54
- foreground: '6f42c1',
55
- token: 'entity',
56
- },
57
- {
58
- foreground: '6f42c1',
59
- token: 'entity.name',
60
- },
61
- {
62
- foreground: '24292e',
63
- token: 'variable.parameter.function',
64
- },
65
- {
66
- foreground: '22863a',
67
- token: 'entity.name.tag',
68
- },
69
- {
70
- foreground: 'd73a49',
71
- token: 'keyword',
72
- },
73
- {
74
- foreground: 'd73a49',
75
- token: 'storage',
76
- },
77
- {
78
- foreground: 'd73a49',
79
- token: 'storage.type',
80
- },
81
- {
82
- foreground: '24292e',
83
- token: 'storage.modifier.package',
84
- },
85
- {
86
- foreground: '24292e',
87
- token: 'storage.modifier.import',
88
- },
89
- {
90
- foreground: '24292e',
91
- token: 'storage.type.java',
92
- },
93
- {
94
- foreground: '032f62',
95
- token: 'string',
96
- },
97
- {
98
- foreground: '032f62',
99
- token: 'punctuation.definition.string',
100
- },
101
- {
102
- foreground: '032f62',
103
- token: 'string punctuation.section.embedded source',
104
- },
105
- {
106
- foreground: '005cc5',
107
- token: 'support',
108
- },
109
- {
110
- foreground: '005cc5',
111
- token: 'meta.property-name',
112
- },
113
- {
114
- foreground: 'e36209',
115
- token: 'variable',
116
- },
117
- {
118
- foreground: '24292e',
119
- token: 'variable.other',
120
- },
121
- {
122
- foreground: 'b31d28',
123
- fontStyle: 'bold italic underline',
124
- token: 'invalid.broken',
125
- },
126
- {
127
- foreground: 'b31d28',
128
- fontStyle: 'bold italic underline',
129
- token: 'invalid.deprecated',
130
- },
131
- {
132
- foreground: 'fafbfc',
133
- background: 'b31d28',
134
- fontStyle: 'italic underline',
135
- token: 'invalid.illegal',
136
- },
137
- {
138
- foreground: 'fafbfc',
139
- background: 'd73a49',
140
- fontStyle: 'italic underline',
141
- token: 'carriage-return',
142
- },
143
- {
144
- foreground: 'b31d28',
145
- fontStyle: 'bold italic underline',
146
- token: 'invalid.unimplemented',
147
- },
148
- {
149
- foreground: 'b31d28',
150
- token: 'message.error',
151
- },
152
- {
153
- foreground: '24292e',
154
- token: 'string source',
155
- },
156
- {
157
- foreground: '005cc5',
158
- token: 'string variable',
159
- },
160
- {
161
- foreground: '032f62',
162
- token: 'source.regexp',
163
- },
164
- {
165
- foreground: '032f62',
166
- token: 'string.regexp',
167
- },
168
- {
169
- foreground: '032f62',
170
- token: 'string.regexp.character-class',
171
- },
172
- {
173
- foreground: '032f62',
174
- token: 'string.regexp constant.character.escape',
175
- },
176
- {
177
- foreground: '032f62',
178
- token: 'string.regexp source.ruby.embedded',
179
- },
180
- {
181
- foreground: '032f62',
182
- token: 'string.regexp string.regexp.arbitrary-repitition',
183
- },
184
- {
185
- foreground: '22863a',
186
- fontStyle: 'bold',
187
- token: 'string.regexp constant.character.escape',
188
- },
189
- {
190
- foreground: '005cc5',
191
- token: 'support.constant',
192
- },
193
- {
194
- foreground: '005cc5',
195
- token: 'support.variable',
196
- },
197
- {
198
- foreground: '005cc5',
199
- token: 'meta.module-reference',
200
- },
201
- {
202
- foreground: '735c0f',
203
- token: 'markup.list',
204
- },
205
- {
206
- foreground: '005cc5',
207
- fontStyle: 'bold',
208
- token: 'markup.heading',
209
- },
210
- {
211
- foreground: '005cc5',
212
- fontStyle: 'bold',
213
- token: 'markup.heading entity.name',
214
- },
215
- {
216
- foreground: '22863a',
217
- token: 'markup.quote',
218
- },
219
- {
220
- foreground: '24292e',
221
- fontStyle: 'italic',
222
- token: 'markup.italic',
223
- },
224
- {
225
- foreground: '24292e',
226
- fontStyle: 'bold',
227
- token: 'markup.bold',
228
- },
229
- {
230
- foreground: '005cc5',
231
- token: 'markup.raw',
232
- },
233
- {
234
- foreground: 'b31d28',
235
- background: 'ffeef0',
236
- token: 'markup.deleted',
237
- },
238
- {
239
- foreground: 'b31d28',
240
- background: 'ffeef0',
241
- token: 'meta.diff.header.from-file',
242
- },
243
- {
244
- foreground: 'b31d28',
245
- background: 'ffeef0',
246
- token: 'punctuation.definition.deleted',
247
- },
248
- {
249
- foreground: '22863a',
250
- background: 'f0fff4',
251
- token: 'markup.inserted',
252
- },
253
- {
254
- foreground: '22863a',
255
- background: 'f0fff4',
256
- token: 'meta.diff.header.to-file',
257
- },
258
- {
259
- foreground: '22863a',
260
- background: 'f0fff4',
261
- token: 'punctuation.definition.inserted',
262
- },
263
- {
264
- foreground: 'e36209',
265
- background: 'ffebda',
266
- token: 'markup.changed',
267
- },
268
- {
269
- foreground: 'e36209',
270
- background: 'ffebda',
271
- token: 'punctuation.definition.changed',
272
- },
273
- {
274
- foreground: 'f6f8fa',
275
- background: '005cc5',
276
- token: 'markup.ignored',
277
- },
278
- {
279
- foreground: 'f6f8fa',
280
- background: '005cc5',
281
- token: 'markup.untracked',
282
- },
283
- {
284
- foreground: '6f42c1',
285
- fontStyle: 'bold',
286
- token: 'meta.diff.range',
287
- },
288
- {
289
- foreground: '005cc5',
290
- token: 'meta.diff.header',
291
- },
292
- {
293
- foreground: '005cc5',
294
- fontStyle: 'bold',
295
- token: 'meta.separator',
296
- },
297
- {
298
- foreground: '005cc5',
299
- token: 'meta.output',
300
- },
301
- {
302
- foreground: '586069',
303
- token: 'brackethighlighter.tag',
304
- },
305
- {
306
- foreground: '586069',
307
- token: 'brackethighlighter.curly',
308
- },
309
- {
310
- foreground: '586069',
311
- token: 'brackethighlighter.round',
312
- },
313
- {
314
- foreground: '586069',
315
- token: 'brackethighlighter.square',
316
- },
317
- {
318
- foreground: '586069',
319
- token: 'brackethighlighter.angle',
320
- },
321
- {
322
- foreground: '586069',
323
- token: 'brackethighlighter.quote',
324
- },
325
- {
326
- foreground: 'b31d28',
327
- token: 'brackethighlighter.unmatched',
328
- },
329
- {
330
- foreground: 'b31d28',
331
- token: 'sublimelinter.mark.error',
332
- },
333
- {
334
- foreground: 'e36209',
335
- token: 'sublimelinter.mark.warning',
336
- },
337
- {
338
- foreground: '959da5',
339
- token: 'sublimelinter.gutter-mark',
340
- },
341
- {
342
- foreground: '032f62',
343
- fontStyle: 'underline',
344
- token: 'constant.other.reference.link',
345
- },
346
- {
347
- foreground: '032f62',
348
- fontStyle: 'underline',
349
- token: 'string.other.link',
350
- },
351
- ],
352
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * Coerces an unknown value to a string suitable for Monaco's initial content.
3
- * Objects are JSON-stringified with 2-space indentation.
4
- * Null and undefined become empty string.
5
- * Strings pass through unchanged.
6
- * @public
7
- */
8
- export function toEditorString(value: unknown): string {
9
- if (value === null || value === undefined) return ''
10
- if (typeof value === 'string') return value
11
- return JSON.stringify(value, null, 2)
12
- }