Release 5.8.0 (#1340)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Font Awesome Pro 5.7.2 by @fontawesome - https://fontawesome.com
|
||||
* Font Awesome Pro 5.8.0 by @fontawesome - https://fontawesome.com
|
||||
* License - https://fontawesome.com/license (Commercial License)
|
||||
*/
|
||||
(function () {
|
||||
@@ -172,6 +172,7 @@
|
||||
var DATA_PREFIX = 'data-prefix';
|
||||
var DATA_ICON = 'data-icon';
|
||||
var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
|
||||
var MUTATION_APPROACH_ASYNC = 'async';
|
||||
var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
|
||||
var PRODUCTION = function () {
|
||||
try {
|
||||
@@ -204,7 +205,7 @@
|
||||
var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
||||
var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
|
||||
var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
|
||||
var RESERVED_CLASSES = ['xs', 'sm', 'lg', 'fw', 'ul', 'li', 'border', 'pull-left', 'pull-right', 'spin', 'pulse', 'rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter'].concat(oneToTen.map(function (n) {
|
||||
var RESERVED_CLASSES = ['xs', 'sm', 'lg', 'fw', 'ul', 'li', 'border', 'pull-left', 'pull-right', 'spin', 'pulse', 'rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical', 'flip-both', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter'].concat(oneToTen.map(function (n) {
|
||||
return "".concat(n, "x");
|
||||
})).concat(oneToTwenty.map(function (n) {
|
||||
return "w-".concat(n);
|
||||
@@ -231,7 +232,7 @@
|
||||
}
|
||||
|
||||
if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
|
||||
var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
|
||||
var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
|
||||
attrs.forEach(function (_ref) {
|
||||
var _ref2 = _slicedToArray(_ref, 2),
|
||||
attr = _ref2[0],
|
||||
@@ -253,6 +254,7 @@
|
||||
autoA11y: true,
|
||||
searchPseudoElements: false,
|
||||
observeMutations: true,
|
||||
mutateApproach: 'async',
|
||||
keepOriginalSource: true,
|
||||
measurePerformance: false,
|
||||
showMissingIcons: true
|
||||
@@ -1066,7 +1068,7 @@
|
||||
mark: noop$1,
|
||||
measure: noop$1
|
||||
};
|
||||
var preamble = "FA \"5.7.2\"";
|
||||
var preamble = "FA \"5.8.0\"";
|
||||
|
||||
var begin = function begin(name) {
|
||||
p.mark("".concat(preamble, " ").concat(name, " begins"));
|
||||
@@ -1342,15 +1344,22 @@
|
||||
node.innerHTML = newInnerHTML;
|
||||
}
|
||||
};
|
||||
|
||||
function performOperationSync(op) {
|
||||
op();
|
||||
}
|
||||
|
||||
function perform(mutations, callback) {
|
||||
var callbackFunction = typeof callback === 'function' ? callback : noop$2;
|
||||
|
||||
if (mutations.length === 0) {
|
||||
callbackFunction();
|
||||
} else {
|
||||
var frame = WINDOW.requestAnimationFrame || function (op) {
|
||||
return op();
|
||||
};
|
||||
var frame = performOperationSync;
|
||||
|
||||
if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
|
||||
frame = WINDOW.requestAnimationFrame || performOperationSync;
|
||||
}
|
||||
|
||||
frame(function () {
|
||||
var mutator = getMutator();
|
||||
|
||||
Reference in New Issue
Block a user