@aws/mynah-ui 2.0.0-beta.16.0 → 2.0.0-beta.16.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/README.md CHANGED
@@ -36,7 +36,7 @@ export const createMynahUI = () => {
36
36
  onSourceLinkClick?: (tabId: string, messageId: string, link: string, mouseEvent?: MouseEvent) => void;
37
37
  onLinkClick?: (tabId: string, messageId: string, link: string, mouseEvent?: MouseEvent) => void;
38
38
  onSendFeedback?: (tabId: string, feedbackPayload: FeedbackPayload) => void;
39
- onOpenDiff?: (tabId: string, leftPath: string, rightPath: string, messageId?: string) => void;
39
+ onOpenDiff?: (tabId: string, filePath: string, deleted: boolean, messageId?: string) => void;
40
40
  });
41
41
  }
42
42
  ```
@@ -7,6 +7,7 @@ export interface ChatItemTreeViewWrapperProps {
7
7
  tabId: string;
8
8
  messageId: string;
9
9
  files: string[];
10
+ deletedFiles: string[];
10
11
  }
11
12
  export declare class ChatItemTreeViewWrapper {
12
13
  render: ExtendedHTMLElement;
@@ -7,10 +7,11 @@ export interface FileNode {
7
7
  name: string;
8
8
  type: 'file';
9
9
  filePath: string;
10
+ deleted: boolean;
10
11
  }
11
12
  export interface FolderNode {
12
13
  name: string;
13
14
  type: 'folder';
14
15
  children: Array<FolderNode | FileNode>;
15
16
  }
16
- export declare const fileListToTree: (filePaths: string[]) => TreeNode;
17
+ export declare const fileListToTree: (modifiedFilePaths: string[], deletedFilePaths?: string[]) => TreeNode;
package/dist/main.d.ts CHANGED
@@ -28,7 +28,7 @@ export interface MynahUIProps {
28
28
  onSourceLinkClick?: (tabId: string, messageId: string, link: string, mouseEvent?: MouseEvent) => void;
29
29
  onLinkClick?: (tabId: string, messageId: string, link: string, mouseEvent?: MouseEvent) => void;
30
30
  onSendFeedback?: (tabId: string, feedbackPayload: FeedbackPayload) => void;
31
- onOpenDiff?: (tabId: string, leftPath: string, rightPath: string, messageId?: string) => void;
31
+ onOpenDiff?: (tabId: string, filePath: string, deleted: boolean, messageId?: string) => void;
32
32
  }
33
33
  export declare class MynahUI {
34
34
  private readonly props;