@rebilly/instruments 12.56.8 → 12.57.1

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,6 +1,6 @@
1
- ## [12.56.8](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.56.7...instruments/core-v12.56.8) (2025-05-05)
1
+ ## [12.57.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.57.0...instruments/core-v12.57.1) (2025-05-08)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * **recomm, instruments:** Update Interact e-Transfer logo and name ([#11657](https://github.com/Rebilly/rebilly/issues/11657)) ([4526214](https://github.com/Rebilly/rebilly/commit/45262146a1f001b8d89125044fc2f63881aa1f68))
6
+ * **instrument:** allow camera on KYC page ([#11788](https://github.com/Rebilly/rebilly/issues/11788)) ([7ddd5a3](https://github.com/Rebilly/rebilly/commit/7ddd5a32f0a1e42577eb733e0e70ee17d7922128))
package/dist/index.js CHANGED
@@ -2272,7 +2272,7 @@ class BaseIframe {
2272
2272
  const container = {
2273
2273
  appendChild: (iframe) => {
2274
2274
  iframe.setAttribute("loading", "lazy");
2275
- iframe.setAttribute("allow", "payment");
2275
+ iframe.setAttribute("allow", "camera;payment;");
2276
2276
  if ([
2277
2277
  "rebilly-instruments-form",
2278
2278
  "rebilly-instruments-summary"
@@ -3044,10 +3044,15 @@ let ModalIframe$1 = class ModalIframe extends BaseIframe {
3044
3044
  this.component.on(`${this.name}-close`, (...args) => {
3045
3045
  close(...args);
3046
3046
  });
3047
+ let isRedirected = false;
3047
3048
  window.addEventListener(
3048
3049
  "message",
3049
3050
  async (event) => {
3050
3051
  var _a;
3052
+ if (event.data.kycLinkAfterRedirect && !isRedirected) {
3053
+ this.component.frame.src = event.data.kycLinkAfterRedirect;
3054
+ isRedirected = true;
3055
+ }
3051
3056
  if (event.data === "rebilly-instruments-approval-url-close") {
3052
3057
  if (state.options.transactionType === "purchase") {
3053
3058
  state.storefront.setSessionToken(
@@ -6295,7 +6300,7 @@ function C$1({ options: e2 }) {
6295
6300
  }
6296
6301
  function o2() {
6297
6302
  const i = {
6298
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@59bfdaf`
6303
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@7ddd5a3`
6299
6304
  };
6300
6305
  return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
6301
6306
  }