@lvce-editor/editor-worker 19.78.12 → 19.78.14

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/diff-sdk.js CHANGED
@@ -15652,8 +15652,8 @@ const {
15652
15652
  setFactory
15653
15653
  } = createLazyRpc(RpcId.CompletionWorker);
15654
15654
 
15655
- // These commits preserve the document, selection, layout, widgets and lifecycle.
15656
- const diagnosticFields = new Set(['decorations', 'diagnostics', 'lightBulbRowIndex', 'visualDecorations']);
15655
+ // Diagnostic updates and undo grouping preserve the document, selection, layout, widgets and lifecycle.
15656
+ const independentFields = new Set(['canCoalesceTyping', 'decorations', 'diagnostics', 'lightBulbRowIndex', 'visualDecorations']);
15657
15657
  const isCurrent$1 = (snapshot, current) => {
15658
15658
  if (!current || current.lifecycle?.disposed) {
15659
15659
  return false;
@@ -15663,7 +15663,7 @@ const isCurrent$1 = (snapshot, current) => {
15663
15663
  }
15664
15664
  const keys = new Set([...Object.keys(snapshot), ...Object.keys(current)]);
15665
15665
  for (const key of keys) {
15666
- if (diagnosticFields.has(key)) {
15666
+ if (independentFields.has(key)) {
15667
15667
  continue;
15668
15668
  }
15669
15669
  const field = key;
@@ -15682,6 +15682,7 @@ const merge = (current, snapshot, result) => {
15682
15682
  }
15683
15683
  return {
15684
15684
  ...result,
15685
+ canCoalesceTyping: current.canCoalesceTyping ?? false,
15685
15686
  decorations: current.decorations,
15686
15687
  diagnostics: current.diagnostics,
15687
15688
  lightBulbRowIndex: current.lightBulbRowIndex,
@@ -28741,6 +28742,7 @@ const commandMap = {
28741
28742
  'Editor.typeWithAutoClosing': typeWithAutoClosingCommand,
28742
28743
  'Editor.undo': wrapCommand(undo),
28743
28744
  'Editor.unfold': wrapCommand(unfold),
28745
+ 'Editor.unindent': wrapCommand(indentLess),
28744
28746
  'Editor.unIndent': wrapCommand(editorUnindent),
28745
28747
  'Editor.updateColorPickerValue': wrapCommand(updateColorPickerValue$1),
28746
28748
  'Editor.updateDebugInfo': updateDebugInfo,
@@ -16112,8 +16112,8 @@ const {
16112
16112
  setFactory
16113
16113
  } = createLazyRpc(CompletionWorker);
16114
16114
 
16115
- // These commits preserve the document, selection, layout, widgets and lifecycle.
16116
- const diagnosticFields = new Set(['decorations', 'diagnostics', 'lightBulbRowIndex', 'visualDecorations']);
16115
+ // Diagnostic updates and undo grouping preserve the document, selection, layout, widgets and lifecycle.
16116
+ const independentFields = new Set(['canCoalesceTyping', 'decorations', 'diagnostics', 'lightBulbRowIndex', 'visualDecorations']);
16117
16117
  const isCurrent$1 = (snapshot, current) => {
16118
16118
  if (!current || current.lifecycle?.disposed) {
16119
16119
  return false;
@@ -16123,7 +16123,7 @@ const isCurrent$1 = (snapshot, current) => {
16123
16123
  }
16124
16124
  const keys = new Set([...Object.keys(snapshot), ...Object.keys(current)]);
16125
16125
  for (const key of keys) {
16126
- if (diagnosticFields.has(key)) {
16126
+ if (independentFields.has(key)) {
16127
16127
  continue;
16128
16128
  }
16129
16129
  const field = key;
@@ -16142,6 +16142,7 @@ const merge = (current, snapshot, result) => {
16142
16142
  }
16143
16143
  return {
16144
16144
  ...result,
16145
+ canCoalesceTyping: current.canCoalesceTyping ?? false,
16145
16146
  decorations: current.decorations,
16146
16147
  diagnostics: current.diagnostics,
16147
16148
  lightBulbRowIndex: current.lightBulbRowIndex,
@@ -29189,6 +29190,7 @@ const commandMap = {
29189
29190
  'Editor.typeWithAutoClosing': typeWithAutoClosingCommand,
29190
29191
  'Editor.undo': wrapCommand(undo),
29191
29192
  'Editor.unfold': wrapCommand(unfold),
29193
+ 'Editor.unindent': wrapCommand(indentLess),
29192
29194
  'Editor.unIndent': wrapCommand(editorUnindent),
29193
29195
  'Editor.updateColorPickerValue': wrapCommand(updateColorPickerValue$1),
29194
29196
  'Editor.updateDebugInfo': updateDebugInfo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.78.12",
3
+ "version": "19.78.14",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"