@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 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
- - [Add Icons with Vue](https://fontawesome.com/docs/web/use-with/vue/add-icons)
30
- - [Adding Icon Styling with Vue](https://fontawesome.com/docs/web/use-with/vue/style)
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(object, enumerableOnly) {
5
- var keys = Object.keys(object);
4
+ function ownKeys(e, r) {
5
+ var t = Object.keys(e);
6
6
  if (Object.getOwnPropertySymbols) {
7
- var symbols = Object.getOwnPropertySymbols(object);
8
- enumerableOnly && (symbols = symbols.filter(function (sym) {
9
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
10
- })), keys.push.apply(keys, symbols);
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 keys;
12
+ return t;
13
13
  }
14
- function _objectSpread2(target) {
15
- for (var i = 1; i < arguments.length; i++) {
16
- var source = null != arguments[i] ? arguments[i] : {};
17
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
18
- _defineProperty(target, key, source[key]);
19
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
20
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
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 target;
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 _typeof(obj) {
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 (obj) {
29
- return typeof obj;
30
- } : function (obj) {
31
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
32
- }, _typeof(obj);
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 sourceKeys = Object.keys(source);
52
- var key, i;
53
- for (i = 0; i < sourceKeys.length; i++) {
54
- key = sourceKeys[i];
55
- if (excluded.indexOf(key) >= 0) continue;
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), _defineProperty(_classes, "fa-rotate-".concat(props.rotation), props.rotation !== null), _defineProperty(_classes, "fa-pull-".concat(props.pull), props.pull !== null), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _defineProperty(_classes, 'fa-bounce', props.bounce), _defineProperty(_classes, 'fa-shake', props.shake), _defineProperty(_classes, 'fa-beat', props.beat), _defineProperty(_classes, 'fa-fade', props.fade), _defineProperty(_classes, 'fa-beat-fade', props.beatFade), _defineProperty(_classes, 'fa-flash', props.flash), _defineProperty(_classes, 'fa-spin-pulse', props.spinPulse), _defineProperty(_classes, 'fa-spin-reverse', props.spinReverse), _classes);
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(object, enumerableOnly) {
8
- var keys = Object.keys(object);
7
+ function ownKeys(e, r) {
8
+ var t = Object.keys(e);
9
9
  if (Object.getOwnPropertySymbols) {
10
- var symbols = Object.getOwnPropertySymbols(object);
11
- enumerableOnly && (symbols = symbols.filter(function (sym) {
12
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
13
- })), keys.push.apply(keys, symbols);
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 keys;
15
+ return t;
16
16
  }
17
- function _objectSpread2(target) {
18
- for (var i = 1; i < arguments.length; i++) {
19
- var source = null != arguments[i] ? arguments[i] : {};
20
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
21
- _defineProperty(target, key, source[key]);
22
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
23
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
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 target;
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 _typeof(obj) {
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 (obj) {
32
- return typeof obj;
33
- } : function (obj) {
34
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
35
- }, _typeof(obj);
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 sourceKeys = Object.keys(source);
55
- var key, i;
56
- for (i = 0; i < sourceKeys.length; i++) {
57
- key = sourceKeys[i];
58
- if (excluded.indexOf(key) >= 0) continue;
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), _defineProperty(_classes, "fa-rotate-".concat(props.rotation), props.rotation !== null), _defineProperty(_classes, "fa-pull-".concat(props.pull), props.pull !== null), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _defineProperty(_classes, 'fa-bounce', props.bounce), _defineProperty(_classes, 'fa-shake', props.shake), _defineProperty(_classes, 'fa-beat', props.beat), _defineProperty(_classes, 'fa-fade', props.fade), _defineProperty(_classes, 'fa-beat-fade', props.beatFade), _defineProperty(_classes, 'fa-flash', props.flash), _defineProperty(_classes, 'fa-spin-pulse', props.spinPulse), _defineProperty(_classes, 'fa-spin-reverse', props.spinReverse), _classes);
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.6",
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
- "Travis Chase <travis@fontawesome.com>",
30
- "Rob Madole <rob@fontawesome.com>",
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
- "Okke Tijhuis <github.com/otijhuis>",
40
- "Aaron Parker <github.com/parkeyparker>",
41
- "Brandon Mork <github.com/brandon-mork>"
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": {