@hubspot/cms-component-library
Advanced tools
@@ -39,3 +39,3 @@ import { | ||
| } = dimensionProps; | ||
| const mergedProps = { ...passedProps, ...dimensionRest }; | ||
| const mergedProps = { ...dimensionRest, ...passedProps }; | ||
@@ -105,3 +105,8 @@ if (dimensionClassName) { | ||
| ) => { | ||
| // Will return an object representing the full chain API (all config options) | ||
| const activeConfiguration = stateManager.getActiveConfiguration(); | ||
| // Returns an a flat object containing css props based on active presets chosen | ||
| // e.g. { backgroundColor: 'red', color: 'blue' } | ||
| // Flat subset of activeConfiguration | ||
| const dimensionProps = extractDimensionPropsFromConfig( | ||
@@ -112,2 +117,4 @@ activeConfiguration, | ||
| // Resolve and merge dimension props with passed props. | ||
| // Passed props will always win as an explicit override of dimension/config props | ||
| const mergedProps = MergeDimensionProp(dimensionProps, props); | ||
@@ -114,0 +121,0 @@ |
+1
-1
| { | ||
| "name": "@hubspot/cms-component-library", | ||
| "version": "0.1.0-alpha.9", | ||
| "version": "0.1.0-alpha.10", | ||
| "description": "HubSpot CMS React component library for building CMS modules", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
104874
0.38%2575
0.23%