@aws/mynah-ui 4.18.1-beta.1 → 4.19.0
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/README.md +1 -1
- package/dist/components/spinner/spinner.d.ts +10 -0
- package/dist/helper/dom.d.ts +1 -1
- package/dist/main.d.ts +10 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +3 -0
- package/docs/CONFIG.md +1 -1
- package/docs/DEVELOPER.md +1 -1
- package/docs/PROPERTIES.md +1 -1
- package/docs/USAGE.md +2 -2
- package/package.json +1 -1
- package/postinstall.js +1 -0
- package/ui-tests/dist/main.js +1 -1
- package/ui-tests/dist/main.js.map +1 -1
package/dist/static.d.ts
CHANGED
|
@@ -239,6 +239,9 @@ export interface ChatItemContent {
|
|
|
239
239
|
actions?: Record<string, FileNodeAction[]>;
|
|
240
240
|
details?: Record<string, TreeNodeDetails>;
|
|
241
241
|
} | null;
|
|
242
|
+
/**
|
|
243
|
+
* @deprecated starting from version v5.0.0, it will no longer render the buttons in a reversed order, but rather in the order of the array.
|
|
244
|
+
*/
|
|
242
245
|
buttons?: ChatItemButton[] | null;
|
|
243
246
|
formItems?: ChatItemFormItem[] | null;
|
|
244
247
|
footer?: ChatItemContent | null;
|
package/docs/CONFIG.md
CHANGED
|
@@ -113,7 +113,7 @@ const mynahUI = new MynahUI({
|
|
|
113
113
|
|
|
114
114
|
# `texts`
|
|
115
115
|
All static texts will be shown on UI.
|
|
116
|
-
Please take a look at each image to identify which text
|
|
116
|
+
Please take a look at each image to identify which text belongs to which item on UI.
|
|
117
117
|
|
|
118
118
|
## mainTitle
|
|
119
119
|
Default tab title text if it is not set through store data for that tab.
|
package/docs/DEVELOPER.md
CHANGED
|
@@ -254,7 +254,7 @@ Ok, now it is getting better but let's also add some icons. For the answer's we
|
|
|
254
254
|
|
|
255
255
|
Assuming that you alread find your `svg` file which is the only supported type for `mynah-ui` because of the responsive design concerns. Then navigate to folder `src/components/icon/icons` and rename your file to match the pattern with others, no spaces allowed.
|
|
256
256
|
|
|
257
|
-
And then open the `icon-
|
|
257
|
+
And then open the `icon-importer.ts` placed in one parent folder and add your import and name with the same pattern with others.
|
|
258
258
|
|
|
259
259
|
```typescript
|
|
260
260
|
// ICONS
|
package/docs/PROPERTIES.md
CHANGED
|
@@ -149,7 +149,7 @@ export interface MynahUIProps {
|
|
|
149
149
|
_Let's deep dive into each property you can set._
|
|
150
150
|
|
|
151
151
|
### But before that, what is `eventId`?
|
|
152
|
-
You may notice that a
|
|
152
|
+
You may notice that a vast majority of the event functions have `eventId` property. We're sending a unique `eventId` **for all real intended user actions** like clicks, prompts or tab related actions.
|
|
153
153
|
It is mandatory to send it as an argument for some functions like `mynahUI.selectTab`.You need to send the incoming `eventId` from the connected event function to change a tab programmatically. Because without a user intent, you cannot change a tab.
|
|
154
154
|
|
|
155
155
|
And those kind of functions **will only work** with the last `eventId`. So you cannot store an id and send it after several different user actions.
|
package/docs/USAGE.md
CHANGED
|
@@ -58,7 +58,7 @@ So if it reached to the max number of tabs can be opened, it will return undefin
|
|
|
58
58
|
```typescript
|
|
59
59
|
const mynahUI = new MynahUI({...});
|
|
60
60
|
|
|
61
|
-
const newTabId:
|
|
61
|
+
const newTabId: string | undefined = mynahUI.updateStore('', {
|
|
62
62
|
tabTitle: 'My new tab!'
|
|
63
63
|
});
|
|
64
64
|
if(typeof newTabId !== string){
|
|
@@ -424,7 +424,7 @@ And when user sends the prompt attached code will be appended to the bottom.
|
|
|
424
424
|
|
|
425
425
|
## Getting all tabs with their store data (`getAllTabs`)
|
|
426
426
|
|
|
427
|
-
You can get all tabs and their latest updated store data. Do not use this function to handle the data. This function aims to help you
|
|
427
|
+
You can get all tabs and their latest updated store data. Do not use this function to handle the data. This function aims to help you with your test scenarios which you can grab the data and do your comparisons.
|
|
428
428
|
|
|
429
429
|
```typescript
|
|
430
430
|
mynahUI.getAllTabs();
|
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const deprecationList = [
|
|
2
2
|
'Config.texts.clickFileToViewDiff will be deprecated after 5.x.x',
|
|
3
3
|
'MynahUIProps.onOpenDiff will be deprecated after 5.x.x',
|
|
4
|
+
'ChatItemContent.buttons will render in the order of the array starting from v5.0.0, instead of reverse order.',
|
|
4
5
|
'MynahUIProps.onCodeInsertToCursorPosition will be deprecated after 5.x.x',
|
|
5
6
|
'MynahUIProps.onCopyCodeToClipboard will be changed to be used only on keyboard and context menu copy actions after 5.x.x',
|
|
6
7
|
];
|