@opentabs-dev/opentabs-plugin-asana 0.0.75 → 0.0.76
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 +23 -13
- 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_757ab615-7777-4490-8eec-5cde7eafffc8.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 ot3 = globalThis.__openTabs;
|
|
15087
15087
|
const newAdaptersObj = {};
|
|
15088
|
-
if (
|
|
15089
|
-
for (const key of Object.keys(
|
|
15090
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15088
|
+
if (ot3.adapters) {
|
|
15089
|
+
for (const key of Object.keys(ot3.adapters)) {
|
|
15090
|
+
const d = Object.getOwnPropertyDescriptor(ot3.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({}, ot3, { adapters: newAdaptersObj });
|
|
15095
15095
|
}
|
|
15096
15096
|
}
|
|
15097
15097
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15129,6 +15129,16 @@ 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
|
+
};
|
|
15132
15142
|
var existing = adapters["asana"];
|
|
15133
15143
|
if (existing) {
|
|
15134
15144
|
if (typeof existing.teardown === "function") {
|
|
@@ -15140,7 +15150,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15140
15150
|
}
|
|
15141
15151
|
}
|
|
15142
15152
|
if (!Reflect.deleteProperty(adapters, "asana")) {
|
|
15143
|
-
const
|
|
15153
|
+
const ot3 = globalThis.__openTabs;
|
|
15144
15154
|
const newAdapters = {};
|
|
15145
15155
|
for (const key of Object.keys(adapters)) {
|
|
15146
15156
|
if (key !== "asana") {
|
|
@@ -15148,7 +15158,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15148
15158
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15149
15159
|
}
|
|
15150
15160
|
}
|
|
15151
|
-
globalThis.__openTabs = Object.assign({},
|
|
15161
|
+
globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
|
|
15152
15162
|
}
|
|
15153
15163
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15154
15164
|
for (const tool of src_default.tools) {
|
|
@@ -15209,12 +15219,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15209
15219
|
}
|
|
15210
15220
|
}
|
|
15211
15221
|
};
|
|
15212
|
-
const
|
|
15213
|
-
if (!
|
|
15222
|
+
const ot3 = globalThis.__openTabs;
|
|
15223
|
+
if (!ot3._navigationInterceptor) {
|
|
15214
15224
|
const origPushState = history.pushState.bind(history);
|
|
15215
15225
|
const origReplaceState = history.replaceState.bind(history);
|
|
15216
15226
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15217
|
-
|
|
15227
|
+
ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15218
15228
|
history.pushState = function(...args) {
|
|
15219
15229
|
origPushState(...args);
|
|
15220
15230
|
for (const cb of callbacks.values()) {
|
|
@@ -15228,7 +15238,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15228
15238
|
}
|
|
15229
15239
|
};
|
|
15230
15240
|
}
|
|
15231
|
-
const interceptor =
|
|
15241
|
+
const interceptor = ot3._navigationInterceptor;
|
|
15232
15242
|
interceptor.callbacks.set("asana", checkUrl);
|
|
15233
15243
|
window.addEventListener("popstate", checkUrl);
|
|
15234
15244
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15283,5 +15293,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15283
15293
|
};
|
|
15284
15294
|
delete src_default.onDeactivate;
|
|
15285
15295
|
}
|
|
15286
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["asana"]){var a=o.adapters["asana"];a.__adapterHash="
|
|
15296
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["asana"]){var a=o.adapters["asana"];a.__adapterHash="6a278fc4dca5d4a0be58dcbb98de43ab37e2be84e67a405f5bdef005fc2b270d";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});}})();
|
|
15287
15297
|
//# sourceMappingURL=adapter.iife.js.map
|