Socket
Socket
Sign inDemoInstall

@fluentui/react-utilities

Package Overview
Dependencies
Maintainers
12
Versions
829
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/react-utilities - npm Package Compare versions

Comparing version 9.0.0-alpha.55 to 9.0.0-alpha.56

17

CHANGELOG.json

@@ -5,3 +5,18 @@ {

{
"date": "Fri, 01 Oct 2021 14:11:48 GMT",
"date": "Tue, 05 Oct 2021 09:26:55 GMT",
"tag": "@fluentui/react-utilities_v9.0.0-alpha.56",
"version": "9.0.0-alpha.56",
"comments": {
"prerelease": [
{
"author": "elcraig@microsoft.com",
"package": "@fluentui/react-utilities",
"comment": "Add and use ForwardRefComponent helper type",
"commit": "3b16677a03035dcf03c1297268b85c6d4bd3f839"
}
]
}
},
{
"date": "Fri, 01 Oct 2021 14:13:08 GMT",
"tag": "@fluentui/react-utilities_v9.0.0-alpha.55",

@@ -8,0 +23,0 @@ "version": "9.0.0-alpha.55",

# Change Log - @fluentui/react-utilities
This log was last generated on Fri, 01 Oct 2021 14:11:48 GMT and should not be manually modified.
This log was last generated on Tue, 05 Oct 2021 09:26:55 GMT and should not be manually modified.
<!-- Start content -->
## [9.0.0-alpha.56](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.56)
Tue, 05 Oct 2021 09:26:55 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.55..@fluentui/react-utilities_v9.0.0-alpha.56)
### Changes
- Add and use ForwardRefComponent helper type ([PR #20081](https://github.com/microsoft/fluentui/pull/20081) by elcraig@microsoft.com)
## [9.0.0-alpha.55](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.55)
Fri, 01 Oct 2021 14:11:48 GMT
Fri, 01 Oct 2021 14:13:08 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.53..@fluentui/react-utilities_v9.0.0-alpha.55)

@@ -11,0 +20,0 @@

@@ -144,2 +144,7 @@ import { DispatchWithoutAction } from 'react';

/**
* Return type for `React.forwardRef`, including inference of the proper typing for the ref.
*/
export declare type ForwardRefComponent<Props> = ObscureEventName extends keyof Props ? Required<Props>[ObscureEventName] extends React_2.PointerEventHandler<infer Element> ? React_2.ForwardRefExoticComponent<Props & React_2.RefAttributes<Element>> : never : never;
declare type GenericDictionary = Record<string, any>;

@@ -348,2 +353,16 @@

/**
* This is part of a hack to infer the element type from a native element *props* type.
* The only place the original element is found in a native props type (at least that's workable
* for inference) is in the event handlers, so some of the helper types use this event handler
* name to infer the original element type.
*
* Notes:
* - Using an extremely obscure event handler reduces the likelihood that its signature will be
* modified in any component's props.
* - Inferring based on a single prop name instead of a larger type like `DOMAttributes<T>` should be
* less expensive for typescript to evaluate and is less likely to result in type expansion in .d.ts.
*/
declare type ObscureEventName = 'onLostPointerCaptureCapture';
/**
* An array of OL tag properties and events.

@@ -350,0 +369,0 @@ *

@@ -87,2 +87,19 @@ import * as React from 'react';

} & Shorthands;
/**
* This is part of a hack to infer the element type from a native element *props* type.
* The only place the original element is found in a native props type (at least that's workable
* for inference) is in the event handlers, so some of the helper types use this event handler
* name to infer the original element type.
*
* Notes:
* - Using an extremely obscure event handler reduces the likelihood that its signature will be
* modified in any component's props.
* - Inferring based on a single prop name instead of a larger type like `DOMAttributes<T>` should be
* less expensive for typescript to evaluate and is less likely to result in type expansion in .d.ts.
*/
declare type ObscureEventName = 'onLostPointerCaptureCapture';
/**
* Return type for `React.forwardRef`, including inference of the proper typing for the ref.
*/
export declare type ForwardRefComponent<Props> = ObscureEventName extends keyof Props ? Required<Props>[ObscureEventName] extends React.PointerEventHandler<infer Element> ? React.ForwardRefExoticComponent<Props & React.RefAttributes<Element>> : never : never;
export declare type ComponentPropsCompat = {

@@ -129,1 +146,2 @@ as?: React.ElementType;

export declare type ComponentStateCompat<Props, ShorthandPropNames extends keyof Props = never, DefaultedPropNames extends keyof ResolvedShorthandPropsCompat<Props, ShorthandPropNames> = never> = RequiredPropsCompat<ResolvedShorthandPropsCompat<Props, ShorthandPropNames>, DefaultedPropNames>;
export {};

@@ -87,2 +87,19 @@ import * as React from 'react';

} & Shorthands;
/**
* This is part of a hack to infer the element type from a native element *props* type.
* The only place the original element is found in a native props type (at least that's workable
* for inference) is in the event handlers, so some of the helper types use this event handler
* name to infer the original element type.
*
* Notes:
* - Using an extremely obscure event handler reduces the likelihood that its signature will be
* modified in any component's props.
* - Inferring based on a single prop name instead of a larger type like `DOMAttributes<T>` should be
* less expensive for typescript to evaluate and is less likely to result in type expansion in .d.ts.
*/
declare type ObscureEventName = 'onLostPointerCaptureCapture';
/**
* Return type for `React.forwardRef`, including inference of the proper typing for the ref.
*/
export declare type ForwardRefComponent<Props> = ObscureEventName extends keyof Props ? Required<Props>[ObscureEventName] extends React.PointerEventHandler<infer Element> ? React.ForwardRefExoticComponent<Props & React.RefAttributes<Element>> : never : never;
export declare type ComponentPropsCompat = {

@@ -129,1 +146,2 @@ as?: React.ElementType;

export declare type ComponentStateCompat<Props, ShorthandPropNames extends keyof Props = never, DefaultedPropNames extends keyof ResolvedShorthandPropsCompat<Props, ShorthandPropNames> = never> = RequiredPropsCompat<ResolvedShorthandPropsCompat<Props, ShorthandPropNames>, DefaultedPropNames>;
export {};

2

package.json
{
"name": "@fluentui/react-utilities",
"version": "9.0.0-alpha.55",
"version": "9.0.0-alpha.56",
"description": "A set of general React-specific utilities.",

@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc