@opentabs-dev/opentabs-plugin-bitbucket 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
|
@@ -15163,21 +15163,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15163
15163
|
};
|
|
15164
15164
|
var src_default = new BitbucketPlugin();
|
|
15165
15165
|
|
|
15166
|
-
// dist/
|
|
15166
|
+
// dist/_adapter_entry_e8ad96d4-6c09-4b8e-bbae-c90fd4c380b3.ts
|
|
15167
15167
|
if (!globalThis.__openTabs) {
|
|
15168
15168
|
globalThis.__openTabs = {};
|
|
15169
15169
|
} else {
|
|
15170
15170
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
15171
15171
|
if (desc && !desc.writable) {
|
|
15172
|
-
const
|
|
15172
|
+
const ot2 = globalThis.__openTabs;
|
|
15173
15173
|
const newAdaptersObj = {};
|
|
15174
|
-
if (
|
|
15175
|
-
for (const key of Object.keys(
|
|
15176
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15174
|
+
if (ot2.adapters) {
|
|
15175
|
+
for (const key of Object.keys(ot2.adapters)) {
|
|
15176
|
+
const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
|
|
15177
15177
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
15178
15178
|
}
|
|
15179
15179
|
}
|
|
15180
|
-
globalThis.__openTabs = Object.assign({},
|
|
15180
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
|
|
15181
15181
|
}
|
|
15182
15182
|
}
|
|
15183
15183
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15215,16 +15215,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15215
15215
|
}
|
|
15216
15216
|
};
|
|
15217
15217
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
15218
|
-
var ot2 = globalThis.__openTabs;
|
|
15219
|
-
ot2._notifyReadinessChanged = () => {
|
|
15220
|
-
try {
|
|
15221
|
-
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
15222
|
-
if (nonce) {
|
|
15223
|
-
window.postMessage({ type: "opentabs:readiness-changed", plugin: "bitbucket", nonce }, "*");
|
|
15224
|
-
}
|
|
15225
|
-
} catch {
|
|
15226
|
-
}
|
|
15227
|
-
};
|
|
15228
15218
|
var existing = adapters["bitbucket"];
|
|
15229
15219
|
if (existing) {
|
|
15230
15220
|
if (typeof existing.teardown === "function") {
|
|
@@ -15236,7 +15226,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15236
15226
|
}
|
|
15237
15227
|
}
|
|
15238
15228
|
if (!Reflect.deleteProperty(adapters, "bitbucket")) {
|
|
15239
|
-
const
|
|
15229
|
+
const ot2 = globalThis.__openTabs;
|
|
15240
15230
|
const newAdapters = {};
|
|
15241
15231
|
for (const key of Object.keys(adapters)) {
|
|
15242
15232
|
if (key !== "bitbucket") {
|
|
@@ -15244,7 +15234,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15244
15234
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15245
15235
|
}
|
|
15246
15236
|
}
|
|
15247
|
-
globalThis.__openTabs = Object.assign({},
|
|
15237
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
|
|
15248
15238
|
}
|
|
15249
15239
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15250
15240
|
for (const tool of src_default.tools) {
|
|
@@ -15305,12 +15295,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15305
15295
|
}
|
|
15306
15296
|
}
|
|
15307
15297
|
};
|
|
15308
|
-
const
|
|
15309
|
-
if (!
|
|
15298
|
+
const ot2 = globalThis.__openTabs;
|
|
15299
|
+
if (!ot2._navigationInterceptor) {
|
|
15310
15300
|
const origPushState = history.pushState.bind(history);
|
|
15311
15301
|
const origReplaceState = history.replaceState.bind(history);
|
|
15312
15302
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15313
|
-
|
|
15303
|
+
ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15314
15304
|
history.pushState = function(...args) {
|
|
15315
15305
|
origPushState(...args);
|
|
15316
15306
|
for (const cb of callbacks.values()) {
|
|
@@ -15324,7 +15314,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15324
15314
|
}
|
|
15325
15315
|
};
|
|
15326
15316
|
}
|
|
15327
|
-
const interceptor =
|
|
15317
|
+
const interceptor = ot2._navigationInterceptor;
|
|
15328
15318
|
interceptor.callbacks.set("bitbucket", checkUrl);
|
|
15329
15319
|
window.addEventListener("popstate", checkUrl);
|
|
15330
15320
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15379,5 +15369,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15379
15369
|
};
|
|
15380
15370
|
delete src_default.onDeactivate;
|
|
15381
15371
|
}
|
|
15382
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["bitbucket"]){var a=o.adapters["bitbucket"];a.__adapterHash="
|
|
15372
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["bitbucket"]){var a=o.adapters["bitbucket"];a.__adapterHash="5a70231d471c8a586b3f295a4d87f1b81e9c321415843f97dc506ccbc6aff46f";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,"bitbucket",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15383
15373
|
//# sourceMappingURL=adapter.iife.js.map
|