@git-diff-view/react 0.0.37 → 0.0.38
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.
|
@@ -1805,7 +1805,7 @@ const InternalDiffView = (props) => {
|
|
|
1805
1805
|
}, [useDiffContext, wrapperRef]);
|
|
1806
1806
|
const value = React.useMemo(() => ({ useDiffContext }), [useDiffContext]);
|
|
1807
1807
|
return (React__namespace.createElement(DiffViewContext.Provider, { value: value },
|
|
1808
|
-
React__namespace.createElement("div", { className: "diff-tailwindcss-wrapper", "data-component": "git-diff-view", "data-theme": diffFile._getTheme() || "light", "data-version": "0.0.
|
|
1808
|
+
React__namespace.createElement("div", { className: "diff-tailwindcss-wrapper", "data-component": "git-diff-view", "data-theme": diffFile._getTheme() || "light", "data-version": "0.0.38", "data-highlighter": diffFile._getHighlighterName(), ref: wrapperRef },
|
|
1809
1809
|
React__namespace.createElement("div", { className: "diff-style-root", style: {
|
|
1810
1810
|
// @ts-ignore
|
|
1811
1811
|
[diffFontSizeName]: diffViewFontSize + "px",
|
|
@@ -1893,7 +1893,7 @@ const DiffViewWithRef = (props, ref) => {
|
|
|
1893
1893
|
const InnerDiffView = React.forwardRef(DiffViewWithRef);
|
|
1894
1894
|
InnerDiffView.displayName = "DiffView";
|
|
1895
1895
|
const DiffView = InnerDiffView;
|
|
1896
|
-
const version = "0.0.
|
|
1896
|
+
const version = "0.0.38";
|
|
1897
1897
|
|
|
1898
1898
|
Object.defineProperty(exports, "SplitSide", {
|
|
1899
1899
|
enumerable: true,
|
|
@@ -1805,7 +1805,7 @@ const InternalDiffView = (props) => {
|
|
|
1805
1805
|
}, [useDiffContext, wrapperRef]);
|
|
1806
1806
|
const value = React.useMemo(() => ({ useDiffContext }), [useDiffContext]);
|
|
1807
1807
|
return (React__namespace.createElement(DiffViewContext.Provider, { value: value },
|
|
1808
|
-
React__namespace.createElement("div", { className: "diff-tailwindcss-wrapper", "data-component": "git-diff-view", "data-theme": diffFile._getTheme() || "light", "data-version": "0.0.
|
|
1808
|
+
React__namespace.createElement("div", { className: "diff-tailwindcss-wrapper", "data-component": "git-diff-view", "data-theme": diffFile._getTheme() || "light", "data-version": "0.0.38", "data-highlighter": diffFile._getHighlighterName(), ref: wrapperRef },
|
|
1809
1809
|
React__namespace.createElement("div", { className: "diff-style-root", style: {
|
|
1810
1810
|
// @ts-ignore
|
|
1811
1811
|
[diffFontSizeName]: diffViewFontSize + "px",
|
|
@@ -1893,7 +1893,7 @@ const DiffViewWithRef = (props, ref) => {
|
|
|
1893
1893
|
const InnerDiffView = React.forwardRef(DiffViewWithRef);
|
|
1894
1894
|
InnerDiffView.displayName = "DiffView";
|
|
1895
1895
|
const DiffView = InnerDiffView;
|
|
1896
|
-
const version = "0.0.
|
|
1896
|
+
const version = "0.0.38";
|
|
1897
1897
|
|
|
1898
1898
|
Object.defineProperty(exports, "SplitSide", {
|
|
1899
1899
|
enumerable: true,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1787,7 +1787,7 @@ const InternalDiffView = (props) => {
|
|
|
1787
1787
|
}, [useDiffContext, wrapperRef]);
|
|
1788
1788
|
const value = useMemo(() => ({ useDiffContext }), [useDiffContext]);
|
|
1789
1789
|
return (React.createElement(DiffViewContext.Provider, { value: value },
|
|
1790
|
-
React.createElement("div", { className: "diff-tailwindcss-wrapper", "data-component": "git-diff-view", "data-theme": diffFile._getTheme() || "light", "data-version": "0.0.
|
|
1790
|
+
React.createElement("div", { className: "diff-tailwindcss-wrapper", "data-component": "git-diff-view", "data-theme": diffFile._getTheme() || "light", "data-version": "0.0.38", "data-highlighter": diffFile._getHighlighterName(), ref: wrapperRef },
|
|
1791
1791
|
React.createElement("div", { className: "diff-style-root", style: {
|
|
1792
1792
|
// @ts-ignore
|
|
1793
1793
|
[diffFontSizeName]: diffViewFontSize + "px",
|
|
@@ -1875,7 +1875,7 @@ const DiffViewWithRef = (props, ref) => {
|
|
|
1875
1875
|
const InnerDiffView = forwardRef(DiffViewWithRef);
|
|
1876
1876
|
InnerDiffView.displayName = "DiffView";
|
|
1877
1877
|
const DiffView = InnerDiffView;
|
|
1878
|
-
const version = "0.0.
|
|
1878
|
+
const version = "0.0.38";
|
|
1879
1879
|
|
|
1880
1880
|
export { DiffModeEnum, DiffView, version };
|
|
1881
1881
|
//# sourceMappingURL=index.mjs.map
|
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.
|
|
6
|
+
"version": "0.0.38",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"types": "index.d.ts",
|
|
9
9
|
"files": [
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react diff component"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@git-diff-view/core": "^0.0.
|
|
64
|
+
"@git-diff-view/core": "^0.0.38",
|
|
65
65
|
"@types/hast": "^3.0.0",
|
|
66
66
|
"fast-diff": "^1.3.0",
|
|
67
67
|
"highlight.js": "^11.11.0",
|