@microsoft/omnichannel-chat-components 0.1.0-main.edd8c2a → 0.1.0-main.f30619f
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/README.md +1 -0
- package/lib/cjs/assets/Icons.js +48 -0
- package/lib/cjs/common/Constants.js +12 -7
- package/lib/cjs/common/utils.js +21 -2
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +31 -1
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +6 -16
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +0 -12
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +0 -12
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +45 -2
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +2 -4
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +4 -10
- package/lib/cjs/components/chatbutton/ChatButton.js +37 -26
- package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +5 -2
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -4
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js +1 -0
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTitleStyles.js +1 -0
- package/lib/cjs/components/common/commandbutton/CommandButton.js +36 -10
- package/lib/cjs/components/{header → common}/subcomponents/CloseButton.js +4 -3
- package/lib/cjs/components/confirmationpane/ConfirmationPane.js +19 -10
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneButtonGroupStyles.js +5 -1
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneGeneralStyles.js +7 -4
- package/lib/cjs/components/footer/Footer.js +2 -2
- package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +5 -13
- package/lib/cjs/components/footer/common/defaultProps/defaultFooterControlProps.js +1 -0
- package/lib/cjs/components/footer/common/defaultStyles/defaultFooterStyleProps.js +12 -6
- package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +29 -11
- package/lib/cjs/components/header/Header.js +2 -2
- package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +2 -4
- package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +4 -10
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -4
- package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +76 -46
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonStyles.js +2 -1
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInvalidInputErrorMessageStyles.js +1 -1
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonStyles.js +2 -1
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -4
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +1 -1
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -4
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -4
- package/lib/cjs/components/outofofficehourspane/OOOHPane.js +13 -6
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +3 -1
- package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +15 -0
- package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneProps.js +16 -0
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -4
- package/lib/cjs/components/postchatsurveypane/PostChatSurveyPane.js +3 -2
- package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +22 -8
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +4 -1
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +10 -0
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneStyles.js +7 -1
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +10 -0
- package/lib/cjs/{assets/assets.d.js → components/prechatsurveypane/interfaces/IPreChatSurveyPaneElementStyles.js} +0 -0
- package/lib/cjs/components/proactivechatpane/ProactiveChatPane.js +33 -30
- package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +5 -1
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -15
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -4
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +5 -1
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +5 -1
- package/lib/cjs/components/reconnectchatpane/ReconnectChatPane.js +14 -12
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -4
- package/lib/cjs/index.js +134 -0
- package/lib/cjs/services/BroadcastService.js +36 -8
- package/lib/esm/assets/Icons.js +21 -0
- package/lib/esm/common/Constants.js +10 -5
- package/lib/esm/common/utils.js +16 -0
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +33 -3
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +6 -10
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +0 -12
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +0 -12
- package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +47 -4
- package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +2 -2
- package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +4 -6
- package/lib/esm/components/chatbutton/ChatButton.js +37 -26
- package/lib/esm/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +5 -2
- package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -2
- package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js +1 -0
- package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonTitleStyles.js +1 -0
- package/lib/esm/components/common/commandbutton/CommandButton.js +36 -10
- package/lib/esm/components/{header → common}/subcomponents/CloseButton.js +4 -3
- package/lib/esm/components/confirmationpane/ConfirmationPane.js +20 -11
- package/lib/esm/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneButtonGroupStyles.js +5 -1
- package/lib/esm/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneGeneralStyles.js +7 -4
- package/lib/esm/components/footer/Footer.js +2 -2
- package/lib/esm/components/footer/common/defaultProps/customFooterControlProps.js +5 -8
- package/lib/esm/components/footer/common/defaultProps/defaultFooterControlProps.js +1 -0
- package/lib/esm/components/footer/common/defaultStyles/defaultFooterStyleProps.js +12 -6
- package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +29 -11
- package/lib/esm/components/header/Header.js +2 -2
- package/lib/esm/components/header/common/defaultProps/azureHeaderControlProps.js +2 -2
- package/lib/esm/components/header/common/defaultProps/customHeaderControlProps.js +4 -6
- package/lib/esm/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -2
- package/lib/esm/components/inputvalidationpane/InputValidationPane.js +77 -47
- package/lib/esm/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonStyles.js +2 -1
- package/lib/esm/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInvalidInputErrorMessageStyles.js +1 -1
- package/lib/esm/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonStyles.js +2 -1
- package/lib/esm/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -2
- package/lib/esm/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +1 -1
- package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -2
- package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -2
- package/lib/esm/components/outofofficehourspane/OOOHPane.js +13 -7
- package/lib/esm/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +3 -1
- package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +6 -0
- package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneProps.js +6 -0
- package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -2
- package/lib/esm/components/postchatsurveypane/PostChatSurveyPane.js +3 -2
- package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +22 -8
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +4 -1
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +3 -0
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneStyles.js +5 -1
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +3 -0
- package/lib/esm/components/prechatsurveypane/interfaces/IPreChatSurveyPaneElementStyles.js +1 -0
- package/lib/esm/components/proactivechatpane/ProactiveChatPane.js +30 -29
- package/lib/esm/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +5 -1
- package/lib/esm/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -11
- package/lib/esm/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -2
- package/lib/esm/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +5 -1
- package/lib/esm/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +5 -1
- package/lib/esm/components/reconnectchatpane/ReconnectChatPane.js +14 -12
- package/lib/esm/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -2
- package/lib/esm/index.js +3 -1
- package/lib/esm/services/BroadcastService.js +34 -8
- package/lib/types/assets/Icons.d.ts +21 -0
- package/lib/types/common/Constants.d.ts +8 -2
- package/lib/types/common/utils.d.ts +1 -0
- package/lib/types/components/callingcontainer/subcomponents/CurrentCall/interfaces/ICurrentCallStyleProps.d.ts +0 -4
- package/lib/types/components/chatbutton/interfaces/IChatButtonControlProps.d.ts +3 -0
- package/lib/types/components/common/interfaces/ICommandButtonControlProps.d.ts +1 -0
- package/lib/types/components/common/interfaces/ICommandButtonProps.d.ts +1 -0
- package/lib/types/components/{header → common}/subcomponents/CloseButton.d.ts +1 -1
- package/lib/types/components/confirmationpane/interfaces/IConfirmationPaneControlProps.d.ts +0 -1
- package/lib/types/components/inputvalidationpane/interfaces/IInputValidationPaneControlProps.d.ts +0 -1
- package/lib/types/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.d.ts +2 -0
- package/lib/types/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneProps.d.ts +2 -0
- package/lib/types/components/outofofficehourspane/interfaces/IOOOHPaneControlProps.d.ts +1 -0
- package/lib/types/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.d.ts +2 -0
- package/lib/types/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.d.ts +2 -0
- package/lib/types/components/prechatsurveypane/interfaces/IPreChatSurveyPaneButtonStyles.d.ts +3 -0
- package/lib/types/components/prechatsurveypane/interfaces/IPreChatSurveyPaneElementStyles.d.ts +5 -0
- package/lib/types/components/prechatsurveypane/interfaces/IPreChatSurveyPaneStyleProps.d.ts +5 -0
- package/lib/types/components/proactivechatpane/interfaces/IProactiveChatPaneControlProps.d.ts +2 -1
- package/lib/types/index.d.ts +2 -0
- package/lib/types/services/BroadcastService.d.ts +1 -0
- package/package.json +5 -10
- package/lib/cjs/assets/imgs/ChatBubble.svg +0 -28
- package/lib/cjs/assets/imgs/ChatReconnectPopupIcon.png +0 -0
- package/lib/cjs/assets/imgs/Proactive_banner.png +0 -0
- package/lib/cjs/assets/imgs/agent.png +0 -0
- package/lib/cjs/assets/imgs/callacceptbutton.svg +0 -3
- package/lib/cjs/assets/imgs/callrejectbutton.svg +0 -3
- package/lib/cjs/assets/imgs/chat.svg +0 -47
- package/lib/cjs/assets/imgs/chatIcon.svg +0 -16
- package/lib/cjs/assets/imgs/closeButton.svg +0 -3
- package/lib/cjs/assets/imgs/closeChatButton.svg +0 -3
- package/lib/cjs/assets/imgs/error.svg +0 -3
- package/lib/cjs/assets/imgs/lcwAudioOff.svg +0 -3
- package/lib/cjs/assets/imgs/lcwAudioOn.svg +0 -3
- package/lib/cjs/assets/imgs/loading.gif +0 -0
- package/lib/cjs/assets/imgs/minimizeChatButton.svg +0 -3
- package/lib/cjs/assets/imgs/transcriptDownloadIcon.svg +0 -4
- package/lib/cjs/assets/imgs/transcriptEmailIcon.svg +0 -5
- package/lib/cjs/assets/imgs/videocallacceptbutton.svg +0 -3
- package/lib/cjs/assets/imgs/videooff.svg +0 -3
- package/lib/cjs/assets/imgs/videoon.svg +0 -3
- package/lib/cjs/assets/imgs/voiceoff.svg +0 -3
- package/lib/cjs/assets/imgs/voiceon.svg +0 -3
- package/lib/esm/assets/assets.d.js +0 -0
- package/lib/esm/assets/imgs/ChatBubble.svg +0 -28
- package/lib/esm/assets/imgs/ChatReconnectPopupIcon.png +0 -0
- package/lib/esm/assets/imgs/Proactive_banner.png +0 -0
- package/lib/esm/assets/imgs/agent.png +0 -0
- package/lib/esm/assets/imgs/callacceptbutton.svg +0 -3
- package/lib/esm/assets/imgs/callrejectbutton.svg +0 -3
- package/lib/esm/assets/imgs/chat.svg +0 -47
- package/lib/esm/assets/imgs/chatIcon.svg +0 -16
- package/lib/esm/assets/imgs/closeButton.svg +0 -3
- package/lib/esm/assets/imgs/closeChatButton.svg +0 -3
- package/lib/esm/assets/imgs/error.svg +0 -3
- package/lib/esm/assets/imgs/lcwAudioOff.svg +0 -3
- package/lib/esm/assets/imgs/lcwAudioOn.svg +0 -3
- package/lib/esm/assets/imgs/loading.gif +0 -0
- package/lib/esm/assets/imgs/minimizeChatButton.svg +0 -3
- package/lib/esm/assets/imgs/transcriptDownloadIcon.svg +0 -4
- package/lib/esm/assets/imgs/transcriptEmailIcon.svg +0 -5
- package/lib/esm/assets/imgs/videocallacceptbutton.svg +0 -3
- package/lib/esm/assets/imgs/videooff.svg +0 -3
- package/lib/esm/assets/imgs/videoon.svg +0 -3
- package/lib/esm/assets/imgs/voiceoff.svg +0 -3
- package/lib/esm/assets/imgs/voiceon.svg +0 -3
|
@@ -42,7 +42,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
42
42
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
43
|
|
|
44
44
|
function ReconnectChatPane(props) {
|
|
45
|
-
var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$styleProps8, _props$styleProps9, _props$styleProps10, _props$controlProps8, _props$
|
|
45
|
+
var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$styleProps8, _props$styleProps9, _props$styleProps10, _props$styleProps11, _props$styleProps12, _props$controlProps8, _props$styleProps13, _props$styleProps13$c, _props$controlProps9, _props$controlProps10, _props$styleProps14, _props$styleProps14$c, _props$controlProps11, _props$componentOverr, _props$styleProps15, _props$styleProps15$c, _props$controlProps12, _props$controlProps13, _props$componentOverr2, _props$styleProps16, _props$styleProps16$c, _props$controlProps14, _props$controlProps15, _props$componentOverr3, _props$styleProps17, _props$styleProps17$c, _props$controlProps16, _props$controlProps17, _props$styleProps18, _props$styleProps18$c, _props$controlProps18, _props$componentOverr4, _props$styleProps19, _props$styleProps19$c, _props$controlProps19, _props$controlProps20, _props$controlProps21, _props$componentOverr5, _props$styleProps20, _props$styleProps20$c, _props$controlProps22, _props$controlProps23;
|
|
46
46
|
|
|
47
47
|
const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? _defaultReconnectChatPaneControlProps.defaultReconnectChatPaneControlProps.id;
|
|
48
48
|
const handleContinueChatClick = (0, _react2.useCallback)(() => {
|
|
@@ -117,14 +117,16 @@ function ReconnectChatPane(props) {
|
|
|
117
117
|
};
|
|
118
118
|
const continueChatButtonStyles = {
|
|
119
119
|
root: Object.assign({}, _defaultReconnectChatPaneContinueChatButtonStyles.defaultReconnectChatPaneContinueChatButtonStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.continueChatButtonStyleProps),
|
|
120
|
-
rootHovered: Object.assign({}, _defaultReconnectChatPaneContinueChatButtonHoveredStyles.defaultReconnectChatPaneContinueChatButtonHoveredStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.continueChatButtonHoveredStyleProps)
|
|
120
|
+
rootHovered: Object.assign({}, _defaultReconnectChatPaneContinueChatButtonHoveredStyles.defaultReconnectChatPaneContinueChatButtonHoveredStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.continueChatButtonHoveredStyleProps),
|
|
121
|
+
rootPressed: Object.assign({}, _defaultReconnectChatPaneContinueChatButtonHoveredStyles.defaultReconnectChatPaneContinueChatButtonHoveredStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.continueChatButtonHoveredStyleProps)
|
|
121
122
|
};
|
|
122
123
|
const startNewChatButtonStyles = {
|
|
123
|
-
root: Object.assign({}, _defaultReconnectChatPaneStartNewChatButtonStyles.defaultReconnectChatPaneStartNewChatButtonStyles, (_props$
|
|
124
|
-
rootHovered: Object.assign({}, _defaultReconnectChatPaneStartNewChatButtonHoveredStyles.defaultReconnectChatPaneStartNewChatButtonHoveredStyles, (_props$
|
|
124
|
+
root: Object.assign({}, _defaultReconnectChatPaneStartNewChatButtonStyles.defaultReconnectChatPaneStartNewChatButtonStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.startNewChatButtonStyleProps),
|
|
125
|
+
rootHovered: Object.assign({}, _defaultReconnectChatPaneStartNewChatButtonHoveredStyles.defaultReconnectChatPaneStartNewChatButtonHoveredStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.startNewChatButtonHoveredStyleProps),
|
|
126
|
+
rootPressed: Object.assign({}, _defaultReconnectChatPaneStartNewChatButtonHoveredStyles.defaultReconnectChatPaneStartNewChatButtonHoveredStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.startNewChatButtonHoveredStyleProps)
|
|
125
127
|
};
|
|
126
128
|
return /*#__PURE__*/_react2.default.createElement(_react2.default.Fragment, null, !((_props$controlProps8 = props.controlProps) !== null && _props$controlProps8 !== void 0 && _props$controlProps8.hideReconnectChatPane) && /*#__PURE__*/_react2.default.createElement(_react.Stack, {
|
|
127
|
-
className: (_props$
|
|
129
|
+
className: (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : (_props$styleProps13$c = _props$styleProps13.classNames) === null || _props$styleProps13$c === void 0 ? void 0 : _props$styleProps13$c.containerClassName,
|
|
128
130
|
id: elementId,
|
|
129
131
|
tabIndex: -1,
|
|
130
132
|
onKeyDown: handleEscKeyDown,
|
|
@@ -132,22 +134,22 @@ function ReconnectChatPane(props) {
|
|
|
132
134
|
"aria-label": ((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.reconnectChatPaneAriaLabel) || _defaultReconnectChatPaneControlProps.defaultReconnectChatPaneControlProps.reconnectChatPaneAriaLabel,
|
|
133
135
|
styles: containerStyles
|
|
134
136
|
}, /*#__PURE__*/_react2.default.createElement(_react.Stack, {
|
|
135
|
-
className: (_props$
|
|
137
|
+
className: (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : (_props$styleProps14$c = _props$styleProps14.classNames) === null || _props$styleProps14$c === void 0 ? void 0 : _props$styleProps14$c.wrapperClassName,
|
|
136
138
|
styles: wrapperStyles,
|
|
137
139
|
tabIndex: -1,
|
|
138
140
|
id: elementId + "-wrapper"
|
|
139
141
|
}, !((_props$controlProps11 = props.controlProps) !== null && _props$controlProps11 !== void 0 && _props$controlProps11.hideTitle) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.title) || /*#__PURE__*/_react2.default.createElement(_react.Label, {
|
|
140
|
-
className: (_props$
|
|
142
|
+
className: (_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 ? void 0 : (_props$styleProps15$c = _props$styleProps15.classNames) === null || _props$styleProps15$c === void 0 ? void 0 : _props$styleProps15$c.titleClassName,
|
|
141
143
|
styles: titleStyles,
|
|
142
144
|
tabIndex: -1,
|
|
143
145
|
id: elementId + "-title"
|
|
144
146
|
}, ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.titleText) || _defaultReconnectChatPaneControlProps.defaultReconnectChatPaneControlProps.titleText)), !((_props$controlProps13 = props.controlProps) !== null && _props$controlProps13 !== void 0 && _props$controlProps13.hideSubtitle) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.subtitle) || /*#__PURE__*/_react2.default.createElement(_react.Label, {
|
|
145
|
-
className: (_props$
|
|
147
|
+
className: (_props$styleProps16 = props.styleProps) === null || _props$styleProps16 === void 0 ? void 0 : (_props$styleProps16$c = _props$styleProps16.classNames) === null || _props$styleProps16$c === void 0 ? void 0 : _props$styleProps16$c.subtitleClassName,
|
|
146
148
|
styles: subtitleStyles,
|
|
147
149
|
tabIndex: -1,
|
|
148
150
|
id: elementId + "-subtitle"
|
|
149
151
|
}, ((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : _props$controlProps14.subtitleText) || _defaultReconnectChatPaneControlProps.defaultReconnectChatPaneControlProps.subtitleText)), !((_props$controlProps15 = props.controlProps) !== null && _props$controlProps15 !== void 0 && _props$controlProps15.hideIcon) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.icon) || /*#__PURE__*/_react2.default.createElement(_react.Icon, {
|
|
150
|
-
className: (_props$
|
|
152
|
+
className: (_props$styleProps17 = props.styleProps) === null || _props$styleProps17 === void 0 ? void 0 : (_props$styleProps17$c = _props$styleProps17.classNames) === null || _props$styleProps17$c === void 0 ? void 0 : _props$styleProps17$c.iconClassName,
|
|
151
153
|
styles: iconStyles,
|
|
152
154
|
tabIndex: -1,
|
|
153
155
|
role: "img",
|
|
@@ -155,12 +157,12 @@ function ReconnectChatPane(props) {
|
|
|
155
157
|
"aria-label": ((_props$controlProps16 = props.controlProps) === null || _props$controlProps16 === void 0 ? void 0 : _props$controlProps16.iconAriaLabel) || _defaultReconnectChatPaneControlProps.defaultReconnectChatPaneControlProps.iconAriaLabel
|
|
156
158
|
})), /*#__PURE__*/_react2.default.createElement(_react.Stack, {
|
|
157
159
|
horizontal: ((_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.isButtonGroupHorizontal) || _defaultReconnectChatPaneControlProps.defaultReconnectChatPaneControlProps.isButtonGroupHorizontal,
|
|
158
|
-
className: (_props$
|
|
160
|
+
className: (_props$styleProps18 = props.styleProps) === null || _props$styleProps18 === void 0 ? void 0 : (_props$styleProps18$c = _props$styleProps18.classNames) === null || _props$styleProps18$c === void 0 ? void 0 : _props$styleProps18$c.buttonGroupClassName,
|
|
159
161
|
styles: buttonGroupStyles,
|
|
160
162
|
tabIndex: -1,
|
|
161
163
|
id: elementId + "-buttongroup"
|
|
162
164
|
}, !((_props$controlProps18 = props.controlProps) !== null && _props$controlProps18 !== void 0 && _props$controlProps18.hideContinueChatButton) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.continueChatButton) || /*#__PURE__*/_react2.default.createElement(_react.DefaultButton, {
|
|
163
|
-
className: (_props$
|
|
165
|
+
className: (_props$styleProps19 = props.styleProps) === null || _props$styleProps19 === void 0 ? void 0 : (_props$styleProps19$c = _props$styleProps19.classNames) === null || _props$styleProps19$c === void 0 ? void 0 : _props$styleProps19$c.continueChatButtonClassName,
|
|
164
166
|
styles: continueChatButtonStyles,
|
|
165
167
|
tabIndex: 0,
|
|
166
168
|
text: ((_props$controlProps19 = props.controlProps) === null || _props$controlProps19 === void 0 ? void 0 : _props$controlProps19.continueChatButtonText) || _defaultReconnectChatPaneControlProps.defaultReconnectChatPaneControlProps.continueChatButtonText,
|
|
@@ -168,7 +170,7 @@ function ReconnectChatPane(props) {
|
|
|
168
170
|
id: elementId + "-continueconversationbutton",
|
|
169
171
|
"aria-label": ((_props$controlProps20 = props.controlProps) === null || _props$controlProps20 === void 0 ? void 0 : _props$controlProps20.continueChatButtonAriaLabel) || _defaultReconnectChatPaneControlProps.defaultReconnectChatPaneControlProps.continueChatButtonAriaLabel
|
|
170
172
|
})), !((_props$controlProps21 = props.controlProps) !== null && _props$controlProps21 !== void 0 && _props$controlProps21.hideStartNewChatButton) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr5 = props.componentOverrides) === null || _props$componentOverr5 === void 0 ? void 0 : _props$componentOverr5.startNewChatButton) || /*#__PURE__*/_react2.default.createElement(_react.DefaultButton, {
|
|
171
|
-
className: (_props$
|
|
173
|
+
className: (_props$styleProps20 = props.styleProps) === null || _props$styleProps20 === void 0 ? void 0 : (_props$styleProps20$c = _props$styleProps20.classNames) === null || _props$styleProps20$c === void 0 ? void 0 : _props$styleProps20$c.startNewChatButtonClassName,
|
|
172
174
|
styles: startNewChatButtonStyles,
|
|
173
175
|
tabIndex: 0,
|
|
174
176
|
text: ((_props$controlProps22 = props.controlProps) === null || _props$controlProps22 === void 0 ? void 0 : _props$controlProps22.startNewChatButtonText) || _defaultReconnectChatPaneControlProps.defaultReconnectChatPaneControlProps.startNewChatButtonText,
|
|
@@ -5,12 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.defaultReconnectChatPaneIconStyles = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
+
var _Icons = require("../../../../../assets/Icons");
|
|
11
9
|
|
|
12
10
|
const defaultReconnectChatPaneIconStyles = {
|
|
13
|
-
backgroundImage:
|
|
11
|
+
backgroundImage: `url(${_Icons.ChatReconnectIconBase64})`,
|
|
14
12
|
backgroundPosition: "center",
|
|
15
13
|
backgroundRepeat: "no-repeat",
|
|
16
14
|
backgroundSize: "200px",
|
package/lib/cjs/index.js
CHANGED
|
@@ -3,12 +3,48 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "AgentIconBase64", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Icons.AgentIconBase64;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AudioNotificationOffIconBase64", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Icons.AudioNotificationOffIconBase64;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "AudioNotificationOnIconBase64", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Icons.AudioNotificationOnIconBase64;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
6
24
|
Object.defineProperty(exports, "BroadcastService", {
|
|
7
25
|
enumerable: true,
|
|
8
26
|
get: function () {
|
|
9
27
|
return _BroadcastService.BroadcastService;
|
|
10
28
|
}
|
|
11
29
|
});
|
|
30
|
+
Object.defineProperty(exports, "BroadcastServiceInitialize", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _BroadcastService.BroadcastServiceInitialize;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "CallAcceptButtonBase64", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _Icons.CallAcceptButtonBase64;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "CallRejectButtonBase64", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _Icons.CallRejectButtonBase64;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
12
48
|
Object.defineProperty(exports, "CallingContainer", {
|
|
13
49
|
enumerable: true,
|
|
14
50
|
get: function () {
|
|
@@ -21,6 +57,18 @@ Object.defineProperty(exports, "ChatButton", {
|
|
|
21
57
|
return _ChatButton.default;
|
|
22
58
|
}
|
|
23
59
|
});
|
|
60
|
+
Object.defineProperty(exports, "ChatReconnectIconBase64", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _Icons.ChatReconnectIconBase64;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "CloseChatButtonIconBase64", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _Icons.CloseChatButtonIconBase64;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
24
72
|
Object.defineProperty(exports, "ConfirmationPane", {
|
|
25
73
|
enumerable: true,
|
|
26
74
|
get: function () {
|
|
@@ -33,12 +81,24 @@ Object.defineProperty(exports, "CurrentCall", {
|
|
|
33
81
|
return _CurrentCall.default;
|
|
34
82
|
}
|
|
35
83
|
});
|
|
84
|
+
Object.defineProperty(exports, "CustomChatIconBase64", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _Icons.CustomChatIconBase64;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
36
90
|
Object.defineProperty(exports, "ElementType", {
|
|
37
91
|
enumerable: true,
|
|
38
92
|
get: function () {
|
|
39
93
|
return _Constants.ElementType;
|
|
40
94
|
}
|
|
41
95
|
});
|
|
96
|
+
Object.defineProperty(exports, "ErrorIconBase64", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _Icons.ErrorIconBase64;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
42
102
|
Object.defineProperty(exports, "Footer", {
|
|
43
103
|
enumerable: true,
|
|
44
104
|
get: function () {
|
|
@@ -63,12 +123,36 @@ Object.defineProperty(exports, "InputValidationPane", {
|
|
|
63
123
|
return _InputValidationPane.default;
|
|
64
124
|
}
|
|
65
125
|
});
|
|
126
|
+
Object.defineProperty(exports, "LegacyChatIconBase64", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _Icons.LegacyChatIconBase64;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
66
132
|
Object.defineProperty(exports, "LoadingPane", {
|
|
67
133
|
enumerable: true,
|
|
68
134
|
get: function () {
|
|
69
135
|
return _LoadingPane.default;
|
|
70
136
|
}
|
|
71
137
|
});
|
|
138
|
+
Object.defineProperty(exports, "LoadingSpinnerBase64", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _Icons.LoadingSpinnerBase64;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "MinimizeChatButtonIconBase64", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _Icons.MinimizeChatButtonIconBase64;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "ModernChatIconBase64", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return _Icons.ModernChatIconBase64;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
72
156
|
Object.defineProperty(exports, "OutOfOfficeHoursPane", {
|
|
73
157
|
enumerable: true,
|
|
74
158
|
get: function () {
|
|
@@ -87,6 +171,12 @@ Object.defineProperty(exports, "PreChatSurveyPane", {
|
|
|
87
171
|
return _PreChatSurveyPane.default;
|
|
88
172
|
}
|
|
89
173
|
});
|
|
174
|
+
Object.defineProperty(exports, "ProactiveChatBannerBase64", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () {
|
|
177
|
+
return _Icons.ProactiveChatBannerBase64;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
90
180
|
Object.defineProperty(exports, "ProactiveChatPane", {
|
|
91
181
|
enumerable: true,
|
|
92
182
|
get: function () {
|
|
@@ -105,6 +195,48 @@ Object.defineProperty(exports, "Timer", {
|
|
|
105
195
|
return _Timer.default;
|
|
106
196
|
}
|
|
107
197
|
});
|
|
198
|
+
Object.defineProperty(exports, "TranscriptDownloadIconBase64", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () {
|
|
201
|
+
return _Icons.TranscriptDownloadIconBase64;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, "TranscriptEmailIconBase64", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () {
|
|
207
|
+
return _Icons.TranscriptEmailIconBase64;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "VideoCallAcceptButtonIconBase64", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function () {
|
|
213
|
+
return _Icons.VideoCallAcceptButtonIconBase64;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
Object.defineProperty(exports, "VideoOffIconBase64", {
|
|
217
|
+
enumerable: true,
|
|
218
|
+
get: function () {
|
|
219
|
+
return _Icons.VideoOffIconBase64;
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "VideoOnIconBase64", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () {
|
|
225
|
+
return _Icons.VideoOnIconBase64;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(exports, "VoiceOffIconBase64", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function () {
|
|
231
|
+
return _Icons.VoiceOffIconBase64;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "VoiceOnIconBase64", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function () {
|
|
237
|
+
return _Icons.VoiceOnIconBase64;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
108
240
|
Object.defineProperty(exports, "decodeComponentString", {
|
|
109
241
|
enumerable: true,
|
|
110
242
|
get: function () {
|
|
@@ -156,4 +288,6 @@ var _IncomingCall = _interopRequireDefault(require("./components/callingcontaine
|
|
|
156
288
|
|
|
157
289
|
var _Timer = _interopRequireDefault(require("./components/callingcontainer/subcomponents/Timer/Timer"));
|
|
158
290
|
|
|
291
|
+
var _Icons = require("./assets/Icons");
|
|
292
|
+
|
|
159
293
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.BroadcastService = void 0;
|
|
6
|
+
exports.BroadcastServiceInitialize = exports.BroadcastService = void 0;
|
|
7
7
|
|
|
8
8
|
var _rxjs = require("rxjs");
|
|
9
9
|
|
|
@@ -11,20 +11,48 @@ var _operators = require("rxjs/operators");
|
|
|
11
11
|
|
|
12
12
|
var _broadcastChannel = require("broadcast-channel");
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
const newMessage = new _rxjs.Subject(); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
15
|
|
|
16
|
-
const
|
|
17
|
-
const pubChannel = new _broadcastChannel.BroadcastChannel(_Constants.BROADCAST_CHANNEL_NAME);
|
|
18
|
-
const subChannel = new _broadcastChannel.BroadcastChannel(_Constants.BROADCAST_CHANNEL_NAME); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
const broadcastServicePubList = {}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
const broadcastServiceSubList = {}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
|
+
|
|
20
|
+
let pubChannel; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
|
+
|
|
22
|
+
let subChannel;
|
|
23
|
+
|
|
24
|
+
const BroadcastServiceInitialize = channelName => {
|
|
25
|
+
if (broadcastServicePubList[channelName]) {
|
|
26
|
+
pubChannel = broadcastServicePubList[channelName];
|
|
27
|
+
} else {
|
|
28
|
+
const newPubChannel = new _broadcastChannel.BroadcastChannel(channelName);
|
|
29
|
+
broadcastServicePubList[channelName] = newPubChannel;
|
|
30
|
+
pubChannel = newPubChannel;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (broadcastServiceSubList[channelName]) {
|
|
34
|
+
subChannel = broadcastServiceSubList[channelName];
|
|
35
|
+
} else {
|
|
36
|
+
const newSubChannel = new _broadcastChannel.BroadcastChannel(channelName);
|
|
37
|
+
broadcastServiceSubList[channelName] = newSubChannel;
|
|
38
|
+
subChannel = newSubChannel;
|
|
39
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
subChannel.onmessage = message => {
|
|
43
|
+
newMessage.next(message);
|
|
44
|
+
};
|
|
22
45
|
};
|
|
23
46
|
|
|
47
|
+
exports.BroadcastServiceInitialize = BroadcastServiceInitialize;
|
|
24
48
|
const BroadcastService = {
|
|
25
49
|
//broadcast a message
|
|
26
50
|
postMessage: message => {
|
|
27
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Omit copying methods to prevent 'DataCloneError' in older browsers when passing an object with functions
|
|
53
|
+
* This exception occurs when an object can't be clone with the 'structured clone algorithm' (used by postMessage)
|
|
54
|
+
*/
|
|
55
|
+
pubChannel.postMessage(JSON.parse(JSON.stringify(message)));
|
|
28
56
|
},
|
|
29
57
|
getMessage: message => {
|
|
30
58
|
return newMessage.pipe((0, _operators.filter)(msg => msg.elementId == message.elementId && msg.elementType == message.elementType && msg.eventName == message.eventName));
|