@opentabs-dev/opentabs-plugin-airtable 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
|
@@ -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_0eb8703b-5a11-4269-ab03-d373ba8b688c.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 ot3 = globalThis.__openTabs;
|
|
14582
14582
|
const newAdaptersObj = {};
|
|
14583
|
-
if (
|
|
14584
|
-
for (const key of Object.keys(
|
|
14585
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
14583
|
+
if (ot3.adapters) {
|
|
14584
|
+
for (const key of Object.keys(ot3.adapters)) {
|
|
14585
|
+
const d = Object.getOwnPropertyDescriptor(ot3.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({}, ot3, { adapters: newAdaptersObj });
|
|
14590
14590
|
}
|
|
14591
14591
|
}
|
|
14592
14592
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -14624,6 +14624,16 @@ 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
|
+
};
|
|
14627
14637
|
var existing = adapters["airtable"];
|
|
14628
14638
|
if (existing) {
|
|
14629
14639
|
if (typeof existing.teardown === "function") {
|
|
@@ -14635,7 +14645,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14635
14645
|
}
|
|
14636
14646
|
}
|
|
14637
14647
|
if (!Reflect.deleteProperty(adapters, "airtable")) {
|
|
14638
|
-
const
|
|
14648
|
+
const ot3 = globalThis.__openTabs;
|
|
14639
14649
|
const newAdapters = {};
|
|
14640
14650
|
for (const key of Object.keys(adapters)) {
|
|
14641
14651
|
if (key !== "airtable") {
|
|
@@ -14643,7 +14653,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14643
14653
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
14644
14654
|
}
|
|
14645
14655
|
}
|
|
14646
|
-
globalThis.__openTabs = Object.assign({},
|
|
14656
|
+
globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
|
|
14647
14657
|
}
|
|
14648
14658
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
14649
14659
|
for (const tool of src_default.tools) {
|
|
@@ -14704,12 +14714,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14704
14714
|
}
|
|
14705
14715
|
}
|
|
14706
14716
|
};
|
|
14707
|
-
const
|
|
14708
|
-
if (!
|
|
14717
|
+
const ot3 = globalThis.__openTabs;
|
|
14718
|
+
if (!ot3._navigationInterceptor) {
|
|
14709
14719
|
const origPushState = history.pushState.bind(history);
|
|
14710
14720
|
const origReplaceState = history.replaceState.bind(history);
|
|
14711
14721
|
const callbacks = /* @__PURE__ */ new Map();
|
|
14712
|
-
|
|
14722
|
+
ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
14713
14723
|
history.pushState = function(...args) {
|
|
14714
14724
|
origPushState(...args);
|
|
14715
14725
|
for (const cb of callbacks.values()) {
|
|
@@ -14723,7 +14733,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14723
14733
|
}
|
|
14724
14734
|
};
|
|
14725
14735
|
}
|
|
14726
|
-
const interceptor =
|
|
14736
|
+
const interceptor = ot3._navigationInterceptor;
|
|
14727
14737
|
interceptor.callbacks.set("airtable", checkUrl);
|
|
14728
14738
|
window.addEventListener("popstate", checkUrl);
|
|
14729
14739
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -14778,5 +14788,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14778
14788
|
};
|
|
14779
14789
|
delete src_default.onDeactivate;
|
|
14780
14790
|
}
|
|
14781
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["airtable"]){var a=o.adapters["airtable"];a.__adapterHash="
|
|
14791
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["airtable"]){var a=o.adapters["airtable"];a.__adapterHash="7b2bd8bf33e37e9a73bc5c5b83c43ca5ed9d5bea1581a5bf6d60ce65605e56ea";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});}})();
|
|
14782
14792
|
//# sourceMappingURL=adapter.iife.js.map
|