Release 5.15.2 (#1539)

This commit is contained in:
Rob Madole
2021-01-13 14:19:18 -06:00
committed by GitHub
parent acf803d2b5
commit e7405daf90
15943 changed files with 23634 additions and 24020 deletions

View File

@@ -1,5 +1,5 @@
/*!
* Font Awesome Pro 5.15.1 by @fontawesome - https://fontawesome.com
* Font Awesome Pro 5.15.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
*/
(function () {
@@ -9599,7 +9599,7 @@
mark: noop$1,
measure: noop$1
};
var preamble = "FA \"5.15.1\"";
var preamble = "FA \"5.15.2\"";
var begin = function begin(name) {
p.mark("".concat(preamble, " ").concat(name, " begins"));
@@ -9676,35 +9676,6 @@
return result;
}
function codePointAt(string, index) {
/*! https://mths.be/codepointat v0.2.0 by @mathias */
var size = string.length;
var first = string.charCodeAt(index);
var second;
if (first >= 0xD800 && first <= 0xDBFF && size > index + 1) {
second = string.charCodeAt(index + 1);
if (second >= 0xDC00 && second <= 0xDFFF) {
return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
}
}
return first;
}
/**
* Used to check that the character is between the E000..F8FF private unicode
* range
*/
function isPrivateUnicode(iconName) {
if (iconName.length !== 1) {
return false;
} else {
var cp = codePointAt(iconName, 0);
return cp >= 57344 && cp <= 63743;
}
}
function defineIcons(prefix, icons) {
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -10283,27 +10254,6 @@
};
var styles$2 = namespace.styles;
function resolveCustomIconVersion() {
var kitConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var iconName = arguments.length > 1 ? arguments[1] : undefined;
if (iconName && isPrivateUnicode(iconName)) {
if (kitConfig && kitConfig.iconUploads) {
var iconUploads = kitConfig.iconUploads;
var descriptiveIconName = Object.keys(iconUploads).find(function (key) {
return iconUploads[key] && iconUploads[key].u && iconUploads[key].u === toHex(iconName);
});
if (descriptiveIconName) {
return iconUploads[descriptiveIconName].v;
}
}
} else {
if (kitConfig && kitConfig.iconUploads && kitConfig.iconUploads[iconName] && kitConfig.iconUploads[iconName].v) {
return kitConfig.iconUploads[iconName].v;
}
}
}
function asFoundIcon(icon) {
var width = icon[0];
var height = icon[1];
@@ -10366,12 +10316,6 @@
var icon = styles$2[prefix][iconName];
return resolve(asFoundIcon(icon));
}
var kitToken = null;
var iconVersion = resolveCustomIconVersion(WINDOW.FontAwesomeKitConfig, iconName);
if (WINDOW.FontAwesomeKitConfig && WINDOW.FontAwesomeKitConfig.token) {
kitToken = WINDOW.FontAwesomeKitConfig.token;
}
if (iconName && prefix && !config.showMissingIcons) {
reject(new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName)));