diff --git a/src/native-integration/index.ts b/src/native-integration/index.ts index f0320370..1927e36f 100644 --- a/src/native-integration/index.ts +++ b/src/native-integration/index.ts @@ -1,5 +1,5 @@ /// -import type { Animation } from '@ionic/core'; +import type { Animation } from '@ionic/core/components'; export interface NativeUIShellIntegration { suspend(scopes: HTMLElement[]): Promise<(canceled?: boolean) => void>; diff --git a/src/native-integration/transition.ts b/src/native-integration/transition.ts index af0fcb1f..74d4caee 100644 --- a/src/native-integration/transition.ts +++ b/src/native-integration/transition.ts @@ -1,4 +1,4 @@ -import type { AnimationBuilder } from '@ionic/core'; +import type { AnimationBuilder } from '@ionic/core/components'; import { connectNativeUIShellTransition } from './index'; /** diff --git a/src/native/prehide.ts b/src/native/prehide.ts index 5118bdbd..799729d6 100644 --- a/src/native/prehide.ts +++ b/src/native/prehide.ts @@ -1,5 +1,5 @@ import { modalUsesVerticalBars } from './shared/modal'; -import { LIFECYCLE_DID_ENTER, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_ENTER, LIFECYCLE_WILL_LEAVE } from '@ionic/core'; +import { LIFECYCLE_DID_ENTER, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_ENTER, LIFECYCLE_WILL_LEAVE } from '@ionic/core/components/index.js'; import { VERTICAL_BARS_TRANSITION_CANCELED } from '../native-integration'; import { childElements, diff --git a/src/native/runtime.ts b/src/native/runtime.ts index b68c43bb..42517d57 100644 --- a/src/native/runtime.ts +++ b/src/native/runtime.ts @@ -1,6 +1,6 @@ import { inVerticalBarsSurface, topModal, modalUsesVerticalBars, modalVerticalBarFrame } from './shared/modal'; import type { PluginListenerHandle } from '@capacitor/core'; -import { LIFECYCLE_WILL_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_DID_ENTER, LIFECYCLE_DID_LEAVE } from '@ionic/core'; +import { LIFECYCLE_WILL_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_DID_ENTER, LIFECYCLE_DID_LEAVE } from '@ionic/core/components/index.js'; import { VERTICAL_BARS_TRANSITION_CANCELED, getNativeSearchBindings, setNativeUIShellIntegration } from '../native-integration'; import { createSearchSupport } from './components/searchable-tabs'; import type { diff --git a/src/sheets-of-glass/animations.ts b/src/sheets-of-glass/animations.ts index 2f8183bf..fbabcfaa 100644 --- a/src/sheets-of-glass/animations.ts +++ b/src/sheets-of-glass/animations.ts @@ -1,6 +1,6 @@ -import type { Animation, AnimationKeyFrames } from '@ionic/core'; +import type { Animation, AnimationKeyFrames, GestureDetail } from '@ionic/core/components'; import { AnimationPosition, EffectScales } from './interfaces'; -import { createAnimation, GestureDetail } from '@ionic/core'; +import { createAnimation } from '@ionic/core/components/index.js'; import { getStep } from '../utils'; // Work in main/cross-axis coordinates so native horizontal samples also drive the rail. diff --git a/src/sheets-of-glass/index.ts b/src/sheets-of-glass/index.ts index fe910367..c2db7505 100644 --- a/src/sheets-of-glass/index.ts +++ b/src/sheets-of-glass/index.ts @@ -1,6 +1,6 @@ import { AnimationPosition, EffectScales, registeredEffect } from './interfaces'; -import { createAnimation, createGesture } from '@ionic/core'; -import type { Animation, Gesture, GestureDetail } from '@ionic/core'; +import { createAnimation, createGesture } from '@ionic/core/components/index.js'; +import type { Animation, Gesture, GestureDetail } from '@ionic/core/components'; import { changeSelectedElement, cloneElement, getStep } from '../utils'; import { isNativeUIShell } from '../native-integration'; import { diff --git a/src/tab-bar-searchable/animations/enter.ts b/src/tab-bar-searchable/animations/enter.ts index 0fedd804..72233a07 100644 --- a/src/tab-bar-searchable/animations/enter.ts +++ b/src/tab-bar-searchable/animations/enter.ts @@ -1,4 +1,5 @@ -import { Animation, createAnimation } from '@ionic/core'; +import type { Animation } from '@ionic/core/components'; +import { createAnimation } from '@ionic/core/components/index.js'; import { ANIMATION_DELAY_CLOSE_BUTTONS, OPACITY_TRANSITION, type ElementReferences, type ElementSizes } from '@rdlabo/ionic-theme-utils'; import { cloneElement } from '../../utils'; diff --git a/src/tab-bar-searchable/animations/leave.ts b/src/tab-bar-searchable/animations/leave.ts index bdfa20f2..8db3ba52 100644 --- a/src/tab-bar-searchable/animations/leave.ts +++ b/src/tab-bar-searchable/animations/leave.ts @@ -1,4 +1,5 @@ -import { Animation, createAnimation } from '@ionic/core'; +import type { Animation } from '@ionic/core/components'; +import { createAnimation } from '@ionic/core/components/index.js'; import { ANIMATION_DELAY_CLOSE_BUTTONS, OPACITY_TRANSITION, type ElementReferences, type ElementSizes } from '@rdlabo/ionic-theme-utils'; import { cloneElement } from '../../utils'; diff --git a/src/tab-bar-searchable/index.ts b/src/tab-bar-searchable/index.ts index 15050642..10445c75 100644 --- a/src/tab-bar-searchable/index.ts +++ b/src/tab-bar-searchable/index.ts @@ -1,4 +1,4 @@ -import { createAnimation } from '@ionic/core'; +import { createAnimation } from '@ionic/core/components/index.js'; import { addSearchDismissButton } from './dismiss-button'; import { ANIMATION_DELAY_BASE, diff --git a/src/transition/index.ts b/src/transition/index.ts index a092cd30..07e9c7e4 100644 --- a/src/transition/index.ts +++ b/src/transition/index.ts @@ -1,9 +1,9 @@ import { config } from '../utils'; import { Build, writeTask } from '@stencil/core'; -import { LIFECYCLE_DID_ENTER, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_ENTER, LIFECYCLE_WILL_LEAVE } from '@ionic/core'; -import type { NavOptions, NavDirection } from '@ionic/core'; -import type { Animation, AnimationBuilder } from '@ionic/core'; +import { LIFECYCLE_DID_ENTER, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_ENTER, LIFECYCLE_WILL_LEAVE } from '@ionic/core/components/index.js'; +import type { NavOptions, NavDirection } from '@ionic/core/components'; +import type { Animation, AnimationBuilder } from '@ionic/core/components'; import { createFocusController } from '../focus-controller'; import { raf } from '../utils'; diff --git a/src/transition/ios.transition.ts b/src/transition/ios.transition.ts index 80e8f4dc..4c63b566 100644 --- a/src/transition/ios.transition.ts +++ b/src/transition/ios.transition.ts @@ -1,5 +1,5 @@ import { createIosTransitionAnimation, shadow } from '@rdlabo/ionic-theme-utils'; -import type { Animation } from '@ionic/core'; +import type { Animation } from '@ionic/core/components'; import type { TransitionOptions } from './index'; import { getIonPageElement } from './index'; import { withNativeUIShellTransition } from '../native-integration/transition'; diff --git a/src/utils.ts b/src/utils.ts index b9e8a71d..d46ef4c0 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,5 +1,5 @@ import { AnimationPosition } from './sheets-of-glass/interfaces'; -import { IonicConfig } from '@ionic/core'; +import type { IonicConfig } from '@ionic/core/components'; declare const __zone_symbol__requestAnimationFrame: ((callback: FrameRequestCallback) => number) | undefined; declare const requestAnimationFrame: ((callback: FrameRequestCallback) => number) | undefined;