@twreporter/core 1.4.2 → 1.5.0-rc.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 +12 -0
- package/lib/constants/font.js +21 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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-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)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **core:** add `defaultFallback` font-family into font ([c7a84a2](https://github.com/twreporter/twreporter-npm-packages/commit/c7a84a23f1bf001717dbf0c7be7711f132dc9b93))
|
|
12
|
+
* **core:** export fonts as a constant ([c9c9cdc](https://github.com/twreporter/twreporter-npm-packages/commit/c9c9cdcb3a0c7b3368d56d09ea73780533ff9ab7))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [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)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @twreporter/core
|
package/lib/constants/font.js
CHANGED
|
@@ -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:
|
|
15
|
-
"default":
|
|
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.
|
|
3
|
+
"version": "1.5.0-rc.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": "
|
|
22
|
+
"gitHead": "1581b4cbe2575efda67131f0d6954cb7dfd3a82d"
|
|
23
23
|
}
|