Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fluentui/react-utilities

Package Overview
Dependencies
Maintainers
12
Versions
867
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.49 to 9.0.0-alpha.50

38

CHANGELOG.json

@@ -5,6 +5,42 @@ {

{
"date": "Fri, 17 Sep 2021 07:32:57 GMT",
"date": "Wed, 22 Sep 2021 10:08:31 GMT",
"tag": "@fluentui/react-utilities_v9.0.0-alpha.50",
"version": "9.0.0-alpha.50",
"comments": {
"prerelease": [
{
"author": "gcox@microsoft.com",
"package": "@fluentui/react-utilities",
"comment": "Moved from interfaces to types per RFC",
"commit": "bc3f1ec72fc7784a558b0dd6598ee0662f4649c1"
}
]
}
},
{
"date": "Mon, 20 Sep 2021 07:36:26 GMT",
"tag": "@fluentui/react-utilities_v9.0.0-alpha.49",
"version": "9.0.0-alpha.49",
"comments": {
"none": [
{
"author": "lingfangao@hotmail.com",
"package": "@fluentui/react-utilities",
"comment": "chore: use versioon eslint-plugin and react-conformance in dev dependencies",
"commit": "b8a304770f77c0353553a152dad34421070400a6"
},
{
"author": "lingfangao@hotmail.com",
"package": "@fluentui/react-utilities",
"commit": "b8a304770f77c0353553a152dad34421070400a6",
"comment": "Bump @fluentui/react-utilities to v9.0.0-alpha.49"
}
]
}
},
{
"date": "Fri, 17 Sep 2021 07:35:26 GMT",
"tag": "@fluentui/react-utilities_v9.0.0-alpha.49",
"version": "9.0.0-alpha.49",
"comments": {
"prerelease": [

@@ -11,0 +47,0 @@ {

# Change Log - @fluentui/react-utilities
This log was last generated on Fri, 17 Sep 2021 07:32:57 GMT and should not be manually modified.
This log was last generated on Wed, 22 Sep 2021 10:08:31 GMT and should not be manually modified.
<!-- Start content -->
## [9.0.0-alpha.50](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.50)
Wed, 22 Sep 2021 10:08:31 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.49..@fluentui/react-utilities_v9.0.0-alpha.50)
### Changes
- Moved from interfaces to types per RFC ([commit](https://github.com/microsoft/fluentui/commit/bc3f1ec72fc7784a558b0dd6598ee0662f4649c1) by gcox@microsoft.com)
## [9.0.0-alpha.49](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.49)
Fri, 17 Sep 2021 07:32:57 GMT
Fri, 17 Sep 2021 07:35:26 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.48..@fluentui/react-utilities_v9.0.0-alpha.49)

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

26

dist/react-utilities.d.ts

@@ -17,3 +17,3 @@ import { DispatchWithoutAction } from 'react';

/**
* Helper type for inferring the type of the as prop from a Props interface.
* Helper type for inferring the type of the as prop from a Props type.
*

@@ -50,5 +50,5 @@ * For example:

export declare interface BaseSlotsCompat {
export declare type BaseSlotsCompat = {
root: React_2.ElementType;
}
};

@@ -77,7 +77,7 @@ /**

export declare interface ComponentPropsCompat {
export declare type ComponentPropsCompat = {
as?: React_2.ElementType;
className?: string;
children?: React_2.ReactNode;
}
};

@@ -409,6 +409,6 @@ export declare type ComponentState<Shorthands extends ObjectShorthandPropsRecord> = {

export declare interface ResolveShorthandOptions<Props extends Record<string, any>, Required extends boolean = false> {
export declare type ResolveShorthandOptions<Props extends Record<string, any>, Required extends boolean = false> = {
required?: Required;
defaultProps?: Props;
}
};

@@ -467,5 +467,5 @@ /**

*/
export declare interface SSRContextValue {
export declare type SSRContextValue = {
current: number;
}
};

@@ -530,3 +530,3 @@ /**

/** Updater callbacks returned by `useBoolean`. */
export declare interface UseBooleanCallbacks {
export declare type UseBooleanCallbacks = {
/** Set the value to true. Always has the same identity. */

@@ -538,3 +538,3 @@ setTrue: () => void;

toggle: () => void;
}
};

@@ -664,3 +664,3 @@ /**

export declare interface UseOnClickOrScrollOutsideOptions {
export declare type UseOnClickOrScrollOutsideOptions = {
/**

@@ -688,3 +688,3 @@ * The element to listen for the click event

callback: (ev: MouseEvent | TouchEvent) => void;
}
};

@@ -691,0 +691,0 @@ /**

import type { DefaultObjectShorthandProps, ShorthandProps } from './types';
export interface ResolveShorthandOptions<Props extends Record<string, any>, Required extends boolean = false> {
export declare type ResolveShorthandOptions<Props extends Record<string, any>, Required extends boolean = false> = {
required?: Required;
defaultProps?: Props;
}
};
/**

@@ -7,0 +7,0 @@ * Resolves ShorthandProps into ObjectShorthandProps, to ensure normalization of the signature

@@ -57,3 +57,3 @@ import * as React from 'react';

/**
* Helper type for inferring the type of the as prop from a Props interface.
* Helper type for inferring the type of the as prop from a Props type.
*

@@ -88,7 +88,7 @@ * For example:

} & Shorthands;
export interface ComponentPropsCompat {
export declare type ComponentPropsCompat = {
as?: React.ElementType;
className?: string;
children?: React.ReactNode;
}
};
export declare type ShorthandRenderFunctionCompat<TProps> = (Component: React.ElementType<TProps>, props: TProps) => React.ReactNode;

@@ -99,5 +99,5 @@ export declare type ShorthandPropsCompat<TProps extends ComponentPropsCompat = {}> = React.ReactChild | React.ReactNodeArray | React.ReactPortal | number | null | undefined | ObjectShorthandPropsCompat<TProps>;

};
export interface BaseSlotsCompat {
export declare type BaseSlotsCompat = {
root: React.ElementType;
}
};
export declare type SlotPropsCompat<TSlots extends BaseSlotsCompat, TProps, TRootProps extends React.HTMLAttributes<HTMLElement>> = {

@@ -104,0 +104,0 @@ [key in keyof Omit<TSlots, 'root'>]: key extends keyof TProps ? TProps[key] : any;

/** Updater callbacks returned by `useBoolean`. */
export interface UseBooleanCallbacks {
export declare type UseBooleanCallbacks = {
/** Set the value to true. Always has the same identity. */

@@ -9,3 +9,3 @@ setTrue: () => void;

toggle: () => void;
}
};
/**

@@ -12,0 +12,0 @@ * Hook to store a value and generate callbacks for setting the value to true or false.

import * as React from 'react';
export interface UseOnClickOrScrollOutsideOptions {
export declare type UseOnClickOrScrollOutsideOptions = {
/**

@@ -25,3 +25,3 @@ * The element to listen for the click event

callback: (ev: MouseEvent | TouchEvent) => void;
}
};
/**

@@ -28,0 +28,0 @@ * Utility to perform checks where a click/touch event was made outside a component

@@ -8,5 +8,5 @@ import * as React from 'react';

*/
export interface SSRContextValue {
export declare type SSRContextValue = {
current: number;
}
};
/**

@@ -13,0 +13,0 @@ * Default context value to use in case there is no SSRProvider. This is fine for client-only apps.

import type { DefaultObjectShorthandProps, ShorthandProps } from './types';
export interface ResolveShorthandOptions<Props extends Record<string, any>, Required extends boolean = false> {
export declare type ResolveShorthandOptions<Props extends Record<string, any>, Required extends boolean = false> = {
required?: Required;
defaultProps?: Props;
}
};
/**

@@ -7,0 +7,0 @@ * Resolves ShorthandProps into ObjectShorthandProps, to ensure normalization of the signature

@@ -57,3 +57,3 @@ import * as React from 'react';

/**
* Helper type for inferring the type of the as prop from a Props interface.
* Helper type for inferring the type of the as prop from a Props type.
*

@@ -88,7 +88,7 @@ * For example:

} & Shorthands;
export interface ComponentPropsCompat {
export declare type ComponentPropsCompat = {
as?: React.ElementType;
className?: string;
children?: React.ReactNode;
}
};
export declare type ShorthandRenderFunctionCompat<TProps> = (Component: React.ElementType<TProps>, props: TProps) => React.ReactNode;

@@ -99,5 +99,5 @@ export declare type ShorthandPropsCompat<TProps extends ComponentPropsCompat = {}> = React.ReactChild | React.ReactNodeArray | React.ReactPortal | number | null | undefined | ObjectShorthandPropsCompat<TProps>;

};
export interface BaseSlotsCompat {
export declare type BaseSlotsCompat = {
root: React.ElementType;
}
};
export declare type SlotPropsCompat<TSlots extends BaseSlotsCompat, TProps, TRootProps extends React.HTMLAttributes<HTMLElement>> = {

@@ -104,0 +104,0 @@ [key in keyof Omit<TSlots, 'root'>]: key extends keyof TProps ? TProps[key] : any;

/** Updater callbacks returned by `useBoolean`. */
export interface UseBooleanCallbacks {
export declare type UseBooleanCallbacks = {
/** Set the value to true. Always has the same identity. */

@@ -9,3 +9,3 @@ setTrue: () => void;

toggle: () => void;
}
};
/**

@@ -12,0 +12,0 @@ * Hook to store a value and generate callbacks for setting the value to true or false.

import * as React from 'react';
export interface UseOnClickOrScrollOutsideOptions {
export declare type UseOnClickOrScrollOutsideOptions = {
/**

@@ -25,3 +25,3 @@ * The element to listen for the click event

callback: (ev: MouseEvent | TouchEvent) => void;
}
};
/**

@@ -28,0 +28,0 @@ * Utility to perform checks where a click/touch event was made outside a component

@@ -8,5 +8,5 @@ import * as React from 'react';

*/
export interface SSRContextValue {
export declare type SSRContextValue = {
current: number;
}
};
/**

@@ -13,0 +13,0 @@ * Default context value to use in case there is no SSRProvider. This is fine for client-only apps.

{
"name": "@fluentui/react-utilities",
"version": "9.0.0-alpha.49",
"version": "9.0.0-alpha.50",
"description": "A set of general React-specific utilities.",

@@ -28,3 +28,3 @@ "main": "lib-commonjs/index.js",

"devDependencies": {
"@fluentui/eslint-plugin": "^1.4.1",
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts": "^1.0.0",

@@ -31,0 +31,0 @@ "@types/enzyme": "3.10.3",

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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