@replohq/sdk 1.10.2 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cart/hooks/use-buy-now.d.ts +14 -1
- package/lib/buildMetadata.js +3 -3
- package/package.json +4 -4
|
@@ -14,11 +14,18 @@ export type BuyNowOutcome = {
|
|
|
14
14
|
available: number;
|
|
15
15
|
}[];
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Describes a single variant to send directly to checkout.
|
|
19
|
+
*/
|
|
17
20
|
export interface VariantBuyNowInfo {
|
|
18
21
|
variantId: string;
|
|
19
22
|
quantity?: number;
|
|
20
23
|
sellingPlanId?: string | null;
|
|
21
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Custom line item properties forwarded to checkout. Shopify persists them on the order;
|
|
26
|
+
* Stripe order persistence is not yet supported. Underscore-prefixed keys are hidden at
|
|
27
|
+
* Shopify checkout.
|
|
28
|
+
*/
|
|
22
29
|
properties?: CartLineAttribute[];
|
|
23
30
|
}
|
|
24
31
|
/**
|
|
@@ -47,6 +54,12 @@ export interface VariantBuyNowInfo {
|
|
|
47
54
|
* variantId: selectedVariant.id,
|
|
48
55
|
* quantity,
|
|
49
56
|
* sellingPlanId: selectedSellingPlan?.id,
|
|
57
|
+
* properties: [
|
|
58
|
+
* {
|
|
59
|
+
* key: "Pre-order item",
|
|
60
|
+
* value: "Shipping between Aug 20 - Aug 27",
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
50
63
|
* },
|
|
51
64
|
* ],
|
|
52
65
|
* { discountCodes: ["SUMMER2024"] }
|
package/lib/buildMetadata.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const BUILD_METADATA = {
|
|
2
2
|
"packageName": "@replohq/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"branch": "HEAD",
|
|
5
|
-
"commit": "
|
|
6
|
-
"builtAt": "2026-09-
|
|
5
|
+
"commit": "228f4382ccb4fe484d0d2cd40b0d065ac6441fe2",
|
|
6
|
+
"builtAt": "2026-09-20T22:06:30.997Z"
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replohq/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"reploBuild": {
|
|
5
5
|
"packageName": "@replohq/sdk",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.11.0",
|
|
7
7
|
"branch": "HEAD",
|
|
8
|
-
"commit": "
|
|
9
|
-
"builtAt": "2026-09-
|
|
8
|
+
"commit": "228f4382ccb4fe484d0d2cd40b0d065ac6441fe2",
|
|
9
|
+
"builtAt": "2026-09-20T22:06:30.997Z"
|
|
10
10
|
},
|
|
11
11
|
"description": "Replo SDK — cart, analytics, and data loaders for agent-built Next.js sites.",
|
|
12
12
|
"license": "SEE LICENSE IN LICENSE",
|