@contentauth/c2pa-web 0.14.6 → 0.15.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 +64 -9
- package/dist/c2pa-DIv7lJlp.js +886 -0
- package/dist/c2pa_worker.js +226 -179
- package/dist/common.d.ts +4 -4
- package/dist/common.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -21
- package/dist/inline.d.ts +5 -3
- package/dist/inline.d.ts.map +1 -1
- package/dist/inline.js +5 -2
- package/dist/lib/builder.d.ts +96 -51
- package/dist/lib/builder.d.ts.map +1 -1
- package/dist/lib/c2pa.d.ts +22 -9
- package/dist/lib/c2pa.d.ts.map +1 -1
- package/dist/lib/reader.d.ts +52 -34
- package/dist/lib/reader.d.ts.map +1 -1
- package/dist/lib/signer.d.ts +75 -0
- package/dist/lib/signer.d.ts.map +1 -1
- package/dist/lib/worker/rpc.d.ts +9 -7
- package/dist/lib/worker/rpc.d.ts.map +1 -1
- package/dist/lib/worker/workerManager.d.ts +2 -3
- package/dist/lib/worker/workerManager.d.ts.map +1 -1
- package/dist/resources/c2pa_bg.wasm +0 -0
- package/package.json +3 -3
- package/dist/c2pa-BK_gbEns.js +0 -522
package/dist/common.d.ts
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* accordance with the terms of the Adobe license agreement accompanying
|
|
7
7
|
* it.
|
|
8
8
|
*/
|
|
9
|
-
export type
|
|
10
|
-
export type {
|
|
11
|
-
export type {
|
|
12
|
-
export type { Signer, SigningAlg } from './lib/signer.js';
|
|
9
|
+
export type { Config, C2pa } from './lib/c2pa.js';
|
|
10
|
+
export type { ManifestAndAssetBytes, BuilderFactory } from './lib/builder.js';
|
|
11
|
+
export type { ReaderFactory } from './lib/reader.js';
|
|
12
|
+
export type { Signer, SigningAlg, HashedUri, SignerPayload, CredentialHolder, IdentityAssertion, SignOptions } from './lib/signer.js';
|
|
13
13
|
export type * from '@contentauth/c2pa-types';
|
|
14
14
|
//# sourceMappingURL=common.d.ts.map
|
package/dist/common.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAElD,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE9E,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,YAAY,EACV,MAAM,EACN,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACZ,MAAM,iBAAiB,CAAC;AAGzB,mBAAmB,yBAAyB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* it.
|
|
8
8
|
*/
|
|
9
9
|
export { createC2pa } from './lib/c2pa.js';
|
|
10
|
+
export { Reader } from './lib/reader.js';
|
|
11
|
+
export { Builder } from './lib/builder.js';
|
|
10
12
|
export * from './common.js';
|
|
11
13
|
export * from '@contentauth/c2pa-utilities';
|
|
12
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as e, B as t, C as r, D as E, a as T, b as _, c as S, d as A, e as i, f as R, R as g, g as n, h as o, i as D, j as L, k as l, l as F, m as f, n as I, o as M, r as U, p as c, s as u, q as Y, v as d, w as h } from "./c2pa-DIv7lJlp.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
t as
|
|
5
|
-
r as
|
|
3
|
+
e as AssetTooLargeError,
|
|
4
|
+
t as Builder,
|
|
5
|
+
r as Context,
|
|
6
|
+
E as DEFAULT_INITIAL_RETRY_DELAY_MS,
|
|
7
|
+
T as DEFAULT_MAX_RESPONSE_BYTES,
|
|
6
8
|
_ as DEFAULT_MAX_RETRIES,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
M as
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
S as DEFAULT_MAX_RETRY_AFTER_MS,
|
|
10
|
+
A as DEFAULT_MAX_RETRY_DELAY_MS,
|
|
11
|
+
i as DEFAULT_MAX_SIZE_IN_BYTES,
|
|
12
|
+
R as DEFAULT_SETTINGS,
|
|
13
|
+
g as Reader,
|
|
14
|
+
n as createC2pa,
|
|
15
|
+
o as createCawgTrustSettings,
|
|
16
|
+
D as createTrustSettings,
|
|
17
|
+
L as createVerifySettings,
|
|
18
|
+
l as defaultIsRetryableStatus,
|
|
19
|
+
F as fetchWithRetry,
|
|
20
|
+
f as fetchWithRetryRaw,
|
|
21
|
+
I as loadSettingsFromUrl,
|
|
22
|
+
M as mergeSettings,
|
|
23
|
+
U as resolveSettings,
|
|
24
|
+
c as resolveTrustSettings,
|
|
25
|
+
u as settingsToJson,
|
|
26
|
+
Y as snakeCaseify,
|
|
27
|
+
d as validateAssetSize,
|
|
28
|
+
h as withDefaultSettings
|
|
24
29
|
};
|
package/dist/inline.d.ts
CHANGED
|
@@ -6,15 +6,17 @@ export type InlineConfig = Omit<Config, 'wasmSrc'>;
|
|
|
6
6
|
* This is the "inline" version which compiles the WASM binary from an inlined, base64-encoded string.
|
|
7
7
|
*
|
|
8
8
|
* @param config - SDK configuration object.
|
|
9
|
-
* @returns
|
|
9
|
+
* @returns A handle to the running worker, to be passed to `Reader`/`Builder`'s static methods.
|
|
10
10
|
*
|
|
11
11
|
* @example Creating a new SDK instance and reader:
|
|
12
12
|
* ```
|
|
13
13
|
* const c2pa = await createC2pa();
|
|
14
14
|
*
|
|
15
|
-
* const reader = await
|
|
15
|
+
* const reader = await Reader.fromBlob(c2pa, imageBlob.type, imageBlob);
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
export declare function createC2pa(config?: InlineConfig): Promise<import('./common.js').
|
|
18
|
+
export declare function createC2pa(config?: InlineConfig): Promise<import('./common.js').C2pa>;
|
|
19
|
+
export { Reader } from './lib/reader.js';
|
|
20
|
+
export { Builder } from './lib/builder.js';
|
|
19
21
|
export * from './common.js';
|
|
20
22
|
//# sourceMappingURL=inline.d.ts.map
|
package/dist/inline.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../src/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAgC,MAAM,EAAE,MAAM,eAAe,CAAC;AAGrE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAEnD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,UAAU,CAAC,MAAM,CAAC,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../src/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAgC,MAAM,EAAE,MAAM,eAAe,CAAC;AAGrE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAEnD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,UAAU,CAAC,MAAM,CAAC,EAAE,YAAY,uCAOrD;AAED,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,cAAc,aAAa,CAAC"}
|