@fragmentsx/render-react 1.2.5 → 1.2.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"useLayerInteractions.d.ts","sourceRoot":"","sources":["../../../src/hooks/utils/useLayerInteractions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAQzD,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,oBAAoB,aACrB,OAAO,YACP,2BAA2B;;;;CAuFtC,CAAC"}
1
+ {"version":3,"file":"useLayerInteractions.d.ts","sourceRoot":"","sources":["../../../src/hooks/utils/useLayerInteractions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,OAAO,EAAE,MAAM,mBAAmB,CAAC;AASzD,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,oBAAoB,aACrB,OAAO,YACP,2BAA2B;;;;CAuFtC,CAAC"}
package/dist/index.cjs.js CHANGED
@@ -1707,7 +1707,7 @@ const useLayerInteractions = (layerKey, options) => {
1707
1707
  const pause = (options == null ? void 0 : options.pauseInteractions) ?? false;
1708
1708
  const { manager: globalManager } = useGlobalManager();
1709
1709
  const { manager: fragmentManager } = react.useContext(FragmentContext);
1710
- const scopes = useLayerScopes(fragmentManager, layerKey);
1710
+ const scopes = react.useContext(ScopeContext);
1711
1711
  const areaScope = scopes.find(
1712
1712
  (scope) => (scope == null ? void 0 : scope.type) === definition.definition.scopeTypes.AreaScope
1713
1713
  );
package/dist/index.es.js CHANGED
@@ -1705,7 +1705,7 @@ const useLayerInteractions = (layerKey, options) => {
1705
1705
  const pause = (options == null ? void 0 : options.pauseInteractions) ?? false;
1706
1706
  const { manager: globalManager } = useGlobalManager();
1707
1707
  const { manager: fragmentManager } = useContext(FragmentContext);
1708
- const scopes = useLayerScopes(fragmentManager, layerKey);
1708
+ const scopes = useContext(ScopeContext);
1709
1709
  const areaScope = scopes.find(
1710
1710
  (scope) => (scope == null ? void 0 : scope.type) === definition.scopeTypes.AreaScope
1711
1711
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fragmentsx/render-react",
3
3
  "private": false,
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"