@wyxos/vibe 1.2.13 → 1.2.14

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Masonry.vue +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wyxos/vibe",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "type": "module",
package/src/Masonry.vue CHANGED
@@ -28,6 +28,10 @@ const props = defineProps({
28
28
  skipInitialLoad: {
29
29
  type: Boolean,
30
30
  default: false
31
+ },
32
+ maxItems: {
33
+ type: Number,
34
+ default: 100
31
35
  }
32
36
  })
33
37
 
@@ -98,7 +102,7 @@ async function onScroll() {
98
102
  if ((whitespaceVisible || reachedContainerBottom) && !isLoading.value) {
99
103
  isLoading.value = true
100
104
 
101
- if (paginationHistory.value.length > 3) {
105
+ if (masonry.value.length > props.maxItems) {
102
106
  // get first item - only proceed if it exists
103
107
  const firstItem = masonry.value[0]
104
108