@lvce-editor/source-control-worker 1.20.0 → 1.21.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.
@@ -1615,16 +1615,17 @@ const create2 = (id, uri, x, y, width, height, workspacePath) => {
1615
1615
  inputPlaceholder: '',
1616
1616
  inputSource: 0,
1617
1617
  maxInputLines: 5,
1618
- inputFontFamily: '"Fira Code"',
1619
- inputFontSize: 15,
1618
+ inputFontFamily: 'system-ui, Ubuntu, "Droid Sans", sans-serif',
1619
+ inputFontSize: 13,
1620
1620
  inputFontWeight: 400,
1621
- inputLetterSpacing: 0.5
1621
+ inputLetterSpacing: 0,
1622
+ inputLineHeight: 14.95
1622
1623
  };
1623
1624
  set$1(id, state, state);
1624
1625
  };
1625
1626
 
1626
1627
  const isEqual$2 = (oldState, newState) => {
1627
- return newState.inputBoxHeight === newState.inputBoxHeight;
1628
+ return oldState.inputBoxHeight === newState.inputBoxHeight;
1628
1629
  };
1629
1630
 
1630
1631
  const RenderItems = 4;
@@ -2299,10 +2300,10 @@ const handleInput = async (state, value, inputSource = User) => {
2299
2300
  inputFontFamily,
2300
2301
  inputFontSize,
2301
2302
  inputFontWeight,
2302
- inputLetterSpacing
2303
+ inputLetterSpacing,
2304
+ inputLineHeight
2303
2305
  } = state;
2304
- const lineHeight = 30;
2305
- const inputBoxHeight = await getInputHeight(value, width, inputFontFamily, inputFontWeight, inputFontSize, inputLetterSpacing, lineHeight);
2306
+ const inputBoxHeight = await getInputHeight(value, width, inputFontFamily, inputFontWeight, inputFontSize, inputLetterSpacing, inputLineHeight);
2306
2307
  return {
2307
2308
  ...state,
2308
2309
  inputValue: value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/source-control-worker",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "description": "Source Control Worker",
5
5
  "keywords": [
6
6
  "Lvce Editor"