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

@contentful/integration-component-library

v1.1.41

Published

> **Warning** > This library is under active development and is subject to significant changes. At any time components may be updated, depricated, or entirely removed based on our internal development of the [Apps](https://github.com/contentful/apps) repo

Downloads

109

Readme

integration-component-library

Warning This library is under active development and is subject to significant changes. At any time components may be updated, depricated, or entirely removed based on our internal development of the Apps repo.

This repository is a home to a documented component library, primarily used to support integration (app) development.

The library itself offers the Integrations team a place to develop components outside of the app itself, to support reusability as well as customizability. If deemed necessary and valid, these components can be escalated to a process of inclusion within the F36 or the experience-packages repository.

Local development

To install or update the app locally:

npm i

To run storybook locally:

npm run storybook

To run tests:

npm run test

When you are ready to publish a new component, for now, it is imperative that you do the following:

  1. Add the new component to the src/index.js file.

  2. Run: npm run build

  3. And include the dist directory within the PR itself. (this will be automated in the future ideally)

  4. Lastly follow standard Semantic Versioning commit messages (when you squash or commit to master) in order to version the package correctly.

Examples commit messages:

  • Feat: A new feature, i.e feat(button): Add new button component
  • Fix: A bug fix
  • Docs: A documentation change
  • Style: A change that does not affect meaning of code (styling)
  • Refactor: A change that neither fixes a bug nor adds a feature
  • Perf: A code change that improves performance
  • Test: An adjustment to tests
  • Chore: A change to the build process of auxiliary tools and libraries

Expectations of development:

  1. Each new component added to this library should be housed in its own directory, either under a certain Stack or under the 'General' directory.
  2. Each new component should be accompanied by a spec. file.
  3. Each new component should be accompanied by a stories. file.
  4. Keep in mind the various iterations of a component. Questions to ask: if it might be usuful to create a story for each iteration? and if the story is self-explantory to other developers? Sometimes it is useful to add details, actions, decorators to describe the story and component.

Troubleshooting the installation of this package

If you are encountering an error after running npm i @contentful/integration-component-library, perhaps a 401 error around access to the package itself, please try the following:

  1. Adjust the npm registry either within your local config or in a repository .npmrc file. To check your local config, run npm config ls. The regsitry should be the following: registry = "https://registry.npmjs.org/".
  2. If adjusting the registry does not resolve the issue, there may be an authorization step you must take. This should not be the case right now as the package access is public for now (to avoid the friction of these auth steps) and it is no longer hosted as a github package, but in the off chance this is the issue please refer to this document.

In progress improvements:

  1. Automating the build process so there is no need for the build file to be manually contributed as part of the PR.
  2. Adjusting Chromatic approval process per team feedback and use. How do we want to compare diffs, and visual changes, and how do we want this to reflect within the PR build and approval process?
  3. There is a known issue with the import of the LineChart component. It is not importing correctly as a component within the apps repository, despite the successful import of other components. Thinking it may be a dependency issue.

Storybook

Documentation