@athenaintel/react 0.10.39 → 0.10.40
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.
- package/README.md +7 -4
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47513,7 +47513,16 @@ const parseCitationReference = ({
|
|
|
47513
47513
|
const width = getFiniteNumber(url, "width");
|
|
47514
47514
|
const height = getFiniteNumber(url, "height");
|
|
47515
47515
|
if (page !== null && x !== null && y !== null && width !== null && height !== null) {
|
|
47516
|
-
|
|
47516
|
+
const unit = url.searchParams.get("unit");
|
|
47517
|
+
reference2.anchor = {
|
|
47518
|
+
type: anchorType,
|
|
47519
|
+
page,
|
|
47520
|
+
x,
|
|
47521
|
+
y,
|
|
47522
|
+
width,
|
|
47523
|
+
height,
|
|
47524
|
+
...unit === "percent" || unit === "point" ? { unit } : {}
|
|
47525
|
+
};
|
|
47517
47526
|
}
|
|
47518
47527
|
break;
|
|
47519
47528
|
}
|
|
@@ -56462,6 +56471,9 @@ function appendCitationReferenceParams({
|
|
|
56462
56471
|
key: "height",
|
|
56463
56472
|
value: "height" in anchor ? anchor.height : void 0
|
|
56464
56473
|
});
|
|
56474
|
+
if ("unit" in anchor && (anchor.unit === "percent" || anchor.unit === "point")) {
|
|
56475
|
+
params.set("unit", anchor.unit);
|
|
56476
|
+
}
|
|
56465
56477
|
break;
|
|
56466
56478
|
case "page_text":
|
|
56467
56479
|
params.set("anchor", anchor.type);
|