@primer/react 0.0.0-20260225195902 → 0.0.0-20260225200721
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-20260225200721
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
- Fake entry to force publishing
|
|
16
16
|
|
|
17
|
+
- [#7585](https://github.com/primer/react/pull/7585) [`dea0dd0`](https://github.com/primer/react/commit/dea0dd0c6dcff6890a620f0708f1f28472a4fb98) Thanks [@iansan5653](https://github.com/iansan5653)! - - Fixes a bug where `ActionBar` menu items would be out of order if new items were mounted after the initial render
|
|
18
|
+
|
|
19
|
+
- Improves initial render performance for `ActionBar`
|
|
20
|
+
|
|
17
21
|
- [#7548](https://github.com/primer/react/pull/7548) [`d4b32c3`](https://github.com/primer/react/commit/d4b32c3672d3d5421711324654c1028527dcdf38) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(useIsMacOS): replace useState+useEffect with useSyncExternalStore to eliminate unnecessary re-render
|
|
18
22
|
|
|
19
23
|
## 38.12.0
|
|
@@ -19,8 +19,9 @@ interface ProviderProps<T> {
|
|
|
19
19
|
* 4. Access the registered data using the value from `useRegistryState`. This will be a map of `string` to `T`, where
|
|
20
20
|
* the string key is a unique and stable identifier for each component which can be used as a `key` if necessary.
|
|
21
21
|
*
|
|
22
|
-
* @note Note that this pattern is not SSR compatible.
|
|
23
|
-
*
|
|
22
|
+
* @note Note that this pattern is not SSR compatible. It won't raise errors or hydration mismatches, but the
|
|
23
|
+
* registry will not be available during SSR. The registry is built during the effect phase, so it will be populated
|
|
24
|
+
* after hydration on the client. The initial `undefined` value can be used to safely show loading UI during SSR/initial
|
|
24
25
|
* render if necessary.
|
|
25
26
|
*/
|
|
26
27
|
export declare function createDescendantRegistry<T>(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descendant-registry.d.ts","sourceRoot":"","sources":["../../src/utils/descendant-registry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,QAAQ,EACb,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAGd,UAAU,aAAa,CAAC,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAA;IACnB,4CAA4C;IAC5C,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAA;CAChF;AAED
|
|
1
|
+
{"version":3,"file":"descendant-registry.d.ts","sourceRoot":"","sources":["../../src/utils/descendant-registry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,QAAQ,EACb,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAGd,UAAU,aAAa,CAAC,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAA;IACnB,4CAA4C;IAC5C,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAA;CAChF;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CAAC,CAAC;0CA+CG,aAAa,CAAC,CAAC,CAAC;;mCATrB,CAAC;mDAbe,MAAM,CAAC;EAqG9D"}
|
|
@@ -18,8 +18,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
18
18
|
* 4. Access the registered data using the value from `useRegistryState`. This will be a map of `string` to `T`, where
|
|
19
19
|
* the string key is a unique and stable identifier for each component which can be used as a `key` if necessary.
|
|
20
20
|
*
|
|
21
|
-
* @note Note that this pattern is not SSR compatible.
|
|
22
|
-
*
|
|
21
|
+
* @note Note that this pattern is not SSR compatible. It won't raise errors or hydration mismatches, but the
|
|
22
|
+
* registry will not be available during SSR. The registry is built during the effect phase, so it will be populated
|
|
23
|
+
* after hydration on the client. The initial `undefined` value can be used to safely show loading UI during SSR/initial
|
|
23
24
|
* render if necessary.
|
|
24
25
|
*/
|
|
25
26
|
function createDescendantRegistry() {
|
package/package.json
CHANGED