@lvce-editor/renderer-process 30.81.0 → 30.81.2

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.
@@ -1017,6 +1017,12 @@ const handleJsonRpcMessage = async (...args) => {
1017
1017
  requiresSocket,
1018
1018
  resolve
1019
1019
  } = options;
1020
+ if (message === 'ready') {
1021
+ return;
1022
+ }
1023
+ if (!message || typeof message !== 'object') {
1024
+ throw new JsonRpcError('unexpected message');
1025
+ }
1020
1026
  if ('id' in message) {
1021
1027
  if ('method' in message) {
1022
1028
  const response = await getResponse(message, ipc, execute, preparePrettyError, logError, requiresSocket);
@@ -3798,7 +3804,7 @@ const setStyle = ($Element, styleString) => {
3798
3804
 
3799
3805
  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']]);
3800
3806
  const pixelStyleProps = new Set(['height', 'left', 'marginTop', 'paddingLeft', 'paddingRight', 'top', 'width']);
3801
- 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']);
3807
+ const eventProps = new Set(['onBlur', 'onChange', 'onClick', 'onCompositionEnd', 'onCompositionStart', 'onCompositionUpdate', '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']);
3802
3808
  const setOptionalAttribute = ($Element, attributeName, value) => {
3803
3809
  if (value) {
3804
3810
  $Element.setAttribute(attributeName, value);
@@ -5346,18 +5352,20 @@ const remove$2 = id => {
5346
5352
  const addCssStyleSheet = (id, text) => {
5347
5353
  const existing = get$5(id);
5348
5354
  if (existing) {
5349
- existing.replaceSync(text);
5350
- setText$1(id, text);
5355
+ if (typeof text !== 'string' || getText(id) !== text) {
5356
+ existing.replaceSync(text);
5357
+ setText$1(id, text);
5358
+ }
5351
5359
  if (id === 'ContributedColorTheme') {
5352
5360
  window.dispatchEvent(new Event('color-theme-changed'));
5353
5361
  }
5354
5362
  return;
5355
5363
  }
5356
5364
  const sheet = new CSSStyleSheet({});
5357
- set$6(id, sheet);
5358
- setText$1(id, text);
5359
5365
  sheet.replaceSync(text);
5360
5366
  document.adoptedStyleSheets.push(sheet);
5367
+ set$6(id, sheet);
5368
+ setText$1(id, text);
5361
5369
  if (id === 'ContributedColorTheme') {
5362
5370
  window.dispatchEvent(new Event('color-theme-changed'));
5363
5371
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.81.0",
3
+ "version": "30.81.2",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"