astro-vtbot
Advanced tools
Comparing version 1.8.2 to 1.8.3
@@ -28,4 +28,12 @@ let show: () => void; | ||
document.addEventListener('astro:page-load', doInit); | ||
document.addEventListener('astro:before-preparation', doShow); | ||
document.addEventListener('astro:after-preparation', doHide); | ||
document.addEventListener('astro:before-preparation', (e) => { | ||
doShow(); | ||
if ('loader' in e) { | ||
const originalLoader = e.loader as () => Promise<void>; | ||
e.loader = async () => { | ||
await originalLoader(); | ||
doHide(); | ||
}; | ||
} | ||
}); | ||
} | ||
@@ -32,0 +40,0 @@ |
@@ -5,3 +5,3 @@ import type { AstroIntegration } from 'astro'; | ||
import icon from '../assets/bag-of-tricks-mono.svg?raw'; | ||
import inspectionChamber from '../../@vtbag/inspection-chamber?raw'; | ||
import inspectionChamber from '@vtbag/inspection-chamber?raw'; | ||
import { fileURLToPath } from 'node:url'; | ||
@@ -8,0 +8,0 @@ |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"description": "The ๐ Bag of Tricks โจ for Astro's View Transitions", | ||
@@ -71,3 +71,3 @@ "homepage": "https://events-3bg.pages.dev/", | ||
"scripts": { | ||
"format": "prettier -w components integration animations test", | ||
"format": "prettier -w components integration animations test | grep -v 'unchanged)$'", | ||
"test": "npm run format; scripts/test.sh", | ||
@@ -78,16 +78,16 @@ "changeset": "changeset", | ||
"dependencies": { | ||
"@vtbag/inspection-chamber": "^1.0.2" | ||
"@vtbag/inspection-chamber": "^1.0.3" | ||
}, | ||
"devDependencies": { | ||
"@astrojs/check": "^0.8.2", | ||
"@astrojs/starlight": "^0.25.1", | ||
"@astrojs/check": "^0.8.3", | ||
"@astrojs/starlight": "^0.25.2", | ||
"@changesets/changelog-github": "0.5.0", | ||
"@changesets/cli": "^2.27.7", | ||
"@playwright/test": "^1.45.2", | ||
"@types/dom-view-transitions": "^1.0.4", | ||
"@types/node": "^20.14.11", | ||
"astro": "^4.11.6", | ||
"@playwright/test": "^1.45.3", | ||
"@types/dom-view-transitions": "^1.0.5", | ||
"@types/node": "^22.0.0", | ||
"astro": "^4.12.2", | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-astro": "^0.14.1", | ||
"typescript": "^5.5.3" | ||
"typescript": "^5.5.4" | ||
}, | ||
@@ -94,0 +94,0 @@ "funding": { |
@@ -8,3 +8,4 @@ No, its **_NOT_** a roBOT ๐ค, its a ๐ <b>B</b>ag <b>o</b>f <b>T</b>ricks!โจ | ||
![Build Status](https://github.com/martrapp/astro-vtbot/actions/workflows/run-tests.yml/badge.svg) | ||
[![npm version](https://img.shields.io/npm/v/astro-vtbot)](https://www.npmjs.com/package/astro-vtbot) | ||
[![npm version](https://img.shields.io/npm/v/astro-vtbot/latest)](https://www.npmjs.com/package/astro-vtbot) | ||
[![NPM Downloads](https://img.shields.io/npm/dw/astro-vtbot)](https://www.npmjs.com/package/astro-vtbot) | ||
@@ -11,0 +12,0 @@ A current deployment of tech demos and the documentation can be found at https://events-3bg.pages.dev/ |
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
126760
1429
94