@adecore/editor-react 0.70.0 → 0.71.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.
- package/dist/DiffView.js +1 -4
- package/dist/SplitDiffView.js +1 -4
- package/package.json +6 -6
- package/src/DiffView.tsx +1 -4
- package/src/SplitDiffView.tsx +1 -5
package/dist/DiffView.js
CHANGED
|
@@ -134,9 +134,7 @@ function UnifiedDiffView(t0) {
|
|
|
134
134
|
wrap: initial.wrap,
|
|
135
135
|
label: initial.label,
|
|
136
136
|
readOnly: true,
|
|
137
|
-
|
|
138
|
-
foldOutline: "off",
|
|
139
|
-
folding: false,
|
|
137
|
+
partial: true,
|
|
140
138
|
handBack: [parseChord("Mod+Enter")]
|
|
141
139
|
});
|
|
142
140
|
applied.current = {
|
|
@@ -144,7 +142,6 @@ function UnifiedDiffView(t0) {
|
|
|
144
142
|
wrap: initial.wrap,
|
|
145
143
|
label: initial.label
|
|
146
144
|
};
|
|
147
|
-
editor.setBlocks([]);
|
|
148
145
|
editor.setLineTokens(line => {
|
|
149
146
|
const {
|
|
150
147
|
display: display_0,
|
package/dist/SplitDiffView.js
CHANGED
|
@@ -92,12 +92,9 @@ export function SplitDiffView({
|
|
|
92
92
|
wrap: initial_0.wrap,
|
|
93
93
|
label: initial_0.label,
|
|
94
94
|
readOnly: true,
|
|
95
|
-
|
|
96
|
-
folding: false,
|
|
97
|
-
foldOutline: 'off',
|
|
95
|
+
partial: true,
|
|
98
96
|
handBack: [parseChord('Mod+Enter')]
|
|
99
97
|
});
|
|
100
|
-
editor.setBlocks([]);
|
|
101
98
|
editor.setLineTokens(line => {
|
|
102
99
|
const row = current.current.display[side].rows[line];
|
|
103
100
|
return row === undefined ? null : current.current.tokens?.get(side, row[side].index);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/editor-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Language-enabled editors, feature coordination and React popups over injected language services.",
|
|
6
6
|
"license": "FSL-1.1-MIT",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"test": "bun test --conditions=source"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@adecore/editor": "0.
|
|
68
|
-
"@adecore/lsp": "0.
|
|
69
|
-
"@adecore/merge": "0.
|
|
67
|
+
"@adecore/editor": "0.71.0",
|
|
68
|
+
"@adecore/lsp": "0.71.0",
|
|
69
|
+
"@adecore/merge": "0.71.0",
|
|
70
70
|
"emmet": "^2.4.11",
|
|
71
71
|
"lucide-react": "^1.73.0",
|
|
72
72
|
"react-markdown": "^10.1.0",
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
"zustand": "^5.1.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@adecore/ui": "^0.
|
|
78
|
+
"@adecore/ui": "^0.71.0",
|
|
79
79
|
"i18next": "^26.5.12 || ^27.0.0",
|
|
80
80
|
"react": "^19.3.1",
|
|
81
81
|
"react-dom": "^19.3.1",
|
|
82
82
|
"react-i18next": "^17.1.9 || ^18.0.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@adecore/ui": "0.
|
|
85
|
+
"@adecore/ui": "0.71.0",
|
|
86
86
|
"@types/bun": "^1.4.4",
|
|
87
87
|
"@types/react": "^19.3.0",
|
|
88
88
|
"@types/react-dom": "^19.3.0",
|
package/src/DiffView.tsx
CHANGED
|
@@ -65,15 +65,12 @@ function UnifiedDiffView({
|
|
|
65
65
|
wrap: initial.wrap,
|
|
66
66
|
label: initial.label,
|
|
67
67
|
readOnly: true,
|
|
68
|
-
|
|
69
|
-
foldOutline: 'off',
|
|
70
|
-
folding: false,
|
|
68
|
+
partial: true,
|
|
71
69
|
// Prompt cards use this chord for their primary action; a read-only review has no split-line action.
|
|
72
70
|
handBack: [parseChord('Mod+Enter')]
|
|
73
71
|
});
|
|
74
72
|
|
|
75
73
|
applied.current = { theme: initial.theme, wrap: initial.wrap, label: initial.label };
|
|
76
|
-
editor.setBlocks([]);
|
|
77
74
|
|
|
78
75
|
editor.setLineTokens((line) => {
|
|
79
76
|
const { display, tokens } = current.current;
|
package/src/SplitDiffView.tsx
CHANGED
|
@@ -85,14 +85,10 @@ export function SplitDiffView({
|
|
|
85
85
|
wrap: initial.wrap,
|
|
86
86
|
label: initial.label,
|
|
87
87
|
readOnly: true,
|
|
88
|
-
|
|
89
|
-
folding: false,
|
|
90
|
-
foldOutline: 'off',
|
|
88
|
+
partial: true,
|
|
91
89
|
handBack: [parseChord('Mod+Enter')]
|
|
92
90
|
});
|
|
93
91
|
|
|
94
|
-
editor.setBlocks([]);
|
|
95
|
-
|
|
96
92
|
editor.setLineTokens((line) => {
|
|
97
93
|
const row = current.current.display[side].rows[line];
|
|
98
94
|
|