@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.
package/dist/index.js CHANGED
@@ -15470,7 +15470,7 @@ var init_package = __esm({
15470
15470
  "package.json"() {
15471
15471
  package_default = {
15472
15472
  name: "@embarkai/ui-kit",
15473
- version: "0.2.1",
15473
+ version: "0.2.2",
15474
15474
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
15475
15475
  type: "module",
15476
15476
  main: "./dist/index.cjs",
@@ -19352,8 +19352,15 @@ function Provider(props) {
19352
19352
  }
19353
19353
  }, [projectId]);
19354
19354
  const contextValue = useMemo10(
19355
- () => ({ config, updateConfig, callbacks, updateCallbacks }),
19356
- [config, updateConfig, callbacks, updateCallbacks]
19355
+ () => ({
19356
+ config,
19357
+ updateConfig,
19358
+ get callbacks() {
19359
+ return callbacksRef.current;
19360
+ },
19361
+ updateCallbacks
19362
+ }),
19363
+ [config, updateConfig, updateCallbacks]
19357
19364
  );
19358
19365
  if (!!initialConfig?.wallet?.enabled)
19359
19366
  return /* @__PURE__ */ jsx96(WagmiProvider2, { children: /* @__PURE__ */ jsx96(UIContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx96(RainbowKitProvider, { children: /* @__PURE__ */ jsx96(SessionProvider, { children }) }) }) });