File tree 2 files changed +9
-2
lines changed
packages/sdk-components-animation/src/shared
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ interface ScrollTimelineOptions {
7
7
8
8
declare class ScrollTimeline extends AnimationTimeline {
9
9
constructor ( options ?: ScrollTimelineOptions ) ;
10
+ }
10
11
11
- readonly source : Element | Document | null ;
12
- readonly axis : ScrollAxis ;
12
+ declare class ViewTimeline extends ScrollTimeline {
13
+ constructor ( options ?: ScrollTimelineOptions ) ;
13
14
}
Original file line number Diff line number Diff line change @@ -2,7 +2,13 @@ import { use } from "react";
2
2
3
3
let clientPolyfillCache : null | Promise < void > = null ;
4
4
5
+ const fullfilledPromise = Promise . resolve ( ) ;
6
+
5
7
const polyfill = ( ) => {
8
+ if ( typeof ViewTimeline !== "undefined" ) {
9
+ return fullfilledPromise ;
10
+ }
11
+
6
12
if ( clientPolyfillCache === null ) {
7
13
clientPolyfillCache = import (
8
14
// @ts -expect-error no types exists
You can’t perform that action at this time.
0 commit comments