JSPM

mitour

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q18511F
  • License MIT

Tourist Guide into your React Components

Package Exports

  • mitour

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mitour) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

MiTour

Changed and improved functions.

Added function skipNotExistNode() for steps.

Skips the step if the element is not found in the DOM tree. If the function is not specified step, then go to the next.

const tourConfig = [
  {
    skipNotExistNode: ({current, goTo}) => {
        console.log(`skip ${current}`);
    },
    selector: '[data-tut="reactour__iso"]',
    content:
      "Ok, let's start with the name of the Tour that is about to begin.",
    actionBefore: async () => {
      await timeout(5000)
      console.log('Hola!')
    },
  }
]

This is a fork of this project https://github.com/elrumordelaluz/reactour