@cimplify/cli 0.7.10 → 0.7.11
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/dist/{add-SMWNH54I.mjs → add-3CEDUXNO.mjs} +1 -1
- package/dist/chunk-DAE3YSKU.mjs +6151 -0
- package/dist/{chunk-DTKRN5WC.mjs → chunk-XB4MMPXC.mjs} +2 -2
- package/dist/{chunk-AGJ3GDM5.mjs → chunk-ZFCWAYK2.mjs} +1 -1
- package/dist/dispatcher.mjs +9 -9
- package/dist/{doctor-DD2HRC43.mjs → doctor-A3YU5YOX.mjs} +2 -2
- package/dist/{explain-H46SCM2M.mjs → explain-WZQTCB3C.mjs} +1 -1
- package/dist/{introspect-YKAWUZ6D.mjs → introspect-2GJIQ6CP.mjs} +2 -2
- package/dist/{list-6FF2UPH2.mjs → list-F3LBI7HF.mjs} +1 -1
- package/dist/{update-STXI3CS4.mjs → update-PINBW3NG.mjs} +1 -1
- package/package.json +2 -2
- package/templates/storefront-auto/app/account/addresses/actions.ts +56 -0
- package/templates/storefront-auto/app/account/addresses/page.tsx +178 -15
- package/templates/storefront-auto/app/account/orders/page.tsx +84 -15
- package/templates/storefront-auto/app/account/page.tsx +39 -16
- package/templates/storefront-auto/app/account/wallets/actions.ts +52 -0
- package/templates/storefront-auto/app/account/wallets/page.tsx +185 -0
- package/templates/storefront-auto/app/sitemap-page/page.tsx +1 -1
- package/templates/storefront-auto/bun.lock +8 -2
- package/templates/storefront-auto/lib/brand.ts +1 -1
- package/templates/storefront-auto/lib/cimplify-server.ts +54 -0
- package/templates/storefront-auto/package.json +1 -1
- package/templates/storefront-bakery/AGENTS.md +4 -4
- package/templates/storefront-bakery/app/account/addresses/actions.ts +56 -0
- package/templates/storefront-bakery/app/account/addresses/page.tsx +178 -15
- package/templates/storefront-bakery/app/account/orders/page.tsx +84 -15
- package/templates/storefront-bakery/app/account/page.tsx +39 -16
- package/templates/storefront-bakery/app/account/wallets/actions.ts +52 -0
- package/templates/storefront-bakery/app/account/wallets/page.tsx +185 -0
- package/templates/storefront-bakery/app/sitemap-page/page.tsx +1 -1
- package/templates/storefront-bakery/bun.lock +8 -2
- package/templates/storefront-bakery/lib/brand.ts +1 -1
- package/templates/storefront-bakery/lib/cimplify-server.ts +54 -0
- package/templates/storefront-bakery/package.json +1 -1
- package/templates/storefront-fashion/AGENTS.md +4 -4
- package/templates/storefront-fashion/app/account/addresses/actions.ts +56 -0
- package/templates/storefront-fashion/app/account/addresses/page.tsx +178 -15
- package/templates/storefront-fashion/app/account/orders/page.tsx +84 -15
- package/templates/storefront-fashion/app/account/page.tsx +39 -16
- package/templates/storefront-fashion/app/account/wallets/actions.ts +52 -0
- package/templates/storefront-fashion/app/account/wallets/page.tsx +185 -0
- package/templates/storefront-fashion/app/sitemap-page/page.tsx +1 -1
- package/templates/storefront-fashion/bun.lock +8 -2
- package/templates/storefront-fashion/lib/brand.ts +1 -1
- package/templates/storefront-fashion/lib/cimplify-server.ts +54 -0
- package/templates/storefront-fashion/package.json +1 -1
- package/templates/storefront-grocery/AGENTS.md +4 -4
- package/templates/storefront-grocery/app/account/addresses/actions.ts +56 -0
- package/templates/storefront-grocery/app/account/addresses/page.tsx +178 -15
- package/templates/storefront-grocery/app/account/orders/page.tsx +84 -15
- package/templates/storefront-grocery/app/account/page.tsx +39 -16
- package/templates/storefront-grocery/app/account/wallets/actions.ts +52 -0
- package/templates/storefront-grocery/app/account/wallets/page.tsx +185 -0
- package/templates/storefront-grocery/app/sitemap-page/page.tsx +1 -1
- package/templates/storefront-grocery/bun.lock +8 -2
- package/templates/storefront-grocery/lib/brand.ts +1 -1
- package/templates/storefront-grocery/lib/cimplify-server.ts +54 -0
- package/templates/storefront-grocery/package.json +1 -1
- package/templates/storefront-pharmacy/AGENTS.md +4 -4
- package/templates/storefront-pharmacy/app/account/addresses/actions.ts +56 -0
- package/templates/storefront-pharmacy/app/account/addresses/page.tsx +178 -15
- package/templates/storefront-pharmacy/app/account/orders/page.tsx +84 -15
- package/templates/storefront-pharmacy/app/account/page.tsx +39 -16
- package/templates/storefront-pharmacy/app/account/wallets/actions.ts +52 -0
- package/templates/storefront-pharmacy/app/account/wallets/page.tsx +185 -0
- package/templates/storefront-pharmacy/app/sitemap-page/page.tsx +1 -1
- package/templates/storefront-pharmacy/bun.lock +8 -2
- package/templates/storefront-pharmacy/lib/brand.ts +1 -1
- package/templates/storefront-pharmacy/lib/cimplify-server.ts +54 -0
- package/templates/storefront-pharmacy/package.json +1 -1
- package/templates/storefront-restaurant/AGENTS.md +4 -4
- package/templates/storefront-restaurant/app/account/addresses/actions.ts +56 -0
- package/templates/storefront-restaurant/app/account/addresses/page.tsx +178 -15
- package/templates/storefront-restaurant/app/account/orders/page.tsx +84 -15
- package/templates/storefront-restaurant/app/account/page.tsx +39 -16
- package/templates/storefront-restaurant/app/account/wallets/actions.ts +52 -0
- package/templates/storefront-restaurant/app/account/wallets/page.tsx +185 -0
- package/templates/storefront-restaurant/app/sitemap-page/page.tsx +1 -1
- package/templates/storefront-restaurant/bun.lock +8 -2
- package/templates/storefront-restaurant/lib/brand.ts +1 -1
- package/templates/storefront-restaurant/lib/cimplify-server.ts +54 -0
- package/templates/storefront-restaurant/package.json +1 -1
- package/templates/storefront-retail/AGENTS.md +4 -4
- package/templates/storefront-retail/app/account/addresses/actions.ts +56 -0
- package/templates/storefront-retail/app/account/addresses/page.tsx +178 -15
- package/templates/storefront-retail/app/account/orders/page.tsx +84 -15
- package/templates/storefront-retail/app/account/page.tsx +39 -16
- package/templates/storefront-retail/app/account/wallets/actions.ts +52 -0
- package/templates/storefront-retail/app/account/wallets/page.tsx +185 -0
- package/templates/storefront-retail/app/sitemap-page/page.tsx +1 -1
- package/templates/storefront-retail/bun.lock +8 -2
- package/templates/storefront-retail/lib/brand.ts +1 -1
- package/templates/storefront-retail/lib/cimplify-server.ts +54 -0
- package/templates/storefront-retail/package.json +1 -1
- package/templates/storefront-services/AGENTS.md +4 -4
- package/templates/storefront-services/app/account/addresses/actions.ts +56 -0
- package/templates/storefront-services/app/account/addresses/page.tsx +178 -15
- package/templates/storefront-services/app/account/orders/page.tsx +84 -15
- package/templates/storefront-services/app/account/page.tsx +39 -16
- package/templates/storefront-services/app/account/wallets/actions.ts +52 -0
- package/templates/storefront-services/app/account/wallets/page.tsx +185 -0
- package/templates/storefront-services/app/sitemap-page/page.tsx +1 -1
- package/templates/storefront-services/bun.lock +8 -2
- package/templates/storefront-services/lib/brand.ts +1 -1
- package/templates/storefront-services/lib/cimplify-server.ts +54 -0
- package/templates/storefront-services/package.json +1 -1
- package/dist/chunk-YFLBC6BL.mjs +0 -6151
- package/templates/storefront-auto/app/account/settings/page.tsx +0 -21
- package/templates/storefront-auto/components/account-iframe.tsx +0 -19
- package/templates/storefront-bakery/app/account/settings/page.tsx +0 -21
- package/templates/storefront-bakery/components/account-iframe.tsx +0 -19
- package/templates/storefront-fashion/app/account/settings/page.tsx +0 -21
- package/templates/storefront-fashion/components/account-iframe.tsx +0 -19
- package/templates/storefront-grocery/app/account/settings/page.tsx +0 -21
- package/templates/storefront-grocery/components/account-iframe.tsx +0 -19
- package/templates/storefront-pharmacy/app/account/settings/page.tsx +0 -21
- package/templates/storefront-pharmacy/components/account-iframe.tsx +0 -19
- package/templates/storefront-restaurant/app/account/settings/page.tsx +0 -21
- package/templates/storefront-restaurant/components/account-iframe.tsx +0 -19
- package/templates/storefront-retail/app/account/settings/page.tsx +0 -21
- package/templates/storefront-retail/components/account-iframe.tsx +0 -19
- package/templates/storefront-services/app/account/settings/page.tsx +0 -21
- package/templates/storefront-services/components/account-iframe.tsx +0 -19
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import { AccountIframe } from "@/components/account-iframe";
|
|
3
|
-
import { brand } from "@/lib/brand";
|
|
4
|
-
|
|
5
|
-
export const metadata: Metadata = {
|
|
6
|
-
title: `Settings — ${brand.name}`,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default function SettingsPage() {
|
|
10
|
-
return (
|
|
11
|
-
<article className="max-w-5xl mx-auto px-6 sm:px-8 py-12">
|
|
12
|
-
<p className="text-[11px] font-semibold uppercase tracking-[0.16em] text-primary mb-2">
|
|
13
|
-
Account
|
|
14
|
-
</p>
|
|
15
|
-
<h1 className="font-serif text-[clamp(2rem,4vw,2.75rem)] font-semibold mb-8 -tracking-[0.02em]">
|
|
16
|
-
Settings
|
|
17
|
-
</h1>
|
|
18
|
-
<AccountIframe section="settings" />
|
|
19
|
-
</article>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { CimplifyAccount } from "@cimplify/sdk/react";
|
|
4
|
-
import { brand } from "@/lib/brand";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Cimplify Account portal — iframe-mounted UI hosted by Cimplify Link.
|
|
8
|
-
* Handles sign-in, sign-up, OTP, addresses, payment methods, sessions,
|
|
9
|
-
* and order history. The iframe owns auth state; we just choose which
|
|
10
|
-
* `section` to land on.
|
|
11
|
-
*
|
|
12
|
-
* `merchantName` is passed so the embedded widget can render scoping
|
|
13
|
-
* affordances ("Showing your account with {merchant} only.") and
|
|
14
|
-
* enforce the per-merchant data contract — orders/subs filter to this
|
|
15
|
-
* business, cross-merchant surfaces are hidden.
|
|
16
|
-
*/
|
|
17
|
-
export function AccountIframe({ section }: { section?: string }) {
|
|
18
|
-
return <CimplifyAccount section={section} merchantName={brand.name} />;
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import { AccountIframe } from "@/components/account-iframe";
|
|
3
|
-
import { brand } from "@/lib/brand";
|
|
4
|
-
|
|
5
|
-
export const metadata: Metadata = {
|
|
6
|
-
title: `Settings — ${brand.name}`,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default function SettingsPage() {
|
|
10
|
-
return (
|
|
11
|
-
<article className="max-w-5xl mx-auto px-6 sm:px-8 py-12">
|
|
12
|
-
<p className="text-[11px] font-semibold uppercase tracking-[0.16em] text-primary mb-2">
|
|
13
|
-
Account
|
|
14
|
-
</p>
|
|
15
|
-
<h1 className="font-serif text-[clamp(2rem,4vw,2.75rem)] font-semibold mb-8 -tracking-[0.02em]">
|
|
16
|
-
Settings
|
|
17
|
-
</h1>
|
|
18
|
-
<AccountIframe section="settings" />
|
|
19
|
-
</article>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { CimplifyAccount } from "@cimplify/sdk/react";
|
|
4
|
-
import { brand } from "@/lib/brand";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Cimplify Account portal — iframe-mounted UI hosted by Cimplify Link.
|
|
8
|
-
* Handles sign-in, sign-up, OTP, addresses, payment methods, sessions,
|
|
9
|
-
* and order history. The iframe owns auth state; we just choose which
|
|
10
|
-
* `section` to land on.
|
|
11
|
-
*
|
|
12
|
-
* `merchantName` is passed so the embedded widget can render scoping
|
|
13
|
-
* affordances ("Showing your account with Akua's Bakery only.") and
|
|
14
|
-
* enforce the per-merchant data contract — orders/subs filter to this
|
|
15
|
-
* business, cross-merchant surfaces are hidden.
|
|
16
|
-
*/
|
|
17
|
-
export function AccountIframe({ section }: { section?: string }) {
|
|
18
|
-
return <CimplifyAccount section={section} merchantName={brand.name} />;
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import { AccountIframe } from "@/components/account-iframe";
|
|
3
|
-
import { brand } from "@/lib/brand";
|
|
4
|
-
|
|
5
|
-
export const metadata: Metadata = {
|
|
6
|
-
title: `Settings — ${brand.name}`,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default function SettingsPage() {
|
|
10
|
-
return (
|
|
11
|
-
<article className="max-w-5xl mx-auto px-6 sm:px-8 py-12">
|
|
12
|
-
<p className="text-[11px] font-semibold uppercase tracking-[0.16em] text-primary mb-2">
|
|
13
|
-
Account
|
|
14
|
-
</p>
|
|
15
|
-
<h1 className="font-serif text-[clamp(2rem,4vw,2.75rem)] font-semibold mb-8 -tracking-[0.02em]">
|
|
16
|
-
Settings
|
|
17
|
-
</h1>
|
|
18
|
-
<AccountIframe section="settings" />
|
|
19
|
-
</article>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { CimplifyAccount } from "@cimplify/sdk/react";
|
|
4
|
-
import { brand } from "@/lib/brand";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Cimplify Account portal — iframe-mounted UI hosted by Cimplify Link.
|
|
8
|
-
* Handles sign-in, sign-up, OTP, addresses, payment methods, sessions,
|
|
9
|
-
* and order history. The iframe owns auth state; we just choose which
|
|
10
|
-
* `section` to land on.
|
|
11
|
-
*
|
|
12
|
-
* `merchantName` is passed so the embedded widget can render scoping
|
|
13
|
-
* affordances ("Showing your account with {merchant} only.") and
|
|
14
|
-
* enforce the per-merchant data contract — orders/subs filter to this
|
|
15
|
-
* business, cross-merchant surfaces are hidden.
|
|
16
|
-
*/
|
|
17
|
-
export function AccountIframe({ section }: { section?: string }) {
|
|
18
|
-
return <CimplifyAccount section={section} merchantName={brand.name} />;
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import { AccountIframe } from "@/components/account-iframe";
|
|
3
|
-
import { brand } from "@/lib/brand";
|
|
4
|
-
|
|
5
|
-
export const metadata: Metadata = {
|
|
6
|
-
title: `Settings — ${brand.name}`,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default function SettingsPage() {
|
|
10
|
-
return (
|
|
11
|
-
<article className="max-w-5xl mx-auto px-6 sm:px-8 py-12">
|
|
12
|
-
<p className="text-[11px] font-semibold uppercase tracking-[0.16em] text-primary mb-2">
|
|
13
|
-
Account
|
|
14
|
-
</p>
|
|
15
|
-
<h1 className="font-serif text-[clamp(2rem,4vw,2.75rem)] font-semibold mb-8 -tracking-[0.02em]">
|
|
16
|
-
Settings
|
|
17
|
-
</h1>
|
|
18
|
-
<AccountIframe section="settings" />
|
|
19
|
-
</article>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { CimplifyAccount } from "@cimplify/sdk/react";
|
|
4
|
-
import { brand } from "@/lib/brand";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Cimplify Account portal — iframe-mounted UI hosted by Cimplify Link.
|
|
8
|
-
* Handles sign-in, sign-up, OTP, addresses, payment methods, sessions,
|
|
9
|
-
* and order history. The iframe owns auth state; we just choose which
|
|
10
|
-
* `section` to land on.
|
|
11
|
-
*
|
|
12
|
-
* `merchantName` is passed so the embedded widget can render scoping
|
|
13
|
-
* affordances ("Showing your account with {merchant} only.") and
|
|
14
|
-
* enforce the per-merchant data contract — orders/subs filter to this
|
|
15
|
-
* business, cross-merchant surfaces are hidden.
|
|
16
|
-
*/
|
|
17
|
-
export function AccountIframe({ section }: { section?: string }) {
|
|
18
|
-
return <CimplifyAccount section={section} merchantName={brand.name} />;
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import { AccountIframe } from "@/components/account-iframe";
|
|
3
|
-
import { brand } from "@/lib/brand";
|
|
4
|
-
|
|
5
|
-
export const metadata: Metadata = {
|
|
6
|
-
title: `Settings — ${brand.name}`,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default function SettingsPage() {
|
|
10
|
-
return (
|
|
11
|
-
<article className="max-w-5xl mx-auto px-6 sm:px-8 py-12">
|
|
12
|
-
<p className="text-[11px] font-semibold uppercase tracking-[0.16em] text-primary mb-2">
|
|
13
|
-
Account
|
|
14
|
-
</p>
|
|
15
|
-
<h1 className="font-serif text-[clamp(2rem,4vw,2.75rem)] font-semibold mb-8 -tracking-[0.02em]">
|
|
16
|
-
Settings
|
|
17
|
-
</h1>
|
|
18
|
-
<AccountIframe section="settings" />
|
|
19
|
-
</article>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { CimplifyAccount } from "@cimplify/sdk/react";
|
|
4
|
-
import { brand } from "@/lib/brand";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Cimplify Account portal — iframe-mounted UI hosted by Cimplify Link.
|
|
8
|
-
* Handles sign-in, sign-up, OTP, addresses, payment methods, sessions,
|
|
9
|
-
* and order history. The iframe owns auth state; we just choose which
|
|
10
|
-
* `section` to land on.
|
|
11
|
-
*
|
|
12
|
-
* `merchantName` is passed so the embedded widget can render scoping
|
|
13
|
-
* affordances ("Showing your account with {merchant} only.") and
|
|
14
|
-
* enforce the per-merchant data contract — orders/subs filter to this
|
|
15
|
-
* business, cross-merchant surfaces are hidden.
|
|
16
|
-
*/
|
|
17
|
-
export function AccountIframe({ section }: { section?: string }) {
|
|
18
|
-
return <CimplifyAccount section={section} merchantName={brand.name} />;
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import { AccountIframe } from "@/components/account-iframe";
|
|
3
|
-
import { brand } from "@/lib/brand";
|
|
4
|
-
|
|
5
|
-
export const metadata: Metadata = {
|
|
6
|
-
title: `Settings — ${brand.name}`,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default function SettingsPage() {
|
|
10
|
-
return (
|
|
11
|
-
<article className="max-w-5xl mx-auto px-6 sm:px-8 py-12">
|
|
12
|
-
<p className="text-[11px] font-semibold uppercase tracking-[0.16em] text-primary mb-2">
|
|
13
|
-
Account
|
|
14
|
-
</p>
|
|
15
|
-
<h1 className="font-serif text-[clamp(2rem,4vw,2.75rem)] font-semibold mb-8 -tracking-[0.02em]">
|
|
16
|
-
Settings
|
|
17
|
-
</h1>
|
|
18
|
-
<AccountIframe section="settings" />
|
|
19
|
-
</article>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { CimplifyAccount } from "@cimplify/sdk/react";
|
|
4
|
-
import { brand } from "@/lib/brand";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Cimplify Account portal — iframe-mounted UI hosted by Cimplify Link.
|
|
8
|
-
* Handles sign-in, sign-up, OTP, addresses, payment methods, sessions,
|
|
9
|
-
* and order history. The iframe owns auth state; we just choose which
|
|
10
|
-
* `section` to land on.
|
|
11
|
-
*
|
|
12
|
-
* `merchantName` is passed so the embedded widget can render scoping
|
|
13
|
-
* affordances ("Showing your account with {merchant} only.") and
|
|
14
|
-
* enforce the per-merchant data contract — orders/subs filter to this
|
|
15
|
-
* business, cross-merchant surfaces are hidden.
|
|
16
|
-
*/
|
|
17
|
-
export function AccountIframe({ section }: { section?: string }) {
|
|
18
|
-
return <CimplifyAccount section={section} merchantName={brand.name} />;
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import { AccountIframe } from "@/components/account-iframe";
|
|
3
|
-
import { brand } from "@/lib/brand";
|
|
4
|
-
|
|
5
|
-
export const metadata: Metadata = {
|
|
6
|
-
title: `Settings — ${brand.name}`,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default function SettingsPage() {
|
|
10
|
-
return (
|
|
11
|
-
<article className="max-w-5xl mx-auto px-6 sm:px-8 py-12">
|
|
12
|
-
<p className="text-[11px] font-semibold uppercase tracking-[0.16em] text-primary mb-2">
|
|
13
|
-
Account
|
|
14
|
-
</p>
|
|
15
|
-
<h1 className="font-serif text-[clamp(2rem,4vw,2.75rem)] font-semibold mb-8 -tracking-[0.02em]">
|
|
16
|
-
Settings
|
|
17
|
-
</h1>
|
|
18
|
-
<AccountIframe section="settings" />
|
|
19
|
-
</article>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { CimplifyAccount } from "@cimplify/sdk/react";
|
|
4
|
-
import { brand } from "@/lib/brand";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Cimplify Account portal — iframe-mounted UI hosted by Cimplify Link.
|
|
8
|
-
* Handles sign-in, sign-up, OTP, addresses, payment methods, sessions,
|
|
9
|
-
* and order history. The iframe owns auth state; we just choose which
|
|
10
|
-
* `section` to land on.
|
|
11
|
-
*
|
|
12
|
-
* `merchantName` is passed so the embedded widget can render scoping
|
|
13
|
-
* affordances ("Showing your account with {merchant} only.") and
|
|
14
|
-
* enforce the per-merchant data contract — orders/subs filter to this
|
|
15
|
-
* business, cross-merchant surfaces are hidden.
|
|
16
|
-
*/
|
|
17
|
-
export function AccountIframe({ section }: { section?: string }) {
|
|
18
|
-
return <CimplifyAccount section={section} merchantName={brand.name} />;
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import { AccountIframe } from "@/components/account-iframe";
|
|
3
|
-
import { brand } from "@/lib/brand";
|
|
4
|
-
|
|
5
|
-
export const metadata: Metadata = {
|
|
6
|
-
title: `Settings — ${brand.name}`,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default function SettingsPage() {
|
|
10
|
-
return (
|
|
11
|
-
<article className="max-w-5xl mx-auto px-6 sm:px-8 py-12">
|
|
12
|
-
<p className="text-[11px] font-semibold uppercase tracking-[0.16em] text-primary mb-2">
|
|
13
|
-
Account
|
|
14
|
-
</p>
|
|
15
|
-
<h1 className="font-serif text-[clamp(2rem,4vw,2.75rem)] font-semibold mb-8 -tracking-[0.02em]">
|
|
16
|
-
Settings
|
|
17
|
-
</h1>
|
|
18
|
-
<AccountIframe section="settings" />
|
|
19
|
-
</article>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { CimplifyAccount } from "@cimplify/sdk/react";
|
|
4
|
-
import { brand } from "@/lib/brand";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Cimplify Account portal — iframe-mounted UI hosted by Cimplify Link.
|
|
8
|
-
* Handles sign-in, sign-up, OTP, addresses, payment methods, sessions,
|
|
9
|
-
* and order history. The iframe owns auth state; we just choose which
|
|
10
|
-
* `section` to land on.
|
|
11
|
-
*
|
|
12
|
-
* `merchantName` is passed so the embedded widget can render scoping
|
|
13
|
-
* affordances ("Showing your account with {merchant} only.") and
|
|
14
|
-
* enforce the per-merchant data contract — orders/subs filter to this
|
|
15
|
-
* business, cross-merchant surfaces are hidden.
|
|
16
|
-
*/
|
|
17
|
-
export function AccountIframe({ section }: { section?: string }) {
|
|
18
|
-
return <CimplifyAccount section={section} merchantName={brand.name} />;
|
|
19
|
-
}
|