@twreporter/core 1.4.2-rc.0 → 1.5.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,34 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.5.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/core@1.5.0-rc.0...@twreporter/core@1.5.0) (2022-08-11)
7
+
8
+ **Note:** Version bump only for package @twreporter/core
9
+
10
+
11
+
12
+
13
+
14
+ # [1.5.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/core@1.4.2...@twreporter/core@1.5.0-rc.0) (2022-08-10)
15
+
16
+
17
+ ### Features
18
+
19
+ * **core:** add `defaultFallback` font-family into font ([c7a84a2](https://github.com/twreporter/twreporter-npm-packages/commit/c7a84a23f1bf001717dbf0c7be7711f132dc9b93))
20
+ * **core:** export fonts as a constant ([c9c9cdc](https://github.com/twreporter/twreporter-npm-packages/commit/c9c9cdcb3a0c7b3368d56d09ea73780533ff9ab7))
21
+
22
+
23
+
24
+
25
+
26
+ ## [1.4.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/core@1.4.2-rc.0...@twreporter/core@1.4.2) (2022-08-09)
27
+
28
+ **Note:** Version bump only for package @twreporter/core
29
+
30
+
31
+
32
+
33
+
6
34
  ## [1.4.2-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/core@1.4.1...@twreporter/core@1.4.2-rc.0) (2022-07-27)
7
35
 
8
36
  **Note:** Version bump only for package @twreporter/core
@@ -3,7 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.fontFamily = exports.fontWeight = exports["default"] = void 0;
6
+ exports.fontFamily = exports.fontWeight = exports.fonts = exports["default"] = void 0;
7
+ var merriweather = 'merriweather';
8
+ var notoSerifTC = 'Noto Serif TC';
9
+ var serif = 'serif';
10
+ var rosario = 'rosario';
11
+ var notoSansTC = 'Noto Sans TC';
12
+ var sansSerif = 'sans-serif';
13
+ var fonts = {
14
+ merriweather: merriweather,
15
+ notoSerifTC: notoSerifTC,
16
+ serif: serif,
17
+ rosario: rosario,
18
+ notoSansTC: notoSansTC,
19
+ sansSerif: sansSerif
20
+ };
21
+ exports.fonts = fonts;
7
22
  var fontWeight = {
8
23
  extraLight: '100',
9
24
  normal: '400',
@@ -11,11 +26,14 @@ var fontWeight = {
11
26
  };
12
27
  exports.fontWeight = fontWeight;
13
28
  var fontFamily = {
14
- title: 'merriweather, Noto Serif TC, serif',
15
- "default": 'rosario, Noto Sans TC, sans-serif'
29
+ title: "".concat(merriweather, ", ").concat(notoSerifTC, ", ").concat(serif),
30
+ "default": "".concat(rosario, ", ").concat(notoSansTC, ", ").concat(sansSerif),
31
+ // use defaultFallback before ${notoSansTC} is fully loaded
32
+ defaultFallback: "".concat(rosario, ", ").concat(sansSerif)
16
33
  };
17
34
  exports.fontFamily = fontFamily;
18
35
  var _default = {
36
+ fonts: fonts,
19
37
  fontWeight: fontWeight,
20
38
  fontFamily: fontFamily
21
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twreporter/core",
3
- "version": "1.4.2-rc.0",
3
+ "version": "1.5.0",
4
4
  "main": "lib/index.js",
5
5
  "repository": "https://github.com/twreporter/twreporter-npm-packages.git",
6
6
  "author": "twreporter <developer@twreporter.org>",
@@ -19,5 +19,5 @@
19
19
  "files": [
20
20
  "lib"
21
21
  ],
22
- "gitHead": "adbbd91639cb9a74438108b97083294acf57d8cf"
22
+ "gitHead": "9cca19bcfce6ed53c6eeb5582b917b2c74ad9908"
23
23
  }