@contentstack/live-preview-utils
Version:
Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.
1 lines • 718 B
Source Map (JSON)
{"version":3,"sources":["../../../src/utils/compare.ts"],"sourcesContent":["const DIFF_WRAPPER = \"cs-compare\";\n\nexport function registerCompareElement() {\n class Compare extends HTMLSpanElement {\n constructor() {\n super();\n }\n }\n\n if (!customElements.get(DIFF_WRAPPER)) {\n customElements.define(DIFF_WRAPPER, Compare, {\n extends: \"span\",\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAM,eAAe;AAEd,SAAS,yBAAyB;AAAA,EACrC,MAAM,gBAAgB,gBAAgB;AAAA,IAClC,cAAc;AACV,YAAM;AAAA,IACV;AAAA,EACJ;AAEA,MAAI,CAAC,eAAe,IAAI,YAAY,GAAG;AACnC,mBAAe,OAAO,cAAc,SAAS;AAAA,MACzC,SAAS;AAAA,IACb,CAAC;AAAA,EACL;AACJ;","names":[]}