Skip to content

Commit 6d5832b

Browse files
authored
Bump mynah-ui version to 4.0.1. (#4128)
* Bump mynah-ui version to 4.0.1. * Add package lock
1 parent 8a8ba88 commit 6d5832b

File tree

13 files changed

+3744
-28
lines changed

13 files changed

+3744
-28
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ ui-tests/bin
3434
/jetbrains-core/ui/package-lock.json
3535
node_modules
3636
package-lock.json
37+
!mynah-ui/package-lock.json
38+

mynah-ui/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
alias(libs.plugins.node.gradle)
88
}
99

10-
// mynah build assumes 'build/' belongs to itself, which conficts with gradle
10+
// mynah build assumes 'build/' belongs to itself, which conflicts with gradle
1111
buildDir = file("gradle_build")
1212

1313
val buildMynahUI = tasks.register<NpmTask>("buildMynahUI") {

mynah-ui/package-lock.json

Lines changed: 3727 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mynah-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lintfix": "eslint -c .eslintrc.js --fix --ext .ts ."
1313
},
1414
"dependencies": {
15-
"@aws/mynah-ui-chat": "npm:@aws/mynah-ui@3.2.9",
15+
"@aws/mynah-ui-chat": "npm:@aws/mynah-ui@4.0.1",
1616
"@types/node": "^14.18.5",
1717
"fs-extra": "^10.0.1",
1818
"ts-node": "^10.7.0",

mynah-ui/src/mynah-ui/ui/apps/amazonqCommonsConnector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItemFollowUp } from '@aws/mynah-ui-chat'
6+
import { ChatItemAction } from '@aws/mynah-ui-chat'
77
import { AuthFollowUpType } from '../followUps/generator'
88
import { ExtensionMessage } from '../commands'
99

@@ -32,7 +32,7 @@ export class Connector {
3232
this.onWelcomeFollowUpClicked = props.onWelcomeFollowUpClicked
3333
}
3434

35-
followUpClicked = (tabID: string, followUp: ChatItemFollowUp): void => {
35+
followUpClicked = (tabID: string, followUp: ChatItemAction): void => {
3636
if (followUp.type !== undefined && followUp.type === 'continue-to-chat') {
3737
this.onWelcomeFollowUpClicked(tabID, followUp.type)
3838
}

mynah-ui/src/mynah-ui/ui/apps/cwChatConnector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItem, ChatItemFollowUp, ChatItemType, FeedbackPayload } from '@aws/mynah-ui-chat'
6+
import { ChatItem, ChatItemAction, ChatItemType, FeedbackPayload } from '@aws/mynah-ui-chat'
77
import { ExtensionMessage } from '../commands'
88
import { CodeReference } from './amazonqCommonsConnector'
99
import { TabOpenType, TabsStorage } from '../storages/tabsStorage'
@@ -68,7 +68,7 @@ export class Connector {
6868
})
6969
}
7070

71-
followUpClicked = (tabID: string, messageId: string, followUp: ChatItemFollowUp): void => {
71+
followUpClicked = (tabID: string, messageId: string, followUp: ChatItemAction): void => {
7272
this.sendMessageToExtension({
7373
command: 'follow-up-was-clicked',
7474
followUp,

mynah-ui/src/mynah-ui/ui/apps/featureDevChatConnector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItem, ChatItemFollowUp, ChatItemType, FeedbackPayload } from '@aws/mynah-ui-chat'
6+
import { ChatItem, ChatItemAction, ChatItemType, FeedbackPayload } from '@aws/mynah-ui-chat'
77
import { ExtensionMessage } from '../commands'
88
import { TabType, TabsStorage } from '../storages/tabsStorage'
99
import { CodeReference } from './amazonqCommonsConnector'
@@ -93,7 +93,7 @@ export class Connector {
9393
})
9494
}
9595

96-
followUpClicked = (tabID: string, followUp: ChatItemFollowUp): void => {
96+
followUpClicked = (tabID: string, followUp: ChatItemAction): void => {
9797
this.sendMessageToExtension({
9898
command: 'follow-up-was-clicked',
9999
followUp,

mynah-ui/src/mynah-ui/ui/connector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItem, ChatItemFollowUp, FeedbackPayload, Engagement } from '@aws/mynah-ui-chat'
6+
import { ChatItem, ChatItemAction, FeedbackPayload, Engagement } from '@aws/mynah-ui-chat'
77
import { Connector as CWChatConnector } from './apps/cwChatConnector'
88
import { Connector as FeatureDevChatConnector } from './apps/featureDevChatConnector'
99
import { Connector as AmazonQCommonsConnector } from './apps/amazonqCommonsConnector'
@@ -280,7 +280,7 @@ export class Connector {
280280
}
281281
}
282282

283-
onFollowUpClicked = (tabID: string, messageId: string, followUp: ChatItemFollowUp): void => {
283+
onFollowUpClicked = (tabID: string, messageId: string, followUp: ChatItemAction): void => {
284284
switch (this.tabsStorage.getTab(tabID)?.type) {
285285
// TODO: We cannot rely on the tabType here,
286286
// It can come up at a later point depending on the future UX designs,

mynah-ui/src/mynah-ui/ui/followUps/handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItemFollowUp, ChatItemType, MynahUI } from '@aws/mynah-ui-chat'
6+
import { ChatItemAction, ChatItemType, MynahUI } from '@aws/mynah-ui-chat'
77
import { Connector } from '../connector'
88
import { TabsStorage } from '../storages/tabsStorage'
99
import { WelcomeFollowupType } from '../apps/amazonqCommonsConnector'
@@ -26,7 +26,7 @@ export class FollowUpInteractionHandler {
2626
this.tabsStorage = props.tabsStorage
2727
}
2828

29-
public onFollowUpClicked(tabID: string, messageId: string, followUp: ChatItemFollowUp) {
29+
public onFollowUpClicked(tabID: string, messageId: string, followUp: ChatItemAction) {
3030
if (
3131
followUp.type !== undefined &&
3232
['full-auth', 're-auth', 'missing_scopes', 'use-supported-auth'].includes(followUp.type)

mynah-ui/src/mynah-ui/ui/followUps/model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import { ChatItemFollowUp } from '@aws/mynah-ui-chat'
6+
import { ChatItemAction } from '@aws/mynah-ui-chat'
77

88
export interface FollowUpsBlock {
99
text?: string
10-
options?: ChatItemFollowUp[]
10+
options?: ChatItemAction[]
1111
}

0 commit comments

Comments
 (0)