virtual-react-json-diff 1.0.1 → 1.0.2

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,46 +1,18 @@
1
- import type { StoryObj } from "@storybook/react";
2
- declare const meta: {
3
- title: string;
4
- component: import("react").FC<import("./types").VirtualizedDiffViewerProps>;
5
- parameters: {
6
- layout: string;
7
- };
8
- tags: string[];
9
- argTypes: {
10
- className: {
11
- description: string;
12
- control: "text";
13
- };
14
- leftTitle: {
15
- description: string;
16
- control: "text";
17
- };
18
- rightTitle: {
19
- description: string;
20
- control: "text";
21
- };
22
- hideSearch: {
23
- description: string;
24
- control: "boolean";
25
- };
26
- height: {
27
- description: string;
28
- control: "number";
29
- };
30
- oldValue: {
31
- description: string;
32
- control: "object";
33
- };
34
- newValue: {
35
- description: string;
36
- control: "object";
37
- };
38
- differOptions: {
39
- description: string;
40
- control: "object";
41
- };
42
- };
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { VirtualDiffViewer } from "../..";
3
+ import type { DifferOptions } from "json-diff-kit";
4
+ type StoryProps = React.ComponentProps<typeof VirtualDiffViewer> & {
5
+ detectCircular?: boolean;
6
+ maxDepth?: number;
7
+ showModifications?: boolean;
8
+ arrayDiffMethod?: DifferOptions["arrayDiffMethod"];
9
+ compareKey?: string;
10
+ ignoreCase?: boolean;
11
+ ignoreCaseForKey?: boolean;
12
+ recursiveEqual?: boolean;
13
+ preserveKeyOrder?: DifferOptions["preserveKeyOrder"];
43
14
  };
15
+ declare const meta: Meta<StoryProps>;
44
16
  export default meta;
45
- type Story = StoryObj<typeof meta>;
17
+ type Story = StoryObj<StoryProps>;
46
18
  export declare const Primary: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtual-react-json-diff",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A React UI component for visually comparing large JSON objects with virtual scrolling, search, and theming — built on top of json-diff-kit.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -70,7 +70,7 @@
70
70
  "react": "^18.0.0"
71
71
  },
72
72
  "dependencies": {
73
- "json-diff-kit": "^1.0.31",
73
+ "json-diff-kit": "^1.0.32",
74
74
  "react-window": "^1.8.11"
75
75
  }
76
76
  }