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