@lvce-editor/renderer-process 10.17.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 +140 -117
- 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
|
|
@@ -2276,7 +2276,7 @@ const setNegativeMargin = (state, negativeMargin) => {
|
|
|
2276
2276
|
setTop($ListItems, negativeMargin);
|
|
2277
2277
|
};
|
|
2278
2278
|
|
|
2279
|
-
const create$
|
|
2279
|
+
const create$K = () => {
|
|
2280
2280
|
const $ListItems = document.createElement('div');
|
|
2281
2281
|
$ListItems.className = 'ListItems';
|
|
2282
2282
|
$ListItems.role = ListBox;
|
|
@@ -2360,7 +2360,7 @@ const setBounds$7 = (state, x, y, width, height) => {
|
|
|
2360
2360
|
const ViewletEditorCompletion = {
|
|
2361
2361
|
__proto__: null,
|
|
2362
2362
|
attachEvents: attachEvents$b,
|
|
2363
|
-
create: create$
|
|
2363
|
+
create: create$K,
|
|
2364
2364
|
dispose: dispose$m,
|
|
2365
2365
|
handleError: handleError$8,
|
|
2366
2366
|
setBounds: setBounds$7,
|
|
@@ -2383,7 +2383,7 @@ const ViewletEditorCompletionDetailsEvents = {
|
|
|
2383
2383
|
returnValue: returnValue$a
|
|
2384
2384
|
};
|
|
2385
2385
|
|
|
2386
|
-
const create$
|
|
2386
|
+
const create$J = () => {
|
|
2387
2387
|
const $Viewlet = document.createElement('div');
|
|
2388
2388
|
$Viewlet.className = 'Viewlet EditorCompletionDetails';
|
|
2389
2389
|
$Viewlet.id = 'CompletionsDetails';
|
|
@@ -2424,7 +2424,7 @@ const ViewletEditorCompletionDetails = {
|
|
|
2424
2424
|
Events: ViewletEditorCompletionDetailsEvents,
|
|
2425
2425
|
appendWidget: appendWidget$3,
|
|
2426
2426
|
attachEvents: attachEvents$a,
|
|
2427
|
-
create: create$
|
|
2427
|
+
create: create$J,
|
|
2428
2428
|
dispose: dispose$l,
|
|
2429
2429
|
setBounds: setBounds$6,
|
|
2430
2430
|
setDom: setDom$a
|
|
@@ -2433,7 +2433,7 @@ const ViewletEditorCompletionDetails = {
|
|
|
2433
2433
|
const rememberFocus = rememberFocus$1;
|
|
2434
2434
|
|
|
2435
2435
|
const returnValue$9 = true;
|
|
2436
|
-
const handleSashPointerDown$2 = create$
|
|
2436
|
+
const handleSashPointerDown$2 = create$L(event => {
|
|
2437
2437
|
const {
|
|
2438
2438
|
clientX,
|
|
2439
2439
|
clientY
|
|
@@ -2576,7 +2576,7 @@ const ViewletFindWidgetEvents = {
|
|
|
2576
2576
|
returnValue: returnValue$8
|
|
2577
2577
|
};
|
|
2578
2578
|
|
|
2579
|
-
const create$
|
|
2579
|
+
const create$I = () => {
|
|
2580
2580
|
const $Viewlet = document.createElement('div');
|
|
2581
2581
|
$Viewlet.className = 'Viewlet FindWidget';
|
|
2582
2582
|
$Viewlet.role = Group;
|
|
@@ -2639,7 +2639,7 @@ const ViewletFindWidget = {
|
|
|
2639
2639
|
__proto__: null,
|
|
2640
2640
|
Events: Events$c,
|
|
2641
2641
|
appendWidget: appendWidget$1,
|
|
2642
|
-
create: create$
|
|
2642
|
+
create: create$I,
|
|
2643
2643
|
dispose: dispose$k,
|
|
2644
2644
|
focus: focus$i,
|
|
2645
2645
|
setBounds: setBounds$4,
|
|
@@ -2739,6 +2739,7 @@ const E2eTests = 'E2eTests';
|
|
|
2739
2739
|
const E2eTest = 'E2eTest';
|
|
2740
2740
|
const WebView = 'WebView';
|
|
2741
2741
|
const EditorCompletionDetails = 'EditorCompletionDetails';
|
|
2742
|
+
const EditorTextError = 'EditorTextError';
|
|
2742
2743
|
|
|
2743
2744
|
const state$6 = {
|
|
2744
2745
|
instances: Object.create(null),
|
|
@@ -3180,7 +3181,7 @@ ${relevant}`;
|
|
|
3180
3181
|
|
|
3181
3182
|
const Module = 'module';
|
|
3182
3183
|
|
|
3183
|
-
const create$
|
|
3184
|
+
const create$H = async ({
|
|
3184
3185
|
url,
|
|
3185
3186
|
name
|
|
3186
3187
|
}) => {
|
|
@@ -3246,7 +3247,7 @@ const wrap = worker => {
|
|
|
3246
3247
|
|
|
3247
3248
|
const IpcParentWithModuleWorker = {
|
|
3248
3249
|
__proto__: null,
|
|
3249
|
-
create: create$
|
|
3250
|
+
create: create$H,
|
|
3250
3251
|
wrap
|
|
3251
3252
|
};
|
|
3252
3253
|
|
|
@@ -3254,7 +3255,7 @@ const isMessagePort$1 = value => {
|
|
|
3254
3255
|
return value instanceof MessagePort;
|
|
3255
3256
|
};
|
|
3256
3257
|
|
|
3257
|
-
const create$
|
|
3258
|
+
const create$G = async ({
|
|
3258
3259
|
url
|
|
3259
3260
|
}) => {
|
|
3260
3261
|
string(url);
|
|
@@ -3275,10 +3276,10 @@ const create$F = async ({
|
|
|
3275
3276
|
|
|
3276
3277
|
const IpcParentWithMessagePort = {
|
|
3277
3278
|
__proto__: null,
|
|
3278
|
-
create: create$
|
|
3279
|
+
create: create$G
|
|
3279
3280
|
};
|
|
3280
3281
|
|
|
3281
|
-
const create$
|
|
3282
|
+
const create$F = async url => {
|
|
3282
3283
|
const referencePort = await new Promise(resolve => {
|
|
3283
3284
|
globalThis.acceptReferencePort = resolve;
|
|
3284
3285
|
import(url);
|
|
@@ -3289,7 +3290,7 @@ const create$E = async url => {
|
|
|
3289
3290
|
|
|
3290
3291
|
const IpcParentWithReferencePort = {
|
|
3291
3292
|
__proto__: null,
|
|
3292
|
-
create: create$
|
|
3293
|
+
create: create$F
|
|
3293
3294
|
};
|
|
3294
3295
|
|
|
3295
3296
|
const isWorker = value => {
|
|
@@ -3297,12 +3298,12 @@ const isWorker = value => {
|
|
|
3297
3298
|
};
|
|
3298
3299
|
|
|
3299
3300
|
// TODO add test
|
|
3300
|
-
const create$
|
|
3301
|
+
const create$E = async ({
|
|
3301
3302
|
url,
|
|
3302
3303
|
name,
|
|
3303
3304
|
port
|
|
3304
3305
|
}) => {
|
|
3305
|
-
const worker = await create$
|
|
3306
|
+
const worker = await create$H({
|
|
3306
3307
|
url,
|
|
3307
3308
|
name
|
|
3308
3309
|
});
|
|
@@ -3321,7 +3322,7 @@ const create$D = async ({
|
|
|
3321
3322
|
|
|
3322
3323
|
const IpcParentWithModuleWorkerWithMessagePort = {
|
|
3323
3324
|
__proto__: null,
|
|
3324
|
-
create: create$
|
|
3325
|
+
create: create$E
|
|
3325
3326
|
};
|
|
3326
3327
|
|
|
3327
3328
|
const handleIpcOnce = ipc => {
|
|
@@ -3852,7 +3853,7 @@ const IpcChildWithMessagePort$1 = {
|
|
|
3852
3853
|
};
|
|
3853
3854
|
|
|
3854
3855
|
// TODO use handleIncomingIpc function
|
|
3855
|
-
const create$
|
|
3856
|
+
const create$D = async ({
|
|
3856
3857
|
port,
|
|
3857
3858
|
ipcId
|
|
3858
3859
|
}) => {
|
|
@@ -3868,7 +3869,7 @@ const create$C = async ({
|
|
|
3868
3869
|
|
|
3869
3870
|
const IpcParentWithElectron = {
|
|
3870
3871
|
__proto__: null,
|
|
3871
|
-
create: create$
|
|
3872
|
+
create: create$D
|
|
3872
3873
|
};
|
|
3873
3874
|
|
|
3874
3875
|
const play = async src => {
|
|
@@ -4054,7 +4055,7 @@ const create$AriaAlert = () => {
|
|
|
4054
4055
|
$AriaAlert.ariaAtomic = True;
|
|
4055
4056
|
return $AriaAlert;
|
|
4056
4057
|
};
|
|
4057
|
-
const setMessage$
|
|
4058
|
+
const setMessage$4 = ($Old, $New, message) => {
|
|
4058
4059
|
$Old.textContent = String(Math.random());
|
|
4059
4060
|
$Old.ariaHidden = True;
|
|
4060
4061
|
$New.removeAttribute(AriaHidden);
|
|
@@ -4078,9 +4079,9 @@ const alert$1 = message => {
|
|
|
4078
4079
|
const $AriaAlert2 = getAriaAlert2();
|
|
4079
4080
|
// @ts-expect-error
|
|
4080
4081
|
if ($AriaAlert1.textContent === message) {
|
|
4081
|
-
setMessage$
|
|
4082
|
+
setMessage$4($AriaAlert1, $AriaAlert2, message);
|
|
4082
4083
|
} else {
|
|
4083
|
-
setMessage$
|
|
4084
|
+
setMessage$4($AriaAlert2, $AriaAlert1, message);
|
|
4084
4085
|
}
|
|
4085
4086
|
};
|
|
4086
4087
|
|
|
@@ -4099,7 +4100,7 @@ const AriaAlert = {
|
|
|
4099
4100
|
// but that's difficult to know
|
|
4100
4101
|
|
|
4101
4102
|
// TODO hide widget after timeout or mousemove
|
|
4102
|
-
const create$
|
|
4103
|
+
const create$C = (message, x, y) => {
|
|
4103
4104
|
const $EditorError = document.createElement('div');
|
|
4104
4105
|
$EditorError.className = 'EditorWidgetError';
|
|
4105
4106
|
$EditorError.textContent = message;
|
|
@@ -4114,7 +4115,7 @@ const create$B = (message, x, y) => {
|
|
|
4114
4115
|
|
|
4115
4116
|
const name$t = 'EditorError';
|
|
4116
4117
|
const Commands$u = {
|
|
4117
|
-
create: create$
|
|
4118
|
+
create: create$C
|
|
4118
4119
|
};
|
|
4119
4120
|
|
|
4120
4121
|
const EditorError_ipc = {
|
|
@@ -4154,7 +4155,7 @@ const focusPrevious = () => {
|
|
|
4154
4155
|
}
|
|
4155
4156
|
};
|
|
4156
4157
|
|
|
4157
|
-
const create$
|
|
4158
|
+
const create$B = () => {
|
|
4158
4159
|
const $InputBox = document.createElement('input');
|
|
4159
4160
|
$InputBox.className = 'InputBox';
|
|
4160
4161
|
$InputBox.spellcheck = false;
|
|
@@ -4178,8 +4179,8 @@ const FocusOutput = 28;
|
|
|
4178
4179
|
const handleBlur$9 = () => {
|
|
4179
4180
|
send(/* EditorRename.abort */'EditorRename.abort');
|
|
4180
4181
|
};
|
|
4181
|
-
const create$
|
|
4182
|
-
const $RenameWidgetInputBox = create$
|
|
4182
|
+
const create$A = (x, y) => {
|
|
4183
|
+
const $RenameWidgetInputBox = create$B();
|
|
4183
4184
|
$RenameWidgetInputBox.className = 'RenameWidgetInputBox';
|
|
4184
4185
|
$RenameWidgetInputBox.onblur = handleBlur$9;
|
|
4185
4186
|
const $RenameWidget = document.createElement('div');
|
|
@@ -4210,7 +4211,7 @@ const finish = state => {
|
|
|
4210
4211
|
|
|
4211
4212
|
const name$s = 'EditorRename';
|
|
4212
4213
|
const Commands$t = {
|
|
4213
|
-
create: create$
|
|
4214
|
+
create: create$A,
|
|
4214
4215
|
dispose: dispose$i,
|
|
4215
4216
|
finish: finish
|
|
4216
4217
|
};
|
|
@@ -4296,7 +4297,7 @@ const showError = (message, y, x) => {
|
|
|
4296
4297
|
$ImagePreviewImage
|
|
4297
4298
|
};
|
|
4298
4299
|
};
|
|
4299
|
-
const create$
|
|
4300
|
+
const create$z = (uri, top, left) => {
|
|
4300
4301
|
const $ImagePreviewImage = document.createElement('img');
|
|
4301
4302
|
$ImagePreviewImage.className = 'ImagePreviewImage';
|
|
4302
4303
|
$ImagePreviewImage.src = uri;
|
|
@@ -4327,7 +4328,7 @@ const dispose$h = state => {
|
|
|
4327
4328
|
|
|
4328
4329
|
const ImagePreview = {
|
|
4329
4330
|
__proto__: null,
|
|
4330
|
-
create: create$
|
|
4331
|
+
create: create$z,
|
|
4331
4332
|
dispose: dispose$h,
|
|
4332
4333
|
showError,
|
|
4333
4334
|
update
|
|
@@ -4335,7 +4336,7 @@ const ImagePreview = {
|
|
|
4335
4336
|
|
|
4336
4337
|
const name$p = 'ImagePreview';
|
|
4337
4338
|
const Commands$q = {
|
|
4338
|
-
create: create$
|
|
4339
|
+
create: create$z,
|
|
4339
4340
|
dispose: dispose$h,
|
|
4340
4341
|
showError: showError,
|
|
4341
4342
|
update: update
|
|
@@ -4413,7 +4414,7 @@ const InitData_ipc = {
|
|
|
4413
4414
|
|
|
4414
4415
|
const name$n = 'IpcParent';
|
|
4415
4416
|
const Commands$o = {
|
|
4416
|
-
create: create$
|
|
4417
|
+
create: create$M
|
|
4417
4418
|
};
|
|
4418
4419
|
|
|
4419
4420
|
const IpcParent_ipc = {
|
|
@@ -4533,7 +4534,7 @@ const create$Notification = message => {
|
|
|
4533
4534
|
$Notification.textContent = message;
|
|
4534
4535
|
return $Notification;
|
|
4535
4536
|
};
|
|
4536
|
-
const create$
|
|
4537
|
+
const create$y = (type, message) => {
|
|
4537
4538
|
// TODO this pattern might be also useful for activitybar, sidebar etc., creating elements as late as possible, only when actually needed
|
|
4538
4539
|
const $Notification = create$Notification(message);
|
|
4539
4540
|
append$1($Notification);
|
|
@@ -4586,7 +4587,7 @@ const name$h = 'Notification';
|
|
|
4586
4587
|
|
|
4587
4588
|
// prettier-ignore
|
|
4588
4589
|
const Commands$i = {
|
|
4589
|
-
create: create$
|
|
4590
|
+
create: create$y,
|
|
4590
4591
|
createWithOptions: createWithOptions,
|
|
4591
4592
|
dispose: dispose$g
|
|
4592
4593
|
};
|
|
@@ -4610,7 +4611,7 @@ const set$3 = (canvasId, canvas) => {
|
|
|
4610
4611
|
const get$3 = id => {
|
|
4611
4612
|
return get$4(id);
|
|
4612
4613
|
};
|
|
4613
|
-
const create$
|
|
4614
|
+
const create$x = async (canvasId, objectId) => {
|
|
4614
4615
|
const canvas = document.createElement('canvas');
|
|
4615
4616
|
const offscreenCanvas = canvas.transferControlToOffscreen();
|
|
4616
4617
|
set$3(canvasId, canvas);
|
|
@@ -4621,7 +4622,7 @@ const name$g = 'OffscreenCanvas';
|
|
|
4621
4622
|
|
|
4622
4623
|
// prettier-ignore
|
|
4623
4624
|
const Commands$h = {
|
|
4624
|
-
create: create$
|
|
4625
|
+
create: create$x
|
|
4625
4626
|
};
|
|
4626
4627
|
|
|
4627
4628
|
const OffscreenCanvas_ipc = {
|
|
@@ -5784,12 +5785,14 @@ const load$1 = moduleId => {
|
|
|
5784
5785
|
return Promise.resolve().then(function () { return ViewletWebView; });
|
|
5785
5786
|
case EditorCompletionDetails:
|
|
5786
5787
|
return Promise.resolve().then(function () { return ViewletEditorCompletionDetails; });
|
|
5788
|
+
case EditorTextError:
|
|
5789
|
+
return Promise.resolve().then(function () { return ViewletEditorTextError; });
|
|
5787
5790
|
default:
|
|
5788
5791
|
throw new Error(`${moduleId} module not found in renderer process`);
|
|
5789
5792
|
}
|
|
5790
5793
|
};
|
|
5791
5794
|
|
|
5792
|
-
const create$
|
|
5795
|
+
const create$w = (id, uid = id) => {
|
|
5793
5796
|
const module = state$6.modules[id];
|
|
5794
5797
|
if (!module) {
|
|
5795
5798
|
throw new Error(`module not found: ${id}`);
|
|
@@ -5966,7 +5969,7 @@ const sendMultiple = commands => {
|
|
|
5966
5969
|
}
|
|
5967
5970
|
case 'Viewlet.create':
|
|
5968
5971
|
{
|
|
5969
|
-
create$
|
|
5972
|
+
create$w(viewletId, method);
|
|
5970
5973
|
break;
|
|
5971
5974
|
}
|
|
5972
5975
|
case 'Viewlet.createFunctionalRoot':
|
|
@@ -6161,7 +6164,7 @@ const appendToBody = childId => {
|
|
|
6161
6164
|
const getFn = command => {
|
|
6162
6165
|
switch (command) {
|
|
6163
6166
|
case 'Viewlet.create':
|
|
6164
|
-
return create$
|
|
6167
|
+
return create$w;
|
|
6165
6168
|
case 'Viewlet.send':
|
|
6166
6169
|
return invoke;
|
|
6167
6170
|
case 'Viewlet.show':
|
|
@@ -6507,7 +6510,7 @@ const waitForFrameToLoad = $Frame => {
|
|
|
6507
6510
|
};
|
|
6508
6511
|
|
|
6509
6512
|
// TODO could use browser view when running in electron
|
|
6510
|
-
const create$
|
|
6513
|
+
const create$v = async (uid, src, sandbox, csp, credentialless) => {
|
|
6511
6514
|
const $Iframe = document.createElement('iframe');
|
|
6512
6515
|
setIframeCredentialless($Iframe, credentialless);
|
|
6513
6516
|
setIframeCsp($Iframe, csp);
|
|
@@ -6549,7 +6552,7 @@ const dispose$d = uid => {
|
|
|
6549
6552
|
|
|
6550
6553
|
const name = 'WebView';
|
|
6551
6554
|
const Commands$1 = {
|
|
6552
|
-
create: create$
|
|
6555
|
+
create: create$v,
|
|
6553
6556
|
load: load,
|
|
6554
6557
|
setPort: setPort$2,
|
|
6555
6558
|
dispose: dispose$d
|
|
@@ -6657,7 +6660,7 @@ const ViewletAudio = {
|
|
|
6657
6660
|
Events: Events$a
|
|
6658
6661
|
};
|
|
6659
6662
|
|
|
6660
|
-
const create$
|
|
6663
|
+
const create$u = () => {
|
|
6661
6664
|
const $Viewlet = document.createElement('div');
|
|
6662
6665
|
$Viewlet.className = 'Viewlet BrowserViewOverview';
|
|
6663
6666
|
return {
|
|
@@ -6673,11 +6676,11 @@ const setDom$6 = (state, dom) => {
|
|
|
6673
6676
|
|
|
6674
6677
|
const ViewletBrowserViewOverview = {
|
|
6675
6678
|
__proto__: null,
|
|
6676
|
-
create: create$
|
|
6679
|
+
create: create$u,
|
|
6677
6680
|
setDom: setDom$6
|
|
6678
6681
|
};
|
|
6679
6682
|
|
|
6680
|
-
const create$
|
|
6683
|
+
const create$t = () => {
|
|
6681
6684
|
const $Viewlet = document.createElement('div');
|
|
6682
6685
|
$Viewlet.className = 'Viewlet Clock';
|
|
6683
6686
|
return {
|
|
@@ -6694,7 +6697,7 @@ const setTime = (state, time) => {
|
|
|
6694
6697
|
|
|
6695
6698
|
const ViewletClock = {
|
|
6696
6699
|
__proto__: null,
|
|
6697
|
-
create: create$
|
|
6700
|
+
create: create$t,
|
|
6698
6701
|
dispose: dispose$c,
|
|
6699
6702
|
refresh: refresh$3,
|
|
6700
6703
|
setTime
|
|
@@ -6721,7 +6724,7 @@ const ViewletDebugConsoleEvents = {
|
|
|
6721
6724
|
handleInput: handleInput$6
|
|
6722
6725
|
};
|
|
6723
6726
|
|
|
6724
|
-
const create$
|
|
6727
|
+
const create$s = () => {
|
|
6725
6728
|
const $Viewlet = document.createElement('div');
|
|
6726
6729
|
$Viewlet.className = 'Viewlet DebugConsole';
|
|
6727
6730
|
return {
|
|
@@ -6737,7 +6740,7 @@ const setDom$5 = (state, dom) => {
|
|
|
6737
6740
|
|
|
6738
6741
|
const ViewletDebugConsole = {
|
|
6739
6742
|
__proto__: null,
|
|
6740
|
-
create: create$
|
|
6743
|
+
create: create$s,
|
|
6741
6744
|
setDom: setDom$5
|
|
6742
6745
|
};
|
|
6743
6746
|
|
|
@@ -6798,7 +6801,7 @@ const setMaskImage = ($Element, icon) => {
|
|
|
6798
6801
|
}
|
|
6799
6802
|
};
|
|
6800
6803
|
|
|
6801
|
-
const create$
|
|
6804
|
+
const create$r = icon => {
|
|
6802
6805
|
const $Icon = document.createElement('div');
|
|
6803
6806
|
$Icon.className = 'MaskIcon';
|
|
6804
6807
|
setMaskImage($Icon, icon);
|
|
@@ -6808,7 +6811,7 @@ const create$q = icon => {
|
|
|
6808
6811
|
|
|
6809
6812
|
const create$Button = (label, icon) => {
|
|
6810
6813
|
// TODO icon div might not be needed (unnecessary html element)
|
|
6811
|
-
const $Icon = create$
|
|
6814
|
+
const $Icon = create$r(icon);
|
|
6812
6815
|
const $Button = document.createElement('button');
|
|
6813
6816
|
$Button.className = 'IconButton';
|
|
6814
6817
|
$Button.title = label;
|
|
@@ -6829,7 +6832,7 @@ const handleClick$6 = event => {
|
|
|
6829
6832
|
handleClick$7(index);
|
|
6830
6833
|
};
|
|
6831
6834
|
|
|
6832
|
-
const create$
|
|
6835
|
+
const create$q = () => {
|
|
6833
6836
|
const $DialogTitle = document.createElement('h2');
|
|
6834
6837
|
$DialogTitle.id = 'DialogTitle';
|
|
6835
6838
|
const $DialogCloseButton = create$Button('Close', 'Close');
|
|
@@ -6910,7 +6913,7 @@ const setErrorStack = (state, errorStack) => {
|
|
|
6910
6913
|
|
|
6911
6914
|
const ViewletDialog = {
|
|
6912
6915
|
__proto__: null,
|
|
6913
|
-
create: create$
|
|
6916
|
+
create: create$q,
|
|
6914
6917
|
postAppend,
|
|
6915
6918
|
setButtons,
|
|
6916
6919
|
setCodeFrame,
|
|
@@ -6957,7 +6960,7 @@ const ViewletDiffEditor = {
|
|
|
6957
6960
|
|
|
6958
6961
|
// TODO aria alert
|
|
6959
6962
|
|
|
6960
|
-
const create$
|
|
6963
|
+
const create$p = () => {
|
|
6961
6964
|
const $Viewlet = document.createElement('div');
|
|
6962
6965
|
$Viewlet.className = 'Viewlet EditorError';
|
|
6963
6966
|
return {
|
|
@@ -6979,7 +6982,7 @@ const setBounds$1 = (state, x, y, width, height) => {
|
|
|
6979
6982
|
|
|
6980
6983
|
const ViewletEditorError = {
|
|
6981
6984
|
__proto__: null,
|
|
6982
|
-
create: create$
|
|
6985
|
+
create: create$p,
|
|
6983
6986
|
setBounds: setBounds$1,
|
|
6984
6987
|
setDom: setDom$4
|
|
6985
6988
|
};
|
|
@@ -7083,7 +7086,7 @@ const handleFocus$8 = event => {
|
|
|
7083
7086
|
handleFocus$c(uid);
|
|
7084
7087
|
};
|
|
7085
7088
|
|
|
7086
|
-
const create$
|
|
7089
|
+
const create$o = () => {
|
|
7087
7090
|
const $Viewlet = document.createElement('div');
|
|
7088
7091
|
$Viewlet.className = 'Viewlet EditorImage';
|
|
7089
7092
|
return {
|
|
@@ -7126,13 +7129,13 @@ const setDom$3 = (state, dom) => {
|
|
|
7126
7129
|
const ViewletEditorImage = {
|
|
7127
7130
|
__proto__: null,
|
|
7128
7131
|
attachEvents: attachEvents$8,
|
|
7129
|
-
create: create$
|
|
7132
|
+
create: create$o,
|
|
7130
7133
|
setDom: setDom$3,
|
|
7131
7134
|
setDragging,
|
|
7132
7135
|
setTransform
|
|
7133
7136
|
};
|
|
7134
7137
|
|
|
7135
|
-
const create$
|
|
7138
|
+
const create$n = () => {
|
|
7136
7139
|
const $Viewlet = document.createElement('div');
|
|
7137
7140
|
$Viewlet.className = 'Viewlet EditorText';
|
|
7138
7141
|
$Viewlet.textContent = 'loading...';
|
|
@@ -7149,7 +7152,7 @@ const refresh$2 = (state, context) => {
|
|
|
7149
7152
|
|
|
7150
7153
|
const ViewletEditorPlainText = {
|
|
7151
7154
|
__proto__: null,
|
|
7152
|
-
create: create$
|
|
7155
|
+
create: create$n,
|
|
7153
7156
|
dispose: dispose$b,
|
|
7154
7157
|
refresh: refresh$2
|
|
7155
7158
|
};
|
|
@@ -7408,7 +7411,7 @@ const handlePaste = event => {
|
|
|
7408
7411
|
const text = getText(clipboardData);
|
|
7409
7412
|
return ['paste', text];
|
|
7410
7413
|
};
|
|
7411
|
-
const handleScrollBarVerticalPointerDown = create$
|
|
7414
|
+
const handleScrollBarVerticalPointerDown = create$L(event => {
|
|
7412
7415
|
const {
|
|
7413
7416
|
clientY
|
|
7414
7417
|
} = event;
|
|
@@ -7531,7 +7534,7 @@ const setLineInfos = (state, dom) => {
|
|
|
7531
7534
|
// 1. create -> only create dom elements
|
|
7532
7535
|
// 2. render -> fill elements with attributes and data
|
|
7533
7536
|
// that way all dom nodes can be recycled
|
|
7534
|
-
const create$
|
|
7537
|
+
const create$m = () => {
|
|
7535
7538
|
const $EditorInput = document.createElement('textarea');
|
|
7536
7539
|
$EditorInput.className = 'EditorInput';
|
|
7537
7540
|
$EditorInput.ariaAutoComplete = List;
|
|
@@ -7698,7 +7701,7 @@ const setDecorationsDom$1 = (state, decorations) => {
|
|
|
7698
7701
|
setDecorationsDom$2(state, decorations);
|
|
7699
7702
|
};
|
|
7700
7703
|
|
|
7701
|
-
const create$
|
|
7704
|
+
const create$l = create$m;
|
|
7702
7705
|
const setText$1 = setText$2;
|
|
7703
7706
|
const setSelections = setSelections$1;
|
|
7704
7707
|
const setIncrementalEdits = setIncrementalEdits$1;
|
|
@@ -7740,7 +7743,7 @@ const setDecorationsDom = setDecorationsDom$1;
|
|
|
7740
7743
|
|
|
7741
7744
|
const ViewletEditorText = {
|
|
7742
7745
|
__proto__: null,
|
|
7743
|
-
create: create$
|
|
7746
|
+
create: create$l,
|
|
7744
7747
|
focus: focus$e,
|
|
7745
7748
|
handleError: handleError$4,
|
|
7746
7749
|
hideOverlayMessage,
|
|
@@ -7756,14 +7759,14 @@ const ViewletEditorText = {
|
|
|
7756
7759
|
showOverlayMessage
|
|
7757
7760
|
};
|
|
7758
7761
|
|
|
7759
|
-
const create$
|
|
7762
|
+
const create$k = () => {
|
|
7760
7763
|
const $Viewlet = document.createElement('div');
|
|
7761
7764
|
$Viewlet.className = 'Viewlet EditorWidgetError EditorOverlayMessage';
|
|
7762
7765
|
return {
|
|
7763
7766
|
$Viewlet
|
|
7764
7767
|
};
|
|
7765
7768
|
};
|
|
7766
|
-
const setMessage$
|
|
7769
|
+
const setMessage$3 = (state, message) => {
|
|
7767
7770
|
const {
|
|
7768
7771
|
$Viewlet
|
|
7769
7772
|
} = state;
|
|
@@ -7779,12 +7782,12 @@ const setBounds = (state, x, y, width, height) => {
|
|
|
7779
7782
|
|
|
7780
7783
|
const ViewletEditorWidgetError = {
|
|
7781
7784
|
__proto__: null,
|
|
7782
|
-
create: create$
|
|
7785
|
+
create: create$k,
|
|
7783
7786
|
setBounds,
|
|
7784
|
-
setMessage: setMessage$
|
|
7787
|
+
setMessage: setMessage$3
|
|
7785
7788
|
};
|
|
7786
7789
|
|
|
7787
|
-
const create$
|
|
7790
|
+
const create$j = () => {
|
|
7788
7791
|
const $Viewlet = document.createElement('div');
|
|
7789
7792
|
$Viewlet.dataset.viewlet = 'Empty';
|
|
7790
7793
|
$Viewlet.className = 'Viewlet';
|
|
@@ -7798,20 +7801,20 @@ const dispose$a = state => {};
|
|
|
7798
7801
|
|
|
7799
7802
|
const ViewletEmpty = {
|
|
7800
7803
|
__proto__: null,
|
|
7801
|
-
create: create$
|
|
7804
|
+
create: create$j,
|
|
7802
7805
|
dispose: dispose$a,
|
|
7803
7806
|
focus: focus$d,
|
|
7804
7807
|
refresh: refresh$1
|
|
7805
7808
|
};
|
|
7806
7809
|
|
|
7807
|
-
const create$
|
|
7810
|
+
const create$i = () => {
|
|
7808
7811
|
const $Viewlet = document.createElement('div');
|
|
7809
7812
|
$Viewlet.className = 'Viewlet Error';
|
|
7810
7813
|
return {
|
|
7811
7814
|
$Viewlet
|
|
7812
7815
|
};
|
|
7813
7816
|
};
|
|
7814
|
-
const setMessage$
|
|
7817
|
+
const setMessage$2 = (state, message) => {
|
|
7815
7818
|
const {
|
|
7816
7819
|
$Viewlet
|
|
7817
7820
|
} = state;
|
|
@@ -7820,8 +7823,8 @@ const setMessage$1 = (state, message) => {
|
|
|
7820
7823
|
|
|
7821
7824
|
const ViewletError = {
|
|
7822
7825
|
__proto__: null,
|
|
7823
|
-
create: create$
|
|
7824
|
-
setMessage: setMessage$
|
|
7826
|
+
create: create$i,
|
|
7827
|
+
setMessage: setMessage$2
|
|
7825
7828
|
};
|
|
7826
7829
|
|
|
7827
7830
|
const handleContextMenu$8 = event => {
|
|
@@ -8037,7 +8040,7 @@ const ViewletExplorerEvents = {
|
|
|
8037
8040
|
handleWheel: handleWheel$3
|
|
8038
8041
|
};
|
|
8039
8042
|
|
|
8040
|
-
const create$
|
|
8043
|
+
const create$h = () => {
|
|
8041
8044
|
const $Viewlet = document.createElement('div');
|
|
8042
8045
|
$Viewlet.className = 'Viewlet Explorer';
|
|
8043
8046
|
$Viewlet.tabIndex = 0;
|
|
@@ -8095,7 +8098,7 @@ const setDom$2 = (state, dom) => {
|
|
|
8095
8098
|
const ViewletExplorer = {
|
|
8096
8099
|
__proto__: null,
|
|
8097
8100
|
Events: Events$9,
|
|
8098
|
-
create: create$
|
|
8101
|
+
create: create$h,
|
|
8099
8102
|
dispose: dispose$9,
|
|
8100
8103
|
focusInput,
|
|
8101
8104
|
handleError: handleError$3,
|
|
@@ -8243,7 +8246,7 @@ const handleTouchEnd = event => {
|
|
|
8243
8246
|
|
|
8244
8247
|
// based on https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/extensions/browser/extensionsList.ts (License MIT)
|
|
8245
8248
|
|
|
8246
|
-
const create$
|
|
8249
|
+
const create$g = () => {
|
|
8247
8250
|
const $ExtensionHeader = document.createElement('div');
|
|
8248
8251
|
$ExtensionHeader.className = 'ExtensionHeader';
|
|
8249
8252
|
|
|
@@ -8313,7 +8316,7 @@ const setExtensionState = () => {
|
|
|
8313
8316
|
// state.extensions[index].state = extensionState
|
|
8314
8317
|
// render(state)
|
|
8315
8318
|
};
|
|
8316
|
-
const setMessage = (state, message) => {
|
|
8319
|
+
const setMessage$1 = (state, message) => {
|
|
8317
8320
|
object(state);
|
|
8318
8321
|
string(message);
|
|
8319
8322
|
const {
|
|
@@ -8388,7 +8391,7 @@ const ViewletExtensions = {
|
|
|
8388
8391
|
__proto__: null,
|
|
8389
8392
|
attachEvents: attachEvents$7,
|
|
8390
8393
|
closeSuggest,
|
|
8391
|
-
create: create$
|
|
8394
|
+
create: create$g,
|
|
8392
8395
|
dispose: dispose$8,
|
|
8393
8396
|
focus: focus$c,
|
|
8394
8397
|
handleError: handleError$2,
|
|
@@ -8397,7 +8400,7 @@ const ViewletExtensions = {
|
|
|
8397
8400
|
setExtensionState,
|
|
8398
8401
|
setExtensionsDom,
|
|
8399
8402
|
setHeaderDom,
|
|
8400
|
-
setMessage,
|
|
8403
|
+
setMessage: setMessage$1,
|
|
8401
8404
|
setNegativeMargin,
|
|
8402
8405
|
setScrollBar: setScrollBar$2,
|
|
8403
8406
|
setSearchValue,
|
|
@@ -9069,7 +9072,7 @@ const handleBlur$3 = () => {
|
|
|
9069
9072
|
const handleKeyDown$1 = handleKeyDown$2;
|
|
9070
9073
|
const handleKeyUp = handleKeyUp$1;
|
|
9071
9074
|
|
|
9072
|
-
const create$
|
|
9075
|
+
const create$f = () => {
|
|
9073
9076
|
// TODO use aria role splitter once supported https://github.com/w3c/aria/issues/1348
|
|
9074
9077
|
const $SashSideBar = document.createElement('div');
|
|
9075
9078
|
$SashSideBar.className = 'Viewlet Sash SashVertical';
|
|
@@ -9125,7 +9128,7 @@ const setSashes = (state, sashSideBar, sashPanel) => {
|
|
|
9125
9128
|
const ViewletLayout = {
|
|
9126
9129
|
__proto__: null,
|
|
9127
9130
|
attachEvents: attachEvents$6,
|
|
9128
|
-
create: create$
|
|
9131
|
+
create: create$f,
|
|
9129
9132
|
setSashes
|
|
9130
9133
|
};
|
|
9131
9134
|
|
|
@@ -9143,7 +9146,7 @@ const handleContextMenu$7 = event => {
|
|
|
9143
9146
|
};
|
|
9144
9147
|
|
|
9145
9148
|
// TODO Main should not be bound to Editor -> Lazy load Editor
|
|
9146
|
-
const create$
|
|
9149
|
+
const create$e = () => {
|
|
9147
9150
|
const $Viewlet = document.createElement('div');
|
|
9148
9151
|
$Viewlet.id = 'Main';
|
|
9149
9152
|
$Viewlet.className = 'Viewlet Main';
|
|
@@ -9243,7 +9246,7 @@ const ViewletMain = {
|
|
|
9243
9246
|
attachEvents: attachEvents$5,
|
|
9244
9247
|
closeAllViewlets,
|
|
9245
9248
|
closeViewletAndTab,
|
|
9246
|
-
create: create$
|
|
9249
|
+
create: create$e,
|
|
9247
9250
|
dispose: dispose$7,
|
|
9248
9251
|
focus: focus$a,
|
|
9249
9252
|
highlightDragOver,
|
|
@@ -9292,7 +9295,7 @@ const handleTabsContextMenu = event => {
|
|
|
9292
9295
|
handleTabContextMenu(uid, clientX, clientY);
|
|
9293
9296
|
};
|
|
9294
9297
|
|
|
9295
|
-
const create$
|
|
9298
|
+
const create$d = () => {
|
|
9296
9299
|
const $MainTabs = document.createElement('div');
|
|
9297
9300
|
$MainTabs.className = 'Viewlet MainTabs';
|
|
9298
9301
|
$MainTabs.role = TabList;
|
|
@@ -9329,12 +9332,12 @@ const setScrollLeft = (state, scrollLeft) => {
|
|
|
9329
9332
|
const ViewletMainTabs = {
|
|
9330
9333
|
__proto__: null,
|
|
9331
9334
|
attachEvents: attachEvents$4,
|
|
9332
|
-
create: create$
|
|
9335
|
+
create: create$d,
|
|
9333
9336
|
setScrollLeft,
|
|
9334
9337
|
setTabsDom: setTabsDom$2
|
|
9335
9338
|
};
|
|
9336
9339
|
|
|
9337
|
-
const create$
|
|
9340
|
+
const create$c = () => {
|
|
9338
9341
|
const $ViewletOutputContent = document.createElement('div');
|
|
9339
9342
|
$ViewletOutputContent.className = 'OutputContent';
|
|
9340
9343
|
$ViewletOutputContent.role = Log;
|
|
@@ -9386,7 +9389,7 @@ const dispose$6 = state => {};
|
|
|
9386
9389
|
const ViewletOutput = {
|
|
9387
9390
|
__proto__: null,
|
|
9388
9391
|
clear,
|
|
9389
|
-
create: create$
|
|
9392
|
+
create: create$c,
|
|
9390
9393
|
dispose: dispose$6,
|
|
9391
9394
|
disposeFindWidget,
|
|
9392
9395
|
focus: focus$9,
|
|
@@ -9439,7 +9442,7 @@ const UiStrings = {
|
|
|
9439
9442
|
Close: 'Close',
|
|
9440
9443
|
Maximize: 'Maximize'
|
|
9441
9444
|
};
|
|
9442
|
-
const create$
|
|
9445
|
+
const create$b = () => {
|
|
9443
9446
|
const $PanelTabs = document.createElement('div');
|
|
9444
9447
|
$PanelTabs.className = 'PanelTabs';
|
|
9445
9448
|
$PanelTabs.role = TabList;
|
|
@@ -9552,7 +9555,7 @@ const setActionsDom$1 = (state, actions, childUid) => {
|
|
|
9552
9555
|
const ViewletPanel = {
|
|
9553
9556
|
__proto__: null,
|
|
9554
9557
|
attachEvents: attachEvents$3,
|
|
9555
|
-
create: create$
|
|
9558
|
+
create: create$b,
|
|
9556
9559
|
dispose: dispose$5,
|
|
9557
9560
|
focus: focus$8,
|
|
9558
9561
|
setActionsDom: setActionsDom$1,
|
|
@@ -9767,8 +9770,8 @@ const focus$6 = state => {
|
|
|
9767
9770
|
// - for windows narrator, ariaLabel works well
|
|
9768
9771
|
// - for nvda ariaRoleDescription works better
|
|
9769
9772
|
|
|
9770
|
-
const create$
|
|
9771
|
-
const $QuickPickInput = create$
|
|
9773
|
+
const create$a = () => {
|
|
9774
|
+
const $QuickPickInput = create$B();
|
|
9772
9775
|
$QuickPickInput.setAttribute(AriaControls, Ids.QuickPickItems); // TODO use idl once supported
|
|
9773
9776
|
$QuickPickInput.role = ComboBox;
|
|
9774
9777
|
$QuickPickInput.ariaLabel = 'Type the name of a command to run.';
|
|
@@ -9878,7 +9881,7 @@ const noop = state => {};
|
|
|
9878
9881
|
const ViewletQuickPick = {
|
|
9879
9882
|
__proto__: null,
|
|
9880
9883
|
attachEvents: attachEvents$2,
|
|
9881
|
-
create: create$
|
|
9884
|
+
create: create$a,
|
|
9882
9885
|
dispose: dispose$4,
|
|
9883
9886
|
focus: focus$6,
|
|
9884
9887
|
hideStatus,
|
|
@@ -10049,7 +10052,7 @@ const handleLoadedMetaData = event => {
|
|
|
10049
10052
|
target.play();
|
|
10050
10053
|
};
|
|
10051
10054
|
|
|
10052
|
-
const create$
|
|
10055
|
+
const create$9 = () => {
|
|
10053
10056
|
const $Viewlet = document.createElement('div');
|
|
10054
10057
|
$Viewlet.className = 'Viewlet ScreenCapture';
|
|
10055
10058
|
return {
|
|
@@ -10069,7 +10072,7 @@ const setScreenCapture = (state, id) => {
|
|
|
10069
10072
|
|
|
10070
10073
|
const ViewletScreenCapture = {
|
|
10071
10074
|
__proto__: null,
|
|
10072
|
-
create: create$
|
|
10075
|
+
create: create$9,
|
|
10073
10076
|
setScreenCapture
|
|
10074
10077
|
};
|
|
10075
10078
|
|
|
@@ -10259,7 +10262,7 @@ const handleHeaderClick = event => {
|
|
|
10259
10262
|
}
|
|
10260
10263
|
};
|
|
10261
10264
|
|
|
10262
|
-
const create$
|
|
10265
|
+
const create$8 = () => {
|
|
10263
10266
|
const $SideBarTitleAreaTitle = document.createElement('h2');
|
|
10264
10267
|
$SideBarTitleAreaTitle.className = 'SideBarTitleAreaTitle';
|
|
10265
10268
|
const $SideBarTitleArea = document.createElement('div');
|
|
@@ -10323,7 +10326,7 @@ const focus$4 = async () => {
|
|
|
10323
10326
|
const ViewletSideBar = {
|
|
10324
10327
|
__proto__: null,
|
|
10325
10328
|
attachEvents: attachEvents$1,
|
|
10326
|
-
create: create$
|
|
10329
|
+
create: create$8,
|
|
10327
10330
|
dispose: dispose$2,
|
|
10328
10331
|
focus: focus$4,
|
|
10329
10332
|
setActionsDom,
|
|
@@ -10524,7 +10527,7 @@ const ViewletStatusBarEvents = {
|
|
|
10524
10527
|
handleClick: handleClick$2
|
|
10525
10528
|
};
|
|
10526
10529
|
|
|
10527
|
-
const create$
|
|
10530
|
+
const create$7 = () => {
|
|
10528
10531
|
const $Viewlet = document.createElement('div');
|
|
10529
10532
|
$Viewlet.id = 'StatusBar';
|
|
10530
10533
|
$Viewlet.className = 'Viewlet StatusBar';
|
|
@@ -10553,7 +10556,7 @@ const focus$2 = state => {
|
|
|
10553
10556
|
|
|
10554
10557
|
const ViewletStatusBar = {
|
|
10555
10558
|
__proto__: null,
|
|
10556
|
-
create: create$
|
|
10559
|
+
create: create$7,
|
|
10557
10560
|
focus: focus$2,
|
|
10558
10561
|
setDom: setDom$1
|
|
10559
10562
|
};
|
|
@@ -10656,7 +10659,7 @@ const createOffscreenTerminalDom = (root, {
|
|
|
10656
10659
|
};
|
|
10657
10660
|
|
|
10658
10661
|
// @ts-ignore
|
|
10659
|
-
const create$
|
|
10662
|
+
const create$6 = ({
|
|
10660
10663
|
$Element,
|
|
10661
10664
|
...options
|
|
10662
10665
|
}) => {
|
|
@@ -10677,7 +10680,7 @@ const handleKeyDown = (event, ...args) => {
|
|
|
10677
10680
|
handleKeyDown$5(uid, ...args);
|
|
10678
10681
|
};
|
|
10679
10682
|
|
|
10680
|
-
const create$
|
|
10683
|
+
const create$5 = () => {
|
|
10681
10684
|
const $Viewlet = document.createElement('div');
|
|
10682
10685
|
$Viewlet.className = 'Viewlet Terminal';
|
|
10683
10686
|
return {
|
|
@@ -10691,7 +10694,7 @@ const setTerminal = (state, canvasCursorId, canvasTextId) => {
|
|
|
10691
10694
|
const {
|
|
10692
10695
|
$Viewlet
|
|
10693
10696
|
} = state;
|
|
10694
|
-
const terminal = create$
|
|
10697
|
+
const terminal = create$6({
|
|
10695
10698
|
$Element: $Viewlet,
|
|
10696
10699
|
handleKeyDown: (...args) => {
|
|
10697
10700
|
handleKeyDown({
|
|
@@ -10763,7 +10766,7 @@ const Commands = {
|
|
|
10763
10766
|
const ViewletTerminal = {
|
|
10764
10767
|
__proto__: null,
|
|
10765
10768
|
Commands,
|
|
10766
|
-
create: create$
|
|
10769
|
+
create: create$5,
|
|
10767
10770
|
dispose: dispose$1,
|
|
10768
10771
|
focus: focus$1,
|
|
10769
10772
|
focusTextArea,
|
|
@@ -10784,7 +10787,7 @@ const handleClickTab = event => {
|
|
|
10784
10787
|
handleClickTab$2(uid, index);
|
|
10785
10788
|
};
|
|
10786
10789
|
|
|
10787
|
-
const create$
|
|
10790
|
+
const create$4 = () => {
|
|
10788
10791
|
const $Viewlet = document.createElement('div');
|
|
10789
10792
|
$Viewlet.className = 'Viewlet Terminals';
|
|
10790
10793
|
return {
|
|
@@ -10811,7 +10814,7 @@ const setTabsDom = (state, dom) => {
|
|
|
10811
10814
|
|
|
10812
10815
|
const ViewletTerminals = {
|
|
10813
10816
|
__proto__: null,
|
|
10814
|
-
create: create$
|
|
10817
|
+
create: create$4,
|
|
10815
10818
|
setTabsDom
|
|
10816
10819
|
};
|
|
10817
10820
|
|
|
@@ -10825,7 +10828,7 @@ const handleContextMenu$4 = event => {
|
|
|
10825
10828
|
return ['handleContextMenu', button, clientX, clientY];
|
|
10826
10829
|
};
|
|
10827
10830
|
|
|
10828
|
-
const create$
|
|
10831
|
+
const create$3 = () => {
|
|
10829
10832
|
// TODO set aria label for title bar menu
|
|
10830
10833
|
// TODO add tests for aria properties
|
|
10831
10834
|
const $Viewlet = document.createElement('div');
|
|
@@ -10861,7 +10864,7 @@ const setFocused$1 = (state, isFocused) => {
|
|
|
10861
10864
|
const ViewletTitleBar = {
|
|
10862
10865
|
__proto__: null,
|
|
10863
10866
|
attachEvents,
|
|
10864
|
-
create: create$
|
|
10867
|
+
create: create$3,
|
|
10865
10868
|
setFocused: setFocused$1
|
|
10866
10869
|
};
|
|
10867
10870
|
|
|
@@ -11269,7 +11272,7 @@ const ViewletVideo = {
|
|
|
11269
11272
|
Events
|
|
11270
11273
|
};
|
|
11271
11274
|
|
|
11272
|
-
const create$
|
|
11275
|
+
const create$2 = () => {
|
|
11273
11276
|
const $Viewlet = document.createElement('div');
|
|
11274
11277
|
$Viewlet.className = 'Viewlet TitleBarTitle';
|
|
11275
11278
|
return {
|
|
@@ -11285,7 +11288,7 @@ const setDom = (state, dom) => {
|
|
|
11285
11288
|
|
|
11286
11289
|
const ViewletTitleBarTitle = {
|
|
11287
11290
|
__proto__: null,
|
|
11288
|
-
create: create$
|
|
11291
|
+
create: create$2,
|
|
11289
11292
|
setDom
|
|
11290
11293
|
};
|
|
11291
11294
|
|
|
@@ -11337,7 +11340,7 @@ const ViewletAbout = {
|
|
|
11337
11340
|
setFocused
|
|
11338
11341
|
};
|
|
11339
11342
|
|
|
11340
|
-
const create = () => {
|
|
11343
|
+
const create$1 = () => {
|
|
11341
11344
|
const $Viewlet = document.createElement('div');
|
|
11342
11345
|
$Viewlet.className = 'Viewlet EmptyEditor';
|
|
11343
11346
|
return {
|
|
@@ -11347,7 +11350,7 @@ const create = () => {
|
|
|
11347
11350
|
|
|
11348
11351
|
const ViewletEmptyEditor = {
|
|
11349
11352
|
__proto__: null,
|
|
11350
|
-
create
|
|
11353
|
+
create: create$1
|
|
11351
11354
|
};
|
|
11352
11355
|
|
|
11353
11356
|
const handleScrollBarPointerDown = event => {
|
|
@@ -11472,7 +11475,7 @@ const handleContextMenu$1 = event => {
|
|
|
11472
11475
|
} = event;
|
|
11473
11476
|
return ['handleContextMenu', button, clientX, clientY];
|
|
11474
11477
|
};
|
|
11475
|
-
const handleSashCornerPointerDown = create$
|
|
11478
|
+
const handleSashCornerPointerDown = create$L(event => {
|
|
11476
11479
|
const {
|
|
11477
11480
|
clientX,
|
|
11478
11481
|
clientY
|
|
@@ -11635,3 +11638,23 @@ const ViewletWebView = {
|
|
|
11635
11638
|
setPort,
|
|
11636
11639
|
setPosition
|
|
11637
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
|
+
};
|