astro-vtbot
Advanced tools
Comparing version 1.9.3 to 1.9.4
@@ -86,3 +86,5 @@ const decodeDiv = document.createElement('div'); | ||
const matches = text.matchAll(new RegExp(`${property}:\\s*([^;}]*)`, 'gu')); | ||
[...matches].forEach((match) => set.add(decode(property, match[1]!))); | ||
[...matches].forEach((match) => | ||
set.add(decode(property, match[1]!.replace(/\s*!important\s*$/, ''))) | ||
); | ||
}); | ||
@@ -89,0 +91,0 @@ |
@@ -44,3 +44,3 @@ const PERSIST_ATTR = "data-astro-transition-persist"; | ||
newEl.replaceWith(el); | ||
if (newEl.localName === "astro-island" && shouldCopyProps(el)) { | ||
if (newEl.localName === "astro-island" && shouldCopyProps(el) && !isSameProps(el, newEl)) { | ||
el.setAttribute("ssr", ""); | ||
@@ -90,2 +90,5 @@ el.setAttribute("props", newEl.getAttribute("props")); | ||
}; | ||
const isSameProps = (oldEl, newEl) => { | ||
return oldEl.getAttribute("props") === newEl.getAttribute("props"); | ||
}; | ||
const swapFunctions = { | ||
@@ -92,0 +95,0 @@ deselectScripts, |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.9.3", | ||
"version": "1.9.4", | ||
"description": "The π Bag of Tricks β¨ for Astro's View Transitions", | ||
@@ -80,3 +80,3 @@ "homepage": "https://events-3bg.pages.dev/", | ||
"@vtbag/element-crossing": "^1.0.1", | ||
"@vtbag/inspection-chamber": "^1.0.12" | ||
"@vtbag/inspection-chamber": "^1.0.13" | ||
}, | ||
@@ -91,3 +91,3 @@ "devDependencies": { | ||
"@types/node": "^22.5.5", | ||
"astro": "^4.15.5", | ||
"astro": "^4.15.8", | ||
"prettier": "^3.3.3", | ||
@@ -94,0 +94,0 @@ "prettier-plugin-astro": "^0.14.1", |
@@ -19,6 +19,6 @@ No, its **_NOT_** a roBOT π€, its a π <b>B</b>ag <b>o</b>f <b>T</b>ricks!β¨ | ||
Bug fix for the Linter and an update of the InspectionChamber! | ||
Bug fix and version bumps. | ||
For details, see the [CHANGELOG of the Bag](https://github.com/martrapp/astro-vtbot/blob/main/CHANGELOG.md) and of the [CHANGELOG of the InstructionChamber](https://github.com/vtbag/inspection-chamber/blob/main/CHANGELOG.md) | ||
For details, see the [CHANGELOG](https://github.com/martrapp/astro-vtbot/blob/main/CHANGELOG.md) | ||
@@ -25,0 +25,0 @@ ## Recently Learned Tricks ## |
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
130844
1491