@codecademy/gamut-styles 17.3.0-alpha.b16176.0 → 17.3.0-alpha.cab68f.0

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.
@@ -1,17 +1,16 @@
1
1
  import { webFonts } from './remoteAssets/fonts';
2
2
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
3
- export const createFontLinks = () => webFonts.flatMap(_ref => {
3
+ export const createFontLinks = () => webFonts.filter(f => f.extensions.includes('woff2')).map(_ref => {
4
4
  let {
5
- filePath,
6
- extensions
5
+ filePath
7
6
  } = _ref;
8
- return extensions.map(ext => /*#__PURE__*/_jsx("link", {
7
+ return /*#__PURE__*/_jsx("link", {
9
8
  rel: "preload",
10
- href: `${filePath}.${ext}`,
9
+ href: `${filePath}.woff2`,
11
10
  crossOrigin: "anonymous",
12
11
  as: "font",
13
- type: `font/${ext}`
14
- }, `${filePath}-${ext}`));
12
+ type: "font/woff2"
13
+ }, filePath);
15
14
  });
16
15
  export const AssetProvider = () => {
17
16
  return /*#__PURE__*/_jsx(_Fragment, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/gamut-styles",
3
3
  "description": "Styleguide & Component library for codecademy.com",
4
- "version": "17.3.0-alpha.b16176.0",
4
+ "version": "17.3.0-alpha.cab68f.0",
5
5
  "author": "Jake Hiller <jake@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/variance": "0.22.0",
@@ -34,5 +34,5 @@
34
34
  "scripts": {
35
35
  "build": "nx build @codecademy/gamut-styles"
36
36
  },
37
- "gitHead": "2a4429d675292f1edcd2f10bcd38d96881ad453b"
37
+ "gitHead": "9fad6d8f7fc6bca87235462f114de98a547917c0"
38
38
  }