{"_id":"@chapeaux/cpx-result","_rev":"7-298b2ef327b9bb420241976a94ecafdd","name":"@chapeaux/cpx-result","dist-tags":{"latest":"0.6.0"},"versions":{"0.3.0":{"name":"@chapeaux/cpx-result","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-result@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-result","bugs":{"url":"https://github.com/chapeaux/cpx-components/issues"},"dist":{"shasum":"c2dc6551939c70cb776e56a35d21b5a401cbe1ac","tarball":"https://registry.npmjs.org/@chapeaux/cpx-result/-/cpx-result-0.3.0.tgz","fileCount":9,"integrity":"sha512-emmUBTXX1wvfCqNQlXlfPF9o7Inp147RspbbMrgzMJcbQChXCFHdsrCPYpgW3F+qKoEERW7Q4PSkiup7qDkr2Q==","signatures":[{"sig":"MEYCIQCHqUKSeJPYubpWFapQcxlh7Fd1dJqjLH1r2/nSqbZnsQIhAMRptb+PAmBZhwOnwedlX6+f/IAK9hRVKph0sOfXjVit","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71569},"main":"cpx-result.js","type":"module","module":"cpx-result.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 Result Component","directories":{},"_nodeVersion":"12.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cpx-result_0.3.0_1632745945935_0.7862393390127913","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"@chapeaux/cpx-result","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-result@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-result","bugs":{"url":"https://github.com/chapeaux/cpx-components/issues"},"dist":{"shasum":"fd0b12d657231a2c2fe3d2c180baab0144433983","tarball":"https://registry.npmjs.org/@chapeaux/cpx-result/-/cpx-result-0.4.0.tgz","fileCount":5,"integrity":"sha512-8g9n0BGijaRt0vOXNeLfsv9k99iYROdB8b6cyZ63v+fQ6ePis9ldmT9k4L57HM6jEPB4DUXRlRjBbmsed1RtEA==","signatures":[{"sig":"MEQCIF2uq7GWz02xmNxRFmQQbi/QTO3y1S04Gui6pRvOFAgSAiBnSS9DbzN+MD+vsBMOSEn32+wPqAOieU2kC9ib+eOXvg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53872},"main":"cpx-result.js","type":"module","module":"cpx-result.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 Result Component","directories":{},"_nodeVersion":"12.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cpx-result_0.4.0_1633986209073_0.14661460893063705","host":"s3://npm-registry-packages"}},"0.5.0":{"name":"@chapeaux/cpx-result","version":"0.5.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-result@0.5.0","maintainers":[{"name":"ldary","email":"ldary@redhat.com"},{"name":"wesruv","email":"wesruv@gmail.com"}],"homepage":"https://github.com/chapeaux/cpx-components/components/cpx-result","bugs":{"url":"https://github.com/chapeaux/cpx-components/issues"},"dist":{"shasum":"81d7fc76367874c8b3122a996d7547d542c0a2ec","tarball":"https://registry.npmjs.org/@chapeaux/cpx-result/-/cpx-result-0.5.0.tgz","fileCount":5,"integrity":"sha512-8h+HiqRX35CloD0OYVa/k1Qaz+GOqBW5vYKApo4lo/Myrjw4GyIqJ9mPf9HrwI5JiULs+cKrBDF5dnHiqf3PVg==","signatures":[{"sig":"MEQCIFOYD6b6uMdir0ppdP6fuCTvchqZ8AuN8lGM5pFUMJsnAiBUEK5ogyYjaaMUBO0UYox3yw3x4ZCumf/O/xisjFwh4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53862},"main":"cpx-result.js","type":"module","module":"cpx-result.js","gitHead":"03c113e6ec47be4ca201930c6d3963edbd2b3bd5","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 Result Component","directories":{},"_nodeVersion":"12.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cpx-result_0.5.0_1635451867528_0.1590551362467314","host":"s3://npm-registry-packages"}},"0.6.0":{"name":"@chapeaux/cpx-result","version":"0.6.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-result@0.6.0","maintainers":[{"name":"ldary","email":"ldary@redhat.com"},{"name":"wesruv","email":"wesruv@gmail.com"}],"homepage":"https://github.com/chapeaux/cpx-components/components/cpx-result","bugs":{"url":"https://github.com/chapeaux/cpx-components/issues"},"dist":{"shasum":"8d567d1771856be3665c598c4437f4f02937cd3d","tarball":"https://registry.npmjs.org/@chapeaux/cpx-result/-/cpx-result-0.6.0.tgz","fileCount":5,"integrity":"sha512-v8Ci+nMc8Ud2kPnYNr+D31CMW+ea5P9PKdvm2jHtKkUGTDo3R/eQWYitfp8SKIAj7JamRBDabotUv1hDjWtrKw==","signatures":[{"sig":"MEUCIE/+8D7yfcP0eIUTenc9joE0hxQ4U9BZR/ou+oEByM3FAiEA0MFJ+3OTvTZePzyVfrs9ch6XXB1bwUMjawIyw2nmeng=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzcZuCRA9TVsSAnZWagAAgDcP/3c2YbSub9MND4UoRmT8\nSpBrjyFzX8ee7yZ5rtu/BhgbjMaKFd5jSpRbtkDycQ+8cRFUm2yLYctA2M09\nyD0UmfQ9Nv5ohdc4Ys1xxmV40tcnUY/mtGanPPaAzYAg9niwWub0KMGvuoCd\nMemt2PlH8V9OfbaZ9MW3GOQgjyceClQPZOCd4x+s2vhnZutfclaSD2I3LAK/\nOqhXEER0bp55Ur1d2EEzL4J13qvg7AHCd9HRbqGOvJ9hNovMLBEzjjw1hFn3\nRBk3cnvwAmu8okJmHV9qBGfWkvxGEzgciDQHYCKdsSaULTdfQznbE+jl9SxU\njYjpViUXUcvziMJ2iPJ6KOtTSVPeC7RWHk/7gboXd3m2SxTcFziYgqOxjdiw\n2fld0du2UR/9Z9JaG2okrKTA824QMbzrMSwy4Ec+cmzas4Lqxzt+1b4R1VBE\nqPah8Tl+3OWo7DS8txb+gPa+0VoaX6iCCzXF516Tvkk2412Y2BxeFRs+USQ3\nSeXD81tVUmLlROoMy2MqGn2gZA/+TQmBmUONFU7jP5HnEeE4qHBfBWDLzl55\n3LnL/sI0h1Ls911ShteIquw2+V2nKVyZEc1pl7ajBS2QwOYQHyseJOZ7XHba\nd6lmj5mxYIhnfBcPB9txn2xKldC85lxbJnNVpb79G6IMTLjD50x/OUyMBENK\n2wWR\r\n=ovjh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"cpx-result.js","type":"module","module":"cpx-result.js","gitHead":"15a029c49a4d45cfa756f2f4684e0a98582c51a4","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 Result Component","directories":{},"_nodeVersion":"12.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cpx-result_0.6.0_1636243869413_0.6135924098543732","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-09-27T12:32:25.885Z","modified":"2026-03-19T19:26:18.534Z","0.3.0":"2021-09-27T12:32:26.151Z","0.4.0":"2021-10-11T21:03:29.200Z","0.5.0":"2021-10-28T20:11:07.645Z","0.6.0":"2021-11-07T00:11:09.609Z"},"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-result","keywords":["web","component","typescript","deno"],"repository":{"url":"git+https://github.com/chapeaux/cpx-components.git","type":"git"},"description":"Chapeaux Result 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"}