@embarkai/ui-kit 0.4.86 → 0.4.87

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.
@@ -15,7 +15,7 @@
15
15
  <meta http-equiv="X-Content-Type-Options" content="nosniff" />
16
16
  <meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin" />
17
17
 
18
- <title>EmbarkAI Secure Wallet - iframe version 0.4.86</title>
18
+ <title>EmbarkAI Secure Wallet - iframe version 0.4.87</title>
19
19
 
20
20
  <!-- Styles will be injected by build process -->
21
21
  <style>
@@ -6414,7 +6414,7 @@ var SigningManager = class extends TokenRefreshApiClient {
6414
6414
  };
6415
6415
 
6416
6416
  // src/iframe/main.ts
6417
- var IFRAME_VERSION = "0.4.86";
6417
+ var IFRAME_VERSION = "0.4.87";
6418
6418
  var IframeWallet = class {
6419
6419
  constructor() {
6420
6420
  __publicField(this, "messenger");
package/dist/index.cjs CHANGED
@@ -88,11 +88,6 @@ __export(initial_exports, {
88
88
  function getServiceUrls() {
89
89
  const config = DEFAULT_PROVIDER_CONFIG;
90
90
  const globalOverride = typeof window !== "undefined" && window.__EMBARK_SERVICES__ || {};
91
- const searchParams = typeof window !== "undefined" ? new URLSearchParams(window.location.search) : void 0;
92
- const paramAssetApi = searchParams?.get("assetApiUrl") || void 0;
93
- const paramTss = searchParams?.get("tssUrl") || void 0;
94
- const paramVault = searchParams?.get("shareVaultUrl") || void 0;
95
- const paramDashboard = searchParams?.get("dashboardApiUrl") || void 0;
96
91
  const buildAssetApi = "https://api.embarkai.io/on-ramp/api";
97
92
  const buildTss = "https://api.embarkai.io/tss";
98
93
  const buildVault = "https://api.embarkai.io/vault";
@@ -101,10 +96,14 @@ function getServiceUrls() {
101
96
  const defaultTss = "/tss";
102
97
  const defaultVault = "/vault";
103
98
  const result = {
104
- assetApiUrl: paramAssetApi || globalOverride.assetApiUrl || buildAssetApi || config.services.assetApiUrl,
105
- tssUrl: paramTss || globalOverride.tssUrl || buildTss || config.services.tssUrl || defaultTss,
106
- shareVaultUrl: paramVault || globalOverride.shareVaultUrl || buildVault || config.services.shareVaultUrl || defaultVault,
107
- dashboardApiUrl: paramDashboard || globalOverride.dashboardApiUrl || config.services.dashboardApiUrl || "https://dashboard.embarkai.io/api",
99
+ assetApiUrl: globalOverride.assetApiUrl || buildAssetApi || config.services.assetApiUrl,
100
+ // paramAssetApi ||
101
+ tssUrl: globalOverride.tssUrl || buildTss || config.services.tssUrl || defaultTss,
102
+ //paramTss ||
103
+ shareVaultUrl: globalOverride.shareVaultUrl || buildVault || config.services.shareVaultUrl || defaultVault,
104
+ // paramVault ||
105
+ dashboardApiUrl: globalOverride.dashboardApiUrl || config.services.dashboardApiUrl || "https://dashboard.embarkai.io/api",
106
+ // paramDashboard ||
108
107
  tssRequireWasm: globalOverride.tssRequireWasm ?? buildRequireWasm ?? config.services.tssRequireWasm ?? false,
109
108
  tssWasmDebug: globalOverride.tssWasmDebug ?? buildWasmDebug ?? config.services.tssWasmDebug ?? false
110
109
  };
@@ -112,8 +111,9 @@ function getServiceUrls() {
112
111
  }
113
112
  function getIframeUrl() {
114
113
  const config = DEFAULT_PROVIDER_CONFIG;
114
+ const globalServiceOverride = typeof window !== "undefined" && window.__EMBARK_SERVICES__ || {};
115
115
  const buildIframeUrl = "https://auth.embarkai.io";
116
- const iframeUrl = buildIframeUrl || config.services.iframeUrl || "https://auth.embarkai.io";
116
+ const iframeUrl = globalServiceOverride.iframeUrl || buildIframeUrl || config.services.iframeUrl || "https://auth.embarkai.io";
117
117
  return iframeUrl;
118
118
  }
119
119
  function getBlockscoutApiUrl(chainConfig) {
@@ -28707,7 +28707,7 @@ var init_package = __esm({
28707
28707
  "package.json"() {
28708
28708
  package_default = {
28709
28709
  name: "@embarkai/ui-kit",
28710
- version: "0.4.86",
28710
+ version: "0.4.87",
28711
28711
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
28712
28712
  type: "module",
28713
28713
  main: "./dist/index.cjs",
package/dist/index.d.cts CHANGED
@@ -150,6 +150,7 @@ declare global {
150
150
  __EMBARK_SERVICES__?: Partial<{
151
151
  assetApiUrl: string;
152
152
  tssUrl: string;
153
+ iframeUrl: string;
153
154
  shareVaultUrl: string;
154
155
  dashboardApiUrl: string;
155
156
  tssRequireWasm: boolean;
package/dist/index.d.ts CHANGED
@@ -150,6 +150,7 @@ declare global {
150
150
  __EMBARK_SERVICES__?: Partial<{
151
151
  assetApiUrl: string;
152
152
  tssUrl: string;
153
+ iframeUrl: string;
153
154
  shareVaultUrl: string;
154
155
  dashboardApiUrl: string;
155
156
  tssRequireWasm: boolean;
package/dist/index.js CHANGED
@@ -79,11 +79,6 @@ import { LUMIA_MAINNET } from "@embarkai/core/read";
79
79
  function getServiceUrls() {
80
80
  const config = DEFAULT_PROVIDER_CONFIG;
81
81
  const globalOverride = typeof window !== "undefined" && window.__EMBARK_SERVICES__ || {};
82
- const searchParams = typeof window !== "undefined" ? new URLSearchParams(window.location.search) : void 0;
83
- const paramAssetApi = searchParams?.get("assetApiUrl") || void 0;
84
- const paramTss = searchParams?.get("tssUrl") || void 0;
85
- const paramVault = searchParams?.get("shareVaultUrl") || void 0;
86
- const paramDashboard = searchParams?.get("dashboardApiUrl") || void 0;
87
82
  const buildAssetApi = "https://api.embarkai.io/on-ramp/api";
88
83
  const buildTss = "https://api.embarkai.io/tss";
89
84
  const buildVault = "https://api.embarkai.io/vault";
@@ -92,10 +87,14 @@ function getServiceUrls() {
92
87
  const defaultTss = "/tss";
93
88
  const defaultVault = "/vault";
94
89
  const result = {
95
- assetApiUrl: paramAssetApi || globalOverride.assetApiUrl || buildAssetApi || config.services.assetApiUrl,
96
- tssUrl: paramTss || globalOverride.tssUrl || buildTss || config.services.tssUrl || defaultTss,
97
- shareVaultUrl: paramVault || globalOverride.shareVaultUrl || buildVault || config.services.shareVaultUrl || defaultVault,
98
- dashboardApiUrl: paramDashboard || globalOverride.dashboardApiUrl || config.services.dashboardApiUrl || "https://dashboard.embarkai.io/api",
90
+ assetApiUrl: globalOverride.assetApiUrl || buildAssetApi || config.services.assetApiUrl,
91
+ // paramAssetApi ||
92
+ tssUrl: globalOverride.tssUrl || buildTss || config.services.tssUrl || defaultTss,
93
+ //paramTss ||
94
+ shareVaultUrl: globalOverride.shareVaultUrl || buildVault || config.services.shareVaultUrl || defaultVault,
95
+ // paramVault ||
96
+ dashboardApiUrl: globalOverride.dashboardApiUrl || config.services.dashboardApiUrl || "https://dashboard.embarkai.io/api",
97
+ // paramDashboard ||
99
98
  tssRequireWasm: globalOverride.tssRequireWasm ?? buildRequireWasm ?? config.services.tssRequireWasm ?? false,
100
99
  tssWasmDebug: globalOverride.tssWasmDebug ?? buildWasmDebug ?? config.services.tssWasmDebug ?? false
101
100
  };
@@ -103,8 +102,9 @@ function getServiceUrls() {
103
102
  }
104
103
  function getIframeUrl() {
105
104
  const config = DEFAULT_PROVIDER_CONFIG;
105
+ const globalServiceOverride = typeof window !== "undefined" && window.__EMBARK_SERVICES__ || {};
106
106
  const buildIframeUrl = "https://auth.embarkai.io";
107
- const iframeUrl = buildIframeUrl || config.services.iframeUrl || "https://auth.embarkai.io";
107
+ const iframeUrl = globalServiceOverride.iframeUrl || buildIframeUrl || config.services.iframeUrl || "https://auth.embarkai.io";
108
108
  return iframeUrl;
109
109
  }
110
110
  function getBlockscoutApiUrl(chainConfig) {
@@ -28605,7 +28605,7 @@ var init_package = __esm({
28605
28605
  "package.json"() {
28606
28606
  package_default = {
28607
28607
  name: "@embarkai/ui-kit",
28608
- version: "0.4.86",
28608
+ version: "0.4.87",
28609
28609
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
28610
28610
  type: "module",
28611
28611
  main: "./dist/index.cjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embarkai/ui-kit",
3
- "version": "0.4.86",
3
+ "version": "0.4.87",
4
4
  "description": "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -50,7 +50,7 @@
50
50
  "viem": "^2.52.2",
51
51
  "wagmi": "^3.7.5",
52
52
  "zustand": "^5.0.14",
53
- "@embarkai/core": "0.4.13"
53
+ "@embarkai/core": "0.4.14"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@svgr/core": "^8.1.0",