@fortawesome/vue-fontawesome 3.0.6 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +4 -5
- package/index.d.ts +1 -1
- package/index.es.js +41 -42
- package/index.js +41 -42
- package/package.json +22 -11
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,27 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [3.0.8](https://github.com/FortAwesome/vue-fontawesome/releases/tag/3.0.8) - 2024-05-21
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Updated `package-lock.json` to help fix faililng tests
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## [3.0.7](https://github.com/FortAwesome/vue-fontawesome/releases/tag/3.0.7) - 2024-05-21
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Updated nodejs version in `.tool-versions`
|
|
20
|
+
- Updated Jest configuration for local testing
|
|
21
|
+
- Removed an unused import in `FontAwesomeLayers.test.js`
|
|
22
|
+
- Updated `node-versions` in `ci.yml`
|
|
23
|
+
- Added additional exports in `index.d.ts`
|
|
24
|
+
- Updated `README.md` for new Font Awesome Doc link
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
7
28
|
## [3.0.6](https://github.com/FortAwesome/vue-fontawesome/releases/tag/3.0.6) - 2024-01-29
|
|
8
29
|
|
|
9
30
|
### Changed
|
package/README.md
CHANGED
|
@@ -22,14 +22,13 @@
|
|
|
22
22
|
|
|
23
23
|
## Documentation
|
|
24
24
|
|
|
25
|
-
Official documentation is hosted at fontawesome.com
|
|
25
|
+
Official documentation is hosted at [docs.fontawesome.com](https://docs.fontawesome.com/)
|
|
26
26
|
|
|
27
27
|
Helpful Vue links:
|
|
28
28
|
|
|
29
|
-
- [
|
|
30
|
-
- [
|
|
31
|
-
|
|
32
|
-
To find the Vue setup, go to our [Web docs](https://fontawesome.com/docs/web) and click the ***"Set Up with Vue"*** (left hand side menu).
|
|
29
|
+
- [Set Up With Vue](https://docs.fontawesome.com/web/use-with/vue/)
|
|
30
|
+
- [Add Icons with Vue](https://docs.fontawesome.com/web/use-with/vue/add-icons)
|
|
31
|
+
- [Adding Icon Styling with Vue](https://docs.fontawesome.com/web/use-with/vue/style)
|
|
33
32
|
|
|
34
33
|
## How to Help
|
|
35
34
|
|
package/index.d.ts
CHANGED
|
@@ -44,4 +44,4 @@ declare const FontAwesomeIcon: DefineComponent<FontAwesomeIconProps>
|
|
|
44
44
|
declare const FontAwesomeLayers: DefineComponent<FontAwesomeLayersProps>
|
|
45
45
|
declare const FontAwesomeLayersText: DefineComponent<FontAwesomeLayersTextProps>
|
|
46
46
|
|
|
47
|
-
export { FontAwesomeIcon, FontAwesomeLayers, FontAwesomeLayersText }
|
|
47
|
+
export { FontAwesomeIcon, FontAwesomeIconProps, FontAwesomeLayers, FontAwesomeLayersProps, FontAwesomeLayersText, FontAwesomeLayersTextProps }
|
package/index.es.js
CHANGED
|
@@ -1,35 +1,49 @@
|
|
|
1
1
|
import { parse, icon, config, text } from '@fortawesome/fontawesome-svg-core';
|
|
2
2
|
import { h, defineComponent, computed, watch } from 'vue';
|
|
3
3
|
|
|
4
|
-
function ownKeys(
|
|
5
|
-
var
|
|
4
|
+
function ownKeys(e, r) {
|
|
5
|
+
var t = Object.keys(e);
|
|
6
6
|
if (Object.getOwnPropertySymbols) {
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
return Object.getOwnPropertyDescriptor(
|
|
10
|
-
})),
|
|
7
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
8
|
+
r && (o = o.filter(function (r) {
|
|
9
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
10
|
+
})), t.push.apply(t, o);
|
|
11
11
|
}
|
|
12
|
-
return
|
|
12
|
+
return t;
|
|
13
13
|
}
|
|
14
|
-
function _objectSpread2(
|
|
15
|
-
for (var
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
_defineProperty(
|
|
19
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
20
|
-
Object.defineProperty(
|
|
14
|
+
function _objectSpread2(e) {
|
|
15
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
16
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
17
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
18
|
+
_defineProperty(e, r, t[r]);
|
|
19
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
20
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
return
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
function _toPrimitive(t, r) {
|
|
26
|
+
if ("object" != typeof t || !t) return t;
|
|
27
|
+
var e = t[Symbol.toPrimitive];
|
|
28
|
+
if (void 0 !== e) {
|
|
29
|
+
var i = e.call(t, r || "default");
|
|
30
|
+
if ("object" != typeof i) return i;
|
|
31
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
32
|
+
}
|
|
33
|
+
return ("string" === r ? String : Number)(t);
|
|
24
34
|
}
|
|
25
|
-
function
|
|
35
|
+
function _toPropertyKey(t) {
|
|
36
|
+
var i = _toPrimitive(t, "string");
|
|
37
|
+
return "symbol" == typeof i ? i : i + "";
|
|
38
|
+
}
|
|
39
|
+
function _typeof(o) {
|
|
26
40
|
"@babel/helpers - typeof";
|
|
27
41
|
|
|
28
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
29
|
-
return typeof
|
|
30
|
-
} : function (
|
|
31
|
-
return
|
|
32
|
-
}, _typeof(
|
|
42
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
43
|
+
return typeof o;
|
|
44
|
+
} : function (o) {
|
|
45
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
46
|
+
}, _typeof(o);
|
|
33
47
|
}
|
|
34
48
|
function _defineProperty(obj, key, value) {
|
|
35
49
|
key = _toPropertyKey(key);
|
|
@@ -48,12 +62,11 @@ function _defineProperty(obj, key, value) {
|
|
|
48
62
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
49
63
|
if (source == null) return {};
|
|
50
64
|
var target = {};
|
|
51
|
-
var
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
target[key] = source[key];
|
|
65
|
+
for (var key in source) {
|
|
66
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
67
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
68
|
+
target[key] = source[key];
|
|
69
|
+
}
|
|
57
70
|
}
|
|
58
71
|
return target;
|
|
59
72
|
}
|
|
@@ -97,20 +110,6 @@ function _arrayLikeToArray(arr, len) {
|
|
|
97
110
|
function _nonIterableSpread() {
|
|
98
111
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
99
112
|
}
|
|
100
|
-
function _toPrimitive(input, hint) {
|
|
101
|
-
if (typeof input !== "object" || input === null) return input;
|
|
102
|
-
var prim = input[Symbol.toPrimitive];
|
|
103
|
-
if (prim !== undefined) {
|
|
104
|
-
var res = prim.call(input, hint || "default");
|
|
105
|
-
if (typeof res !== "object") return res;
|
|
106
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
107
|
-
}
|
|
108
|
-
return (hint === "string" ? String : Number)(input);
|
|
109
|
-
}
|
|
110
|
-
function _toPropertyKey(arg) {
|
|
111
|
-
var key = _toPrimitive(arg, "string");
|
|
112
|
-
return typeof key === "symbol" ? key : String(key);
|
|
113
|
-
}
|
|
114
113
|
|
|
115
114
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
116
115
|
|
|
@@ -360,7 +359,7 @@ function classList(props) {
|
|
|
360
359
|
'fa-flip': props.flip === true,
|
|
361
360
|
'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',
|
|
362
361
|
'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both'
|
|
363
|
-
}, _defineProperty(_classes, "fa-".concat(props.size), props.size !== null),
|
|
362
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_classes, "fa-".concat(props.size), props.size !== null), "fa-rotate-".concat(props.rotation), props.rotation !== null), "fa-pull-".concat(props.pull), props.pull !== null), 'fa-swap-opacity', props.swapOpacity), 'fa-bounce', props.bounce), 'fa-shake', props.shake), 'fa-beat', props.beat), 'fa-fade', props.fade), 'fa-beat-fade', props.beatFade), 'fa-flash', props.flash), _defineProperty(_defineProperty(_classes, 'fa-spin-pulse', props.spinPulse), 'fa-spin-reverse', props.spinReverse));
|
|
364
363
|
return Object.keys(classes).map(function (key) {
|
|
365
364
|
return classes[key] ? key : null;
|
|
366
365
|
}).filter(function (key) {
|
package/index.js
CHANGED
|
@@ -4,35 +4,49 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["vue-fontawesome"] = {}, global.FontAwesome, global.vue));
|
|
5
5
|
})(this, (function (exports, fontawesomeSvgCore, vue) { 'use strict';
|
|
6
6
|
|
|
7
|
-
function ownKeys(
|
|
8
|
-
var
|
|
7
|
+
function ownKeys(e, r) {
|
|
8
|
+
var t = Object.keys(e);
|
|
9
9
|
if (Object.getOwnPropertySymbols) {
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
return Object.getOwnPropertyDescriptor(
|
|
13
|
-
})),
|
|
10
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
11
|
+
r && (o = o.filter(function (r) {
|
|
12
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
13
|
+
})), t.push.apply(t, o);
|
|
14
14
|
}
|
|
15
|
-
return
|
|
15
|
+
return t;
|
|
16
16
|
}
|
|
17
|
-
function _objectSpread2(
|
|
18
|
-
for (var
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
_defineProperty(
|
|
22
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
23
|
-
Object.defineProperty(
|
|
17
|
+
function _objectSpread2(e) {
|
|
18
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
19
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
20
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
21
|
+
_defineProperty(e, r, t[r]);
|
|
22
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
23
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return e;
|
|
27
|
+
}
|
|
28
|
+
function _toPrimitive(t, r) {
|
|
29
|
+
if ("object" != typeof t || !t) return t;
|
|
30
|
+
var e = t[Symbol.toPrimitive];
|
|
31
|
+
if (void 0 !== e) {
|
|
32
|
+
var i = e.call(t, r || "default");
|
|
33
|
+
if ("object" != typeof i) return i;
|
|
34
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
35
|
+
}
|
|
36
|
+
return ("string" === r ? String : Number)(t);
|
|
27
37
|
}
|
|
28
|
-
function
|
|
38
|
+
function _toPropertyKey(t) {
|
|
39
|
+
var i = _toPrimitive(t, "string");
|
|
40
|
+
return "symbol" == typeof i ? i : i + "";
|
|
41
|
+
}
|
|
42
|
+
function _typeof(o) {
|
|
29
43
|
"@babel/helpers - typeof";
|
|
30
44
|
|
|
31
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
32
|
-
return typeof
|
|
33
|
-
} : function (
|
|
34
|
-
return
|
|
35
|
-
}, _typeof(
|
|
45
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
46
|
+
return typeof o;
|
|
47
|
+
} : function (o) {
|
|
48
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
49
|
+
}, _typeof(o);
|
|
36
50
|
}
|
|
37
51
|
function _defineProperty(obj, key, value) {
|
|
38
52
|
key = _toPropertyKey(key);
|
|
@@ -51,12 +65,11 @@
|
|
|
51
65
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
52
66
|
if (source == null) return {};
|
|
53
67
|
var target = {};
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
target[key] = source[key];
|
|
68
|
+
for (var key in source) {
|
|
69
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
70
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
71
|
+
target[key] = source[key];
|
|
72
|
+
}
|
|
60
73
|
}
|
|
61
74
|
return target;
|
|
62
75
|
}
|
|
@@ -100,20 +113,6 @@
|
|
|
100
113
|
function _nonIterableSpread() {
|
|
101
114
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
102
115
|
}
|
|
103
|
-
function _toPrimitive(input, hint) {
|
|
104
|
-
if (typeof input !== "object" || input === null) return input;
|
|
105
|
-
var prim = input[Symbol.toPrimitive];
|
|
106
|
-
if (prim !== undefined) {
|
|
107
|
-
var res = prim.call(input, hint || "default");
|
|
108
|
-
if (typeof res !== "object") return res;
|
|
109
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
110
|
-
}
|
|
111
|
-
return (hint === "string" ? String : Number)(input);
|
|
112
|
-
}
|
|
113
|
-
function _toPropertyKey(arg) {
|
|
114
|
-
var key = _toPrimitive(arg, "string");
|
|
115
|
-
return typeof key === "symbol" ? key : String(key);
|
|
116
|
-
}
|
|
117
116
|
|
|
118
117
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
119
118
|
|
|
@@ -363,7 +362,7 @@
|
|
|
363
362
|
'fa-flip': props.flip === true,
|
|
364
363
|
'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',
|
|
365
364
|
'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both'
|
|
366
|
-
}, _defineProperty(_classes, "fa-".concat(props.size), props.size !== null),
|
|
365
|
+
}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_classes, "fa-".concat(props.size), props.size !== null), "fa-rotate-".concat(props.rotation), props.rotation !== null), "fa-pull-".concat(props.pull), props.pull !== null), 'fa-swap-opacity', props.swapOpacity), 'fa-bounce', props.bounce), 'fa-shake', props.shake), 'fa-beat', props.beat), 'fa-fade', props.fade), 'fa-beat-fade', props.beatFade), 'fa-flash', props.flash), _defineProperty(_defineProperty(_classes, 'fa-spin-pulse', props.spinPulse), 'fa-spin-reverse', props.spinReverse));
|
|
367
366
|
return Object.keys(classes).map(function (key) {
|
|
368
367
|
return classes[key] ? key : null;
|
|
369
368
|
}).filter(function (key) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fortawesome/vue-fontawesome",
|
|
3
3
|
"description": "Official Vue component for Font Awesome 6",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.8",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"README.md",
|
|
@@ -15,7 +15,13 @@
|
|
|
15
15
|
"src/**.js"
|
|
16
16
|
],
|
|
17
17
|
"jest": {
|
|
18
|
-
"verbose": true
|
|
18
|
+
"verbose": true,
|
|
19
|
+
"testEnvironmentOptions": {
|
|
20
|
+
"customExportConditions": [
|
|
21
|
+
"node",
|
|
22
|
+
"node-addons"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
19
25
|
},
|
|
20
26
|
"module": "index.es.js",
|
|
21
27
|
"jsnext:main": "index.es.js",
|
|
@@ -26,19 +32,24 @@
|
|
|
26
32
|
"url": "https://github.com/FortAwesome/vue-fontawesome.git"
|
|
27
33
|
},
|
|
28
34
|
"contributors": [
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"SirLamer <github.com/SirLamer>",
|
|
32
|
-
"Liu Xinyu <github.com/meteorlxy>",
|
|
33
|
-
"Xaver Schulz <github.com/schulz3000>",
|
|
34
|
-
"Yannick Ihmels <github.com/ihmels>",
|
|
35
|
+
"Aaron Parker <github.com/parkeyparker>",
|
|
36
|
+
"Brandon Mork <github.com/brandon-mork>",
|
|
35
37
|
"btaens <github.com/btaens>",
|
|
36
38
|
"David Driscoll <github.com/david-driscoll>",
|
|
39
|
+
"Liu Xinyu <github.com/meteorlxy>",
|
|
40
|
+
"Michael Cozzolino <https://github.com/michaelcozzolino>",
|
|
41
|
+
"Okke Tijhuis <github.com/otijhuis>",
|
|
42
|
+
"Romain Failla <https://github.com/rigma>",
|
|
43
|
+
"SirLamer <github.com/SirLamer>",
|
|
37
44
|
"Tyranteon <github.com/tyranteon>",
|
|
38
45
|
"Vinicius Rangel <github.com/viniciuslrangel>",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
46
|
+
"Xaver Schulz <github.com/schulz3000>",
|
|
47
|
+
"Yannick Ihmels <github.com/ihmels>",
|
|
48
|
+
"Brian Talbot <https://github.com/talbs>",
|
|
49
|
+
"Jason Lundien <https://github.com/jasonlundien>",
|
|
50
|
+
"Mike Wilkerson <https://github.com/mlwilkerson>",
|
|
51
|
+
"Rob Madole <rob@fontawesome.com>",
|
|
52
|
+
"Travis Chase <travis@fontawesome.com>"
|
|
42
53
|
],
|
|
43
54
|
"license": "MIT",
|
|
44
55
|
"scripts": {
|