vane-waterfall 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +4 -4
  2. package/dist/chunks/WaterfallCore-EdAZuWAY.js +695 -0
  3. package/dist/chunks/doc-BAhVW3g8.js +150 -0
  4. package/dist/chunks/doc-BU0CKW63.js +156 -0
  5. package/dist/chunks/doc-BrEd0oZB.js +100 -0
  6. package/dist/chunks/{doc-bTHwfIVb.js → doc-Bud0hbaz.js} +39 -25
  7. package/dist/chunks/{doc-DukOmDCo.js → doc-C-B3zK2o.js} +52 -23
  8. package/dist/chunks/{doc-DElLNjIc.js → doc-C206ZwYC.js} +33 -24
  9. package/dist/chunks/doc-C2L8kkeI.js +112 -0
  10. package/dist/chunks/doc-CE1DGMBV.js +166 -0
  11. package/dist/chunks/{doc-BXSy2aPP.js → doc-CHbQXLwY.js} +33 -19
  12. package/dist/chunks/{doc-BfWnfTst.js → doc-CInpKZNU.js} +38 -24
  13. package/dist/chunks/{doc-gTAsLjVx.js → doc-CYxwSuG6.js} +30 -16
  14. package/dist/chunks/{doc-DzvTrZ13.js → doc-CaJ02INP.js} +25 -16
  15. package/dist/chunks/{doc-BXElhF2h.js → doc-CiCso5Ti.js} +44 -30
  16. package/dist/chunks/doc-CkuMr8Ca.js +118 -0
  17. package/dist/chunks/{doc-3Fpag2G8.js → doc-D7m1OFCW.js} +38 -24
  18. package/dist/chunks/doc-DEN2WTDh.js +153 -0
  19. package/dist/chunks/{doc-C5xrHNoC.js → doc-DhICh9S2.js} +37 -23
  20. package/dist/chunks/doc-DlJICsyN.js +100 -0
  21. package/dist/chunks/{doc-BtzhgTYj.js → doc-DtxS1-P0.js} +35 -26
  22. package/dist/chunks/{doc-BIzjYAZW.js → doc-DudYCn_-.js} +25 -16
  23. package/dist/chunks/doc-HoyAFR_m.js +101 -0
  24. package/dist/chunks/doc-RlBMCMNs.js +170 -0
  25. package/dist/chunks/doc-RwKQqySd.js +102 -0
  26. package/dist/chunks/{doc-CTUoMe7o.js → doc-eYhNJy97.js} +31 -22
  27. package/dist/chunks/{doc-CcPFavOs.js → doc-i6FY1We1.js} +27 -13
  28. package/dist/chunks/doc-skPl6ZMP.js +101 -0
  29. package/dist/chunks/index-8gEIzUxi.js +15 -0
  30. package/dist/chunks/index-B96I5CKE.js +21 -0
  31. package/dist/chunks/index-Bjmhy8jW.js +11 -0
  32. package/dist/chunks/index-Cuq0ofv-.js +13 -0
  33. package/dist/chunks/{index-BAWlVYr3.js → index-Cz4YEqRF.js} +1 -1
  34. package/dist/chunks/{index-wLI6UXkY.js → index-FBJVUYmH.js} +1 -1
  35. package/dist/chunks/withPlugins-BOeDFhof.js +743 -0
  36. package/dist/components/WaterfallPlugin/WaterfallCore.d.ts +19 -0
  37. package/dist/components/WaterfallPlugin/WaterfallCore.d.ts.map +1 -1
  38. package/dist/components/WaterfallPlugin/layout.d.ts +7 -0
  39. package/dist/components/WaterfallPlugin/layout.d.ts.map +1 -1
  40. package/dist/components/WaterfallPlugin/plugins/types.d.ts +3 -0
  41. package/dist/components/WaterfallPlugin/plugins/types.d.ts.map +1 -1
  42. package/dist/components/WaterfallPlugin/withPlugins.d.ts.map +1 -1
  43. package/dist/custom-plugins/A11yPlugin/create.d.ts.map +1 -1
  44. package/dist/custom-plugins/A11yPlugin/doc.json.d.ts +64 -40
  45. package/dist/custom-plugins/A11yPlugin/index.js +1 -1
  46. package/dist/custom-plugins/AlignmentPlugin/doc.json.d.ts +42 -28
  47. package/dist/custom-plugins/AlignmentPlugin/index.js +1 -1
  48. package/dist/custom-plugins/AutoColumnPlugin/doc.json.d.ts +53 -44
  49. package/dist/custom-plugins/AutoColumnPlugin/index.js +1 -1
  50. package/dist/custom-plugins/BookmarkPlugin/create.d.ts.map +1 -1
  51. package/dist/custom-plugins/BookmarkPlugin/doc.json.d.ts +44 -35
  52. package/dist/custom-plugins/BookmarkPlugin/index.js +1 -1
  53. package/dist/custom-plugins/ClickAnalyticsPlugin/create.d.ts +2 -0
  54. package/dist/custom-plugins/ClickAnalyticsPlugin/create.d.ts.map +1 -1
  55. package/dist/custom-plugins/ClickAnalyticsPlugin/doc.json.d.ts +29 -0
  56. package/dist/custom-plugins/ClickAnalyticsPlugin/index.js +1 -1
  57. package/dist/custom-plugins/DebounceLayoutPlugin/doc.json.d.ts +37 -28
  58. package/dist/custom-plugins/DebounceLayoutPlugin/index.js +1 -1
  59. package/dist/custom-plugins/DragReorderPlugin/doc.json.d.ts +14 -0
  60. package/dist/custom-plugins/DragReorderPlugin/index.js +1 -1
  61. package/dist/custom-plugins/FilterPlugin/doc.json.d.ts +53 -39
  62. package/dist/custom-plugins/FilterPlugin/index.js +1 -1
  63. package/dist/custom-plugins/FixedHeightPlugin/doc.json.d.ts +42 -28
  64. package/dist/custom-plugins/FixedHeightPlugin/index.js +1 -1
  65. package/dist/custom-plugins/GapPlugin/create.d.ts.map +1 -1
  66. package/dist/custom-plugins/GapPlugin/doc.json.d.ts +61 -37
  67. package/dist/custom-plugins/GapPlugin/index.js +1 -1
  68. package/dist/custom-plugins/GroupingPlugin/create.d.ts.map +1 -1
  69. package/dist/custom-plugins/GroupingPlugin/doc.json.d.ts +61 -32
  70. package/dist/custom-plugins/GroupingPlugin/index.js +1 -1
  71. package/dist/custom-plugins/HeatmapAnalyticsPlugin/create.d.ts +2 -0
  72. package/dist/custom-plugins/HeatmapAnalyticsPlugin/create.d.ts.map +1 -1
  73. package/dist/custom-plugins/HeatmapAnalyticsPlugin/doc.json.d.ts +24 -0
  74. package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.js +1 -1
  75. package/dist/custom-plugins/InfiniteScrollPlugin/create.d.ts.map +1 -1
  76. package/dist/custom-plugins/InfiniteScrollPlugin/doc.json.d.ts +55 -36
  77. package/dist/custom-plugins/InfiniteScrollPlugin/index.js +1 -1
  78. package/dist/custom-plugins/PaginationPlugin/create.d.ts.map +1 -1
  79. package/dist/custom-plugins/PaginationPlugin/doc.json.d.ts +56 -42
  80. package/dist/custom-plugins/PaginationPlugin/index.js +1 -1
  81. package/dist/custom-plugins/PinItemPlugin/doc.json.d.ts +49 -35
  82. package/dist/custom-plugins/PinItemPlugin/index.js +1 -1
  83. package/dist/custom-plugins/RecyclePlugin/create.d.ts.map +1 -1
  84. package/dist/custom-plugins/RecyclePlugin/doc.json.d.ts +57 -28
  85. package/dist/custom-plugins/RecyclePlugin/index.js +1 -1
  86. package/dist/custom-plugins/ReducedMotionPlugin/doc.json.d.ts +29 -0
  87. package/dist/custom-plugins/ReducedMotionPlugin/index.js +1 -1
  88. package/dist/custom-plugins/ResponsiveColumnsPlugin/doc.json.d.ts +40 -31
  89. package/dist/custom-plugins/ResponsiveColumnsPlugin/index.js +1 -1
  90. package/dist/custom-plugins/ScrollAnchorPlugin/doc.json.d.ts +42 -28
  91. package/dist/custom-plugins/ScrollAnchorPlugin/index.js +1 -1
  92. package/dist/custom-plugins/SearchPlugin/doc.json.d.ts +53 -39
  93. package/dist/custom-plugins/SearchPlugin/index.js +1 -1
  94. package/dist/custom-plugins/SortPlugin/doc.json.d.ts +52 -38
  95. package/dist/custom-plugins/SortPlugin/index.js +1 -1
  96. package/dist/custom-plugins/StatePersistencePlugin/create.d.ts.map +1 -1
  97. package/dist/custom-plugins/StatePersistencePlugin/doc.json.d.ts +71 -37
  98. package/dist/custom-plugins/StatePersistencePlugin/index.js +1 -1
  99. package/dist/custom-plugins/StickyHeaderPlugin/create.d.ts.map +1 -1
  100. package/dist/custom-plugins/StickyHeaderPlugin/doc.json.d.ts +43 -34
  101. package/dist/custom-plugins/StickyHeaderPlugin/index.js +1 -1
  102. package/dist/custom-plugins/ThrottlePlugin/doc.json.d.ts +43 -34
  103. package/dist/custom-plugins/ThrottlePlugin/index.js +1 -1
  104. package/dist/custom-plugins/TransitionPlugin/doc.json.d.ts +49 -35
  105. package/dist/custom-plugins/TransitionPlugin/index.js +1 -1
  106. package/dist/custom-plugins/URLSyncPlugin/create.d.ts.map +1 -1
  107. package/dist/custom-plugins/URLSyncPlugin/doc.json.d.ts +57 -33
  108. package/dist/custom-plugins/URLSyncPlugin/index.js +1 -1
  109. package/dist/custom-plugins/index.js +6 -6
  110. package/dist/entries/core.js +1 -1
  111. package/dist/entries/plugins.js +7 -7
  112. package/dist/index.js +2 -2
  113. package/dist/presets/dashboard/index.js +2 -2
  114. package/dist/presets/photo-feed/index.js +3 -3
  115. package/dist/presets/product-feed/index.js +2 -2
  116. package/package.json +16 -8
  117. package/dist/chunks/WaterfallCore-BSXw7bl_.js +0 -581
  118. package/dist/chunks/doc-78xF08vt.js +0 -82
  119. package/dist/chunks/doc-B-7dugGv.js +0 -79
  120. package/dist/chunks/doc-B6kLfMPv.js +0 -121
  121. package/dist/chunks/doc-BCGQ8Cp5.js +0 -114
  122. package/dist/chunks/doc-BP0DmB7-.js +0 -91
  123. package/dist/chunks/doc-CBHjiDG7.js +0 -88
  124. package/dist/chunks/doc-CraXjOaA.js +0 -68
  125. package/dist/chunks/doc-DJjxOYzW.js +0 -111
  126. package/dist/chunks/doc-NhL4Ux8q.js +0 -125
  127. package/dist/chunks/doc-f4Uijujv.js +0 -102
  128. package/dist/chunks/doc-j4W9SUrY.js +0 -76
  129. package/dist/chunks/doc-kTbJE7rY.js +0 -92
  130. package/dist/chunks/index-COaun3nf.js +0 -15
  131. package/dist/chunks/index-DXAtA2f6.js +0 -11
  132. package/dist/chunks/index-DsRLmBW-.js +0 -13
  133. package/dist/chunks/index-gjoCq0yC.js +0 -21
  134. package/dist/chunks/withPlugins-DLoKg4AP.js +0 -559
@@ -1,43 +1,57 @@
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": [
1
+ declare const _default: {
2
+ "name": "TransitionPlugin",
3
+ "description": "给每个项挂上 transform + opacity 的 CSS 过渡,布局重排、分页切换、筛选后重新排列时位置变化是滑过去的,不是瞬移。",
4
+ "since": "2.0.0",
5
+ "tags": [
6
+ "perf",
7
+ "动效"
8
+ ],
9
+ "events": [
10
10
  {
11
- "name": "duration",
12
- "type": "number",
13
- "default": "300",
14
- "description": "过渡时长 ms"
11
+ "name": "onItemMount",
12
+ "when": "单个卡片挂载并拿到 DOM 元素时",
13
+ "description": "按卡片绑定监听、观察器、埋点"
15
14
  },
16
15
  {
17
- "name": "easing",
18
- "type": "string",
19
- "default": "ease",
20
- "description": "缓动函数"
16
+ "name": "onLayout",
17
+ "when": "布局计算完成、结果已确定",
18
+ "description": "读取每列高度、做二次修正或上报"
21
19
  }
22
20
  ],
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
- }
21
+ "methods": [],
22
+ "methodsNote": "只读取 context 字段(props / state / data),不调用上下文方法",
23
+ "config": [
24
+ {
25
+ "name": "duration",
26
+ "type": "number",
27
+ "default": "300",
28
+ "description": "过渡时长 ms"
29
+ },
30
+ {
31
+ "name": "easing",
32
+ "type": "string",
33
+ "default": "ease",
34
+ "description": "缓动函数"
35
+ }
36
+ ],
37
+ "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} />} />;",
38
+ "conflicts": [
39
+ "ReducedMotionPlugin"
40
+ ],
41
+ "features": [
42
+ "项位置变化平滑过渡",
43
+ "挂载时即生效(onItemMount)",
44
+ "与 ReducedMotionPlugin 互斥"
45
+ ],
46
+ "useCases": [
47
+ "筛选 / 排序后重排",
48
+ "分页切换",
49
+ "动态插入卡片"
50
+ ],
51
+ "notes": [
52
+ "首屏大量项同时过渡会有一次「整体滑入」,想要更克制可以把 duration 降到 150ms。"
53
+ ]
54
+ }
41
55
  ;
42
56
 
43
57
  export default _default;
@@ -1,4 +1,4 @@
1
- import { c as t, d as a } from "../../chunks/doc-C5xrHNoC.js";
1
+ import { c as t, d as a } from "../../chunks/doc-DhICh9S2.js";
2
2
  const n = Object.assign(t, { meta: a });
3
3
  export {
4
4
  n as createTransitionPlugin
@@ -1 +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"}
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,CA8G3F"}
@@ -1,41 +1,65 @@
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": [
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
+ "events": [
11
+ {
12
+ "name": "onMount",
13
+ "when": "瀑布流挂载完成",
14
+ "description": "初始化观察器与滚动监听,返回清理函数"
15
+ },
11
16
  {
12
- "name": "mode",
13
- "type": "\"hash\" | \"search\"",
14
- "default": "\"hash\"",
15
- "description": "写 hash 还是 search"
17
+ "name": "onPropsChange",
18
+ "when": "props 变化后",
19
+ "description": "数据或配置变化时请求重排"
16
20
  },
17
21
  {
18
- "name": "keys",
19
- "type": "string[]",
20
- "default": "[\"pageIndex\",\"pageSize\",\"searchQuery\"]",
21
- "description": "要同步的 props 键"
22
+ "name": "transformProps",
23
+ "when": "渲染前链式改写瀑布流 props",
24
+ "description": "补 gap / columns 默认值、按断点覆盖配置"
25
+ },
26
+ {
27
+ "name": "urlsync:init",
28
+ "when": "从 URL 参数初始化完成后",
29
+ "description": "广播初始参数快照"
22
30
  }
23
31
  ],
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
- }
32
+ "methods": [],
33
+ "methodsNote": "只读取 context 字段(props / state / data),不调用上下文方法",
34
+ "config": [
35
+ {
36
+ "name": "mode",
37
+ "type": "\"hash\" | \"search\"",
38
+ "default": "\"hash\"",
39
+ "description": "写 hash 还是 search"
40
+ },
41
+ {
42
+ "name": "keys",
43
+ "type": "string[]",
44
+ "default": "[\"pageIndex\",\"pageSize\",\"searchQuery\"]",
45
+ "description": "要同步的 props 键"
46
+ }
47
+ ],
48
+ "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} />} />;",
49
+ "features": [
50
+ "hash 模式会保留已有路由路径",
51
+ "用 replaceState,不污染后退栈",
52
+ "SSR 安全:无 window 时直接跳过"
53
+ ],
54
+ "useCases": [
55
+ "搜索结果可分享",
56
+ "后台筛选状态可刷新",
57
+ "带参数的深链"
58
+ ],
59
+ "notes": [
60
+ "只做单向同步(props → URL)与初始读取;URL 前进后退的监听请页面自己做。"
61
+ ]
62
+ }
39
63
  ;
40
64
 
41
65
  export default _default;
@@ -1,4 +1,4 @@
1
- import { c, d as e } from "../../chunks/doc-DJjxOYzW.js";
1
+ import { c, d as e } from "../../chunks/doc-BAhVW3g8.js";
2
2
  const a = Object.assign(c, { meta: e });
3
3
  export {
4
4
  a as createURLSyncPlugin
@@ -1,9 +1,9 @@
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";
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-B96I5CKE.js";
2
+ import { c as P, a as m, b as p, d } from "../chunks/index-Bjmhy8jW.js";
3
+ import { c as x, a as y, b as S, d as A, e as b, f as h } from "../chunks/index-8gEIzUxi.js";
4
+ import { c as k, a as C, b as H, d as D, e as F } from "../chunks/index-Cuq0ofv-.js";
5
+ import { c as I } from "../chunks/index-Cz4YEqRF.js";
6
+ import { c as T } from "../chunks/index-FBJVUYmH.js";
7
7
  export {
8
8
  T as createA11yPlugin,
9
9
  r as createAlignmentPlugin,
@@ -1,4 +1,4 @@
1
- import { W as e, c as t, a as r, b as c } from "../chunks/WaterfallCore-BSXw7bl_.js";
1
+ import { W as e, c as t, a as r, b as c } from "../chunks/WaterfallCore-EdAZuWAY.js";
2
2
  export {
3
3
  e as WaterfallCore,
4
4
  t as computeLayout,
@@ -1,10 +1,10 @@
1
- import { w as r } from "../chunks/withPlugins-DLoKg4AP.js";
2
- import { c as i } from "../chunks/index-wLI6UXkY.js";
3
- import { c, a as l, b as s, d as u, e as g, f as o, g as P, h as m, i as p } from "../chunks/index-gjoCq0yC.js";
4
- import { c as d, a as x, b as y, d as S } from "../chunks/index-DXAtA2f6.js";
5
- import { c as A, a as b, b as R, d as k, e as C } from "../chunks/index-DsRLmBW-.js";
6
- import { c as w, a as D, b as F, d as G, e as I, f as L } from "../chunks/index-COaun3nf.js";
7
- import { c as v } from "../chunks/index-BAWlVYr3.js";
1
+ import { w as r } from "../chunks/withPlugins-BOeDFhof.js";
2
+ import { c as i } from "../chunks/index-FBJVUYmH.js";
3
+ import { c, a as l, b as s, d as u, e as g, f as o, g as P, h as m, i as p } from "../chunks/index-B96I5CKE.js";
4
+ import { c as d, a as x, b as y, d as S } from "../chunks/index-Bjmhy8jW.js";
5
+ import { c as A, a as b, b as R, d as k, e as C } from "../chunks/index-Cuq0ofv-.js";
6
+ import { c as w, a as D, b as F, d as G, e as I, f as L } from "../chunks/index-8gEIzUxi.js";
7
+ import { c as v } from "../chunks/index-Cz4YEqRF.js";
8
8
  export {
9
9
  i as createA11yPlugin,
10
10
  c as createAlignmentPlugin,
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { W as o, c as t, b as r } from "./chunks/WaterfallCore-BSXw7bl_.js";
2
- import { w as i } from "./chunks/withPlugins-DLoKg4AP.js";
1
+ import { W as o, c as t, b as r } from "./chunks/WaterfallCore-EdAZuWAY.js";
2
+ import { w as i } from "./chunks/withPlugins-BOeDFhof.js";
3
3
  export {
4
4
  o as WaterfallCore,
5
5
  t as computeLayout,
@@ -1,5 +1,5 @@
1
- import { e as s, a as c, b as l, d as n, c as i } from "../../chunks/index-DsRLmBW-.js";
2
- import { c as u } from "../../chunks/index-wLI6UXkY.js";
1
+ import { e as s, a as c, b as l, d as n, c as i } from "../../chunks/index-Cuq0ofv-.js";
2
+ import { c as u } from "../../chunks/index-FBJVUYmH.js";
3
3
  function P(r = {}) {
4
4
  const {
5
5
  scrollThrottle: t = 24,
@@ -1,6 +1,6 @@
1
- import { c as r } from "../../chunks/index-wLI6UXkY.js";
2
- import { c as i, a as l, d as u, b as c } from "../../chunks/index-DXAtA2f6.js";
3
- import { c as m } from "../../chunks/index-BAWlVYr3.js";
1
+ import { c as r } from "../../chunks/index-FBJVUYmH.js";
2
+ import { c as i, a as l, d as u, b as c } from "../../chunks/index-Bjmhy8jW.js";
3
+ import { c as m } from "../../chunks/index-Cz4YEqRF.js";
4
4
  function g(a = {}) {
5
5
  const { minColumnWidth: n = 240, maxColumns: o = 4, gap: e = 16, threshold: t = 400 } = a;
6
6
  return [
@@ -1,5 +1,5 @@
1
- import { e as o, b as r, a, f as n, d as l, c as s } from "../../chunks/index-COaun3nf.js";
2
- import { c } from "../../chunks/index-BAWlVYr3.js";
1
+ import { e as o, b as r, a, f as n, d as l, c as s } from "../../chunks/index-8gEIzUxi.js";
2
+ import { c } from "../../chunks/index-Cz4YEqRF.js";
3
3
  function p(e = {}) {
4
4
  const { itemHeight: t = 300, pageSize: i = 24 } = e;
5
5
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vane-waterfall",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "React 瀑布流布局组件:插件化、可变高、虚拟化,27 个领域插件",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -187,15 +187,23 @@
187
187
  "vite": "^5.4.1",
188
188
  "vite-plugin-dts": "^4.5.4",
189
189
  "vitest": "^2.1.9",
190
- "vane-plugin-core": "0.1.0",
191
- "@vane/tsconfig": "0.1.0",
192
190
  "@vane/build-config": "0.1.0",
191
+ "@vane/tsconfig": "0.1.0",
193
192
  "@vane/eslint-config": "0.1.0",
194
- "@vane/vitest-config": "0.1.0"
193
+ "@vane/vitest-config": "0.1.0",
194
+ "vane-plugin-core": "0.1.2"
195
195
  },
196
196
  "vane": {
197
- "sizeBudgetKb": 14,
198
- "coreSizeBudgetKb": 12
197
+ "demo": {
198
+ "brand": "V",
199
+ "subtitle": "排版台 / plugin index",
200
+ "title": "瀑布流排版台",
201
+ "accent": "#ccf24b",
202
+ "bg": "#080a09"
203
+ },
204
+ "sizeBudgetKb": 14.9,
205
+ "coreSizeBudgetKb": 12,
206
+ "sizeBudgetNote": "【2026-11-04 内核修复批次:14→14.9KB】入口实测 14.46KB=内核 withPlugins 共享块 8.24KB(devDep 内联)+ 瀑布流核心/领域槽;内核自 0.1.1 累计 gzip +1.33KB(本轮 +117B)。是否可裁:否——67 个 js 全部可达、0 重复内容。按实测 +3.0% 余量(上限),后续新增功能需先压回或走预算评审。"
199
207
  },
200
208
  "engines": {
201
209
  "node": ">=18"
@@ -205,10 +213,10 @@
205
213
  },
206
214
  "scripts": {
207
215
  "dev": "vite --config demo/vite.config.ts",
208
- "build": "vite build",
216
+ "build": "vite build --mode lib",
209
217
  "build:demo": "vite build --config demo/vite.config.ts",
210
218
  "typecheck": "tsc --noEmit -p tsconfig.json",
211
- "test": "vitest run --pool=threads",
219
+ "test": "vitest run",
212
220
  "lint": "eslint .",
213
221
  "sync:exports": "node ../../scripts/sync-exports.mjs",
214
222
  "docs:plugins": "node ../../scripts/generate-plugin-docs.mjs",