@fluentui/react-utilities
Advanced tools
Comparing version 9.0.0-alpha.51 to 9.0.0-alpha.52
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Thu, 23 Sep 2021 08:19:56 GMT", | ||
"date": "Fri, 24 Sep 2021 09:16:15 GMT", | ||
"tag": "@fluentui/react-utilities_v9.0.0-alpha.52", | ||
"version": "9.0.0-alpha.52", | ||
"comments": { | ||
"prerelease": [ | ||
{ | ||
"author": "andredias@microsoft.com", | ||
"package": "@fluentui/react-utilities", | ||
"comment": "Add as prop to properties allowed with getNativeElementProps", | ||
"commit": "0d26909912889432060fd4c87b2f4a45017e1532" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Thu, 23 Sep 2021 08:21:34 GMT", | ||
"tag": "@fluentui/react-utilities_v9.0.0-alpha.51", | ||
@@ -8,0 +23,0 @@ "version": "9.0.0-alpha.51", |
# Change Log - @fluentui/react-utilities | ||
This log was last generated on Thu, 23 Sep 2021 08:19:56 GMT and should not be manually modified. | ||
This log was last generated on Fri, 24 Sep 2021 09:16:15 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.0.0-alpha.52](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.52) | ||
Fri, 24 Sep 2021 09:16:15 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.51..@fluentui/react-utilities_v9.0.0-alpha.52) | ||
### Changes | ||
- Add as prop to properties allowed with getNativeElementProps ([PR #19950](https://github.com/microsoft/fluentui/pull/19950) by andredias@microsoft.com) | ||
## [9.0.0-alpha.51](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-alpha.51) | ||
Thu, 23 Sep 2021 08:19:56 GMT | ||
Thu, 23 Sep 2021 08:21:34 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-alpha.50..@fluentui/react-utilities_v9.0.0-alpha.51) | ||
@@ -11,0 +20,0 @@ |
@@ -36,3 +36,3 @@ "use strict"; | ||
var slotProps = { | ||
root: typeof slots.root === 'string' ? index_1.getNativeElementProps(slots.root, state) : index_1.omit(state, ['as']) | ||
root: typeof slots.root === 'string' ? index_1.getNativeElementProps(slots.root, state, ['as']) : index_1.omit(state, ['as']) | ||
}; | ||
@@ -57,3 +57,3 @@ | ||
} else if (slots[name_1] !== nullRender_1.nullRender) { | ||
slotProps[name_1] = isSlotPrimitive ? index_1.getNativeElementProps(slotAs, slotDefinition) : index_1.omit(slotDefinition, ['as']); | ||
slotProps[name_1] = isSlotPrimitive ? index_1.getNativeElementProps(slotAs, slotDefinition, ['as']) : index_1.omit(slotDefinition, ['as']); | ||
} | ||
@@ -60,0 +60,0 @@ } |
@@ -43,2 +43,3 @@ "use strict"; | ||
var allowedPropNames = tagName && nativeElementMap[tagName] || properties_1.htmlElementProperties; | ||
allowedPropNames.as = 1; | ||
return properties_1.getNativeProps(props, allowedPropNames, excludedPropNames); | ||
@@ -45,0 +46,0 @@ } |
@@ -26,3 +26,3 @@ import * as React from 'react'; | ||
var slotProps = { | ||
root: typeof slots.root === 'string' ? getNativeElementProps(slots.root, state) : omit(state, ['as']) | ||
root: typeof slots.root === 'string' ? getNativeElementProps(slots.root, state, ['as']) : omit(state, ['as']) | ||
}; | ||
@@ -47,3 +47,3 @@ | ||
} else if (slots[name_1] !== nullRender) { | ||
slotProps[name_1] = isSlotPrimitive ? getNativeElementProps(slotAs, slotDefinition) : omit(slotDefinition, ['as']); | ||
slotProps[name_1] = isSlotPrimitive ? getNativeElementProps(slotAs, slotDefinition, ['as']) : omit(slotDefinition, ['as']); | ||
} | ||
@@ -50,0 +50,0 @@ } |
@@ -35,4 +35,5 @@ import { labelProperties, audioProperties, videoProperties, olProperties, liProperties, anchorProperties, buttonProperties, inputProperties, textAreaProperties, selectProperties, optionProperties, tableProperties, trProperties, thProperties, tdProperties, colGroupProperties, colProperties, formProperties, iframeProperties, imgProperties, htmlElementProperties, getNativeProps } from './properties'; | ||
var allowedPropNames = tagName && nativeElementMap[tagName] || htmlElementProperties; | ||
allowedPropNames.as = 1; | ||
return getNativeProps(props, allowedPropNames, excludedPropNames); | ||
} | ||
//# sourceMappingURL=getNativeElementProps.js.map |
{ | ||
"name": "@fluentui/react-utilities", | ||
"version": "9.0.0-alpha.51", | ||
"version": "9.0.0-alpha.52", | ||
"description": "A set of general React-specific utilities.", | ||
@@ -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
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
363021
6193