@opentabs-dev/opentabs-plugin-coinbase 0.0.74 → 0.0.75
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/adapter.iife.js +13 -23
- package/dist/adapter.iife.js.map +3 -3
- package/dist/tools.json +1 -1
- package/package.json +3 -3
package/dist/adapter.iife.js
CHANGED
|
@@ -14891,21 +14891,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14891
14891
|
};
|
|
14892
14892
|
var src_default = new CoinbasePlugin();
|
|
14893
14893
|
|
|
14894
|
-
// dist/
|
|
14894
|
+
// dist/_adapter_entry_20668cd1-a91a-4dc7-b9f2-a85b8ed49866.ts
|
|
14895
14895
|
if (!globalThis.__openTabs) {
|
|
14896
14896
|
globalThis.__openTabs = {};
|
|
14897
14897
|
} else {
|
|
14898
14898
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
14899
14899
|
if (desc && !desc.writable) {
|
|
14900
|
-
const
|
|
14900
|
+
const ot2 = globalThis.__openTabs;
|
|
14901
14901
|
const newAdaptersObj = {};
|
|
14902
|
-
if (
|
|
14903
|
-
for (const key of Object.keys(
|
|
14904
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
14902
|
+
if (ot2.adapters) {
|
|
14903
|
+
for (const key of Object.keys(ot2.adapters)) {
|
|
14904
|
+
const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
|
|
14905
14905
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
14906
14906
|
}
|
|
14907
14907
|
}
|
|
14908
|
-
globalThis.__openTabs = Object.assign({},
|
|
14908
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
|
|
14909
14909
|
}
|
|
14910
14910
|
}
|
|
14911
14911
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -14943,16 +14943,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14943
14943
|
}
|
|
14944
14944
|
};
|
|
14945
14945
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
14946
|
-
var ot2 = globalThis.__openTabs;
|
|
14947
|
-
ot2._notifyReadinessChanged = () => {
|
|
14948
|
-
try {
|
|
14949
|
-
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
14950
|
-
if (nonce) {
|
|
14951
|
-
window.postMessage({ type: "opentabs:readiness-changed", plugin: "coinbase", nonce }, "*");
|
|
14952
|
-
}
|
|
14953
|
-
} catch {
|
|
14954
|
-
}
|
|
14955
|
-
};
|
|
14956
14946
|
var existing = adapters["coinbase"];
|
|
14957
14947
|
if (existing) {
|
|
14958
14948
|
if (typeof existing.teardown === "function") {
|
|
@@ -14964,7 +14954,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14964
14954
|
}
|
|
14965
14955
|
}
|
|
14966
14956
|
if (!Reflect.deleteProperty(adapters, "coinbase")) {
|
|
14967
|
-
const
|
|
14957
|
+
const ot2 = globalThis.__openTabs;
|
|
14968
14958
|
const newAdapters = {};
|
|
14969
14959
|
for (const key of Object.keys(adapters)) {
|
|
14970
14960
|
if (key !== "coinbase") {
|
|
@@ -14972,7 +14962,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14972
14962
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
14973
14963
|
}
|
|
14974
14964
|
}
|
|
14975
|
-
globalThis.__openTabs = Object.assign({},
|
|
14965
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
|
|
14976
14966
|
}
|
|
14977
14967
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
14978
14968
|
for (const tool of src_default.tools) {
|
|
@@ -15033,12 +15023,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15033
15023
|
}
|
|
15034
15024
|
}
|
|
15035
15025
|
};
|
|
15036
|
-
const
|
|
15037
|
-
if (!
|
|
15026
|
+
const ot2 = globalThis.__openTabs;
|
|
15027
|
+
if (!ot2._navigationInterceptor) {
|
|
15038
15028
|
const origPushState = history.pushState.bind(history);
|
|
15039
15029
|
const origReplaceState = history.replaceState.bind(history);
|
|
15040
15030
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15041
|
-
|
|
15031
|
+
ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15042
15032
|
history.pushState = function(...args) {
|
|
15043
15033
|
origPushState(...args);
|
|
15044
15034
|
for (const cb of callbacks.values()) {
|
|
@@ -15052,7 +15042,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15052
15042
|
}
|
|
15053
15043
|
};
|
|
15054
15044
|
}
|
|
15055
|
-
const interceptor =
|
|
15045
|
+
const interceptor = ot2._navigationInterceptor;
|
|
15056
15046
|
interceptor.callbacks.set("coinbase", checkUrl);
|
|
15057
15047
|
window.addEventListener("popstate", checkUrl);
|
|
15058
15048
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15107,5 +15097,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15107
15097
|
};
|
|
15108
15098
|
delete src_default.onDeactivate;
|
|
15109
15099
|
}
|
|
15110
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["coinbase"]){var a=o.adapters["coinbase"];a.__adapterHash="
|
|
15100
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["coinbase"]){var a=o.adapters["coinbase"];a.__adapterHash="5bd04797113e106d9becd6780f6a96681735b74823c9798b812dad541f7600ce";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"coinbase",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15111
15101
|
//# sourceMappingURL=adapter.iife.js.map
|