@opentabs-dev/opentabs-plugin-zillow 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.
- package/dist/adapter.iife.js +23 -13
- 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_ae4774d5-75fa-420a-ba61-c198757b64f2.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 ot3 = globalThis.__openTabs;
|
|
15001
15001
|
const newAdaptersObj = {};
|
|
15002
|
-
if (
|
|
15003
|
-
for (const key of Object.keys(
|
|
15004
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15002
|
+
if (ot3.adapters) {
|
|
15003
|
+
for (const key of Object.keys(ot3.adapters)) {
|
|
15004
|
+
const d = Object.getOwnPropertyDescriptor(ot3.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({}, ot3, { adapters: newAdaptersObj });
|
|
15009
15009
|
}
|
|
15010
15010
|
}
|
|
15011
15011
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15043,6 +15043,16 @@ 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
|
+
};
|
|
15046
15056
|
var existing = adapters["zillow"];
|
|
15047
15057
|
if (existing) {
|
|
15048
15058
|
if (typeof existing.teardown === "function") {
|
|
@@ -15054,7 +15064,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15054
15064
|
}
|
|
15055
15065
|
}
|
|
15056
15066
|
if (!Reflect.deleteProperty(adapters, "zillow")) {
|
|
15057
|
-
const
|
|
15067
|
+
const ot3 = globalThis.__openTabs;
|
|
15058
15068
|
const newAdapters = {};
|
|
15059
15069
|
for (const key of Object.keys(adapters)) {
|
|
15060
15070
|
if (key !== "zillow") {
|
|
@@ -15062,7 +15072,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15062
15072
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15063
15073
|
}
|
|
15064
15074
|
}
|
|
15065
|
-
globalThis.__openTabs = Object.assign({},
|
|
15075
|
+
globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
|
|
15066
15076
|
}
|
|
15067
15077
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15068
15078
|
for (const tool of src_default.tools) {
|
|
@@ -15123,12 +15133,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15123
15133
|
}
|
|
15124
15134
|
}
|
|
15125
15135
|
};
|
|
15126
|
-
const
|
|
15127
|
-
if (!
|
|
15136
|
+
const ot3 = globalThis.__openTabs;
|
|
15137
|
+
if (!ot3._navigationInterceptor) {
|
|
15128
15138
|
const origPushState = history.pushState.bind(history);
|
|
15129
15139
|
const origReplaceState = history.replaceState.bind(history);
|
|
15130
15140
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15131
|
-
|
|
15141
|
+
ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15132
15142
|
history.pushState = function(...args) {
|
|
15133
15143
|
origPushState(...args);
|
|
15134
15144
|
for (const cb of callbacks.values()) {
|
|
@@ -15142,7 +15152,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15142
15152
|
}
|
|
15143
15153
|
};
|
|
15144
15154
|
}
|
|
15145
|
-
const interceptor =
|
|
15155
|
+
const interceptor = ot3._navigationInterceptor;
|
|
15146
15156
|
interceptor.callbacks.set("zillow", checkUrl);
|
|
15147
15157
|
window.addEventListener("popstate", checkUrl);
|
|
15148
15158
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15197,5 +15207,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15197
15207
|
};
|
|
15198
15208
|
delete src_default.onDeactivate;
|
|
15199
15209
|
}
|
|
15200
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["zillow"]){var a=o.adapters["zillow"];a.__adapterHash="
|
|
15210
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["zillow"]){var a=o.adapters["zillow"];a.__adapterHash="80dda70c5c11ed4ddde9ea71f568a930949896500e260a88dda432bab2ff14d8";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});}})();
|
|
15201
15211
|
//# sourceMappingURL=adapter.iife.js.map
|