Skip to content

Add POS intercept API types#4520

Draft
vctrchu wants to merge 2 commits into
2026-07-rcfrom
pos-intercept-api
Draft

Add POS intercept API types#4520
vctrchu wants to merge 2 commits into
2026-07-rcfrom
pos-intercept-api

Conversation

@vctrchu

@vctrchu vctrchu commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Adds POS shopify.intercept() typing to the background ShopifyGlobal used by pos.app.ready.data.
  • Adds the first interceptable POS workflow, beforecheckout, with a cart-bearing event payload.
  • Adds the interceptor result shape from the UI API Design proposal: operations with optional validationAdd entries (INFO / WARNING / ERROR, handle, message, optional target and metafields).

Why

Follow the API direction in Shopify/ui-api-design#1557 so POS extensions can type against a synchronous, client-side blocking workflow primitive while host enforcement stays in POS.

Assisted-By: devx/f72cb0ba-11c1-4cc7-ab65-755169af9570
@vctrchu

vctrchu commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

/snapit

@shopify-github-actions-access

Copy link
Copy Markdown
Contributor

🫰✨ Thanks @vctrchu! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

"@shopify/ui-extensions": "0.0.0-snapshot-20260622195723",
"@shopify/ui-extensions-tester": "0.0.0-snapshot-20260622195723"

Assisted-By: devx/f72cb0ba-11c1-4cc7-ab65-755169af9570
@vctrchu

vctrchu commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

/snapit

@shopify-github-actions-access

Copy link
Copy Markdown
Contributor

🫰✨ Thanks @vctrchu! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

"@shopify/ui-extensions": "0.0.0-snapshot-20260622201242",
"@shopify/ui-extensions-tester": "0.0.0-snapshot-20260622201242"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant