@lvce-editor/renderer-process 10.20.0 → 10.22.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.
@@ -2094,7 +2094,7 @@ forwardViewletCommand('focusPrevious');
2094
2094
  const handleAudioError$1 = forwardViewletCommand('handleAudioError');
2095
2095
  const handleBeforeInput$2 = forwardViewletCommand('handleBeforeInput');
2096
2096
  forwardViewletCommand('handleBeforeInputFromContentEditable');
2097
- const handleBlur$a = forwardViewletCommand('handleBlur');
2097
+ const handleBlur$b = forwardViewletCommand('handleBlur');
2098
2098
  const handleButtonClick = forwardViewletCommand('handleButtonClick');
2099
2099
  const handleClick$8 = forwardViewletCommand('handleClick');
2100
2100
  const handleClickAction$2 = forwardViewletCommand('handleClickAction');
@@ -2122,7 +2122,7 @@ const handleFocus$c = forwardViewletCommand('handleFocus');
2122
2122
  const handleFocusIn$4 = forwardViewletCommand('handleFocusIn');
2123
2123
  const handleIconError$1 = forwardViewletCommand('handleIconError');
2124
2124
  const handleImageError$1 = forwardViewletCommand('handleImageError');
2125
- const handleInput$8 = forwardViewletCommand('handleInput');
2125
+ const handleInput$9 = forwardViewletCommand('handleInput');
2126
2126
  const handleKeyDown$5 = forwardViewletCommand('handleKeyDown');
2127
2127
  forwardViewletCommand('handleListBlur');
2128
2128
  forwardViewletCommand('handleListFocus');
@@ -2492,10 +2492,26 @@ const handleFocusIn$3 = event => {
2492
2492
  const uid = fromEvent(event);
2493
2493
  handleFocusIn$4(uid);
2494
2494
  };
2495
+ const handleBlur$a = event => {
2496
+ const uid = fromEvent(event);
2497
+ executeViewletCommand(uid, 'EditorRename.handleBlur');
2498
+ };
2499
+ const handleInput$8 = event => {
2500
+ const {
2501
+ target
2502
+ } = event;
2503
+ const {
2504
+ value
2505
+ } = target;
2506
+ const uid = fromEvent(event);
2507
+ executeViewletCommand(uid, 'EditorRename.handleInput', value);
2508
+ };
2495
2509
 
2496
2510
  const ViewletEditorRenameEvents = {
2497
2511
  __proto__: null,
2498
- handleFocusIn: handleFocusIn$3
2512
+ handleBlur: handleBlur$a,
2513
+ handleFocusIn: handleFocusIn$3,
2514
+ handleInput: handleInput$8
2499
2515
  };
2500
2516
 
2501
2517
  const setBounds$5 = (state, x, y, width, height) => {
@@ -2534,11 +2550,12 @@ const ViewletEditorSourceActionsEvents = {
2534
2550
  handleFocusIn: handleFocusIn$2
2535
2551
  };
2536
2552
 
2537
- const setBounds$4 = (state, x, y) => {
2553
+ const setBounds$4 = (state, x, y, width, height) => {
2538
2554
  const {
2539
2555
  $Viewlet
2540
2556
  } = state;
2541
- setXAndYTransform($Viewlet, x, -y);
2557
+ setBounds$9($Viewlet, x, y, width, height);
2558
+ applyUidWorkaround($Viewlet);
2542
2559
  };
2543
2560
  const appendWidget$1 = state => {
2544
2561
  const {
@@ -6749,7 +6766,7 @@ const handleInput$6 = event => {
6749
6766
  const {
6750
6767
  value
6751
6768
  } = target;
6752
- handleInput$8(uid, value);
6769
+ handleInput$9(uid, value);
6753
6770
  };
6754
6771
  const handleFocus$9 = event => {
6755
6772
  const uid = fromEvent(event);
@@ -6797,7 +6814,7 @@ const handleKeyDown$3 = event => {
6797
6814
  };
6798
6815
  const handleBlur$7 = event => {
6799
6816
  const uid = fromEvent(event);
6800
- handleBlur$a(uid);
6817
+ handleBlur$b(uid);
6801
6818
  };
6802
6819
 
6803
6820
  const ViewletDefineKeyBindingEvents = {
@@ -8000,7 +8017,7 @@ const handleFocus$6 = event => {
8000
8017
  };
8001
8018
  const handleBlur$5 = event => {
8002
8019
  const uid = fromEvent(event);
8003
- handleBlur$a(uid);
8020
+ handleBlur$b(uid);
8004
8021
  };
8005
8022
  const handleClick$5 = event => {
8006
8023
  preventDefault(event);
@@ -8236,7 +8253,7 @@ const handleInput$5 = event => {
8236
8253
  const $Target = event.target;
8237
8254
  const value = $Target.value;
8238
8255
  const uid = fromEvent(event);
8239
- handleInput$8(uid, value);
8256
+ handleInput$9(uid, value);
8240
8257
  // TODO
8241
8258
  // TODO use beforeinput event to set value and extension list items at the same time
8242
8259
  // state.$Viewlet.ariaBusy = 'true'
@@ -8512,7 +8529,7 @@ const handleInput$4 = event => {
8512
8529
  value
8513
8530
  } = target;
8514
8531
  const uid = fromEvent(event);
8515
- handleInput$8(uid, value);
8532
+ handleInput$9(uid, value);
8516
8533
  };
8517
8534
  const handleTableClick = event => {
8518
8535
  const {
@@ -9717,7 +9734,7 @@ const handlePointerDown = event => {
9717
9734
  };
9718
9735
  const handleBlur$2 = event => {
9719
9736
  const uid = fromEvent(event);
9720
- handleBlur$a(uid);
9737
+ handleBlur$b(uid);
9721
9738
  };
9722
9739
 
9723
9740
  // TODO
@@ -10524,7 +10541,7 @@ const handleInput = event => {
10524
10541
  value
10525
10542
  } = target;
10526
10543
  const uid = fromEvent(event);
10527
- handleInput$8(uid, value);
10544
+ handleInput$9(uid, value);
10528
10545
  };
10529
10546
 
10530
10547
  const ViewletSourceControlEvents = {
@@ -10707,7 +10724,7 @@ const create$6 = ({
10707
10724
 
10708
10725
  const handleBlur = event => {
10709
10726
  const uid = fromEvent(event);
10710
- handleBlur$a(uid);
10727
+ handleBlur$b(uid);
10711
10728
  };
10712
10729
  const handleMouseDown = (event, ...args) => {
10713
10730
  const uid = fromEvent(event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "10.20.0",
3
+ "version": "10.22.0",
4
4
  "description": "",
5
5
  "main": "dist/rendererProcessMain.js",
6
6
  "type": "module",