@ape.swap/bonds-sdk 3.0.40-test.5 → 3.0.40-test.6

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.
Files changed (2) hide show
  1. package/dist/main.js +2 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -77664,7 +77664,8 @@ const Bonds = () => {
77664
77664
  const tryScroll = () => {
77665
77665
  const element = document.querySelector(hash);
77666
77666
  if (element) {
77667
- element.scrollIntoView({ behavior: 'smooth' });
77667
+ const y = element.getBoundingClientRect().top + window.scrollY - 70;
77668
+ window.scrollTo({ top: y, behavior: 'smooth' });
77668
77669
  }
77669
77670
  else {
77670
77671
  setTimeout(tryScroll, 50);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "3.0.40-test.5",
6
+ "version": "3.0.40-test.6",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",