@meshconnect/web-link-sdk 3.2.16 → 3.3.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.
package/Link.js CHANGED
@@ -50,6 +50,7 @@ import { isLinkEventTypeKey } from './utils/event-types';
50
50
  import { isWalletBrowserEventTypeKey } from './utils/wallet-browser-event-types';
51
51
  import { sdkSpecs } from './utils/sdk-specs';
52
52
  import { WalletStrategyFactory } from './utils/wallet';
53
+ import { BridgeParent } from '@meshconnect/uwc-bridge-parent';
53
54
  var currentOptions;
54
55
  var targetOrigin;
55
56
  var linkTokenOrigin;
@@ -491,10 +492,10 @@ export var createLink = function (options) {
491
492
  linkTokenOrigin = new URL(linkUrl).origin;
492
493
  window.removeEventListener('message', eventsListener);
493
494
  if (customIframeId) {
494
- var iframe = document.getElementById(customIframeId);
495
- if (iframe) {
496
- iframe.allow = 'clipboard-read *; clipboard-write *';
497
- iframe.src = linkUrl;
495
+ var iframe_1 = document.getElementById(customIframeId);
496
+ if (iframe_1) {
497
+ iframe_1.allow = 'clipboard-read *; clipboard-write *';
498
+ iframe_1.src = linkUrl;
498
499
  currentIframeId = customIframeId;
499
500
  }
500
501
  else {
@@ -507,6 +508,10 @@ export var createLink = function (options) {
507
508
  }
508
509
  window.addEventListener('message', eventsListener);
509
510
  targetOrigin = window.location.origin;
511
+ var iframe = iframeElement();
512
+ if (iframe) {
513
+ new BridgeParent(iframe);
514
+ }
510
515
  };
511
516
  var closeLink = function () {
512
517
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshconnect/web-link-sdk",
3
- "version": "3.2.16",
3
+ "version": "3.3.0",
4
4
  "description": "A client-side JS library for integrating with Mesh Connect",
5
5
  "exports": "./index.js",
6
6
  "license": "MIT",
@@ -24,6 +24,7 @@
24
24
  "dependencies": {
25
25
  "@meshconnect/node-api": "^2.0.23",
26
26
  "@meshconnect/solana-web3.js": "^1.0.4",
27
+ "@meshconnect/uwc-bridge-parent": "^0.0.2",
27
28
  "bs58": "^5.0.0",
28
29
  "buffer": "^6.0.3",
29
30
  "ethers": "^6.11.1"
@@ -1 +1 @@
1
- export declare const sdkVersion = "3.2.16";
1
+ export declare const sdkVersion = "3.3.0";
package/utils/version.js CHANGED
@@ -1 +1 @@
1
- export var sdkVersion = '3.2.16';
1
+ export var sdkVersion = '3.3.0';