You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The legacy JavaScript library is deprecated and the repository has been renamed to [c2pa-js-legacy](https://github.com/contentauth/c2pa-js-legacy). The new JavaScript web library is now in the https://github.com/contentauth/c2pa-js repository. The old package will no longer be updated or supported.
2
+
This is documentation for the deprecated legacy JavaScript library, [c2pa-js-legacy](https://github.com/contentauth/c2pa-js-legacy). This library will no longer be updated or supported.
3
3
4
-
If you're starting a new application, use the new library instead.
4
+
The new JavaScript web library is in the https://github.com/contentauth/c2pa-js repository. If you're starting a new application, use the new library instead.
Copy file name to clipboardExpand all lines: docs/js-sdk/getting-started/quick-start.mdx
+1-31Lines changed: 1 addition & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ You can bring in the JavaScript library by using a content delivery network (CDN
36
36
37
37
The quickest way to get up and running is to use a CDN such as [jsDelivr](https://www.jsdelivr.com/). One of the big advantages of using a CDN is that it provides all the required static assets, so you don't have to host them. The CDN also delivers the files at the edge, which enables faster downloads to your users.
38
38
39
-
Static assets include the following, as seen in the config passed to [`createC2pa`](../../js-sdk/api/c2pa.createc2pa):
39
+
For example:
40
40
41
41
```js
42
42
constversion='0.24.2';
@@ -68,33 +68,3 @@ When loading via a package manager, the library needs access to two externally-h
68
68
:::note
69
69
Be sure to configure your server to send proper `Content-Type` headers for these files. For more information, see [Hosting](../guides/hosting).
70
70
:::
71
-
72
-
Examples for common build systems are shown below. They are also available in the [c2pa-js-examples repository](https://github.com/contentauth/c2pa-js-examples).
This example is from [c2pa-js-examples/minimal-ts-vite/](https://github.com/contentauth/c2pa-js-examples/blob/main/minimal-ts-vite/). To view and execute this example in a live [code sandbox](https://codesandbox.io/docs/learn/legacy-sandboxes/overview), see [Code Sandbox: Vite example](../guides/sandbox-qs-vite.mdx).
83
-
84
-
<CodeBlocklanguage="ts">{ViteExample}</CodeBlock>
85
-
</TabItem>
86
-
87
-
<TabItemvalue="rollup"label="Rollup">
88
-
89
-
This example is from [c2pa-js-examples/minimal-ts-rollup/](https://github.com/contentauth/c2pa-js-examples/blob/main/minimal-ts-rollup/). To view and execute this example in a live [code sandbox](https://codesandbox.io/docs/learn/legacy-sandboxes/overview), see [Code Sandbox: Rollup example](../guides/sandbox-qs-rollup.mdx).
This example is from [c2pa-js-examples/minimal-ts-webpack/](https://github.com/contentauth/c2pa-js-examples/blob/main/minimal-ts-webpack/). To view and execute this example in a live [code sandbox](https://codesandbox.io/docs/learn/legacy-sandboxes/overview), see [Code Sandbox: Webpack example](../guides/sandbox-qs-webpack.mdx).
Copy file name to clipboardExpand all lines: docs/js-sdk/guides/examples.mdx
+1-21Lines changed: 1 addition & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,24 +13,4 @@ JavaScript examples are in **[contentauth/c2pa-js-examples](https://github.com/c
13
13
As noted in the [overview](../getting-started/overview#technologies-that-the-library-uses), the JavaScript library uses a number of modern JavaScript technologies such as WebAssembly (Wasm) and Web Workers. To understand the JavaScript examples, you should be familiar with these technologies, [TypeScript](https://www.typescriptlang.org/) and at least one bundler tool such as [Webpack](https://webpack.js.org/), [Rollup](https://rollupjs.org/), or [Vite](https://vitejs.dev/).
14
14
:::
15
15
16
-
Additionally, the JavaScript examples use TypeScript for type safety.
|[esm-imports](https://github.com/contentauth/c2pa-js/tree/main/examples/esm-imports)| None | None | The simplest example using vanilla JavaScript (ECMAScript). |
0 commit comments