@primer/react 0.0.0-20260413093447 → 0.0.0-20260413103006
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/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260413103006
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
- Fake entry to force publishing
|
|
20
20
|
|
|
21
|
+
- [#7739](https://github.com/primer/react/pull/7739) [`45183f5`](https://github.com/primer/react/commit/45183f51ca787827643de5ee660a37c1fafee7b9) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Spinner: Remove feature flag `primer_react_spinner_synchronize_animations`, treat it as always enabled.
|
|
22
|
+
|
|
21
23
|
- [#7746](https://github.com/primer/react/pull/7746) [`30206c4`](https://github.com/primer/react/commit/30206c4fab92de8888f3f103f9b05bff96fdc1b9) Thanks [@jonrohan](https://github.com/jonrohan)! - Update TokenTextContainer `line-height` to use primer primitives CSS variable `var(--base-text-lineHeight-normal)`
|
|
22
24
|
|
|
23
25
|
## 38.19.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"DefaultFeatureFlags.d.ts","sourceRoot":"","sources":["../../src/FeatureFlags/DefaultFeatureFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAA;AAEnD,eAAO,MAAM,mBAAmB,kBAM9B,CAAA"}
|
|
@@ -5,8 +5,7 @@ const DefaultFeatureFlags = FeatureFlagScope.create({
|
|
|
5
5
|
primer_react_css_anchor_positioning: false,
|
|
6
6
|
primer_react_select_panel_fullscreen_on_narrow: false,
|
|
7
7
|
primer_react_select_panel_order_selected_at_top: false,
|
|
8
|
-
primer_react_select_panel_remove_active_descendant: false
|
|
9
|
-
primer_react_spinner_synchronize_animations: false
|
|
8
|
+
primer_react_select_panel_remove_active_descendant: false
|
|
10
9
|
});
|
|
11
10
|
|
|
12
11
|
export { DefaultFeatureFlags };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAOlE,QAAA,MAAM,OAAO;;;;CAIZ,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,OAAO,OAAO,CAAA;IAC3B,0KAA0K;IAC1K,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,wCAAwC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,4MAA4M;IAC5M,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;CAC5C,GAAG,kBAAkB,CAAA;AAEtB,iBAAS,OAAO,CAAC,EACf,IAAI,EAAE,OAAkB,EACxB,MAAkB,EAClB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,KAAK,EACL,KAAa,EACb,GAAG,KAAK,EACT,EAAE,YAAY,4BA+Dd;kBAvEQ,OAAO;;;AAwFhB,eAAe,OAAO,CAAA"}
|
package/dist/Spinner/Spinner.js
CHANGED
|
@@ -4,7 +4,6 @@ import { useState, useEffect } from 'react';
|
|
|
4
4
|
import classes from './Spinner.module.css.js';
|
|
5
5
|
import { useMedia } from '../hooks/useMedia.js';
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
-
import { useFeatureFlag } from '../FeatureFlags/useFeatureFlag.js';
|
|
8
7
|
import { useId } from '../hooks/useId.js';
|
|
9
8
|
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
|
|
10
9
|
|
|
@@ -54,7 +53,6 @@ function Spinner(t0) {
|
|
|
54
53
|
const sizeKey = t1 === undefined ? "medium" : t1;
|
|
55
54
|
const srText = t2 === undefined ? "Loading" : t2;
|
|
56
55
|
const delay = t3 === undefined ? false : t3;
|
|
57
|
-
const syncAnimationsEnabled = useFeatureFlag("primer_react_spinner_synchronize_animations");
|
|
58
56
|
const noMotionPreference = useMedia("(prefers-reduced-motion: no-preference)", false);
|
|
59
57
|
const size = sizeMap[sizeKey];
|
|
60
58
|
const hasHiddenLabel = srText !== null && ariaLabel === undefined;
|
|
@@ -102,14 +100,13 @@ function Spinner(t0) {
|
|
|
102
100
|
if (!isVisible) {
|
|
103
101
|
return null;
|
|
104
102
|
}
|
|
105
|
-
const shouldSync = syncAnimationsEnabled && noMotionPreference;
|
|
106
103
|
let t8;
|
|
107
|
-
if ($[13] !==
|
|
108
|
-
t8 =
|
|
104
|
+
if ($[13] !== noMotionPreference || $[14] !== style || $[15] !== syncDelay) {
|
|
105
|
+
t8 = noMotionPreference ? {
|
|
109
106
|
...style,
|
|
110
107
|
animationDelay: `${syncDelay}ms`
|
|
111
108
|
} : style;
|
|
112
|
-
$[13] =
|
|
109
|
+
$[13] = noMotionPreference;
|
|
113
110
|
$[14] = style;
|
|
114
111
|
$[15] = syncDelay;
|
|
115
112
|
$[16] = t8;
|
package/package.json
CHANGED