@opentabs-dev/opentabs-plugin-netlify 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 +5 -5
- package/package.json +3 -3
package/dist/adapter.iife.js
CHANGED
|
@@ -15516,21 +15516,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15516
15516
|
};
|
|
15517
15517
|
var src_default = new NetlifyPlugin();
|
|
15518
15518
|
|
|
15519
|
-
// dist/
|
|
15519
|
+
// dist/_adapter_entry_efda9825-8d48-4f78-baf8-3d129ecc73f5.ts
|
|
15520
15520
|
if (!globalThis.__openTabs) {
|
|
15521
15521
|
globalThis.__openTabs = {};
|
|
15522
15522
|
} else {
|
|
15523
15523
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
15524
15524
|
if (desc && !desc.writable) {
|
|
15525
|
-
const
|
|
15525
|
+
const ot3 = globalThis.__openTabs;
|
|
15526
15526
|
const newAdaptersObj = {};
|
|
15527
|
-
if (
|
|
15528
|
-
for (const key of Object.keys(
|
|
15529
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15527
|
+
if (ot3.adapters) {
|
|
15528
|
+
for (const key of Object.keys(ot3.adapters)) {
|
|
15529
|
+
const d = Object.getOwnPropertyDescriptor(ot3.adapters, key);
|
|
15530
15530
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
15531
15531
|
}
|
|
15532
15532
|
}
|
|
15533
|
-
globalThis.__openTabs = Object.assign({},
|
|
15533
|
+
globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdaptersObj });
|
|
15534
15534
|
}
|
|
15535
15535
|
}
|
|
15536
15536
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15568,6 +15568,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15568
15568
|
}
|
|
15569
15569
|
};
|
|
15570
15570
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
15571
|
+
var ot2 = globalThis.__openTabs;
|
|
15572
|
+
ot2._notifyReadinessChanged = () => {
|
|
15573
|
+
try {
|
|
15574
|
+
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
15575
|
+
if (nonce) {
|
|
15576
|
+
window.postMessage({ type: "opentabs:readiness-changed", plugin: "netlify", nonce }, "*");
|
|
15577
|
+
}
|
|
15578
|
+
} catch {
|
|
15579
|
+
}
|
|
15580
|
+
};
|
|
15571
15581
|
var existing = adapters["netlify"];
|
|
15572
15582
|
if (existing) {
|
|
15573
15583
|
if (typeof existing.teardown === "function") {
|
|
@@ -15579,7 +15589,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15579
15589
|
}
|
|
15580
15590
|
}
|
|
15581
15591
|
if (!Reflect.deleteProperty(adapters, "netlify")) {
|
|
15582
|
-
const
|
|
15592
|
+
const ot3 = globalThis.__openTabs;
|
|
15583
15593
|
const newAdapters = {};
|
|
15584
15594
|
for (const key of Object.keys(adapters)) {
|
|
15585
15595
|
if (key !== "netlify") {
|
|
@@ -15587,7 +15597,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15587
15597
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15588
15598
|
}
|
|
15589
15599
|
}
|
|
15590
|
-
globalThis.__openTabs = Object.assign({},
|
|
15600
|
+
globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
|
|
15591
15601
|
}
|
|
15592
15602
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15593
15603
|
for (const tool of src_default.tools) {
|
|
@@ -15648,12 +15658,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15648
15658
|
}
|
|
15649
15659
|
}
|
|
15650
15660
|
};
|
|
15651
|
-
const
|
|
15652
|
-
if (!
|
|
15661
|
+
const ot3 = globalThis.__openTabs;
|
|
15662
|
+
if (!ot3._navigationInterceptor) {
|
|
15653
15663
|
const origPushState = history.pushState.bind(history);
|
|
15654
15664
|
const origReplaceState = history.replaceState.bind(history);
|
|
15655
15665
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15656
|
-
|
|
15666
|
+
ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15657
15667
|
history.pushState = function(...args) {
|
|
15658
15668
|
origPushState(...args);
|
|
15659
15669
|
for (const cb of callbacks.values()) {
|
|
@@ -15667,7 +15677,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15667
15677
|
}
|
|
15668
15678
|
};
|
|
15669
15679
|
}
|
|
15670
|
-
const interceptor =
|
|
15680
|
+
const interceptor = ot3._navigationInterceptor;
|
|
15671
15681
|
interceptor.callbacks.set("netlify", checkUrl);
|
|
15672
15682
|
window.addEventListener("popstate", checkUrl);
|
|
15673
15683
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15722,5 +15732,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15722
15732
|
};
|
|
15723
15733
|
delete src_default.onDeactivate;
|
|
15724
15734
|
}
|
|
15725
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["netlify"]){var a=o.adapters["netlify"];a.__adapterHash="
|
|
15735
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["netlify"]){var a=o.adapters["netlify"];a.__adapterHash="eb4882ee3b3be5ceb71012735d2bcdff77b1cfb04cca8da8d69f518fa0e006a3";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,"netlify",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15726
15736
|
//# sourceMappingURL=adapter.iife.js.map
|