@kubed/diff-viewer 0.0.23 → 0.2.12
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/cjs/index.js +1 -1
- package/cjs/styles.js +5 -5
- package/cjs/styles.js.map +1 -1
- package/esm/DiffViewer.js +1 -1
- package/esm/DiffViewer.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/styles.js.map +1 -1
- package/lib/DiffViewer.d.ts +1 -1
- package/lib/DiffViewer.d.ts.map +1 -1
- package/package.json +16 -17
- package/CHANGELOG.md +0 -172
package/cjs/DiffViewer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react"),w=require("diff"),d=require("diff2html"),c=require("@kubed/icons"),o=require("./styles.js");function E(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var l=E(i),j=Object.defineProperty,p=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,y=(e,r,t)=>r in e?j(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,_=(e,r)=>{for(var t in r||(r={}))D.call(r,t)&&y(e,t,r[t]);if(p)for(var t of p(r))O.call(r,t)&&y(e,t,r[t]);return e};const u=(e,r,t={})=>{const a=w.createPatch("yaml",e,r,"","",{context:-1}),n=d.parse(a);return d.html(n,_({drawFileList:!1},t))},g=({title:e,description:r,mode:t="line-by-line",oldValue:a,newValue:n})=>{const[v,b]=i.useState(t),[h,s]=i.useState(u(a,n,{outputFormat:t})),f=m=>{b(m),s(u(a,n,{outputFormat:m}))};return i.useEffect(()=>{s(u(a,n,{outputFormat:v}))},[a,n]),l.createElement(o.DiffWrapper,null,l.createElement(o.Header,null,l.createElement(c.Terminal,{size:20}),l.createElement(o.Title,null,e),l.createElement(c.ChevronDown,{size:20,className:"switch-mode",onClick:()=>{f("line-by-line")}}),l.createElement(c.ChevronRight,{size:20,className:"switch-mode",onClick:()=>{f("side-by-side")}}),l.createElement(o.Description,null,r)),l.createElement("div",{dangerouslySetInnerHTML:{__html:h}}))};exports.DiffViewer=g;
|
|
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":["
|
|
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","a","H","r","v","x","N","z","T","k","M"],"mappings":"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"}
|
package/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./DiffViewer.js");exports.DiffViewer=e.DiffViewer;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/cjs/styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("styled-components");function o(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var d=o(i);const l=d.div`
|
|
2
2
|
border-radius: 4px 4px 0 0;
|
|
3
3
|
//border: 1px solid #ccd3db;
|
|
4
4
|
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
.d2h-moved-tag {
|
|
385
385
|
border: 1px solid #3572b0;
|
|
386
386
|
}
|
|
387
|
-
`,
|
|
387
|
+
`,r=d.div`
|
|
388
388
|
display: flex;
|
|
389
389
|
align-items: center;
|
|
390
390
|
padding: 12px;
|
|
@@ -399,13 +399,13 @@
|
|
|
399
399
|
.switch-mode {
|
|
400
400
|
cursor: pointer;
|
|
401
401
|
}
|
|
402
|
-
`,
|
|
402
|
+
`,n=d.span`
|
|
403
403
|
margin-right: 4px;
|
|
404
404
|
font-weight: 600;
|
|
405
405
|
color: #36435c;
|
|
406
|
-
`,
|
|
406
|
+
`,t=d.span`
|
|
407
407
|
margin-left: auto;
|
|
408
408
|
font-weight: 600;
|
|
409
409
|
color: #36435c;
|
|
410
|
-
`;exports.Description=
|
|
410
|
+
`;exports.Description=t,exports.DiffWrapper=l,exports.Header=r,exports.Title=n;
|
|
411
411
|
//# sourceMappingURL=styles.js.map
|
package/cjs/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../src/styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nexport const DiffWrapper = styled.div`\n border-radius: 4px 4px 0 0;\n //border: 1px solid #ccd3db;\n\n .d2h-wrapper {\n text-align: left;\n }\n\n .d2h-file-header {\n display: none;\n }\n\n .d2h-file-header.d2h-sticky-header {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n\n .d2h-file-stats {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 14px;\n margin-left: auto;\n }\n\n .d2h-lines-added {\n border: 1px solid #b4e2b4;\n border-radius: 5px 0 0 5px;\n color: #399839;\n padding: 2px;\n text-align: right;\n vertical-align: middle;\n }\n\n .d2h-lines-deleted {\n border: 1px solid #e9aeae;\n border-radius: 0 5px 5px 0;\n color: #c33;\n margin-left: 1px;\n padding: 2px;\n text-align: left;\n vertical-align: middle;\n }\n\n .d2h-file-name-wrapper {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 15px;\n width: 100%;\n }\n\n .d2h-file-name {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .d2h-file-wrapper {\n border: 1px solid #ccd3db;\n border-radius: 0 0 4px 4px;\n border-top-width: 0;\n background-color: #fff;\n }\n\n .d2h-file-collapse {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border: 1px solid #ddd;\n border-radius: 3px;\n cursor: pointer;\n display: none;\n font-size: 12px;\n justify-content: flex-end;\n padding: 4px 8px;\n }\n\n .d2h-file-collapse.d2h-selected {\n background-color: #c8e1ff;\n }\n\n .d2h-file-collapse-input {\n margin: 0 4px 0 0;\n }\n\n .d2h-diff-table {\n border-collapse: collapse;\n font-family: Menlo, Consolas, monospace;\n font-size: 13px;\n width: 100%;\n }\n\n .d2h-files-diff {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n }\n\n .d2h-file-diff {\n overflow-y: hidden;\n }\n\n .d2h-file-diff.d2h-d-none,\n .d2h-files-diff.d2h-d-none {\n display: none;\n }\n\n .d2h-file-side-diff {\n display: inline-block;\n overflow-x: scroll;\n overflow-y: hidden;\n width: 50%;\n }\n\n .d2h-code-line {\n padding: 0 8em;\n }\n\n .d2h-code-line,\n .d2h-code-side-line {\n display: inline-block;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n white-space: nowrap;\n width: 100%;\n background-color: transparent !important;\n }\n\n .d2h-code-side-line {\n padding: 0 4.5em;\n }\n\n .d2h-code-line-ctn {\n word-wrap: normal;\n background: none;\n display: inline-block;\n padding: 0;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n vertical-align: middle;\n white-space: pre;\n width: 100%;\n }\n\n .d2h-code-line del,\n .d2h-code-side-line del {\n background-color: rgba(234, 133, 115, 0.7);\n }\n\n .d2h-code-line del,\n .d2h-code-line ins,\n .d2h-code-side-line del,\n .d2h-code-side-line ins {\n border-radius: 0.2em;\n display: inline-block;\n margin-top: -1px;\n text-decoration: none;\n vertical-align: middle;\n }\n\n .d2h-code-line ins,\n .d2h-code-side-line ins {\n background-color: rgba(85, 188, 138, 0.7);\n text-align: left;\n }\n\n .d2h-code-line-prefix {\n word-wrap: normal;\n background: none;\n display: inline;\n padding: 0;\n white-space: pre;\n }\n\n .line-num1 {\n float: left;\n }\n\n .line-num1,\n .line-num2 {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n padding: 0 0.5em;\n text-overflow: ellipsis;\n width: 3.5em;\n }\n\n .line-num2 {\n float: right;\n }\n\n .d2h-code-linenumber {\n background-color: rgba(239, 244, 249, 0.8);\n border: solid #eee;\n border-width: 0 1px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.3);\n cursor: pointer;\n display: inline-block;\n position: absolute;\n text-align: right;\n width: 7.5em;\n }\n\n .d2h-code-linenumber:after {\n content: '\\\\200b';\n }\n\n .d2h-code-side-linenumber {\n background-color: #fff;\n border: solid #eee;\n border-width: 0 1px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.3);\n cursor: pointer;\n display: inline-block;\n overflow: hidden;\n padding: 0 0.5em;\n position: absolute;\n text-align: right;\n text-overflow: ellipsis;\n width: 4em;\n }\n\n .d2h-code-side-linenumber:after {\n content: '\\\\200b';\n }\n\n .d2h-code-side-emptyplaceholder,\n .d2h-emptyplaceholder {\n background-color: #f1f1f1;\n border-color: #e1e1e1;\n }\n\n .d2h-code-line-prefix,\n .d2h-code-linenumber,\n .d2h-code-side-linenumber,\n .d2h-emptyplaceholder {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .d2h-code-linenumber,\n .d2h-code-side-linenumber {\n direction: rtl;\n }\n\n .d2h-del {\n background-color: #fee8e9;\n border-color: #e9aeae;\n }\n\n .d2h-ins {\n background-color: rgba(162, 216, 187, 0.7);\n border-color: #b4e2b4;\n }\n\n .d2h-info {\n background-color: #f8fafd;\n border-color: #d5e4f2;\n color: rgba(0, 0, 0, 0.3);\n }\n\n .d2h-file-diff .d2h-del.d2h-change {\n background-color: rgba(250, 231, 229, 0.7);\n }\n\n .d2h-file-diff .d2h-ins.d2h-change {\n background-color: rgba(196, 230, 212, 0.7);\n }\n\n .d2h-file-list-wrapper {\n margin-bottom: 10px;\n }\n\n .d2h-file-list-wrapper a {\n color: #3572b0;\n text-decoration: none;\n }\n\n .d2h-file-list-wrapper a:visited {\n color: #3572b0;\n }\n\n .d2h-file-list-header {\n text-align: left;\n }\n\n .d2h-file-list-title {\n font-weight: 700;\n }\n\n .d2h-file-list-line {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n text-align: left;\n }\n\n .d2h-file-list {\n display: block;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .d2h-file-list > li {\n border-bottom: 1px solid #ddd;\n margin: 0;\n padding: 5px 10px;\n }\n\n .d2h-file-list > li:last-child {\n border-bottom: none;\n }\n\n .d2h-file-switch {\n cursor: pointer;\n display: none;\n font-size: 10px;\n }\n\n .d2h-icon {\n fill: currentColor;\n margin-right: 10px;\n vertical-align: middle;\n }\n\n .d2h-deleted {\n color: #c33;\n }\n\n .d2h-added {\n color: #399839;\n }\n\n .d2h-changed {\n color: #d0b44c;\n }\n\n .d2h-moved {\n color: #3572b0;\n }\n\n .d2h-tag {\n background-color: #fff;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 10px;\n margin-left: 5px;\n padding: 0 2px;\n }\n\n .d2h-deleted-tag {\n border: 1px solid #c33;\n }\n\n .d2h-added-tag {\n border: 1px solid #399839;\n }\n\n .d2h-changed-tag {\n border: 1px solid #d0b44c;\n }\n\n .d2h-moved-tag {\n border: 1px solid #3572b0;\n }\n`;\n\nexport const Header = styled.div`\n display: flex;\n align-items: center;\n padding: 12px;\n border-radius: 4px 4px 0 0;\n border: 1px solid #ccd3db;\n background-color: #eff4f9;\n\n .kubed-icon {\n margin-right: 4px;\n }\n\n .switch-mode {\n cursor: pointer;\n }\n`;\n\nexport const Title = styled.span`\n margin-right: 4px;\n font-weight: 600;\n color: #36435c;\n`;\n\nexport const Description = styled.span`\n margin-left: auto;\n font-weight: 600;\n color: #36435c;\n`;\n"],"names":["styled"],"mappings":";;;;;;;;;;AACY,MAAC,WAAW,GAAGA,eAAM,CAAC,GAAG,CAAC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACU,MAAC,MAAM,GAAGA,eAAM,CAAC,GAAG,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACU,MAAC,KAAK,GAAGA,eAAM,CAAC,IAAI,CAAC;AACjC;AACA;AACA;AACA,EAAE;AACU,MAAC,WAAW,GAAGA,eAAM,CAAC,IAAI,CAAC;AACvC;AACA;AACA;AACA;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../src/styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nexport const DiffWrapper = styled.div`\n border-radius: 4px 4px 0 0;\n //border: 1px solid #ccd3db;\n\n .d2h-wrapper {\n text-align: left;\n }\n\n .d2h-file-header {\n display: none;\n }\n\n .d2h-file-header.d2h-sticky-header {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n\n .d2h-file-stats {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 14px;\n margin-left: auto;\n }\n\n .d2h-lines-added {\n border: 1px solid #b4e2b4;\n border-radius: 5px 0 0 5px;\n color: #399839;\n padding: 2px;\n text-align: right;\n vertical-align: middle;\n }\n\n .d2h-lines-deleted {\n border: 1px solid #e9aeae;\n border-radius: 0 5px 5px 0;\n color: #c33;\n margin-left: 1px;\n padding: 2px;\n text-align: left;\n vertical-align: middle;\n }\n\n .d2h-file-name-wrapper {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 15px;\n width: 100%;\n }\n\n .d2h-file-name {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .d2h-file-wrapper {\n border: 1px solid #ccd3db;\n border-radius: 0 0 4px 4px;\n border-top-width: 0;\n background-color: #fff;\n }\n\n .d2h-file-collapse {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border: 1px solid #ddd;\n border-radius: 3px;\n cursor: pointer;\n display: none;\n font-size: 12px;\n justify-content: flex-end;\n padding: 4px 8px;\n }\n\n .d2h-file-collapse.d2h-selected {\n background-color: #c8e1ff;\n }\n\n .d2h-file-collapse-input {\n margin: 0 4px 0 0;\n }\n\n .d2h-diff-table {\n border-collapse: collapse;\n font-family: Menlo, Consolas, monospace;\n font-size: 13px;\n width: 100%;\n }\n\n .d2h-files-diff {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n }\n\n .d2h-file-diff {\n overflow-y: hidden;\n }\n\n .d2h-file-diff.d2h-d-none,\n .d2h-files-diff.d2h-d-none {\n display: none;\n }\n\n .d2h-file-side-diff {\n display: inline-block;\n overflow-x: scroll;\n overflow-y: hidden;\n width: 50%;\n }\n\n .d2h-code-line {\n padding: 0 8em;\n }\n\n .d2h-code-line,\n .d2h-code-side-line {\n display: inline-block;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n white-space: nowrap;\n width: 100%;\n background-color: transparent !important;\n }\n\n .d2h-code-side-line {\n padding: 0 4.5em;\n }\n\n .d2h-code-line-ctn {\n word-wrap: normal;\n background: none;\n display: inline-block;\n padding: 0;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n vertical-align: middle;\n white-space: pre;\n width: 100%;\n }\n\n .d2h-code-line del,\n .d2h-code-side-line del {\n background-color: rgba(234, 133, 115, 0.7);\n }\n\n .d2h-code-line del,\n .d2h-code-line ins,\n .d2h-code-side-line del,\n .d2h-code-side-line ins {\n border-radius: 0.2em;\n display: inline-block;\n margin-top: -1px;\n text-decoration: none;\n vertical-align: middle;\n }\n\n .d2h-code-line ins,\n .d2h-code-side-line ins {\n background-color: rgba(85, 188, 138, 0.7);\n text-align: left;\n }\n\n .d2h-code-line-prefix {\n word-wrap: normal;\n background: none;\n display: inline;\n padding: 0;\n white-space: pre;\n }\n\n .line-num1 {\n float: left;\n }\n\n .line-num1,\n .line-num2 {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n padding: 0 0.5em;\n text-overflow: ellipsis;\n width: 3.5em;\n }\n\n .line-num2 {\n float: right;\n }\n\n .d2h-code-linenumber {\n background-color: rgba(239, 244, 249, 0.8);\n border: solid #eee;\n border-width: 0 1px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.3);\n cursor: pointer;\n display: inline-block;\n position: absolute;\n text-align: right;\n width: 7.5em;\n }\n\n .d2h-code-linenumber:after {\n content: '\\\\200b';\n }\n\n .d2h-code-side-linenumber {\n background-color: #fff;\n border: solid #eee;\n border-width: 0 1px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.3);\n cursor: pointer;\n display: inline-block;\n overflow: hidden;\n padding: 0 0.5em;\n position: absolute;\n text-align: right;\n text-overflow: ellipsis;\n width: 4em;\n }\n\n .d2h-code-side-linenumber:after {\n content: '\\\\200b';\n }\n\n .d2h-code-side-emptyplaceholder,\n .d2h-emptyplaceholder {\n background-color: #f1f1f1;\n border-color: #e1e1e1;\n }\n\n .d2h-code-line-prefix,\n .d2h-code-linenumber,\n .d2h-code-side-linenumber,\n .d2h-emptyplaceholder {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .d2h-code-linenumber,\n .d2h-code-side-linenumber {\n direction: rtl;\n }\n\n .d2h-del {\n background-color: #fee8e9;\n border-color: #e9aeae;\n }\n\n .d2h-ins {\n background-color: rgba(162, 216, 187, 0.7);\n border-color: #b4e2b4;\n }\n\n .d2h-info {\n background-color: #f8fafd;\n border-color: #d5e4f2;\n color: rgba(0, 0, 0, 0.3);\n }\n\n .d2h-file-diff .d2h-del.d2h-change {\n background-color: rgba(250, 231, 229, 0.7);\n }\n\n .d2h-file-diff .d2h-ins.d2h-change {\n background-color: rgba(196, 230, 212, 0.7);\n }\n\n .d2h-file-list-wrapper {\n margin-bottom: 10px;\n }\n\n .d2h-file-list-wrapper a {\n color: #3572b0;\n text-decoration: none;\n }\n\n .d2h-file-list-wrapper a:visited {\n color: #3572b0;\n }\n\n .d2h-file-list-header {\n text-align: left;\n }\n\n .d2h-file-list-title {\n font-weight: 700;\n }\n\n .d2h-file-list-line {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n text-align: left;\n }\n\n .d2h-file-list {\n display: block;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .d2h-file-list > li {\n border-bottom: 1px solid #ddd;\n margin: 0;\n padding: 5px 10px;\n }\n\n .d2h-file-list > li:last-child {\n border-bottom: none;\n }\n\n .d2h-file-switch {\n cursor: pointer;\n display: none;\n font-size: 10px;\n }\n\n .d2h-icon {\n fill: currentColor;\n margin-right: 10px;\n vertical-align: middle;\n }\n\n .d2h-deleted {\n color: #c33;\n }\n\n .d2h-added {\n color: #399839;\n }\n\n .d2h-changed {\n color: #d0b44c;\n }\n\n .d2h-moved {\n color: #3572b0;\n }\n\n .d2h-tag {\n background-color: #fff;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 10px;\n margin-left: 5px;\n padding: 0 2px;\n }\n\n .d2h-deleted-tag {\n border: 1px solid #c33;\n }\n\n .d2h-added-tag {\n border: 1px solid #399839;\n }\n\n .d2h-changed-tag {\n border: 1px solid #d0b44c;\n }\n\n .d2h-moved-tag {\n border: 1px solid #3572b0;\n }\n`;\n\nexport const Header = styled.div`\n display: flex;\n align-items: center;\n padding: 12px;\n border-radius: 4px 4px 0 0;\n border: 1px solid #ccd3db;\n background-color: #eff4f9;\n\n .kubed-icon {\n margin-right: 4px;\n }\n\n .switch-mode {\n cursor: pointer;\n }\n`;\n\nexport const Title = styled.span`\n margin-right: 4px;\n font-weight: 600;\n color: #36435c;\n`;\n\nexport const Description = styled.span`\n margin-left: auto;\n font-weight: 600;\n color: #36435c;\n`;\n"],"names":["e"],"mappings":";;;;;;;;;;AAA6C,MAAC,WAAW,CAACA,UAAC,CAAC,GAAG,CAAC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,MAAM,CAACA,UAAC,CAAC,GAAG,CAAC;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,KAAK,CAACA,UAAC,CAAC,IAAI,CAAC;AACf;AACA;AACA;AACA,CAAC,CAAC,WAAW,CAACA,UAAC,CAAC,IAAI,CAAC;AACrB;AACA;AACA;AACA;;;;;;;"}
|
package/esm/DiffViewer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l,{useState as s,useEffect as y}from"react";import{createPatch as h}from"diff";import{parse as v,html as E}from"diff2html";import{Terminal as w,ChevronDown as O,ChevronRight as g}from"@kubed/icons";import{DiffWrapper as j,Header as D,Title as C,Description as F}from"./styles.js";var P=Object.defineProperty,p=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,u=(t,e,r)=>e in t?P(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))k.call(e,r)&&u(t,r,e[r]);if(p)for(var r of p(e))z.call(e,r)&&u(t,r,e[r]);return t};const a=(t,e,r={})=>{const n=h("yaml",t,e,"","",{context:-1}),o=v(n);return E(o,S({drawFileList:!1},r))},T=({title:t,description:e,mode:r="line-by-line",oldValue:n,newValue:o})=>{const[f,b]=s(r),[d,i]=s(a(n,o,{outputFormat:r})),m=c=>{b(c),i(a(n,o,{outputFormat:c}))};return y(()=>{i(a(n,o,{outputFormat:f}))},[n,o]),l.createElement(j,null,l.createElement(D,null,l.createElement(w,{size:20}),l.createElement(C,null,t),l.createElement(O,{size:20,className:"switch-mode",onClick:()=>{m("line-by-line")}}),l.createElement(g,{size:20,className:"switch-mode",onClick:()=>{m("side-by-side")}}),l.createElement(F,null,e)),l.createElement("div",{dangerouslySetInnerHTML:{__html:d}}))};export{T 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":[],"mappings":";;;;;;AAAA,IAAI,
|
|
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","a","H","v","x","N","z","T","k","M"],"mappings":"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"}
|
package/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import{DiffViewer as i}from"./DiffViewer.js";export{i as DiffViewer};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/esm/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../src/styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nexport const DiffWrapper = styled.div`\n border-radius: 4px 4px 0 0;\n //border: 1px solid #ccd3db;\n\n .d2h-wrapper {\n text-align: left;\n }\n\n .d2h-file-header {\n display: none;\n }\n\n .d2h-file-header.d2h-sticky-header {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n\n .d2h-file-stats {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 14px;\n margin-left: auto;\n }\n\n .d2h-lines-added {\n border: 1px solid #b4e2b4;\n border-radius: 5px 0 0 5px;\n color: #399839;\n padding: 2px;\n text-align: right;\n vertical-align: middle;\n }\n\n .d2h-lines-deleted {\n border: 1px solid #e9aeae;\n border-radius: 0 5px 5px 0;\n color: #c33;\n margin-left: 1px;\n padding: 2px;\n text-align: left;\n vertical-align: middle;\n }\n\n .d2h-file-name-wrapper {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 15px;\n width: 100%;\n }\n\n .d2h-file-name {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .d2h-file-wrapper {\n border: 1px solid #ccd3db;\n border-radius: 0 0 4px 4px;\n border-top-width: 0;\n background-color: #fff;\n }\n\n .d2h-file-collapse {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border: 1px solid #ddd;\n border-radius: 3px;\n cursor: pointer;\n display: none;\n font-size: 12px;\n justify-content: flex-end;\n padding: 4px 8px;\n }\n\n .d2h-file-collapse.d2h-selected {\n background-color: #c8e1ff;\n }\n\n .d2h-file-collapse-input {\n margin: 0 4px 0 0;\n }\n\n .d2h-diff-table {\n border-collapse: collapse;\n font-family: Menlo, Consolas, monospace;\n font-size: 13px;\n width: 100%;\n }\n\n .d2h-files-diff {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n }\n\n .d2h-file-diff {\n overflow-y: hidden;\n }\n\n .d2h-file-diff.d2h-d-none,\n .d2h-files-diff.d2h-d-none {\n display: none;\n }\n\n .d2h-file-side-diff {\n display: inline-block;\n overflow-x: scroll;\n overflow-y: hidden;\n width: 50%;\n }\n\n .d2h-code-line {\n padding: 0 8em;\n }\n\n .d2h-code-line,\n .d2h-code-side-line {\n display: inline-block;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n white-space: nowrap;\n width: 100%;\n background-color: transparent !important;\n }\n\n .d2h-code-side-line {\n padding: 0 4.5em;\n }\n\n .d2h-code-line-ctn {\n word-wrap: normal;\n background: none;\n display: inline-block;\n padding: 0;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n vertical-align: middle;\n white-space: pre;\n width: 100%;\n }\n\n .d2h-code-line del,\n .d2h-code-side-line del {\n background-color: rgba(234, 133, 115, 0.7);\n }\n\n .d2h-code-line del,\n .d2h-code-line ins,\n .d2h-code-side-line del,\n .d2h-code-side-line ins {\n border-radius: 0.2em;\n display: inline-block;\n margin-top: -1px;\n text-decoration: none;\n vertical-align: middle;\n }\n\n .d2h-code-line ins,\n .d2h-code-side-line ins {\n background-color: rgba(85, 188, 138, 0.7);\n text-align: left;\n }\n\n .d2h-code-line-prefix {\n word-wrap: normal;\n background: none;\n display: inline;\n padding: 0;\n white-space: pre;\n }\n\n .line-num1 {\n float: left;\n }\n\n .line-num1,\n .line-num2 {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n padding: 0 0.5em;\n text-overflow: ellipsis;\n width: 3.5em;\n }\n\n .line-num2 {\n float: right;\n }\n\n .d2h-code-linenumber {\n background-color: rgba(239, 244, 249, 0.8);\n border: solid #eee;\n border-width: 0 1px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.3);\n cursor: pointer;\n display: inline-block;\n position: absolute;\n text-align: right;\n width: 7.5em;\n }\n\n .d2h-code-linenumber:after {\n content: '\\\\200b';\n }\n\n .d2h-code-side-linenumber {\n background-color: #fff;\n border: solid #eee;\n border-width: 0 1px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.3);\n cursor: pointer;\n display: inline-block;\n overflow: hidden;\n padding: 0 0.5em;\n position: absolute;\n text-align: right;\n text-overflow: ellipsis;\n width: 4em;\n }\n\n .d2h-code-side-linenumber:after {\n content: '\\\\200b';\n }\n\n .d2h-code-side-emptyplaceholder,\n .d2h-emptyplaceholder {\n background-color: #f1f1f1;\n border-color: #e1e1e1;\n }\n\n .d2h-code-line-prefix,\n .d2h-code-linenumber,\n .d2h-code-side-linenumber,\n .d2h-emptyplaceholder {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .d2h-code-linenumber,\n .d2h-code-side-linenumber {\n direction: rtl;\n }\n\n .d2h-del {\n background-color: #fee8e9;\n border-color: #e9aeae;\n }\n\n .d2h-ins {\n background-color: rgba(162, 216, 187, 0.7);\n border-color: #b4e2b4;\n }\n\n .d2h-info {\n background-color: #f8fafd;\n border-color: #d5e4f2;\n color: rgba(0, 0, 0, 0.3);\n }\n\n .d2h-file-diff .d2h-del.d2h-change {\n background-color: rgba(250, 231, 229, 0.7);\n }\n\n .d2h-file-diff .d2h-ins.d2h-change {\n background-color: rgba(196, 230, 212, 0.7);\n }\n\n .d2h-file-list-wrapper {\n margin-bottom: 10px;\n }\n\n .d2h-file-list-wrapper a {\n color: #3572b0;\n text-decoration: none;\n }\n\n .d2h-file-list-wrapper a:visited {\n color: #3572b0;\n }\n\n .d2h-file-list-header {\n text-align: left;\n }\n\n .d2h-file-list-title {\n font-weight: 700;\n }\n\n .d2h-file-list-line {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n text-align: left;\n }\n\n .d2h-file-list {\n display: block;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .d2h-file-list > li {\n border-bottom: 1px solid #ddd;\n margin: 0;\n padding: 5px 10px;\n }\n\n .d2h-file-list > li:last-child {\n border-bottom: none;\n }\n\n .d2h-file-switch {\n cursor: pointer;\n display: none;\n font-size: 10px;\n }\n\n .d2h-icon {\n fill: currentColor;\n margin-right: 10px;\n vertical-align: middle;\n }\n\n .d2h-deleted {\n color: #c33;\n }\n\n .d2h-added {\n color: #399839;\n }\n\n .d2h-changed {\n color: #d0b44c;\n }\n\n .d2h-moved {\n color: #3572b0;\n }\n\n .d2h-tag {\n background-color: #fff;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 10px;\n margin-left: 5px;\n padding: 0 2px;\n }\n\n .d2h-deleted-tag {\n border: 1px solid #c33;\n }\n\n .d2h-added-tag {\n border: 1px solid #399839;\n }\n\n .d2h-changed-tag {\n border: 1px solid #d0b44c;\n }\n\n .d2h-moved-tag {\n border: 1px solid #3572b0;\n }\n`;\n\nexport const Header = styled.div`\n display: flex;\n align-items: center;\n padding: 12px;\n border-radius: 4px 4px 0 0;\n border: 1px solid #ccd3db;\n background-color: #eff4f9;\n\n .kubed-icon {\n margin-right: 4px;\n }\n\n .switch-mode {\n cursor: pointer;\n }\n`;\n\nexport const Title = styled.span`\n margin-right: 4px;\n font-weight: 600;\n color: #36435c;\n`;\n\nexport const Description = styled.span`\n margin-left: auto;\n font-weight: 600;\n color: #36435c;\n`;\n"],"names":[],"mappings":";;AACY,MAAC,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACU,MAAC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACU,MAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC;AACjC;AACA;AACA;AACA,EAAE;AACU,MAAC,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC;AACvC;AACA;AACA;AACA;;;;"}
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../src/styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nexport const DiffWrapper = styled.div`\n border-radius: 4px 4px 0 0;\n //border: 1px solid #ccd3db;\n\n .d2h-wrapper {\n text-align: left;\n }\n\n .d2h-file-header {\n display: none;\n }\n\n .d2h-file-header.d2h-sticky-header {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n\n .d2h-file-stats {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 14px;\n margin-left: auto;\n }\n\n .d2h-lines-added {\n border: 1px solid #b4e2b4;\n border-radius: 5px 0 0 5px;\n color: #399839;\n padding: 2px;\n text-align: right;\n vertical-align: middle;\n }\n\n .d2h-lines-deleted {\n border: 1px solid #e9aeae;\n border-radius: 0 5px 5px 0;\n color: #c33;\n margin-left: 1px;\n padding: 2px;\n text-align: left;\n vertical-align: middle;\n }\n\n .d2h-file-name-wrapper {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 15px;\n width: 100%;\n }\n\n .d2h-file-name {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .d2h-file-wrapper {\n border: 1px solid #ccd3db;\n border-radius: 0 0 4px 4px;\n border-top-width: 0;\n background-color: #fff;\n }\n\n .d2h-file-collapse {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n border: 1px solid #ddd;\n border-radius: 3px;\n cursor: pointer;\n display: none;\n font-size: 12px;\n justify-content: flex-end;\n padding: 4px 8px;\n }\n\n .d2h-file-collapse.d2h-selected {\n background-color: #c8e1ff;\n }\n\n .d2h-file-collapse-input {\n margin: 0 4px 0 0;\n }\n\n .d2h-diff-table {\n border-collapse: collapse;\n font-family: Menlo, Consolas, monospace;\n font-size: 13px;\n width: 100%;\n }\n\n .d2h-files-diff {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n }\n\n .d2h-file-diff {\n overflow-y: hidden;\n }\n\n .d2h-file-diff.d2h-d-none,\n .d2h-files-diff.d2h-d-none {\n display: none;\n }\n\n .d2h-file-side-diff {\n display: inline-block;\n overflow-x: scroll;\n overflow-y: hidden;\n width: 50%;\n }\n\n .d2h-code-line {\n padding: 0 8em;\n }\n\n .d2h-code-line,\n .d2h-code-side-line {\n display: inline-block;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n white-space: nowrap;\n width: 100%;\n background-color: transparent !important;\n }\n\n .d2h-code-side-line {\n padding: 0 4.5em;\n }\n\n .d2h-code-line-ctn {\n word-wrap: normal;\n background: none;\n display: inline-block;\n padding: 0;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n vertical-align: middle;\n white-space: pre;\n width: 100%;\n }\n\n .d2h-code-line del,\n .d2h-code-side-line del {\n background-color: rgba(234, 133, 115, 0.7);\n }\n\n .d2h-code-line del,\n .d2h-code-line ins,\n .d2h-code-side-line del,\n .d2h-code-side-line ins {\n border-radius: 0.2em;\n display: inline-block;\n margin-top: -1px;\n text-decoration: none;\n vertical-align: middle;\n }\n\n .d2h-code-line ins,\n .d2h-code-side-line ins {\n background-color: rgba(85, 188, 138, 0.7);\n text-align: left;\n }\n\n .d2h-code-line-prefix {\n word-wrap: normal;\n background: none;\n display: inline;\n padding: 0;\n white-space: pre;\n }\n\n .line-num1 {\n float: left;\n }\n\n .line-num1,\n .line-num2 {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n padding: 0 0.5em;\n text-overflow: ellipsis;\n width: 3.5em;\n }\n\n .line-num2 {\n float: right;\n }\n\n .d2h-code-linenumber {\n background-color: rgba(239, 244, 249, 0.8);\n border: solid #eee;\n border-width: 0 1px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.3);\n cursor: pointer;\n display: inline-block;\n position: absolute;\n text-align: right;\n width: 7.5em;\n }\n\n .d2h-code-linenumber:after {\n content: '\\\\200b';\n }\n\n .d2h-code-side-linenumber {\n background-color: #fff;\n border: solid #eee;\n border-width: 0 1px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: rgba(0, 0, 0, 0.3);\n cursor: pointer;\n display: inline-block;\n overflow: hidden;\n padding: 0 0.5em;\n position: absolute;\n text-align: right;\n text-overflow: ellipsis;\n width: 4em;\n }\n\n .d2h-code-side-linenumber:after {\n content: '\\\\200b';\n }\n\n .d2h-code-side-emptyplaceholder,\n .d2h-emptyplaceholder {\n background-color: #f1f1f1;\n border-color: #e1e1e1;\n }\n\n .d2h-code-line-prefix,\n .d2h-code-linenumber,\n .d2h-code-side-linenumber,\n .d2h-emptyplaceholder {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .d2h-code-linenumber,\n .d2h-code-side-linenumber {\n direction: rtl;\n }\n\n .d2h-del {\n background-color: #fee8e9;\n border-color: #e9aeae;\n }\n\n .d2h-ins {\n background-color: rgba(162, 216, 187, 0.7);\n border-color: #b4e2b4;\n }\n\n .d2h-info {\n background-color: #f8fafd;\n border-color: #d5e4f2;\n color: rgba(0, 0, 0, 0.3);\n }\n\n .d2h-file-diff .d2h-del.d2h-change {\n background-color: rgba(250, 231, 229, 0.7);\n }\n\n .d2h-file-diff .d2h-ins.d2h-change {\n background-color: rgba(196, 230, 212, 0.7);\n }\n\n .d2h-file-list-wrapper {\n margin-bottom: 10px;\n }\n\n .d2h-file-list-wrapper a {\n color: #3572b0;\n text-decoration: none;\n }\n\n .d2h-file-list-wrapper a:visited {\n color: #3572b0;\n }\n\n .d2h-file-list-header {\n text-align: left;\n }\n\n .d2h-file-list-title {\n font-weight: 700;\n }\n\n .d2h-file-list-line {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n text-align: left;\n }\n\n .d2h-file-list {\n display: block;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .d2h-file-list > li {\n border-bottom: 1px solid #ddd;\n margin: 0;\n padding: 5px 10px;\n }\n\n .d2h-file-list > li:last-child {\n border-bottom: none;\n }\n\n .d2h-file-switch {\n cursor: pointer;\n display: none;\n font-size: 10px;\n }\n\n .d2h-icon {\n fill: currentColor;\n margin-right: 10px;\n vertical-align: middle;\n }\n\n .d2h-deleted {\n color: #c33;\n }\n\n .d2h-added {\n color: #399839;\n }\n\n .d2h-changed {\n color: #d0b44c;\n }\n\n .d2h-moved {\n color: #3572b0;\n }\n\n .d2h-tag {\n background-color: #fff;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: 10px;\n margin-left: 5px;\n padding: 0 2px;\n }\n\n .d2h-deleted-tag {\n border: 1px solid #c33;\n }\n\n .d2h-added-tag {\n border: 1px solid #399839;\n }\n\n .d2h-changed-tag {\n border: 1px solid #d0b44c;\n }\n\n .d2h-moved-tag {\n border: 1px solid #3572b0;\n }\n`;\n\nexport const Header = styled.div`\n display: flex;\n align-items: center;\n padding: 12px;\n border-radius: 4px 4px 0 0;\n border: 1px solid #ccd3db;\n background-color: #eff4f9;\n\n .kubed-icon {\n margin-right: 4px;\n }\n\n .switch-mode {\n cursor: pointer;\n }\n`;\n\nexport const Title = styled.span`\n margin-right: 4px;\n font-weight: 600;\n color: #36435c;\n`;\n\nexport const Description = styled.span`\n margin-left: auto;\n font-weight: 600;\n color: #36435c;\n`;\n"],"names":[],"mappings":";;AAA6C,MAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AACf;AACA;AACA;AACA,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;AACrB;AACA;AACA;AACA;;;;"}
|
package/lib/DiffViewer.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export interface DiffViewerProps {
|
|
|
6
6
|
oldValue: string;
|
|
7
7
|
newValue: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const DiffViewer: ({ title, description, mode, oldValue, newValue, }: DiffViewerProps) => JSX.Element;
|
|
9
|
+
export declare const DiffViewer: ({ title, description, mode, oldValue, newValue, }: DiffViewerProps) => React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=DiffViewer.d.ts.map
|
package/lib/DiffViewer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiffViewer.d.ts","sourceRoot":"","sources":["../src/DiffViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAiBnD,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACvC,IAAI,CAAC,EAAE,cAAc,GAAG,cAAc,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,UAAU,sDAMpB,eAAe,
|
|
1
|
+
{"version":3,"file":"DiffViewer.d.ts","sourceRoot":"","sources":["../src/DiffViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAiBnD,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACvC,IAAI,CAAC,EAAE,cAAc,GAAG,cAAc,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,UAAU,sDAMpB,eAAe,sBAyCjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubed/diff-viewer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.12",
|
|
4
|
+
"homepage": "https://github.com/kubesphere/kube-design",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/kubesphere/kube-design.git",
|
|
8
|
+
"directory": "packages/diff-viewer"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"sideEffects": false,
|
|
4
12
|
"main": "cjs/index.js",
|
|
5
13
|
"module": "esm/index.js",
|
|
6
14
|
"types": "lib/index.d.ts",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"homepage": "https://github.com/kubesphere/kube-design",
|
|
10
15
|
"files": [
|
|
11
16
|
"cjs",
|
|
12
17
|
"esm",
|
|
13
18
|
"lib"
|
|
14
19
|
],
|
|
15
|
-
"repository": {
|
|
16
|
-
"url": "https://github.com/kubesphere/kube-design.git",
|
|
17
|
-
"type": "git",
|
|
18
|
-
"directory": "packages/diff-viewer"
|
|
19
|
-
},
|
|
20
|
-
"peerDependencies": {
|
|
21
|
-
"@kubed/hooks": "0.0.18",
|
|
22
|
-
"@kubed/icons": "0.0.20",
|
|
23
|
-
"react": ">=16.8.6",
|
|
24
|
-
"react-dom": ">=16.8.6",
|
|
25
|
-
"react-is": "^17.0.2"
|
|
26
|
-
},
|
|
27
20
|
"dependencies": {
|
|
28
21
|
"diff": "^5.1.0",
|
|
29
22
|
"diff2html": "^3.4.22",
|
|
30
23
|
"lodash": "^4.17.21",
|
|
31
24
|
"styled-components": "^5.3.0"
|
|
32
25
|
},
|
|
33
|
-
"
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@kubed/hooks": "0.2.12",
|
|
28
|
+
"@kubed/icons": "0.2.12",
|
|
29
|
+
"react": ">=16.8.6",
|
|
30
|
+
"react-dom": ">=16.8.6",
|
|
31
|
+
"react-is": "^17.0.2"
|
|
32
|
+
}
|
|
34
33
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
# @kubed/diff-view
|
|
2
|
-
|
|
3
|
-
## 0.0.23
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [#241](https://github.com/kubesphere/kube-design/pull/241) [`5e80314`](https://github.com/kubesphere/kube-design/commit/5e80314a3681d64d5797f6ffe10019964a10d166) Thanks [@yazhouio](https://github.com/yazhouio)! - chore: Update version
|
|
8
|
-
|
|
9
|
-
- Updated dependencies [[`5e80314`](https://github.com/kubesphere/kube-design/commit/5e80314a3681d64d5797f6ffe10019964a10d166)]:
|
|
10
|
-
- @kubed/hooks@0.0.18
|
|
11
|
-
- @kubed/icons@0.0.20
|
|
12
|
-
|
|
13
|
-
## 0.0.22
|
|
14
|
-
|
|
15
|
-
### Patch Changes
|
|
16
|
-
|
|
17
|
-
- [#221](https://github.com/kubesphere/kube-design/pull/221) [`1e8bc0e`](https://github.com/kubesphere/kube-design/commit/1e8bc0ec1482d3a2aeca4040f32bf0f10008ae0b) Thanks [@donniean](https://github.com/donniean)! - feat: update TopicCircle icon
|
|
18
|
-
|
|
19
|
-
- Updated dependencies [[`1e8bc0e`](https://github.com/kubesphere/kube-design/commit/1e8bc0ec1482d3a2aeca4040f32bf0f10008ae0b)]:
|
|
20
|
-
- @kubed/hooks@0.0.17
|
|
21
|
-
- @kubed/icons@0.0.19
|
|
22
|
-
|
|
23
|
-
## 0.0.21
|
|
24
|
-
|
|
25
|
-
### Patch Changes
|
|
26
|
-
|
|
27
|
-
- [#218](https://github.com/kubesphere/kube-design/pull/218) [`b9714b7`](https://github.com/kubesphere/kube-design/commit/b9714b7cc77c3899f1f63c94f3a62d75739fc324) Thanks [@donniean](https://github.com/donniean)! - feat: add TopicCircle icon
|
|
28
|
-
|
|
29
|
-
- Updated dependencies [[`b9714b7`](https://github.com/kubesphere/kube-design/commit/b9714b7cc77c3899f1f63c94f3a62d75739fc324)]:
|
|
30
|
-
- @kubed/hooks@0.0.16
|
|
31
|
-
- @kubed/icons@0.0.18
|
|
32
|
-
|
|
33
|
-
## 0.0.20
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- [#216](https://github.com/kubesphere/kube-design/pull/216) [`ecec904`](https://github.com/kubesphere/kube-design/commit/ecec9043ceb71055e56375aeb9042cb1416abf57) Thanks [@yazhouio](https://github.com/yazhouio)! - Update react version
|
|
38
|
-
|
|
39
|
-
## 0.0.19
|
|
40
|
-
|
|
41
|
-
### Patch Changes
|
|
42
|
-
|
|
43
|
-
- [#210](https://github.com/kubesphere/kube-design/pull/210) [`20358b2`](https://github.com/kubesphere/kube-design/commit/20358b232e3c6515fc7d847da10862f20eaaee7f) Thanks [@donniean](https://github.com/donniean)! - docs: add hooks docs
|
|
44
|
-
|
|
45
|
-
- Updated dependencies [[`20358b2`](https://github.com/kubesphere/kube-design/commit/20358b232e3c6515fc7d847da10862f20eaaee7f)]:
|
|
46
|
-
- @kubed/hooks@0.0.15
|
|
47
|
-
- @kubed/icons@0.0.17
|
|
48
|
-
|
|
49
|
-
## 0.0.18
|
|
50
|
-
|
|
51
|
-
### Patch Changes
|
|
52
|
-
|
|
53
|
-
- Updated dependencies [[`f5d3e3d`](https://github.com/kubesphere/kube-design/commit/f5d3e3d5b5cb3e72911f93c7e11748ac2ee77674)]:
|
|
54
|
-
- @kubed/icons@0.0.16
|
|
55
|
-
|
|
56
|
-
## 0.0.17
|
|
57
|
-
|
|
58
|
-
### Patch Changes
|
|
59
|
-
|
|
60
|
-
- Updated dependencies [[`4984093`](https://github.com/kubesphere/kube-design/commit/4984093460b0360e3bcd0c50635a538c72f5b747), [`4984093`](https://github.com/kubesphere/kube-design/commit/4984093460b0360e3bcd0c50635a538c72f5b747)]:
|
|
61
|
-
- @kubed/icons@0.0.15
|
|
62
|
-
|
|
63
|
-
## 0.0.16
|
|
64
|
-
|
|
65
|
-
### Patch Changes
|
|
66
|
-
|
|
67
|
-
- Updated dependencies [[`28204d0`](https://github.com/kubesphere/kube-design/commit/28204d0adff3bb783051ce3a57d430857688f74f)]:
|
|
68
|
-
- @kubed/icons@0.0.14
|
|
69
|
-
|
|
70
|
-
## 0.0.15
|
|
71
|
-
|
|
72
|
-
### Patch Changes
|
|
73
|
-
|
|
74
|
-
- Updated dependencies [[`5186c76`](https://github.com/kubesphere/kube-design/commit/5186c76081ed7132e47dc257b8db3e8edeb43f6d)]:
|
|
75
|
-
- @kubed/icons@0.0.13
|
|
76
|
-
|
|
77
|
-
## 0.0.14
|
|
78
|
-
|
|
79
|
-
### Patch Changes
|
|
80
|
-
|
|
81
|
-
- Updated dependencies [[`e706678`](https://github.com/kubesphere/kube-design/commit/e70667829e232d147722766577a48447c49de38a)]:
|
|
82
|
-
- @kubed/icons@0.0.12
|
|
83
|
-
|
|
84
|
-
## 0.0.13
|
|
85
|
-
|
|
86
|
-
### Patch Changes
|
|
87
|
-
|
|
88
|
-
- Updated dependencies [[`76f2dda`](https://github.com/kubesphere/kube-design/commit/76f2ddaffd0fdaec22ccee34c6bb0c0a4b6e56ec)]:
|
|
89
|
-
- @kubed/icons@0.0.11
|
|
90
|
-
|
|
91
|
-
## 0.0.12
|
|
92
|
-
|
|
93
|
-
### Patch Changes
|
|
94
|
-
|
|
95
|
-
- Updated dependencies [[`60c9c09`](https://github.com/kubesphere/kube-design/commit/60c9c098dc55da11d5d4d02f5fbee7c53864aaf2)]:
|
|
96
|
-
- @kubed/icons@0.0.10
|
|
97
|
-
|
|
98
|
-
## 0.0.11
|
|
99
|
-
|
|
100
|
-
### Patch Changes
|
|
101
|
-
|
|
102
|
-
- Updated dependencies [[`a54f891`](https://github.com/kubesphere/kube-design/commit/a54f8918053e2bc6955de8e9fc6f7e2b23eafbb8)]:
|
|
103
|
-
- @kubed/icons@0.0.9
|
|
104
|
-
|
|
105
|
-
## 0.0.10
|
|
106
|
-
|
|
107
|
-
### Patch Changes
|
|
108
|
-
|
|
109
|
-
- Updated dependencies [[`4e7f7b0`](https://github.com/kubesphere/kube-design/commit/4e7f7b00754f8b7d83d89a081b8108c26c0fd74c)]:
|
|
110
|
-
- @kubed/icons@0.0.8
|
|
111
|
-
|
|
112
|
-
## 0.0.9
|
|
113
|
-
|
|
114
|
-
### Patch Changes
|
|
115
|
-
|
|
116
|
-
- Updated dependencies [[`4cda5c3`](https://github.com/kubesphere/kube-design/commit/4cda5c3e11dfd2b763049a0b8bcfb61c44273f47)]:
|
|
117
|
-
- @kubed/icons@0.0.7
|
|
118
|
-
|
|
119
|
-
## 0.0.8
|
|
120
|
-
|
|
121
|
-
### Patch Changes
|
|
122
|
-
|
|
123
|
-
- Updated dependencies [[`1576c58`](https://github.com/kubesphere/kube-design/commit/1576c58579736e11a02c47494ac4785f12ffec4b)]:
|
|
124
|
-
- @kubed/hooks@0.0.14
|
|
125
|
-
|
|
126
|
-
## 0.0.7
|
|
127
|
-
|
|
128
|
-
### Patch Changes
|
|
129
|
-
|
|
130
|
-
- Updated dependencies [[`cc0f605`](https://github.com/kubesphere/kube-design/commit/cc0f6050d1755b883b9649897e80922c90ff108e)]:
|
|
131
|
-
- @kubed/hooks@0.0.13
|
|
132
|
-
|
|
133
|
-
## 0.0.6
|
|
134
|
-
|
|
135
|
-
### Patch Changes
|
|
136
|
-
|
|
137
|
-
- Updated dependencies [[`6c72c31`](https://github.com/kubesphere/kube-design/commit/6c72c31c60ea33241528031c5e5de807c402dcdf)]:
|
|
138
|
-
- @kubed/hooks@0.0.12
|
|
139
|
-
|
|
140
|
-
## 0.0.5
|
|
141
|
-
|
|
142
|
-
### Patch Changes
|
|
143
|
-
|
|
144
|
-
- Updated dependencies [[`d12bdca`](https://github.com/kubesphere/kube-design/commit/d12bdcade70d7b8bac20731e4cf1f3a58c183763)]:
|
|
145
|
-
- @kubed/hooks@0.0.11
|
|
146
|
-
|
|
147
|
-
## 0.0.4
|
|
148
|
-
|
|
149
|
-
### Patch Changes
|
|
150
|
-
|
|
151
|
-
- Updated dependencies [[`c1b0f7c`](https://github.com/kubesphere/kube-design/commit/c1b0f7cad122a41c7c284a67ffccfc2ab607153c)]:
|
|
152
|
-
- @kubed/icons@0.0.6
|
|
153
|
-
|
|
154
|
-
## 0.0.3
|
|
155
|
-
|
|
156
|
-
### Patch Changes
|
|
157
|
-
|
|
158
|
-
- Updated dependencies [[`382db59`](https://github.com/kubesphere/kube-design/commit/382db5997b4d93e02c56687ce6f8aa7686b05953)]:
|
|
159
|
-
- @kubed/icons@0.0.5
|
|
160
|
-
|
|
161
|
-
## 0.0.2
|
|
162
|
-
|
|
163
|
-
### Patch Changes
|
|
164
|
-
|
|
165
|
-
- [`e1cff67`](https://github.com/kubesphere/kube-design/commit/e1cff678e7534068bdd9b330d040c5d2c0288d2e) Thanks [@chenz24](https://github.com/chenz24)! - rename DiffView to DiffViewer.
|
|
166
|
-
|
|
167
|
-
## 0.0.1
|
|
168
|
-
|
|
169
|
-
### Patch Changes
|
|
170
|
-
|
|
171
|
-
- [`8415db6`](https://github.com/kubesphere/kube-design/commit/8415db61f675499d4787c526c42ffd7984e6c2f2) Thanks [@chenz24](https://github.com/chenz24)! - 1. fix: CodeEditor yaml worker error
|
|
172
|
-
2. feat: Add DiffView component
|