Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
({ target }) => {
// Some items, e.g. tappable text, cannot be disabled thru DOM attributes
if (!disabled) {
const tabIndex = getTabIndex(target);
// If the user is clicking on something that is already clickable, do not allow them to click the card.
// E.g. a hero card can be tappable, and image and buttons inside the hero card can also be tappable.
if (typeof tabIndex !== 'number' || tabIndex < 0) {
tapAction && performCardAction(tapAction);
}
}
},
[disabled, performCardAction, tapAction]
() => concatMiddleware(attachmentMiddleware, createAdaptiveCardsAttachmentMiddleware()),
[attachmentMiddleware]
}, [adaptiveCardHostConfig]);
const composerProps = useComposerProps(props);
return (
);
};
FullReactWebChat.defaultProps = {
...BasicWebChat.defaultProps,
adaptiveCardHostConfig: undefined,
adaptiveCardsHostConfig: undefined,
adaptiveCardsPackage: undefined,
renderMarkdown: undefined
};
FullReactWebChat.propTypes = {
...BasicWebChat.propTypes,
adaptiveCardHostConfig: PropTypes.any,
adaptiveCardsHostConfig: PropTypes.any,
adaptiveCardsPackage: PropTypes.any,
renderMarkdown: PropTypes.func
};
export default FullReactWebChat;
>
);
};
FullReactWebChat.defaultProps = {
...BasicWebChat.defaultProps,
adaptiveCardHostConfig: undefined,
adaptiveCardsHostConfig: undefined,
adaptiveCardsPackage: undefined,
renderMarkdown: undefined
};
FullReactWebChat.propTypes = {
...BasicWebChat.propTypes,
adaptiveCardHostConfig: PropTypes.any,
adaptiveCardsHostConfig: PropTypes.any,
adaptiveCardsPackage: PropTypes.any,
renderMarkdown: PropTypes.func
};
export default FullReactWebChat;