
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
@mxenabled/connect-widget
Advanced tools
This is the UI only for the connect widget. Heavy configuration and an API are needed for this project to work. See usage and props for more details.
Install using npm package manager:
npm install @mxenabled/connect-widget
npm install --save @mxenabled/connect-widget
import "@mxenabled/connect-widget/dist/style.css"
ApiProvider
and ConnectWidget
. Add both to your project.import ConnectWidget, { ApiProvider } from '@mxenabled/connect-widget'
import apiService from './apiService' // You custom api service
const App = () => {
return (
<ApiProvider apiValue={apiService}>
<ConnectWidget {...props} />
{/* See props details below */}
</ApiProvider>
)
}
Prop | Type | Description | Default |
---|---|---|---|
clientConfig | ClientConfigType | The connect widget uses the config to set the initial state and behavior of the widget. More details | See more details |
language | LanguageType | The connect widget supports multiple languages and custom copy. Supported locale options: en , es , and fr-ca . | { locale: 'en', custom_copy_namespace: '' } |
onAnalyticEvent | AnalyticContextType | The connect widget provides a way to track events and pageviews using your own analytics provider. More details | null |
onAnalyticPageview | AnalyticContextType | The connect widget provides a way to track events and pageviews using your own analytics provider. More details | null |
onPostMessage | PostMessageContextType | The connect widget uses post messages to communicate with the parent window. More details | null |
postMessageEventOverrides | PostMessageEventOverrides | These can be used to override the post message events for specific post messages | null |
onShowConnectSuccessSurvey | AnalyticContextType | The connect widget provides a way to let your analytics provider know that the connect success survey was shown. More details | |
onSubmitConnectSuccessSurvey | AnalyticContextType | The connect widget provides a way to submit connect success survey responses using your own analytics provider. More details | |
profiles | ProfilesTypes | The connect widget uses the profiles to set the initial state of the widget. More details | See more details |
userFeatures | UserFeaturesType | The connect widget uses user features to determine the behavior of the widget. More details | See more details |
showTooSmallDialog | boolean | The connect widget can show a warning when the widget size is below the supported 320px. | true |
You need to pass an object containing API endpoint callbacks as the apiValue
prop of the ApiProvider as described in the usage section for the widget to work. Here is a more detailed list of the API endpoint callbacks.
Node(with npm)
. See package.json for current required versionsnpm i
npm run build
to build the projectTo make commits that trigger a package release, use npx cz
, it will launch easy to follow commitizen prompts.
A new MAJOR.MINOR.PATCH release will be generated if at least one of the following types are used, see Conventional Commits Documentation for more specifics.
fix:
-> PATCH bumpfeat:
-> MINOR bumpMajor bump (any type with a footer of BREAKING CHANGE:
)
<any_type>: <message>
BREAKING CHANGE: <description>
For developing this package locally, we suggest you use npm link to connect your local version of the package to your client app using the package.
npm link
.npm link @mxenabled/connect-widget
.This will link the local package to your project in the node modules. Unlink the package when you are finished or if you run into issues.
Pull requests are welcome. Please open an issue first to discuss what you would like to change.
Make sure to add/update tests, translations, and documentation as appropriate.
We have some architecture decision records that outline what is expected when contributing.
View our notes for each release here
FAQs
A simple ui library for React
The npm package @mxenabled/connect-widget receives a total of 740 weekly downloads. As such, @mxenabled/connect-widget popularity was classified as not popular.
We found that @mxenabled/connect-widget demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 30 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
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.