@narmi/design_system 6.29.2 → 6.29.3
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.
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
* `polyfillScrollBug: true` on useDropdownLayer.
|
|
10
10
|
*
|
|
11
11
|
* Both checks run once at module load and are cached.
|
|
12
|
+
*
|
|
13
|
+
* SSR safety: the CSS-support value is browser-only, so the hook starts as
|
|
14
|
+
* `false` and flips to the real value in an effect after the first client
|
|
15
|
+
* commit. This keeps the server HTML and first client render in agreement
|
|
16
|
+
* (no hydration mismatch).
|
|
12
17
|
*/
|
|
13
18
|
/**
|
|
14
19
|
* Runtime check for Safari's specific scroll container bug.
|
|
@@ -30,6 +35,9 @@ export declare const HAS_SCROLL_CONTAINER_BUG: boolean;
|
|
|
30
35
|
/**
|
|
31
36
|
* Returns whether the browser supports CSS anchor positioning
|
|
32
37
|
* (based on CSS.supports checks).
|
|
38
|
+
*
|
|
39
|
+
* Starts as `false` so SSR and the first client render agree, then flips to
|
|
40
|
+
* the real value in an effect after commit.
|
|
33
41
|
*/
|
|
34
42
|
declare const useSupportsAnchorPositioning: () => boolean;
|
|
35
43
|
export default useSupportsAnchorPositioning;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSupportsAnchorPositioning/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSupportsAnchorPositioning/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAkBH;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAC9B,YAAY,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC,EACtD,WAAW,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,KACjD,OAOF,CAAC;AA4BF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAE,OACoB,CAAC;AAE5D;;;;;;GAMG;AACH,QAAA,MAAM,4BAA4B,QAAO,OAMxC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|