@opentabs-dev/opentabs-plugin-linkedin 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.
@@ -14513,21 +14513,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14513
14513
  };
14514
14514
  var src_default = new LinkedInPlugin();
14515
14515
 
14516
- // dist/_adapter_entry_0f67bd94-e7fb-4fa7-8454-4b999eaa94e9.ts
14516
+ // dist/_adapter_entry_4dd7e616-374a-4704-8285-7881f8046af5.ts
14517
14517
  if (!globalThis.__openTabs) {
14518
14518
  globalThis.__openTabs = {};
14519
14519
  } else {
14520
14520
  const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
14521
14521
  if (desc && !desc.writable) {
14522
- const ot3 = globalThis.__openTabs;
14522
+ const ot2 = globalThis.__openTabs;
14523
14523
  const newAdaptersObj = {};
14524
- if (ot3.adapters) {
14525
- for (const key of Object.keys(ot3.adapters)) {
14526
- const d = Object.getOwnPropertyDescriptor(ot3.adapters, key);
14524
+ if (ot2.adapters) {
14525
+ for (const key of Object.keys(ot2.adapters)) {
14526
+ const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
14527
14527
  if (d) Object.defineProperty(newAdaptersObj, key, d);
14528
14528
  }
14529
14529
  }
14530
- globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdaptersObj });
14530
+ globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
14531
14531
  }
14532
14532
  }
14533
14533
  if (!globalThis.__openTabs.adapters) {
@@ -14565,16 +14565,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14565
14565
  }
14566
14566
  };
14567
14567
  var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
14568
- var ot2 = globalThis.__openTabs;
14569
- ot2._notifyReadinessChanged = () => {
14570
- try {
14571
- const nonce = globalThis.__openTabs?._readinessNonce;
14572
- if (nonce) {
14573
- window.postMessage({ type: "opentabs:readiness-changed", plugin: "linkedin", nonce }, "*");
14574
- }
14575
- } catch {
14576
- }
14577
- };
14578
14568
  var existing = adapters["linkedin"];
14579
14569
  if (existing) {
14580
14570
  if (typeof existing.teardown === "function") {
@@ -14586,7 +14576,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14586
14576
  }
14587
14577
  }
14588
14578
  if (!Reflect.deleteProperty(adapters, "linkedin")) {
14589
- const ot3 = globalThis.__openTabs;
14579
+ const ot2 = globalThis.__openTabs;
14590
14580
  const newAdapters = {};
14591
14581
  for (const key of Object.keys(adapters)) {
14592
14582
  if (key !== "linkedin") {
@@ -14594,7 +14584,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14594
14584
  if (desc) Object.defineProperty(newAdapters, key, desc);
14595
14585
  }
14596
14586
  }
14597
- globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
14587
+ globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
14598
14588
  }
14599
14589
  var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
14600
14590
  for (const tool of src_default.tools) {
@@ -14655,12 +14645,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14655
14645
  }
14656
14646
  }
14657
14647
  };
14658
- const ot3 = globalThis.__openTabs;
14659
- if (!ot3._navigationInterceptor) {
14648
+ const ot2 = globalThis.__openTabs;
14649
+ if (!ot2._navigationInterceptor) {
14660
14650
  const origPushState = history.pushState.bind(history);
14661
14651
  const origReplaceState = history.replaceState.bind(history);
14662
14652
  const callbacks = /* @__PURE__ */ new Map();
14663
- ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
14653
+ ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
14664
14654
  history.pushState = function(...args) {
14665
14655
  origPushState(...args);
14666
14656
  for (const cb of callbacks.values()) {
@@ -14674,7 +14664,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14674
14664
  }
14675
14665
  };
14676
14666
  }
14677
- const interceptor = ot3._navigationInterceptor;
14667
+ const interceptor = ot2._navigationInterceptor;
14678
14668
  interceptor.callbacks.set("linkedin", checkUrl);
14679
14669
  window.addEventListener("popstate", checkUrl);
14680
14670
  window.addEventListener("hashchange", checkUrl);
@@ -14729,5 +14719,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14729
14719
  };
14730
14720
  delete src_default.onDeactivate;
14731
14721
  }
14732
- })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["linkedin"]){var a=o.adapters["linkedin"];a.__adapterHash="70ce018a5c15b0fe22979eca31339ea473db91109827f0d01c2d6603856ff7a5";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,"linkedin",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
14722
+ })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["linkedin"]){var a=o.adapters["linkedin"];a.__adapterHash="b9e23d32ea620fdc06dc17164364a2a1259a5760bd454a654d6e1f1c7913c7af";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,"linkedin",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
14733
14723
  //# sourceMappingURL=adapter.iife.js.map