@wix/interact 2.2.0 → 2.2.1

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.
@@ -2135,10 +2135,12 @@ class E {
2135
2135
  ), e.allowA11yTriggers !== void 0 && (E.allowA11yTriggers = e.allowA11yTriggers);
2136
2136
  }
2137
2137
  static getInstance(e) {
2138
- return E.instances.find((n) => n.has(e));
2138
+ const n = E.instances.find((s) => s.has(e));
2139
+ return n || console.warn(`Interact: Instance for key "${e}" not found`), n;
2139
2140
  }
2140
2141
  static getController(e) {
2141
- return e ? E.controllerCache.get(e) : void 0;
2142
+ const n = e ? E.controllerCache.get(e) : void 0;
2143
+ return n || console.warn(`Interact: Controller for key "${e}" not found`), n;
2142
2144
  }
2143
2145
  static setController(e, n) {
2144
2146
  E.controllerCache.set(e, n);
@@ -2829,4 +2831,4 @@ export {
2829
2831
  ys as g,
2830
2832
  vs as r
2831
2833
  };
2832
- //# sourceMappingURL=index-ByLXasWO.mjs.map
2834
+ //# sourceMappingURL=index-CJl_iRUI.mjs.map