@kaikybrofc/omnizap-system 2.3.6 → 2.3.7

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/README.md CHANGED
@@ -78,24 +78,24 @@ Este bloco pode ser atualizado automaticamente pela API (`/api/sticker-packs/rea
78
78
  <!-- README_SNAPSHOT:START -->
79
79
  ### Snapshot do Sistema
80
80
 
81
- > Atualizado em `2026-03-02T04:00:50.043Z` | cache `1800s`
81
+ > Atualizado em `2026-03-02T04:56:50.656Z` | cache `1800s`
82
82
 
83
83
  | Métrica | Valor |
84
84
  | --- | ---: |
85
85
  | Usuários (lid_map) | 5.529 |
86
86
  | Grupos | 118 |
87
- | Packs | 318 |
88
- | Stickers | 8.020 |
89
- | Mensagens registradas | 453.847 |
87
+ | Packs | 319 |
88
+ | Stickers | 8.026 |
89
+ | Mensagens registradas | 453.904 |
90
90
 
91
91
  #### Tipos de mensagem mais usados (amostra: 25.000)
92
92
  | Tipo | Total |
93
93
  | --- | ---: |
94
- | `texto` | 15.317 |
95
- | `figurinha` | 4.895 |
96
- | `reacao` | 1.810 |
97
- | `imagem` | 1.511 |
98
- | `outros` | 1.079 |
94
+ | `texto` | 15.337 |
95
+ | `figurinha` | 4.863 |
96
+ | `reacao` | 1.818 |
97
+ | `imagem` | 1.513 |
98
+ | `outros` | 1.081 |
99
99
  | `video` | 205 |
100
100
  | `audio` | 178 |
101
101
  | `documento` | 5 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaikybrofc/omnizap-system",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "Sistema profissional de automação WhatsApp com tecnologia Baileys",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -2609,12 +2609,21 @@ function StickersApp() {
2609
2609
  setCatalogPage(nextPage);
2610
2610
  };
2611
2611
 
2612
+ const scrollToTopIfMobile = ({ behavior = 'smooth' } = {}) => {
2613
+ const isMobile = window.matchMedia ? window.matchMedia('(max-width: 1023px)').matches : window.innerWidth < 1024;
2614
+ if (!isMobile) return;
2615
+ window.requestAnimationFrame(() => {
2616
+ window.scrollTo({ top: 0, behavior });
2617
+ });
2618
+ };
2619
+
2612
2620
  const openPack = (packKey, push = true) => {
2613
2621
  if (!packKey) return;
2614
2622
  if (push) window.history.pushState({}, '', `${config.webPath}/${encodeURIComponent(packKey)}`);
2615
2623
  setCurrentView('pack');
2616
2624
  setCurrentPackKey(packKey);
2617
2625
  setSortPickerOpen(false);
2626
+ scrollToTopIfMobile({ behavior: 'smooth' });
2618
2627
  };
2619
2628
 
2620
2629
  const goCatalog = (push = true) => {
@@ -3133,9 +3142,7 @@ function StickersApp() {
3133
3142
  return;
3134
3143
  }
3135
3144
  if (route.view === 'pack' && route.packKey) {
3136
- setCurrentView('pack');
3137
- setCurrentPackKey(route.packKey);
3138
- setSortPickerOpen(false);
3145
+ openPack(route.packKey, false);
3139
3146
  return;
3140
3147
  }
3141
3148
  applyCatalogViewState(parseCatalogSearchState(window.location.search));