
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@sendbird/uikit-react
Advanced tools
Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
React based UI kit based on sendbird javascript SDK
We are introducing a new version of the Sendbird Chat UIKit. Version 3 features a new modular architecture with more granular components that give you enhanced flexibility to customize your web and mobile apps. Check out our migration guides.
yarn add @sendbird/uikit-react
or if you're using npm
npm i @sendbird/uikit-react
With Sendbird UI Kit React, we export these components:
(See src/index.jsx
)
SendBirdProvider - The context provider for SDK component
useSendbirdStateContext - Hook to access SendBirdProvider context
sendBirdSelectors - A bunch of useful selectors that can be used along with useSendbirdStateContext
Channel - A UI Component where conversations happen
ChannelList - A ChannelList UI component
ChannelSettings - A component to handle the settings of a given channel
MessageSearch - To search for a message from a Channel
OpenChannel - A UI Component where open channel conversations happen
OpenChannelSettings - A component to handle the settings of a given channel And many more...
App - is a full fledged app(group channel) component made by combining the above components so that you dont have to combine all the above components by hand. Also it can be used as an example for composing components to build a chat UI
Note 1: Dont forget to import the stylesheet from the repo too Note 2: Name of some components are different from the directories they are in(example -> Channel component is from Conversation component). Please keep that in mind
You need to install:
We use storybook for development and rollup for building the npm distribution(bundled JS file) Make sure you have nodejs and yarn(or npm) installed and run
Make a copy of .env.example and save it as .env Set your appId
STORYBOOK_APP_ID
yarn install
yarn storybook
or
npm install
npm run storybook
OTHERS
OTHERS/UI Components
in storybook sidebar./storybook
We use Husky for githooks
To enable Husky in local, run:
yarn husky install
or npx husky install
We use RollupJS for building the production bundle script that you want to use inside your applications.
We have both ESM
and CJS
output
yarn build
or
npm run build
The bundled JS code can be found in ./dist
The CSS is in ./dist/dist/index.css
Caveats
yarn build
or npm run build
in Windows machinesWe have implemented tests for dumb ui components only. Technologies used: Jest and testing-library
yarn test
or
npm run test
yarn lint
or
npm run lint
Webpack 5 removes stream and buffer componets from default polyfill To enable these, install buffer and stream and then add the following to webpack.cofig.js
module.exports = {
//...
resolve: {
fallback: {
buffer: require.resolve('buffer'),
stream: require.resolve('stream-browserify'),
},
},
};
To read more: https://webpack.js.org/configuration/resolve/#resolvefallback
./src
../src/index.ts
:export { default as NewComponent } from './src/location/of/NewComponent';
import { NewComponent } from '@sendbird/uikit-react';
./rollup.module-exports.js
:
'NewComponent/SubComponent': 'location/of/NewComponent/SubComponent',
import SubComponent from '@sendbird/uikit-react/NewComponent/SubComponent';
yarn run generate-component
to generate a UI component in src/ui
. It uses Plop.js to generate the component.We use lamejs for converting audio formats It is a fast mp3 encoder written in JavaScript. The original repo is:
[v3.14.4] (May 02, 2024)
suggestedRepliesDirection
global option which serves as vertical/horizontal scroll option for SuggestedReplies
<App
appId={appId}
userId={userId}
uikitOptions={{
groupChannel: {
// Below turns on the `SuggestedReplies` feature (see v3.8.0 release changelog). Default value is false.
enableSuggestedReplies: true,
// Below changes scroll direction from horizontal to vertical.
suggestedRepliesDirection: 'vertical'
}
}}
/>
Header
(import Header from '@sendbird/uikit-react/ui/Header'
) which replaced all existing header componentsshowSuggestedRepliesFor
is set to 'last_message_only'FAQs
Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
The npm package @sendbird/uikit-react receives a total of 39,489 weekly downloads. As such, @sendbird/uikit-react popularity was classified as popular.
We found that @sendbird/uikit-react 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.