@fluentui/react-compose
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -5,6 +5,47 @@ { | ||
{ | ||
"date": "Mon, 30 Mar 2020 19:07:01 GMT", | ||
"date": "Thu, 16 Apr 2020 00:06:26 GMT", | ||
"tag": "@fluentui/react-compose_v0.2.5", | ||
"version": "0.2.5", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"comment": "Update package description", | ||
"author": "elcraig@microsoft.com", | ||
"commit": "9e3c7c7d4b92e132820cdbcd61a667829c712ecb", | ||
"package": "@fluentui/react-compose" | ||
}, | ||
{ | ||
"comment": "fix(compose): add className as static and fix handling of handledProps", | ||
"author": "olfedias@microsoft.com", | ||
"commit": "b2867e57e2eaba8ac9c6c7c3e838d3802843d640", | ||
"package": "@fluentui/react-compose" | ||
}, | ||
{ | ||
"comment": "renamed className to deprecated_className", | ||
"author": "mnajdova@gmail.com", | ||
"commit": "7422b5965d79047303f4e31ad5668555edafee5e", | ||
"package": "@fluentui/react-compose" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Thu, 09 Apr 2020 12:24:31 GMT", | ||
"tag": "@fluentui/react-compose_v0.2.4", | ||
"version": "0.2.4", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"comment": "chore: bump @types/react", | ||
"author": "olfedias@microsoft.com", | ||
"commit": "1c25191a3a6a1b6e8a0aca3c7cf7f3a629171738" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Mon, 30 Mar 2020 19:10:08 GMT", | ||
"tag": "@fluentui/react-compose_v0.2.4", | ||
"version": "0.2.4", | ||
"comments": { | ||
"patch": [ | ||
@@ -83,2 +124,2 @@ { | ||
] | ||
} | ||
} |
# Change Log - @fluentui/react-compose | ||
This log was last generated on Mon, 30 Mar 2020 19:07:01 GMT and should not be manually modified. | ||
This log was last generated on Thu, 16 Apr 2020 00:06:26 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [0.2.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-compose_v0.2.5) | ||
Thu, 16 Apr 2020 00:06:26 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-compose_v0.2.4..@fluentui/react-compose_v0.2.5) | ||
### Patches | ||
- Update package description ([PR #12508](https://github.com/microsoft/fluentui/pull/12508) by elcraig@microsoft.com) | ||
- fix(compose): add className as static and fix handling of handledProps ([PR #12677](https://github.com/microsoft/fluentui/pull/12677) by olfedias@microsoft.com) | ||
- renamed className to deprecated_className ([PR #12702](https://github.com/microsoft/fluentui/pull/12702) by mnajdova@gmail.com) | ||
## 0.2.4 | ||
Mon, 30 Mar 2020 19:07:01 GMT | ||
Mon, 30 Mar 2020 19:10:08 GMT | ||
@@ -34,2 +47,2 @@ ### Patches | ||
- feat(compose): add compose() & scaffold react-compose-next (olfedias@microsoft.com) | ||
- feat(compose): add compose() & scaffold react-compose-next (olfedias@microsoft.com) |
@@ -43,3 +43,3 @@ { | ||
"kind": "Content", | ||
"text": ";\n}" | ||
"text": ";\n handledProps?: (keyof ParentProps)[];\n}" | ||
}, | ||
@@ -195,3 +195,3 @@ { | ||
"kind": "Content", | ||
"text": "<InputProps & ParentProps> & {\n fluentComposeConfig: " | ||
"text": "<InputProps & ParentProps> & {\n deprecated_className: string;\n fluentComposeConfig: " | ||
}, | ||
@@ -198,0 +198,0 @@ { |
@@ -5,5 +5,7 @@ import * as React from 'react'; | ||
fluentComposeConfig?: ComposePreparedOptions; | ||
handledProps?: (keyof ParentProps)[]; | ||
}, composeOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComposedComponent<InputProps, InputStylesProps, ParentProps, ParentStylesProps>; | ||
export declare type ComposedComponent<InputProps = {}, InputStylesProps = {}, ParentProps = {}, ParentStylesProps = {}> = React.FunctionComponent<InputProps & ParentProps> & { | ||
deprecated_className: string; | ||
fluentComposeConfig: ComposePreparedOptions<InputProps, InputStylesProps, ParentProps, ParentStylesProps>; | ||
@@ -10,0 +12,0 @@ }; |
@@ -342,10 +342,10 @@ var FluentCompose = | ||
var inputOptions = InputComponent.fluentComposeConfig || Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, defaultComposeOptions), (InputComponent.displayName && { displayNames: [InputComponent.displayName] })); | ||
var _a = composeOptions.handledProps, handledProps = _a === void 0 ? [] : _a, mapPropsToStylesProps = composeOptions.mapPropsToStylesProps; | ||
Component.deprecated_className = composeOptions.className || inputOptions.className; | ||
Component.displayName = composeOptions.displayName || InputComponent.displayName; | ||
Component.fluentComposeConfig = { | ||
className: composeOptions.className || inputOptions.className, | ||
className: Component.deprecated_className, | ||
displayNames: computeDisplayNames(inputOptions, composeOptions), | ||
mapPropsToStylesPropsChain: (mapPropsToStylesProps | ||
? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(inputOptions.mapPropsToStylesPropsChain, [mapPropsToStylesProps]) : inputOptions.mapPropsToStylesPropsChain), | ||
handledProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(inputOptions.handledProps, handledProps), | ||
mapPropsToStylesPropsChain: (composeOptions.mapPropsToStylesProps | ||
? Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(inputOptions.mapPropsToStylesPropsChain, [composeOptions.mapPropsToStylesProps]) : inputOptions.mapPropsToStylesPropsChain), | ||
handledProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])((InputComponent.handledProps || []), inputOptions.handledProps, (composeOptions.handledProps || [])), | ||
overrideStyles: composeOptions.overrideStyles || false, | ||
@@ -352,0 +352,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
var FluentCompose=function(e){var r={};function n(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)n.d(t,o,function(r){return e[r]}.bind(null,o));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=0)}([function(e,r,n){"use strict";n.r(r);var t=function(){return(t=Object.assign||function(e){for(var r,n=1,t=arguments.length;n<t;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function o(){for(var e=0,r=0,n=arguments.length;r<n;r++)e+=arguments[r].length;var t=Array(e),o=0;for(r=0;r<n;r++)for(var a=arguments[r],s=0,l=a.length;s<l;s++,o++)t[o]=a[s];return t}var a={className:"",displayNames:[],mapPropsToStylesPropsChain:[],handledProps:[],overrideStyles:!1};function s(e,r){return r.overrideStyles?[r.displayName].filter(Boolean):r.displayName?e.displayNames.concat(r.displayName):e.displayNames}var l=function(e,r){void 0===r&&(r={});var n=e.bind(null),l=e.fluentComposeConfig||t(t({},a),e.displayName&&{displayNames:[e.displayName]}),i=r.handledProps,p=void 0===i?[]:i,u=r.mapPropsToStylesProps;return n.displayName=r.displayName||e.displayName,n.fluentComposeConfig={className:r.className||l.className,displayNames:s(l,r),mapPropsToStylesPropsChain:u?o(l.mapPropsToStylesPropsChain,[u]):l.mapPropsToStylesPropsChain,handledProps:o(l.handledProps,p),overrideStyles:r.overrideStyles||!1},n};n.d(r,"compose",(function(){return l}))}]); | ||
var FluentCompose=function(e){var r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)t.d(o,n,function(r){return e[r]}.bind(null,n));return o},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){"use strict";t.r(r),t.d(r,"compose",(function(){return l}));var o=function(){return(o=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)};function n(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var o=Array(e),n=0;for(r=0;r<t;r++)for(var a=arguments[r],s=0,l=a.length;s<l;s++,n++)o[n]=a[s];return o}var a={className:"",displayNames:[],mapPropsToStylesPropsChain:[],handledProps:[],overrideStyles:!1};function s(e,r){return r.overrideStyles?[r.displayName].filter(Boolean):r.displayName?e.displayNames.concat(r.displayName):e.displayNames}var l=function(e,r){void 0===r&&(r={});var t=e.bind(null),l=e.fluentComposeConfig||o(o({},a),e.displayName&&{displayNames:[e.displayName]});return t.deprecated_className=r.className||l.className,t.displayName=r.displayName||e.displayName,t.fluentComposeConfig={className:t.deprecated_className,displayNames:s(l,r),mapPropsToStylesPropsChain:r.mapPropsToStylesProps?n(l.mapPropsToStylesPropsChain,[r.mapPropsToStylesProps]):l.mapPropsToStylesPropsChain,handledProps:n(e.handledProps||[],l.handledProps,r.handledProps||[]),overrideStyles:r.overrideStyles||!1},t}}]); | ||
//# sourceMappingURL=react-compose.min.js.map |
@@ -12,2 +12,3 @@ ## API Report File for "@fluentui/react-compose" | ||
fluentComposeConfig?: ComposePreparedOptions; | ||
handledProps?: (keyof ParentProps)[]; | ||
}, composeOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComposedComponent<InputProps, InputStylesProps, ParentProps, ParentStylesProps>; | ||
@@ -17,2 +18,3 @@ | ||
export type ComposedComponent<InputProps = {}, InputStylesProps = {}, ParentProps = {}, ParentStylesProps = {}> = React.FunctionComponent<InputProps & ParentProps> & { | ||
deprecated_className: string; | ||
fluentComposeConfig: ComposePreparedOptions<InputProps, InputStylesProps, ParentProps, ParentStylesProps>; | ||
@@ -19,0 +21,0 @@ }; |
@@ -5,3 +5,4 @@ import * as React from 'react'; | ||
fluentComposeConfig?: ComposePreparedOptions; | ||
handledProps?: (keyof ParentProps)[]; | ||
}, composeOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComposedComponent<InputProps, InputStylesProps, ParentProps, ParentStylesProps>; | ||
export default compose; |
@@ -24,10 +24,10 @@ define(["require", "exports", "tslib"], function (require, exports, tslib_1) { | ||
var inputOptions = InputComponent.fluentComposeConfig || tslib_1.__assign(tslib_1.__assign({}, defaultComposeOptions), (InputComponent.displayName && { displayNames: [InputComponent.displayName] })); | ||
var _a = composeOptions.handledProps, handledProps = _a === void 0 ? [] : _a, mapPropsToStylesProps = composeOptions.mapPropsToStylesProps; | ||
Component.deprecated_className = composeOptions.className || inputOptions.className; | ||
Component.displayName = composeOptions.displayName || InputComponent.displayName; | ||
Component.fluentComposeConfig = { | ||
className: composeOptions.className || inputOptions.className, | ||
className: Component.deprecated_className, | ||
displayNames: computeDisplayNames(inputOptions, composeOptions), | ||
mapPropsToStylesPropsChain: (mapPropsToStylesProps | ||
? tslib_1.__spreadArrays(inputOptions.mapPropsToStylesPropsChain, [mapPropsToStylesProps]) : inputOptions.mapPropsToStylesPropsChain), | ||
handledProps: tslib_1.__spreadArrays(inputOptions.handledProps, handledProps), | ||
mapPropsToStylesPropsChain: (composeOptions.mapPropsToStylesProps | ||
? tslib_1.__spreadArrays(inputOptions.mapPropsToStylesPropsChain, [composeOptions.mapPropsToStylesProps]) : inputOptions.mapPropsToStylesPropsChain), | ||
handledProps: tslib_1.__spreadArrays((InputComponent.handledProps || []), inputOptions.handledProps, (composeOptions.handledProps || [])), | ||
overrideStyles: composeOptions.overrideStyles || false, | ||
@@ -34,0 +34,0 @@ }; |
import * as React from 'react'; | ||
export declare type ComposedComponent<InputProps = {}, InputStylesProps = {}, ParentProps = {}, ParentStylesProps = {}> = React.FunctionComponent<InputProps & ParentProps> & { | ||
deprecated_className: string; | ||
fluentComposeConfig: ComposePreparedOptions<InputProps, InputStylesProps, ParentProps, ParentStylesProps>; | ||
@@ -4,0 +5,0 @@ }; |
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.2.4'); | ||
set_version_1.setVersion('@fluentui/react-compose', '0.2.5'); | ||
}); | ||
//# sourceMappingURL=version.js.map |
@@ -5,3 +5,4 @@ import * as React from 'react'; | ||
fluentComposeConfig?: ComposePreparedOptions; | ||
handledProps?: (keyof ParentProps)[]; | ||
}, composeOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComposedComponent<InputProps, InputStylesProps, ParentProps, ParentStylesProps>; | ||
export default compose; |
@@ -24,10 +24,10 @@ "use strict"; | ||
var inputOptions = InputComponent.fluentComposeConfig || tslib_1.__assign(tslib_1.__assign({}, defaultComposeOptions), (InputComponent.displayName && { displayNames: [InputComponent.displayName] })); | ||
var _a = composeOptions.handledProps, handledProps = _a === void 0 ? [] : _a, mapPropsToStylesProps = composeOptions.mapPropsToStylesProps; | ||
Component.deprecated_className = composeOptions.className || inputOptions.className; | ||
Component.displayName = composeOptions.displayName || InputComponent.displayName; | ||
Component.fluentComposeConfig = { | ||
className: composeOptions.className || inputOptions.className, | ||
className: Component.deprecated_className, | ||
displayNames: computeDisplayNames(inputOptions, composeOptions), | ||
mapPropsToStylesPropsChain: (mapPropsToStylesProps | ||
? tslib_1.__spreadArrays(inputOptions.mapPropsToStylesPropsChain, [mapPropsToStylesProps]) : inputOptions.mapPropsToStylesPropsChain), | ||
handledProps: tslib_1.__spreadArrays(inputOptions.handledProps, handledProps), | ||
mapPropsToStylesPropsChain: (composeOptions.mapPropsToStylesProps | ||
? tslib_1.__spreadArrays(inputOptions.mapPropsToStylesPropsChain, [composeOptions.mapPropsToStylesProps]) : inputOptions.mapPropsToStylesPropsChain), | ||
handledProps: tslib_1.__spreadArrays((InputComponent.handledProps || []), inputOptions.handledProps, (composeOptions.handledProps || [])), | ||
overrideStyles: composeOptions.overrideStyles || false, | ||
@@ -34,0 +34,0 @@ }; |
import * as React from 'react'; | ||
export declare type ComposedComponent<InputProps = {}, InputStylesProps = {}, ParentProps = {}, ParentStylesProps = {}> = React.FunctionComponent<InputProps & ParentProps> & { | ||
deprecated_className: string; | ||
fluentComposeConfig: ComposePreparedOptions<InputProps, InputStylesProps, ParentProps, ParentStylesProps>; | ||
@@ -4,0 +5,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// @fluentui/react-compose@0.2.4 | ||
// @fluentui/react-compose@0.2.5 | ||
// 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.2.4'); | ||
set_version_1.setVersion('@fluentui/react-compose', '0.2.5'); | ||
//# sourceMappingURL=version.js.map |
@@ -5,3 +5,4 @@ import * as React from 'react'; | ||
fluentComposeConfig?: ComposePreparedOptions; | ||
handledProps?: (keyof ParentProps)[]; | ||
}, composeOptions?: ComposeOptions<InputProps, InputStylesProps, ParentStylesProps>): ComposedComponent<InputProps, InputStylesProps, ParentProps, ParentStylesProps>; | ||
export default compose; |
@@ -22,10 +22,10 @@ import { __assign, __spreadArrays } from "tslib"; | ||
var inputOptions = InputComponent.fluentComposeConfig || __assign(__assign({}, defaultComposeOptions), (InputComponent.displayName && { displayNames: [InputComponent.displayName] })); | ||
var _a = composeOptions.handledProps, handledProps = _a === void 0 ? [] : _a, mapPropsToStylesProps = composeOptions.mapPropsToStylesProps; | ||
Component.deprecated_className = composeOptions.className || inputOptions.className; | ||
Component.displayName = composeOptions.displayName || InputComponent.displayName; | ||
Component.fluentComposeConfig = { | ||
className: composeOptions.className || inputOptions.className, | ||
className: Component.deprecated_className, | ||
displayNames: computeDisplayNames(inputOptions, composeOptions), | ||
mapPropsToStylesPropsChain: (mapPropsToStylesProps | ||
? __spreadArrays(inputOptions.mapPropsToStylesPropsChain, [mapPropsToStylesProps]) : inputOptions.mapPropsToStylesPropsChain), | ||
handledProps: __spreadArrays(inputOptions.handledProps, handledProps), | ||
mapPropsToStylesPropsChain: (composeOptions.mapPropsToStylesProps | ||
? __spreadArrays(inputOptions.mapPropsToStylesPropsChain, [composeOptions.mapPropsToStylesProps]) : inputOptions.mapPropsToStylesPropsChain), | ||
handledProps: __spreadArrays((InputComponent.handledProps || []), inputOptions.handledProps, (composeOptions.handledProps || [])), | ||
overrideStyles: composeOptions.overrideStyles || false, | ||
@@ -32,0 +32,0 @@ }; |
import * as React from 'react'; | ||
export declare type ComposedComponent<InputProps = {}, InputStylesProps = {}, ParentProps = {}, ParentStylesProps = {}> = React.FunctionComponent<InputProps & ParentProps> & { | ||
deprecated_className: string; | ||
fluentComposeConfig: ComposePreparedOptions<InputProps, InputStylesProps, ParentProps, ParentStylesProps>; | ||
@@ -4,0 +5,0 @@ }; |
@@ -1,5 +0,5 @@ | ||
// @fluentui/react-compose@0.2.4 | ||
// @fluentui/react-compose@0.2.5 | ||
// 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.2.4'); | ||
setVersion('@fluentui/react-compose', '0.2.5'); | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@fluentui/react-compose", | ||
"version": "0.2.4", | ||
"description": "UI Fabric React hooks.", | ||
"version": "0.2.5", | ||
"description": "Fluent UI React component composition.", | ||
"main": "lib-commonjs/index.js", | ||
@@ -28,10 +28,10 @@ "module": "lib/index.js", | ||
"devDependencies": { | ||
"@types/react": "16.8.11", | ||
"@types/react": "16.8.25", | ||
"@types/webpack-env": "1.15.1", | ||
"@uifabric/build": "^7.0.0", | ||
"@uifabric/tslint-rules": "^7.1.2", | ||
"@uifabric/tslint-rules": "^7.1.3", | ||
"react": "16.8.6" | ||
}, | ||
"dependencies": { | ||
"@uifabric/set-version": "^7.0.9", | ||
"@uifabric/set-version": "^7.0.10", | ||
"tslib": "^1.10.0" | ||
@@ -38,0 +38,0 @@ }, |
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
96064
1210