@gridsuite/commons-ui 0.274.0 → 0.275.0

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.
@@ -90,7 +90,10 @@ function ReferenceLinkCell({ data, disabled = false }) {
90
90
  `Cannot build reference link: ${!referenceId ? "referenceId" : "exploreUrl"} is missing`
91
91
  );
92
92
  }
93
- const link = `${exploreUrl}/elements/${referenceId}`;
93
+ const link = new URL(
94
+ `${exploreUrl}/elements/${referenceId}`,
95
+ globalThis.location.origin
96
+ ).toString();
94
97
  return navigator.clipboard.writeText(link).then(() => snackInfo({ headerId: "linkCopied" }));
95
98
  }).catch((error) => snackWithFallback(snackError, error, { headerId: "linkCopyError" })).finally(() => setIsLoading(false));
96
99
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.274.0",
3
+ "version": "0.275.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",