
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@metype/components
Advanced tools
A react wrapper around metype widgets
- Metype-Commenting-widget [ commenting platform to keep your users engaged ]
- Metype-Feed-widget [ realtime feed of all the comments on the site ]
- Metype-Contribution-Widget [ submit content to the system ]
- Metype-Reactions-Widget [ Add reactions to a realm to keep the users engaged ]
npm i @metype/components --save
import { MetypeFeedWidget } from "@metype/components";
import { MetypeCommentingWidget } from "@metype/components";
import { MetypeContributionWidget } from "@metype/components";
import { MetypeReactionsWidget } from "@metype/components";
<MetypeCommentingWidget
host={'<-hostname->'}
accountId={<-account id->}
pageURL={'<-url of current page->'}
primaryColor={'<-Hex code of required color->'}
className = {'<-class name for styling->}
secondaryColor = {'<-Hex code of required color->'}
fontColor = {'<-Hex code of required color->'}
windowHeight = {'<-preferable window height || defaults to the required height>'}
windowWidth = {'<-preferable window width || defaults to 100% width of the parent container>''}
fontFamily={'<-font family name for the widget->'}
fontUrl={'<-font family url for the widget->'} />
<MetypeFeedWidget
host={'<-hostname->'}
accountId={<-account id->}
primaryColor={'<-Hex code of required color->'}
className = {'<-class name for styling->}
secondaryColor = {'<-Hex code of required color->'}
fontColor = {'<-Hex code of required color->'}
publisher={'<-publisher name->'}
fontFamily={'<-font family name for the widget->'}
fontUrl={'<-font family url for the widget->'} />
<MetypeContributionWidget
host={'<-hostname->'}
accountId={<-account id->}
publisher={'<-publisher name->'}
fontFamily={'<-font family name for the widget->'}
fontUrl={'<-font family url for the widget->'} />
<MetypeReactionsWidget
host={'<-hostname->'}
accountId={<-account id->}
storyUrl={'<-story realm url->'}
storyId={'<-story realm id->}
fontFamily={'<-font family name for the widget->'}
fontUrl={'<-font family url for the widget->'} />
Prerequisites:
- Login to be implemented in the parent app where metype is embedded.
- Enable third party login in the metype dashboard settings.
- Generate the jwtToken after login and pass it as a prop to the
MetypeCommentingWidget
as a string.
<MetypeCommentingWidget
host={'<-hostname->'}
accountId={<-account id->}
pageURL={'<-url of current page->'}
.....
jwt={jwt} />
- To login the user we call the below function with jwt being passed
this.props.jwt && window.talktype.accountUserLogin({
jwt: this.props.jwt
});
Note: The iframe is rerendered based on the jwtToken.
TODO: To be made more scalable and performant.
+919019218218
FAQs
React wrapped component built around metype
We found that @metype/components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.