@contentauth/c2pa-web 0.15.4 → 0.15.6

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
@@ -10,6 +10,18 @@ As a guiding philosophy, `c2pa-web` attempts to adhere closely to the API paradi
10
10
  npm install @contentauth/c2pa-web
11
11
  ```
12
12
 
13
+ ## Documentation
14
+
15
+ The [versioned web API documentation](https://contentauth.github.io/c2pa-js/web/)
16
+ is generated with TypeDoc from the declarations in published versions of
17
+ `@contentauth/c2pa-web`, including both the main and `/inline` entry points.
18
+ Use the version selector to switch releases. The existing
19
+ [multi-package source documentation](https://contentauth.github.io/c2pa-js/)
20
+ remains available.
21
+
22
+ For documentation builds and version-list maintenance, see
23
+ [Building API documentation](https://github.com/contentauth/c2pa-js/tree/main/docs/project-contributions.md#building-api-documentation).
24
+
13
25
  ## Importing the library
14
26
 
15
27
  Due to [specific requirements](https://developer.mozilla.org/en-US/docs/WebAssembly/Guides/Loading_and_running) for handling Wasm modules, there are two ways to import the library:
@@ -110,7 +122,7 @@ const builder = await c2pa.builder.new();
110
122
 
111
123
  ## Using the library
112
124
 
113
- See also the [API reference documentation](https://contentauth.github.io/c2pa-js/modules/_contentauth_c2pa-web.html).
125
+ See also the [versioned API reference documentation](https://contentauth.github.io/c2pa-js/web/).
114
126
 
115
127
  ### Reading C2PA manifests
116
128
 
@@ -346,36 +358,5 @@ For the full list, see the [API reference](https://contentauth.github.io/c2pa-js
346
358
 
347
359
  ## Library development
348
360
 
349
- ### Prerequisites
350
-
351
- Ensure the repo-wide prerequisites are installed:
352
-
353
- - [Node.js](https://nodejs.org/) v22.22+
354
- - [Nx](https://nx.dev/getting-started/intro)
355
- - [pnpm](https://pnpm.io/)
356
-
357
- See the [c2pa-js README](../../README.md#prerequisites) for details.
358
-
359
- Then, install [the additional prerequisites for `c2pa-wasm`](../c2pa-wasm/README.md#prerequisites).
360
-
361
- ### Building
362
-
363
- To build the library:
364
-
365
- ```sh
366
- nx build c2pa-web
367
- ```
368
-
369
- ### Testing
370
-
371
- This library relies on [Vitest](https://vitest.dev/) to run its tests in a headless browser. Before the tests can be run, the test browser binaries must be installed. Run the following from the `packages/c2pa-web` directory (rather than from the root directory, to ensure that the correct binaries are installed):
372
-
373
- ```sh
374
- pnpm exec playwright install
375
- ```
376
-
377
- To run the tests:
378
-
379
- ```sh
380
- nx test c2pa-web
381
- ```
361
+ For prerequisites, source builds, and browser tests, see
362
+ [Contributing to c2pa-web](https://github.com/contentauth/c2pa-js/tree/main/docs/project-contributions.md#contributing-to-c2pa-web).