@vixoniccom/news-internal 0.4.21-dev.15 → 0.4.21-dev.17

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/build.zip CHANGED
Binary file
@@ -119,7 +119,7 @@
119
119
  }
120
120
  ],
121
121
  "description": "Lista de noticias",
122
- "range": "[0:200]",
122
+ "range": "[1:200]",
123
123
  "itemDisplayClass": "2-lines",
124
124
  "itemDisplayAttributes": {
125
125
  "title": "title",
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "author": {
9
9
  "name": ""
10
10
  },
11
- "version": "0.4.21-dev.15",
11
+ "version": "0.4.21-dev.17",
12
12
  "scripts": {
13
13
  "prepublish": "vixonic-module-packager --mode=build",
14
14
  "watch": "vixonic-module-packager --mode=watch",
@@ -18,7 +18,7 @@ export const TextContainer: React.FunctionComponent<Props> = (props) => {
18
18
  height: '100%',
19
19
  flex: 1
20
20
  }}>
21
- {parameters.titleEnabled && <FormattedText text={item.title || ''} unit={'px'}
21
+ {parameters.titleEnabled && <FormattedText text={item.titleShort || item.titleMedium || item.titleLarge || item.titleExtraLarge || ''} unit={'px'}
22
22
  format={parameters.titleFormat} lineHeight={parameters.titleLineHeight}
23
23
  style={
24
24
  (parameters.textSeparation && parameters.titleEnabled && parameters.descriptionEnabled)
@@ -26,7 +26,7 @@ export const TextContainer: React.FunctionComponent<Props> = (props) => {
26
26
  : undefined
27
27
  } multiline />
28
28
  }
29
- {parameters.descriptionEnabled && <FormattedHtmlText html={item.description || ''} unit={'px'}
29
+ {parameters.descriptionEnabled && <FormattedHtmlText html={item.descriptionShort || item.descriptionMedium || item.descriptionLarge || item.descriptionExtraLarge || ''} unit={'px'}
30
30
  format={parameters.descriptionFormat} lineHeight={parameters.descriptionLineHeight}
31
31
  defaults={{ fontSize: 10, fontColor: 'black', alignment: 'left' }}
32
32
  multiline />
package/src/global.d.ts CHANGED
@@ -1,7 +1,13 @@
1
1
  type NewsItem = {
2
2
  id: string
3
- title?: string
4
- description?: string
3
+ titleShort?: string
4
+ descriptionShort?: string
5
+ titleMedium?: string
6
+ descriptionMedium?: string
7
+ titleLarge?: string
8
+ descriptionLarge?: string
9
+ titleExtraLarge?: string
10
+ descriptionExtraLarge?: string
5
11
  image?: string
6
12
  qrCodeUrl?: string
7
13
  qrCodeTitle?: string