@opentabs-dev/opentabs-plugin-asana 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 +4 -4
- package/package.json +3 -3
package/dist/adapter.iife.js
CHANGED
|
@@ -15077,21 +15077,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15077
15077
|
};
|
|
15078
15078
|
var src_default = new AsanaPlugin();
|
|
15079
15079
|
|
|
15080
|
-
// dist/
|
|
15080
|
+
// dist/_adapter_entry_f6ccd1a6-81f7-4749-a496-c027c8991dd5.ts
|
|
15081
15081
|
if (!globalThis.__openTabs) {
|
|
15082
15082
|
globalThis.__openTabs = {};
|
|
15083
15083
|
} else {
|
|
15084
15084
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
15085
15085
|
if (desc && !desc.writable) {
|
|
15086
|
-
const
|
|
15086
|
+
const ot2 = globalThis.__openTabs;
|
|
15087
15087
|
const newAdaptersObj = {};
|
|
15088
|
-
if (
|
|
15089
|
-
for (const key of Object.keys(
|
|
15090
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15088
|
+
if (ot2.adapters) {
|
|
15089
|
+
for (const key of Object.keys(ot2.adapters)) {
|
|
15090
|
+
const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
|
|
15091
15091
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
15092
15092
|
}
|
|
15093
15093
|
}
|
|
15094
|
-
globalThis.__openTabs = Object.assign({},
|
|
15094
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
|
|
15095
15095
|
}
|
|
15096
15096
|
}
|
|
15097
15097
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15129,16 +15129,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15129
15129
|
}
|
|
15130
15130
|
};
|
|
15131
15131
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
15132
|
-
var ot2 = globalThis.__openTabs;
|
|
15133
|
-
ot2._notifyReadinessChanged = () => {
|
|
15134
|
-
try {
|
|
15135
|
-
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
15136
|
-
if (nonce) {
|
|
15137
|
-
window.postMessage({ type: "opentabs:readiness-changed", plugin: "asana", nonce }, "*");
|
|
15138
|
-
}
|
|
15139
|
-
} catch {
|
|
15140
|
-
}
|
|
15141
|
-
};
|
|
15142
15132
|
var existing = adapters["asana"];
|
|
15143
15133
|
if (existing) {
|
|
15144
15134
|
if (typeof existing.teardown === "function") {
|
|
@@ -15150,7 +15140,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15150
15140
|
}
|
|
15151
15141
|
}
|
|
15152
15142
|
if (!Reflect.deleteProperty(adapters, "asana")) {
|
|
15153
|
-
const
|
|
15143
|
+
const ot2 = globalThis.__openTabs;
|
|
15154
15144
|
const newAdapters = {};
|
|
15155
15145
|
for (const key of Object.keys(adapters)) {
|
|
15156
15146
|
if (key !== "asana") {
|
|
@@ -15158,7 +15148,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15158
15148
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15159
15149
|
}
|
|
15160
15150
|
}
|
|
15161
|
-
globalThis.__openTabs = Object.assign({},
|
|
15151
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
|
|
15162
15152
|
}
|
|
15163
15153
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15164
15154
|
for (const tool of src_default.tools) {
|
|
@@ -15219,12 +15209,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15219
15209
|
}
|
|
15220
15210
|
}
|
|
15221
15211
|
};
|
|
15222
|
-
const
|
|
15223
|
-
if (!
|
|
15212
|
+
const ot2 = globalThis.__openTabs;
|
|
15213
|
+
if (!ot2._navigationInterceptor) {
|
|
15224
15214
|
const origPushState = history.pushState.bind(history);
|
|
15225
15215
|
const origReplaceState = history.replaceState.bind(history);
|
|
15226
15216
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15227
|
-
|
|
15217
|
+
ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15228
15218
|
history.pushState = function(...args) {
|
|
15229
15219
|
origPushState(...args);
|
|
15230
15220
|
for (const cb of callbacks.values()) {
|
|
@@ -15238,7 +15228,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15238
15228
|
}
|
|
15239
15229
|
};
|
|
15240
15230
|
}
|
|
15241
|
-
const interceptor =
|
|
15231
|
+
const interceptor = ot2._navigationInterceptor;
|
|
15242
15232
|
interceptor.callbacks.set("asana", checkUrl);
|
|
15243
15233
|
window.addEventListener("popstate", checkUrl);
|
|
15244
15234
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15293,5 +15283,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15293
15283
|
};
|
|
15294
15284
|
delete src_default.onDeactivate;
|
|
15295
15285
|
}
|
|
15296
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["asana"]){var a=o.adapters["asana"];a.__adapterHash="
|
|
15286
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["asana"]){var a=o.adapters["asana"];a.__adapterHash="bdbf4011e6fe70c3ca305248385e29efcc23dafaffa56d7785ee42bc453c92dc";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,"asana",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15297
15287
|
//# sourceMappingURL=adapter.iife.js.map
|