
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@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
The npm package @metype/components receives a total of 129 weekly downloads. As such, @metype/components popularity was classified as not popular.
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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.