@opentabs-dev/opentabs-plugin-gitlab 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
CHANGED
|
@@ -15147,21 +15147,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15147
15147
|
};
|
|
15148
15148
|
var src_default = new GitLabPlugin();
|
|
15149
15149
|
|
|
15150
|
-
// dist/
|
|
15150
|
+
// dist/_adapter_entry_39702e76-87b6-4016-b927-a9a9373958be.ts
|
|
15151
15151
|
if (!globalThis.__openTabs) {
|
|
15152
15152
|
globalThis.__openTabs = {};
|
|
15153
15153
|
} else {
|
|
15154
15154
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
15155
15155
|
if (desc && !desc.writable) {
|
|
15156
|
-
const
|
|
15156
|
+
const ot2 = globalThis.__openTabs;
|
|
15157
15157
|
const newAdaptersObj = {};
|
|
15158
|
-
if (
|
|
15159
|
-
for (const key of Object.keys(
|
|
15160
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15158
|
+
if (ot2.adapters) {
|
|
15159
|
+
for (const key of Object.keys(ot2.adapters)) {
|
|
15160
|
+
const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
|
|
15161
15161
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
15162
15162
|
}
|
|
15163
15163
|
}
|
|
15164
|
-
globalThis.__openTabs = Object.assign({},
|
|
15164
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
|
|
15165
15165
|
}
|
|
15166
15166
|
}
|
|
15167
15167
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15199,16 +15199,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15199
15199
|
}
|
|
15200
15200
|
};
|
|
15201
15201
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
15202
|
-
var ot2 = globalThis.__openTabs;
|
|
15203
|
-
ot2._notifyReadinessChanged = () => {
|
|
15204
|
-
try {
|
|
15205
|
-
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
15206
|
-
if (nonce) {
|
|
15207
|
-
window.postMessage({ type: "opentabs:readiness-changed", plugin: "gitlab", nonce }, "*");
|
|
15208
|
-
}
|
|
15209
|
-
} catch {
|
|
15210
|
-
}
|
|
15211
|
-
};
|
|
15212
15202
|
var existing = adapters["gitlab"];
|
|
15213
15203
|
if (existing) {
|
|
15214
15204
|
if (typeof existing.teardown === "function") {
|
|
@@ -15220,7 +15210,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15220
15210
|
}
|
|
15221
15211
|
}
|
|
15222
15212
|
if (!Reflect.deleteProperty(adapters, "gitlab")) {
|
|
15223
|
-
const
|
|
15213
|
+
const ot2 = globalThis.__openTabs;
|
|
15224
15214
|
const newAdapters = {};
|
|
15225
15215
|
for (const key of Object.keys(adapters)) {
|
|
15226
15216
|
if (key !== "gitlab") {
|
|
@@ -15228,7 +15218,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15228
15218
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15229
15219
|
}
|
|
15230
15220
|
}
|
|
15231
|
-
globalThis.__openTabs = Object.assign({},
|
|
15221
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
|
|
15232
15222
|
}
|
|
15233
15223
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15234
15224
|
for (const tool of src_default.tools) {
|
|
@@ -15289,12 +15279,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15289
15279
|
}
|
|
15290
15280
|
}
|
|
15291
15281
|
};
|
|
15292
|
-
const
|
|
15293
|
-
if (!
|
|
15282
|
+
const ot2 = globalThis.__openTabs;
|
|
15283
|
+
if (!ot2._navigationInterceptor) {
|
|
15294
15284
|
const origPushState = history.pushState.bind(history);
|
|
15295
15285
|
const origReplaceState = history.replaceState.bind(history);
|
|
15296
15286
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15297
|
-
|
|
15287
|
+
ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15298
15288
|
history.pushState = function(...args) {
|
|
15299
15289
|
origPushState(...args);
|
|
15300
15290
|
for (const cb of callbacks.values()) {
|
|
@@ -15308,7 +15298,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15308
15298
|
}
|
|
15309
15299
|
};
|
|
15310
15300
|
}
|
|
15311
|
-
const interceptor =
|
|
15301
|
+
const interceptor = ot2._navigationInterceptor;
|
|
15312
15302
|
interceptor.callbacks.set("gitlab", checkUrl);
|
|
15313
15303
|
window.addEventListener("popstate", checkUrl);
|
|
15314
15304
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15363,5 +15353,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15363
15353
|
};
|
|
15364
15354
|
delete src_default.onDeactivate;
|
|
15365
15355
|
}
|
|
15366
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["gitlab"]){var a=o.adapters["gitlab"];a.__adapterHash="
|
|
15356
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["gitlab"]){var a=o.adapters["gitlab"];a.__adapterHash="caa4eb3129760f752e74f172634adf3fda1b5640642dfe7241313fc2f7be16fb";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,"gitlab",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15367
15357
|
//# sourceMappingURL=adapter.iife.js.map
|