@opentabs-dev/opentabs-plugin-bitbucket 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 +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_9b56cec8-f99d-4243-9467-2abd8bb5dfdf.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 ot3 = globalThis.__openTabs;
|
|
15173
15173
|
const newAdaptersObj = {};
|
|
15174
|
-
if (
|
|
15175
|
-
for (const key of Object.keys(
|
|
15176
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15174
|
+
if (ot3.adapters) {
|
|
15175
|
+
for (const key of Object.keys(ot3.adapters)) {
|
|
15176
|
+
const d = Object.getOwnPropertyDescriptor(ot3.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({}, ot3, { adapters: newAdaptersObj });
|
|
15181
15181
|
}
|
|
15182
15182
|
}
|
|
15183
15183
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15215,6 +15215,16 @@ 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
|
+
};
|
|
15218
15228
|
var existing = adapters["bitbucket"];
|
|
15219
15229
|
if (existing) {
|
|
15220
15230
|
if (typeof existing.teardown === "function") {
|
|
@@ -15226,7 +15236,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15226
15236
|
}
|
|
15227
15237
|
}
|
|
15228
15238
|
if (!Reflect.deleteProperty(adapters, "bitbucket")) {
|
|
15229
|
-
const
|
|
15239
|
+
const ot3 = globalThis.__openTabs;
|
|
15230
15240
|
const newAdapters = {};
|
|
15231
15241
|
for (const key of Object.keys(adapters)) {
|
|
15232
15242
|
if (key !== "bitbucket") {
|
|
@@ -15234,7 +15244,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15234
15244
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15235
15245
|
}
|
|
15236
15246
|
}
|
|
15237
|
-
globalThis.__openTabs = Object.assign({},
|
|
15247
|
+
globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
|
|
15238
15248
|
}
|
|
15239
15249
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15240
15250
|
for (const tool of src_default.tools) {
|
|
@@ -15295,12 +15305,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15295
15305
|
}
|
|
15296
15306
|
}
|
|
15297
15307
|
};
|
|
15298
|
-
const
|
|
15299
|
-
if (!
|
|
15308
|
+
const ot3 = globalThis.__openTabs;
|
|
15309
|
+
if (!ot3._navigationInterceptor) {
|
|
15300
15310
|
const origPushState = history.pushState.bind(history);
|
|
15301
15311
|
const origReplaceState = history.replaceState.bind(history);
|
|
15302
15312
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15303
|
-
|
|
15313
|
+
ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15304
15314
|
history.pushState = function(...args) {
|
|
15305
15315
|
origPushState(...args);
|
|
15306
15316
|
for (const cb of callbacks.values()) {
|
|
@@ -15314,7 +15324,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15314
15324
|
}
|
|
15315
15325
|
};
|
|
15316
15326
|
}
|
|
15317
|
-
const interceptor =
|
|
15327
|
+
const interceptor = ot3._navigationInterceptor;
|
|
15318
15328
|
interceptor.callbacks.set("bitbucket", checkUrl);
|
|
15319
15329
|
window.addEventListener("popstate", checkUrl);
|
|
15320
15330
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15369,5 +15379,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15369
15379
|
};
|
|
15370
15380
|
delete src_default.onDeactivate;
|
|
15371
15381
|
}
|
|
15372
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["bitbucket"]){var a=o.adapters["bitbucket"];a.__adapterHash="
|
|
15382
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["bitbucket"]){var a=o.adapters["bitbucket"];a.__adapterHash="816bc0ab754b9af01abc3751e4cb50f96b064463b8a56c7769f5eca9a3b49bf4";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});}})();
|
|
15373
15383
|
//# sourceMappingURL=adapter.iife.js.map
|