@git-diff-view/react 0.0.25 → 0.0.27
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 +543 -376
- package/dist/cjs/index.development.js.map +1 -1
- package/dist/cjs/index.production.js +543 -376
- package/dist/cjs/index.production.js.map +1 -1
- package/dist/css/diff-view-pure.css +5 -1
- package/dist/css/diff-view.css +6 -2
- package/dist/esm/index.mjs +485 -321
- package/dist/esm/index.mjs.map +1 -1
- package/index.d.ts +317 -23
- package/package.json +8 -7
- package/src/_base.css +3 -0
- package/src/_base_pure.css +2 -0
- package/src/_com.css +172 -0
- package/src/_theme.css +2 -0
- package/src/components/DiffAddWidget.tsx +86 -0
- package/src/components/DiffContent.tsx +367 -0
- package/src/components/DiffContent_v2.tsx +344 -0
- package/src/components/DiffExpand.tsx +25 -0
- package/src/components/DiffNoNewLine.tsx +10 -0
- package/src/components/DiffSplitContentLineNormal.tsx +164 -0
- package/src/components/DiffSplitContentLineWrap.tsx +234 -0
- package/src/components/DiffSplitExtendLineNormal.tsx +150 -0
- package/src/components/DiffSplitExtendLineWrap.tsx +133 -0
- package/src/components/DiffSplitHunkLineNormal.tsx +316 -0
- package/src/components/DiffSplitHunkLineWrap.tsx +340 -0
- package/src/components/DiffSplitView.tsx +46 -0
- package/src/components/DiffSplitViewNormal.tsx +205 -0
- package/src/components/DiffSplitViewWrap.tsx +141 -0
- package/src/components/DiffSplitWidgetLineNormal.tsx +149 -0
- package/src/components/DiffSplitWidgetLineWrap.tsx +127 -0
- package/src/components/DiffUnifiedContentLine.tsx +342 -0
- package/src/components/DiffUnifiedExtendLine.tsx +103 -0
- package/src/components/DiffUnifiedHunkLine.tsx +148 -0
- package/src/components/DiffUnifiedView.tsx +159 -0
- package/src/components/DiffUnifiedWidgetLine.tsx +104 -0
- package/src/components/DiffView.tsx +365 -0
- package/src/components/DiffViewContext.ts +11 -0
- package/src/components/DiffWidgetContext.ts +17 -0
- package/src/components/tools.ts +132 -0
- package/src/components/v2/DiffSplitContentLineNormal_v2.tsx +152 -0
- package/src/components/v2/DiffSplitContentLineWrap_v2.tsx +259 -0
- package/src/components/v2/DiffSplitExtendLineNormal_v2.tsx +146 -0
- package/src/components/v2/DiffSplitExtendLineWrap_v2.tsx +123 -0
- package/src/components/v2/DiffSplitHunkLineNormal_v2.tsx +302 -0
- package/src/components/v2/DiffSplitHunkLineWrap_v2.tsx +326 -0
- package/src/components/v2/DiffSplitViewLineNormal_v2.tsx +33 -0
- package/src/components/v2/DiffSplitViewLineWrap_v2.tsx +24 -0
- package/src/components/v2/DiffSplitViewNormal_v2.tsx +159 -0
- package/src/components/v2/DiffSplitViewWrap_v2.tsx +104 -0
- package/src/components/v2/DiffSplitView_v2.tsx +47 -0
- package/src/components/v2/DiffSplitWidgetLineNormal_v2.tsx +132 -0
- package/src/components/v2/DiffSplitWidgetLineWrap_v2.tsx +119 -0
- package/src/global.d.ts +12 -0
- package/src/hooks/useCallbackRef.ts +18 -0
- package/src/hooks/useDomWidth.ts +67 -0
- package/src/hooks/useIsMounted.ts +11 -0
- package/src/hooks/useSafeLayout.ts +5 -0
- package/src/hooks/useSyncHeight.ts +87 -0
- package/src/hooks/useTextWidth.ts +27 -0
- package/src/hooks/useUnmount.ts +10 -0
- package/src/index.ts +3 -0
- package/src/tailwind.css +3 -0
- package/src/tailwind_pure.css +3 -0
- package/styles/diff-view-pure.css +5 -1
- package/styles/diff-view.css +6 -2
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
}
|
|
256
256
|
.diff-tailwindcss-wrapper .\!text-red-500 {
|
|
257
257
|
--tw-text-opacity: 1 !important;
|
|
258
|
-
color: rgb(239 68 68 / var(--tw-text-opacity)) !important;
|
|
258
|
+
color: rgb(239 68 68 / var(--tw-text-opacity, 1)) !important;
|
|
259
259
|
}
|
|
260
260
|
.diff-tailwindcss-wrapper .opacity-\[0\.5\] {
|
|
261
261
|
opacity: 0.5;
|
|
@@ -280,7 +280,9 @@
|
|
|
280
280
|
--diff-plain-content--: #ffffff;
|
|
281
281
|
--diff-expand-content--: #fafafa;
|
|
282
282
|
--diff-plain-lineNumber--: #fafafa;
|
|
283
|
+
--diff-expand-lineNumber--: #fafafa;
|
|
283
284
|
--diff-plain-lineNumber-color--: #555555;
|
|
285
|
+
--diff-expand-lineNumber-color--: #555555;
|
|
284
286
|
--diff-hunk-content--: #ddf4ff;
|
|
285
287
|
--diff-hunk-lineNumber--: #c7ecff;
|
|
286
288
|
--diff-hunk-lineNumber-hover--: #0969da;
|
|
@@ -307,7 +309,9 @@
|
|
|
307
309
|
--diff-plain-content--: #0d1117;
|
|
308
310
|
--diff-expand-content--: #161b22;
|
|
309
311
|
--diff-plain-lineNumber--: #161b22;
|
|
312
|
+
--diff-expand-lineNumber--: #161b22;
|
|
310
313
|
--diff-plain-lineNumber-color--: #a0aaab;
|
|
314
|
+
--diff-expand-lineNumber-color--: #a0aaab;
|
|
311
315
|
--diff-hunk-content--: #131d2e;
|
|
312
316
|
--diff-hunk-lineNumber--: #204274;
|
|
313
317
|
--diff-hunk-lineNumber-hover--: #1f6feb;
|
package/dist/css/diff-view.css
CHANGED
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
--tw-contain-paint: ;
|
|
106
106
|
--tw-contain-style: ;
|
|
107
107
|
}/*
|
|
108
|
-
! tailwindcss v3.4.
|
|
108
|
+
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
|
|
109
109
|
*//*
|
|
110
110
|
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
111
111
|
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
@@ -761,7 +761,7 @@ video {
|
|
|
761
761
|
}
|
|
762
762
|
.diff-tailwindcss-wrapper .\!text-red-500 {
|
|
763
763
|
--tw-text-opacity: 1 !important;
|
|
764
|
-
color: rgb(239 68 68 / var(--tw-text-opacity)) !important;
|
|
764
|
+
color: rgb(239 68 68 / var(--tw-text-opacity, 1)) !important;
|
|
765
765
|
}
|
|
766
766
|
.diff-tailwindcss-wrapper .opacity-\[0\.5\] {
|
|
767
767
|
opacity: 0.5;
|
|
@@ -786,7 +786,9 @@ video {
|
|
|
786
786
|
--diff-plain-content--: #ffffff;
|
|
787
787
|
--diff-expand-content--: #fafafa;
|
|
788
788
|
--diff-plain-lineNumber--: #fafafa;
|
|
789
|
+
--diff-expand-lineNumber--: #fafafa;
|
|
789
790
|
--diff-plain-lineNumber-color--: #555555;
|
|
791
|
+
--diff-expand-lineNumber-color--: #555555;
|
|
790
792
|
--diff-hunk-content--: #ddf4ff;
|
|
791
793
|
--diff-hunk-lineNumber--: #c7ecff;
|
|
792
794
|
--diff-hunk-lineNumber-hover--: #0969da;
|
|
@@ -813,7 +815,9 @@ video {
|
|
|
813
815
|
--diff-plain-content--: #0d1117;
|
|
814
816
|
--diff-expand-content--: #161b22;
|
|
815
817
|
--diff-plain-lineNumber--: #161b22;
|
|
818
|
+
--diff-expand-lineNumber--: #161b22;
|
|
816
819
|
--diff-plain-lineNumber-color--: #a0aaab;
|
|
820
|
+
--diff-expand-lineNumber-color--: #a0aaab;
|
|
817
821
|
--diff-hunk-content--: #131d2e;
|
|
818
822
|
--diff-hunk-lineNumber--: #204274;
|
|
819
823
|
--diff-hunk-lineNumber-hover--: #1f6feb;
|