From 010c4501c31a5c4515aecadac56436302474a883 Mon Sep 17 00:00:00 2001 From: rdlabo Date: Fri, 2 Oct 2026 16:39:52 +0900 Subject: [PATCH] fix: import Ionic custom-element utilities in ios26 --- src/popover/animations/ios.enter.ts | 4 ++-- src/popover/animations/ios.leave.ts | 4 ++-- src/sheets-of-glass/animations.ts | 4 ++-- src/sheets-of-glass/index.ts | 4 ++-- src/tab-bar-searchable/animations/enter.ts | 3 ++- src/tab-bar-searchable/animations/leave.ts | 3 ++- src/tab-bar-searchable/index.ts | 2 +- src/transition/index.ts | 6 +++--- src/transition/ios.transition.ts | 2 +- src/utils.ts | 2 +- 10 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/popover/animations/ios.enter.ts b/src/popover/animations/ios.enter.ts index 2d40fb1f..2f6453ff 100644 --- a/src/popover/animations/ios.enter.ts +++ b/src/popover/animations/ios.enter.ts @@ -1,5 +1,5 @@ -import { createAnimation } from '@ionic/core'; -import type { Animation } from '@ionic/core'; +import { createAnimation } from '@ionic/core/components/index.js'; +import type { Animation } from '@ionic/core/components'; import { calculateWindowAdjustment, createCalloutSurface, diff --git a/src/popover/animations/ios.leave.ts b/src/popover/animations/ios.leave.ts index d466954e..15b9cbc2 100644 --- a/src/popover/animations/ios.leave.ts +++ b/src/popover/animations/ios.leave.ts @@ -1,7 +1,7 @@ -import { createAnimation } from '@ionic/core'; +import { createAnimation } from '@ionic/core/components/index.js'; import { getElementRoot } from '../../utils'; -import type { Animation } from '@ionic/core'; +import type { Animation } from '@ionic/core/components'; /** * iOS Popover Leave Animation diff --git a/src/sheets-of-glass/animations.ts b/src/sheets-of-glass/animations.ts index 3206037a..42c2629c 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'; export const getScaleAnimation = (effectElement: Element): Animation => { diff --git a/src/sheets-of-glass/index.ts b/src/sheets-of-glass/index.ts index 18d180fe..ee3b9609 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 { createMoveAnimation, createPreMoveAnimation, getMoveAnimationKeyframe, getScaleAnimation } from './animations'; 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 4e881fd3..25315edb 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 { ANIMATION_DELAY_BASE, ANIMATION_DURATION, diff --git a/src/transition/index.ts b/src/transition/index.ts index 607ebf40..7cf79df1 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 3bf066f8..9f27e9c2 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'; diff --git a/src/utils.ts b/src/utils.ts index 126f620c..a1581812 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: any; declare const requestAnimationFrame: any;