@cimplify/cli 0.7.14 → 0.7.16

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 (90) hide show
  1. package/dist/{add-Z5I2F43P.mjs → add-YRLROMEN.mjs} +1 -1
  2. package/dist/{chunk-27BN2J4V.mjs → chunk-7CCC37ER.mjs} +1 -1
  3. package/dist/{chunk-V2MNBQ35.mjs → chunk-7PNEG4JY.mjs} +24 -32
  4. package/dist/{chunk-D2AUHLWS.mjs → chunk-ATCBAM44.mjs} +2 -2
  5. package/dist/dispatcher.mjs +9 -9
  6. package/dist/{doctor-J2Z4OLAV.mjs → doctor-UMTO3BI6.mjs} +2 -2
  7. package/dist/{explain-J2Z2L5M5.mjs → explain-2VWT5OFP.mjs} +1 -1
  8. package/dist/{introspect-NJOPZP7H.mjs → introspect-PCLYGIDK.mjs} +2 -2
  9. package/dist/{list-URTQL6PV.mjs → list-6FUJKW7D.mjs} +1 -1
  10. package/dist/{update-IZFFRPX7.mjs → update-CCNTKRPV.mjs} +1 -1
  11. package/package.json +2 -2
  12. package/templates/storefront-auto/app/sitemap-page/page.tsx +0 -2
  13. package/templates/storefront-auto/components/account-pill.tsx +4 -17
  14. package/templates/storefront-auto/lib/brand.ts +0 -1
  15. package/templates/storefront-auto/lib/cimplify-server.ts +0 -2
  16. package/templates/storefront-auto/package.json +1 -1
  17. package/templates/storefront-bakery/AGENTS.md +0 -2
  18. package/templates/storefront-bakery/app/sitemap-page/page.tsx +0 -2
  19. package/templates/storefront-bakery/components/account-pill.tsx +4 -17
  20. package/templates/storefront-bakery/lib/brand.ts +0 -1
  21. package/templates/storefront-bakery/lib/cimplify-server.ts +0 -2
  22. package/templates/storefront-bakery/package.json +1 -1
  23. package/templates/storefront-fashion/AGENTS.md +0 -2
  24. package/templates/storefront-fashion/app/sitemap-page/page.tsx +0 -2
  25. package/templates/storefront-fashion/components/account-pill.tsx +4 -17
  26. package/templates/storefront-fashion/lib/brand.ts +0 -1
  27. package/templates/storefront-fashion/lib/cimplify-server.ts +0 -2
  28. package/templates/storefront-fashion/package.json +1 -1
  29. package/templates/storefront-grocery/AGENTS.md +0 -2
  30. package/templates/storefront-grocery/app/sitemap-page/page.tsx +0 -2
  31. package/templates/storefront-grocery/components/account-pill.tsx +4 -17
  32. package/templates/storefront-grocery/lib/brand.ts +0 -1
  33. package/templates/storefront-grocery/lib/cimplify-server.ts +0 -2
  34. package/templates/storefront-grocery/package.json +1 -1
  35. package/templates/storefront-pharmacy/AGENTS.md +0 -2
  36. package/templates/storefront-pharmacy/app/sitemap-page/page.tsx +0 -2
  37. package/templates/storefront-pharmacy/components/account-pill.tsx +4 -17
  38. package/templates/storefront-pharmacy/lib/brand.ts +0 -1
  39. package/templates/storefront-pharmacy/lib/cimplify-server.ts +0 -2
  40. package/templates/storefront-pharmacy/package.json +1 -1
  41. package/templates/storefront-restaurant/AGENTS.md +0 -2
  42. package/templates/storefront-restaurant/app/sitemap-page/page.tsx +0 -2
  43. package/templates/storefront-restaurant/components/account-pill.tsx +4 -17
  44. package/templates/storefront-restaurant/lib/brand.ts +0 -1
  45. package/templates/storefront-restaurant/lib/cimplify-server.ts +0 -2
  46. package/templates/storefront-restaurant/package.json +1 -1
  47. package/templates/storefront-retail/AGENTS.md +0 -2
  48. package/templates/storefront-retail/app/sitemap-page/page.tsx +0 -2
  49. package/templates/storefront-retail/components/account-pill.tsx +4 -17
  50. package/templates/storefront-retail/lib/brand.ts +0 -1
  51. package/templates/storefront-retail/lib/cimplify-server.ts +0 -2
  52. package/templates/storefront-retail/package.json +1 -1
  53. package/templates/storefront-services/AGENTS.md +0 -2
  54. package/templates/storefront-services/app/sitemap-page/page.tsx +0 -2
  55. package/templates/storefront-services/components/account-pill.tsx +4 -17
  56. package/templates/storefront-services/lib/brand.ts +0 -1
  57. package/templates/storefront-services/lib/cimplify-server.ts +0 -2
  58. package/templates/storefront-services/package.json +1 -1
  59. package/templates/storefront-auto/app/account/addresses/actions.ts +0 -56
  60. package/templates/storefront-auto/app/account/addresses/page.tsx +0 -184
  61. package/templates/storefront-auto/app/account/wallets/actions.ts +0 -52
  62. package/templates/storefront-auto/app/account/wallets/page.tsx +0 -185
  63. package/templates/storefront-bakery/app/account/addresses/actions.ts +0 -56
  64. package/templates/storefront-bakery/app/account/addresses/page.tsx +0 -184
  65. package/templates/storefront-bakery/app/account/wallets/actions.ts +0 -52
  66. package/templates/storefront-bakery/app/account/wallets/page.tsx +0 -185
  67. package/templates/storefront-fashion/app/account/addresses/actions.ts +0 -56
  68. package/templates/storefront-fashion/app/account/addresses/page.tsx +0 -184
  69. package/templates/storefront-fashion/app/account/wallets/actions.ts +0 -52
  70. package/templates/storefront-fashion/app/account/wallets/page.tsx +0 -185
  71. package/templates/storefront-grocery/app/account/addresses/actions.ts +0 -56
  72. package/templates/storefront-grocery/app/account/addresses/page.tsx +0 -184
  73. package/templates/storefront-grocery/app/account/wallets/actions.ts +0 -52
  74. package/templates/storefront-grocery/app/account/wallets/page.tsx +0 -185
  75. package/templates/storefront-pharmacy/app/account/addresses/actions.ts +0 -56
  76. package/templates/storefront-pharmacy/app/account/addresses/page.tsx +0 -184
  77. package/templates/storefront-pharmacy/app/account/wallets/actions.ts +0 -52
  78. package/templates/storefront-pharmacy/app/account/wallets/page.tsx +0 -185
  79. package/templates/storefront-restaurant/app/account/addresses/actions.ts +0 -56
  80. package/templates/storefront-restaurant/app/account/addresses/page.tsx +0 -184
  81. package/templates/storefront-restaurant/app/account/wallets/actions.ts +0 -52
  82. package/templates/storefront-restaurant/app/account/wallets/page.tsx +0 -185
  83. package/templates/storefront-retail/app/account/addresses/actions.ts +0 -56
  84. package/templates/storefront-retail/app/account/addresses/page.tsx +0 -184
  85. package/templates/storefront-retail/app/account/wallets/actions.ts +0 -52
  86. package/templates/storefront-retail/app/account/wallets/page.tsx +0 -185
  87. package/templates/storefront-services/app/account/addresses/actions.ts +0 -56
  88. package/templates/storefront-services/app/account/addresses/page.tsx +0 -184
  89. package/templates/storefront-services/app/account/wallets/actions.ts +0 -52
  90. package/templates/storefront-services/app/account/wallets/page.tsx +0 -185
@@ -2,7 +2,7 @@
2
2
  // package.json
3
3
  var package_default = {
4
4
  name: "@cimplify/cli",
5
- version: "0.7.14",
5
+ version: "0.7.16",
6
6
  description: "Cimplify CLI \u2014 deploy, manage env vars, link projects, and scaffold storefronts",
7
7
  keywords: [
8
8
  "cimplify",
@@ -47,7 +47,7 @@ var package_default = {
47
47
  vitest: "^4.1.5"
48
48
  },
49
49
  dependencies: {
50
- "@cimplify/sdk": "^0.70.2"
50
+ "@cimplify/sdk": "^0.70.3"
51
51
  }
52
52
  };
53
53
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { TEMPLATES } from './chunk-V2MNBQ35.mjs';
3
- import { package_default } from './chunk-D2AUHLWS.mjs';
2
+ import { TEMPLATES } from './chunk-7PNEG4JY.mjs';
3
+ import { package_default } from './chunk-ATCBAM44.mjs';
4
4
 
5
5
  // src/dispatcher.ts
6
6
  var VERSION = package_default.version ?? "unknown";
@@ -138,16 +138,16 @@ var COMMANDS = {
138
138
  logs: () => import('./logs-YNN2PQ24.mjs'),
139
139
  status: () => import('./status-JSYXM5RT.mjs'),
140
140
  dev: () => import('./dev-ONW2S77K.mjs'),
141
- introspect: () => import('./introspect-NJOPZP7H.mjs'),
141
+ introspect: () => import('./introspect-PCLYGIDK.mjs'),
142
142
  inspect: () => import('./inspect-CGYX4DDF.mjs'),
143
- doctor: () => import('./doctor-J2Z4OLAV.mjs'),
144
- explain: () => import('./explain-J2Z2L5M5.mjs'),
143
+ doctor: () => import('./doctor-UMTO3BI6.mjs'),
144
+ explain: () => import('./explain-2VWT5OFP.mjs'),
145
145
  assets: () => import('./assets-74SK63TR.mjs'),
146
146
  repo: () => import('./repo-KNQMSPVV.mjs'),
147
- list: () => import('./list-URTQL6PV.mjs'),
148
- add: () => import('./add-Z5I2F43P.mjs'),
149
- update: () => import('./update-IZFFRPX7.mjs'),
150
- upgrade: () => import('./update-IZFFRPX7.mjs'),
147
+ list: () => import('./list-6FUJKW7D.mjs'),
148
+ add: () => import('./add-YRLROMEN.mjs'),
149
+ update: () => import('./update-CCNTKRPV.mjs'),
150
+ upgrade: () => import('./update-CCNTKRPV.mjs'),
151
151
  "auth-step-up": () => import('./auth-step-up-BIUYQJP6.mjs')
152
152
  };
153
153
  var COMMAND_PREFIXES = {
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { gatherIntrospection } from './chunk-27BN2J4V.mjs';
2
+ import { gatherIntrospection } from './chunk-7CCC37ER.mjs';
3
3
  import './chunk-K5464A3L.mjs';
4
4
  import './chunk-DBZ3UOQ2.mjs';
5
- import './chunk-D2AUHLWS.mjs';
5
+ import './chunk-ATCBAM44.mjs';
6
6
  import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
7
7
  import { ApiClient } from './chunk-MAOO6ZZ5.mjs';
8
8
  import { readAuthOrNull } from './chunk-UBAI443T.mjs';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { package_default } from './chunk-D2AUHLWS.mjs';
2
+ import { package_default } from './chunk-ATCBAM44.mjs';
3
3
  import { parseArgs } from './chunk-C4M3DXKC.mjs';
4
4
  import { bold, dim, info, result, CliError, CLI_ERROR_CODE } from './chunk-E2T2SBP5.mjs';
5
5
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-27BN2J4V.mjs';
2
+ export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-7CCC37ER.mjs';
3
3
  import './chunk-K5464A3L.mjs';
4
4
  import './chunk-DBZ3UOQ2.mjs';
5
- import './chunk-D2AUHLWS.mjs';
5
+ import './chunk-ATCBAM44.mjs';
6
6
  import './chunk-C4M3DXKC.mjs';
7
7
  import './chunk-UBAI443T.mjs';
8
8
  import './chunk-E2T2SBP5.mjs';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { REGISTRY_INDEX } from './chunk-V2MNBQ35.mjs';
2
+ import { REGISTRY_INDEX } from './chunk-7PNEG4JY.mjs';
3
3
  import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
4
4
  import { CliError, CLI_ERROR_CODE, info, bold, dim, green, result } from './chunk-E2T2SBP5.mjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { package_default } from './chunk-D2AUHLWS.mjs';
2
+ import { package_default } from './chunk-ATCBAM44.mjs';
3
3
  import { promptYesNo } from './chunk-ITAFAORS.mjs';
4
4
  import { parseArgs, flagBool, flagString } from './chunk-C4M3DXKC.mjs';
5
5
  import { success, bold, info, dim, result, failure, CliError, CLI_ERROR_CODE, step, isJsonMode } from './chunk-E2T2SBP5.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/cli",
3
- "version": "0.7.14",
3
+ "version": "0.7.16",
4
4
  "description": "Cimplify CLI — deploy, manage env vars, link projects, and scaffold storefronts",
5
5
  "keywords": [
6
6
  "cimplify",
@@ -45,6 +45,6 @@
45
45
  "vitest": "^4.1.5"
46
46
  },
47
47
  "dependencies": {
48
- "@cimplify/sdk": "^0.70.2"
48
+ "@cimplify/sdk": "^0.70.3"
49
49
  }
50
50
  }
@@ -54,8 +54,6 @@ const STATIC_LINKS: { title: string; links: { href: string; label: string }[] }[
54
54
  links: [
55
55
  { href: "/account", label: "Account" },
56
56
  { href: "/account/orders", label: "Orders" },
57
- { href: "/account/addresses", label: "Addresses" },
58
- { href: "/account/wallets", label: "Wallets" },
59
57
  { href: "/login", label: "Sign in" },
60
58
  { href: "/signup", label: "Create account" },
61
59
  { href: "/track-order", label: "Track an order" },
@@ -1,8 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { useEffect, useRef } from "react";
4
- import Link from "next/link";
5
- import { CimplifySignInButton, useCimplifySession } from "@cimplify/sdk/react";
4
+ import { CimplifyUserButton, useCimplifySession } from "@cimplify/sdk/react";
6
5
  import { signInSilent } from "@cimplify/sdk";
7
6
 
8
7
  const CLIENT_ID = process.env.NEXT_PUBLIC_CIMPLIFY_CLIENT_ID ?? "";
@@ -26,24 +25,12 @@ export function AccountPill() {
26
25
 
27
26
  if (loading || !CLIENT_ID) return <span className="h-9 w-24" aria-hidden />;
28
27
 
29
- if (session) {
30
- const first = session.name?.split(/\s+/)[0] ?? "Account";
31
- return (
32
- <Link
33
- href="/account"
34
- className="text-[13px] font-medium tracking-wide text-foreground hover:text-primary transition-colors"
35
- >
36
- Hi, {first}
37
- </Link>
38
- );
39
- }
40
-
41
28
  return (
42
- <CimplifySignInButton
29
+ <CimplifyUserButton
30
+ session={session}
43
31
  clientId={CLIENT_ID}
44
32
  redirectUri={`${typeof window !== "undefined" ? window.location.origin : ""}/auth/callback`}
45
- variant="text"
46
- onSuccess={() => refresh()}
33
+ onSignIn={refresh}
47
34
  />
48
35
  );
49
36
  }
@@ -716,7 +716,6 @@ export const brand: Brand = {
716
716
  { label: "Sign in", href: "/login" },
717
717
  { label: "Create account", href: "/signup" },
718
718
  { label: "Your orders", href: "/account/orders" },
719
- { label: "Wallets", href: "/account/wallets" },
720
719
  ],
721
720
  },
722
721
  {
@@ -8,8 +8,6 @@ import type { NavItem } from "@cimplify/sdk/react";
8
8
  export const ACCOUNT_NAV: NavItem[] = [
9
9
  { label: "Dashboard", href: "/account" },
10
10
  { label: "Orders", href: "/account/orders" },
11
- { label: "Addresses", href: "/account/addresses" },
12
- { label: "Wallets", href: "/account/wallets" },
13
11
  { label: "Cimplify identity", href: "https://link.cimplify.io", external: true },
14
12
  ];
15
13
 
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.70.2",
20
+ "@cimplify/sdk": "^0.70.3",
21
21
  "next": "^16.2.6",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -39,8 +39,6 @@ app/
39
39
 
40
40
  account/page.tsx <AccountDashboardPage /> (native, Server Component)
41
41
  account/orders/page.tsx <AccountOrdersPage /> (native)
42
- account/addresses/page.tsx Native list + Server Actions for CRUD
43
- account/wallets/page.tsx Native list + Server Actions for CRUD
44
42
  login/page.tsx redirect → hosted OAuth, then /account
45
43
  signup/page.tsx redirect → hosted OAuth, then /account
46
44
 
@@ -54,8 +54,6 @@ const STATIC_LINKS: { title: string; links: { href: string; label: string }[] }[
54
54
  links: [
55
55
  { href: "/account", label: "Account" },
56
56
  { href: "/account/orders", label: "Orders" },
57
- { href: "/account/addresses", label: "Addresses" },
58
- { href: "/account/wallets", label: "Wallets" },
59
57
  { href: "/login", label: "Sign in" },
60
58
  { href: "/signup", label: "Create account" },
61
59
  { href: "/track-order", label: "Track an order" },
@@ -1,8 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { useEffect, useRef } from "react";
4
- import Link from "next/link";
5
- import { CimplifySignInButton, useCimplifySession } from "@cimplify/sdk/react";
4
+ import { CimplifyUserButton, useCimplifySession } from "@cimplify/sdk/react";
6
5
  import { signInSilent } from "@cimplify/sdk";
7
6
 
8
7
  const CLIENT_ID = process.env.NEXT_PUBLIC_CIMPLIFY_CLIENT_ID ?? "";
@@ -26,24 +25,12 @@ export function AccountPill() {
26
25
 
27
26
  if (loading || !CLIENT_ID) return <span className="h-9 w-24" aria-hidden />;
28
27
 
29
- if (session) {
30
- const first = session.name?.split(/\s+/)[0] ?? "Account";
31
- return (
32
- <Link
33
- href="/account"
34
- className="text-[13px] font-medium tracking-wide text-foreground hover:text-primary transition-colors"
35
- >
36
- Hi, {first}
37
- </Link>
38
- );
39
- }
40
-
41
28
  return (
42
- <CimplifySignInButton
29
+ <CimplifyUserButton
30
+ session={session}
43
31
  clientId={CLIENT_ID}
44
32
  redirectUri={`${typeof window !== "undefined" ? window.location.origin : ""}/auth/callback`}
45
- variant="text"
46
- onSuccess={() => refresh()}
33
+ onSignIn={refresh}
47
34
  />
48
35
  );
49
36
  }
@@ -542,7 +542,6 @@ export const brand: Brand = {
542
542
  { label: "Sign in", href: "/login" },
543
543
  { label: "Create account", href: "/signup" },
544
544
  { label: "Your orders", href: "/account/orders" },
545
- { label: "Wallets", href: "/account/wallets" },
546
545
  ],
547
546
  },
548
547
  {
@@ -8,8 +8,6 @@ import type { NavItem } from "@cimplify/sdk/react";
8
8
  export const ACCOUNT_NAV: NavItem[] = [
9
9
  { label: "Dashboard", href: "/account" },
10
10
  { label: "Orders", href: "/account/orders" },
11
- { label: "Addresses", href: "/account/addresses" },
12
- { label: "Wallets", href: "/account/wallets" },
13
11
  { label: "Cimplify identity", href: "https://link.cimplify.io", external: true },
14
12
  ];
15
13
 
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.70.2",
20
+ "@cimplify/sdk": "^0.70.3",
21
21
  "next": "^16.2.6",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -42,8 +42,6 @@ app/
42
42
 
43
43
  account/page.tsx <AccountDashboardPage /> (native, Server Component)
44
44
  account/orders/page.tsx <AccountOrdersPage /> (native)
45
- account/addresses/page.tsx Native list + Server Actions for CRUD
46
- account/wallets/page.tsx Native list + Server Actions for CRUD
47
45
  login/page.tsx, signup/page.tsx redirects → /account
48
46
 
49
47
  contact/page.tsx, track-order/page.tsx
@@ -54,8 +54,6 @@ const STATIC_LINKS: { title: string; links: { href: string; label: string }[] }[
54
54
  links: [
55
55
  { href: "/account", label: "Account" },
56
56
  { href: "/account/orders", label: "Orders" },
57
- { href: "/account/addresses", label: "Addresses" },
58
- { href: "/account/wallets", label: "Wallets" },
59
57
  { href: "/login", label: "Sign in" },
60
58
  { href: "/signup", label: "Create account" },
61
59
  { href: "/track-order", label: "Track an order" },
@@ -1,8 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { useEffect, useRef } from "react";
4
- import Link from "next/link";
5
- import { CimplifySignInButton, useCimplifySession } from "@cimplify/sdk/react";
4
+ import { CimplifyUserButton, useCimplifySession } from "@cimplify/sdk/react";
6
5
  import { signInSilent } from "@cimplify/sdk";
7
6
 
8
7
  const CLIENT_ID = process.env.NEXT_PUBLIC_CIMPLIFY_CLIENT_ID ?? "";
@@ -26,24 +25,12 @@ export function AccountPill() {
26
25
 
27
26
  if (loading || !CLIENT_ID) return <span className="h-9 w-24" aria-hidden />;
28
27
 
29
- if (session) {
30
- const first = session.name?.split(/\s+/)[0] ?? "Account";
31
- return (
32
- <Link
33
- href="/account"
34
- className="text-[13px] font-medium tracking-wide text-foreground hover:text-primary transition-colors"
35
- >
36
- Hi, {first}
37
- </Link>
38
- );
39
- }
40
-
41
28
  return (
42
- <CimplifySignInButton
29
+ <CimplifyUserButton
30
+ session={session}
43
31
  clientId={CLIENT_ID}
44
32
  redirectUri={`${typeof window !== "undefined" ? window.location.origin : ""}/auth/callback`}
45
- variant="text"
46
- onSuccess={() => refresh()}
33
+ onSignIn={refresh}
47
34
  />
48
35
  );
49
36
  }
@@ -490,7 +490,6 @@ export const brand: Brand = {
490
490
  { label: "Sign in", href: "/login" },
491
491
  { label: "Create account", href: "/signup" },
492
492
  { label: "Your orders", href: "/account/orders" },
493
- { label: "Wallets", href: "/account/wallets" },
494
493
  ],
495
494
  },
496
495
  {
@@ -8,8 +8,6 @@ import type { NavItem } from "@cimplify/sdk/react";
8
8
  export const ACCOUNT_NAV: NavItem[] = [
9
9
  { label: "Dashboard", href: "/account" },
10
10
  { label: "Orders", href: "/account/orders" },
11
- { label: "Addresses", href: "/account/addresses" },
12
- { label: "Wallets", href: "/account/wallets" },
13
11
  { label: "Cimplify identity", href: "https://link.cimplify.io", external: true },
14
12
  ];
15
13
 
@@ -19,7 +19,7 @@
19
19
  "check": "bun run typecheck && bun run test:run"
20
20
  },
21
21
  "dependencies": {
22
- "@cimplify/sdk": "^0.70.2",
22
+ "@cimplify/sdk": "^0.70.3",
23
23
  "next": "^16.2.6",
24
24
  "react": "^19.0.0",
25
25
  "react-dom": "^19.0.0"
@@ -30,8 +30,6 @@ app/
30
30
 
31
31
  account/page.tsx <AccountDashboardPage /> (native, Server Component)
32
32
  account/orders/page.tsx <AccountOrdersPage /> (native)
33
- account/addresses/page.tsx Native list + Server Actions for CRUD
34
- account/wallets/page.tsx Native list + Server Actions for CRUD
35
33
  login/page.tsx, signup/page.tsx redirects → /account
36
34
 
37
35
  contact/page.tsx, track-order/page.tsx
@@ -54,8 +54,6 @@ const STATIC_LINKS: { title: string; links: { href: string; label: string }[] }[
54
54
  links: [
55
55
  { href: "/account", label: "Account" },
56
56
  { href: "/account/orders", label: "Orders" },
57
- { href: "/account/addresses", label: "Addresses" },
58
- { href: "/account/wallets", label: "Wallets" },
59
57
  { href: "/login", label: "Sign in" },
60
58
  { href: "/signup", label: "Create account" },
61
59
  { href: "/track-order", label: "Track an order" },
@@ -1,8 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { useEffect, useRef } from "react";
4
- import Link from "next/link";
5
- import { CimplifySignInButton, useCimplifySession } from "@cimplify/sdk/react";
4
+ import { CimplifyUserButton, useCimplifySession } from "@cimplify/sdk/react";
6
5
  import { signInSilent } from "@cimplify/sdk";
7
6
 
8
7
  const CLIENT_ID = process.env.NEXT_PUBLIC_CIMPLIFY_CLIENT_ID ?? "";
@@ -26,24 +25,12 @@ export function AccountPill() {
26
25
 
27
26
  if (loading || !CLIENT_ID) return <span className="h-9 w-24" aria-hidden />;
28
27
 
29
- if (session) {
30
- const first = session.name?.split(/\s+/)[0] ?? "Account";
31
- return (
32
- <Link
33
- href="/account"
34
- className="text-[13px] font-medium tracking-wide text-foreground hover:text-primary transition-colors"
35
- >
36
- Hi, {first}
37
- </Link>
38
- );
39
- }
40
-
41
28
  return (
42
- <CimplifySignInButton
29
+ <CimplifyUserButton
30
+ session={session}
43
31
  clientId={CLIENT_ID}
44
32
  redirectUri={`${typeof window !== "undefined" ? window.location.origin : ""}/auth/callback`}
45
- variant="text"
46
- onSuccess={() => refresh()}
33
+ onSignIn={refresh}
47
34
  />
48
35
  );
49
36
  }
@@ -347,7 +347,6 @@ export const brand: Brand = {
347
347
  { label: "Sign in", href: "/login" },
348
348
  { label: "Create account", href: "/signup" },
349
349
  { label: "Your orders", href: "/account/orders" },
350
- { label: "Wallets", href: "/account/wallets" },
351
350
  ],
352
351
  },
353
352
  {
@@ -8,8 +8,6 @@ import type { NavItem } from "@cimplify/sdk/react";
8
8
  export const ACCOUNT_NAV: NavItem[] = [
9
9
  { label: "Dashboard", href: "/account" },
10
10
  { label: "Orders", href: "/account/orders" },
11
- { label: "Addresses", href: "/account/addresses" },
12
- { label: "Wallets", href: "/account/wallets" },
13
11
  { label: "Cimplify identity", href: "https://link.cimplify.io", external: true },
14
12
  ];
15
13
 
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.70.2",
20
+ "@cimplify/sdk": "^0.70.3",
21
21
  "next": "^16.2.6",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -35,8 +35,6 @@ app/
35
35
 
36
36
  account/page.tsx <AccountDashboardPage /> (native, Server Component)
37
37
  account/orders/page.tsx <AccountOrdersPage /> (native)
38
- account/addresses/page.tsx Native list + Server Actions for CRUD
39
- account/wallets/page.tsx Native list + Server Actions for CRUD
40
38
  login/page.tsx, signup/page.tsx redirects → /account
41
39
 
42
40
  contact/page.tsx Pharmacist consult form
@@ -54,8 +54,6 @@ const STATIC_LINKS: { title: string; links: { href: string; label: string }[] }[
54
54
  links: [
55
55
  { href: "/account", label: "Account" },
56
56
  { href: "/account/orders", label: "Orders" },
57
- { href: "/account/addresses", label: "Addresses" },
58
- { href: "/account/wallets", label: "Wallets" },
59
57
  { href: "/login", label: "Sign in" },
60
58
  { href: "/signup", label: "Create account" },
61
59
  { href: "/track-order", label: "Track an order" },
@@ -1,8 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { useEffect, useRef } from "react";
4
- import Link from "next/link";
5
- import { CimplifySignInButton, useCimplifySession } from "@cimplify/sdk/react";
4
+ import { CimplifyUserButton, useCimplifySession } from "@cimplify/sdk/react";
6
5
  import { signInSilent } from "@cimplify/sdk";
7
6
 
8
7
  const CLIENT_ID = process.env.NEXT_PUBLIC_CIMPLIFY_CLIENT_ID ?? "";
@@ -26,24 +25,12 @@ export function AccountPill() {
26
25
 
27
26
  if (loading || !CLIENT_ID) return <span className="h-9 w-24" aria-hidden />;
28
27
 
29
- if (session) {
30
- const first = session.name?.split(/\s+/)[0] ?? "Account";
31
- return (
32
- <Link
33
- href="/account"
34
- className="text-[13px] font-medium tracking-wide text-foreground hover:text-primary transition-colors"
35
- >
36
- Hi, {first}
37
- </Link>
38
- );
39
- }
40
-
41
28
  return (
42
- <CimplifySignInButton
29
+ <CimplifyUserButton
30
+ session={session}
43
31
  clientId={CLIENT_ID}
44
32
  redirectUri={`${typeof window !== "undefined" ? window.location.origin : ""}/auth/callback`}
45
- variant="text"
46
- onSuccess={() => refresh()}
33
+ onSignIn={refresh}
47
34
  />
48
35
  );
49
36
  }
@@ -762,7 +762,6 @@ export const brand: Brand = {
762
762
  { label: "Sign in", href: "/login" },
763
763
  { label: "Create account", href: "/signup" },
764
764
  { label: "Your orders", href: "/account/orders" },
765
- { label: "Wallets", href: "/account/wallets" },
766
765
  ],
767
766
  },
768
767
  {
@@ -8,8 +8,6 @@ import type { NavItem } from "@cimplify/sdk/react";
8
8
  export const ACCOUNT_NAV: NavItem[] = [
9
9
  { label: "Dashboard", href: "/account" },
10
10
  { label: "Orders", href: "/account/orders" },
11
- { label: "Addresses", href: "/account/addresses" },
12
- { label: "Wallets", href: "/account/wallets" },
13
11
  { label: "Cimplify identity", href: "https://link.cimplify.io", external: true },
14
12
  ];
15
13
 
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.70.2",
20
+ "@cimplify/sdk": "^0.70.3",
21
21
  "next": "^16.2.6",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"
@@ -33,8 +33,6 @@ app/
33
33
 
34
34
  account/page.tsx <AccountDashboardPage /> (native, Server Component)
35
35
  account/orders/page.tsx <AccountOrdersPage /> (native)
36
- account/addresses/page.tsx Native list + Server Actions for CRUD
37
- account/wallets/page.tsx Native list + Server Actions for CRUD
38
36
  login/page.tsx, signup/page.tsx redirects → /account
39
37
 
40
38
  contact/page.tsx, track-order/page.tsx
@@ -54,8 +54,6 @@ const STATIC_LINKS: { title: string; links: { href: string; label: string }[] }[
54
54
  links: [
55
55
  { href: "/account", label: "Account" },
56
56
  { href: "/account/orders", label: "Orders" },
57
- { href: "/account/addresses", label: "Addresses" },
58
- { href: "/account/wallets", label: "Wallets" },
59
57
  { href: "/login", label: "Sign in" },
60
58
  { href: "/signup", label: "Create account" },
61
59
  { href: "/track-order", label: "Track an order" },
@@ -1,8 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { useEffect, useRef } from "react";
4
- import Link from "next/link";
5
- import { CimplifySignInButton, useCimplifySession } from "@cimplify/sdk/react";
4
+ import { CimplifyUserButton, useCimplifySession } from "@cimplify/sdk/react";
6
5
  import { signInSilent } from "@cimplify/sdk";
7
6
 
8
7
  const CLIENT_ID = process.env.NEXT_PUBLIC_CIMPLIFY_CLIENT_ID ?? "";
@@ -26,24 +25,12 @@ export function AccountPill() {
26
25
 
27
26
  if (loading || !CLIENT_ID) return <span className="h-9 w-24" aria-hidden />;
28
27
 
29
- if (session) {
30
- const first = session.name?.split(/\s+/)[0] ?? "Account";
31
- return (
32
- <Link
33
- href="/account"
34
- className="text-[13px] font-medium tracking-wide text-foreground hover:text-primary transition-colors"
35
- >
36
- Hi, {first}
37
- </Link>
38
- );
39
- }
40
-
41
28
  return (
42
- <CimplifySignInButton
29
+ <CimplifyUserButton
30
+ session={session}
43
31
  clientId={CLIENT_ID}
44
32
  redirectUri={`${typeof window !== "undefined" ? window.location.origin : ""}/auth/callback`}
45
- variant="text"
46
- onSuccess={() => refresh()}
33
+ onSignIn={refresh}
47
34
  />
48
35
  );
49
36
  }
@@ -349,7 +349,6 @@ export const brand: Brand = {
349
349
  { label: "Sign in", href: "/login" },
350
350
  { label: "Create account", href: "/signup" },
351
351
  { label: "Your orders", href: "/account/orders" },
352
- { label: "Wallets", href: "/account/wallets" },
353
352
  ],
354
353
  },
355
354
  {
@@ -8,8 +8,6 @@ import type { NavItem } from "@cimplify/sdk/react";
8
8
  export const ACCOUNT_NAV: NavItem[] = [
9
9
  { label: "Dashboard", href: "/account" },
10
10
  { label: "Orders", href: "/account/orders" },
11
- { label: "Addresses", href: "/account/addresses" },
12
- { label: "Wallets", href: "/account/wallets" },
13
11
  { label: "Cimplify identity", href: "https://link.cimplify.io", external: true },
14
12
  ];
15
13
 
@@ -17,7 +17,7 @@
17
17
  "check": "bun run typecheck && bun run test:run"
18
18
  },
19
19
  "dependencies": {
20
- "@cimplify/sdk": "^0.70.2",
20
+ "@cimplify/sdk": "^0.70.3",
21
21
  "next": "^16.2.6",
22
22
  "react": "^19.0.0",
23
23
  "react-dom": "^19.0.0"