@justeat/fozzie
Advanced tools
Comparing version 5.0.0 to 6.0.0-beta.0
@@ -11,2 +11,19 @@ # Changelog | ||
v6.0.0-beta.0 | ||
------------------------------ | ||
*August 24, 2021* | ||
### Updated | ||
- pie-design-tokens package to v1.0.0-beta.0 to include new font vars | ||
### Added | ||
- `$font-family-secondary` as a fallback font (Arial) | ||
### Changed | ||
- `$font-weight-headings` use `$font-weight-extrabold` font weight (800) | ||
### Removed | ||
- Menulog font files | ||
v5.0.0 | ||
@@ -13,0 +30,0 @@ ------------------------------ |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = exports.hasFontLoaded = void 0; | ||
exports.default = exports.stopFoit = void 0; | ||
@@ -16,5 +16,5 @@ var _fontfaceobserver = _interopRequireDefault(require("fontfaceobserver")); | ||
/** | ||
* @overview hasFontLoaded reduces the amount of time a user has invisible text when using webfonts. | ||
* @overview stopFOIT reduces the amount of time a user has invisible text when using webfonts. | ||
* | ||
* @module hasFontLoaded | ||
* @module stopFOIT | ||
*/ | ||
@@ -26,15 +26,21 @@ | ||
*/ | ||
var hasFontLoaded = function hasFontLoaded() { | ||
var stopFoit = function stopFoit() { | ||
// Create a new `FontFaceObserver` for each webfont | ||
var baseFont = new _fontfaceobserver.default('JustEatBasis'); // On load of each font we add `has-fontsLoaded` class with the font type modifier | ||
var baseFont = new _fontfaceobserver.default('Hind Vadodara'); | ||
var headingFont = new _fontfaceobserver.default('Ubuntu'); // On load of each font we add `has-fontsLoaded` class with the font type modifier | ||
baseFont.load(null, 3000).then(function () { | ||
document.body.classList.add('webfonts-loaded'); | ||
document.body.classList.remove('is-fontsLoading--base'); | ||
}).catch(function () { | ||
(0, _fLogger.logError)('Custom font is unable to load'); | ||
}); | ||
headingFont.load(null, 3000).then(function () { | ||
document.body.classList.remove('is-fontsLoading--heading'); | ||
}).catch(function () { | ||
(0, _fLogger.logError)('Custom font is unable to load'); | ||
}); | ||
}; | ||
exports.hasFontLoaded = hasFontLoaded; | ||
var _default = hasFontLoaded; | ||
exports.stopFoit = stopFoit; | ||
var _default = stopFoit; | ||
exports.default = _default; |
@@ -5,3 +5,3 @@ { | ||
"description": "UI Web Framework for the Just Eat Global Platform", | ||
"version": "5.0.0", | ||
"version": "6.0.0-beta.0", | ||
"main": "dist/js/index.js", | ||
@@ -40,3 +40,3 @@ "files": [ | ||
"@justeat/f-utils": "2.0.0", | ||
"@justeat/pie-design-tokens": "0.19.0", | ||
"@justeat/pie-design-tokens": "1.0.0-beta.0", | ||
"fontfaceobserver": "2.1.0", | ||
@@ -43,0 +43,0 @@ "include-media": "1.4.10", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
361
0
243113
52
1
+ Added@justeat/pie-design-tokens@1.0.0-beta.0(transitive)
- Removed@justeat/pie-design-tokens@0.19.0(transitive)