@vixoniccom/news-internal 0.4.13-beta.17 → 0.4.13-beta.2

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,36 +2,6 @@
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
- ### [0.4.13-beta.17](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.16...v0.4.13-beta.17) (2023-05-29)
6
-
7
- ### [0.4.13-beta.16](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.15...v0.4.13-beta.16) (2023-05-26)
8
-
9
- ### [0.4.13-beta.15](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.14...v0.4.13-beta.15) (2023-05-26)
10
-
11
- ### [0.4.13-beta.14](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.13...v0.4.13-beta.14) (2023-05-19)
12
-
13
- ### [0.4.13-beta.13](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.12...v0.4.13-beta.13) (2023-05-17)
14
-
15
- ### [0.4.13-beta.12](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.11...v0.4.13-beta.12) (2023-05-17)
16
-
17
- ### [0.4.13-beta.11](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.10...v0.4.13-beta.11) (2023-05-17)
18
-
19
- ### [0.4.13-beta.10](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.9...v0.4.13-beta.10) (2023-05-17)
20
-
21
- ### [0.4.13-beta.9](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.8...v0.4.13-beta.9) (2023-05-15)
22
-
23
- ### [0.4.13-beta.8](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.7...v0.4.13-beta.8) (2023-05-15)
24
-
25
- ### [0.4.13-beta.7](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.6...v0.4.13-beta.7) (2023-05-15)
26
-
27
- ### [0.4.13-beta.6](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.5...v0.4.13-beta.6) (2023-05-11)
28
-
29
- ### [0.4.13-beta.5](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.4...v0.4.13-beta.5) (2023-05-11)
30
-
31
- ### [0.4.13-beta.4](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.3...v0.4.13-beta.4) (2023-05-10)
32
-
33
- ### [0.4.13-beta.3](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.2...v0.4.13-beta.3) (2023-05-10)
34
-
35
5
  ### [0.4.13-beta.2](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.1...v0.4.13-beta.2) (2023-05-10)
36
6
 
37
7
  ### [0.4.13-beta.1](https://bitbucket.org/rexmas_cl/news-internal/compare/v0.4.13-beta.0...v0.4.13-beta.1) (2023-05-10)
package/build.zip CHANGED
Binary file
@@ -1,4 +1,4 @@
1
- import { Configuration, List, TextInput, SelectAssetKna, TextArea, NumberRangeValue, DateInput } from '@vixoniccom/modules'
1
+ import { Configuration, List, TextInput, SelectAssetKna, TextArea, NumberRangeValue, BitlyInput } from '@vixoniccom/modules'
2
2
  import { appereanceGroup } from './appearanceGroup'
3
3
  import { ShowValidations } from './utils'
4
4
 
@@ -78,7 +78,7 @@ const newsList = new List({
78
78
  extensions: ['jpg', 'jpeg', 'png', 'svg'], show: (ShowValidations.imageForceEnabled)
79
79
  }),
80
80
 
81
- new TextInput({
81
+ new BitlyInput({
82
82
  id: 'qrCodeUrl',
83
83
  label: 'URL código QR',
84
84
  required: true,
@@ -90,23 +90,17 @@ const newsList = new List({
90
90
  label: 'Título código QR',
91
91
  required: false,
92
92
  show: ShowValidations.qrCodeEnabled
93
- }),
94
-
95
- new DateInput({
96
- id: 'expirationDate',
97
- label: 'Fecha de expiración Noticia',
98
93
  })
99
94
  ],
100
95
  itemDisplayClass: '2-lines',
101
96
  itemDisplayAttributes: {
102
97
  title: 'title',
103
- subtitle: 'description',
104
- expirationDate: "expirationDate"
98
+ subtitle: 'description'
105
99
  }
106
100
  })
107
101
 
108
102
  export const configuration: Configuration = new Configuration({
109
- durationFormula: `(_values.news && _values.news.filter(function(newsItem) { return new Date(newsItem.expirationDate) > new Date() || !isNaN(newsItem.expirationDate) ; }).length || 0) * (_values.showTime || 10)`,
103
+ durationFormula: `({{news}} && {{news}}.length || 1) * ({{showTime}} || 10)`,
110
104
  schema: [
111
105
  newsList,
112
106
  appereanceGroup
@@ -1,5 +1,5 @@
1
1
  {
2
- "durationFormula": "(_values.news && _values.news.filter(function(newsItem) { return new Date(newsItem.expirationDate) > new Date() || !isNaN(newsItem.expirationDate) ; }).length || 0) * (_values.showTime || 10)",
2
+ "durationFormula": "({{news}} && {{news}}.length || 1) * ({{showTime}} || 10)",
3
3
  "schema": [
4
4
  {
5
5
  "id": "news",
@@ -12,7 +12,7 @@
12
12
  "show": "{{titleEnabled}} === true && ({{newsSizeSelect}} === 'short')",
13
13
  "type": "text-input",
14
14
  "required": true,
15
- "range": "[1:25:]"
15
+ "range": "[1:25]"
16
16
  },
17
17
  {
18
18
  "id": "title",
@@ -20,7 +20,7 @@
20
20
  "show": "{{titleEnabled}} === true && ({{newsSizeSelect}} === 'medium')",
21
21
  "type": "text-input",
22
22
  "required": true,
23
- "range": "[1:40:]"
23
+ "range": "[1:40]"
24
24
  },
25
25
  {
26
26
  "id": "title",
@@ -28,7 +28,7 @@
28
28
  "show": "{{titleEnabled}} === true && ({{newsSizeSelect}} === 'large')",
29
29
  "type": "text-input",
30
30
  "required": true,
31
- "range": "[1:50:]"
31
+ "range": "[1:50]"
32
32
  },
33
33
  {
34
34
  "id": "title",
@@ -36,7 +36,7 @@
36
36
  "show": "{{titleEnabled}} === true && ({{newsSizeSelect}} === 'extra-large')",
37
37
  "type": "text-input",
38
38
  "required": true,
39
- "range": "[1:70:]"
39
+ "range": "[1:70]"
40
40
  },
41
41
  {
42
42
  "id": "description",
@@ -44,7 +44,7 @@
44
44
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'short')",
45
45
  "type": "text-area",
46
46
  "required": true,
47
- "range": "[1:80:]",
47
+ "range": "[1:80]",
48
48
  "html": true
49
49
  },
50
50
  {
@@ -53,7 +53,7 @@
53
53
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'medium')",
54
54
  "type": "text-area",
55
55
  "required": true,
56
- "range": "[1:180:]",
56
+ "range": "[1:180]",
57
57
  "html": true
58
58
  },
59
59
  {
@@ -62,7 +62,7 @@
62
62
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'large')",
63
63
  "type": "text-area",
64
64
  "required": true,
65
- "range": "[1:350:]",
65
+ "range": "[1:350]",
66
66
  "html": true
67
67
  },
68
68
  {
@@ -71,7 +71,7 @@
71
71
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'extra-large')",
72
72
  "type": "text-area",
73
73
  "required": true,
74
- "range": "[1:500:]",
74
+ "range": "[1:500]",
75
75
  "html": true
76
76
  },
77
77
  {
@@ -101,19 +101,13 @@
101
101
  "show": "{{qrCodeEnabled}} === true",
102
102
  "type": "text-input",
103
103
  "required": false
104
- },
105
- {
106
- "id": "expirationDate",
107
- "label": "Fecha de expiración Noticia",
108
- "type": "date-input"
109
104
  }
110
105
  ],
111
106
  "description": "Lista de noticias",
112
107
  "itemDisplayClass": "2-lines",
113
108
  "itemDisplayAttributes": {
114
109
  "title": "title",
115
- "subtitle": "description",
116
- "expirationDate": "expirationDate"
110
+ "subtitle": "description"
117
111
  },
118
112
  "sortable": true
119
113
  },
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "author": {
8
8
  "name": ""
9
9
  },
10
- "version": "0.4.13-beta.17",
10
+ "version": "0.4.13-beta.2",
11
11
  "scripts": {
12
12
  "prepublishOnly": "vixonic-module-packager --mode=build",
13
13
  "watch": "vixonic-module-packager --mode=watch",
@@ -19,14 +19,13 @@
19
19
  "prerelease-dev": "standard-version --prerelease dev"
20
20
  },
21
21
  "dependencies": {
22
- "@vixoniccom/module-packager": "^2.9.0",
23
- "dayjs": "^1.11.7",
24
22
  "react": "^16.14.0",
25
23
  "react-dom": "^16.14.0",
26
24
  "react-qr-code": "^2.0.2",
27
25
  "react-quill": "^1.3.5",
28
26
  "react-transition-group": "^4.4.2",
29
- "uuid": "^8.3.2"
27
+ "uuid": "^8.3.2",
28
+ "@vixoniccom/module-packager": "^2.9.0"
30
29
  },
31
30
  "devDependencies": {
32
31
  "@types/node": "^12.20.29",
@@ -35,7 +34,7 @@
35
34
  "@types/react-transition-group": "^4.4.3",
36
35
  "@types/uuid": "^8.3.1",
37
36
  "@vixoniccom/module-packager": "^2.6.0-rc.0",
38
- "@vixoniccom/modules": "^2.16.1-dev.1",
37
+ "@vixoniccom/modules": "^2.13.0-rc.0",
39
38
  "standard-version": "^9.3.1"
40
39
  }
41
40
  }