Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
@stripe/ui-extension-sdk
Advanced tools
The suite of functionality available to UI extensions in Stripe apps
For details on creating a Stripe App using this SDK, please refer to the Stripe App documentation.
value
prop to DateField
component.background
property on Box
and Inline
components' css
prop. Use the backgroundColor
property instead.className
prop on Button
and Link
components.invalid
prop on FormFieldGroup
component.layout
property on Box
and Inline
components' css
prop. Use the stack
property instead.tabKey
prop on Tab
and TabPanel
components.borderColor
, borderTopColor
, borderRightColor
, borderBottomColor
, borderLeftColor
) on Box
and Inline
components' css
prop. Use the keyline
property for border styling instead.value
and checked
props.StripeFileUploader
componentplatform
prop to environment contextappContext
to the ExtensionContextValue
typeAuthorizedPermission
and AuthorizedContentSecurityPolicy
appContext
getUserAuthorizedPermissions
: Gets the intersection of the app's authorized permissions and those of the current Dashboard user.isPermissionAuthorized
: Indicates if a permission is in the app's authorized permissions.isSourceInAuthorizedCSP
: Indicates if a URL is in the app's authorized connect or image sources.roles
to the account passed to extensions in the userContext
propertysecondaryAction
prop to SignInView
target
to SignInView
action propshref
and onPress
on SignInView
action propsconstants
prop to environment contextSignInView
componentcontentUses
property from TableCell
and TableHeaderCell
typinguseToast
to return show
and dismiss
utility methodsStripeAppsHttpResponse.prototype.toJSON()
now returns a rejected promise if the HTTP response body was emptyfetchStripeSignature
with nested JSONdebug
to filter props according to all
optiontabKey
to Tab
and TabPanel
stripe
package dependency to ^9.11.0
external
to Link
setShown
prop to FocusView
showToast
utility function for rendering toast notifications at the bottom of an app's viewExtensionContextValue
typing to mark name
and objectContext
values as possibly null
textAlign
to Box
css
onSave
prop optional for SettingsView
components@remote-ui/react
4.5.2Sparkline
componentvalue
prop on TextArea
, TextField
, and Select
componentschecked
prop on Checkbox
, Radio
, and Switch
componentsouterRef
props from inputsbrandIcon
and brandColor
to ContextView
Notice
component - use Banner
overflowX
and overflowY
to Box
css
Banner
componentNotice
componentlocale
to ExtensionContextValue['oauthContext']
overflowWrap
and wordBreak
to Box
css
propertiestextTransform
to Box
and Inline
css
propertiesprimaryAction
, secondaryAction
, and footerContent
properties to ContextView
.whiteSpace
to Box
css
propertiesBarChart
and LineChart
improvements:
FocusView
Chip
and ChipList
componentsgetDashboardUserEmail
utility to return the email directly and reject the promise if there's an errorlabel
prop of form elementstext-overflow: ellipsis
and word-wrap: normal | break-word
on Box
css
country
to the account passed to extensions in the userContext
propertydata:
URL support for the Img
component - docsSwitch
, Checkbox
and Radio
Accordion
, Icon
, Spinner
, and Tooltip
componentsBarChart
and LineChart
BarChart
and LineChart
css={{ width: ... }}
on Select
, TextArea
, TextField
, Button
, and Link
css={{ alignX: ... }}
on Button
and Link
clipboardWriteText
functiongetDashboardUserEmail
functionslot
propertycreateOAuthState
functionoauthContext
to the ExtensionContextValue
typeImg
componentNotice
, Charts
, and Tabs
componentsListItem
: Previously, content passed as children would be the primary content rendered in the component. Now, main content is passed to the title
prop. The description
slot has also been reassigned to a secondaryTitle
prop.MenuTrigger
: This component has been deprecated in favor of a trigger
prop on the Menu
component. Slot API usage has also been removed.docs.json
files in dist
actions
prop to ContextView
.ButtonGroup
component.margin-bottom
from form controls.white-space: nowrap
and alignY: center
by default.min-height
on all size variants.Link
and Button
shrink to fit their content.defaultValue
attribute on TextField
and TextArea
.error
and description
to be hidden on form controls via the hiddenElements
prop.invalid
and size
props on Select
and TextArea
.defaultChecked
attribute on Radio
.resizeable
and rows
props on TextArea
.Chip
onDropdown
firing twice.Divider
rendering.useRefreshDashboardData
that resolves after dashboard data is refreshed.fetchStripeSignature
method that optionally accepts additional request payload. Signature can be used to make authenticated request to your app's backend. See the docs for details..is
would sometimes fail to identify a component.testing
package in which comopnents with fragment props were not findable using wrapper.find()
SettingsView
SettingsView
types to match the available component propsgetMockContextProps
helper for testing. See the docs for details.React.ReactNode
as a valid type to the value
prop, rather than just a string
.MenuGroup
now supports the title
propFocusView
now supports the footerContent
propSettingsView
now supports the headerActions
propFocusView
, SettingsView
, and ContextView
STRIPE_API_KEY
from http_client to be used when initializing the Stripe API client.FAQs
The suite of functionality available to UI extensions in Stripe apps
The npm package @stripe/ui-extension-sdk receives a total of 1,865 weekly downloads. As such, @stripe/ui-extension-sdk popularity was classified as popular.
We found that @stripe/ui-extension-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 50 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
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.