Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions platforms/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
"verify": "publint",
"prepack": "pnpm run build"
},
"dependencies": {
"@shopify/checkout-kit-protocol": "workspace:*"
},
"devDependencies": {
"@custom-elements-manifest/analyzer": "^0.10.4",
"@types/node": "^22.10.0",
Expand Down
218 changes: 119 additions & 99 deletions platforms/web/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions platforms/web/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- '../../protocol/languages/typescript'
2 changes: 1 addition & 1 deletion platforms/web/src/checkout.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { afterEach, describe, expect, it, vi } from "vitest";

import type { Checkout, CheckoutProtocolMessageMap, UcpErrorResponse } from "./checkout.types";
import type { CheckoutMessageError } from "./ucp-embed-types";
import type { CheckoutMessageError } from "@shopify/checkout-kit-protocol/web";
import "./checkout-web-component";
import {
DEFAULT_POPUP_WIDTH,
Expand Down
9 changes: 5 additions & 4 deletions platforms/web/src/checkout.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Types for this component are derived from the 2026-04-08 UCP embedded
// checkout protocol. Embed payload shapes live in `./ucp-embed-types.ts`.
// Types for this component are derived from the UCP embedded checkout
// protocol. Wire payload shapes are generated from the canonical JSON schemas
// in `@shopify/checkout-kit-protocol/web`.

import type {
Buyer,
Expand All @@ -10,7 +11,7 @@ import type {
OrderConfirmation,
Total,
UcpErrorResponse,
} from "./ucp-embed-types";
} from "@shopify/checkout-kit-protocol/web";

// This component should follow the custom element conventions set out here:
// https://github.com/Shopify/ui-api-design/tree/main/codex. In particular,
Expand Down Expand Up @@ -262,4 +263,4 @@ export type {
OrderConfirmation,
Total,
UcpErrorResponse,
} from "./ucp-embed-types";
} from "@shopify/checkout-kit-protocol/web";
350 changes: 0 additions & 350 deletions platforms/web/src/ucp-embed-types.ts

This file was deleted.

Loading
Loading