@embarkai/ui-kit 0.2.0 → 0.2.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/dist/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/iframe/index.html
CHANGED
|
@@ -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.2.
|
|
18
|
+
<title>EmbarkAI Secure Wallet - iframe version 0.2.1</title>
|
|
19
19
|
|
|
20
20
|
<!-- Styles will be injected by build process -->
|
|
21
21
|
<style>
|
package/dist/iframe/main.js
CHANGED
|
@@ -4399,7 +4399,7 @@ var SigningManager = class extends TokenRefreshApiClient {
|
|
|
4399
4399
|
};
|
|
4400
4400
|
|
|
4401
4401
|
// src/iframe/main.ts
|
|
4402
|
-
var IFRAME_VERSION = "0.2.
|
|
4402
|
+
var IFRAME_VERSION = "0.2.1";
|
|
4403
4403
|
var IframeWallet = class {
|
|
4404
4404
|
constructor() {
|
|
4405
4405
|
console.log("=".repeat(60));
|
package/dist/index.cjs
CHANGED
|
@@ -15544,7 +15544,7 @@ var init_package = __esm({
|
|
|
15544
15544
|
"package.json"() {
|
|
15545
15545
|
package_default = {
|
|
15546
15546
|
name: "@embarkai/ui-kit",
|
|
15547
|
-
version: "0.2.
|
|
15547
|
+
version: "0.2.1",
|
|
15548
15548
|
description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
|
|
15549
15549
|
type: "module",
|
|
15550
15550
|
main: "./dist/index.cjs",
|
|
@@ -19343,6 +19343,11 @@ function Provider(props) {
|
|
|
19343
19343
|
if (updates.translations) next.translations = { ...next.translations, ...updates.translations };
|
|
19344
19344
|
config.current = next;
|
|
19345
19345
|
}, []);
|
|
19346
|
+
const updateCallbacks = (0, import_react67.useCallback)((updates) => {
|
|
19347
|
+
const prev = callbacksRef.current;
|
|
19348
|
+
const next = updates ? { ...prev, ...updates } : void 0;
|
|
19349
|
+
callbacksRef.current = next;
|
|
19350
|
+
}, []);
|
|
19346
19351
|
(0, import_react67.useEffect)(() => {
|
|
19347
19352
|
if (typeof window === "undefined" || !projectId) return;
|
|
19348
19353
|
const mergedConfig = (0, import_lodash_es6.merge)(DEFAULT_PROVIDER_CONFIG, initialConfig);
|
|
@@ -19390,7 +19395,10 @@ function Provider(props) {
|
|
|
19390
19395
|
console.error("[PROVIDER] Error setting up iframe manager:", error);
|
|
19391
19396
|
}
|
|
19392
19397
|
}, [projectId]);
|
|
19393
|
-
const contextValue = (0, import_react67.useMemo)(
|
|
19398
|
+
const contextValue = (0, import_react67.useMemo)(
|
|
19399
|
+
() => ({ config, updateConfig, callbacks, updateCallbacks }),
|
|
19400
|
+
[config, updateConfig, callbacks, updateCallbacks]
|
|
19401
|
+
);
|
|
19394
19402
|
if (!!initialConfig?.wallet?.enabled)
|
|
19395
19403
|
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(WagmiProvider2, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(UIContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(RainbowKitProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(SessionProvider, { children }) }) }) });
|
|
19396
19404
|
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(WagmiProvider2, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(UIContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(SessionProvider, { children }) }) });
|