feat(shared,ui): Add onMoment prop to GoogleOneTap#8099
feat(shared,ui): Add onMoment prop to GoogleOneTap#8099
onMoment prop to GoogleOneTap#8099Conversation
🦋 Changeset detectedLatest commit: 675e29e The changes in this PR will be included in the next version bump. This PR includes changesets to release 21 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis change introduces event lifecycle tracking for the GoogleOneTap component. A new 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📝 Coding Plan
Comment Tip CodeRabbit can generate a title for your PR based on the changes.Add |
Description
onMomentcallback prop to<GoogleOneTap>, exposing Google'sPromptMomentNotificationfor tracking when the One Tap prompt isdisplayed,dismissed, orskippedGoogleOneTapMomentNotificationtype from@clerk/sharedwith full GIS notification surface (getMomentType,isDisplayMoment,getDismissedReason, etc.)reffor the callback to avoid stale closures, and wraps invocation in try/catch so a throwing callback never blockscloseGoogleOneTap()Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit
onMomentcallback prop. This callback receives notification events when the prompt is displayed, dismissed, or skipped, allowing you to monitor prompt lifecycle changes.