chore(deps): update to stencil v3 (#26663)

This commit is contained in:
Liam DeBeasi
2023-01-31 18:07:22 -05:00
committed by GitHub
parent e6c7c57466
commit 1a8bd6d8c6
77 changed files with 1280 additions and 1163 deletions

View File

@ -1,13 +1,6 @@
import type {
Animation,
AnimationBuilder,
ComponentProps,
ComponentRef,
FrameworkDelegate,
Mode,
} from '../../interface';
import type { AnimationBuilder, ComponentProps, ComponentRef, FrameworkDelegate, Mode } from '../../interface';
import { ViewController } from './view-controller';
import type { ViewController } from './view-controller';
// TODO(FW-2832): types
@ -54,18 +47,6 @@ export interface NavOptions extends RouterOutletOptions {
viewIsReady?: (enteringEl: HTMLElement) => Promise<any>;
}
export type Page = new (...args: any[]) => any;
export type TransitionResolveFn = (
hasCompleted: boolean,
requiresTransition: boolean,
enteringName?: string,
leavingName?: string,
direction?: string
) => void;
export type TransitionRejectFn = (rejectReason: any, transition?: Animation) => void;
export type TransitionDoneFn = (
hasCompleted: boolean,
requiresTransition: boolean,
@ -94,5 +75,3 @@ export interface TransitionInstruction {
export interface NavCustomEvent extends CustomEvent {
target: HTMLIonNavElement;
}
export { ViewController };

View File

@ -3,30 +3,23 @@ import { Build, Component, Element, Event, Method, Prop, Watch, h } from '@stenc
import { config } from '../../global/config';
import { getIonMode } from '../../global/ionic-global';
import type {
Animation,
AnimationBuilder,
ComponentProps,
FrameworkDelegate,
Gesture,
NavComponent,
NavComponentWithProps,
NavOptions,
NavOutlet,
NavResult,
RouteID,
RouteWrite,
RouterDirection,
TransitionDoneFn,
TransitionInstruction,
ViewController,
} from '../../interface';
import type { Animation, AnimationBuilder, ComponentProps, FrameworkDelegate, Gesture } from '../../interface';
import { getTimeGivenProgression } from '../../utils/animation/cubic-bezier';
import { assert } from '../../utils/helpers';
import type { TransitionOptions } from '../../utils/transition';
import { lifecycle, setPageHidden, transition } from '../../utils/transition';
import type { NavOutlet, RouteID, RouteWrite, RouterDirection } from '../router/utils/interface';
import { LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_LEAVE, LIFECYCLE_WILL_UNLOAD } from './constants';
import type {
NavComponent,
NavComponentWithProps,
NavOptions,
NavResult,
TransitionDoneFn,
TransitionInstruction,
} from './nav-interface';
import type { ViewController } from './view-controller';
import { VIEW_STATE_ATTACHED, VIEW_STATE_DESTROYED, VIEW_STATE_NEW, convertToViews, matches } from './view-controller';
@Component({