@aws/mynah-ui 4.36.0 → 4.36.2

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 (13) hide show
  1. package/README.md +1 -1
  2. package/dist/components/form-items/select.d.ts +7 -0
  3. package/dist/main.js +1 -1
  4. package/dist/main.js.map +1 -1
  5. package/dist/static.d.ts +4 -0
  6. package/docs/DATAMODEL.md +6 -0
  7. package/package.json +2 -1
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
@@ -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';
@@ -478,8 +479,10 @@ type DropdownFormItem = BaseFormItem & {
478
479
  options?: Array<{
479
480
  value: string;
480
481
  label: string;
482
+ description?: string;
481
483
  }>;
482
484
  disabled?: boolean;
485
+ selectTooltip?: string;
483
486
  };
484
487
  type Stars = BaseFormItem & {
485
488
  type: 'stars';
@@ -514,6 +517,7 @@ export interface ListFormItem {
514
517
  description?: string;
515
518
  tooltip?: string;
516
519
  icon?: MynahIcons | MynahIconsType;
520
+ boldTitle?: boolean;
517
521
  items: SingularFormItem[];
518
522
  value: ListItemEntry[];
519
523
  }
package/docs/DATAMODEL.md CHANGED
@@ -1170,6 +1170,7 @@ 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 & {
@@ -1191,8 +1192,10 @@ type DropdownFormItem = BaseFormItem & {
1191
1192
  options?: Array<{
1192
1193
  value: string;
1193
1194
  label: string;
1195
+ description?: string;
1194
1196
  }>;
1195
1197
  disabled?: boolean;
1198
+ selectTooltip?: string;
1196
1199
  };
1197
1200
 
1198
1201
  type Stars = BaseFormItem & {
@@ -2808,8 +2811,11 @@ interface ChatItemFormItem {
2808
2811
  options?: Array<{ // Only applicable to select and radiogroup types
2809
2812
  value: string;
2810
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
2811
2815
  }>;
2812
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)
2813
2819
  }
2814
2820
  ```
2815
2821
 
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",
4
+ "version": "4.36.2",
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",