lhasa-ligand-builder 0.4.4 → 0.4.5

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.
@@ -26887,7 +26887,14 @@ function fN(e) {
26887
26887
  children: "Close"
26888
26888
  }),
26889
26889
  /* @__PURE__ */ _(MD, {
26890
- onClick: () => window.open(`${s}/get_cif/${u}`),
26890
+ onClick: async () => {
26891
+ try {
26892
+ let t = await (await fetch(`${s}/get_cif/${u}`)).text(), n = new Blob([t], { type: "chemical/x-cif" }), r = URL.createObjectURL(n), i = document.createElement("a");
26893
+ i.href = r, i.download = e.smiles_list[O][2].replace(/[^a-zA-Z0-9]/g, "_") + ".cif", i.click(), URL.revokeObjectURL(r);
26894
+ } catch (e) {
26895
+ console.error("Error downloading CIF:", e);
26896
+ }
26897
+ },
26891
26898
  variant: "contained",
26892
26899
  children: "Download CIF"
26893
26900
  }),
@@ -27095,7 +27102,7 @@ function pN(e) {
27095
27102
  ">"
27096
27103
  ] }),
27097
27104
  /* @__PURE__ */ v("p", { children: [/* @__PURE__ */ _("b", { children: "License:" }), " GPL v3"] }),
27098
- /* @__PURE__ */ v("p", { children: [/* @__PURE__ */ _("b", { children: "Version:" }), " 0.4.4"] }),
27105
+ /* @__PURE__ */ v("p", { children: [/* @__PURE__ */ _("b", { children: "Version:" }), " 0.4.5"] }),
27099
27106
  /* @__PURE__ */ _("p", { children: "Copyright © Global Phasing Ltd. 2024 - 2026" }),
27100
27107
  /* @__PURE__ */ _(MD, {
27101
27108
  variant: "outlined",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lhasa-ligand-builder",
3
3
  "description": "Moorhen's ligand builder: React + WebAssembly version of Layla - Coot's ligand builder",
4
- "version": "0.4.4",
4
+ "version": "0.4.5",
5
5
  "type": "module",
6
6
  "main": "dist/lhasa-ligand-builder.js",
7
7
  "module": "dist/lhasa-ligand-builder.js",