@fileverse-dev/ddoc 2.0.5 → 2.0.6-patch-1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +20 -19
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +34710 -29672
- package/dist/package/components/secure-image.d.ts +6 -4
- package/dist/package/preview-ddoc-editor.d.ts +4 -0
- package/dist/package/types.d.ts +1 -0
- package/dist/package/utils/security.d.ts +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
@@ -1,11 +1,13 @@
|
|
1
|
-
import { FC } from 'react';
|
2
|
-
|
3
1
|
type Props = {
|
4
2
|
encryptedKey: string;
|
5
3
|
url: string;
|
6
4
|
iv: string;
|
7
|
-
privateKey:
|
5
|
+
privateKey: string;
|
8
6
|
alt?: string;
|
7
|
+
width?: string;
|
8
|
+
height?: string;
|
9
|
+
className?: string;
|
10
|
+
caption?: string;
|
9
11
|
};
|
10
|
-
export declare const SecureImage:
|
12
|
+
export declare const SecureImage: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLImageElement>>;
|
11
13
|
export {};
|
package/dist/package/types.d.ts
CHANGED
@@ -2,7 +2,7 @@ export declare const base64ToArrayBuffer: (base64String: string) => ArrayBufferL
|
|
2
2
|
export declare const arrayBufferToBase64: (buffer: ArrayBuffer) => string;
|
3
3
|
export declare const generateRSAKeyPair: () => Promise<{
|
4
4
|
publicKey: ArrayBuffer;
|
5
|
-
privateKey:
|
5
|
+
privateKey: Uint8Array;
|
6
6
|
}>;
|
7
7
|
export declare const decryptAESKey: (encryptedKeyBase64: string, privateKeyPem: BufferSource) => Promise<ArrayBuffer>;
|
8
8
|
export declare const decryptImageData: (encryptedImageData: ArrayBuffer, aesKeyBuffer: ArrayBuffer, iv: string) => Promise<ArrayBuffer>;
|
@@ -13,5 +13,5 @@ type DecryptImage = {
|
|
13
13
|
iv: string;
|
14
14
|
imageBuffer: ArrayBuffer;
|
15
15
|
};
|
16
|
-
export declare const decryptImage: ({ encryptedKey, privateKey, iv, imageBuffer }: DecryptImage) => Promise<ArrayBuffer | undefined>;
|
16
|
+
export declare const decryptImage: ({ encryptedKey, privateKey, iv, imageBuffer, }: DecryptImage) => Promise<ArrayBuffer | undefined>;
|
17
17
|
export {};
|