Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@squiz/chat-ui
Advanced tools
## Overview This package provides an out of the box React Chat UI component to integrate with the Squiz DXP Chat AI capability.
This package provides an out of the box React Chat UI component to integrate with the Squiz DXP Chat AI capability.
Out of the box this component includes classes, using the BEM class naming method, but does not load styles automatically. An example set of styling is provided in this packages lib directory.
When running in Squiz Matrix or another system where __dxp is routed correctly to the Squiz DXP
import { ChatUI } from '@squiz/chat-ui';
export function Chat = ()=>{
return <ChatUI ai="CHAT_AI_SQUIZ_DXP_CONSOLE_HERE" greeting="Help can i help?" />
}
When running from a system without automatic routing via the origins /__dxp path a full path to the @squiz/ai-service needs to be provided:
import { ChatUI } from '@squiz/chat-ui';
export function Chat = ()=>{
return (
<ChatUI
ai="CHAT_AI_SQUIZ_DXP_CONSOLE_HERE"
aiApiUrl="https://my-domain/__myRoute/to/the/dxp/service/ai"
greeting="Help can i help?"
/>
)
}
If you have a pre-existing DxpAiService from the @squiz/dxp-ai-client package you can pass this in instead of a aiApiUrl:
import { ChatUI } from '@squiz/chat-ui';
import { DxpAiService } from '@squiz/dxp-ai-client';
export function Chat = ({dxpAiService}: {dxpAiService: DxpAiService<unknown>})=>{
return (
<ChatUI
ai="CHAT_AI_SQUIZ_DXP_CONSOLE_HERE"
aiService={dxpAiService}
greeting="Help can i help?"
/>
)
}
FAQs
## Overview This package provides an out of the box React Chat UI component to integrate with the Squiz DXP Chat AI capability.
We found that @squiz/chat-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.