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/core.cjs +12 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +12 -1
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/optional.cjs +12 -1
- package/dist/optional.cjs.map +1 -1
- package/dist/optional.js +12 -1
- package/dist/optional.js.map +1 -1
- package/dist/schema.cjs +12 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +12 -1
- package/dist/schema.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -658,7 +658,18 @@ function createMnemonicOptionalBridge({
|
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
|
-
var
|
|
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({
|