@namahapdf/react 0.1.0 → 0.1.1
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 +11 -1
- package/dist/index.cjs +63 -62
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +33 -32
- package/dist/styles.css +1 -1
- package/package.json +17 -4
package/dist/index.d.cts
CHANGED
|
@@ -6,6 +6,13 @@ interface NamahaEditorProps {
|
|
|
6
6
|
licenseKey?: string;
|
|
7
7
|
/** Override the activation endpoint (defaults to a same-origin /api/license/activate). */
|
|
8
8
|
activationUrl?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Endpoint used to decrypt password-protected PDFs. Unencrypted PDFs open fully
|
|
11
|
+
* in the browser with no network call; only encrypted ones use this. Defaults to
|
|
12
|
+
* a same-origin `/api/decrypt-pdf`. Point it at NamahaPDF's hosted API (or your
|
|
13
|
+
* own backend) to support opening encrypted PDFs inside your app.
|
|
14
|
+
*/
|
|
15
|
+
decryptUrl?: string;
|
|
9
16
|
/** Extra class on the scoping wrapper. */
|
|
10
17
|
className?: string;
|
|
11
18
|
style?: React.CSSProperties;
|
|
@@ -17,7 +24,7 @@ interface NamahaEditorProps {
|
|
|
17
24
|
*
|
|
18
25
|
* Import the stylesheet once in your app: `import '@namahapdf/react/styles.css'`.
|
|
19
26
|
*/
|
|
20
|
-
declare function NamahaEditor({ licenseKey, activationUrl, className, style }: NamahaEditorProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
declare function NamahaEditor({ licenseKey, activationUrl, decryptUrl, className, style, }: NamahaEditorProps): react_jsx_runtime.JSX.Element;
|
|
21
28
|
|
|
22
29
|
/** Shared license/activation contracts used by both the engine gate and the server. */
|
|
23
30
|
/** Capabilities a license can unlock. `view`/`annotate` are the always-available base. */
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,13 @@ interface NamahaEditorProps {
|
|
|
6
6
|
licenseKey?: string;
|
|
7
7
|
/** Override the activation endpoint (defaults to a same-origin /api/license/activate). */
|
|
8
8
|
activationUrl?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Endpoint used to decrypt password-protected PDFs. Unencrypted PDFs open fully
|
|
11
|
+
* in the browser with no network call; only encrypted ones use this. Defaults to
|
|
12
|
+
* a same-origin `/api/decrypt-pdf`. Point it at NamahaPDF's hosted API (or your
|
|
13
|
+
* own backend) to support opening encrypted PDFs inside your app.
|
|
14
|
+
*/
|
|
15
|
+
decryptUrl?: string;
|
|
9
16
|
/** Extra class on the scoping wrapper. */
|
|
10
17
|
className?: string;
|
|
11
18
|
style?: React.CSSProperties;
|
|
@@ -17,7 +24,7 @@ interface NamahaEditorProps {
|
|
|
17
24
|
*
|
|
18
25
|
* Import the stylesheet once in your app: `import '@namahapdf/react/styles.css'`.
|
|
19
26
|
*/
|
|
20
|
-
declare function NamahaEditor({ licenseKey, activationUrl, className, style }: NamahaEditorProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
declare function NamahaEditor({ licenseKey, activationUrl, decryptUrl, className, style, }: NamahaEditorProps): react_jsx_runtime.JSX.Element;
|
|
21
28
|
|
|
22
29
|
/** Shared license/activation contracts used by both the engine gate and the server. */
|
|
23
30
|
/** Capabilities a license can unlock. `view`/`annotate` are the always-available base. */
|