@aws/mynah-ui 4.35.7 → 4.35.8

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
@@ -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",
@@ -469,6 +469,7 @@ export type TextBasedFormItem = BaseFormItem & {
469
469
  genericValidationErrorMessage?: string;
470
470
  patterns: ValidationPattern[];
471
471
  };
472
+ validateOnChange?: boolean;
472
473
  };
473
474
  type DropdownFormItem = BaseFormItem & {
474
475
  type: 'select';
@@ -705,6 +706,8 @@ export interface ConfigTexts {
705
706
  noTabsOpen: string;
706
707
  openNewTab: string;
707
708
  commandConfirmation: string;
709
+ pinContextHint: string;
710
+ dragOverlayText: string;
708
711
  }
709
712
  type PickMatching<T, V> = {
710
713
  [K in keyof T as T[K] extends V ? K : never]: T[K];
@@ -737,6 +740,7 @@ export interface ConfigOptions {
737
740
  codeInsertToCursorEnabled?: boolean;
738
741
  codeCopyToClipboardEnabled?: boolean;
739
742
  test?: boolean;
743
+ dragOverlayIcon?: MynahIcons | MynahIconsType | CustomIcon;
740
744
  }
741
745
  export interface ConfigModel extends ConfigOptions {
742
746
  texts: Partial<ConfigTexts>;
package/docs/CONFIG.md CHANGED
@@ -37,6 +37,7 @@ interface ConfigModel {
37
37
  noTabsOpen: string; // Supports markdown
38
38
  openNewTab: string;
39
39
  commandConfirmation: string;
40
+ pinContextHint: string;
40
41
  };
41
42
  // Options to show up on the overlay feedback form
42
43
  // after user clicks to downvote on a chat item
@@ -209,6 +210,10 @@ Default tab title text if it is not set through store data for that tab.
209
210
  <img src="./img/texts/commandConfirmation.png" alt="commandConfirmation" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
210
211
  </p>
211
212
 
213
+ ## pinContextHint
214
+ <p align="center">
215
+ <img src="./img/texts/pinContextHint.png" alt="pinContextHint" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
216
+ </p>
212
217
  ---
213
218
 
214
219
  <p><br/></p>
package/docs/DATAMODEL.md CHANGED
@@ -1176,6 +1176,7 @@ export type TextBasedFormItem = BaseFormItem & {
1176
1176
  type: 'textarea' | 'textinput' | 'numericinput' | 'email';
1177
1177
  autoFocus?: boolean;
1178
1178
  checkModifierEnterKeyPress?: boolean;
1179
+ validateOnChange?: boolean;
1179
1180
  validationPatterns?: {
1180
1181
  operator?: 'and' | 'or';
1181
1182
  genericValidationErrorMessage?: string;
@@ -2802,6 +2803,7 @@ interface ChatItemFormItem {
2802
2803
  placeholder?: string; // Placeholder for input, but only applicable to textarea, textinput and numericinput
2803
2804
  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
2805
  checkModifierEnterKeyPress?: boolean; // Only applicable to textual inputs: whether the onFormModifierEnterPress event can be triggered from this input field
2806
+ 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
2807
  options?: Array<{ // Only applicable to select and radiogroup types
2806
2808
  value: string;
2807
2809
  label: string;
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.35.7",
4
+ "version": "4.35.8",
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",