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

@fluentui/react-compose

Package Overview
Dependencies
Maintainers
12
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/react-compose - npm Package Compare versions

Comparing version 1.0.0-beta.18 to 1.0.0-beta.19

40

CHANGELOG.json

@@ -5,6 +5,44 @@ {

{
"date": "Wed, 03 Mar 2021 00:05:15 GMT",
"date": "Mon, 15 Mar 2021 07:33:50 GMT",
"tag": "@fluentui/react-compose_v1.0.0-beta.19",
"version": "1.0.0-beta.19",
"comments": {
"prerelease": [
{
"comment": "Remove set-version references",
"author": "elcraig@microsoft.com",
"commit": "b0bef818ea07833d9b9797ef26a4b24200ed0307",
"package": "@fluentui/react-compose"
}
],
"none": [
{
"comment": "Bump @fluentui/utilities to v8.0.2",
"author": "elcraig@microsoft.com",
"commit": "3b4dd6b9e941da11297cea43c5218a4da2d277d5",
"package": "@fluentui/react-compose"
}
]
}
},
{
"date": "Fri, 12 Mar 2021 20:04:27 GMT",
"tag": "@fluentui/react-compose_v1.0.0-beta.18",
"version": "1.0.0-beta.18",
"comments": {
"none": [
{
"comment": "Move `@types/node` and `@types/webpack-env` devDependencies to root, and remove unneeded references",
"author": "elcraig@microsoft.com",
"commit": "8789ee1074aad852bd0a95d0183dbdf2ee718e1d",
"package": "@fluentui/react-compose"
}
]
}
},
{
"date": "Wed, 03 Mar 2021 00:10:09 GMT",
"tag": "@fluentui/react-compose_v1.0.0-beta.18",
"version": "1.0.0-beta.18",
"comments": {
"patch": [

@@ -11,0 +49,0 @@ {

# Change Log - @fluentui/react-compose
This log was last generated on Wed, 03 Mar 2021 00:05:15 GMT and should not be manually modified.
This log was last generated on Mon, 15 Mar 2021 07:33:50 GMT and should not be manually modified.
<!-- Start content -->
## [1.0.0-beta.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-compose_v1.0.0-beta.19)
Mon, 15 Mar 2021 07:33:50 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-compose_v1.0.0-beta.18..@fluentui/react-compose_v1.0.0-beta.19)
### Changes
- Remove set-version references ([PR #17381](https://github.com/microsoft/fluentui/pull/17381) by elcraig@microsoft.com)
## [1.0.0-beta.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-compose_v1.0.0-beta.18)
Wed, 03 Mar 2021 00:05:15 GMT
Wed, 03 Mar 2021 00:10:09 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-compose_v1.0.0-beta.17..@fluentui/react-compose_v1.0.0-beta.18)

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

2

dist/react-compose.js

@@ -1,2 +0,2 @@

var FluentCompose;FluentCompose=(()=>{"use strict";var e={132:(e,r,t)=>{t.r(r),t.d(r,{compose:()=>i,createClassResolver:()=>f,mergeProps:()=>y,mergeSlotProp:()=>d});var o=function(){return(o=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e}).apply(this,arguments)};function s(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var o=Array(e),s=0;for(r=0;r<t;r++)for(var n=arguments[r],a=0,l=n.length;a<l;a++,s++)o[s]=n[a];return o}const n=React;function a(e,r){return e.overrideStyles?[e.displayName].filter(Boolean):e.displayName?r.displayNames.concat(e.displayName):r.displayNames}var l={className:"no-classname-🙉",classes:[],displayName:"",displayNames:[],mapPropsToStylesPropsChain:[],render:function(){return null},handledProps:[],overrideStyles:!1,slots:{__self:function(){return null}},slotProps:[],state:function(e){return e},resolveSlotProps:function(){return{}},shorthandConfig:{}};const i=function(e,r){void 0===r&&(r={});var t=function(e,r,t){void 0===t&&(t=l);var n=r.slotProps?s(t.slotProps,[r.slotProps]):t.slotProps,i=Array.isArray(r.classes)?r.classes:[r.classes];return{className:r.className||t.className,classes:s(t.classes,i),displayName:r.displayName||t.displayName,displayNames:a(r,t),mapPropsToStylesPropsChain:r.mapPropsToStylesProps?s(t.mapPropsToStylesPropsChain,[r.mapPropsToStylesProps]):t.mapPropsToStylesPropsChain,render:"function"==typeof e?e:t.render,handledProps:s(t.handledProps,r.handledProps||[]),overrideStyles:r.overrideStyles||!1,slots:o(o({},t.slots),r.slots),slotProps:n,state:function(e,o,s){return r.state?r.state(t.state(e,o,s),o,s):t.state(e,o,s)},resolveSlotProps:function(e){return n.reduce((function(r,t){var n=o({},t(e)),a=s(Object.keys(r),Object.keys(n)),l={};return a.forEach((function(e){l[e]||(l[e]=o(o({},r[e]),n[e]))})),l}),{})},shorthandConfig:o(o({},t.shorthandConfig),r.shorthandConfig)}}(e,r,function(e){return!!e.fluentComposeConfig}(e)?e.fluentComposeConfig:void 0),i=n.forwardRef((function(e,r){return t.render(e,r,o(o({},t),{state:t.state(e,r,t),slots:o(o({},t.slots),{__self:i})}))}));return i.displayName=t.displayName,e.defaultProps&&(i.defaultProps=e.defaultProps),i.fluentComposeConfig=t,i};function c(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t="",o=0,s=e;o<s.length;o++){var n=s[o];n&&(t=(t?t+" ":"")+n)}return t}var f=function(e){var r=function(e){var r={slots:{},modifiers:{},enums:{}},t=r.slots,o=r.modifiers,s=r.enums;return Object.keys(e).forEach((function(r){var n=e[r];if(n){var a=r.split("_");switch(a.length){case 2:o[a[1]]=n;break;case 3:var l=a[1],i=a[2];(s[l]=s[l]||{})[i]=n;break;default:t[r]=n}}})),r}(e),t=r.slots,o=r.modifiers,s=r.enums;return function(e){for(var r={},n="",a=0,l=Object.keys(o);a<l.length;a++){var i=l[a];e[i]&&(n=c(n,o[i]))}for(var f="",p=0,u=Object.keys(s);p<u.length;p++){var d=u[p],v=s[d];v[e[d]]&&(f=c(f,v[e[d]]))}for(var y=0,m=Object.keys(t);y<m.length;y++){var h=m[y];r[h]=c(t[h],n,f)}return r}};function p(e,r,t){if(t){var o=e[r]=e[r]||{};o.className=c(o.className,t)}}var u={iframe:"src",img:"src",input:"type"};function d(e,r,t){var s;return void 0===t&&(t="children"),"object"!=typeof e||n.isValidElement(e)?o(((s={})[t]=e,s),r):o(o({},e),r)}var v=function(){return null};function y(e,r){var t={state:e,slots:o(o({},r.slots),{root:e.as||r.slots.root||"div"}),slotProps:{}};return function(e,r){for(var t=e.state,o=e.slots,s=e.slotProps,n=0,a=r;n<a.length;n++){var l=a[n],i="function"==typeof l?l(t,o):l;if(i)for(var c=0,f=Object.keys(i);c<f.length;c++){var u=f[c];i[u]&&o[u]&&p(s,u,i[u])}}p(s,"root",t.className)}(t,r.classes),function(e,r){var t,s,a=e.state,l=e.slots,i=e.slotProps;r.slotProps.forEach((function(e){var r=e(a);Object.keys(r).forEach((function(e){i[e]=o(o({},i[e]),r[e])}))})),t=i,(s=function(e,r){for(var t={},o=Object.keys(r.slots),s=0,n=Object.keys(e);s<n.length;s++){var a=n[s];"className"!==a&&"as"!==a&&-1===r.handledProps.indexOf(a)&&-1===o.indexOf(a)&&(t[a]=e[a])}return t}(a,r))&&(t.root||(t.root={}),t.root=o(o({},t.root),s)),Object.keys(l).forEach((function(e){var r=l[e],t=a[e];if(r&&null!=t){var s=d(t,i[e],r&&r.shorthandConfig&&r.shorthandConfig.mappedProp||u[r]);if("function"==typeof s.children){t.children;var c=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)r.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(t[o[s]]=e[o[s]])}return t}(t,["children"]);l[e]=n.Fragment,i[e]={children:t.children(r,o(o({},i[e]),c))}}else i[e]=s}l[e]&&null!==t||(l[e]=v)}))}(t,r),t}var m={},h=void 0;try{h=window}catch(e){}function P(e,r){if(void 0!==h){var t=h.__packages__=h.__packages__||{};t[e]&&m[e]||(m[e]=r,(t[e]=t[e]||[]).push(r))}}P("@fluentui/set-version","6.0.0"),P("@fluentui/react-compose","1.0.0-beta.18")}},r={};function t(o){if(r[o])return r[o].exports;var s=r[o]={exports:{}};return e[o](s,s.exports,t),s.exports}return t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(132)})();
var FluentCompose;FluentCompose=(()=>{"use strict";var e={958:(e,r,t)=>{t.r(r),t.d(r,{compose:()=>i,createClassResolver:()=>f,mergeProps:()=>v,mergeSlotProp:()=>d});var o=function(){return(o=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e}).apply(this,arguments)};function s(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var o=Array(e),s=0;for(r=0;r<t;r++)for(var n=arguments[r],a=0,l=n.length;a<l;a++,s++)o[s]=n[a];return o}const n=React;function a(e,r){return e.overrideStyles?[e.displayName].filter(Boolean):e.displayName?r.displayNames.concat(e.displayName):r.displayNames}var l={className:"no-classname-🙉",classes:[],displayName:"",displayNames:[],mapPropsToStylesPropsChain:[],render:function(){return null},handledProps:[],overrideStyles:!1,slots:{__self:function(){return null}},slotProps:[],state:function(e){return e},resolveSlotProps:function(){return{}},shorthandConfig:{}};const i=function(e,r){void 0===r&&(r={});var t=function(e,r,t){void 0===t&&(t=l);var n=r.slotProps?s(t.slotProps,[r.slotProps]):t.slotProps,i=Array.isArray(r.classes)?r.classes:[r.classes];return{className:r.className||t.className,classes:s(t.classes,i),displayName:r.displayName||t.displayName,displayNames:a(r,t),mapPropsToStylesPropsChain:r.mapPropsToStylesProps?s(t.mapPropsToStylesPropsChain,[r.mapPropsToStylesProps]):t.mapPropsToStylesPropsChain,render:"function"==typeof e?e:t.render,handledProps:s(t.handledProps,r.handledProps||[]),overrideStyles:r.overrideStyles||!1,slots:o(o({},t.slots),r.slots),slotProps:n,state:function(e,o,s){return r.state?r.state(t.state(e,o,s),o,s):t.state(e,o,s)},resolveSlotProps:function(e){return n.reduce((function(r,t){var n=o({},t(e)),a=s(Object.keys(r),Object.keys(n)),l={};return a.forEach((function(e){l[e]||(l[e]=o(o({},r[e]),n[e]))})),l}),{})},shorthandConfig:o(o({},t.shorthandConfig),r.shorthandConfig)}}(e,r,function(e){return!!e.fluentComposeConfig}(e)?e.fluentComposeConfig:void 0),i=n.forwardRef((function(e,r){return t.render(e,r,o(o({},t),{state:t.state(e,r,t),slots:o(o({},t.slots),{__self:i})}))}));return i.displayName=t.displayName,e.defaultProps&&(i.defaultProps=e.defaultProps),i.fluentComposeConfig=t,i};function c(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t="",o=0,s=e;o<s.length;o++){var n=s[o];n&&(t=(t?t+" ":"")+n)}return t}var f=function(e){var r=function(e){var r={slots:{},modifiers:{},enums:{}},t=r.slots,o=r.modifiers,s=r.enums;return Object.keys(e).forEach((function(r){var n=e[r];if(n){var a=r.split("_");switch(a.length){case 2:o[a[1]]=n;break;case 3:var l=a[1],i=a[2];(s[l]=s[l]||{})[i]=n;break;default:t[r]=n}}})),r}(e),t=r.slots,o=r.modifiers,s=r.enums;return function(e){for(var r={},n="",a=0,l=Object.keys(o);a<l.length;a++){var i=l[a];e[i]&&(n=c(n,o[i]))}for(var f="",p=0,u=Object.keys(s);p<u.length;p++){var d=u[p],y=s[d];y[e[d]]&&(f=c(f,y[e[d]]))}for(var v=0,m=Object.keys(t);v<m.length;v++){var h=m[v];r[h]=c(t[h],n,f)}return r}};function p(e,r,t){if(t){var o=e[r]=e[r]||{};o.className=c(o.className,t)}}var u={iframe:"src",img:"src",input:"type"};function d(e,r,t){var s;return void 0===t&&(t="children"),"object"!=typeof e||n.isValidElement(e)?o(((s={})[t]=e,s),r):o(o({},e),r)}var y=function(){return null};function v(e,r){var t={state:e,slots:o(o({},r.slots),{root:e.as||r.slots.root||"div"}),slotProps:{}};return function(e,r){for(var t=e.state,o=e.slots,s=e.slotProps,n=0,a=r;n<a.length;n++){var l=a[n],i="function"==typeof l?l(t,o):l;if(i)for(var c=0,f=Object.keys(i);c<f.length;c++){var u=f[c];i[u]&&o[u]&&p(s,u,i[u])}}p(s,"root",t.className)}(t,r.classes),function(e,r){var t,s,a=e.state,l=e.slots,i=e.slotProps;r.slotProps.forEach((function(e){var r=e(a);Object.keys(r).forEach((function(e){i[e]=o(o({},i[e]),r[e])}))})),t=i,(s=function(e,r){for(var t={},o=Object.keys(r.slots),s=0,n=Object.keys(e);s<n.length;s++){var a=n[s];"className"!==a&&"as"!==a&&-1===r.handledProps.indexOf(a)&&-1===o.indexOf(a)&&(t[a]=e[a])}return t}(a,r))&&(t.root||(t.root={}),t.root=o(o({},t.root),s)),Object.keys(l).forEach((function(e){var r=l[e],t=a[e];if(r&&null!=t){var s=d(t,i[e],r&&r.shorthandConfig&&r.shorthandConfig.mappedProp||u[r]);if("function"==typeof s.children){t.children;var c=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)r.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(t[o[s]]=e[o[s]])}return t}(t,["children"]);l[e]=n.Fragment,i[e]={children:t.children(r,o(o({},i[e]),c))}}else i[e]=s}l[e]&&null!==t||(l[e]=y)}))}(t,r),t}}},r={};function t(o){if(r[o])return r[o].exports;var s=r[o]={exports:{}};return e[o](s,s.exports,t),s.exports}return t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(958)})();
//# sourceMappingURL=react-compose.js.map

@@ -1,2 +0,2 @@

var FluentCompose;FluentCompose=(()=>{"use strict";var e={132:(e,r,t)=>{t.r(r),t.d(r,{compose:()=>i,createClassResolver:()=>f,mergeProps:()=>y,mergeSlotProp:()=>d});var o=function(){return(o=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e}).apply(this,arguments)};function s(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var o=Array(e),s=0;for(r=0;r<t;r++)for(var n=arguments[r],a=0,l=n.length;a<l;a++,s++)o[s]=n[a];return o}const n=React;function a(e,r){return e.overrideStyles?[e.displayName].filter(Boolean):e.displayName?r.displayNames.concat(e.displayName):r.displayNames}var l={className:"",classes:[],displayName:"",displayNames:[],mapPropsToStylesPropsChain:[],render:function(){return null},handledProps:[],overrideStyles:!1,slots:{__self:function(){return null}},slotProps:[],state:function(e){return e},resolveSlotProps:function(){return{}},shorthandConfig:{}};const i=function(e,r){void 0===r&&(r={});var t=function(e,r,t){void 0===t&&(t=l);var n=r.slotProps?s(t.slotProps,[r.slotProps]):t.slotProps,i=Array.isArray(r.classes)?r.classes:[r.classes];return{className:r.className||t.className,classes:s(t.classes,i),displayName:r.displayName||t.displayName,displayNames:a(r,t),mapPropsToStylesPropsChain:r.mapPropsToStylesProps?s(t.mapPropsToStylesPropsChain,[r.mapPropsToStylesProps]):t.mapPropsToStylesPropsChain,render:"function"==typeof e?e:t.render,handledProps:s(t.handledProps,r.handledProps||[]),overrideStyles:r.overrideStyles||!1,slots:o(o({},t.slots),r.slots),slotProps:n,state:function(e,o,s){return r.state?r.state(t.state(e,o,s),o,s):t.state(e,o,s)},resolveSlotProps:function(e){return n.reduce((function(r,t){var n=o({},t(e)),a=s(Object.keys(r),Object.keys(n)),l={};return a.forEach((function(e){l[e]||(l[e]=o(o({},r[e]),n[e]))})),l}),{})},shorthandConfig:o(o({},t.shorthandConfig),r.shorthandConfig)}}(e,r,function(e){return!!e.fluentComposeConfig}(e)?e.fluentComposeConfig:void 0),i=n.forwardRef((function(e,r){return t.render(e,r,o(o({},t),{state:t.state(e,r,t),slots:o(o({},t.slots),{__self:i})}))}));return i.displayName=t.displayName,e.defaultProps&&(i.defaultProps=e.defaultProps),i.fluentComposeConfig=t,i};function c(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t="",o=0,s=e;o<s.length;o++){var n=s[o];n&&(t=(t?t+" ":"")+n)}return t}var f=function(e){var r=function(e){var r={slots:{},modifiers:{},enums:{}},t=r.slots,o=r.modifiers,s=r.enums;return Object.keys(e).forEach((function(r){var n=e[r];if(n){var a=r.split("_");switch(a.length){case 2:o[a[1]]=n;break;case 3:var l=a[1],i=a[2];(s[l]=s[l]||{})[i]=n;break;default:t[r]=n}}})),r}(e),t=r.slots,o=r.modifiers,s=r.enums;return function(e){for(var r={},n="",a=0,l=Object.keys(o);a<l.length;a++){var i=l[a];e[i]&&(n=c(n,o[i]))}for(var f="",p=0,u=Object.keys(s);p<u.length;p++){var d=u[p],v=s[d];v[e[d]]&&(f=c(f,v[e[d]]))}for(var y=0,m=Object.keys(t);y<m.length;y++){var h=m[y];r[h]=c(t[h],n,f)}return r}};function p(e,r,t){if(t){var o=e[r]=e[r]||{};o.className=c(o.className,t)}}var u={iframe:"src",img:"src",input:"type"};function d(e,r,t){var s;return void 0===t&&(t="children"),"object"!=typeof e||n.isValidElement(e)?o(((s={})[t]=e,s),r):o(o({},e),r)}var v=function(){return null};function y(e,r){var t={state:e,slots:o(o({},r.slots),{root:e.as||r.slots.root||"div"}),slotProps:{}};return function(e,r){for(var t=e.state,o=e.slots,s=e.slotProps,n=0,a=r;n<a.length;n++){var l=a[n],i="function"==typeof l?l(t,o):l;if(i)for(var c=0,f=Object.keys(i);c<f.length;c++){var u=f[c];i[u]&&o[u]&&p(s,u,i[u])}}p(s,"root",t.className)}(t,r.classes),function(e,r){var t,s,a=e.state,l=e.slots,i=e.slotProps;r.slotProps.forEach((function(e){var r=e(a);Object.keys(r).forEach((function(e){i[e]=o(o({},i[e]),r[e])}))})),t=i,(s=function(e,r){for(var t={},o=Object.keys(r.slots),s=0,n=Object.keys(e);s<n.length;s++){var a=n[s];"className"!==a&&"as"!==a&&-1===r.handledProps.indexOf(a)&&-1===o.indexOf(a)&&(t[a]=e[a])}return t}(a,r))&&(t.root||(t.root={}),t.root=o(o({},t.root),s)),Object.keys(l).forEach((function(e){var r=l[e],t=a[e];if(r&&null!=t){var s=d(t,i[e],r&&r.shorthandConfig&&r.shorthandConfig.mappedProp||u[r]);if("function"==typeof s.children){t.children;var c=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)r.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(t[o[s]]=e[o[s]])}return t}(t,["children"]);l[e]=n.Fragment,i[e]={children:t.children(r,o(o({},i[e]),c))}}else i[e]=s}l[e]&&null!==t||(l[e]=v)}))}(t,r),t}var m={},h=void 0;try{h=window}catch(e){}function P(e,r){if(void 0!==h){var t=h.__packages__=h.__packages__||{};t[e]&&m[e]||(m[e]=r,(t[e]=t[e]||[]).push(r))}}P("@fluentui/set-version","6.0.0"),P("@fluentui/react-compose","1.0.0-beta.18")}},r={};function t(o){if(r[o])return r[o].exports;var s=r[o]={exports:{}};return e[o](s,s.exports,t),s.exports}return t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(132)})();
var FluentCompose;FluentCompose=(()=>{"use strict";var e={958:(e,r,t)=>{t.r(r),t.d(r,{compose:()=>i,createClassResolver:()=>c,mergeProps:()=>v,mergeSlotProp:()=>d});var o=function(){return(o=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e}).apply(this,arguments)};function s(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var o=Array(e),s=0;for(r=0;r<t;r++)for(var n=arguments[r],a=0,l=n.length;a<l;a++,s++)o[s]=n[a];return o}const n=React;function a(e,r){return e.overrideStyles?[e.displayName].filter(Boolean):e.displayName?r.displayNames.concat(e.displayName):r.displayNames}var l={className:"",classes:[],displayName:"",displayNames:[],mapPropsToStylesPropsChain:[],render:function(){return null},handledProps:[],overrideStyles:!1,slots:{__self:function(){return null}},slotProps:[],state:function(e){return e},resolveSlotProps:function(){return{}},shorthandConfig:{}};const i=function(e,r){void 0===r&&(r={});var t=function(e,r,t){void 0===t&&(t=l);var n=r.slotProps?s(t.slotProps,[r.slotProps]):t.slotProps,i=Array.isArray(r.classes)?r.classes:[r.classes];return{className:r.className||t.className,classes:s(t.classes,i),displayName:r.displayName||t.displayName,displayNames:a(r,t),mapPropsToStylesPropsChain:r.mapPropsToStylesProps?s(t.mapPropsToStylesPropsChain,[r.mapPropsToStylesProps]):t.mapPropsToStylesPropsChain,render:"function"==typeof e?e:t.render,handledProps:s(t.handledProps,r.handledProps||[]),overrideStyles:r.overrideStyles||!1,slots:o(o({},t.slots),r.slots),slotProps:n,state:function(e,o,s){return r.state?r.state(t.state(e,o,s),o,s):t.state(e,o,s)},resolveSlotProps:function(e){return n.reduce((function(r,t){var n=o({},t(e)),a=s(Object.keys(r),Object.keys(n)),l={};return a.forEach((function(e){l[e]||(l[e]=o(o({},r[e]),n[e]))})),l}),{})},shorthandConfig:o(o({},t.shorthandConfig),r.shorthandConfig)}}(e,r,function(e){return!!e.fluentComposeConfig}(e)?e.fluentComposeConfig:void 0),i=n.forwardRef((function(e,r){return t.render(e,r,o(o({},t),{state:t.state(e,r,t),slots:o(o({},t.slots),{__self:i})}))}));return i.displayName=t.displayName,e.defaultProps&&(i.defaultProps=e.defaultProps),i.fluentComposeConfig=t,i};function f(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t="",o=0,s=e;o<s.length;o++){var n=s[o];n&&(t=(t?t+" ":"")+n)}return t}var c=function(e){var r=function(e){var r={slots:{},modifiers:{},enums:{}},t=r.slots,o=r.modifiers,s=r.enums;return Object.keys(e).forEach((function(r){var n=e[r];if(n){var a=r.split("_");switch(a.length){case 2:o[a[1]]=n;break;case 3:var l=a[1],i=a[2];(s[l]=s[l]||{})[i]=n;break;default:t[r]=n}}})),r}(e),t=r.slots,o=r.modifiers,s=r.enums;return function(e){for(var r={},n="",a=0,l=Object.keys(o);a<l.length;a++){var i=l[a];e[i]&&(n=f(n,o[i]))}for(var c="",p=0,u=Object.keys(s);p<u.length;p++){var d=u[p],y=s[d];y[e[d]]&&(c=f(c,y[e[d]]))}for(var v=0,m=Object.keys(t);v<m.length;v++){var h=m[v];r[h]=f(t[h],n,c)}return r}};function p(e,r,t){if(t){var o=e[r]=e[r]||{};o.className=f(o.className,t)}}var u={iframe:"src",img:"src",input:"type"};function d(e,r,t){var s;return void 0===t&&(t="children"),"object"!=typeof e||n.isValidElement(e)?o(((s={})[t]=e,s),r):o(o({},e),r)}var y=function(){return null};function v(e,r){var t={state:e,slots:o(o({},r.slots),{root:e.as||r.slots.root||"div"}),slotProps:{}};return function(e,r){for(var t=e.state,o=e.slots,s=e.slotProps,n=0,a=r;n<a.length;n++){var l=a[n],i="function"==typeof l?l(t,o):l;if(i)for(var f=0,c=Object.keys(i);f<c.length;f++){var u=c[f];i[u]&&o[u]&&p(s,u,i[u])}}p(s,"root",t.className)}(t,r.classes),function(e,r){var t,s,a=e.state,l=e.slots,i=e.slotProps;r.slotProps.forEach((function(e){var r=e(a);Object.keys(r).forEach((function(e){i[e]=o(o({},i[e]),r[e])}))})),t=i,(s=function(e,r){for(var t={},o=Object.keys(r.slots),s=0,n=Object.keys(e);s<n.length;s++){var a=n[s];"className"!==a&&"as"!==a&&-1===r.handledProps.indexOf(a)&&-1===o.indexOf(a)&&(t[a]=e[a])}return t}(a,r))&&(t.root||(t.root={}),t.root=o(o({},t.root),s)),Object.keys(l).forEach((function(e){var r=l[e],t=a[e];if(r&&null!=t){var s=d(t,i[e],r&&r.shorthandConfig&&r.shorthandConfig.mappedProp||u[r]);if("function"==typeof s.children){t.children;var f=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)r.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(t[o[s]]=e[o[s]])}return t}(t,["children"]);l[e]=n.Fragment,i[e]={children:t.children(r,o(o({},i[e]),f))}}else i[e]=s}l[e]&&null!==t||(l[e]=y)}))}(t,r),t}}},r={};function t(o){if(r[o])return r[o].exports;var s=r[o]={exports:{}};return e[o](s,s.exports,t),s.exports}return t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(958)})();
//# sourceMappingURL=react-compose.min.js.map

@@ -6,2 +6,1 @@ export { default as compose } from './compose';

export * from './types';
import './version';

@@ -1,2 +0,2 @@

define(["require", "exports", "./compose", "./createClassResolver", "./mergeProps", "./mergeSlotProp", "./version"], function (require, exports, compose_1, createClassResolver_1, mergeProps_1, mergeSlotProp_1) {
define(["require", "exports", "./compose", "./createClassResolver", "./mergeProps", "./mergeSlotProp"], function (require, exports, compose_1, createClassResolver_1, mergeProps_1, mergeSlotProp_1) {
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -6,2 +6,1 @@ export { default as compose } from './compose';

export * from './types';
import './version';

@@ -11,3 +11,2 @@ "use strict";

exports.mergeSlotProp = mergeSlotProp_1.mergeSlotProp;
require("./version");
//# sourceMappingURL=index.js.map

@@ -6,2 +6,1 @@ export { default as compose } from './compose';

export * from './types';
import './version';

@@ -5,3 +5,2 @@ export { default as compose } from './compose';

export { mergeSlotProp } from './mergeSlotProp';
import './version';
//# sourceMappingURL=index.js.map
{
"name": "@fluentui/react-compose",
"version": "1.0.0-beta.18",
"version": "1.0.0-beta.19",
"description": "Fluent UI React component composition.",

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

"typings": "lib/index.d.ts",
"sideEffects": [
"lib/version.js"
],
"repository": {

@@ -29,6 +26,5 @@ "type": "git",

"@fluentui/eslint-plugin": "^1.0.1",
"@fluentui/scripts": "^1.0.0",
"@types/enzyme": "3.10.3",
"@types/react": "16.9.42",
"@types/webpack-env": "1.16.0",
"@fluentui/scripts": "^1.0.0",
"enzyme": "~3.10.0",

@@ -40,3 +36,2 @@ "enzyme-adapter-react-16": "^1.15.0",

"@types/classnames": "^2.2.9",
"@fluentui/set-version": "^8.0.1",
"@fluentui/utilities": "^8.0.2",

@@ -43,0 +38,0 @@ "tslib": "^1.10.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

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