{"_id":"@alistigo/third-party-js-application-react","_rev":"1-ffa62d149d8383d63cb7175b937289cc","name":"@alistigo/third-party-js-application-react","dist-tags":{"latest":"0.4.0"},"versions":{"0.3.6":{"name":"@alistigo/third-party-js-application-react","version":"0.3.6","keywords":["third-party","loader","public"],"author":{"name":"Mikaël Labrut","email":"labrut@gmail.com"},"license":"MIT","_id":"@alistigo/third-party-js-application-react@0.3.6","maintainers":[{"name":"mikael.labrut","email":"npm@alistigo.com"}],"homepage":"https://github.com/alistigo/libraries/tree/main/packages/third-party-js-application-react","bugs":{"url":"https://github.com/alistigo/libraries/issues"},"dist":{"shasum":"76f7a378fab50e34d22d5faa5757dfe9e459ed99","tarball":"https://registry.npmjs.org/@alistigo/third-party-js-application-react/-/third-party-js-application-react-0.3.6.tgz","fileCount":24,"integrity":"sha512-JKJx2YfJMzYZHgUhF2VqW4db74/pAV7IQlHYPYQ0PH07IHIgRAijj0WkRa+erOO3mdWUZ4Vv/VSvBiVgewhj8g==","signatures":[{"sig":"MEMCIESmFpPElYT6MASJEYLftprxaIh2IaFGVcZcWzHZB244Ah9xrONQt7cJaio8TSFb1tUxb1r+ZRj/nF1EOobW++Tw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alistigo%2fthird-party-js-application-react@0.3.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21949},"main":"./src/index.js","type":"commonjs","engines":{"node":">=20.0"},"gitHead":"fc402b8a47c3547b17c181d0bf396138c8a81b70","typings":"./src/index.d.ts","_npmUser":{"name":"mikael.labrut","email":"npm@alistigo.com"},"repository":{"url":"git+https://github.com/alistigo/libraries.git","type":"git","directory":"packages/third-party-js-application-react"},"_npmVersion":"10.7.0","description":"Hooks utilities for `Third-party-js-loader`","directories":{},"_nodeVersion":"20.15.1","dependencies":{"@alistigo/third-party-js-types":"^0.4.5","@alistigo/third-party-js-application-client":"^0.4.7"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"peerDependencies":{"react":"^18.3.1"},"_npmOperationalInternal":{"tmp":"tmp/third-party-js-application-react_0.3.6_1722418576229_0.5215494106210321","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"@alistigo/third-party-js-application-react","version":"0.4.0","description":"**react** wrapper around [third-party-js-application-client](https://github.com/alistigo/libraries/tree/main/packages/third-party-js-application-client/README.md)","keywords":["third-party-js","react","guest","public"],"engines":{"node":">=20.0"},"author":{"name":"Mikaël Labrut","email":"labrut@gmail.com"},"license":"MIT","main":"./src/index.js","repository":{"type":"git","url":"git+https://github.com/alistigo/libraries.git","directory":"packages/third-party-js-application-react"},"dependencies":{"@alistigo/third-party-js-application-client":"^0.4.8","@alistigo/third-party-js-types":"^0.4.6"},"peerDependencies":{"react":"^18.3.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"type":"commonjs","typings":"./src/index.d.ts","bugs":{"url":"https://github.com/alistigo/libraries/issues"},"homepage":"https://github.com/alistigo/libraries/tree/main/packages/third-party-js-application-react","_id":"@alistigo/third-party-js-application-react@0.4.0","gitHead":"322ad6bd95e68249ad3620ff18ce5a6d308a4351","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-W9PGNIbig279rdBr4SSNODCEgKn0IO+TYX6xz59MFYjUs1N0/RVJ9cxOzhw1cGuotsG5Sg1f+4GeigG+2NhDCA==","shasum":"756e4fb83420160998b114280cee543b4263b81a","tarball":"https://registry.npmjs.org/@alistigo/third-party-js-application-react/-/third-party-js-application-react-0.4.0.tgz","fileCount":24,"unpackedSize":23113,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alistigo%2fthird-party-js-application-react@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTxDKbeBVZTfOdlD0F6bbA0J2qWauuswiXi82Bb8cfMgIgXNCZa3R8TRybNVtDXrnmDghSlrkCIqMNz60/tgJRR/A="}]},"_npmUser":{"name":"mikael.labrut","email":"npm@alistigo.com"},"directories":{},"maintainers":[{"name":"mikael.labrut","email":"npm@alistigo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/third-party-js-application-react_0.4.0_1722780986959_0.6241450073439712"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-31T09:36:16.150Z","modified":"2024-08-04T14:16:27.553Z","0.3.6":"2024-07-31T09:36:16.376Z","0.4.0":"2024-08-04T14:16:27.118Z"},"bugs":{"url":"https://github.com/alistigo/libraries/issues"},"author":{"name":"Mikaël Labrut","email":"labrut@gmail.com"},"license":"MIT","homepage":"https://github.com/alistigo/libraries/tree/main/packages/third-party-js-application-react","keywords":["third-party-js","react","guest","public"],"repository":{"type":"git","url":"git+https://github.com/alistigo/libraries.git","directory":"packages/third-party-js-application-react"},"description":"**react** wrapper around [third-party-js-application-client](https://github.com/alistigo/libraries/tree/main/packages/third-party-js-application-client/README.md)","maintainers":[{"name":"mikael.labrut","email":"npm@alistigo.com"}],"readme":"# @alistigo/third-party-js-application-react\n\n**react** wrapper around [third-party-js-application-client](https://github.com/alistigo/libraries/tree/main/packages/third-party-js-application-client/README.md)\n\nThis library should be used on the **guest** application.\n\n## How to use\n\n```tsx\nimport { ThirdPartyJsClientProvider } from '@alistigo/third-party-js-application-react';\n\nimport hostClient from './hostClient';\n\nfunction ApplicationApiDefinition() {\n  useExternalMethodCall<{ result1: string; result2: number }>(\n    'applicationApiMethod1',\n    (arg1: string, arg2: number) => ({\n      result1: `${arg1}-result1`,\n      result2: arg2 + 10,\n    })\n  );\n}\n\nexport default function App() {\n  return (\n    <ThirdPartyJsClientProvider client={hostClient}>\n      <h1>Example of application</h1>\n      <ApplicationApiDefinition />\n    </ThirdPartyJsClientProvider>\n  );\n}\n```\n","readmeFilename":"README.md"}