@carbon/react 1.79.0-rc.0 → 1.79.0
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,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2021, 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { useEffect } from 'react';
|
|
8
|
+
/** `useLayoutEffect` on the client, `useEffect` on the server */
|
|
9
|
+
declare const useIsomorphicEffect: typeof useEffect;
|
|
10
|
+
export default useIsomorphicEffect;
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { useLayoutEffect, useEffect } from 'react';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
/** `useLayoutEffect` on the client, `useEffect` on the server */
|
|
11
11
|
const useIsomorphicEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
|
|
12
|
-
var useIsomorphicEffect$1 = useIsomorphicEffect;
|
|
13
12
|
|
|
14
|
-
export { useIsomorphicEffect
|
|
13
|
+
export { useIsomorphicEffect as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2021, 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { useEffect } from 'react';
|
|
8
|
+
/** `useLayoutEffect` on the client, `useEffect` on the server */
|
|
9
|
+
declare const useIsomorphicEffect: typeof useEffect;
|
|
10
|
+
export default useIsomorphicEffect;
|
|
@@ -11,8 +11,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
11
11
|
|
|
12
12
|
var React = require('react');
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
/** `useLayoutEffect` on the client, `useEffect` on the server */
|
|
15
15
|
const useIsomorphicEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
16
|
-
var useIsomorphicEffect$1 = useIsomorphicEffect;
|
|
17
16
|
|
|
18
|
-
exports["default"] = useIsomorphicEffect
|
|
17
|
+
exports["default"] = useIsomorphicEffect;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/react",
|
|
3
3
|
"description": "React components for the Carbon Design System",
|
|
4
|
-
"version": "1.79.0
|
|
4
|
+
"version": "1.79.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@babel/runtime": "^7.24.7",
|
|
54
|
-
"@carbon/feature-flags": "^0.25.0
|
|
54
|
+
"@carbon/feature-flags": "^0.25.0",
|
|
55
55
|
"@carbon/icons-react": "^11.57.0",
|
|
56
|
-
"@carbon/layout": "^11.31.0
|
|
57
|
-
"@carbon/styles": "^1.78.0
|
|
56
|
+
"@carbon/layout": "^11.31.0",
|
|
57
|
+
"@carbon/styles": "^1.78.0",
|
|
58
58
|
"@floating-ui/react": "^0.27.4",
|
|
59
59
|
"@ibm/telemetry-js": "^1.5.0",
|
|
60
60
|
"classnames": "2.5.1",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@babel/preset-react": "^7.24.7",
|
|
80
80
|
"@babel/preset-typescript": "^7.24.7",
|
|
81
81
|
"@carbon/test-utils": "^10.35.0",
|
|
82
|
-
"@carbon/themes": "^11.49.0
|
|
82
|
+
"@carbon/themes": "^11.49.0",
|
|
83
83
|
"@figma/code-connect": "^1.2.4",
|
|
84
84
|
"@rollup/plugin-babel": "^6.0.0",
|
|
85
85
|
"@rollup/plugin-commonjs": "^28.0.0",
|
|
@@ -146,5 +146,5 @@
|
|
|
146
146
|
"**/*.scss",
|
|
147
147
|
"**/*.css"
|
|
148
148
|
],
|
|
149
|
-
"gitHead": "
|
|
149
|
+
"gitHead": "af9ae8856cd0db974257bf1015d684e1ed204514"
|
|
150
150
|
}
|