@opentabs-dev/opentabs-plugin-gitlab 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.
@@ -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/_adapter_entry_39702e76-87b6-4016-b927-a9a9373958be.ts
15150
+ // dist/_adapter_entry_b69ccd38-24ce-4f64-9281-ca168244ec71.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 ot2 = globalThis.__openTabs;
15156
+ const ot3 = globalThis.__openTabs;
15157
15157
  const newAdaptersObj = {};
15158
- if (ot2.adapters) {
15159
- for (const key of Object.keys(ot2.adapters)) {
15160
- const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
15158
+ if (ot3.adapters) {
15159
+ for (const key of Object.keys(ot3.adapters)) {
15160
+ const d = Object.getOwnPropertyDescriptor(ot3.adapters, key);
15161
15161
  if (d) Object.defineProperty(newAdaptersObj, key, d);
15162
15162
  }
15163
15163
  }
15164
- globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
15164
+ globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdaptersObj });
15165
15165
  }
15166
15166
  }
15167
15167
  if (!globalThis.__openTabs.adapters) {
@@ -15199,6 +15199,16 @@ 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
+ };
15202
15212
  var existing = adapters["gitlab"];
15203
15213
  if (existing) {
15204
15214
  if (typeof existing.teardown === "function") {
@@ -15210,7 +15220,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15210
15220
  }
15211
15221
  }
15212
15222
  if (!Reflect.deleteProperty(adapters, "gitlab")) {
15213
- const ot2 = globalThis.__openTabs;
15223
+ const ot3 = globalThis.__openTabs;
15214
15224
  const newAdapters = {};
15215
15225
  for (const key of Object.keys(adapters)) {
15216
15226
  if (key !== "gitlab") {
@@ -15218,7 +15228,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15218
15228
  if (desc) Object.defineProperty(newAdapters, key, desc);
15219
15229
  }
15220
15230
  }
15221
- globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
15231
+ globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
15222
15232
  }
15223
15233
  var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
15224
15234
  for (const tool of src_default.tools) {
@@ -15279,12 +15289,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15279
15289
  }
15280
15290
  }
15281
15291
  };
15282
- const ot2 = globalThis.__openTabs;
15283
- if (!ot2._navigationInterceptor) {
15292
+ const ot3 = globalThis.__openTabs;
15293
+ if (!ot3._navigationInterceptor) {
15284
15294
  const origPushState = history.pushState.bind(history);
15285
15295
  const origReplaceState = history.replaceState.bind(history);
15286
15296
  const callbacks = /* @__PURE__ */ new Map();
15287
- ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
15297
+ ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
15288
15298
  history.pushState = function(...args) {
15289
15299
  origPushState(...args);
15290
15300
  for (const cb of callbacks.values()) {
@@ -15298,7 +15308,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15298
15308
  }
15299
15309
  };
15300
15310
  }
15301
- const interceptor = ot2._navigationInterceptor;
15311
+ const interceptor = ot3._navigationInterceptor;
15302
15312
  interceptor.callbacks.set("gitlab", checkUrl);
15303
15313
  window.addEventListener("popstate", checkUrl);
15304
15314
  window.addEventListener("hashchange", checkUrl);
@@ -15353,5 +15363,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15353
15363
  };
15354
15364
  delete src_default.onDeactivate;
15355
15365
  }
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});}})();
15366
+ })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["gitlab"]){var a=o.adapters["gitlab"];a.__adapterHash="2d109d246931991018e0888facfc37a1de4903ee0ff3f7f27065098f4db13f3e";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});}})();
15357
15367
  //# sourceMappingURL=adapter.iife.js.map