@twreporter/core 1.4.2 → 1.6.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 CHANGED
@@ -3,6 +3,43 @@
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.6.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/core@1.5.0...@twreporter/core@1.6.0-rc.0) (2022-08-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * export name, too ([32d1633](https://github.com/twreporter/twreporter-npm-packages/commit/32d1633844abd9e57217e7b959c74621a24f11fc))
12
+ * follow new naming rule ([e27dff1](https://github.com/twreporter/twreporter-npm-packages/commit/e27dff12d4f6a3f96bbebf1f0f2416a1d67dab55))
13
+
14
+
15
+ ### Features
16
+
17
+ * add feature toggle for new information architecture ([74b5df5](https://github.com/twreporter/twreporter-npm-packages/commit/74b5df5abde708bb456e7a539807e013e5ebdff0))
18
+
19
+
20
+
21
+
22
+
23
+ # [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)
24
+
25
+ **Note:** Version bump only for package @twreporter/core
26
+
27
+
28
+
29
+
30
+
31
+ # [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)
32
+
33
+
34
+ ### Features
35
+
36
+ * **core:** add `defaultFallback` font-family into font ([c7a84a2](https://github.com/twreporter/twreporter-npm-packages/commit/c7a84a23f1bf001717dbf0c7be7711f132dc9b93))
37
+ * **core:** export fonts as a constant ([c9c9cdc](https://github.com/twreporter/twreporter-npm-packages/commit/c9c9cdcb3a0c7b3368d56d09ea73780533ff9ab7))
38
+
39
+
40
+
41
+
42
+
6
43
  ## [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
44
 
8
45
  **Note:** Version bump only for package @twreporter/core
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ENABLE_NEW_INFO_ARCH = void 0;
7
+ var ENABLE_NEW_INFO_ARCH = false;
8
+ exports.ENABLE_NEW_INFO_ARCH = ENABLE_NEW_INFO_ARCH;
@@ -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",
3
+ "version": "1.6.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": "18008e631123e851e1a31dc054918e2a1973514b"
22
+ "gitHead": "e7da8e5190f107cffbfb73e24c20619ec19470c2"
23
23
  }