Skip to content

Commit

Permalink
bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Oct 22, 2024
1 parent 28dd67d commit 7ae6523
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.9",
"@eslint/js": "^9.12.0",
"@eslint/js": "^9.13.0",
"@types/dom-view-transitions": "^1.0.5",
"esbuild": "^0.24.0",
"prettier": "^3.3.3",
Expand Down
23 changes: 23 additions & 0 deletions src/dom-view-transisions-level2.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
declare global {
interface PageSwapEvent extends Event {
viewTransition: ViewTransition;
activation: NavigationActivation;
}

type UpdateCallback = undefined | (() => void | Promise<void>);
type StartViewTransitionParameter
= UpdateCallback | { types?: string[]; update: UpdateCallback };

interface Document {
startViewTransition(param: StartViewTransitionParameter): ViewTransition;
}
interface PageRevealEvent extends Event {
viewTransition: ViewTransition;
}
Expand All @@ -12,10 +20,25 @@ declare global {
pagereveal: PageRevealEvent;
}

interface NavigationActivation {
entry: NavigationEntry;
from: NavigationEntry;
navigationType: string;
}
interface AnimationEffect {
target: HTMLElement;
pseudoElement?: string;
getKeyframes: () => Keyframe[];
}

interface ViewTransition {
types: Set<string>;
}
interface Window {
navigation: Navigation;
}
interface Navigation {
activation: NavigationActivation;
}
}
export {};

0 comments on commit 7ae6523

Please sign in to comment.