{"bugs":{"url":"https://github.com/ionic-team/stencil-router"},"dist":{"shasum":"1c09356455d1110af60fb3360bd639249454c06e","tarball":"https://registry.npmjs.org/@stencil/router/-/router-0.0.29-9.tgz","fileCount":91,"integrity":"sha512-sy5Xz/sumPOtPD8zWFMwlW+00Qvfkn040VroJ3bt9S6UdEZjbllsl8fLr7zYDSxYj+gBsfXWsJDRjXYmfXNRfg==","signatures":[{"sig":"MEUCIQCW9UNLJ+BaMOdPeWRU3brIsznhldVEUPjI5C6fg126ugIgUqAezBQu4A+Pyf7O8/Wv/sTW9DsgsDOABt825IYDvo8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":267358,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa1mHeCRA9TVsSAnZWagAAZ34QAJ/QriZd0ME4qJmx2K1N\nlltlIJQC/X6trs1FNJbl8xsv8NknGiwSFIHWdJdIWoxD3s82YVIYkzdgjkhC\nWhuInGwxHdhj3I/0Z6w3lQuSdlDKqJMdRnCUQV/3e0uWlQvQvz1Q4a5HZG+c\nBCro0rAYJWq+3bRKkHGoaduOtRvg8A+f36ZU/Sss22Fi3vT+AO7TL5KOYB3z\n3xrWNGMq5tdtHc9e4EdhWA1l1xhx4dO3sSy7KGZ6pVZ+FQjjUgaW/NVMZ6nv\nXHvjImZBiqlsBZnRgEdEPagmBj9TGo5Judh+X3X7GmN9SU9DU676jwpdEtaI\nmXIQujd/rmXws0khnceO35kiO6CWaVzWn0H/EGvF6zeZzKtx5930QnQ8Q7Z3\nX8wX7REO70WcCn+IzKIOtTRlWKgHlVbJdigzUm0tHKO7DlivX7xHSe/KnqDF\nUs0valGSEAQkbA01A7jtz7g6pt3SxvPUSkJjrvZOEDkzEL2Fx9qm+lUgIgfG\nGgtA5+3/p+I9GtGz1N5mfDhIuDfcNtWIQ+mAnspzxGMehru11KqnWrlrc0r3\n94xPAnVixS6Jbli6WlidvqIlxRW4ASYoE22RxUba/Ao+hA6TITYYh8+JUf33\nNnE/31uCRBqzrKgjmxHSjLWUqkswxDfuSMJ9Qrf3ul9/xSN88SvNkRq4OB8/\nx/Cw\r\n=BPfz\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```html\n<stencil-router>\n  <stencil-route url=\"/\" component=\"landing-page\" exact={true}></stencil-route>\n  <stencil-route url=\"/docs\" component=\"docs-page\"></stencil-route>\n  <stencil-route url=\"/demos\" component=\"demos-page\"></stencil-route>\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":"70c64461f9e8a3440d4eebf16c7519b022d60230","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.23","@stencil/utils":"latest","@stencil/dev-server":"latest"},"_npmOperationalInternal":{"tmp":"tmp/router_0.0.29-9_1523999198508_0.24847048986898645","host":"s3://npm-registry-packages"},"_id":"@stencil/router@0.0.29-9","version":"0.0.29-9"}