impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/index.js +4 -4
  3. package/dist/_virtual/index2.js +4 -4
  4. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
  5. package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
  6. package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
  7. package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
  8. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
  9. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
  10. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
  11. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
  12. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
  13. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
  14. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
  15. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
  16. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
  17. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
  18. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
  19. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
  20. package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
  21. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
  22. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
  23. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
  24. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
  25. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
  26. package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
  27. package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
  28. package/dist/components/data/ag-grid-react/headers/custom-header.js +110 -108
  29. package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
  30. package/dist/components/data/ag-grid-react/index.d.ts +6 -1
  31. package/dist/components/data/ag-grid-react/index.js +316 -248
  32. package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
  33. package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
  34. package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
  35. package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
  36. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
  37. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
  38. package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
  39. package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
  40. package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
  41. package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
  42. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
  43. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
  44. package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
  45. package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
  46. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
  47. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
  48. package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
  49. package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
  50. package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
  51. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
  52. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
  53. package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
  54. package/dist/components/data/data-table/column-picker-authority.js +9 -9
  55. package/dist/components/data/data-table/data-table-column-apply.js +30 -29
  56. package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
  57. package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
  58. package/dist/components/data/data-table/data-table-list-header.js +31 -0
  59. package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
  60. package/dist/components/data/data-table/data-table-overlay.js +18 -0
  61. package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
  62. package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
  63. package/dist/components/data/data-table/data-table.js +35 -34
  64. package/dist/components/data/data-table/data-table.types.d.ts +13 -2
  65. package/dist/components/data/data-table/index.d.ts +10 -0
  66. package/dist/components/data/data-table/index.js +64 -52
  67. package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
  68. package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
  69. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
  70. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
  71. package/dist/components/data/expandable-list-item/index.d.ts +2 -0
  72. package/dist/components/data/expandable-list-item/index.js +20 -16
  73. package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
  74. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
  75. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
  76. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
  77. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
  78. package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
  79. package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
  80. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
  81. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
  82. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
  83. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
  84. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
  85. package/dist/components/data/scenario-comparison/index.d.ts +3 -0
  86. package/dist/components/data/scenario-comparison/index.js +6 -0
  87. package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
  88. package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
  89. package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
  90. package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
  91. package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
  92. package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
  93. package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
  94. package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
  95. package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
  96. package/dist/components/data-display/badge/index.d.ts +2 -0
  97. package/dist/components/data-display/badge/index.js +4 -2
  98. package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
  99. package/dist/components/data-display/badge/trophy-icon.js +28 -0
  100. package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
  101. package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
  102. package/dist/components/data-display/chart/chart.js +125 -112
  103. package/dist/components/data-display/chart/chart.utils.js +122 -92
  104. package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
  105. package/dist/components/data-display/stereo-scatter/index.js +10 -0
  106. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
  107. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
  108. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
  109. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
  110. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
  111. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
  112. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
  113. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
  114. package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
  115. package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
  116. package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
  117. package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
  118. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
  119. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
  120. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
  121. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
  122. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
  123. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
  124. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
  125. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
  126. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
  127. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
  128. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
  129. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
  130. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
  131. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
  132. package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
  133. package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
  134. package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
  135. package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
  136. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
  137. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
  138. package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
  139. package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
  140. package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
  141. package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
  142. package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
  143. package/dist/components/feedback/find-bar/find-bar.js +266 -0
  144. package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
  145. package/dist/components/feedback/find-bar/index.d.ts +4 -0
  146. package/dist/components/feedback/find-bar/index.js +11 -0
  147. package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
  148. package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
  149. package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
  150. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
  151. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  152. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  153. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
  154. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
  155. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
  156. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
  157. package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
  158. package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
  159. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
  160. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
  161. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
  162. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
  163. package/dist/components/flows/iris-chat/index.d.ts +3 -1
  164. package/dist/components/flows/iris-chat/index.js +58 -53
  165. package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
  166. package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
  167. package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
  168. package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
  169. package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
  170. package/dist/components/flows/iris-chat/iris-chat-composer.js +291 -234
  171. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
  172. package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
  173. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
  174. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
  175. package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
  176. package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
  177. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
  178. package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
  179. package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
  180. package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
  181. package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
  182. package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
  183. package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
  184. package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
  185. package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
  186. package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
  187. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
  188. package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
  189. package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
  190. package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
  191. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
  192. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
  193. package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
  194. package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
  195. package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
  196. package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
  197. package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
  198. package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
  199. package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
  200. package/dist/components/flows/iris-chat/iris-chat.js +22 -330
  201. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
  202. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
  203. package/dist/components/flows/iris-chat/iris-chat.variants.js +45 -22
  204. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
  205. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
  206. package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
  207. package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
  208. package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
  209. package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
  210. package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
  211. package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
  212. package/dist/components/forms/choice-card/choice-card.js +470 -381
  213. package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
  214. package/dist/components/forms/choice-card/choice-card.variants.js +24 -3
  215. package/dist/components/forms/input/input.js +5 -5
  216. package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
  217. package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
  218. package/dist/components/forms/select/components/Submenu.js +3 -2
  219. package/dist/components/layout/header/header.js +1 -0
  220. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
  221. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
  222. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
  223. package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
  224. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
  225. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
  226. package/dist/components/primitives/button/button.variants.js +1 -1
  227. package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
  228. package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
  229. package/dist/components/primitives/iris/iris.d.ts +3 -1
  230. package/dist/components/primitives/iris/iris.js +85 -91
  231. package/dist/components/primitives/iris/iris.types.d.ts +9 -0
  232. package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
  233. package/dist/components/primitives/stepper/internals/step-model.js +5 -5
  234. package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
  235. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
  236. package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
  237. package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
  238. package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
  239. package/dist/components/primitives/stepper/stepper.js +99 -97
  240. package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
  241. package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
  242. package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
  243. package/dist/components/primitives/tabs/tabs.js +178 -112
  244. package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
  245. package/dist/form-react/Fields/SelectField.js +66 -57
  246. package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
  247. package/dist/form-react/Fields/VirtualizedListField.js +223 -0
  248. package/dist/form-react/fields.d.ts +1 -0
  249. package/dist/form-react/fields.js +28 -26
  250. package/dist/form-react/index.d.ts +1 -1
  251. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  252. package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
  253. package/dist/form-react/types/fields.types.d.ts +48 -1
  254. package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
  255. package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
  256. package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
  257. package/dist/i18n/defaultMessages.d.ts +69 -0
  258. package/dist/i18n/defaultMessages.js +107 -42
  259. package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
  260. package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
  261. package/dist/i18n/index.d.ts +1 -1
  262. package/dist/i18n/locales/de.js +66 -1
  263. package/dist/i18n/locales/es.js +66 -1
  264. package/dist/i18n/locales/hi.js +66 -1
  265. package/dist/i18n/locales/kn.js +66 -1
  266. package/dist/impact-nova-components.css +372 -14
  267. package/dist/impact-nova-tokens.scss +4 -0
  268. package/dist/impact-nova.css +1 -1
  269. package/dist/index.d.ts +1 -0
  270. package/dist/index.js +627 -601
  271. package/dist/lib/alphabetical-sort.d.ts +3 -0
  272. package/dist/lib/alphabetical-sort.js +13 -0
  273. package/dist/lib/guidance/engine/guidance-engine.js +26 -27
  274. package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
  275. package/dist/lib/guidance/engine/step-navigation.js +16 -9
  276. package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
  277. package/dist/lib/virtualized/index.d.ts +2 -0
  278. package/dist/lib/virtualized/index.js +35 -31
  279. package/dist/lib/virtualized/list-index.d.ts +5 -0
  280. package/dist/lib/virtualized/list-index.js +13 -0
  281. package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
  282. package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
  283. package/dist/lib/virtualized/types.d.ts +4 -2
  284. package/dist/lib/virtualized/useRowState.js +60 -56
  285. package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
  286. package/dist/llms/rules/ag-grid.js +1 -1
  287. package/dist/llms/rules/installation.js +1 -1
  288. package/dist/llms/rules/real-world-patterns.js +1 -1
  289. package/dist/llms/rules/requirements.js +1 -1
  290. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  291. package/dist/node_modules/unified/lib/index.js +1 -1
  292. package/dist/tailwind.config.js +3 -0
  293. package/dist/theme/tailwind-colors.js +3 -0
  294. package/package.json +23 -4
@@ -0,0 +1,3 @@
1
+ export type AlphabeticalSortDirection = "none" | "asc" | "desc";
2
+ export declare function nextAlphabeticalSortDirection(current: AlphabeticalSortDirection): AlphabeticalSortDirection;
3
+ export declare function compareAlphabeticalValues(left: string, right: string, direction: AlphabeticalSortDirection): number;
@@ -0,0 +1,13 @@
1
+ function t(e) {
2
+ return e === "none" ? "asc" : e === "asc" ? "desc" : "none";
3
+ }
4
+ function a(e, o, n) {
5
+ if (n === "none")
6
+ return 0;
7
+ const r = e.localeCompare(o);
8
+ return n === "desc" ? -r : r;
9
+ }
10
+ export {
11
+ a as compareAlphabeticalValues,
12
+ t as nextAlphabeticalSortDirection
13
+ };
@@ -1,18 +1,18 @@
1
- import { GuideRegistry as S } from "./guide-registry.js";
2
- import { getStepIndex as u, getNextStepId as c, getStepById as g, resolveLocalizedStepContent as f } from "./step-navigation.js";
3
- import { TriggerPluginRegistry as v } from "../triggers/trigger-registry.js";
1
+ import { GuideRegistry as f } from "./guide-registry.js";
2
+ import { getStepIndex as u, canGoBackFromStep as c, getNextStepId as g, getStepById as h, resolveLocalizedStepContent as v } from "./step-navigation.js";
3
+ import { TriggerPluginRegistry as m } from "../triggers/trigger-registry.js";
4
4
  import { registerBuiltInTriggerPlugins as w } from "../triggers/built-in-triggers.js";
5
- import { TargetResolver as m, resolveTargetSynchronously as I, waitForTargetResolved as y } from "../targets/target-resolver.js";
6
- import { GuidanceTargetRefRegistry as R } from "../targets/ref-registry.js";
7
- import { buildGuidanceStorageKey as r, buildSessionStatsKey as h, createDefaultSessionStats as G } from "../storage/storage-keys.js";
8
- class _ {
5
+ import { TargetResolver as I, resolveTargetSynchronously as y, waitForTargetResolved as R } from "../targets/target-resolver.js";
6
+ import { GuidanceTargetRefRegistry as G } from "../targets/ref-registry.js";
7
+ import { buildGuidanceStorageKey as r, buildSessionStatsKey as l, createDefaultSessionStats as k } from "../storage/storage-keys.js";
8
+ class D {
9
9
  sessionState = { status: "idle" };
10
10
  activationToken = 0;
11
11
  listeners = /* @__PURE__ */ new Set();
12
12
  eventHandlers = /* @__PURE__ */ new Map();
13
- guideRegistry = new S();
14
- triggerRegistry = new v();
15
- targetRefRegistry = new R();
13
+ guideRegistry = new f();
14
+ triggerRegistry = new m();
15
+ targetRefRegistry = new G();
16
16
  targetResolver;
17
17
  guideQueue = [];
18
18
  previewMode = !1;
@@ -27,7 +27,7 @@ class _ {
27
27
  cachedRenderInstruction = null;
28
28
  config;
29
29
  constructor(t) {
30
- this.config = t, this.targetResolver = new m(this.targetRefRegistry), w(this.triggerRegistry), this.consentGranted = !t.consentRequired;
30
+ this.config = t, this.targetResolver = new I(this.targetRefRegistry), w(this.triggerRegistry), this.consentGranted = !t.consentRequired;
31
31
  }
32
32
  get state() {
33
33
  return this.sessionState;
@@ -150,7 +150,7 @@ class _ {
150
150
  if (!s)
151
151
  return;
152
152
  const i = u(s, e);
153
- i <= 0 || s.steps[i - 1]?.advanceOn !== "click-next" || await this.activateGuide(s, i - 1);
153
+ i <= 0 || c(s, i) && await this.activateGuide(s, i - 1);
154
154
  }
155
155
  async goToStep(t) {
156
156
  const e = this.sessionState.guideId;
@@ -170,7 +170,7 @@ class _ {
170
170
  if (!s)
171
171
  return;
172
172
  this.track("step.completed", { guideId: t, stepId: e });
173
- const i = await c(
173
+ const i = await g(
174
174
  s,
175
175
  e,
176
176
  (a) => this.triggerRegistry.evaluateExpression(a, this.buildTriggerContext())
@@ -197,7 +197,7 @@ class _ {
197
197
  if (!t || !e || this.sessionState.status !== "active")
198
198
  return;
199
199
  const s = this.guideRegistry.get(t);
200
- !s || !g(s, e)?.skippable || await this.moveToFollowingStep();
200
+ !s || !h(s, e)?.skippable || await this.moveToFollowingStep();
201
201
  }
202
202
  /**
203
203
  * Leaves a step whose target will not appear, including while the engine is
@@ -215,7 +215,7 @@ class _ {
215
215
  if (!s)
216
216
  return;
217
217
  this.track("step.skipped", { guideId: t, stepId: e });
218
- const i = await c(
218
+ const i = await g(
219
219
  s,
220
220
  e,
221
221
  (a) => this.triggerRegistry.evaluateExpression(a, this.buildTriggerContext())
@@ -235,23 +235,22 @@ class _ {
235
235
  this.cachedRenderInstruction = null;
236
236
  return;
237
237
  }
238
- const t = this.guideRegistry.get(this.sessionState.guideId), e = t ? g(t, this.sessionState.stepId) : void 0;
238
+ const t = this.guideRegistry.get(this.sessionState.guideId), e = t ? h(t, this.sessionState.stepId) : void 0;
239
239
  if (!t || !e) {
240
240
  this.cachedRenderInstruction = null;
241
241
  return;
242
242
  }
243
- const s = this.sessionState.stepIndex > 0 ? t.steps[this.sessionState.stepIndex - 1] : void 0;
244
243
  this.cachedRenderInstruction = {
245
244
  guideId: t.id,
246
245
  stepId: e.id,
247
246
  stepIndex: this.sessionState.stepIndex,
248
247
  totalSteps: t.steps.length,
249
248
  renderer: e.renderer,
250
- content: f(t, e, this.config.locale),
249
+ content: v(t, e, this.config.locale),
251
250
  target: this.sessionState.resolvedTarget ?? null,
252
251
  skippable: e.skippable,
253
252
  advanceOn: e.advanceOn,
254
- canGoBack: s?.advanceOn === "click-next",
253
+ canGoBack: c(t, this.sessionState.stepIndex),
255
254
  placement: e.placement ?? "auto",
256
255
  modalBehavior: e.modalBehavior,
257
256
  interactionFooter: e.interactionFooter
@@ -286,7 +285,7 @@ class _ {
286
285
  }
287
286
  let n = null;
288
287
  if (i.target) {
289
- if (n = I(
288
+ if (n = y(
290
289
  this.targetResolver,
291
290
  i.target
292
291
  ), n?.element || (this.setSession({
@@ -294,7 +293,7 @@ class _ {
294
293
  guideId: t.id,
295
294
  stepIndex: e,
296
295
  stepId: i.id
297
- }), n = await y(
296
+ }), n = await R(
298
297
  this.targetResolver,
299
298
  i.target,
300
299
  i.timeout ?? 5e3,
@@ -394,8 +393,8 @@ class _ {
394
393
  if (a && Date.now() < a || (e.dismissedCounts[t.id] ?? 0) >= 3 && t.persistence.mode === "showOnce")
395
394
  return !1;
396
395
  if (t.persistence.schedule) {
397
- const o = Date.now(), l = Date.parse(t.persistence.schedule.start), p = Date.parse(t.persistence.schedule.end);
398
- if (o < l || o > p)
396
+ const o = Date.now(), p = Date.parse(t.persistence.schedule.start), S = Date.parse(t.persistence.schedule.end);
397
+ if (o < p || o > S)
399
398
  return !1;
400
399
  }
401
400
  return this.triggerRegistry.evaluateAll(
@@ -433,12 +432,12 @@ class _ {
433
432
  await this.start(t);
434
433
  }
435
434
  async loadSessionStats() {
436
- const t = h(this.config.tenantId);
437
- return (await this.config.storage.get([t]))[t] ?? G();
435
+ const t = l(this.config.tenantId);
436
+ return (await this.config.storage.get([t]))[t] ?? k();
438
437
  }
439
438
  async saveSessionStats(t) {
440
439
  await this.config.storage.set({
441
- [h(this.config.tenantId)]: t
440
+ [l(this.config.tenantId)]: t
442
441
  });
443
442
  }
444
443
  async hydrateVisitCounts(t) {
@@ -510,5 +509,5 @@ class _ {
510
509
  }
511
510
  }
512
511
  export {
513
- _ as GuidanceEngine
512
+ D as GuidanceEngine
514
513
  };
@@ -1,5 +1,6 @@
1
1
  import { GuideManifest, Step, TriggerExpression } from '../types/guidance.types';
2
2
  export declare function getStepById(manifest: GuideManifest, stepId: string): Step | undefined;
3
3
  export declare function getStepIndex(manifest: GuideManifest, stepId: string): number;
4
+ export declare function canGoBackFromStep(manifest: GuideManifest, stepIndex: number): boolean;
4
5
  export declare function getNextStepId(manifest: GuideManifest, currentStepId: string, evaluateCondition: (expression: TriggerExpression) => Promise<boolean>): Promise<string | null>;
5
6
  export declare function resolveLocalizedStepContent(manifest: GuideManifest, step: Step, locale: string): Step['content'];
@@ -4,13 +4,19 @@ function a(t, e) {
4
4
  function c(t, e) {
5
5
  return t.steps.findIndex((n) => n.id === e);
6
6
  }
7
- function l(t, e, n) {
7
+ function l(t, e) {
8
+ if (e <= 0 || t.steps.length <= 1)
9
+ return !1;
10
+ const n = t.steps[e];
11
+ return n?.showBack === !0 ? !0 : n?.showBack === !1 ? !1 : t.steps[e - 1]?.advanceOn === "click-next";
12
+ }
13
+ function f(t, e, n) {
8
14
  const o = (t.transitions ?? []).filter(
9
15
  (r) => r.from === e
10
16
  );
11
17
  if (!o.length) {
12
- const r = c(t, e), s = t.steps[r + 1];
13
- return Promise.resolve(s?.id ?? null);
18
+ const r = c(t, e), i = t.steps[r + 1];
19
+ return Promise.resolve(i?.id ?? null);
14
20
  }
15
21
  return u(o, n);
16
22
  }
@@ -21,14 +27,15 @@ async function u(t, e) {
21
27
  return null;
22
28
  }
23
29
  function d(t, e, n) {
24
- const i = t.locale[n], o = c(t, e.id);
25
- if (i?.[o])
26
- return i[o];
27
- const r = n.split("-")[0], s = t.locale[r];
28
- return s?.[o] ? s[o] : e.content;
30
+ const s = t.locale[n], o = c(t, e.id);
31
+ if (s?.[o])
32
+ return s[o];
33
+ const r = n.split("-")[0], i = t.locale[r];
34
+ return i?.[o] ? i[o] : e.content;
29
35
  }
30
36
  export {
31
- l as getNextStepId,
37
+ l as canGoBackFromStep,
38
+ f as getNextStepId,
32
39
  a as getStepById,
33
40
  c as getStepIndex,
34
41
  d as resolveLocalizedStepContent
@@ -76,6 +76,11 @@ export interface Step {
76
76
  modalBehavior?: GuidanceModalBehavior;
77
77
  /** Announcement renderer: `keybinding` shows shortcut hint footer instead of Next/Done. */
78
78
  interactionFooter?: GuidanceInteractionFooter;
79
+ /**
80
+ * Overrides Back on this step. Omitted keeps the default (only after a previous
81
+ * `click-next` step). Ignored on the first step and on single-step guides.
82
+ */
83
+ showBack?: boolean;
79
84
  }
80
85
  export interface StepTransition {
81
86
  from: string;
@@ -157,7 +162,10 @@ export interface RenderInstruction {
157
162
  target: ResolvedTarget | null;
158
163
  skippable: boolean;
159
164
  advanceOn: AdvanceCondition;
160
- /** True only when the previous step was an explanation and the page did not change. */
165
+ /**
166
+ * Whether this step shows Back. Default: previous step used `click-next`.
167
+ * `Step.showBack` overrides that. Always false on the first step and single-step guides.
168
+ */
161
169
  canGoBack: boolean;
162
170
  /** Explicit popover placement relative to the target. Defaults to 'auto'. */
163
171
  placement: PopoverPlacement;
@@ -6,6 +6,8 @@ export { useVirtualizedRows, type UseVirtualizedRowsOptions } from './useVirtual
6
6
  export { useVirtualizedList, type UseVirtualizedListOptions, type UseVirtualizedListResult, } from './useVirtualizedList';
7
7
  export { buildSectionedFlatList, type DataSectionBlock, type HeaderSectionBlock, type SectionBlock, type SectionedFlatList, type SectionedFlatRow, } from './sectioned';
8
8
  export { useDebouncedValue } from './useDebouncedValue';
9
+ export { nextVirtualizedListIndex } from './list-index';
10
+ export { readInfiniteQueryList } from './read-infinite-query-list';
9
11
  export { createDirectionalRangeExtractor, createStickyStripRangeExtractor, type DirectionalRangeExtractorOptions, type VirtualScrollDirection, } from './directional-range-extractor';
10
12
  export { useScrollSeekPaintedRange } from './useScrollSeekPaintedRange';
11
13
  export { getResponsiveColumnCount, useResponsiveColumnCount, type ResponsiveColumnCountInput, type UseResponsiveColumnCountOptions, } from './useResponsiveColumnCount';
@@ -3,41 +3,45 @@ import { useDataSource as o } from "./useDataSource.js";
3
3
  import { useRowState as s } from "./useRowState.js";
4
4
  import { useVirtualizedRows as l } from "./useVirtualizedRows.js";
5
5
  import { useVirtualizedList as n } from "./useVirtualizedList.js";
6
- import { buildSectionedFlatList as V } from "./sectioned.js";
7
- import { useDebouncedValue as x } from "./useDebouncedValue.js";
8
- import { createDirectionalRangeExtractor as L, createStickyStripRangeExtractor as c } from "./directional-range-extractor.js";
9
- import { useScrollSeekPaintedRange as S } from "./useScrollSeekPaintedRange.js";
10
- import { getResponsiveColumnCount as C, useResponsiveColumnCount as g } from "./useResponsiveColumnCount.js";
11
- import { useDataGridVirtualRows as D } from "./useDataGrid.js";
12
- import { VirtualizedListProvider as k, useVirtualizedListContext as v } from "./virtualized-list-context.js";
13
- import { getVisibleReadyRowIds as I } from "./virtualized-list-utils.js";
14
- import { VirtualizedList as y, VirtualizedListContent as A, VirtualizedListFooter as E, VirtualizedListHeader as H, VirtualizedListHeaderActions as P, VirtualizedListItem as G, VirtualizedListItemSkeleton as j, VirtualizedListSearch as q, VirtualizedListSelectAll as B, VirtualizedListShell as J, VirtualizedListViewport as K } from "./virtualized-list-parts.js";
6
+ import { buildSectionedFlatList as x } from "./sectioned.js";
7
+ import { useDebouncedValue as V } from "./useDebouncedValue.js";
8
+ import { nextVirtualizedListIndex as L } from "./list-index.js";
9
+ import { readInfiniteQueryList as c } from "./read-infinite-query-list.js";
10
+ import { createDirectionalRangeExtractor as R, createStickyStripRangeExtractor as C } from "./directional-range-extractor.js";
11
+ import { useScrollSeekPaintedRange as w } from "./useScrollSeekPaintedRange.js";
12
+ import { getResponsiveColumnCount as D, useResponsiveColumnCount as b } from "./useResponsiveColumnCount.js";
13
+ import { useDataGridVirtualRows as v } from "./useDataGrid.js";
14
+ import { VirtualizedListProvider as F, useVirtualizedListContext as h } from "./virtualized-list-context.js";
15
+ import { getVisibleReadyRowIds as E } from "./virtualized-list-utils.js";
16
+ import { VirtualizedList as P, VirtualizedListContent as G, VirtualizedListFooter as Q, VirtualizedListHeader as j, VirtualizedListHeaderActions as q, VirtualizedListItem as B, VirtualizedListItemSkeleton as J, VirtualizedListSearch as K, VirtualizedListSelectAll as M, VirtualizedListShell as N, VirtualizedListViewport as O } from "./virtualized-list-parts.js";
15
17
  export {
16
- y as VirtualizedList,
17
- A as VirtualizedListContent,
18
- E as VirtualizedListFooter,
19
- H as VirtualizedListHeader,
20
- P as VirtualizedListHeaderActions,
21
- G as VirtualizedListItem,
22
- j as VirtualizedListItemSkeleton,
23
- k as VirtualizedListProvider,
24
- q as VirtualizedListSearch,
25
- B as VirtualizedListSelectAll,
26
- J as VirtualizedListShell,
27
- K as VirtualizedListViewport,
28
- V as buildSectionedFlatList,
29
- L as createDirectionalRangeExtractor,
30
- c as createStickyStripRangeExtractor,
31
- C as getResponsiveColumnCount,
18
+ P as VirtualizedList,
19
+ G as VirtualizedListContent,
20
+ Q as VirtualizedListFooter,
21
+ j as VirtualizedListHeader,
22
+ q as VirtualizedListHeaderActions,
23
+ B as VirtualizedListItem,
24
+ J as VirtualizedListItemSkeleton,
25
+ F as VirtualizedListProvider,
26
+ K as VirtualizedListSearch,
27
+ M as VirtualizedListSelectAll,
28
+ N as VirtualizedListShell,
29
+ O as VirtualizedListViewport,
30
+ x as buildSectionedFlatList,
31
+ R as createDirectionalRangeExtractor,
32
+ C as createStickyStripRangeExtractor,
33
+ D as getResponsiveColumnCount,
32
34
  r as getSelectionCountsFromState,
33
- I as getVisibleReadyRowIds,
34
- D as useDataGridVirtualRows,
35
+ E as getVisibleReadyRowIds,
36
+ L as nextVirtualizedListIndex,
37
+ c as readInfiniteQueryList,
38
+ v as useDataGridVirtualRows,
35
39
  o as useDataSource,
36
- x as useDebouncedValue,
37
- g as useResponsiveColumnCount,
40
+ V as useDebouncedValue,
41
+ b as useResponsiveColumnCount,
38
42
  s as useRowState,
39
- S as useScrollSeekPaintedRange,
43
+ w as useScrollSeekPaintedRange,
40
44
  n as useVirtualizedList,
41
- v as useVirtualizedListContext,
45
+ h as useVirtualizedListContext,
42
46
  l as useVirtualizedRows
43
47
  };
@@ -0,0 +1,5 @@
1
+ export declare function nextVirtualizedListIndex(options: {
2
+ key: string;
3
+ activeIndex: number;
4
+ itemCount: number;
5
+ }): number | undefined;
@@ -0,0 +1,13 @@
1
+ function r(e) {
2
+ if (!(e.itemCount <= 0)) {
3
+ if (e.key === "ArrowDown")
4
+ return Math.min(e.activeIndex + 1, e.itemCount - 1);
5
+ if (e.key === "ArrowUp")
6
+ return Math.max(e.activeIndex - 1, 0);
7
+ if (e.key === "Home") return 0;
8
+ if (e.key === "End") return e.itemCount - 1;
9
+ }
10
+ }
11
+ export {
12
+ r as nextVirtualizedListIndex
13
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Page-sized TanStack Query lists. For a windowed source, use `prefetchRange` instead of flattening.
3
+ */
4
+ export declare function readInfiniteQueryList<TItem>(input: {
5
+ pages: readonly (readonly TItem[])[] | undefined;
6
+ hasNextPage?: boolean;
7
+ isFetchingNextPage?: boolean;
8
+ fetchNextPage?: () => void;
9
+ }): {
10
+ items: TItem[];
11
+ hasMore: boolean;
12
+ loadingMore: boolean;
13
+ onEndReached: (() => void) | undefined;
14
+ };
@@ -0,0 +1,12 @@
1
+ function s(e) {
2
+ const n = e.pages?.flat() ?? [], t = e.hasNextPage === !0, a = e.isFetchingNextPage === !0, o = e.fetchNextPage;
3
+ return {
4
+ items: n,
5
+ hasMore: t,
6
+ loadingMore: a,
7
+ onEndReached: t && !a && o ? o : void 0
8
+ };
9
+ }
10
+ export {
11
+ s as readInfiniteQueryList
12
+ };
@@ -62,10 +62,11 @@ export interface SelectionCounts {
62
62
  }
63
63
  /**
64
64
  * - **`explicit`**: finite selection only — `selectedIds` is the source of truth (same as before).
65
+ * - **`single`**: one id. `toggleSelect` replaces the set. Select-all is a no-op.
65
66
  * - **`selectAllWithExceptions`**: AG Grid–style SSRM selection — global `selectAll` + exception `toggledIds`
66
67
  * without enumerating every row id (`isSelected` uses the inversion formula).
67
68
  */
68
- export type RowSelectionMode = "explicit" | "selectAllWithExceptions";
69
+ export type RowSelectionMode = "explicit" | "single" | "selectAllWithExceptions";
69
70
  export interface UseRowStateOptions {
70
71
  /**
71
72
  * @default "explicit"
@@ -122,7 +123,8 @@ export interface UseRowStateResult {
122
123
  mergeSelectedIds: (ids: string[]) => void;
123
124
  /**
124
125
  * If every id is already selected, removes those ids in one update; otherwise adds all ids
125
- * (same merge as {@link mergeSelectedIds}). Use for “select / deselect visible window” toggles.
126
+ * (same merge as {@link mergeSelectedIds}). Ids outside the list stay selected.
127
+ * Pass the filtered id list, or the visible window. No-op in `single` mode.
126
128
  */
127
129
  toggleSelectAll: (ids: ReadonlyArray<string>) => void;
128
130
  clearSelection: () => void;
@@ -1,112 +1,116 @@
1
- import { useState as b, useMemo as w, useCallback as c } from "react";
1
+ import { useState as b, useMemo as v, useCallback as c } from "react";
2
2
  import { getSelectionCountsFromState as J } from "./selection-counts.js";
3
- function f(d) {
3
+ function S(d) {
4
4
  return d ? d instanceof Set ? new Set(d) : new Set(d) : /* @__PURE__ */ new Set();
5
5
  }
6
6
  function K(d) {
7
7
  return (d.selectionMode ?? "explicit") === "selectAllWithExceptions" ? {
8
8
  all: d.defaultSelectAll ?? !1,
9
- toggled: f(d.defaultToggledIds)
9
+ toggled: S(d.defaultToggledIds)
10
10
  } : {
11
11
  all: !1,
12
- toggled: f(d.defaultSelectedIds)
12
+ toggled: S(d.defaultSelectedIds)
13
13
  };
14
14
  }
15
15
  function O(d = {}) {
16
- const o = d.selectionMode ?? "explicit", {
17
- selectedIds: g,
16
+ const l = d.selectionMode ?? "explicit", {
17
+ selectedIds: a,
18
18
  onSelectedIdsChange: h,
19
19
  expandedIds: x,
20
- onExpandedIdsChange: m,
20
+ onExpandedIdsChange: w,
21
21
  defaultExpandedIds: R,
22
22
  onSelectionStateChange: P,
23
- selectAll: S,
24
- toggledIds: u
25
- } = d, [I, A] = b(() => K(d)), [v, y] = b(
26
- () => f(R)
27
- ), r = x !== void 0, E = w(() => r ? f(x) : v, [r, x, v]), l = w(
28
- () => o === "selectAllWithExceptions" ? S !== void 0 ? S : I.all : !1,
29
- [o, S, I.all]
30
- ), s = w(() => o === "explicit" ? g !== void 0 ? f(g) : I.toggled : u !== void 0 ? f(u) : I.toggled, [o, g, u, I.toggled]), W = w(() => o === "explicit" || !l ? s : /* @__PURE__ */ new Set(), [o, l, s]), k = c(
31
- (e) => l ? !s.has(e) : s.has(e),
32
- [l, s]
33
- ), F = c((e) => E.has(e), [E]), p = c(
23
+ selectAll: u,
24
+ toggledIds: p
25
+ } = d, [I, A] = b(() => K(d)), [m, y] = b(
26
+ () => S(R)
27
+ ), r = x !== void 0, E = v(() => r ? S(x) : m, [r, x, m]), s = v(
28
+ () => l === "selectAllWithExceptions" ? u !== void 0 ? u : I.all : !1,
29
+ [l, u, I.all]
30
+ ), n = v(() => l === "explicit" || l === "single" ? a !== void 0 ? S(a) : I.toggled : p !== void 0 ? S(p) : I.toggled, [l, a, p, I.toggled]), W = v(() => l === "explicit" || !s ? n : /* @__PURE__ */ new Set(), [l, s, n]), k = c(
31
+ (e) => s ? !n.has(e) : n.has(e),
32
+ [s, n]
33
+ ), F = c((e) => E.has(e), [E]), f = c(
34
34
  (e) => {
35
- h?.(e), g === void 0 && A((t) => ({ ...t, all: !1, toggled: e }));
35
+ h?.(e), a === void 0 && A((t) => ({ ...t, all: !1, toggled: e }));
36
36
  },
37
- [h, g]
37
+ [h, a]
38
38
  ), i = c(
39
39
  (e) => {
40
- P?.(e), S === void 0 && u === void 0 ? A({ all: e.selectAll, toggled: e.toggledIds }) : u === void 0 ? A((t) => ({ ...t, toggled: e.toggledIds })) : S === void 0 && A((t) => ({ ...t, all: e.selectAll }));
40
+ P?.(e), u === void 0 && p === void 0 ? A({ all: e.selectAll, toggled: e.toggledIds }) : p === void 0 ? A((t) => ({ ...t, toggled: e.toggledIds })) : u === void 0 && A((t) => ({ ...t, all: e.selectAll }));
41
41
  },
42
- [P, S, u]
42
+ [P, u, p]
43
43
  ), T = c(
44
44
  (e) => {
45
- const t = new Set(s);
46
- t.has(e) ? t.delete(e) : t.add(e), o === "explicit" ? p(t) : i({ selectAll: l, toggledIds: t });
45
+ if (l === "single") {
46
+ f(/* @__PURE__ */ new Set([e]));
47
+ return;
48
+ }
49
+ const t = new Set(n);
50
+ t.has(e) ? t.delete(e) : t.add(e), l === "explicit" ? f(t) : i({ selectAll: s, toggledIds: t });
47
51
  },
48
- [o, s, l, p, i]
52
+ [l, n, s, f, i]
49
53
  ), j = c(
50
54
  (e) => {
51
- const t = r ? f(x) : v, n = new Set(t);
52
- n.has(e) ? n.delete(e) : n.add(e), r ? m?.(n) : y(n);
55
+ const t = r ? S(x) : m, o = new Set(t);
56
+ o.has(e) ? o.delete(e) : o.add(e), r ? w?.(o) : y(o);
53
57
  },
54
- [r, x, v, m]
58
+ [r, x, m, w]
55
59
  ), q = c(
56
60
  (e) => {
57
- const t = new Set(s);
58
- for (const n of e)
59
- l ? t.delete(n) : t.add(n);
60
- o === "explicit" ? p(t) : i({ selectAll: l, toggledIds: t });
61
+ const t = new Set(n);
62
+ for (const o of e)
63
+ s ? t.delete(o) : t.add(o);
64
+ l === "explicit" ? f(t) : i({ selectAll: s, toggledIds: t });
61
65
  },
62
- [o, s, l, p, i]
66
+ [l, n, s, f, i]
63
67
  ), z = c(
64
68
  (e) => {
65
- if (e.length === 0) return;
69
+ if (l === "single" || e.length === 0) return;
66
70
  const t = e.every(
67
- (a) => l ? !s.has(a) : s.has(a)
68
- ), n = new Set(s);
71
+ (g) => s ? !n.has(g) : n.has(g)
72
+ ), o = new Set(n);
69
73
  if (t)
70
- for (const a of e)
71
- l ? n.add(a) : n.delete(a);
74
+ for (const g of e)
75
+ s ? o.add(g) : o.delete(g);
72
76
  else
73
- for (const a of e)
74
- l ? n.delete(a) : n.add(a);
75
- o === "explicit" ? p(n) : i({ selectAll: l, toggledIds: n });
77
+ for (const g of e)
78
+ s ? o.delete(g) : o.add(g);
79
+ l === "explicit" ? f(o) : i({ selectAll: s, toggledIds: o });
76
80
  },
77
- [o, l, s, p, i]
81
+ [l, s, n, f, i]
78
82
  ), C = c(() => {
79
83
  const e = /* @__PURE__ */ new Set();
80
- o === "explicit" ? (h?.(e), g === void 0 && A((t) => ({ ...t, all: !1, toggled: e }))) : i({ selectAll: !1, toggledIds: e });
81
- }, [o, h, g, i]), B = c(
84
+ l === "explicit" ? (h?.(e), a === void 0 && A((t) => ({ ...t, all: !1, toggled: e }))) : i({ selectAll: !1, toggledIds: e });
85
+ }, [l, h, a, i]), B = c(
82
86
  (e) => {
83
- if (o === "explicit") {
87
+ if (l === "explicit") {
84
88
  e || C();
85
89
  return;
86
90
  }
87
91
  i({ selectAll: e, toggledIds: /* @__PURE__ */ new Set() });
88
92
  },
89
- [o, C, i]
93
+ [l, C, i]
90
94
  ), M = c(() => ({
91
- selectAll: l,
92
- toggledIds: new Set(s)
93
- }), [l, s]), D = c(
95
+ selectAll: s,
96
+ toggledIds: new Set(n)
97
+ }), [s, n]), D = c(
94
98
  (e) => J(M(), e),
95
99
  [M]
96
100
  ), G = c(
97
101
  (e) => e.length === 0 ? !0 : e.every(
98
- (t) => l ? !s.has(t) : s.has(t)
102
+ (t) => s ? !n.has(t) : n.has(t)
99
103
  ),
100
- [l, s]
104
+ [s, n]
101
105
  ), H = c(() => {
102
106
  const e = /* @__PURE__ */ new Set();
103
- r ? m?.(e) : y(e);
104
- }, [r, m]);
107
+ r ? w?.(e) : y(e);
108
+ }, [r, w]);
105
109
  return {
106
- selectionMode: o,
110
+ selectionMode: l,
107
111
  selectedIds: W,
108
- selectAll: l,
109
- toggledIds: s,
112
+ selectAll: s,
113
+ toggledIds: n,
110
114
  getSelectionState: M,
111
115
  getSelectionCounts: D,
112
116
  setSelectAll: B,
@@ -74,7 +74,12 @@ export interface UseVirtualizedListResult<TData, TScrollElement extends Element
74
74
  * estimateSize: () => 52,
75
75
  * onEndReached: fetchNextPage,
76
76
  * hasMore,
77
+ * selectionMode: "single",
77
78
  * });
79
+ * list.rowState.toggleSelect(id);
80
+ * list.rowState.toggleSelectAll(filteredIds);
78
81
  * ```
82
+ *
83
+ * `readInfiniteQueryList` flattens TanStack Query pages into `items`, `hasMore`, and `onEndReached`.
79
84
  */
80
85
  export declare function useVirtualizedList<TData, TScrollElement extends Element = HTMLDivElement, TItemElement extends Element = HTMLDivElement>(options: UseVirtualizedListOptions<TData, TScrollElement, TItemElement>): UseVirtualizedListResult<TData, TScrollElement, TItemElement>;