@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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/react.js +1 -1
- package/dist/cjs/web.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/react.js +2 -2
- package/dist/es/web.js +2 -2
- package/dist/{index-CzRuJxn8.js → index-C0nIxDnf.js} +2 -2
- package/dist/{index-CzRuJxn8.js.map → index-C0nIxDnf.js.map} +1 -1
- package/dist/{index-ByLXasWO.mjs → index-CJl_iRUI.mjs} +5 -3
- package/dist/{index-ByLXasWO.mjs.map → index-CJl_iRUI.mjs.map} +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/core/Interact.d.ts.map +1 -1
- package/package.json +1 -1
- package/rules/full-lean.md +12 -1
- package/rules/integration.md +11 -1
|
@@ -2135,10 +2135,12 @@ class E {
|
|
|
2135
2135
|
), e.allowA11yTriggers !== void 0 && (E.allowA11yTriggers = e.allowA11yTriggers);
|
|
2136
2136
|
}
|
|
2137
2137
|
static getInstance(e) {
|
|
2138
|
-
|
|
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
|
-
|
|
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-
|
|
2834
|
+
//# sourceMappingURL=index-CJl_iRUI.mjs.map
|