Release 5.0.7

This commit is contained in:
robmadole
2018-02-26 14:30:03 -06:00
parent a75113bfac
commit 7bef6853ca
716 changed files with 17136 additions and 3317 deletions

View File

@@ -10,7 +10,7 @@ export function findIconDefinition(iconLookup: IconLookup): IconDefinition;
export function text(content: string, params?: Params): Text;
export function layer(
assembler: (
addLayerCallback: (layerToAdd: IconLookup | IconLookup[]) => void
addLayerCallback: (layerToAdd: IconOrText | IconOrText[]) => void
) => void
): Layer;
export function icon(icon: IconName | IconLookup, params?: IconParams): Icon;
@@ -25,7 +25,7 @@ declare const api: {
text(content: string, params?: Params): Text;
layer(
assembler: (
addLayerCallback: (layerToAdd: IconLookup | IconLookup[]) => void
addLayerCallback: (layerToAdd: IconOrText | IconOrText[]) => void
) => void
): Layer;
icon(icon: IconName | IconLookup, params?: IconParams): Icon;
@@ -82,6 +82,7 @@ export interface Text extends FontawesomeObject {
export interface Layer extends FontawesomeObject {
readonly type: "layer";
}
type IconOrText = Icon | Text;
export interface Attributes {
[key: string]: number | string;
}
@@ -116,4 +117,4 @@ type IconDefinitionOrPack = IconDefinition | IconPack;
export interface Library {
add(...definitions: IconDefinitionOrPack[]): void;
reset(): void;
}
}

View File

@@ -1,6 +1,6 @@
/*!
* Font Awesome Pro 5.0.6 by @fontawesome - http://fontawesome.com
* License - http://fontawesome.com/license (Commercial License)
* Font Awesome Pro 5.0.7 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
*/
var noop = function noop() {};
@@ -603,7 +603,7 @@ function makeLayersTextAbstract(params) {
var noop$2 = function noop() {};
var p = config$1.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : { mark: noop$2, measure: noop$2 };
var preamble = 'FA "5.0.6"';
var preamble = 'FA "5.0.7"';
var begin = function begin(name) {
p.mark(preamble + ' ' + name + ' begins');
@@ -885,6 +885,8 @@ function disableObservation(operation) {
disabled = false;
}
var mo = null;
function observe(options) {
if (!MUTATION_OBSERVER) return;
@@ -893,7 +895,7 @@ function observe(options) {
pseudoElementsCallback = options.pseudoElementsCallback;
var mo = new MUTATION_OBSERVER(function (objects) {
mo = new MUTATION_OBSERVER(function (objects) {
if (disabled) return;
toArray(objects).forEach(function (mutationRecord) {
@@ -931,6 +933,12 @@ function observe(options) {
});
}
function disconnect() {
if (!mo) return;
mo.disconnect();
}
var styleParser = function (node) {
var style = node.getAttribute('style');
@@ -1578,8 +1586,10 @@ function resolveIcons(next) {
}
var library = new Library();
var noAuto = function noAuto() {
return auto(false);
auto(false);
disconnect();
};
var dom = {
@@ -1708,7 +1718,7 @@ var layer = function layer(assembler) {
var children = [];
assembler(function (args) {
Array.isArray(args) ? children = args.map(function (a) {
Array.isArray(args) ? args.map(function (a) {
children = children.concat(a.abstract);
}) : children = children.concat(args.abstract);
});

View File

@@ -1,6 +1,6 @@
/*!
* Font Awesome Pro 5.0.6 by @fontawesome - http://fontawesome.com
* License - http://fontawesome.com/license (Commercial License)
* Font Awesome Pro 5.0.7 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -609,7 +609,7 @@ function makeLayersTextAbstract(params) {
var noop$2 = function noop() {};
var p = config$1.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : { mark: noop$2, measure: noop$2 };
var preamble = 'FA "5.0.6"';
var preamble = 'FA "5.0.7"';
var begin = function begin(name) {
p.mark(preamble + ' ' + name + ' begins');
@@ -891,6 +891,8 @@ function disableObservation(operation) {
disabled = false;
}
var mo = null;
function observe(options) {
if (!MUTATION_OBSERVER) return;
@@ -899,7 +901,7 @@ function observe(options) {
pseudoElementsCallback = options.pseudoElementsCallback;
var mo = new MUTATION_OBSERVER(function (objects) {
mo = new MUTATION_OBSERVER(function (objects) {
if (disabled) return;
toArray(objects).forEach(function (mutationRecord) {
@@ -937,6 +939,12 @@ function observe(options) {
});
}
function disconnect() {
if (!mo) return;
mo.disconnect();
}
var styleParser = function (node) {
var style = node.getAttribute('style');
@@ -1584,8 +1592,10 @@ function resolveIcons(next) {
}
var library = new Library();
var noAuto = function noAuto() {
return auto(false);
auto(false);
disconnect();
};
var dom = {
@@ -1714,7 +1724,7 @@ var layer = function layer(assembler) {
var children = [];
assembler(function (args) {
Array.isArray(args) ? children = args.map(function (a) {
Array.isArray(args) ? args.map(function (a) {
children = children.concat(a.abstract);
}) : children = children.concat(args.abstract);
});

View File

@@ -47,9 +47,9 @@
"node": ">=6"
},
"dependencies": {
"@fortawesome/fontawesome-common-types": "^0.1.2"
"@fortawesome/fontawesome-common-types": "^0.1.3"
},
"version": "1.1.3",
"version": "1.1.4",
"name": "@fortawesome/fontawesome",
"main": "index.js",
"module": "index.es.js",

View File

@@ -1,6 +1,6 @@
/*!
* Font Awesome Pro 5.0.6 by @fontawesome - http://fontawesome.com
* License - http://fontawesome.com/license (Commercial License)
* Font Awesome Pro 5.0.7 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
*/
svg:not(:root).svg-inline--fa {
overflow: visible; }