@fluentui/react-compose
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Fri, 15 May 2020 12:38:19 GMT", | ||
"date": "Tue, 19 May 2020 12:33:43 GMT", | ||
"tag": "@fluentui/react-compose_v0.4.1", | ||
"version": "0.4.1", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"comment": "fix(compose): fix type for `React.Ref` generic", | ||
"author": "olfedias@microsoft.com", | ||
"commit": "73e371899a30f0bd20addadc62f231b17569cb37", | ||
"package": "@fluentui/react-compose" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Fri, 15 May 2020 12:42:20 GMT", | ||
"tag": "@fluentui/react-compose_v0.4.0", | ||
@@ -8,0 +23,0 @@ "version": "0.4.0", |
# Change Log - @fluentui/react-compose | ||
This log was last generated on Fri, 15 May 2020 12:38:19 GMT and should not be manually modified. | ||
This log was last generated on Tue, 19 May 2020 12:33:43 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [0.4.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-compose_v0.4.1) | ||
Tue, 19 May 2020 12:33:43 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-compose_v0.4.0..@fluentui/react-compose_v0.4.1) | ||
### Patches | ||
- fix(compose): fix type for `React.Ref` generic ([PR #13209](https://github.com/microsoft/fluentui/pull/13209) by olfedias@microsoft.com) | ||
## [0.4.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-compose_v0.4.0) | ||
Fri, 15 May 2020 12:38:19 GMT | ||
Fri, 15 May 2020 12:42:20 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-compose_v0.3.0..@fluentui/react-compose_v0.4.0) | ||
@@ -11,0 +20,0 @@ |
@@ -322,3 +322,3 @@ { | ||
"kind": "Content", | ||
"text": "declare function compose<T extends " | ||
"text": "declare function compose<ElementType extends " | ||
}, | ||
@@ -341,3 +341,3 @@ { | ||
"kind": "Content", | ||
"text": "<T, InputProps>" | ||
"text": "<ElementType, InputProps>" | ||
}, | ||
@@ -368,3 +368,3 @@ { | ||
"kind": "Content", | ||
"text": "<T, InputProps & ParentProps>" | ||
"text": "<ElementType, InputProps & ParentProps>" | ||
}, | ||
@@ -400,3 +400,3 @@ { | ||
{ | ||
"typeParameterName": "T", | ||
"typeParameterName": "ElementType", | ||
"constraintTokenRange": { | ||
@@ -787,6 +787,24 @@ "startIndex": 1, | ||
"kind": "Content", | ||
"text": "<T>, composeOptions: " | ||
"text": "<T extends keyof " | ||
}, | ||
{ | ||
"kind": "Reference", | ||
"text": "HTMLElementTagNameMap", | ||
"canonicalReference": "!HTMLElementTagNameMap:interface" | ||
}, | ||
{ | ||
"kind": "Content", | ||
"text": " ? " | ||
}, | ||
{ | ||
"kind": "Reference", | ||
"text": "HTMLElementTagNameMap", | ||
"canonicalReference": "!HTMLElementTagNameMap:interface" | ||
}, | ||
{ | ||
"kind": "Content", | ||
"text": "[T] : T>, composeOptions: " | ||
}, | ||
{ | ||
"kind": "Reference", | ||
"text": "ComposePreparedOptions", | ||
@@ -841,3 +859,3 @@ "canonicalReference": "@fluentui/react-compose!ComposePreparedOptions:type" | ||
"startIndex": 8, | ||
"endIndex": 15 | ||
"endIndex": 19 | ||
} | ||
@@ -844,0 +862,0 @@ }, |
@@ -20,3 +20,3 @@ import * as React from 'react'; | ||
export declare function compose<T extends React.ElementType, InputProps, InputStylesProps, ParentProps, ParentStylesProps>(input: Input<T, InputProps>, inputOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComponentWithAs<T, InputProps & ParentProps>; | ||
export declare function compose<ElementType extends React.ElementType, InputProps, InputStylesProps, ParentProps, ParentStylesProps>(input: Input<ElementType, InputProps>, inputOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComponentWithAs<ElementType, InputProps & ParentProps>; | ||
@@ -52,3 +52,3 @@ export declare type ComposedComponent<P = {}> = React.FunctionComponent<P> & { | ||
export declare type ComposeRenderFunction<T extends React.ElementType = 'div', P = {}> = (props: P, ref: React.Ref<T>, composeOptions: ComposePreparedOptions) => React.ReactElement | null; | ||
export declare type ComposeRenderFunction<T extends React.ElementType = 'div', P = {}> = (props: P, ref: React.Ref<T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : T>, composeOptions: ComposePreparedOptions) => React.ReactElement | null; | ||
@@ -55,0 +55,0 @@ export declare type Input<T extends React.ElementType = 'div', P = {}> = InputComposeComponent<P> | ComposeRenderFunction<T, P & { |
@@ -33,3 +33,3 @@ ## API Report File for "@fluentui/react-compose" | ||
// @public (undocumented) | ||
export function compose<T extends React.ElementType, InputProps, InputStylesProps, ParentProps, ParentStylesProps>(input: Input<T, InputProps>, inputOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComponentWithAs<T, InputProps & ParentProps>; | ||
export function compose<ElementType extends React.ElementType, InputProps, InputStylesProps, ParentProps, ParentStylesProps>(input: Input<ElementType, InputProps>, inputOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComponentWithAs<ElementType, InputProps & ParentProps>; | ||
@@ -69,3 +69,3 @@ // @public (undocumented) | ||
// @public (undocumented) | ||
export type ComposeRenderFunction<T extends React.ElementType = 'div', P = {}> = (props: P, ref: React.Ref<T>, composeOptions: ComposePreparedOptions) => React.ReactElement | null; | ||
export type ComposeRenderFunction<T extends React.ElementType = 'div', P = {}> = (props: P, ref: React.Ref<T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : T>, composeOptions: ComposePreparedOptions) => React.ReactElement | null; | ||
@@ -72,0 +72,0 @@ // @public (undocumented) |
import * as React from 'react'; | ||
import { ComponentWithAs, ComposeOptions, Input } from './types'; | ||
declare function compose<T extends React.ElementType, InputProps, InputStylesProps, ParentProps, ParentStylesProps>(input: Input<T, InputProps>, inputOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComponentWithAs<T, InputProps & ParentProps>; | ||
declare function compose<ElementType extends React.ElementType, InputProps, InputStylesProps, ParentProps, ParentStylesProps>(input: Input<ElementType, InputProps>, inputOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComponentWithAs<ElementType, InputProps & ParentProps>; | ||
export default compose; |
@@ -24,3 +24,3 @@ import * as React from 'react'; | ||
}>; | ||
export declare type ComposeRenderFunction<T extends React.ElementType = 'div', P = {}> = (props: P, ref: React.Ref<T>, composeOptions: ComposePreparedOptions) => React.ReactElement | null; | ||
export declare type ComposeRenderFunction<T extends React.ElementType = 'div', P = {}> = (props: P, ref: React.Ref<T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : T>, composeOptions: ComposePreparedOptions) => React.ReactElement | null; | ||
export declare type ComposeOptions<InputProps = {}, InputStylesProps = {}, ParentStylesProps = {}> = { | ||
@@ -27,0 +27,0 @@ className?: string; |
define(["require", "exports", "@uifabric/set-version"], function (require, exports, set_version_1) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
set_version_1.setVersion('@fluentui/react-compose', '0.4.0'); | ||
set_version_1.setVersion('@fluentui/react-compose', '0.4.1'); | ||
}); | ||
//# sourceMappingURL=version.js.map |
import * as React from 'react'; | ||
import { ComponentWithAs, ComposeOptions, Input } from './types'; | ||
declare function compose<T extends React.ElementType, InputProps, InputStylesProps, ParentProps, ParentStylesProps>(input: Input<T, InputProps>, inputOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComponentWithAs<T, InputProps & ParentProps>; | ||
declare function compose<ElementType extends React.ElementType, InputProps, InputStylesProps, ParentProps, ParentStylesProps>(input: Input<ElementType, InputProps>, inputOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComponentWithAs<ElementType, InputProps & ParentProps>; | ||
export default compose; |
@@ -24,3 +24,3 @@ import * as React from 'react'; | ||
}>; | ||
export declare type ComposeRenderFunction<T extends React.ElementType = 'div', P = {}> = (props: P, ref: React.Ref<T>, composeOptions: ComposePreparedOptions) => React.ReactElement | null; | ||
export declare type ComposeRenderFunction<T extends React.ElementType = 'div', P = {}> = (props: P, ref: React.Ref<T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : T>, composeOptions: ComposePreparedOptions) => React.ReactElement | null; | ||
export declare type ComposeOptions<InputProps = {}, InputStylesProps = {}, ParentStylesProps = {}> = { | ||
@@ -27,0 +27,0 @@ className?: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// @fluentui/react-compose@0.4.0 | ||
// @fluentui/react-compose@0.4.1 | ||
// Do not modify this file, the file is generated as part of publish. The checked in version is a placeholder only. | ||
var set_version_1 = require("@uifabric/set-version"); | ||
set_version_1.setVersion('@fluentui/react-compose', '0.4.0'); | ||
set_version_1.setVersion('@fluentui/react-compose', '0.4.1'); | ||
//# sourceMappingURL=version.js.map |
import * as React from 'react'; | ||
import { ComponentWithAs, ComposeOptions, Input } from './types'; | ||
declare function compose<T extends React.ElementType, InputProps, InputStylesProps, ParentProps, ParentStylesProps>(input: Input<T, InputProps>, inputOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComponentWithAs<T, InputProps & ParentProps>; | ||
declare function compose<ElementType extends React.ElementType, InputProps, InputStylesProps, ParentProps, ParentStylesProps>(input: Input<ElementType, InputProps>, inputOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComponentWithAs<ElementType, InputProps & ParentProps>; | ||
export default compose; |
@@ -24,3 +24,3 @@ import * as React from 'react'; | ||
}>; | ||
export declare type ComposeRenderFunction<T extends React.ElementType = 'div', P = {}> = (props: P, ref: React.Ref<T>, composeOptions: ComposePreparedOptions) => React.ReactElement | null; | ||
export declare type ComposeRenderFunction<T extends React.ElementType = 'div', P = {}> = (props: P, ref: React.Ref<T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : T>, composeOptions: ComposePreparedOptions) => React.ReactElement | null; | ||
export declare type ComposeOptions<InputProps = {}, InputStylesProps = {}, ParentStylesProps = {}> = { | ||
@@ -27,0 +27,0 @@ className?: string; |
@@ -1,5 +0,5 @@ | ||
// @fluentui/react-compose@0.4.0 | ||
// @fluentui/react-compose@0.4.1 | ||
// Do not modify this file, the file is generated as part of publish. The checked in version is a placeholder only. | ||
import { setVersion } from '@uifabric/set-version'; | ||
setVersion('@fluentui/react-compose', '0.4.0'); | ||
setVersion('@fluentui/react-compose', '0.4.1'); | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@fluentui/react-compose", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Fluent UI React component composition.", | ||
@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js", |
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
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
199065
2765