@oliasoft-open-source/react-ui-library 10.0.2 → 10.1.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/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { Context } from 'react';
4
4
  import { CSSProperties } from 'react';
5
5
  import { default as default_2 } from 'react';
6
6
  import { DependencyList } from 'react';
7
+ import { DiffMethod } from 'react-diff-viewer-continued';
7
8
  import { DropOptions } from '@minoru/react-dnd-treeview';
8
9
  import { Editor } from '@tiptap/react';
9
10
  import { ElementType as ElementType_2 } from 'react';
@@ -105,6 +106,12 @@ export declare const Column: ({ background, borderLeft, borderRight, children, f
105
106
 
106
107
  export declare const Dialog: ({ dialog }: IDialogProps) => JSX.Element;
107
108
 
109
+ /**
110
+ * Line-oriented code viewer. Pass `compareValue` to highlight diffs; omit it to show code only.
111
+ * Callers should stringify JSON (or other structured data) before passing it in.
112
+ */
113
+ export declare const DiffCode: ({ value, compareValue, splitView, showDiffOnly, compareMethod, extraLinesSurroundingDiff, hideSummary, className, }: IDiffCodeProps) => JSX.Element;
114
+
108
115
  /**
109
116
  * Skinny wrapper around Table that highlights row/cell differences between
110
117
  * `table.rows` (current) and `compareRows` (previous).
@@ -496,6 +503,17 @@ export declare interface IDialogProps {
496
503
  dialog: IDialog;
497
504
  }
498
505
 
506
+ export declare type IDiffCodeProps = {
507
+ value: string;
508
+ compareValue?: string;
509
+ splitView?: boolean;
510
+ showDiffOnly?: boolean;
511
+ compareMethod?: DiffMethod;
512
+ extraLinesSurroundingDiff?: number;
513
+ hideSummary?: boolean;
514
+ className?: string;
515
+ };
516
+
499
517
  export declare interface IDiffTableProps extends Omit<ITableProps, 'table'> {
500
518
  table: ITableTableProps;
501
519
  compareRows: TRowsType;