@aws/mynah-ui 4.23.0-beta.7 → 4.23.0-beta.9

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/static.d.ts CHANGED
@@ -247,7 +247,8 @@ export interface ChatItemContent {
247
247
  rootFolderTitle?: string;
248
248
  filePaths?: string[];
249
249
  deletedFiles?: string[];
250
- collapsedByDefault?: boolean;
250
+ flatList?: boolean;
251
+ collapsed?: boolean;
251
252
  hideFileCount?: boolean;
252
253
  actions?: Record<string, FileNodeAction[]>;
253
254
  details?: Record<string, TreeNodeDetails>;
package/docs/DATAMODEL.md CHANGED
@@ -885,7 +885,8 @@ interface ChatItemContent {
885
885
  rootFolderTitle?: string;
886
886
  filePaths?: string[];
887
887
  deletedFiles?: string[];
888
- collapsedByDefault?: boolean;
888
+ flatList?: boolean;
889
+ collapsed?: boolean;
889
890
  hideFileCount?: boolean;
890
891
  actions?: Record<string, FileNodeAction[]>;
891
892
  details?: Record<string, TreeNodeDetails>;
@@ -1772,8 +1773,9 @@ mynahUI.addChatItem(tabId, {
1772
1773
  deletedFiles: ['src/devfile.yaml'],
1773
1774
  // fileTreeTitle: "Custom file tree card title";
1774
1775
  // rootFolderTitle: "Custom root folder title";
1775
- // collapsedByDefault: true // Collapse the root folder by default
1776
+ // collapsed: true // Collapse the root folder by default
1776
1777
  // hideFileCount: true // Hide the file counter next to folders
1778
+ // flatList: true // Enable to generate a flat list with one parent folder and no sub folders
1777
1779
  actions: {
1778
1780
  'src/App.tsx': [
1779
1781
  {
@@ -1818,6 +1820,8 @@ mynahUI.addChatItem(tabId, {
1818
1820
 
1819
1821
  **NOTE 3:** In case you want to show one single file (or folder by giving it a folder icon) and not make it clickable, use the `details` section with the file name and set the `clickable` to `false`.
1820
1822
 
1823
+ **NOTE 4:** In case you want a flat list, where all subfolders are not rendered but just all the files, you can pass `true` to the `flatList` prop.
1824
+
1821
1825
  <p align="center">
1822
1826
  <img src="./img/data-model/chatItems/codeResult.png" alt="mainTitle" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
1823
1827
  </p>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws/mynah-ui",
3
3
  "displayName": "AWS Mynah UI",
4
- "version": "4.23.0-beta.7",
4
+ "version": "4.23.0-beta.9",
5
5
  "description": "AWS Toolkit VSCode and Intellij IDE Extension Mynah UI",
6
6
  "publisher": "Amazon Web Services",
7
7
  "license": "Apache License 2.0",