react-mnemonic 1.4.0 → 1.5.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/dist/index.js CHANGED
@@ -658,7 +658,18 @@ function createMnemonicOptionalBridge({
658
658
  }
659
659
  };
660
660
  }
661
- var MnemonicOptionalBridgeContext = createContext(null);
661
+ var OPTIONAL_BRIDGE_CONTEXT_KEY = /* @__PURE__ */ Symbol.for("react-mnemonic.optional-bridge-context");
662
+ function getMnemonicOptionalBridgeContext() {
663
+ const globalStore = globalThis;
664
+ const existing = globalStore[OPTIONAL_BRIDGE_CONTEXT_KEY];
665
+ if (existing) {
666
+ return existing;
667
+ }
668
+ const context = createContext(null);
669
+ globalStore[OPTIONAL_BRIDGE_CONTEXT_KEY] = context;
670
+ return context;
671
+ }
672
+ var MnemonicOptionalBridgeContext = getMnemonicOptionalBridgeContext();
662
673
 
663
674
  // src/Mnemonic/optional-bridge-provider.tsx
664
675
  function MnemonicOptionalBridgeProvider({