@opentabs-dev/opentabs-plugin-zillow 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
|
@@ -14991,21 +14991,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14991
14991
|
};
|
|
14992
14992
|
var src_default = new ZillowPlugin();
|
|
14993
14993
|
|
|
14994
|
-
// dist/
|
|
14994
|
+
// dist/_adapter_entry_11b9229c-0250-4f1f-860a-4e2d4b465cb1.ts
|
|
14995
14995
|
if (!globalThis.__openTabs) {
|
|
14996
14996
|
globalThis.__openTabs = {};
|
|
14997
14997
|
} else {
|
|
14998
14998
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
14999
14999
|
if (desc && !desc.writable) {
|
|
15000
|
-
const
|
|
15000
|
+
const ot2 = globalThis.__openTabs;
|
|
15001
15001
|
const newAdaptersObj = {};
|
|
15002
|
-
if (
|
|
15003
|
-
for (const key of Object.keys(
|
|
15004
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15002
|
+
if (ot2.adapters) {
|
|
15003
|
+
for (const key of Object.keys(ot2.adapters)) {
|
|
15004
|
+
const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
|
|
15005
15005
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
15006
15006
|
}
|
|
15007
15007
|
}
|
|
15008
|
-
globalThis.__openTabs = Object.assign({},
|
|
15008
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
|
|
15009
15009
|
}
|
|
15010
15010
|
}
|
|
15011
15011
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15043,16 +15043,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15043
15043
|
}
|
|
15044
15044
|
};
|
|
15045
15045
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
15046
|
-
var ot2 = globalThis.__openTabs;
|
|
15047
|
-
ot2._notifyReadinessChanged = () => {
|
|
15048
|
-
try {
|
|
15049
|
-
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
15050
|
-
if (nonce) {
|
|
15051
|
-
window.postMessage({ type: "opentabs:readiness-changed", plugin: "zillow", nonce }, "*");
|
|
15052
|
-
}
|
|
15053
|
-
} catch {
|
|
15054
|
-
}
|
|
15055
|
-
};
|
|
15056
15046
|
var existing = adapters["zillow"];
|
|
15057
15047
|
if (existing) {
|
|
15058
15048
|
if (typeof existing.teardown === "function") {
|
|
@@ -15064,7 +15054,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15064
15054
|
}
|
|
15065
15055
|
}
|
|
15066
15056
|
if (!Reflect.deleteProperty(adapters, "zillow")) {
|
|
15067
|
-
const
|
|
15057
|
+
const ot2 = globalThis.__openTabs;
|
|
15068
15058
|
const newAdapters = {};
|
|
15069
15059
|
for (const key of Object.keys(adapters)) {
|
|
15070
15060
|
if (key !== "zillow") {
|
|
@@ -15072,7 +15062,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15072
15062
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15073
15063
|
}
|
|
15074
15064
|
}
|
|
15075
|
-
globalThis.__openTabs = Object.assign({},
|
|
15065
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
|
|
15076
15066
|
}
|
|
15077
15067
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15078
15068
|
for (const tool of src_default.tools) {
|
|
@@ -15133,12 +15123,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15133
15123
|
}
|
|
15134
15124
|
}
|
|
15135
15125
|
};
|
|
15136
|
-
const
|
|
15137
|
-
if (!
|
|
15126
|
+
const ot2 = globalThis.__openTabs;
|
|
15127
|
+
if (!ot2._navigationInterceptor) {
|
|
15138
15128
|
const origPushState = history.pushState.bind(history);
|
|
15139
15129
|
const origReplaceState = history.replaceState.bind(history);
|
|
15140
15130
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15141
|
-
|
|
15131
|
+
ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15142
15132
|
history.pushState = function(...args) {
|
|
15143
15133
|
origPushState(...args);
|
|
15144
15134
|
for (const cb of callbacks.values()) {
|
|
@@ -15152,7 +15142,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15152
15142
|
}
|
|
15153
15143
|
};
|
|
15154
15144
|
}
|
|
15155
|
-
const interceptor =
|
|
15145
|
+
const interceptor = ot2._navigationInterceptor;
|
|
15156
15146
|
interceptor.callbacks.set("zillow", checkUrl);
|
|
15157
15147
|
window.addEventListener("popstate", checkUrl);
|
|
15158
15148
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15207,5 +15197,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15207
15197
|
};
|
|
15208
15198
|
delete src_default.onDeactivate;
|
|
15209
15199
|
}
|
|
15210
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["zillow"]){var a=o.adapters["zillow"];a.__adapterHash="
|
|
15200
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["zillow"]){var a=o.adapters["zillow"];a.__adapterHash="da589dbda850cbc2ed9a3bf57876ba4403ebf522a6195dad9002f941865c60f6";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,"zillow",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15211
15201
|
//# sourceMappingURL=adapter.iife.js.map
|