Files
klz-cables.com/.pnpm-store/v10/files/9b/5c5d10b356f3ebfc3612bf5e7c35a3357343f7a28970a3f1a8d244fb85afc46a7785b04ac7c1b19e49de15d626ec08f8647c760f77e1ceb2a3fe6584b57ca6
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

32 lines
828 B
Plaintext

import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { HtmlDiff } from './diff/index.js';
import './index.scss';
const baseClass = 'html-diff';
export const getHTMLDiffComponents = ({
fromHTML,
toHTML,
tokenizeByCharacter
}) => {
const diffHTML = new HtmlDiff(fromHTML, toHTML, {
tokenizeByCharacter
});
const [oldHTML, newHTML] = diffHTML.getSideBySideContents();
const From = oldHTML ? /*#__PURE__*/_jsx("div", {
className: `${baseClass}__diff-old html-diff`,
dangerouslySetInnerHTML: {
__html: oldHTML
}
}) : null;
const To = newHTML ? /*#__PURE__*/_jsx("div", {
className: `${baseClass}__diff-new html-diff`,
dangerouslySetInnerHTML: {
__html: newHTML
}
}) : null;
return {
From,
To
};
};
//# sourceMappingURL=index.js.map