@quintype/native-components 2.19.19 → 2.19.21
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
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.19.21](https://github.com/quintype/native-components/compare/v2.19.20...v2.19.21) (2022-11-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **fonts:** Fixes fonts for CollectionTitle and Caption/Attribution HTML 🔨 ([#188](https://github.com/quintype/native-components/issues/188)) ([94c61ff](https://github.com/quintype/native-components/commit/94c61ff385df2225f6a3d1b14c1f5d2ce3a1ed89))
|
|
11
|
+
|
|
12
|
+
### [2.19.20](https://github.com/quintype/native-components/compare/v2.19.19...v2.19.20) (2022-11-07)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **android:** Fixes Nov 4 critical issue that breaks Android :hammer: ([e6d6c27](https://github.com/quintype/native-components/commit/e6d6c27e55ddbe9542ef3c7733273e4bbe9a1aa2))
|
|
18
|
+
|
|
5
19
|
### [2.19.19](https://github.com/quintype/native-components/compare/v2.19.18...v2.19.19) (2022-08-24)
|
|
6
20
|
|
|
7
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quintype/native-components",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@react-navigation/native": ">=5.7.3",
|
|
31
31
|
"lodash": ">=4.17.20",
|
|
32
32
|
"react": ">=17.0.2",
|
|
33
|
-
"react-native": ">=0.67.
|
|
33
|
+
"react-native": ">=0.67.5",
|
|
34
34
|
"react-native-fast-image": ">=8.3.2",
|
|
35
35
|
"react-native-pdf": ">=6.2.0",
|
|
36
36
|
"react-native-webview": ">=11.0.0",
|
|
@@ -69,8 +69,10 @@ export const StoryHeader = (props) => {
|
|
|
69
69
|
const { story } = props;
|
|
70
70
|
const sectionData = get(story, ['sections', 0], {});
|
|
71
71
|
const { theme } = useContext(AppTheme);
|
|
72
|
-
const {
|
|
73
|
-
|
|
72
|
+
const {
|
|
73
|
+
COLORS, CAN_COPY_TEXT, locale, FONT_FAMILY,
|
|
74
|
+
} = theme;
|
|
75
|
+
const styles = storyHeaderStyles(COLORS, FONT_FAMILY);
|
|
74
76
|
const imgCaption = story['hero-image-caption'];
|
|
75
77
|
const attri = story['hero-image-attribution'];
|
|
76
78
|
const imgAttribution = imgCaption && attri ? ` | ${attri}` : attri;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
2
|
|
|
3
|
-
export const storyHeaderStyles = (COLORS) => StyleSheet.create({
|
|
3
|
+
export const storyHeaderStyles = (COLORS, FONT_FAMILY) => StyleSheet.create({
|
|
4
4
|
tagStyle: {
|
|
5
5
|
padding: 10,
|
|
6
6
|
backgroundColor: COLORS.BRAND_7,
|
|
@@ -29,10 +29,12 @@ export const storyHeaderStyles = (COLORS) => StyleSheet.create({
|
|
|
29
29
|
padding: 10,
|
|
30
30
|
paddingBottom: 0,
|
|
31
31
|
color: COLORS.BRAND_BLACK,
|
|
32
|
+
fontFamily: FONT_FAMILY.secondary,
|
|
32
33
|
opacity: 0.8,
|
|
33
34
|
},
|
|
34
35
|
attributionStyle: {
|
|
35
36
|
color: COLORS.BRAND_BLACK,
|
|
37
|
+
fontFamily: FONT_FAMILY.secondary,
|
|
36
38
|
opacity: 0.8,
|
|
37
39
|
},
|
|
38
40
|
captionContainerStyle: {
|