@mcp-b/interactive-components 0.2.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/LICENSE +21 -0
- package/README.md +99 -0
- package/dist/code-editor-B94tewLC.js +425 -0
- package/dist/code-preview-gKk0nBKP.js +269 -0
- package/dist/components/code-editor/code-editor.d.ts +65 -0
- package/dist/components/code-editor/code-editor.js +2 -0
- package/dist/components/code-preview/code-preview.d.ts +58 -0
- package/dist/components/code-preview/code-preview.js +3 -0
- package/dist/components/interactive-editor/interactive-editor.d.ts +77 -0
- package/dist/components/interactive-editor/interactive-editor.js +3 -0
- package/dist/components/r-editor/r-editor.d.ts +68 -0
- package/dist/components/r-editor/r-editor.js +2 -0
- package/dist/components/sql-editor/sql-editor.d.ts +78 -0
- package/dist/components/sql-editor/sql-editor.js +2 -0
- package/dist/decorate-DcF3lt7P.js +9 -0
- package/dist/docs/custom-elements.json +2807 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/interactive-editor-WfTWxJGF.js +1454 -0
- package/dist/lib/runner-channel.d.ts +25 -0
- package/dist/lib/runner-channel.js +55 -0
- package/dist/lib/runner-url.d.ts +15 -0
- package/dist/lib/runner-url.js +19 -0
- package/dist/lib/transform.d.ts +2 -0
- package/dist/lib/transform.js +210 -0
- package/dist/r-editor-DwSyDo2i.js +743 -0
- package/dist/runners/ephemeral-indexeddb.js +114 -0
- package/dist/runners/pglite-runner.js +175 -0
- package/dist/runners/pyscript-runner.html +189 -0
- package/dist/runners/webr-runner.html +282 -0
- package/dist/sql-editor-CsNrjJ2_.js +968 -0
- package/dist/themes/interactive.css +79 -0
- package/dist/transform-DWhHlnkw.d.ts +53 -0
- package/dist/vite.d.ts +14 -0
- package/dist/vite.js +62 -0
- package/package.json +96 -0
|
@@ -0,0 +1,2807 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/index.ts",
|
|
8
|
+
"declarations": [],
|
|
9
|
+
"exports": [
|
|
10
|
+
{
|
|
11
|
+
"kind": "js",
|
|
12
|
+
"name": "*",
|
|
13
|
+
"declaration": {
|
|
14
|
+
"name": "*",
|
|
15
|
+
"module": "src/components/code-editor/code-editor.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"kind": "js",
|
|
20
|
+
"name": "*",
|
|
21
|
+
"declaration": {
|
|
22
|
+
"name": "*",
|
|
23
|
+
"module": "src/components/code-preview/code-preview.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"kind": "js",
|
|
28
|
+
"name": "*",
|
|
29
|
+
"declaration": {
|
|
30
|
+
"name": "*",
|
|
31
|
+
"module": "src/components/interactive-editor/interactive-editor.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"kind": "js",
|
|
36
|
+
"name": "*",
|
|
37
|
+
"declaration": {
|
|
38
|
+
"name": "*",
|
|
39
|
+
"module": "src/components/r-editor/r-editor.js"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"kind": "js",
|
|
44
|
+
"name": "*",
|
|
45
|
+
"declaration": {
|
|
46
|
+
"name": "*",
|
|
47
|
+
"module": "src/components/sql-editor/sql-editor.js"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"kind": "js",
|
|
52
|
+
"name": "EditorFile",
|
|
53
|
+
"declaration": {
|
|
54
|
+
"name": "EditorFile",
|
|
55
|
+
"module": "./lib/transform.js"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"kind": "js",
|
|
60
|
+
"name": "FileLanguage",
|
|
61
|
+
"declaration": {
|
|
62
|
+
"name": "FileLanguage",
|
|
63
|
+
"module": "./lib/transform.js"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"kind": "js",
|
|
68
|
+
"name": "detectLanguage",
|
|
69
|
+
"declaration": {
|
|
70
|
+
"name": "detectLanguage",
|
|
71
|
+
"module": "./lib/transform.js"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"kind": "js",
|
|
76
|
+
"name": "getRunnerUrl",
|
|
77
|
+
"declaration": {
|
|
78
|
+
"name": "getRunnerUrl",
|
|
79
|
+
"module": "./lib/runner-url.js"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"kind": "js",
|
|
84
|
+
"name": "setRunnerBaseUrl",
|
|
85
|
+
"declaration": {
|
|
86
|
+
"name": "setRunnerBaseUrl",
|
|
87
|
+
"module": "./lib/runner-url.js"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"kind": "js",
|
|
92
|
+
"name": "RunnerName",
|
|
93
|
+
"declaration": {
|
|
94
|
+
"name": "RunnerName",
|
|
95
|
+
"module": "./lib/runner-url.js"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"kind": "javascript-module",
|
|
102
|
+
"path": "src/vite.ts",
|
|
103
|
+
"declarations": [
|
|
104
|
+
{
|
|
105
|
+
"kind": "function",
|
|
106
|
+
"name": "interactiveRuntimeAssets",
|
|
107
|
+
"return": {
|
|
108
|
+
"type": {
|
|
109
|
+
"text": "ReturnType<typeof viteStaticCopy>"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"parameters": [
|
|
113
|
+
{
|
|
114
|
+
"name": "options",
|
|
115
|
+
"default": "{}",
|
|
116
|
+
"type": {
|
|
117
|
+
"text": "InteractiveRuntimeAssetsOptions",
|
|
118
|
+
"references": [
|
|
119
|
+
{
|
|
120
|
+
"name": "InteractiveRuntimeAssetsOptions",
|
|
121
|
+
"start": 0,
|
|
122
|
+
"end": 31
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"description": "Copies the sandbox runner entry points and installed engine assets into a\nVite application's public output without embedding them in this package."
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"exports": [
|
|
132
|
+
{
|
|
133
|
+
"kind": "js",
|
|
134
|
+
"name": "interactiveRuntimeAssets",
|
|
135
|
+
"declaration": {
|
|
136
|
+
"name": "interactiveRuntimeAssets",
|
|
137
|
+
"module": "src/vite.ts"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"kind": "javascript-module",
|
|
144
|
+
"path": "src/lib/runner-channel.ts",
|
|
145
|
+
"declarations": [
|
|
146
|
+
{
|
|
147
|
+
"kind": "variable",
|
|
148
|
+
"name": "RUNNER_CONNECT_TYPE",
|
|
149
|
+
"type": {
|
|
150
|
+
"text": "string"
|
|
151
|
+
},
|
|
152
|
+
"default": "\"sigvelo-runner-connect-v1\""
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"kind": "variable",
|
|
156
|
+
"name": "RUNNER_CHANNEL_PARAM",
|
|
157
|
+
"type": {
|
|
158
|
+
"text": "string"
|
|
159
|
+
},
|
|
160
|
+
"default": "\"sigvelo-channel\""
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"kind": "variable",
|
|
164
|
+
"name": "RUNNER_PARENT_ORIGIN_PARAM",
|
|
165
|
+
"type": {
|
|
166
|
+
"text": "string"
|
|
167
|
+
},
|
|
168
|
+
"default": "\"sigvelo-parent-origin\""
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"kind": "function",
|
|
172
|
+
"name": "createRunnerChannelId",
|
|
173
|
+
"return": {
|
|
174
|
+
"type": {
|
|
175
|
+
"text": "string"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"description": "Creates a 128-bit runner capability without requiring a secure context."
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"kind": "function",
|
|
182
|
+
"name": "isRecord",
|
|
183
|
+
"return": {
|
|
184
|
+
"type": {
|
|
185
|
+
"text": "value is Record<string, unknown>"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"parameters": [
|
|
189
|
+
{
|
|
190
|
+
"name": "value",
|
|
191
|
+
"type": {
|
|
192
|
+
"text": "unknown"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "function",
|
|
199
|
+
"name": "parseRunnerConsoleMessage",
|
|
200
|
+
"return": {
|
|
201
|
+
"type": {
|
|
202
|
+
"text": "RunnerConsoleMessage | null",
|
|
203
|
+
"references": [
|
|
204
|
+
{
|
|
205
|
+
"name": "RunnerConsoleMessage",
|
|
206
|
+
"start": 0,
|
|
207
|
+
"end": 20
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"parameters": [
|
|
213
|
+
{
|
|
214
|
+
"name": "value",
|
|
215
|
+
"type": {
|
|
216
|
+
"text": "unknown"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"kind": "function",
|
|
223
|
+
"name": "bindRunnerUrl",
|
|
224
|
+
"return": {
|
|
225
|
+
"type": {
|
|
226
|
+
"text": "URL"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"parameters": [
|
|
230
|
+
{
|
|
231
|
+
"name": "url",
|
|
232
|
+
"type": {
|
|
233
|
+
"text": "URL"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "channelId",
|
|
238
|
+
"type": {
|
|
239
|
+
"text": "string"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"kind": "function",
|
|
246
|
+
"name": "connectRunner",
|
|
247
|
+
"return": {
|
|
248
|
+
"type": {
|
|
249
|
+
"text": "MessagePort | null"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"parameters": [
|
|
253
|
+
{
|
|
254
|
+
"name": "iframe",
|
|
255
|
+
"type": {
|
|
256
|
+
"text": "HTMLIFrameElement",
|
|
257
|
+
"references": [
|
|
258
|
+
{
|
|
259
|
+
"name": "HTMLIFrameElement",
|
|
260
|
+
"package": "dom",
|
|
261
|
+
"start": 0,
|
|
262
|
+
"end": 17
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "channelId",
|
|
269
|
+
"type": {
|
|
270
|
+
"text": "string"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "onMessage",
|
|
275
|
+
"type": {
|
|
276
|
+
"text": "(data: unknown) => void"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"description": "Gives one sandboxed runner a private channel. An opaque-origin iframe cannot\nbe named by `targetOrigin`, so the one wildcard send is restricted to its\nexact WindowProxy and transfers only a fresh port. The runner validates the\nsender window, sender origin, protocol marker, and transferred port before\naccepting it; all subsequent traffic stays off the global `message` event."
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"exports": [
|
|
284
|
+
{
|
|
285
|
+
"kind": "js",
|
|
286
|
+
"name": "RUNNER_CONNECT_TYPE",
|
|
287
|
+
"declaration": {
|
|
288
|
+
"name": "RUNNER_CONNECT_TYPE",
|
|
289
|
+
"module": "src/lib/runner-channel.ts"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"kind": "js",
|
|
294
|
+
"name": "RUNNER_CHANNEL_PARAM",
|
|
295
|
+
"declaration": {
|
|
296
|
+
"name": "RUNNER_CHANNEL_PARAM",
|
|
297
|
+
"module": "src/lib/runner-channel.ts"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"kind": "js",
|
|
302
|
+
"name": "RUNNER_PARENT_ORIGIN_PARAM",
|
|
303
|
+
"declaration": {
|
|
304
|
+
"name": "RUNNER_PARENT_ORIGIN_PARAM",
|
|
305
|
+
"module": "src/lib/runner-channel.ts"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"kind": "js",
|
|
310
|
+
"name": "createRunnerChannelId",
|
|
311
|
+
"declaration": {
|
|
312
|
+
"name": "createRunnerChannelId",
|
|
313
|
+
"module": "src/lib/runner-channel.ts"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"kind": "js",
|
|
318
|
+
"name": "isRecord",
|
|
319
|
+
"declaration": {
|
|
320
|
+
"name": "isRecord",
|
|
321
|
+
"module": "src/lib/runner-channel.ts"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"kind": "js",
|
|
326
|
+
"name": "parseRunnerConsoleMessage",
|
|
327
|
+
"declaration": {
|
|
328
|
+
"name": "parseRunnerConsoleMessage",
|
|
329
|
+
"module": "src/lib/runner-channel.ts"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"kind": "js",
|
|
334
|
+
"name": "bindRunnerUrl",
|
|
335
|
+
"declaration": {
|
|
336
|
+
"name": "bindRunnerUrl",
|
|
337
|
+
"module": "src/lib/runner-channel.ts"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"kind": "js",
|
|
342
|
+
"name": "connectRunner",
|
|
343
|
+
"declaration": {
|
|
344
|
+
"name": "connectRunner",
|
|
345
|
+
"module": "src/lib/runner-channel.ts"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"kind": "javascript-module",
|
|
352
|
+
"path": "src/lib/runner-url.ts",
|
|
353
|
+
"declarations": [
|
|
354
|
+
{
|
|
355
|
+
"kind": "function",
|
|
356
|
+
"name": "setRunnerBaseUrl",
|
|
357
|
+
"return": {
|
|
358
|
+
"type": {
|
|
359
|
+
"text": "void"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"parameters": [
|
|
363
|
+
{
|
|
364
|
+
"name": "url",
|
|
365
|
+
"type": {
|
|
366
|
+
"text": "URL"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"description": "Overrides the same-origin mount where the complete `dist/runners/` tree is served.\n\nHosts must preserve the tree's relative paths and send\n`Access-Control-Allow-Origin: *`. The Python and R runners intentionally use\nopaque sandbox origins, so their module and runtime fetches require CORS. The\nPGlite module worker requires the mount to share the application's origin."
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"kind": "function",
|
|
374
|
+
"name": "getRunnerUrl",
|
|
375
|
+
"return": {
|
|
376
|
+
"type": {
|
|
377
|
+
"text": "URL"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"parameters": [
|
|
381
|
+
{
|
|
382
|
+
"name": "name",
|
|
383
|
+
"type": {
|
|
384
|
+
"text": "RunnerName",
|
|
385
|
+
"references": [
|
|
386
|
+
{
|
|
387
|
+
"name": "RunnerName",
|
|
388
|
+
"start": 0,
|
|
389
|
+
"end": 10
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"description": "Returns the runner shipped beside this package's compiled modules."
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"exports": [
|
|
399
|
+
{
|
|
400
|
+
"kind": "js",
|
|
401
|
+
"name": "setRunnerBaseUrl",
|
|
402
|
+
"declaration": {
|
|
403
|
+
"name": "setRunnerBaseUrl",
|
|
404
|
+
"module": "src/lib/runner-url.ts"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"kind": "js",
|
|
409
|
+
"name": "getRunnerUrl",
|
|
410
|
+
"declaration": {
|
|
411
|
+
"name": "getRunnerUrl",
|
|
412
|
+
"module": "src/lib/runner-url.ts"
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
]
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"kind": "javascript-module",
|
|
419
|
+
"path": "src/lib/transform.ts",
|
|
420
|
+
"declarations": [
|
|
421
|
+
{
|
|
422
|
+
"kind": "function",
|
|
423
|
+
"name": "detectLanguage",
|
|
424
|
+
"return": {
|
|
425
|
+
"type": {
|
|
426
|
+
"text": "FileLanguage",
|
|
427
|
+
"references": [
|
|
428
|
+
{
|
|
429
|
+
"name": "FileLanguage",
|
|
430
|
+
"start": 0,
|
|
431
|
+
"end": 12
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"parameters": [
|
|
437
|
+
{
|
|
438
|
+
"name": "filename",
|
|
439
|
+
"type": {
|
|
440
|
+
"text": "string"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"kind": "function",
|
|
447
|
+
"name": "needsTransform",
|
|
448
|
+
"return": {
|
|
449
|
+
"type": {
|
|
450
|
+
"text": "boolean"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"parameters": [
|
|
454
|
+
{
|
|
455
|
+
"name": "lang",
|
|
456
|
+
"type": {
|
|
457
|
+
"text": "FileLanguage",
|
|
458
|
+
"references": [
|
|
459
|
+
{
|
|
460
|
+
"name": "FileLanguage",
|
|
461
|
+
"start": 0,
|
|
462
|
+
"end": 12
|
|
463
|
+
}
|
|
464
|
+
]
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"kind": "function",
|
|
471
|
+
"name": "transformCode",
|
|
472
|
+
"return": {
|
|
473
|
+
"type": {
|
|
474
|
+
"text": "Promise<string>"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"parameters": [
|
|
478
|
+
{
|
|
479
|
+
"name": "code",
|
|
480
|
+
"type": {
|
|
481
|
+
"text": "string"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"name": "filename",
|
|
486
|
+
"type": {
|
|
487
|
+
"text": "string"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"kind": "function",
|
|
494
|
+
"name": "rewriteNpmImports",
|
|
495
|
+
"return": {
|
|
496
|
+
"type": {
|
|
497
|
+
"text": "string"
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"parameters": [
|
|
501
|
+
{
|
|
502
|
+
"name": "code",
|
|
503
|
+
"type": {
|
|
504
|
+
"text": "string"
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
"description": "Rewrites bare npm specifiers (`from 'react'`) to esm.sh CDN URLs."
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"kind": "function",
|
|
512
|
+
"name": "buildHtmlPreview",
|
|
513
|
+
"return": {
|
|
514
|
+
"type": {
|
|
515
|
+
"text": "Promise<string>"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"parameters": [
|
|
519
|
+
{
|
|
520
|
+
"name": "files",
|
|
521
|
+
"type": {
|
|
522
|
+
"text": "Map<string, EditorFile>",
|
|
523
|
+
"references": [
|
|
524
|
+
{
|
|
525
|
+
"name": "EditorFile",
|
|
526
|
+
"start": 12,
|
|
527
|
+
"end": 22
|
|
528
|
+
}
|
|
529
|
+
]
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
"description": "Builds a preview for HTML-entry projects. Inlines referenced CSS and JS\nfiles, transforming TS/JSX as needed."
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"kind": "function",
|
|
537
|
+
"name": "buildModulePreview",
|
|
538
|
+
"return": {
|
|
539
|
+
"type": {
|
|
540
|
+
"text": "Promise<{ html: string; blobUrls: string[] }>"
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"parameters": [
|
|
544
|
+
{
|
|
545
|
+
"name": "files",
|
|
546
|
+
"type": {
|
|
547
|
+
"text": "Map<string, EditorFile>",
|
|
548
|
+
"references": [
|
|
549
|
+
{
|
|
550
|
+
"name": "EditorFile",
|
|
551
|
+
"start": 12,
|
|
552
|
+
"end": 22
|
|
553
|
+
}
|
|
554
|
+
]
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "entryName",
|
|
559
|
+
"type": {
|
|
560
|
+
"text": "string"
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"description": "Builds a preview for module-entry projects (TS/TSX/JS). Transforms each\nfile, creates Blob URLs for inter-file imports, and wraps in HTML.\n\nReturns `{ html, blobUrls }` — caller should revoke blob URLs on cleanup."
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"kind": "function",
|
|
568
|
+
"name": "buildPythonPayload",
|
|
569
|
+
"return": {
|
|
570
|
+
"type": {
|
|
571
|
+
"text": "PyScriptRunPayload",
|
|
572
|
+
"references": [
|
|
573
|
+
{
|
|
574
|
+
"name": "PyScriptRunPayload",
|
|
575
|
+
"start": 0,
|
|
576
|
+
"end": 18
|
|
577
|
+
}
|
|
578
|
+
]
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
"parameters": [
|
|
582
|
+
{
|
|
583
|
+
"name": "files",
|
|
584
|
+
"type": {
|
|
585
|
+
"text": "Map<string, EditorFile>",
|
|
586
|
+
"references": [
|
|
587
|
+
{
|
|
588
|
+
"name": "EditorFile",
|
|
589
|
+
"start": 12,
|
|
590
|
+
"end": 22
|
|
591
|
+
}
|
|
592
|
+
]
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"name": "entryName",
|
|
597
|
+
"type": {
|
|
598
|
+
"text": "string"
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
],
|
|
602
|
+
"description": "Builds a postMessage payload for the PyScript runner page.\n\nPyScript cannot run inside srcdoc or blob-URL iframes because it uses\n`new URL(m, location.href)` internally, and those iframe types have\ninvalid base URLs. Instead, we load a static `pyscript-runner.html`\npage (served at a real HTTP URL) and send code to it via postMessage."
|
|
603
|
+
}
|
|
604
|
+
],
|
|
605
|
+
"exports": [
|
|
606
|
+
{
|
|
607
|
+
"kind": "js",
|
|
608
|
+
"name": "detectLanguage",
|
|
609
|
+
"declaration": {
|
|
610
|
+
"name": "detectLanguage",
|
|
611
|
+
"module": "src/lib/transform.ts"
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"kind": "js",
|
|
616
|
+
"name": "needsTransform",
|
|
617
|
+
"declaration": {
|
|
618
|
+
"name": "needsTransform",
|
|
619
|
+
"module": "src/lib/transform.ts"
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"kind": "js",
|
|
624
|
+
"name": "transformCode",
|
|
625
|
+
"declaration": {
|
|
626
|
+
"name": "transformCode",
|
|
627
|
+
"module": "src/lib/transform.ts"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"kind": "js",
|
|
632
|
+
"name": "rewriteNpmImports",
|
|
633
|
+
"declaration": {
|
|
634
|
+
"name": "rewriteNpmImports",
|
|
635
|
+
"module": "src/lib/transform.ts"
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"kind": "js",
|
|
640
|
+
"name": "buildHtmlPreview",
|
|
641
|
+
"declaration": {
|
|
642
|
+
"name": "buildHtmlPreview",
|
|
643
|
+
"module": "src/lib/transform.ts"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"kind": "js",
|
|
648
|
+
"name": "buildModulePreview",
|
|
649
|
+
"declaration": {
|
|
650
|
+
"name": "buildModulePreview",
|
|
651
|
+
"module": "src/lib/transform.ts"
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"kind": "js",
|
|
656
|
+
"name": "buildPythonPayload",
|
|
657
|
+
"declaration": {
|
|
658
|
+
"name": "buildPythonPayload",
|
|
659
|
+
"module": "src/lib/transform.ts"
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
]
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"kind": "javascript-module",
|
|
666
|
+
"path": "src/components/code-editor/code-editor.ts",
|
|
667
|
+
"declarations": [
|
|
668
|
+
{
|
|
669
|
+
"kind": "class",
|
|
670
|
+
"description": "`<sigvelo-code-editor>`",
|
|
671
|
+
"name": "SigveloCodeEditor",
|
|
672
|
+
"members": [
|
|
673
|
+
{
|
|
674
|
+
"kind": "field",
|
|
675
|
+
"name": "styles",
|
|
676
|
+
"type": {
|
|
677
|
+
"text": "CSSResultGroup",
|
|
678
|
+
"references": [
|
|
679
|
+
{
|
|
680
|
+
"name": "CSSResultGroup",
|
|
681
|
+
"package": "lit",
|
|
682
|
+
"module": "lit",
|
|
683
|
+
"start": 0,
|
|
684
|
+
"end": 14
|
|
685
|
+
}
|
|
686
|
+
]
|
|
687
|
+
},
|
|
688
|
+
"static": true,
|
|
689
|
+
"default": "[hostStyles, styles]"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"kind": "field",
|
|
693
|
+
"name": "value",
|
|
694
|
+
"type": {
|
|
695
|
+
"text": "string"
|
|
696
|
+
},
|
|
697
|
+
"default": "\"\"",
|
|
698
|
+
"description": "The document content."
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"kind": "field",
|
|
702
|
+
"name": "language",
|
|
703
|
+
"type": {
|
|
704
|
+
"text": "FileLanguage",
|
|
705
|
+
"references": [
|
|
706
|
+
{
|
|
707
|
+
"name": "FileLanguage",
|
|
708
|
+
"start": 0,
|
|
709
|
+
"end": 12
|
|
710
|
+
}
|
|
711
|
+
]
|
|
712
|
+
},
|
|
713
|
+
"default": "\"javascript\"",
|
|
714
|
+
"description": "Syntax highlighting language."
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"kind": "field",
|
|
718
|
+
"name": "readonly",
|
|
719
|
+
"type": {
|
|
720
|
+
"text": "boolean"
|
|
721
|
+
},
|
|
722
|
+
"default": "false",
|
|
723
|
+
"description": "Makes the editor read-only."
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"kind": "field",
|
|
727
|
+
"name": "editorLabel",
|
|
728
|
+
"type": {
|
|
729
|
+
"text": "string"
|
|
730
|
+
},
|
|
731
|
+
"default": "\"\"",
|
|
732
|
+
"description": "Accessible label for the editor."
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"kind": "field",
|
|
736
|
+
"name": "accessibleLabel",
|
|
737
|
+
"type": {
|
|
738
|
+
"text": "string"
|
|
739
|
+
},
|
|
740
|
+
"privacy": "private",
|
|
741
|
+
"description": "The name exposed to assistive technology. CodeMirror renders a\n`role=\"textbox\"` element, which must always be named, so an unset\n`editor-label` falls back to the language rather than leaving it anonymous.",
|
|
742
|
+
"readonly": true
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"kind": "field",
|
|
746
|
+
"name": "_host",
|
|
747
|
+
"type": {
|
|
748
|
+
"text": "HTMLDivElement",
|
|
749
|
+
"references": [
|
|
750
|
+
{
|
|
751
|
+
"name": "HTMLDivElement",
|
|
752
|
+
"package": "dom",
|
|
753
|
+
"start": 0,
|
|
754
|
+
"end": 14
|
|
755
|
+
}
|
|
756
|
+
]
|
|
757
|
+
},
|
|
758
|
+
"privacy": "private"
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"kind": "field",
|
|
762
|
+
"name": "_dark",
|
|
763
|
+
"type": {
|
|
764
|
+
"text": "boolean"
|
|
765
|
+
},
|
|
766
|
+
"privacy": "private",
|
|
767
|
+
"default": "false"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"kind": "field",
|
|
771
|
+
"name": "_view",
|
|
772
|
+
"type": {
|
|
773
|
+
"text": "EditorView | null",
|
|
774
|
+
"references": [
|
|
775
|
+
{
|
|
776
|
+
"name": "EditorView",
|
|
777
|
+
"package": "@codemirror/view",
|
|
778
|
+
"module": "@codemirror/view",
|
|
779
|
+
"start": 0,
|
|
780
|
+
"end": 10
|
|
781
|
+
}
|
|
782
|
+
]
|
|
783
|
+
},
|
|
784
|
+
"privacy": "private",
|
|
785
|
+
"default": "null"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"kind": "field",
|
|
789
|
+
"name": "_langCompartment",
|
|
790
|
+
"privacy": "private",
|
|
791
|
+
"default": "new Compartment()"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"kind": "field",
|
|
795
|
+
"name": "_themeCompartment",
|
|
796
|
+
"privacy": "private",
|
|
797
|
+
"default": "new Compartment()"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"kind": "field",
|
|
801
|
+
"name": "_readonlyCompartment",
|
|
802
|
+
"privacy": "private",
|
|
803
|
+
"default": "new Compartment()"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"kind": "field",
|
|
807
|
+
"name": "_labelCompartment",
|
|
808
|
+
"privacy": "private",
|
|
809
|
+
"default": "new Compartment()"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"kind": "field",
|
|
813
|
+
"name": "_suppressExternalUpdate",
|
|
814
|
+
"type": {
|
|
815
|
+
"text": "boolean"
|
|
816
|
+
},
|
|
817
|
+
"privacy": "private",
|
|
818
|
+
"default": "false"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"kind": "field",
|
|
822
|
+
"name": "_themeObserver",
|
|
823
|
+
"type": {
|
|
824
|
+
"text": "MutationObserver | null",
|
|
825
|
+
"references": [
|
|
826
|
+
{
|
|
827
|
+
"name": "MutationObserver",
|
|
828
|
+
"package": "dom",
|
|
829
|
+
"start": 0,
|
|
830
|
+
"end": 16
|
|
831
|
+
}
|
|
832
|
+
]
|
|
833
|
+
},
|
|
834
|
+
"privacy": "private",
|
|
835
|
+
"default": "null"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"kind": "field",
|
|
839
|
+
"name": "_systemTheme",
|
|
840
|
+
"type": {
|
|
841
|
+
"text": "MediaQueryList | null"
|
|
842
|
+
},
|
|
843
|
+
"privacy": "private",
|
|
844
|
+
"default": "null"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"kind": "field",
|
|
848
|
+
"name": "_onSystemThemeChange",
|
|
849
|
+
"type": {
|
|
850
|
+
"text": "(() => void) | null"
|
|
851
|
+
},
|
|
852
|
+
"privacy": "private",
|
|
853
|
+
"default": "null"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"kind": "method",
|
|
857
|
+
"name": "firstUpdated",
|
|
858
|
+
"privacy": "protected"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"kind": "method",
|
|
862
|
+
"name": "updated",
|
|
863
|
+
"privacy": "protected",
|
|
864
|
+
"parameters": [
|
|
865
|
+
{
|
|
866
|
+
"name": "changed",
|
|
867
|
+
"type": {
|
|
868
|
+
"text": "PropertyValues",
|
|
869
|
+
"references": [
|
|
870
|
+
{
|
|
871
|
+
"name": "PropertyValues",
|
|
872
|
+
"package": "lit",
|
|
873
|
+
"module": "lit",
|
|
874
|
+
"start": 0,
|
|
875
|
+
"end": 14
|
|
876
|
+
}
|
|
877
|
+
]
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
]
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"kind": "method",
|
|
884
|
+
"name": "_isDark",
|
|
885
|
+
"privacy": "private",
|
|
886
|
+
"return": {
|
|
887
|
+
"type": {
|
|
888
|
+
"text": "boolean"
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"kind": "method",
|
|
894
|
+
"name": "_observeTheme",
|
|
895
|
+
"privacy": "private"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"kind": "method",
|
|
899
|
+
"name": "_createView",
|
|
900
|
+
"privacy": "private"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"kind": "method",
|
|
904
|
+
"name": "getEditorView",
|
|
905
|
+
"return": {
|
|
906
|
+
"type": {
|
|
907
|
+
"text": "EditorView | null",
|
|
908
|
+
"references": [
|
|
909
|
+
{
|
|
910
|
+
"name": "EditorView",
|
|
911
|
+
"package": "@codemirror/view",
|
|
912
|
+
"module": "@codemirror/view",
|
|
913
|
+
"start": 0,
|
|
914
|
+
"end": 10
|
|
915
|
+
}
|
|
916
|
+
]
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
"description": "Returns the underlying CodeMirror `EditorView`, or `null` if not yet created."
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"kind": "method",
|
|
923
|
+
"name": "render",
|
|
924
|
+
"privacy": "protected"
|
|
925
|
+
}
|
|
926
|
+
],
|
|
927
|
+
"events": [
|
|
928
|
+
{
|
|
929
|
+
"type": {
|
|
930
|
+
"text": "SigveloChangeEvent",
|
|
931
|
+
"references": [
|
|
932
|
+
{
|
|
933
|
+
"name": "SigveloChangeEvent",
|
|
934
|
+
"package": "@mcp-b/wc-support",
|
|
935
|
+
"module": "@mcp-b/wc-support/events/form",
|
|
936
|
+
"start": 0,
|
|
937
|
+
"end": 18
|
|
938
|
+
}
|
|
939
|
+
]
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"description": "Fires when the document content changes. `event.detail.value` contains the new content.",
|
|
944
|
+
"name": "sigvelo-change"
|
|
945
|
+
}
|
|
946
|
+
],
|
|
947
|
+
"superclass": {
|
|
948
|
+
"name": "SigveloElement",
|
|
949
|
+
"package": "@mcp-b/wc-support/base/sigvelo-element"
|
|
950
|
+
},
|
|
951
|
+
"tagName": "sigvelo-code-editor",
|
|
952
|
+
"customElement": true,
|
|
953
|
+
"summary": "A CodeMirror 6 wrapper that provides syntax-highlighted editing for\na single document. Supports JavaScript, TypeScript, JSX, TSX, HTML, and CSS.\nAutomatically detects dark mode from the `data-theme` attribute on the\ndocument root and applies the One Dark CodeMirror theme accordingly."
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
"exports": [
|
|
957
|
+
{
|
|
958
|
+
"kind": "js",
|
|
959
|
+
"name": "SigveloCodeEditor",
|
|
960
|
+
"declaration": {
|
|
961
|
+
"name": "SigveloCodeEditor",
|
|
962
|
+
"module": "src/components/code-editor/code-editor.ts"
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"kind": "custom-element-definition",
|
|
967
|
+
"name": "sigvelo-code-editor",
|
|
968
|
+
"declaration": {
|
|
969
|
+
"name": "SigveloCodeEditor",
|
|
970
|
+
"module": "src/components/code-editor/code-editor.ts"
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
]
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"kind": "javascript-module",
|
|
977
|
+
"path": "src/components/code-preview/code-preview.ts",
|
|
978
|
+
"declarations": [
|
|
979
|
+
{
|
|
980
|
+
"kind": "class",
|
|
981
|
+
"description": "`<sigvelo-code-preview>`",
|
|
982
|
+
"name": "SigveloCodePreview",
|
|
983
|
+
"members": [
|
|
984
|
+
{
|
|
985
|
+
"kind": "field",
|
|
986
|
+
"name": "styles",
|
|
987
|
+
"type": {
|
|
988
|
+
"text": "CSSResultGroup",
|
|
989
|
+
"references": [
|
|
990
|
+
{
|
|
991
|
+
"name": "CSSResultGroup",
|
|
992
|
+
"package": "lit",
|
|
993
|
+
"module": "lit",
|
|
994
|
+
"start": 0,
|
|
995
|
+
"end": 14
|
|
996
|
+
}
|
|
997
|
+
]
|
|
998
|
+
},
|
|
999
|
+
"static": true,
|
|
1000
|
+
"default": "[hostStyles, styles]"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"kind": "field",
|
|
1004
|
+
"name": "files",
|
|
1005
|
+
"type": {
|
|
1006
|
+
"text": "EditorFile[]",
|
|
1007
|
+
"references": [
|
|
1008
|
+
{
|
|
1009
|
+
"name": "EditorFile",
|
|
1010
|
+
"start": 0,
|
|
1011
|
+
"end": 10
|
|
1012
|
+
}
|
|
1013
|
+
]
|
|
1014
|
+
},
|
|
1015
|
+
"default": "[]",
|
|
1016
|
+
"description": "The file set to render."
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"kind": "field",
|
|
1020
|
+
"name": "entryFile",
|
|
1021
|
+
"type": {
|
|
1022
|
+
"text": "string"
|
|
1023
|
+
},
|
|
1024
|
+
"default": "\"\"",
|
|
1025
|
+
"description": "The name of the entry file. Defaults to `index.html` if present,\notherwise the first `.tsx`, `.ts`, `.jsx`, or `.js` file."
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"kind": "field",
|
|
1029
|
+
"name": "captureConsole",
|
|
1030
|
+
"type": {
|
|
1031
|
+
"text": "boolean"
|
|
1032
|
+
},
|
|
1033
|
+
"default": "false",
|
|
1034
|
+
"description": "When true, injects a console capture script into the iframe srcdoc."
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"kind": "field",
|
|
1038
|
+
"name": "_srcdoc",
|
|
1039
|
+
"type": {
|
|
1040
|
+
"text": "string"
|
|
1041
|
+
},
|
|
1042
|
+
"privacy": "private",
|
|
1043
|
+
"default": "\"\""
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"kind": "field",
|
|
1047
|
+
"name": "_pyRunnerSrc",
|
|
1048
|
+
"type": {
|
|
1049
|
+
"text": "string"
|
|
1050
|
+
},
|
|
1051
|
+
"privacy": "private",
|
|
1052
|
+
"default": "\"\""
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"kind": "field",
|
|
1056
|
+
"name": "_error",
|
|
1057
|
+
"type": {
|
|
1058
|
+
"text": "string | null"
|
|
1059
|
+
},
|
|
1060
|
+
"privacy": "private",
|
|
1061
|
+
"default": "null"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"kind": "field",
|
|
1065
|
+
"name": "_loading",
|
|
1066
|
+
"type": {
|
|
1067
|
+
"text": "boolean"
|
|
1068
|
+
},
|
|
1069
|
+
"privacy": "private",
|
|
1070
|
+
"default": "false"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"kind": "field",
|
|
1074
|
+
"name": "_blobUrls",
|
|
1075
|
+
"type": {
|
|
1076
|
+
"text": "string[]"
|
|
1077
|
+
},
|
|
1078
|
+
"privacy": "private",
|
|
1079
|
+
"default": "[]"
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"kind": "field",
|
|
1083
|
+
"name": "_pendingPyPayload",
|
|
1084
|
+
"type": {
|
|
1085
|
+
"text": "PyScriptRunPayload | null",
|
|
1086
|
+
"references": [
|
|
1087
|
+
{
|
|
1088
|
+
"name": "PyScriptRunPayload",
|
|
1089
|
+
"start": 0,
|
|
1090
|
+
"end": 18
|
|
1091
|
+
}
|
|
1092
|
+
]
|
|
1093
|
+
},
|
|
1094
|
+
"privacy": "private",
|
|
1095
|
+
"default": "null"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"kind": "field",
|
|
1099
|
+
"name": "_runnerPort",
|
|
1100
|
+
"type": {
|
|
1101
|
+
"text": "MessagePort | null"
|
|
1102
|
+
},
|
|
1103
|
+
"privacy": "private",
|
|
1104
|
+
"default": "null"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"kind": "field",
|
|
1108
|
+
"name": "_runnerChannelId",
|
|
1109
|
+
"privacy": "private",
|
|
1110
|
+
"readonly": true
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"kind": "field",
|
|
1114
|
+
"name": "CONSOLE_CAPTURE_SCRIPT",
|
|
1115
|
+
"privacy": "private",
|
|
1116
|
+
"static": true,
|
|
1117
|
+
"readonly": true,
|
|
1118
|
+
"default": "`<script> (function() { var _port = null; var _queuedMessages = []; var _connect = function(event) { if (event.source !== parent || event.origin !== '__SIGVELO_PARENT_ORIGIN__' || !event.data || event.data.type !== ${JSON.stringify(RUNNER_CONNECT_TYPE)} || event.data.channelId !== '__SIGVELO_CHANNEL_ID__' || event.data.parentOrigin !== '__SIGVELO_PARENT_ORIGIN__' || event.ports.length !== 1) return; _port = event.ports[0]; _port.start(); _queuedMessages.forEach(function(message) { _port.postMessage(message); }); _queuedMessages = []; window.removeEventListener('message', _connect); }; window.addEventListener('message', _connect); var _post = function(level, args) { try { var message = { __sigvelo_console: true, level: level, args: args.map(function(a) { try { return typeof a === 'object' ? JSON.stringify(a, null, 2) : String(a); } catch(e) { return String(a); } }), ts: Date.now() }; if (_port) _port.postMessage(message); else if (_queuedMessages.length < 100) _queuedMessages.push(message); } catch(e) {} }; ['log','warn','error','info'].forEach(function(m) { var orig = console[m]; console[m] = function() { var args = Array.prototype.slice.call(arguments); _post(m, args); orig.apply(console, args); }; }); window.addEventListener('error', function(e) { _post('error', [e.message + ' at ' + e.filename + ':' + e.lineno]); }); })(); </script>`"
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
"kind": "method",
|
|
1122
|
+
"name": "_onRunnerMessage",
|
|
1123
|
+
"privacy": "private",
|
|
1124
|
+
"parameters": [
|
|
1125
|
+
{
|
|
1126
|
+
"name": "data",
|
|
1127
|
+
"type": {
|
|
1128
|
+
"text": "unknown"
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
]
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"kind": "method",
|
|
1135
|
+
"name": "_postPyPayload",
|
|
1136
|
+
"privacy": "private"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"kind": "method",
|
|
1140
|
+
"name": "_connectRunner",
|
|
1141
|
+
"privacy": "private",
|
|
1142
|
+
"parameters": [
|
|
1143
|
+
{
|
|
1144
|
+
"name": "event",
|
|
1145
|
+
"type": {
|
|
1146
|
+
"text": "Event",
|
|
1147
|
+
"references": [
|
|
1148
|
+
{
|
|
1149
|
+
"name": "Event",
|
|
1150
|
+
"package": "dom",
|
|
1151
|
+
"start": 0,
|
|
1152
|
+
"end": 5
|
|
1153
|
+
}
|
|
1154
|
+
]
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
]
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"kind": "method",
|
|
1161
|
+
"name": "run",
|
|
1162
|
+
"return": {
|
|
1163
|
+
"type": {
|
|
1164
|
+
"text": "Promise<void>"
|
|
1165
|
+
}
|
|
1166
|
+
},
|
|
1167
|
+
"description": "Build and display the current file set."
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"kind": "method",
|
|
1171
|
+
"name": "_resolveEntry",
|
|
1172
|
+
"privacy": "private",
|
|
1173
|
+
"return": {
|
|
1174
|
+
"type": {
|
|
1175
|
+
"text": "string"
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
"parameters": [
|
|
1179
|
+
{
|
|
1180
|
+
"name": "fileMap",
|
|
1181
|
+
"type": {
|
|
1182
|
+
"text": "Map<string, EditorFile>",
|
|
1183
|
+
"references": [
|
|
1184
|
+
{
|
|
1185
|
+
"name": "EditorFile",
|
|
1186
|
+
"start": 12,
|
|
1187
|
+
"end": 22
|
|
1188
|
+
}
|
|
1189
|
+
]
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
]
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"kind": "method",
|
|
1196
|
+
"name": "_revokeBlobUrls",
|
|
1197
|
+
"privacy": "private"
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"kind": "method",
|
|
1201
|
+
"name": "_injectConsoleCapture",
|
|
1202
|
+
"privacy": "private",
|
|
1203
|
+
"return": {
|
|
1204
|
+
"type": {
|
|
1205
|
+
"text": "string"
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
"parameters": [
|
|
1209
|
+
{
|
|
1210
|
+
"name": "markup",
|
|
1211
|
+
"type": {
|
|
1212
|
+
"text": "string"
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
],
|
|
1216
|
+
"description": "Injects the console capture script before </body> if captureConsole is enabled."
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"kind": "method",
|
|
1220
|
+
"name": "render",
|
|
1221
|
+
"privacy": "protected"
|
|
1222
|
+
}
|
|
1223
|
+
],
|
|
1224
|
+
"events": [
|
|
1225
|
+
{
|
|
1226
|
+
"name": "sigvelo-console",
|
|
1227
|
+
"type": {
|
|
1228
|
+
"text": "CustomEvent",
|
|
1229
|
+
"references": [
|
|
1230
|
+
{
|
|
1231
|
+
"name": "CustomEvent",
|
|
1232
|
+
"package": "dom",
|
|
1233
|
+
"start": 0,
|
|
1234
|
+
"end": 11
|
|
1235
|
+
}
|
|
1236
|
+
]
|
|
1237
|
+
},
|
|
1238
|
+
"description": "Fires for validated console output from the isolated preview."
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"name": "sigvelo-run",
|
|
1242
|
+
"type": {
|
|
1243
|
+
"text": "CustomEvent",
|
|
1244
|
+
"references": [
|
|
1245
|
+
{
|
|
1246
|
+
"name": "CustomEvent",
|
|
1247
|
+
"package": "dom",
|
|
1248
|
+
"start": 0,
|
|
1249
|
+
"end": 11
|
|
1250
|
+
}
|
|
1251
|
+
]
|
|
1252
|
+
},
|
|
1253
|
+
"description": "Fires when execution completes successfully."
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"name": "sigvelo-error",
|
|
1257
|
+
"type": {
|
|
1258
|
+
"text": "CustomEvent",
|
|
1259
|
+
"references": [
|
|
1260
|
+
{
|
|
1261
|
+
"name": "CustomEvent",
|
|
1262
|
+
"package": "dom",
|
|
1263
|
+
"start": 0,
|
|
1264
|
+
"end": 11
|
|
1265
|
+
}
|
|
1266
|
+
]
|
|
1267
|
+
},
|
|
1268
|
+
"description": "Fires when a build or runtime error occurs. `event.detail.message` has the error text."
|
|
1269
|
+
}
|
|
1270
|
+
],
|
|
1271
|
+
"superclass": {
|
|
1272
|
+
"name": "SigveloElement",
|
|
1273
|
+
"package": "@mcp-b/wc-support/base/sigvelo-element"
|
|
1274
|
+
},
|
|
1275
|
+
"tagName": "sigvelo-code-preview",
|
|
1276
|
+
"customElement": true,
|
|
1277
|
+
"summary": "A sandboxed preview pane that transpiles and runs code from a set of\nfiles. Supports HTML entry points (with inlined CSS/JS) and module entry\npoints (TS/TSX via esm.sh). Displays errors using `<sigvelo-callout>`."
|
|
1278
|
+
}
|
|
1279
|
+
],
|
|
1280
|
+
"exports": [
|
|
1281
|
+
{
|
|
1282
|
+
"kind": "js",
|
|
1283
|
+
"name": "SigveloCodePreview",
|
|
1284
|
+
"declaration": {
|
|
1285
|
+
"name": "SigveloCodePreview",
|
|
1286
|
+
"module": "src/components/code-preview/code-preview.ts"
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"kind": "custom-element-definition",
|
|
1291
|
+
"name": "sigvelo-code-preview",
|
|
1292
|
+
"declaration": {
|
|
1293
|
+
"name": "SigveloCodePreview",
|
|
1294
|
+
"module": "src/components/code-preview/code-preview.ts"
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
]
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"kind": "javascript-module",
|
|
1301
|
+
"path": "src/components/r-editor/r-editor.ts",
|
|
1302
|
+
"declarations": [
|
|
1303
|
+
{
|
|
1304
|
+
"kind": "class",
|
|
1305
|
+
"description": "`<sigvelo-r-editor>`",
|
|
1306
|
+
"name": "SigveloREditor",
|
|
1307
|
+
"members": [
|
|
1308
|
+
{
|
|
1309
|
+
"kind": "field",
|
|
1310
|
+
"name": "styles",
|
|
1311
|
+
"type": {
|
|
1312
|
+
"text": "CSSResultGroup",
|
|
1313
|
+
"references": [
|
|
1314
|
+
{
|
|
1315
|
+
"name": "CSSResultGroup",
|
|
1316
|
+
"package": "lit",
|
|
1317
|
+
"module": "lit",
|
|
1318
|
+
"start": 0,
|
|
1319
|
+
"end": 14
|
|
1320
|
+
}
|
|
1321
|
+
]
|
|
1322
|
+
},
|
|
1323
|
+
"static": true,
|
|
1324
|
+
"default": "[hostStyles, styles]"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"kind": "field",
|
|
1328
|
+
"name": "code",
|
|
1329
|
+
"type": {
|
|
1330
|
+
"text": "string"
|
|
1331
|
+
},
|
|
1332
|
+
"default": "\"\"",
|
|
1333
|
+
"description": "Initial R code to display in the editor."
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"kind": "field",
|
|
1337
|
+
"name": "packages",
|
|
1338
|
+
"type": {
|
|
1339
|
+
"text": "string[]"
|
|
1340
|
+
},
|
|
1341
|
+
"default": "[]",
|
|
1342
|
+
"description": "R packages to pre-install before running code (e.g. `['ggplot2']`)."
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"kind": "field",
|
|
1346
|
+
"name": "editorLabel",
|
|
1347
|
+
"type": {
|
|
1348
|
+
"text": "string"
|
|
1349
|
+
},
|
|
1350
|
+
"default": "\"R code editor\"",
|
|
1351
|
+
"description": "Accessible label for the editor."
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"kind": "field",
|
|
1355
|
+
"name": "_editedCode",
|
|
1356
|
+
"type": {
|
|
1357
|
+
"text": "string"
|
|
1358
|
+
},
|
|
1359
|
+
"privacy": "private",
|
|
1360
|
+
"default": "\"\""
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"kind": "field",
|
|
1364
|
+
"name": "_consoleLogs",
|
|
1365
|
+
"type": {
|
|
1366
|
+
"text": "ConsoleEntry[]",
|
|
1367
|
+
"references": [
|
|
1368
|
+
{
|
|
1369
|
+
"name": "ConsoleEntry",
|
|
1370
|
+
"start": 0,
|
|
1371
|
+
"end": 12
|
|
1372
|
+
}
|
|
1373
|
+
]
|
|
1374
|
+
},
|
|
1375
|
+
"privacy": "private",
|
|
1376
|
+
"default": "[]"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"kind": "field",
|
|
1380
|
+
"name": "_plots",
|
|
1381
|
+
"type": {
|
|
1382
|
+
"text": "PlotEntry[]",
|
|
1383
|
+
"references": [
|
|
1384
|
+
{
|
|
1385
|
+
"name": "PlotEntry",
|
|
1386
|
+
"start": 0,
|
|
1387
|
+
"end": 9
|
|
1388
|
+
}
|
|
1389
|
+
]
|
|
1390
|
+
},
|
|
1391
|
+
"privacy": "private",
|
|
1392
|
+
"default": "[]"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"kind": "field",
|
|
1396
|
+
"name": "_currentPlotIndex",
|
|
1397
|
+
"type": {
|
|
1398
|
+
"text": "number"
|
|
1399
|
+
},
|
|
1400
|
+
"privacy": "private",
|
|
1401
|
+
"default": "0"
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"kind": "field",
|
|
1405
|
+
"name": "_webRReady",
|
|
1406
|
+
"type": {
|
|
1407
|
+
"text": "boolean"
|
|
1408
|
+
},
|
|
1409
|
+
"privacy": "private",
|
|
1410
|
+
"default": "false"
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
"kind": "field",
|
|
1414
|
+
"name": "_webRLoading",
|
|
1415
|
+
"type": {
|
|
1416
|
+
"text": "boolean"
|
|
1417
|
+
},
|
|
1418
|
+
"privacy": "private",
|
|
1419
|
+
"default": "true"
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
"kind": "field",
|
|
1423
|
+
"name": "_loadingMessage",
|
|
1424
|
+
"type": {
|
|
1425
|
+
"text": "string"
|
|
1426
|
+
},
|
|
1427
|
+
"privacy": "private",
|
|
1428
|
+
"default": "\"Initializing WebR...\""
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
"kind": "field",
|
|
1432
|
+
"name": "_running",
|
|
1433
|
+
"type": {
|
|
1434
|
+
"text": "boolean"
|
|
1435
|
+
},
|
|
1436
|
+
"privacy": "private",
|
|
1437
|
+
"default": "false"
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"kind": "field",
|
|
1441
|
+
"name": "_compact",
|
|
1442
|
+
"type": {
|
|
1443
|
+
"text": "boolean"
|
|
1444
|
+
},
|
|
1445
|
+
"privacy": "private",
|
|
1446
|
+
"default": "false"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"kind": "field",
|
|
1450
|
+
"name": "_compactView",
|
|
1451
|
+
"type": {
|
|
1452
|
+
"text": "\"code\" | \"plots\" | \"console\""
|
|
1453
|
+
},
|
|
1454
|
+
"privacy": "private",
|
|
1455
|
+
"default": "\"code\""
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"kind": "field",
|
|
1459
|
+
"name": "_rightPane",
|
|
1460
|
+
"type": {
|
|
1461
|
+
"text": "\"plots\" | \"console\""
|
|
1462
|
+
},
|
|
1463
|
+
"privacy": "private",
|
|
1464
|
+
"default": "\"console\""
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"kind": "field",
|
|
1468
|
+
"name": "_unreadConsoleCount",
|
|
1469
|
+
"type": {
|
|
1470
|
+
"text": "number"
|
|
1471
|
+
},
|
|
1472
|
+
"privacy": "private",
|
|
1473
|
+
"default": "0"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"kind": "field",
|
|
1477
|
+
"name": "_resizeObserver",
|
|
1478
|
+
"type": {
|
|
1479
|
+
"text": "ResizeObserver | null",
|
|
1480
|
+
"references": [
|
|
1481
|
+
{
|
|
1482
|
+
"name": "ResizeObserver",
|
|
1483
|
+
"package": "dom",
|
|
1484
|
+
"start": 0,
|
|
1485
|
+
"end": 14
|
|
1486
|
+
}
|
|
1487
|
+
]
|
|
1488
|
+
},
|
|
1489
|
+
"privacy": "private",
|
|
1490
|
+
"default": "null"
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
"kind": "field",
|
|
1494
|
+
"name": "_runnerIframe",
|
|
1495
|
+
"type": {
|
|
1496
|
+
"text": "HTMLIFrameElement | null",
|
|
1497
|
+
"references": [
|
|
1498
|
+
{
|
|
1499
|
+
"name": "HTMLIFrameElement",
|
|
1500
|
+
"package": "dom",
|
|
1501
|
+
"start": 0,
|
|
1502
|
+
"end": 17
|
|
1503
|
+
}
|
|
1504
|
+
]
|
|
1505
|
+
},
|
|
1506
|
+
"privacy": "private",
|
|
1507
|
+
"default": "null"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"kind": "field",
|
|
1511
|
+
"name": "_runnerPort",
|
|
1512
|
+
"type": {
|
|
1513
|
+
"text": "MessagePort | null"
|
|
1514
|
+
},
|
|
1515
|
+
"privacy": "private",
|
|
1516
|
+
"default": "null"
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
"kind": "field",
|
|
1520
|
+
"name": "_runnerChannelId",
|
|
1521
|
+
"privacy": "private",
|
|
1522
|
+
"readonly": true
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
"kind": "method",
|
|
1526
|
+
"name": "firstUpdated",
|
|
1527
|
+
"privacy": "protected"
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
"kind": "method",
|
|
1531
|
+
"name": "_initRunner",
|
|
1532
|
+
"privacy": "private"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"kind": "method",
|
|
1536
|
+
"name": "_onMessage",
|
|
1537
|
+
"privacy": "private",
|
|
1538
|
+
"parameters": [
|
|
1539
|
+
{
|
|
1540
|
+
"name": "data",
|
|
1541
|
+
"type": {
|
|
1542
|
+
"text": "unknown"
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
]
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
"kind": "method",
|
|
1549
|
+
"name": "_runCode",
|
|
1550
|
+
"privacy": "private"
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
"kind": "method",
|
|
1554
|
+
"name": "_onEditorChange",
|
|
1555
|
+
"privacy": "private",
|
|
1556
|
+
"parameters": [
|
|
1557
|
+
{
|
|
1558
|
+
"name": "e",
|
|
1559
|
+
"type": {
|
|
1560
|
+
"text": "Event",
|
|
1561
|
+
"references": [
|
|
1562
|
+
{
|
|
1563
|
+
"name": "Event",
|
|
1564
|
+
"package": "dom",
|
|
1565
|
+
"start": 0,
|
|
1566
|
+
"end": 5
|
|
1567
|
+
}
|
|
1568
|
+
]
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
]
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
"kind": "method",
|
|
1575
|
+
"name": "_prevPlot",
|
|
1576
|
+
"privacy": "private"
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"kind": "method",
|
|
1580
|
+
"name": "_nextPlot",
|
|
1581
|
+
"privacy": "private"
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
"kind": "method",
|
|
1585
|
+
"name": "_savePlot",
|
|
1586
|
+
"privacy": "private"
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
"kind": "method",
|
|
1590
|
+
"name": "_clearPlots",
|
|
1591
|
+
"privacy": "private"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"kind": "method",
|
|
1595
|
+
"name": "_clearConsole",
|
|
1596
|
+
"privacy": "private"
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
"kind": "method",
|
|
1600
|
+
"name": "_switchRightPane",
|
|
1601
|
+
"privacy": "private",
|
|
1602
|
+
"parameters": [
|
|
1603
|
+
{
|
|
1604
|
+
"name": "pane",
|
|
1605
|
+
"type": {
|
|
1606
|
+
"text": "\"plots\" | \"console\""
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
]
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
"kind": "method",
|
|
1613
|
+
"name": "_switchView",
|
|
1614
|
+
"privacy": "private",
|
|
1615
|
+
"parameters": [
|
|
1616
|
+
{
|
|
1617
|
+
"name": "view",
|
|
1618
|
+
"type": {
|
|
1619
|
+
"text": "\"code\" | \"plots\" | \"console\""
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
]
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
"kind": "method",
|
|
1626
|
+
"name": "_renderEditorPane",
|
|
1627
|
+
"privacy": "private",
|
|
1628
|
+
"parameters": [
|
|
1629
|
+
{
|
|
1630
|
+
"name": "slot",
|
|
1631
|
+
"optional": true,
|
|
1632
|
+
"type": {
|
|
1633
|
+
"text": "string"
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
]
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"kind": "method",
|
|
1640
|
+
"name": "_renderPlotViewer",
|
|
1641
|
+
"privacy": "private"
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
"kind": "method",
|
|
1645
|
+
"name": "_renderConsoleView",
|
|
1646
|
+
"privacy": "private"
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"kind": "method",
|
|
1650
|
+
"name": "_renderRightPane",
|
|
1651
|
+
"privacy": "private",
|
|
1652
|
+
"parameters": [
|
|
1653
|
+
{
|
|
1654
|
+
"name": "slot",
|
|
1655
|
+
"optional": true,
|
|
1656
|
+
"type": {
|
|
1657
|
+
"text": "string"
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
]
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
"kind": "method",
|
|
1664
|
+
"name": "_renderLoadingOverlay",
|
|
1665
|
+
"privacy": "private"
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
"kind": "method",
|
|
1669
|
+
"name": "_renderMobileNav",
|
|
1670
|
+
"privacy": "private"
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
"kind": "method",
|
|
1674
|
+
"name": "render",
|
|
1675
|
+
"privacy": "protected"
|
|
1676
|
+
}
|
|
1677
|
+
],
|
|
1678
|
+
"superclass": {
|
|
1679
|
+
"name": "SigveloElement",
|
|
1680
|
+
"package": "@mcp-b/wc-support/base/sigvelo-element"
|
|
1681
|
+
},
|
|
1682
|
+
"tagName": "sigvelo-r-editor",
|
|
1683
|
+
"customElement": true,
|
|
1684
|
+
"summary": "A WebR-powered R code editor with integrated console output and plot\nviewer. Runs R code in the browser via WebAssembly. The editor pane uses\nCodeMirror with R syntax highlighting, while the right pane shows captured\nplots and console output in separate tabs."
|
|
1685
|
+
}
|
|
1686
|
+
],
|
|
1687
|
+
"exports": [
|
|
1688
|
+
{
|
|
1689
|
+
"kind": "js",
|
|
1690
|
+
"name": "SigveloREditor",
|
|
1691
|
+
"declaration": {
|
|
1692
|
+
"name": "SigveloREditor",
|
|
1693
|
+
"module": "src/components/r-editor/r-editor.ts"
|
|
1694
|
+
}
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"kind": "custom-element-definition",
|
|
1698
|
+
"name": "sigvelo-r-editor",
|
|
1699
|
+
"declaration": {
|
|
1700
|
+
"name": "SigveloREditor",
|
|
1701
|
+
"module": "src/components/r-editor/r-editor.ts"
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
]
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
"kind": "javascript-module",
|
|
1708
|
+
"path": "src/components/sql-editor/sql-editor.ts",
|
|
1709
|
+
"declarations": [
|
|
1710
|
+
{
|
|
1711
|
+
"kind": "class",
|
|
1712
|
+
"description": "`<sigvelo-sql-editor>`",
|
|
1713
|
+
"name": "SigveloSqlEditor",
|
|
1714
|
+
"members": [
|
|
1715
|
+
{
|
|
1716
|
+
"kind": "field",
|
|
1717
|
+
"name": "styles",
|
|
1718
|
+
"type": {
|
|
1719
|
+
"text": "CSSResultGroup",
|
|
1720
|
+
"references": [
|
|
1721
|
+
{
|
|
1722
|
+
"name": "CSSResultGroup",
|
|
1723
|
+
"package": "lit",
|
|
1724
|
+
"module": "lit",
|
|
1725
|
+
"start": 0,
|
|
1726
|
+
"end": 14
|
|
1727
|
+
}
|
|
1728
|
+
]
|
|
1729
|
+
},
|
|
1730
|
+
"static": true,
|
|
1731
|
+
"default": "[hostStyles, styles]"
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
"kind": "field",
|
|
1735
|
+
"name": "setupSql",
|
|
1736
|
+
"type": {
|
|
1737
|
+
"text": "string"
|
|
1738
|
+
},
|
|
1739
|
+
"default": "\"\"",
|
|
1740
|
+
"description": "SQL to execute on database initialization (CREATE TABLE, INSERT, etc.)."
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
"kind": "field",
|
|
1744
|
+
"name": "code",
|
|
1745
|
+
"type": {
|
|
1746
|
+
"text": "string"
|
|
1747
|
+
},
|
|
1748
|
+
"default": "\"\"",
|
|
1749
|
+
"description": "Initial query in the editor."
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"kind": "field",
|
|
1753
|
+
"name": "dbName",
|
|
1754
|
+
"type": {
|
|
1755
|
+
"text": "string"
|
|
1756
|
+
},
|
|
1757
|
+
"default": "\"\"",
|
|
1758
|
+
"description": "IndexedDB name for persistence. Empty = in-memory (no persistence)."
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"kind": "field",
|
|
1762
|
+
"name": "postgis",
|
|
1763
|
+
"type": {
|
|
1764
|
+
"text": "boolean"
|
|
1765
|
+
},
|
|
1766
|
+
"default": "false",
|
|
1767
|
+
"description": "Enable PostGIS extension on the in-browser database."
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
"kind": "field",
|
|
1771
|
+
"name": "editorLabel",
|
|
1772
|
+
"type": {
|
|
1773
|
+
"text": "string"
|
|
1774
|
+
},
|
|
1775
|
+
"default": "\"SQL code editor\"",
|
|
1776
|
+
"description": "Accessible label for the editor."
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"kind": "field",
|
|
1780
|
+
"name": "_editedCode",
|
|
1781
|
+
"type": {
|
|
1782
|
+
"text": "string"
|
|
1783
|
+
},
|
|
1784
|
+
"privacy": "private",
|
|
1785
|
+
"default": "\"\""
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
"kind": "field",
|
|
1789
|
+
"name": "_pgliteReady",
|
|
1790
|
+
"type": {
|
|
1791
|
+
"text": "boolean"
|
|
1792
|
+
},
|
|
1793
|
+
"privacy": "private",
|
|
1794
|
+
"default": "false"
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
"kind": "field",
|
|
1798
|
+
"name": "_pgliteLoading",
|
|
1799
|
+
"type": {
|
|
1800
|
+
"text": "boolean"
|
|
1801
|
+
},
|
|
1802
|
+
"privacy": "private",
|
|
1803
|
+
"default": "true"
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
"kind": "field",
|
|
1807
|
+
"name": "_loadingMessage",
|
|
1808
|
+
"type": {
|
|
1809
|
+
"text": "string"
|
|
1810
|
+
},
|
|
1811
|
+
"privacy": "private",
|
|
1812
|
+
"default": "\"Initializing PostgreSQL...\""
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"kind": "field",
|
|
1816
|
+
"name": "_running",
|
|
1817
|
+
"type": {
|
|
1818
|
+
"text": "boolean"
|
|
1819
|
+
},
|
|
1820
|
+
"privacy": "private",
|
|
1821
|
+
"default": "false"
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
"kind": "field",
|
|
1825
|
+
"name": "_resultFields",
|
|
1826
|
+
"type": {
|
|
1827
|
+
"text": "ResultField[]",
|
|
1828
|
+
"references": [
|
|
1829
|
+
{
|
|
1830
|
+
"name": "ResultField",
|
|
1831
|
+
"start": 0,
|
|
1832
|
+
"end": 11
|
|
1833
|
+
}
|
|
1834
|
+
]
|
|
1835
|
+
},
|
|
1836
|
+
"privacy": "private",
|
|
1837
|
+
"default": "[]"
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
"kind": "field",
|
|
1841
|
+
"name": "_resultRows",
|
|
1842
|
+
"type": {
|
|
1843
|
+
"text": "Record<string, unknown>[]"
|
|
1844
|
+
},
|
|
1845
|
+
"privacy": "private",
|
|
1846
|
+
"default": "[]"
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
"kind": "field",
|
|
1850
|
+
"name": "_rowCount",
|
|
1851
|
+
"type": {
|
|
1852
|
+
"text": "number"
|
|
1853
|
+
},
|
|
1854
|
+
"privacy": "private",
|
|
1855
|
+
"default": "0"
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"kind": "field",
|
|
1859
|
+
"name": "_executionTimeMs",
|
|
1860
|
+
"type": {
|
|
1861
|
+
"text": "number"
|
|
1862
|
+
},
|
|
1863
|
+
"privacy": "private",
|
|
1864
|
+
"default": "0"
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
"kind": "field",
|
|
1868
|
+
"name": "_error",
|
|
1869
|
+
"type": {
|
|
1870
|
+
"text": "string | null"
|
|
1871
|
+
},
|
|
1872
|
+
"privacy": "private",
|
|
1873
|
+
"default": "null"
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"kind": "field",
|
|
1877
|
+
"name": "_schema",
|
|
1878
|
+
"type": {
|
|
1879
|
+
"text": "SchemaTable[]",
|
|
1880
|
+
"references": [
|
|
1881
|
+
{
|
|
1882
|
+
"name": "SchemaTable",
|
|
1883
|
+
"start": 0,
|
|
1884
|
+
"end": 11
|
|
1885
|
+
}
|
|
1886
|
+
]
|
|
1887
|
+
},
|
|
1888
|
+
"privacy": "private",
|
|
1889
|
+
"default": "[]"
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
"kind": "field",
|
|
1893
|
+
"name": "_expandedTables",
|
|
1894
|
+
"privacy": "private",
|
|
1895
|
+
"default": "new Set<string>()"
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
"kind": "field",
|
|
1899
|
+
"name": "_sortColumn",
|
|
1900
|
+
"type": {
|
|
1901
|
+
"text": "string | null"
|
|
1902
|
+
},
|
|
1903
|
+
"privacy": "private",
|
|
1904
|
+
"default": "null"
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"kind": "field",
|
|
1908
|
+
"name": "_sortDirection",
|
|
1909
|
+
"type": {
|
|
1910
|
+
"text": "SortDirection",
|
|
1911
|
+
"references": [
|
|
1912
|
+
{
|
|
1913
|
+
"name": "SortDirection",
|
|
1914
|
+
"start": 0,
|
|
1915
|
+
"end": 13
|
|
1916
|
+
}
|
|
1917
|
+
]
|
|
1918
|
+
},
|
|
1919
|
+
"privacy": "private",
|
|
1920
|
+
"default": "null"
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
"kind": "field",
|
|
1924
|
+
"name": "_compact",
|
|
1925
|
+
"type": {
|
|
1926
|
+
"text": "boolean"
|
|
1927
|
+
},
|
|
1928
|
+
"privacy": "private",
|
|
1929
|
+
"default": "false"
|
|
1930
|
+
},
|
|
1931
|
+
{
|
|
1932
|
+
"kind": "field",
|
|
1933
|
+
"name": "_compactView",
|
|
1934
|
+
"type": {
|
|
1935
|
+
"text": "\"code\" | \"results\" | \"schema\""
|
|
1936
|
+
},
|
|
1937
|
+
"privacy": "private",
|
|
1938
|
+
"default": "\"code\""
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
"kind": "field",
|
|
1942
|
+
"name": "_rightPane",
|
|
1943
|
+
"type": {
|
|
1944
|
+
"text": "\"results\" | \"schema\""
|
|
1945
|
+
},
|
|
1946
|
+
"privacy": "private",
|
|
1947
|
+
"default": "\"results\""
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
"kind": "field",
|
|
1951
|
+
"name": "_runner",
|
|
1952
|
+
"type": {
|
|
1953
|
+
"text": "Worker | null"
|
|
1954
|
+
},
|
|
1955
|
+
"privacy": "private",
|
|
1956
|
+
"default": "null"
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
"kind": "field",
|
|
1960
|
+
"name": "_resizeObserver",
|
|
1961
|
+
"type": {
|
|
1962
|
+
"text": "ResizeObserver | null",
|
|
1963
|
+
"references": [
|
|
1964
|
+
{
|
|
1965
|
+
"name": "ResizeObserver",
|
|
1966
|
+
"package": "dom",
|
|
1967
|
+
"start": 0,
|
|
1968
|
+
"end": 14
|
|
1969
|
+
}
|
|
1970
|
+
]
|
|
1971
|
+
},
|
|
1972
|
+
"privacy": "private",
|
|
1973
|
+
"default": "null"
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
"kind": "field",
|
|
1977
|
+
"name": "_execId",
|
|
1978
|
+
"type": {
|
|
1979
|
+
"text": "number"
|
|
1980
|
+
},
|
|
1981
|
+
"privacy": "private",
|
|
1982
|
+
"default": "0"
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
"kind": "method",
|
|
1986
|
+
"name": "firstUpdated",
|
|
1987
|
+
"privacy": "protected"
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"kind": "method",
|
|
1991
|
+
"name": "_initRunner",
|
|
1992
|
+
"privacy": "private"
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
"kind": "method",
|
|
1996
|
+
"name": "_postToRunner",
|
|
1997
|
+
"privacy": "private",
|
|
1998
|
+
"parameters": [
|
|
1999
|
+
{
|
|
2000
|
+
"name": "msg",
|
|
2001
|
+
"type": {
|
|
2002
|
+
"text": "Record<string, unknown>"
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
]
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
"kind": "method",
|
|
2009
|
+
"name": "_onMessage",
|
|
2010
|
+
"privacy": "private",
|
|
2011
|
+
"parameters": [
|
|
2012
|
+
{
|
|
2013
|
+
"name": "data",
|
|
2014
|
+
"type": {
|
|
2015
|
+
"text": "unknown"
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
]
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
"kind": "method",
|
|
2022
|
+
"name": "_requestSchema",
|
|
2023
|
+
"privacy": "private"
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
"kind": "method",
|
|
2027
|
+
"name": "_runCode",
|
|
2028
|
+
"privacy": "private"
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
"kind": "method",
|
|
2032
|
+
"name": "_onEditorChange",
|
|
2033
|
+
"privacy": "private",
|
|
2034
|
+
"parameters": [
|
|
2035
|
+
{
|
|
2036
|
+
"name": "e",
|
|
2037
|
+
"type": {
|
|
2038
|
+
"text": "Event",
|
|
2039
|
+
"references": [
|
|
2040
|
+
{
|
|
2041
|
+
"name": "Event",
|
|
2042
|
+
"package": "dom",
|
|
2043
|
+
"start": 0,
|
|
2044
|
+
"end": 5
|
|
2045
|
+
}
|
|
2046
|
+
]
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
]
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
"kind": "method",
|
|
2053
|
+
"name": "_resetDatabase",
|
|
2054
|
+
"privacy": "private"
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
"kind": "field",
|
|
2058
|
+
"name": "_boundOnKeydown",
|
|
2059
|
+
"privacy": "private"
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
"kind": "method",
|
|
2063
|
+
"name": "_onKeydown",
|
|
2064
|
+
"privacy": "private",
|
|
2065
|
+
"parameters": [
|
|
2066
|
+
{
|
|
2067
|
+
"name": "e",
|
|
2068
|
+
"type": {
|
|
2069
|
+
"text": "KeyboardEvent",
|
|
2070
|
+
"references": [
|
|
2071
|
+
{
|
|
2072
|
+
"name": "KeyboardEvent",
|
|
2073
|
+
"package": "dom",
|
|
2074
|
+
"start": 0,
|
|
2075
|
+
"end": 13
|
|
2076
|
+
}
|
|
2077
|
+
]
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
]
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
"kind": "method",
|
|
2084
|
+
"name": "_toggleTable",
|
|
2085
|
+
"privacy": "private",
|
|
2086
|
+
"parameters": [
|
|
2087
|
+
{
|
|
2088
|
+
"name": "name",
|
|
2089
|
+
"type": {
|
|
2090
|
+
"text": "string"
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
]
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
"kind": "method",
|
|
2097
|
+
"name": "_insertSelectQuery",
|
|
2098
|
+
"privacy": "private",
|
|
2099
|
+
"parameters": [
|
|
2100
|
+
{
|
|
2101
|
+
"name": "tableName",
|
|
2102
|
+
"type": {
|
|
2103
|
+
"text": "string"
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
]
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
"kind": "method",
|
|
2110
|
+
"name": "_toggleSort",
|
|
2111
|
+
"privacy": "private",
|
|
2112
|
+
"parameters": [
|
|
2113
|
+
{
|
|
2114
|
+
"name": "columnName",
|
|
2115
|
+
"type": {
|
|
2116
|
+
"text": "string"
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
]
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
"kind": "method",
|
|
2123
|
+
"name": "_getSortedRows",
|
|
2124
|
+
"privacy": "private",
|
|
2125
|
+
"return": {
|
|
2126
|
+
"type": {
|
|
2127
|
+
"text": "Record<string, unknown>[]"
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
"kind": "method",
|
|
2133
|
+
"name": "_renderEditorPane",
|
|
2134
|
+
"privacy": "private",
|
|
2135
|
+
"parameters": [
|
|
2136
|
+
{
|
|
2137
|
+
"name": "slot",
|
|
2138
|
+
"optional": true,
|
|
2139
|
+
"type": {
|
|
2140
|
+
"text": "string"
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
]
|
|
2144
|
+
},
|
|
2145
|
+
{
|
|
2146
|
+
"kind": "method",
|
|
2147
|
+
"name": "_renderResultsView",
|
|
2148
|
+
"privacy": "private"
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
"kind": "method",
|
|
2152
|
+
"name": "_renderSchemaView",
|
|
2153
|
+
"privacy": "private"
|
|
2154
|
+
},
|
|
2155
|
+
{
|
|
2156
|
+
"kind": "method",
|
|
2157
|
+
"name": "_renderRightPane",
|
|
2158
|
+
"privacy": "private",
|
|
2159
|
+
"parameters": [
|
|
2160
|
+
{
|
|
2161
|
+
"name": "slot",
|
|
2162
|
+
"optional": true,
|
|
2163
|
+
"type": {
|
|
2164
|
+
"text": "string"
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
]
|
|
2168
|
+
},
|
|
2169
|
+
{
|
|
2170
|
+
"kind": "method",
|
|
2171
|
+
"name": "_renderLoadingOverlay",
|
|
2172
|
+
"privacy": "private"
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"kind": "method",
|
|
2176
|
+
"name": "_renderMobileNav",
|
|
2177
|
+
"privacy": "private"
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
"kind": "method",
|
|
2181
|
+
"name": "render",
|
|
2182
|
+
"privacy": "protected"
|
|
2183
|
+
}
|
|
2184
|
+
],
|
|
2185
|
+
"superclass": {
|
|
2186
|
+
"name": "SigveloElement",
|
|
2187
|
+
"package": "@mcp-b/wc-support/base/sigvelo-element"
|
|
2188
|
+
},
|
|
2189
|
+
"tagName": "sigvelo-sql-editor",
|
|
2190
|
+
"customElement": true,
|
|
2191
|
+
"summary": "An in-browser PostgreSQL editor powered by PGlite (WASM). Runs\nSQL queries locally with no server. Includes a results table, schema\nbrowser with autocompletion, and optional dataset preloading via the\n`setup-sql` attribute."
|
|
2192
|
+
}
|
|
2193
|
+
],
|
|
2194
|
+
"exports": [
|
|
2195
|
+
{
|
|
2196
|
+
"kind": "js",
|
|
2197
|
+
"name": "SigveloSqlEditor",
|
|
2198
|
+
"declaration": {
|
|
2199
|
+
"name": "SigveloSqlEditor",
|
|
2200
|
+
"module": "src/components/sql-editor/sql-editor.ts"
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"kind": "custom-element-definition",
|
|
2205
|
+
"name": "sigvelo-sql-editor",
|
|
2206
|
+
"declaration": {
|
|
2207
|
+
"name": "SigveloSqlEditor",
|
|
2208
|
+
"module": "src/components/sql-editor/sql-editor.ts"
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
]
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
"kind": "javascript-module",
|
|
2215
|
+
"path": "src/components/interactive-editor/interactive-editor.ts",
|
|
2216
|
+
"declarations": [
|
|
2217
|
+
{
|
|
2218
|
+
"kind": "class",
|
|
2219
|
+
"description": "`<sigvelo-interactive-editor>`",
|
|
2220
|
+
"name": "SigveloInteractiveEditor",
|
|
2221
|
+
"cssProperties": [
|
|
2222
|
+
{
|
|
2223
|
+
"description": "The editor's block size.",
|
|
2224
|
+
"name": "--sigvelo-interactive-editor-height",
|
|
2225
|
+
"default": "30rem"
|
|
2226
|
+
}
|
|
2227
|
+
],
|
|
2228
|
+
"members": [
|
|
2229
|
+
{
|
|
2230
|
+
"kind": "field",
|
|
2231
|
+
"name": "styles",
|
|
2232
|
+
"type": {
|
|
2233
|
+
"text": "CSSResultGroup",
|
|
2234
|
+
"references": [
|
|
2235
|
+
{
|
|
2236
|
+
"name": "CSSResultGroup",
|
|
2237
|
+
"package": "lit",
|
|
2238
|
+
"module": "lit",
|
|
2239
|
+
"start": 0,
|
|
2240
|
+
"end": 14
|
|
2241
|
+
}
|
|
2242
|
+
]
|
|
2243
|
+
},
|
|
2244
|
+
"static": true,
|
|
2245
|
+
"default": "[hostStyles, styles]"
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
"kind": "field",
|
|
2249
|
+
"name": "files",
|
|
2250
|
+
"type": {
|
|
2251
|
+
"text": "EditorFile[]",
|
|
2252
|
+
"references": [
|
|
2253
|
+
{
|
|
2254
|
+
"name": "EditorFile",
|
|
2255
|
+
"start": 0,
|
|
2256
|
+
"end": 10
|
|
2257
|
+
}
|
|
2258
|
+
]
|
|
2259
|
+
},
|
|
2260
|
+
"default": "[]"
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
"kind": "field",
|
|
2264
|
+
"name": "entryFile",
|
|
2265
|
+
"type": {
|
|
2266
|
+
"text": "string"
|
|
2267
|
+
},
|
|
2268
|
+
"default": "\"\""
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
"kind": "field",
|
|
2272
|
+
"name": "layout",
|
|
2273
|
+
"type": {
|
|
2274
|
+
"text": "\"horizontal\" | \"vertical\""
|
|
2275
|
+
},
|
|
2276
|
+
"default": "\"vertical\""
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
"kind": "field",
|
|
2280
|
+
"name": "hideEditor",
|
|
2281
|
+
"type": {
|
|
2282
|
+
"text": "boolean"
|
|
2283
|
+
},
|
|
2284
|
+
"default": "false"
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
"kind": "field",
|
|
2288
|
+
"name": "hidePreview",
|
|
2289
|
+
"type": {
|
|
2290
|
+
"text": "boolean"
|
|
2291
|
+
},
|
|
2292
|
+
"default": "false"
|
|
2293
|
+
},
|
|
2294
|
+
{
|
|
2295
|
+
"kind": "field",
|
|
2296
|
+
"name": "autoRun",
|
|
2297
|
+
"type": {
|
|
2298
|
+
"text": "boolean"
|
|
2299
|
+
},
|
|
2300
|
+
"default": "true"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
"kind": "field",
|
|
2304
|
+
"name": "_activeFileName",
|
|
2305
|
+
"type": {
|
|
2306
|
+
"text": "string"
|
|
2307
|
+
},
|
|
2308
|
+
"privacy": "private",
|
|
2309
|
+
"default": "\"\""
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
"kind": "field",
|
|
2313
|
+
"name": "_fileContents",
|
|
2314
|
+
"type": {
|
|
2315
|
+
"text": "Map<string, string>"
|
|
2316
|
+
},
|
|
2317
|
+
"privacy": "private",
|
|
2318
|
+
"default": "new Map()"
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
"kind": "field",
|
|
2322
|
+
"name": "_showAddFile",
|
|
2323
|
+
"type": {
|
|
2324
|
+
"text": "boolean"
|
|
2325
|
+
},
|
|
2326
|
+
"privacy": "private",
|
|
2327
|
+
"default": "false"
|
|
2328
|
+
},
|
|
2329
|
+
{
|
|
2330
|
+
"kind": "field",
|
|
2331
|
+
"name": "_newFileName",
|
|
2332
|
+
"type": {
|
|
2333
|
+
"text": "string"
|
|
2334
|
+
},
|
|
2335
|
+
"privacy": "private",
|
|
2336
|
+
"default": "\"\""
|
|
2337
|
+
},
|
|
2338
|
+
{
|
|
2339
|
+
"kind": "field",
|
|
2340
|
+
"name": "_fileError",
|
|
2341
|
+
"type": {
|
|
2342
|
+
"text": "string"
|
|
2343
|
+
},
|
|
2344
|
+
"privacy": "private",
|
|
2345
|
+
"default": "\"\""
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
"kind": "field",
|
|
2349
|
+
"name": "_compact",
|
|
2350
|
+
"type": {
|
|
2351
|
+
"text": "boolean"
|
|
2352
|
+
},
|
|
2353
|
+
"privacy": "private",
|
|
2354
|
+
"default": "false"
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
"kind": "field",
|
|
2358
|
+
"name": "_compactView",
|
|
2359
|
+
"type": {
|
|
2360
|
+
"text": "\"files\" | \"code\" | \"preview\" | \"console\""
|
|
2361
|
+
},
|
|
2362
|
+
"privacy": "private",
|
|
2363
|
+
"default": "\"code\""
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
"kind": "field",
|
|
2367
|
+
"name": "_rightPane",
|
|
2368
|
+
"type": {
|
|
2369
|
+
"text": "\"preview\" | \"console\""
|
|
2370
|
+
},
|
|
2371
|
+
"privacy": "private",
|
|
2372
|
+
"default": "\"preview\""
|
|
2373
|
+
},
|
|
2374
|
+
{
|
|
2375
|
+
"kind": "field",
|
|
2376
|
+
"name": "_consoleLogs",
|
|
2377
|
+
"type": {
|
|
2378
|
+
"text": "ConsoleEntry[]",
|
|
2379
|
+
"references": [
|
|
2380
|
+
{
|
|
2381
|
+
"name": "ConsoleEntry",
|
|
2382
|
+
"start": 0,
|
|
2383
|
+
"end": 12
|
|
2384
|
+
}
|
|
2385
|
+
]
|
|
2386
|
+
},
|
|
2387
|
+
"privacy": "private",
|
|
2388
|
+
"default": "[]"
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"kind": "field",
|
|
2392
|
+
"name": "_unreadConsoleCount",
|
|
2393
|
+
"type": {
|
|
2394
|
+
"text": "number"
|
|
2395
|
+
},
|
|
2396
|
+
"privacy": "private",
|
|
2397
|
+
"default": "0"
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
"kind": "field",
|
|
2401
|
+
"name": "_sidebarOpen",
|
|
2402
|
+
"type": {
|
|
2403
|
+
"text": "boolean"
|
|
2404
|
+
},
|
|
2405
|
+
"privacy": "private",
|
|
2406
|
+
"default": "true"
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"kind": "field",
|
|
2410
|
+
"name": "_expandedFolders",
|
|
2411
|
+
"type": {
|
|
2412
|
+
"text": "Set<string>"
|
|
2413
|
+
},
|
|
2414
|
+
"privacy": "private",
|
|
2415
|
+
"default": "new Set()"
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
"kind": "field",
|
|
2419
|
+
"name": "_preview",
|
|
2420
|
+
"type": {
|
|
2421
|
+
"text": "SigveloCodePreview",
|
|
2422
|
+
"references": [
|
|
2423
|
+
{
|
|
2424
|
+
"name": "SigveloCodePreview",
|
|
2425
|
+
"start": 0,
|
|
2426
|
+
"end": 18
|
|
2427
|
+
}
|
|
2428
|
+
]
|
|
2429
|
+
},
|
|
2430
|
+
"privacy": "private"
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
"kind": "field",
|
|
2434
|
+
"name": "_runDebounce",
|
|
2435
|
+
"type": {
|
|
2436
|
+
"text": "ReturnType<typeof setTimeout> | null"
|
|
2437
|
+
},
|
|
2438
|
+
"privacy": "private",
|
|
2439
|
+
"default": "null"
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
"kind": "field",
|
|
2443
|
+
"name": "_resizeObserver",
|
|
2444
|
+
"type": {
|
|
2445
|
+
"text": "ResizeObserver | null",
|
|
2446
|
+
"references": [
|
|
2447
|
+
{
|
|
2448
|
+
"name": "ResizeObserver",
|
|
2449
|
+
"package": "dom",
|
|
2450
|
+
"start": 0,
|
|
2451
|
+
"end": 14
|
|
2452
|
+
}
|
|
2453
|
+
]
|
|
2454
|
+
},
|
|
2455
|
+
"privacy": "private",
|
|
2456
|
+
"default": "null"
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
"kind": "method",
|
|
2460
|
+
"name": "willUpdate",
|
|
2461
|
+
"privacy": "protected",
|
|
2462
|
+
"parameters": [
|
|
2463
|
+
{
|
|
2464
|
+
"name": "changed",
|
|
2465
|
+
"type": {
|
|
2466
|
+
"text": "PropertyValues",
|
|
2467
|
+
"references": [
|
|
2468
|
+
{
|
|
2469
|
+
"name": "PropertyValues",
|
|
2470
|
+
"package": "lit",
|
|
2471
|
+
"module": "lit",
|
|
2472
|
+
"start": 0,
|
|
2473
|
+
"end": 14
|
|
2474
|
+
}
|
|
2475
|
+
]
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
]
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
"kind": "method",
|
|
2482
|
+
"name": "updated",
|
|
2483
|
+
"privacy": "protected",
|
|
2484
|
+
"parameters": [
|
|
2485
|
+
{
|
|
2486
|
+
"name": "changed",
|
|
2487
|
+
"type": {
|
|
2488
|
+
"text": "PropertyValues",
|
|
2489
|
+
"references": [
|
|
2490
|
+
{
|
|
2491
|
+
"name": "PropertyValues",
|
|
2492
|
+
"package": "lit",
|
|
2493
|
+
"module": "lit",
|
|
2494
|
+
"start": 0,
|
|
2495
|
+
"end": 14
|
|
2496
|
+
}
|
|
2497
|
+
]
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
]
|
|
2501
|
+
},
|
|
2502
|
+
{
|
|
2503
|
+
"kind": "method",
|
|
2504
|
+
"name": "_onConsoleMessage",
|
|
2505
|
+
"privacy": "private",
|
|
2506
|
+
"parameters": [
|
|
2507
|
+
{
|
|
2508
|
+
"name": "e",
|
|
2509
|
+
"type": {
|
|
2510
|
+
"text": "CustomEvent<ConsoleEntry>",
|
|
2511
|
+
"references": [
|
|
2512
|
+
{
|
|
2513
|
+
"name": "CustomEvent",
|
|
2514
|
+
"package": "dom",
|
|
2515
|
+
"start": 0,
|
|
2516
|
+
"end": 11
|
|
2517
|
+
},
|
|
2518
|
+
{
|
|
2519
|
+
"name": "ConsoleEntry",
|
|
2520
|
+
"start": 12,
|
|
2521
|
+
"end": 24
|
|
2522
|
+
}
|
|
2523
|
+
]
|
|
2524
|
+
}
|
|
2525
|
+
}
|
|
2526
|
+
]
|
|
2527
|
+
},
|
|
2528
|
+
{
|
|
2529
|
+
"kind": "method",
|
|
2530
|
+
"name": "_clearConsole",
|
|
2531
|
+
"privacy": "private"
|
|
2532
|
+
},
|
|
2533
|
+
{
|
|
2534
|
+
"kind": "method",
|
|
2535
|
+
"name": "_initFiles",
|
|
2536
|
+
"privacy": "private"
|
|
2537
|
+
},
|
|
2538
|
+
{
|
|
2539
|
+
"kind": "method",
|
|
2540
|
+
"name": "_activeContent",
|
|
2541
|
+
"privacy": "private",
|
|
2542
|
+
"return": {
|
|
2543
|
+
"type": {
|
|
2544
|
+
"text": "string"
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
"kind": "method",
|
|
2550
|
+
"name": "_activeLanguage",
|
|
2551
|
+
"privacy": "private",
|
|
2552
|
+
"return": {
|
|
2553
|
+
"type": {
|
|
2554
|
+
"text": "FileLanguage",
|
|
2555
|
+
"references": [
|
|
2556
|
+
{
|
|
2557
|
+
"name": "FileLanguage",
|
|
2558
|
+
"start": 0,
|
|
2559
|
+
"end": 12
|
|
2560
|
+
}
|
|
2561
|
+
]
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
},
|
|
2565
|
+
{
|
|
2566
|
+
"kind": "method",
|
|
2567
|
+
"name": "_onEditorChange",
|
|
2568
|
+
"privacy": "private",
|
|
2569
|
+
"parameters": [
|
|
2570
|
+
{
|
|
2571
|
+
"name": "e",
|
|
2572
|
+
"type": {
|
|
2573
|
+
"text": "Event",
|
|
2574
|
+
"references": [
|
|
2575
|
+
{
|
|
2576
|
+
"name": "Event",
|
|
2577
|
+
"package": "dom",
|
|
2578
|
+
"start": 0,
|
|
2579
|
+
"end": 5
|
|
2580
|
+
}
|
|
2581
|
+
]
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
]
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
"kind": "method",
|
|
2588
|
+
"name": "_scheduleRun",
|
|
2589
|
+
"privacy": "private"
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
"kind": "method",
|
|
2593
|
+
"name": "_runCode",
|
|
2594
|
+
"privacy": "private",
|
|
2595
|
+
"parameters": [
|
|
2596
|
+
{
|
|
2597
|
+
"name": "clearConsole",
|
|
2598
|
+
"default": "true"
|
|
2599
|
+
}
|
|
2600
|
+
]
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
"kind": "method",
|
|
2604
|
+
"name": "_projectRuntime",
|
|
2605
|
+
"privacy": "private",
|
|
2606
|
+
"return": {
|
|
2607
|
+
"type": {
|
|
2608
|
+
"text": "\"python\" | \"r\" | \"js\""
|
|
2609
|
+
}
|
|
2610
|
+
},
|
|
2611
|
+
"description": "Returns the runtime language of the project ('python', 'r', or 'js')."
|
|
2612
|
+
},
|
|
2613
|
+
{
|
|
2614
|
+
"kind": "method",
|
|
2615
|
+
"name": "_confirmAddFile",
|
|
2616
|
+
"privacy": "private"
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
"kind": "method",
|
|
2620
|
+
"name": "_dismissAddFile",
|
|
2621
|
+
"privacy": "private"
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
"kind": "method",
|
|
2625
|
+
"name": "_removeFile",
|
|
2626
|
+
"privacy": "private",
|
|
2627
|
+
"parameters": [
|
|
2628
|
+
{
|
|
2629
|
+
"name": "name",
|
|
2630
|
+
"type": {
|
|
2631
|
+
"text": "string"
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
]
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
"kind": "method",
|
|
2638
|
+
"name": "_switchView",
|
|
2639
|
+
"privacy": "private",
|
|
2640
|
+
"parameters": [
|
|
2641
|
+
{
|
|
2642
|
+
"name": "view",
|
|
2643
|
+
"type": {
|
|
2644
|
+
"text": "\"files\" | \"code\" | \"preview\" | \"console\""
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
]
|
|
2648
|
+
},
|
|
2649
|
+
{
|
|
2650
|
+
"kind": "method",
|
|
2651
|
+
"name": "_selectFileAndShowCode",
|
|
2652
|
+
"privacy": "private",
|
|
2653
|
+
"parameters": [
|
|
2654
|
+
{
|
|
2655
|
+
"name": "name",
|
|
2656
|
+
"type": {
|
|
2657
|
+
"text": "string"
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
]
|
|
2661
|
+
},
|
|
2662
|
+
{
|
|
2663
|
+
"kind": "method",
|
|
2664
|
+
"name": "_switchRightPane",
|
|
2665
|
+
"privacy": "private",
|
|
2666
|
+
"parameters": [
|
|
2667
|
+
{
|
|
2668
|
+
"name": "pane",
|
|
2669
|
+
"type": {
|
|
2670
|
+
"text": "\"preview\" | \"console\""
|
|
2671
|
+
}
|
|
2672
|
+
}
|
|
2673
|
+
]
|
|
2674
|
+
},
|
|
2675
|
+
{
|
|
2676
|
+
"kind": "method",
|
|
2677
|
+
"name": "_toggleFolder",
|
|
2678
|
+
"privacy": "private",
|
|
2679
|
+
"parameters": [
|
|
2680
|
+
{
|
|
2681
|
+
"name": "path",
|
|
2682
|
+
"type": {
|
|
2683
|
+
"text": "string"
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
]
|
|
2687
|
+
},
|
|
2688
|
+
{
|
|
2689
|
+
"kind": "method",
|
|
2690
|
+
"name": "_renderTreeNodes",
|
|
2691
|
+
"privacy": "private",
|
|
2692
|
+
"return": {
|
|
2693
|
+
"type": {
|
|
2694
|
+
"text": "unknown[]"
|
|
2695
|
+
}
|
|
2696
|
+
},
|
|
2697
|
+
"parameters": [
|
|
2698
|
+
{
|
|
2699
|
+
"name": "nodes",
|
|
2700
|
+
"type": {
|
|
2701
|
+
"text": "FileTreeNode[]",
|
|
2702
|
+
"references": [
|
|
2703
|
+
{
|
|
2704
|
+
"name": "FileTreeNode",
|
|
2705
|
+
"start": 0,
|
|
2706
|
+
"end": 12
|
|
2707
|
+
}
|
|
2708
|
+
]
|
|
2709
|
+
}
|
|
2710
|
+
},
|
|
2711
|
+
{
|
|
2712
|
+
"name": "depth",
|
|
2713
|
+
"type": {
|
|
2714
|
+
"text": "number"
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
]
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
"kind": "method",
|
|
2721
|
+
"name": "_renderSidebar",
|
|
2722
|
+
"privacy": "private"
|
|
2723
|
+
},
|
|
2724
|
+
{
|
|
2725
|
+
"kind": "method",
|
|
2726
|
+
"name": "_renderEditorPane",
|
|
2727
|
+
"privacy": "private",
|
|
2728
|
+
"parameters": [
|
|
2729
|
+
{
|
|
2730
|
+
"name": "slot",
|
|
2731
|
+
"optional": true,
|
|
2732
|
+
"type": {
|
|
2733
|
+
"text": "string"
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
]
|
|
2737
|
+
},
|
|
2738
|
+
{
|
|
2739
|
+
"kind": "method",
|
|
2740
|
+
"name": "_renderRightPane",
|
|
2741
|
+
"privacy": "private",
|
|
2742
|
+
"parameters": [
|
|
2743
|
+
{
|
|
2744
|
+
"name": "slot",
|
|
2745
|
+
"optional": true,
|
|
2746
|
+
"type": {
|
|
2747
|
+
"text": "string"
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
]
|
|
2751
|
+
},
|
|
2752
|
+
{
|
|
2753
|
+
"kind": "method",
|
|
2754
|
+
"name": "_renderConsoleView",
|
|
2755
|
+
"privacy": "private"
|
|
2756
|
+
},
|
|
2757
|
+
{
|
|
2758
|
+
"kind": "method",
|
|
2759
|
+
"name": "_renderMobileNav",
|
|
2760
|
+
"privacy": "private"
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
"kind": "method",
|
|
2764
|
+
"name": "_renderMobileFileList",
|
|
2765
|
+
"privacy": "private"
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
"kind": "method",
|
|
2769
|
+
"name": "_renderContent",
|
|
2770
|
+
"privacy": "private"
|
|
2771
|
+
},
|
|
2772
|
+
{
|
|
2773
|
+
"kind": "method",
|
|
2774
|
+
"name": "render",
|
|
2775
|
+
"privacy": "protected"
|
|
2776
|
+
}
|
|
2777
|
+
],
|
|
2778
|
+
"superclass": {
|
|
2779
|
+
"name": "SigveloElement",
|
|
2780
|
+
"package": "@mcp-b/wc-support/base/sigvelo-element"
|
|
2781
|
+
},
|
|
2782
|
+
"tagName": "sigvelo-interactive-editor",
|
|
2783
|
+
"customElement": true,
|
|
2784
|
+
"summary": "A multi-file code playground with a collapsible file explorer\nsidebar, code editor, and live preview/console pane. The sidebar sits\nbeside the editor only and does not extend into the preview pane."
|
|
2785
|
+
}
|
|
2786
|
+
],
|
|
2787
|
+
"exports": [
|
|
2788
|
+
{
|
|
2789
|
+
"kind": "js",
|
|
2790
|
+
"name": "SigveloInteractiveEditor",
|
|
2791
|
+
"declaration": {
|
|
2792
|
+
"name": "SigveloInteractiveEditor",
|
|
2793
|
+
"module": "src/components/interactive-editor/interactive-editor.ts"
|
|
2794
|
+
}
|
|
2795
|
+
},
|
|
2796
|
+
{
|
|
2797
|
+
"kind": "custom-element-definition",
|
|
2798
|
+
"name": "sigvelo-interactive-editor",
|
|
2799
|
+
"declaration": {
|
|
2800
|
+
"name": "SigveloInteractiveEditor",
|
|
2801
|
+
"module": "src/components/interactive-editor/interactive-editor.ts"
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
]
|
|
2805
|
+
}
|
|
2806
|
+
]
|
|
2807
|
+
}
|