{"_id":"@abhi21121211/runtime","_rev":"9-36e0107a5fcda9c5228bb3f2b8371ce1","name":"@abhi21121211/runtime","dist-tags":{"latest":"1.1.6"},"versions":{"1.0.0":{"name":"@abhi21121211/runtime","version":"1.0.0","keywords":["tour","guide","onboarding","presentation","ai"],"author":{"name":"Abhi"},"license":"MIT","_id":"@abhi21121211/runtime@1.0.0","maintainers":[{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"}],"dist":{"shasum":"028d17b52dba26c088f8f324afeaf47db3c333ea","tarball":"https://registry.npmjs.org/@abhi21121211/runtime/-/runtime-1.0.0.tgz","fileCount":6,"integrity":"sha512-ouGwfER2Se7qa2N0sytuA70bG0UQlhuiNP6fEZva2+/H2DdJK84Slv5on2Gcq8I5mzSIhXZ+sSak1Wfs0ajUdg==","signatures":[{"sig":"MEQCIHD1VArIHgob8ZoVVWKuvF4YrHVl7Lalk/tBGRX2PSqzAiBt+x1ALbo5ORUFQ2tAVvmugBjhk+Dh/iNsVR9nB7eUHQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40047},"main":"dist/project-pa.min.js","scripts":{"dev":"node build.mjs --watch","test":"echo \"Error: no test specified\" && exit 1","build":"node build.mjs"},"_npmUser":{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"},"_npmVersion":"10.9.3","description":"Runtime widget for Project PA guided tours","directories":{},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.20.1"},"_npmOperationalInternal":{"tmp":"tmp/runtime_1.0.0_1764406205808_0.5020253986891381","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has been renamed to @abhi21121211/project-pa-runtime"},"1.1.0":{"name":"@abhi21121211/runtime","version":"1.1.0","keywords":["tour","guide","onboarding","presentation","ai"],"author":{"name":"Abhi"},"license":"MIT","_id":"@abhi21121211/runtime@1.1.0","maintainers":[{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"}],"dist":{"shasum":"26183ea0f3c6b3d27c57e52ef042f3f947966b10","tarball":"https://registry.npmjs.org/@abhi21121211/runtime/-/runtime-1.1.0.tgz","fileCount":6,"integrity":"sha512-shAoArpEdBLUWtaoLdaUuGnakDhbHoQ771O44xTzMarWFBzxLS50h4Dd73vpcYf9s0w8T7GV/np2uvH/q3Tpyw==","signatures":[{"sig":"MEUCIQC3kxXfoteh1TbhQ+H1ce7Dx9pl4tzIuULvdX0/hfEV7wIgGZxOqhFnNQeXUBmM0jmolCMTnIsxt0rSIZzQwgP8D0Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41867},"main":"dist/project-pa.min.js","gitHead":"54ab5dfddcca300057471fb305a69ea00b7a9dfb","scripts":{"dev":"node build.mjs --watch","test":"echo \"Error: no test specified\" && exit 1","build":"node build.mjs"},"_npmUser":{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"},"_npmVersion":"10.9.3","description":"Runtime widget for Project PA guided tours","directories":{},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.20.1"},"_npmOperationalInternal":{"tmp":"tmp/runtime_1.1.0_1764412288649_0.8917825220629352","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has been renamed to @abhi21121211/project-pa-runtime"},"1.1.1":{"name":"@abhi21121211/runtime","version":"1.1.1","keywords":["tour","guide","onboarding","presentation","ai"],"author":{"name":"Abhi"},"license":"MIT","_id":"@abhi21121211/runtime@1.1.1","maintainers":[{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"}],"dist":{"shasum":"f506a006f63a42df1b490b09c3fa7bb9abba0c57","tarball":"https://registry.npmjs.org/@abhi21121211/runtime/-/runtime-1.1.1.tgz","fileCount":6,"integrity":"sha512-ytqsMCehq7i3FCiI5OGBDVvRw93tp+ofEdkgkk1u1IatStwAlpbnCXAfw9a//+aF38P38mZ8ZGBzamVEbny4Pw==","signatures":[{"sig":"MEYCIQC4mKkuRGHqOZpeEH0YYlavuBE72FvQw3dFxtpcu7Dc/AIhALhf29TLNCBLcNXhl1zwcQakhdsEJH0CmTMBqLDc8TZ6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41867},"main":"dist/project-pa.min.js","gitHead":"54ab5dfddcca300057471fb305a69ea00b7a9dfb","scripts":{"dev":"node build.mjs --watch","test":"echo \"Error: no test specified\" && exit 1","build":"node build.mjs"},"_npmUser":{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"},"_npmVersion":"10.9.3","description":"Runtime widget for Project PA guided tours","directories":{},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.20.1"},"_npmOperationalInternal":{"tmp":"tmp/runtime_1.1.1_1764412721422_0.351268302867892","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has been renamed to @abhi21121211/project-pa-runtime"},"1.1.2":{"name":"@abhi21121211/runtime","version":"1.1.2","keywords":["tour","guide","onboarding","presentation","ai"],"author":{"name":"Abhi"},"license":"MIT","_id":"@abhi21121211/runtime@1.1.2","maintainers":[{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"}],"dist":{"shasum":"d3c422c056953a0d899efc27d7815f30f612a7cc","tarball":"https://registry.npmjs.org/@abhi21121211/runtime/-/runtime-1.1.2.tgz","fileCount":6,"integrity":"sha512-oUCxHLFiTns5IRjd6SoPa+Jc9fzOhCQ21Rlu3iGXB667k7VAFbVhRfc5iP6pUHKU//cBXqmlvc3c79O61nxDZQ==","signatures":[{"sig":"MEUCIQCmxLz/kc/l8OIDqcyCdeN4earO7OVXhcY/3W/cqgAkRwIgGmhpX4RE9g/6HoEZuEU5x1y1JbEz8h5d+7SWCqgmR8M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41867},"main":"dist/project-pa.min.js","gitHead":"54ab5dfddcca300057471fb305a69ea00b7a9dfb","scripts":{"dev":"node build.mjs --watch","test":"echo \"Error: no test specified\" && exit 1","build":"node build.mjs"},"_npmUser":{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"},"_npmVersion":"10.9.3","description":"Runtime widget for Project PA guided tours","directories":{},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.20.1"},"_npmOperationalInternal":{"tmp":"tmp/runtime_1.1.2_1764413037979_0.9396528061501432","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has been renamed to @abhi21121211/project-pa-runtime"},"1.1.3":{"name":"@abhi21121211/runtime","version":"1.1.3","keywords":["tour","guide","onboarding","presentation","ai"],"author":{"name":"Abhi"},"license":"MIT","_id":"@abhi21121211/runtime@1.1.3","maintainers":[{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"}],"dist":{"shasum":"96ac584a7f9a8c8433812671fcb7ca7fe922f495","tarball":"https://registry.npmjs.org/@abhi21121211/runtime/-/runtime-1.1.3.tgz","fileCount":6,"integrity":"sha512-5X0i61JeC3jDXEQNArK1bH6VhjN9hotUHBgUEe1lJ03BJ9ePsrLqnssZQSDZt6to/11IL8/mtu3X3JLwpg/f6g==","signatures":[{"sig":"MEUCIQCaVGtPDqD0i2FuPvV0qAfNz3exxOrTUYcPyIJ9V3n6UQIgdcTrghlMMmeO3EUbgSXgur4GozS/RLSdRkjaVKhsae8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41867},"main":"dist/project-pa.min.js","gitHead":"54ab5dfddcca300057471fb305a69ea00b7a9dfb","scripts":{"dev":"node build.mjs --watch","test":"echo \"Error: no test specified\" && exit 1","build":"node build.mjs"},"_npmUser":{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"},"_npmVersion":"10.9.3","description":"Runtime widget for Project PA guided tours","directories":{},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.20.1"},"_npmOperationalInternal":{"tmp":"tmp/runtime_1.1.3_1764413764119_0.1992836085218299","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has been renamed to @abhi21121211/project-pa-runtime"},"1.1.4":{"name":"@abhi21121211/runtime","version":"1.1.4","keywords":["tour","guide","onboarding","presentation","ai"],"author":{"name":"Abhi"},"license":"MIT","_id":"@abhi21121211/runtime@1.1.4","maintainers":[{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"}],"dist":{"shasum":"1ff906706c88032887a8723f2cf04de986597792","tarball":"https://registry.npmjs.org/@abhi21121211/runtime/-/runtime-1.1.4.tgz","fileCount":6,"integrity":"sha512-2VGdMTZu2fEgkeVM36d8GVAfQTndeuwnmc/zOPNvoWSEpvfhCP43glrOmEshOqb2Yv5ICHIHf/9/konGQlWVNw==","signatures":[{"sig":"MEUCIQDMgTB+glJVrYvbGpWv3wG35XWVfvqy/yyyG4iZI1TFWgIgAeie/oncsr/82DuuUPQMU3GdiK9/c4KSMk2RThyt6Qs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41867},"main":"dist/project-pa.min.js","gitHead":"54ab5dfddcca300057471fb305a69ea00b7a9dfb","scripts":{"dev":"node build.mjs --watch","test":"echo \"Error: no test specified\" && exit 1","build":"node build.mjs"},"_npmUser":{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"},"_npmVersion":"10.9.3","description":"Runtime widget for Project PA guided tours","directories":{},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.20.1"},"_npmOperationalInternal":{"tmp":"tmp/runtime_1.1.4_1764414039556_0.9573073728144752","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has been renamed to @abhi21121211/project-pa-runtime"},"1.1.5":{"name":"@abhi21121211/runtime","version":"1.1.5","keywords":["tour","guide","onboarding","presentation","ai"],"author":{"name":"Abhi"},"license":"MIT","_id":"@abhi21121211/runtime@1.1.5","maintainers":[{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"}],"dist":{"shasum":"fca1a14a3f596d5277a7daf5c390d8e7ffada5a2","tarball":"https://registry.npmjs.org/@abhi21121211/runtime/-/runtime-1.1.5.tgz","fileCount":6,"integrity":"sha512-oo5+Zcig+juoNS5w/x7oG3DlTCuDHfzpZHXYsy+t1MURu5MrHJIlY3tnTxsR0Km+C06fXjthdkqNRixCh7iD5w==","signatures":[{"sig":"MEQCIGE6zVR8yZrQVBPSPCgPG2sgDZEK+f7sCjZnZx2+XoYbAiByvJaQf5K7UQzMWOufSL4opidY9QsK3893pu7IGkAn6A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42639},"main":"dist/project-pa.min.js","gitHead":"54ab5dfddcca300057471fb305a69ea00b7a9dfb","scripts":{"dev":"node build.mjs --watch","test":"echo \"Error: no test specified\" && exit 1","build":"node build.mjs"},"_npmUser":{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"},"_npmVersion":"10.9.3","description":"Runtime widget for Project PA guided tours","directories":{},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.20.1"},"_npmOperationalInternal":{"tmp":"tmp/runtime_1.1.5_1764415437881_0.8705301542440549","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has been renamed to @abhi21121211/project-pa-runtime"},"1.1.6":{"name":"@abhi21121211/runtime","version":"1.1.6","keywords":["tour","guide","onboarding","presentation","ai"],"author":{"name":"Abhi"},"license":"MIT","_id":"@abhi21121211/runtime@1.1.6","maintainers":[{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"}],"dist":{"shasum":"dcf6444b4b53c5a6dae7d97ac13dd5ef005e408d","tarball":"https://registry.npmjs.org/@abhi21121211/runtime/-/runtime-1.1.6.tgz","fileCount":6,"integrity":"sha512-TkixBv4LQGZDq61u+srvrbqfPlg/PiIblCx/HbBldtLoFuyVixy17+TlC5CnFUUC2LJ/3cfx3jqRODT3OmoQTg==","signatures":[{"sig":"MEUCIQCaUwqLLdiCq67QwdE+a008M4/c/tuyyK2I6gj//sLlEQIgGBIFhLoZnlqkss6ruPavCoNXMbXqnwx8HhoXxpDeeHg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43912},"main":"dist/project-pa.min.js","gitHead":"ac38ad9cc93ad42c33ba601d5e16944ade8a99bf","scripts":{"dev":"node build.mjs --watch","test":"echo \"Error: no test specified\" && exit 1","build":"node build.mjs"},"_npmUser":{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"},"_npmVersion":"10.9.3","description":"Runtime widget for Project PA guided tours","directories":{},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.20.1"},"_npmOperationalInternal":{"tmp":"tmp/runtime_1.1.6_1764561906236_0.17972333270923402","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package has been renamed to @abhi21121211/project-pa-runtime"}},"time":{"created":"2025-11-29T08:50:05.720Z","modified":"2025-12-01T04:22:26.894Z","1.0.0":"2025-11-29T08:50:06.039Z","1.1.0":"2025-11-29T10:31:28.823Z","1.1.1":"2025-11-29T10:38:41.613Z","1.1.2":"2025-11-29T10:43:58.182Z","1.1.3":"2025-11-29T10:56:04.308Z","1.1.4":"2025-11-29T11:00:39.739Z","1.1.5":"2025-11-29T11:23:58.072Z","1.1.6":"2025-12-01T04:05:06.440Z"},"author":{"name":"Abhi"},"license":"MIT","keywords":["tour","guide","onboarding","presentation","ai"],"description":"Runtime widget for Project PA guided tours","maintainers":[{"name":"abhi21121211","email":"abhishekdukare689@gmail.com"}],"readme":"# @abhi21121211/runtime\n\n[![npm version](https://img.shields.io/npm/v/@abhi21121211/runtime.svg)](https://www.npmjs.com/package/@abhi21121211/runtime)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nThe lightweight runtime widget for **Project PA** (Project Presenter Agent). This zero-dependency library injects a floating \"Start Tour\" widget, a guided tour popup, and an element highlighter into any web application.\n\n## Features\n\n- 🎯 **Smart Highlighting**: Visually focuses on elements using CSS selectors.\n- 💬 **Guided Tour**: Step-by-step popup with professional narration.\n- 🗣️ **Text-to-Speech**: Built-in voice narration for accessibility and engagement.\n- ⏩ **Auto-Advance**: Seamlessly moves to the next step after a set duration.\n- 🔄 **State Persistence**: Remembers the current step across page reloads and redirects.\n- 📱 **Responsive**: Fully optimized for desktop and mobile devices.\n\n## Installation & Usage\n\n### Option 1: CDN (Recommended)\nSimply add this script tag to your `index.html` `<body>`. This is the easiest way to integrate Project PA.\n\n```html\n<script \n  type=\"module\" \n  src=\"https://unpkg.com/@abhi21121211/runtime@latest/dist/project-pa.min.js\"\n  data-project-id=\"YOUR_PROJECT_ID\">\n</script>\n```\n\n*   Replace `YOUR_PROJECT_ID` with the ID you received from `pa deploy`.\n*   If testing locally with a `presentation.json` file, you can omit `data-project-id`.\n\n### Option 2: NPM\nIf you prefer to bundle it with your application:\n\n```bash\nnpm install @abhi21121211/runtime\n```\n\nThen import it in your entry file (e.g., `main.js`, `App.tsx`):\n\n```javascript\nimport '@abhi21121211/runtime';\n```\n\n## Configuration\n\nThe runtime is driven by a `presentation.json` file (fetched from the cloud via `data-project-id` or locally).\n\n### Structure\n\n```json\n{\n  \"meta\": {\n    \"project\": \"My Awesome App\",\n    \"entryUrl\": \"/\"\n  },\n  \"steps\": [\n    {\n      \"id\": \"step-1\",\n      \"type\": \"highlight\", \n      \"target\": \"#login-btn\",\n      \"content\": \"Click here to sign in securely.\",\n      \"duration\": 5000\n    },\n    {\n      \"id\": \"step-2\",\n      \"type\": \"popup\",\n      \"target\": \"body\",\n      \"content\": \"This is the main dashboard where you can see your stats.\",\n      \"page\": \"/dashboard\"\n    }\n  ]\n}\n```\n\n### Step Options\n\n| Property | Type | Description |\n|----------|------|-------------|\n| `type` | `string` | `highlight` (focus element), `popup` (message only), `click` (simulate click). |\n| `target` | `string` | CSS selector of the element to interact with (e.g., `#my-id`, `.my-class`). |\n| `content` | `string` | The text to display and narrate. |\n| `duration` | `number` | Time in milliseconds before auto-advancing (default: 5000). |\n| `page` | `string` | (Optional) The URL path this step belongs to. Runtime waits for this page match. |\n| `actions` | `array` | (Optional) List of actions to perform, e.g., `[{\"do\": \"click\", \"selector\": \"#btn\"}]`. |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}