@vixoniccom/news-internal 0.4.20-dev.1 → 0.4.20-dev.3

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.
@@ -0,0 +1,98 @@
1
+ name: Publish to NPM
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - main
8
+
9
+ jobs:
10
+ publish:
11
+ # Solo ejecutar si es un push a main/master
12
+ if: github.event_name == 'push'
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 0
20
+
21
+ - name: Setup Node.js 20
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ node-version: '20'
25
+ registry-url: 'https://registry.npmjs.org'
26
+ scope: '@vixoniccom'
27
+
28
+ - name: Configure npm authentication
29
+ run: |
30
+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
31
+ echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
32
+ echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
33
+
34
+ - name: Cache node modules
35
+ uses: actions/cache@v4
36
+ with:
37
+ path: ~/.npm
38
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
39
+ restore-keys: |
40
+ ${{ runner.os }}-node-
41
+
42
+ - name: Install dependencies
43
+ run: npm ci
44
+ env:
45
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
46
+
47
+ - name: Build package
48
+ run: npm run prepublish
49
+ env:
50
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51
+
52
+ - name: Verify build.zip exists
53
+ run: |
54
+ if [ ! -f "build.zip" ]; then
55
+ echo "❌ Error: build.zip not found after build process"
56
+ exit 1
57
+ fi
58
+ echo "✅ build.zip found successfully"
59
+ ls -la build.zip
60
+
61
+ - name: Check if version already exists on npm
62
+ id: check-version
63
+ run: |
64
+ PACKAGE_NAME=$(node -p "require('./package.json').name")
65
+ PACKAGE_VERSION=$(node -p "require('./package.json').version")
66
+
67
+ echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION exists on npm..."
68
+
69
+ if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
70
+ echo "version-exists=true" >> $GITHUB_OUTPUT
71
+ echo "⚠️ Version $PACKAGE_VERSION already exists on npm"
72
+ else
73
+ echo "version-exists=false" >> $GITHUB_OUTPUT
74
+ echo "✅ Version $PACKAGE_VERSION does not exist on npm - ready to publish"
75
+ fi
76
+
77
+ - name: Publish to npm
78
+ if: steps.check-version.outputs.version-exists == 'false'
79
+ run: |
80
+ echo "Publishing to npm..."
81
+ npm publish --access public
82
+ env:
83
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
84
+
85
+ - name: Publication success
86
+ if: steps.check-version.outputs.version-exists == 'false'
87
+ run: |
88
+ PACKAGE_NAME=$(node -p "require('./package.json').name")
89
+ PACKAGE_VERSION=$(node -p "require('./package.json').version")
90
+ echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
91
+ echo "📦 Package includes build.zip with the compiled application"
92
+
93
+ - name: Skip publication
94
+ if: steps.check-version.outputs.version-exists == 'true'
95
+ run: |
96
+ PACKAGE_VERSION=$(node -p "require('./package.json').version")
97
+ echo "⏭️ Skipping publication - version $PACKAGE_VERSION already exists on npm"
98
+ echo "💡 To publish a new version, update the version in package.json or run 'npm run release'"
@@ -0,0 +1,30 @@
1
+ name: Sonarqube Analysis
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - development
7
+ pull_request:
8
+ types: [opened, synchronize, reopened]
9
+
10
+ jobs:
11
+ sonarqube:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ with:
16
+ # Disabling shallow clone is recommended for improving relevancy of reporting.
17
+ fetch-depth: 0
18
+
19
+ - name: SonarQube Scan
20
+ uses: sonarsource/sonarqube-scan-action@master
21
+ env:
22
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
23
+ SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
24
+
25
+ - name: SonarQube Quality Gate Check
26
+ uses: sonarsource/sonarqube-quality-gate-action@master
27
+ timeout-minutes: 5
28
+ env:
29
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30
+ SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
package/CHANGELOG.md CHANGED
@@ -2,6 +2,26 @@
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.20-dev.3](https://github.com/Vixonic/store-news-internal/compare/v0.4.20-dev.2...v0.4.20-dev.3) (2025-09-03)
6
+
7
+
8
+ ### Features
9
+
10
+ * add github actions ([088820c](https://github.com/Vixonic/store-news-internal/commit/088820cbd30efe246cadf1e61bb15d1e88722952))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * colon removed in the character count ([b00b4fe](https://github.com/Vixonic/store-news-internal/commit/b00b4fe1656430603b20122718b8b7f4ecae6cfe))
16
+
17
+ ### [0.4.20-dev.2](https://github.com/Vixonic/store-news-internal/compare/v0.4.20-dev.1...v0.4.20-dev.2) (2025-09-03)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * remove pattern from textArea inputs ([c8968f5](https://github.com/Vixonic/store-news-internal/commit/c8968f597474fe67826b86f61b10f146d36e1200))
23
+ * return to previous react-quill version ([3f57427](https://github.com/Vixonic/store-news-internal/commit/3f57427282187d96653b8fe990656f7f0f8d3bfc))
24
+
5
25
  ### [0.4.20-dev.1](https://github.com/Vixonic/store-news-internal/compare/v0.4.20-dev.0...v0.4.20-dev.1) (2025-09-03)
6
26
 
7
27
  ### [0.4.20-dev.0](https://github.com/Vixonic/store-news-internal/compare/v0.4.19...v0.4.20-dev.0) (2025-09-03)
package/build.zip CHANGED
Binary file
@@ -13,7 +13,7 @@
13
13
  "type": "text-input",
14
14
  "required": true,
15
15
  "pattern": "^(?!\\s*$).+",
16
- "range": "[1:25:]"
16
+ "range": "[1:25]"
17
17
  },
18
18
  {
19
19
  "id": "title",
@@ -22,7 +22,7 @@
22
22
  "type": "text-input",
23
23
  "required": true,
24
24
  "pattern": "^(?!\\s*$).+",
25
- "range": "[1:40:]"
25
+ "range": "[1:40]"
26
26
  },
27
27
  {
28
28
  "id": "title",
@@ -31,7 +31,7 @@
31
31
  "type": "text-input",
32
32
  "required": true,
33
33
  "pattern": "^(?!\\s*$).+",
34
- "range": "[1:50:]"
34
+ "range": "[1:50]"
35
35
  },
36
36
  {
37
37
  "id": "title",
@@ -40,7 +40,7 @@
40
40
  "type": "text-input",
41
41
  "required": true,
42
42
  "pattern": "^(?!\\s*$).+",
43
- "range": "[1:70:]"
43
+ "range": "[1:70]"
44
44
  },
45
45
  {
46
46
  "id": "description",
@@ -48,7 +48,7 @@
48
48
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'short')",
49
49
  "type": "text-area",
50
50
  "required": true,
51
- "range": "[1:80:]",
51
+ "range": "[1:80]",
52
52
  "html": true
53
53
  },
54
54
  {
@@ -57,7 +57,7 @@
57
57
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'medium')",
58
58
  "type": "text-area",
59
59
  "required": true,
60
- "range": "[1:180:]",
60
+ "range": "[1:180]",
61
61
  "html": true
62
62
  },
63
63
  {
@@ -66,7 +66,7 @@
66
66
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'large')",
67
67
  "type": "text-area",
68
68
  "required": true,
69
- "range": "[1:350:]",
69
+ "range": "[1:350]",
70
70
  "html": true
71
71
  },
72
72
  {
@@ -75,7 +75,7 @@
75
75
  "show": "{{descriptionEnabled}} === true && ({{newsSizeSelect}} === 'extra-large')",
76
76
  "type": "text-area",
77
77
  "required": true,
78
- "range": "[1:500:]",
78
+ "range": "[1:500]",
79
79
  "html": true
80
80
  },
81
81
  {
@@ -183,7 +183,7 @@
183
183
  "id": "showTime",
184
184
  "label": "Persistencia",
185
185
  "type": "number-input",
186
- "range": "[5:9999:]",
186
+ "range": "[5:9999]",
187
187
  "description": "Tiempo en segundos por noticia. Por defecto 10"
188
188
  },
189
189
  {
@@ -267,7 +267,7 @@
267
267
  "label": "Altura de línea",
268
268
  "show": "{{titleEnabled}} === true",
269
269
  "type": "number-input",
270
- "range": "[0.8:100:]"
270
+ "range": "[0.8:100]"
271
271
  },
272
272
  {
273
273
  "id": "descriptionEnabled",
@@ -286,7 +286,7 @@
286
286
  "label": "Altura de línea",
287
287
  "show": "{{descriptionEnabled}} === true",
288
288
  "type": "number-input",
289
- "range": "[0.8:100:]"
289
+ "range": "[0.8:100]"
290
290
  },
291
291
  {
292
292
  "id": "textSeparation",
@@ -333,7 +333,7 @@
333
333
  "label": "Tamaño personalizado",
334
334
  "show": "{{imageEnabled}} === true && ( ( {{template}} === 'gallery' ) === false ) && ( ( {{template}} === 'gradient' ) === false ) && ( {{imageSize}} === 'custom' )",
335
335
  "type": "number-input",
336
- "range": "[1:100:]",
336
+ "range": "[1:100]",
337
337
  "description": "En porcentaje.",
338
338
  "required": true
339
339
  },
@@ -439,7 +439,7 @@
439
439
  "label": "Porcentje de degradado",
440
440
  "show": "{{template}} === 'gradient'",
441
441
  "type": "number-input",
442
- "range": "[1:100:]",
442
+ "range": "[1:100]",
443
443
  "description": "Por defecto 50"
444
444
  },
445
445
  {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "author": {
9
9
  "name": ""
10
10
  },
11
- "version": "0.4.20-dev.1",
11
+ "version": "0.4.20-dev.3",
12
12
  "scripts": {
13
13
  "prepublish": "vixonic-module-packager --mode=build",
14
14
  "watch": "vixonic-module-packager --mode=watch",
@@ -25,7 +25,7 @@
25
25
  "react": "^18.3.1",
26
26
  "react-dom": "^18.3.1",
27
27
  "react-qr-code": "^2.0.18",
28
- "react-quill": "^2.0.0",
28
+ "react-quill": "^1.3.5",
29
29
  "react-transition-group": "^4.4.5",
30
30
  "uuid": "^9.0.0"
31
31
  },
@@ -0,0 +1 @@
1
+ sonar.projectKey=Vixonic_store-news-internal_7997a402-cbee-4f01-a556-e7f3da37d90d