{"_id":"@chapeaux/cpx-target","_rev":"5-a72e0c4e73e8899f4029915d0ce3737a","name":"@chapeaux/cpx-target","dist-tags":{"latest":"0.4.0"},"versions":{"0.3.0":{"name":"@chapeaux/cpx-target","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-target@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-target","bugs":{"url":"https://github.com/chapeaux/cpx-components/issues"},"dist":{"shasum":"c56ba6955d5f5b5f2455697445a3901585408061","tarball":"https://registry.npmjs.org/@chapeaux/cpx-target/-/cpx-target-0.3.0.tgz","fileCount":4,"integrity":"sha512-gMON5en/DQgISo+pvQa62yaVg7gIfN+4CEC+ygyV6lGO1cUROo44DZEVuIVw0yaL2Xfrls0lptsFlV1zuRVvSQ==","signatures":[{"sig":"MEQCID6WZoRQeYkr7hhiby8Eu+yLG/vDJQtEX00wZafG96neAiAkl4u/mfzcD4mlfn3yfd5ypXi8zsx4Y8yM6flcjqU3bg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38994},"main":"cpx-target.js","type":"module","module":"cpx-target.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 Target Component","directories":{},"_nodeVersion":"12.22.3","dependencies":{"jwt-decode":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cpx-target_0.3.0_1632745945786_0.9066334821036455","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"@chapeaux/cpx-target","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-target@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-target","bugs":{"url":"https://github.com/chapeaux/cpx-components/issues"},"dist":{"shasum":"c97d13911e11c27490a42d26b0c4214c3fc07305","tarball":"https://registry.npmjs.org/@chapeaux/cpx-target/-/cpx-target-0.4.0.tgz","fileCount":3,"integrity":"sha512-Iyudd+8pVXzxvdP5cbDMuSf43bxkLF6mURzaxZRY4HPwOmRKpJYIWrrS7fdvn+bzmtIAwN4/4oc75pMauaup4A==","signatures":[{"sig":"MEYCIQD2bfb7hFgioOHPqgvXHcWAtuGUtnNS3CNe0AyM8GUgcQIhAM3NynxNNUax1N2gaIg40z/55xyx7RiuGHjav8JR4F0U","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzcZ1CRA9TVsSAnZWagAAHBEQAJFNg0n9SRhR3tm3LuAl\nUL0+ijfNvOJYszRPGWfpaYqVTslYjaCl46yB2nh3nnHiZR7sPWleUYZaTncm\nPg1QWok3vo5P7nJ9YzcWJR31txB72bzUpBwzktKJbFTaVb4bOYZAEq1RZQaX\nH6VyNKEmBCs2OwM50vtagEclXBz3nHa/f52IcRTSn89sVu5Mp03cVwDEdjAc\nEHt+9jFOEpLNHR3MU8EN0LlN4k/Rsz2ex6CiRYSk2ubmuNUc0DviJIYNGZg1\nOmAaH6wSAPSOp7pRlNegKKv5aVwypr285gdb1gYQiVUSqGxrXBFDqntGROzM\n9ZBRKy8VIYORl0p03yEDS7TGjFY1zgvqZ3YabU/lBZkNnJMd5kIc7/F0SIUv\nb29mIovSgov2pgBmKMQZpQVoqfPwb6xhhyeHzSBuSFDzgNNX9g7UMF13o/5x\ngwf5z7BOcnWJ2XkSpcgEYdbVZFjFdGvY30vH01W695IqLtHqiIe7N1chpNCK\nC59dYDXh4OE5x0JUYqJhG/G9yNNTCIVD7w4/b+ve/QjaTPRe29wy+vjOEQnn\naYtDLSx0jBF8HBkvh9Xkod9NwWg8gNGp/eXVopV1/E+y0Tg3flHEjVKGpIAV\nObYL5RBPabSHgGPGV4SQvt25J6aUzH8ZGdpzWGvbI02YHEkqDyQCf3QYB6Bj\n8/zX\r\n=DYwU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"cpx-target.js","type":"module","module":"cpx-target.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 Target Component","directories":{},"_nodeVersion":"12.22.3","dependencies":{"jwt-decode":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cpx-target_0.4.0_1633986208764_0.6312659708996007","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-09-27T12:32:25.748Z","modified":"2026-03-19T19:26:20.397Z","0.3.0":"2021-09-27T12:32:25.961Z","0.4.0":"2021-10-11T21:03:28.923Z"},"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-target","keywords":["web","component","typescript","deno"],"repository":{"url":"git+https://github.com/chapeaux/cpx-components.git","type":"git"},"description":"Chapeaux Target 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"}