@rebilly/instruments 12.56.4 → 12.56.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.
package/CHANGELOG.md CHANGED
@@ -1 +1,6 @@
1
- ## [12.56.4](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.56.3...instruments/core-v12.56.4) (2025-05-01)
1
+ ## [12.56.5](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.56.4...instruments/core-v12.56.5) (2025-05-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **instruments:** Fix unwanted scrolling on Instrument's iframes ([#11594](https://github.com/Rebilly/rebilly/issues/11594)) ([fe2c906](https://github.com/Rebilly/rebilly/commit/fe2c906d7aae8e2e478a09df313ec7c5dcea0726))
package/dist/index.js CHANGED
@@ -2273,6 +2273,12 @@ class BaseIframe {
2273
2273
  appendChild: (iframe) => {
2274
2274
  iframe.setAttribute("loading", "lazy");
2275
2275
  iframe.setAttribute("allow", "payment");
2276
+ if ([
2277
+ "rebilly-instruments-form",
2278
+ "rebilly-instruments-summary"
2279
+ ].includes(this.name)) {
2280
+ iframe.setAttribute("scrolling", "no");
2281
+ }
2276
2282
  iframe.allowPaymentRequest = true;
2277
2283
  this.container.appendChild(iframe);
2278
2284
  }
@@ -6289,7 +6295,7 @@ function C$1({ options: e2 }) {
6289
6295
  }
6290
6296
  function o2() {
6291
6297
  const i = {
6292
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@1371693`
6298
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@fe2c906`
6293
6299
  };
6294
6300
  return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
6295
6301
  }