Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@yext/chat-ui-react
Advanced tools
Readme
A library of React Components for powering Yext Chat integrations.
See the full documentation here.
Install the library through NPM:
npm install @yext/chat-ui-react
Once the library and its peer dependencies are installed, our React Components should be nested inside the ChatHeadlessProvider
. ChatHeadlessProvider
requires a HeadlessConfig
object with the appropriate credentials and configurations:
import {
ChatHeadlessProvider,
HeadlessConfig,
} from "@yext/chat-headless-react";
import { ChatPanel } from "@yext/chat-ui-react";
const config: HeadlessConfig = {
apiKey: "<apiKey>",
botId: "<botId>",
};
function App() {
return (
<ChatHeadlessProvider config={config}>
<ChatPanel />
</ChatHeadlessProvider>
);
}
export default App;
The component library utilizes Tailwind styling by default. Please make sure that your application's tailwind configuration includes the following:
content
field should contain the path to the location of the @yext/chat-ui-react
library (e.g., node_modules/@yext/chat-ui-react/lib/**/*.{js,jsx}
)For projects that do not use Tailwind, a css bundle is exported as part of this package. To use it, you can import
the file @yext/chat-ui-react/bundle.css
into your normal CSS flow.
Example for Yext Pages:
/* index.css */
@import "@yext/chat-ui-react/bundle.css";
The CSS bundle is scoped to the target class .yext-chat
, which is automatically included as a wrapper div in both
ChatPanel
and ChatPopUp
.
Projects that use Tailwind may pass Tailwind classnames into the Chat components using the customCssClasses
prop:
const customCssClasses: ChatPanelCssClasses = {
container: "bg-blue-300"
}
<ChatPanel customCssClasses={customCssClasses}>
Projects that don't use Tailwind may target the default styleless classnames added into the html elements within the Chat components and add their own css styling:
.yext-chat-panel__container {
background-color: blue;
}
Alternatively, user may provide their own classnames using the customCssClasses
prop and target that instead
FAQs
A library of React Components for powering Yext Chat integrations.
The npm package @yext/chat-ui-react receives a total of 729 weekly downloads. As such, @yext/chat-ui-react popularity was classified as not popular.
We found that @yext/chat-ui-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 114 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.