diff --git a/core/src/components.d.ts b/core/src/components.d.ts index e933df110c..43f92a2742 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -6,7 +6,7 @@ */ import { HTMLStencilElement, JSXBase } from "@stencil/core/internal"; import { AccordionGroupChangeEventDetail } from "./components/accordion-group/accordion-group-interface"; -import { AnimationBuilder, AutocompleteTypes, Color, ComponentProps, ComponentRef, FrameworkDelegate, OverlayEventDetail as OverlayEventDetail1, StyleEventDetail, TextFieldTypes } from "./interface"; +import { AnimationBuilder, AutocompleteTypes, Color, ComponentProps, ComponentRef, FrameworkDelegate, StyleEventDetail, TextFieldTypes } from "./interface"; import { ActionSheetButton } from "./components/action-sheet/action-sheet-interface"; import { OverlayEventDetail } from "./utils/overlays-interface"; import { IonicSafeString } from "./utils/sanitization"; @@ -39,10 +39,11 @@ import { SelectChangeEventDetail, SelectCompareFn, SelectInterface } from "./com import { SelectPopoverOption } from "./components/select-popover/select-popover-interface"; import { TabBarChangedEventDetail, TabButtonClickEventDetail, TabButtonLayout } from "./components/tab-bar/tab-bar-interface"; import { TextareaChangeEventDetail, TextareaInputEventDetail } from "./components/textarea/textarea-interface"; +import { FrameworkDelegate as FrameworkDelegate1 } from "./utils/overlays"; import { ToastButton, ToastLayout, ToastPosition } from "./components/toast/toast-interface"; import { ToggleChangeEventDetail } from "./components/toggle/toggle-interface"; export { AccordionGroupChangeEventDetail } from "./components/accordion-group/accordion-group-interface"; -export { AnimationBuilder, AutocompleteTypes, Color, ComponentProps, ComponentRef, FrameworkDelegate, OverlayEventDetail as OverlayEventDetail1, StyleEventDetail, TextFieldTypes } from "./interface"; +export { AnimationBuilder, AutocompleteTypes, Color, ComponentProps, ComponentRef, FrameworkDelegate, StyleEventDetail, TextFieldTypes } from "./interface"; export { ActionSheetButton } from "./components/action-sheet/action-sheet-interface"; export { OverlayEventDetail } from "./utils/overlays-interface"; export { IonicSafeString } from "./utils/sanitization"; @@ -75,6 +76,7 @@ export { SelectChangeEventDetail, SelectCompareFn, SelectInterface } from "./com export { SelectPopoverOption } from "./components/select-popover/select-popover-interface"; export { TabBarChangedEventDetail, TabButtonClickEventDetail, TabButtonLayout } from "./components/tab-bar/tab-bar-interface"; export { TextareaChangeEventDetail, TextareaInputEventDetail } from "./components/textarea/textarea-interface"; +export { FrameworkDelegate as FrameworkDelegate1 } from "./utils/overlays"; export { ToastButton, ToastLayout, ToastPosition } from "./components/toast/toast-interface"; export { ToggleChangeEventDetail } from "./components/toggle/toggle-interface"; export namespace Components { @@ -3073,7 +3075,7 @@ export namespace Components { * Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces. */ "cssClass"?: string | string[]; - "delegate"?: FrameworkDelegate; + "delegate"?: FrameworkDelegate1; /** * Dismiss the toast overlay after it has been presented. * @param data Any data to emit in the dismiss events. @@ -3128,11 +3130,11 @@ export namespace Components { /** * Returns a promise that resolves when the toast did dismiss. */ - "onDidDismiss": () => Promise>; + "onDidDismiss": () => Promise>; /** * Returns a promise that resolves when the toast will dismiss. */ - "onWillDismiss": () => Promise>; + "onWillDismiss": () => Promise>; "overlayIndex": number; /** * The position of the toast on the screen. @@ -7175,7 +7177,7 @@ declare namespace LocalJSX { * Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces. */ "cssClass"?: string | string[]; - "delegate"?: FrameworkDelegate; + "delegate"?: FrameworkDelegate1; /** * How many milliseconds to wait before hiding the toast. By default, it will show until `dismiss()` is called. */ @@ -7224,7 +7226,7 @@ declare namespace LocalJSX { /** * Emitted after the toast has dismissed. Shorthand for ionToastDidDismiss. */ - "onDidDismiss"?: (event: IonToastCustomEvent) => void; + "onDidDismiss"?: (event: IonToastCustomEvent) => void; /** * Emitted after the toast has presented. Shorthand for ionToastWillDismiss. */ @@ -7232,7 +7234,7 @@ declare namespace LocalJSX { /** * Emitted after the toast has dismissed. */ - "onIonToastDidDismiss"?: (event: IonToastCustomEvent) => void; + "onIonToastDidDismiss"?: (event: IonToastCustomEvent) => void; /** * Emitted after the toast has presented. */ @@ -7240,7 +7242,7 @@ declare namespace LocalJSX { /** * Emitted before the toast has dismissed. */ - "onIonToastWillDismiss"?: (event: IonToastCustomEvent) => void; + "onIonToastWillDismiss"?: (event: IonToastCustomEvent) => void; /** * Emitted before the toast has presented. */ @@ -7248,7 +7250,7 @@ declare namespace LocalJSX { /** * Emitted before the toast has dismissed. Shorthand for ionToastWillDismiss. */ - "onWillDismiss"?: (event: IonToastCustomEvent) => void; + "onWillDismiss"?: (event: IonToastCustomEvent) => void; /** * Emitted before the toast has presented. Shorthand for ionToastWillPresent. */ diff --git a/core/src/components/toast/toast.tsx b/core/src/components/toast/toast.tsx index d3612b9ed7..a4550b9195 100644 --- a/core/src/components/toast/toast.tsx +++ b/core/src/components/toast/toast.tsx @@ -3,8 +3,9 @@ import { Watch, Component, Element, Event, h, Host, Method, Prop } from '@stenci import { config } from '../../global/config'; import { getIonMode } from '../../global/ionic-global'; -import type { AnimationBuilder, Color, CssClassMap, OverlayEventDetail, OverlayInterface } from '../../interface'; +import type { AnimationBuilder, Color, CssClassMap, OverlayInterface } from '../../interface'; import { printIonWarning } from '../../utils/logging'; +import type { FrameworkDelegate } from '../../utils/overlays'; import { createDelegateController, createTriggerController,