{"_id":"@chapeaux/cpx-url","_rev":"5-0d4b690e28ca10bbed0c45f232127531","name":"@chapeaux/cpx-url","dist-tags":{"latest":"0.4.0"},"versions":{"0.3.0":{"name":"@chapeaux/cpx-url","version":"0.3.0","keywords":["web","component","typescript","deno"],"author":{"url":"https://lukedary.com","name":"Luke Dary","email":"ldary@redhat.com"},"license":"SEE LICENSE IN LICENSE","_id":"@chapeaux/cpx-url@0.3.0","maintainers":[{"name":"ldary","email":"ldary@redhat.com"},{"name":"wesruv","email":"wesruv@gmail.com"}],"homepage":"https://github.com/chapeaux/cpx-components/components/cpx-url","bugs":{"url":"https://github.com/chapeaux/cpx-components/issues"},"dist":{"shasum":"d6aeac0edb11704a92f0998579cdc99f426ff08c","tarball":"https://registry.npmjs.org/@chapeaux/cpx-url/-/cpx-url-0.3.0.tgz","fileCount":4,"integrity":"sha512-C1M5AaIg3DljSmJA0uAVnfZJIKxvkesm0y5fXi52MoM4xn6MHIoomTJN/r/xoFiRr0I4HSZG1Vxw1JQt4iUpRA==","signatures":[{"sig":"MEQCIFhsEQjdXyN3RkqjNKvtMOW4X8baPmMIqs9ZUoxYREImAiBRaV2lIkqOrPE68F+lv2JNb8Pff6D/ao/AsTQuOKCNrg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38927},"main":"cpx-url.js","type":"module","module":"cpx-url.js","gitHead":"53af1643f11de85045f1d22e55b033571be302c5","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","start":""},"_npmUser":{"name":"ldary","email":"ldary@redhat.com"},"repository":{"url":"git+https://github.com/chapeaux/cpx-components.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v12.22.3+x64 (linux)","description":"Chapeaux URL Component","directories":{},"_nodeVersion":"12.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cpx-url_0.3.0_1632745946061_0.07953057880612135","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"@chapeaux/cpx-url","version":"0.4.0","keywords":["web","component","typescript","deno"],"author":{"url":"https://lukedary.com","name":"Luke Dary","email":"ldary@redhat.com"},"license":"SEE LICENSE IN LICENSE","_id":"@chapeaux/cpx-url@0.4.0","maintainers":[{"name":"ldary","email":"ldary@redhat.com"},{"name":"wesruv","email":"wesruv@gmail.com"}],"homepage":"https://github.com/chapeaux/cpx-components/components/cpx-url","bugs":{"url":"https://github.com/chapeaux/cpx-components/issues"},"dist":{"shasum":"0565184f4babfce5f08a633bb9e36bf2242ac18c","tarball":"https://registry.npmjs.org/@chapeaux/cpx-url/-/cpx-url-0.4.0.tgz","fileCount":3,"integrity":"sha512-mQH8noMW10gmrEywKZXYJOSZIn+mFOI3p6MEAvA8GwXOvbw+3G1dfPCKj/Wry7VDLZ3BGhL9KVLC0zHY661KyQ==","signatures":[{"sig":"MEYCIQCHlew/WoT7puGR0hrEzYQsJKl+CayJ3AadzqwQyPmB8gIhAJfsJ0ZCMMqw9yV0A1+cBmmpHJeTzIOmdNN0Lrt7YA4F","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzcZ6CRA9TVsSAnZWagAAyaEP/RNhdYM1xlDRQ1Ty8XEn\nLe2cObzusKZEKKim4Qsg5qIiRDtN3jiJeDnDl5nKs7l0VO/7xbojOAK9uha5\nNlgnViIAoYoJG5W5g47ln0WZpO1ZEq8LzR0b2Xx6NPCe95orMt5P9uYtpVV+\nm2WWXbb2MGShFxxMsfnyeaUY4DRqIUtHWtjiK94axYI0X37r0JtOzsKZUr+3\ntL/YuXMwOky8V/HP91QMnRbDVyOrsMhtGm9vjVvH1+kcUCoqiSoC45J3kym3\nDdPShHl71mSKbC8ufHPHDNCK0Fk1rk/9sz7QG+jZ423FptCaFPxGZnr2yHGf\nQsjOVVB+WmwQSU6YAiEvbs77WCylYcP/Zwvs335EXmfw4Hyuu5MKKApUx8yO\nuzCfpjDgOOtsPv7ZGgkq5tmMe5Q3ZITZDsWXwBaQwdDhSLG1DwViKsT536a+\n68o/zR2Tlx+71iraujnhZVuNwzbWO9Dsx/t31KXT1Zhb8/DVqI9Mee5h0imi\naOxVpzIMMix775OGZPiCrUGfPhJ+PDMTmCwTIrJhE3VTCfI+3gZyJB6SP7t8\nh0ff6x6p1fmwaU6bKa2IXZsKyI5fYV/BuME/LaICn4GCuzUCF33WOFhghBN2\nQcaILkXLqVmueHz8WFNbNbWM9xVRl6WsHxCGI6E6ri87EPL2esu+5WmjuRtG\ne/+B\r\n=Y2Ih\r\n-----END PGP SIGNATURE-----\r\n"},"main":"cpx-url.js","type":"module","module":"cpx-url.js","gitHead":"da1d23d27058c4b6b02190b7e8e580891fe680b2","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","start":""},"_npmUser":{"name":"ldary","email":"ldary@redhat.com"},"repository":{"url":"git+https://github.com/chapeaux/cpx-components.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v12.22.3+x64 (linux)","description":"Chapeaux URL Component","directories":{},"_nodeVersion":"12.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cpx-url_0.4.0_1633986209079_0.0021335469817513886","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-09-27T12:32:26.001Z","modified":"2026-03-19T19:26:20.947Z","0.3.0":"2021-09-27T12:32:26.235Z","0.4.0":"2021-10-11T21:03:29.211Z"},"bugs":{"url":"https://github.com/chapeaux/cpx-components/issues"},"author":{"url":"https://lukedary.com","name":"Luke Dary","email":"ldary@redhat.com"},"license":"SEE LICENSE IN LICENSE","homepage":"https://github.com/chapeaux/cpx-components/components/cpx-url","keywords":["web","component","typescript","deno"],"repository":{"url":"git+https://github.com/chapeaux/cpx-components.git","type":"git"},"description":"Chapeaux URL Component","maintainers":[{"email":"ldary@redhat.com","name":"ldary"}],"readme":"= Chapeaux User Component\n\n== Events\n\n* `user-ready` - fires when the `.user` object data is populated\n* `user-update` - fires when the `.user` object is updated\n\n== Usage\n\nUser data is always stored on the `.user` property once it is\navailable. \n\n=== Server-side or on-page\n\n.Server-side Data inclusion example\n[source,html]\n----\n<cpx-user>\n    <script type=\"data\">\n    {\n        \"name\": \"Test User\",\n        \"email\": \"test123@test123.com\"\n    }\n    </script>\n</cpx-user>\n----\n\n=== JSON Web Token\n\nRequires that `jwt_decode` library be available globally.\n\nAvailable component properties:\n\n* `jwt-cookie`: sets the cookie to parse for JWT data\n* `jwt-token`: sets the JWT token to parse for data\n\n.JWT Cookie\n[source,html]\n----\n<cpx-user jwt-cookie=\"SOME_JWT_COOKIE_NAME\"></cpx-user>\n----\n\n.JWT Token\n[source,html]\n----\n<cpx-user jwt-token=\"SOMEJWTENCODEDSTRING\"></cpx-user>\n----\n\n=== Keycloak\n\nRequires `keycloak.js` to be available, and the following attributes to \nbe set with the appropriate values:\n\n* `kc-url` - the Keycloak server url\n* `kc-realm` - the Keycloak realm\n* `kc-client-id` - the Keycloak client ID\n\nAvailable component methods:\n\n* `login()`: log in using the Keycloak config\n* `logout()`: log out using the Keycloak config\n* `register()`: send user to registration screen based on Keycloak config\n* `account()`: send user to account management screen based on Keycloak config\n* `token.createLoginUrl()`: creates URL to direct user to login screen\n* `token.createLogoutUrl()`: creates URL to log user out\n\nAvailable component properties:\n\n* `token`: the Keycloak object for authenticated users\n\n.Keycloak\n[source,html]\n----\n<cpx-user kc-url=\"https://test123.com/auth\" kc-realm=\"your-realm\" kc-client-id=\"your-client-id\"></cpx-user>\n----\n\n=== Scripts\n\n\n\n","readmeFilename":"README.adoc"}