How to use botframework-webchat-component - 4 common examples

To help you get started, we’ve selected a few botframework-webchat-component examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / BotFramework-WebChat / packages / bundle / src / adaptiveCards / Attachment / AdaptiveCardRenderer.js View on Github external
({ 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]
github microsoft / BotFramework-WebChat / packages / bundle / src / useComposerProps.js View on Github external
    () => concatMiddleware(attachmentMiddleware, createAdaptiveCardsAttachmentMiddleware()),
    [attachmentMiddleware]
github microsoft / BotFramework-WebChat / packages / bundle / src / FullReactWebChat.js View on Github external
}, [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;
github microsoft / BotFramework-WebChat / packages / bundle / src / FullReactWebChat.js View on Github external
>
      
    
  );
};

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;

botframework-webchat-component

React component of botframework-webchat

MIT
Latest version published 6 months ago

Package Health Score

81 / 100
Full package analysis

Similar packages