@expressive-code/plugin-frames
Advanced tools
Comparing version 0.33.5 to 0.34.0
// src/index.ts | ||
import { PluginTexts } from "@expressive-code/core"; | ||
import { h } from "hastscript"; | ||
import { h } from "@expressive-code/core/hast"; | ||
@@ -480,3 +480,3 @@ // src/styles.ts | ||
// src/copy-js-module.min.ts | ||
var copy_js_module_min_default = '(()=>{function i(n){let e=document.createElement("pre");Object.assign(e.style,{opacity:"0",pointerEvents:"none",position:"absolute",overflow:"hidden",left:"0",top:"0",width:"20px",height:"20px",webkitUserSelect:"auto",userSelect:"all"}),e.ariaHidden="true",e.textContent=n,document.body.appendChild(e);let r=document.createRange();r.selectNode(e);let o=getSelection();if(!o)return!1;o.removeAllRanges(),o.addRange(r);let a=!1;try{a=document.execCommand("copy")}finally{o.removeAllRanges(),document.body.removeChild(e)}return a}async function l(n){let e=n.currentTarget,r=e.dataset,o=!1,a=r.code.replace(/\\u007f/g,`\n`);try{await navigator.clipboard.writeText(a),o=!0}catch{o=i(a)}if(!o||e.parentNode?.querySelector(".feedback"))return;let t=document.createElement("div");t.classList.add("feedback"),t.append(r.copied),e.before(t),t.offsetWidth,requestAnimationFrame(()=>t?.classList.add("show"));let c=()=>!t||t.classList.remove("show"),d=()=>{!t||parseFloat(getComputedStyle(t).opacity)>0||(t.remove(),t=void 0)};setTimeout(c,1500),setTimeout(d,2500),e.addEventListener("blur",c),t.addEventListener("transitioncancel",d),t.addEventListener("transitionend",d)}var s=n=>{n.querySelectorAll&&n.querySelectorAll("[SELECTOR]").forEach(e=>e.addEventListener("click",l))};s(document);var u=new MutationObserver(n=>n.forEach(e=>e.addedNodes.forEach(r=>{s(r)})));u.observe(document.body,{childList:!0,subtree:!0});document.addEventListener("astro:page-load",()=>{s(document)});})();'; | ||
var copy_js_module_min_default = '(()=>{function i(o){let e=document.createElement("pre");Object.assign(e.style,{opacity:"0",pointerEvents:"none",position:"absolute",overflow:"hidden",left:"0",top:"0",width:"20px",height:"20px",webkitUserSelect:"auto",userSelect:"all"}),e.ariaHidden="true",e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand("copy")}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function l(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\\u007f/g,`\n`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=i(r)}if(!n||e.parentNode?.querySelector(".feedback"))return;let t=document.createElement("div");t.classList.add("feedback"),t.append(a.copied),e.before(t),t.offsetWidth,requestAnimationFrame(()=>t?.classList.add("show"));let c=()=>!t||t.classList.remove("show"),d=()=>{!t||parseFloat(getComputedStyle(t).opacity)>0||(t.remove(),t=void 0)};setTimeout(c,1500),setTimeout(d,2500),e.addEventListener("blur",c),t.addEventListener("transitioncancel",d),t.addEventListener("transitionend",d)}function s(o){o.querySelectorAll?.("[SELECTOR]").forEach(e=>e.addEventListener("click",l))}s(document);var u=new MutationObserver(o=>o.forEach(e=>e.addedNodes.forEach(a=>{s(a)})));u.observe(document.body,{childList:!0,subtree:!0});document.addEventListener("astro:page-load",()=>{s(document)});})();'; | ||
@@ -483,0 +483,0 @@ // src/index.ts |
{ | ||
"name": "@expressive-code/plugin-frames", | ||
"version": "0.33.5", | ||
"version": "0.34.0", | ||
"description": "Frames plugin for Expressive Code. Wraps code blocks in a styled editor or terminal frame with support for titles, multiple tabs and more.", | ||
@@ -14,7 +14,6 @@ "keywords": [], | ||
"type": "module", | ||
"main": "./dist/index.cjs", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.js", | ||
"exports": { | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/index.cjs", | ||
"default": "./dist/index.js" | ||
@@ -27,13 +26,10 @@ }, | ||
"dependencies": { | ||
"@expressive-code/core": "^0.33.5", | ||
"hastscript": "^7.2.0" | ||
"@expressive-code/core": "^0.34.0" | ||
}, | ||
"devDependencies": { | ||
"hast-util-select": "^5.0.5", | ||
"hast-util-to-html": "^8.0.4", | ||
"@expressive-code/plugin-shiki": "^0.33.5", | ||
"@internal/test-utils": "^0.2.26" | ||
"@expressive-code/plugin-shiki": "^0.34.0", | ||
"@internal/test-utils": "^0.2.27" | ||
}, | ||
"scripts": { | ||
"build": "pnpm build-js-modules && tsup ./src/index.ts --format esm,cjs --dts --sourcemap --clean", | ||
"build": "pnpm build-js-modules && tsup ./src/index.ts --format esm --dts --sourcemap --clean", | ||
"build-js-modules": "tsm --require=../../../scripts/lib/filter-warnings.cjs ../../../scripts/build-js-module.ts ./src/copy-js-module.ts", | ||
@@ -40,0 +36,0 @@ "coverage": "vitest run --coverage", |
Sorry, the diff of this file is not supported yet
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1
2
1
84846
6
814
+ Added@ctrl/tinycolor@4.1.0(transitive)
+ Added@expressive-code/core@0.34.2(transitive)
+ Added@types/hast@3.0.4(transitive)
+ Added@types/mdast@4.0.4(transitive)
+ Added@types/unist@3.0.3(transitive)
+ Added@ungap/structured-clone@1.2.1(transitive)
+ Addedbcp-47-match@2.0.3(transitive)
+ Addedboolbase@1.0.0(transitive)
+ Addedcss-selector-parser@3.0.5(transitive)
+ Addeddequal@2.0.3(transitive)
+ Addeddevlop@1.1.0(transitive)
+ Addeddirection@2.0.1(transitive)
+ Addedhast-util-has-property@3.0.0(transitive)
+ Addedhast-util-is-element@3.0.0(transitive)
+ Addedhast-util-parse-selector@4.0.0(transitive)
+ Addedhast-util-select@6.0.3(transitive)
+ Addedhast-util-to-html@9.0.4(transitive)
+ Addedhast-util-to-string@3.0.1(transitive)
+ Addedhast-util-to-text@4.0.2(transitive)
+ Addedhast-util-whitespace@3.0.0(transitive)
+ Addedhastscript@9.0.0(transitive)
+ Addedhtml-void-elements@3.0.0(transitive)
+ Addedmdast-util-to-hast@13.2.0(transitive)
+ Addedmicromark-util-character@2.1.1(transitive)
+ Addedmicromark-util-encode@2.0.1(transitive)
+ Addedmicromark-util-sanitize-uri@2.0.1(transitive)
+ Addedmicromark-util-symbol@2.0.1(transitive)
+ Addedmicromark-util-types@2.0.1(transitive)
+ Addednth-check@2.1.1(transitive)
+ Addedtrim-lines@3.0.1(transitive)
+ Addedunist-util-find-after@5.0.0(transitive)
+ Addedunist-util-is@6.0.0(transitive)
+ Addedunist-util-position@5.0.0(transitive)
+ Addedunist-util-stringify-position@4.0.0(transitive)
+ Addedunist-util-visit@5.0.0(transitive)
+ Addedunist-util-visit-parents@6.0.1(transitive)
+ Addedvfile@6.0.3(transitive)
+ Addedvfile-message@4.0.2(transitive)
- Removedhastscript@^7.2.0
- Removed@ctrl/tinycolor@3.6.1(transitive)
- Removed@expressive-code/core@0.33.5(transitive)
- Removed@types/hast@2.3.10(transitive)
- Removed@types/parse5@6.0.3(transitive)
- Removed@types/unist@2.0.11(transitive)
- Removedhast-util-from-parse5@7.1.2(transitive)
- Removedhast-util-parse-selector@3.1.1(transitive)
- Removedhast-util-raw@7.2.3(transitive)
- Removedhast-util-to-html@8.0.4(transitive)
- Removedhast-util-to-parse5@7.1.0(transitive)
- Removedhast-util-whitespace@2.0.1(transitive)
- Removedhastscript@7.2.0(transitive)
- Removedhtml-void-elements@2.0.1(transitive)
- Removedis-buffer@2.0.5(transitive)
- Removedparse5@6.0.1(transitive)
- Removedunist-util-is@5.2.1(transitive)
- Removedunist-util-position@4.0.4(transitive)
- Removedunist-util-stringify-position@3.0.3(transitive)
- Removedunist-util-visit@4.1.2(transitive)
- Removedunist-util-visit-parents@5.1.3(transitive)
- Removedvfile@5.3.7(transitive)
- Removedvfile-location@4.1.0(transitive)
- Removedvfile-message@3.1.4(transitive)
- Removedweb-namespaces@2.0.1(transitive)