@git-diff-view/react 0.0.21 → 0.0.22

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/index.d.ts CHANGED
@@ -825,19 +825,17 @@ export type DiffViewProps_2<T> = Omit<DiffViewProps<T>, "data"> & {
825
825
  hunks: string[];
826
826
  };
827
827
  };
828
- export declare function DiffView<T>(props: DiffViewProps_1<T> & {
828
+ declare function _DiffView<T>(props: DiffViewProps_1<T> & {
829
829
  ref?: ForwardedRef<{
830
830
  getDiffFileInstance: () => DiffFile;
831
831
  }>;
832
832
  }): ReactNode;
833
- export declare function DiffView<T>(props: DiffViewProps_2<T> & {
833
+ declare function _DiffView<T>(props: DiffViewProps_2<T> & {
834
834
  ref?: ForwardedRef<{
835
835
  getDiffFileInstance: () => DiffFile;
836
836
  }>;
837
837
  }): ReactNode;
838
- export declare namespace DiffView {
839
- var displayName: string;
840
- }
838
+ export declare const DiffView: typeof _DiffView;
841
839
  export declare const version: string;
842
840
 
843
841
  export {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "@git-diff-view/react",
4
4
  "author": "MrWangJustToDo",
5
5
  "license": "MIT",
6
- "version": "0.0.21",
6
+ "version": "0.0.22",
7
7
  "main": "index.js",
8
8
  "types": "index.d.ts",
9
9
  "files": [
@@ -59,7 +59,7 @@
59
59
  "react diff component"
60
60
  ],
61
61
  "dependencies": {
62
- "@git-diff-view/core": "^0.0.21",
62
+ "@git-diff-view/core": "^0.0.22",
63
63
  "@types/hast": "^3.0.0",
64
64
  "fast-diff": "^1.3.0",
65
65
  "highlight.js": "^11.10.0",
package/readme.md CHANGED
@@ -72,6 +72,11 @@ const bundle = file.getBundle();
72
72
  const diffFile = DiffFile.createInstance(data || {}, bundle);
73
73
  <DiffView diffFile={diffFile} {...props} />;
74
74
  ```
75
+ ### example
76
+
77
+ #### [react-example](https://github.com/MrWangJustToDo/git-diff-view/tree/main/ui/react-example)
78
+ #### [react-ssr-example](https://github.com/MrWangJustToDo/git-diff-view/tree/main/ui/next-page-example)
79
+ #### [react-rsc-example](https://github.com/MrWangJustToDo/git-diff-view/tree/main/ui/next-app-example)
75
80
 
76
81
  ### Screen Shot
77
82
 
@@ -96,8 +101,3 @@ const diffFile = DiffFile.createInstance(data || {}, bundle);
96
101
  | diffViewAddWidget| enable `addWidget` button, type: boolean |
97
102
  | onAddWidgetClick | when the `addWidget` button clicked, type: `({ side: "old" | "new", lineNumber: number }) => void` |
98
103
 
99
- ### example
100
-
101
- #### [react-example](https://github.com/MrWangJustToDo/git-diff-view/tree/main/ui/react-example)
102
- #### [react-ssr-example](https://github.com/MrWangJustToDo/git-diff-view/tree/main/ui/next-page-example)
103
- #### [react-rsc-example](https://github.com/MrWangJustToDo/git-diff-view/tree/main/ui/next-app-example)