@aws/mynah-ui 4.16.0 → 4.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/dist/helper/dom.d.ts +1 -0
- package/dist/helper/sanitize.d.ts +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/docs/DATAMODEL.md +47 -3
- package/docs/img/data-model/tabStore/progress.png +0 -0
- package/package.json +2 -2
- package/ui-tests/dist/main.js +1 -1
- package/ui-tests/dist/main.js.map +1 -1
- package/ui-tests/package.json +1 -1
package/docs/DATAMODEL.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# MynahUI Data Model (with how the things appear on screen)
|
|
2
2
|
|
|
3
|
-
There are
|
|
3
|
+
There are a number of models for the various items on the screen for MynahUI. Let's start from the top and go in detail one-by-one.
|
|
4
4
|
|
|
5
5
|
## Tab Data Store
|
|
6
6
|
|
|
7
|
-
All information you can set related
|
|
7
|
+
All information you can set related to a tab.
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
10
|
interface MynahUIDataModel {
|
|
@@ -61,6 +61,10 @@ interface MynahUIDataModel {
|
|
|
61
61
|
*/
|
|
62
62
|
promptInputDisabledState?: boolean;
|
|
63
63
|
/**
|
|
64
|
+
* Prompt input progress field
|
|
65
|
+
*/
|
|
66
|
+
promptInputProgress?: ProgressField | null;
|
|
67
|
+
/**
|
|
64
68
|
* List of chat item objects to be shown on the web suggestions search screen
|
|
65
69
|
*/
|
|
66
70
|
chatItems?: ChatItem[];
|
|
@@ -440,6 +444,46 @@ mynahUI.updateStore('tab-1', {
|
|
|
440
444
|
|
|
441
445
|
---
|
|
442
446
|
|
|
447
|
+
### `promptInputProgress`
|
|
448
|
+
|
|
449
|
+
This determines whether the progress bar shows up, and what its styling and progress value is. The `value` should be a number representing the progress, and the `valueText` is the text that shows right next to the regular `text` to indicate the progress in the bar. A number of `actions` can be added to dispatch events. Different statuses are available, namely: `default` | `info` | `success` | `warning` | `error`.
|
|
450
|
+
|
|
451
|
+
**In progress:**
|
|
452
|
+
```typescript
|
|
453
|
+
mynahUI.updateStore('tab-1', {
|
|
454
|
+
promptInputProgress: {
|
|
455
|
+
status: 'default',
|
|
456
|
+
text: 'Work in progress...',
|
|
457
|
+
value: -1,
|
|
458
|
+
actions: [{
|
|
459
|
+
id: 'cancel-running-task',
|
|
460
|
+
text: 'Cancel',
|
|
461
|
+
icon: MynahIcons.CANCEL,
|
|
462
|
+
disabled: false,
|
|
463
|
+
}]
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
**Completed:**
|
|
469
|
+
```typescript
|
|
470
|
+
mynahUI.updateStore('tab-1', {
|
|
471
|
+
promptInputProgress: {
|
|
472
|
+
status: 'success',
|
|
473
|
+
text: 'Completed...',
|
|
474
|
+
valueText: '',
|
|
475
|
+
value: 100,
|
|
476
|
+
actions: []
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
<p align="center">
|
|
482
|
+
<img src="./img/data-model/tabStore/progress.png" alt="mainTitle" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
|
|
483
|
+
</p>
|
|
484
|
+
|
|
485
|
+
---
|
|
486
|
+
|
|
443
487
|
### `selectedCodeSnippet`
|
|
444
488
|
|
|
445
489
|
This is the attached code block text right under the prompt input field..
|
|
@@ -459,7 +503,7 @@ mynahUI.updateStore('tab-1', {
|
|
|
459
503
|
'tab-1': {
|
|
460
504
|
isSelected: true,
|
|
461
505
|
.....`,
|
|
462
|
-
})
|
|
506
|
+
});
|
|
463
507
|
```
|
|
464
508
|
|
|
465
509
|
<p align="center">
|
|
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.16.
|
|
4
|
+
"version": "4.16.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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"escape-html": "^1.0.3",
|
|
37
37
|
"just-clone": "^6.2.0",
|
|
38
|
-
"marked": "^
|
|
38
|
+
"marked": "^14.1.3",
|
|
39
39
|
"prismjs": "1.29.0",
|
|
40
40
|
"sanitize-html": "^2.12.1",
|
|
41
41
|
"unescape-html": "^1.1.0"
|