# Anchors of 0005-register-legal-stripe.patch (applies after 0004). Format: see anchors/0004-tiktok-audit-ux.txt.
#
# Sign-up: the two legal links point at postiz.com; the patch reuses the React hooks register.tsx already imports.
apps/frontend/src/components/auth/register.tsx|https://postiz.com/terms|1
apps/frontend/src/components/auth/register.tsx|https://postiz.com/privacy|1
apps/frontend/src/components/auth/register.tsx|import { useCallback, useEffect, useMemo, useState } from 'react';|1
# Billing: the three files that import Stripe.js (the side-effect entry injects js.stripe.com on import).
apps/frontend/src/components/billing/embedded.billing.tsx|import { Stripe } from '@stripe/stripe-js';|1
apps/frontend/src/components/billing/first.billing.component.tsx|import { loadStripe, Stripe } from '@stripe/stripe-js';|1
apps/frontend/src/components/billing/use.payment.action.tsx|import { loadStripe } from '@stripe/stripe-js';|1
# The /pure entry exists in the locked version (checked in the v2.25.3 image: node_modules/@stripe/stripe-js/pure).
pnpm-lock.yaml|  '@stripe/stripe-js@8.9.0':\n    resolution:|1
#
# Contract of the result: no postiz.com legal link at sign-up, our legal pages, no eager Stripe.js import left.
# The Stripe type lives only in the main entry (/pure exports loadStripe alone: TS2305 on 27 Oct), so the two
# files keep one main-entry import, and it must be the type-only one (erased at build, no js.stripe.com).
after:apps/frontend/src/components/auth/register.tsx|postiz.com|0
after:apps/frontend/src/components/auth/register.tsx|https://ilovedigital.eu/pt/termos/|1
after:apps/frontend/src/components/auth/register.tsx|https://ilovedigital.eu/pt/privacidade/|1
after:apps/frontend/src/components/billing/embedded.billing.tsx|from '@stripe/stripe-js';|1
after:apps/frontend/src/components/billing/embedded.billing.tsx|import type { Stripe } from '@stripe/stripe-js';|1
after:apps/frontend/src/components/billing/first.billing.component.tsx|from '@stripe/stripe-js';|1
after:apps/frontend/src/components/billing/first.billing.component.tsx|import type { Stripe } from '@stripe/stripe-js';|1
after:apps/frontend/src/components/billing/first.billing.component.tsx|import { loadStripe } from '@stripe/stripe-js/pure';|1
after:apps/frontend/src/components/billing/use.payment.action.tsx|from '@stripe/stripe-js';|0
