msc-code-viewer
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -288,2 +288,3 @@ import { _wcl } from './common-lib.js'; | ||
async connectedCallback() { | ||
const { copy } = this.#nodes; | ||
const { config, error } = await _wcl.getWCConfig(this); | ||
@@ -325,3 +326,3 @@ | ||
const signal = this.#data.controller.signal; | ||
this.#nodes.copy.addEventListener('click', this._onClick, { signal }); | ||
copy.addEventListener('click', this._onClick, { signal }); | ||
if (_wcl.isEventSupport('touchstart')) { | ||
@@ -332,5 +333,5 @@ /* | ||
*/ | ||
this.#nodes.copy.addEventListener('touchstart', this._onTouch, { signal }); | ||
copy.addEventListener('touchstart', this._onTouch, { signal }); | ||
} | ||
this._mutate(); | ||
@@ -337,0 +338,0 @@ } |
{ | ||
"name": "msc-code-viewer", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "As a web developer, show some demo code is a very common stuff. There are so many syntax highlighting libraries for the Web. highlight.js is one of the popular library. It is easy to use and there are so many themes for it. To make it more suitable for me, I wrap highlight.js and GitHub light / dark themes as a web component and named it <msc-code-viewer />. With <msc-code-viewer /> syntax highlighting is a piece of cake. It will switch light / dark mode as user preference. Of course「COPY」feature has already built-in.", | ||
@@ -5,0 +5,0 @@ "main": "index.html", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158025
2444