@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.
@@ -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/_adapter_entry_028ca85a-2442-4356-8927-25a75169b98c.ts
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 ot2 = globalThis.__openTabs;
14581
+ const ot3 = globalThis.__openTabs;
14582
14582
  const newAdaptersObj = {};
14583
- if (ot2.adapters) {
14584
- for (const key of Object.keys(ot2.adapters)) {
14585
- const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
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({}, ot2, { adapters: newAdaptersObj });
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 ot2 = globalThis.__openTabs;
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({}, ot2, { adapters: newAdapters });
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 ot2 = globalThis.__openTabs;
14708
- if (!ot2._navigationInterceptor) {
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
- ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
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 = ot2._navigationInterceptor;
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="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});}})();
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