@lvce-editor/renderer-process 30.68.5 → 30.68.7
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 +14 -1
- package/package.json +1 -1
|
@@ -2375,6 +2375,9 @@ const getEventListenerArg = (param, event) => {
|
|
|
2375
2375
|
if (param === 'event.clipboardData.files2') {
|
|
2376
2376
|
return handleClipboardDataFiles2(event);
|
|
2377
2377
|
}
|
|
2378
|
+
if (param === 'event.clipboardData.text') {
|
|
2379
|
+
return event.clipboardData?.getData('text/plain') || '';
|
|
2380
|
+
}
|
|
2378
2381
|
switch (param) {
|
|
2379
2382
|
case 'event.altKey':
|
|
2380
2383
|
return event.altKey;
|
|
@@ -3354,7 +3357,7 @@ const setStyle = ($Element, styleString) => {
|
|
|
3354
3357
|
|
|
3355
3358
|
const removedAttributeProps = new Map([['ariaActivedescendant', 'aria-activedescendant'], ['ariaControls', 'aria-controls'], ['ariaDescribedBy', 'aria-describedby'], ['ariaInvalid', 'aria-invalid'], ['ariaLabelledBy', 'aria-labelledby'], ['ariaOwns', 'aria-owns'], ['className', 'class'], ['htmlFor', 'for'], ['inputType', 'type']]);
|
|
3356
3359
|
const pixelStyleProps = new Set(['height', 'left', 'marginTop', 'paddingLeft', 'paddingRight', 'top', 'width']);
|
|
3357
|
-
const eventProps = new Set(['onBlur', 'onChange', 'onClick', 'onContextMenu', 'onBeforeInput', 'onDblClick', 'onDragEnd', 'onDragEnter', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop', 'onError', 'onFocus', 'onFocusIn', 'onFocusOut', 'onInput', 'onKeydown', 'onKeyDown', 'onKeyUp', 'onLoad', 'onLoadedData', 'onMouseDown', 'onMouseMove', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onPointerDown', 'onPointerMove', 'onPointerOut', 'onPointerOver', 'onScroll', 'onSelectionChange', 'onSubmit', 'onTimeUpdate', 'onWheel']);
|
|
3360
|
+
const eventProps = new Set(['onBlur', 'onChange', 'onClick', 'onContextMenu', 'onBeforeInput', 'onDblClick', 'onDragEnd', 'onDragEnter', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop', 'onError', 'onFocus', 'onFocusIn', 'onFocusOut', 'onInput', 'onKeydown', 'onKeyDown', 'onKeyUp', 'onLoad', 'onLoadedData', 'onMouseDown', 'onMouseMove', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onPaste', 'onPointerDown', 'onPointerMove', 'onPointerOut', 'onPointerOver', 'onScroll', 'onSelectionChange', 'onSubmit', 'onTimeUpdate', 'onWheel']);
|
|
3358
3361
|
const setOptionalAttribute = ($Element, attributeName, value) => {
|
|
3359
3362
|
if (value) {
|
|
3360
3363
|
$Element.setAttribute(attributeName, value);
|
|
@@ -10465,6 +10468,15 @@ const setPathName = pathName => {
|
|
|
10465
10468
|
}
|
|
10466
10469
|
history.pushState(null, '', pathName);
|
|
10467
10470
|
};
|
|
10471
|
+
const setHash = hash => {
|
|
10472
|
+
const currentHref = getHref();
|
|
10473
|
+
const url = new URL(currentHref);
|
|
10474
|
+
url.hash = hash.startsWith('#') ? hash.slice(1) : hash;
|
|
10475
|
+
if (url.href === currentHref) {
|
|
10476
|
+
return;
|
|
10477
|
+
}
|
|
10478
|
+
history.replaceState(null, '', url.href);
|
|
10479
|
+
};
|
|
10468
10480
|
const setWorkspaceUri = workspaceUri => {
|
|
10469
10481
|
const currentHref = getHref();
|
|
10470
10482
|
const url = new URL(currentHref);
|
|
@@ -11992,6 +12004,7 @@ const commandMap = {
|
|
|
11992
12004
|
'Location.getHref': getHref,
|
|
11993
12005
|
'Location.getPathName': getPathName,
|
|
11994
12006
|
'Location.hydrate': hydrate,
|
|
12007
|
+
'Location.setHash': setHash,
|
|
11995
12008
|
'Location.setPathName': setPathName,
|
|
11996
12009
|
'Location.setWorkspaceUri': setWorkspaceUri,
|
|
11997
12010
|
'Main.openUri': openUri,
|