@lvce-editor/renderer-process 10.16.0 → 10.18.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/dist/rendererProcessMain.js +180 -143
- package/package.json +1 -1
|
@@ -739,7 +739,7 @@ const getErrorResponse = (message, error, preparePrettyError, logError) => {
|
|
|
739
739
|
const errorProperty = getErrorProperty(error, prettyError);
|
|
740
740
|
return create$1$1(message, errorProperty);
|
|
741
741
|
};
|
|
742
|
-
const create$
|
|
742
|
+
const create$N = (message, result) => {
|
|
743
743
|
return {
|
|
744
744
|
jsonrpc: Two,
|
|
745
745
|
id: message.id,
|
|
@@ -748,7 +748,7 @@ const create$M = (message, result) => {
|
|
|
748
748
|
};
|
|
749
749
|
const getSuccessResponse = (message, result) => {
|
|
750
750
|
const resultProperty = result ?? null;
|
|
751
|
-
return create$
|
|
751
|
+
return create$N(message, resultProperty);
|
|
752
752
|
};
|
|
753
753
|
const getResponse = async (message, ipc, execute, preparePrettyError, logError, requiresSocket) => {
|
|
754
754
|
try {
|
|
@@ -923,7 +923,7 @@ const launchWorker = async ({
|
|
|
923
923
|
name,
|
|
924
924
|
url
|
|
925
925
|
}) => {
|
|
926
|
-
const worker = await create$
|
|
926
|
+
const worker = await create$M({
|
|
927
927
|
method: Auto,
|
|
928
928
|
url,
|
|
929
929
|
name
|
|
@@ -1030,7 +1030,7 @@ const RendererWorker = {
|
|
|
1030
1030
|
state: state$9
|
|
1031
1031
|
};
|
|
1032
1032
|
|
|
1033
|
-
const create$
|
|
1033
|
+
const create$M = async ({
|
|
1034
1034
|
method,
|
|
1035
1035
|
...options
|
|
1036
1036
|
}) => {
|
|
@@ -1051,7 +1051,7 @@ const create$L = async ({
|
|
|
1051
1051
|
};
|
|
1052
1052
|
|
|
1053
1053
|
const launchEditorWorker = async port => {
|
|
1054
|
-
const ipc = await create$
|
|
1054
|
+
const ipc = await create$M({
|
|
1055
1055
|
name: 'Editor Worker',
|
|
1056
1056
|
url: editorWorkerUrl,
|
|
1057
1057
|
method: ModuleWorkerWithMessagePort,
|
|
@@ -1081,7 +1081,7 @@ const extensionHostWorkerUrl = getConfiguredExtensionHostWorkerUrl() || `${asset
|
|
|
1081
1081
|
|
|
1082
1082
|
const launchExtensionHostWorker = async port => {
|
|
1083
1083
|
const name = isElectron ? 'Extension Host (Electron)' : 'Extension Host';
|
|
1084
|
-
const ipc = await create$
|
|
1084
|
+
const ipc = await create$M({
|
|
1085
1085
|
name,
|
|
1086
1086
|
url: extensionHostWorkerUrl,
|
|
1087
1087
|
method: ModuleWorkerWithMessagePort,
|
|
@@ -1105,7 +1105,7 @@ const hydrate$2 = async () => {
|
|
|
1105
1105
|
const syntaxHighlightingWorkerUrl = `${assetDir}/packages/renderer-worker/node_modules/@lvce-editor/syntax-highlighting-worker/dist/syntaxHighlightingWorkerMain.js`;
|
|
1106
1106
|
|
|
1107
1107
|
const launchSyntaxHighlightingWorker = async port => {
|
|
1108
|
-
const ipc = await create$
|
|
1108
|
+
const ipc = await create$M({
|
|
1109
1109
|
name: 'Syntax Highlighting Worker',
|
|
1110
1110
|
url: syntaxHighlightingWorkerUrl,
|
|
1111
1111
|
method: ModuleWorkerWithMessagePort,
|
|
@@ -1845,7 +1845,7 @@ const stopTracking$1 = ($Target, pointerId, handlePointerMove, handlePointerUp)
|
|
|
1845
1845
|
// TODO use pointerlost event instead
|
|
1846
1846
|
$Target.removeEventListener(PointerUp, handlePointerUp);
|
|
1847
1847
|
};
|
|
1848
|
-
const create$
|
|
1848
|
+
const create$L = (pointerDown, pointerMove, pointerUp) => {
|
|
1849
1849
|
const shared = (fn, event) => {
|
|
1850
1850
|
const message = fn(event);
|
|
1851
1851
|
if (!message || message.length === 0) {
|
|
@@ -1878,7 +1878,7 @@ const create$K = (pointerDown, pointerMove, pointerUp) => {
|
|
|
1878
1878
|
};
|
|
1879
1879
|
|
|
1880
1880
|
const handleOffset = 20;
|
|
1881
|
-
const handleSliderPointerDown = create$
|
|
1881
|
+
const handleSliderPointerDown = create$L(event => {
|
|
1882
1882
|
const {
|
|
1883
1883
|
clientX,
|
|
1884
1884
|
clientY
|
|
@@ -1988,19 +1988,6 @@ const stopPropagation = event => {
|
|
|
1988
1988
|
event.stopPropagation();
|
|
1989
1989
|
};
|
|
1990
1990
|
|
|
1991
|
-
const startTracking = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
1992
|
-
$Target.setPointerCapture(pointerId);
|
|
1993
|
-
$Target.addEventListener(PointerMove, handlePointerMove);
|
|
1994
|
-
// TODO use pointerlost event instead
|
|
1995
|
-
$Target.addEventListener(PointerUp, handlePointerUp);
|
|
1996
|
-
};
|
|
1997
|
-
const stopTracking = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
1998
|
-
$Target.releasePointerCapture(pointerId);
|
|
1999
|
-
$Target.removeEventListener(PointerMove, handlePointerMove);
|
|
2000
|
-
// TODO use pointerlost event instead
|
|
2001
|
-
$Target.removeEventListener(PointerUp, handlePointerUp);
|
|
2002
|
-
};
|
|
2003
|
-
|
|
2004
1991
|
let AssertionError$1 = class AssertionError extends Error {
|
|
2005
1992
|
constructor(message) {
|
|
2006
1993
|
super(message);
|
|
@@ -2065,6 +2052,19 @@ const executeViewletCommand = (uid, command, ...args) => {
|
|
|
2065
2052
|
send('Viewlet.executeViewletCommand', uid, command, ...args);
|
|
2066
2053
|
};
|
|
2067
2054
|
|
|
2055
|
+
const startTracking = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
2056
|
+
$Target.setPointerCapture(pointerId);
|
|
2057
|
+
$Target.addEventListener(PointerMove, handlePointerMove);
|
|
2058
|
+
// TODO use pointerlost event instead
|
|
2059
|
+
$Target.addEventListener(PointerUp, handlePointerUp);
|
|
2060
|
+
};
|
|
2061
|
+
const stopTracking = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
2062
|
+
$Target.releasePointerCapture(pointerId);
|
|
2063
|
+
$Target.removeEventListener(PointerMove, handlePointerMove);
|
|
2064
|
+
// TODO use pointerlost event instead
|
|
2065
|
+
$Target.removeEventListener(PointerUp, handlePointerUp);
|
|
2066
|
+
};
|
|
2067
|
+
|
|
2068
2068
|
const nameAnonymousFunction = (fn, name) => {
|
|
2069
2069
|
Object.defineProperty(fn, 'name', {
|
|
2070
2070
|
value: name
|
|
@@ -2159,7 +2159,7 @@ const handleTabsWheel$1 = forwardViewletCommand('handleTabsWheel');
|
|
|
2159
2159
|
const handleTouchEnd$1 = forwardViewletCommand('handleTouchEnd');
|
|
2160
2160
|
const handleTouchMove$1 = forwardViewletCommand('handleTouchMove');
|
|
2161
2161
|
const handleTouchStart$1 = forwardViewletCommand('handleTouchStart');
|
|
2162
|
-
const handleWheel$
|
|
2162
|
+
const handleWheel$5 = forwardViewletCommand('handleWheel');
|
|
2163
2163
|
const hidePanel = forwardViewletCommand('hidePanel');
|
|
2164
2164
|
forwardViewletCommand('moveRectangleSelectionPx');
|
|
2165
2165
|
forwardViewletCommand('moveSelectionPx');
|
|
@@ -2176,15 +2176,6 @@ forwardViewletCommand('type');
|
|
|
2176
2176
|
forwardViewletCommand('typeWithAutoClosing');
|
|
2177
2177
|
const updateEditingValue = forwardViewletCommand('updateEditingValue');
|
|
2178
2178
|
|
|
2179
|
-
const handleWheel$3 = event => {
|
|
2180
|
-
const {
|
|
2181
|
-
deltaMode,
|
|
2182
|
-
deltaY
|
|
2183
|
-
} = event;
|
|
2184
|
-
const uid = fromEvent(event);
|
|
2185
|
-
send('EditorCompletion.handleWheel', uid, deltaMode, deltaY);
|
|
2186
|
-
};
|
|
2187
|
-
|
|
2188
2179
|
const handleMousedown = event => {
|
|
2189
2180
|
preventDefault(event);
|
|
2190
2181
|
const {
|
|
@@ -2219,6 +2210,14 @@ const handleScrollBarPointerDown$4 = event => {
|
|
|
2219
2210
|
const uid = fromEvent(event);
|
|
2220
2211
|
handleScrollBarClick(uid, clientY);
|
|
2221
2212
|
};
|
|
2213
|
+
const handleWheel$4 = event => {
|
|
2214
|
+
const {
|
|
2215
|
+
deltaMode,
|
|
2216
|
+
deltaY
|
|
2217
|
+
} = event;
|
|
2218
|
+
const uid = fromEvent(event);
|
|
2219
|
+
executeViewletCommand(uid, 'EditorCompletion.handleWheel', deltaMode, deltaY);
|
|
2220
|
+
};
|
|
2222
2221
|
|
|
2223
2222
|
const setScrollBar$2 = (state, scrollBarY, scrollBarHeight, scrollBarThumbClass) => {
|
|
2224
2223
|
const {
|
|
@@ -2277,7 +2276,7 @@ const setNegativeMargin = (state, negativeMargin) => {
|
|
|
2277
2276
|
setTop($ListItems, negativeMargin);
|
|
2278
2277
|
};
|
|
2279
2278
|
|
|
2280
|
-
const create$
|
|
2279
|
+
const create$K = () => {
|
|
2281
2280
|
const $ListItems = document.createElement('div');
|
|
2282
2281
|
$ListItems.className = 'ListItems';
|
|
2283
2282
|
$ListItems.role = ListBox;
|
|
@@ -2307,7 +2306,7 @@ const attachEvents$b = state => {
|
|
|
2307
2306
|
$ListItems,
|
|
2308
2307
|
$ScrollBar
|
|
2309
2308
|
} = state;
|
|
2310
|
-
$Viewlet.addEventListener(Wheel, handleWheel$
|
|
2309
|
+
$Viewlet.addEventListener(Wheel, handleWheel$4, Passive);
|
|
2311
2310
|
attachEvents$c($ListItems, {
|
|
2312
2311
|
[MouseDown]: handleMousedown
|
|
2313
2312
|
});
|
|
@@ -2361,7 +2360,7 @@ const setBounds$7 = (state, x, y, width, height) => {
|
|
|
2361
2360
|
const ViewletEditorCompletion = {
|
|
2362
2361
|
__proto__: null,
|
|
2363
2362
|
attachEvents: attachEvents$b,
|
|
2364
|
-
create: create$
|
|
2363
|
+
create: create$K,
|
|
2365
2364
|
dispose: dispose$m,
|
|
2366
2365
|
handleError: handleError$8,
|
|
2367
2366
|
setBounds: setBounds$7,
|
|
@@ -2384,7 +2383,7 @@ const ViewletEditorCompletionDetailsEvents = {
|
|
|
2384
2383
|
returnValue: returnValue$a
|
|
2385
2384
|
};
|
|
2386
2385
|
|
|
2387
|
-
const create$
|
|
2386
|
+
const create$J = () => {
|
|
2388
2387
|
const $Viewlet = document.createElement('div');
|
|
2389
2388
|
$Viewlet.className = 'Viewlet EditorCompletionDetails';
|
|
2390
2389
|
$Viewlet.id = 'CompletionsDetails';
|
|
@@ -2425,7 +2424,7 @@ const ViewletEditorCompletionDetails = {
|
|
|
2425
2424
|
Events: ViewletEditorCompletionDetailsEvents,
|
|
2426
2425
|
appendWidget: appendWidget$3,
|
|
2427
2426
|
attachEvents: attachEvents$a,
|
|
2428
|
-
create: create$
|
|
2427
|
+
create: create$J,
|
|
2429
2428
|
dispose: dispose$l,
|
|
2430
2429
|
setBounds: setBounds$6,
|
|
2431
2430
|
setDom: setDom$a
|
|
@@ -2434,7 +2433,7 @@ const ViewletEditorCompletionDetails = {
|
|
|
2434
2433
|
const rememberFocus = rememberFocus$1;
|
|
2435
2434
|
|
|
2436
2435
|
const returnValue$9 = true;
|
|
2437
|
-
const handleSashPointerDown$2 = create$
|
|
2436
|
+
const handleSashPointerDown$2 = create$L(event => {
|
|
2438
2437
|
const {
|
|
2439
2438
|
clientX,
|
|
2440
2439
|
clientY
|
|
@@ -2525,7 +2524,13 @@ const handleInputBlur = event => {
|
|
|
2525
2524
|
return ['FindWidget.handleBlur'];
|
|
2526
2525
|
};
|
|
2527
2526
|
const handleReplaceInput$1 = event => {
|
|
2528
|
-
|
|
2527
|
+
const {
|
|
2528
|
+
target
|
|
2529
|
+
} = event;
|
|
2530
|
+
const {
|
|
2531
|
+
value
|
|
2532
|
+
} = target;
|
|
2533
|
+
return ['FindWidget.handleReplaceInput', value];
|
|
2529
2534
|
};
|
|
2530
2535
|
const handleReplaceFocus = event => {
|
|
2531
2536
|
return ['FindWidget.handleReplaceFocus'];
|
|
@@ -2571,7 +2576,7 @@ const ViewletFindWidgetEvents = {
|
|
|
2571
2576
|
returnValue: returnValue$8
|
|
2572
2577
|
};
|
|
2573
2578
|
|
|
2574
|
-
const create$
|
|
2579
|
+
const create$I = () => {
|
|
2575
2580
|
const $Viewlet = document.createElement('div');
|
|
2576
2581
|
$Viewlet.className = 'Viewlet FindWidget';
|
|
2577
2582
|
$Viewlet.role = Group;
|
|
@@ -2634,7 +2639,7 @@ const ViewletFindWidget = {
|
|
|
2634
2639
|
__proto__: null,
|
|
2635
2640
|
Events: Events$c,
|
|
2636
2641
|
appendWidget: appendWidget$1,
|
|
2637
|
-
create: create$
|
|
2642
|
+
create: create$I,
|
|
2638
2643
|
dispose: dispose$k,
|
|
2639
2644
|
focus: focus$i,
|
|
2640
2645
|
setBounds: setBounds$4,
|
|
@@ -2734,6 +2739,7 @@ const E2eTests = 'E2eTests';
|
|
|
2734
2739
|
const E2eTest = 'E2eTest';
|
|
2735
2740
|
const WebView = 'WebView';
|
|
2736
2741
|
const EditorCompletionDetails = 'EditorCompletionDetails';
|
|
2742
|
+
const EditorTextError = 'EditorTextError';
|
|
2737
2743
|
|
|
2738
2744
|
const state$6 = {
|
|
2739
2745
|
instances: Object.create(null),
|
|
@@ -3175,7 +3181,7 @@ ${relevant}`;
|
|
|
3175
3181
|
|
|
3176
3182
|
const Module = 'module';
|
|
3177
3183
|
|
|
3178
|
-
const create$
|
|
3184
|
+
const create$H = async ({
|
|
3179
3185
|
url,
|
|
3180
3186
|
name
|
|
3181
3187
|
}) => {
|
|
@@ -3241,7 +3247,7 @@ const wrap = worker => {
|
|
|
3241
3247
|
|
|
3242
3248
|
const IpcParentWithModuleWorker = {
|
|
3243
3249
|
__proto__: null,
|
|
3244
|
-
create: create$
|
|
3250
|
+
create: create$H,
|
|
3245
3251
|
wrap
|
|
3246
3252
|
};
|
|
3247
3253
|
|
|
@@ -3249,7 +3255,7 @@ const isMessagePort$1 = value => {
|
|
|
3249
3255
|
return value instanceof MessagePort;
|
|
3250
3256
|
};
|
|
3251
3257
|
|
|
3252
|
-
const create$
|
|
3258
|
+
const create$G = async ({
|
|
3253
3259
|
url
|
|
3254
3260
|
}) => {
|
|
3255
3261
|
string(url);
|
|
@@ -3270,10 +3276,10 @@ const create$F = async ({
|
|
|
3270
3276
|
|
|
3271
3277
|
const IpcParentWithMessagePort = {
|
|
3272
3278
|
__proto__: null,
|
|
3273
|
-
create: create$
|
|
3279
|
+
create: create$G
|
|
3274
3280
|
};
|
|
3275
3281
|
|
|
3276
|
-
const create$
|
|
3282
|
+
const create$F = async url => {
|
|
3277
3283
|
const referencePort = await new Promise(resolve => {
|
|
3278
3284
|
globalThis.acceptReferencePort = resolve;
|
|
3279
3285
|
import(url);
|
|
@@ -3284,7 +3290,7 @@ const create$E = async url => {
|
|
|
3284
3290
|
|
|
3285
3291
|
const IpcParentWithReferencePort = {
|
|
3286
3292
|
__proto__: null,
|
|
3287
|
-
create: create$
|
|
3293
|
+
create: create$F
|
|
3288
3294
|
};
|
|
3289
3295
|
|
|
3290
3296
|
const isWorker = value => {
|
|
@@ -3292,12 +3298,12 @@ const isWorker = value => {
|
|
|
3292
3298
|
};
|
|
3293
3299
|
|
|
3294
3300
|
// TODO add test
|
|
3295
|
-
const create$
|
|
3301
|
+
const create$E = async ({
|
|
3296
3302
|
url,
|
|
3297
3303
|
name,
|
|
3298
3304
|
port
|
|
3299
3305
|
}) => {
|
|
3300
|
-
const worker = await create$
|
|
3306
|
+
const worker = await create$H({
|
|
3301
3307
|
url,
|
|
3302
3308
|
name
|
|
3303
3309
|
});
|
|
@@ -3316,7 +3322,7 @@ const create$D = async ({
|
|
|
3316
3322
|
|
|
3317
3323
|
const IpcParentWithModuleWorkerWithMessagePort = {
|
|
3318
3324
|
__proto__: null,
|
|
3319
|
-
create: create$
|
|
3325
|
+
create: create$E
|
|
3320
3326
|
};
|
|
3321
3327
|
|
|
3322
3328
|
const handleIpcOnce = ipc => {
|
|
@@ -3847,7 +3853,7 @@ const IpcChildWithMessagePort$1 = {
|
|
|
3847
3853
|
};
|
|
3848
3854
|
|
|
3849
3855
|
// TODO use handleIncomingIpc function
|
|
3850
|
-
const create$
|
|
3856
|
+
const create$D = async ({
|
|
3851
3857
|
port,
|
|
3852
3858
|
ipcId
|
|
3853
3859
|
}) => {
|
|
@@ -3863,7 +3869,7 @@ const create$C = async ({
|
|
|
3863
3869
|
|
|
3864
3870
|
const IpcParentWithElectron = {
|
|
3865
3871
|
__proto__: null,
|
|
3866
|
-
create: create$
|
|
3872
|
+
create: create$D
|
|
3867
3873
|
};
|
|
3868
3874
|
|
|
3869
3875
|
const play = async src => {
|
|
@@ -4049,7 +4055,7 @@ const create$AriaAlert = () => {
|
|
|
4049
4055
|
$AriaAlert.ariaAtomic = True;
|
|
4050
4056
|
return $AriaAlert;
|
|
4051
4057
|
};
|
|
4052
|
-
const setMessage$
|
|
4058
|
+
const setMessage$4 = ($Old, $New, message) => {
|
|
4053
4059
|
$Old.textContent = String(Math.random());
|
|
4054
4060
|
$Old.ariaHidden = True;
|
|
4055
4061
|
$New.removeAttribute(AriaHidden);
|
|
@@ -4073,9 +4079,9 @@ const alert$1 = message => {
|
|
|
4073
4079
|
const $AriaAlert2 = getAriaAlert2();
|
|
4074
4080
|
// @ts-expect-error
|
|
4075
4081
|
if ($AriaAlert1.textContent === message) {
|
|
4076
|
-
setMessage$
|
|
4082
|
+
setMessage$4($AriaAlert1, $AriaAlert2, message);
|
|
4077
4083
|
} else {
|
|
4078
|
-
setMessage$
|
|
4084
|
+
setMessage$4($AriaAlert2, $AriaAlert1, message);
|
|
4079
4085
|
}
|
|
4080
4086
|
};
|
|
4081
4087
|
|
|
@@ -4094,7 +4100,7 @@ const AriaAlert = {
|
|
|
4094
4100
|
// but that's difficult to know
|
|
4095
4101
|
|
|
4096
4102
|
// TODO hide widget after timeout or mousemove
|
|
4097
|
-
const create$
|
|
4103
|
+
const create$C = (message, x, y) => {
|
|
4098
4104
|
const $EditorError = document.createElement('div');
|
|
4099
4105
|
$EditorError.className = 'EditorWidgetError';
|
|
4100
4106
|
$EditorError.textContent = message;
|
|
@@ -4109,7 +4115,7 @@ const create$B = (message, x, y) => {
|
|
|
4109
4115
|
|
|
4110
4116
|
const name$t = 'EditorError';
|
|
4111
4117
|
const Commands$u = {
|
|
4112
|
-
create: create$
|
|
4118
|
+
create: create$C
|
|
4113
4119
|
};
|
|
4114
4120
|
|
|
4115
4121
|
const EditorError_ipc = {
|
|
@@ -4149,7 +4155,7 @@ const focusPrevious = () => {
|
|
|
4149
4155
|
}
|
|
4150
4156
|
};
|
|
4151
4157
|
|
|
4152
|
-
const create$
|
|
4158
|
+
const create$B = () => {
|
|
4153
4159
|
const $InputBox = document.createElement('input');
|
|
4154
4160
|
$InputBox.className = 'InputBox';
|
|
4155
4161
|
$InputBox.spellcheck = false;
|
|
@@ -4173,8 +4179,8 @@ const FocusOutput = 28;
|
|
|
4173
4179
|
const handleBlur$9 = () => {
|
|
4174
4180
|
send(/* EditorRename.abort */'EditorRename.abort');
|
|
4175
4181
|
};
|
|
4176
|
-
const create$
|
|
4177
|
-
const $RenameWidgetInputBox = create$
|
|
4182
|
+
const create$A = (x, y) => {
|
|
4183
|
+
const $RenameWidgetInputBox = create$B();
|
|
4178
4184
|
$RenameWidgetInputBox.className = 'RenameWidgetInputBox';
|
|
4179
4185
|
$RenameWidgetInputBox.onblur = handleBlur$9;
|
|
4180
4186
|
const $RenameWidget = document.createElement('div');
|
|
@@ -4205,7 +4211,7 @@ const finish = state => {
|
|
|
4205
4211
|
|
|
4206
4212
|
const name$s = 'EditorRename';
|
|
4207
4213
|
const Commands$t = {
|
|
4208
|
-
create: create$
|
|
4214
|
+
create: create$A,
|
|
4209
4215
|
dispose: dispose$i,
|
|
4210
4216
|
finish: finish
|
|
4211
4217
|
};
|
|
@@ -4291,7 +4297,7 @@ const showError = (message, y, x) => {
|
|
|
4291
4297
|
$ImagePreviewImage
|
|
4292
4298
|
};
|
|
4293
4299
|
};
|
|
4294
|
-
const create$
|
|
4300
|
+
const create$z = (uri, top, left) => {
|
|
4295
4301
|
const $ImagePreviewImage = document.createElement('img');
|
|
4296
4302
|
$ImagePreviewImage.className = 'ImagePreviewImage';
|
|
4297
4303
|
$ImagePreviewImage.src = uri;
|
|
@@ -4322,7 +4328,7 @@ const dispose$h = state => {
|
|
|
4322
4328
|
|
|
4323
4329
|
const ImagePreview = {
|
|
4324
4330
|
__proto__: null,
|
|
4325
|
-
create: create$
|
|
4331
|
+
create: create$z,
|
|
4326
4332
|
dispose: dispose$h,
|
|
4327
4333
|
showError,
|
|
4328
4334
|
update
|
|
@@ -4330,7 +4336,7 @@ const ImagePreview = {
|
|
|
4330
4336
|
|
|
4331
4337
|
const name$p = 'ImagePreview';
|
|
4332
4338
|
const Commands$q = {
|
|
4333
|
-
create: create$
|
|
4339
|
+
create: create$z,
|
|
4334
4340
|
dispose: dispose$h,
|
|
4335
4341
|
showError: showError,
|
|
4336
4342
|
update: update
|
|
@@ -4408,7 +4414,7 @@ const InitData_ipc = {
|
|
|
4408
4414
|
|
|
4409
4415
|
const name$n = 'IpcParent';
|
|
4410
4416
|
const Commands$o = {
|
|
4411
|
-
create: create$
|
|
4417
|
+
create: create$M
|
|
4412
4418
|
};
|
|
4413
4419
|
|
|
4414
4420
|
const IpcParent_ipc = {
|
|
@@ -4528,7 +4534,7 @@ const create$Notification = message => {
|
|
|
4528
4534
|
$Notification.textContent = message;
|
|
4529
4535
|
return $Notification;
|
|
4530
4536
|
};
|
|
4531
|
-
const create$
|
|
4537
|
+
const create$y = (type, message) => {
|
|
4532
4538
|
// TODO this pattern might be also useful for activitybar, sidebar etc., creating elements as late as possible, only when actually needed
|
|
4533
4539
|
const $Notification = create$Notification(message);
|
|
4534
4540
|
append$1($Notification);
|
|
@@ -4581,7 +4587,7 @@ const name$h = 'Notification';
|
|
|
4581
4587
|
|
|
4582
4588
|
// prettier-ignore
|
|
4583
4589
|
const Commands$i = {
|
|
4584
|
-
create: create$
|
|
4590
|
+
create: create$y,
|
|
4585
4591
|
createWithOptions: createWithOptions,
|
|
4586
4592
|
dispose: dispose$g
|
|
4587
4593
|
};
|
|
@@ -4605,7 +4611,7 @@ const set$3 = (canvasId, canvas) => {
|
|
|
4605
4611
|
const get$3 = id => {
|
|
4606
4612
|
return get$4(id);
|
|
4607
4613
|
};
|
|
4608
|
-
const create$
|
|
4614
|
+
const create$x = async (canvasId, objectId) => {
|
|
4609
4615
|
const canvas = document.createElement('canvas');
|
|
4610
4616
|
const offscreenCanvas = canvas.transferControlToOffscreen();
|
|
4611
4617
|
set$3(canvasId, canvas);
|
|
@@ -4616,7 +4622,7 @@ const name$g = 'OffscreenCanvas';
|
|
|
4616
4622
|
|
|
4617
4623
|
// prettier-ignore
|
|
4618
4624
|
const Commands$h = {
|
|
4619
|
-
create: create$
|
|
4625
|
+
create: create$x
|
|
4620
4626
|
};
|
|
4621
4627
|
|
|
4622
4628
|
const OffscreenCanvas_ipc = {
|
|
@@ -5779,12 +5785,14 @@ const load$1 = moduleId => {
|
|
|
5779
5785
|
return Promise.resolve().then(function () { return ViewletWebView; });
|
|
5780
5786
|
case EditorCompletionDetails:
|
|
5781
5787
|
return Promise.resolve().then(function () { return ViewletEditorCompletionDetails; });
|
|
5788
|
+
case EditorTextError:
|
|
5789
|
+
return Promise.resolve().then(function () { return ViewletEditorTextError; });
|
|
5782
5790
|
default:
|
|
5783
5791
|
throw new Error(`${moduleId} module not found in renderer process`);
|
|
5784
5792
|
}
|
|
5785
5793
|
};
|
|
5786
5794
|
|
|
5787
|
-
const create$
|
|
5795
|
+
const create$w = (id, uid = id) => {
|
|
5788
5796
|
const module = state$6.modules[id];
|
|
5789
5797
|
if (!module) {
|
|
5790
5798
|
throw new Error(`module not found: ${id}`);
|
|
@@ -5961,7 +5969,7 @@ const sendMultiple = commands => {
|
|
|
5961
5969
|
}
|
|
5962
5970
|
case 'Viewlet.create':
|
|
5963
5971
|
{
|
|
5964
|
-
create$
|
|
5972
|
+
create$w(viewletId, method);
|
|
5965
5973
|
break;
|
|
5966
5974
|
}
|
|
5967
5975
|
case 'Viewlet.createFunctionalRoot':
|
|
@@ -6156,7 +6164,7 @@ const appendToBody = childId => {
|
|
|
6156
6164
|
const getFn = command => {
|
|
6157
6165
|
switch (command) {
|
|
6158
6166
|
case 'Viewlet.create':
|
|
6159
|
-
return create$
|
|
6167
|
+
return create$w;
|
|
6160
6168
|
case 'Viewlet.send':
|
|
6161
6169
|
return invoke;
|
|
6162
6170
|
case 'Viewlet.show':
|
|
@@ -6502,7 +6510,7 @@ const waitForFrameToLoad = $Frame => {
|
|
|
6502
6510
|
};
|
|
6503
6511
|
|
|
6504
6512
|
// TODO could use browser view when running in electron
|
|
6505
|
-
const create$
|
|
6513
|
+
const create$v = async (uid, src, sandbox, csp, credentialless) => {
|
|
6506
6514
|
const $Iframe = document.createElement('iframe');
|
|
6507
6515
|
setIframeCredentialless($Iframe, credentialless);
|
|
6508
6516
|
setIframeCsp($Iframe, csp);
|
|
@@ -6544,7 +6552,7 @@ const dispose$d = uid => {
|
|
|
6544
6552
|
|
|
6545
6553
|
const name = 'WebView';
|
|
6546
6554
|
const Commands$1 = {
|
|
6547
|
-
create: create$
|
|
6555
|
+
create: create$v,
|
|
6548
6556
|
load: load,
|
|
6549
6557
|
setPort: setPort$2,
|
|
6550
6558
|
dispose: dispose$d
|
|
@@ -6652,7 +6660,7 @@ const ViewletAudio = {
|
|
|
6652
6660
|
Events: Events$a
|
|
6653
6661
|
};
|
|
6654
6662
|
|
|
6655
|
-
const create$
|
|
6663
|
+
const create$u = () => {
|
|
6656
6664
|
const $Viewlet = document.createElement('div');
|
|
6657
6665
|
$Viewlet.className = 'Viewlet BrowserViewOverview';
|
|
6658
6666
|
return {
|
|
@@ -6668,11 +6676,11 @@ const setDom$6 = (state, dom) => {
|
|
|
6668
6676
|
|
|
6669
6677
|
const ViewletBrowserViewOverview = {
|
|
6670
6678
|
__proto__: null,
|
|
6671
|
-
create: create$
|
|
6679
|
+
create: create$u,
|
|
6672
6680
|
setDom: setDom$6
|
|
6673
6681
|
};
|
|
6674
6682
|
|
|
6675
|
-
const create$
|
|
6683
|
+
const create$t = () => {
|
|
6676
6684
|
const $Viewlet = document.createElement('div');
|
|
6677
6685
|
$Viewlet.className = 'Viewlet Clock';
|
|
6678
6686
|
return {
|
|
@@ -6689,7 +6697,7 @@ const setTime = (state, time) => {
|
|
|
6689
6697
|
|
|
6690
6698
|
const ViewletClock = {
|
|
6691
6699
|
__proto__: null,
|
|
6692
|
-
create: create$
|
|
6700
|
+
create: create$t,
|
|
6693
6701
|
dispose: dispose$c,
|
|
6694
6702
|
refresh: refresh$3,
|
|
6695
6703
|
setTime
|
|
@@ -6716,7 +6724,7 @@ const ViewletDebugConsoleEvents = {
|
|
|
6716
6724
|
handleInput: handleInput$6
|
|
6717
6725
|
};
|
|
6718
6726
|
|
|
6719
|
-
const create$
|
|
6727
|
+
const create$s = () => {
|
|
6720
6728
|
const $Viewlet = document.createElement('div');
|
|
6721
6729
|
$Viewlet.className = 'Viewlet DebugConsole';
|
|
6722
6730
|
return {
|
|
@@ -6732,7 +6740,7 @@ const setDom$5 = (state, dom) => {
|
|
|
6732
6740
|
|
|
6733
6741
|
const ViewletDebugConsole = {
|
|
6734
6742
|
__proto__: null,
|
|
6735
|
-
create: create$
|
|
6743
|
+
create: create$s,
|
|
6736
6744
|
setDom: setDom$5
|
|
6737
6745
|
};
|
|
6738
6746
|
|
|
@@ -6793,7 +6801,7 @@ const setMaskImage = ($Element, icon) => {
|
|
|
6793
6801
|
}
|
|
6794
6802
|
};
|
|
6795
6803
|
|
|
6796
|
-
const create$
|
|
6804
|
+
const create$r = icon => {
|
|
6797
6805
|
const $Icon = document.createElement('div');
|
|
6798
6806
|
$Icon.className = 'MaskIcon';
|
|
6799
6807
|
setMaskImage($Icon, icon);
|
|
@@ -6803,7 +6811,7 @@ const create$q = icon => {
|
|
|
6803
6811
|
|
|
6804
6812
|
const create$Button = (label, icon) => {
|
|
6805
6813
|
// TODO icon div might not be needed (unnecessary html element)
|
|
6806
|
-
const $Icon = create$
|
|
6814
|
+
const $Icon = create$r(icon);
|
|
6807
6815
|
const $Button = document.createElement('button');
|
|
6808
6816
|
$Button.className = 'IconButton';
|
|
6809
6817
|
$Button.title = label;
|
|
@@ -6824,7 +6832,7 @@ const handleClick$6 = event => {
|
|
|
6824
6832
|
handleClick$7(index);
|
|
6825
6833
|
};
|
|
6826
6834
|
|
|
6827
|
-
const create$
|
|
6835
|
+
const create$q = () => {
|
|
6828
6836
|
const $DialogTitle = document.createElement('h2');
|
|
6829
6837
|
$DialogTitle.id = 'DialogTitle';
|
|
6830
6838
|
const $DialogCloseButton = create$Button('Close', 'Close');
|
|
@@ -6905,7 +6913,7 @@ const setErrorStack = (state, errorStack) => {
|
|
|
6905
6913
|
|
|
6906
6914
|
const ViewletDialog = {
|
|
6907
6915
|
__proto__: null,
|
|
6908
|
-
create: create$
|
|
6916
|
+
create: create$q,
|
|
6909
6917
|
postAppend,
|
|
6910
6918
|
setButtons,
|
|
6911
6919
|
setCodeFrame,
|
|
@@ -6914,6 +6922,15 @@ const ViewletDialog = {
|
|
|
6914
6922
|
setHeader
|
|
6915
6923
|
};
|
|
6916
6924
|
|
|
6925
|
+
const handleWheel$3 = event => {
|
|
6926
|
+
const {
|
|
6927
|
+
deltaMode,
|
|
6928
|
+
deltaY
|
|
6929
|
+
} = event;
|
|
6930
|
+
const uid = fromEvent(event);
|
|
6931
|
+
handleWheel$5(uid, deltaMode, deltaY);
|
|
6932
|
+
};
|
|
6933
|
+
|
|
6917
6934
|
const handleScrollBarPointerDown$3 = event => {
|
|
6918
6935
|
// TODO
|
|
6919
6936
|
};
|
|
@@ -6943,7 +6960,7 @@ const ViewletDiffEditor = {
|
|
|
6943
6960
|
|
|
6944
6961
|
// TODO aria alert
|
|
6945
6962
|
|
|
6946
|
-
const create$
|
|
6963
|
+
const create$p = () => {
|
|
6947
6964
|
const $Viewlet = document.createElement('div');
|
|
6948
6965
|
$Viewlet.className = 'Viewlet EditorError';
|
|
6949
6966
|
return {
|
|
@@ -6965,7 +6982,7 @@ const setBounds$1 = (state, x, y, width, height) => {
|
|
|
6965
6982
|
|
|
6966
6983
|
const ViewletEditorError = {
|
|
6967
6984
|
__proto__: null,
|
|
6968
|
-
create: create$
|
|
6985
|
+
create: create$p,
|
|
6969
6986
|
setBounds: setBounds$1,
|
|
6970
6987
|
setDom: setDom$4
|
|
6971
6988
|
};
|
|
@@ -7043,7 +7060,7 @@ const handleWheel$2 = event => {
|
|
|
7043
7060
|
deltaY
|
|
7044
7061
|
} = event;
|
|
7045
7062
|
const uid = fromEvent(event);
|
|
7046
|
-
handleWheel$
|
|
7063
|
+
handleWheel$5(uid, clientX, clientY, deltaX, deltaY);
|
|
7047
7064
|
};
|
|
7048
7065
|
|
|
7049
7066
|
/**
|
|
@@ -7069,7 +7086,7 @@ const handleFocus$8 = event => {
|
|
|
7069
7086
|
handleFocus$c(uid);
|
|
7070
7087
|
};
|
|
7071
7088
|
|
|
7072
|
-
const create$
|
|
7089
|
+
const create$o = () => {
|
|
7073
7090
|
const $Viewlet = document.createElement('div');
|
|
7074
7091
|
$Viewlet.className = 'Viewlet EditorImage';
|
|
7075
7092
|
return {
|
|
@@ -7112,13 +7129,13 @@ const setDom$3 = (state, dom) => {
|
|
|
7112
7129
|
const ViewletEditorImage = {
|
|
7113
7130
|
__proto__: null,
|
|
7114
7131
|
attachEvents: attachEvents$8,
|
|
7115
|
-
create: create$
|
|
7132
|
+
create: create$o,
|
|
7116
7133
|
setDom: setDom$3,
|
|
7117
7134
|
setDragging,
|
|
7118
7135
|
setTransform
|
|
7119
7136
|
};
|
|
7120
7137
|
|
|
7121
|
-
const create$
|
|
7138
|
+
const create$n = () => {
|
|
7122
7139
|
const $Viewlet = document.createElement('div');
|
|
7123
7140
|
$Viewlet.className = 'Viewlet EditorText';
|
|
7124
7141
|
$Viewlet.textContent = 'loading...';
|
|
@@ -7135,7 +7152,7 @@ const refresh$2 = (state, context) => {
|
|
|
7135
7152
|
|
|
7136
7153
|
const ViewletEditorPlainText = {
|
|
7137
7154
|
__proto__: null,
|
|
7138
|
-
create: create$
|
|
7155
|
+
create: create$n,
|
|
7139
7156
|
dispose: dispose$b,
|
|
7140
7157
|
refresh: refresh$2
|
|
7141
7158
|
};
|
|
@@ -7394,7 +7411,7 @@ const handlePaste = event => {
|
|
|
7394
7411
|
const text = getText(clipboardData);
|
|
7395
7412
|
return ['paste', text];
|
|
7396
7413
|
};
|
|
7397
|
-
const handleScrollBarVerticalPointerDown = create$
|
|
7414
|
+
const handleScrollBarVerticalPointerDown = create$L(event => {
|
|
7398
7415
|
const {
|
|
7399
7416
|
clientY
|
|
7400
7417
|
} = event;
|
|
@@ -7517,7 +7534,7 @@ const setLineInfos = (state, dom) => {
|
|
|
7517
7534
|
// 1. create -> only create dom elements
|
|
7518
7535
|
// 2. render -> fill elements with attributes and data
|
|
7519
7536
|
// that way all dom nodes can be recycled
|
|
7520
|
-
const create$
|
|
7537
|
+
const create$m = () => {
|
|
7521
7538
|
const $EditorInput = document.createElement('textarea');
|
|
7522
7539
|
$EditorInput.className = 'EditorInput';
|
|
7523
7540
|
$EditorInput.ariaAutoComplete = List;
|
|
@@ -7684,7 +7701,7 @@ const setDecorationsDom$1 = (state, decorations) => {
|
|
|
7684
7701
|
setDecorationsDom$2(state, decorations);
|
|
7685
7702
|
};
|
|
7686
7703
|
|
|
7687
|
-
const create$
|
|
7704
|
+
const create$l = create$m;
|
|
7688
7705
|
const setText$1 = setText$2;
|
|
7689
7706
|
const setSelections = setSelections$1;
|
|
7690
7707
|
const setIncrementalEdits = setIncrementalEdits$1;
|
|
@@ -7726,7 +7743,7 @@ const setDecorationsDom = setDecorationsDom$1;
|
|
|
7726
7743
|
|
|
7727
7744
|
const ViewletEditorText = {
|
|
7728
7745
|
__proto__: null,
|
|
7729
|
-
create: create$
|
|
7746
|
+
create: create$l,
|
|
7730
7747
|
focus: focus$e,
|
|
7731
7748
|
handleError: handleError$4,
|
|
7732
7749
|
hideOverlayMessage,
|
|
@@ -7742,14 +7759,14 @@ const ViewletEditorText = {
|
|
|
7742
7759
|
showOverlayMessage
|
|
7743
7760
|
};
|
|
7744
7761
|
|
|
7745
|
-
const create$
|
|
7762
|
+
const create$k = () => {
|
|
7746
7763
|
const $Viewlet = document.createElement('div');
|
|
7747
7764
|
$Viewlet.className = 'Viewlet EditorWidgetError EditorOverlayMessage';
|
|
7748
7765
|
return {
|
|
7749
7766
|
$Viewlet
|
|
7750
7767
|
};
|
|
7751
7768
|
};
|
|
7752
|
-
const setMessage$
|
|
7769
|
+
const setMessage$3 = (state, message) => {
|
|
7753
7770
|
const {
|
|
7754
7771
|
$Viewlet
|
|
7755
7772
|
} = state;
|
|
@@ -7765,12 +7782,12 @@ const setBounds = (state, x, y, width, height) => {
|
|
|
7765
7782
|
|
|
7766
7783
|
const ViewletEditorWidgetError = {
|
|
7767
7784
|
__proto__: null,
|
|
7768
|
-
create: create$
|
|
7785
|
+
create: create$k,
|
|
7769
7786
|
setBounds,
|
|
7770
|
-
setMessage: setMessage$
|
|
7787
|
+
setMessage: setMessage$3
|
|
7771
7788
|
};
|
|
7772
7789
|
|
|
7773
|
-
const create$
|
|
7790
|
+
const create$j = () => {
|
|
7774
7791
|
const $Viewlet = document.createElement('div');
|
|
7775
7792
|
$Viewlet.dataset.viewlet = 'Empty';
|
|
7776
7793
|
$Viewlet.className = 'Viewlet';
|
|
@@ -7784,20 +7801,20 @@ const dispose$a = state => {};
|
|
|
7784
7801
|
|
|
7785
7802
|
const ViewletEmpty = {
|
|
7786
7803
|
__proto__: null,
|
|
7787
|
-
create: create$
|
|
7804
|
+
create: create$j,
|
|
7788
7805
|
dispose: dispose$a,
|
|
7789
7806
|
focus: focus$d,
|
|
7790
7807
|
refresh: refresh$1
|
|
7791
7808
|
};
|
|
7792
7809
|
|
|
7793
|
-
const create$
|
|
7810
|
+
const create$i = () => {
|
|
7794
7811
|
const $Viewlet = document.createElement('div');
|
|
7795
7812
|
$Viewlet.className = 'Viewlet Error';
|
|
7796
7813
|
return {
|
|
7797
7814
|
$Viewlet
|
|
7798
7815
|
};
|
|
7799
7816
|
};
|
|
7800
|
-
const setMessage$
|
|
7817
|
+
const setMessage$2 = (state, message) => {
|
|
7801
7818
|
const {
|
|
7802
7819
|
$Viewlet
|
|
7803
7820
|
} = state;
|
|
@@ -7806,8 +7823,8 @@ const setMessage$1 = (state, message) => {
|
|
|
7806
7823
|
|
|
7807
7824
|
const ViewletError = {
|
|
7808
7825
|
__proto__: null,
|
|
7809
|
-
create: create$
|
|
7810
|
-
setMessage: setMessage$
|
|
7826
|
+
create: create$i,
|
|
7827
|
+
setMessage: setMessage$2
|
|
7811
7828
|
};
|
|
7812
7829
|
|
|
7813
7830
|
const handleContextMenu$8 = event => {
|
|
@@ -8023,7 +8040,7 @@ const ViewletExplorerEvents = {
|
|
|
8023
8040
|
handleWheel: handleWheel$3
|
|
8024
8041
|
};
|
|
8025
8042
|
|
|
8026
|
-
const create$
|
|
8043
|
+
const create$h = () => {
|
|
8027
8044
|
const $Viewlet = document.createElement('div');
|
|
8028
8045
|
$Viewlet.className = 'Viewlet Explorer';
|
|
8029
8046
|
$Viewlet.tabIndex = 0;
|
|
@@ -8081,7 +8098,7 @@ const setDom$2 = (state, dom) => {
|
|
|
8081
8098
|
const ViewletExplorer = {
|
|
8082
8099
|
__proto__: null,
|
|
8083
8100
|
Events: Events$9,
|
|
8084
|
-
create: create$
|
|
8101
|
+
create: create$h,
|
|
8085
8102
|
dispose: dispose$9,
|
|
8086
8103
|
focusInput,
|
|
8087
8104
|
handleError: handleError$3,
|
|
@@ -8229,7 +8246,7 @@ const handleTouchEnd = event => {
|
|
|
8229
8246
|
|
|
8230
8247
|
// based on https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/extensions/browser/extensionsList.ts (License MIT)
|
|
8231
8248
|
|
|
8232
|
-
const create$
|
|
8249
|
+
const create$g = () => {
|
|
8233
8250
|
const $ExtensionHeader = document.createElement('div');
|
|
8234
8251
|
$ExtensionHeader.className = 'ExtensionHeader';
|
|
8235
8252
|
|
|
@@ -8299,7 +8316,7 @@ const setExtensionState = () => {
|
|
|
8299
8316
|
// state.extensions[index].state = extensionState
|
|
8300
8317
|
// render(state)
|
|
8301
8318
|
};
|
|
8302
|
-
const setMessage = (state, message) => {
|
|
8319
|
+
const setMessage$1 = (state, message) => {
|
|
8303
8320
|
object(state);
|
|
8304
8321
|
string(message);
|
|
8305
8322
|
const {
|
|
@@ -8374,7 +8391,7 @@ const ViewletExtensions = {
|
|
|
8374
8391
|
__proto__: null,
|
|
8375
8392
|
attachEvents: attachEvents$7,
|
|
8376
8393
|
closeSuggest,
|
|
8377
|
-
create: create$
|
|
8394
|
+
create: create$g,
|
|
8378
8395
|
dispose: dispose$8,
|
|
8379
8396
|
focus: focus$c,
|
|
8380
8397
|
handleError: handleError$2,
|
|
@@ -8383,7 +8400,7 @@ const ViewletExtensions = {
|
|
|
8383
8400
|
setExtensionState,
|
|
8384
8401
|
setExtensionsDom,
|
|
8385
8402
|
setHeaderDom,
|
|
8386
|
-
setMessage,
|
|
8403
|
+
setMessage: setMessage$1,
|
|
8387
8404
|
setNegativeMargin,
|
|
8388
8405
|
setScrollBar: setScrollBar$2,
|
|
8389
8406
|
setSearchValue,
|
|
@@ -9055,7 +9072,7 @@ const handleBlur$3 = () => {
|
|
|
9055
9072
|
const handleKeyDown$1 = handleKeyDown$2;
|
|
9056
9073
|
const handleKeyUp = handleKeyUp$1;
|
|
9057
9074
|
|
|
9058
|
-
const create$
|
|
9075
|
+
const create$f = () => {
|
|
9059
9076
|
// TODO use aria role splitter once supported https://github.com/w3c/aria/issues/1348
|
|
9060
9077
|
const $SashSideBar = document.createElement('div');
|
|
9061
9078
|
$SashSideBar.className = 'Viewlet Sash SashVertical';
|
|
@@ -9111,7 +9128,7 @@ const setSashes = (state, sashSideBar, sashPanel) => {
|
|
|
9111
9128
|
const ViewletLayout = {
|
|
9112
9129
|
__proto__: null,
|
|
9113
9130
|
attachEvents: attachEvents$6,
|
|
9114
|
-
create: create$
|
|
9131
|
+
create: create$f,
|
|
9115
9132
|
setSashes
|
|
9116
9133
|
};
|
|
9117
9134
|
|
|
@@ -9129,7 +9146,7 @@ const handleContextMenu$7 = event => {
|
|
|
9129
9146
|
};
|
|
9130
9147
|
|
|
9131
9148
|
// TODO Main should not be bound to Editor -> Lazy load Editor
|
|
9132
|
-
const create$
|
|
9149
|
+
const create$e = () => {
|
|
9133
9150
|
const $Viewlet = document.createElement('div');
|
|
9134
9151
|
$Viewlet.id = 'Main';
|
|
9135
9152
|
$Viewlet.className = 'Viewlet Main';
|
|
@@ -9229,7 +9246,7 @@ const ViewletMain = {
|
|
|
9229
9246
|
attachEvents: attachEvents$5,
|
|
9230
9247
|
closeAllViewlets,
|
|
9231
9248
|
closeViewletAndTab,
|
|
9232
|
-
create: create$
|
|
9249
|
+
create: create$e,
|
|
9233
9250
|
dispose: dispose$7,
|
|
9234
9251
|
focus: focus$a,
|
|
9235
9252
|
highlightDragOver,
|
|
@@ -9278,7 +9295,7 @@ const handleTabsContextMenu = event => {
|
|
|
9278
9295
|
handleTabContextMenu(uid, clientX, clientY);
|
|
9279
9296
|
};
|
|
9280
9297
|
|
|
9281
|
-
const create$
|
|
9298
|
+
const create$d = () => {
|
|
9282
9299
|
const $MainTabs = document.createElement('div');
|
|
9283
9300
|
$MainTabs.className = 'Viewlet MainTabs';
|
|
9284
9301
|
$MainTabs.role = TabList;
|
|
@@ -9315,12 +9332,12 @@ const setScrollLeft = (state, scrollLeft) => {
|
|
|
9315
9332
|
const ViewletMainTabs = {
|
|
9316
9333
|
__proto__: null,
|
|
9317
9334
|
attachEvents: attachEvents$4,
|
|
9318
|
-
create: create$
|
|
9335
|
+
create: create$d,
|
|
9319
9336
|
setScrollLeft,
|
|
9320
9337
|
setTabsDom: setTabsDom$2
|
|
9321
9338
|
};
|
|
9322
9339
|
|
|
9323
|
-
const create$
|
|
9340
|
+
const create$c = () => {
|
|
9324
9341
|
const $ViewletOutputContent = document.createElement('div');
|
|
9325
9342
|
$ViewletOutputContent.className = 'OutputContent';
|
|
9326
9343
|
$ViewletOutputContent.role = Log;
|
|
@@ -9372,7 +9389,7 @@ const dispose$6 = state => {};
|
|
|
9372
9389
|
const ViewletOutput = {
|
|
9373
9390
|
__proto__: null,
|
|
9374
9391
|
clear,
|
|
9375
|
-
create: create$
|
|
9392
|
+
create: create$c,
|
|
9376
9393
|
dispose: dispose$6,
|
|
9377
9394
|
disposeFindWidget,
|
|
9378
9395
|
focus: focus$9,
|
|
@@ -9425,7 +9442,7 @@ const UiStrings = {
|
|
|
9425
9442
|
Close: 'Close',
|
|
9426
9443
|
Maximize: 'Maximize'
|
|
9427
9444
|
};
|
|
9428
|
-
const create$
|
|
9445
|
+
const create$b = () => {
|
|
9429
9446
|
const $PanelTabs = document.createElement('div');
|
|
9430
9447
|
$PanelTabs.className = 'PanelTabs';
|
|
9431
9448
|
$PanelTabs.role = TabList;
|
|
@@ -9538,7 +9555,7 @@ const setActionsDom$1 = (state, actions, childUid) => {
|
|
|
9538
9555
|
const ViewletPanel = {
|
|
9539
9556
|
__proto__: null,
|
|
9540
9557
|
attachEvents: attachEvents$3,
|
|
9541
|
-
create: create$
|
|
9558
|
+
create: create$b,
|
|
9542
9559
|
dispose: dispose$5,
|
|
9543
9560
|
focus: focus$8,
|
|
9544
9561
|
setActionsDom: setActionsDom$1,
|
|
@@ -9753,8 +9770,8 @@ const focus$6 = state => {
|
|
|
9753
9770
|
// - for windows narrator, ariaLabel works well
|
|
9754
9771
|
// - for nvda ariaRoleDescription works better
|
|
9755
9772
|
|
|
9756
|
-
const create$
|
|
9757
|
-
const $QuickPickInput = create$
|
|
9773
|
+
const create$a = () => {
|
|
9774
|
+
const $QuickPickInput = create$B();
|
|
9758
9775
|
$QuickPickInput.setAttribute(AriaControls, Ids.QuickPickItems); // TODO use idl once supported
|
|
9759
9776
|
$QuickPickInput.role = ComboBox;
|
|
9760
9777
|
$QuickPickInput.ariaLabel = 'Type the name of a command to run.';
|
|
@@ -9864,7 +9881,7 @@ const noop = state => {};
|
|
|
9864
9881
|
const ViewletQuickPick = {
|
|
9865
9882
|
__proto__: null,
|
|
9866
9883
|
attachEvents: attachEvents$2,
|
|
9867
|
-
create: create$
|
|
9884
|
+
create: create$a,
|
|
9868
9885
|
dispose: dispose$4,
|
|
9869
9886
|
focus: focus$6,
|
|
9870
9887
|
hideStatus,
|
|
@@ -10035,7 +10052,7 @@ const handleLoadedMetaData = event => {
|
|
|
10035
10052
|
target.play();
|
|
10036
10053
|
};
|
|
10037
10054
|
|
|
10038
|
-
const create$
|
|
10055
|
+
const create$9 = () => {
|
|
10039
10056
|
const $Viewlet = document.createElement('div');
|
|
10040
10057
|
$Viewlet.className = 'Viewlet ScreenCapture';
|
|
10041
10058
|
return {
|
|
@@ -10055,7 +10072,7 @@ const setScreenCapture = (state, id) => {
|
|
|
10055
10072
|
|
|
10056
10073
|
const ViewletScreenCapture = {
|
|
10057
10074
|
__proto__: null,
|
|
10058
|
-
create: create$
|
|
10075
|
+
create: create$9,
|
|
10059
10076
|
setScreenCapture
|
|
10060
10077
|
};
|
|
10061
10078
|
|
|
@@ -10245,7 +10262,7 @@ const handleHeaderClick = event => {
|
|
|
10245
10262
|
}
|
|
10246
10263
|
};
|
|
10247
10264
|
|
|
10248
|
-
const create$
|
|
10265
|
+
const create$8 = () => {
|
|
10249
10266
|
const $SideBarTitleAreaTitle = document.createElement('h2');
|
|
10250
10267
|
$SideBarTitleAreaTitle.className = 'SideBarTitleAreaTitle';
|
|
10251
10268
|
const $SideBarTitleArea = document.createElement('div');
|
|
@@ -10309,7 +10326,7 @@ const focus$4 = async () => {
|
|
|
10309
10326
|
const ViewletSideBar = {
|
|
10310
10327
|
__proto__: null,
|
|
10311
10328
|
attachEvents: attachEvents$1,
|
|
10312
|
-
create: create$
|
|
10329
|
+
create: create$8,
|
|
10313
10330
|
dispose: dispose$2,
|
|
10314
10331
|
focus: focus$4,
|
|
10315
10332
|
setActionsDom,
|
|
@@ -10510,7 +10527,7 @@ const ViewletStatusBarEvents = {
|
|
|
10510
10527
|
handleClick: handleClick$2
|
|
10511
10528
|
};
|
|
10512
10529
|
|
|
10513
|
-
const create$
|
|
10530
|
+
const create$7 = () => {
|
|
10514
10531
|
const $Viewlet = document.createElement('div');
|
|
10515
10532
|
$Viewlet.id = 'StatusBar';
|
|
10516
10533
|
$Viewlet.className = 'Viewlet StatusBar';
|
|
@@ -10539,7 +10556,7 @@ const focus$2 = state => {
|
|
|
10539
10556
|
|
|
10540
10557
|
const ViewletStatusBar = {
|
|
10541
10558
|
__proto__: null,
|
|
10542
|
-
create: create$
|
|
10559
|
+
create: create$7,
|
|
10543
10560
|
focus: focus$2,
|
|
10544
10561
|
setDom: setDom$1
|
|
10545
10562
|
};
|
|
@@ -10642,7 +10659,7 @@ const createOffscreenTerminalDom = (root, {
|
|
|
10642
10659
|
};
|
|
10643
10660
|
|
|
10644
10661
|
// @ts-ignore
|
|
10645
|
-
const create$
|
|
10662
|
+
const create$6 = ({
|
|
10646
10663
|
$Element,
|
|
10647
10664
|
...options
|
|
10648
10665
|
}) => {
|
|
@@ -10663,7 +10680,7 @@ const handleKeyDown = (event, ...args) => {
|
|
|
10663
10680
|
handleKeyDown$5(uid, ...args);
|
|
10664
10681
|
};
|
|
10665
10682
|
|
|
10666
|
-
const create$
|
|
10683
|
+
const create$5 = () => {
|
|
10667
10684
|
const $Viewlet = document.createElement('div');
|
|
10668
10685
|
$Viewlet.className = 'Viewlet Terminal';
|
|
10669
10686
|
return {
|
|
@@ -10677,7 +10694,7 @@ const setTerminal = (state, canvasCursorId, canvasTextId) => {
|
|
|
10677
10694
|
const {
|
|
10678
10695
|
$Viewlet
|
|
10679
10696
|
} = state;
|
|
10680
|
-
const terminal = create$
|
|
10697
|
+
const terminal = create$6({
|
|
10681
10698
|
$Element: $Viewlet,
|
|
10682
10699
|
handleKeyDown: (...args) => {
|
|
10683
10700
|
handleKeyDown({
|
|
@@ -10749,7 +10766,7 @@ const Commands = {
|
|
|
10749
10766
|
const ViewletTerminal = {
|
|
10750
10767
|
__proto__: null,
|
|
10751
10768
|
Commands,
|
|
10752
|
-
create: create$
|
|
10769
|
+
create: create$5,
|
|
10753
10770
|
dispose: dispose$1,
|
|
10754
10771
|
focus: focus$1,
|
|
10755
10772
|
focusTextArea,
|
|
@@ -10770,7 +10787,7 @@ const handleClickTab = event => {
|
|
|
10770
10787
|
handleClickTab$2(uid, index);
|
|
10771
10788
|
};
|
|
10772
10789
|
|
|
10773
|
-
const create$
|
|
10790
|
+
const create$4 = () => {
|
|
10774
10791
|
const $Viewlet = document.createElement('div');
|
|
10775
10792
|
$Viewlet.className = 'Viewlet Terminals';
|
|
10776
10793
|
return {
|
|
@@ -10797,7 +10814,7 @@ const setTabsDom = (state, dom) => {
|
|
|
10797
10814
|
|
|
10798
10815
|
const ViewletTerminals = {
|
|
10799
10816
|
__proto__: null,
|
|
10800
|
-
create: create$
|
|
10817
|
+
create: create$4,
|
|
10801
10818
|
setTabsDom
|
|
10802
10819
|
};
|
|
10803
10820
|
|
|
@@ -10811,7 +10828,7 @@ const handleContextMenu$4 = event => {
|
|
|
10811
10828
|
return ['handleContextMenu', button, clientX, clientY];
|
|
10812
10829
|
};
|
|
10813
10830
|
|
|
10814
|
-
const create$
|
|
10831
|
+
const create$3 = () => {
|
|
10815
10832
|
// TODO set aria label for title bar menu
|
|
10816
10833
|
// TODO add tests for aria properties
|
|
10817
10834
|
const $Viewlet = document.createElement('div');
|
|
@@ -10847,7 +10864,7 @@ const setFocused$1 = (state, isFocused) => {
|
|
|
10847
10864
|
const ViewletTitleBar = {
|
|
10848
10865
|
__proto__: null,
|
|
10849
10866
|
attachEvents,
|
|
10850
|
-
create: create$
|
|
10867
|
+
create: create$3,
|
|
10851
10868
|
setFocused: setFocused$1
|
|
10852
10869
|
};
|
|
10853
10870
|
|
|
@@ -11255,7 +11272,7 @@ const ViewletVideo = {
|
|
|
11255
11272
|
Events
|
|
11256
11273
|
};
|
|
11257
11274
|
|
|
11258
|
-
const create$
|
|
11275
|
+
const create$2 = () => {
|
|
11259
11276
|
const $Viewlet = document.createElement('div');
|
|
11260
11277
|
$Viewlet.className = 'Viewlet TitleBarTitle';
|
|
11261
11278
|
return {
|
|
@@ -11271,7 +11288,7 @@ const setDom = (state, dom) => {
|
|
|
11271
11288
|
|
|
11272
11289
|
const ViewletTitleBarTitle = {
|
|
11273
11290
|
__proto__: null,
|
|
11274
|
-
create: create$
|
|
11291
|
+
create: create$2,
|
|
11275
11292
|
setDom
|
|
11276
11293
|
};
|
|
11277
11294
|
|
|
@@ -11323,7 +11340,7 @@ const ViewletAbout = {
|
|
|
11323
11340
|
setFocused
|
|
11324
11341
|
};
|
|
11325
11342
|
|
|
11326
|
-
const create = () => {
|
|
11343
|
+
const create$1 = () => {
|
|
11327
11344
|
const $Viewlet = document.createElement('div');
|
|
11328
11345
|
$Viewlet.className = 'Viewlet EmptyEditor';
|
|
11329
11346
|
return {
|
|
@@ -11333,7 +11350,7 @@ const create = () => {
|
|
|
11333
11350
|
|
|
11334
11351
|
const ViewletEmptyEditor = {
|
|
11335
11352
|
__proto__: null,
|
|
11336
|
-
create
|
|
11353
|
+
create: create$1
|
|
11337
11354
|
};
|
|
11338
11355
|
|
|
11339
11356
|
const handleScrollBarPointerDown = event => {
|
|
@@ -11458,7 +11475,7 @@ const handleContextMenu$1 = event => {
|
|
|
11458
11475
|
} = event;
|
|
11459
11476
|
return ['handleContextMenu', button, clientX, clientY];
|
|
11460
11477
|
};
|
|
11461
|
-
const handleSashCornerPointerDown = create$
|
|
11478
|
+
const handleSashCornerPointerDown = create$L(event => {
|
|
11462
11479
|
const {
|
|
11463
11480
|
clientX,
|
|
11464
11481
|
clientY
|
|
@@ -11621,3 +11638,23 @@ const ViewletWebView = {
|
|
|
11621
11638
|
setPort,
|
|
11622
11639
|
setPosition
|
|
11623
11640
|
};
|
|
11641
|
+
|
|
11642
|
+
const create = () => {
|
|
11643
|
+
const $Viewlet = document.createElement('div');
|
|
11644
|
+
$Viewlet.className = 'Viewlet EditorTextError';
|
|
11645
|
+
return {
|
|
11646
|
+
$Viewlet
|
|
11647
|
+
};
|
|
11648
|
+
};
|
|
11649
|
+
const setMessage = (state, message) => {
|
|
11650
|
+
const {
|
|
11651
|
+
$Viewlet
|
|
11652
|
+
} = state;
|
|
11653
|
+
$Viewlet.textContent = message;
|
|
11654
|
+
};
|
|
11655
|
+
|
|
11656
|
+
const ViewletEditorTextError = {
|
|
11657
|
+
__proto__: null,
|
|
11658
|
+
create,
|
|
11659
|
+
setMessage
|
|
11660
|
+
};
|