@cloud-ru/ds-ai-code-diff 0.0.0-stage → 0.0.1-preview-cbb08c35.0

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/src/types.ts ADDED
@@ -0,0 +1,18 @@
1
+ import { ValueOf } from '@cloud-ru/ds-utils'
2
+
3
+ import { SIZE } from './constants'
4
+
5
+ export type Size = ValueOf<typeof SIZE>
6
+
7
+ export type AiCodeDiffProps = {
8
+ /** Уже отформатированный текст добавленных строк, например "+83". */
9
+ added: string
10
+ /** Уже отформатированный текст удалённых строк, например "-26". */
11
+ removed: string
12
+ /** Типографика. По умолчанию `m`. */
13
+ size?: Size
14
+ /** Разделитель между added и removed. По умолчанию "/". */
15
+ separator?: string
16
+ className?: string
17
+ 'data-test-id'?: string
18
+ }