Skip to content

Conversation

@kieran-osgood-shopify
Copy link
Contributor

@kieran-osgood-shopify kieran-osgood-shopify commented Jan 6, 2026

What changes are you making?

Adds linkClick eventListener type for use in imperative api (.present())


PR Checklist

Important

Releasing a new version of the kit?


Tip

See the Contributing documentation for instructions on how to publish a new version of the library.

@kieran-osgood-shopify kieran-osgood-shopify changed the title Add onLinkClick global event (imperative api) Draft Add onLinkClick global event (imperative api) Jan 6, 2026
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the fix.pd/add-on-link-click-global-event branch 2 times, most recently from 749e6f8 to 1e50cf3 Compare January 7, 2026 10:01
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Coverage Report

Lines Statements Branches Functions
Coverage: 84%
83.03% (235/283) 83.45% (111/133) 83.33% (65/78)

@kieran-osgood-shopify kieran-osgood-shopify changed the title Draft Add onLinkClick global event (imperative api) Add onLinkClick global event (imperative api) Jan 7, 2026
@kieran-osgood-shopify kieran-osgood-shopify marked this pull request as ready for review January 7, 2026 10:18
@kieran-osgood-shopify kieran-osgood-shopify requested a review from a team as a code owner January 7, 2026 10:18
@kieran-osgood-shopify kieran-osgood-shopify self-assigned this Jan 7, 2026
}

func checkoutDidClickLink(url: URL) {
if hasListeners {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use emit

@kieran-osgood-shopify kieran-osgood-shopify force-pushed the fix.pd/add-on-link-click-global-event branch from 1e50cf3 to 37456c5 Compare January 7, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant