@kubed/diff-viewer 0.3.0-alpha.1 → 0.3.0-alpha.3
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/cjs/DiffViewer.js +1 -1
- package/cjs/DiffViewer.js.map +1 -1
- package/esm/DiffViewer.js +1 -1
- package/esm/DiffViewer.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +6 -6
package/cjs/DiffViewer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react/jsx-runtime"),l=require("react"),b=require("diff"),m=require("diff2html"),o=require("@kubed/icons"),n=require("./styles.js"),x=Object.defineProperty,p=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,v=(t,e,r)=>e in t?x(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,q=(t,e)=>{for(var r in e||(e={}))w.call(e,r)&&v(t,r,e[r]);if(p)for(var r of p(e))O.call(e,r)&&v(t,r,e[r]);return t};const c=(t,e,r={})=>{const s=b.createPatch("yaml",t,e,"","",{context:-1}),a=m.parse(s);return m.html(a,q({drawFileList:!1},r))},D=({title:t,description:e,mode:r="line-by-line",oldValue:s,newValue:a})=>{const[j,y]=l.useState(r),[h,u]=l.useState(c(s,a,{outputFormat:r})),d=f=>{y(f),u(c(s,a,{outputFormat:f}))};return l.useEffect(()=>{u(c(s,a,{outputFormat:j}))},[s,a]),i.jsxs(n.DiffWrapper,{children:[i.jsxs(n.Header,{children:[i.jsx(o.Terminal,{size:20}),i.jsx(n.Title,{children:t}),i.jsx(o.ChevronDown,{size:20,className:"switch-mode",onClick:()=>{d("line-by-line")}}),i.jsx(o.ChevronRight,{size:20,className:"switch-mode",onClick:()=>{d("side-by-side")}}),i.jsx(n.Description,{children:e})]}),i.jsx("div",{dangerouslySetInnerHTML:{__html:h}})]})};exports.DiffViewer=D;
|
|
2
2
|
//# sourceMappingURL=DiffViewer.js.map
|
package/cjs/DiffViewer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiffViewer.js","sources":["../src/DiffViewer.tsx"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport { createPatch } from 'diff';\nimport { parse, html } from 'diff2html';\nimport { Terminal, ChevronDown, ChevronRight } from '@kubed/icons';\nimport { DiffWrapper, Header, Title, Description } from './styles';\n\nconst getDiffHtml = (oldValue, newValue, options = {}) => {\n const diffStr = createPatch('yaml', oldValue, newValue, '', '', {\n context: -1,\n });\n const diffJson = parse(diffStr);\n return html(diffJson, {\n drawFileList: false,\n ...options,\n });\n};\n\nexport interface DiffViewerProps {\n title?: string | React.ReactNode;\n description?: string | React.ReactNode;\n mode?: 'line-by-line' | 'side-by-side';\n oldValue: string;\n newValue: string;\n}\n\nexport const DiffViewer = ({\n title,\n description,\n mode = 'line-by-line',\n oldValue,\n newValue,\n}: DiffViewerProps) => {\n const [_mode, setMode] = useState(mode);\n const [diffHtml, setDiffHtml] = useState(getDiffHtml(oldValue, newValue, { outputFormat: mode }));\n\n const handleModeChange = (m) => {\n setMode(m);\n setDiffHtml(getDiffHtml(oldValue, newValue, { outputFormat: m }));\n };\n\n useEffect(() => {\n setDiffHtml(getDiffHtml(oldValue, newValue, { outputFormat: _mode }));\n }, [oldValue, newValue]);\n\n return (\n <DiffWrapper>\n <Header>\n <Terminal size={20} />\n <Title>{title}</Title>\n <ChevronDown\n size={20}\n className=\"switch-mode\"\n onClick={() => {\n handleModeChange('line-by-line');\n }}\n />\n <ChevronRight\n size={20}\n className=\"switch-mode\"\n onClick={() => {\n handleModeChange('side-by-side');\n }}\n />\n <Description>{description}</Description>\n </Header>\n <div\n dangerouslySetInnerHTML={{\n __html: diffHtml,\n }}\n />\n </DiffWrapper>\n );\n};\n"],"names":["w","C","F","
|
|
1
|
+
{"version":3,"file":"DiffViewer.js","sources":["../src/DiffViewer.tsx"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport { createPatch } from 'diff';\nimport { parse, html } from 'diff2html';\nimport { Terminal, ChevronDown, ChevronRight } from '@kubed/icons';\nimport { DiffWrapper, Header, Title, Description } from './styles';\n\nconst getDiffHtml = (oldValue, newValue, options = {}) => {\n const diffStr = createPatch('yaml', oldValue, newValue, '', '', {\n context: -1,\n });\n const diffJson = parse(diffStr);\n return html(diffJson, {\n drawFileList: false,\n ...options,\n });\n};\n\nexport interface DiffViewerProps {\n title?: string | React.ReactNode;\n description?: string | React.ReactNode;\n mode?: 'line-by-line' | 'side-by-side';\n oldValue: string;\n newValue: string;\n}\n\nexport const DiffViewer = ({\n title,\n description,\n mode = 'line-by-line',\n oldValue,\n newValue,\n}: DiffViewerProps) => {\n const [_mode, setMode] = useState(mode);\n const [diffHtml, setDiffHtml] = useState(getDiffHtml(oldValue, newValue, { outputFormat: mode }));\n\n const handleModeChange = (m) => {\n setMode(m);\n setDiffHtml(getDiffHtml(oldValue, newValue, { outputFormat: m }));\n };\n\n useEffect(() => {\n setDiffHtml(getDiffHtml(oldValue, newValue, { outputFormat: _mode }));\n }, [oldValue, newValue]);\n\n return (\n <DiffWrapper>\n <Header>\n <Terminal size={20} />\n <Title>{title}</Title>\n <ChevronDown\n size={20}\n className=\"switch-mode\"\n onClick={() => {\n handleModeChange('line-by-line');\n }}\n />\n <ChevronRight\n size={20}\n className=\"switch-mode\"\n onClick={() => {\n handleModeChange('side-by-side');\n }}\n />\n <Description>{description}</Description>\n </Header>\n <div\n dangerouslySetInnerHTML={{\n __html: diffHtml,\n }}\n />\n </DiffWrapper>\n );\n};\n"],"names":["w","C","F","l","b","h","z","M","s","N","P","T","v","S"],"mappings":";;;;;;;;;;;AAAA,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,MA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CAAC,CAACJ,cAAC,CAACK,kBAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAACL,cAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;"}
|
package/esm/DiffViewer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{jsxs as s,jsx as n}from"react/jsx-runtime";import{useState as p,useEffect as b}from"react";import{createPatch as v}from"diff";import{parse as w,html as j}from"diff2html";import{Terminal as O,ChevronDown as g,ChevronRight as D}from"@kubed/icons";import{DiffWrapper as x,Header as C,Title as F,Description as P}from"./styles.js";var z=Object.defineProperty,f=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,u=(t,e,r)=>e in t?z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e)=>{for(var r in e||(e={}))H.call(e,r)&&u(t,r,e[r]);if(f)for(var r of f(e))S.call(e,r)&&u(t,r,e[r]);return t};const l=(t,e,r={})=>{const o=v("yaml",t,e,"","",{context:-1}),i=w(o);return j(i,T({drawFileList:!1},r))},V=({title:t,description:e,mode:r="line-by-line",oldValue:o,newValue:i})=>{const[d,h]=p(r),[y,a]=p(l(o,i,{outputFormat:r})),c=m=>{h(m),a(l(o,i,{outputFormat:m}))};return b(()=>{a(l(o,i,{outputFormat:d}))},[o,i]),s(x,{children:[s(C,{children:[n(O,{size:20}),n(F,{children:t}),n(g,{size:20,className:"switch-mode",onClick:()=>{c("line-by-line")}}),n(D,{size:20,className:"switch-mode",onClick:()=>{c("side-by-side")}}),n(P,{children:e})]}),n("div",{dangerouslySetInnerHTML:{__html:y}})]})};export{V as DiffViewer};
|
|
2
2
|
//# sourceMappingURL=DiffViewer.js.map
|
package/esm/DiffViewer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiffViewer.js","sources":["../src/DiffViewer.tsx"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport { createPatch } from 'diff';\nimport { parse, html } from 'diff2html';\nimport { Terminal, ChevronDown, ChevronRight } from '@kubed/icons';\nimport { DiffWrapper, Header, Title, Description } from './styles';\n\nconst getDiffHtml = (oldValue, newValue, options = {}) => {\n const diffStr = createPatch('yaml', oldValue, newValue, '', '', {\n context: -1,\n });\n const diffJson = parse(diffStr);\n return html(diffJson, {\n drawFileList: false,\n ...options,\n });\n};\n\nexport interface DiffViewerProps {\n title?: string | React.ReactNode;\n description?: string | React.ReactNode;\n mode?: 'line-by-line' | 'side-by-side';\n oldValue: string;\n newValue: string;\n}\n\nexport const DiffViewer = ({\n title,\n description,\n mode = 'line-by-line',\n oldValue,\n newValue,\n}: DiffViewerProps) => {\n const [_mode, setMode] = useState(mode);\n const [diffHtml, setDiffHtml] = useState(getDiffHtml(oldValue, newValue, { outputFormat: mode }));\n\n const handleModeChange = (m) => {\n setMode(m);\n setDiffHtml(getDiffHtml(oldValue, newValue, { outputFormat: m }));\n };\n\n useEffect(() => {\n setDiffHtml(getDiffHtml(oldValue, newValue, { outputFormat: _mode }));\n }, [oldValue, newValue]);\n\n return (\n <DiffWrapper>\n <Header>\n <Terminal size={20} />\n <Title>{title}</Title>\n <ChevronDown\n size={20}\n className=\"switch-mode\"\n onClick={() => {\n handleModeChange('line-by-line');\n }}\n />\n <ChevronRight\n size={20}\n className=\"switch-mode\"\n onClick={() => {\n handleModeChange('side-by-side');\n }}\n />\n <Description>{description}</Description>\n </Header>\n <div\n dangerouslySetInnerHTML={{\n __html: diffHtml,\n }}\n />\n </DiffWrapper>\n );\n};\n"],"names":["w","C","F","
|
|
1
|
+
{"version":3,"file":"DiffViewer.js","sources":["../src/DiffViewer.tsx"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport { createPatch } from 'diff';\nimport { parse, html } from 'diff2html';\nimport { Terminal, ChevronDown, ChevronRight } from '@kubed/icons';\nimport { DiffWrapper, Header, Title, Description } from './styles';\n\nconst getDiffHtml = (oldValue, newValue, options = {}) => {\n const diffStr = createPatch('yaml', oldValue, newValue, '', '', {\n context: -1,\n });\n const diffJson = parse(diffStr);\n return html(diffJson, {\n drawFileList: false,\n ...options,\n });\n};\n\nexport interface DiffViewerProps {\n title?: string | React.ReactNode;\n description?: string | React.ReactNode;\n mode?: 'line-by-line' | 'side-by-side';\n oldValue: string;\n newValue: string;\n}\n\nexport const DiffViewer = ({\n title,\n description,\n mode = 'line-by-line',\n oldValue,\n newValue,\n}: DiffViewerProps) => {\n const [_mode, setMode] = useState(mode);\n const [diffHtml, setDiffHtml] = useState(getDiffHtml(oldValue, newValue, { outputFormat: mode }));\n\n const handleModeChange = (m) => {\n setMode(m);\n setDiffHtml(getDiffHtml(oldValue, newValue, { outputFormat: m }));\n };\n\n useEffect(() => {\n setDiffHtml(getDiffHtml(oldValue, newValue, { outputFormat: _mode }));\n }, [oldValue, newValue]);\n\n return (\n <DiffWrapper>\n <Header>\n <Terminal size={20} />\n <Title>{title}</Title>\n <ChevronDown\n size={20}\n className=\"switch-mode\"\n onClick={() => {\n handleModeChange('line-by-line');\n }}\n />\n <ChevronRight\n size={20}\n className=\"switch-mode\"\n onClick={() => {\n handleModeChange('side-by-side');\n }}\n />\n <Description>{description}</Description>\n </Header>\n <div\n dangerouslySetInnerHTML={{\n __html: diffHtml,\n }}\n />\n </DiffWrapper>\n );\n};\n"],"names":["w","C","F","l","b","h","z","M","s","N","P","T","v","S"],"mappings":";;;;;;;AAAA,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,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MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;"}
|
package/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{DiffViewer as
|
|
1
|
+
import{DiffViewer as r}from"./DiffViewer.js";export{r as DiffViewer};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubed/diff-viewer",
|
|
3
|
-
"version": "0.3.0-alpha.
|
|
3
|
+
"version": "0.3.0-alpha.3",
|
|
4
4
|
"homepage": "https://github.com/kubesphere/kube-design",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"styled-components": "^5.3.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@kubed/hooks": "0.3.0-alpha.
|
|
28
|
-
"@kubed/icons": "0.3.0-alpha.
|
|
29
|
-
"react": ">=
|
|
30
|
-
"react-dom": ">=
|
|
31
|
-
"react-is": ">=
|
|
27
|
+
"@kubed/hooks": "0.3.0-alpha.3",
|
|
28
|
+
"@kubed/icons": "0.3.0-alpha.3",
|
|
29
|
+
"react": ">=19.0.0 <20",
|
|
30
|
+
"react-dom": ">=19.0.0 <20",
|
|
31
|
+
"react-is": ">=19.0.0 <20"
|
|
32
32
|
}
|
|
33
33
|
}
|