{"bugs":{"url":"https://github.com/ionic-team/stencil-router"},"dist":{"shasum":"e531fa200a10083c2f7a9e87b241653dc2635bf4","tarball":"https://registry.npmjs.org/@stencil/router/-/router-0.1.3-1.tgz","fileCount":86,"integrity":"sha512-Yyeru/kzO0CoonUFFzE/6SwqxZZTqauXojxXmPM5hjAu8oxkPQhR/zIyEygOzSn5VQ54U48kVHheGt5pfpHPmg==","signatures":[{"sig":"MEYCIQCcevcXJSfZIa2r9Ayb9XMoSKIPXz7qkPsuWQ1O0k4UxgIhAIW2PES7Qal6s2e+oT5j924EzpY8GjgqWMsBhNkKcUQK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":279588,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6HB8CRA9TVsSAnZWagAAA/EQAI9BJ2Fpc3dPhvlYOVxW\niQlZn/vXRVlVY/I3jvZ89IEF7FtXow3EfkEraejavqjZHweyIHAdJoJZhw0f\noakKD/5NseCf7HHtkRZVEE7lo9q9Dak2xQy6oA3LCdISzV/WAj3ZZHnVzISU\nfTFbjymPzRh5eDz3quJVTTpyyfj+UNZRAX8u1fuvS6xKBt6iV766k2P1YNKD\nWNJw8JQ28zv3iUvcHjKIwOK0X5RtufKUkqiXr2aUdt7KFYP8fkKY+naNR7o1\nzwIm1CB83wvtgtKyyJq3q6SaE1H+zusvSgXA9LKPsi0Vg/qF75yCfRB43/7z\nhShVb036kep4ukmzNbvBBB6mQk3dqlEbMo4kpLu/M3z/Zu081OTrdHltvb/w\nOUyrJLSHfS82EEJYTM7uQWGpcJCUZ48ZLNa5oZOc5aqwLgq2dL3ILRhIMmMA\nHwnd9tEfifhbZnPNuFUX029tBsJGAeQ3P0lCg1v3nn9wJ45BGR5y7vygz5aE\nr6rA+0vegc42RmYa3PKzbBdr50IqadQy4M/rxeqP1W1+56Wt2pHjqF3cd3Ce\nEH9I0Iz9f6VdUSwzX3NGRtIp/4JOe6TjEJxSrV03KPbRcF5WGBp/4HEGMMSh\nHbaY3hwDGicxBUNZ5K6XNQ2HutiE0+0gCtgO3p4ij7jYwelqjrDwIQ7DBAJQ\nLMF/\r\n=wiju\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"/__tests__/.*(test|spec)\\.(ts|tsx)$","transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"moduleFileExtensions":["ts","tsx","js"]},"main":"dist/stencilrouter.js","name":"@stencil/router","files":["dist/"],"types":"dist/types/index.d.ts","unpkg":"dist/stencilrouter.js","author":{"name":"Ionic Team"},"module":"dist/collection/index.js","readme":"[![npm][npm-badge]][npm-badge-url]\n## Stencil Router\n\nA simple router, inspired by React Router v4, for Stencil apps and vanilla Web Component apps.\n\n```jsx\n<stencil-router>\n    <RouterSwitch>\n        <stencil-route url=\"/\" component=\"landing-page\" exact={true} />\n        <stencil-route url=\"/demos\" component=\"demos-page\" />\n        <stencil-route url=\"/other\" component=\"other-page\" />\n        <stencil-route component=\"page-not-found\" />\n    </RouterSwitch>\n</stencil-router>\n```\n\n### Included components\n\n- **stencil-router**\n\n  You should have one single stencil-router component in your project.  This component controls all interactions with the browser history and it aggregates updates through an event system.\n\n- **stencil-route**\n  \n  This component renders based on whether the supplied url matches the current location.\n\n  *properties*:\n  - **url** (*string*): the pathname to match on.  Accepts paths similar to expressjs.  So that you can define parameters in the url `/foo/:bar` where bar would be available in incoming props.\n  - **component** (*string*): the component name that you would like the route to render\n  - **componentProps** (*key/value Object*): a key value object(`{ 'red': true, 'blue': 'white'}`) containing props that should be passed to the defined component when rendered.\n  - **routeRender** (*function*): function that accepts props as an argument. If this exists it will be used in place of the component defined.\n  - **exact** (*boolean*): If true then only render this route when the url matches exactly to the location, if false it will render if the current url 'matches' the url defined.\n\n- **stencil-route-link**\n\n  This component is used to render links to defined routes.  It applys a specific style based on whether the link matches the current location.\n\n  *properties*:\n  - **url** (*string*): the pathname to link to.\n  - **exact** (*boolean*): If true then only apply the active class when the url matches exactly to the location.\n  - **activeClass** (*string*): The class to apply if the link matches the current location. This defaults to 'link-active'.\n\n- **stencil-route-redirect**\n\n  This component redirects the current location.\n\n  *properties*:\n  - **url** (*string*): the url to redirect to.\n\n\nNote: for apps using Ionic, we recommend using the Ionic navigation system and router for more native-style navigation.\n\n[npm-badge]: https://img.shields.io/npm/v/@stencil/router.svg\n[npm-badge-url]: https://www.npmjs.com/package/@stencil/router\n","browser":"dist/stencilrouter.js","gitHead":"9c2826573cde924dc4237a447e15a8c72dce445f","license":"MIT","scripts":{"dev":"sd concurrent \"stencil build --dev --watch\" \"stencil-dev-server\" ","test":"jest","build":"stencil build","serve":"stencil-dev-server","start":"npm run dev","deploy":"npm run build && np"},"_npmUser":{"name":"jthoms1","email":"jthoms1@gmail.com"},"homepage":"https://github.com/ionic-team/stencil-router","collection":"dist/collection/collection-manifest.json","deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/ionic-team/stencil-router.git","type":"git"},"_npmVersion":"5.8.0","description":"Stencil Router","directories":{},"maintainers":[{"name":"adamdbradley","email":"hi+adam@ionicframework.com"},{"name":"brandyscarney","email":"brandy@ionic.io"},{"name":"camwiegert","email":"cam@camwiegert.com"},{"name":"ionicjs","email":"hi@ionicframework.com"},{"name":"jgw96","email":"jgw9617@gmail.com"},{"name":"jthoms1","email":"jthoms1@gmail.com"},{"name":"kensodemann","email":"ken.sodemann@gmail.com"},{"name":"manucorporat","email":"manu.mtza@gmail.com"},{"name":"maxlynch","email":"max@ionic.io"},{"name":"mhartington","email":"mikehartington@gmail.com"}],"_nodeVersion":"8.9.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"np":"^2.16.0","jest":"^22.4.3","ts-jest":"^22.4.2","@types/jest":"^20.0.8","@stencil/core":"^0.7.25","@stencil/utils":"latest","@stencil/dev-server":"latest"},"_npmOperationalInternal":{"tmp":"tmp/router_0.1.3-1_1525182587569_0.15792518251770504","host":"s3://npm-registry-packages"},"_id":"@stencil/router@0.1.3-1","version":"0.1.3-1"}