@fluentui/react-utilities
Advanced tools
Comparing version 0.0.0-nightly-20241119-0407.1 to 0.0.0-nightly-20241120-0406.1
@@ -1,2 +0,1 @@ | ||
import { DispatchWithoutAction } from 'react'; | ||
import * as React_2 from 'react'; | ||
@@ -874,3 +873,3 @@ | ||
*/ | ||
export declare function useForceUpdate(): DispatchWithoutAction; | ||
export declare function useForceUpdate(): React_2.DispatchWithoutAction; | ||
@@ -877,0 +876,0 @@ /** |
@@ -11,5 +11,6 @@ "use strict"; | ||
}); | ||
const _react = require("react"); | ||
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); | ||
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); | ||
function isResolvedShorthand(shorthand) { | ||
return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !(0, _react.isValidElement)(shorthand); | ||
return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !_react.isValidElement(shorthand); | ||
} |
@@ -11,5 +11,6 @@ "use strict"; | ||
}); | ||
const _react = require("react"); | ||
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); | ||
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); | ||
function useForceUpdate() { | ||
return (0, _react.useReducer)((x)=>x + 1, 0)[1]; | ||
return _react.useReducer((x)=>x + 1, 0)[1]; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { isValidElement } from 'react'; | ||
import * as React from 'react'; | ||
/** | ||
@@ -32,3 +32,3 @@ * Guard method that validates if a shorthand is a slot | ||
*/ export function isResolvedShorthand(shorthand) { | ||
return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !isValidElement(shorthand); | ||
return shorthand !== null && typeof shorthand === 'object' && !Array.isArray(shorthand) && !React.isValidElement(shorthand); | ||
} |
@@ -1,2 +0,2 @@ | ||
import { useReducer } from 'react'; | ||
import * as React from 'react'; | ||
/** | ||
@@ -6,3 +6,3 @@ * @internal | ||
*/ export function useForceUpdate() { | ||
return useReducer((x)=>x + 1, 0)[1]; | ||
return React.useReducer((x)=>x + 1, 0)[1]; | ||
} |
{ | ||
"name": "@fluentui/react-utilities", | ||
"version": "0.0.0-nightly-20241119-0407.1", | ||
"version": "0.0.0-nightly-20241120-0406.1", | ||
"description": "A set of general React-specific utilities.", | ||
@@ -20,4 +20,4 @@ "main": "lib-commonjs/index.js", | ||
"dependencies": { | ||
"@fluentui/keyboard-keys": "0.0.0-nightly-20241119-0407.1", | ||
"@fluentui/react-shared-contexts": "0.0.0-nightly-20241119-0407.1", | ||
"@fluentui/keyboard-keys": "0.0.0-nightly-20241120-0406.1", | ||
"@fluentui/react-shared-contexts": "0.0.0-nightly-20241120-0406.1", | ||
"@swc/helpers": "^0.5.1" | ||
@@ -24,0 +24,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
597468
5345
+ Added@fluentui/keyboard-keys@0.0.0-nightly-20241120-0406.1(transitive)
+ Added@fluentui/react-shared-contexts@0.0.0-nightly-20241120-0406.1(transitive)
+ Added@fluentui/react-theme@0.0.0-nightly-20241120-0406.1(transitive)
+ Added@fluentui/tokens@0.0.0-nightly-20241120-0406.1(transitive)
- Removed@fluentui/keyboard-keys@0.0.0-nightly-20241119-0407.1(transitive)
- Removed@fluentui/react-shared-contexts@0.0.0-nightly-20241119-0407.1(transitive)
- Removed@fluentui/react-theme@0.0.0-nightly-20241119-0407.1(transitive)
- Removed@fluentui/tokens@0.0.0-nightly-20241119-0407.1(transitive)
Updated@fluentui/keyboard-keys@0.0.0-nightly-20241120-0406.1
Updated@fluentui/react-shared-contexts@0.0.0-nightly-20241120-0406.1