vane-waterfall 1.0.4 → 2.0.0

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 (246) hide show
  1. package/README.md +174 -365
  2. package/dist/chunks/WaterfallCore-BSXw7bl_.js +581 -0
  3. package/dist/chunks/doc-3Fpag2G8.js +84 -0
  4. package/dist/chunks/doc-78xF08vt.js +82 -0
  5. package/dist/chunks/doc-B-7dugGv.js +79 -0
  6. package/dist/chunks/doc-B6kLfMPv.js +121 -0
  7. package/dist/chunks/doc-BCGQ8Cp5.js +114 -0
  8. package/dist/chunks/doc-BIzjYAZW.js +50 -0
  9. package/dist/chunks/doc-BP0DmB7-.js +91 -0
  10. package/dist/chunks/doc-BXElhF2h.js +138 -0
  11. package/dist/chunks/doc-BXSy2aPP.js +59 -0
  12. package/dist/chunks/doc-BfWnfTst.js +83 -0
  13. package/dist/chunks/doc-BtzhgTYj.js +85 -0
  14. package/dist/chunks/doc-C5xrHNoC.js +70 -0
  15. package/dist/chunks/doc-CBHjiDG7.js +88 -0
  16. package/dist/chunks/doc-CTUoMe7o.js +79 -0
  17. package/dist/chunks/doc-CcPFavOs.js +56 -0
  18. package/dist/chunks/doc-CraXjOaA.js +68 -0
  19. package/dist/chunks/doc-DElLNjIc.js +61 -0
  20. package/dist/chunks/doc-DJjxOYzW.js +111 -0
  21. package/dist/chunks/doc-DukOmDCo.js +95 -0
  22. package/dist/chunks/doc-DzvTrZ13.js +60 -0
  23. package/dist/chunks/doc-NhL4Ux8q.js +125 -0
  24. package/dist/chunks/doc-bTHwfIVb.js +78 -0
  25. package/dist/chunks/doc-f4Uijujv.js +102 -0
  26. package/dist/chunks/doc-gTAsLjVx.js +55 -0
  27. package/dist/chunks/doc-j4W9SUrY.js +76 -0
  28. package/dist/chunks/doc-kTbJE7rY.js +92 -0
  29. package/dist/chunks/index-BAWlVYr3.js +5 -0
  30. package/dist/chunks/index-COaun3nf.js +15 -0
  31. package/dist/chunks/index-DXAtA2f6.js +11 -0
  32. package/dist/chunks/index-DsRLmBW-.js +13 -0
  33. package/dist/chunks/index-gjoCq0yC.js +21 -0
  34. package/dist/chunks/index-wLI6UXkY.js +5 -0
  35. package/dist/chunks/withPlugins-DLoKg4AP.js +559 -0
  36. package/dist/components/WaterfallPlugin/WaterfallCore.d.ts +124 -0
  37. package/dist/components/WaterfallPlugin/WaterfallCore.d.ts.map +1 -0
  38. package/dist/components/WaterfallPlugin/index.d.ts +9 -10
  39. package/dist/components/WaterfallPlugin/index.d.ts.map +1 -0
  40. package/dist/components/WaterfallPlugin/layout.d.ts +41 -0
  41. package/dist/components/WaterfallPlugin/layout.d.ts.map +1 -0
  42. package/dist/components/WaterfallPlugin/plugins/types.d.ts +76 -380
  43. package/dist/components/WaterfallPlugin/plugins/types.d.ts.map +1 -0
  44. package/dist/components/WaterfallPlugin/virtualize.d.ts +62 -0
  45. package/dist/components/WaterfallPlugin/virtualize.d.ts.map +1 -0
  46. package/dist/components/WaterfallPlugin/{plugins/withPlugins.d.ts → withPlugins.d.ts} +4 -2
  47. package/dist/components/WaterfallPlugin/withPlugins.d.ts.map +1 -0
  48. package/dist/custom-plugins/A11yPlugin/create.d.ts +23 -0
  49. package/dist/custom-plugins/A11yPlugin/create.d.ts.map +1 -0
  50. package/dist/custom-plugins/A11yPlugin/doc.json.d.ts +52 -0
  51. package/dist/custom-plugins/A11yPlugin/index.d.ts +11 -0
  52. package/dist/custom-plugins/A11yPlugin/index.d.ts.map +1 -0
  53. package/dist/custom-plugins/A11yPlugin/index.js +5 -0
  54. package/dist/{components/WaterfallPlugin/custom-plugins/Alignment/index.d.ts → custom-plugins/AlignmentPlugin/create.d.ts} +3 -3
  55. package/dist/custom-plugins/AlignmentPlugin/create.d.ts.map +1 -0
  56. package/dist/custom-plugins/AlignmentPlugin/doc.json.d.ts +34 -0
  57. package/dist/custom-plugins/AlignmentPlugin/index.d.ts +11 -0
  58. package/dist/custom-plugins/AlignmentPlugin/index.d.ts.map +1 -0
  59. package/dist/custom-plugins/AlignmentPlugin/index.js +5 -0
  60. package/dist/custom-plugins/AutoColumnPlugin/create.d.ts +18 -0
  61. package/dist/custom-plugins/AutoColumnPlugin/create.d.ts.map +1 -0
  62. package/dist/custom-plugins/AutoColumnPlugin/doc.json.d.ts +50 -0
  63. package/dist/custom-plugins/AutoColumnPlugin/index.d.ts +11 -0
  64. package/dist/custom-plugins/AutoColumnPlugin/index.d.ts.map +1 -0
  65. package/dist/custom-plugins/AutoColumnPlugin/index.js +5 -0
  66. package/dist/{components/WaterfallPlugin/custom-plugins/Bookmark/index.d.ts → custom-plugins/BookmarkPlugin/create.d.ts} +3 -3
  67. package/dist/custom-plugins/BookmarkPlugin/create.d.ts.map +1 -0
  68. package/dist/custom-plugins/BookmarkPlugin/doc.json.d.ts +41 -0
  69. package/dist/custom-plugins/BookmarkPlugin/index.d.ts +11 -0
  70. package/dist/custom-plugins/BookmarkPlugin/index.d.ts.map +1 -0
  71. package/dist/custom-plugins/BookmarkPlugin/index.js +5 -0
  72. package/dist/custom-plugins/ClickAnalyticsPlugin/create.d.ts +25 -0
  73. package/dist/custom-plugins/ClickAnalyticsPlugin/create.d.ts.map +1 -0
  74. package/dist/custom-plugins/ClickAnalyticsPlugin/doc.json.d.ts +41 -0
  75. package/dist/custom-plugins/ClickAnalyticsPlugin/index.d.ts +11 -0
  76. package/dist/custom-plugins/ClickAnalyticsPlugin/index.d.ts.map +1 -0
  77. package/dist/custom-plugins/ClickAnalyticsPlugin/index.js +5 -0
  78. package/dist/{components/WaterfallPlugin/custom-plugins/DebounceLayout/index.d.ts → custom-plugins/DebounceLayoutPlugin/create.d.ts} +3 -3
  79. package/dist/custom-plugins/DebounceLayoutPlugin/create.d.ts.map +1 -0
  80. package/dist/custom-plugins/DebounceLayoutPlugin/doc.json.d.ts +34 -0
  81. package/dist/custom-plugins/DebounceLayoutPlugin/index.d.ts +11 -0
  82. package/dist/custom-plugins/DebounceLayoutPlugin/index.d.ts.map +1 -0
  83. package/dist/custom-plugins/DebounceLayoutPlugin/index.js +5 -0
  84. package/dist/custom-plugins/DragReorderPlugin/create.d.ts +33 -0
  85. package/dist/custom-plugins/DragReorderPlugin/create.d.ts.map +1 -0
  86. package/dist/custom-plugins/DragReorderPlugin/doc.json.d.ts +53 -0
  87. package/dist/custom-plugins/DragReorderPlugin/index.d.ts +11 -0
  88. package/dist/custom-plugins/DragReorderPlugin/index.d.ts.map +1 -0
  89. package/dist/custom-plugins/DragReorderPlugin/index.js +5 -0
  90. package/dist/{components/WaterfallPlugin/custom-plugins/Filter/index.d.ts → custom-plugins/FilterPlugin/create.d.ts} +3 -3
  91. package/dist/custom-plugins/FilterPlugin/create.d.ts.map +1 -0
  92. package/dist/custom-plugins/FilterPlugin/doc.json.d.ts +47 -0
  93. package/dist/custom-plugins/FilterPlugin/index.d.ts +11 -0
  94. package/dist/custom-plugins/FilterPlugin/index.d.ts.map +1 -0
  95. package/dist/custom-plugins/FilterPlugin/index.js +5 -0
  96. package/dist/{components/WaterfallPlugin/custom-plugins/FixedHeight/index.d.ts → custom-plugins/FixedHeightPlugin/create.d.ts} +3 -3
  97. package/dist/custom-plugins/FixedHeightPlugin/create.d.ts.map +1 -0
  98. package/dist/custom-plugins/FixedHeightPlugin/doc.json.d.ts +34 -0
  99. package/dist/custom-plugins/FixedHeightPlugin/index.d.ts +11 -0
  100. package/dist/custom-plugins/FixedHeightPlugin/index.d.ts.map +1 -0
  101. package/dist/custom-plugins/FixedHeightPlugin/index.js +5 -0
  102. package/dist/{components/WaterfallPlugin/custom-plugins/Gap/index.d.ts → custom-plugins/GapPlugin/create.d.ts} +3 -3
  103. package/dist/custom-plugins/GapPlugin/create.d.ts.map +1 -0
  104. package/dist/custom-plugins/GapPlugin/doc.json.d.ts +47 -0
  105. package/dist/custom-plugins/GapPlugin/index.d.ts +11 -0
  106. package/dist/custom-plugins/GapPlugin/index.d.ts.map +1 -0
  107. package/dist/custom-plugins/GapPlugin/index.js +5 -0
  108. package/dist/custom-plugins/GroupingPlugin/create.d.ts +16 -0
  109. package/dist/custom-plugins/GroupingPlugin/create.d.ts.map +1 -0
  110. package/dist/custom-plugins/GroupingPlugin/doc.json.d.ts +40 -0
  111. package/dist/custom-plugins/GroupingPlugin/index.d.ts +11 -0
  112. package/dist/custom-plugins/GroupingPlugin/index.d.ts.map +1 -0
  113. package/dist/custom-plugins/GroupingPlugin/index.js +5 -0
  114. package/dist/custom-plugins/HeatmapAnalyticsPlugin/create.d.ts +31 -0
  115. package/dist/custom-plugins/HeatmapAnalyticsPlugin/create.d.ts.map +1 -0
  116. package/dist/custom-plugins/HeatmapAnalyticsPlugin/doc.json.d.ts +43 -0
  117. package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.d.ts +11 -0
  118. package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.d.ts.map +1 -0
  119. package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.js +5 -0
  120. package/dist/custom-plugins/InfiniteScrollPlugin/create.d.ts +17 -0
  121. package/dist/custom-plugins/InfiniteScrollPlugin/create.d.ts.map +1 -0
  122. package/dist/custom-plugins/InfiniteScrollPlugin/doc.json.d.ts +44 -0
  123. package/dist/custom-plugins/InfiniteScrollPlugin/index.d.ts +11 -0
  124. package/dist/custom-plugins/InfiniteScrollPlugin/index.d.ts.map +1 -0
  125. package/dist/custom-plugins/InfiniteScrollPlugin/index.js +5 -0
  126. package/dist/{components/WaterfallPlugin/custom-plugins/Pagination/index.d.ts → custom-plugins/PaginationPlugin/create.d.ts} +3 -3
  127. package/dist/custom-plugins/PaginationPlugin/create.d.ts.map +1 -0
  128. package/dist/custom-plugins/PaginationPlugin/doc.json.d.ts +50 -0
  129. package/dist/custom-plugins/PaginationPlugin/index.d.ts +11 -0
  130. package/dist/custom-plugins/PaginationPlugin/index.d.ts.map +1 -0
  131. package/dist/custom-plugins/PaginationPlugin/index.js +5 -0
  132. package/dist/custom-plugins/PinItemPlugin/create.d.ts +23 -0
  133. package/dist/custom-plugins/PinItemPlugin/create.d.ts.map +1 -0
  134. package/dist/custom-plugins/PinItemPlugin/doc.json.d.ts +43 -0
  135. package/dist/custom-plugins/PinItemPlugin/index.d.ts +11 -0
  136. package/dist/custom-plugins/PinItemPlugin/index.d.ts.map +1 -0
  137. package/dist/custom-plugins/PinItemPlugin/index.js +5 -0
  138. package/dist/{components/WaterfallPlugin/custom-plugins/Recycle/index.d.ts → custom-plugins/RecyclePlugin/create.d.ts} +3 -3
  139. package/dist/custom-plugins/RecyclePlugin/create.d.ts.map +1 -0
  140. package/dist/custom-plugins/RecyclePlugin/doc.json.d.ts +35 -0
  141. package/dist/custom-plugins/RecyclePlugin/index.d.ts +11 -0
  142. package/dist/custom-plugins/RecyclePlugin/index.d.ts.map +1 -0
  143. package/dist/custom-plugins/RecyclePlugin/index.js +5 -0
  144. package/dist/custom-plugins/ReducedMotionPlugin/create.d.ts +25 -0
  145. package/dist/custom-plugins/ReducedMotionPlugin/create.d.ts.map +1 -0
  146. package/dist/custom-plugins/ReducedMotionPlugin/doc.json.d.ts +42 -0
  147. package/dist/custom-plugins/ReducedMotionPlugin/index.d.ts +11 -0
  148. package/dist/custom-plugins/ReducedMotionPlugin/index.d.ts.map +1 -0
  149. package/dist/custom-plugins/ReducedMotionPlugin/index.js +5 -0
  150. package/dist/custom-plugins/ResponsiveColumnsPlugin/create.d.ts +22 -0
  151. package/dist/custom-plugins/ResponsiveColumnsPlugin/create.d.ts.map +1 -0
  152. package/dist/custom-plugins/ResponsiveColumnsPlugin/doc.json.d.ts +37 -0
  153. package/dist/custom-plugins/ResponsiveColumnsPlugin/index.d.ts +10 -0
  154. package/dist/custom-plugins/ResponsiveColumnsPlugin/index.d.ts.map +1 -0
  155. package/dist/custom-plugins/ResponsiveColumnsPlugin/index.js +5 -0
  156. package/dist/{components/WaterfallPlugin/custom-plugins/ScrollAnchor/index.d.ts → custom-plugins/ScrollAnchorPlugin/create.d.ts} +3 -3
  157. package/dist/custom-plugins/ScrollAnchorPlugin/create.d.ts.map +1 -0
  158. package/dist/custom-plugins/ScrollAnchorPlugin/doc.json.d.ts +34 -0
  159. package/dist/custom-plugins/ScrollAnchorPlugin/index.d.ts +11 -0
  160. package/dist/custom-plugins/ScrollAnchorPlugin/index.d.ts.map +1 -0
  161. package/dist/custom-plugins/ScrollAnchorPlugin/index.js +5 -0
  162. package/dist/{components/WaterfallPlugin/custom-plugins/Search/index.d.ts → custom-plugins/SearchPlugin/create.d.ts} +3 -3
  163. package/dist/custom-plugins/SearchPlugin/create.d.ts.map +1 -0
  164. package/dist/custom-plugins/SearchPlugin/doc.json.d.ts +47 -0
  165. package/dist/custom-plugins/SearchPlugin/index.d.ts +11 -0
  166. package/dist/custom-plugins/SearchPlugin/index.d.ts.map +1 -0
  167. package/dist/custom-plugins/SearchPlugin/index.js +5 -0
  168. package/dist/{components/WaterfallPlugin/custom-plugins/Sort/index.d.ts → custom-plugins/SortPlugin/create.d.ts} +3 -3
  169. package/dist/custom-plugins/SortPlugin/create.d.ts.map +1 -0
  170. package/dist/custom-plugins/SortPlugin/doc.json.d.ts +46 -0
  171. package/dist/custom-plugins/SortPlugin/index.d.ts +11 -0
  172. package/dist/custom-plugins/SortPlugin/index.d.ts.map +1 -0
  173. package/dist/custom-plugins/SortPlugin/index.js +5 -0
  174. package/dist/{components/WaterfallPlugin/custom-plugins/StatePersistence/index.d.ts → custom-plugins/StatePersistencePlugin/create.d.ts} +3 -3
  175. package/dist/custom-plugins/StatePersistencePlugin/create.d.ts.map +1 -0
  176. package/dist/custom-plugins/StatePersistencePlugin/doc.json.d.ts +47 -0
  177. package/dist/custom-plugins/StatePersistencePlugin/index.d.ts +11 -0
  178. package/dist/custom-plugins/StatePersistencePlugin/index.d.ts.map +1 -0
  179. package/dist/custom-plugins/StatePersistencePlugin/index.js +5 -0
  180. package/dist/custom-plugins/StickyHeaderPlugin/create.d.ts +13 -0
  181. package/dist/custom-plugins/StickyHeaderPlugin/create.d.ts.map +1 -0
  182. package/dist/custom-plugins/StickyHeaderPlugin/doc.json.d.ts +40 -0
  183. package/dist/custom-plugins/StickyHeaderPlugin/index.d.ts +11 -0
  184. package/dist/custom-plugins/StickyHeaderPlugin/index.d.ts.map +1 -0
  185. package/dist/custom-plugins/StickyHeaderPlugin/index.js +5 -0
  186. package/dist/{components/WaterfallPlugin/custom-plugins/Throttle/index.d.ts → custom-plugins/ThrottlePlugin/create.d.ts} +3 -3
  187. package/dist/custom-plugins/ThrottlePlugin/create.d.ts.map +1 -0
  188. package/dist/custom-plugins/ThrottlePlugin/doc.json.d.ts +40 -0
  189. package/dist/custom-plugins/ThrottlePlugin/index.d.ts +11 -0
  190. package/dist/custom-plugins/ThrottlePlugin/index.d.ts.map +1 -0
  191. package/dist/custom-plugins/ThrottlePlugin/index.js +5 -0
  192. package/dist/{components/WaterfallPlugin/custom-plugins/Transition/index.d.ts → custom-plugins/TransitionPlugin/create.d.ts} +3 -3
  193. package/dist/custom-plugins/TransitionPlugin/create.d.ts.map +1 -0
  194. package/dist/custom-plugins/TransitionPlugin/doc.json.d.ts +43 -0
  195. package/dist/custom-plugins/TransitionPlugin/index.d.ts +11 -0
  196. package/dist/custom-plugins/TransitionPlugin/index.d.ts.map +1 -0
  197. package/dist/custom-plugins/TransitionPlugin/index.js +5 -0
  198. package/dist/{components/WaterfallPlugin/custom-plugins/URLSync/index.d.ts → custom-plugins/URLSyncPlugin/create.d.ts} +3 -3
  199. package/dist/custom-plugins/URLSyncPlugin/create.d.ts.map +1 -0
  200. package/dist/custom-plugins/URLSyncPlugin/doc.json.d.ts +41 -0
  201. package/dist/custom-plugins/URLSyncPlugin/index.d.ts +11 -0
  202. package/dist/custom-plugins/URLSyncPlugin/index.d.ts.map +1 -0
  203. package/dist/custom-plugins/URLSyncPlugin/index.js +5 -0
  204. package/dist/custom-plugins/index.d.ts +61 -0
  205. package/dist/custom-plugins/index.d.ts.map +1 -0
  206. package/dist/custom-plugins/index.js +34 -0
  207. package/dist/entries/core.d.ts +8 -0
  208. package/dist/entries/core.d.ts.map +1 -0
  209. package/dist/entries/core.js +7 -0
  210. package/dist/entries/plugins.d.ts +7 -0
  211. package/dist/entries/plugins.d.ts.map +1 -0
  212. package/dist/entries/plugins.js +36 -0
  213. package/dist/index.d.ts +14 -9
  214. package/dist/index.d.ts.map +1 -0
  215. package/dist/index.js +8 -0
  216. package/dist/presets/dashboard/index.d.ts +13 -0
  217. package/dist/presets/dashboard/index.d.ts.map +1 -0
  218. package/dist/presets/dashboard/index.js +21 -0
  219. package/dist/presets/photo-feed/index.d.ts +13 -0
  220. package/dist/presets/photo-feed/index.d.ts.map +1 -0
  221. package/dist/presets/photo-feed/index.js +17 -0
  222. package/dist/presets/product-feed/index.d.ts +9 -0
  223. package/dist/presets/product-feed/index.d.ts.map +1 -0
  224. package/dist/presets/product-feed/index.js +23 -0
  225. package/package.json +222 -82
  226. package/dist/404.jpg +0 -0
  227. package/dist/components/WaterfallPlugin/core/WaterfallCore.d.ts +0 -174
  228. package/dist/components/WaterfallPlugin/custom-plugins/A11y/index.d.ts +0 -16
  229. package/dist/components/WaterfallPlugin/custom-plugins/AutoColumn/index.d.ts +0 -17
  230. package/dist/components/WaterfallPlugin/custom-plugins/ClickAnalytics/index.d.ts +0 -12
  231. package/dist/components/WaterfallPlugin/custom-plugins/DragReorder/index.d.ts +0 -13
  232. package/dist/components/WaterfallPlugin/custom-plugins/Grouping/index.d.ts +0 -12
  233. package/dist/components/WaterfallPlugin/custom-plugins/HeatmapAnalytics/index.d.ts +0 -14
  234. package/dist/components/WaterfallPlugin/custom-plugins/InfiniteScroll/index.d.ts +0 -13
  235. package/dist/components/WaterfallPlugin/custom-plugins/PinItem/index.d.ts +0 -13
  236. package/dist/components/WaterfallPlugin/custom-plugins/ReducedMotion/index.d.ts +0 -13
  237. package/dist/components/WaterfallPlugin/custom-plugins/ResponsiveColumns/index.d.ts +0 -10
  238. package/dist/components/WaterfallPlugin/custom-plugins/StickyHeader/index.d.ts +0 -11
  239. package/dist/components/WaterfallPlugin/custom-plugins/VirtualWaterfall/index.d.ts +0 -12
  240. package/dist/components/WaterfallPlugin/custom-plugins/index.d.ts +0 -30
  241. package/dist/components/WaterfallPlugin/plugins/PluginBus.d.ts +0 -2
  242. package/dist/components/WaterfallPlugin/plugins/PluginManager.d.ts +0 -2
  243. package/dist/components/WaterfallPlugin/plugins/index.d.ts +0 -8
  244. package/dist/index.es.js +0 -2382
  245. package/dist/index.umd.js +0 -30
  246. package/dist/vite.svg +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/SearchPlugin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAwD,OAAO,MAAM,GAAG;IACrG,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { c as e, d as a } from "../../chunks/doc-CBHjiDG7.js";
2
+ const r = Object.assign(e, { meta: a });
3
+ export {
4
+ r as createSearchPlugin
5
+ };
@@ -1,5 +1,5 @@
1
- import { WaterfallPlugin } from '../../plugins/types';
2
- type SortConfig<T = any> = {
1
+ import { WaterfallPlugin } from '../../components/WaterfallPlugin/plugins/types';
2
+ export type SortConfig<T = any> = {
3
3
  /** 初始比较函数,可被 props.sortComparator 覆盖 */
4
4
  comparator?: (a: T, b: T) => number;
5
5
  /** 条件变化后自动滚动到顶部 */
@@ -12,4 +12,4 @@ type SortConfig<T = any> = {
12
12
  * 优先使用 props.sortComparator,其次使用创建插件时传入的 comparator
13
13
  */
14
14
  export declare function createSortPlugin<T = any>(config?: SortConfig<T>): WaterfallPlugin<T>;
15
- export {};
15
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/SortPlugin/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEtF,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,GAAG,IAAI;IAChC,wCAAwC;IACxC,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM,CAAC;IACpC,mBAAmB;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CACpC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,GAAE,UAAU,CAAC,CAAC,CAAM,GAAG,eAAe,CAAC,CAAC,CAAC,CAiCxF"}
@@ -0,0 +1,46 @@
1
+ declare const _default: {
2
+ "name": "SortPlugin",
3
+ "description": "用比较函数排序,优先读 `props.sortComparator`。排序总是在过滤之后、分页之前执行,保证「第 N 页」是排序后的第 N 页。",
4
+ "since": "2.0.0",
5
+ "tags": [
6
+ "data",
7
+ "数据管线"
8
+ ],
9
+ "config": [
10
+ {
11
+ "name": "comparator",
12
+ "type": "(a, b) => number",
13
+ "default": "—",
14
+ "description": "默认比较函数,可被 props.sortComparator 覆盖"
15
+ },
16
+ {
17
+ "name": "scrollToTop",
18
+ "type": "boolean",
19
+ "default": "false",
20
+ "description": "排序变化后回顶"
21
+ },
22
+ {
23
+ "name": "scrollBehavior",
24
+ "type": "\"auto\" | \"smooth\"",
25
+ "default": "\"auto\"",
26
+ "description": "回顶行为"
27
+ }
28
+ ],
29
+ "example": "// 按比较函数排序 items,比较函数变化可自动回顶。\nconst Waterfall = withPlugins(WaterfallCore, [\n createSortPlugin({\n scrollToTop: false,\n scrollBehavior: \"auto\",\n }),\n]);\n\n<Waterfall items={items} renderItem={(item) => <Card data={item} />} />;",
30
+ "features": [
31
+ "稳定排序(不改原数组)",
32
+ "比较函数抛错按相等处理",
33
+ "与 Filter / Search 顺序固定"
34
+ ],
35
+ "useCases": [
36
+ "价格 / 时间排序",
37
+ "热度排序",
38
+ "手动置顶项优先"
39
+ ],
40
+ "notes": [
41
+ "排序会复制数组(`[...items].sort`),不会改调用方传入的 items。"
42
+ ]
43
+ }
44
+ ;
45
+
46
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { createSortPlugin as create, SortConfig } from './create';
2
+ import { PluginDoc } from '@vane/plugin-core';
3
+ /**
4
+ * 工厂 + `.meta`:`typeof create` 保留原工厂的泛型签名,
5
+ * `.meta` 供 docs:plugins 与 demo 工坊读取配置项。
6
+ */
7
+ export declare const createSortPlugin: typeof create & {
8
+ meta: PluginDoc;
9
+ };
10
+ export type { SortConfig };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/SortPlugin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAwD,OAAO,MAAM,GAAG;IACnG,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { c as t, d as e } from "../../chunks/doc-BfWnfTst.js";
2
+ const r = Object.assign(t, { meta: e });
3
+ export {
4
+ r as createSortPlugin
5
+ };
@@ -1,5 +1,5 @@
1
- import { WaterfallPlugin } from '../../plugins/types';
2
- type StatePersistenceConfig = {
1
+ import { WaterfallPlugin } from '../../components/WaterfallPlugin/plugins/types';
2
+ export type StatePersistenceConfig = {
3
3
  /** 存储键(localStorage) */
4
4
  storageKey?: string;
5
5
  /** 是否持久化滚动位置 */
@@ -13,4 +13,4 @@ type StatePersistenceConfig = {
13
13
  * - 快照包含:scrollTop(可选)与部分 props 键
14
14
  */
15
15
  export declare function createStatePersistencePlugin<T = any>(config?: StatePersistenceConfig): WaterfallPlugin<T>;
16
- export {};
16
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/StatePersistencePlugin/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEtF,MAAM,MAAM,sBAAsB,GAAG;IACnC,wBAAwB;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,GAAE,sBAA2B,GAAG,eAAe,CAAC,CAAC,CAAC,CAiG7G"}
@@ -0,0 +1,47 @@
1
+ declare const _default: {
2
+ "name": "StatePersistencePlugin",
3
+ "description": "三个时机各做一件事:首次渲染把快照里的 pageIndex / searchQuery 注入 props;挂载后恢复 scrollTop;props 变化与卸载时写回快照。刷新页面不丢进度。",
4
+ "since": "2.0.0",
5
+ "tags": [
6
+ "ui",
7
+ "持久化"
8
+ ],
9
+ "config": [
10
+ {
11
+ "name": "storageKey",
12
+ "type": "string",
13
+ "default": "\"waterfall-state\"",
14
+ "description": "localStorage 键名"
15
+ },
16
+ {
17
+ "name": "persistScroll",
18
+ "type": "boolean",
19
+ "default": "true",
20
+ "description": "是否持久化滚动位置"
21
+ },
22
+ {
23
+ "name": "persistKeys",
24
+ "type": "string[]",
25
+ "default": "[\"pageIndex\",\"pageSize\",\"searchQuery\"]",
26
+ "description": "要持久化的 props 键"
27
+ }
28
+ ],
29
+ "example": "// 把滚动位置与分页/查询状态存 localStorage,回来时恢复。\nconst Waterfall = withPlugins(WaterfallCore, [\n createStatePersistencePlugin({\n storageKey: \"waterfall-state\",\n persistScroll: true,\n persistKeys: [\"pageIndex\",\"pageSize\",\"searchQuery\"],\n }),\n]);\n\n<Waterfall items={items} renderItem={(item) => <Card data={item} />} />;",
30
+ "features": [
31
+ "滚动位置 + 分页/查询一起存",
32
+ "首帧注入只做一次,不会覆盖用户操作",
33
+ "SSR / 隐私模式下降级为不持久化"
34
+ ],
35
+ "useCases": [
36
+ "后台列表刷新不丢页",
37
+ "搜索结果返回定位",
38
+ "移动端来回切换页面"
39
+ ],
40
+ "notes": [
41
+ "只能恢复「值」,不能替你把它写回 React state——页面应订阅 `state:restored` 事件或读 bus。",
42
+ "localStorage 不可用(隐私模式/配额满)时静默跳过,不会抛错。"
43
+ ]
44
+ }
45
+ ;
46
+
47
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { createStatePersistencePlugin as create, StatePersistenceConfig } from './create';
2
+ import { PluginDoc } from '@vane/plugin-core';
3
+ /**
4
+ * 工厂 + `.meta`:`typeof create` 保留原工厂的泛型签名,
5
+ * `.meta` 供 docs:plugins 与 demo 工坊读取配置项。
6
+ */
7
+ export declare const createStatePersistencePlugin: typeof create & {
8
+ meta: PluginDoc;
9
+ };
10
+ export type { StatePersistenceConfig };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/StatePersistencePlugin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,4BAA4B,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAwD,OAAO,MAAM,GAAG;IAC/G,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { c as e, d as t } from "../../chunks/doc-NhL4Ux8q.js";
2
+ const a = Object.assign(e, { meta: t });
3
+ export {
4
+ a as createStatePersistencePlugin
5
+ };
@@ -0,0 +1,13 @@
1
+ import { WaterfallPlugin } from '../../components/WaterfallPlugin/plugins/types';
2
+ export type StickyHeaderConfig = {
3
+ /** 标题文案(默认 "分组标题") */
4
+ title?: string;
5
+ /** 是否显示「向下滚动观察」提示(默认 false) */
6
+ showHint?: boolean;
7
+ };
8
+ /**
9
+ * StickyHeaderPlugin - 吸顶标题(实验版)
10
+ * - 简化实现:始终显示一个吸顶条,可与 GroupingPlugin 联动
11
+ */
12
+ export declare function createStickyHeaderPlugin<T = any>(config?: StickyHeaderConfig): WaterfallPlugin<T>;
13
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/StickyHeaderPlugin/create.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEtF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,GAAE,kBAAuB,GAAG,eAAe,CAAC,CAAC,CAAC,CAoCrG"}
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ "name": "StickyHeaderPlugin",
3
+ "description": "在滚动容器内渲染一条 `position: sticky` 的标题条,始终贴住容器顶部。装了 GroupingPlugin 时自动显示第一个分组名,也可用 title 写死。",
4
+ "since": "2.0.0",
5
+ "tags": [
6
+ "ui",
7
+ "吸顶"
8
+ ],
9
+ "config": [
10
+ {
11
+ "name": "title",
12
+ "type": "string",
13
+ "default": "\"分组标题\"",
14
+ "description": "标题文案"
15
+ },
16
+ {
17
+ "name": "showHint",
18
+ "type": "boolean",
19
+ "default": "false",
20
+ "description": "是否显示「向下滚动观察」提示"
21
+ }
22
+ ],
23
+ "example": "// 滚动容器内的吸顶标题条,可与分组联动显示当前组。\nconst Waterfall = withPlugins(WaterfallCore, [\n createStickyHeaderPlugin({\n title: \"分组标题\",\n showHint: false,\n }),\n]);\n\n<Waterfall items={items} renderItem={(item) => <Card data={item} />} />;",
24
+ "features": [
25
+ "sticky 吸顶,不依赖额外容器",
26
+ "与 Grouping 联动显示当前组",
27
+ "提示文案默认关闭"
28
+ ],
29
+ "useCases": [
30
+ "分组信息流",
31
+ "按日期分组的时间线",
32
+ "长列表的上下文提示"
33
+ ],
34
+ "notes": [
35
+ "sticky 生效要求它作为滚动容器的直接子元素——由 composeSlots 保证,单测已锁。"
36
+ ]
37
+ }
38
+ ;
39
+
40
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { createStickyHeaderPlugin as create, StickyHeaderConfig } from './create';
2
+ import { PluginDoc } from '@vane/plugin-core';
3
+ /**
4
+ * 工厂 + `.meta`:`typeof create` 保留原工厂的泛型签名,
5
+ * `.meta` 供 docs:plugins 与 demo 工坊读取配置项。
6
+ */
7
+ export declare const createStickyHeaderPlugin: typeof create & {
8
+ meta: PluginDoc;
9
+ };
10
+ export type { StickyHeaderConfig };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/StickyHeaderPlugin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,wBAAwB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAwD,OAAO,MAAM,GAAG;IAC3G,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { c as e, d as t } from "../../chunks/doc-BtzhgTYj.js";
2
+ const c = Object.assign(e, { meta: t });
3
+ export {
4
+ c as createStickyHeaderPlugin
5
+ };
@@ -1,5 +1,5 @@
1
- import { WaterfallPlugin } from '../../plugins/types';
2
- type ThrottleConfig = {
1
+ import { WaterfallPlugin } from '../../components/WaterfallPlugin/plugins/types';
2
+ export type ThrottleConfig = {
3
3
  /** 滚动节流(ms) */
4
4
  scroll: number;
5
5
  /** 尺寸变化防抖(ms),用于容器 Resize 相关 */
@@ -9,4 +9,4 @@ type ThrottleConfig = {
9
9
  * ThrottlePlugin - 通过 transformProps 调整核心的滚动节流与尺寸变化防抖
10
10
  */
11
11
  export declare function createThrottlePlugin<T = any>(config: ThrottleConfig): WaterfallPlugin<T>;
12
- export {};
12
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/ThrottlePlugin/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEtF,MAAM,MAAM,cAAc,GAAG;IAC3B,eAAe;IACf,MAAM,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,EAAE,cAAc,GAAG,eAAe,CAAC,CAAC,CAAC,CAexF"}
@@ -0,0 +1,40 @@
1
+ declare const _default: {
2
+ "name": "ThrottlePlugin",
3
+ "description": "接管 Core 的 throttleDelay(滚动回调节流)与 debounceDelay(尺寸变化后多久重排)。默认 16ms / 150ms,长列表滚动卡顿时可以放宽到 32 / 300。",
4
+ "since": "2.0.0",
5
+ "tags": [
6
+ "perf",
7
+ "性能"
8
+ ],
9
+ "config": [
10
+ {
11
+ "name": "scroll",
12
+ "type": "number",
13
+ "default": "—",
14
+ "description": "滚动节流 ms(必填)"
15
+ },
16
+ {
17
+ "name": "resize",
18
+ "type": "number",
19
+ "default": "props.debounceDelay",
20
+ "description": "布局防抖 ms"
21
+ }
22
+ ],
23
+ "example": "// 调整滚动节流与尺寸防抖,弱网/低端机可放宽。\nconst Waterfall = withPlugins(WaterfallCore, [\n createThrottlePlugin(),\n]);\n\n<Waterfall items={items} renderItem={(item) => <Card data={item} />} />;",
24
+ "features": [
25
+ "滚动节流与布局防抖分开调",
26
+ "只改 props,不改算法",
27
+ "与 DebounceLayoutPlugin 叠加时后者优先"
28
+ ],
29
+ "useCases": [
30
+ "低端安卓机长列表",
31
+ "滚动时 CPU 占用过高",
32
+ "拖拽侧栏时减少重排"
33
+ ],
34
+ "notes": [
35
+ "scroll 低于 16ms 没有意义(浏览器帧率上限)。"
36
+ ]
37
+ }
38
+ ;
39
+
40
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { createThrottlePlugin as create, ThrottleConfig } from './create';
2
+ import { PluginDoc } from '@vane/plugin-core';
3
+ /**
4
+ * 工厂 + `.meta`:`typeof create` 保留原工厂的泛型签名,
5
+ * `.meta` 供 docs:plugins 与 demo 工坊读取配置项。
6
+ */
7
+ export declare const createThrottlePlugin: typeof create & {
8
+ meta: PluginDoc;
9
+ };
10
+ export type { ThrottleConfig };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/ThrottlePlugin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,oBAAoB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAwD,OAAO,MAAM,GAAG;IACvG,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { c as t, d as e } from "../../chunks/doc-DzvTrZ13.js";
2
+ const r = Object.assign(t, { meta: e });
3
+ export {
4
+ r as createThrottlePlugin
5
+ };
@@ -1,5 +1,5 @@
1
- import { WaterfallPlugin } from '../../plugins/types';
2
- type TransitionConfig = {
1
+ import { WaterfallPlugin } from '../../components/WaterfallPlugin/plugins/types';
2
+ export type TransitionConfig = {
3
3
  /** 过渡时长(ms) */
4
4
  duration?: number;
5
5
  /** 过渡缓动 */
@@ -10,4 +10,4 @@ type TransitionConfig = {
10
10
  * - 为项元素应用 transform/opacity 的过渡,提升布局更新的视觉平滑度
11
11
  */
12
12
  export declare function createTransitionPlugin<T = any>(config?: TransitionConfig): WaterfallPlugin<T>;
13
- export {};
13
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/TransitionPlugin/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,GAAG,GAAG,EAC5C,MAAM,GAAE,gBAAqB,GAC5B,eAAe,CAAC,CAAC,CAAC,CAsBpB"}
@@ -0,0 +1,43 @@
1
+ declare const _default: {
2
+ "name": "TransitionPlugin",
3
+ "description": "给每个项挂上 transform + opacity 的 CSS 过渡,布局重排、分页切换、筛选后重新排列时位置变化是滑过去的,不是瞬移。",
4
+ "since": "2.0.0",
5
+ "tags": [
6
+ "perf",
7
+ "动效"
8
+ ],
9
+ "config": [
10
+ {
11
+ "name": "duration",
12
+ "type": "number",
13
+ "default": "300",
14
+ "description": "过渡时长 ms"
15
+ },
16
+ {
17
+ "name": "easing",
18
+ "type": "string",
19
+ "default": "ease",
20
+ "description": "缓动函数"
21
+ }
22
+ ],
23
+ "example": "// 布局变化时给项加 transform/opacity 过渡,插入新数据不「闪现」。\nconst Waterfall = withPlugins(WaterfallCore, [\n createTransitionPlugin({\n duration: 300,\n easing: \"ease\",\n }),\n]);\n\n<Waterfall items={items} renderItem={(item) => <Card data={item} />} />;",
24
+ "conflicts": [
25
+ "ReducedMotionPlugin"
26
+ ],
27
+ "features": [
28
+ "项位置变化平滑过渡",
29
+ "挂载时即生效(onItemMount)",
30
+ "与 ReducedMotionPlugin 互斥"
31
+ ],
32
+ "useCases": [
33
+ "筛选 / 排序后重排",
34
+ "分页切换",
35
+ "动态插入卡片"
36
+ ],
37
+ "notes": [
38
+ "首屏大量项同时过渡会有一次「整体滑入」,想要更克制可以把 duration 降到 150ms。"
39
+ ]
40
+ }
41
+ ;
42
+
43
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { createTransitionPlugin as create, TransitionConfig } from './create';
2
+ import { PluginDoc } from '@vane/plugin-core';
3
+ /**
4
+ * 工厂 + `.meta`:`typeof create` 保留原工厂的泛型签名,
5
+ * `.meta` 供 docs:plugins 与 demo 工坊读取配置项。
6
+ */
7
+ export declare const createTransitionPlugin: typeof create & {
8
+ meta: PluginDoc;
9
+ };
10
+ export type { TransitionConfig };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/TransitionPlugin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,sBAAsB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAwD,OAAO,MAAM,GAAG;IACzG,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { c as t, d as a } from "../../chunks/doc-C5xrHNoC.js";
2
+ const n = Object.assign(t, { meta: a });
3
+ export {
4
+ n as createTransitionPlugin
5
+ };
@@ -1,5 +1,5 @@
1
- import { WaterfallPlugin } from '../../plugins/types';
2
- type URLSyncConfig = {
1
+ import { WaterfallPlugin } from '../../components/WaterfallPlugin/plugins/types';
2
+ export type URLSyncConfig = {
3
3
  /** URL 同步使用 hash 还是 search(默认 hash) */
4
4
  mode?: "hash" | "search";
5
5
  /** 需要同步的键列表(从 props 读取) */
@@ -11,4 +11,4 @@ type URLSyncConfig = {
11
11
  * - 初次挂载时读取 URL 并向 bus 广播(页面可据此设置状态)
12
12
  */
13
13
  export declare function createURLSyncPlugin<T = any>(config?: URLSyncConfig): WaterfallPlugin<T>;
14
- export {};
14
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/URLSyncPlugin/create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEtF,MAAM,MAAM,aAAa,GAAG;IAC1B,uCAAuC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,GAAE,aAAkB,GAAG,eAAe,CAAC,CAAC,CAAC,CAiF3F"}
@@ -0,0 +1,41 @@
1
+ declare const _default: {
2
+ "name": "URLSyncPlugin",
3
+ "description": "props 变化时把指定键写进 URL(hash 或 search),挂载时读出来广播 `urlsync:init`。刷新与分享都能还原筛选状态。",
4
+ "since": "2.0.0",
5
+ "tags": [
6
+ "ui",
7
+ "URL",
8
+ "可分享"
9
+ ],
10
+ "config": [
11
+ {
12
+ "name": "mode",
13
+ "type": "\"hash\" | \"search\"",
14
+ "default": "\"hash\"",
15
+ "description": "写 hash 还是 search"
16
+ },
17
+ {
18
+ "name": "keys",
19
+ "type": "string[]",
20
+ "default": "[\"pageIndex\",\"pageSize\",\"searchQuery\"]",
21
+ "description": "要同步的 props 键"
22
+ }
23
+ ],
24
+ "example": "// 把分页/搜索/排序同步进 URL(hash 或 search),链接可分享。\nconst Waterfall = withPlugins(WaterfallCore, [\n createURLSyncPlugin({\n mode: \"hash\",\n keys: [\"pageIndex\",\"pageSize\",\"searchQuery\"],\n }),\n]);\n\n<Waterfall items={items} renderItem={(item) => <Card data={item} />} />;",
25
+ "features": [
26
+ "hash 模式会保留已有路由路径",
27
+ "用 replaceState,不污染后退栈",
28
+ "SSR 安全:无 window 时直接跳过"
29
+ ],
30
+ "useCases": [
31
+ "搜索结果可分享",
32
+ "后台筛选状态可刷新",
33
+ "带参数的深链"
34
+ ],
35
+ "notes": [
36
+ "只做单向同步(props → URL)与初始读取;URL 前进后退的监听请页面自己做。"
37
+ ]
38
+ }
39
+ ;
40
+
41
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { createURLSyncPlugin as create, URLSyncConfig } from './create';
2
+ import { PluginDoc } from '@vane/plugin-core';
3
+ /**
4
+ * 工厂 + `.meta`:`typeof create` 保留原工厂的泛型签名,
5
+ * `.meta` 供 docs:plugins 与 demo 工坊读取配置项。
6
+ */
7
+ export declare const createURLSyncPlugin: typeof create & {
8
+ meta: PluginDoc;
9
+ };
10
+ export type { URLSyncConfig };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom-plugins/URLSyncPlugin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,mBAAmB,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAwD,OAAO,MAAM,GAAG;IACtG,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { c, d as e } from "../../chunks/doc-DJjxOYzW.js";
2
+ const a = Object.assign(c, { meta: e });
3
+ export {
4
+ a as createURLSyncPlugin
5
+ };
@@ -0,0 +1,61 @@
1
+ /**
2
+ * vane-waterfall 官方插件(26 个)。
3
+ *
4
+ * 分组只是文档口径,实际装配顺序由 priority 决定(越大越先执行):
5
+ * perf 80–65 → layout 100–45 → data 40–10 → interaction / ui 0
6
+ * 数据管线内部固定为 Filter(40) → Sort(30) → Search(20) → Pagination(10)。
7
+ *
8
+ * 单个插件也可以走子路径按需引入:`vane-waterfall/custom-plugins/FilterPlugin`。
9
+ */
10
+ export { createAlignmentPlugin } from './AlignmentPlugin';
11
+ export type { AlignmentConfig } from './AlignmentPlugin';
12
+ export { createAutoColumnPlugin } from './AutoColumnPlugin';
13
+ export type { AutoColumnConfig } from './AutoColumnPlugin';
14
+ export { createResponsiveColumnsPlugin } from './ResponsiveColumnsPlugin';
15
+ export { createGapPlugin } from './GapPlugin';
16
+ export type { GapConfig } from './GapPlugin';
17
+ export { createFixedHeightPlugin } from './FixedHeightPlugin';
18
+ export type { FixedHeightConfig } from './FixedHeightPlugin';
19
+ export { createPinItemPlugin } from './PinItemPlugin';
20
+ export type { PinItemConfig } from './PinItemPlugin';
21
+ export { createThrottlePlugin } from './ThrottlePlugin';
22
+ export type { ThrottleConfig } from './ThrottlePlugin';
23
+ export { createDebounceLayoutPlugin } from './DebounceLayoutPlugin';
24
+ export type { DebounceConfig } from './DebounceLayoutPlugin';
25
+ export { createReducedMotionPlugin } from './ReducedMotionPlugin';
26
+ export type { ReducedMotionConfig } from './ReducedMotionPlugin';
27
+ export { createTransitionPlugin } from './TransitionPlugin';
28
+ export type { TransitionConfig } from './TransitionPlugin';
29
+ export { createFilterPlugin } from './FilterPlugin';
30
+ export type { FilterConfig } from './FilterPlugin';
31
+ export { createSortPlugin } from './SortPlugin';
32
+ export type { SortConfig } from './SortPlugin';
33
+ export { createSearchPlugin } from './SearchPlugin';
34
+ export type { SearchConfig } from './SearchPlugin';
35
+ export { createPaginationPlugin } from './PaginationPlugin';
36
+ export type { PaginationConfig } from './PaginationPlugin';
37
+ export { createInfiniteScrollPlugin } from './InfiniteScrollPlugin';
38
+ export type { InfiniteScrollConfig } from './InfiniteScrollPlugin';
39
+ export { createClickAnalyticsPlugin } from './ClickAnalyticsPlugin';
40
+ export type { ClickAnalyticsConfig, ClickAnalyticsStats } from './ClickAnalyticsPlugin';
41
+ export { createHeatmapAnalyticsPlugin } from './HeatmapAnalyticsPlugin';
42
+ export type { HeatmapAnalyticsConfig, HeatmapAnalyticsStats } from './HeatmapAnalyticsPlugin';
43
+ export { createDragReorderPlugin } from './DragReorderPlugin';
44
+ export type { DragReorderConfig } from './DragReorderPlugin';
45
+ export { createScrollAnchorPlugin } from './ScrollAnchorPlugin';
46
+ export type { ScrollAnchorConfig } from './ScrollAnchorPlugin';
47
+ export { createRecyclePlugin } from './RecyclePlugin';
48
+ export type { RecycleConfig } from './RecyclePlugin';
49
+ export { createA11yPlugin } from './A11yPlugin';
50
+ export type { A11yConfig } from './A11yPlugin';
51
+ export { createGroupingPlugin } from './GroupingPlugin';
52
+ export type { GroupingConfig } from './GroupingPlugin';
53
+ export { createStickyHeaderPlugin } from './StickyHeaderPlugin';
54
+ export type { StickyHeaderConfig } from './StickyHeaderPlugin';
55
+ export { createBookmarkPlugin } from './BookmarkPlugin';
56
+ export type { BookmarkConfig } from './BookmarkPlugin';
57
+ export { createStatePersistencePlugin } from './StatePersistencePlugin';
58
+ export type { StatePersistenceConfig } from './StatePersistencePlugin';
59
+ export { createURLSyncPlugin } from './URLSyncPlugin';
60
+ export type { URLSyncConfig } from './URLSyncPlugin';
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/custom-plugins/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,34 @@
1
+ import { c as r, a as t, b as c, d as i, e as n, f as l, g as s, h as u, i as g } from "../chunks/index-gjoCq0yC.js";
2
+ import { c as P, a as m, b as p, d } from "../chunks/index-DXAtA2f6.js";
3
+ import { c as x, a as y, b as S, d as A, e as b, f as h } from "../chunks/index-COaun3nf.js";
4
+ import { c as k, a as C, b as H, d as D, e as F } from "../chunks/index-DsRLmBW-.js";
5
+ import { c as I } from "../chunks/index-BAWlVYr3.js";
6
+ import { c as T } from "../chunks/index-wLI6UXkY.js";
7
+ export {
8
+ T as createA11yPlugin,
9
+ r as createAlignmentPlugin,
10
+ P as createAutoColumnPlugin,
11
+ k as createBookmarkPlugin,
12
+ x as createClickAnalyticsPlugin,
13
+ C as createDebounceLayoutPlugin,
14
+ t as createDragReorderPlugin,
15
+ y as createFilterPlugin,
16
+ S as createFixedHeightPlugin,
17
+ m as createGapPlugin,
18
+ c as createGroupingPlugin,
19
+ i as createHeatmapAnalyticsPlugin,
20
+ p as createInfiniteScrollPlugin,
21
+ A as createPaginationPlugin,
22
+ n as createPinItemPlugin,
23
+ H as createRecyclePlugin,
24
+ d as createReducedMotionPlugin,
25
+ b as createResponsiveColumnsPlugin,
26
+ l as createScrollAnchorPlugin,
27
+ s as createSearchPlugin,
28
+ h as createSortPlugin,
29
+ D as createStatePersistencePlugin,
30
+ u as createStickyHeaderPlugin,
31
+ F as createThrottlePlugin,
32
+ I as createTransitionPlugin,
33
+ g as createURLSyncPlugin
34
+ };