@opentabs-dev/opentabs-plugin-airtable 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 +5 -5
- package/package.json +3 -3
package/dist/adapter.iife.js
CHANGED
|
@@ -14572,21 +14572,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14572
14572
|
};
|
|
14573
14573
|
var src_default = new AirtablePlugin();
|
|
14574
14574
|
|
|
14575
|
-
// dist/
|
|
14575
|
+
// dist/_adapter_entry_028ca85a-2442-4356-8927-25a75169b98c.ts
|
|
14576
14576
|
if (!globalThis.__openTabs) {
|
|
14577
14577
|
globalThis.__openTabs = {};
|
|
14578
14578
|
} else {
|
|
14579
14579
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
14580
14580
|
if (desc && !desc.writable) {
|
|
14581
|
-
const
|
|
14581
|
+
const ot2 = globalThis.__openTabs;
|
|
14582
14582
|
const newAdaptersObj = {};
|
|
14583
|
-
if (
|
|
14584
|
-
for (const key of Object.keys(
|
|
14585
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
14583
|
+
if (ot2.adapters) {
|
|
14584
|
+
for (const key of Object.keys(ot2.adapters)) {
|
|
14585
|
+
const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
|
|
14586
14586
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
14587
14587
|
}
|
|
14588
14588
|
}
|
|
14589
|
-
globalThis.__openTabs = Object.assign({},
|
|
14589
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
|
|
14590
14590
|
}
|
|
14591
14591
|
}
|
|
14592
14592
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -14624,16 +14624,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14624
14624
|
}
|
|
14625
14625
|
};
|
|
14626
14626
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
14627
|
-
var ot2 = globalThis.__openTabs;
|
|
14628
|
-
ot2._notifyReadinessChanged = () => {
|
|
14629
|
-
try {
|
|
14630
|
-
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
14631
|
-
if (nonce) {
|
|
14632
|
-
window.postMessage({ type: "opentabs:readiness-changed", plugin: "airtable", nonce }, "*");
|
|
14633
|
-
}
|
|
14634
|
-
} catch {
|
|
14635
|
-
}
|
|
14636
|
-
};
|
|
14637
14627
|
var existing = adapters["airtable"];
|
|
14638
14628
|
if (existing) {
|
|
14639
14629
|
if (typeof existing.teardown === "function") {
|
|
@@ -14645,7 +14635,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14645
14635
|
}
|
|
14646
14636
|
}
|
|
14647
14637
|
if (!Reflect.deleteProperty(adapters, "airtable")) {
|
|
14648
|
-
const
|
|
14638
|
+
const ot2 = globalThis.__openTabs;
|
|
14649
14639
|
const newAdapters = {};
|
|
14650
14640
|
for (const key of Object.keys(adapters)) {
|
|
14651
14641
|
if (key !== "airtable") {
|
|
@@ -14653,7 +14643,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14653
14643
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
14654
14644
|
}
|
|
14655
14645
|
}
|
|
14656
|
-
globalThis.__openTabs = Object.assign({},
|
|
14646
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
|
|
14657
14647
|
}
|
|
14658
14648
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
14659
14649
|
for (const tool of src_default.tools) {
|
|
@@ -14714,12 +14704,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14714
14704
|
}
|
|
14715
14705
|
}
|
|
14716
14706
|
};
|
|
14717
|
-
const
|
|
14718
|
-
if (!
|
|
14707
|
+
const ot2 = globalThis.__openTabs;
|
|
14708
|
+
if (!ot2._navigationInterceptor) {
|
|
14719
14709
|
const origPushState = history.pushState.bind(history);
|
|
14720
14710
|
const origReplaceState = history.replaceState.bind(history);
|
|
14721
14711
|
const callbacks = /* @__PURE__ */ new Map();
|
|
14722
|
-
|
|
14712
|
+
ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
14723
14713
|
history.pushState = function(...args) {
|
|
14724
14714
|
origPushState(...args);
|
|
14725
14715
|
for (const cb of callbacks.values()) {
|
|
@@ -14733,7 +14723,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14733
14723
|
}
|
|
14734
14724
|
};
|
|
14735
14725
|
}
|
|
14736
|
-
const interceptor =
|
|
14726
|
+
const interceptor = ot2._navigationInterceptor;
|
|
14737
14727
|
interceptor.callbacks.set("airtable", checkUrl);
|
|
14738
14728
|
window.addEventListener("popstate", checkUrl);
|
|
14739
14729
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -14788,5 +14778,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14788
14778
|
};
|
|
14789
14779
|
delete src_default.onDeactivate;
|
|
14790
14780
|
}
|
|
14791
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["airtable"]){var a=o.adapters["airtable"];a.__adapterHash="
|
|
14781
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["airtable"]){var a=o.adapters["airtable"];a.__adapterHash="2ba960fe75bda8eba142ac33922373f74eadb5f671a10fc9b3aa08e4008e6386";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,"airtable",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
14792
14782
|
//# sourceMappingURL=adapter.iife.js.map
|