@microsoft/omnichannel-chat-components 1.1.17-0 → 1.1.19
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/cjs/assets/Icons.js +21 -42
- package/lib/cjs/common/Constants.js +17 -31
- package/lib/cjs/common/decodeComponentString.js +0 -6
- package/lib/cjs/common/encodeComponentString.js +0 -2
- package/lib/cjs/common/utils.js +22 -56
- package/lib/cjs/components/callingcontainer/CallingContainer.js +3 -18
- package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +2 -5
- package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerProps.js +2 -6
- package/lib/cjs/components/callingcontainer/common/defaultStyles/customizedCallingContainerStyles.js +2 -3
- package/lib/cjs/components/callingcontainer/common/defaultStyles/defaultCallingContainerStyles.js +2 -3
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +95 -135
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlProps.js +2 -5
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +2 -6
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallProps.js +2 -6
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/componentOverridesStyleProps.js +3 -5
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +2 -3
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +2 -3
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +51 -78
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +3 -11
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverridesControlProps.js +2 -7
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlProps.js +2 -5
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +2 -6
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallProps.js +2 -6
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/componentOverridesStyleProps.js +2 -3
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/defaultIncomingCallStyleProps.js +2 -3
- package/lib/cjs/components/callingcontainer/subcomponents/Timer/Timer.js +2 -11
- package/lib/cjs/components/chatbutton/ChatButton.js +26 -57
- package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +2 -5
- package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonProps.js +2 -6
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonGeneralStyles.js +2 -3
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -5
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonNotificationBubbleStyles.js +2 -3
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonStyleProps.js +2 -10
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js +2 -3
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTextContainerStyles.js +2 -3
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTitleStyles.js +2 -3
- package/lib/cjs/components/citationpane/CitationPane.js +19 -46
- package/lib/cjs/components/citationpane/ScalingTest.js +2 -8
- package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneControlProps.js +2 -3
- package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneProps.js +2 -6
- package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneStyleProps.js +2 -13
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonStyles.js +2 -5
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneContentStyles.js +2 -4
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneGeneralStyles.js +2 -4
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneStyles.js +2 -13
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTitleStyles.js +1 -2
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonStyles.js +2 -4
- package/lib/cjs/components/common/commandbutton/CommandButton.js +16 -27
- package/lib/cjs/components/common/subcomponents/CloseButton.js +2 -9
- package/lib/cjs/components/confirmationpane/ConfirmationPane.js +23 -54
- package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +2 -5
- package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneProps.js +2 -6
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneButtonGroupStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneStyles.js +2 -10
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneTitleStyles.js +2 -3
- package/lib/cjs/components/footer/Footer.js +9 -28
- package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +2 -6
- package/lib/cjs/components/footer/common/defaultProps/defaultFooterComponentOverrides.js +2 -11
- package/lib/cjs/components/footer/common/defaultProps/defaultFooterControlProps.js +2 -5
- package/lib/cjs/components/footer/common/defaultProps/defaultFooterOverridesProps.js +2 -7
- package/lib/cjs/components/footer/common/defaultProps/defaultFooterProps.js +2 -6
- package/lib/cjs/components/footer/common/defaultStyles/defaultFooterStyleProps.js +2 -3
- package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +13 -23
- package/lib/cjs/components/footer/subcomponents/DownloadTranscriptButton.js +2 -9
- package/lib/cjs/components/footer/subcomponents/EmailTranscriptButton.js +2 -9
- package/lib/cjs/components/header/Header.js +11 -29
- package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +2 -6
- package/lib/cjs/components/header/common/defaultProps/azureHeaderProps.js +2 -7
- package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +2 -6
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +3 -13
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -6
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderProps.js +2 -6
- package/lib/cjs/components/header/common/defaultProps/overridesDefaultHeaderProps.js +2 -7
- package/lib/cjs/components/header/common/defaultStyles/advancedHeaderStyleProps.js +2 -3
- package/lib/cjs/components/header/common/defaultStyles/defaultHeaderStyleProps.js +2 -3
- package/lib/cjs/components/header/subcomponents/MinimizeButton.js +2 -9
- package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +52 -89
- package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +2 -5
- package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneProps.js +2 -6
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneButtonGroupStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonHoveredStyles.js +1 -2
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneHeaderGroupStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInputStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInvalidInputErrorMessageStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonHoveredStyles.js +1 -2
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneStyles.js +2 -15
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneTitleStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneComponentOverrides.js +3 -8
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +2 -5
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneProps.js +2 -7
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneCancelButtonStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneHeaderGroupStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneInputStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneSendButtonStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneStyles.js +2 -9
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneTitleStyles.js +2 -3
- package/lib/cjs/components/loadingpane/LoadingPane.js +12 -28
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +2 -5
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSpinnerStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSpinnerTextStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneStyles.js +2 -11
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneTitleStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +3 -5
- package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +3 -6
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSpinnerStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSpinnerTextStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneStyles.js +2 -11
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneTitleStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +3 -6
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -5
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneSpinnerStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneStyles.js +2 -11
- package/lib/cjs/components/notificationpane/NotificationPane.js +3 -15
- package/lib/cjs/components/notificationpane/subcomponents/CloseChatButton.js +2 -9
- package/lib/cjs/components/notificationpane/subcomponents/DismissButton.js +2 -9
- package/lib/cjs/components/outofofficehourspane/OOOHPane.js +5 -17
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +2 -5
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneProps.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneStyles.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneTitleStyles.js +2 -3
- package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +3 -5
- package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneProps.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +3 -5
- package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneProps.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +3 -5
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneProps.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -5
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneStyles.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneTitleStyles.js +2 -3
- package/lib/cjs/components/postchatsurveypane/PostChatSurveyPane.js +4 -13
- package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneControlProps.js +2 -5
- package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultStyles/defaultPostChatSurveyPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultStyles/defaultPostChatSurveyPaneStyles.js +2 -5
- package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +3 -5
- package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOneStyles/presetOnePostChatSurveyPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOneStyles/presetOnePostChatSurveyPaneStyles.js +2 -5
- package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +35 -56
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +2 -5
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneACContainerStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultichoiceInputStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneStyles.js +2 -11
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneToggleInputStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneControlProps.js +3 -5
- package/lib/cjs/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneControlProps.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneACContainerStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneButtonStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneStyles.js +2 -7
- package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneControlProps.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/proactivechatpane/ProactiveChatPane.js +29 -65
- package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +2 -5
- package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneProps.js +2 -6
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneBodyContainerStyles.js +1 -2
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneBodyTitleStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -5
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStartButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStartButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStyles.js +2 -15
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneTextContainerStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneTitleStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +2 -5
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneProps.js +2 -6
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneBodyTitleStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneCloseButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStartButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStartButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStyles.js +2 -9
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +2 -5
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneProps.js +2 -6
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneBodyContainerStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneCloseButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneHeaderContainerStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStartButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStartButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStyles.js +2 -11
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneComponentOverrides.js +4 -11
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneControlProps.js +2 -5
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneProps.js +2 -7
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneBodyContainerStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneHeaderContainerStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStartButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStartButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStyles.js +2 -10
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneTextContainerStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/ReconnectChatPane.js +33 -69
- package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneControlProps.js +2 -5
- package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneProps.js +2 -6
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneButtonGroupStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -5
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartChatButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartNewChatButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartNewChatButtonStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStyles.js +2 -14
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneTitleStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneWrapperStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneControlProps.js +2 -5
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneProps.js +2 -6
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneButtonGroupStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneContinueChatButtonStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneStyles.js +2 -9
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneTitleStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneWrapperStyles.js +2 -3
- package/lib/cjs/index.js +1 -24
- package/lib/cjs/services/BroadcastService.js +15 -26
- package/lib/cjs/services/EventQueue.js +4 -23
- package/lib/esm/common/Constants.js +15 -17
- package/lib/esm/common/decodeComponentString.js +0 -1
- package/lib/esm/common/utils.js +22 -30
- package/lib/esm/components/callingcontainer/CallingContainer.js +0 -5
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +86 -109
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/componentOverridesStyleProps.js +2 -1
- package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +41 -57
- package/lib/esm/components/callingcontainer/subcomponents/Timer/Timer.js +0 -2
- package/lib/esm/components/chatbutton/ChatButton.js +24 -37
- package/lib/esm/components/citationpane/CitationPane.js +17 -21
- package/lib/esm/components/citationpane/ScalingTest.js +1 -1
- package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonStyles.js +0 -2
- package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneContentStyles.js +0 -1
- package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneGeneralStyles.js +0 -1
- package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonStyles.js +0 -1
- package/lib/esm/components/common/commandbutton/CommandButton.js +14 -15
- package/lib/esm/components/common/subcomponents/CloseButton.js +0 -2
- package/lib/esm/components/confirmationpane/ConfirmationPane.js +21 -27
- package/lib/esm/components/footer/Footer.js +6 -10
- package/lib/esm/components/footer/common/defaultProps/defaultFooterComponentOverrides.js +0 -2
- package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +11 -11
- package/lib/esm/components/footer/subcomponents/DownloadTranscriptButton.js +0 -2
- package/lib/esm/components/footer/subcomponents/EmailTranscriptButton.js +0 -2
- package/lib/esm/components/header/Header.js +8 -12
- package/lib/esm/components/header/subcomponents/MinimizeButton.js +0 -2
- package/lib/esm/components/inputvalidationpane/InputValidationPane.js +50 -60
- package/lib/esm/components/loadingpane/LoadingPane.js +10 -13
- package/lib/esm/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +2 -1
- package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +2 -1
- package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +2 -1
- package/lib/esm/components/notificationpane/NotificationPane.js +1 -5
- package/lib/esm/components/notificationpane/subcomponents/CloseChatButton.js +0 -2
- package/lib/esm/components/notificationpane/subcomponents/DismissButton.js +0 -2
- package/lib/esm/components/outofofficehourspane/OOOHPane.js +3 -6
- package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +2 -1
- package/lib/esm/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +2 -1
- package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +2 -1
- package/lib/esm/components/postchatsurveypane/PostChatSurveyPane.js +2 -4
- package/lib/esm/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +2 -1
- package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +33 -38
- package/lib/esm/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneControlProps.js +2 -1
- package/lib/esm/components/proactivechatpane/ProactiveChatPane.js +26 -35
- package/lib/esm/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneComponentOverrides.js +1 -1
- package/lib/esm/components/reconnectchatpane/ReconnectChatPane.js +31 -39
- package/lib/esm/services/BroadcastService.js +12 -13
- package/lib/esm/services/EventQueue.js +3 -20
- package/package.json +16 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
|
|
1
|
+
var _Class, _Class2, _Class3, _Class4, _Class5, _Class6, _Class7, _Class8;
|
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
4
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
5
|
/* CSS Constants */
|
|
6
6
|
export const AccessibilityBrightnessRatio = 1.2;
|
|
7
7
|
export const HiddenTextStyles = {
|
|
@@ -12,11 +12,9 @@ export const HiddenTextStyles = {
|
|
|
12
12
|
clip: "rect(1px, 1px, 1px, 1px)",
|
|
13
13
|
whiteSpace: "nowrap"
|
|
14
14
|
};
|
|
15
|
-
export const KeyCodes = (
|
|
16
|
-
export const Regex = (
|
|
17
|
-
export let ElementType
|
|
18
|
-
|
|
19
|
-
(function (ElementType) {
|
|
15
|
+
export const KeyCodes = (_Class = class KeyCodes {}, _defineProperty(_Class, "ENTER", "Enter"), _defineProperty(_Class, "ESCAPE", "Escape"), _defineProperty(_Class, "SPACE", "Space"), _defineProperty(_Class, "DeclineCallHotKey", "D"), _defineProperty(_Class, "AcceptAudioCallHotKey", "S"), _defineProperty(_Class, "AcceptVideoCallHotKey", "A"), _defineProperty(_Class, "ToggleMicHotKey", "M"), _defineProperty(_Class, "ToggleCameraHotKey", "O"), _defineProperty(_Class, "EndCallHotKey", "H"), _Class);
|
|
16
|
+
export const Regex = (_Class2 = class Regex {}, _defineProperty(_Class2, "EmailRegex", "(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])"), _defineProperty(_Class2, "URLRegex", /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,}|mailto:[^\s]+|tel:[^\s]+|sms:[^\s]+)/gi), _Class2);
|
|
17
|
+
export let ElementType = /*#__PURE__*/function (ElementType) {
|
|
20
18
|
ElementType["ChatButton"] = "ChatButton";
|
|
21
19
|
ElementType["CloseButton"] = "CloseButton";
|
|
22
20
|
ElementType["HeaderMinimizeButton"] = "HeaderMinimizeButton";
|
|
@@ -41,11 +39,11 @@ export let ElementType;
|
|
|
41
39
|
ElementType["CurrentCallEndCallButton"] = "CurrentCallEndCallButton";
|
|
42
40
|
ElementType["Utility"] = "Utility";
|
|
43
41
|
ElementType["Custom"] = "Custom";
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export const Ids = (
|
|
47
|
-
export const ButtonTypes = (
|
|
48
|
-
export const IconNames = (
|
|
49
|
-
export const AriaLabels = (
|
|
50
|
-
export const EventNames = (
|
|
51
|
-
export const Texts = (
|
|
42
|
+
return ElementType;
|
|
43
|
+
}({});
|
|
44
|
+
export const Ids = (_Class3 = class Ids {}, _defineProperty(_Class3, "DefaultCallingContainerId", "lcw-calling-container"), _defineProperty(_Class3, "DefaultCurrentCallId", "lcw-current-call-container"), _defineProperty(_Class3, "CurrentCallActionGroupId", "lcw-current-call-action-icons"), _defineProperty(_Class3, "CurrentCallFooterId", "lcw-current-call-footer"), _defineProperty(_Class3, "RemoteVideoTileId", "lcw-remote-video"), _defineProperty(_Class3, "SelfVideoTileId", "lcw-self-video"), _defineProperty(_Class3, "VideoTileGroupId", "lcw-current-call-body"), _defineProperty(_Class3, "EndCallButtonId", "lcw-call-reject-button"), _defineProperty(_Class3, "MicButtonId", "lcw-toggle-audio"), _defineProperty(_Class3, "VideoButtonId", "lcw-toggle-video"), _defineProperty(_Class3, "CallTimerId", "lcw-current-call-timer"), _defineProperty(_Class3, "CurrentCallLeftGroupId", "lcw-current-call-left-group"), _defineProperty(_Class3, "CurrentCallMiddleGroupId", "lcw-current-call-middle-group"), _defineProperty(_Class3, "CurrentCallRightGroupId", "lcw-current-call-right-group"), _defineProperty(_Class3, "DefaultIncomingCallId", "lcw-incoming-call"), _defineProperty(_Class3, "DeclineCallButtonId", "lcw-call-reject-button"), _defineProperty(_Class3, "AudioCallButtonId", "lcw-call-accept-button"), _defineProperty(_Class3, "VideoCallButtonId", "lcw-video-call-accept-button"), _defineProperty(_Class3, "IncomingCallTitleId", "lcw-incoming-call-message"), _defineProperty(_Class3, "DefaultIncomingCallPopupId", "lcw-incoming-call-popup"), _defineProperty(_Class3, "IncomingCallLeftGroupId", "lcw-incoming-call-left-group"), _defineProperty(_Class3, "IncomingCallMiddleGroupId", "lcw-incoming-call-middle-group"), _defineProperty(_Class3, "IncomingCallRightGroupId", "lcw-incoming-call-right-group"), _defineProperty(_Class3, "DefaultChatButtonId", "lcw-components-chat-button"), _defineProperty(_Class3, "DefaultConfirmationPaneId", "lcw-components-confirmation-pane"), _defineProperty(_Class3, "CustomFooterId", "lcw-footer"), _defineProperty(_Class3, "DownloadTranscriptButtonId", "lcw-footer-download-transcript-button"), _defineProperty(_Class3, "EmailTranscriptButtonId", "lcw-footer-email-transcript-button"), _defineProperty(_Class3, "AudioNotificationButtonId", "lcw-footer-audio-notification-button"), _defineProperty(_Class3, "DefaultFooterId", "lcw-components-footer"), _defineProperty(_Class3, "FooterLeftGroupId", "lcw-footer-left-group"), _defineProperty(_Class3, "FooterMiddleGroupId", "lcw-footer-middle-group"), _defineProperty(_Class3, "FooterRightGroupId", "lcw-footer-right-group"), _defineProperty(_Class3, "DefaultHeaderId", "lcw-header"), _defineProperty(_Class3, "MinimizeButtonId", "lcw-header-minimize-button"), _defineProperty(_Class3, "CloseButtonId", "lcw-header-close-button"), _defineProperty(_Class3, "HeaderIconId", "lcw-header-icon"), _defineProperty(_Class3, "HeaderTitleId", "lcw-header-title"), _defineProperty(_Class3, "HeaderLeftGroupId", "lcw-header-left-group"), _defineProperty(_Class3, "HeaderMiddleGroupId", "lcw-header-middle-group"), _defineProperty(_Class3, "HeaderRightGroupId", "lcw-header-right-group"), _defineProperty(_Class3, "DefaultInputValidationPaneId", "lcw-email-transcript-dialog-container"), _defineProperty(_Class3, "DefaultInputValidationPaneInputId", "lcw-email-transcript-dialog-text-field"), _defineProperty(_Class3, "DefaultLoadingPaneId", "lcw-loading-pane"), _defineProperty(_Class3, "DefaultNotificationPaneId", "lcw-notification-pane"), _defineProperty(_Class3, "DefaultOOOHPaneId", "lcw-out-of-office-hours-pane"), _defineProperty(_Class3, "DefaultPostChatSurveyPaneId", "lcw-postchat-survey-pane"), _defineProperty(_Class3, "DefaultPreChatSurveyPaneId", "lcw-prechat-survey-pane-default"), _defineProperty(_Class3, "DefaultProactiveChatPaneId", "lcw-proactive-chat"), _defineProperty(_Class3, "DefaultReconnectChatPaneId", "lcw-reconnect-chat-pane"), _Class3);
|
|
45
|
+
export const ButtonTypes = (_Class4 = class ButtonTypes {}, _defineProperty(_Class4, "Icon", "icon"), _defineProperty(_Class4, "Text", "text"), _Class4);
|
|
46
|
+
export const IconNames = (_Class5 = class IconNames {}, _defineProperty(_Class5, "DeclineCall", "DeclineCall"), _defineProperty(_Class5, "Microphone", "Microphone"), _defineProperty(_Class5, "MicOff2", "MicOff2"), _defineProperty(_Class5, "Video", "Video"), _defineProperty(_Class5, "VideoOff", "VideoOff"), _defineProperty(_Class5, "IncomingCall", "IncomingCall"), _defineProperty(_Class5, "ChromeClose", "ChromeClose"), _defineProperty(_Class5, "Download", "Download"), _defineProperty(_Class5, "Mail", "Mail"), _defineProperty(_Class5, "Volume3", "Volume3"), _defineProperty(_Class5, "Volume0", "Volume0"), _defineProperty(_Class5, "ChromeMinimize", "ChromeMinimize"), _Class5);
|
|
47
|
+
export const AriaLabels = (_Class6 = class AriaLabels {}, _defineProperty(_Class6, "EndCall", "End Call"), _defineProperty(_Class6, "MicMute", "Mute"), _defineProperty(_Class6, "MicUnmute", "Unmute"), _defineProperty(_Class6, "VideoTurnCameraOn", "Turn camera on"), _defineProperty(_Class6, "VideoTurnCameraOff", "Turn camera off"), _defineProperty(_Class6, "IncomingCallArea", "Incoming call area"), _defineProperty(_Class6, "RejectCall", "Reject call"), _defineProperty(_Class6, "AcceptVoiceCall", "Accept voice call"), _defineProperty(_Class6, "AcceptVideoCall", "Accept video Call"), _defineProperty(_Class6, "DeclineCall", "Decline Call"), _defineProperty(_Class6, "AudioCall", "Audio Call"), _defineProperty(_Class6, "VideoCall", "Video Call"), _defineProperty(_Class6, "LetsChatWeAreOnline", "Let's chat we are online"), _defineProperty(_Class6, "UnreadMessageString", "you have new messages"), _defineProperty(_Class6, "Close", "Close"), _defineProperty(_Class6, "ConfirmationPaneConfirm", "Close Chat"), _defineProperty(_Class6, "ConfirmationPaneCancel", "Cancel. Return to Chat"), _defineProperty(_Class6, "DownloadChatTranscript", "Download chat transcript"), _defineProperty(_Class6, "EmailTranscript", "Email Transcript"), _defineProperty(_Class6, "TurnSoundOff", "Turn sound off"), _defineProperty(_Class6, "TurnSoundOn", "Turn sound on"), _defineProperty(_Class6, "Minimize", "Minimize"), _defineProperty(_Class6, "EmailChatTranscriptPane", "Email Chat Transcript Pane"), _defineProperty(_Class6, "InputValidationPaneInput", "Please provide e-mail address to send transcript. The transcript will be sent after the chat ends. Email address text area"), _defineProperty(_Class6, "Save", "Save"), _defineProperty(_Class6, "Cancel", "Cancel"), _defineProperty(_Class6, "ProactiveChatPane", "Proactive Chat Pane"), _defineProperty(_Class6, "ChatNow", "Chat Now"), _defineProperty(_Class6, "ReconnectChatPane", "Reconnect Chat Pane"), _defineProperty(_Class6, "ReconnectChatPaneIcon", "Reconnect Chat Pane Icon"), _defineProperty(_Class6, "ContinueConversation", "Continue conversation"), _defineProperty(_Class6, "StartNewConversation", "Start new conversation"), _Class6);
|
|
48
|
+
export const EventNames = (_Class7 = class EventNames {}, _defineProperty(_Class7, "OnClick", "OnClick"), _defineProperty(_Class7, "OnEscapeKeyDown", "OnEscapeKeyDown"), _defineProperty(_Class7, "IncomingCallEnded", "IncomingCallEnded"), _Class7);
|
|
49
|
+
export const Texts = (_Class8 = class Texts {}, _defineProperty(_Class8, "IncomingCallTitle", "Incoming Call"), _defineProperty(_Class8, "ChatButtonTitle", "Let's Chat!"), _defineProperty(_Class8, "ChatButtonSubtitle", "We're online."), _defineProperty(_Class8, "ChatButtonUnreadMessageString", "new messages"), _defineProperty(_Class8, "ChatButtonLargeUnreadMessageString", "99+"), _defineProperty(_Class8, "CloseButtonText", "Close"), _defineProperty(_Class8, "ConfirmationPaneTitle", "Close chat"), _defineProperty(_Class8, "ConfirmationPaneSubtitle", "Do you really want to close this chat?"), _defineProperty(_Class8, "ConfirmButtonText", "Close"), _defineProperty(_Class8, "EmailPlaceHolderText", "johnsmith@outlook.com"), _defineProperty(_Class8, "CancelButtonText", "Cancel"), _defineProperty(_Class8, "DownloadChatTranscriptText", "Download chat transcript"), _defineProperty(_Class8, "EmailTranscriptText", "Email Transcript"), _defineProperty(_Class8, "HeaderIcon", "Chat Icon"), _defineProperty(_Class8, "HeaderTitle", "Let's Chat"), _defineProperty(_Class8, "MinimizeText", "Minimize"), _defineProperty(_Class8, "InputValidationPaneTitleText", "Please provide e-mail address to send transcript."), _defineProperty(_Class8, "InputValidationPaneSubtitleText", "The transcript will be sent after the chat ends."), _defineProperty(_Class8, "InvalidInputErrorMessageText", "Enter a valid email address."), _defineProperty(_Class8, "SendButtonText", "Send"), _defineProperty(_Class8, "SaveButtonText", "Save"), _defineProperty(_Class8, "LoadingPaneTitleText", "Welcome to"), _defineProperty(_Class8, "LoadingPaneSubtitleText", "live chat support ..."), _defineProperty(_Class8, "LoadingPaneSpinnerText", "Loading ..."), _defineProperty(_Class8, "OOOHPaneTitleText", "Thanks for contacting us. You have reached us outside of our operating hours. An agent will respond when we open."), _defineProperty(_Class8, "PostChatSurveyPaneTitleText", "Post chat survey pane"), _defineProperty(_Class8, "ProactiveChatPaneTitleText", "Welcome to"), _defineProperty(_Class8, "ProactiveChatPaneSubtitleText", "Live chat support!"), _defineProperty(_Class8, "ProactiveChatPaneBodyTitleText", "Hi! Have any questions? I am here to help."), _defineProperty(_Class8, "ProactiveChatPaneStartButtonText", "Chat Now"), _defineProperty(_Class8, "ReconnectChatPaneTitleText", "Previous session detected"), _defineProperty(_Class8, "ReconnectChatPaneSubtitleText", "We have detected a previous chat session. Would you like to continue with your previous session?"), _defineProperty(_Class8, "ReconnectChatPaneContinueChatButtonText", "Continue conversation"), _defineProperty(_Class8, "ReconnectChatPaneStartNewChatButtonText", "Start new conversation"), _Class8);
|
package/lib/esm/common/utils.js
CHANGED
|
@@ -4,7 +4,7 @@ import { decodeComponentString } from "..";
|
|
|
4
4
|
export const uuidv4 = () => {
|
|
5
5
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, c => {
|
|
6
6
|
const r = Math.random() * 16 | 0,
|
|
7
|
-
|
|
7
|
+
v = c === "x" ? r : r & 0x3 | 0x8;
|
|
8
8
|
return v.toString(16);
|
|
9
9
|
});
|
|
10
10
|
};
|
|
@@ -14,9 +14,10 @@ export const generateEventName = (controlId, prefix, suffix) => {
|
|
|
14
14
|
if (controlId) eventName += controlId;
|
|
15
15
|
if (suffix) eventName += suffix;
|
|
16
16
|
return eventName;
|
|
17
|
-
};
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
|
+
};
|
|
19
18
|
|
|
19
|
+
//Broadcast Error
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
21
|
export const broadcastError = (elementId, error, propName, elementType) => {
|
|
21
22
|
const onJSONParseErrorEventName = generateEventName(elementId, propName, "JSONParseError");
|
|
22
23
|
const onJSONParseErrorEvent = {
|
|
@@ -31,7 +32,6 @@ export const broadcastError = (elementId, error, propName, elementType) => {
|
|
|
31
32
|
export const getInputValuesFromAdaptiveCard = adaptiveCard => {
|
|
32
33
|
const inputs = adaptiveCard.getAllInputs();
|
|
33
34
|
const adaptiveCardValues = [];
|
|
34
|
-
|
|
35
35
|
for (const input of inputs) {
|
|
36
36
|
adaptiveCardValues.push({
|
|
37
37
|
index: input.index,
|
|
@@ -40,7 +40,6 @@ export const getInputValuesFromAdaptiveCard = adaptiveCard => {
|
|
|
40
40
|
value: input.value
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
|
|
44
43
|
return adaptiveCardValues;
|
|
45
44
|
};
|
|
46
45
|
export const processCustomComponents = children => {
|
|
@@ -59,63 +58,60 @@ export const getMinutes = time => {
|
|
|
59
58
|
};
|
|
60
59
|
export const getSeconds = time => {
|
|
61
60
|
return ("0" + Math.floor(time / 1000 % 60)).slice(-2);
|
|
62
|
-
};
|
|
61
|
+
};
|
|
63
62
|
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
64
64
|
export const addNoreferrerNoopenerTag = htmlNode => {
|
|
65
65
|
const aNodes = htmlNode.getElementsByTagName("a");
|
|
66
|
-
|
|
67
66
|
if ((aNodes === null || aNodes === void 0 ? void 0 : aNodes.length) > 0) {
|
|
68
67
|
for (let index = 0; index < aNodes.length; index++) {
|
|
69
68
|
var _aNode$tagName;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
const aNode = aNodes[index];
|
|
70
|
+
// Skip if the node is not valid or the node's tag name is not equal to 'a', or the node href is empty.
|
|
73
71
|
if (((_aNode$tagName = aNode.tagName) === null || _aNode$tagName === void 0 ? void 0 : _aNode$tagName.toLowerCase()) !== "a" || !aNode.href) {
|
|
74
72
|
continue;
|
|
75
|
-
}
|
|
76
|
-
|
|
73
|
+
}
|
|
77
74
|
|
|
75
|
+
// Add target to 'a' node if target is missing or does not equal to blank
|
|
78
76
|
if (!aNode.target || aNode.target !== "_blank") {
|
|
79
77
|
aNode.target = "_blank";
|
|
80
|
-
}
|
|
81
|
-
|
|
78
|
+
}
|
|
82
79
|
|
|
80
|
+
// If rel is missing or rel does not include noopener and noreferrer, add them
|
|
83
81
|
if (!aNode.rel) {
|
|
84
82
|
aNode.rel = "noopener noreferrer";
|
|
85
83
|
} else {
|
|
86
84
|
if (aNode.rel.indexOf("noopener") === -1) {
|
|
87
85
|
aNode.rel += " noopener";
|
|
88
86
|
}
|
|
89
|
-
|
|
90
87
|
if (aNode.rel.indexOf("noreferrer") === -1) {
|
|
91
88
|
aNode.rel += " noreferrer";
|
|
92
89
|
}
|
|
93
90
|
}
|
|
94
91
|
}
|
|
95
92
|
}
|
|
96
|
-
};
|
|
93
|
+
};
|
|
97
94
|
|
|
95
|
+
// Escape HTML special characters to prevent XSS in string concatenation
|
|
98
96
|
const escapeHTML = str => {
|
|
99
97
|
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
100
|
-
};
|
|
101
|
-
|
|
98
|
+
};
|
|
102
99
|
|
|
100
|
+
// Escape only characters dangerous in href attribute context
|
|
103
101
|
const escapeHrefAttribute = url => {
|
|
104
102
|
return url.replace(/"/g, """).replace(/'/g, "'");
|
|
105
|
-
};
|
|
106
|
-
|
|
103
|
+
};
|
|
107
104
|
|
|
105
|
+
// Validate and sanitize URL to prevent javascript: and data: protocols
|
|
108
106
|
const isValidURL = url => {
|
|
109
|
-
const trimmedUrl = url.trim().toLowerCase();
|
|
110
|
-
|
|
107
|
+
const trimmedUrl = url.trim().toLowerCase();
|
|
108
|
+
// Block dangerous protocols
|
|
111
109
|
if (trimmedUrl.startsWith("javascript:") || trimmedUrl.startsWith("data:") || trimmedUrl.startsWith("vbscript:") || trimmedUrl.startsWith("file:")) {
|
|
112
110
|
return false;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
}
|
|
112
|
+
// Allow http, https, protocol-relative URLs, and safe contact schemes
|
|
116
113
|
return trimmedUrl.startsWith("http://") || trimmedUrl.startsWith("https://") || trimmedUrl.startsWith("www.") || trimmedUrl.startsWith("mailto:") || trimmedUrl.startsWith("tel:") || trimmedUrl.startsWith("sms:");
|
|
117
114
|
};
|
|
118
|
-
|
|
119
115
|
export const replaceURLWithAnchor = (text, openInNewTab) => {
|
|
120
116
|
if (text) {
|
|
121
117
|
const modifiedText = text.replace(Regex.URLRegex, function (url) {
|
|
@@ -123,18 +119,14 @@ export const replaceURLWithAnchor = (text, openInNewTab) => {
|
|
|
123
119
|
if (!isValidURL(url)) {
|
|
124
120
|
return escapeHTML(url); // Return escaped text, not a link
|
|
125
121
|
}
|
|
126
|
-
|
|
127
122
|
const escapedUrl = escapeHrefAttribute(url);
|
|
128
123
|
const displayText = escapeHTML(url);
|
|
129
|
-
|
|
130
124
|
if (openInNewTab) {
|
|
131
125
|
return `<a href="${escapedUrl}" rel="noreferrer noopener" target="_blank">${displayText}</a>`;
|
|
132
126
|
}
|
|
133
|
-
|
|
134
127
|
return `<a href="${escapedUrl}">${displayText}</a>`;
|
|
135
128
|
});
|
|
136
129
|
return modifiedText;
|
|
137
130
|
}
|
|
138
|
-
|
|
139
131
|
return text;
|
|
140
132
|
};
|
|
@@ -3,16 +3,13 @@ import { Stack } from "@fluentui/react";
|
|
|
3
3
|
import CurrentCall from "./subcomponents/CurrentCall/CurrentCall";
|
|
4
4
|
import IncomingCall from "./subcomponents/IncomingCall/IncomingCall";
|
|
5
5
|
import { defaultCallingContainerProps } from "./common/defaultProps/defaultCallingContainerProps";
|
|
6
|
-
|
|
7
6
|
function CallingContainer(props) {
|
|
8
7
|
var _props$controlProps, _defaultCallingContai, _defaultCallingContai2, _props$styleProps, _props$controlProps2, _defaultCallingContai3, _props$styleProps2, _props$controlProps3, _defaultCallingContai4, _props$controlProps4, _props$styleProps3, _props$controlProps5, _props$styleProps4;
|
|
9
|
-
|
|
10
8
|
const callingContainerId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? ((_defaultCallingContai = defaultCallingContainerProps.controlProps) === null || _defaultCallingContai === void 0 ? void 0 : _defaultCallingContai.id);
|
|
11
9
|
let stackStyles = {
|
|
12
10
|
root: Object.assign({}, (_defaultCallingContai2 = defaultCallingContainerProps.styleProps) === null || _defaultCallingContai2 === void 0 ? void 0 : _defaultCallingContai2.generalStyleProps, (_props$styleProps = props.styleProps) === null || _props$styleProps === void 0 ? void 0 : _props$styleProps.generalStyleProps)
|
|
13
11
|
};
|
|
14
12
|
const hideCallingContainer = ((_props$controlProps2 = props.controlProps) === null || _props$controlProps2 === void 0 ? void 0 : _props$controlProps2.hideCallingContainer) ?? ((_defaultCallingContai3 = defaultCallingContainerProps.controlProps) === null || _defaultCallingContai3 === void 0 ? void 0 : _defaultCallingContai3.hideCallingContainer);
|
|
15
|
-
|
|
16
13
|
if (hideCallingContainer) {
|
|
17
14
|
stackStyles = {
|
|
18
15
|
root: Object.assign({}, stackStyles.root, {
|
|
@@ -20,7 +17,6 @@ function CallingContainer(props) {
|
|
|
20
17
|
})
|
|
21
18
|
};
|
|
22
19
|
}
|
|
23
|
-
|
|
24
20
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
25
21
|
id: callingContainerId,
|
|
26
22
|
className: (_props$styleProps2 = props.styleProps) === null || _props$styleProps2 === void 0 ? void 0 : _props$styleProps2.className,
|
|
@@ -35,5 +31,4 @@ function CallingContainer(props) {
|
|
|
35
31
|
styleProps: (_props$styleProps4 = props.styleProps) === null || _props$styleProps4 === void 0 ? void 0 : _props$styleProps4.currentCallStyleProps
|
|
36
32
|
}));
|
|
37
33
|
}
|
|
38
|
-
|
|
39
34
|
export default CallingContainer;
|