@deque/cauldron-react 5.8.1 → 5.9.0-canary.07ef06bd

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.
@@ -0,0 +1,12 @@
1
+ import type { MutableRefObject } from 'react';
2
+ /**
3
+ * When a component needs to track intersection via a ref, useIntersectionRef
4
+ * will return a ref object containing the results from IntersectionObserver
5
+ * for the current intersection entry.
6
+ *
7
+ * @example
8
+ * const elementRef = useRef<HTMLElement>()
9
+ * const intersectionRef = useIntersectionRef<HTMLElement>(elementRef)
10
+ * return <span ref={elementRef}>...</span>
11
+ */
12
+ export default function useIntersectionRef<T extends HTMLElement>(element: T | MutableRefObject<T>, intersectionObserverOptions?: IntersectionObserverInit): MutableRefObject<IntersectionObserverEntry | null>;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "5.8.1",
3
+ "version": "5.9.0-canary.07ef06bd",
4
+ "license": "MPL-2.0",
4
5
  "description": "Fully accessible react components library for Deque Cauldron",
5
6
  "homepage": "https://cauldron.dequelabs.com/",
6
7
  "publishConfig": {
@@ -110,7 +111,7 @@
110
111
  "**/__tests__/demo/**/*.js"
111
112
  ],
112
113
  "collectCoverageFrom": [
113
- "**/src/**/*.tsx"
114
+ "**/src/**/*.{ts,tsx}"
114
115
  ],
115
116
  "moduleNameMapper": {
116
117
  "\\.(css|less)$": "<rootDir>/__tests__/styleMock.js",
@@ -119,4 +120,4 @@
119
120
  "\\.svg$": "<rootDir>/__tests__/svgMock.js"
120
121
  }
121
122
  }
122
- }
123
+ }