react-monaco-json-merge 1.1.16 → 1.2.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/components/editor.d.ts.map +1 -1
- package/dist/index.cjs +30 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1041 -998
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +7 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.monaco-diff-editor .monaco-editor .codicon-diff-insert,.monaco-diff-editor .monaco-editor .codicon-diff-remove{left:44px!important;right:initial!important}.monaco-diff-editor.side-by-side .monaco-editor .codicon-diff-remove{left:62px!important}.monaco-diff-editor .lightbulb-glyph,.monaco-diff-editor .codicon-lightbulb,.monaco-diff-editor .lightBulbWidget{display:none!important}.monaco-editor .conflict-issue-line.conflict-issue-error{background-color:#ff00001a}.monaco-editor .conflict-issue-line.conflict-issue-warning{background-color:#ffaa001a}.monaco-editor .conflict-issue-line.conflict-issue-smart-merge{background-color:#0096ff1a}.monaco-editor.vs .conflict-issue-line.conflict-issue-error{background-color:#ff00000d}.monaco-editor.vs .conflict-issue-line.conflict-issue-warning{background-color:#ff88000d}.monaco-editor.vs .conflict-issue-line.conflict-issue-smart-merge{background-color:#0078d40d}
|
|
1
|
+
.monaco-diff-editor .monaco-editor .codicon-diff-insert,.monaco-diff-editor .monaco-editor .codicon-diff-remove{left:44px!important;right:initial!important}.monaco-diff-editor.side-by-side .monaco-editor .codicon-diff-remove{left:62px!important}.monaco-diff-editor .lightbulb-glyph,.monaco-diff-editor .codicon-lightbulb,.monaco-diff-editor .lightBulbWidget{display:none!important}.monaco-editor .conflict-issue-line.conflict-issue-error{background-color:#ff00001a}.monaco-editor .conflict-issue-line.conflict-issue-warning{background-color:#ffaa001a}.monaco-editor .conflict-issue-line.conflict-issue-smart-merge{background-color:#0096ff1a}.monaco-editor.vs .conflict-issue-line.conflict-issue-error{background-color:#ff00000d}.monaco-editor.vs .conflict-issue-line.conflict-issue-warning{background-color:#ff88000d}.monaco-editor.vs .conflict-issue-line.conflict-issue-smart-merge{background-color:#0078d40d}.column-collapse-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;min-width:16px;min-height:16px;flex-shrink:0;border-radius:2px;cursor:pointer;-webkit-user-select:none;user-select:none;color:inherit;opacity:.6;transition:opacity .15s,background-color .15s,transform .2s ease;writing-mode:horizontal-tb!important;text-orientation:initial!important}.column-collapse-icon:hover{opacity:1;background-color:#80808040}.column-collapse-icon--disabled{opacity:.15;pointer-events:none;cursor:default}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -51,6 +51,12 @@ export interface ResolutionInfo {
|
|
|
51
51
|
warnings?: string[];
|
|
52
52
|
conflictIssues?: ConflictIssue[];
|
|
53
53
|
}
|
|
54
|
+
export interface EditorRefs {
|
|
55
|
+
input1: monaco.editor.IStandaloneCodeEditor;
|
|
56
|
+
input2: monaco.editor.IStandaloneCodeEditor;
|
|
57
|
+
base: monaco.editor.IStandaloneCodeEditor | null;
|
|
58
|
+
result: monaco.editor.IStandaloneCodeEditor | null;
|
|
59
|
+
}
|
|
54
60
|
export interface EditorDiffMergeProps {
|
|
55
61
|
original?: string;
|
|
56
62
|
modified?: string;
|
|
@@ -61,7 +67,7 @@ export interface EditorDiffMergeProps {
|
|
|
61
67
|
className?: string;
|
|
62
68
|
loading?: React.ReactNode;
|
|
63
69
|
options?: monaco.editor.IStandaloneEditorConstructionOptions;
|
|
64
|
-
onMount?: (
|
|
70
|
+
onMount?: (editors: EditorRefs, monaco: typeof import("monaco-editor")) => void;
|
|
65
71
|
onMergeResolve?: (content: string, resolution?: ResolutionInfo) => void;
|
|
66
72
|
showResultColumn?: boolean;
|
|
67
73
|
baseIndex?: 0 | 1 | 2;
|
|
@@ -1 +1 @@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,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-monaco-json-merge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A powerful React component for 3-way JSON merging with semantic comparison, built on Monaco Editor. Features schema-aware conflict detection, interactive resolution, and real-time validation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Kirill Ivanov <v.b.ingram@gmail.com>",
|