@opentabs-dev/opentabs-plugin-pinterest 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
|
@@ -15070,21 +15070,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15070
15070
|
};
|
|
15071
15071
|
var src_default = new PinterestPlugin();
|
|
15072
15072
|
|
|
15073
|
-
// dist/
|
|
15073
|
+
// dist/_adapter_entry_d859a0ef-63c2-49a5-af32-1b632845ea23.ts
|
|
15074
15074
|
if (!globalThis.__openTabs) {
|
|
15075
15075
|
globalThis.__openTabs = {};
|
|
15076
15076
|
} else {
|
|
15077
15077
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
15078
15078
|
if (desc && !desc.writable) {
|
|
15079
|
-
const
|
|
15079
|
+
const ot2 = globalThis.__openTabs;
|
|
15080
15080
|
const newAdaptersObj = {};
|
|
15081
|
-
if (
|
|
15082
|
-
for (const key of Object.keys(
|
|
15083
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15081
|
+
if (ot2.adapters) {
|
|
15082
|
+
for (const key of Object.keys(ot2.adapters)) {
|
|
15083
|
+
const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
|
|
15084
15084
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
15085
15085
|
}
|
|
15086
15086
|
}
|
|
15087
|
-
globalThis.__openTabs = Object.assign({},
|
|
15087
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
|
|
15088
15088
|
}
|
|
15089
15089
|
}
|
|
15090
15090
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15122,16 +15122,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15122
15122
|
}
|
|
15123
15123
|
};
|
|
15124
15124
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
15125
|
-
var ot2 = globalThis.__openTabs;
|
|
15126
|
-
ot2._notifyReadinessChanged = () => {
|
|
15127
|
-
try {
|
|
15128
|
-
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
15129
|
-
if (nonce) {
|
|
15130
|
-
window.postMessage({ type: "opentabs:readiness-changed", plugin: "pinterest", nonce }, "*");
|
|
15131
|
-
}
|
|
15132
|
-
} catch {
|
|
15133
|
-
}
|
|
15134
|
-
};
|
|
15135
15125
|
var existing = adapters["pinterest"];
|
|
15136
15126
|
if (existing) {
|
|
15137
15127
|
if (typeof existing.teardown === "function") {
|
|
@@ -15143,7 +15133,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15143
15133
|
}
|
|
15144
15134
|
}
|
|
15145
15135
|
if (!Reflect.deleteProperty(adapters, "pinterest")) {
|
|
15146
|
-
const
|
|
15136
|
+
const ot2 = globalThis.__openTabs;
|
|
15147
15137
|
const newAdapters = {};
|
|
15148
15138
|
for (const key of Object.keys(adapters)) {
|
|
15149
15139
|
if (key !== "pinterest") {
|
|
@@ -15151,7 +15141,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15151
15141
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15152
15142
|
}
|
|
15153
15143
|
}
|
|
15154
|
-
globalThis.__openTabs = Object.assign({},
|
|
15144
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
|
|
15155
15145
|
}
|
|
15156
15146
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15157
15147
|
for (const tool of src_default.tools) {
|
|
@@ -15212,12 +15202,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15212
15202
|
}
|
|
15213
15203
|
}
|
|
15214
15204
|
};
|
|
15215
|
-
const
|
|
15216
|
-
if (!
|
|
15205
|
+
const ot2 = globalThis.__openTabs;
|
|
15206
|
+
if (!ot2._navigationInterceptor) {
|
|
15217
15207
|
const origPushState = history.pushState.bind(history);
|
|
15218
15208
|
const origReplaceState = history.replaceState.bind(history);
|
|
15219
15209
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15220
|
-
|
|
15210
|
+
ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15221
15211
|
history.pushState = function(...args) {
|
|
15222
15212
|
origPushState(...args);
|
|
15223
15213
|
for (const cb of callbacks.values()) {
|
|
@@ -15231,7 +15221,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15231
15221
|
}
|
|
15232
15222
|
};
|
|
15233
15223
|
}
|
|
15234
|
-
const interceptor =
|
|
15224
|
+
const interceptor = ot2._navigationInterceptor;
|
|
15235
15225
|
interceptor.callbacks.set("pinterest", checkUrl);
|
|
15236
15226
|
window.addEventListener("popstate", checkUrl);
|
|
15237
15227
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15286,5 +15276,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15286
15276
|
};
|
|
15287
15277
|
delete src_default.onDeactivate;
|
|
15288
15278
|
}
|
|
15289
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["pinterest"]){var a=o.adapters["pinterest"];a.__adapterHash="
|
|
15279
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["pinterest"]){var a=o.adapters["pinterest"];a.__adapterHash="e7a25079f6bf410d4af483f53b7331b1a5bd7a0204e0aa0b8270fd094af5e2f1";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,"pinterest",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15290
15280
|
//# sourceMappingURL=adapter.iife.js.map
|