@nualang/nualang-ui-components 0.1.1292 → 0.1.1293
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/Chat/Chat.js
CHANGED
|
@@ -94,7 +94,6 @@ function Chat({
|
|
|
94
94
|
noAnswerCounts,
|
|
95
95
|
isDynamicResponsesEnabled,
|
|
96
96
|
isUserInternal,
|
|
97
|
-
isAdvancedBot = false,
|
|
98
97
|
username,
|
|
99
98
|
isChallengeBot = false
|
|
100
99
|
}) {
|
|
@@ -198,7 +197,6 @@ function Chat({
|
|
|
198
197
|
inputRef: inputRef,
|
|
199
198
|
authenticated: authenticated,
|
|
200
199
|
placeholder: placeholder,
|
|
201
|
-
isAdvancedBot: isAdvancedBot,
|
|
202
200
|
username: username,
|
|
203
201
|
isChallengeBot: isChallengeBot
|
|
204
202
|
})]
|
|
@@ -640,7 +640,6 @@ function Bot({
|
|
|
640
640
|
isSpeakingTextContainer: isSpeakingTextContainer,
|
|
641
641
|
isDynamicResponsesEnabled: isDynamicResponsesClassroomEnabled,
|
|
642
642
|
isUserInternal: isUserInternal,
|
|
643
|
-
isAdvancedBot: bot.isAdvancedBot,
|
|
644
643
|
username: username,
|
|
645
644
|
isChallengeBot: bot.isChallengeBot
|
|
646
645
|
}), /*#__PURE__*/_jsx(ResponsiveDialog, {
|
|
@@ -865,7 +865,6 @@ function Exercises(props) {
|
|
|
865
865
|
hiddenExercises = [],
|
|
866
866
|
isMember,
|
|
867
867
|
isCreator,
|
|
868
|
-
isStudent = true,
|
|
869
868
|
courseId,
|
|
870
869
|
sectionId,
|
|
871
870
|
topicId,
|
|
@@ -1612,24 +1611,20 @@ function Exercises(props) {
|
|
|
1612
1611
|
children: /*#__PURE__*/_jsx(MoreVertIcon, {})
|
|
1613
1612
|
})
|
|
1614
1613
|
})
|
|
1615
|
-
}) : null, (
|
|
1614
|
+
}) : null, (isCreator || roleplays.length > 0) && renderCollapseButton(isRoleplayDropdownOpen, isLoading, true, "Roleplays")]
|
|
1616
1615
|
}),
|
|
1617
1616
|
children: /*#__PURE__*/_jsxs(ListItemButton, {
|
|
1618
1617
|
"data-cy": "roleplay-exercise",
|
|
1619
1618
|
"aria-expanded": isRoleplayDropdownOpen,
|
|
1620
1619
|
disabled: (() => {
|
|
1621
|
-
if (
|
|
1620
|
+
if (!isCreator && roleplays.length === 0) {
|
|
1622
1621
|
return true;
|
|
1623
|
-
}
|
|
1624
|
-
if (isCreator) {
|
|
1625
|
-
return false;
|
|
1626
|
-
}
|
|
1627
|
-
if (isMember) {
|
|
1622
|
+
} else {
|
|
1628
1623
|
return false;
|
|
1629
1624
|
}
|
|
1630
1625
|
})(),
|
|
1631
1626
|
onClick: () => {
|
|
1632
|
-
if (
|
|
1627
|
+
if (!isCreator && roleplays.length === 0) {
|
|
1633
1628
|
return;
|
|
1634
1629
|
}
|
|
1635
1630
|
setIsRoleplayDropdownOpen(!isRoleplayDropdownOpen);
|
|
@@ -1723,24 +1718,20 @@ function Exercises(props) {
|
|
|
1723
1718
|
children: /*#__PURE__*/_jsx(MoreVertIcon, {})
|
|
1724
1719
|
})
|
|
1725
1720
|
})
|
|
1726
|
-
}) : null, (
|
|
1721
|
+
}) : null, (isCreator || bots.length > 0) && renderCollapseButton(isChatbotDropdownOpen, isLoading, false, "Chatbots")]
|
|
1727
1722
|
}),
|
|
1728
1723
|
children: /*#__PURE__*/_jsxs(ListItemButton, {
|
|
1729
1724
|
"data-cy": "bot-exercise",
|
|
1730
1725
|
"aria-expanded": isChatbotDropdownOpen,
|
|
1731
1726
|
disabled: (() => {
|
|
1732
|
-
if (
|
|
1727
|
+
if (!isCreator && bots.length === 0) {
|
|
1733
1728
|
return true;
|
|
1734
|
-
}
|
|
1735
|
-
if (isCreator) {
|
|
1736
|
-
return false;
|
|
1737
|
-
}
|
|
1738
|
-
if (isMember) {
|
|
1729
|
+
} else {
|
|
1739
1730
|
return false;
|
|
1740
1731
|
}
|
|
1741
1732
|
})(),
|
|
1742
1733
|
onClick: () => {
|
|
1743
|
-
if (
|
|
1734
|
+
if (!isCreator && bots.length === 0) {
|
|
1744
1735
|
return;
|
|
1745
1736
|
}
|
|
1746
1737
|
setIsChatbotDropdownOpen(!isChatbotDropdownOpen);
|