{"_id":"@automatiseerjouwproces/nilo-tours","_rev":"4-2ca6c1c9415ef8804f0d3ccf9a34d34d","name":"@automatiseerjouwproces/nilo-tours","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"@automatiseerjouwproces/nilo-tours","version":"0.1.0","author":{"name":"Automatiseer Jouw Proces"},"license":"MIT","_id":"@automatiseerjouwproces/nilo-tours@0.1.0","maintainers":[{"name":"johanvandeglind","email":"johan@i-coso.nl"},{"name":"stanajp","email":"stan@automatiseerjouwproces.nl"}],"dist":{"shasum":"0fd2bdcbab2964034806572ac641dc03045e0af3","tarball":"https://registry.npmjs.org/@automatiseerjouwproces/nilo-tours/-/nilo-tours-0.1.0.tgz","fileCount":19,"integrity":"sha512-soN1IvXK9NGRAetssj9Cn7jbIyEq21gOTZKEnuGK4s5b1b/sV9AwpdIbjuO2Tvt0EJMeiJrPVYd0UZ98tB5hzw==","signatures":[{"sig":"MEUCIQDq1dm5aYl6ARL8dPCD+IL9UtD5fg85WsPxmuv7NjBiGgIgXj4yyqYbdZp9mybZjWH/twxcZ/aHz5r8ARGw9buI8a0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69528},"main":"dist/index.js","_from":"file:automatiseerjouwproces-nilo-tours-0.1.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"private":false,"scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts,.tsx","test":"echo \"No tests yet\"","build":"tsup src/index.ts --format cjs,esm --dts","clean":"rm -rf dist"},"_npmUser":{"name":"stanajp","email":"stan@automatiseerjouwproces.nl"},"_resolved":"C:\\Users\\stanh\\AppData\\Local\\Temp\\7704f2fe78b6387a522122eace05d935\\automatiseerjouwproces-nilo-tours-0.1.0.tgz","_integrity":"sha512-soN1IvXK9NGRAetssj9Cn7jbIyEq21gOTZKEnuGK4s5b1b/sV9AwpdIbjuO2Tvt0EJMeiJrPVYd0UZ98tB5hzw==","_npmVersion":"11.6.2","description":"Nilo Tours - interactive in-app tours","directories":{},"_nodeVersion":"25.2.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","react":"^19.2.3","react-dom":"^19.2.3","typescript":"^5.3.3","@types/node":"^20.10.6","@types/react":"^19.0.0","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/nilo-tours_0.1.0_1768995469143_0.29936131912887687","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@automatiseerjouwproces/nilo-tours","version":"0.2.0","author":{"name":"Automatiseer Jouw Proces"},"license":"MIT","_id":"@automatiseerjouwproces/nilo-tours@0.2.0","maintainers":[{"name":"johanvandeglind","email":"johan@i-coso.nl"},{"name":"stanajp","email":"stan@automatiseerjouwproces.nl"}],"dist":{"shasum":"b71eaafd945dec936dcc33fe5a9911cddd3f7e92","tarball":"https://registry.npmjs.org/@automatiseerjouwproces/nilo-tours/-/nilo-tours-0.2.0.tgz","fileCount":22,"integrity":"sha512-wjwnhgUgukNuPc4ecDZKDdW9rqltDamhhTDvlIUmN1r5RlHgyXKadR6eghccuXHAEXpZ/jmkqLkxJYj/qggXyA==","signatures":[{"sig":"MEYCIQDcWhuYDyp4H7k7piZKnxF9OvvXWvthiwDwlDDncXgX9AIhAKC/eHfH42OsyZ9+Si+5PG/+8LUyUGiYZpTDZxEbSVEs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":102828},"main":"dist/index.js","_from":"file:automatiseerjouwproces-nilo-tours-0.2.0.tgz","types":"src/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./src/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"private":false,"scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts,.tsx","test":"echo \"No tests yet\"","build":"tsup src/index.ts --format cjs,esm --dts","clean":"node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\""},"_npmUser":{"name":"stanajp","email":"stan@automatiseerjouwproces.nl"},"_resolved":"C:\\Users\\stanh\\AppData\\Local\\Temp\\ede0fc2aa91cfda658b557f7424e5bfe\\automatiseerjouwproces-nilo-tours-0.2.0.tgz","_integrity":"sha512-wjwnhgUgukNuPc4ecDZKDdW9rqltDamhhTDvlIUmN1r5RlHgyXKadR6eghccuXHAEXpZ/jmkqLkxJYj/qggXyA==","_npmVersion":"11.6.2","description":"Nilo Tours - interactive in-app tours","directories":{},"_nodeVersion":"25.2.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","react":"^19.2.3","react-dom":"^19.2.3","typescript":"^5.3.3","@types/node":"^20.10.6","@types/react":"^19.0.0","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/nilo-tours_0.2.0_1768999535186_0.9078867817082732","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@automatiseerjouwproces/nilo-tours","version":"0.3.0","author":{"name":"Automatiseer Jouw Proces"},"license":"MIT","_id":"@automatiseerjouwproces/nilo-tours@0.3.0","maintainers":[{"name":"johanvandeglind","email":"johan@i-coso.nl"},{"name":"stanajp","email":"stan@automatiseerjouwproces.nl"}],"dist":{"shasum":"c1416fd55cdf5938c39d02c0509073009c0b754a","tarball":"https://registry.npmjs.org/@automatiseerjouwproces/nilo-tours/-/nilo-tours-0.3.0.tgz","fileCount":22,"integrity":"sha512-gsTdkAJWHGWnNKzBoDJOaz+G5dwgYy3cNYcy3oeYjlPq2Vz1hF+Vbm2BmaVt/PjeiDAH8PsGC3Kj+amSsebqOg==","signatures":[{"sig":"MEUCIQCU6PlfUrETYsBWW0Qab14fxa3Vp6Ruj/fbsAMj9cYnAgIgO5xPrU6DyCZI1PqWMqC3vZGCXg9hCM4a5J7DXeLmpl0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":113042},"main":"dist/index.js","_from":"file:automatiseerjouwproces-nilo-tours-0.3.0.tgz","types":"src/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./src/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"private":false,"scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts,.tsx","test":"echo \"No tests yet\"","build":"tsup src/index.ts --format cjs,esm --dts","clean":"node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\""},"_npmUser":{"name":"stanajp","email":"stan@automatiseerjouwproces.nl"},"_resolved":"C:\\Users\\stanh\\AppData\\Local\\Temp\\01070adb572941250fdb3fd59dfb1791\\automatiseerjouwproces-nilo-tours-0.3.0.tgz","_integrity":"sha512-gsTdkAJWHGWnNKzBoDJOaz+G5dwgYy3cNYcy3oeYjlPq2Vz1hF+Vbm2BmaVt/PjeiDAH8PsGC3Kj+amSsebqOg==","_npmVersion":"11.6.2","description":"Nilo Tours - interactive in-app tours","directories":{},"_nodeVersion":"25.2.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","react":"^19.2.3","react-dom":"^19.2.3","typescript":"^5.3.3","@types/node":"^20.10.6","@types/react":"^19.0.0","@types/react-dom":"^19.0.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/nilo-tours_0.3.0_1769000315335_0.9416259038749151","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@automatiseerjouwproces/nilo-tours","version":"1.0.0","private":false,"description":"Nilo Tours - interactive in-app tours","main":"dist/index.js","module":"dist/index.mjs","types":"src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"author":{"name":"Automatiseer Jouw Proces"},"license":"MIT","peerDependencies":{"react":">=18","react-dom":">=18"},"devDependencies":{"react":"^19.2.3","react-dom":"^19.2.3","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","@types/node":"^20.10.6","tsup":"^8.0.1","typescript":"^5.3.3"},"publishConfig":{"access":"public"},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts","dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts,.tsx","test":"echo \"No tests yet\"","clean":"node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\""},"_id":"@automatiseerjouwproces/nilo-tours@1.0.0","_integrity":"sha512-RMot/T7+6EIBJ6Hj7wIny5F+2HWKdCM/sqlw01mxQ4NieJBw5dXSN9nO9h2QWkEbZ6zyPiFjHgdEnkbPMngJrQ==","_resolved":"C:\\Users\\stanh\\AppData\\Local\\Temp\\8bd9443dfc622dfd0d2f7522537efdbd\\automatiseerjouwproces-nilo-tours-1.0.0.tgz","_from":"file:automatiseerjouwproces-nilo-tours-1.0.0.tgz","_nodeVersion":"25.2.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-RMot/T7+6EIBJ6Hj7wIny5F+2HWKdCM/sqlw01mxQ4NieJBw5dXSN9nO9h2QWkEbZ6zyPiFjHgdEnkbPMngJrQ==","shasum":"4232db6fd9b49ee09e9eeacc360fda6bda638d60","tarball":"https://registry.npmjs.org/@automatiseerjouwproces/nilo-tours/-/nilo-tours-1.0.0.tgz","fileCount":22,"unpackedSize":160044,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHMK/gd0fvvfl0UAkqwfnJUI5o0Bek7w+D4XnlkCx9UFAiBK/O6Ogu+/ySrhzXx520PuG2bAVIPNqIWeio4gTrqzBA=="}]},"_npmUser":{"name":"stanajp","email":"stan@automatiseerjouwproces.nl"},"directories":{},"maintainers":[{"name":"johanvandeglind","email":"johan@i-coso.nl"},{"name":"stanajp","email":"stan@automatiseerjouwproces.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nilo-tours_1.0.0_1769005224471_0.4335210360658748"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-21T11:37:49.034Z","modified":"2026-01-21T14:20:24.789Z","0.1.0":"2026-01-21T11:37:49.288Z","0.2.0":"2026-01-21T12:45:35.326Z","0.3.0":"2026-01-21T12:58:35.499Z","1.0.0":"2026-01-21T14:20:24.625Z"},"author":{"name":"Automatiseer Jouw Proces"},"license":"MIT","description":"Nilo Tours - interactive in-app tours","maintainers":[{"name":"johanvandeglind","email":"johan@i-coso.nl"},{"name":"stanajp","email":"stan@automatiseerjouwproces.nl"}],"readme":"# @automatiseerjouwproces/nilo-tours\n\nNilo Tours is a lightweight in-app tour system for guiding users through your application UI.  \nNo external tour libraries are used.\n\n## Installation\n\n```bash\npnpm add @automatiseerjouwproces/nilo-tours\n```\n\n## Provider usage\n\nWrap your app with the provider. For Next.js, do this in a client-side provider wrapper.\n\n```tsx\n\"use client\";\n\nimport { NiloTourProvider } from \"@automatiseerjouwproces/nilo-tours\";\nimport { useRouter } from \"next/navigation\";\n\nexport function Providers({ children }: { children: React.ReactNode }) {\n  const router = useRouter();\n\n  return (\n    <NiloTourProvider\n      options={{\n        name: \"onboarding\",\n        persist: true,\n        navigate: (route) => router.push(route),\n      }}\n    >\n      {children}\n    </NiloTourProvider>\n  );\n}\n```\n\n## Hook usage\n\n```tsx\nimport { useNiloTour } from \"@automatiseerjouwproces/nilo-tours\";\n\nconst { startTour, next, previous, stopTour, currentStep } = useNiloTour();\n```\n\n## Example tour\n\n```tsx\nimport type { TourStep } from \"@automatiseerjouwproces/nilo-tours\";\nimport { useNiloTour } from \"@automatiseerjouwproces/nilo-tours\";\n\nconst steps: TourStep[] = [\n  {\n    id: \"intro\",\n    target: \"#welcome\",\n    title: \"Welkom\",\n    content: \"Dit is de start van de tour.\",\n    placement: \"bottom\",\n  },\n  {\n    id: \"settings\",\n    target: \"#settings\",\n    content: \"Pas hier je instellingen aan.\",\n    placement: \"right\",\n    scrollTo: true,\n  },\n];\n\nexport function StartTourButton() {\n  const { startTour } = useNiloTour();\n  return <button onClick={() => startTour(steps)}>Start tour</button>;\n}\n```\n\n## Cross-route tour steps (Next.js)\n\nIf a step has `nextRoute`, the provider will navigate and wait for the next step target.\n\n```tsx\nconst steps: TourStep[] = [\n  {\n    id: \"route\",\n    target: \"#next-link\",\n    content: \"We gaan naar de volgende route.\",\n    nextRoute: \"/tour/second\",\n  },\n  {\n    id: \"finish\",\n    target: \"#tour-secondary-card\",\n    content: \"Doel gevonden op de nieuwe route.\",\n  },\n];\n```\n\n## API\n\n### TourStep\n\n- `id` (string)\n- `target` (string | HTMLElement)\n- `content` (ReactNode)\n- `title` (ReactNode, optional)\n- `placement` (\"top\" | \"bottom\" | \"left\" | \"right\" | \"auto\")\n- `scrollTo` (boolean)\n- `allowInteract` (boolean)\n- `nextRoute` (string)\n- `padding` (number)\n\n### Provider options\n\n- `name` (string) - used for localStorage persistence\n- `persist` (boolean)\n- `persistKey` (string)\n- `waitForTargetMs` (number)\n- `routeChangeTimeoutMs` (number)\n- `navigate` ((route: string) => Promise<void> | void)\n\n### Hook return\n\n- `startTour(steps)`\n- `stopTour()`\n- `next()`\n- `previous()`\n- `goToStep(index)`\n- `currentStep`\n- `currentStepIndex`\n- `isActive`\n- `isPausedForRoute`\n","readmeFilename":"README.md"}