@pradip1995/segment-login-template 0.5.26 → 0.5.28

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.
Files changed (43) hide show
  1. package/package.json +58 -54
  2. package/src/account-addresses.tsx +307 -287
  3. package/src/account-guest-orders.tsx +98 -98
  4. package/src/account-orders.tsx +260 -260
  5. package/src/account-overview.tsx +133 -133
  6. package/src/account-payment-methods.tsx +328 -328
  7. package/src/account-profile-logic.ts +282 -282
  8. package/src/account-profile.tsx +111 -111
  9. package/src/account-theme.ts +91 -91
  10. package/src/account-utils.ts +20 -20
  11. package/src/address-actions.ts +74 -0
  12. package/src/auth-server.ts +442 -442
  13. package/src/card-expiry.test.ts +71 -0
  14. package/src/card-expiry.ts +29 -0
  15. package/src/commerce-auth-otp-modal.css +125 -125
  16. package/src/commerce-auth-otp-modal.tsx +121 -121
  17. package/src/default-address.test.ts +143 -0
  18. package/src/default-address.ts +51 -0
  19. package/src/forgot-password-form.tsx +109 -109
  20. package/src/google-auth-section.tsx +22 -22
  21. package/src/google-sign-in-section.tsx +67 -67
  22. package/src/guest-order-modal.tsx +215 -215
  23. package/src/index.ts +7 -7
  24. package/src/is-next-redirect.ts +60 -60
  25. package/src/login-brand-panel.tsx +159 -158
  26. package/src/login-form.tsx +469 -469
  27. package/src/manifest.ts +11 -11
  28. package/src/order-history-status.test.ts +224 -224
  29. package/src/order-history-status.ts +244 -244
  30. package/src/otp-component.ts +14 -14
  31. package/src/otp-input.tsx +46 -46
  32. package/src/otp-unified-form.tsx +333 -333
  33. package/src/otp-verification-modal.tsx +112 -112
  34. package/src/payment-methods-actions.ts +243 -243
  35. package/src/profile-email-field.tsx +116 -116
  36. package/src/profile-email.test.ts +182 -182
  37. package/src/profile-email.ts +54 -54
  38. package/src/profile-phone-field.tsx +119 -119
  39. package/src/register-form.tsx +339 -339
  40. package/src/reorder-checkout-address.ts +103 -101
  41. package/src/reset-password-form.tsx +103 -103
  42. package/src/reset-password-page.tsx +12 -12
  43. package/src/segment.tsx +272 -272
package/package.json CHANGED
@@ -1,54 +1,58 @@
1
- {
2
- "name": "@pradip1995/segment-login-template",
3
- "version": "0.5.26",
4
- "license": "MIT",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "sideEffects": [
9
- "src/commerce-auth-otp-modal.css"
10
- ],
11
- "files": [
12
- "src"
13
- ],
14
- "exports": {
15
- ".": "./src/index.ts",
16
- "./manifest": "./src/manifest.ts",
17
- "./reset-password": "./src/reset-password-page.tsx",
18
- "./otp-verification-modal": "./src/otp-verification-modal.tsx",
19
- "./commerce-auth-otp-modal": "./src/commerce-auth-otp-modal.tsx",
20
- "./otp-component": "./src/otp-component.ts",
21
- "./auth-server": "./src/auth-server.ts",
22
- "./account-profile-logic": "./src/account-profile-logic.ts",
23
- "./profile-phone-field": "./src/profile-phone-field.tsx",
24
- "./profile-email-field": "./src/profile-email-field.tsx",
25
- "./google-auth-section": "./src/google-auth-section.tsx",
26
- "./google-sign-in-section": "./src/google-sign-in-section.tsx",
27
- "./otp-input": "./src/otp-input.tsx"
28
- },
29
- "scripts": {
30
- "typecheck": "tsc --noEmit",
31
- "lint": "tsc --noEmit",
32
- "test": "node --experimental-strip-types --test src/*.test.ts"
33
- },
34
- "peerDependencies": {
35
- "@pradip1995/commerce-auth": "^4.0.0",
36
- "@pradip1995/commerce-core": "^4.0.0",
37
- "@pradip1995/plugin-sdk": "^0.2.0",
38
- "next": ">=15",
39
- "react": ">=19",
40
- "react-dom": ">=19"
41
- },
42
- "dependencies": {
43
- "@pradip1995/commerce-auth": "^4.0.0",
44
- "@pradip1995/commerce-core": "^4.0.0",
45
- "@pradip1995/segment-primitives": "^0.4.14",
46
- "@pradip1995/segment-tokens": "^0.3.19"
47
- },
48
- "devDependencies": {
49
- "@pradip1995/plugin-sdk": "^0.2.0",
50
- "@types/react": "^19",
51
- "react": "19.0.3",
52
- "typescript": "^5.7.2"
53
- }
54
- }
1
+ {
2
+ "name": "@pradip1995/segment-login-template",
3
+ "version": "0.5.28",
4
+ "license": "MIT",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "sideEffects": [
9
+ "src/commerce-auth-otp-modal.css"
10
+ ],
11
+ "files": [
12
+ "src"
13
+ ],
14
+ "exports": {
15
+ ".": "./src/index.ts",
16
+ "./manifest": "./src/manifest.ts",
17
+ "./reset-password": "./src/reset-password-page.tsx",
18
+ "./otp-verification-modal": "./src/otp-verification-modal.tsx",
19
+ "./commerce-auth-otp-modal": "./src/commerce-auth-otp-modal.tsx",
20
+ "./otp-component": "./src/otp-component.ts",
21
+ "./auth-server": "./src/auth-server.ts",
22
+ "./account-profile-logic": "./src/account-profile-logic.ts",
23
+ "./profile-phone-field": "./src/profile-phone-field.tsx",
24
+ "./profile-email-field": "./src/profile-email-field.tsx",
25
+ "./google-auth-section": "./src/google-auth-section.tsx",
26
+ "./google-sign-in-section": "./src/google-sign-in-section.tsx",
27
+ "./otp-input": "./src/otp-input.tsx",
28
+ "./profile-email": "./src/profile-email.ts",
29
+ "./address-actions": "./src/address-actions.ts",
30
+ "./default-address": "./src/default-address.ts",
31
+ "./card-expiry": "./src/card-expiry.ts"
32
+ },
33
+ "scripts": {
34
+ "typecheck": "tsc --noEmit",
35
+ "lint": "tsc --noEmit",
36
+ "test": "node --experimental-strip-types --test src/*.test.ts"
37
+ },
38
+ "peerDependencies": {
39
+ "@pradip1995/commerce-auth": "^4.0.0",
40
+ "@pradip1995/commerce-core": "^4.0.0",
41
+ "@pradip1995/plugin-sdk": "^0.2.0",
42
+ "next": ">=15",
43
+ "react": ">=19",
44
+ "react-dom": ">=19"
45
+ },
46
+ "dependencies": {
47
+ "@pradip1995/commerce-auth": "^4.0.0",
48
+ "@pradip1995/commerce-core": "^4.0.0",
49
+ "@pradip1995/segment-primitives": "^0.4.20",
50
+ "@pradip1995/segment-tokens": "^0.3.19"
51
+ },
52
+ "devDependencies": {
53
+ "@pradip1995/plugin-sdk": "^0.2.0",
54
+ "@types/react": "^19",
55
+ "react": "19.0.3",
56
+ "typescript": "^5.7.2"
57
+ }
58
+ }