@vixoniccom/aniversarios 1.2.1-dev.0 → 1.2.1-dev.1

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,13 @@
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
+ ### [1.2.1-dev.1](https://github.com/Vixonic/store-aniversarios/compare/v1.2.1-dev.0...v1.2.1-dev.1) (2025-05-05)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * show partial pages re-enabled ([2fa3e85](https://github.com/Vixonic/store-aniversarios/commit/2fa3e853200edad4b8a90da526497761fcb51fa1))
11
+
5
12
  ### [1.2.1-dev.0](https://github.com/Vixonic/store-aniversarios/compare/v1.2.0...v1.2.1-dev.0) (2025-05-02)
6
13
 
7
14
 
package/build.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixoniccom/aniversarios",
3
3
  "alias": "Aniversarios",
4
- "version": "1.2.1-dev.0",
4
+ "version": "1.2.1-dev.1",
5
5
  "description": "Muestra el día que el trabajador está de aniversario en la empresa.",
6
6
  "main": "main.js",
7
7
  "author": "",
@@ -75,9 +75,11 @@ export const ItemsContainer = ({ animation, items, animate }: Props) => {
75
75
 
76
76
  let currentIndex = lastIndex % items.length
77
77
  const newItems: any = []
78
+ const remainingItems = items.length - currentIndex
79
+ const itemsToShow = Math.min(itemsCount, remainingItems)
78
80
 
79
- for (let i = 0; i < Math.min(itemsCount, items.length); i++) {
80
- const itemIndex = (currentIndex + i) % items.length
81
+ for (let i = 0; i < itemsToShow; i++) {
82
+ const itemIndex = currentIndex + i
81
83
  const item = items[itemIndex]
82
84
 
83
85
  newItems.push(
@@ -88,7 +90,7 @@ export const ItemsContainer = ({ animation, items, animate }: Props) => {
88
90
  ic_rowIndex: Math.floor(i / columns),
89
91
  ic_columnIndex: i % columns,
90
92
  ic_firstChild: i === 0,
91
- ic_lastChild: i === (Math.min(itemsCount, items.length) - 1)
93
+ ic_lastChild: i === (itemsToShow - 1)
92
94
  }}
93
95
  style={animations.getInitialStyle()}
94
96
  width={`${(100 - ((columnsGap * (columns - 1)))) / columns}%`}
@@ -101,7 +103,7 @@ export const ItemsContainer = ({ animation, items, animate }: Props) => {
101
103
  )
102
104
  }
103
105
 
104
- setLastIndex((currentIndex + itemsCount) % items.length)
106
+ setLastIndex((currentIndex + itemsToShow) % items.length)
105
107
 
106
108
  if (newItems.length > 0) {
107
109
  setShow(true)