@git-diff-view/react 0.0.39 → 0.1.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/cjs/index.development.js +4 -3
- package/dist/cjs/index.development.js.map +1 -1
- package/dist/cjs/index.production.js +4 -3
- package/dist/cjs/index.production.js.map +1 -1
- package/dist/esm/index.mjs +5 -4
- package/dist/esm/index.mjs.map +1 -1
- package/index.d.ts +11 -4
- package/package.json +2 -2
- package/src/components/DiffView.tsx +5 -2
|
@@ -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.1.0", "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",
|
|
@@ -1866,7 +1866,8 @@ const DiffViewWithRef = (props, ref) => {
|
|
|
1866
1866
|
diffFile.notifyAll();
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
|
-
else if (diffFile.
|
|
1869
|
+
else if ((!diffFile._getIsCloned() && diffFile._getHighlighterName() !== core.highlighter.name) ||
|
|
1870
|
+
diffFile._getHighlighterType() !== "class") {
|
|
1870
1871
|
diffFile.initSyntax();
|
|
1871
1872
|
diffFile.notifyAll();
|
|
1872
1873
|
}
|
|
@@ -1894,7 +1895,7 @@ const DiffViewWithRef = (props, ref) => {
|
|
|
1894
1895
|
const InnerDiffView = React.forwardRef(DiffViewWithRef);
|
|
1895
1896
|
InnerDiffView.displayName = "DiffView";
|
|
1896
1897
|
const DiffView = InnerDiffView;
|
|
1897
|
-
const version = "0.0
|
|
1898
|
+
const version = "0.1.0";
|
|
1898
1899
|
|
|
1899
1900
|
Object.defineProperty(exports, "SplitSide", {
|
|
1900
1901
|
enumerable: true,
|