{"_id":"@claudebernard/stock-news-element","_rev":"6-bcda8c003e2586c52ae170147ce2df79","name":"@claudebernard/stock-news-element","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@claudebernard/stock-news-element","version":"0.1.0","keywords":["claude-bernard","web-components","typescript"],"author":{"name":"Claude Bernard"},"_id":"@claudebernard/stock-news-element@0.1.0","maintainers":[{"name":"tdeltour","email":"thomas.deltour@resip.fr"},{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"}],"dist":{"shasum":"59d997156c6947400b20db4e4b98a378a82b8037","tarball":"https://registry.npmjs.org/@claudebernard/stock-news-element/-/stock-news-element-0.1.0.tgz","fileCount":10,"integrity":"sha512-pe+O+gCgjv/utVpNTv035jH5jaxkAc74LoHGakhjOI2g7vS/UX49wAUEb/lBTlJkvhrB9zveR+7Vty8IUDBFKg==","signatures":[{"sig":"MEUCIQDkOaXIn5v5lMZNWV+NpmBqoH2bptJONsX+xRW5fNVN6gIgenpdCgyhgBGJtM+FkexoMuYBMNUO3pfMUdcSuVKoceQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":206431},"main":"stock-news.es.js","type":"module","types":"dist/stock-news.d.ts","module":"stock-news.es.js","gitHead":"0e50c03192e7e4f60b4d4432aae129a258da6a09","scripts":{"dev":"vite","lint":"npm run lint:lit-analyzer && npm run lint:eslint","build":"tsc && vite build && npm run analyze","analyze":"cem analyze","preview":"vite preview","generate":"openapi --input src/bcb-news-api/openapi.yaml --output src/bcb-news-api/generated","lint:eslint":"eslint \"src/**/*.ts\"","analyze:watch":"cem analyze --watch","publish-package":"npm run build && npm publish --access public","lint:lit-analyzer":"lit-analyzer"},"_npmUser":{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},"_npmVersion":"10.5.0","description":"An element providing news about medical stocks.","directories":{},"_nodeVersion":"20.12.2","dependencies":{"lit":"^3.0.0","tctx":"^0.0.13","@lit/localize":"^0.12.0"},"_hasShrinkwrap":false,"customElements":"dist/custom-elements.json","devDependencies":{"vite":"^5.0.5","tslib":"^2.6.2","eslint":"^8.56.0","rollup":"^4.9.5","typescript":"^5.2.0","lit-analyzer":"^2.0.3","ts-lit-plugin":"^1.2.1","vite-plugin-dts":"^3.7.1","@lit/localize-tools":"^0.7.0","@typescript-eslint/parser":"^6.19.0","openapi-typescript-codegen":"^0.25.0","@webcomponents/webcomponentsjs":"^2.8.0","@typescript-eslint/eslint-plugin":"^6.19.0","@custom-elements-manifest/analyzer":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/stock-news-element_0.1.0_1715673656412_0.13207117748484443","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@claudebernard/stock-news-element","version":"0.1.1","keywords":["claude-bernard","web-components","typescript"],"author":{"name":"Claude Bernard"},"_id":"@claudebernard/stock-news-element@0.1.1","maintainers":[{"name":"tdeltour","email":"thomas.deltour@resip.fr"},{"name":"gdrouet","email":"guidrouet@gmail.com"},{"name":"sclerbout","email":"simon.clerbout@cegedim.com"},{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},{"name":"tpoutrain_resip","email":"thierry.poutrain@resip.fr"}],"dist":{"shasum":"0ed01e419c98b3aef5658609a0e46a563c801d8e","tarball":"https://registry.npmjs.org/@claudebernard/stock-news-element/-/stock-news-element-0.1.1.tgz","fileCount":10,"integrity":"sha512-t0K4MukOw4iBWdLt5RVBquYnzJW9lTcH/MDs9PCHXbn11B+gvCXsmtIJqeWVi0z0Sba6ilVcNpRFQMvXKBKipA==","signatures":[{"sig":"MEYCIQC/i/iSWsy3Wx0p/2EdrwapYD8eIOslRaDclXIymqrKZgIhAOR6SmwdY+YV1+1rwK4r5X2Gyaao4ctU+VuQgu+iyVSc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":207904},"main":"stock-news.es.js","type":"module","types":"dist/stock-news.d.ts","module":"stock-news.es.js","gitHead":"203b44cdd1ae86aaff6aac851eb18bc1863541a5","scripts":{"dev":"vite","lint":"npm run lint:lit-analyzer && npm run lint:eslint","build":"tsc && vite build && npm run analyze","analyze":"cem analyze","preview":"vite preview","generate":"openapi --input src/bcb-news-api/openapi.yaml --output src/bcb-news-api/generated","lint:eslint":"eslint \"src/**/*.ts\"","analyze:watch":"cem analyze --watch","publish-package":"npm run build && npm publish --access public","lint:lit-analyzer":"lit-analyzer"},"_npmUser":{"name":"claudebernard_tcaillier","email":"thomas.caillier@claudebernard.fr"},"_npmVersion":"10.5.2","description":"An element providing news about medical stocks.","directories":{},"_nodeVersion":"20.13.1","dependencies":{"lit":"^3.0.0","tctx":"^0.0.13","@lit/localize":"^0.12.0"},"_hasShrinkwrap":false,"customElements":"dist/custom-elements.json","devDependencies":{"vite":"^5.0.5","tslib":"^2.6.2","eslint":"^8.56.0","rollup":"^4.9.5","typescript":"^5.2.0","lit-analyzer":"^2.0.3","ts-lit-plugin":"^1.2.1","vite-plugin-dts":"^3.7.1","@lit/localize-tools":"^0.7.0","@typescript-eslint/parser":"^6.19.0","openapi-typescript-codegen":"^0.25.0","@webcomponents/webcomponentsjs":"^2.8.0","@typescript-eslint/eslint-plugin":"^6.19.0","@custom-elements-manifest/analyzer":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/stock-news-element_0.1.1_1715696301257_0.1946080124347782","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-05-14T08:00:56.283Z","modified":"2026-01-13T11:10:13.147Z","0.1.0":"2024-05-14T08:00:56.707Z","0.1.1":"2024-05-14T14:18:21.432Z"},"author":{"name":"Claude Bernard"},"keywords":["claude-bernard","web-components","typescript"],"description":"An element providing news about medical stocks.","maintainers":[{"email":"guidrouet@gmail.com","name":"gdrouet"},{"email":"thierry.poutrain@resip.fr","name":"tpoutrain_resip"},{"email":"simon.clerbout@cegedim.com","name":"sclerbout"},{"email":"thomas.caillier@claudebernard.fr","name":"claudebernard_tcaillier"},{"email":"adrien.croquelois@claudebernard.fr","name":"acroquelois_pro"},{"email":"contact@claudebernard.fr","name":"admin_claudebernard"},{"email":"julien.hudelle@claudebernard.fr","name":"claudebernard_jhudelle"}],"readme":"# \\<bcb-stock-news> element\n\nAn element providing news about medical stocks.\n\n## Installation\n\n```sh\nnpm install --save @claudebernard/stock-news\n```\n\n## Usage\n\n### Script\n\nImport as ES modules:\n\n```javascript\nimport '@claudebernard/stock-news-element';\n```\n\nWith a script tag:\n\n```html\n\n<script type=\"module\" src=\"node_modules/@claudebernard/stock-news-element/dist/stock-news.js\"></script>\n```\n\n### HTML\n\n```html\n\n<bcb-stock-news apiurl=\"https://api.claudebernard.fr\"></bcb-stock-news>\n```\n\n## Attributes\n\n| Name         | Type     | Default                        | Description                                                                                                                                                |\n|--------------|----------|--------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `apiurl`     | `URL`    | `https://api.claudebernard.fr` | API base URL to call to get stock news                                                                                                                     |\n| `apikey`     | `UUID`   | none                           | API key authentication. Preferred method is to set up a proxy on your side that will add this API key header : in this case, don't provide any value here. |\n| `lang`       | `String` | `fr-FR`                        | UI display locale. Available : <br/>- French (France) : `fr-FR` <br/>- English: `en`                                                                       |\n| `identifier` | `String` | none                           | Product identifier (can be CIS, CIP 13 or BCB Product Id)                                                                                                  | \n\n## Events\n\n| Name              | Type        | Format                                                                        | Description                                |\n|-------------------|-------------|-------------------------------------------------------------------------------|--------------------------------------------|\n| `product-news`    | `NewsEvent` | `{ news: [ { cip13: string, newsType: string, description: string, ... } ] }` | Stock news were received about the product |\n| `no-product-news` | `Event`     |                                                                               | There is no stock news about the product   |\n\n## Browser support\n\nBrowsers without native [custom element support](https://caniuse.com/custom-elementsv1) require\na [polyfill](https://github.com/webcomponents/polyfills/tree/master/packages/custom-elements).\n\n- [x] Chrome\n- [x] Firefox\n- [x] Safari\n- [x] Microsoft Edge\n\n## Custom element checklist\n\n- [ ] Public documentation (docs portal)\n- [x] Functional on Angular, React, Vue\n- [ ] Unit tested\n- [ ] Code quality\n- [ ] Changelog with semantic release\n- [ ] Available in offline mode\n- [ ] Best practices compliant\n- [ ] Validated by QA\n- [ ] Publicly available\n- [ ] Based on FHIR\n- [ ] Example on storybook\n- [ ] Available demo\n- [x] i18n\n- [x] Browser support section\n- [ ] EOL section\n\n## License\n\nCopyright of Cegedim. See [LICENSE](LICENSE.md) for details.\n","readmeFilename":"README.md"}