@aws/mynah-ui 4.35.8 → 4.35.9
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/test-ids.d.ts +3 -3
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +1 -0
- package/docs/CONFIG.md +23 -0
- package/docs/img/dragOverlayIcon.png +0 -0
- package/docs/img/texts/dragOverlayText.png +0 -0
- package/package.json +1 -1
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
package/dist/static.d.ts
CHANGED
package/docs/CONFIG.md
CHANGED
|
@@ -38,6 +38,7 @@ interface ConfigModel {
|
|
|
38
38
|
openNewTab: string;
|
|
39
39
|
commandConfirmation: string;
|
|
40
40
|
pinContextHint: string;
|
|
41
|
+
dragOverlayText: string;
|
|
41
42
|
};
|
|
42
43
|
// Options to show up on the overlay feedback form
|
|
43
44
|
// after user clicks to downvote on a chat item
|
|
@@ -54,6 +55,7 @@ interface ConfigModel {
|
|
|
54
55
|
autoFocus: boolean; // auto focuses to input panel after every action
|
|
55
56
|
maxTabs: number; // set 1 to hide tabs panel
|
|
56
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
|
|
57
59
|
}
|
|
58
60
|
...
|
|
59
61
|
```
|
|
@@ -216,6 +218,12 @@ Default tab title text if it is not set through store data for that tab.
|
|
|
216
218
|
</p>
|
|
217
219
|
---
|
|
218
220
|
|
|
221
|
+
## dragOverlayText
|
|
222
|
+
<p align="center">
|
|
223
|
+
<img src="./img/texts/dragOverlayText.png" alt="dragOverlayText" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
|
|
224
|
+
</p>
|
|
225
|
+
---
|
|
226
|
+
|
|
219
227
|
<p><br/></p>
|
|
220
228
|
|
|
221
229
|
# `feedbackOptions`
|
|
@@ -382,4 +390,19 @@ _If you set `showPromptField` to `false`_
|
|
|
382
390
|
|
|
383
391
|
<p align="center">
|
|
384
392
|
<img src="./img/noPrompt.png" alt="noPrompt" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
|
|
393
|
+
</p>
|
|
394
|
+
|
|
395
|
+
---
|
|
396
|
+
|
|
397
|
+
## dragOverlayIcon
|
|
398
|
+
|
|
399
|
+
**Type:** `MynahIcons | MynahIconsType | CustomIcon`
|
|
400
|
+
|
|
401
|
+
**Description:**
|
|
402
|
+
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.
|
|
403
|
+
|
|
404
|
+
**Default:** `MynahIcons.IMAGE`
|
|
405
|
+
|
|
406
|
+
<p align="center">
|
|
407
|
+
<img src="./img/dragOverlayIcon.png" alt="noPrompt" style="max-width:500px; width:100%;border: 1px solid #e0e0e0;">
|
|
385
408
|
</p>
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED