@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.
- package/dist/adapter.iife.js +13 -23
- 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
|
@@ -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/
|
|
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
|
|
14522
|
+
const ot2 = globalThis.__openTabs;
|
|
14523
14523
|
const newAdaptersObj = {};
|
|
14524
|
-
if (
|
|
14525
|
-
for (const key of Object.keys(
|
|
14526
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
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({},
|
|
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
|
|
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({},
|
|
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
|
|
14659
|
-
if (!
|
|
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
|
-
|
|
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 =
|
|
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="
|
|
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
|