2025-04-18 19:19:20 +02:00
|
|
|
---
|
|
|
|
title: DiffViewer
|
|
|
|
---
|
|
|
|
|
2025-05-10 14:48:08 +02:00
|
|
|
import { DocusaurusDoc } from '@freesewing/react/components/Docusaurus'
|
2025-05-25 16:29:57 +02:00
|
|
|
import { FunctionDocs } from '@site/src/components/function-docs.js'
|
|
|
|
import * as fndoc from '@site/prebuild/jsdoc/functions.diffviewer.mjs'
|
2025-05-10 14:48:08 +02:00
|
|
|
|
|
|
|
<DocusaurusDoc>
|
|
|
|
|
2025-05-25 16:29:57 +02:00
|
|
|
- [Components](#components)
|
|
|
|
- [Functions](#functions)
|
|
|
|
|
|
|
|
:::tip
|
|
|
|
|
|
|
|
#### Not FreeSewing code
|
|
|
|
|
|
|
|
This component family only contains re-exports of code by other maintainers.\
|
|
|
|
Since they are a dependency, we provide them as part of the <code>@freesewing/react</code> package for convenience.
|
|
|
|
|
|
|
|
Please refer to the documentation for [react-diff-viewer-continued][dv] and [jsdiff][jsd].
|
|
|
|
:::
|
|
|
|
|
|
|
|
## Components
|
|
|
|
|
2025-05-10 14:48:08 +02:00
|
|
|
The **DiffViewer** component family provides the following components:
|
|
|
|
|
|
|
|
- [DiffViewer](#diffviewer): A re-export of [react-diff-viewer-continued][dv]
|
|
|
|
|
2025-05-25 16:29:57 +02:00
|
|
|
## Functions
|
|
|
|
|
|
|
|
The **DiffViewer** family also exports the following functions:
|
2025-05-10 14:48:08 +02:00
|
|
|
|
|
|
|
- [diffJSON](#diffjson): A re-export of the [diffJson][jsd] function of the [jsdiff package][jsd]
|
|
|
|
- [diffCheck](#diffcheck): A re-export of the [diffWords][jsd] function of the [jsdiff package][jsd]
|
|
|
|
|
2025-05-25 16:29:57 +02:00
|
|
|
### diffJSON
|
2025-05-10 14:48:08 +02:00
|
|
|
|
2025-05-25 16:29:57 +02:00
|
|
|
<FunctionDocs docs={fndoc.jsdocdiffJSON} />
|
|
|
|
|
|
|
|
### diffCheck
|
|
|
|
|
|
|
|
<FunctionDocs docs={fndoc.jsdocdiffCheck} />
|
2025-05-10 14:48:08 +02:00
|
|
|
|
|
|
|
</DocusaurusDoc>
|
|
|
|
|
|
|
|
[dv]: https://github.com/aeolun/react-diff-viewer-continued?tab=readme-ov-file#usage
|
|
|
|
[jsd]: https://github.com/kpdecker/jsdiff
|