@pradip1995/segment-animation-login 0.1.1 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pradip1995/segment-animation-login",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Motion/Lumière OTP login and account shell",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -16,6 +16,10 @@
16
16
  ".": "./src/index.ts",
17
17
  "./manifest": "./src/manifest.ts"
18
18
  },
19
+ "scripts": {
20
+ "typecheck": "tsc --noEmit",
21
+ "lint": "tsc --noEmit"
22
+ },
19
23
  "peerDependencies": {
20
24
  "@pradip1995/commerce-auth": "^4.0.0",
21
25
  "@pradip1995/commerce-core": "^4.0.0",
@@ -27,8 +31,8 @@
27
31
  "dependencies": {
28
32
  "@medusajs/types": "^2.8.0",
29
33
  "@pradip1995/commerce-core": "^4.0.0",
30
- "@pradip1995/segment-login-template": "^0.5.7",
31
- "@pradip1995/segment-primitives": "^0.4.3",
34
+ "@pradip1995/segment-login-template": "^0.5.13",
35
+ "@pradip1995/segment-primitives": "^0.4.11",
32
36
  "framer-motion": "^11.0.0"
33
37
  },
34
38
  "devDependencies": {
@@ -37,9 +41,5 @@
37
41
  "next": ">=15",
38
42
  "react": "19.0.3",
39
43
  "typescript": "^5.7.2"
40
- },
41
- "scripts": {
42
- "typecheck": "tsc --noEmit",
43
- "lint": "tsc --noEmit"
44
44
  }
45
- }
45
+ }
@@ -7,6 +7,7 @@ import type { HttpTypes } from "@medusajs/types"
7
7
  import { addToCart } from "@pradip1995/commerce-core/client/actions/cart"
8
8
  import LocalizedLink from "@pradip1995/segment-primitives/localized-link"
9
9
  import { formatPrice } from "@pradip1995/segment-primitives/format-price"
10
+ import { presentOrderLines } from "@pradip1995/segment-primitives/order-lines"
10
11
 
11
12
  function isCancelled(order: HttpTypes.StoreOrder) {
12
13
  const status = (order.status || "").toLowerCase()
@@ -105,7 +106,8 @@ export default function AnimationAccountOrders({
105
106
  if (!canReorder(order) || reorderingId) return
106
107
  setReorderingId(order.id)
107
108
  try {
108
- for (const item of order.items || []) {
109
+ const reorderItems = presentOrderLines(order).reorderItems
110
+ for (const item of reorderItems) {
109
111
  if (!item.variant_id) continue
110
112
  await addToCart({
111
113
  variantId: item.variant_id,