@aws/mynah-ui 3.3.0 → 3.3.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 (73) hide show
  1. package/.eslintrc.js +2 -0
  2. package/README.md +3 -1
  3. package/dist/helper/store.d.ts +1 -0
  4. package/dist/main.d.ts +1 -0
  5. package/dist/main.js +1 -1
  6. package/dist/main.js.map +1 -1
  7. package/dist/static.d.ts +1 -2
  8. package/package.json +1 -1
  9. package/docs/CONFIG.md +0 -190
  10. package/docs/DATAMODEL.md +0 -932
  11. package/docs/PROPERTIES.md +0 -615
  12. package/docs/STARTUP.md +0 -50
  13. package/docs/STYLING.md +0 -175
  14. package/docs/USAGE.md +0 -325
  15. package/docs/img/code-attachment.png +0 -0
  16. package/docs/img/data-model/chatItems/answer.png +0 -0
  17. package/docs/img/data-model/chatItems/answerStream.png +0 -0
  18. package/docs/img/data-model/chatItems/body.png +0 -0
  19. package/docs/img/data-model/chatItems/canBeVoted.png +0 -0
  20. package/docs/img/data-model/chatItems/codeReference-1.png +0 -0
  21. package/docs/img/data-model/chatItems/codeReference-2.png +0 -0
  22. package/docs/img/data-model/chatItems/codeResult.png +0 -0
  23. package/docs/img/data-model/chatItems/followUp-1.png +0 -0
  24. package/docs/img/data-model/chatItems/followUp-2.png +0 -0
  25. package/docs/img/data-model/chatItems/notification-1.png +0 -0
  26. package/docs/img/data-model/chatItems/notification-2.png +0 -0
  27. package/docs/img/data-model/chatItems/notification-3.png +0 -0
  28. package/docs/img/data-model/chatItems/notification-4.png +0 -0
  29. package/docs/img/data-model/chatItems/prompt.png +0 -0
  30. package/docs/img/data-model/chatItems/relatedContent-1.png +0 -0
  31. package/docs/img/data-model/chatItems/relatedContent-2.png +0 -0
  32. package/docs/img/data-model/chatItems/relatedContent-3.png +0 -0
  33. package/docs/img/data-model/chatItems/systemPrompt.png +0 -0
  34. package/docs/img/data-model/tabStore/loadingChat-1.png +0 -0
  35. package/docs/img/data-model/tabStore/loadingChat-2.png +0 -0
  36. package/docs/img/data-model/tabStore/promptInputDisabledState.png +0 -0
  37. package/docs/img/data-model/tabStore/promptInputPlaceholder.png +0 -0
  38. package/docs/img/data-model/tabStore/quickActionCommands.png +0 -0
  39. package/docs/img/data-model/tabStore/stopChatResponse.png +0 -0
  40. package/docs/img/data-model/tabStore/tabTitle.png +0 -0
  41. package/docs/img/feedbackOptions.png +0 -0
  42. package/docs/img/maxTabs1.png +0 -0
  43. package/docs/img/noPrompt.png +0 -0
  44. package/docs/img/notification.png +0 -0
  45. package/docs/img/onChatItemEngagement.png +0 -0
  46. package/docs/img/onChatPrompt.png +0 -0
  47. package/docs/img/onCodeInsertToCursorPosition.png +0 -0
  48. package/docs/img/onCopyCodeToClipboard.png +0 -0
  49. package/docs/img/onFollowupClicked.png +0 -0
  50. package/docs/img/onInfoLinkClick.png +0 -0
  51. package/docs/img/onLinkClick.png +0 -0
  52. package/docs/img/onOpenDiff.png +0 -0
  53. package/docs/img/onSendFeedback-1.png +0 -0
  54. package/docs/img/onSendFeedback-2.png +0 -0
  55. package/docs/img/onSendFeedback-3.png +0 -0
  56. package/docs/img/onShowMoreClick.png +0 -0
  57. package/docs/img/onSourceLinkClick.png +0 -0
  58. package/docs/img/onStopChatResponse.png +0 -0
  59. package/docs/img/onTabAdd.png +0 -0
  60. package/docs/img/onTabChange.png +0 -0
  61. package/docs/img/onTabRemove.png +0 -0
  62. package/docs/img/onVote.png +0 -0
  63. package/docs/img/prompt-with-code-attached.png +0 -0
  64. package/docs/img/texts/codeFileSuggestions.png +0 -0
  65. package/docs/img/texts/copyInsertToCursor.png +0 -0
  66. package/docs/img/texts/feedbackForm.png +0 -0
  67. package/docs/img/texts/mainTitle.png +0 -0
  68. package/docs/img/texts/noMoreTabs.png +0 -0
  69. package/docs/img/texts/spinnerText.png +0 -0
  70. package/docs/img/texts/stopGenerating.png +0 -0
  71. package/docs/img/texts/voteAndSourceActions.png +0 -0
  72. package/docs/img/theming-1.png +0 -0
  73. package/docs/img/theming-2.png +0 -0
package/.eslintrc.js CHANGED
@@ -18,6 +18,8 @@ module.exports = {
18
18
  "prettier"
19
19
  ],
20
20
  "rules": {
21
+ "no-case-declarations": "off",
22
+ "@typescript-eslint/no-floating-promises": "off",
21
23
  "@typescript-eslint/semi": [
22
24
  2,
23
25
  "always"
package/README.md CHANGED
@@ -15,7 +15,9 @@ Please continue with one of the following guides:
15
15
  ### [Data Model](./docs/DATAMODEL.md)
16
16
  ### [Styling Configuration](./docs/STYLING.md)
17
17
 
18
-
18
+ <p align="center">
19
+ <img src="./docs/img/splash.gif" alt="MynahUI" style="max-width:1024px; width:100%;border: 1px solid #e0e0e0;">
20
+ </p>
19
21
 
20
22
  ## Supported browsers
21
23
  **Mynah UI** <em>-because of it's extensive css structure-</em> only supports ever-green browsers including webkit based WebUI renderers.
@@ -15,6 +15,7 @@ export declare class MynahUIDataStore {
15
15
  constructor(tabId: string, initialData?: MynahUIDataModel);
16
16
  setDefaults: (defaults: MynahUIDataModel | null) => void;
17
17
  getDefaults: () => MynahUIDataModel | null;
18
+ getStore: () => MynahUIDataModel | null;
18
19
  subscribe: (storeKey: keyof MynahUIDataModel, handler: (newValue: any, oldValue?: any) => void) => string;
19
20
  unsubscribe: (storeKey: keyof MynahUIDataModel, subscriptionId: string) => void;
20
21
  getValue: (storeKey: keyof MynahUIDataModel) => any;
package/dist/main.d.ts CHANGED
@@ -45,6 +45,7 @@ export declare class MynahUI {
45
45
  updateLastChatAnswer: (tabId: string, updateWith: Partial<ChatItem>) => void;
46
46
  updateStore: (tabId: string | '', data: MynahUIDataModel) => string | undefined;
47
47
  getSelectedTabId: () => string | undefined;
48
+ getAllTabs: () => MynahUITabStoreModel;
48
49
  notify: (props: {
49
50
  duration?: number;
50
51
  type?: NotificationType;