@sanity/code-input 2.35.0 → 2.36.0-v2-studio.1

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 (59) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +12 -1
  3. package/{dist/dts → dts}/CodeInput.d.ts +0 -1
  4. package/{dist/dts → dts}/PreviewCode.d.ts +0 -1
  5. package/{dist/dts → dts}/config.d.ts +0 -1
  6. package/{dist/dts → dts}/createHighlightMarkers.d.ts +0 -1
  7. package/{dist/dts → dts}/deprecatedSchema.d.ts +0 -1
  8. package/{dist/dts → dts}/editorSupport.d.ts +0 -1
  9. package/{dist/dts → dts}/getMedia.d.ts +0 -1
  10. package/dts/groq.d.ts +1 -0
  11. package/{dist/dts → dts}/schema.d.ts +1 -2
  12. package/{dist/dts → dts}/types.d.ts +0 -1
  13. package/lib/@types/css.d.js +2 -1
  14. package/lib/@types/css.d.js.map +1 -0
  15. package/lib/CodeInput.js +2 -1
  16. package/lib/CodeInput.js.map +1 -0
  17. package/lib/PreviewCode.js +2 -1
  18. package/lib/PreviewCode.js.map +1 -0
  19. package/lib/config.js +2 -1
  20. package/lib/config.js.map +1 -0
  21. package/lib/createHighlightMarkers.js +2 -1
  22. package/lib/createHighlightMarkers.js.map +1 -0
  23. package/lib/deprecatedSchema.js +2 -1
  24. package/lib/deprecatedSchema.js.map +1 -0
  25. package/lib/editorSupport.js +2 -1
  26. package/lib/editorSupport.js.map +1 -0
  27. package/lib/getMedia.js +2 -1
  28. package/lib/getMedia.js.map +1 -0
  29. package/lib/groq.js +5 -1
  30. package/lib/groq.js.map +1 -0
  31. package/lib/schema.js +2 -1
  32. package/lib/schema.js.map +1 -0
  33. package/lib/types.js +1 -4
  34. package/lib/types.js.map +1 -0
  35. package/package.json +54 -21
  36. package/sanity.json +4 -4
  37. package/src/@types/css.d.ts +5 -0
  38. package/src/CodeInput.tsx +447 -0
  39. package/src/PreviewCode.tsx +88 -0
  40. package/src/config.ts +45 -0
  41. package/src/createHighlightMarkers.ts +24 -0
  42. package/src/deprecatedSchema.ts +19 -0
  43. package/src/editorSupport.ts +31 -0
  44. package/src/getMedia.tsx +95 -0
  45. package/src/groq.ts +629 -0
  46. package/src/schema.tsx +65 -0
  47. package/src/types.ts +26 -0
  48. package/dist/dts/CodeInput.d.ts.map +0 -1
  49. package/dist/dts/PreviewCode.d.ts.map +0 -1
  50. package/dist/dts/config.d.ts.map +0 -1
  51. package/dist/dts/createHighlightMarkers.d.ts.map +0 -1
  52. package/dist/dts/deprecatedSchema.d.ts.map +0 -1
  53. package/dist/dts/editorSupport.d.ts.map +0 -1
  54. package/dist/dts/getMedia.d.ts.map +0 -1
  55. package/dist/dts/groq.d.ts +0 -376
  56. package/dist/dts/groq.d.ts.map +0 -1
  57. package/dist/dts/schema.d.ts.map +0 -1
  58. package/dist/dts/types.d.ts.map +0 -1
  59. package/tsconfig.json +0 -26
package/src/groq.ts ADDED
@@ -0,0 +1,629 @@
1
+ /* eslint-disable no-undef */
2
+ // Grammar from https://github.com/sanity-io/vscode-sanity
3
+ const rules = {
4
+ start: [
5
+ {
6
+ include: '#query',
7
+ },
8
+ {
9
+ include: '#value',
10
+ },
11
+ {
12
+ include: '#pair',
13
+ },
14
+ ],
15
+ '#query': [
16
+ {
17
+ include: '#nullary-access-operator',
18
+ },
19
+ {
20
+ include: '#arraylike',
21
+ },
22
+ {
23
+ include: '#pipe',
24
+ },
25
+ {
26
+ include: '#sort-order',
27
+ },
28
+ {
29
+ include: '#filter',
30
+ },
31
+ ],
32
+ '#variable': [
33
+ {
34
+ token: 'variable.other.groq',
35
+ regex: /\$[_A-Za-z][_0-9A-Za-z]*/,
36
+ },
37
+ ],
38
+ '#keyword': [
39
+ {
40
+ token: 'keyword.other.groq',
41
+ regex: /\b(?:asc|desc|in|match)\b/,
42
+ },
43
+ ],
44
+ '#comparison': [
45
+ {
46
+ token: 'keyword.operator.comparison.groq',
47
+ // eslint-disable-next-line no-div-regex
48
+ regex: /==|!=|>=|<=|<!=>|<|>/,
49
+ },
50
+ ],
51
+ '#operator': [
52
+ {
53
+ token: 'keyword.operator.arithmetic.groq',
54
+ regex: /\+|-|\*{1,2}|\/|%/,
55
+ },
56
+ ],
57
+ '#pipe': [
58
+ {
59
+ token: 'keyword.operator.pipe.groq',
60
+ regex: /\|/,
61
+ },
62
+ ],
63
+ '#logical': [
64
+ {
65
+ token: 'keyword.operator.logical.groq',
66
+ regex: /!|&&|\|\|/,
67
+ },
68
+ ],
69
+ '#reference': [
70
+ {
71
+ token: 'keyword.operator.reference.groq',
72
+ regex: /->/,
73
+ },
74
+ ],
75
+ '#pair': [
76
+ {
77
+ include: '#identifier',
78
+ },
79
+ {
80
+ include: '#value',
81
+ },
82
+ {
83
+ include: '#filter',
84
+ },
85
+ {
86
+ token: 'keyword.operator.pair.groq',
87
+ regex: /[=]>/,
88
+ },
89
+ ],
90
+ '#arraylike': [
91
+ {
92
+ token: 'punctuation.definition.bracket.begin.groq',
93
+ regex: /\[/,
94
+ push: [
95
+ {
96
+ token: ['text', 'keyword.operator.descendant.groq'],
97
+ regex: /(\])((?:\s*\.)?)/,
98
+ next: 'pop',
99
+ },
100
+ {
101
+ include: '#range',
102
+ },
103
+ {
104
+ include: '#filter',
105
+ },
106
+ {
107
+ include: '#array-values',
108
+ },
109
+ ],
110
+ },
111
+ ],
112
+ '#array': [
113
+ {
114
+ token: 'punctuation.definition.bracket.begin.groq',
115
+ regex: /\[/,
116
+ push: [
117
+ {
118
+ token: 'punctuation.definition.bracket.end.groq',
119
+ regex: /\]/,
120
+ next: 'pop',
121
+ },
122
+ {
123
+ include: '#array-values',
124
+ },
125
+ {
126
+ defaultToken: 'meta.structure.array.groq',
127
+ },
128
+ ],
129
+ },
130
+ ],
131
+ '#range': [
132
+ {
133
+ token: [
134
+ 'meta.structure.range.groq',
135
+ 'constant.numeric.groq',
136
+ 'meta.structure.range.groq',
137
+ 'keyword.operator.range.groq',
138
+ 'meta.structure.range.groq',
139
+ 'constant.numeric.groq',
140
+ 'meta.structure.range.groq',
141
+ ],
142
+ regex: /(\s*)(\d+)(\s*)(\.{2,3})(\s*)(\d+)(\s*)/,
143
+ },
144
+ ],
145
+ '#spread': [
146
+ {
147
+ token: 'punctuation.definition.spread.begin.groq',
148
+ regex: /\.\.\./,
149
+ push: [
150
+ {
151
+ include: '#array',
152
+ },
153
+ {
154
+ include: '#function-call',
155
+ },
156
+ {
157
+ include: '#projection',
158
+ },
159
+ {
160
+ token: 'punctuation.definition.spread.end.groq',
161
+ regex: /(?=.)/,
162
+ next: 'pop',
163
+ },
164
+ {
165
+ defaultToken: 'meta.structure.spread.groq',
166
+ },
167
+ ],
168
+ },
169
+ ],
170
+ '#array-values': [
171
+ {
172
+ include: '#value',
173
+ },
174
+ {
175
+ include: '#spread',
176
+ },
177
+ {
178
+ token: 'punctuation.separator.array.groq',
179
+ regex: /,/,
180
+ },
181
+ {
182
+ token: 'invalid.illegal.expected-array-separator.groq',
183
+ regex: /[^\s\]]/,
184
+ },
185
+ ],
186
+ '#filter': [
187
+ {
188
+ include: '#function-call',
189
+ },
190
+ {
191
+ include: '#keyword',
192
+ },
193
+ {
194
+ include: '#constant',
195
+ },
196
+ {
197
+ include: '#identifier',
198
+ },
199
+ {
200
+ include: '#value',
201
+ },
202
+ {
203
+ include: '#comparison',
204
+ },
205
+ {
206
+ include: '#operator',
207
+ },
208
+ {
209
+ include: '#logical',
210
+ },
211
+ ],
212
+ '#comments': [
213
+ {
214
+ token: ['punctuation.definition.comment.groq', 'comment.line.double-slash.js'],
215
+ regex: /(\/\/)(.*$)/,
216
+ },
217
+ ],
218
+ '#nullary-access-operator': [
219
+ {
220
+ token: 'constant.language.groq',
221
+ regex: /[*@^]/,
222
+ },
223
+ ],
224
+ '#constant': [
225
+ {
226
+ token: 'constant.language.groq',
227
+ regex: /\b(?:true|false|null)\b/,
228
+ },
229
+ ],
230
+ '#number': [
231
+ {
232
+ token: 'constant.numeric.groq',
233
+ regex: /-?(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:[eE][+-]?\d+)?)?/,
234
+ },
235
+ ],
236
+ '#named-projection': [
237
+ {
238
+ include: '#identifier',
239
+ },
240
+ {
241
+ include: '#objectkey',
242
+ },
243
+ {
244
+ include: '#projection',
245
+ },
246
+ ],
247
+ '#projection': [
248
+ {
249
+ token: 'punctuation.definition.projection.begin.groq',
250
+ regex: /\{/,
251
+ push: [
252
+ {
253
+ token: 'punctuation.definition.projection.end.groq',
254
+ regex: /\}/,
255
+ next: 'pop',
256
+ },
257
+ {
258
+ include: '#identifier',
259
+ },
260
+ {
261
+ include: '#objectkey',
262
+ },
263
+ {
264
+ include: '#named-projection',
265
+ },
266
+ {
267
+ include: '#comments',
268
+ },
269
+ {
270
+ include: '#spread',
271
+ },
272
+ {
273
+ include: '#pair',
274
+ },
275
+ {
276
+ token: 'punctuation.separator.projection.key-value.groq',
277
+ regex: /:/,
278
+ push: [
279
+ {
280
+ token: 'punctuation.separator.projection.pair.groq',
281
+ regex: /,|(?=\})/,
282
+ next: 'pop',
283
+ },
284
+ {
285
+ include: '#nullary-access-operator',
286
+ },
287
+ {
288
+ include: '#arraylike',
289
+ },
290
+ {
291
+ include: '#value',
292
+ },
293
+ {
294
+ include: '#spread',
295
+ },
296
+ {
297
+ include: '#identifier',
298
+ },
299
+ {
300
+ include: '#operator',
301
+ },
302
+ {
303
+ include: '#comparison',
304
+ },
305
+ {
306
+ include: '#pair',
307
+ },
308
+ {
309
+ token: 'invalid.illegal.expected-projection-separator.groq',
310
+ regex: /[^\s,]/,
311
+ },
312
+ {
313
+ defaultToken: 'meta.structure.projection.value.groq',
314
+ },
315
+ ],
316
+ },
317
+ {
318
+ token: 'invalid.illegal.expected-projection-separator.groq',
319
+ regex: /[^\s},]/,
320
+ },
321
+ {
322
+ defaultToken: 'meta.structure.projection.groq',
323
+ },
324
+ ],
325
+ },
326
+ ],
327
+ '#string': [
328
+ {
329
+ include: '#single-string',
330
+ },
331
+ {
332
+ include: '#double-string',
333
+ },
334
+ ],
335
+ '#double-string': [
336
+ {
337
+ token: 'punctuation.definition.string.begin.groq',
338
+ regex: /"/,
339
+ push: [
340
+ {
341
+ token: 'punctuation.definition.string.end.groq',
342
+ regex: /"/,
343
+ next: 'pop',
344
+ },
345
+ {
346
+ include: '#stringcontent',
347
+ },
348
+ {
349
+ defaultToken: 'string.quoted.double.groq',
350
+ },
351
+ ],
352
+ },
353
+ ],
354
+ '#single-string': [
355
+ {
356
+ token: 'punctuation.definition.string.single.begin.groq',
357
+ regex: /'/,
358
+ push: [
359
+ {
360
+ token: 'punctuation.definition.string.single.end.groq',
361
+ regex: /'/,
362
+ next: 'pop',
363
+ },
364
+ {
365
+ include: '#stringcontent',
366
+ },
367
+ {
368
+ defaultToken: 'string.quoted.single.groq',
369
+ },
370
+ ],
371
+ },
372
+ ],
373
+ '#objectkey': [
374
+ {
375
+ include: '#string',
376
+ },
377
+ ],
378
+ '#stringcontent': [
379
+ {
380
+ token: 'constant.character.escape.groq',
381
+ regex: /\\(?:["\\/bfnrt]|u[0-9a-fA-F]{4})/,
382
+ },
383
+ {
384
+ token: 'invalid.illegal.unrecognized-string-escape.groq',
385
+ regex: /\\./,
386
+ },
387
+ ],
388
+ '#sort-pair': [
389
+ {
390
+ token: ['variable.other.readwrite.groq', 'text', 'keyword.other.groq'],
391
+ regex: /([_A-Za-z][_0-9A-Za-z]*)(?:(\s*)(asc|desc))?/,
392
+ },
393
+ {
394
+ token: ['constant.language.groq', 'punctuation.definition.bracket.begin.groq'],
395
+ regex: /(@)(\[)/,
396
+ push: [
397
+ {
398
+ token: ['punctuation.definition.bracket.begin.groq', 'text', 'keyword.other.groq'],
399
+ regex: /(\])(?:(\s*)(asc|desc))?/,
400
+ next: 'pop',
401
+ },
402
+ {
403
+ include: '#string',
404
+ },
405
+ ],
406
+ },
407
+ ],
408
+ '#sort-order': [
409
+ {
410
+ token: 'support.function.sortorder.begin.groq',
411
+ regex: /\border\s*\(/,
412
+ push: [
413
+ {
414
+ token: 'support.function.sortorder.end.groq',
415
+ regex: /\)/,
416
+ next: 'pop',
417
+ },
418
+ {
419
+ include: '#sort-pair',
420
+ },
421
+ {
422
+ token: 'punctuation.separator.array.groq',
423
+ regex: /,/,
424
+ },
425
+ {
426
+ token: 'invalid.illegal.expected-sort-separator.groq',
427
+ regex: /[^\s\]]/,
428
+ },
429
+ {
430
+ defaultToken: 'support.function.sortorder.groq',
431
+ },
432
+ ],
433
+ },
434
+ ],
435
+ '#function-call': [
436
+ {
437
+ include: '#function-var-arg',
438
+ },
439
+ {
440
+ include: '#function-single-arg',
441
+ },
442
+ {
443
+ include: '#function-round',
444
+ },
445
+ ],
446
+ '#function-var-arg': [
447
+ {
448
+ token: 'support.function.vararg.begin.groq',
449
+ regex: /\b(?:coalesce|select)\s*\(/,
450
+ push: [
451
+ {
452
+ token: 'support.function.vararg.end.groq',
453
+ regex: /\)/,
454
+ next: 'pop',
455
+ },
456
+ {
457
+ include: '#value',
458
+ },
459
+ {
460
+ include: '#identifier',
461
+ },
462
+ {
463
+ include: '#filter',
464
+ },
465
+ {
466
+ include: '#pair',
467
+ },
468
+ {
469
+ token: 'punctuation.separator.array.groq',
470
+ regex: /,/,
471
+ },
472
+ {
473
+ defaultToken: 'support.function.vararg.groq',
474
+ },
475
+ ],
476
+ },
477
+ ],
478
+ '#function-single-arg': [
479
+ {
480
+ token: 'support.function.singlearg.begin.groq',
481
+ regex: /\b(?:count|defined|length|path|references)\s*\(/,
482
+ push: [
483
+ {
484
+ token: 'support.function.singlearg.end.groq',
485
+ regex: /\)/,
486
+ next: 'pop',
487
+ },
488
+ {
489
+ include: '#query',
490
+ },
491
+ {
492
+ include: '#identifier',
493
+ },
494
+ {
495
+ include: '#value',
496
+ },
497
+ {
498
+ include: '#pair',
499
+ },
500
+ {
501
+ defaultToken: 'support.function.singlearg.groq',
502
+ },
503
+ ],
504
+ },
505
+ ],
506
+ '#identifier': [
507
+ {
508
+ token: [
509
+ 'variable.other.readwrite.groq',
510
+ 'text',
511
+ 'punctuation.definition.block.js',
512
+ 'text',
513
+ 'keyword.operator.reference.groq',
514
+ ],
515
+ regex: /([_A-Za-z][_0-9A-Za-z]*)(\s*)((?:\[\s*\])?)(\s*)(->)/,
516
+ },
517
+ {
518
+ token: [
519
+ 'variable.other.readwrite.groq',
520
+ 'constant.language.groq',
521
+ 'text',
522
+ 'punctuation.definition.block.js',
523
+ 'text',
524
+ 'keyword.operator.descendant.groq',
525
+ ],
526
+ regex: /(?:([_A-Za-z][_0-9A-Za-z]*)|([@^]))(\s*)((?:\[\s*\])?)(\s*)(\.)/,
527
+ },
528
+ {
529
+ token: 'variable.other.readwrite.groq',
530
+ regex: /[_A-Za-z][_0-9A-Za-z]*/,
531
+ },
532
+ ],
533
+ '#value': [
534
+ {
535
+ include: '#constant',
536
+ },
537
+ {
538
+ include: '#number',
539
+ },
540
+ {
541
+ include: '#string',
542
+ },
543
+ {
544
+ include: '#array',
545
+ },
546
+ {
547
+ include: '#variable',
548
+ },
549
+ {
550
+ include: '#projection',
551
+ },
552
+ {
553
+ include: '#comments',
554
+ },
555
+ {
556
+ include: '#function-call',
557
+ },
558
+ ],
559
+ }
560
+
561
+ declare let ace: any
562
+
563
+ ace.define(
564
+ 'ace/mode/groq_highlight_rules',
565
+ ['require', 'exports', 'module', 'ace/lib/oop', 'ace/mode/text_highlight_rules'],
566
+ function (acequire: (id: string) => any, exports: Record<string, unknown>, _module: any) {
567
+ const oop = acequire('../lib/oop')
568
+ const TextHighlightRules = acequire('./text_highlight_rules').TextHighlightRules
569
+
570
+ const GroqHighlightRules = function () {
571
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
572
+ // @ts-ignore
573
+ this.$rules = rules
574
+ // @ts-ignore
575
+ this.normalizeRules()
576
+ /* eslint-enable @typescript-eslint/ban-ts-comment */
577
+ }
578
+
579
+ oop.inherits(GroqHighlightRules, TextHighlightRules)
580
+
581
+ exports.GroqHighlightRules = GroqHighlightRules
582
+ }
583
+ )
584
+
585
+ ace.define(
586
+ 'ace/mode/groq',
587
+ [
588
+ 'require',
589
+ 'exports',
590
+ 'module',
591
+ 'ace/lib/oop',
592
+ 'ace/mode/text',
593
+ 'ace/tokenizer',
594
+ 'ace/mode/groq_highlight_rules',
595
+ 'ace/mode/folding/cstyle',
596
+ ],
597
+ function (acequire: (id: string) => any, exports: Record<string, unknown>, _module: any) {
598
+ // eslint-disable-next-line strict
599
+ 'use strict'
600
+ const oop = acequire('../lib/oop')
601
+ const TextMode = acequire('./text').Mode
602
+ const Tokenizer = acequire('../tokenizer').Tokenizer
603
+ const GroqHighlightRules = acequire('./groq_highlight_rules').GroqHighlightRules
604
+ const FoldMode = acequire('./folding/cstyle').FoldMode
605
+
606
+ const Mode = function () {
607
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
608
+ const highlighter = new GroqHighlightRules()
609
+ // @ts-ignore
610
+ this.foldingRules = new FoldMode()
611
+ // @ts-ignore
612
+ this.$tokenizer = new Tokenizer(highlighter.getRules())
613
+ // @ts-ignore
614
+ this.$keywordList = highlighter.$keywordList
615
+ /* eslint-enable @typescript-eslint/ban-ts-comment */
616
+ }
617
+ oop.inherits(Mode, TextMode)
618
+ ;(function () {
619
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
620
+ // @ts-ignore
621
+ this.lineCommentStart = "'"
622
+ /* eslint-enable @typescript-eslint/ban-ts-comment */
623
+ }.call(Mode.prototype))
624
+
625
+ exports.Mode = Mode
626
+ }
627
+ )
628
+
629
+ export {}
package/src/schema.tsx ADDED
@@ -0,0 +1,65 @@
1
+ import React from 'react'
2
+ import {CodeBlockIcon} from '@sanity/icons'
3
+ import CodeInput from './CodeInput'
4
+ import PreviewCode, {PreviewCodeProps} from './PreviewCode'
5
+ import {getMedia} from './getMedia'
6
+
7
+ const Preview = (props: PreviewCodeProps) => {
8
+ return <PreviewCode {...props} />
9
+ }
10
+
11
+ export default {
12
+ name: 'code',
13
+ type: 'object',
14
+ title: 'Code',
15
+ inputComponent: CodeInput,
16
+ icon: CodeBlockIcon,
17
+ fields: [
18
+ {
19
+ name: 'language',
20
+ title: 'Language',
21
+ type: 'string',
22
+ },
23
+ {
24
+ name: 'filename',
25
+ title: 'Filename',
26
+ type: 'string',
27
+ },
28
+ {
29
+ title: 'Code',
30
+ name: 'code',
31
+ type: 'text',
32
+ },
33
+ {
34
+ title: 'Highlighted lines',
35
+ name: 'highlightedLines',
36
+ type: 'array',
37
+ of: [
38
+ {
39
+ type: 'number',
40
+ title: 'Highlighted line',
41
+ },
42
+ ],
43
+ },
44
+ ],
45
+ preview: {
46
+ select: {
47
+ language: 'language',
48
+ code: 'code',
49
+ filename: 'filename',
50
+ highlightedLines: 'highlightedLines',
51
+ },
52
+ prepare: (value: {
53
+ language?: string
54
+ code?: string
55
+ filename?: string
56
+ highlightedLines?: number[]
57
+ }) => {
58
+ return {
59
+ title: value.filename || (value.language || 'unknown').toUpperCase(),
60
+ media: getMedia(value?.language),
61
+ extendedPreview: <Preview value={value} />,
62
+ }
63
+ },
64
+ },
65
+ }
package/src/types.ts ADDED
@@ -0,0 +1,26 @@
1
+ export interface CodeInputLanguage {
2
+ title: string
3
+ value: string
4
+ mode?: string
5
+ }
6
+
7
+ export interface CodeInputType {
8
+ name?: string
9
+ title?: string
10
+ description?: string
11
+ fields: {name: string; title?: string; placeholder?: string}[]
12
+ options?: {
13
+ theme?: string
14
+ languageAlternatives: CodeInputLanguage[]
15
+ language: string
16
+ withFilename?: boolean
17
+ }
18
+ }
19
+
20
+ export interface CodeInputValue {
21
+ _type?: 'code'
22
+ code?: string
23
+ filename?: string
24
+ language?: string
25
+ highlightedLines?: number[]
26
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeInput.d.ts","sourceRoot":"","sources":["../../src/CodeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAChF,OAAO,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AAEvD,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAA;AASlC,OAAO,EAAoB,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAA;AAExE,OAAO,iBAAiB,CAAA;AAsCxB,MAAM,WAAW,cAAc;IAC7B,YAAY,CAAC,EAAE,cAAc,CAAA;IAC7B,SAAS,EAAE,IAAI,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;IAClC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IAC7B,QAAQ,EAAE,iBAAiB,EAAE,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,aAAa,CAAA;IACnB,KAAK,CAAC,EAAE,cAAc,CAAA;CACvB;AAkBD,QAAA,MAAM,SAAS;WAC2C,MAAM,IAAI;GAyWnE,CAAA;AAID,eAAe,SAAS,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PreviewCode.d.ts","sourceRoot":"","sources":["../../src/PreviewCode.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAA;AAErD,OAAO,iBAAiB,CAAA;AAqBxB,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,KAAK,CAAC,EAAE,cAAc,CAAA;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAsD1D"}