Skip to content

Commit

Permalink
fix(all): import path is now correct when using ionic in a stencil app (
Browse files Browse the repository at this point in the history
#25123)

resolves #25122
  • Loading branch information
liamdebeasi committed Apr 14, 2022
1 parent 8133b5a commit 1b407ab
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 11 deletions.
3 changes: 2 additions & 1 deletion core/src/components/footer/footer.tsx
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion core/src/components/header/header.tsx
@@ -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';
Expand Down
3 changes: 2 additions & 1 deletion core/src/components/infinite-scroll/infinite-scroll.tsx
@@ -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',
Expand Down
3 changes: 2 additions & 1 deletion core/src/components/refresher/refresher.tsx
@@ -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';

Expand Down
3 changes: 2 additions & 1 deletion core/src/components/reorder-group/reorder-group.tsx
@@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions core/src/utils/input-shims/hacks/scroll-assist.ts
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion core/src/utils/input-shims/hacks/scroll-padding.ts
@@ -1,4 +1,4 @@
import { findClosestIonContent } from '@utils/content';
import { findClosestIonContent } from '../../content';

const PADDING_TIMER_KEY = '$ionPaddingTimer';

Expand Down
3 changes: 1 addition & 2 deletions core/src/utils/input-shims/input-shims.ts
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion core/src/utils/status-tap.ts
@@ -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 = () => {
Expand Down

0 comments on commit 1b407ab

Please sign in to comment.