From 6da82aab816b28bfc174f7634ded1fc1e06502ab Mon Sep 17 00:00:00 2001 From: Francisco Pladano <53949381+fpladano@users.noreply.github.com> Date: Mon, 9 Oct 2023 11:51:34 -0500 Subject: [PATCH] feat(angular, react, vue, core): export openURL utility (#28295) Issue number: resolves #27911 --------- ## What is the current behavior? The `openURL` utility is not available to developers. ## What is the new behavior? - Export `openURL` utilities from `@ionic/core`, `@ionic/angular`, `@ionic/react` and `@ionic/vue`. ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information --- core/src/index.ts | 1 + packages/angular/src/index.ts | 1 + packages/react/src/components/index.ts | 1 + packages/vue/src/index.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/core/src/index.ts b/core/src/index.ts index 6bf73d5961..90f4199de5 100644 --- a/core/src/index.ts +++ b/core/src/index.ts @@ -11,6 +11,7 @@ export { componentOnReady } from './utils/helpers'; export { isPlatform, Platforms, PlatformConfig, getPlatforms } from './utils/platform'; export { IonicSafeString } from './utils/sanitization'; export { IonicConfig, getMode, setupConfig } from './utils/config'; +export { openURL } from './utils/theme'; export { LIFECYCLE_WILL_ENTER, LIFECYCLE_DID_ENTER, diff --git a/packages/angular/src/index.ts b/packages/angular/src/index.ts index 366ccf3742..2c4d4482cb 100644 --- a/packages/angular/src/index.ts +++ b/packages/angular/src/index.ts @@ -131,4 +131,5 @@ export { ToggleChangeEventDetail, ToggleCustomEvent, TransitionOptions, + openURL, } from '@ionic/core'; diff --git a/packages/react/src/components/index.ts b/packages/react/src/components/index.ts index bfe29ae659..8d3f178bf9 100644 --- a/packages/react/src/components/index.ts +++ b/packages/react/src/components/index.ts @@ -10,6 +10,7 @@ export { IonicSlides, getTimeGivenProgression, getIonPageElement, + openURL, // TYPES Animation, diff --git a/packages/vue/src/index.ts b/packages/vue/src/index.ts index 99822141c5..1aaab322d9 100644 --- a/packages/vue/src/index.ts +++ b/packages/vue/src/index.ts @@ -48,6 +48,7 @@ export { menuController, getTimeGivenProgression, getIonPageElement, + openURL, // TYPES Animation,