@keepkit/ui 0.28.1 → 0.28.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.
package/dist/index.js CHANGED
@@ -49,9 +49,13 @@ function useKeepUrlSync({
49
49
  ...previousQuery,
50
50
  ...decoded.search ? { search: decoded.search } : { search: void 0 },
51
51
  ...decoded.tags ? { tags: decoded.tags } : { tags: void 0 },
52
+ collectionId: decoded.collectionId,
52
53
  ...decoded.sort ? { sort: decoded.sort } : {},
53
54
  ...decoded.pagination ? { pagination: { ...previousQuery.pagination, ...decoded.pagination } } : {},
54
- ...decoded.activity ? { activity: decoded.activity } : {},
55
+ activity: decoded.activity,
56
+ organization: decoded.organization,
57
+ pinnedFirst: decoded.pinnedFirst,
58
+ savedBetween: decoded.savedBetween,
55
59
  ...decoded.archiveScope !== void 0 ? { archived: decoded.archived, archiveScope: decoded.archiveScope } : decoded.archived !== void 0 ? { archived: decoded.archived, archiveScope: void 0 } : { archived: void 0, archiveScope: void 0 }
56
60
  }));
57
61
  };
@@ -124,6 +128,7 @@ var DE_LABELS = {
124
128
  activeFilters: "Aktive Filter",
125
129
  clearFilters: "Filter l\xF6schen",
126
130
  clearAllFilters: "Alle Filter l\xF6schen",
131
+ resetFilters: "Auf Anfangsfilter zur\xFCcksetzen",
127
132
  removeFilter: "entfernen",
128
133
  noFilteredItems: "Keine passenden Elemente gefunden.",
129
134
  noFilteredItemsDescription: "Passe die Suche an oder entferne einen Tag-Filter.",
@@ -197,6 +202,12 @@ var DE_LABELS = {
197
202
  archiveScopeActive: "Aktiv",
198
203
  archiveScopeArchived: "Archiviert",
199
204
  archiveScopeAll: "Alle Elemente",
205
+ activityNeverOpened: "Noch nie ge\xF6ffnet",
206
+ activityOpened: "Ge\xF6ffnet",
207
+ activityInactiveFor: "Tage inaktiv",
208
+ activityInactiveSuffix: "inaktiv",
209
+ activityBefore: "Ge\xF6ffnet vor",
210
+ activityAfter: "Ge\xF6ffnet nach",
200
211
  undoReorder: "Sortierung r\xFCckg\xE4ngig machen",
201
212
  toolbarStart: "Sammlungsaktionen",
202
213
  toolbarQuery: "Suchen und sortieren",
@@ -244,6 +255,7 @@ var EN_LABELS = {
244
255
  activeFilters: "Active filters",
245
256
  clearFilters: "Clear filters",
246
257
  clearAllFilters: "Clear all filters",
258
+ resetFilters: "Reset to initial filters",
247
259
  removeFilter: "Remove",
248
260
  noFilteredItems: "No matching items found.",
249
261
  noFilteredItemsDescription: "Try adjusting your search or removing a tag filter.",
@@ -317,6 +329,12 @@ var EN_LABELS = {
317
329
  archiveScopeActive: "Active",
318
330
  archiveScopeArchived: "Archived",
319
331
  archiveScopeAll: "All items",
332
+ activityNeverOpened: "Never opened",
333
+ activityOpened: "Opened",
334
+ activityInactiveFor: "days inactive",
335
+ activityInactiveSuffix: "inactive",
336
+ activityBefore: "Opened before",
337
+ activityAfter: "Opened after",
320
338
  undoReorder: "Undo reorder",
321
339
  toolbarStart: "Collection actions",
322
340
  toolbarQuery: "Search and sort",
@@ -364,6 +382,7 @@ var ES_LABELS = {
364
382
  activeFilters: "Filtros activos",
365
383
  clearFilters: "Borrar filtros",
366
384
  clearAllFilters: "Borrar todos los filtros",
385
+ resetFilters: "Restablecer filtros iniciales",
367
386
  removeFilter: "quitar",
368
387
  noFilteredItems: "No se encontraron elementos coincidentes.",
369
388
  noFilteredItemsDescription: "Ajusta la b\xFAsqueda o quita un filtro de etiqueta.",
@@ -437,6 +456,12 @@ var ES_LABELS = {
437
456
  archiveScopeActive: "Activos",
438
457
  archiveScopeArchived: "Archivados",
439
458
  archiveScopeAll: "Todos los elementos",
459
+ activityNeverOpened: "Nunca abierto",
460
+ activityOpened: "Abierto",
461
+ activityInactiveFor: "d\xEDas inactivo",
462
+ activityInactiveSuffix: "inactivo",
463
+ activityBefore: "Abierto antes de",
464
+ activityAfter: "Abierto despu\xE9s de",
440
465
  undoReorder: "Deshacer ordenaci\xF3n",
441
466
  toolbarStart: "Acciones de la colecci\xF3n",
442
467
  toolbarQuery: "Buscar y ordenar",
@@ -484,6 +509,7 @@ var FIL_LABELS = {
484
509
  activeFilters: "Mga aktibong filter",
485
510
  clearFilters: "I-clear ang mga filter",
486
511
  clearAllFilters: "I-clear ang lahat ng filter",
512
+ resetFilters: "Ibalik sa mga unang filter",
487
513
  removeFilter: "alisin",
488
514
  noFilteredItems: "Walang nakitang tumutugmang item.",
489
515
  noFilteredItemsDescription: "Baguhin ang paghahanap o alisin ang filter ng tag.",
@@ -557,6 +583,12 @@ var FIL_LABELS = {
557
583
  archiveScopeActive: "Aktibo",
558
584
  archiveScopeArchived: "Naka-archive",
559
585
  archiveScopeAll: "Lahat ng item",
586
+ activityNeverOpened: "Hindi pa nabubuksan",
587
+ activityOpened: "Nabuksan",
588
+ activityInactiveFor: "araw na hindi aktibo",
589
+ activityInactiveSuffix: "hindi aktibo",
590
+ activityBefore: "Nabuksan bago",
591
+ activityAfter: "Nabuksan pagkatapos",
560
592
  undoReorder: "I-undo ang pag-aayos",
561
593
  toolbarStart: "Mga aksyon ng koleksyon",
562
594
  toolbarQuery: "Maghanap at mag-ayos",
@@ -604,6 +636,7 @@ var FR_LABELS = {
604
636
  activeFilters: "Filtres actifs",
605
637
  clearFilters: "Effacer les filtres",
606
638
  clearAllFilters: "Effacer tous les filtres",
639
+ resetFilters: "R\xE9initialiser les filtres initiaux",
607
640
  removeFilter: "supprimer",
608
641
  noFilteredItems: "Aucun \xE9l\xE9ment correspondant trouv\xE9.",
609
642
  noFilteredItemsDescription: "Modifiez votre recherche ou supprimez un filtre de tag.",
@@ -677,6 +710,12 @@ var FR_LABELS = {
677
710
  archiveScopeActive: "Actifs",
678
711
  archiveScopeArchived: "Archiv\xE9s",
679
712
  archiveScopeAll: "Tous les \xE9l\xE9ments",
713
+ activityNeverOpened: "Jamais ouvert",
714
+ activityOpened: "Ouvert",
715
+ activityInactiveFor: "jours inactif",
716
+ activityInactiveSuffix: "inactif",
717
+ activityBefore: "Ouvert avant",
718
+ activityAfter: "Ouvert apr\xE8s",
680
719
  undoReorder: "Annuler le r\xE9ordonnancement",
681
720
  toolbarStart: "Actions de la collection",
682
721
  toolbarQuery: "Recherche et tri",
@@ -724,6 +763,7 @@ var ID_LABELS = {
724
763
  activeFilters: "Filter aktif",
725
764
  clearFilters: "Hapus filter",
726
765
  clearAllFilters: "Hapus semua filter",
766
+ resetFilters: "Atur ulang ke filter awal",
727
767
  removeFilter: "hapus",
728
768
  noFilteredItems: "Tidak ada item yang cocok.",
729
769
  noFilteredItemsDescription: "Ubah pencarian atau hapus filter tag.",
@@ -797,6 +837,12 @@ var ID_LABELS = {
797
837
  archiveScopeActive: "Aktif",
798
838
  archiveScopeArchived: "Diarsipkan",
799
839
  archiveScopeAll: "Semua item",
840
+ activityNeverOpened: "Belum pernah dibuka",
841
+ activityOpened: "Sudah dibuka",
842
+ activityInactiveFor: "hari tidak aktif",
843
+ activityInactiveSuffix: "tidak aktif",
844
+ activityBefore: "Dibuka sebelum",
845
+ activityAfter: "Dibuka setelah",
800
846
  undoReorder: "Batalkan pengurutan",
801
847
  toolbarStart: "Tindakan koleksi",
802
848
  toolbarQuery: "Cari dan urutkan",
@@ -844,6 +890,7 @@ var IT_LABELS = {
844
890
  activeFilters: "Filtri attivi",
845
891
  clearFilters: "Cancella filtri",
846
892
  clearAllFilters: "Cancella tutti i filtri",
893
+ resetFilters: "Ripristina i filtri iniziali",
847
894
  removeFilter: "rimuovi",
848
895
  noFilteredItems: "Nessun elemento corrispondente trovato.",
849
896
  noFilteredItemsDescription: "Modifica la ricerca o rimuovi un filtro tag.",
@@ -917,6 +964,12 @@ var IT_LABELS = {
917
964
  archiveScopeActive: "Attivi",
918
965
  archiveScopeArchived: "Archiviati",
919
966
  archiveScopeAll: "Tutti gli elementi",
967
+ activityNeverOpened: "Mai aperto",
968
+ activityOpened: "Aperto",
969
+ activityInactiveFor: "giorni inattivo",
970
+ activityInactiveSuffix: "inattivo",
971
+ activityBefore: "Aperto prima di",
972
+ activityAfter: "Aperto dopo",
920
973
  undoReorder: "Annulla riordinamento",
921
974
  toolbarStart: "Azioni della raccolta",
922
975
  toolbarQuery: "Cerca e ordina",
@@ -964,6 +1017,7 @@ var JA_LABELS = {
964
1017
  activeFilters: "\u9069\u7528\u4E2D\u306E\u6761\u4EF6",
965
1018
  clearFilters: "\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u30AF\u30EA\u30A2",
966
1019
  clearAllFilters: "\u3059\u3079\u3066\u306E\u6761\u4EF6\u3092\u30AF\u30EA\u30A2",
1020
+ resetFilters: "\u521D\u671F\u72B6\u614B\u306B\u623B\u3059",
967
1021
  removeFilter: "\u3092\u89E3\u9664",
968
1022
  noFilteredItems: "\u4E00\u81F4\u3059\u308B\u30A2\u30A4\u30C6\u30E0\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F",
969
1023
  noFilteredItemsDescription: "\u691C\u7D22\u8A9E\u3092\u5909\u66F4\u3059\u308B\u304B\u3001\u30BF\u30B0\u306E\u7D5E\u308A\u8FBC\u307F\u3092\u89E3\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
@@ -1037,6 +1091,12 @@ var JA_LABELS = {
1037
1091
  archiveScopeActive: "\u4FDD\u5B58\u4E2D",
1038
1092
  archiveScopeArchived: "\u30A2\u30FC\u30AB\u30A4\u30D6\u6E08\u307F",
1039
1093
  archiveScopeAll: "\u3059\u3079\u3066",
1094
+ activityNeverOpened: "\u672A\u95B2\u89A7",
1095
+ activityOpened: "\u95B2\u89A7\u6E08\u307F",
1096
+ activityInactiveFor: "\u65E5\u9593\u672A\u95B2\u89A7",
1097
+ activityInactiveSuffix: "\u672A\u95B2\u89A7",
1098
+ activityBefore: "\u95B2\u89A7\u65E5\u6642\u304C\u6B21\u3088\u308A\u524D",
1099
+ activityAfter: "\u95B2\u89A7\u65E5\u6642\u304C\u6B21\u3088\u308A\u5F8C",
1040
1100
  undoReorder: "\u4E26\u3073\u66FF\u3048\u3092\u5143\u306B\u623B\u3059",
1041
1101
  toolbarStart: "\u30B3\u30EC\u30AF\u30B7\u30E7\u30F3\u306E\u64CD\u4F5C",
1042
1102
  toolbarQuery: "\u691C\u7D22\u3068\u4E26\u3073\u66FF\u3048",
@@ -1084,6 +1144,7 @@ var KO_LABELS = {
1084
1144
  activeFilters: "\uD65C\uC131 \uD544\uD130",
1085
1145
  clearFilters: "\uD544\uD130 \uC9C0\uC6B0\uAE30",
1086
1146
  clearAllFilters: "\uBAA8\uB4E0 \uD544\uD130 \uC9C0\uC6B0\uAE30",
1147
+ resetFilters: "\uCD08\uAE30 \uD544\uD130\uB85C \uC7AC\uC124\uC815",
1087
1148
  removeFilter: "\uC81C\uAC70",
1088
1149
  noFilteredItems: "\uC77C\uCE58\uD558\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
1089
1150
  noFilteredItemsDescription: "\uAC80\uC0C9\uC5B4\uB97C \uBC14\uAFB8\uAC70\uB098 \uD0DC\uADF8 \uD544\uD130\uB97C \uC81C\uAC70\uD574 \uBCF4\uC138\uC694.",
@@ -1157,6 +1218,12 @@ var KO_LABELS = {
1157
1218
  archiveScopeActive: "\uD65C\uC131",
1158
1219
  archiveScopeArchived: "\uBCF4\uAD00\uB428",
1159
1220
  archiveScopeAll: "\uBAA8\uB4E0 \uD56D\uBAA9",
1221
+ activityNeverOpened: "\uC5F4\uC9C0 \uC54A\uC74C",
1222
+ activityOpened: "\uC5F4\uC5C8\uC74C",
1223
+ activityInactiveFor: "\uC77C \uB3D9\uC548 \uBE44\uD65C\uC131",
1224
+ activityInactiveSuffix: "\uBE44\uD65C\uC131",
1225
+ activityBefore: "\uB2E4\uC74C \uC774\uC804\uC5D0 \uC5F4\uB9BC",
1226
+ activityAfter: "\uB2E4\uC74C \uC774\uD6C4\uC5D0 \uC5F4\uB9BC",
1160
1227
  undoReorder: "\uC815\uB82C \uC2E4\uD589 \uCDE8\uC18C",
1161
1228
  toolbarStart: "\uCEEC\uB809\uC158 \uC791\uC5C5",
1162
1229
  toolbarQuery: "\uAC80\uC0C9 \uBC0F \uC815\uB82C",
@@ -1204,6 +1271,7 @@ var MS_LABELS = {
1204
1271
  activeFilters: "Penapis aktif",
1205
1272
  clearFilters: "Kosongkan penapis",
1206
1273
  clearAllFilters: "Kosongkan semua penapis",
1274
+ resetFilters: "Tetapkan semula penapis awal",
1207
1275
  removeFilter: "alih keluar",
1208
1276
  noFilteredItems: "Tiada item yang sepadan ditemui.",
1209
1277
  noFilteredItemsDescription: "Laraskan carian atau alih keluar penapis tag.",
@@ -1277,6 +1345,12 @@ var MS_LABELS = {
1277
1345
  archiveScopeActive: "Aktif",
1278
1346
  archiveScopeArchived: "Diarkibkan",
1279
1347
  archiveScopeAll: "Semua item",
1348
+ activityNeverOpened: "Belum pernah dibuka",
1349
+ activityOpened: "Telah dibuka",
1350
+ activityInactiveFor: "hari tidak aktif",
1351
+ activityInactiveSuffix: "tidak aktif",
1352
+ activityBefore: "Dibuka sebelum",
1353
+ activityAfter: "Dibuka selepas",
1280
1354
  undoReorder: "Buat asal susunan",
1281
1355
  toolbarStart: "Tindakan koleksi",
1282
1356
  toolbarQuery: "Cari dan susun",
@@ -1324,6 +1398,7 @@ var PT_BR_LABELS = {
1324
1398
  activeFilters: "Filtros ativos",
1325
1399
  clearFilters: "Limpar filtros",
1326
1400
  clearAllFilters: "Limpar todos os filtros",
1401
+ resetFilters: "Redefinir filtros iniciais",
1327
1402
  removeFilter: "remover",
1328
1403
  noFilteredItems: "Nenhum item correspondente encontrado.",
1329
1404
  noFilteredItemsDescription: "Ajuste sua busca ou remova um filtro de tag.",
@@ -1397,6 +1472,12 @@ var PT_BR_LABELS = {
1397
1472
  archiveScopeActive: "Ativos",
1398
1473
  archiveScopeArchived: "Arquivados",
1399
1474
  archiveScopeAll: "Todos os itens",
1475
+ activityNeverOpened: "Nunca aberto",
1476
+ activityOpened: "Aberto",
1477
+ activityInactiveFor: "dias inativo",
1478
+ activityInactiveSuffix: "inativo",
1479
+ activityBefore: "Aberto antes de",
1480
+ activityAfter: "Aberto depois de",
1400
1481
  undoReorder: "Desfazer reordena\xE7\xE3o",
1401
1482
  toolbarStart: "A\xE7\xF5es da cole\xE7\xE3o",
1402
1483
  toolbarQuery: "Pesquisar e ordenar",
@@ -1444,6 +1525,7 @@ var RU_LABELS = {
1444
1525
  activeFilters: "\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0435 \u0444\u0438\u043B\u044C\u0442\u0440\u044B",
1445
1526
  clearFilters: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B",
1446
1527
  clearAllFilters: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0444\u0438\u043B\u044C\u0442\u0440\u044B",
1528
+ resetFilters: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043A \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u043C \u0444\u0438\u043B\u044C\u0442\u0440\u0430\u043C",
1447
1529
  removeFilter: "\u0443\u0434\u0430\u043B\u0438\u0442\u044C",
1448
1530
  noFilteredItems: "\u041F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B.",
1449
1531
  noFilteredItemsDescription: "\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u0435 \u043F\u043E\u0438\u0441\u043A \u0438\u043B\u0438 \u0443\u0434\u0430\u043B\u0438\u0442\u0435 \u0444\u0438\u043B\u044C\u0442\u0440 \u0442\u0435\u0433\u0430.",
@@ -1517,6 +1599,12 @@ var RU_LABELS = {
1517
1599
  archiveScopeActive: "\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0435",
1518
1600
  archiveScopeArchived: "\u0412 \u0430\u0440\u0445\u0438\u0432\u0435",
1519
1601
  archiveScopeAll: "\u0412\u0441\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",
1602
+ activityNeverOpened: "\u041D\u0435 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u043B\u0441\u044F",
1603
+ activityOpened: "\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u043B\u0441\u044F",
1604
+ activityInactiveFor: "\u0434\u043D. \u0431\u0435\u0437 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u0438",
1605
+ activityInactiveSuffix: "\u0431\u0435\u0437 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u0438",
1606
+ activityBefore: "\u041E\u0442\u043A\u0440\u044B\u0442 \u0434\u043E",
1607
+ activityAfter: "\u041E\u0442\u043A\u0440\u044B\u0442 \u043F\u043E\u0441\u043B\u0435",
1520
1608
  undoReorder: "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0443",
1521
1609
  toolbarStart: "\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u043A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u0438",
1522
1610
  toolbarQuery: "\u041F\u043E\u0438\u0441\u043A \u0438 \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0430",
@@ -1564,6 +1652,7 @@ var TH_LABELS = {
1564
1652
  activeFilters: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E2D\u0E22\u0E39\u0E48",
1565
1653
  clearFilters: "\u0E25\u0E49\u0E32\u0E07\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
1566
1654
  clearAllFilters: "\u0E25\u0E49\u0E32\u0E07\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
1655
+ resetFilters: "\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15\u0E40\u0E1B\u0E47\u0E19\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19",
1567
1656
  removeFilter: "\u0E19\u0E33\u0E2D\u0E2D\u0E01",
1568
1657
  noFilteredItems: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E19",
1569
1658
  noFilteredItemsDescription: "\u0E25\u0E2D\u0E07\u0E1B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E04\u0E49\u0E19\u0E2B\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07\u0E41\u0E17\u0E47\u0E01\u0E2D\u0E2D\u0E01",
@@ -1637,6 +1726,12 @@ var TH_LABELS = {
1637
1726
  archiveScopeActive: "\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E2D\u0E22\u0E39\u0E48",
1638
1727
  archiveScopeArchived: "\u0E40\u0E01\u0E47\u0E1A\u0E16\u0E32\u0E27\u0E23\u0E41\u0E25\u0E49\u0E27",
1639
1728
  archiveScopeAll: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
1729
+ activityNeverOpened: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E40\u0E04\u0E22\u0E40\u0E1B\u0E34\u0E14",
1730
+ activityOpened: "\u0E40\u0E04\u0E22\u0E40\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",
1731
+ activityInactiveFor: "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19",
1732
+ activityInactiveSuffix: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19",
1733
+ activityBefore: "\u0E40\u0E1B\u0E34\u0E14\u0E01\u0E48\u0E2D\u0E19",
1734
+ activityAfter: "\u0E40\u0E1B\u0E34\u0E14\u0E2B\u0E25\u0E31\u0E07",
1640
1735
  undoReorder: "\u0E40\u0E25\u0E34\u0E01\u0E17\u0E33\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E40\u0E23\u0E35\u0E22\u0E07",
1641
1736
  toolbarStart: "\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E02\u0E2D\u0E07\u0E04\u0E2D\u0E25\u0E40\u0E25\u0E01\u0E0A\u0E31\u0E19",
1642
1737
  toolbarQuery: "\u0E04\u0E49\u0E19\u0E2B\u0E32\u0E41\u0E25\u0E30\u0E08\u0E31\u0E14\u0E40\u0E23\u0E35\u0E22\u0E07",
@@ -1684,6 +1779,7 @@ var VI_LABELS = {
1684
1779
  activeFilters: "B\u1ED9 l\u1ECDc \u0111ang d\xF9ng",
1685
1780
  clearFilters: "X\xF3a b\u1ED9 l\u1ECDc",
1686
1781
  clearAllFilters: "X\xF3a t\u1EA5t c\u1EA3 b\u1ED9 l\u1ECDc",
1782
+ resetFilters: "\u0110\u1EB7t l\u1EA1i b\u1ED9 l\u1ECDc ban \u0111\u1EA7u",
1687
1783
  removeFilter: "x\xF3a",
1688
1784
  noFilteredItems: "Kh\xF4ng t\xECm th\u1EA5y m\u1EE5c ph\xF9 h\u1EE3p.",
1689
1785
  noFilteredItemsDescription: "H\xE3y \u0111i\u1EC1u ch\u1EC9nh t\xECm ki\u1EBFm ho\u1EB7c x\xF3a b\u1ED9 l\u1ECDc th\u1EBB.",
@@ -1757,6 +1853,12 @@ var VI_LABELS = {
1757
1853
  archiveScopeActive: "\u0110ang ho\u1EA1t \u0111\u1ED9ng",
1758
1854
  archiveScopeArchived: "\u0110\xE3 l\u01B0u tr\u1EEF",
1759
1855
  archiveScopeAll: "T\u1EA5t c\u1EA3 m\u1EE5c",
1856
+ activityNeverOpened: "Ch\u01B0a t\u1EEBng m\u1EDF",
1857
+ activityOpened: "\u0110\xE3 m\u1EDF",
1858
+ activityInactiveFor: "ng\xE0y kh\xF4ng ho\u1EA1t \u0111\u1ED9ng",
1859
+ activityInactiveSuffix: "kh\xF4ng ho\u1EA1t \u0111\u1ED9ng",
1860
+ activityBefore: "\u0110\xE3 m\u1EDF tr\u01B0\u1EDBc",
1861
+ activityAfter: "\u0110\xE3 m\u1EDF sau",
1760
1862
  undoReorder: "Ho\xE0n t\xE1c s\u1EAFp x\u1EBFp",
1761
1863
  toolbarStart: "Thao t\xE1c b\u1ED9 s\u01B0u t\u1EADp",
1762
1864
  toolbarQuery: "T\xECm ki\u1EBFm v\xE0 s\u1EAFp x\u1EBFp",
@@ -1804,6 +1906,7 @@ var ZH_HANS_LABELS = {
1804
1906
  activeFilters: "\u5F53\u524D\u7B5B\u9009\u6761\u4EF6",
1805
1907
  clearFilters: "\u6E05\u9664\u7B5B\u9009",
1806
1908
  clearAllFilters: "\u6E05\u9664\u6240\u6709\u7B5B\u9009\u6761\u4EF6",
1909
+ resetFilters: "\u6062\u590D\u521D\u59CB\u7B5B\u9009",
1807
1910
  removeFilter: "\u79FB\u9664",
1808
1911
  noFilteredItems: "\u672A\u627E\u5230\u5339\u914D\u9879\u76EE\u3002",
1809
1912
  noFilteredItemsDescription: "\u8BF7\u8C03\u6574\u641C\u7D22\u6761\u4EF6\u6216\u79FB\u9664\u6807\u7B7E\u7B5B\u9009\u3002",
@@ -1877,6 +1980,12 @@ var ZH_HANS_LABELS = {
1877
1980
  archiveScopeActive: "\u4FDD\u5B58\u4E2D",
1878
1981
  archiveScopeArchived: "\u5DF2\u5F52\u6863",
1879
1982
  archiveScopeAll: "\u5168\u90E8\u9879\u76EE",
1983
+ activityNeverOpened: "\u4ECE\u672A\u6253\u5F00",
1984
+ activityOpened: "\u5DF2\u6253\u5F00",
1985
+ activityInactiveFor: "\u5929\u672A\u6D3B\u52A8",
1986
+ activityInactiveSuffix: "\u672A\u6D3B\u52A8",
1987
+ activityBefore: "\u6253\u5F00\u65F6\u95F4\u65E9\u4E8E",
1988
+ activityAfter: "\u6253\u5F00\u65F6\u95F4\u665A\u4E8E",
1880
1989
  undoReorder: "\u64A4\u9500\u6392\u5E8F",
1881
1990
  toolbarStart: "\u96C6\u5408\u64CD\u4F5C",
1882
1991
  toolbarQuery: "\u641C\u7D22\u548C\u6392\u5E8F",
@@ -1924,6 +2033,7 @@ var ZH_HANT_LABELS = {
1924
2033
  activeFilters: "\u76EE\u524D\u7BE9\u9078\u689D\u4EF6",
1925
2034
  clearFilters: "\u6E05\u9664\u7BE9\u9078",
1926
2035
  clearAllFilters: "\u6E05\u9664\u6240\u6709\u7BE9\u9078\u689D\u4EF6",
2036
+ resetFilters: "\u6062\u5FA9\u521D\u59CB\u7BE9\u9078",
1927
2037
  removeFilter: "\u79FB\u9664",
1928
2038
  noFilteredItems: "\u627E\u4E0D\u5230\u76F8\u7B26\u9805\u76EE\u3002",
1929
2039
  noFilteredItemsDescription: "\u8ACB\u8ABF\u6574\u641C\u5C0B\u689D\u4EF6\u6216\u79FB\u9664\u6A19\u7C64\u7BE9\u9078\u3002",
@@ -1997,6 +2107,12 @@ var ZH_HANT_LABELS = {
1997
2107
  archiveScopeActive: "\u4FDD\u5B58\u4E2D",
1998
2108
  archiveScopeArchived: "\u5DF2\u5C01\u5B58",
1999
2109
  archiveScopeAll: "\u6240\u6709\u9805\u76EE",
2110
+ activityNeverOpened: "\u5F9E\u672A\u958B\u555F",
2111
+ activityOpened: "\u5DF2\u958B\u555F",
2112
+ activityInactiveFor: "\u5929\u672A\u6D3B\u52D5",
2113
+ activityInactiveSuffix: "\u672A\u6D3B\u52D5",
2114
+ activityBefore: "\u958B\u555F\u6642\u9593\u65E9\u65BC",
2115
+ activityAfter: "\u958B\u555F\u6642\u9593\u665A\u65BC",
2000
2116
  undoReorder: "\u5FA9\u539F\u6392\u5E8F",
2001
2117
  toolbarStart: "\u96C6\u5408\u64CD\u4F5C",
2002
2118
  toolbarQuery: "\u641C\u5C0B\u8207\u6392\u5E8F",
@@ -2536,7 +2652,7 @@ function isQuotaError(error) {
2536
2652
  }
2537
2653
 
2538
2654
  // src/features/actions/hooks/useKeepBulkActions.ts
2539
- import { useKeepList } from "@keepkit/core/react";
2655
+ import { useKeepCollections, useKeepList } from "@keepkit/core/react";
2540
2656
  import { useState as useState2 } from "react";
2541
2657
  function isAllSelected(items, selectedIds) {
2542
2658
  if (items.length === 0) return false;
@@ -2565,6 +2681,7 @@ function useKeepBulkActions(options) {
2565
2681
  const list = useKeepList(query);
2566
2682
  const queryList = useKeepList(query ? { ...query, pagination: void 0 } : { pagination: void 0 });
2567
2683
  const allList = useKeepList({ pagination: void 0 });
2684
+ const collections = useKeepCollections();
2568
2685
  const [uncontrolledScope, setUncontrolledScope] = useState2(controlledScope ?? "page");
2569
2686
  const selectionScope = controlledScope ?? uncontrolledScope;
2570
2687
  const targetItems = selectionScope === "page" ? list.items : selectionScope === "query" ? queryList.items : allList.items;
@@ -2572,6 +2689,7 @@ function useKeepBulkActions(options) {
2572
2689
  const selectedIds = controlledSelectedIds ?? uncontrolledSelectedIds;
2573
2690
  const selected = new Set(selectedIds);
2574
2691
  const [tagsInput, setTagsInput] = useState2("");
2692
+ const [collectionId, setCollectionId] = useState2("");
2575
2693
  const setSelectionScope = (scope) => {
2576
2694
  if (controlledScope === void 0) setUncontrolledScope(scope);
2577
2695
  onSelectionScopeChange?.(scope);
@@ -2595,6 +2713,27 @@ function useKeepBulkActions(options) {
2595
2713
  onCompleted?.("tags", ids);
2596
2714
  setSelectedIds([]);
2597
2715
  };
2716
+ const moveToCollection = async () => {
2717
+ const ids = [...selectedIds];
2718
+ await list.moveToCollectionBatch(ids, collectionId || void 0);
2719
+ setSelectedIds([]);
2720
+ };
2721
+ const archive = async () => {
2722
+ await list.archiveBatch([...selectedIds]);
2723
+ setSelectedIds([]);
2724
+ };
2725
+ const unarchive = async () => {
2726
+ await list.unarchiveBatch([...selectedIds]);
2727
+ setSelectedIds([]);
2728
+ };
2729
+ const pin = async () => {
2730
+ await list.pinBatch([...selectedIds]);
2731
+ setSelectedIds([]);
2732
+ };
2733
+ const unpin = async () => {
2734
+ await list.unpinBatch([...selectedIds]);
2735
+ setSelectedIds([]);
2736
+ };
2598
2737
  const state = {
2599
2738
  items: targetItems,
2600
2739
  selectedIds,
@@ -2608,6 +2747,14 @@ function useKeepBulkActions(options) {
2608
2747
  toggleAll,
2609
2748
  remove,
2610
2749
  updateTags,
2750
+ collectionId,
2751
+ setCollectionId,
2752
+ collections,
2753
+ moveToCollection,
2754
+ archive,
2755
+ unarchive,
2756
+ pin,
2757
+ unpin,
2611
2758
  isMutating: list.isMutating,
2612
2759
  selectionScope,
2613
2760
  setSelectionScope
@@ -2773,6 +2920,50 @@ function KeepBulkActions({
2773
2920
  disabled: state.selectedIds.length === 0 || state.isMutating,
2774
2921
  children: showApplyTagsLabel ? labels.applyTags : null
2775
2922
  }
2923
+ ),
2924
+ /* @__PURE__ */ jsxs3("label", { children: [
2925
+ "Move selected items to collection",
2926
+ /* @__PURE__ */ jsxs3("select", { value: state.collectionId, onChange: (event) => state.setCollectionId(event.currentTarget.value), children: [
2927
+ /* @__PURE__ */ jsx5("option", { value: "", children: "Unassigned" }),
2928
+ state.collections.map((collection) => /* @__PURE__ */ jsx5("option", { value: collection.id, children: collection.name }, collection.id))
2929
+ ] })
2930
+ ] }),
2931
+ /* @__PURE__ */ jsx5(
2932
+ "button",
2933
+ {
2934
+ type: "button",
2935
+ onClick: () => void state.moveToCollection(),
2936
+ disabled: !state.selectedCount || state.isMutating,
2937
+ children: "Move selected items"
2938
+ }
2939
+ ),
2940
+ /* @__PURE__ */ jsx5(
2941
+ "button",
2942
+ {
2943
+ type: "button",
2944
+ onClick: () => void state.archive(),
2945
+ disabled: !state.selectedCount || state.isMutating,
2946
+ children: "Archive selected items"
2947
+ }
2948
+ ),
2949
+ /* @__PURE__ */ jsx5(
2950
+ "button",
2951
+ {
2952
+ type: "button",
2953
+ onClick: () => void state.unarchive(),
2954
+ disabled: !state.selectedCount || state.isMutating,
2955
+ children: "Unarchive selected items"
2956
+ }
2957
+ ),
2958
+ /* @__PURE__ */ jsx5("button", { type: "button", onClick: () => void state.pin(), disabled: !state.selectedCount || state.isMutating, children: "Pin selected items" }),
2959
+ /* @__PURE__ */ jsx5(
2960
+ "button",
2961
+ {
2962
+ type: "button",
2963
+ onClick: () => void state.unpin(),
2964
+ disabled: !state.selectedCount || state.isMutating,
2965
+ children: "Unpin selected items"
2966
+ }
2776
2967
  )
2777
2968
  ] });
2778
2969
  return /* @__PURE__ */ jsx5(
@@ -2912,7 +3103,7 @@ import {
2912
3103
  } from "react";
2913
3104
 
2914
3105
  // src/features/editor/KeepQuickEditor.tsx
2915
- import { useKeepCollections, useKeepItem as useKeepItem3 } from "@keepkit/core/react";
3106
+ import { useKeepCollections as useKeepCollections2, useKeepItem as useKeepItem3 } from "@keepkit/core/react";
2916
3107
  import {
2917
3108
  useCallback as useCallback2,
2918
3109
  useEffect as useEffect3,
@@ -3058,7 +3249,7 @@ function KeepQuickEditorView({
3058
3249
  ...props
3059
3250
  }) {
3060
3251
  const enabled = { ...DEFAULT_FEATURES, ...features };
3061
- const collections = useKeepCollections({ targetType: state.item.targetType, orderBy: "name" });
3252
+ const collections = useKeepCollections2({ targetType: state.item.targetType, orderBy: "name" });
3062
3253
  const rootRef = useRef4(null);
3063
3254
  const noteLabel = useUiLabel("note");
3064
3255
  const showNoteLabel = useUiLabelVisibility("note");
@@ -3438,7 +3629,7 @@ function KeepUndo({ children, label, ...props }) {
3438
3629
 
3439
3630
  // src/features/collection/KeepCollection.tsx
3440
3631
  import { KeepErrorBoundary as KeepErrorBoundary2 } from "@keepkit/core/react";
3441
- import { useEffect as useEffect10, useId as useId4, useRef as useRef9, useState as useState15 } from "react";
3632
+ import { useEffect as useEffect11, useId as useId4, useRef as useRef9, useState as useState17 } from "react";
3442
3633
 
3443
3634
  // src/features/query/KeepActiveFiltersSummary.tsx
3444
3635
  import {
@@ -3450,9 +3641,25 @@ function KeepActiveFiltersSummary({
3450
3641
  query,
3451
3642
  search: providedSearch,
3452
3643
  tags: providedTags,
3644
+ collection: providedCollection,
3645
+ collectionLabel: providedCollectionLabel,
3646
+ organization: providedOrganization,
3647
+ savedBetween: providedSavedBetween,
3648
+ activity: providedActivity,
3649
+ activityLabel: providedActivityLabel,
3650
+ archiveScope: providedArchiveScope,
3651
+ archiveScopeLabel: providedArchiveScopeLabel,
3652
+ totalCount,
3453
3653
  onSearchChange,
3454
3654
  onTagChange,
3655
+ onCollectionChange,
3656
+ onOrganizationChange,
3657
+ onSavedBetweenChange,
3658
+ onActivityChange,
3659
+ onArchiveScopeChange,
3455
3660
  onClear,
3661
+ onReset,
3662
+ canReset = false,
3456
3663
  children,
3457
3664
  asChild = false,
3458
3665
  className,
@@ -3460,14 +3667,51 @@ function KeepActiveFiltersSummary({
3460
3667
  }) {
3461
3668
  const search = (providedSearch ?? query?.search?.query ?? "").trim();
3462
3669
  const tags = normalizeUiTags(providedTags ?? query?.tags ?? []);
3463
- const hasFilters = Boolean(search) || tags.length > 0;
3670
+ const collection = providedCollection ?? query?.collectionId;
3671
+ const organization = providedOrganization ?? query?.organization;
3672
+ const savedBetween = providedSavedBetween ?? query?.savedBetween;
3673
+ const activity = providedActivity ?? query?.activity;
3674
+ const activityLabels = {
3675
+ neverOpened: useUiLabel("activityNeverOpened"),
3676
+ opened: useUiLabel("activityOpened"),
3677
+ inactiveSuffix: useUiLabel("activityInactiveSuffix"),
3678
+ before: useUiLabel("activityBefore"),
3679
+ after: useUiLabel("activityAfter")
3680
+ };
3681
+ const { locale } = useKeepUiLabels();
3682
+ const formattedActivityFilters = formatActivity(activity, activityLabels, locale);
3683
+ const activityFilters = providedActivityLabel && formattedActivityFilters.length === 1 ? [{ ...formattedActivityFilters[0], label: providedActivityLabel }] : formattedActivityFilters;
3684
+ const hasActivity = activityFilters.length > 0;
3685
+ const organizationFilters = organization ? ["collection", "tags", "note"].flatMap(
3686
+ (field) => organization[field] ? [{ field, value: organization[field] }] : []
3687
+ ) : [];
3688
+ const savedBetweenLabel = savedBetween ? savedBetween.map((value) => new Date(value instanceof Date ? value.getTime() : value).toLocaleDateString(locale)).join(" \u2013 ") : void 0;
3689
+ const archiveScope = providedArchiveScope ?? query?.archiveScope ?? (query?.archived === true ? "archived" : "active");
3690
+ const hasArchiveScope = archiveScope !== void 0 && archiveScope !== "active";
3691
+ const hasFilters = Boolean(search) || tags.length > 0 || Boolean(collection) || organizationFilters.length > 0 || Boolean(savedBetween) || hasActivity || hasArchiveScope;
3464
3692
  const activeFiltersLabel = useUiLabel("activeFilters");
3465
3693
  const showActiveFiltersLabel = useUiLabelVisibility("activeFilters");
3466
3694
  const clearAllLabel = useUiLabel("clearAllFilters");
3467
3695
  const clearLabel = useUiLabel("clearFilters");
3696
+ const resetLabel = useUiLabel("resetFilters");
3468
3697
  const removeLabel = useUiLabel("removeFilter");
3698
+ const uncategorizedLabel = useUiLabel("uncategorized");
3699
+ const collectionItemLabel = useUiLabel("collectionItem");
3700
+ const collectionItemsLabel = useUiLabel("collectionItems");
3701
+ const collectionLabel = providedCollectionLabel ?? (collection === "__uncategorized__" ? uncategorizedLabel : collection);
3702
+ const archiveLabels = {
3703
+ active: useUiLabel("archiveScopeActive"),
3704
+ archived: useUiLabel("archiveScopeArchived"),
3705
+ all: useUiLabel("archiveScopeAll")
3706
+ };
3707
+ const resolvedArchiveScopeLabel = providedArchiveScopeLabel ?? (archiveScope === void 0 ? void 0 : archiveLabels[archiveScope]);
3469
3708
  const chipRefs = useRef6([]);
3470
- const filterCount = Number(Boolean(search)) + tags.length;
3709
+ const collectionIndex = Number(Boolean(search)) + tags.length;
3710
+ const organizationIndex = collectionIndex + Number(Boolean(collection));
3711
+ const activityIndex = organizationIndex + organizationFilters.length;
3712
+ const savedBetweenIndex = activityIndex + activityFilters.length;
3713
+ const archiveScopeIndex = savedBetweenIndex + Number(Boolean(savedBetween));
3714
+ const filterCount = archiveScopeIndex + Number(hasArchiveScope);
3471
3715
  function focusChip(index) {
3472
3716
  chipRefs.current[index]?.focus();
3473
3717
  }
@@ -3498,16 +3742,59 @@ function KeepActiveFiltersSummary({
3498
3742
  focusAfterRemoval(index, event.currentTarget);
3499
3743
  onTagChange?.(tag);
3500
3744
  }
3745
+ function removeCollection(event) {
3746
+ focusAfterRemoval(collectionIndex, event.currentTarget);
3747
+ onCollectionChange?.(void 0);
3748
+ }
3749
+ function removeOrganization(field, index, event) {
3750
+ focusAfterRemoval(index, event.currentTarget);
3751
+ if (!organization) return;
3752
+ const next = { ...organization };
3753
+ delete next[field];
3754
+ onOrganizationChange?.(Object.keys(next).length > 0 ? next : void 0);
3755
+ }
3756
+ function removeSavedBetween(event) {
3757
+ focusAfterRemoval(savedBetweenIndex, event.currentTarget);
3758
+ onSavedBetweenChange?.(void 0);
3759
+ }
3760
+ function removeActivityCondition(key, index, event) {
3761
+ focusAfterRemoval(index, event.currentTarget);
3762
+ if (!activity) return;
3763
+ const next = { ...activity };
3764
+ delete next[key];
3765
+ onActivityChange?.(Object.keys(next).length > 0 ? next : void 0);
3766
+ }
3767
+ function removeArchiveScope(event) {
3768
+ focusAfterRemoval(archiveScopeIndex, event.currentTarget);
3769
+ onArchiveScopeChange?.("active");
3770
+ }
3501
3771
  const state = {
3502
3772
  search,
3503
3773
  tags,
3774
+ collection,
3775
+ organization,
3776
+ savedBetween,
3777
+ activity,
3778
+ archiveScope,
3779
+ totalCount,
3504
3780
  hasFilters,
3505
3781
  clear: () => onClear?.(),
3506
3782
  removeSearch: () => onSearchChange?.(""),
3507
- removeTag: (tag) => onTagChange?.(tag)
3783
+ removeTag: (tag) => onTagChange?.(tag),
3784
+ removeCollection: () => onCollectionChange?.(void 0),
3785
+ removeOrganization: (field) => {
3786
+ if (!organization) return;
3787
+ const next = { ...organization };
3788
+ delete next[field];
3789
+ onOrganizationChange?.(Object.keys(next).length > 0 ? next : void 0);
3790
+ },
3791
+ removeSavedBetween: () => onSavedBetweenChange?.(void 0),
3792
+ removeActivity: () => onActivityChange?.(void 0),
3793
+ removeArchiveScope: () => onArchiveScopeChange?.("active"),
3794
+ reset: () => onReset?.()
3508
3795
  };
3509
3796
  const contentChildren = asChild && isElement(children) ? void 0 : children;
3510
- const body = typeof contentChildren === "function" ? contentChildren(state) : contentChildren ?? (hasFilters ? /* @__PURE__ */ jsxs8(Fragment6, { children: [
3797
+ const body = typeof contentChildren === "function" ? contentChildren(state) : contentChildren ?? (hasFilters || canReset ? /* @__PURE__ */ jsxs8(Fragment6, { children: [
3511
3798
  showActiveFiltersLabel ? /* @__PURE__ */ jsx10("span", { "data-active-filters-label": "true", children: activeFiltersLabel }) : null,
3512
3799
  /* @__PURE__ */ jsxs8("ul", { "data-active-filters-list": "true", children: [
3513
3800
  search ? /* @__PURE__ */ jsxs8("li", { "data-filter-kind": "search", children: [
@@ -3543,11 +3830,109 @@ function KeepActiveFiltersSummary({
3543
3830
  children: "\xD7"
3544
3831
  }
3545
3832
  )
3546
- ] }, tag))
3833
+ ] }, tag)),
3834
+ collection && collectionLabel ? /* @__PURE__ */ jsxs8("li", { "data-filter-kind": "collection", children: [
3835
+ /* @__PURE__ */ jsx10("span", { "data-filter-value": "true", children: collectionLabel }),
3836
+ /* @__PURE__ */ jsx10(
3837
+ "button",
3838
+ {
3839
+ type: "button",
3840
+ "data-keep-action": "remove-collection-filter",
3841
+ "aria-label": `${collectionLabel} ${removeLabel}`,
3842
+ ref: (element) => {
3843
+ chipRefs.current[collectionIndex] = element;
3844
+ },
3845
+ onKeyDown: (event) => handleChipKeyDown(event, collectionIndex),
3846
+ onClick: removeCollection,
3847
+ children: "\xD7"
3848
+ }
3849
+ )
3850
+ ] }) : null,
3851
+ organizationFilters.map(({ field, value }, filterIndex) => {
3852
+ const index = organizationIndex + filterIndex;
3853
+ const label = `${field}: ${value}`;
3854
+ return /* @__PURE__ */ jsxs8("li", { "data-filter-kind": `organization-${field}`, children: [
3855
+ /* @__PURE__ */ jsx10("span", { "data-filter-value": "true", children: label }),
3856
+ /* @__PURE__ */ jsx10(
3857
+ "button",
3858
+ {
3859
+ type: "button",
3860
+ "data-keep-action": "remove-organization-filter",
3861
+ "aria-label": `${label} ${removeLabel}`,
3862
+ ref: (element) => {
3863
+ chipRefs.current[index] = element;
3864
+ },
3865
+ onKeyDown: (event) => handleChipKeyDown(event, index),
3866
+ onClick: (event) => removeOrganization(field, index, event),
3867
+ children: "\xD7"
3868
+ }
3869
+ )
3870
+ ] }, `organization-${field}`);
3871
+ }),
3872
+ activityFilters.map((filter, filterIndex) => {
3873
+ const index = activityIndex + filterIndex;
3874
+ return /* @__PURE__ */ jsxs8("li", { "data-filter-kind": `activity-${filter.key}`, children: [
3875
+ /* @__PURE__ */ jsx10("span", { "data-filter-value": "true", children: filter.label }),
3876
+ /* @__PURE__ */ jsx10(
3877
+ "button",
3878
+ {
3879
+ type: "button",
3880
+ "data-keep-action": "remove-activity-filter",
3881
+ "aria-label": `${filter.label} ${removeLabel}`,
3882
+ ref: (element) => {
3883
+ chipRefs.current[index] = element;
3884
+ },
3885
+ onKeyDown: (event) => handleChipKeyDown(event, index),
3886
+ onClick: (event) => removeActivityCondition(filter.key, index, event),
3887
+ children: "\xD7"
3888
+ }
3889
+ )
3890
+ ] }, filter.key);
3891
+ }),
3892
+ savedBetweenLabel ? /* @__PURE__ */ jsxs8("li", { "data-filter-kind": "saved-between", children: [
3893
+ /* @__PURE__ */ jsx10("span", { "data-filter-value": "true", children: savedBetweenLabel }),
3894
+ /* @__PURE__ */ jsx10(
3895
+ "button",
3896
+ {
3897
+ type: "button",
3898
+ "data-keep-action": "remove-saved-between-filter",
3899
+ "aria-label": `${savedBetweenLabel} ${removeLabel}`,
3900
+ ref: (element) => {
3901
+ chipRefs.current[savedBetweenIndex] = element;
3902
+ },
3903
+ onKeyDown: (event) => handleChipKeyDown(event, savedBetweenIndex),
3904
+ onClick: removeSavedBetween,
3905
+ children: "\xD7"
3906
+ }
3907
+ )
3908
+ ] }) : null,
3909
+ hasArchiveScope && resolvedArchiveScopeLabel ? /* @__PURE__ */ jsxs8("li", { "data-filter-kind": "archive-scope", children: [
3910
+ /* @__PURE__ */ jsx10("span", { "data-filter-value": "true", children: resolvedArchiveScopeLabel }),
3911
+ /* @__PURE__ */ jsx10(
3912
+ "button",
3913
+ {
3914
+ type: "button",
3915
+ "data-keep-action": "remove-archive-scope-filter",
3916
+ "aria-label": `${resolvedArchiveScopeLabel} ${removeLabel}`,
3917
+ ref: (element) => {
3918
+ chipRefs.current[archiveScopeIndex] = element;
3919
+ },
3920
+ onKeyDown: (event) => handleChipKeyDown(event, archiveScopeIndex),
3921
+ onClick: removeArchiveScope,
3922
+ children: "\xD7"
3923
+ }
3924
+ )
3925
+ ] }) : null
3547
3926
  ] }),
3548
- /* @__PURE__ */ jsx10("button", { type: "button", "data-keep-action": "clear-filters", onClick: state.clear, children: clearAllLabel || clearLabel })
3927
+ totalCount !== void 0 ? /* @__PURE__ */ jsxs8("span", { "data-filter-count": "true", children: [
3928
+ totalCount,
3929
+ " ",
3930
+ totalCount === 1 ? collectionItemLabel : collectionItemsLabel
3931
+ ] }) : null,
3932
+ hasFilters ? /* @__PURE__ */ jsx10("button", { type: "button", "data-keep-action": "clear-filters", onClick: state.clear, children: clearAllLabel || clearLabel }) : null,
3933
+ canReset ? /* @__PURE__ */ jsx10("button", { type: "button", "data-keep-action": "reset-filters", onClick: state.reset, children: resetLabel }) : null
3549
3934
  ] }) : null);
3550
- if (!hasFilters && !asChild && contentChildren === void 0) return null;
3935
+ if (!hasFilters && !canReset && !asChild && contentChildren === void 0) return null;
3551
3936
  return renderRoot(
3552
3937
  asChild,
3553
3938
  isElement(children) ? children : void 0,
@@ -3562,6 +3947,44 @@ function KeepActiveFiltersSummary({
3562
3947
  "KeepActiveFiltersSummary"
3563
3948
  );
3564
3949
  }
3950
+ function formatActivity(activity, labels, locale) {
3951
+ if (!activity) return [];
3952
+ const filters = [];
3953
+ if (activity.opened === "never") filters.push({ key: "opened", label: labels.neverOpened });
3954
+ if (activity.opened === "ever") filters.push({ key: "opened", label: labels.opened });
3955
+ if (activity.inactiveForMs !== void 0) {
3956
+ filters.push({
3957
+ key: "inactiveForMs",
3958
+ label: `${formatDuration(activity.inactiveForMs, locale)}${isCjkLocale(locale) ? "" : " "}${labels.inactiveSuffix}`
3959
+ });
3960
+ }
3961
+ if (activity.lastOpenedBefore !== void 0) {
3962
+ filters.push({
3963
+ key: "lastOpenedBefore",
3964
+ label: `${labels.before} ${new Date(activity.lastOpenedBefore).toLocaleDateString(locale)}`
3965
+ });
3966
+ }
3967
+ if (activity.lastOpenedAfter !== void 0) {
3968
+ filters.push({
3969
+ key: "lastOpenedAfter",
3970
+ label: `${labels.after} ${new Date(activity.lastOpenedAfter).toLocaleDateString(locale)}`
3971
+ });
3972
+ }
3973
+ return filters;
3974
+ }
3975
+ function formatDuration(milliseconds, locale) {
3976
+ const absolute = Math.max(1, Math.round(milliseconds));
3977
+ const hour = 60 * 60 * 1e3;
3978
+ const day = 24 * hour;
3979
+ const unit = absolute < hour ? "minute" : absolute < day ? "hour" : "day";
3980
+ const value = unit === "minute" ? Math.max(1, Math.round(absolute / (60 * 1e3))) : unit === "hour" ? Math.max(1, Math.round(absolute / hour)) : Math.max(1, Math.round(absolute / day));
3981
+ const formatted = new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay: "long" }).format(value);
3982
+ const compact = isCjkLocale(locale) ? formatted.replace(/\s+/g, "") : formatted;
3983
+ return /^ja/i.test(locale ?? "") && unit === "day" ? compact.replace(/日$/, "\u65E5\u9593") : compact;
3984
+ }
3985
+ function isCjkLocale(locale) {
3986
+ return /^(?:ja|ko|zh)/i.test(locale ?? "");
3987
+ }
3565
3988
  function isElement(value) {
3566
3989
  return isValidElement2(value);
3567
3990
  }
@@ -3625,7 +4048,7 @@ function KeepArchiveScopeSelect({
3625
4048
  }
3626
4049
 
3627
4050
  // src/features/query/KeepCollectionFilter.tsx
3628
- import { useKeepCollections as useKeepCollections2, useKeepContext as useKeepContext3 } from "@keepkit/core/react";
4051
+ import { useKeepCollections as useKeepCollections3, useKeepContext as useKeepContext3 } from "@keepkit/core/react";
3629
4052
  import { useState as useState7 } from "react";
3630
4053
  import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
3631
4054
  function useCollectionOptions(collectionLabels, collections) {
@@ -3647,7 +4070,7 @@ function KeepCollectionSelect({
3647
4070
  const context = useKeepContext3();
3648
4071
  const state = useState7(value ?? defaultValue ?? item.collectionId ?? "");
3649
4072
  const selected = value ?? state[0];
3650
- const collections = useKeepCollections2({ targetType: item.targetType, orderBy: "name" });
4073
+ const collections = useKeepCollections3({ targetType: item.targetType, orderBy: "name" });
3651
4074
  const options = useCollectionOptions(collectionLabels, collections);
3652
4075
  const defaultUncategorizedLabel = useUiLabel("uncategorized");
3653
4076
  const uncategorized = uncategorizedLabel ?? defaultUncategorizedLabel;
@@ -3684,7 +4107,7 @@ function KeepCollectionFilter({
3684
4107
  }) {
3685
4108
  const [internalValue, setInternalValue] = useState7(value ?? defaultValue ?? "");
3686
4109
  const selected = value ?? internalValue;
3687
- const collections = useKeepCollections2({ orderBy: "name" });
4110
+ const collections = useKeepCollections3({ orderBy: "name" });
3688
4111
  const options = useCollectionOptions(collectionLabels, collections);
3689
4112
  const collectionLabel = useUiLabel("collection");
3690
4113
  const showCollectionLabel = useUiLabelVisibility("collection");
@@ -3823,8 +4246,10 @@ function KeepTagFilter({
3823
4246
  import { useEffect as useEffect6, useState as useState9 } from "react";
3824
4247
  function useKeepSearchInput(options) {
3825
4248
  const { controlledValue, defaultValue, debounceMs, onValueChange } = options;
3826
- const [uncontrolledValue, setUncontrolledValue] = useState9(defaultValue);
3827
- const value = controlledValue ?? uncontrolledValue;
4249
+ const [value, setValue] = useState9(controlledValue ?? defaultValue);
4250
+ useEffect6(() => {
4251
+ if (controlledValue !== void 0) setValue(controlledValue);
4252
+ }, [controlledValue]);
3828
4253
  useEffect6(() => {
3829
4254
  if (!onValueChange) return;
3830
4255
  if (debounceMs <= 0) {
@@ -3838,7 +4263,7 @@ function useKeepSearchInput(options) {
3838
4263
  value,
3839
4264
  label: useUiLabel("search"),
3840
4265
  change: (event) => {
3841
- if (controlledValue === void 0) setUncontrolledValue(event.currentTarget.value);
4266
+ setValue(event.currentTarget.value);
3842
4267
  }
3843
4268
  };
3844
4269
  }
@@ -4007,9 +4432,219 @@ function KeepPagination({
4007
4432
  ] });
4008
4433
  }
4009
4434
 
4435
+ // src/features/saved-views/KeepSavedViews.tsx
4436
+ import { useState as useState11 } from "react";
4437
+
4438
+ // src/features/saved-views/useKeepSavedViews.ts
4439
+ import { LocalStorageKeepSavedViewStorage } from "@keepkit/core/core";
4440
+ import { useCallback as useCallback5, useEffect as useEffect7, useMemo as useMemo4, useState as useState10 } from "react";
4441
+ var changeEvent = "keepkit:saved-views:change";
4442
+ function useKeepSavedViews(storage) {
4443
+ const resolvedStorage = useMemo4(() => storage ?? new LocalStorageKeepSavedViewStorage(), [storage]);
4444
+ const [views, setViews] = useState10([]);
4445
+ const [error, setError] = useState10();
4446
+ const refresh = useCallback5(async () => {
4447
+ try {
4448
+ setViews(sortViews(await resolvedStorage.getAll()));
4449
+ setError(void 0);
4450
+ } catch (cause) {
4451
+ setError(cause);
4452
+ }
4453
+ }, [resolvedStorage]);
4454
+ useEffect7(() => {
4455
+ void refresh();
4456
+ if (typeof window === "undefined") return;
4457
+ window.addEventListener(changeEvent, refresh);
4458
+ return () => window.removeEventListener(changeEvent, refresh);
4459
+ }, [refresh]);
4460
+ const createView = useCallback5(
4461
+ async (name, query) => {
4462
+ const trimmed = name.trim();
4463
+ if (!trimmed) throw new Error("Saved View name is required.");
4464
+ if (query.filter) throw new Error("Saved Views require a serializable query; query.filter cannot be saved.");
4465
+ const now = Date.now();
4466
+ const view = { id: createId(), name: trimmed, query: normalizeQuery(query), createdAt: now, updatedAt: now };
4467
+ try {
4468
+ await resolvedStorage.set(view);
4469
+ notifyChange();
4470
+ return view;
4471
+ } catch (cause) {
4472
+ setError(cause);
4473
+ throw cause;
4474
+ }
4475
+ },
4476
+ [resolvedStorage]
4477
+ );
4478
+ const updateView = useCallback5(
4479
+ async (id, update) => {
4480
+ try {
4481
+ const current = await resolvedStorage.get(id);
4482
+ if (!current) return;
4483
+ const name = update.name?.trim() ?? current.name;
4484
+ if (!name) throw new Error("Saved View name is required.");
4485
+ if (update.query?.filter)
4486
+ throw new Error("Saved Views require a serializable query; query.filter cannot be saved.");
4487
+ const view = {
4488
+ ...current,
4489
+ ...update,
4490
+ ...update.query ? { query: normalizeQuery(update.query) } : {},
4491
+ name,
4492
+ updatedAt: Date.now()
4493
+ };
4494
+ await resolvedStorage.set(view);
4495
+ notifyChange();
4496
+ } catch (cause) {
4497
+ setError(cause);
4498
+ throw cause;
4499
+ }
4500
+ },
4501
+ [resolvedStorage]
4502
+ );
4503
+ const removeView = useCallback5(
4504
+ async (id) => {
4505
+ try {
4506
+ await resolvedStorage.remove(id);
4507
+ notifyChange();
4508
+ } catch (cause) {
4509
+ setError(cause);
4510
+ throw cause;
4511
+ }
4512
+ },
4513
+ [resolvedStorage]
4514
+ );
4515
+ const applyView = useCallback5(
4516
+ async (id) => {
4517
+ try {
4518
+ return (await resolvedStorage.get(id))?.query;
4519
+ } catch (cause) {
4520
+ setError(cause);
4521
+ throw cause;
4522
+ }
4523
+ },
4524
+ [resolvedStorage]
4525
+ );
4526
+ return { views, error, refresh, createView, updateView, removeView, applyView };
4527
+ }
4528
+ function sortViews(views) {
4529
+ return [...views].sort(
4530
+ (a, b) => Number(b.pinned === true) - Number(a.pinned === true) || a.name.localeCompare(b.name)
4531
+ );
4532
+ }
4533
+ function createId() {
4534
+ return typeof crypto !== "undefined" && "randomUUID" in crypto ? crypto.randomUUID() : `${Date.now()}-${Math.random()}`;
4535
+ }
4536
+ function normalizeQuery(query) {
4537
+ const range = query.savedBetween;
4538
+ const savedBetween = range ? [toTimestamp(range[0]), toTimestamp(range[1])] : void 0;
4539
+ return {
4540
+ ...query,
4541
+ ...savedBetween ? { savedBetween } : {}
4542
+ };
4543
+ }
4544
+ function toTimestamp(value) {
4545
+ const timestamp = value instanceof Date ? value.getTime() : value;
4546
+ if (!Number.isFinite(timestamp)) throw new Error("Saved View date filters must use valid timestamps.");
4547
+ return timestamp;
4548
+ }
4549
+ function notifyChange() {
4550
+ if (typeof window !== "undefined") window.dispatchEvent(new Event(changeEvent));
4551
+ }
4552
+
4553
+ // src/features/saved-views/KeepSavedViews.tsx
4554
+ import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
4555
+ function KeepSavedViews({ storage, onApply }) {
4556
+ const { views, error, updateView, removeView, applyView } = useKeepSavedViews(storage);
4557
+ return /* @__PURE__ */ jsxs13("nav", { "aria-label": "Saved Views", "data-keepkit": "saved-views", children: [
4558
+ /* @__PURE__ */ jsx15("ul", { children: views.map((view) => /* @__PURE__ */ jsxs13("li", { children: [
4559
+ /* @__PURE__ */ jsx15(
4560
+ "button",
4561
+ {
4562
+ type: "button",
4563
+ onClick: () => void applyView(view.id).then((query) => query && onApply?.(query)).catch(() => void 0),
4564
+ children: view.name
4565
+ }
4566
+ ),
4567
+ /* @__PURE__ */ jsx15(
4568
+ "button",
4569
+ {
4570
+ type: "button",
4571
+ "aria-label": `${view.pinned ? "Unpin" : "Pin"} ${view.name}`,
4572
+ onClick: () => void updateView(view.id, { pinned: !view.pinned }).catch(() => void 0),
4573
+ children: view.pinned ? "Unpin" : "Pin"
4574
+ }
4575
+ ),
4576
+ /* @__PURE__ */ jsxs13("details", { children: [
4577
+ /* @__PURE__ */ jsxs13("summary", { children: [
4578
+ "Rename ",
4579
+ view.name
4580
+ ] }),
4581
+ /* @__PURE__ */ jsx15(RenameForm, { name: view.name, onRename: (name) => updateView(view.id, { name }) })
4582
+ ] }),
4583
+ /* @__PURE__ */ jsx15(
4584
+ "button",
4585
+ {
4586
+ type: "button",
4587
+ "aria-label": `Delete ${view.name}`,
4588
+ onClick: () => void removeView(view.id).catch(() => void 0),
4589
+ children: "Delete"
4590
+ }
4591
+ )
4592
+ ] }, view.id)) }),
4593
+ error ? /* @__PURE__ */ jsx15("p", { role: "alert", children: error instanceof Error ? error.message : "Saved Views could not be loaded." }) : null
4594
+ ] });
4595
+ }
4596
+ function KeepSaveViewButton({
4597
+ query,
4598
+ storage
4599
+ }) {
4600
+ const { createView } = useKeepSavedViews(storage);
4601
+ const [name, setName] = useState11("");
4602
+ const [error, setError] = useState11("");
4603
+ return /* @__PURE__ */ jsxs13(
4604
+ "form",
4605
+ {
4606
+ "data-keepkit": "save-view",
4607
+ onSubmit: (event) => {
4608
+ event.preventDefault();
4609
+ void createView(name, query).then(() => {
4610
+ setName("");
4611
+ setError("");
4612
+ }).catch((cause) => setError(cause instanceof Error ? cause.message : "Could not save this view."));
4613
+ },
4614
+ children: [
4615
+ /* @__PURE__ */ jsxs13("label", { children: [
4616
+ "View name",
4617
+ /* @__PURE__ */ jsx15("input", { value: name, onChange: (event) => setName(event.currentTarget.value), required: true })
4618
+ ] }),
4619
+ /* @__PURE__ */ jsx15("button", { type: "submit", disabled: !name.trim(), children: "Save View" }),
4620
+ error ? /* @__PURE__ */ jsx15("p", { role: "alert", children: error }) : null
4621
+ ]
4622
+ }
4623
+ );
4624
+ }
4625
+ function RenameForm({ name, onRename }) {
4626
+ const [value, setValue] = useState11(name);
4627
+ return /* @__PURE__ */ jsxs13(
4628
+ "form",
4629
+ {
4630
+ onSubmit: (event) => {
4631
+ event.preventDefault();
4632
+ void onRename(value).catch(() => void 0);
4633
+ },
4634
+ children: [
4635
+ /* @__PURE__ */ jsxs13("label", { children: [
4636
+ "New name",
4637
+ /* @__PURE__ */ jsx15("input", { value, onChange: (event) => setValue(event.currentTarget.value), required: true })
4638
+ ] }),
4639
+ /* @__PURE__ */ jsx15("button", { type: "submit", children: "Rename" })
4640
+ ]
4641
+ }
4642
+ );
4643
+ }
4644
+
4010
4645
  // src/features/collection/hooks/useKeepCollection.ts
4011
4646
  import { useKeepList as useKeepList3 } from "@keepkit/core/react";
4012
- import { useCallback as useCallback5, useEffect as useEffect7, useMemo as useMemo4, useState as useState10 } from "react";
4647
+ import { useCallback as useCallback6, useEffect as useEffect8, useMemo as useMemo5, useState as useState12 } from "react";
4013
4648
  function useKeepCollection({
4014
4649
  query,
4015
4650
  pageSize,
@@ -4029,25 +4664,31 @@ function useKeepCollection({
4029
4664
  pin: false,
4030
4665
  archive: false,
4031
4666
  note: false,
4667
+ savedViews: false,
4032
4668
  ...features
4033
4669
  };
4034
- const [searchValue, setSearchValue] = useState10(query.search?.query ?? "");
4035
- const [sort, setSort] = useState10(query.sort ?? { by: "updatedAt", direction: "desc" });
4036
- const [activeTags, setActiveTags] = useState10(query.tags ?? []);
4037
- const [activeCollection, setActiveCollection] = useState10(query.collectionId);
4038
- const [activeActivity, setActiveActivity] = useState10(query.activity);
4039
- const [page, setPage] = useState10(query.pagination?.page ?? 1);
4040
- const [activeArchiveScope, setActiveArchiveScope] = useState10(
4041
- archiveScope ?? query.archiveScope ?? scopeFromArchived(query.archived)
4042
- );
4043
- useEffect7(() => {
4670
+ const [searchValue, setSearchValue] = useState12(query.search?.query ?? "");
4671
+ const [queryOverride, setQueryOverride] = useState12({});
4672
+ const [sort, setSort] = useState12(query.sort ?? { by: "updatedAt", direction: "desc" });
4673
+ const [activeTags, setActiveTags] = useState12(query.tags ?? []);
4674
+ const [activeCollection, setActiveCollection] = useState12(query.collectionId);
4675
+ const [activeActivity, setActiveActivity] = useState12(query.activity);
4676
+ const [activeOrganization, setActiveOrganization] = useState12(query.organization);
4677
+ const [activeSavedBetween, setActiveSavedBetween] = useState12(query.savedBetween);
4678
+ const [page, setPage] = useState12(query.pagination?.page ?? 1);
4679
+ const initialArchiveScope = archiveScope ?? query.archiveScope ?? scopeFromArchived(query.archived);
4680
+ const [activeArchiveScope, setActiveArchiveScope] = useState12(initialArchiveScope);
4681
+ useEffect8(() => {
4044
4682
  if (archiveScope !== void 0) setActiveArchiveScope(archiveScope);
4045
4683
  }, [archiveScope]);
4046
- const resolvedPageSize = query.pagination?.pageSize ?? pageSize;
4047
- const resolvedQuery = useMemo4(
4684
+ const resolvedPageSize = queryOverride.pagination?.pageSize ?? query.pagination?.pageSize ?? pageSize;
4685
+ const resolvedQuery = useMemo5(
4048
4686
  () => ({
4049
4687
  ...query,
4688
+ ...queryOverride,
4050
4689
  activity: activeActivity,
4690
+ organization: activeOrganization,
4691
+ savedBetween: activeSavedBetween,
4051
4692
  archiveScope: activeArchiveScope,
4052
4693
  archived: activeArchiveScope === "active" ? false : activeArchiveScope === "archived" ? true : void 0,
4053
4694
  search: enabled.search ? { ...query.search, query: searchValue } : query.search,
@@ -4060,12 +4701,15 @@ function useKeepCollection({
4060
4701
  [
4061
4702
  activeCollection,
4062
4703
  activeActivity,
4704
+ activeOrganization,
4705
+ activeSavedBetween,
4063
4706
  activeTags,
4064
4707
  enabled.pagination,
4065
4708
  enabled.search,
4066
4709
  enabled.sort,
4067
4710
  page,
4068
4711
  query,
4712
+ queryOverride,
4069
4713
  resolvedPageSize,
4070
4714
  searchValue,
4071
4715
  sort,
@@ -4077,11 +4721,14 @@ function useKeepCollection({
4077
4721
  query: resolvedQuery,
4078
4722
  onQueryChange: (nextOrUpdater) => {
4079
4723
  const next = typeof nextOrUpdater === "function" ? nextOrUpdater(resolvedQuery) : nextOrUpdater;
4724
+ setQueryOverride(next);
4080
4725
  setSearchValue(next.search?.query ?? "");
4081
4726
  setSort(next.sort ?? { by: "updatedAt", direction: "desc" });
4082
4727
  setActiveTags(next.tags ?? []);
4083
4728
  setActiveCollection(next.collectionId);
4084
4729
  setActiveActivity(next.activity);
4730
+ setActiveOrganization(next.organization);
4731
+ setActiveSavedBetween(next.savedBetween);
4085
4732
  setActiveArchiveScope(next.archiveScope ?? scopeFromArchived(next.archived));
4086
4733
  setPage(next.pagination?.page ?? 1);
4087
4734
  },
@@ -4090,7 +4737,7 @@ function useKeepCollection({
4090
4737
  });
4091
4738
  const list = useKeepList3(resolvedQuery);
4092
4739
  const allState = useKeepList3({ archiveScope: "all" });
4093
- const reveal = useCallback5(
4740
+ const reveal = useCallback6(
4094
4741
  (itemId) => {
4095
4742
  const target = allState.items.find((item) => item.id === itemId);
4096
4743
  if (!target) return "not-found";
@@ -4116,6 +4763,7 @@ function useKeepCollection({
4116
4763
  sortValue: sortToValue(sort),
4117
4764
  activeTags,
4118
4765
  activeCollection,
4766
+ activity: activeActivity,
4119
4767
  archiveScope: activeArchiveScope,
4120
4768
  resolvedPageSize,
4121
4769
  resolvedQuery,
@@ -4137,6 +4785,30 @@ function useKeepCollection({
4137
4785
  setActiveCollection(value);
4138
4786
  setPage(1);
4139
4787
  },
4788
+ setActivity: (value) => {
4789
+ setActiveActivity(value);
4790
+ setPage(1);
4791
+ },
4792
+ setOrganization: (value) => {
4793
+ setActiveOrganization(value);
4794
+ setPage(1);
4795
+ },
4796
+ setSavedBetween: (value) => {
4797
+ setActiveSavedBetween(value);
4798
+ setPage(1);
4799
+ },
4800
+ applyQuery: (next) => {
4801
+ setQueryOverride(next);
4802
+ setSearchValue(next.search?.query ?? "");
4803
+ setSort(next.sort ?? { by: "updatedAt", direction: "desc" });
4804
+ setActiveTags(next.tags ?? []);
4805
+ setActiveCollection(next.collectionId);
4806
+ setActiveActivity(next.activity);
4807
+ setActiveOrganization(next.organization);
4808
+ setActiveSavedBetween(next.savedBetween);
4809
+ setActiveArchiveScope(next.archiveScope ?? scopeFromArchived(next.archived));
4810
+ setPage(next.pagination?.page ?? 1);
4811
+ },
4140
4812
  setArchiveScope: (value) => {
4141
4813
  setActiveArchiveScope(value);
4142
4814
  setPage(1);
@@ -4146,15 +4818,38 @@ function useKeepCollection({
4146
4818
  setPage(1);
4147
4819
  },
4148
4820
  clearFilters: () => {
4821
+ setQueryOverride({});
4149
4822
  setSearchValue("");
4150
4823
  setActiveTags([]);
4151
4824
  setActiveCollection(void 0);
4825
+ setActiveActivity(void 0);
4826
+ setActiveOrganization(query.organization);
4827
+ setActiveSavedBetween(void 0);
4828
+ setActiveArchiveScope("active");
4152
4829
  setPage(1);
4153
4830
  },
4831
+ resetFilters: () => {
4832
+ setQueryOverride({});
4833
+ setSearchValue(query.search?.query ?? "");
4834
+ setSort(query.sort ?? { by: "updatedAt", direction: "desc" });
4835
+ setActiveTags(query.tags ?? []);
4836
+ setActiveCollection(query.collectionId);
4837
+ setActiveActivity(query.activity);
4838
+ setActiveOrganization(query.organization);
4839
+ setActiveSavedBetween(query.savedBetween);
4840
+ setActiveArchiveScope(initialArchiveScope);
4841
+ setPage(query.pagination?.page ?? 1);
4842
+ },
4843
+ canReset: hasInitialFilterState(query, initialArchiveScope),
4154
4844
  setPage,
4155
4845
  reveal
4156
4846
  };
4157
4847
  }
4848
+ function hasInitialFilterState(query, archiveScope) {
4849
+ return Boolean(
4850
+ query.search?.query?.trim() || query.tags?.length || query.collectionId || query.activity || query.organization || query.pinnedFirst || query.savedBetween || archiveScope !== "active" || query.pagination?.page !== void 0 && query.pagination.page !== 1 || query.sort && (query.sort.by !== "updatedAt" || query.sort.direction !== "desc")
4851
+ );
4852
+ }
4158
4853
  function compareItems(a, b, sort, pinnedFirst) {
4159
4854
  if (pinnedFirst && a.pinned !== b.pinned) return a.pinned === true ? -1 : 1;
4160
4855
  const aValue = sort.by === "savedAt" ? a.savedAt : sort.by === "updatedAt" ? a.updatedAt : a.lastOpenedAt;
@@ -4170,9 +4865,9 @@ function scopeFromArchived(archived) {
4170
4865
  }
4171
4866
 
4172
4867
  // src/features/collection/KeepCollectionCreate.tsx
4173
- import { useKeepCollections as useKeepCollections3, useKeepContext as useKeepContext4 } from "@keepkit/core/react";
4174
- import { useId as useId2, useState as useState11 } from "react";
4175
- import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
4868
+ import { useKeepCollections as useKeepCollections4, useKeepContext as useKeepContext4 } from "@keepkit/core/react";
4869
+ import { useId as useId2, useState as useState13 } from "react";
4870
+ import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
4176
4871
  function KeepCollectionCreate({
4177
4872
  onCreated,
4178
4873
  onError,
@@ -4183,10 +4878,10 @@ function KeepCollectionCreate({
4183
4878
  ...inputProps
4184
4879
  }) {
4185
4880
  const { createCollection } = useKeepContext4();
4186
- const collections = useKeepCollections3();
4187
- const [name, setName] = useState11("");
4188
- const [error, setError] = useState11(null);
4189
- const [isSubmitting, setIsSubmitting] = useState11(false);
4881
+ const collections = useKeepCollections4();
4882
+ const [name, setName] = useState13("");
4883
+ const [error, setError] = useState13(null);
4884
+ const [isSubmitting, setIsSubmitting] = useState13(false);
4190
4885
  const autoId = useId2();
4191
4886
  const inputId = externalId ?? autoId;
4192
4887
  const resolvedLabel = useUiLabel("createCollection");
@@ -4221,16 +4916,16 @@ function KeepCollectionCreate({
4221
4916
  setIsSubmitting(false);
4222
4917
  }
4223
4918
  };
4224
- return /* @__PURE__ */ jsxs13(
4919
+ return /* @__PURE__ */ jsxs14(
4225
4920
  "form",
4226
4921
  {
4227
4922
  "data-keepkit": "collection-create",
4228
4923
  "data-state": error ? "error" : isSubmitting ? "submitting" : "idle",
4229
4924
  onSubmit: handleSubmit,
4230
4925
  children: [
4231
- showLabel ? /* @__PURE__ */ jsx15("label", { htmlFor: inputId, children: label ?? resolvedLabel }) : null,
4232
- /* @__PURE__ */ jsxs13("div", { "data-keepkit": "collection-create-row", children: [
4233
- /* @__PURE__ */ jsx15(
4926
+ showLabel ? /* @__PURE__ */ jsx16("label", { htmlFor: inputId, children: label ?? resolvedLabel }) : null,
4927
+ /* @__PURE__ */ jsxs14("div", { "data-keepkit": "collection-create-row", children: [
4928
+ /* @__PURE__ */ jsx16(
4234
4929
  "input",
4235
4930
  {
4236
4931
  ...inputProps,
@@ -4248,7 +4943,7 @@ function KeepCollectionCreate({
4248
4943
  "data-keep-action": "collection-name-input"
4249
4944
  }
4250
4945
  ),
4251
- /* @__PURE__ */ jsx15(
4946
+ /* @__PURE__ */ jsx16(
4252
4947
  "button",
4253
4948
  {
4254
4949
  type: "submit",
@@ -4259,7 +4954,7 @@ function KeepCollectionCreate({
4259
4954
  }
4260
4955
  )
4261
4956
  ] }),
4262
- error ? /* @__PURE__ */ jsx15("p", { role: "alert", children: error }) : null
4957
+ error ? /* @__PURE__ */ jsx16("p", { role: "alert", children: error }) : null
4263
4958
  ]
4264
4959
  }
4265
4960
  );
@@ -4275,10 +4970,10 @@ import {
4275
4970
  createElement as createElement2,
4276
4971
  isValidElement as isValidElement4,
4277
4972
  useContext as useContext3,
4278
- useEffect as useEffect8,
4973
+ useEffect as useEffect9,
4279
4974
  useId as useId3,
4280
4975
  useRef as useRef7,
4281
- useState as useState13
4976
+ useState as useState15
4282
4977
  } from "react";
4283
4978
 
4284
4979
  // src/features/item/hooks/useKeepItemStatusBadge.ts
@@ -4321,10 +5016,10 @@ function getDisplayStatus(status) {
4321
5016
  }
4322
5017
 
4323
5018
  // src/features/item/KeepItemStatusBadge.tsx
4324
- import { Fragment as Fragment8, jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
5019
+ import { Fragment as Fragment8, jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
4325
5020
  function KeepItemStatusBadge({ status = "available", label, className, ...props }) {
4326
5021
  const view = useKeepItemStatusBadge(status);
4327
- return /* @__PURE__ */ jsxs14(
5022
+ return /* @__PURE__ */ jsxs15(
4328
5023
  "span",
4329
5024
  {
4330
5025
  ...props,
@@ -4335,14 +5030,14 @@ function KeepItemStatusBadge({ status = "available", label, className, ...props
4335
5030
  "data-status": status,
4336
5031
  "data-item-status": view.resolvedStatus,
4337
5032
  children: [
4338
- /* @__PURE__ */ jsx16(StatusIcon, { name: view.icon }),
4339
- /* @__PURE__ */ jsx16("span", { "data-status-label": "true", children: label ?? view.statusLabel })
5033
+ /* @__PURE__ */ jsx17(StatusIcon, { name: view.icon }),
5034
+ /* @__PURE__ */ jsx17("span", { "data-status-label": "true", children: label ?? view.statusLabel })
4340
5035
  ]
4341
5036
  }
4342
5037
  );
4343
5038
  }
4344
5039
  function StatusIcon({ name }) {
4345
- return /* @__PURE__ */ jsxs14(
5040
+ return /* @__PURE__ */ jsxs15(
4346
5041
  "svg",
4347
5042
  {
4348
5043
  "data-status-icon": name,
@@ -4357,18 +5052,18 @@ function StatusIcon({ name }) {
4357
5052
  "aria-hidden": "true",
4358
5053
  focusable: "false",
4359
5054
  children: [
4360
- name === "check" ? /* @__PURE__ */ jsx16("path", { d: "m5 12 4 4L19 6" }) : null,
4361
- name === "clock" ? /* @__PURE__ */ jsxs14(Fragment8, { children: [
4362
- /* @__PURE__ */ jsx16("circle", { cx: "12", cy: "12", r: "8" }),
4363
- /* @__PURE__ */ jsx16("path", { d: "M12 7v5l3 2" })
5055
+ name === "check" ? /* @__PURE__ */ jsx17("path", { d: "m5 12 4 4L19 6" }) : null,
5056
+ name === "clock" ? /* @__PURE__ */ jsxs15(Fragment8, { children: [
5057
+ /* @__PURE__ */ jsx17("circle", { cx: "12", cy: "12", r: "8" }),
5058
+ /* @__PURE__ */ jsx17("path", { d: "M12 7v5l3 2" })
4364
5059
  ] }) : null,
4365
- name === "ban" ? /* @__PURE__ */ jsxs14(Fragment8, { children: [
4366
- /* @__PURE__ */ jsx16("circle", { cx: "12", cy: "12", r: "8" }),
4367
- /* @__PURE__ */ jsx16("path", { d: "m6.5 6.5 11 11" })
5060
+ name === "ban" ? /* @__PURE__ */ jsxs15(Fragment8, { children: [
5061
+ /* @__PURE__ */ jsx17("circle", { cx: "12", cy: "12", r: "8" }),
5062
+ /* @__PURE__ */ jsx17("path", { d: "m6.5 6.5 11 11" })
4368
5063
  ] }) : null,
4369
- name === "lock" ? /* @__PURE__ */ jsxs14(Fragment8, { children: [
4370
- /* @__PURE__ */ jsx16("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
4371
- /* @__PURE__ */ jsx16("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
5064
+ name === "lock" ? /* @__PURE__ */ jsxs15(Fragment8, { children: [
5065
+ /* @__PURE__ */ jsx17("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
5066
+ /* @__PURE__ */ jsx17("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
4372
5067
  ] }) : null
4373
5068
  ]
4374
5069
  }
@@ -4377,15 +5072,15 @@ function StatusIcon({ name }) {
4377
5072
 
4378
5073
  // src/features/status/hooks/useKeepStaleNotice.ts
4379
5074
  import { useKeepContext as useKeepContext5 } from "@keepkit/core/react";
4380
- import { useState as useState12 } from "react";
5075
+ import { useState as useState14 } from "react";
4381
5076
  function useKeepStaleNotice({ item, onRetry, onRemoved }) {
4382
5077
  const context = useKeepContext5();
4383
5078
  const emitFeedback = useKeepUiFeedback();
4384
5079
  const removedMessage = useUiLabel("removedMessage");
4385
5080
  const restoredMessage = useUiLabel("restoredMessage");
4386
5081
  const undoLabel = useUiLabel("undo");
4387
- const [isRetrying, setIsRetrying] = useState12(false);
4388
- const [error, setError] = useState12(null);
5082
+ const [isRetrying, setIsRetrying] = useState14(false);
5083
+ const [error, setError] = useState14(null);
4389
5084
  async function retry() {
4390
5085
  setError(null);
4391
5086
  setIsRetrying(true);
@@ -4465,7 +5160,7 @@ function useKeepPruneStale({ statuses, onPruned }) {
4465
5160
  }
4466
5161
 
4467
5162
  // src/features/status/KeepStaleNotice.tsx
4468
- import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
5163
+ import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
4469
5164
  function KeepStaleNotice({
4470
5165
  item,
4471
5166
  onRetry,
@@ -4479,11 +5174,11 @@ function KeepStaleNotice({
4479
5174
  const view = useKeepStaleNotice({ item, onRetry, onRemoved });
4480
5175
  const showRetryLabel = useUiLabelVisibility("retry");
4481
5176
  const showRemoveLabel = useUiLabelVisibility("removeFromList");
4482
- return /* @__PURE__ */ jsxs15("aside", { ...props, className, "data-keepkit": "stale-notice", "data-state": view.error ? "error" : "stale", children: [
4483
- /* @__PURE__ */ jsx17(KeepItemStatusBadge, { status: view.status }),
4484
- children ?? (item.statusReason ? /* @__PURE__ */ jsx17("p", { children: item.statusReason }) : null),
4485
- /* @__PURE__ */ jsxs15("div", { children: [
4486
- /* @__PURE__ */ jsx17(
5177
+ return /* @__PURE__ */ jsxs16("aside", { ...props, className, "data-keepkit": "stale-notice", "data-state": view.error ? "error" : "stale", children: [
5178
+ /* @__PURE__ */ jsx18(KeepItemStatusBadge, { status: view.status }),
5179
+ children ?? (item.statusReason ? /* @__PURE__ */ jsx18("p", { children: item.statusReason }) : null),
5180
+ /* @__PURE__ */ jsxs16("div", { children: [
5181
+ /* @__PURE__ */ jsx18(
4487
5182
  "button",
4488
5183
  {
4489
5184
  type: "button",
@@ -4494,7 +5189,7 @@ function KeepStaleNotice({
4494
5189
  children: showRetryLabel ? retryLabel ?? view.labels.retry : null
4495
5190
  }
4496
5191
  ),
4497
- /* @__PURE__ */ jsx17(
5192
+ /* @__PURE__ */ jsx18(
4498
5193
  "button",
4499
5194
  {
4500
5195
  type: "button",
@@ -4506,7 +5201,7 @@ function KeepStaleNotice({
4506
5201
  }
4507
5202
  )
4508
5203
  ] }),
4509
- view.error ? /* @__PURE__ */ jsx17("p", { role: "alert", children: getErrorMessage(view.error, view.labels.error) }) : null
5204
+ view.error ? /* @__PURE__ */ jsx18("p", { role: "alert", children: getErrorMessage(view.error, view.labels.error) }) : null
4510
5205
  ] });
4511
5206
  }
4512
5207
  function KeepPruneStaleButton({
@@ -4519,7 +5214,7 @@ function KeepPruneStaleButton({
4519
5214
  }) {
4520
5215
  const view = useKeepPruneStale({ statuses, onPruned });
4521
5216
  const showLabel = useUiLabelVisibility("pruneStale");
4522
- return /* @__PURE__ */ jsx17(
5217
+ return /* @__PURE__ */ jsx18(
4523
5218
  "button",
4524
5219
  {
4525
5220
  ...props,
@@ -4633,7 +5328,7 @@ function getDisplayStatus2(status) {
4633
5328
  }
4634
5329
 
4635
5330
  // src/features/item/KeepItemCard.tsx
4636
- import { Fragment as Fragment9, jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
5331
+ import { Fragment as Fragment9, jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
4637
5332
  var KeepItemCardContext = createContext3(null);
4638
5333
  function useKeepItemCardCompound(part) {
4639
5334
  const context = useContext3(KeepItemCardContext);
@@ -4651,6 +5346,8 @@ function KeepItemCardRoot({
4651
5346
  showTags = true,
4652
5347
  showNote = false,
4653
5348
  showSavedAt = true,
5349
+ showActivity = false,
5350
+ activityKind = "inactive",
4654
5351
  collectionLabels,
4655
5352
  imageAlt,
4656
5353
  render,
@@ -4694,14 +5391,14 @@ function KeepItemCardRoot({
4694
5391
  const contextQuery = useKeepSearchQuery();
4695
5392
  const searchQuery = highlightQuery ?? contextQuery;
4696
5393
  const contentChildren = asChild && isValidElement4(children) ? void 0 : children;
4697
- const [isEditOpen, setEditOpen] = useState13(false);
5394
+ const [isEditOpen, setEditOpen] = useState15(false);
4698
5395
  const editTriggerRef = useRef7(null);
4699
5396
  const editPanelId = useId3();
4700
5397
  const editLabel = useUiLabel("editSavedItem");
4701
5398
  const showEditLabel = useUiLabelVisibility("editSavedItem");
4702
5399
  const showSavedAtLabel = useUiLabelVisibility("saved");
4703
5400
  const closeEdit = () => setEditOpen(false);
4704
- useEffect8(() => {
5401
+ useEffect9(() => {
4705
5402
  if (!isEditOpen) editTriggerRef.current?.focus();
4706
5403
  }, [isEditOpen]);
4707
5404
  function renderLink(content) {
@@ -4716,17 +5413,17 @@ function KeepItemCardRoot({
4716
5413
  },
4717
5414
  children: content
4718
5415
  };
4719
- return LinkComponent ? /* @__PURE__ */ jsx18(LinkComponent, { ...linkProps }) : /* @__PURE__ */ jsx18("a", { ...linkProps });
5416
+ return LinkComponent ? /* @__PURE__ */ jsx19(LinkComponent, { ...linkProps }) : /* @__PURE__ */ jsx19("a", { ...linkProps });
4720
5417
  }
4721
5418
  function renderTitle(content) {
4722
5419
  if (linkTarget !== "title") return content;
4723
5420
  if (view.isAvailable) return renderLink(content);
4724
- return view.href ? /* @__PURE__ */ jsx18("span", { "aria-disabled": "true", "data-link-disabled": "true", children: content }) : content;
5421
+ return view.href ? /* @__PURE__ */ jsx19("span", { "aria-disabled": "true", "data-link-disabled": "true", children: content }) : content;
4725
5422
  }
4726
5423
  const resolvedImageProps = view.imageProps ? { ...view.imageProps, alt: imageAlt ?? view.imageProps.alt } : void 0;
4727
5424
  const imageSource = resolvedImageProps?.src;
4728
- const [imageStatus, setImageStatus] = useState13(imageSource ? "loading" : "error");
4729
- useEffect8(() => {
5425
+ const [imageStatus, setImageStatus] = useState15(imageSource ? "loading" : "error");
5426
+ useEffect9(() => {
4730
5427
  setImageStatus(imageSource ? "loading" : "error");
4731
5428
  }, [imageSource]);
4732
5429
  let image = null;
@@ -4744,21 +5441,21 @@ function KeepItemCardRoot({
4744
5441
  setImageStatus("error");
4745
5442
  }
4746
5443
  };
4747
- image = renderImage?.(imagePropsWithHandlers, item) ?? (ImageComponent ? /* @__PURE__ */ jsx18(ImageComponent, { ...imagePropsWithHandlers }) : /* @__PURE__ */ jsx18("img", { ...imagePropsWithHandlers, alt: imagePropsWithHandlers.alt }));
5444
+ image = renderImage?.(imagePropsWithHandlers, item) ?? (ImageComponent ? /* @__PURE__ */ jsx19(ImageComponent, { ...imagePropsWithHandlers }) : /* @__PURE__ */ jsx19("img", { ...imagePropsWithHandlers, alt: imagePropsWithHandlers.alt }));
4748
5445
  }
4749
5446
  const tags = showTags ? item.tags ?? [] : [];
4750
5447
  const renderedTags = showTags && tags.length > 0 ? renderTags?.(tags, item) ?? null : null;
4751
- const meta = showSavedAt ? /* @__PURE__ */ jsxs16("div", { "data-card-meta": true, children: [
4752
- showSavedAtLabel ? /* @__PURE__ */ jsxs16("span", { children: [
5448
+ const meta = showSavedAt ? /* @__PURE__ */ jsxs17("div", { "data-card-meta": true, children: [
5449
+ showSavedAtLabel ? /* @__PURE__ */ jsxs17("span", { children: [
4753
5450
  view.labels.savedAt,
4754
5451
  ":"
4755
5452
  ] }) : null,
4756
5453
  showSavedAtLabel ? " " : null,
4757
- /* @__PURE__ */ jsx18("time", { dateTime: new Date(item.savedAt).toISOString(), children: formatSavedAt(item.savedAt) })
5454
+ /* @__PURE__ */ jsx19("time", { dateTime: new Date(item.savedAt).toISOString(), children: formatSavedAt(item.savedAt) })
4758
5455
  ] }) : null;
4759
- const error = view.itemState.error ? /* @__PURE__ */ jsx18("p", { role: "alert", children: getErrorMessage(view.itemState.error, view.labels.error) }) : null;
4760
- const actions = view.statusLabel ? /* @__PURE__ */ jsx18(KeepStaleNotice, { item, onRetry, onRemoved }) : /* @__PURE__ */ jsxs16(Fragment9, { children: [
4761
- showEditButton ? isEditOpen ? /* @__PURE__ */ jsx18("div", { id: editPanelId, role: "dialog", "aria-label": editLabel, "data-keepkit": "item-edit-dialog", children: editSlot ? editSlot(item, closeEdit) : /* @__PURE__ */ jsx18(KeepQuickEditor, { item: view.itemState.item ?? item, onClose: closeEdit, features: editFeatures }) }) : /* @__PURE__ */ jsx18(
5456
+ const error = view.itemState.error ? /* @__PURE__ */ jsx19("p", { role: "alert", children: getErrorMessage(view.itemState.error, view.labels.error) }) : null;
5457
+ const actions = view.statusLabel ? /* @__PURE__ */ jsx19(KeepStaleNotice, { item, onRetry, onRemoved }) : /* @__PURE__ */ jsxs17(Fragment9, { children: [
5458
+ showEditButton ? isEditOpen ? /* @__PURE__ */ jsx19("div", { id: editPanelId, role: "dialog", "aria-label": editLabel, "data-keepkit": "item-edit-dialog", children: editSlot ? editSlot(item, closeEdit) : /* @__PURE__ */ jsx19(KeepQuickEditor, { item: view.itemState.item ?? item, onClose: closeEdit, features: editFeatures }) }) : /* @__PURE__ */ jsx19(
4762
5459
  "button",
4763
5460
  {
4764
5461
  ref: editTriggerRef,
@@ -4775,15 +5472,15 @@ function KeepItemCardRoot({
4775
5472
  children: showEditLabel ? editLabel : null
4776
5473
  }
4777
5474
  ) : null,
4778
- isEditOpen ? null : /* @__PURE__ */ jsxs16(Fragment9, { children: [
4779
- showSaveButton ? /* @__PURE__ */ jsx18(KeepItemCardSave, {}) : null,
4780
- showPinButton ? /* @__PURE__ */ jsx18(KeepItemCardPin, {}) : null,
4781
- showArchiveButton ? /* @__PURE__ */ jsx18(KeepItemCardArchive, {}) : null,
4782
- /* @__PURE__ */ jsx18(KeepItemCardRemove, {})
5475
+ isEditOpen ? null : /* @__PURE__ */ jsxs17(Fragment9, { children: [
5476
+ showSaveButton ? /* @__PURE__ */ jsx19(KeepItemCardSave, {}) : null,
5477
+ showPinButton ? /* @__PURE__ */ jsx19(KeepItemCardPin, {}) : null,
5478
+ showArchiveButton ? /* @__PURE__ */ jsx19(KeepItemCardArchive, {}) : null,
5479
+ /* @__PURE__ */ jsx19(KeepItemCardRemove, {})
4783
5480
  ] }),
4784
- isEditOpen && (showPinButton || showArchiveButton) ? /* @__PURE__ */ jsxs16("div", { "data-keep-card-part": "actions-secondary", children: [
4785
- showPinButton ? /* @__PURE__ */ jsx18(KeepItemCardPin, {}) : null,
4786
- showArchiveButton ? /* @__PURE__ */ jsx18(KeepItemCardArchive, {}) : null
5481
+ isEditOpen && (showPinButton || showArchiveButton) ? /* @__PURE__ */ jsxs17("div", { "data-keep-card-part": "actions-secondary", children: [
5482
+ showPinButton ? /* @__PURE__ */ jsx19(KeepItemCardPin, {}) : null,
5483
+ showArchiveButton ? /* @__PURE__ */ jsx19(KeepItemCardArchive, {}) : null
4787
5484
  ] }) : null
4788
5485
  ] });
4789
5486
  const compoundValue = {
@@ -4795,6 +5492,7 @@ function KeepItemCardRoot({
4795
5492
  imageStatus,
4796
5493
  fallbackLabel: String(view.resolvedTitle),
4797
5494
  note: showNote ? item.note : void 0,
5495
+ activity: showActivity ? /* @__PURE__ */ jsx19(KeepLastActivity, { item, kind: activityKind }) : null,
4798
5496
  tags,
4799
5497
  tagsLabel: view.labels.tags,
4800
5498
  renderedTags,
@@ -4806,12 +5504,12 @@ function KeepItemCardRoot({
4806
5504
  remove: view.remove,
4807
5505
  isMutating: view.itemState.isMutating,
4808
5506
  saveAriaLabel: `${view.labels.remove} ${String(view.resolvedTitle)}`,
4809
- renderText: (content) => /* @__PURE__ */ jsx18(KeepHighlight, { query: searchQuery, children: content })
5507
+ renderText: (content) => /* @__PURE__ */ jsx19(KeepHighlight, { query: searchQuery, children: content })
4810
5508
  };
4811
- const defaultBody = /* @__PURE__ */ jsxs16(Fragment9, { children: [
4812
- /* @__PURE__ */ jsx18(KeepItemCardMedia, {}),
4813
- /* @__PURE__ */ jsx18(KeepItemCardContent, {}),
4814
- /* @__PURE__ */ jsx18(KeepItemCardActions, {})
5509
+ const defaultBody = /* @__PURE__ */ jsxs17(Fragment9, { children: [
5510
+ /* @__PURE__ */ jsx19(KeepItemCardMedia, {}),
5511
+ /* @__PURE__ */ jsx19(KeepItemCardContent, {}),
5512
+ /* @__PURE__ */ jsx19(KeepItemCardActions, {})
4815
5513
  ] });
4816
5514
  const body = render ? render(view.state) : typeof contentChildren === "function" ? contentChildren(view.state) : contentChildren ?? defaultBody;
4817
5515
  const linkedBody = linkTarget === "card" && view.isAvailable ? renderLink(body) : body;
@@ -4833,19 +5531,20 @@ function KeepItemCardRoot({
4833
5531
  linkedBody,
4834
5532
  "KeepItemCard"
4835
5533
  );
4836
- return /* @__PURE__ */ jsx18(KeepItemCardContext.Provider, { value: compoundValue, children: root });
5534
+ return /* @__PURE__ */ jsx19(KeepItemCardContext.Provider, { value: compoundValue, children: root });
4837
5535
  }
4838
5536
  function KeepItemCardMedia({ children, fallback, ...props }) {
4839
5537
  const context = useKeepItemCardCompound("Media");
4840
- return /* @__PURE__ */ jsx18("div", { ...props, "data-keep-card-part": "media", "data-media-status": context.imageStatus, "data-aspect-ratio": "1/1", children: children ?? context.image ?? /* @__PURE__ */ jsx18("span", { role: "img", "aria-label": context.fallbackLabel, "data-keep-card-fallback": "true", children: fallback ?? /* @__PURE__ */ jsx18(KeepMediaPlaceholderIcon, {}) }) });
5538
+ return /* @__PURE__ */ jsx19("div", { ...props, "data-keep-card-part": "media", "data-media-status": context.imageStatus, "data-aspect-ratio": "1/1", children: children ?? context.image ?? /* @__PURE__ */ jsx19("span", { role: "img", "aria-label": context.fallbackLabel, "data-keep-card-fallback": "true", children: fallback ?? /* @__PURE__ */ jsx19(KeepMediaPlaceholderIcon, {}) }) });
4841
5539
  }
4842
5540
  function KeepItemCardContent({ children, ...props }) {
4843
5541
  const context = useKeepItemCardCompound("Content");
4844
- return /* @__PURE__ */ jsx18("div", { ...props, "data-keep-card-part": "content", children: children === void 0 ? /* @__PURE__ */ jsxs16(Fragment9, { children: [
4845
- /* @__PURE__ */ jsx18(KeepItemCardTitle, {}),
5542
+ return /* @__PURE__ */ jsx19("div", { ...props, "data-keep-card-part": "content", children: children === void 0 ? /* @__PURE__ */ jsxs17(Fragment9, { children: [
5543
+ /* @__PURE__ */ jsx19(KeepItemCardTitle, {}),
4846
5544
  context.meta,
4847
- context.note ? /* @__PURE__ */ jsx18("p", { "data-keep-card-part": "memo-preview", "data-line-clamp": "2", children: context.note }) : null,
4848
- /* @__PURE__ */ jsx18(KeepItemCardTags, {}),
5545
+ context.activity,
5546
+ context.note ? /* @__PURE__ */ jsx19("p", { "data-keep-card-part": "memo-preview", "data-line-clamp": "2", children: context.note }) : null,
5547
+ /* @__PURE__ */ jsx19(KeepItemCardTags, {}),
4849
5548
  context.error
4850
5549
  ] }) : context.renderText(children) });
4851
5550
  }
@@ -4858,8 +5557,8 @@ function KeepItemCardTitle({ as = "h3", children, ...props }) {
4858
5557
  );
4859
5558
  }
4860
5559
  function KeepMediaPlaceholderIcon() {
4861
- return /* @__PURE__ */ jsxs16("svg", { "data-media-fallback-icon": "true", viewBox: "0 0 24 24", "aria-hidden": "true", children: [
4862
- /* @__PURE__ */ jsx18(
5560
+ return /* @__PURE__ */ jsxs17("svg", { "data-media-fallback-icon": "true", viewBox: "0 0 24 24", "aria-hidden": "true", children: [
5561
+ /* @__PURE__ */ jsx19(
4863
5562
  "path",
4864
5563
  {
4865
5564
  d: "M4 5.5A1.5 1.5 0 0 1 5.5 4h13A1.5 1.5 0 0 1 20 5.5v13a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18.5v-13Z",
@@ -4867,23 +5566,39 @@ function KeepMediaPlaceholderIcon() {
4867
5566
  stroke: "currentColor"
4868
5567
  }
4869
5568
  ),
4870
- /* @__PURE__ */ jsx18("circle", { cx: "9", cy: "9", r: "1.5", fill: "currentColor" }),
4871
- /* @__PURE__ */ jsx18("path", { d: "m5.5 18 4.5-4.5 3 3 2-2L19 18", fill: "none", stroke: "currentColor" })
5569
+ /* @__PURE__ */ jsx19("circle", { cx: "9", cy: "9", r: "1.5", fill: "currentColor" }),
5570
+ /* @__PURE__ */ jsx19("path", { d: "m5.5 18 4.5-4.5 3 3 2-2L19 18", fill: "none", stroke: "currentColor" })
4872
5571
  ] });
4873
5572
  }
4874
5573
  function KeepItemCardTags({ children, ...props }) {
4875
5574
  const context = useKeepItemCardCompound("Tags");
4876
5575
  if (children === void 0 && context.renderedTags) return context.renderedTags;
4877
5576
  if (children === void 0 && context.tags.length === 0) return null;
4878
- return /* @__PURE__ */ jsx18("ul", { ...props, "aria-label": props["aria-label"] ?? context.tagsLabel, "data-keep-card-part": "tags", children: children ?? context.tags.map((tag) => /* @__PURE__ */ jsx18("li", { children: tag }, tag)) });
5577
+ return /* @__PURE__ */ jsx19("ul", { ...props, "aria-label": props["aria-label"] ?? context.tagsLabel, "data-keep-card-part": "tags", children: children ?? context.tags.map((tag) => /* @__PURE__ */ jsx19("li", { children: tag }, tag)) });
4879
5578
  }
4880
5579
  function KeepItemCardActions({ children, ...props }) {
4881
5580
  const context = useKeepItemCardCompound("Actions");
4882
- return /* @__PURE__ */ jsx18("div", { ...props, "data-keep-card-part": "actions", children: children ?? context.actions });
5581
+ return /* @__PURE__ */ jsx19("div", { ...props, "data-keep-card-part": "actions", children: children ?? context.actions });
5582
+ }
5583
+ function KeepLastActivity({
5584
+ item,
5585
+ kind = "inactive",
5586
+ ...props
5587
+ }) {
5588
+ const { locale } = useKeepUiLabels();
5589
+ const openedLabel = useUiLabel("activityOpened");
5590
+ const neverOpenedLabel = useUiLabel("activityNeverOpened");
5591
+ const inactiveSuffix = useUiLabel("activityInactiveSuffix");
5592
+ if (item.lastOpenedAt === void 0) {
5593
+ return /* @__PURE__ */ jsx19("span", { ...props, "data-keep-card-part": "activity", children: neverOpenedLabel });
5594
+ }
5595
+ const age = Math.max(0, Date.now() - item.lastOpenedAt);
5596
+ const label = kind === "opened" ? `${openedLabel} ${formatRelativeAge(age, locale)}` : `${formatInactiveAge(age, locale)}${isCjkLocale2(locale) ? "" : " "}${inactiveSuffix}`;
5597
+ return /* @__PURE__ */ jsx19("span", { ...props, "data-keep-card-part": "activity", children: /* @__PURE__ */ jsx19("time", { dateTime: new Date(item.lastOpenedAt).toISOString(), children: label }) });
4883
5598
  }
4884
5599
  function KeepItemCardSave({ labels, getAriaLabel, ...props }) {
4885
5600
  const context = useKeepItemCardCompound("Save");
4886
- return /* @__PURE__ */ jsx18(
5601
+ return /* @__PURE__ */ jsx19(
4887
5602
  KeepButton,
4888
5603
  {
4889
5604
  ...props,
@@ -4896,7 +5611,7 @@ function KeepItemCardSave({ labels, getAriaLabel, ...props }) {
4896
5611
  }
4897
5612
  function KeepItemCardRemove({ children, disabled, onClick, ...props }) {
4898
5613
  const context = useKeepItemCardCompound("Remove");
4899
- return /* @__PURE__ */ jsx18(
5614
+ return /* @__PURE__ */ jsx19(
4900
5615
  "button",
4901
5616
  {
4902
5617
  ...props,
@@ -4913,19 +5628,19 @@ function KeepItemCardRemove({ children, disabled, onClick, ...props }) {
4913
5628
  }
4914
5629
  function KeepItemCardPin({ children, ...props }) {
4915
5630
  const context = useKeepItemCardCompound("Pin");
4916
- return /* @__PURE__ */ jsx18(KeepPinButton, { ...props, item: context.item, children });
5631
+ return /* @__PURE__ */ jsx19(KeepPinButton, { ...props, item: context.item, children });
4917
5632
  }
4918
5633
  function KeepItemCardArchive({
4919
5634
  children,
4920
5635
  ...props
4921
5636
  }) {
4922
5637
  const context = useKeepItemCardCompound("Archive");
4923
- return /* @__PURE__ */ jsx18(KeepArchiveButton, { ...props, item: context.item, children });
5638
+ return /* @__PURE__ */ jsx19(KeepArchiveButton, { ...props, item: context.item, children });
4924
5639
  }
4925
5640
  function KeepItemCardCollectionBadge({ children, ...props }) {
4926
5641
  const context = useKeepItemCardCompound("CollectionBadge");
4927
5642
  if (!context.item.collectionId) return null;
4928
- return /* @__PURE__ */ jsx18("span", { ...props, "data-keep-card-part": "collection-badge", children: children ?? context.collectionLabel });
5643
+ return /* @__PURE__ */ jsx19("span", { ...props, "data-keep-card-part": "collection-badge", children: children ?? context.collectionLabel });
4929
5644
  }
4930
5645
  var KeepItemCard = Object.assign(KeepItemCardRoot, {
4931
5646
  Media: KeepItemCardMedia,
@@ -4940,21 +5655,39 @@ var KeepItemCard = Object.assign(KeepItemCardRoot, {
4940
5655
  CollectionBadge: KeepItemCardCollectionBadge
4941
5656
  });
4942
5657
  function KeepItemCardSkeleton({ layout = "list", ...props }) {
4943
- return /* @__PURE__ */ jsxs16("article", { ...props, "aria-hidden": "true", "data-keepkit": "card-skeleton", "data-layout": layout, "data-state": "loading", children: [
4944
- /* @__PURE__ */ jsx18("span", { "data-skeleton-part": "media" }),
4945
- /* @__PURE__ */ jsx18("span", { "data-skeleton-part": "title" }),
4946
- /* @__PURE__ */ jsx18("span", { "data-skeleton-part": "meta" }),
4947
- /* @__PURE__ */ jsx18("span", { "data-skeleton-part": "tag" }),
4948
- /* @__PURE__ */ jsx18("span", { "data-skeleton-part": "tag" })
5658
+ return /* @__PURE__ */ jsxs17("article", { ...props, "aria-hidden": "true", "data-keepkit": "card-skeleton", "data-layout": layout, "data-state": "loading", children: [
5659
+ /* @__PURE__ */ jsx19("span", { "data-skeleton-part": "media" }),
5660
+ /* @__PURE__ */ jsx19("span", { "data-skeleton-part": "title" }),
5661
+ /* @__PURE__ */ jsx19("span", { "data-skeleton-part": "meta" }),
5662
+ /* @__PURE__ */ jsx19("span", { "data-skeleton-part": "tag" }),
5663
+ /* @__PURE__ */ jsx19("span", { "data-skeleton-part": "tag" })
4949
5664
  ] });
4950
5665
  }
4951
5666
  function formatSavedAt(timestamp) {
4952
5667
  return new Date(timestamp).toISOString().slice(0, 10);
4953
5668
  }
5669
+ function formatRelativeAge(milliseconds, locale) {
5670
+ const hour = 60 * 60 * 1e3;
5671
+ const day = 24 * hour;
5672
+ const unit = milliseconds < 60 * 1e3 ? "minute" : milliseconds < hour ? "hour" : milliseconds < day ? "day" : "day";
5673
+ const value = unit === "minute" ? Math.floor(milliseconds / (60 * 1e3)) : unit === "hour" ? Math.floor(milliseconds / hour) : Math.floor(milliseconds / day);
5674
+ return new Intl.RelativeTimeFormat(locale, { numeric: "auto" }).format(-value, unit);
5675
+ }
5676
+ function formatInactiveAge(milliseconds, locale) {
5677
+ const hour = 60 * 60 * 1e3;
5678
+ const day = 24 * hour;
5679
+ const unit = milliseconds < hour ? "minute" : milliseconds < day ? "hour" : "day";
5680
+ const value = unit === "minute" ? Math.max(1, Math.round(milliseconds / (60 * 1e3))) : unit === "hour" ? Math.max(1, Math.round(milliseconds / hour)) : Math.max(1, Math.round(milliseconds / day));
5681
+ const formatted = new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay: "long" }).format(value);
5682
+ return isCjkLocale2(locale) ? formatted.replace(/\s+/g, "") : formatted;
5683
+ }
5684
+ function isCjkLocale2(locale) {
5685
+ return /^(?:ja|ko|zh)/i.test(locale ?? "");
5686
+ }
4954
5687
 
4955
5688
  // src/features/status/KeepEmptyState.tsx
4956
5689
  import { isValidElement as isValidElement5 } from "react";
4957
- import { Fragment as Fragment10, jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
5690
+ import { Fragment as Fragment10, jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
4958
5691
  function KeepEmptyState({
4959
5692
  title,
4960
5693
  description,
@@ -4973,10 +5706,10 @@ function KeepEmptyState({
4973
5706
  );
4974
5707
  const clearLabel = useUiLabel("clearFilters");
4975
5708
  const contentChildren = asChild && isValidElement5(children) ? void 0 : children;
4976
- const body = contentChildren ?? /* @__PURE__ */ jsxs17(Fragment10, { children: [
4977
- /* @__PURE__ */ jsx19("h2", { children: title ?? defaultTitle }),
4978
- description ?? /* @__PURE__ */ jsx19("p", { children: defaultDescription }),
4979
- action ?? (resolvedVariant === "empty-filtered" && onClearFilters ? /* @__PURE__ */ jsx19("button", { type: "button", "data-keep-action": "clear-filters", onClick: onClearFilters, children: clearLabel }) : null)
5709
+ const body = contentChildren ?? /* @__PURE__ */ jsxs18(Fragment10, { children: [
5710
+ /* @__PURE__ */ jsx20("h2", { children: title ?? defaultTitle }),
5711
+ description ?? /* @__PURE__ */ jsx20("p", { children: defaultDescription }),
5712
+ action ?? (resolvedVariant === "empty-filtered" && onClearFilters ? /* @__PURE__ */ jsx20("button", { type: "button", "data-keep-action": "clear-filters", onClick: onClearFilters, children: clearLabel }) : null)
4980
5713
  ] });
4981
5714
  return renderRoot(
4982
5715
  asChild,
@@ -5002,17 +5735,17 @@ function useKeepListView(query) {
5002
5735
  }
5003
5736
 
5004
5737
  // src/features/collection/hooks/useRovingTabIndex.ts
5005
- import { useCallback as useCallback6, useEffect as useEffect9, useRef as useRef8 } from "react";
5738
+ import { useCallback as useCallback7, useEffect as useEffect10, useRef as useRef8 } from "react";
5006
5739
  function useRovingTabIndex() {
5007
5740
  const ref = useRef8(null);
5008
- const getItems = useCallback6(() => {
5741
+ const getItems = useCallback7(() => {
5009
5742
  const root = ref.current;
5010
5743
  if (!root) return [];
5011
5744
  return Array.from(root.querySelectorAll('[data-keepkit="card"]')).filter(
5012
5745
  (item) => item.getAttribute("aria-hidden") !== "true" && item.getAttribute("data-roving-disabled") !== "true"
5013
5746
  );
5014
5747
  }, []);
5015
- const syncTabIndices = useCallback6(() => {
5748
+ const syncTabIndices = useCallback7(() => {
5016
5749
  const items = getItems();
5017
5750
  if (items.length === 0) return;
5018
5751
  const activeElement = document.activeElement;
@@ -5022,7 +5755,7 @@ function useRovingTabIndex() {
5022
5755
  item.tabIndex = index === activeIndex ? 0 : -1;
5023
5756
  });
5024
5757
  }, [getItems]);
5025
- useEffect9(() => {
5758
+ useEffect10(() => {
5026
5759
  const root = ref.current;
5027
5760
  if (!root) return;
5028
5761
  syncTabIndices();
@@ -5030,7 +5763,7 @@ function useRovingTabIndex() {
5030
5763
  observer.observe(root, { childList: true, subtree: true });
5031
5764
  return () => observer.disconnect();
5032
5765
  }, [syncTabIndices]);
5033
- const onFocusCapture = useCallback6(
5766
+ const onFocusCapture = useCallback7(
5034
5767
  (event) => {
5035
5768
  if (!(event.target instanceof HTMLElement)) return;
5036
5769
  const item = event.target.closest('[data-keepkit="card"]');
@@ -5041,7 +5774,7 @@ function useRovingTabIndex() {
5041
5774
  },
5042
5775
  [getItems]
5043
5776
  );
5044
- const onKeyDown = useCallback6(
5777
+ const onKeyDown = useCallback7(
5045
5778
  (event) => {
5046
5779
  if (event.defaultPrevented) return;
5047
5780
  const items = getItems();
@@ -5067,8 +5800,8 @@ function useRovingTabIndex() {
5067
5800
  }
5068
5801
 
5069
5802
  // src/features/collection/KeepReorderableList.tsx
5070
- import { useState as useState14 } from "react";
5071
- import { jsx as jsx20 } from "react/jsx-runtime";
5803
+ import { useState as useState16 } from "react";
5804
+ import { jsx as jsx21 } from "react/jsx-runtime";
5072
5805
  function KeepReorderableList({
5073
5806
  items,
5074
5807
  onReorder,
@@ -5076,8 +5809,8 @@ function KeepReorderableList({
5076
5809
  itemLabel = (_item, index) => `Move item ${index + 1}`,
5077
5810
  ...props
5078
5811
  }) {
5079
- const [draggedId, setDraggedId] = useState14(null);
5080
- const [dropTargetIndex, setDropTargetIndex] = useState14(null);
5812
+ const [draggedId, setDraggedId] = useState16(null);
5813
+ const [dropTargetIndex, setDropTargetIndex] = useState16(null);
5081
5814
  const ids = items.map((item) => item.id);
5082
5815
  function commit(nextIds) {
5083
5816
  void onReorder(nextIds);
@@ -5102,7 +5835,7 @@ function KeepReorderableList({
5102
5835
  if (next[index] === id) return;
5103
5836
  commit(next);
5104
5837
  }
5105
- return /* @__PURE__ */ jsx20("ul", { ...props, "data-keepkit": "reorderable-list", children: items.map((item, index) => {
5838
+ return /* @__PURE__ */ jsx21("ul", { ...props, "data-keepkit": "reorderable-list", children: items.map((item, index) => {
5106
5839
  const moveUp = () => move(index, index - 1);
5107
5840
  const moveDown = () => move(index, index + 1);
5108
5841
  const onHandleKeyDown = (event) => {
@@ -5146,7 +5879,7 @@ function KeepReorderableList({
5146
5879
  onKeyDown: onHandleKeyDown
5147
5880
  }
5148
5881
  };
5149
- return /* @__PURE__ */ jsx20(
5882
+ return /* @__PURE__ */ jsx21(
5150
5883
  "li",
5151
5884
  {
5152
5885
  "data-reorder-index": index,
@@ -5178,12 +5911,12 @@ function KeepReorderableList({
5178
5911
  }
5179
5912
 
5180
5913
  // src/features/collection/KeepList.tsx
5181
- import { Fragment as Fragment11, jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
5914
+ import { Fragment as Fragment11, jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
5182
5915
  function KeepList(props) {
5183
5916
  const { fallback, onBoundaryError, boundaryResetKey, ...listProps } = props;
5184
- const content = /* @__PURE__ */ jsx21(KeepListContent, { ...listProps });
5917
+ const content = /* @__PURE__ */ jsx22(KeepListContent, { ...listProps });
5185
5918
  if (fallback === void 0 && onBoundaryError === void 0) return content;
5186
- return /* @__PURE__ */ jsx21(KeepErrorBoundary, { fallback, onError: onBoundaryError, resetKey: boundaryResetKey, children: content });
5919
+ return /* @__PURE__ */ jsx22(KeepErrorBoundary, { fallback, onError: onBoundaryError, resetKey: boundaryResetKey, children: content });
5187
5920
  }
5188
5921
  function KeepListContent({
5189
5922
  query,
@@ -5248,7 +5981,7 @@ function KeepListContent({
5248
5981
  if (!event.defaultPrevented) roving.onFocusCapture(event);
5249
5982
  }
5250
5983
  },
5251
- /* @__PURE__ */ jsx21(KeepSearchQueryProvider, { query: query?.search?.query, children: body }),
5984
+ /* @__PURE__ */ jsx22(KeepSearchQueryProvider, { query: query?.search?.query, children: body }),
5252
5985
  "KeepList"
5253
5986
  );
5254
5987
  }
@@ -5263,17 +5996,17 @@ function getListBody(state, options) {
5263
5996
  if (state.isLoading && !state.isHydrated) {
5264
5997
  if (options.loading !== void 0) return resolveContent(options.loading, state);
5265
5998
  const count = Number.isFinite(options.loadingCount) ? Math.max(0, Math.floor(options.loadingCount)) : 6;
5266
- return /* @__PURE__ */ jsxs18(Fragment11, { children: [
5267
- /* @__PURE__ */ jsx21("span", { role: "status", "data-keepkit": "loading-label", children: options.loadingLabel }),
5268
- /* @__PURE__ */ jsx21("ul", { "data-keepkit": "skeleton-list", "data-layout": options.layout, children: Array.from({ length: count }, (_, index) => (
5999
+ return /* @__PURE__ */ jsxs19(Fragment11, { children: [
6000
+ /* @__PURE__ */ jsx22("span", { role: "status", "data-keepkit": "loading-label", children: options.loadingLabel }),
6001
+ /* @__PURE__ */ jsx22("ul", { "data-keepkit": "skeleton-list", "data-layout": options.layout, children: Array.from({ length: count }, (_, index) => (
5269
6002
  // biome-ignore lint/suspicious/noArrayIndexKey: Static loading placeholders never reorder.
5270
- /* @__PURE__ */ jsx21("li", { children: /* @__PURE__ */ jsx21(KeepItemCardSkeleton, { layout: options.layout }) }, index)
6003
+ /* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(KeepItemCardSkeleton, { layout: options.layout }) }, index)
5271
6004
  )) })
5272
6005
  ] });
5273
6006
  }
5274
6007
  if (state.isHydrated && state.items.length === 0) {
5275
6008
  if (options.empty !== void 0) return resolveContent(options.empty, state);
5276
- return /* @__PURE__ */ jsx21(
6009
+ return /* @__PURE__ */ jsx22(
5277
6010
  KeepEmptyState,
5278
6011
  {
5279
6012
  variant: options.allItemCount > 0 && hasActiveQueryFilters(options.query) ? "empty-filtered" : "empty-storage",
@@ -5284,7 +6017,7 @@ function getListBody(state, options) {
5284
6017
  if (typeof options.children === "function") return options.children(state);
5285
6018
  if (options.children !== void 0 && !isValidElement6(options.children)) return options.children;
5286
6019
  if (options.reorderable) {
5287
- return /* @__PURE__ */ jsx21(
6020
+ return /* @__PURE__ */ jsx22(
5288
6021
  KeepReorderableList,
5289
6022
  {
5290
6023
  items: state.items,
@@ -5292,16 +6025,16 @@ function getListBody(state, options) {
5292
6025
  await options.reorder(orderedIds);
5293
6026
  await options.onReorder?.(orderedIds);
5294
6027
  },
5295
- renderItem: (item, reorderState) => /* @__PURE__ */ jsxs18(Fragment11, { children: [
5296
- /* @__PURE__ */ jsx21("button", { type: "button", ...reorderState.dragHandleProps, children: "\u2195" }),
5297
- options.renderItem ? options.renderItem(item, state) : /* @__PURE__ */ jsx21(KeepItemCard, { item, ...options.itemCardProps })
6028
+ renderItem: (item, reorderState) => /* @__PURE__ */ jsxs19(Fragment11, { children: [
6029
+ /* @__PURE__ */ jsx22("button", { type: "button", ...reorderState.dragHandleProps, children: "\u2195" }),
6030
+ options.renderItem ? options.renderItem(item, state) : /* @__PURE__ */ jsx22(KeepItemCard, { item, ...options.itemCardProps })
5298
6031
  ] }),
5299
6032
  "data-layout": options.layout
5300
6033
  }
5301
6034
  );
5302
6035
  }
5303
- return /* @__PURE__ */ jsx21("ul", { "data-layout": options.layout, children: state.items.map(
5304
- (item) => options.renderItem ? options.renderItem(item, state) : /* @__PURE__ */ jsx21("li", { children: /* @__PURE__ */ jsx21(KeepItemCard, { item, ...options.itemCardProps }) }, item.id)
6036
+ return /* @__PURE__ */ jsx22("ul", { "data-layout": options.layout, children: state.items.map(
6037
+ (item) => options.renderItem ? options.renderItem(item, state) : /* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(KeepItemCard, { item, ...options.itemCardProps }) }, item.id)
5305
6038
  ) });
5306
6039
  }
5307
6040
  function hasActiveQueryFilters(query) {
@@ -5312,12 +6045,12 @@ function hasActiveQueryFilters(query) {
5312
6045
  }
5313
6046
 
5314
6047
  // src/features/collection/KeepCollection.tsx
5315
- import { Fragment as Fragment12, jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
6048
+ import { Fragment as Fragment12, jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
5316
6049
  function KeepCollection(props) {
5317
6050
  const { fallback, onBoundaryError, boundaryResetKey, ...collectionProps } = props;
5318
- const content = /* @__PURE__ */ jsx22(KeepCollectionContent, { ...collectionProps });
6051
+ const content = /* @__PURE__ */ jsx23(KeepCollectionContent, { ...collectionProps });
5319
6052
  if (fallback === void 0 && onBoundaryError === void 0) return content;
5320
- return /* @__PURE__ */ jsx22(KeepErrorBoundary2, { fallback, onError: onBoundaryError, resetKey: boundaryResetKey, children: content });
6053
+ return /* @__PURE__ */ jsx23(KeepErrorBoundary2, { fallback, onError: onBoundaryError, resetKey: boundaryResetKey, children: content });
5321
6054
  }
5322
6055
  function KeepCollectionContent({
5323
6056
  query = {},
@@ -5350,13 +6083,13 @@ function KeepCollectionContent({
5350
6083
  }) {
5351
6084
  const view = useKeepCollection({ query, pageSize, urlSync, urlAdapter, features, archiveScope });
5352
6085
  const revealRequestId = useRef9(void 0);
5353
- useEffect10(() => {
6086
+ useEffect11(() => {
5354
6087
  if (!revealRequest || revealRequestId.current === revealRequest.requestId) return;
5355
6088
  revealRequestId.current = revealRequest.requestId;
5356
6089
  const status = view.reveal(revealRequest.itemId);
5357
6090
  onRevealResult?.({ ...revealRequest, status });
5358
6091
  }, [onRevealResult, revealRequest, view.reveal]);
5359
- const [reorderUndoIds, setReorderUndoIds] = useState15(null);
6092
+ const [reorderUndoIds, setReorderUndoIds] = useState17(null);
5360
6093
  const reorderUndoLabel = useUiLabel("undoReorder");
5361
6094
  const handleReorder = async (orderedIds) => {
5362
6095
  const previousIds = view.list.items.map((item) => item.id);
@@ -5369,7 +6102,7 @@ function KeepCollectionContent({
5369
6102
  setReorderUndoIds(previousIds);
5370
6103
  await onReorder?.(orderedItems);
5371
6104
  };
5372
- useEffect10(() => {
6105
+ useEffect11(() => {
5373
6106
  if (!reorderUndoIds) return;
5374
6107
  const timer = window.setTimeout(() => setReorderUndoIds(null), 5e3);
5375
6108
  return () => window.clearTimeout(timer);
@@ -5392,13 +6125,13 @@ function KeepCollectionContent({
5392
6125
  const structuredToolbar = toolbarLayout === "grouped" || toolbarVariant === "panel" || creatable || slots?.toolbarStart !== void 0 || slots?.toolbarEnd !== void 0;
5393
6126
  const hasQueryControls = view.enabled.search || view.enabled.sort;
5394
6127
  const hasFilterControls = view.enabled.tagFilter || view.enabled.collectionFilter || archiveScope !== void 0;
5395
- const queryControls = hasQueryControls ? /* @__PURE__ */ jsxs19(Fragment12, { children: [
5396
- view.enabled.search ? /* @__PURE__ */ jsx22(KeepSearchInput, { value: view.searchValue, onValueChange: view.setSearchValue }) : null,
5397
- view.enabled.sort ? /* @__PURE__ */ jsx22(KeepSortSelect, { value: view.sortValue, onValueChange: view.setSortValue }) : null
6128
+ const queryControls = hasQueryControls ? /* @__PURE__ */ jsxs20(Fragment12, { children: [
6129
+ view.enabled.search ? /* @__PURE__ */ jsx23(KeepSearchInput, { value: view.searchValue, onValueChange: view.setSearchValue }) : null,
6130
+ view.enabled.sort ? /* @__PURE__ */ jsx23(KeepSortSelect, { value: view.sortValue, onValueChange: view.setSortValue }) : null
5398
6131
  ] }) : null;
5399
- const filterControls = hasFilterControls ? /* @__PURE__ */ jsxs19(Fragment12, { children: [
5400
- view.enabled.tagFilter ? /* @__PURE__ */ jsx22(KeepTagFilter, { query, value: view.activeTags[0], onValueChange: view.setTag }) : null,
5401
- view.enabled.collectionFilter ? /* @__PURE__ */ jsx22(
6132
+ const filterControls = hasFilterControls ? /* @__PURE__ */ jsxs20(Fragment12, { children: [
6133
+ view.enabled.tagFilter ? /* @__PURE__ */ jsx23(KeepTagFilter, { query, value: view.activeTags[0], onValueChange: view.setTag }) : null,
6134
+ view.enabled.collectionFilter ? /* @__PURE__ */ jsx23(
5402
6135
  KeepCollectionFilter,
5403
6136
  {
5404
6137
  value: view.activeCollection,
@@ -5406,7 +6139,7 @@ function KeepCollectionContent({
5406
6139
  collectionLabels
5407
6140
  }
5408
6141
  ) : null,
5409
- archiveScope !== void 0 ? /* @__PURE__ */ jsx22(
6142
+ archiveScope !== void 0 ? /* @__PURE__ */ jsx23(
5410
6143
  KeepArchiveScopeSelect,
5411
6144
  {
5412
6145
  value: view.archiveScope,
@@ -5421,14 +6154,16 @@ function KeepCollectionContent({
5421
6154
  const toolbarQueryLabel = useUiLabel("toolbarQuery");
5422
6155
  const toolbarFiltersLabel = useUiLabel("toolbarFilters");
5423
6156
  const toolbarEndLabel = useUiLabel("toolbarEnd");
6157
+ const uncategorizedLabel = useUiLabel("uncategorized");
6158
+ const activeCollectionLabel = view.activeCollection === "__uncategorized__" ? uncategorizedLabel : view.activeCollection === void 0 ? void 0 : collectionLabels?.[view.activeCollection] ?? view.activeCollection;
5424
6159
  const toolbarStartContent = slots?.toolbarStart === void 0 ? null : resolveContent(slots.toolbarStart, view.list);
5425
- const creatableContent = creatable ? /* @__PURE__ */ jsx22(KeepCollectionCreate, {}) : null;
6160
+ const creatableContent = creatable ? /* @__PURE__ */ jsx23(KeepCollectionCreate, {}) : null;
5426
6161
  const toolbarEndContent = creatableContent ?? (slots?.toolbarEnd === void 0 ? null : resolveContent(slots.toolbarEnd, view.list));
5427
6162
  const hasToolbarContent = hasQueryControls || hasFilterControls || hasRenderableContent(toolbarStartContent) || hasRenderableContent(toolbarEndContent);
5428
6163
  const renderToolbarGroup = (group, content, label) => {
5429
6164
  if (!hasRenderableContent(content)) return null;
5430
6165
  const labelId = `${toolbarId}-${group}`;
5431
- return /* @__PURE__ */ jsxs19(
6166
+ return /* @__PURE__ */ jsxs20(
5432
6167
  "fieldset",
5433
6168
  {
5434
6169
  "data-keepkit": "collection-toolbar-group",
@@ -5436,22 +6171,22 @@ function KeepCollectionContent({
5436
6171
  role: "group",
5437
6172
  "aria-labelledby": labelId,
5438
6173
  children: [
5439
- /* @__PURE__ */ jsx22("legend", { id: labelId, "data-keepkit": "collection-toolbar-label", children: label }),
5440
- /* @__PURE__ */ jsx22("div", { "data-keepkit": "collection-toolbar-content", children: content })
6174
+ /* @__PURE__ */ jsx23("legend", { id: labelId, "data-keepkit": "collection-toolbar-label", children: label }),
6175
+ /* @__PURE__ */ jsx23("div", { "data-keepkit": "collection-toolbar-content", children: content })
5441
6176
  ]
5442
6177
  }
5443
6178
  );
5444
6179
  };
5445
- const toolbar = !structuredToolbar ? /* @__PURE__ */ jsxs19("div", { children: [
6180
+ const toolbar = !structuredToolbar ? /* @__PURE__ */ jsxs20("div", { children: [
5446
6181
  queryControls,
5447
6182
  filterControls
5448
- ] }) : !hasToolbarContent ? null : /* @__PURE__ */ jsxs19("div", { "data-keepkit": "collection-toolbar", "data-variant": toolbarVariant, "data-layout": toolbarLayout, children: [
6183
+ ] }) : !hasToolbarContent ? null : /* @__PURE__ */ jsxs20("div", { "data-keepkit": "collection-toolbar", "data-variant": toolbarVariant, "data-layout": toolbarLayout, children: [
5449
6184
  renderToolbarGroup("toolbarStart", toolbarStartContent, toolbarStartLabel),
5450
6185
  renderToolbarGroup("query", queryControls, toolbarQueryLabel),
5451
6186
  renderToolbarGroup("filters", filterControls, toolbarFiltersLabel),
5452
6187
  renderToolbarGroup("toolbarEnd", toolbarEndContent, toolbarEndLabel)
5453
6188
  ] });
5454
- return /* @__PURE__ */ jsxs19(
6189
+ return /* @__PURE__ */ jsxs20(
5455
6190
  "section",
5456
6191
  {
5457
6192
  ...rootProps,
@@ -5465,17 +6200,38 @@ function KeepCollectionContent({
5465
6200
  "data-loading": view.list.isLoading || view.list.isMutating ? "true" : void 0,
5466
6201
  children: [
5467
6202
  toolbar,
5468
- activeFilters === void 0 ? /* @__PURE__ */ jsx22(
6203
+ view.enabled.savedViews ? /* @__PURE__ */ jsxs20("div", { "data-keepkit": "saved-view-controls", children: [
6204
+ /* @__PURE__ */ jsx23(KeepSavedViews, { onApply: view.applyQuery }),
6205
+ /* @__PURE__ */ jsx23(KeepSaveViewButton, { query: view.resolvedQuery })
6206
+ ] }) : null,
6207
+ activeFilters === void 0 ? /* @__PURE__ */ jsx23(
5469
6208
  KeepActiveFiltersSummary,
5470
6209
  {
5471
6210
  search: view.searchValue,
5472
6211
  tags: view.activeTags,
6212
+ collection: view.activeCollection,
6213
+ collectionLabel: activeCollectionLabel,
6214
+ organization: view.resolvedQuery.organization,
6215
+ savedBetween: view.resolvedQuery.savedBetween,
6216
+ activity: view.activity,
6217
+ archiveScope: view.archiveScope,
6218
+ totalCount: view.list.totalCount,
5473
6219
  onSearchChange: view.setSearchValue,
5474
6220
  onTagChange: view.removeTag,
5475
- onClear: view.clearFilters
6221
+ onCollectionChange: view.setCollection,
6222
+ onOrganizationChange: view.setOrganization,
6223
+ onSavedBetweenChange: view.setSavedBetween,
6224
+ onActivityChange: view.setActivity,
6225
+ onArchiveScopeChange: (next) => {
6226
+ view.setArchiveScope(next);
6227
+ onArchiveScopeChange?.(next);
6228
+ },
6229
+ onClear: view.clearFilters,
6230
+ onReset: view.resetFilters,
6231
+ canReset: view.canReset
5476
6232
  }
5477
6233
  ) : resolveContent(activeFilters, view.list),
5478
- /* @__PURE__ */ jsx22(
6234
+ /* @__PURE__ */ jsx23(
5479
6235
  KeepList,
5480
6236
  {
5481
6237
  query: view.resolvedQuery,
@@ -5492,7 +6248,7 @@ function KeepCollectionContent({
5492
6248
  error
5493
6249
  }
5494
6250
  ),
5495
- view.enabled.pagination ? /* @__PURE__ */ jsx22(
6251
+ view.enabled.pagination ? /* @__PURE__ */ jsx23(
5496
6252
  KeepPagination,
5497
6253
  {
5498
6254
  totalCount: view.list.totalCount,
@@ -5501,8 +6257,8 @@ function KeepCollectionContent({
5501
6257
  onPageChange: view.setPage
5502
6258
  }
5503
6259
  ) : null,
5504
- view.enabled.bulkActions ? /* @__PURE__ */ jsx22(KeepBulkActions, { query: view.resolvedQuery }) : null,
5505
- reorderable && reorderUndoIds ? /* @__PURE__ */ jsx22("div", { "data-keepkit": "reorder-feedback", role: "status", "aria-live": "polite", children: /* @__PURE__ */ jsx22("button", { type: "button", "data-keep-action": "undo-reorder", onClick: () => void undoReorder(), children: reorderUndoLabel }) }) : null
6260
+ view.enabled.bulkActions ? /* @__PURE__ */ jsx23(KeepBulkActions, { query: view.resolvedQuery }) : null,
6261
+ reorderable && reorderUndoIds ? /* @__PURE__ */ jsx23("div", { "data-keepkit": "reorder-feedback", role: "status", "aria-live": "polite", children: /* @__PURE__ */ jsx23("button", { type: "button", "data-keep-action": "undo-reorder", onClick: () => void undoReorder(), children: reorderUndoLabel }) }) : null
5506
6262
  ]
5507
6263
  }
5508
6264
  );
@@ -5518,8 +6274,8 @@ function getCollectionState(list) {
5518
6274
  import { useId as useId5 } from "react";
5519
6275
 
5520
6276
  // src/features/collection/hooks/useKeepCollectionManager.ts
5521
- import { useKeepCollections as useKeepCollections4, useKeepContext as useKeepContext6 } from "@keepkit/core/react";
5522
- import { useCallback as useCallback7, useState as useState16 } from "react";
6277
+ import { useKeepCollections as useKeepCollections5, useKeepContext as useKeepContext6 } from "@keepkit/core/react";
6278
+ import { useCallback as useCallback8, useState as useState18 } from "react";
5523
6279
  function useKeepCollectionManager({
5524
6280
  onError,
5525
6281
  onRenamed,
@@ -5533,13 +6289,13 @@ function useKeepCollectionManager({
5533
6289
  removeCollection,
5534
6290
  moveToCollection
5535
6291
  } = useKeepContext6();
5536
- const collections = useKeepCollections4({ orderBy: "name" });
5537
- const [editingId, setEditingId] = useState16(null);
5538
- const [editingName, setEditingName] = useState16("");
5539
- const [pendingDeleteId, setPendingDeleteId] = useState16(null);
5540
- const [error, setError] = useState16(null);
5541
- const [isMutating, setIsMutating] = useState16(false);
5542
- const reportError = useCallback7(
6292
+ const collections = useKeepCollections5({ orderBy: "name" });
6293
+ const [editingId, setEditingId] = useState18(null);
6294
+ const [editingName, setEditingName] = useState18("");
6295
+ const [pendingDeleteId, setPendingDeleteId] = useState18(null);
6296
+ const [error, setError] = useState18(null);
6297
+ const [isMutating, setIsMutating] = useState18(false);
6298
+ const reportError = useCallback8(
5543
6299
  (cause, fallback) => {
5544
6300
  const message = cause instanceof Error ? cause.message : fallback;
5545
6301
  setError(message);
@@ -5547,7 +6303,7 @@ function useKeepCollectionManager({
5547
6303
  },
5548
6304
  [onError]
5549
6305
  );
5550
- const runMutation = useCallback7(
6306
+ const runMutation = useCallback8(
5551
6307
  async (operation) => {
5552
6308
  setError(null);
5553
6309
  setIsMutating(true);
@@ -5561,7 +6317,7 @@ function useKeepCollectionManager({
5561
6317
  },
5562
6318
  [reportError]
5563
6319
  );
5564
- const beginRename = useCallback7(
6320
+ const beginRename = useCallback8(
5565
6321
  (id) => {
5566
6322
  const collection = collections.find((entry) => entry.id === id);
5567
6323
  if (!collection) return;
@@ -5572,11 +6328,11 @@ function useKeepCollectionManager({
5572
6328
  },
5573
6329
  [collections]
5574
6330
  );
5575
- const cancelRename = useCallback7(() => {
6331
+ const cancelRename = useCallback8(() => {
5576
6332
  setEditingId(null);
5577
6333
  setEditingName("");
5578
6334
  }, []);
5579
- const rename = useCallback7(
6335
+ const rename = useCallback8(
5580
6336
  async (id) => {
5581
6337
  const name = editingName.trim();
5582
6338
  if (!name) return;
@@ -5608,13 +6364,13 @@ function useKeepCollectionManager({
5608
6364
  runMutation
5609
6365
  ]
5610
6366
  );
5611
- const requestDelete = useCallback7((id) => {
6367
+ const requestDelete = useCallback8((id) => {
5612
6368
  setError(null);
5613
6369
  setEditingId(null);
5614
6370
  setPendingDeleteId(id);
5615
6371
  }, []);
5616
- const cancelDelete = useCallback7(() => setPendingDeleteId(null), []);
5617
- const confirmDelete = useCallback7(async () => {
6372
+ const cancelDelete = useCallback8(() => setPendingDeleteId(null), []);
6373
+ const confirmDelete = useCallback8(async () => {
5618
6374
  if (!pendingDeleteId) return;
5619
6375
  const id = pendingDeleteId;
5620
6376
  await runMutation(async () => {
@@ -5647,7 +6403,7 @@ function useKeepCollectionManager({
5647
6403
  }
5648
6404
 
5649
6405
  // src/features/collection/KeepCollectionManager.tsx
5650
- import { Fragment as Fragment13, jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
6406
+ import { Fragment as Fragment13, jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
5651
6407
  function KeepCollectionManager({
5652
6408
  allowCreate = true,
5653
6409
  allowRename = true,
@@ -5675,7 +6431,7 @@ function KeepCollectionManager({
5675
6431
  const itemLabel = useUiLabel("collectionItem");
5676
6432
  const itemsLabel = useUiLabel("collectionItems");
5677
6433
  const defaultTitle = useUiLabel("manageCollections");
5678
- return /* @__PURE__ */ jsxs20(
6434
+ return /* @__PURE__ */ jsxs21(
5679
6435
  "section",
5680
6436
  {
5681
6437
  ...rootProps,
@@ -5685,17 +6441,17 @@ function KeepCollectionManager({
5685
6441
  "data-loading": manager.isMutating ? "true" : void 0,
5686
6442
  "aria-labelledby": rootProps["aria-labelledby"] ?? headingId,
5687
6443
  children: [
5688
- /* @__PURE__ */ jsxs20("header", { "data-keepkit": "collection-manager-heading", children: [
5689
- /* @__PURE__ */ jsx23("h2", { id: headingId, children: title ?? defaultTitle }),
5690
- hasRenderableContent(description) ? /* @__PURE__ */ jsx23("p", { children: description }) : null
6444
+ /* @__PURE__ */ jsxs21("header", { "data-keepkit": "collection-manager-heading", children: [
6445
+ /* @__PURE__ */ jsx24("h2", { id: headingId, children: title ?? defaultTitle }),
6446
+ hasRenderableContent(description) ? /* @__PURE__ */ jsx24("p", { children: description }) : null
5691
6447
  ] }),
5692
- allowCreate ? /* @__PURE__ */ jsx23(KeepCollectionCreate, { onCreated, onError }) : null,
5693
- manager.error ? /* @__PURE__ */ jsx23("p", { "data-keepkit": "collection-manager-error", role: "alert", children: manager.error }) : null,
5694
- manager.collections.length > 0 ? /* @__PURE__ */ jsx23("ul", { "data-keepkit": "collection-manager-list", children: manager.collections.map((collection) => {
6448
+ allowCreate ? /* @__PURE__ */ jsx24(KeepCollectionCreate, { onCreated, onError }) : null,
6449
+ manager.error ? /* @__PURE__ */ jsx24("p", { "data-keepkit": "collection-manager-error", role: "alert", children: manager.error }) : null,
6450
+ manager.collections.length > 0 ? /* @__PURE__ */ jsx24("ul", { "data-keepkit": "collection-manager-list", children: manager.collections.map((collection) => {
5695
6451
  const name = collectionLabels?.[collection.id] ?? collection.name;
5696
6452
  const isEditing = manager.editingId === collection.id;
5697
6453
  const isPendingDelete = manager.pendingDeleteId === collection.id;
5698
- return /* @__PURE__ */ jsx23("li", { "data-keepkit": "collection-manager-item", children: isEditing && allowRename ? /* @__PURE__ */ jsxs20(
6454
+ return /* @__PURE__ */ jsx24("li", { "data-keepkit": "collection-manager-item", children: isEditing && allowRename ? /* @__PURE__ */ jsxs21(
5699
6455
  "form",
5700
6456
  {
5701
6457
  "data-keepkit": "collection-manager-rename",
@@ -5704,12 +6460,12 @@ function KeepCollectionManager({
5704
6460
  void manager.rename(collection.id);
5705
6461
  },
5706
6462
  children: [
5707
- /* @__PURE__ */ jsxs20("label", { htmlFor: `${headingId}-rename-${collection.id}`, children: [
6463
+ /* @__PURE__ */ jsxs21("label", { htmlFor: `${headingId}-rename-${collection.id}`, children: [
5708
6464
  renameLabel,
5709
6465
  ": ",
5710
6466
  name
5711
6467
  ] }),
5712
- /* @__PURE__ */ jsx23(
6468
+ /* @__PURE__ */ jsx24(
5713
6469
  "input",
5714
6470
  {
5715
6471
  id: `${headingId}-rename-${collection.id}`,
@@ -5719,7 +6475,7 @@ function KeepCollectionManager({
5719
6475
  "data-keep-action": "rename-collection-input"
5720
6476
  }
5721
6477
  ),
5722
- /* @__PURE__ */ jsx23(
6478
+ /* @__PURE__ */ jsx24(
5723
6479
  "button",
5724
6480
  {
5725
6481
  type: "submit",
@@ -5728,7 +6484,7 @@ function KeepCollectionManager({
5728
6484
  children: renameSubmitLabel
5729
6485
  }
5730
6486
  ),
5731
- /* @__PURE__ */ jsx23(
6487
+ /* @__PURE__ */ jsx24(
5732
6488
  "button",
5733
6489
  {
5734
6490
  type: "button",
@@ -5740,18 +6496,18 @@ function KeepCollectionManager({
5740
6496
  )
5741
6497
  ]
5742
6498
  }
5743
- ) : /* @__PURE__ */ jsxs20(Fragment13, { children: [
5744
- /* @__PURE__ */ jsxs20("div", { "data-keepkit": "collection-manager-summary", children: [
5745
- /* @__PURE__ */ jsx23("span", { "data-keepkit": "collection-manager-name", children: name }),
5746
- showCounts ? /* @__PURE__ */ jsxs20("span", { "data-keepkit": "collection-manager-count", children: [
6499
+ ) : /* @__PURE__ */ jsxs21(Fragment13, { children: [
6500
+ /* @__PURE__ */ jsxs21("div", { "data-keepkit": "collection-manager-summary", children: [
6501
+ /* @__PURE__ */ jsx24("span", { "data-keepkit": "collection-manager-name", children: name }),
6502
+ showCounts ? /* @__PURE__ */ jsxs21("span", { "data-keepkit": "collection-manager-count", children: [
5747
6503
  collection.count,
5748
6504
  " ",
5749
6505
  collection.count === 1 ? itemLabel : itemsLabel
5750
6506
  ] }) : null
5751
6507
  ] }),
5752
- isPendingDelete && allowDelete ? /* @__PURE__ */ jsxs20("fieldset", { "data-keepkit": "collection-manager-delete-confirmation", children: [
5753
- /* @__PURE__ */ jsx23("legend", { children: deleteConfirmLabel }),
5754
- /* @__PURE__ */ jsx23(
6508
+ isPendingDelete && allowDelete ? /* @__PURE__ */ jsxs21("fieldset", { "data-keepkit": "collection-manager-delete-confirmation", children: [
6509
+ /* @__PURE__ */ jsx24("legend", { children: deleteConfirmLabel }),
6510
+ /* @__PURE__ */ jsx24(
5755
6511
  "button",
5756
6512
  {
5757
6513
  type: "button",
@@ -5761,7 +6517,7 @@ function KeepCollectionManager({
5761
6517
  children: deleteSubmitLabel
5762
6518
  }
5763
6519
  ),
5764
- /* @__PURE__ */ jsx23(
6520
+ /* @__PURE__ */ jsx24(
5765
6521
  "button",
5766
6522
  {
5767
6523
  type: "button",
@@ -5771,8 +6527,8 @@ function KeepCollectionManager({
5771
6527
  children: cancelLabel
5772
6528
  }
5773
6529
  )
5774
- ] }) : /* @__PURE__ */ jsxs20("div", { "data-keepkit": "collection-manager-actions", children: [
5775
- allowRename ? /* @__PURE__ */ jsx23(
6530
+ ] }) : /* @__PURE__ */ jsxs21("div", { "data-keepkit": "collection-manager-actions", children: [
6531
+ allowRename ? /* @__PURE__ */ jsx24(
5776
6532
  "button",
5777
6533
  {
5778
6534
  type: "button",
@@ -5783,7 +6539,7 @@ function KeepCollectionManager({
5783
6539
  children: renameLabel
5784
6540
  }
5785
6541
  ) : null,
5786
- allowDelete ? /* @__PURE__ */ jsx23(
6542
+ allowDelete ? /* @__PURE__ */ jsx24(
5787
6543
  "button",
5788
6544
  {
5789
6545
  type: "button",
@@ -5796,19 +6552,34 @@ function KeepCollectionManager({
5796
6552
  ) : null
5797
6553
  ] })
5798
6554
  ] }) }, collection.id);
5799
- }) }) : hasRenderableContent(empty) ? /* @__PURE__ */ jsx23("div", { "data-keepkit": "collection-manager-empty", children: empty }) : null
6555
+ }) }) : hasRenderableContent(empty) ? /* @__PURE__ */ jsx24("div", { "data-keepkit": "collection-manager-empty", children: empty }) : null
5800
6556
  ]
5801
6557
  }
5802
6558
  );
5803
6559
  }
5804
6560
 
6561
+ // src/features/collection/KeepInbox.tsx
6562
+ import { createInboxQuery } from "@keepkit/core/core";
6563
+ import { jsx as jsx25 } from "react/jsx-runtime";
6564
+ function KeepInbox({ query, ...props }) {
6565
+ const inboxQuery = createInboxQuery({ organization: query?.organization });
6566
+ return /* @__PURE__ */ jsx25(
6567
+ KeepCollection,
6568
+ {
6569
+ ...props,
6570
+ query: { ...inboxQuery, ...query, organization: inboxQuery.organization },
6571
+ features: { note: true, archive: true, bulkActions: true, tags: true, ...props.features }
6572
+ }
6573
+ );
6574
+ }
6575
+
5805
6576
  // src/features/collection/KeepLayout.tsx
5806
- import { jsx as jsx24 } from "react/jsx-runtime";
6577
+ import { jsx as jsx26 } from "react/jsx-runtime";
5807
6578
  function KeepLayout({ layout = "list", children, onKeyDown, onFocusCapture, ...props }) {
5808
6579
  const roving = useRovingTabIndex();
5809
6580
  return (
5810
6581
  // biome-ignore lint/a11y/noStaticElementInteractions: The group manages keyboard focus for descendant cards.
5811
- /* @__PURE__ */ jsx24(
6582
+ /* @__PURE__ */ jsx26(
5812
6583
  "div",
5813
6584
  {
5814
6585
  ...props,
@@ -5835,7 +6606,7 @@ function KeepLayout({ layout = "list", children, onKeyDown, onFocusCapture, ...p
5835
6606
  import { isValidElement as isValidElement7 } from "react";
5836
6607
 
5837
6608
  // src/features/navigation/KeepShortcutHint.tsx
5838
- import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
6609
+ import { jsx as jsx27, jsxs as jsxs22 } from "react/jsx-runtime";
5839
6610
  function KeepShortcutHint({ shortcut, separator = "+", ...props }) {
5840
6611
  const keys = typeof shortcut === "string" ? shortcut.split("+") : [...shortcut];
5841
6612
  const occurrences = /* @__PURE__ */ new Map();
@@ -5844,24 +6615,24 @@ function KeepShortcutHint({ shortcut, separator = "+", ...props }) {
5844
6615
  occurrences.set(key, occurrence + 1);
5845
6616
  return { id: `${key}-${occurrence}`, value: key };
5846
6617
  });
5847
- return /* @__PURE__ */ jsx25("span", { ...props, "data-keepkit": "shortcut-hint", "aria-hidden": props["aria-hidden"] ?? true, children: keyedKeys.map((key, index) => /* @__PURE__ */ jsxs21("span", { children: [
5848
- index > 0 ? /* @__PURE__ */ jsx25("span", { "data-shortcut-separator": "true", children: separator }) : null,
5849
- /* @__PURE__ */ jsx25("kbd", { children: key.value.trim() })
6618
+ return /* @__PURE__ */ jsx27("span", { ...props, "data-keepkit": "shortcut-hint", "aria-hidden": props["aria-hidden"] ?? true, children: keyedKeys.map((key, index) => /* @__PURE__ */ jsxs22("span", { children: [
6619
+ index > 0 ? /* @__PURE__ */ jsx27("span", { "data-shortcut-separator": "true", children: separator }) : null,
6620
+ /* @__PURE__ */ jsx27("kbd", { children: key.value.trim() })
5850
6621
  ] }, key.id)) });
5851
6622
  }
5852
6623
 
5853
6624
  // src/features/editor/hooks/useKeepNoteEditor.ts
5854
6625
  import { useKeepItem as useKeepItem6 } from "@keepkit/core/react";
5855
- import { useCallback as useCallback8, useEffect as useEffect11, useRef as useRef10, useState as useState17 } from "react";
6626
+ import { useCallback as useCallback9, useEffect as useEffect12, useRef as useRef10, useState as useState19 } from "react";
5856
6627
  function useKeepNoteEditor({ item, debounceMs, onSaved, onSaveError }) {
5857
6628
  const itemState = useKeepItem6(item);
5858
6629
  const { error, isMutating, item: savedItem, updateNote } = itemState;
5859
- const [note, setNote] = useState17(item.note ?? "");
6630
+ const [note, setNote] = useState19(item.note ?? "");
5860
6631
  const baselineNote = savedItem?.note ?? item.note ?? "";
5861
6632
  const isDirty = note !== baselineNote;
5862
6633
  const lastSavedNoteRef = useRef10(void 0);
5863
- useEffect11(() => setNote(baselineNote), [baselineNote]);
5864
- const save = useCallback8(async () => {
6634
+ useEffect12(() => setNote(baselineNote), [baselineNote]);
6635
+ const save = useCallback9(async () => {
5865
6636
  const nextNote = note.trim() || void 0;
5866
6637
  try {
5867
6638
  await updateNote(nextNote);
@@ -5872,7 +6643,7 @@ function useKeepNoteEditor({ item, debounceMs, onSaved, onSaveError }) {
5872
6643
  throw cause;
5873
6644
  }
5874
6645
  }, [note, onSaveError, onSaved, updateNote]);
5875
- useEffect11(() => {
6646
+ useEffect12(() => {
5876
6647
  if (!isDirty || debounceMs <= 0 || lastSavedNoteRef.current === note) return;
5877
6648
  const timer = window.setTimeout(() => void save().catch(() => void 0), debounceMs);
5878
6649
  return () => window.clearTimeout(timer);
@@ -5907,7 +6678,7 @@ function useKeepNoteEditor({ item, debounceMs, onSaved, onSaveError }) {
5907
6678
  }
5908
6679
 
5909
6680
  // src/features/editor/KeepNoteEditor.tsx
5910
- import { Fragment as Fragment14, jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
6681
+ import { Fragment as Fragment14, jsx as jsx28, jsxs as jsxs23 } from "react/jsx-runtime";
5911
6682
  function KeepNoteEditor({
5912
6683
  item,
5913
6684
  label,
@@ -5930,10 +6701,10 @@ function KeepNoteEditor({
5930
6701
  const saveAccessibleLabel = useUiLabel("saveNote");
5931
6702
  const { error, isDirty, isSaving, note, setNote } = view.state;
5932
6703
  const contentChildren = asChild && isValidElement7(children) ? void 0 : children;
5933
- const body = render ? render(view.state) : typeof contentChildren === "function" ? contentChildren(view.state) : contentChildren ?? /* @__PURE__ */ jsxs22(Fragment14, { children: [
5934
- /* @__PURE__ */ jsxs22("label", { children: [
6704
+ const body = render ? render(view.state) : typeof contentChildren === "function" ? contentChildren(view.state) : contentChildren ?? /* @__PURE__ */ jsxs23(Fragment14, { children: [
6705
+ /* @__PURE__ */ jsxs23("label", { children: [
5935
6706
  showNoteLabel ? label ?? view.labels.note : null,
5936
- /* @__PURE__ */ jsx26(
6707
+ /* @__PURE__ */ jsx28(
5937
6708
  "textarea",
5938
6709
  {
5939
6710
  "data-keep-action": "edit-note",
@@ -5946,7 +6717,7 @@ function KeepNoteEditor({
5946
6717
  }
5947
6718
  )
5948
6719
  ] }),
5949
- /* @__PURE__ */ jsxs22(
6720
+ /* @__PURE__ */ jsxs23(
5950
6721
  "button",
5951
6722
  {
5952
6723
  type: "submit",
@@ -5956,13 +6727,13 @@ function KeepNoteEditor({
5956
6727
  "aria-label": showSaveLabel ? void 0 : saveAccessibleLabel,
5957
6728
  children: [
5958
6729
  showSaveLabel ? saveLabel ?? view.labels.save : null,
5959
- showShortcutHint ? /* @__PURE__ */ jsx26(KeepShortcutHint, { shortcut: "Ctrl+Enter" }) : null
6730
+ showShortcutHint ? /* @__PURE__ */ jsx28(KeepShortcutHint, { shortcut: "Ctrl+Enter" }) : null
5960
6731
  ]
5961
6732
  }
5962
6733
  )
5963
6734
  ] });
5964
6735
  if (!asChild) {
5965
- return /* @__PURE__ */ jsxs22(
6736
+ return /* @__PURE__ */ jsxs23(
5966
6737
  "form",
5967
6738
  {
5968
6739
  ...formProps,
@@ -5975,7 +6746,7 @@ function KeepNoteEditor({
5975
6746
  "data-disabled": isSaving ? "true" : void 0,
5976
6747
  children: [
5977
6748
  body,
5978
- error ? /* @__PURE__ */ jsx26("p", { role: "alert", children: getErrorMessage(error, view.labels.error) }) : null
6749
+ error ? /* @__PURE__ */ jsx28("p", { role: "alert", children: getErrorMessage(error, view.labels.error) }) : null
5979
6750
  ]
5980
6751
  }
5981
6752
  );
@@ -6000,13 +6771,13 @@ function KeepNoteEditor({
6000
6771
 
6001
6772
  // src/features/editor/hooks/useKeepTagEditor.ts
6002
6773
  import { useKeepItem as useKeepItem7 } from "@keepkit/core/react";
6003
- import { useCallback as useCallback9, useEffect as useEffect12, useState as useState18 } from "react";
6774
+ import { useCallback as useCallback10, useEffect as useEffect13, useState as useState20 } from "react";
6004
6775
  function useKeepTagEditor({ item, onSaved, onSaveError }) {
6005
6776
  const itemState = useKeepItem7(item);
6006
- const [tags, setTags] = useState18(item.tags ?? []);
6007
- const [input, setInput] = useState18("");
6008
- useEffect12(() => setTags(itemState.item?.tags ?? item.tags ?? []), [item.tags, itemState.item?.tags]);
6009
- const save = useCallback9(async () => {
6777
+ const [tags, setTags] = useState20(item.tags ?? []);
6778
+ const [input, setInput] = useState20("");
6779
+ useEffect13(() => setTags(itemState.item?.tags ?? item.tags ?? []), [item.tags, itemState.item?.tags]);
6780
+ const save = useCallback10(async () => {
6010
6781
  const nextTags = normalizeUiTags(tags);
6011
6782
  try {
6012
6783
  await itemState.updateTags(nextTags);
@@ -6052,7 +6823,7 @@ function useKeepTagEditor({ item, onSaved, onSaveError }) {
6052
6823
  }
6053
6824
 
6054
6825
  // src/features/editor/KeepTagEditor.tsx
6055
- import { Fragment as Fragment15, jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
6826
+ import { Fragment as Fragment15, jsx as jsx29, jsxs as jsxs24 } from "react/jsx-runtime";
6056
6827
  function KeepTagEditor({
6057
6828
  item,
6058
6829
  availableTags = [],
@@ -6067,10 +6838,10 @@ function KeepTagEditor({
6067
6838
  const showRemoveLabel = useUiLabelVisibility("remove");
6068
6839
  const showApplyLabel = useUiLabelVisibility("applyTags");
6069
6840
  const { isSaving, tags } = view.state;
6070
- const body = render ? render(view.state) : /* @__PURE__ */ jsxs23(Fragment15, { children: [
6071
- /* @__PURE__ */ jsxs23("label", { children: [
6841
+ const body = render ? render(view.state) : /* @__PURE__ */ jsxs24(Fragment15, { children: [
6842
+ /* @__PURE__ */ jsxs24("label", { children: [
6072
6843
  showTagsLabel ? view.labels.tags : null,
6073
- /* @__PURE__ */ jsx27(
6844
+ /* @__PURE__ */ jsx29(
6074
6845
  "input",
6075
6846
  {
6076
6847
  "data-keep-action": "edit-tags",
@@ -6082,10 +6853,10 @@ function KeepTagEditor({
6082
6853
  }
6083
6854
  )
6084
6855
  ] }),
6085
- availableTags.length > 0 ? /* @__PURE__ */ jsx27("datalist", { id: `keep-tags-${item.id}`, children: availableTags.map((tag) => /* @__PURE__ */ jsx27("option", { value: tag }, tag)) }) : null,
6086
- /* @__PURE__ */ jsx27("ul", { "aria-label": view.labels.tags, children: tags.map((tag) => /* @__PURE__ */ jsxs23("li", { children: [
6856
+ availableTags.length > 0 ? /* @__PURE__ */ jsx29("datalist", { id: `keep-tags-${item.id}`, children: availableTags.map((tag) => /* @__PURE__ */ jsx29("option", { value: tag }, tag)) }) : null,
6857
+ /* @__PURE__ */ jsx29("ul", { "aria-label": view.labels.tags, children: tags.map((tag) => /* @__PURE__ */ jsxs24("li", { children: [
6087
6858
  tag,
6088
- /* @__PURE__ */ jsx27(
6859
+ /* @__PURE__ */ jsx29(
6089
6860
  "button",
6090
6861
  {
6091
6862
  type: "button",
@@ -6096,7 +6867,7 @@ function KeepTagEditor({
6096
6867
  }
6097
6868
  )
6098
6869
  ] }, tag)) }),
6099
- /* @__PURE__ */ jsx27(
6870
+ /* @__PURE__ */ jsx29(
6100
6871
  "button",
6101
6872
  {
6102
6873
  type: "submit",
@@ -6108,7 +6879,7 @@ function KeepTagEditor({
6108
6879
  }
6109
6880
  )
6110
6881
  ] });
6111
- return /* @__PURE__ */ jsxs23(
6882
+ return /* @__PURE__ */ jsxs24(
6112
6883
  "form",
6113
6884
  {
6114
6885
  ...props,
@@ -6120,16 +6891,16 @@ function KeepTagEditor({
6120
6891
  "data-disabled": isSaving ? "true" : void 0,
6121
6892
  children: [
6122
6893
  body,
6123
- view.error ? /* @__PURE__ */ jsx27("p", { role: "alert", children: getErrorMessage(view.error, view.labels.error) }) : null
6894
+ view.error ? /* @__PURE__ */ jsx29("p", { role: "alert", children: getErrorMessage(view.error, view.labels.error) }) : null
6124
6895
  ]
6125
6896
  }
6126
6897
  );
6127
6898
  }
6128
6899
 
6129
6900
  // src/features/feedback/useKeepToastFeedback.ts
6130
- import { useCallback as useCallback10 } from "react";
6901
+ import { useCallback as useCallback11 } from "react";
6131
6902
  function useKeepToastFeedback(showToast) {
6132
- return useCallback10(
6903
+ return useCallback11(
6133
6904
  (event) => {
6134
6905
  if (!("undo" in event)) {
6135
6906
  showToast(event.message);
@@ -6148,7 +6919,7 @@ function useKeepToastFeedback(showToast) {
6148
6919
 
6149
6920
  // src/features/navigation/KeepFloatingTour.tsx
6150
6921
  import { useKeepList as useKeepList6 } from "@keepkit/core/react";
6151
- import { useEffect as useEffect15, useMemo as useMemo6, useRef as useRef11, useState as useState20 } from "react";
6922
+ import { useEffect as useEffect16, useMemo as useMemo7, useRef as useRef11, useState as useState22 } from "react";
6152
6923
  import { createPortal } from "react-dom";
6153
6924
 
6154
6925
  // src/foundation/theme.tsx
@@ -6157,7 +6928,7 @@ import {
6157
6928
  isValidElement as isValidElement8,
6158
6929
  useContext as useContext4
6159
6930
  } from "react";
6160
- import { jsx as jsx28 } from "react/jsx-runtime";
6931
+ import { jsx as jsx30 } from "react/jsx-runtime";
6161
6932
  var keepThemeNames = [
6162
6933
  "default",
6163
6934
  "ocean",
@@ -6219,8 +6990,8 @@ function KeepThemeProvider({
6219
6990
  if (!isValidElement8(children))
6220
6991
  throw new Error("KeepThemeProvider with asChild requires a single React element child.");
6221
6992
  return createSlot(children, rootProps);
6222
- })() : /* @__PURE__ */ jsx28("div", { ...rootProps, children });
6223
- return /* @__PURE__ */ jsx28(
6993
+ })() : /* @__PURE__ */ jsx30("div", { ...rootProps, children });
6994
+ return /* @__PURE__ */ jsx30(
6224
6995
  KeepThemeContext.Provider,
6225
6996
  {
6226
6997
  value: { theme, mode, density, radius, accentColor, highContrast, reducedMotion, variables, style },
@@ -6234,7 +7005,7 @@ import { useKeepNavigator } from "@keepkit/core/react";
6234
7005
  import { useId as useId6 } from "react";
6235
7006
 
6236
7007
  // src/features/navigation/hooks/useKeepTourShortcuts.ts
6237
- import { useEffect as useEffect13 } from "react";
7008
+ import { useEffect as useEffect14 } from "react";
6238
7009
  function useKeepTourShortcuts({
6239
7010
  onNext,
6240
7011
  onPrev,
@@ -6245,7 +7016,7 @@ function useKeepTourShortcuts({
6245
7016
  prevKeys = ["k", "["],
6246
7017
  onError
6247
7018
  }) {
6248
- useEffect13(() => {
7019
+ useEffect14(() => {
6249
7020
  if (!enabled) return;
6250
7021
  const handleKeyDown = (event) => {
6251
7022
  if (!allowInEditable && isEditableTarget(event.target)) return;
@@ -6266,7 +7037,7 @@ function isEditableTarget(target) {
6266
7037
  }
6267
7038
 
6268
7039
  // src/features/navigation/KeepTourBar.tsx
6269
- import { Fragment as Fragment16, jsx as jsx29, jsxs as jsxs24 } from "react/jsx-runtime";
7040
+ import { Fragment as Fragment16, jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
6270
7041
  function KeepTourBar({
6271
7042
  navigation: providedNavigation,
6272
7043
  currentId,
@@ -6336,9 +7107,9 @@ function KeepTourBar({
6336
7107
  return resolvedPrev();
6337
7108
  }
6338
7109
  });
6339
- const body = /* @__PURE__ */ jsxs24(Fragment16, { children: [
6340
- showProgress ? /* @__PURE__ */ jsx29("span", { "data-keepkit": "tour-progress", "aria-live": "polite", children: progress ?? `${navigation.currentPosition ?? 0} / ${navigation.items.length}` }) : null,
6341
- /* @__PURE__ */ jsx29(
7110
+ const body = /* @__PURE__ */ jsxs25(Fragment16, { children: [
7111
+ showProgress ? /* @__PURE__ */ jsx31("span", { "data-keepkit": "tour-progress", "aria-live": "polite", children: progress ?? `${navigation.currentPosition ?? 0} / ${navigation.items.length}` }) : null,
7112
+ /* @__PURE__ */ jsx31(
6342
7113
  TourAction,
6343
7114
  {
6344
7115
  href: resolvedPrevHref,
@@ -6346,7 +7117,7 @@ function KeepTourBar({
6346
7117
  onClick: resolvedPrevHref ? notifyPrevNavigation : resolvedPrev,
6347
7118
  "data-keep-action": "tour-prev",
6348
7119
  shortcut: showShortcutHint ? shortcutOptions?.prevKeys?.[0] ?? "K" : void 0,
6349
- preview: navigation.prevItem ? /* @__PURE__ */ jsxs24(Fragment16, { children: [
7120
+ preview: navigation.prevItem ? /* @__PURE__ */ jsxs25(Fragment16, { children: [
6350
7121
  previousLabel,
6351
7122
  ": ",
6352
7123
  getItemTitle(navigation.prevItem)
@@ -6354,7 +7125,7 @@ function KeepTourBar({
6354
7125
  children: previousLabel
6355
7126
  }
6356
7127
  ),
6357
- /* @__PURE__ */ jsx29(
7128
+ /* @__PURE__ */ jsx31(
6358
7129
  TourAction,
6359
7130
  {
6360
7131
  href: resolvedNextHref,
@@ -6362,7 +7133,7 @@ function KeepTourBar({
6362
7133
  onClick: resolvedNextHref ? notifyNextNavigation : resolvedNext,
6363
7134
  "data-keep-action": "tour-next",
6364
7135
  shortcut: showShortcutHint ? shortcutOptions?.nextKeys?.[0] ?? "J" : void 0,
6365
- preview: navigation.nextItem ? /* @__PURE__ */ jsxs24(Fragment16, { children: [
7136
+ preview: navigation.nextItem ? /* @__PURE__ */ jsxs25(Fragment16, { children: [
6366
7137
  nextItemLabel,
6367
7138
  ": ",
6368
7139
  getItemTitle(navigation.nextItem)
@@ -6370,7 +7141,7 @@ function KeepTourBar({
6370
7141
  children: nextItemLabel
6371
7142
  }
6372
7143
  ),
6373
- resolvedBackHref || onBack ? /* @__PURE__ */ jsx29(TourAction, { href: resolvedBackHref, onClick: onBack, "data-keep-action": "tour-back", children: listLabel }) : null
7144
+ resolvedBackHref || onBack ? /* @__PURE__ */ jsx31(TourAction, { href: resolvedBackHref, onClick: onBack, "data-keep-action": "tour-back", children: listLabel }) : null
6374
7145
  ] });
6375
7146
  return renderRoot(
6376
7147
  asChild,
@@ -6382,13 +7153,13 @@ function KeepTourBar({
6382
7153
  }
6383
7154
  function TourAction({ href, disabled = false, onClick, children, preview, shortcut, ...props }) {
6384
7155
  const previewId = useId6();
6385
- const content = /* @__PURE__ */ jsxs24(Fragment16, { children: [
6386
- /* @__PURE__ */ jsx29("span", { "data-tour-label": "true", children }),
6387
- shortcut ? /* @__PURE__ */ jsx29(KeepShortcutHint, { shortcut }) : null,
6388
- preview ? /* @__PURE__ */ jsx29("small", { id: previewId, "data-tour-preview": "true", children: preview }) : null
7156
+ const content = /* @__PURE__ */ jsxs25(Fragment16, { children: [
7157
+ /* @__PURE__ */ jsx31("span", { "data-tour-label": "true", children }),
7158
+ shortcut ? /* @__PURE__ */ jsx31(KeepShortcutHint, { shortcut }) : null,
7159
+ preview ? /* @__PURE__ */ jsx31("small", { id: previewId, "data-tour-preview": "true", children: preview }) : null
6389
7160
  ] });
6390
7161
  if (href && !disabled) {
6391
- return /* @__PURE__ */ jsx29(
7162
+ return /* @__PURE__ */ jsx31(
6392
7163
  "a",
6393
7164
  {
6394
7165
  ...props,
@@ -6400,7 +7171,7 @@ function TourAction({ href, disabled = false, onClick, children, preview, shortc
6400
7171
  }
6401
7172
  );
6402
7173
  }
6403
- return /* @__PURE__ */ jsx29(
7174
+ return /* @__PURE__ */ jsx31(
6404
7175
  "button",
6405
7176
  {
6406
7177
  ...props,
@@ -6421,8 +7192,8 @@ function navigateTo(item, href) {
6421
7192
 
6422
7193
  // src/features/navigation/tour-context.tsx
6423
7194
  import { useKeepList as useKeepList5 } from "@keepkit/core/react";
6424
- import { createContext as createContext5, useCallback as useCallback11, useContext as useContext5, useEffect as useEffect14, useMemo as useMemo5, useState as useState19 } from "react";
6425
- import { jsx as jsx30 } from "react/jsx-runtime";
7195
+ import { createContext as createContext5, useCallback as useCallback12, useContext as useContext5, useEffect as useEffect15, useMemo as useMemo6, useState as useState21 } from "react";
7196
+ import { jsx as jsx32 } from "react/jsx-runtime";
6426
7197
  var SESSION_VERSION = 1;
6427
7198
  var KeepTourContext = createContext5(null);
6428
7199
  function KeepTourProvider({
@@ -6433,12 +7204,12 @@ function KeepTourProvider({
6433
7204
  onNavigate
6434
7205
  }) {
6435
7206
  const list = useKeepList5();
6436
- const [tour, setTour] = useState19(
7207
+ const [tour, setTour] = useState21(
6437
7208
  null
6438
7209
  );
6439
- const [persistenceStatus, setPersistenceStatus] = useState19("persistent");
6440
- const itemsById = useMemo5(() => new Map(list.items.map((item) => [item.id, item])), [list.items]);
6441
- const readStorage = useCallback11(() => {
7210
+ const [persistenceStatus, setPersistenceStatus] = useState21("persistent");
7211
+ const itemsById = useMemo6(() => new Map(list.items.map((item) => [item.id, item])), [list.items]);
7212
+ const readStorage = useCallback12(() => {
6442
7213
  try {
6443
7214
  const raw = window.sessionStorage.getItem(sessionKey);
6444
7215
  if (!raw) return null;
@@ -6460,7 +7231,7 @@ function KeepTourProvider({
6460
7231
  return null;
6461
7232
  }
6462
7233
  }, [sessionKey]);
6463
- const writeStorage = useCallback11(
7234
+ const writeStorage = useCallback12(
6464
7235
  (value2) => {
6465
7236
  try {
6466
7237
  if (value2) window.sessionStorage.setItem(sessionKey, JSON.stringify({ version: SESSION_VERSION, ...value2 }));
@@ -6472,7 +7243,7 @@ function KeepTourProvider({
6472
7243
  },
6473
7244
  [sessionKey]
6474
7245
  );
6475
- useEffect14(() => {
7246
+ useEffect15(() => {
6476
7247
  if (!list.isHydrated || list.error || tour) return;
6477
7248
  const stored = typeof window === "undefined" ? null : readStorage();
6478
7249
  if (!stored) return;
@@ -6484,7 +7255,7 @@ function KeepTourProvider({
6484
7255
  const currentId = ids.includes(stored.currentId) ? stored.currentId : ids[0];
6485
7256
  setTour({ itemIds: ids, currentId, collapsed: stored.collapsed });
6486
7257
  }, [itemsById, list.error, list.isHydrated, readStorage, tour, writeStorage]);
6487
- useEffect14(() => {
7258
+ useEffect15(() => {
6488
7259
  if (!tour || list.isLoading || list.error) return;
6489
7260
  const ids = tour.itemIds.filter((id) => itemsById.has(id));
6490
7261
  if (!ids.length) {
@@ -6499,7 +7270,7 @@ function KeepTourProvider({
6499
7270
  writeStorage(next);
6500
7271
  }
6501
7272
  }, [itemsById, list.error, list.isLoading, tour, writeStorage]);
6502
- const start = useCallback11(
7273
+ const start = useCallback12(
6503
7274
  (options) => {
6504
7275
  const ids = [...options.itemIds];
6505
7276
  if (!ids.length || new Set(ids).size !== ids.length || ids.some((id) => !itemsById.has(id))) return false;
@@ -6512,11 +7283,11 @@ function KeepTourProvider({
6512
7283
  },
6513
7284
  [itemsById, writeStorage]
6514
7285
  );
6515
- const end = useCallback11(() => {
7286
+ const end = useCallback12(() => {
6516
7287
  setTour(null);
6517
7288
  writeStorage(null);
6518
7289
  }, [writeStorage]);
6519
- const setCurrentId = useCallback11(
7290
+ const setCurrentId = useCallback12(
6520
7291
  (id) => {
6521
7292
  setTour((current) => {
6522
7293
  if (!current?.currentId || current.currentId === id || !current.itemIds.includes(id)) return current;
@@ -6527,7 +7298,7 @@ function KeepTourProvider({
6527
7298
  },
6528
7299
  [writeStorage]
6529
7300
  );
6530
- const move = useCallback11(
7301
+ const move = useCallback12(
6531
7302
  (delta) => {
6532
7303
  if (!tour?.currentId) return null;
6533
7304
  const currentId = tour.currentId;
@@ -6539,7 +7310,7 @@ function KeepTourProvider({
6539
7310
  },
6540
7311
  [itemsById, setCurrentId, tour]
6541
7312
  );
6542
- const value = useMemo5(
7313
+ const value = useMemo6(
6543
7314
  () => ({
6544
7315
  active: tour !== null,
6545
7316
  itemIds: tour?.itemIds ?? [],
@@ -6559,23 +7330,23 @@ function KeepTourProvider({
6559
7330
  }),
6560
7331
  [end, getBackHref, getItemHref, move, onNavigate, persistenceStatus, setCurrentId, start, tour]
6561
7332
  );
6562
- useEffect14(() => {
7333
+ useEffect15(() => {
6563
7334
  if (!tour) return;
6564
7335
  if (tour.currentId) writeStorage(tour);
6565
7336
  }, [tour, writeStorage]);
6566
- return /* @__PURE__ */ jsx30(KeepTourContext.Provider, { value, children });
7337
+ return /* @__PURE__ */ jsx32(KeepTourContext.Provider, { value, children });
6567
7338
  }
6568
7339
  function useKeepTour(options = {}) {
6569
7340
  const context = useContext5(KeepTourContext);
6570
7341
  if (!context) throw new Error("useKeepTour must be used within KeepTourProvider.");
6571
- useEffect14(() => {
7342
+ useEffect15(() => {
6572
7343
  if (options.currentId && context.active) context.setCurrentId(options.currentId);
6573
7344
  }, [context, options.currentId]);
6574
7345
  return context;
6575
7346
  }
6576
7347
 
6577
7348
  // src/features/navigation/KeepFloatingTour.tsx
6578
- import { Fragment as Fragment17, jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
7349
+ import { Fragment as Fragment17, jsx as jsx33, jsxs as jsxs26 } from "react/jsx-runtime";
6579
7350
  function KeepFloatingTour({
6580
7351
  currentId,
6581
7352
  getItemHref,
@@ -6593,21 +7364,21 @@ function KeepFloatingTour({
6593
7364
  const tour = useKeepTour({ currentId });
6594
7365
  const { items } = useKeepList6();
6595
7366
  const theme = useKeepTheme();
6596
- const [mounted, setMounted] = useState20(false);
7367
+ const [mounted, setMounted] = useState22(false);
6597
7368
  const { labels } = useKeepUiLabels();
6598
7369
  const collapseLabel = labels.previousPage === "\u524D\u306E\u30DA\u30FC\u30B8" ? "\u6298\u308A\u305F\u305F\u3080" : "Collapse tour";
6599
7370
  const expandLabel = labels.previousPage === "\u524D\u306E\u30DA\u30FC\u30B8" ? "\u5C55\u958B" : "Expand tour";
6600
7371
  const endLabel = labels.previousPage === "\u524D\u306E\u30DA\u30FC\u30B8" ? "\u7D42\u4E86" : "End tour";
6601
7372
  const expandRef = useRef11(null);
6602
7373
  const collapseRef = useRef11(null);
6603
- useEffect15(() => setMounted(true), []);
6604
- useEffect15(() => {
7374
+ useEffect16(() => setMounted(true), []);
7375
+ useEffect16(() => {
6605
7376
  if (!mounted || !tour.active) return;
6606
7377
  const button = tour.collapsed ? expandRef.current : collapseRef.current;
6607
7378
  if (button) button.focus();
6608
7379
  }, [mounted, tour.active, tour.collapsed]);
6609
7380
  const activeId = currentId ?? tour.currentId;
6610
- const navigation = useMemo6(() => {
7381
+ const navigation = useMemo7(() => {
6611
7382
  const tourItems = tour.itemIds.map((id) => items.find((item) => item.id === id)).filter((item) => item !== void 0);
6612
7383
  const currentIndex = activeId ? tourItems.findIndex((item) => item.id === activeId) : -1;
6613
7384
  const currentItem = currentIndex >= 0 ? tourItems[currentIndex] ?? null : null;
@@ -6637,7 +7408,7 @@ function KeepFloatingTour({
6637
7408
  "--keep-tour-z-index": zIndex,
6638
7409
  ...style
6639
7410
  };
6640
- const content = tour.collapsed ? /* @__PURE__ */ jsxs25(
7411
+ const content = tour.collapsed ? /* @__PURE__ */ jsxs26(
6641
7412
  "button",
6642
7413
  {
6643
7414
  ref: expandRef,
@@ -6652,8 +7423,8 @@ function KeepFloatingTour({
6652
7423
  tour.itemIds.length
6653
7424
  ]
6654
7425
  }
6655
- ) : /* @__PURE__ */ jsxs25(Fragment17, { children: [
6656
- /* @__PURE__ */ jsx31(
7426
+ ) : /* @__PURE__ */ jsxs26(Fragment17, { children: [
7427
+ /* @__PURE__ */ jsx33(
6657
7428
  KeepTourBar,
6658
7429
  {
6659
7430
  className: "keep-floating-tour__bar",
@@ -6670,7 +7441,7 @@ function KeepFloatingTour({
6670
7441
  showShortcutHint
6671
7442
  }
6672
7443
  ),
6673
- /* @__PURE__ */ jsx31(
7444
+ /* @__PURE__ */ jsx33(
6674
7445
  "button",
6675
7446
  {
6676
7447
  ref: collapseRef,
@@ -6682,7 +7453,7 @@ function KeepFloatingTour({
6682
7453
  children: "\u2212"
6683
7454
  }
6684
7455
  ),
6685
- /* @__PURE__ */ jsx31(
7456
+ /* @__PURE__ */ jsx33(
6686
7457
  "button",
6687
7458
  {
6688
7459
  type: "button",
@@ -6695,7 +7466,7 @@ function KeepFloatingTour({
6695
7466
  )
6696
7467
  ] });
6697
7468
  return createPortal(
6698
- /* @__PURE__ */ jsx31(KeepThemeProvider, { ...theme, children: /* @__PURE__ */ jsx31(
7469
+ /* @__PURE__ */ jsx33(KeepThemeProvider, { ...theme, children: /* @__PURE__ */ jsx33(
6699
7470
  "aside",
6700
7471
  {
6701
7472
  className: ["keep-floating-tour", `keep-floating-tour--${position}`, className].filter(Boolean).join(" "),
@@ -6713,8 +7484,8 @@ function KeepFloatingTour({
6713
7484
 
6714
7485
  // src/features/rediscovery/KeepRediscovery.tsx
6715
7486
  import { createRediscoveryQuery } from "@keepkit/core/core";
6716
- import { useMemo as useMemo7 } from "react";
6717
- import { jsx as jsx32 } from "react/jsx-runtime";
7487
+ import { useId as useId7, useMemo as useMemo8 } from "react";
7488
+ import { jsx as jsx34, jsxs as jsxs27 } from "react/jsx-runtime";
6718
7489
  function KeepRediscovery({
6719
7490
  strategy,
6720
7491
  inactiveForMs,
@@ -6722,14 +7493,46 @@ function KeepRediscovery({
6722
7493
  itemCardProps,
6723
7494
  ...props
6724
7495
  }) {
6725
- const query = useMemo7(
7496
+ const query = useMemo8(
6726
7497
  () => ({
6727
7498
  ...createRediscoveryQuery({ strategy, inactiveForMs }),
6728
7499
  pagination: { page: 1, pageSize: Math.max(1, limit) }
6729
7500
  }),
6730
7501
  [inactiveForMs, limit, strategy]
6731
7502
  );
6732
- return /* @__PURE__ */ jsx32(KeepList, { ...props, query, itemCardProps: { trackOpen: true, ...itemCardProps } });
7503
+ return /* @__PURE__ */ jsx34(
7504
+ KeepList,
7505
+ {
7506
+ ...props,
7507
+ query,
7508
+ itemCardProps: {
7509
+ trackOpen: true,
7510
+ showActivity: true,
7511
+ activityKind: strategy === "recently-opened" ? "opened" : "inactive",
7512
+ ...itemCardProps
7513
+ }
7514
+ }
7515
+ );
7516
+ }
7517
+ function KeepRediscoveryPanel({
7518
+ title,
7519
+ description,
7520
+ strategy,
7521
+ ...props
7522
+ }) {
7523
+ const headingId = useId7();
7524
+ const { className, ...rediscoveryProps } = props;
7525
+ const neverOpenedLabel = useUiLabel("activityNeverOpened");
7526
+ const inactiveLabel = useUiLabel("activityInactiveFor");
7527
+ const openedLabel = useUiLabel("activityOpened");
7528
+ const strategyLabel = strategy === "never-opened" ? neverOpenedLabel : strategy === "forgotten" ? inactiveLabel : openedLabel;
7529
+ return /* @__PURE__ */ jsxs27("section", { className, "data-keepkit": "rediscovery-panel", "aria-labelledby": headingId, children: [
7530
+ /* @__PURE__ */ jsxs27("header", { children: [
7531
+ /* @__PURE__ */ jsx34("h2", { id: headingId, children: title ?? strategyLabel }),
7532
+ /* @__PURE__ */ jsx34("p", { children: description ?? strategyLabel })
7533
+ ] }),
7534
+ /* @__PURE__ */ jsx34(KeepRediscovery, { ...rediscoveryProps, strategy })
7535
+ ] });
6733
7536
  }
6734
7537
 
6735
7538
  // src/features/status/status.tsx
@@ -6737,7 +7540,7 @@ import { isValidElement as isValidElement9 } from "react";
6737
7540
 
6738
7541
  // src/features/status/hooks/useStatusViews.ts
6739
7542
  import { useKeepContext as useKeepContext7 } from "@keepkit/core/react";
6740
- import { useEffect as useEffect16, useRef as useRef12, useState as useState21 } from "react";
7543
+ import { useEffect as useEffect17, useRef as useRef12, useState as useState23 } from "react";
6741
7544
  function useKeepStatus(status) {
6742
7545
  const context = useKeepContext7();
6743
7546
  const resolvedStatus = status ?? getDerivedStatus(context);
@@ -6754,9 +7557,9 @@ function useKeepAnnouncements(messages) {
6754
7557
  const savedMessage = useUiLabel("savedMessage", messages?.save);
6755
7558
  const removedMessage = useUiLabel("removedMessage", messages?.remove);
6756
7559
  const noteSavedMessage = useUiLabel("noteSavedMessage", messages?.note);
6757
- const [message, setMessage] = useState21("");
7560
+ const [message, setMessage] = useState23("");
6758
7561
  const lastChangeRef = useRef12(void 0);
6759
- useEffect16(() => {
7562
+ useEffect17(() => {
6760
7563
  const change = context.lastChange;
6761
7564
  if (!change || change === lastChangeRef.current) return;
6762
7565
  lastChangeRef.current = change;
@@ -6784,7 +7587,7 @@ function getStatusLabelKey3(status) {
6784
7587
  }
6785
7588
 
6786
7589
  // src/features/status/status.tsx
6787
- import { jsx as jsx33 } from "react/jsx-runtime";
7590
+ import { jsx as jsx35 } from "react/jsx-runtime";
6788
7591
  function KeepStatus({
6789
7592
  status,
6790
7593
  labels,
@@ -6816,7 +7619,7 @@ function KeepStatus({
6816
7619
  }
6817
7620
  function KeepAnnouncements({ messages, ...props }) {
6818
7621
  const message = useKeepAnnouncements(messages);
6819
- return /* @__PURE__ */ jsx33(
7622
+ return /* @__PURE__ */ jsx35(
6820
7623
  "div",
6821
7624
  {
6822
7625
  ...props,
@@ -6833,14 +7636,14 @@ var KeepAnnouncer = KeepAnnouncements;
6833
7636
 
6834
7637
  // src/features/sync/hooks/useKeepSyncFeedback.ts
6835
7638
  import { useKeepContext as useKeepContext8 } from "@keepkit/core/react";
6836
- import { useEffect as useEffect17, useRef as useRef13 } from "react";
7639
+ import { useEffect as useEffect18, useRef as useRef13 } from "react";
6837
7640
  function useKeepSyncFeedback() {
6838
7641
  const { syncState } = useKeepContext8();
6839
7642
  const emitFeedback = useKeepUiFeedback();
6840
7643
  const completedMessage = useUiLabel("syncSynced");
6841
7644
  const failedMessage = useUiLabel("syncFailedMessage");
6842
7645
  const previousStatus = useRef13("idle");
6843
- useEffect17(() => {
7646
+ useEffect18(() => {
6844
7647
  const previous = previousStatus.current;
6845
7648
  previousStatus.current = syncState.status;
6846
7649
  if (syncState.status === "error" && previous !== "error") {
@@ -6861,16 +7664,16 @@ function KeepSyncFeedbackObserver() {
6861
7664
 
6862
7665
  // src/features/sync/hooks/useKeepSyncRecoveryDialog.ts
6863
7666
  import { useKeepContext as useKeepContext9 } from "@keepkit/core/react";
6864
- import { useEffect as useEffect18, useState as useState22 } from "react";
7667
+ import { useEffect as useEffect19, useState as useState24 } from "react";
6865
7668
  function useKeepSyncRecoveryDialog(options) {
6866
7669
  const { open, onOpenChange, conflicts, onManualMerge } = options;
6867
7670
  const context = useKeepContext9();
6868
7671
  const conflictList = conflicts ?? context.syncState.conflicts ?? [];
6869
7672
  const hasRecovery = conflictList.length > 0 || context.syncState.status === "error" || Boolean(context.error);
6870
- const [dismissed, setDismissed] = useState22(false);
6871
- const [busyId, setBusyId] = useState22();
6872
- const [error, setError] = useState22();
6873
- useEffect18(() => {
7673
+ const [dismissed, setDismissed] = useState24(false);
7674
+ const [busyId, setBusyId] = useState24();
7675
+ const [error, setError] = useState24();
7676
+ useEffect19(() => {
6874
7677
  if (hasRecovery) setDismissed(false);
6875
7678
  }, [hasRecovery]);
6876
7679
  return {
@@ -6915,7 +7718,7 @@ function useKeepSyncRecoveryDialog(options) {
6915
7718
  }
6916
7719
 
6917
7720
  // src/features/sync/KeepSyncRecoveryDialog.tsx
6918
- import { jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
7721
+ import { jsx as jsx36, jsxs as jsxs28 } from "react/jsx-runtime";
6919
7722
  function KeepSyncRecoveryDialog({
6920
7723
  open,
6921
7724
  onOpenChange,
@@ -6930,7 +7733,7 @@ function KeepSyncRecoveryDialog({
6930
7733
  }) {
6931
7734
  const view = useKeepSyncRecoveryDialog({ open, onOpenChange, conflicts, onManualMerge });
6932
7735
  if (!view.isOpen) return null;
6933
- return /* @__PURE__ */ jsxs26(
7736
+ return /* @__PURE__ */ jsxs28(
6934
7737
  "section",
6935
7738
  {
6936
7739
  ...props,
@@ -6944,17 +7747,17 @@ function KeepSyncRecoveryDialog({
6944
7747
  "data-state": view.conflictList.length > 0 ? "conflict" : "error",
6945
7748
  "data-loading": view.busyId !== void 0 ? "true" : void 0,
6946
7749
  children: [
6947
- /* @__PURE__ */ jsxs26("header", { children: [
6948
- /* @__PURE__ */ jsx34("h2", { id: "keepkit-sync-recovery-title", children: title ?? view.labels.title }),
6949
- /* @__PURE__ */ jsx34("button", { type: "button", "data-keep-action": "close-dialog", onClick: view.close, "aria-label": view.labels.close, children: view.labels.close })
7750
+ /* @__PURE__ */ jsxs28("header", { children: [
7751
+ /* @__PURE__ */ jsx36("h2", { id: "keepkit-sync-recovery-title", children: title ?? view.labels.title }),
7752
+ /* @__PURE__ */ jsx36("button", { type: "button", "data-keep-action": "close-dialog", onClick: view.close, "aria-label": view.labels.close, children: view.labels.close })
6950
7753
  ] }),
6951
7754
  children,
6952
- view.conflictList.length > 0 ? /* @__PURE__ */ jsxs26("div", { children: [
6953
- /* @__PURE__ */ jsx34("p", { children: view.labels.conflict }),
6954
- view.conflictList.map((conflict) => /* @__PURE__ */ jsxs26("article", { "data-conflict-id": conflict.id, children: [
6955
- /* @__PURE__ */ jsx34("h3", { children: getMetaTitle(conflict.operation.item?.meta) ?? conflict.id }),
6956
- /* @__PURE__ */ jsxs26("div", { "data-conflict-preview": true, children: [
6957
- /* @__PURE__ */ jsx34(
7755
+ view.conflictList.length > 0 ? /* @__PURE__ */ jsxs28("div", { children: [
7756
+ /* @__PURE__ */ jsx36("p", { children: view.labels.conflict }),
7757
+ view.conflictList.map((conflict) => /* @__PURE__ */ jsxs28("article", { "data-conflict-id": conflict.id, children: [
7758
+ /* @__PURE__ */ jsx36("h3", { children: getMetaTitle(conflict.operation.item?.meta) ?? conflict.id }),
7759
+ /* @__PURE__ */ jsxs28("div", { "data-conflict-preview": true, children: [
7760
+ /* @__PURE__ */ jsx36(
6958
7761
  ConflictPreview,
6959
7762
  {
6960
7763
  item: conflict.operation.item,
@@ -6964,7 +7767,7 @@ function KeepSyncRecoveryDialog({
6964
7767
  side: "local"
6965
7768
  }
6966
7769
  ),
6967
- /* @__PURE__ */ jsx34(
7770
+ /* @__PURE__ */ jsx36(
6968
7771
  ConflictPreview,
6969
7772
  {
6970
7773
  item: conflict.remote,
@@ -6975,8 +7778,8 @@ function KeepSyncRecoveryDialog({
6975
7778
  }
6976
7779
  )
6977
7780
  ] }),
6978
- /* @__PURE__ */ jsxs26("div", { children: [
6979
- /* @__PURE__ */ jsx34(
7781
+ /* @__PURE__ */ jsxs28("div", { children: [
7782
+ /* @__PURE__ */ jsx36(
6980
7783
  "button",
6981
7784
  {
6982
7785
  type: "button",
@@ -6986,7 +7789,7 @@ function KeepSyncRecoveryDialog({
6986
7789
  children: view.labels.keepLocal
6987
7790
  }
6988
7791
  ),
6989
- /* @__PURE__ */ jsx34(
7792
+ /* @__PURE__ */ jsx36(
6990
7793
  "button",
6991
7794
  {
6992
7795
  type: "button",
@@ -6996,7 +7799,7 @@ function KeepSyncRecoveryDialog({
6996
7799
  children: view.labels.useServer
6997
7800
  }
6998
7801
  ),
6999
- /* @__PURE__ */ jsx34(
7802
+ /* @__PURE__ */ jsx36(
7000
7803
  "button",
7001
7804
  {
7002
7805
  type: "button",
@@ -7009,12 +7812,12 @@ function KeepSyncRecoveryDialog({
7009
7812
  ] })
7010
7813
  ] }, conflict.id))
7011
7814
  ] }) : null,
7012
- view.showBackupRecovery ? /* @__PURE__ */ jsxs26("section", { "data-recovery": "backup", children: [
7013
- /* @__PURE__ */ jsx34("h3", { children: view.labels.backupRecovery }),
7014
- /* @__PURE__ */ jsx34("p", { children: view.labels.backupRecoveryDescription }),
7015
- backup ?? (showBackupControls ? /* @__PURE__ */ jsx34(KeepBackup, {}) : null)
7815
+ view.showBackupRecovery ? /* @__PURE__ */ jsxs28("section", { "data-recovery": "backup", children: [
7816
+ /* @__PURE__ */ jsx36("h3", { children: view.labels.backupRecovery }),
7817
+ /* @__PURE__ */ jsx36("p", { children: view.labels.backupRecoveryDescription }),
7818
+ backup ?? (showBackupControls ? /* @__PURE__ */ jsx36(KeepBackup, {}) : null)
7016
7819
  ] }) : null,
7017
- view.error ? /* @__PURE__ */ jsx34("p", { id: "keepkit-sync-recovery-error", role: "alert", "aria-live": "assertive", children: getErrorMessage(view.error, view.labels.error) }) : null
7820
+ view.error ? /* @__PURE__ */ jsx36("p", { id: "keepkit-sync-recovery-error", role: "alert", "aria-live": "assertive", children: getErrorMessage(view.error, view.labels.error) }) : null
7018
7821
  ]
7019
7822
  }
7020
7823
  );
@@ -7026,16 +7829,16 @@ function ConflictPreview({
7026
7829
  noteLabel,
7027
7830
  side
7028
7831
  }) {
7029
- return /* @__PURE__ */ jsxs26("article", { "data-conflict-version": side, "aria-label": heading, children: [
7030
- /* @__PURE__ */ jsx34("h4", { children: heading }),
7031
- /* @__PURE__ */ jsxs26("dl", { children: [
7032
- /* @__PURE__ */ jsxs26("div", { children: [
7033
- /* @__PURE__ */ jsx34("dt", { children: updatedAtLabel }),
7034
- /* @__PURE__ */ jsx34("dd", { children: item ? /* @__PURE__ */ jsx34("time", { dateTime: new Date(item.updatedAt).toISOString(), children: formatConflictDate(item.updatedAt) }) : "\u2014" })
7832
+ return /* @__PURE__ */ jsxs28("article", { "data-conflict-version": side, "aria-label": heading, children: [
7833
+ /* @__PURE__ */ jsx36("h4", { children: heading }),
7834
+ /* @__PURE__ */ jsxs28("dl", { children: [
7835
+ /* @__PURE__ */ jsxs28("div", { children: [
7836
+ /* @__PURE__ */ jsx36("dt", { children: updatedAtLabel }),
7837
+ /* @__PURE__ */ jsx36("dd", { children: item ? /* @__PURE__ */ jsx36("time", { dateTime: new Date(item.updatedAt).toISOString(), children: formatConflictDate(item.updatedAt) }) : "\u2014" })
7035
7838
  ] }),
7036
- /* @__PURE__ */ jsxs26("div", { children: [
7037
- /* @__PURE__ */ jsx34("dt", { children: noteLabel }),
7038
- /* @__PURE__ */ jsx34("dd", { children: item?.note || "\u2014" })
7839
+ /* @__PURE__ */ jsxs28("div", { children: [
7840
+ /* @__PURE__ */ jsx36("dt", { children: noteLabel }),
7841
+ /* @__PURE__ */ jsx36("dd", { children: item?.note || "\u2014" })
7039
7842
  ] })
7040
7843
  ] })
7041
7844
  ] });
@@ -7077,7 +7880,7 @@ function useKeepSyncStatusBanner({ onRetry, children }) {
7077
7880
  }
7078
7881
 
7079
7882
  // src/features/sync/KeepSyncStatusBanner.tsx
7080
- import { jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
7883
+ import { jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
7081
7884
  function KeepSyncStatusBanner({
7082
7885
  onRetry,
7083
7886
  onResolveConflicts,
@@ -7089,7 +7892,7 @@ function KeepSyncStatusBanner({
7089
7892
  const showRetryLabel = useUiLabelVisibility("retrySync");
7090
7893
  const showResolveLabel = useUiLabelVisibility("resolveSync");
7091
7894
  if (view.status === "idle" && !view.hasConflicts) return null;
7092
- return /* @__PURE__ */ jsxs27(
7895
+ return /* @__PURE__ */ jsxs29(
7093
7896
  "aside",
7094
7897
  {
7095
7898
  ...props,
@@ -7099,8 +7902,8 @@ function KeepSyncStatusBanner({
7099
7902
  "data-keepkit": "sync-status",
7100
7903
  "data-state": view.status,
7101
7904
  children: [
7102
- /* @__PURE__ */ jsx35("p", { children: view.message }),
7103
- view.showRetry ? /* @__PURE__ */ jsx35(
7905
+ /* @__PURE__ */ jsx37("p", { children: view.message }),
7906
+ view.showRetry ? /* @__PURE__ */ jsx37(
7104
7907
  "button",
7105
7908
  {
7106
7909
  type: "button",
@@ -7111,7 +7914,7 @@ function KeepSyncStatusBanner({
7111
7914
  children: showRetryLabel ? view.retryLabel : null
7112
7915
  }
7113
7916
  ) : null,
7114
- view.hasConflicts ? /* @__PURE__ */ jsx35(
7917
+ view.hasConflicts ? /* @__PURE__ */ jsx37(
7115
7918
  "button",
7116
7919
  {
7117
7920
  type: "button",
@@ -7127,13 +7930,48 @@ function KeepSyncStatusBanner({
7127
7930
  );
7128
7931
  }
7129
7932
 
7933
+ // src/features/workspace/KeepWorkspace.tsx
7934
+ import { createInboxQuery as createInboxQuery2 } from "@keepkit/core/core";
7935
+
7130
7936
  // src/features/workspace/hooks/useKeepWorkspace.ts
7131
- import { useCallback as useCallback12, useState as useState23 } from "react";
7937
+ import { useCallback as useCallback13, useState as useState25 } from "react";
7132
7938
  var PRESET_MODULES = {
7133
- basic: { syncStatus: false, undo: false, recovery: false, backup: false, stalePrune: false },
7134
- standard: { syncStatus: false, undo: true, recovery: false, backup: false, stalePrune: false },
7135
- management: { syncStatus: false, undo: true, recovery: false, backup: true, stalePrune: true },
7136
- sync: { syncStatus: true, undo: true, recovery: true, backup: false, stalePrune: false }
7939
+ basic: {
7940
+ syncStatus: false,
7941
+ undo: false,
7942
+ recovery: false,
7943
+ backup: false,
7944
+ stalePrune: false,
7945
+ inbox: false,
7946
+ savedViews: false
7947
+ },
7948
+ standard: {
7949
+ syncStatus: false,
7950
+ undo: true,
7951
+ recovery: false,
7952
+ backup: false,
7953
+ stalePrune: false,
7954
+ inbox: false,
7955
+ savedViews: false
7956
+ },
7957
+ management: {
7958
+ syncStatus: false,
7959
+ undo: true,
7960
+ recovery: false,
7961
+ backup: true,
7962
+ stalePrune: true,
7963
+ inbox: false,
7964
+ savedViews: false
7965
+ },
7966
+ sync: {
7967
+ syncStatus: true,
7968
+ undo: true,
7969
+ recovery: true,
7970
+ backup: false,
7971
+ stalePrune: false,
7972
+ inbox: false,
7973
+ savedViews: false
7974
+ }
7137
7975
  };
7138
7976
  var PRESET_COLLECTION_FEATURES = {
7139
7977
  basic: { search: false, sort: false, pagination: false },
@@ -7148,16 +7986,16 @@ function useKeepWorkspace({
7148
7986
  onRecoveryOpenChange,
7149
7987
  onResolveConflicts
7150
7988
  }) {
7151
- const [internalRecoveryOpen, setInternalRecoveryOpen] = useState23(false);
7989
+ const [internalRecoveryOpen, setInternalRecoveryOpen] = useState25(false);
7152
7990
  const resolvedModules = { ...PRESET_MODULES[preset], ...modules };
7153
- const setRecoveryOpen = useCallback12(
7991
+ const setRecoveryOpen = useCallback13(
7154
7992
  (open) => {
7155
7993
  if (recoveryOpen === void 0) setInternalRecoveryOpen(open);
7156
7994
  onRecoveryOpenChange?.(open);
7157
7995
  },
7158
7996
  [onRecoveryOpenChange, recoveryOpen]
7159
7997
  );
7160
- const openRecovery = useCallback12(() => {
7998
+ const openRecovery = useCallback13(() => {
7161
7999
  onResolveConflicts?.();
7162
8000
  setRecoveryOpen(true);
7163
8001
  }, [onResolveConflicts, setRecoveryOpen]);
@@ -7172,7 +8010,7 @@ function useKeepWorkspace({
7172
8010
  }
7173
8011
 
7174
8012
  // src/features/workspace/KeepWorkspace.tsx
7175
- import { jsx as jsx36, jsxs as jsxs28 } from "react/jsx-runtime";
8013
+ import { jsx as jsx38, jsxs as jsxs30 } from "react/jsx-runtime";
7176
8014
  function KeepWorkspace({
7177
8015
  preset = "standard",
7178
8016
  modules,
@@ -7204,34 +8042,43 @@ function KeepWorkspace({
7204
8042
  };
7205
8043
  const resolvedCollectionProps = {
7206
8044
  ...collectionProps,
7207
- features: { ...view.collectionFeatures, ...collectionProps?.features }
8045
+ query: view.modules.inbox ? {
8046
+ ...collectionProps?.query,
8047
+ ...createInboxQuery2({ organization: collectionProps?.query?.organization })
8048
+ } : collectionProps?.query,
8049
+ features: {
8050
+ ...view.collectionFeatures,
8051
+ ...view.modules.inbox ? { bulkActions: true, note: true, archive: true, tags: true } : {},
8052
+ ...view.modules.savedViews ? { savedViews: true } : {},
8053
+ ...collectionProps?.features
8054
+ }
7208
8055
  };
7209
8056
  const structuredRegions = surface !== void 0 && surface !== "plain";
7210
8057
  const region = (name, content) => {
7211
8058
  if (!structuredRegions) return content;
7212
8059
  if (!hasRenderableContent(content)) return null;
7213
8060
  const resolvedSurface = typeof surface === "string" ? surface : surface[name] ?? "plain";
7214
- return /* @__PURE__ */ jsx36("div", { "data-keepkit": "workspace-region", "data-region": name, "data-surface": resolvedSurface, children: content });
8061
+ return /* @__PURE__ */ jsx38("div", { "data-keepkit": "workspace-region", "data-region": name, "data-surface": resolvedSurface, children: content });
7215
8062
  };
7216
8063
  const before = resolveOptionalSlot(slots?.before, state);
7217
8064
  const syncStatus = view.modules.syncStatus ? resolveSlot(
7218
8065
  slots?.syncStatus,
7219
- /* @__PURE__ */ jsx36(KeepSyncStatusBanner, { ...syncStatusProps, onResolveConflicts: view.openRecovery }),
8066
+ /* @__PURE__ */ jsx38(KeepSyncStatusBanner, { ...syncStatusProps, onResolveConflicts: view.openRecovery }),
7220
8067
  state
7221
8068
  ) : null;
7222
- const collection = resolveSlot(slots?.collection, /* @__PURE__ */ jsx36(KeepCollection, { ...resolvedCollectionProps }), state);
8069
+ const collection = resolveSlot(slots?.collection, /* @__PURE__ */ jsx38(KeepCollection, { ...resolvedCollectionProps }), state);
7223
8070
  const actions = view.modules.backup || view.modules.stalePrune ? resolveSlot(
7224
8071
  slots?.actions,
7225
- /* @__PURE__ */ jsxs28("div", { "data-keepkit": "workspace-actions", children: [
7226
- view.modules.stalePrune ? /* @__PURE__ */ jsx36(KeepPruneStaleButton, { ...stalePruneProps }) : null,
7227
- view.modules.backup ? /* @__PURE__ */ jsx36(KeepBackup, { ...backupProps }) : null
8072
+ /* @__PURE__ */ jsxs30("div", { "data-keepkit": "workspace-actions", children: [
8073
+ view.modules.stalePrune ? /* @__PURE__ */ jsx38(KeepPruneStaleButton, { ...stalePruneProps }) : null,
8074
+ view.modules.backup ? /* @__PURE__ */ jsx38(KeepBackup, { ...backupProps }) : null
7228
8075
  ] }),
7229
8076
  state
7230
8077
  ) : null;
7231
- const undo = view.modules.undo ? resolveSlot(slots?.undo, /* @__PURE__ */ jsx36(KeepUndo, { ...undoProps }), state) : null;
8078
+ const undo = view.modules.undo ? resolveSlot(slots?.undo, /* @__PURE__ */ jsx38(KeepUndo, { ...undoProps }), state) : null;
7232
8079
  const recovery = view.modules.recovery ? resolveSlot(
7233
8080
  slots?.recovery,
7234
- /* @__PURE__ */ jsx36(
8081
+ /* @__PURE__ */ jsx38(
7235
8082
  KeepSyncRecoveryDialog,
7236
8083
  {
7237
8084
  ...recoveryProps,
@@ -7243,7 +8090,7 @@ function KeepWorkspace({
7243
8090
  ) : null;
7244
8091
  const additionalContent = resolveOptionalSlot(children, state);
7245
8092
  const after = resolveOptionalSlot(slots?.after, state);
7246
- return /* @__PURE__ */ jsxs28(
8093
+ return /* @__PURE__ */ jsxs30(
7247
8094
  "section",
7248
8095
  {
7249
8096
  ...props,
@@ -7279,7 +8126,7 @@ import { createAuthenticatedSyncKit } from "@keepkit/core/core";
7279
8126
  import {
7280
8127
  KeepErrorBoundary as KeepErrorBoundary3,
7281
8128
  KeepProvider,
7282
- useKeepCollections as useKeepCollections5,
8129
+ useKeepCollections as useKeepCollections6,
7283
8130
  useKeepContext as useKeepContext11,
7284
8131
  useKeepItem as useKeepItem8,
7285
8132
  useKeepList as useKeepList7,
@@ -7297,7 +8144,7 @@ import {
7297
8144
  LocalStorageSyncQueueAdapter,
7298
8145
  SyncStorageAdapter
7299
8146
  } from "@keepkit/core/storage";
7300
- import { jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
8147
+ import { jsx as jsx39, jsxs as jsxs31 } from "react/jsx-runtime";
7301
8148
  function KeepKitProvider({
7302
8149
  labels,
7303
8150
  labelOptions,
@@ -7319,7 +8166,7 @@ function KeepKitProvider({
7319
8166
  children,
7320
8167
  ...providerProps
7321
8168
  }) {
7322
- return /* @__PURE__ */ jsx37(
8169
+ return /* @__PURE__ */ jsx39(
7323
8170
  KeepUiProvider,
7324
8171
  {
7325
8172
  labels,
@@ -7327,7 +8174,7 @@ function KeepKitProvider({
7327
8174
  locale,
7328
8175
  labelResolver,
7329
8176
  onFeedback,
7330
- children: /* @__PURE__ */ jsx37(
8177
+ children: /* @__PURE__ */ jsx39(
7331
8178
  KeepThemeProvider,
7332
8179
  {
7333
8180
  theme,
@@ -7341,10 +8188,10 @@ function KeepKitProvider({
7341
8188
  className: themeClassName,
7342
8189
  style: themeStyle,
7343
8190
  asChild: themeAsChild,
7344
- children: /* @__PURE__ */ jsxs29(CoreKeepProvider, { ...providerProps, children: [
7345
- /* @__PURE__ */ jsx37(KeepSyncFeedbackObserver, {}),
7346
- /* @__PURE__ */ jsx37(KeepTourProvider, { ...tour, children }),
7347
- /* @__PURE__ */ jsx37(KeepAnnouncements, {})
8191
+ children: /* @__PURE__ */ jsxs31(CoreKeepProvider, { ...providerProps, children: [
8192
+ /* @__PURE__ */ jsx39(KeepSyncFeedbackObserver, {}),
8193
+ /* @__PURE__ */ jsx39(KeepTourProvider, { ...tour, children }),
8194
+ /* @__PURE__ */ jsx39(KeepAnnouncements, {})
7348
8195
  ] })
7349
8196
  }
7350
8197
  )
@@ -7375,7 +8222,7 @@ function createKeepKit(options = {}) {
7375
8222
  } = options;
7376
8223
  const coreKit = createCoreKeepKit(coreOptions);
7377
8224
  return {
7378
- Provider: (props) => /* @__PURE__ */ jsx37(
8225
+ Provider: (props) => /* @__PURE__ */ jsx39(
7379
8226
  KeepKitProvider,
7380
8227
  {
7381
8228
  ...coreOptions,
@@ -7398,9 +8245,9 @@ function createKeepKit(options = {}) {
7398
8245
  ...props
7399
8246
  }
7400
8247
  ),
7401
- Button: (props) => /* @__PURE__ */ jsx37(KeepButton, { ...props }),
7402
- Backup: (props) => /* @__PURE__ */ jsx37(KeepBackup, { ...props }),
7403
- Collection: (props) => /* @__PURE__ */ jsx37(
8248
+ Button: (props) => /* @__PURE__ */ jsx39(KeepButton, { ...props }),
8249
+ Backup: (props) => /* @__PURE__ */ jsx39(KeepBackup, { ...props }),
8250
+ Collection: (props) => /* @__PURE__ */ jsx39(
7404
8251
  KeepCollection,
7405
8252
  {
7406
8253
  ...props,
@@ -7411,8 +8258,10 @@ function createKeepKit(options = {}) {
7411
8258
  }
7412
8259
  }
7413
8260
  ),
7414
- CollectionManager: (props) => /* @__PURE__ */ jsx37(KeepCollectionManager, { ...props }),
7415
- Workspace: (props) => /* @__PURE__ */ jsx37(
8261
+ Inbox: (props) => /* @__PURE__ */ jsx39(KeepInbox, { ...props }),
8262
+ SavedViews: (props) => /* @__PURE__ */ jsx39(KeepSavedViews, { ...props }),
8263
+ CollectionManager: (props) => /* @__PURE__ */ jsx39(KeepCollectionManager, { ...props }),
8264
+ Workspace: (props) => /* @__PURE__ */ jsx39(
7416
8265
  KeepWorkspace,
7417
8266
  {
7418
8267
  ...props,
@@ -7429,12 +8278,13 @@ function createKeepKit(options = {}) {
7429
8278
  useContext: () => coreKit.useContext(),
7430
8279
  useItem: (item) => coreKit.useItem(item),
7431
8280
  useList: (query) => coreKit.useList(query),
8281
+ useSavedViews: () => useKeepSavedViews(),
7432
8282
  useRediscovery: (rediscoveryOptions) => coreKit.useRediscovery(rediscoveryOptions),
7433
8283
  useCollections: (collectionsOptions) => coreKit.useCollections(collectionsOptions),
7434
8284
  useNavigator: (navigatorOptions) => coreKit.useNavigator(navigatorOptions),
7435
8285
  useShortcut: (shortcutOptions) => coreKit.useShortcut(shortcutOptions),
7436
- FloatingTour: (props) => /* @__PURE__ */ jsx37(KeepFloatingTour, { ...props }),
7437
- TourProvider: (props) => /* @__PURE__ */ jsx37(KeepTourProvider, { ...props }),
8286
+ FloatingTour: (props) => /* @__PURE__ */ jsx39(KeepFloatingTour, { ...props }),
8287
+ TourProvider: (props) => /* @__PURE__ */ jsx39(KeepTourProvider, { ...props }),
7438
8288
  useTour: (tourOptions) => useKeepTour(tourOptions)
7439
8289
  };
7440
8290
  }
@@ -7459,11 +8309,13 @@ export {
7459
8309
  KeepErrorBoundary3 as KeepErrorBoundary,
7460
8310
  KeepFloatingTour,
7461
8311
  KeepHighlight,
8312
+ KeepInbox,
7462
8313
  KeepItemCard,
7463
8314
  KeepItemCardSkeleton,
7464
8315
  KeepItemCheckbox,
7465
8316
  KeepItemStatusBadge,
7466
8317
  KeepKitProvider,
8318
+ KeepLastActivity,
7467
8319
  KeepLayout,
7468
8320
  KeepList,
7469
8321
  KeepNavigator,
@@ -7474,8 +8326,11 @@ export {
7474
8326
  KeepPruneStaleButton,
7475
8327
  KeepQuickEditor,
7476
8328
  KeepRediscovery,
8329
+ KeepRediscoveryPanel,
7477
8330
  KeepReorderableList,
7478
8331
  KeepSavePopover,
8332
+ KeepSaveViewButton,
8333
+ KeepSavedViews,
7479
8334
  KeepSearchInput,
7480
8335
  KeepShortcutHint,
7481
8336
  KeepSortSelect,
@@ -7508,13 +8363,14 @@ export {
7508
8363
  keepThemeNames,
7509
8364
  mergeProps,
7510
8365
  toggleSelectAll,
7511
- useKeepCollections5 as useKeepCollections,
8366
+ useKeepCollections6 as useKeepCollections,
7512
8367
  useKeepContext11 as useKeepContext,
7513
8368
  useKeepItem8 as useKeepItem,
7514
8369
  useKeepList7 as useKeepList,
7515
8370
  useKeepNavigator2 as useKeepNavigator,
7516
8371
  useKeepQuickEditor,
7517
8372
  useKeepRediscovery,
8373
+ useKeepSavedViews,
7518
8374
  useKeepShortcut,
7519
8375
  useKeepToastFeedback,
7520
8376
  useKeepTour,