@opentabs-dev/opentabs-plugin-linkedin 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.
@@ -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_4dd7e616-374a-4704-8285-7881f8046af5.ts
14516
+ // dist/_adapter_entry_dfa2ccf7-2053-45ef-ac51-c48181617753.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 ot2 = globalThis.__openTabs;
14522
+ const ot3 = globalThis.__openTabs;
14523
14523
  const newAdaptersObj = {};
14524
- if (ot2.adapters) {
14525
- for (const key of Object.keys(ot2.adapters)) {
14526
- const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
14524
+ if (ot3.adapters) {
14525
+ for (const key of Object.keys(ot3.adapters)) {
14526
+ const d = Object.getOwnPropertyDescriptor(ot3.adapters, key);
14527
14527
  if (d) Object.defineProperty(newAdaptersObj, key, d);
14528
14528
  }
14529
14529
  }
14530
- globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
14530
+ globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdaptersObj });
14531
14531
  }
14532
14532
  }
14533
14533
  if (!globalThis.__openTabs.adapters) {
@@ -14565,6 +14565,16 @@ 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
+ };
14568
14578
  var existing = adapters["linkedin"];
14569
14579
  if (existing) {
14570
14580
  if (typeof existing.teardown === "function") {
@@ -14576,7 +14586,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14576
14586
  }
14577
14587
  }
14578
14588
  if (!Reflect.deleteProperty(adapters, "linkedin")) {
14579
- const ot2 = globalThis.__openTabs;
14589
+ const ot3 = globalThis.__openTabs;
14580
14590
  const newAdapters = {};
14581
14591
  for (const key of Object.keys(adapters)) {
14582
14592
  if (key !== "linkedin") {
@@ -14584,7 +14594,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14584
14594
  if (desc) Object.defineProperty(newAdapters, key, desc);
14585
14595
  }
14586
14596
  }
14587
- globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
14597
+ globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
14588
14598
  }
14589
14599
  var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
14590
14600
  for (const tool of src_default.tools) {
@@ -14645,12 +14655,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14645
14655
  }
14646
14656
  }
14647
14657
  };
14648
- const ot2 = globalThis.__openTabs;
14649
- if (!ot2._navigationInterceptor) {
14658
+ const ot3 = globalThis.__openTabs;
14659
+ if (!ot3._navigationInterceptor) {
14650
14660
  const origPushState = history.pushState.bind(history);
14651
14661
  const origReplaceState = history.replaceState.bind(history);
14652
14662
  const callbacks = /* @__PURE__ */ new Map();
14653
- ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
14663
+ ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
14654
14664
  history.pushState = function(...args) {
14655
14665
  origPushState(...args);
14656
14666
  for (const cb of callbacks.values()) {
@@ -14664,7 +14674,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14664
14674
  }
14665
14675
  };
14666
14676
  }
14667
- const interceptor = ot2._navigationInterceptor;
14677
+ const interceptor = ot3._navigationInterceptor;
14668
14678
  interceptor.callbacks.set("linkedin", checkUrl);
14669
14679
  window.addEventListener("popstate", checkUrl);
14670
14680
  window.addEventListener("hashchange", checkUrl);
@@ -14719,5 +14729,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14719
14729
  };
14720
14730
  delete src_default.onDeactivate;
14721
14731
  }
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});}})();
14732
+ })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["linkedin"]){var a=o.adapters["linkedin"];a.__adapterHash="c6a76ed97a57482e77d51134afa22fddd6834f0e72e1878acf02cb8fb42a72d2";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});}})();
14723
14733
  //# sourceMappingURL=adapter.iife.js.map