Skip to content

Conversation

oluwatimio
Copy link
Contributor

@oluwatimio oluwatimio commented Jul 14, 2025

Background

Partially fixes https://github.com/shop/issues-checkout/issues/6460

Solution

Added a toast api on standard api itself

🎩

Im just adding the type and nothing else for now.

Will update docs and remove toast from ui in a follow up once implementation is complete in the host

Checklist

  • I have 🎩'd these changes
  • I have updated relevant documentation

/**
* Methods to interact with the extension's UI.
*/
ui: Ui;
Copy link
Contributor Author

@oluwatimio oluwatimio Jul 14, 2025

Choose a reason for hiding this comment

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

Will remove toast type on here once we have completed moving this over + docs shipped but for now leaving it in here as we need the toast api on standard api to implement shopify.toast on the host

@oluwatimio oluwatimio self-assigned this Jul 14, 2025
@oluwatimio oluwatimio changed the title Add toast api Add toast api on standard api Jul 14, 2025
@oluwatimio
Copy link
Contributor Author

/snapit

@shopify-github-actions-access
Copy link
Contributor

🫰✨ Thanks @oluwatimio! Your snapshot has been published to npm.

Test the snapshot by updating your package.json with the newly published version:

"@shopify/ui-extensions": "0.0.0-snapshot-20250714180216"

}

export interface ToastApiResult {
hide: () => void;
Copy link
Member

Choose a reason for hiding this comment

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

we currently do not support hide

show: (content: string, options?: ShowToastOptions) => void;

Are we going to implement this as part of the 2025-10 version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@robin-drexler Yes! we are adding support for it here https://github.com/shop/world/pull/106014

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Im updating this type so I can expose that change on standard api :)

@oluwatimio oluwatimio force-pushed the timi/add-toast-api branch from 2be16bc to f594ead Compare July 21, 2025 17:47
@oluwatimio oluwatimio merged commit 505d5fb into 2025-10-rc Jul 21, 2025
5 checks passed
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.

4 participants