@oliasoft-open-source/react-ui-library 10.0.3-beta-1 → 10.1.1-beta-1

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).
@@ -247,6 +254,7 @@ declare interface IAuditLogProps {
247
254
  snapshotLoading?: boolean;
248
255
  getActions?: (log: AuditLogItem) => any[];
249
256
  isLogDisabled?: (log: AuditLogItem) => boolean;
257
+ onClickNavigateToDesgin?: (operationMetaData: string | number) => void;
250
258
  }
251
259
 
252
260
  export declare interface IBadgeProps {
@@ -496,6 +504,17 @@ export declare interface IDialogProps {
496
504
  dialog: IDialog;
497
505
  }
498
506
 
507
+ export declare type IDiffCodeProps = {
508
+ value: string;
509
+ compareValue?: string;
510
+ splitView?: boolean;
511
+ showDiffOnly?: boolean;
512
+ compareMethod?: DiffMethod;
513
+ extraLinesSurroundingDiff?: number;
514
+ hideSummary?: boolean;
515
+ className?: string;
516
+ };
517
+
499
518
  export declare interface IDiffTableProps extends Omit<ITableProps, 'table'> {
500
519
  table: ITableTableProps;
501
520
  compareRows: TRowsType;