@claudebernard/therapeutic-alternative-element 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2232,17 +2232,11 @@ let ProductCard = class extends i$1 {
2232
2232
  get product() {
2233
2233
  return this.result.product ?? {};
2234
2234
  }
2235
- // Délègue à l'application hôte plutôt que de naviguer directement : ce composant n'affiche
2236
- // aucune fiche produit lui-même, il se contente d'identifier le produit visé.
2237
2235
  viewProductDetail() {
2238
2236
  if (!this.product.code) {
2239
2237
  return;
2240
2238
  }
2241
- this.dispatchEvent(new CustomEvent("view-product-detail", {
2242
- detail: { code: this.product.code, productId: this.product.productId },
2243
- bubbles: true,
2244
- composed: true
2245
- }));
2239
+ window.open(`https://claudebernard.fr/fiche-medicament/${this.product.code}`, "_blank");
2246
2240
  }
2247
2241
  replaceProduct() {
2248
2242
  if (this.disabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudebernard/therapeutic-alternative-element",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "main": "dist/therapeutic-alternative.es.js",
5
5
  "module": "dist/therapeutic-alternative.es.js",
6
6
  "types": "dist/therapeutic-alternative.d.ts",
@@ -91,7 +91,7 @@
91
91
  }
92
92
  },
93
93
  "peerDependencies": {
94
- "@claudebernard/design-system": "^2.36.0",
94
+ "@claudebernard/design-system": "^2.37.3",
95
95
  "@claudebernard/types": "^0.35.0 || ^0.36.0",
96
96
  "@claudebernard/web-component-fhir-utils": "^2.1.0"
97
97
  },