fela-utils
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -49,6 +49,4 @@ var _handlers; | ||
var mediaQueryOrder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; | ||
var ruleIdentifier = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; | ||
var mediaRules = applyMediaRulesInOrder(mediaQueryOrder); | ||
var withRuleIdentifier = ruleIdentifier > 0 ? '/*::' + ruleIdentifier + '#*/' : ''; | ||
@@ -68,4 +66,4 @@ return objectReduce(cache, function (cluster, entry, key) { | ||
keyframes: '', | ||
rules: withRuleIdentifier | ||
rules: '' | ||
}); | ||
} |
@@ -1,2 +0,2 @@ | ||
export default function getCSSSelector(className) { | ||
export default function generateCSSSelector(className) { | ||
var pseudo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | ||
@@ -3,0 +3,0 @@ |
@@ -7,3 +7,2 @@ import applyMediaRulesInOrder from './applyMediaRulesInOrder'; | ||
import clusterCache from './clusterCache'; | ||
import createStyleTagMarkup from './createStyleTagMarkup'; | ||
import cssifyFontFace from './cssifyFontFace'; | ||
@@ -43,2 +42,2 @@ import cssifyKeyframe from './cssifyKeyframe'; | ||
export { applyMediaRulesInOrder, arrayEach, arrayReduce, checkFontFormat, checkFontUrl, clusterCache, createStyleTagMarkup, cssifyFontFace, cssifyKeyframe, cssifyMediaQueryRules, cssifyStaticStyle, extractPassThroughProps, extractSupportQuery, extractUsedProps, generateAnimationName, generateClassName, generateCombinedMediaQuery, generateCSSRule, generateCSSSelector, generateMonolithicClassName, generateStaticReference, hoistStatics, isBase64, isMediaQuery, isNestedSelector, isObject, isSafeClassName, isSupport, isUndefinedValue, isValidHTMLElement, minifyCSSString, normalizeNestedProperty, objectEach, objectReduce, processStyleWithPlugins, resolvePassThrough, resolveUsedProps, RULE_TYPE, KEYFRAME_TYPE, FONT_TYPE, STATIC_TYPE, CLEAR_TYPE, toCSSString, warning }; | ||
export { applyMediaRulesInOrder, arrayEach, arrayReduce, checkFontFormat, checkFontUrl, clusterCache, cssifyFontFace, cssifyKeyframe, cssifyMediaQueryRules, cssifyStaticStyle, extractPassThroughProps, extractSupportQuery, extractUsedProps, generateAnimationName, generateClassName, generateCombinedMediaQuery, generateCSSRule, generateCSSSelector, generateMonolithicClassName, generateStaticReference, hoistStatics, isBase64, isMediaQuery, isNestedSelector, isObject, isSafeClassName, isSupport, isUndefinedValue, isValidHTMLElement, minifyCSSString, normalizeNestedProperty, objectEach, objectReduce, processStyleWithPlugins, resolvePassThrough, resolveUsedProps, RULE_TYPE, KEYFRAME_TYPE, FONT_TYPE, STATIC_TYPE, CLEAR_TYPE, toCSSString, warning }; |
@@ -8,4 +8,3 @@ import arrayReduce from './arrayReduce'; | ||
return arrayReduce(renderer.plugins, function (processedStyle, plugin) { | ||
processedStyle = plugin(processedStyle, type, renderer, props); | ||
return processedStyle; | ||
return plugin(processedStyle, type, renderer, props); | ||
}, style); | ||
@@ -12,0 +11,0 @@ } |
@@ -67,6 +67,4 @@ 'use strict'; | ||
var mediaQueryOrder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; | ||
var ruleIdentifier = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; | ||
var mediaRules = (0, _applyMediaRulesInOrder2.default)(mediaQueryOrder); | ||
var withRuleIdentifier = ruleIdentifier > 0 ? '/*::' + ruleIdentifier + '#*/' : ''; | ||
@@ -86,4 +84,4 @@ return (0, _objectReduce2.default)(cache, function (cluster, entry, key) { | ||
keyframes: '', | ||
rules: withRuleIdentifier | ||
rules: '' | ||
}); | ||
} |
@@ -6,4 +6,4 @@ 'use strict'; | ||
}); | ||
exports.default = getCSSSelector; | ||
function getCSSSelector(className) { | ||
exports.default = generateCSSSelector; | ||
function generateCSSSelector(className) { | ||
var pseudo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | ||
@@ -10,0 +10,0 @@ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.warning = exports.toCSSString = exports.CLEAR_TYPE = exports.STATIC_TYPE = exports.FONT_TYPE = exports.KEYFRAME_TYPE = exports.RULE_TYPE = exports.resolveUsedProps = exports.resolvePassThrough = exports.processStyleWithPlugins = exports.objectReduce = exports.objectEach = exports.normalizeNestedProperty = exports.minifyCSSString = exports.isValidHTMLElement = exports.isUndefinedValue = exports.isSupport = exports.isSafeClassName = exports.isObject = exports.isNestedSelector = exports.isMediaQuery = exports.isBase64 = exports.hoistStatics = exports.generateStaticReference = exports.generateMonolithicClassName = exports.generateCSSSelector = exports.generateCSSRule = exports.generateCombinedMediaQuery = exports.generateClassName = exports.generateAnimationName = exports.extractUsedProps = exports.extractSupportQuery = exports.extractPassThroughProps = exports.cssifyStaticStyle = exports.cssifyMediaQueryRules = exports.cssifyKeyframe = exports.cssifyFontFace = exports.createStyleTagMarkup = exports.clusterCache = exports.checkFontUrl = exports.checkFontFormat = exports.arrayReduce = exports.arrayEach = exports.applyMediaRulesInOrder = undefined; | ||
exports.warning = exports.toCSSString = exports.CLEAR_TYPE = exports.STATIC_TYPE = exports.FONT_TYPE = exports.KEYFRAME_TYPE = exports.RULE_TYPE = exports.resolveUsedProps = exports.resolvePassThrough = exports.processStyleWithPlugins = exports.objectReduce = exports.objectEach = exports.normalizeNestedProperty = exports.minifyCSSString = exports.isValidHTMLElement = exports.isUndefinedValue = exports.isSupport = exports.isSafeClassName = exports.isObject = exports.isNestedSelector = exports.isMediaQuery = exports.isBase64 = exports.hoistStatics = exports.generateStaticReference = exports.generateMonolithicClassName = exports.generateCSSSelector = exports.generateCSSRule = exports.generateCombinedMediaQuery = exports.generateClassName = exports.generateAnimationName = exports.extractUsedProps = exports.extractSupportQuery = exports.extractPassThroughProps = exports.cssifyStaticStyle = exports.cssifyMediaQueryRules = exports.cssifyKeyframe = exports.cssifyFontFace = exports.clusterCache = exports.checkFontUrl = exports.checkFontFormat = exports.arrayReduce = exports.arrayEach = exports.applyMediaRulesInOrder = undefined; | ||
@@ -33,6 +33,2 @@ var _applyMediaRulesInOrder = require('./applyMediaRulesInOrder'); | ||
var _createStyleTagMarkup = require('./createStyleTagMarkup'); | ||
var _createStyleTagMarkup2 = _interopRequireDefault(_createStyleTagMarkup); | ||
var _cssifyFontFace = require('./cssifyFontFace'); | ||
@@ -176,3 +172,2 @@ | ||
exports.clusterCache = _clusterCache2.default; | ||
exports.createStyleTagMarkup = _createStyleTagMarkup2.default; | ||
exports.cssifyFontFace = _cssifyFontFace2.default; | ||
@@ -179,0 +174,0 @@ exports.cssifyKeyframe = _cssifyKeyframe2.default; |
@@ -19,4 +19,3 @@ 'use strict'; | ||
return (0, _arrayReduce2.default)(renderer.plugins, function (processedStyle, plugin) { | ||
processedStyle = plugin(processedStyle, type, renderer, props); | ||
return processedStyle; | ||
return plugin(processedStyle, type, renderer, props); | ||
}, style); | ||
@@ -23,0 +22,0 @@ } |
{ | ||
"name": "fela-utils", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "Internal utilities for Fela", | ||
@@ -26,4 +26,4 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"fela": "^6.0.2" | ||
"fela": "^6.0.3" | ||
} | ||
} |
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
49556
83
1136