@opentabs-dev/opentabs-plugin-ynab 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/create-account.d.ts +35 -0
- package/dist/tools/create-account.d.ts.map +1 -0
- package/dist/tools/create-account.js +72 -0
- package/dist/tools/create-account.js.map +1 -0
- package/dist/tools.json +1 -1
- package/package.json +3 -3
package/dist/adapter.iife.js
CHANGED
|
@@ -15092,21 +15092,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15092
15092
|
};
|
|
15093
15093
|
var src_default = new YnabPlugin();
|
|
15094
15094
|
|
|
15095
|
-
// dist/
|
|
15095
|
+
// dist/_adapter_entry_203f761a-9742-4e1b-b19c-bdb6a0061b0a.ts
|
|
15096
15096
|
if (!globalThis.__openTabs) {
|
|
15097
15097
|
globalThis.__openTabs = {};
|
|
15098
15098
|
} else {
|
|
15099
15099
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
15100
15100
|
if (desc && !desc.writable) {
|
|
15101
|
-
const
|
|
15101
|
+
const ot2 = globalThis.__openTabs;
|
|
15102
15102
|
const newAdaptersObj = {};
|
|
15103
|
-
if (
|
|
15104
|
-
for (const key of Object.keys(
|
|
15105
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15103
|
+
if (ot2.adapters) {
|
|
15104
|
+
for (const key of Object.keys(ot2.adapters)) {
|
|
15105
|
+
const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
|
|
15106
15106
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
15107
15107
|
}
|
|
15108
15108
|
}
|
|
15109
|
-
globalThis.__openTabs = Object.assign({},
|
|
15109
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
|
|
15110
15110
|
}
|
|
15111
15111
|
}
|
|
15112
15112
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15144,16 +15144,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15144
15144
|
}
|
|
15145
15145
|
};
|
|
15146
15146
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
15147
|
-
var ot2 = globalThis.__openTabs;
|
|
15148
|
-
ot2._notifyReadinessChanged = () => {
|
|
15149
|
-
try {
|
|
15150
|
-
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
15151
|
-
if (nonce) {
|
|
15152
|
-
window.postMessage({ type: "opentabs:readiness-changed", plugin: "ynab", nonce }, "*");
|
|
15153
|
-
}
|
|
15154
|
-
} catch {
|
|
15155
|
-
}
|
|
15156
|
-
};
|
|
15157
15147
|
var existing = adapters["ynab"];
|
|
15158
15148
|
if (existing) {
|
|
15159
15149
|
if (typeof existing.teardown === "function") {
|
|
@@ -15165,7 +15155,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15165
15155
|
}
|
|
15166
15156
|
}
|
|
15167
15157
|
if (!Reflect.deleteProperty(adapters, "ynab")) {
|
|
15168
|
-
const
|
|
15158
|
+
const ot2 = globalThis.__openTabs;
|
|
15169
15159
|
const newAdapters = {};
|
|
15170
15160
|
for (const key of Object.keys(adapters)) {
|
|
15171
15161
|
if (key !== "ynab") {
|
|
@@ -15173,7 +15163,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15173
15163
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15174
15164
|
}
|
|
15175
15165
|
}
|
|
15176
|
-
globalThis.__openTabs = Object.assign({},
|
|
15166
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
|
|
15177
15167
|
}
|
|
15178
15168
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15179
15169
|
for (const tool of src_default.tools) {
|
|
@@ -15234,12 +15224,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15234
15224
|
}
|
|
15235
15225
|
}
|
|
15236
15226
|
};
|
|
15237
|
-
const
|
|
15238
|
-
if (!
|
|
15227
|
+
const ot2 = globalThis.__openTabs;
|
|
15228
|
+
if (!ot2._navigationInterceptor) {
|
|
15239
15229
|
const origPushState = history.pushState.bind(history);
|
|
15240
15230
|
const origReplaceState = history.replaceState.bind(history);
|
|
15241
15231
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15242
|
-
|
|
15232
|
+
ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15243
15233
|
history.pushState = function(...args) {
|
|
15244
15234
|
origPushState(...args);
|
|
15245
15235
|
for (const cb of callbacks.values()) {
|
|
@@ -15253,7 +15243,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15253
15243
|
}
|
|
15254
15244
|
};
|
|
15255
15245
|
}
|
|
15256
|
-
const interceptor =
|
|
15246
|
+
const interceptor = ot2._navigationInterceptor;
|
|
15257
15247
|
interceptor.callbacks.set("ynab", checkUrl);
|
|
15258
15248
|
window.addEventListener("popstate", checkUrl);
|
|
15259
15249
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15308,5 +15298,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15308
15298
|
};
|
|
15309
15299
|
delete src_default.onDeactivate;
|
|
15310
15300
|
}
|
|
15311
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["ynab"]){var a=o.adapters["ynab"];a.__adapterHash="
|
|
15301
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["ynab"]){var a=o.adapters["ynab"];a.__adapterHash="4c533e5cb35085acdb299d414cd53c6c60b96c37e9261f00fba0ddb156038d46";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,"ynab",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15312
15302
|
//# sourceMappingURL=adapter.iife.js.map
|