@disjukr/execute 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +42 -2
  2. package/bin/copy-assets.js +15 -0
  3. package/dist/assets/gdi32.dll +0 -0
  4. package/dist/assets/i386-display.dll +0 -0
  5. package/dist/assets/i386-dsound.dll +0 -0
  6. package/dist/assets/i386-gdi32.dll +0 -0
  7. package/dist/assets/i386-kernel32.dll +0 -0
  8. package/dist/assets/i386-shell32.dll +0 -0
  9. package/dist/assets/i386-user32.dll +0 -0
  10. package/dist/assets/i386-winmm.dll +0 -0
  11. package/dist/assets/kernelbase-936.dll +0 -0
  12. package/dist/assets/kernelbase-949.dll +0 -0
  13. package/dist/assets/kernelbase-950.dll +0 -0
  14. package/dist/assets/kernelbase.dll +0 -0
  15. package/dist/assets/pe.js +6 -0
  16. package/dist/assets/process-server.wasm +0 -0
  17. package/dist/assets/process-services.js +45 -0
  18. package/dist/assets/process-worker.js +73 -0
  19. package/dist/assets/process.wasm +0 -0
  20. package/dist/assets/run.js +531 -0
  21. package/dist/assets/server-worker.js +397 -0
  22. package/dist/assets/shell32.dll +0 -0
  23. package/dist/assets/threads.js +60 -0
  24. package/dist/assets/user32.dll +0 -0
  25. package/dist/assets/webaudio-tinysynth.min.js +1 -0
  26. package/dist/assets/wow64host.exe +0 -0
  27. package/dist/index.js +1347 -0
  28. package/dist/licenses/GPL-3.0-only.txt +232 -0
  29. package/dist/licenses/LICENSE +44 -0
  30. package/dist/licenses/TinySynth +201 -0
  31. package/dist/licenses/Wine +17 -0
  32. package/dist/licenses/Wine-LGPL +502 -0
  33. package/dist/licenses/kwemu +340 -0
  34. package/dist/style.css +809 -0
  35. package/dist/types/demo.d.ts +1 -0
  36. package/dist/types/executable-icon.d.ts +1 -0
  37. package/dist/types/file-system.d.ts +13 -0
  38. package/dist/types/guest-files.d.ts +29 -0
  39. package/dist/types/index.d.ts +27 -0
  40. package/dist/types/launch.d.ts +91 -0
  41. package/dist/types/pe.d.ts +1 -0
  42. package/dist/types/process-group.d.ts +1 -0
  43. package/dist/types/window-thumbnail.d.ts +11 -0
  44. package/dist/types/windows-path.d.ts +1 -0
  45. package/package.json +44 -4
package/dist/style.css ADDED
@@ -0,0 +1,809 @@
1
+ .execute-desktop {
2
+ position: relative;
3
+ isolation: isolate;
4
+ display: grid;
5
+ grid-template-rows: minmax(0, 1fr) 48px;
6
+ width: 100%;
7
+ height: 100%;
8
+ overflow: hidden;
9
+ font:
10
+ 14px/1.4 "Segoe UI",
11
+ system-ui,
12
+ sans-serif;
13
+ color: #17263a;
14
+ color-scheme: light;
15
+ background: transparent;
16
+ }
17
+ .execute-desktop *,
18
+ .execute-window * {
19
+ box-sizing: border-box;
20
+ }
21
+ .execute-workarea {
22
+ isolation: isolate;
23
+ position: relative;
24
+ overflow: hidden;
25
+ min-height: 0;
26
+ }
27
+ .execute-desktop button,
28
+ .execute-window button {
29
+ font: inherit;
30
+ color: inherit;
31
+ border: 0;
32
+ cursor: pointer;
33
+ background: transparent;
34
+ }
35
+ .execute-desktop :focus-visible:not(canvas):not(.execute-window),
36
+ .execute-window summary:focus-visible {
37
+ outline: 2px solid #075fb1;
38
+ outline-offset: -2px;
39
+ }
40
+ .execute-shortcut {
41
+ position: absolute;
42
+ width: 86px;
43
+ display: grid;
44
+ justify-items: center;
45
+ gap: 4px;
46
+ padding: 6px 2px;
47
+ border: 1px solid transparent;
48
+ border-radius: 6px;
49
+ color: white;
50
+ text-shadow: 0 1px 3px #152943;
51
+ text-align: center;
52
+ font-size: 12px;
53
+ overflow-wrap: anywhere;
54
+ user-select: none;
55
+ touch-action: none;
56
+ }
57
+ .execute-shortcut:hover,
58
+ .execute-shortcut[data-selected="true"] {
59
+ background: #d7ecff36;
60
+ border-color: #e7f7ff66;
61
+ }
62
+ .execute-shortcut input {
63
+ width: 100%;
64
+ position: absolute;
65
+ bottom: 0;
66
+ }
67
+ .execute-app-icon {
68
+ display: inline-grid;
69
+ place-items: center;
70
+ width: 32px;
71
+ height: 32px;
72
+ vertical-align: middle;
73
+ }
74
+ .execute-app-icon img {
75
+ width: 100%;
76
+ height: 100%;
77
+ object-fit: contain;
78
+ }
79
+ .execute-app-icon i {
80
+ width: 80%;
81
+ height: 75%;
82
+ border-radius: 4px;
83
+ border: 2px solid #e4f4ff;
84
+ border-top: 6px solid #e4f4ff;
85
+ background: linear-gradient(135deg, #35adf8, #2052bb);
86
+ box-shadow: 0 2px 4px #173e6740;
87
+ }
88
+ .execute-taskbar {
89
+ position: relative;
90
+ display: grid;
91
+ grid-template-columns: 1fr minmax(0, max-content) 1fr;
92
+ align-items: center;
93
+ gap: 12px;
94
+ background: #eaf1f8;
95
+ z-index: 2;
96
+ padding-inline: 12px;
97
+ }
98
+ .execute-taskbar::before {
99
+ content: "";
100
+ position: absolute;
101
+ inset: 0 0 auto;
102
+ border-block-start: 1px solid #75757566;
103
+ pointer-events: none;
104
+ }
105
+ @supports (backdrop-filter: blur(1px)) {
106
+ .execute-taskbar {
107
+ background: #edf4fbe6;
108
+ backdrop-filter: blur(24px) saturate(1.25);
109
+ }
110
+ }
111
+ @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
112
+ .execute-taskbar {
113
+ background: #eaf1f8;
114
+ backdrop-filter: none;
115
+ }
116
+ }
117
+ .execute-tasks,
118
+ .execute-tray {
119
+ display: flex;
120
+ align-items: center;
121
+ }
122
+ .execute-tasks {
123
+ grid-column: 2;
124
+ min-width: 0;
125
+ overflow-x: auto;
126
+ scrollbar-width: none;
127
+ }
128
+ .execute-taskbar button {
129
+ --task-button-fill: transparent;
130
+ position: relative;
131
+ border-radius: 4px;
132
+ padding: 5px;
133
+ height: 40px;
134
+ min-width: 40px;
135
+ background: var(--task-button-fill);
136
+ }
137
+ .execute-taskbar .execute-add,
138
+ .execute-taskbar .execute-task,
139
+ .execute-tray > button {
140
+ display: grid;
141
+ place-items: center;
142
+ padding: 4px;
143
+ }
144
+ .execute-task[data-active] {
145
+ --task-button-fill: #f6fbffe6;
146
+ }
147
+ .execute-taskbar button:hover {
148
+ --task-button-fill: #ffffffe0;
149
+ }
150
+ .execute-taskbar button:active {
151
+ --task-button-fill: #d8e9f9;
152
+ }
153
+ .execute-task[data-stacked] {
154
+ --task-button-fill: transparent;
155
+ --task-group-outline: transparent;
156
+ background: transparent;
157
+ }
158
+ .execute-task[data-stacked][data-active] {
159
+ --task-button-fill: #f8fbff80;
160
+ --task-group-outline: #6589ae40;
161
+ }
162
+ .execute-task[data-stacked]:hover {
163
+ --task-button-fill: #f8fbffb3;
164
+ --task-group-outline: #6589ae38;
165
+ }
166
+ .execute-task[data-stacked]:active {
167
+ --task-button-fill: #f8fbff4c;
168
+ --task-group-outline: #6589ae52;
169
+ }
170
+ .execute-task-plates {
171
+ display: none;
172
+ position: absolute;
173
+ inset: 0;
174
+ border-radius: inherit;
175
+ pointer-events: none;
176
+ }
177
+ .execute-task[data-stacked] > .execute-task-plates {
178
+ display: block;
179
+ }
180
+ .execute-task-plates::before,
181
+ .execute-task-plates::after {
182
+ content: "";
183
+ position: absolute;
184
+ inset-block: 0;
185
+ box-sizing: border-box;
186
+ background: var(--task-button-fill);
187
+ border: 1px solid var(--task-group-outline);
188
+ border-radius: inherit;
189
+ }
190
+ .execute-task-plates::before {
191
+ inset-inline-end: 0;
192
+ width: 16px;
193
+ }
194
+ .execute-task-plates::after {
195
+ inset-inline: 0 4px;
196
+ }
197
+ .execute-task::after {
198
+ content: "";
199
+ position: absolute;
200
+ inset-inline: 0;
201
+ bottom: 1px;
202
+ width: 6px;
203
+ height: 3px;
204
+ margin-inline: auto;
205
+ background: #566577;
206
+ border-radius: 1.5px;
207
+ }
208
+ .execute-task[data-stacked]::after,
209
+ .execute-task[data-active]::after {
210
+ width: 16px;
211
+ }
212
+ .execute-task[data-active]::after {
213
+ background: #0869bb;
214
+ }
215
+ @media (forced-colors: active) {
216
+ .execute-task::after {
217
+ forced-color-adjust: none;
218
+ background: ButtonText;
219
+ }
220
+ .execute-task[data-active]::after {
221
+ background: Highlight;
222
+ }
223
+ }
224
+ .execute-task > .execute-app-icon {
225
+ width: 24px;
226
+ height: 24px;
227
+ z-index: 1;
228
+ }
229
+ .execute-taskbar .execute-add {
230
+ color: #0869bb;
231
+ }
232
+ .execute-add::before,
233
+ .execute-add::after {
234
+ content: "";
235
+ grid-area: 1 / 1;
236
+ }
237
+ .execute-add::before {
238
+ width: 16px;
239
+ border-top: 2px solid currentColor;
240
+ }
241
+ .execute-add::after {
242
+ height: 16px;
243
+ border-left: 2px solid currentColor;
244
+ }
245
+ .execute-tray {
246
+ grid-column: 3;
247
+ justify-self: end;
248
+ gap: 2px;
249
+ }
250
+ .execute-tray > button {
251
+ min-width: 32px;
252
+ }
253
+ .execute-tray .execute-app-icon {
254
+ width: 16px;
255
+ height: 16px;
256
+ }
257
+ .execute-window {
258
+ position: relative;
259
+ display: block;
260
+ width: calc(var(--client-width) + 2px);
261
+ box-sizing: border-box;
262
+ border: 1px solid #969faa;
263
+ border-radius: 9px;
264
+ background: #f5f7fa;
265
+ color: #17263a;
266
+ box-shadow: 0 8px 32px #0e244547;
267
+ font:
268
+ 13px/1.35 "Segoe UI",
269
+ system-ui,
270
+ sans-serif;
271
+ }
272
+ .execute-workarea > .execute-window {
273
+ position: absolute;
274
+ }
275
+ .execute-window[hidden] {
276
+ display: none;
277
+ }
278
+ .execute-caption {
279
+ border-radius: 8px 8px 0 0;
280
+ height: 34px;
281
+ display: flex;
282
+ align-items: center;
283
+ overflow: hidden;
284
+ user-select: none;
285
+ touch-action: none;
286
+ }
287
+ .execute-window[data-active] > .execute-caption {
288
+ background: linear-gradient(105deg, #e6eef8, #eef3f9 80%);
289
+ }
290
+ .execute-caption .execute-app-icon {
291
+ flex: 0 0 16px;
292
+ grid-template: 16px / 16px;
293
+ width: 16px;
294
+ height: 16px;
295
+ margin-left: 10px;
296
+ }
297
+ .execute-caption .execute-title {
298
+ flex: 1;
299
+ min-width: 0;
300
+ padding: 0 8px;
301
+ overflow: hidden;
302
+ white-space: nowrap;
303
+ text-overflow: ellipsis;
304
+ }
305
+ .execute-caption button {
306
+ align-self: stretch;
307
+ flex: 0 0 46px;
308
+ position: relative;
309
+ padding: 0;
310
+ }
311
+ .execute-caption button:hover {
312
+ background: #dfe6ee;
313
+ }
314
+ .execute-caption button:last-child {
315
+ border-radius: 0 8px 0 0;
316
+ }
317
+ .execute-caption button:last-child:hover {
318
+ background: #c42b1c;
319
+ color: white;
320
+ }
321
+ .execute-window canvas {
322
+ display: block;
323
+ border-radius: 0 0 7px 7px;
324
+ touch-action: none;
325
+ outline: none;
326
+ }
327
+ .execute-window nav {
328
+ display: flex;
329
+ gap: 1px;
330
+ padding: 1px 4px;
331
+ }
332
+ .execute-window nav details {
333
+ position: relative;
334
+ }
335
+ .execute-window summary {
336
+ list-style: none;
337
+ padding: 3px 7px;
338
+ border-radius: 4px;
339
+ cursor: pointer;
340
+ }
341
+ .execute-window summary:hover,
342
+ .execute-window details[open] > summary {
343
+ background: #e0e7ef;
344
+ }
345
+ .execute-window details[open] > div,
346
+ .execute-popup {
347
+ padding: 5px;
348
+ background: #f8fafffa;
349
+ border: 1px solid #c2ccd7;
350
+ border-radius: 8px;
351
+ box-shadow: 0 6px 18px #25395638;
352
+ }
353
+ .execute-window details[open] > div {
354
+ position: absolute;
355
+ z-index: 1;
356
+ display: grid;
357
+ min-width: 145px;
358
+ white-space: nowrap;
359
+ }
360
+ .execute-window details details[open] > div {
361
+ left: 100%;
362
+ top: 0;
363
+ }
364
+ .execute-window nav button,
365
+ .execute-popup button {
366
+ display: block;
367
+ padding: 5px 9px;
368
+ text-align: left;
369
+ border-radius: 4px;
370
+ }
371
+ .execute-window nav button:hover,
372
+ .execute-popup button:hover {
373
+ background: #e4eaf0;
374
+ }
375
+ .execute-popup {
376
+ position: absolute;
377
+ z-index: 3;
378
+ display: grid;
379
+ width: min(200px, 100%);
380
+ max-height: 100%;
381
+ overflow: auto;
382
+ }
383
+ .execute-popup hr,
384
+ .execute-window nav hr {
385
+ border: 0;
386
+ border-top: 1px solid #d4dce5;
387
+ width: 100%;
388
+ }
389
+ .execute-window button:disabled,
390
+ .execute-popup button:disabled {
391
+ opacity: 0.45;
392
+ }
393
+ /* Border hit areas straddle the frame so client pixels remain usable. */
394
+ .execute-window > [data-resize-edge] {
395
+ display: none;
396
+ position: absolute;
397
+ touch-action: none;
398
+ }
399
+ .execute-window[data-resizable]:not([data-maximized]) > [data-resize-edge] {
400
+ display: block;
401
+ }
402
+ .execute-window > [data-resize-edge="n"],
403
+ .execute-window > [data-resize-edge="s"] {
404
+ left: 5px;
405
+ right: 5px;
406
+ height: 6px;
407
+ cursor: ns-resize;
408
+ }
409
+ .execute-window > [data-resize-edge="w"],
410
+ .execute-window > [data-resize-edge="e"] {
411
+ top: 5px;
412
+ bottom: 5px;
413
+ width: 6px;
414
+ cursor: ew-resize;
415
+ }
416
+ .execute-window > [data-resize-edge="n"] {
417
+ top: -3px;
418
+ }
419
+ .execute-window > [data-resize-edge="s"] {
420
+ bottom: -3px;
421
+ }
422
+ .execute-window > [data-resize-edge="w"] {
423
+ left: -3px;
424
+ }
425
+ .execute-window > [data-resize-edge="e"] {
426
+ right: -3px;
427
+ }
428
+ .execute-window > [data-resize-edge="nw"],
429
+ .execute-window > [data-resize-edge="ne"],
430
+ .execute-window > [data-resize-edge="sw"],
431
+ .execute-window > [data-resize-edge="se"] {
432
+ width: 9px;
433
+ height: 9px;
434
+ }
435
+ .execute-window > [data-resize-edge="nw"] {
436
+ top: -3px;
437
+ left: -3px;
438
+ cursor: nwse-resize;
439
+ }
440
+ .execute-window > [data-resize-edge="ne"] {
441
+ top: -3px;
442
+ right: -3px;
443
+ cursor: nesw-resize;
444
+ }
445
+ .execute-window > [data-resize-edge="sw"] {
446
+ bottom: -3px;
447
+ left: -3px;
448
+ cursor: nesw-resize;
449
+ }
450
+ .execute-window > [data-resize-edge="se"] {
451
+ bottom: -3px;
452
+ right: -3px;
453
+ cursor: nwse-resize;
454
+ }
455
+ .execute-window nav details > div > button,
456
+ .execute-window nav details > div > details > summary {
457
+ position: relative;
458
+ padding: 5px 27px;
459
+ }
460
+ .execute-window nav details > div > details > summary::after {
461
+ content: "";
462
+ position: absolute;
463
+ top: 50%;
464
+ right: 11px;
465
+ width: 6px;
466
+ height: 6px;
467
+ border: solid currentColor;
468
+ border-width: 1px 1px 0 0;
469
+ transform: translateY(-50%) rotate(45deg);
470
+ }
471
+ .execute-window nav [data-checked="true"]::before {
472
+ content: "✓";
473
+ position: absolute;
474
+ left: 8px;
475
+ top: 50%;
476
+ transform: translateY(-50%);
477
+ }
478
+ .execute-window nav [data-checked="true"][data-radio="true"]::before {
479
+ content: "●";
480
+ }
481
+ .execute-window nav [aria-disabled="true"] {
482
+ opacity: 0.45;
483
+ cursor: default;
484
+ }
485
+ @media (max-width: 600px) {
486
+ .execute-taskbar {
487
+ grid-template-columns: minmax(0, 1fr) auto;
488
+ gap: 8px;
489
+ }
490
+ .execute-tasks {
491
+ grid-column: 1;
492
+ }
493
+ .execute-tray {
494
+ grid-column: 2;
495
+ }
496
+ }
497
+
498
+ .execute-workarea > .execute-window[data-maximized]:not([hidden]) {
499
+ inset: 0;
500
+ width: auto;
501
+ display: flex;
502
+ flex-direction: column;
503
+ border-radius: 0;
504
+ }
505
+ .execute-window[data-maximized] > canvas {
506
+ flex: 1;
507
+ min-height: 0;
508
+ width: 100%;
509
+ border-radius: 0;
510
+ }
511
+
512
+ .execute-caption[hidden],
513
+ .execute-caption .execute-app-icon[hidden],
514
+ .execute-caption button[hidden] {
515
+ display: none;
516
+ }
517
+ .execute-caption button::before,
518
+ .execute-caption button::after {
519
+ position: absolute;
520
+ top: 50%;
521
+ left: 50%;
522
+ transform: translate(-50%, -50%);
523
+ box-sizing: border-box;
524
+ pointer-events: none;
525
+ }
526
+ .execute-caption [data-control="minimize"]::before {
527
+ content: "";
528
+ width: 10px;
529
+ border-top: 1px solid;
530
+ }
531
+ .execute-caption [data-control="maximize"]::before,
532
+ .execute-caption [data-control="restore"]::before {
533
+ content: "";
534
+ width: 10px;
535
+ height: 10px;
536
+ border: 1px solid;
537
+ border-radius: 2px;
538
+ }
539
+ .execute-caption [data-control="restore"]::before {
540
+ width: 8px;
541
+ height: 8px;
542
+ margin: 1px 0 0 -1px;
543
+ }
544
+ .execute-caption [data-control="restore"]::after {
545
+ content: "";
546
+ width: 8px;
547
+ height: 8px;
548
+ margin: -1px 0 0 1px;
549
+ border: 1px solid;
550
+ border-radius: 2px;
551
+ clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 100%, 75% 25%, 0 25%);
552
+ }
553
+ .execute-caption [data-control="close"]::before,
554
+ .execute-caption [data-control="close"]::after {
555
+ content: "";
556
+ width: 13px;
557
+ height: 1px;
558
+ background: currentColor;
559
+ transform: translate(-50%, -50%) rotate(45deg);
560
+ }
561
+ .execute-caption [data-control="close"]::after {
562
+ transform: translate(-50%, -50%) rotate(-45deg);
563
+ }
564
+ @font-face {
565
+ font-family: ExecuteCaption;
566
+ src: local("Segoe Fluent Icons");
567
+ }
568
+ .execute-native-glyphs [data-control="minimize"] {
569
+ --glyph: "\e921";
570
+ }
571
+ .execute-native-glyphs [data-control="maximize"] {
572
+ --glyph: "\e922";
573
+ }
574
+ .execute-native-glyphs [data-control="restore"] {
575
+ --glyph: "\e923";
576
+ }
577
+ .execute-native-glyphs [data-control="close"] {
578
+ --glyph: "\e8bb";
579
+ }
580
+ .execute-caption.execute-native-glyphs button[data-control]::before {
581
+ content: var(--glyph);
582
+ font: 10px/1 ExecuteCaption;
583
+ width: auto;
584
+ height: auto;
585
+ border: 0;
586
+ margin: 0;
587
+ background: none;
588
+ transform: translate(-50%, -50%);
589
+ }
590
+ .execute-caption.execute-native-glyphs button[data-control]::after {
591
+ content: none;
592
+ }
593
+
594
+ .execute-window:focus {
595
+ outline: none;
596
+ }
597
+ .execute-window:not([data-active]) {
598
+ background: #f1f2f4;
599
+ border-color: #b6bec6;
600
+ box-shadow: 0 3px 12px #0e24451c;
601
+ }
602
+ .execute-window:not([data-active]) .execute-caption,
603
+ .execute-window:not([data-active]) nav {
604
+ color: #69737d;
605
+ }
606
+ .execute-window:not([data-active]) .execute-caption .execute-app-icon {
607
+ opacity: 0.55;
608
+ }
609
+ .execute-window[data-maximized] .execute-caption,
610
+ .execute-window[data-maximized] .execute-caption button[data-control="close"] {
611
+ border-radius: 0;
612
+ }
613
+ .execute-workarea[data-peeking] > .execute-window:not([data-peek]) {
614
+ opacity: 0;
615
+ pointer-events: none;
616
+ }
617
+ .execute-workarea > .execute-window[data-peek][hidden] {
618
+ display: block;
619
+ }
620
+ .execute-workarea > .execute-window[data-peek][hidden][data-maximized] {
621
+ display: flex;
622
+ inset: 0;
623
+ width: auto;
624
+ flex-direction: column;
625
+ border-radius: 0;
626
+ }
627
+ .execute-previews {
628
+ --width: min(var(--preview-width), calc(100% - 16px));
629
+ position: absolute;
630
+ z-index: 3;
631
+ bottom: 56px;
632
+ width: var(--width);
633
+ left: clamp(
634
+ 8px,
635
+ calc(var(--anchor) - var(--width) / 2),
636
+ calc(100% - var(--width) - 8px)
637
+ );
638
+ display: flex;
639
+ gap: 4px;
640
+ padding: 6px;
641
+ overflow-x: auto;
642
+ background: #f5f8fbea;
643
+ backdrop-filter: blur(22px);
644
+ border: 1px solid #c2ccd7;
645
+ border-radius: 9px;
646
+ box-shadow: 0 6px 20px #1a304738;
647
+ }
648
+ .execute-thumbnail {
649
+ position: relative;
650
+ flex: 1 0 min(192px, 100%);
651
+ min-width: 0;
652
+ border-radius: 6px;
653
+ }
654
+ .execute-thumbnail:hover,
655
+ .execute-thumbnail:focus-within {
656
+ background: #dfe9f4;
657
+ }
658
+ .execute-thumbnail-select {
659
+ display: block;
660
+ width: 100%;
661
+ padding: 5px 6px 7px;
662
+ text-align: left;
663
+ }
664
+ .execute-thumbnail-title {
665
+ display: flex;
666
+ align-items: center;
667
+ gap: 7px;
668
+ padding-right: 24px;
669
+ height: 26px;
670
+ font-size: 12px;
671
+ }
672
+ .execute-thumbnail-title .execute-app-icon {
673
+ width: 16px;
674
+ height: 16px;
675
+ flex: none;
676
+ }
677
+ .execute-thumbnail-title > :last-child {
678
+ white-space: nowrap;
679
+ overflow: hidden;
680
+ text-overflow: ellipsis;
681
+ }
682
+ .execute-thumbnail-image {
683
+ display: grid;
684
+ place-items: center;
685
+ height: 112px;
686
+ overflow: hidden;
687
+ }
688
+ .execute-thumbnail-image canvas {
689
+ width: 100%;
690
+ height: 100%;
691
+ min-height: 0;
692
+ object-fit: contain;
693
+ }
694
+ .execute-thumbnail-close {
695
+ position: absolute;
696
+ right: 2px;
697
+ top: 2px;
698
+ width: 26px;
699
+ height: 26px;
700
+ border-radius: 4px;
701
+ opacity: 0;
702
+ font-size: 17px;
703
+ }
704
+ .execute-thumbnail:hover .execute-thumbnail-close,
705
+ .execute-thumbnail:focus-within .execute-thumbnail-close {
706
+ opacity: 1;
707
+ }
708
+ .execute-thumbnail .execute-thumbnail-close:hover {
709
+ background: #c42b1c;
710
+ color: white;
711
+ }
712
+
713
+ .execute-snap-preview {
714
+ position: absolute;
715
+ inset: 2px;
716
+ pointer-events: none;
717
+ border: 1px solid #ffffffa6;
718
+ border-radius: 8px;
719
+ background: #b6d7f439;
720
+ backdrop-filter: blur(10px);
721
+ box-shadow: inset 0 0 0 1px #69849a40;
722
+ animation: execute-snap-in 250ms cubic-bezier(0, 0, 0, 1);
723
+ }
724
+ @keyframes execute-snap-in {
725
+ from {
726
+ inset: var(--snap-inset);
727
+ opacity: 0;
728
+ }
729
+ }
730
+ .execute-task-slot {
731
+ flex: 0 0 auto;
732
+ width: 44px;
733
+ padding-left: 4px;
734
+ animation: execute-slot-in 100ms cubic-bezier(0.55, 0.55, 0, 1);
735
+ }
736
+ .execute-task-slot > button {
737
+ /* Reserve the final slot before revealing the icon so its rise is vertical. */
738
+ animation: execute-icon-in 167ms cubic-bezier(0, 0, 0, 1) 100ms backwards;
739
+ }
740
+ .execute-task-slot[data-leaving] {
741
+ animation: execute-slot-out 167ms cubic-bezier(0.55, 0.55, 0, 1) forwards;
742
+ pointer-events: none;
743
+ }
744
+ .execute-task-slot[data-leaving] > button {
745
+ animation: execute-icon-out 167ms cubic-bezier(0, 0, 0, 1) forwards;
746
+ }
747
+ @keyframes execute-slot-in {
748
+ from {
749
+ width: 0;
750
+ padding-left: 0;
751
+ }
752
+ }
753
+ @keyframes execute-slot-out {
754
+ to {
755
+ width: 0;
756
+ padding-left: 0;
757
+ }
758
+ }
759
+ @keyframes execute-icon-in {
760
+ from {
761
+ translate: 0 100%;
762
+ opacity: 0;
763
+ }
764
+ }
765
+ @keyframes execute-icon-out {
766
+ to {
767
+ translate: 0 100%;
768
+ opacity: 0;
769
+ }
770
+ }
771
+ .execute-previews {
772
+ z-index: 1;
773
+ clip-path: inset(-24px);
774
+ transition:
775
+ left 167ms cubic-bezier(0.55, 0.55, 0, 1),
776
+ width 167ms cubic-bezier(0.55, 0.55, 0, 1);
777
+ animation: execute-flyout-in 250ms cubic-bezier(0, 0, 0, 1);
778
+ }
779
+ .execute-previews[data-leaving] {
780
+ pointer-events: none;
781
+ animation: execute-flyout-out 167ms cubic-bezier(1, 0, 1, 1) forwards;
782
+ }
783
+ @keyframes execute-flyout-in {
784
+ from {
785
+ translate: 0 calc(100% + 6px);
786
+ clip-path: inset(0 0 100%);
787
+ opacity: 0;
788
+ }
789
+ }
790
+ @keyframes execute-flyout-out {
791
+ to {
792
+ translate: 0 calc(100% + 6px);
793
+ clip-path: inset(0 0 100%);
794
+ opacity: 0;
795
+ }
796
+ }
797
+ @media (prefers-reduced-motion: reduce) {
798
+ .execute-snap-preview,
799
+ .execute-task-slot,
800
+ .execute-task-slot > button,
801
+ .execute-task-slot[data-leaving],
802
+ .execute-task-slot[data-leaving] > button,
803
+ .execute-previews,
804
+ .execute-previews[data-leaving] {
805
+ transition-duration: 0s;
806
+ animation-delay: 0s;
807
+ animation-duration: 1ms;
808
+ }
809
+ }