@aws/mynah-ui 4.36.0-beta.1 → 4.36.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.
Files changed (69) hide show
  1. package/README.md +1 -1
  2. package/dist/components/chat-item/chat-wrapper.d.ts +5 -4
  3. package/dist/components/detailed-list/detailed-list-item.d.ts +1 -0
  4. package/dist/components/detailed-list/detailed-list.d.ts +2 -0
  5. package/dist/components/form-items/select.d.ts +7 -0
  6. package/dist/components/form-items/text-input.d.ts +2 -0
  7. package/dist/helper/test-ids.d.ts +3 -3
  8. package/dist/main.d.ts +12 -0
  9. package/dist/main.js +1 -1
  10. package/dist/main.js.map +1 -1
  11. package/dist/static.d.ts +12 -1
  12. package/docs/CONFIG.md +38 -1
  13. package/docs/DATAMODEL.md +12 -1
  14. package/docs/PROPERTIES.md +20 -0
  15. package/docs/USAGE.md +39 -0
  16. package/docs/img/dragOverlayIcon.png +0 -0
  17. package/docs/img/texts/dragOverlayText.png +0 -0
  18. package/docs/img/texts/pinContextHint.png +0 -0
  19. package/package.json +2 -1
  20. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Context-selector-should-close-the-context-selector-by-pressing-space/Open-MynahUI-Context-selector-should-close-the-context-selector-by-pressing-space-1.png +0 -0
  21. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Context-selector-should-filter-context-selector-list/Open-MynahUI-Context-selector-should-filter-context-selector-list-1.png +0 -0
  22. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Context-selector-should-render-the-context-selector/Open-MynahUI-Context-selector-should-render-the-context-selector-1.png +0 -0
  23. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-1.png +0 -0
  24. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-2.png +0 -0
  25. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-3.png +0 -0
  26. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-4.png +0 -0
  27. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-5.png +0 -0
  28. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-6.png +0 -0
  29. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button-1.png +0 -0
  30. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button-2.png +0 -0
  31. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-Action-Commands-Header-should-handle-quick-action-commands-header-interaction/quick-action-commands-header-hover.png +0 -0
  32. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-Action-Commands-Header-should-not-render-header-when-not-applicable/quick-action-commands-header-not-present.png +0 -0
  33. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-Action-Commands-Header-should-render-header-with-correct-status-styling/quick-action-commands-header-status.png +0 -0
  34. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-Action-Commands-Header-should-render-the-quick-action-commands-header/quick-action-commands-header.png +0 -0
  35. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-command-selector-should-close-the-quick-command-selector-by-pressing-space/Open-MynahUI-Quick-command-selector-should-close-the-quick-command-selector-by-pressing-space-1.png +0 -0
  36. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-command-selector-should-filter-quick-command-selector-list/Open-MynahUI-Quick-command-selector-should-filter-quick-command-selector-list-1.png +0 -0
  37. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-command-selector-should-render-the-quick-command-selector/Open-MynahUI-Quick-command-selector-should-render-the-quick-command-selector-1.png +0 -0
  38. package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-1.png +0 -0
  39. package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-2.png +0 -0
  40. package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-3.png +0 -0
  41. package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-parse-markdown/Open-MynahUI-should-parse-markdown-1.png +0 -0
  42. package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-render-custom-icons-correctly/Open-MynahUI-should-render-custom-icons-correctly-2.png +0 -0
  43. package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-render-information-cards-correctly/Open-MynahUI-should-render-information-cards-correctly-1.png +0 -0
  44. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Context-selector-should-close-the-context-selector-by-pressing-space/Open-MynahUI-Context-selector-should-close-the-context-selector-by-pressing-space-1.png +0 -0
  45. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Context-selector-should-filter-context-selector-list/Open-MynahUI-Context-selector-should-filter-context-selector-list-1.png +0 -0
  46. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Context-selector-should-render-the-context-selector/Open-MynahUI-Context-selector-should-render-the-context-selector-1.png +0 -0
  47. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-1.png +0 -0
  48. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-2.png +0 -0
  49. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-3.png +0 -0
  50. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-4.png +0 -0
  51. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-5.png +0 -0
  52. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-6.png +0 -0
  53. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button-1.png +0 -0
  54. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button-2.png +0 -0
  55. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-Action-Commands-Header-should-handle-quick-action-commands-header-interaction/quick-action-commands-header-hover.png +0 -0
  56. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-Action-Commands-Header-should-not-render-header-when-not-applicable/quick-action-commands-header-not-present.png +0 -0
  57. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-Action-Commands-Header-should-render-header-with-correct-status-styling/quick-action-commands-header-status.png +0 -0
  58. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-Action-Commands-Header-should-render-the-quick-action-commands-header/quick-action-commands-header.png +0 -0
  59. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-command-selector-should-close-the-quick-command-selector-by-pressing-space/Open-MynahUI-Quick-command-selector-should-close-the-quick-command-selector-by-pressing-space-1.png +0 -0
  60. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-command-selector-should-filter-quick-command-selector-list/Open-MynahUI-Quick-command-selector-should-filter-quick-command-selector-list-1.png +0 -0
  61. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-command-selector-should-render-the-quick-command-selector/Open-MynahUI-Quick-command-selector-should-render-the-quick-command-selector-1.png +0 -0
  62. package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-1.png +0 -0
  63. package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-2.png +0 -0
  64. package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-3.png +0 -0
  65. package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-parse-markdown/Open-MynahUI-should-parse-markdown-1.png +0 -0
  66. package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-render-custom-icons-correctly/Open-MynahUI-should-render-custom-icons-correctly-2.png +0 -0
  67. package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-render-information-cards-correctly/Open-MynahUI-should-render-information-cards-correctly-1.png +0 -0
  68. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Context-selector-should-select-context-selector-item-with-space/Open-MynahUI-Context-selector-should-select-context-selector-item-with-space-1.png +0 -0
  69. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Context-selector-should-select-context-selector-item-with-space/Open-MynahUI-Context-selector-should-select-context-selector-item-with-space-1.png +0 -0
package/dist/static.d.ts CHANGED
@@ -237,7 +237,7 @@ export declare enum MynahEventNames {
237
237
  TOP_BAR_BUTTON_CLICK = "promptInputTopBarButtonClick",
238
238
  CONTEXT_PINNED = "contextPinned",
239
239
  FILES_DROPPED = "filesDropped",
240
- CONTEXT_INSERTED = "contextInserted"
240
+ RESET_TOP_BAR_CLICKED = "resetTopBarClicked"
241
241
  }
242
242
  export declare enum MynahPortalNames {
243
243
  WRAPPER = "wrapper",
@@ -459,6 +459,7 @@ interface BaseFormItem {
459
459
  description?: string;
460
460
  tooltip?: string;
461
461
  icon?: MynahIcons | MynahIconsType;
462
+ boldTitle?: boolean;
462
463
  }
463
464
  export type TextBasedFormItem = BaseFormItem & {
464
465
  type: 'textarea' | 'textinput' | 'numericinput' | 'email';
@@ -469,6 +470,7 @@ export type TextBasedFormItem = BaseFormItem & {
469
470
  genericValidationErrorMessage?: string;
470
471
  patterns: ValidationPattern[];
471
472
  };
473
+ validateOnChange?: boolean;
472
474
  };
473
475
  type DropdownFormItem = BaseFormItem & {
474
476
  type: 'select';
@@ -477,7 +479,10 @@ type DropdownFormItem = BaseFormItem & {
477
479
  options?: Array<{
478
480
  value: string;
479
481
  label: string;
482
+ description?: string;
480
483
  }>;
484
+ disabled?: boolean;
485
+ selectTooltip?: string;
481
486
  };
482
487
  type Stars = BaseFormItem & {
483
488
  type: 'stars';
@@ -512,6 +517,7 @@ export interface ListFormItem {
512
517
  description?: string;
513
518
  tooltip?: string;
514
519
  icon?: MynahIcons | MynahIconsType;
520
+ boldTitle?: boolean;
515
521
  items: SingularFormItem[];
516
522
  value: ListItemEntry[];
517
523
  }
@@ -695,6 +701,7 @@ export interface ConfigTexts {
695
701
  add: string;
696
702
  pleaseSelect: string;
697
703
  stopGenerating: string;
704
+ stopGeneratingTooltip?: string;
698
705
  copyToClipboard: string;
699
706
  noMoreTabsTooltip: string;
700
707
  codeSuggestionWithReferenceTitle: string;
@@ -705,6 +712,8 @@ export interface ConfigTexts {
705
712
  noTabsOpen: string;
706
713
  openNewTab: string;
707
714
  commandConfirmation: string;
715
+ pinContextHint: string;
716
+ dragOverlayText: string;
708
717
  }
709
718
  type PickMatching<T, V> = {
710
719
  [K in keyof T as T[K] extends V ? K : never]: T[K];
@@ -737,6 +746,8 @@ export interface ConfigOptions {
737
746
  codeInsertToCursorEnabled?: boolean;
738
747
  codeCopyToClipboardEnabled?: boolean;
739
748
  test?: boolean;
749
+ dragOverlayIcon?: MynahIcons | MynahIconsType | CustomIcon;
750
+ enableSearchKeyboardShortcut?: boolean;
740
751
  }
741
752
  export interface ConfigModel extends ConfigOptions {
742
753
  texts: Partial<ConfigTexts>;
package/docs/CONFIG.md CHANGED
@@ -37,6 +37,8 @@ interface ConfigModel {
37
37
  noTabsOpen: string; // Supports markdown
38
38
  openNewTab: string;
39
39
  commandConfirmation: string;
40
+ pinContextHint: string;
41
+ dragOverlayText: string;
40
42
  };
41
43
  // Options to show up on the overlay feedback form
42
44
  // after user clicks to downvote on a chat item
@@ -53,6 +55,8 @@ interface ConfigModel {
53
55
  autoFocus: boolean; // auto focuses to input panel after every action
54
56
  maxTabs: number; // set 1 to hide tabs panel
55
57
  showPromptField: boolean; // shows prompt field (default: true)
58
+ dragOverlayIcon?: MynahIcons | MynahIconsType | CustomIcon; // icon displayed in the overlay when a file is dragged into the chat area
59
+ enableSearchKeyboardShortcut?: boolean; // if true, calls onSearchShortcut on Command + f or Ctrl + f (default: false)
56
60
  }
57
61
  ...
58
62
  ```
@@ -209,6 +213,16 @@ Default tab title text if it is not set through store data for that tab.
209
213
  <img src="./img/texts/commandConfirmation.png" alt="commandConfirmation" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
210
214
  </p>
211
215
 
216
+ ## pinContextHint
217
+ <p align="center">
218
+ <img src="./img/texts/pinContextHint.png" alt="pinContextHint" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
219
+ </p>
220
+ ---
221
+
222
+ ## dragOverlayText
223
+ <p align="center">
224
+ <img src="./img/texts/dragOverlayText.png" alt="dragOverlayText" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
225
+ </p>
212
226
  ---
213
227
 
214
228
  <p><br/></p>
@@ -377,4 +391,27 @@ _If you set `showPromptField` to `false`_
377
391
 
378
392
  <p align="center">
379
393
  <img src="./img/noPrompt.png" alt="noPrompt" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
380
- </p>
394
+ </p>
395
+
396
+ ---
397
+
398
+ ## dragOverlayIcon
399
+
400
+ **Type:** `MynahIcons | MynahIconsType | CustomIcon`
401
+
402
+ **Description:**
403
+ Specifies the icon to display in the drag-and-drop overlay for adding files (such as images) to the chat context. This allows consumers to customize the overlay icon.
404
+
405
+ **Default:** `MynahIcons.IMAGE`
406
+
407
+ <p align="center">
408
+ <img src="./img/dragOverlayIcon.png" alt="noPrompt" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
409
+ </p>
410
+
411
+ ## enableSearchKeyboardShortcut
412
+
413
+ **Type:** `boolean`
414
+
415
+ When set to `true`, this option enables capturing the search keyboard shortcut. When enabled, pressing Command+F (Mac) or Ctrl+F (Windows/Linux) will trigger the `onSearchShortcut` event instead of the browser's default search behavior. This allows implementing custom search functionality within the chat interface.
416
+
417
+ Default: `false`
package/docs/DATAMODEL.md CHANGED
@@ -1170,12 +1170,14 @@ interface BaseFormItem {
1170
1170
  description?: string;
1171
1171
  tooltip?: string;
1172
1172
  icon?: MynahIcons | MynahIconsType;
1173
+ boldTitle?: boolean;
1173
1174
  }
1174
1175
 
1175
1176
  export type TextBasedFormItem = BaseFormItem & {
1176
1177
  type: 'textarea' | 'textinput' | 'numericinput' | 'email';
1177
1178
  autoFocus?: boolean;
1178
1179
  checkModifierEnterKeyPress?: boolean;
1180
+ validateOnChange?: boolean;
1179
1181
  validationPatterns?: {
1180
1182
  operator?: 'and' | 'or';
1181
1183
  genericValidationErrorMessage?: string;
@@ -1190,7 +1192,10 @@ type DropdownFormItem = BaseFormItem & {
1190
1192
  options?: Array<{
1191
1193
  value: string;
1192
1194
  label: string;
1195
+ description?: string;
1193
1196
  }>;
1197
+ disabled?: boolean;
1198
+ selectTooltip?: string;
1194
1199
  };
1195
1200
 
1196
1201
  type Stars = BaseFormItem & {
@@ -2802,10 +2807,15 @@ interface ChatItemFormItem {
2802
2807
  placeholder?: string; // Placeholder for input, but only applicable to textarea, textinput and numericinput
2803
2808
  value?: string; // Initial value of the item. All types of form items will get and return string values, conversion of the value type is up to you
2804
2809
  checkModifierEnterKeyPress?: boolean; // Only applicable to textual inputs: whether the onFormModifierEnterPress event can be triggered from this input field
2810
+ validateOnChange?: boolean; // Only applicable to text input: whether the form should validate on this field's change. If this field is false (or not set), form will validate onBlur by default
2805
2811
  options?: Array<{ // Only applicable to select and radiogroup types
2806
2812
  value: string;
2807
2813
  label: string;
2814
+ description?: string; // Only applicable to select types. This will add a description below the label to add more context for the option
2808
2815
  }>;
2816
+ disabled?: boolean; // this is only applicable to DropDownFormItem. If this is set to true, the dropdown is disabled. User cannot use the dropdown.
2817
+ boldTitle?: boolean; // this will make the title of the input bold
2818
+ selectTooltip?: string; // this is only applicable to DropDownFormItem. This will make the tooltip float right above the dropdown, not the wrapper object (or the title to be specific)
2809
2819
  }
2810
2820
  ```
2811
2821
 
@@ -2813,8 +2823,9 @@ Since you can give unlimited form items with several different types, it might b
2813
2823
 
2814
2824
  `validationPattenrs` works only for textual inputs. You can define one or more validation regex patterns, use an operator between them as `AND` or `OR`. You can show individual error messages for each validation or use one generic message if the combined validation fails (Might be useful for `OR` operator).
2815
2825
 
2816
- **Another thing which might be interesting** is to know that if you set the `select` or the `radiogroup` mandatory, they'll be rendered as the first item's of them selected if you don't provide an initial value. And you cannot deselet a radio item in any case. For select, if it is mandatory there won't be the option `Please select...`
2826
+ **Another thing which might be interesting** is to know that if you set the `select` or the `radiogroup` mandatory, they'll be rendered as the first item's of them selected if you don't provide an initial value. And you cannot deselet a radio item in any case. For select, if it is mandatory there won't be the option `Please select...`.
2817
2827
 
2828
+ **Important note for DropdownFormItem:** If you set `disabled` to `true` for `DropdownFormItem`, the dropdown will be disabled and the user cannot interact with it. When you have a default value and want to ensure it's always displayed, you can combine `mandatory: true` with `disabled: true` - this will automatically select and display the first value in `options` while preventing user interaction.
2818
2829
 
2819
2830
  _**NOTE**: If you set `options` for `textinput` for example, it won't affect the textinput to be rendered and work properly._
2820
2831
 
@@ -1296,3 +1296,23 @@ onFilesDropped: (tabId, files, insertPosition) => {
1296
1296
  ```
1297
1297
 
1298
1298
  ---
1299
+
1300
+ ### `onSearchShortcut`
1301
+
1302
+ This event will be fired when the user presses Command+F (Mac) or Ctrl+F (Windows/Linux). It passes the `tabId` of the current tab and the `eventId` for tracking user intent. This allows the consumer to implement custom search functionality when the standard browser search shortcut is pressed.
1303
+
1304
+ ```typescript
1305
+ ...
1306
+ onSearchShortcut?: (
1307
+ tabId: string,
1308
+ eventId?: string) => void;
1309
+ ...
1310
+ ```
1311
+
1312
+ **Example:**
1313
+ ```typescript
1314
+ onSearchShortcut: (tabId, eventId) => {
1315
+ console.log(`Search shortcut triggered in tab: ${tabId}`);
1316
+ // Implement custom search functionality, such as opening a history sheet
1317
+ },
1318
+ ```
package/docs/USAGE.md CHANGED
@@ -30,6 +30,8 @@ mynahUI.showCustomForm(...);
30
30
  mynahUI.updateTabDefaults(...);
31
31
  mynahUI.toggleSplashLoader(...);
32
32
  mynahUI.addCustomContextToPrompt(...);
33
+ mynahUI.resetTopBarClicked(...);
34
+ mynahUI.setDragOverlayVisible(...);
33
35
  mynahUI.destroy();
34
36
  ```
35
37
 
@@ -710,3 +712,40 @@ When called, this function will:
710
712
  - Update the tab's data store so that the custom context is tracked and can be referenced or removed later.
711
713
 
712
714
  **Note:** If the prompt input is not currently visible or the tab does not exist, the function will have no effect.
715
+
716
+ ---
717
+
718
+ # Show or hide the drag-and-drop overlay (`setDragOverlayVisible`)
719
+
720
+ Show or hide the drag-and-drop overlay for a specific tab programmatically.
721
+
722
+ **Signature:**
723
+ ```ts
724
+ setDragOverlayVisible(tabId: string, visible: boolean): void
725
+ ```
726
+
727
+ - `tabId`: The ID of the tab for which to show/hide the overlay.
728
+ - `visible`: `true` to show the overlay, `false` to hide it.
729
+
730
+ **Example:**
731
+ ```ts
732
+ mynahUI.setDragOverlayVisible('tab-1', true); // Show overlay
733
+ mynahUI.setDragOverlayVisible('tab-1', false); // Hide overlay
734
+ ```
735
+
736
+ ---
737
+ # Reset Top Bar Clicked Method (`resetTopBarClicked`)
738
+
739
+ Programmatically resets topBarClicked for the specified tab by dispatching a RESET_TOP_BAR_CLICKED event. This is useful for scenarios like drag-and-drop
740
+
741
+ **Signature:**
742
+ ```ts
743
+ resetTopBarClicked(tabId: string): void
744
+ ```
745
+
746
+ - `tabId`: The ID of the tab for which to reset the top bar overlay.
747
+
748
+ **Example:**
749
+ ```ts
750
+ mynahUI.resetTopBarClicked('tab-1');
751
+ ```
Binary file
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.36.0-beta.1",
4
+ "version": "4.36.1",
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",
@@ -73,6 +73,7 @@
73
73
  "@types/glob": "7.1.3",
74
74
  "@types/jest": "^29.5.5",
75
75
  "@types/json-schema": "7.0.7",
76
+ "@types/minimatch": "^5.1.2",
76
77
  "@types/node": "17.0.29",
77
78
  "@types/sanitize-html": "^2.11.0",
78
79
  "@typescript-eslint/eslint-plugin": "^5.34.0",