@embarkai/ui-kit 0.2.1 → 0.2.2

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.2.1</title>
18
+ <title>EmbarkAI Secure Wallet - iframe version 0.2.2</title>
19
19
 
20
20
  <!-- Styles will be injected by build process -->
21
21
  <style>
@@ -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.1";
4402
+ var IFRAME_VERSION = "0.2.2";
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.1",
15547
+ version: "0.2.2",
15548
15548
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
15549
15549
  type: "module",
15550
15550
  main: "./dist/index.cjs",
@@ -19396,8 +19396,15 @@ function Provider(props) {
19396
19396
  }
19397
19397
  }, [projectId]);
19398
19398
  const contextValue = (0, import_react67.useMemo)(
19399
- () => ({ config, updateConfig, callbacks, updateCallbacks }),
19400
- [config, updateConfig, callbacks, updateCallbacks]
19399
+ () => ({
19400
+ config,
19401
+ updateConfig,
19402
+ get callbacks() {
19403
+ return callbacksRef.current;
19404
+ },
19405
+ updateCallbacks
19406
+ }),
19407
+ [config, updateConfig, updateCallbacks]
19401
19408
  );
19402
19409
  if (!!initialConfig?.wallet?.enabled)
19403
19410
  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 }) }) }) });