virtual-react-json-diff 1.0.7 → 1.0.8

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.
@@ -1,3 +1,4 @@
1
+ import type { InlineDiffOptions } from "json-diff-kit";
1
2
  import type { ListChildComponentProps } from "react-window";
2
3
  import type { DiffRowOrCollapsed } from "../types";
3
4
  declare function ViewerRow({ index, style, data, }: ListChildComponentProps<{
@@ -5,5 +6,6 @@ declare function ViewerRow({ index, style, data, }: ListChildComponentProps<{
5
6
  rightDiff: DiffRowOrCollapsed[];
6
7
  onExpand: (segmentIndex: number) => void;
7
8
  searchTerm?: string;
9
+ inlineDiffOptions?: InlineDiffOptions;
8
10
  }>): import("react/jsx-runtime").JSX.Element;
9
11
  export default ViewerRow;
@@ -1,4 +1,4 @@
1
- import type { DifferOptions, DiffResult } from "json-diff-kit";
1
+ import type { DifferOptions, DiffResult, InlineDiffOptions } from "json-diff-kit";
2
2
  export type DiffRow = {
3
3
  originalIndex: number;
4
4
  } & DiffResult;
@@ -39,6 +39,7 @@ export type VirtualizedDiffViewerProps = {
39
39
  differOptions?: DifferOptions;
40
40
  className?: string;
41
41
  miniMapWidth?: number;
42
+ inlineDiffOptions?: InlineDiffOptions;
42
43
  };
43
44
  export type DiffMinimapProps = {
44
45
  leftDiff: DiffRowOrCollapsed[];
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { DifferOptions } from 'json-diff-kit';
2
+ import { DifferOptions, InlineDiffOptions } from 'json-diff-kit';
3
3
 
4
4
  type VirtualizedDiffViewerProps = {
5
5
  oldValue: object;
@@ -13,6 +13,7 @@ type VirtualizedDiffViewerProps = {
13
13
  differOptions?: DifferOptions;
14
14
  className?: string;
15
15
  miniMapWidth?: number;
16
+ inlineDiffOptions?: InlineDiffOptions;
16
17
  };
17
18
 
18
19
  declare const VirtualizedDiffViewer: React.FC<VirtualizedDiffViewerProps>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "virtual-react-json-diff",
3
3
  "type": "module",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "description": "Fast, virtualized React component for visually comparing large JSON objects. Includes search, theming, and minimap.",
6
6
  "author": {
7
7
  "name": "Utku Akyüz"