fix(): update to Stencil One 🎉🎊

This commit is contained in:
Manu MA
2019-06-19 21:33:50 +02:00
committed by GitHub
parent 7f1829eb21
commit b40f7d36d5
572 changed files with 14426 additions and 9916 deletions

View File

@ -1,4 +1,4 @@
import { QueueApi } from '@stencil/core';
import { writeTask } from '@stencil/core';
import { LIFECYCLE_DID_ENTER, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_ENTER, LIFECYCLE_WILL_LEAVE } from '../../components/nav/constants';
import { Animation, AnimationBuilder, NavDirection, NavOptions } from '../../interface';
@ -8,7 +8,7 @@ const mdTransitionAnimation = () => import('./md.transition');
export function transition(opts: TransitionOptions): Promise<TransitionResult> {
return new Promise((resolve, reject) => {
opts.queue.write(() => {
writeTask(() => {
beforeTransition(opts);
runTransition(opts).then(result => {
if (result.animation) {
@ -214,7 +214,6 @@ function setZIndex(
}
export interface TransitionOptions extends NavOptions {
queue: QueueApi;
progressCallback?: ((ani: Animation | undefined) => void);
window: Window;
baseEl: any;