@pega/cosmos-react-work 10.0.0-build.9.13 → 10.0.0-build.9.15
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/lib/components/GenAICoach/GenAICoach.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.js +2 -2
- package/lib/components/GenAICoach/GenAICoach.js.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.types.d.ts +2 -0
- package/lib/components/GenAICoach/GenAICoach.types.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.types.js.map +1 -1
- package/lib/components/GenAICoach/GenAIMessageFeedback.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAIMessageFeedback.js +8 -1
- package/lib/components/GenAICoach/GenAIMessageFeedback.js.map +1 -1
- package/lib/components/HeroBanner/HeroBanner.d.ts +7 -0
- package/lib/components/HeroBanner/HeroBanner.d.ts.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.js +63 -0
- package/lib/components/HeroBanner/HeroBanner.js.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.styles.d.ts +35 -0
- package/lib/components/HeroBanner/HeroBanner.styles.d.ts.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.styles.js +118 -0
- package/lib/components/HeroBanner/HeroBanner.styles.js.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.test-ids.d.ts +2 -0
- package/lib/components/HeroBanner/HeroBanner.test-ids.d.ts.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.test-ids.js +11 -0
- package/lib/components/HeroBanner/HeroBanner.test-ids.js.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.types.d.ts +51 -0
- package/lib/components/HeroBanner/HeroBanner.types.d.ts.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.types.js +2 -0
- package/lib/components/HeroBanner/HeroBanner.types.js.map +1 -0
- package/lib/components/HeroBanner/index.d.ts +3 -0
- package/lib/components/HeroBanner/index.d.ts.map +1 -0
- package/lib/components/HeroBanner/index.js +2 -0
- package/lib/components/HeroBanner/index.js.map +1 -0
- package/lib/components/HeroBanner/utils.d.ts +20 -0
- package/lib/components/HeroBanner/utils.d.ts.map +1 -0
- package/lib/components/HeroBanner/utils.js +125 -0
- package/lib/components/HeroBanner/utils.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenAICoach.d.ts","sourceRoot":"","sources":["../../../src/components/GenAICoach/GenAICoach.tsx"],"names":[],"mappings":"AAgHA,OAAO,EAAyC,KAAK,eAAe,EAAE,MAAM,GAAG,CAAC;AAiDhF,eAAO,MAAM,SAAS,+CA2GrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAQ5B,CAAC;
|
|
1
|
+
{"version":3,"file":"GenAICoach.d.ts","sourceRoot":"","sources":["../../../src/components/GenAICoach/GenAICoach.tsx"],"names":[],"mappings":"AAgHA,OAAO,EAAyC,KAAK,eAAe,EAAE,MAAM,GAAG,CAAC;AAiDhF,eAAO,MAAM,SAAS,+CA2GrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAQ5B,CAAC;iCA29DyB,eAAe;;;AAQ1C,wBAA6D"}
|
|
@@ -104,7 +104,7 @@ const HeaderActions = ({ actions, allowFullScreen, variant, isUserTriggeredRef,
|
|
|
104
104
|
}
|
|
105
105
|
return (_jsx(Actions, { ...(actions ?? {}), menuAt: 1, "data-testid": actionsTestId, contextualLabel: selectedCoach, items: mergedItems }));
|
|
106
106
|
};
|
|
107
|
-
const GenAICoachContent = ({ testId, coachOptions: coachOptionsProps, onCoachChange: onCoachChangeProp, messages = [], onSend, initialSuggestedMessages, suggestions, loading, error, variant, onOpen, guidedMode = false, actions, onNewChat, conversationHistory, onConversationHistoryOpen, onLayoutChange, onAddAttachment, attachments, attachmentsError, lightboxPreviewProps, allowFullScreen = true, isInLandingPageUtilities, stopProcess, voiceToTextProps, salutation, showSalutation = true, isPortalAgent = false, pagePanel, suggestionCardsView, draftMessage, caseWorkflow, activeCases, onStop, isCreatingConversation, conversationId, conversationError, questionnaireData, onQuestionnaireDismiss, simplifiedAgent = false, subHeading, operatorName, agentModeProps, modelSelectorProps, ...restProps }) => {
|
|
107
|
+
const GenAICoachContent = ({ testId, coachOptions: coachOptionsProps, onCoachChange: onCoachChangeProp, messages = [], onSend, initialSuggestedMessages, suggestions, loading, error, variant, onOpen, guidedMode = false, actions, onNewChat, conversationHistory, onConversationHistoryOpen, onLayoutChange, onAddAttachment, showMultipleAttachments = false, attachments, attachmentsError, lightboxPreviewProps, allowFullScreen = true, isInLandingPageUtilities, stopProcess, voiceToTextProps, salutation, showSalutation = true, isPortalAgent = false, pagePanel, suggestionCardsView, draftMessage, caseWorkflow, activeCases, onStop, isCreatingConversation, conversationId, conversationError, questionnaireData, onQuestionnaireDismiss, simplifiedAgent = false, subHeading, operatorName, agentModeProps, modelSelectorProps, ...restProps }) => {
|
|
108
108
|
const scrollTolerancePx = 2;
|
|
109
109
|
const scrollThresholdPx = 50;
|
|
110
110
|
const streamBufferLh = simplifiedAgent ? 15 : 5;
|
|
@@ -909,7 +909,7 @@ const GenAICoachContent = ({ testId, coachOptions: coachOptionsProps, onCoachCha
|
|
|
909
909
|
fileUploadInputRef.current.value = '';
|
|
910
910
|
}
|
|
911
911
|
fileUploadInputRef.current?.click();
|
|
912
|
-
}, variant: 'simple', label: t('add_attachment'), children: _jsx(Icon, { name: 'paper-clip' }) }), _jsx(StyledInput, { type: 'file', ref: fileUploadInputRef, onChange: onFileChange, multiple:
|
|
912
|
+
}, variant: 'simple', label: t('add_attachment'), children: _jsx(Icon, { name: 'paper-clip' }) }), _jsx(StyledInput, { type: 'file', ref: fileUploadInputRef, onChange: onFileChange, multiple: showMultipleAttachments, "data-testid": testIds.attachments })] })), agentModeProps && agentModeProps.modes.length > 0 && (_jsxs(_Fragment, { children: [_jsx(StyledComposerSelector, { ref: setAgentModeButtonEl, text: selectedAgentModeLabel, "aria-label": t('agent_mode_selector', [selectedAgentModeLabel]), variant: 'simple', "data-testid": testIds.agentMode, menu: {
|
|
913
913
|
mode: 'single-select',
|
|
914
914
|
items: agentModeProps.modes,
|
|
915
915
|
onItemClick: agentModeProps.onAgentModeChange
|