@stylable/runtime
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -28,3 +28,3 @@ "use strict"; | ||
attrKey: 'st-id' + (this.id ? '-' + this.id : ''), | ||
createElement: _window.document.createElement.bind(_window.document) | ||
createElement: _window.document.createElement.bind(_window.document), | ||
})); | ||
@@ -66,3 +66,3 @@ this.update(); | ||
getStyles(ids, sortIndexes) { | ||
return this.sortStyles(ids.map(id => this.stylesMap[id]), sortIndexes); | ||
return this.sortStyles(ids.map((id) => this.stylesMap[id]), sortIndexes); | ||
} | ||
@@ -69,0 +69,0 @@ sortStyles(styles, sortIndexes = false) { |
@@ -12,3 +12,3 @@ "use strict"; | ||
return { | ||
className: stylesheet.cssStates(stateMapping) | ||
className: stylesheet.cssStates(stateMapping), | ||
}; | ||
@@ -22,3 +22,3 @@ } | ||
.split(/\s+/g) | ||
.map(className => stylesheet.classes[className] || className) | ||
.map((className) => stylesheet.classes[className] || className) | ||
.join(' '); | ||
@@ -61,3 +61,3 @@ } | ||
$get, | ||
$cssStates | ||
$cssStates, | ||
}); | ||
@@ -64,0 +64,0 @@ // EDGE CACHE BUG FIX |
@@ -18,3 +18,3 @@ "use strict"; | ||
$depth: depth, | ||
$css: css | ||
$css: css, | ||
}; | ||
@@ -21,0 +21,0 @@ if (renderer) { |
{ | ||
"name": "@stylable/runtime", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "Stylable runtime DOM integration", | ||
@@ -31,3 +31,3 @@ "main": "cjs/index.js", | ||
"license": "BSD-3-Clause", | ||
"gitHead": "af5fcd5514c9364e8fdd6fda29585ae4ea1b27e1" | ||
"gitHead": "396407607f59f09f3f07826b6028a6274371db45" | ||
} |
@@ -1,2 +0,2 @@ | ||
/* runtime version: 3.4.0 */ | ||
/* runtime version: 3.4.1 */ | ||
function StylableRuntime(exports){ | ||
@@ -106,3 +106,3 @@ exports = exports || {}; | ||
attrKey: 'st-id' + (this.id ? '-' + this.id : ''), | ||
createElement: _window.document.createElement.bind(_window.document) | ||
createElement: _window.document.createElement.bind(_window.document), | ||
})); | ||
@@ -183,3 +183,3 @@ this.update(); | ||
$depth: depth, | ||
$css: css | ||
$css: css, | ||
}; | ||
@@ -272,3 +272,3 @@ if (renderer) { | ||
return { | ||
className: stylesheet.cssStates(stateMapping) | ||
className: stylesheet.cssStates(stateMapping), | ||
}; | ||
@@ -275,0 +275,0 @@ } |
@@ -1,2 +0,2 @@ | ||
/* runtime version: 3.4.0 */ | ||
/* runtime version: 3.4.1 */ | ||
function StylableRuntime(exports){ | ||
@@ -106,3 +106,3 @@ exports = exports || {}; | ||
attrKey: 'st-id' + (this.id ? '-' + this.id : ''), | ||
createElement: _window.document.createElement.bind(_window.document) | ||
createElement: _window.document.createElement.bind(_window.document), | ||
})); | ||
@@ -183,3 +183,3 @@ this.update(); | ||
$depth: depth, | ||
$css: css | ||
$css: css, | ||
}; | ||
@@ -186,0 +186,0 @@ if (renderer) { |
@@ -31,3 +31,3 @@ import { CacheStyleNodeRenderer } from './cached-node-renderer'; | ||
attrKey: 'st-id' + (this.id ? '-' + this.id : ''), | ||
createElement: _window.document.createElement.bind(_window.document) | ||
createElement: _window.document.createElement.bind(_window.document), | ||
}) | ||
@@ -78,3 +78,3 @@ ); | ||
return this.sortStyles( | ||
ids.map(id => this.stylesMap[id]), | ||
ids.map((id) => this.stylesMap[id]), | ||
sortIndexes | ||
@@ -81,0 +81,0 @@ ); |
@@ -23,3 +23,3 @@ import { RuntimeRenderer } from './css-runtime-renderer'; | ||
return { | ||
className: stylesheet.cssStates(stateMapping) | ||
className: stylesheet.cssStates(stateMapping), | ||
}; | ||
@@ -35,3 +35,3 @@ } | ||
.split(/\s+/g) | ||
.map(className => stylesheet.classes[className] || className) | ||
.map((className) => stylesheet.classes[className] || className) | ||
.join(' '); | ||
@@ -82,3 +82,3 @@ } | ||
$get, | ||
$cssStates | ||
$cssStates, | ||
}); | ||
@@ -85,0 +85,0 @@ // EDGE CACHE BUG FIX |
@@ -27,3 +27,3 @@ import { RuntimeRenderer } from './css-runtime-renderer'; | ||
$depth: depth, | ||
$css: css | ||
$css: css, | ||
}; | ||
@@ -30,0 +30,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
71597