Repository navigation
docs: import core APIs from the framework packages - #4929
Open
brandyscarney wants to merge 7 commits into
Open
brandyscarney wants to merge 7 commits into
brandyscarney wants to merge 7 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the Angular, React and Vue examples to import
getMode,componentOnReady,menuController,setNonceand the overlay, checkbox and select types from the framework package instead of@ionic/core, now that ionic-team/ionic-framework#31864 re-exports them. Importing from@ionic/coreonly works when npm hoists it, so these examples fail with pnpm or Yarn PnP.@ionic/angular,@ionic/reactor@ionic/vue.componentOnReadyfrom the framework package.setNonceexample has a tab per framework. React, Vue and Angular standalone render with a different Ionic build than@ionic/core/loader, so the old import never applied the nonce to their components. The JavaScript tab now uses a<meta name="csp-nonce">tag, because the quickstart loads/ionic.esm.js, which has its ownsetNonce, so the@ionic/core/loaderimport didn't reach its components either. Every Ionic build reads the meta tag when it has no nonce set.|| 'md'fallback, sincegetMode()already returnsmdwhen no mode is set.9.0.15-dev.11796247574.1ecbe59d, which includes feat(angular, react, vue): export additional core APIs ionic-framework#31864, so the changed examples work in StackBlitz. It replaces the toggle dev build9.0.13-dev.11795209321.12c3c69e, which it also includes.JavaScript, Stencil and "Ionic Core + TypeScript" examples, and the 6.0 upgrade guide, still import from
@ionic/core.The JavaScript example on the mode page opens in StackBlitz with an empty button. That's an existing bug on
main, fixed separately in #4931.Accessing the mode
Ionic and CSP