fix(all): import path is now correct when using ionic in a stencil app (#25123)

resolves #25122
This commit is contained in:
Liam DeBeasi
2022-04-14 19:19:52 +05:45
committed by GitHub
parent 8133b5a9f1
commit 1b407abdf5
9 changed files with 13 additions and 11 deletions

View File

@@ -1,8 +1,9 @@
import type { ComponentInterface } from '@stencil/core';
import { Component, Element, Host, Prop, h } from '@stencil/core';
import { findIonContent, getScrollElement, printIonContentErrorMsg } from '@utils/content';
import { getIonMode } from '../../global/ionic-global';
import { findIonContent, getScrollElement, printIonContentErrorMsg } from '../../utils/content';
import { handleFooterFade } from './footer.utils';

View File

@@ -1,8 +1,8 @@
import type { ComponentInterface } from '@stencil/core';
import { Component, Element, Host, Prop, h, writeTask } from '@stencil/core';
import { findIonContent, getScrollElement, printIonContentErrorMsg } from '@utils/content';
import { getIonMode } from '../../global/ionic-global';
import { findIonContent, getScrollElement, printIonContentErrorMsg } from '../../utils/content';
import type { Attributes } from '../../utils/helpers';
import { inheritAttributes } from '../../utils/helpers';
import { hostContext } from '../../utils/theme';

View File

@@ -1,8 +1,9 @@
import type { ComponentInterface, EventEmitter } from '@stencil/core';
import { Component, Element, Event, Host, Method, Prop, State, Watch, h, readTask, writeTask } from '@stencil/core';
import { findClosestIonContent, getScrollElement, printIonContentErrorMsg } from '@utils/content';
import { getIonMode } from '../../global/ionic-global';
import { findClosestIonContent, getScrollElement, printIonContentErrorMsg } from '../../utils/content';
@Component({
tag: 'ion-infinite-scroll',

View File

@@ -1,10 +1,11 @@
import type { ComponentInterface, EventEmitter } from '@stencil/core';
import { Component, Element, Event, Host, Method, Prop, State, Watch, h, readTask, writeTask } from '@stencil/core';
import { findClosestIonContent, getScrollElement, printIonContentErrorMsg } from '@utils/content';
import { getIonMode } from '../../global/ionic-global';
import type { Animation, Gesture, GestureDetail, RefresherEventDetail } from '../../interface';
import { getTimeGivenProgression } from '../../utils/animation/cubic-bezier';
import { findClosestIonContent, getScrollElement, printIonContentErrorMsg } from '../../utils/content';
import { clamp, getElementRoot, raf, transitionEndAsync } from '../../utils/helpers';
import { hapticImpact } from '../../utils/native/haptic';

View File

@@ -1,9 +1,10 @@
import type { ComponentInterface, EventEmitter } from '@stencil/core';
import { Component, Element, Event, Host, Method, Prop, State, Watch, h } from '@stencil/core';
import { findClosestIonContent, getScrollElement } from '@utils/content';
import { getIonMode } from '../../global/ionic-global';
import type { Gesture, GestureDetail, ItemReorderEventDetail } from '../../interface';
import { findClosestIonContent, getScrollElement } from '../../utils/content';
import { hapticSelectionChanged, hapticSelectionEnd, hapticSelectionStart } from '../../utils/native/haptic';
const enum ReorderGroupState {

View File

@@ -1,5 +1,4 @@
import { getScrollElement, scrollByPoint } from '@utils/content';
import { getScrollElement, scrollByPoint } from '../../content';
import { pointerCoord, raf } from '../../helpers';
import { isFocused, relocateInput } from './common';

View File

@@ -1,4 +1,4 @@
import { findClosestIonContent } from '@utils/content';
import { findClosestIonContent } from '../../content';
const PADDING_TIMER_KEY = '$ionPaddingTimer';

View File

@@ -1,6 +1,5 @@
import { findClosestIonContent } from '@utils/content';
import type { Config } from '../../interface';
import { findClosestIonContent } from '../content';
import { componentOnReady } from '../helpers';
import { enableHideCaretOnScroll } from './hacks/hide-caret';

View File

@@ -1,6 +1,6 @@
import { readTask, writeTask } from '@stencil/core';
import { findClosestIonContent, scrollToTop } from '@utils/content';
import { findClosestIonContent, scrollToTop } from './content';
import { componentOnReady } from './helpers';
export const startStatusTap = () => {