@namahapdf/react 0.1.1 → 0.2.0

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/README.md CHANGED
@@ -28,8 +28,19 @@ export default function App() {
28
28
  - **Opening PDFs is fully client-side** — no upload, no backend needed. The exception is
29
29
  **password-protected** PDFs: decryption runs on a server endpoint (`decryptUrl`, default
30
30
  same-origin `/api/decrypt-pdf`). Point it at your backend to support encrypted PDFs.
31
+ - **Signing:** Quick (visual) sign is fully client-side. Secure **Sign & certify**
32
+ (cryptographic PAdES, tamper-evident + Certificate of Completion) is server-dependent —
33
+ point the `signUrl` prop (default same-origin `/api/sign`) at your backend to enable it.
31
34
  - Styles are scoped under `.namahapdf-root` and ship without a CSS reset, so they won't
32
35
  affect the rest of your page.
36
+ - **Match your brand** with the `theme` prop — pass one or more hex colors and the full
37
+ tonal scale is derived for you (client-side, no network call):
38
+
39
+ ```tsx
40
+ <NamahaEditor theme={{ primary: '#2563EB', surface: '#FFFFFF', text: '#0F172A' }} />
41
+ ```
42
+
43
+ All keys are optional — pass just `primary` for an accent-only reskin.
33
44
  - Works in the Next.js App Router (the component is marked `"use client"`).
34
45
 
35
46
  For the headless engine without the UI, see **@namahapdf/core**.