npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@marketplace-co/grid

v0.0.23

Published

A grid to display cards in

Downloads

6

Readme

src/Grid.js:

class: Grid, mpc-grid

Superclass

| Name | Module | Package | | ------------ | ------ | ------- | | LitElement | | lit |

Fields

| Name | Privacy | Type | Default | Description | Inherited From | | ----------------- | ------- | --------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | | loading | public | boolean | false | Show the loading state | | | autoFetch | public | boolean | false | When true, autofetch data from the MPC API and apply it. See `autoFetchConfig` for more info. | | | autoFetchConfig | public | object | {} | Auto fetch data for the grid when required params are supplied<br/> `{`<br/> &nbsp;`providerId,`<br/> &nbsp;`entityType,`<br/> &nbsp;`marketplaceId,`<br/> &nbsp;`marketplaceBaseUrl,`<br/> &nbsp;`apiKey,`<br/> &nbsp;`apiBaseUrl,`<br/> &nbsp;`queryParams,`<br/> `}` <br/><br/> `entityType` options are: `listings` <br/><br/> `queryParams` accepts any supported `mpc` API param | | | mpcCardConfig | public | object | {} | A `<mpc-card>` config object. See the `Card` component for info on the props supported below.<br/> `{`<br/> &nbsp;`target,`<br/> &nbsp;`darkMode,`<br/> `}` | | | maxCols | public | number | 4 | The maximum responsive cols to show. `1-6` are supported | | | gap | public | number | 6 | The gap size between items. `1-8` are supported | | | _autoFetchData | public | array | [] | Loaded data from auto fetch config. | |

Methods

| Name | Privacy | Description | Parameters | Return | Inherited From | | --------------------------------- | ------- | ----------- | ------------------ | ------ | -------------- | | loadingTemplateMaybe | | | | | | | loadingTemplate | | | | | | | autoFetchContentTemplate | | | | | | | _handleAutoFetch | | | autoFetch | | | | _handleAutoFetchResponse | | | data, entityType | | | | _handleSetPropertiesForListings | | | data | | | | _getGridClassName | | | | | |

Attributes

| Name | Field | Inherited From | | ----------------- | --------------- | -------------- | | gap | gap | | | maxCols | maxCols | | | loading | loading | | | autoFetch | autoFetch | | | autoFetchConfig | autoFetchConfig | | | mpcCardConfig | mpcCardConfig | | | _autoFetchData | _autoFetchData | |

Exports

| Kind | Name | Declaration | Module | Package | | ---- | ------ | ----------- | ----------- | ------- | | js | Grid | Grid | src/Grid.js | |

mpc-grid.js:

Exports

| Kind | Name | Declaration | Module | Package | | --------------------------- | ---------- | ----------- | ------------ | ------- | | custom-element-definition | mpc-grid | Grid | /src/Grid.js | |