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

shellshow-onboard-builder-iframe-wrapper

v1.0.4

Published

With this library, you can create exceptional user onboarding experiences for any webpage of your website. Simply integrate the library with the Webpage Component where you want to show. You can create different onboarding experiences for each webpage to

Downloads

1

Readme

ShellShow-Onboard-Builder-iframeWrapper

With this library, you can create exceptional user onboarding experiences for any webpage of your website. Simply integrate the library with the Webpage Component where you want to show. You can create different onboarding experiences for each webpage to make the user comfortable with your website features.

Setup In React Project

  1. Import the library in your main component, where you want to display the User Onboard Templates.
  • dataLoader -> This function is used to load all templates from a group in project.
  • showTemplate -> This function is used to start the onboarding experience for a webpage.
import { dataLoader, showTemplate } from "shellshow-onboard-builder-iframe-wrapper";
  1. Execute the dataLoader() function inside the ComponentDidMount lifecycle in class based component, or useEffect hook in react hooks. You also need to pass the group Id, whose templates you want to show. You need to copy the groupId from the ShellShow's website, where you have created all your templates.

An example with react hooks is given below: We call a function "loadTemplates()" in our useEffect,to execute the dataLoader() function with async await feature. Once we receive the templates, we save it in react hooks state variable for using the templates in our website.

var [templates, setTemplates] = useState([]);

  const loadTemplates = async () => {
    const response = await dataLoader("5f09bba96362545b5c71eb17"); // wait till templates are fetched
    setTemplates(response); // we store fetched templated in templates hook variable
  };
  useEffect(() => {
    loadTemplates();
  }, []);
  1. After this, bind any button(which user can click) with the showTemplates() function to start showing the templates. You need to pass the Javascript "document" object and the fetched templates for this function to work. In the below code, we call a startTour() function when we click the button, which ultimately executes the showTemplate() function.
  const startTour = async (event) => {
    event.preventDefault();
    showTemplate(document, templates);
  };
  <button
        onClick={(e) => startTour(event)}
      >
        Start Tour
  </button>

Setup In Vue Project

  1. Import the library in your main component, where you want to display the User Onboard Templates.
  • dataLoader -> This function is used to load all templates from a group in project.
  • showTemplate -> This function is used to start the onboarding experience for a webpage.
import { dataLoader, showTemplate } from "shellshow-onboard-builder-iframe-wrapper";
  1. Execute the dataLoader() function when the Vue Component has mounted. You also need to pass the group Id, whose templates you want to show.

An example is given below: We call a function dataLoader() inside the async mounted() function of Vue Component. Once we receive the templates, we save it in Vue state variable for using the templates in our website.

export default {
data() {
    return {
      templates: []
    };
  },

async mounted() {
    const response = await dataLoader("5f09bba96362545b5c71eb17");
    this.templates = response;
  }
};
  1. After this, bind any button(which user can click) with the showTemplates() function to start showing the templates. You need to pass the Javascript "document" object and the fetched templates for this function to work. In the below code, we call a startTour() function when we click the button, which ultimately executes the showTemplate() function.
 <button
      v-on:click="startTour()"
    >Start Show</button>
export default {

 methods: {
   startTour() {
     showTemplate(document, this.templates);
   }
 };
};