@git-diff-view/react 0.0.27 → 0.0.28

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,5 +1,5 @@
1
1
  'use client';
2
- import { NewLineSymbol, DiffLineType, getSyntaxDiffTemplate, getSyntaxLineTemplate, getPlainDiffTemplate, getPlainLineTemplate, SplitSide, checkDiffLineIncludeChange, composeLen, getSplitContentLines, getUnifiedContentLine, _cacheMap, DiffFile } from '@git-diff-view/core';
2
+ import { DiffLineType, getSyntaxDiffTemplate, getSyntaxLineTemplate, getPlainDiffTemplate, getPlainLineTemplate, SplitSide, checkDiffLineIncludeChange, composeLen, getSplitContentLines, getUnifiedContentLine, _cacheMap, DiffFile } from '@git-diff-view/core';
3
3
  export * from '@git-diff-view/core';
4
4
  export { SplitSide } from '@git-diff-view/core';
5
5
  import * as React from 'react';
@@ -203,6 +203,15 @@ const memoFunc = (func) => {
203
203
  });
204
204
  };
205
205
 
206
+ var NewLineSymbol;
207
+ (function (NewLineSymbol) {
208
+ NewLineSymbol[NewLineSymbol["CRLF"] = 1] = "CRLF";
209
+ NewLineSymbol[NewLineSymbol["CR"] = 2] = "CR";
210
+ NewLineSymbol[NewLineSymbol["LF"] = 3] = "LF";
211
+ NewLineSymbol[NewLineSymbol["NEWLINE"] = 4] = "NEWLINE";
212
+ NewLineSymbol[NewLineSymbol["NORMAL"] = 5] = "NORMAL";
213
+ NewLineSymbol[NewLineSymbol["NULL"] = 6] = "NULL";
214
+ })(NewLineSymbol || (NewLineSymbol = {}));
206
215
  const getSymbol = (symbol) => {
207
216
  switch (symbol) {
208
217
  case NewLineSymbol.LF:
@@ -1782,7 +1791,7 @@ const InternalDiffView = (props) => {
1782
1791
  }, [diffFile]);
1783
1792
  const value = useMemo(() => ({ useDiffContext }), [useDiffContext]);
1784
1793
  return (React.createElement(DiffViewContext.Provider, { value: value },
1785
- React.createElement("div", { className: "diff-tailwindcss-wrapper", "data-component": "git-diff-view", "data-theme": diffFile._getTheme() || "light", "data-version": "0.0.27", "data-highlighter": diffFile._getHighlighterName(), ref: wrapperRef },
1794
+ React.createElement("div", { className: "diff-tailwindcss-wrapper", "data-component": "git-diff-view", "data-theme": diffFile._getTheme() || "light", "data-version": "0.0.28", "data-highlighter": diffFile._getHighlighterName(), ref: wrapperRef },
1786
1795
  React.createElement("div", { className: "diff-style-root", style: {
1787
1796
  // @ts-ignore
1788
1797
  [diffFontSizeName]: diffViewFontSize + "px",
@@ -1848,7 +1857,7 @@ const DiffViewWithRef = (props, ref) => {
1848
1857
  const InnerDiffView = forwardRef(DiffViewWithRef);
1849
1858
  InnerDiffView.displayName = "DiffView";
1850
1859
  const DiffView = InnerDiffView;
1851
- const version = "0.0.27";
1860
+ const version = "0.0.28";
1852
1861
 
1853
1862
  export { DiffModeEnum, DiffView, version };
1854
1863
  //# sourceMappingURL=index.mjs.map