New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@marketplace-co/card

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marketplace-co/card

Webcomponent card following open-wc recommendations

  • 0.0.21
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-81.82%
Maintainers
1
Weekly downloads
 
Created
Source

src/Card.js:

class: Card, mpc-card

Superclass
NameModulePackage
LitElementlit
Fields
NamePrivacyTypeDefaultDescriptionInherited From
titlepublicstring''Title of the card
subtitlepublicstring''Subtitle of the card, shown above the title if present
hrefpublicstring''When present, clicking the card will route to this string
imagespublicarray[]Array of image urls, only the first image will be shown
loadingpublicbooleanfalseShow the loading state
buttonTextpublicstring''When present, a button is shown at the buttom of the card
currencypublicstring''When present, a currency is shown next to the price
currencySymbolpublicstring'$'The symbol to show before price string. Only used when price is set.
currencyFormatpublicstring'0,0[.]00'The format string to display the price in, see <a href="http://numeraljs.com" target="_blank">numeraljs.com</a> for a full list of options
darkModepublicstring'disabled'The theme of the card, valid options are `disabled`, `auto` & `active`. The auto strategy uses the `prefers-color-scheme` media feature under the hood, it will not listen for color changes when set to auto
autoFetchpublicbooleanfalseWhen true, autofetch data from the MPC API and apply it. See `autoFetchConfig` for more info.
autoFetchConfigpublicobject{}Auto fetch data for the card when required params are supplied<br/> `{`<br/> &nbsp;`entityId,`<br/> &nbsp;`entityType,`<br/> &nbsp;`marketplaceId,`<br/> &nbsp;`marketplaceBaseUrl,`<br/> &nbsp;`apiKey,`<br/> &nbsp;`apiBaseUrl,`<br/> `}` <br/><br/> `entityType` options are `listing`
targetpublicTells the browser where to open the link. Only used when href is set.
pricepublicWhen present, a price is shown. Formatted by numeral.js
Methods
NamePrivacyDescriptionParametersReturnInherited From
_handleAutoFetchautoFetch
_handleAutoFetchResponsedata, entityType
_handleSetPropertiesForListingdata
mediaTemplate
loadingTemplate
contentTemplate
Attributes
NameFieldInherited From
titletitle
subtitlesubtitle
imagesimages
loadingloading
hrefhref
targettarget
buttonTextbuttonText
priceprice
currencycurrency
currencySymbolcurrencySymbol
currencyFormatcurrencyFormat
darkModedarkMode
autoFetchautoFetch
autoFetchConfigautoFetchConfig

Exports

KindNameDeclarationModulePackage
jsCardCardsrc/Card.js

mpc-card.js:

Exports

KindNameDeclarationModulePackage
custom-element-definitionmpc-cardCard/src/Card.js

FAQs

Package last updated on 11 Aug 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc