vane-waterfall 2.0.0 → 2.0.2

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 (121) hide show
  1. package/README.md +6 -6
  2. package/dist/chunks/WaterfallCore-EdAZuWAY.js +695 -0
  3. package/dist/chunks/{doc-kTbJE7rY.js → doc-BCmEnh39.js} +31 -29
  4. package/dist/chunks/doc-BQQoKNto.js +126 -0
  5. package/dist/chunks/{doc-j4W9SUrY.js → doc-BSnWbrkH.js} +39 -27
  6. package/dist/chunks/{doc-BCGQ8Cp5.js → doc-BXaJl1By.js} +54 -41
  7. package/dist/chunks/{doc-CraXjOaA.js → doc-BindRMfO.js} +30 -26
  8. package/dist/chunks/{doc-78xF08vt.js → doc-BmoijI6q.js} +35 -35
  9. package/dist/chunks/{doc-BtzhgTYj.js → doc-CN4edvn_.js} +27 -27
  10. package/dist/chunks/{doc-NhL4Ux8q.js → doc-CkU5GtLw.js} +65 -54
  11. package/dist/chunks/doc-DAieSXLy.js +86 -0
  12. package/dist/chunks/{doc-BP0DmB7-.js → doc-D_ozEn0Q.js} +27 -27
  13. package/dist/chunks/{doc-f4Uijujv.js → doc-KN6Bvmty.js} +54 -32
  14. package/dist/chunks/{doc-B6kLfMPv.js → doc-a0MK2S3n.js} +61 -40
  15. package/dist/chunks/{index-COaun3nf.js → index-B8o6R4RZ.js} +2 -2
  16. package/dist/chunks/{index-DXAtA2f6.js → index-BFyYpEY_.js} +2 -2
  17. package/dist/chunks/{index-wLI6UXkY.js → index-CF0tYRop.js} +1 -1
  18. package/dist/chunks/{index-gjoCq0yC.js → index-CJR0Buju.js} +4 -4
  19. package/dist/chunks/{index-DsRLmBW-.js → index-DHTB3QEP.js} +3 -3
  20. package/dist/chunks/withPlugins-DG3YpSgL.js +655 -0
  21. package/dist/components/WaterfallPlugin/WaterfallCore.d.ts +19 -0
  22. package/dist/components/WaterfallPlugin/WaterfallCore.d.ts.map +1 -1
  23. package/dist/components/WaterfallPlugin/layout.d.ts +7 -0
  24. package/dist/components/WaterfallPlugin/layout.d.ts.map +1 -1
  25. package/dist/components/WaterfallPlugin/plugins/types.d.ts +4 -1
  26. package/dist/components/WaterfallPlugin/plugins/types.d.ts.map +1 -1
  27. package/dist/components/WaterfallPlugin/withPlugins.d.ts.map +1 -1
  28. package/dist/custom-plugins/A11yPlugin/create.d.ts.map +1 -1
  29. package/dist/custom-plugins/A11yPlugin/index.d.ts +1 -1
  30. package/dist/custom-plugins/A11yPlugin/index.d.ts.map +1 -1
  31. package/dist/custom-plugins/A11yPlugin/index.js +1 -1
  32. package/dist/custom-plugins/AlignmentPlugin/index.d.ts +1 -1
  33. package/dist/custom-plugins/AlignmentPlugin/index.d.ts.map +1 -1
  34. package/dist/custom-plugins/AutoColumnPlugin/index.d.ts +1 -1
  35. package/dist/custom-plugins/AutoColumnPlugin/index.d.ts.map +1 -1
  36. package/dist/custom-plugins/BookmarkPlugin/create.d.ts.map +1 -1
  37. package/dist/custom-plugins/BookmarkPlugin/index.d.ts +1 -1
  38. package/dist/custom-plugins/BookmarkPlugin/index.d.ts.map +1 -1
  39. package/dist/custom-plugins/BookmarkPlugin/index.js +1 -1
  40. package/dist/custom-plugins/ClickAnalyticsPlugin/create.d.ts +2 -0
  41. package/dist/custom-plugins/ClickAnalyticsPlugin/create.d.ts.map +1 -1
  42. package/dist/custom-plugins/ClickAnalyticsPlugin/index.d.ts +1 -1
  43. package/dist/custom-plugins/ClickAnalyticsPlugin/index.d.ts.map +1 -1
  44. package/dist/custom-plugins/ClickAnalyticsPlugin/index.js +1 -1
  45. package/dist/custom-plugins/DebounceLayoutPlugin/index.d.ts +1 -1
  46. package/dist/custom-plugins/DebounceLayoutPlugin/index.d.ts.map +1 -1
  47. package/dist/custom-plugins/DragReorderPlugin/index.d.ts +1 -1
  48. package/dist/custom-plugins/DragReorderPlugin/index.d.ts.map +1 -1
  49. package/dist/custom-plugins/FilterPlugin/index.d.ts +1 -1
  50. package/dist/custom-plugins/FilterPlugin/index.d.ts.map +1 -1
  51. package/dist/custom-plugins/FixedHeightPlugin/index.d.ts +1 -1
  52. package/dist/custom-plugins/FixedHeightPlugin/index.d.ts.map +1 -1
  53. package/dist/custom-plugins/GapPlugin/create.d.ts.map +1 -1
  54. package/dist/custom-plugins/GapPlugin/index.d.ts +1 -1
  55. package/dist/custom-plugins/GapPlugin/index.d.ts.map +1 -1
  56. package/dist/custom-plugins/GapPlugin/index.js +1 -1
  57. package/dist/custom-plugins/GroupingPlugin/create.d.ts.map +1 -1
  58. package/dist/custom-plugins/GroupingPlugin/index.d.ts +1 -1
  59. package/dist/custom-plugins/GroupingPlugin/index.d.ts.map +1 -1
  60. package/dist/custom-plugins/GroupingPlugin/index.js +1 -1
  61. package/dist/custom-plugins/HeatmapAnalyticsPlugin/create.d.ts +2 -0
  62. package/dist/custom-plugins/HeatmapAnalyticsPlugin/create.d.ts.map +1 -1
  63. package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.d.ts +1 -1
  64. package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.d.ts.map +1 -1
  65. package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.js +1 -1
  66. package/dist/custom-plugins/InfiniteScrollPlugin/create.d.ts.map +1 -1
  67. package/dist/custom-plugins/InfiniteScrollPlugin/index.d.ts +1 -1
  68. package/dist/custom-plugins/InfiniteScrollPlugin/index.d.ts.map +1 -1
  69. package/dist/custom-plugins/InfiniteScrollPlugin/index.js +1 -1
  70. package/dist/custom-plugins/PaginationPlugin/create.d.ts.map +1 -1
  71. package/dist/custom-plugins/PaginationPlugin/index.d.ts +1 -1
  72. package/dist/custom-plugins/PaginationPlugin/index.d.ts.map +1 -1
  73. package/dist/custom-plugins/PaginationPlugin/index.js +1 -1
  74. package/dist/custom-plugins/PinItemPlugin/index.d.ts +1 -1
  75. package/dist/custom-plugins/PinItemPlugin/index.d.ts.map +1 -1
  76. package/dist/custom-plugins/RecyclePlugin/create.d.ts.map +1 -1
  77. package/dist/custom-plugins/RecyclePlugin/index.d.ts +1 -1
  78. package/dist/custom-plugins/RecyclePlugin/index.d.ts.map +1 -1
  79. package/dist/custom-plugins/RecyclePlugin/index.js +1 -1
  80. package/dist/custom-plugins/ReducedMotionPlugin/index.d.ts +1 -1
  81. package/dist/custom-plugins/ReducedMotionPlugin/index.d.ts.map +1 -1
  82. package/dist/custom-plugins/ResponsiveColumnsPlugin/index.d.ts +1 -1
  83. package/dist/custom-plugins/ResponsiveColumnsPlugin/index.d.ts.map +1 -1
  84. package/dist/custom-plugins/ScrollAnchorPlugin/index.d.ts +1 -1
  85. package/dist/custom-plugins/ScrollAnchorPlugin/index.d.ts.map +1 -1
  86. package/dist/custom-plugins/SearchPlugin/index.d.ts +1 -1
  87. package/dist/custom-plugins/SearchPlugin/index.d.ts.map +1 -1
  88. package/dist/custom-plugins/SortPlugin/index.d.ts +1 -1
  89. package/dist/custom-plugins/SortPlugin/index.d.ts.map +1 -1
  90. package/dist/custom-plugins/StatePersistencePlugin/create.d.ts.map +1 -1
  91. package/dist/custom-plugins/StatePersistencePlugin/index.d.ts +1 -1
  92. package/dist/custom-plugins/StatePersistencePlugin/index.d.ts.map +1 -1
  93. package/dist/custom-plugins/StatePersistencePlugin/index.js +1 -1
  94. package/dist/custom-plugins/StickyHeaderPlugin/create.d.ts.map +1 -1
  95. package/dist/custom-plugins/StickyHeaderPlugin/index.d.ts +1 -1
  96. package/dist/custom-plugins/StickyHeaderPlugin/index.d.ts.map +1 -1
  97. package/dist/custom-plugins/StickyHeaderPlugin/index.js +1 -1
  98. package/dist/custom-plugins/ThrottlePlugin/index.d.ts +1 -1
  99. package/dist/custom-plugins/ThrottlePlugin/index.d.ts.map +1 -1
  100. package/dist/custom-plugins/TransitionPlugin/index.d.ts +1 -1
  101. package/dist/custom-plugins/TransitionPlugin/index.d.ts.map +1 -1
  102. package/dist/custom-plugins/URLSyncPlugin/create.d.ts.map +1 -1
  103. package/dist/custom-plugins/URLSyncPlugin/index.d.ts +1 -1
  104. package/dist/custom-plugins/URLSyncPlugin/index.d.ts.map +1 -1
  105. package/dist/custom-plugins/URLSyncPlugin/index.js +1 -1
  106. package/dist/custom-plugins/index.js +5 -5
  107. package/dist/entries/core.js +1 -1
  108. package/dist/entries/plugins.d.ts +1 -1
  109. package/dist/entries/plugins.d.ts.map +1 -1
  110. package/dist/entries/plugins.js +6 -6
  111. package/dist/index.d.ts +1 -1
  112. package/dist/index.d.ts.map +1 -1
  113. package/dist/index.js +2 -2
  114. package/dist/presets/dashboard/index.js +2 -2
  115. package/dist/presets/photo-feed/index.js +2 -2
  116. package/dist/presets/product-feed/index.js +1 -1
  117. package/package.json +32 -25
  118. package/dist/chunks/WaterfallCore-BSXw7bl_.js +0 -581
  119. package/dist/chunks/doc-B-7dugGv.js +0 -79
  120. package/dist/chunks/doc-DJjxOYzW.js +0 -111
  121. package/dist/chunks/withPlugins-DLoKg4AP.js +0 -559
@@ -1,5 +1,5 @@
1
1
  import { createStatePersistencePlugin as create, StatePersistenceConfig } from './create';
2
- import { PluginDoc } from '@vane/plugin-core';
2
+ import { PluginDoc } from 'vane-plugin-core';
3
3
  /**
4
4
  * 工厂 + `.meta`:`typeof create` 保留原工厂的泛型签名,
5
5
  * `.meta` 供 docs:plugins 与 demo 工坊读取配置项。
@@ -1 +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"}
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,kBAAkB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAwD,OAAO,MAAM,GAAG;IAC/G,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { c as e, d as t } from "../../chunks/doc-NhL4Ux8q.js";
1
+ import { c as e, d as t } from "../../chunks/doc-CkU5GtLw.js";
2
2
  const a = Object.assign(e, { meta: t });
3
3
  export {
4
4
  a as createStatePersistencePlugin
@@ -1 +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"}
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,CA6CrG"}
@@ -1,5 +1,5 @@
1
1
  import { createStickyHeaderPlugin as create, StickyHeaderConfig } from './create';
2
- import { PluginDoc } from '@vane/plugin-core';
2
+ import { PluginDoc } from 'vane-plugin-core';
3
3
  /**
4
4
  * 工厂 + `.meta`:`typeof create` 保留原工厂的泛型签名,
5
5
  * `.meta` 供 docs:plugins 与 demo 工坊读取配置项。
@@ -1 +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"}
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,kBAAkB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAwD,OAAO,MAAM,GAAG;IAC3G,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { c as e, d as t } from "../../chunks/doc-BtzhgTYj.js";
1
+ import { c as e, d as t } from "../../chunks/doc-CN4edvn_.js";
2
2
  const c = Object.assign(e, { meta: t });
3
3
  export {
4
4
  c as createStickyHeaderPlugin
@@ -1,5 +1,5 @@
1
1
  import { createThrottlePlugin as create, ThrottleConfig } from './create';
2
- import { PluginDoc } from '@vane/plugin-core';
2
+ import { PluginDoc } from 'vane-plugin-core';
3
3
  /**
4
4
  * 工厂 + `.meta`:`typeof create` 保留原工厂的泛型签名,
5
5
  * `.meta` 供 docs:plugins 与 demo 工坊读取配置项。
@@ -1 +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"}
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,kBAAkB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAwD,OAAO,MAAM,GAAG;IACvG,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { createTransitionPlugin as create, TransitionConfig } from './create';
2
- import { PluginDoc } from '@vane/plugin-core';
2
+ import { PluginDoc } from 'vane-plugin-core';
3
3
  /**
4
4
  * 工厂 + `.meta`:`typeof create` 保留原工厂的泛型签名,
5
5
  * `.meta` 供 docs:plugins 与 demo 工坊读取配置项。
@@ -1 +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"}
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,kBAAkB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAwD,OAAO,MAAM,GAAG;IACzG,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
@@ -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,5 +1,5 @@
1
1
  import { createURLSyncPlugin as create, URLSyncConfig } from './create';
2
- import { PluginDoc } from '@vane/plugin-core';
2
+ import { PluginDoc } from 'vane-plugin-core';
3
3
  /**
4
4
  * 工厂 + `.meta`:`typeof create` 保留原工厂的泛型签名,
5
5
  * `.meta` 供 docs:plugins 与 demo 工坊读取配置项。
@@ -1 +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"}
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,kBAAkB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAwD,OAAO,MAAM,GAAG;IACtG,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { c, d as e } from "../../chunks/doc-DJjxOYzW.js";
1
+ import { c, d as e } from "../../chunks/doc-BQQoKNto.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";
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-CJR0Buju.js";
2
+ import { c as P, a as m, b as p, d } from "../chunks/index-BFyYpEY_.js";
3
+ import { c as x, a as y, b as S, d as A, e as b, f as h } from "../chunks/index-B8o6R4RZ.js";
4
+ import { c as k, a as C, b as H, d as D, e as F } from "../chunks/index-DHTB3QEP.js";
5
5
  import { c as I } from "../chunks/index-BAWlVYr3.js";
6
- import { c as T } from "../chunks/index-wLI6UXkY.js";
6
+ import { c as T } from "../chunks/index-CF0tYRop.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,7 +1,7 @@
1
1
  /** ./plugins —— 插件系统 + 官方插件全家桶 */
2
2
  export { withPlugins } from '../components/WaterfallPlugin/withPlugins';
3
3
  export type { WithPluginsConfig } from '../components/WaterfallPlugin/withPlugins';
4
- export type { Plugin, PluginContext, PluginCreator, PluginDoc, } from '@vane/plugin-core';
4
+ export type { Plugin, PluginContext, PluginCreator, PluginDoc, } from 'vane-plugin-core';
5
5
  export type { WaterfallPlugin, WaterfallPluginCreator, WaterfallPluginContext, WaterfallPluginHooks, } from '../components/WaterfallPlugin/plugins/types';
6
6
  export * from '../custom-plugins';
7
7
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/entries/plugins.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AACnF,YAAY,EACV,MAAM,EACN,aAAa,EACb,aAAa,EACb,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,6CAA6C,CAAC;AAErD,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/entries/plugins.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AACnF,YAAY,EACV,MAAM,EACN,aAAa,EACb,aAAa,EACb,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,6CAA6C,CAAC;AAErD,cAAc,mBAAmB,CAAC"}
@@ -1,9 +1,9 @@
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";
1
+ import { w as r } from "../chunks/withPlugins-DG3YpSgL.js";
2
+ import { c as i } from "../chunks/index-CF0tYRop.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-CJR0Buju.js";
4
+ import { c as d, a as x, b as y, d as S } from "../chunks/index-BFyYpEY_.js";
5
+ import { c as A, a as b, b as R, d as k, e as C } from "../chunks/index-DHTB3QEP.js";
6
+ import { c as w, a as D, b as F, d as G, e as I, f as L } from "../chunks/index-B8o6R4RZ.js";
7
7
  import { c as v } from "../chunks/index-BAWlVYr3.js";
8
8
  export {
9
9
  i as createA11yPlugin,
package/dist/index.d.ts CHANGED
@@ -12,5 +12,5 @@ export { computeLayout } from './components/WaterfallPlugin/layout';
12
12
  export type { AlignmentMode } from './components/WaterfallPlugin/layout';
13
13
  export { computeVisibleRange } from './components/WaterfallPlugin/virtualize';
14
14
  export type { VirtualizeOptions, VisibleRange } from './components/WaterfallPlugin/virtualize';
15
- export type { Plugin, PluginContext, PluginDoc } from '@vane/plugin-core';
15
+ export type { Plugin, PluginContext, PluginDoc } from 'vane-plugin-core';
16
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4CAA4C,CAAC;AACtF,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,GAChB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAElF,YAAY,EACV,YAAY,EACZ,cAAc,EACd,UAAU,EACV,YAAY,EACZ,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,YAAY,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAG/F,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4CAA4C,CAAC;AACtF,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,GAChB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAElF,YAAY,EACV,YAAY,EACZ,cAAc,EACd,UAAU,EACV,YAAY,EACZ,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,YAAY,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAG/F,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC"}
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-DG3YpSgL.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-DHTB3QEP.js";
2
+ import { c as u } from "../../chunks/index-CF0tYRop.js";
3
3
  function P(r = {}) {
4
4
  const {
5
5
  scrollThrottle: t = 24,
@@ -1,5 +1,5 @@
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";
1
+ import { c as r } from "../../chunks/index-CF0tYRop.js";
2
+ import { c as i, a as l, d as u, b as c } from "../../chunks/index-BFyYpEY_.js";
3
3
  import { c as m } from "../../chunks/index-BAWlVYr3.js";
4
4
  function g(a = {}) {
5
5
  const { minColumnWidth: n = 240, maxColumns: o = 4, gap: e = 16, threshold: t = 400 } = a;
@@ -1,4 +1,4 @@
1
- import { e as o, b as r, a, f as n, d as l, c as s } from "../../chunks/index-COaun3nf.js";
1
+ import { e as o, b as r, a, f as n, d as l, c as s } from "../../chunks/index-B8o6R4RZ.js";
2
2
  import { c } from "../../chunks/index-BAWlVYr3.js";
3
3
  function p(e = {}) {
4
4
  const { itemHeight: t = 300, pageSize: i = 24 } = e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vane-waterfall",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "React 瀑布流布局组件:插件化、可变高、虚拟化,27 个领域插件",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -168,16 +168,36 @@
168
168
  "url": "https://github.com/frankvane/vane-components/issues"
169
169
  },
170
170
  "homepage": "https://github.com/frankvane/vane-components/tree/main/packages/vane-waterfall#readme",
171
+ "scripts": {
172
+ "dev": "vite --config demo/vite.config.ts",
173
+ "build": "vite build --mode lib",
174
+ "build:demo": "vite build --config demo/vite.config.ts",
175
+ "typecheck": "tsc --noEmit -p tsconfig.json",
176
+ "test": "vitest run",
177
+ "lint": "eslint .",
178
+ "sync:exports": "node ../../scripts/sync-exports.mjs",
179
+ "docs:plugins": "node ../../scripts/generate-plugin-docs.mjs",
180
+ "verify:scenarios": "node scripts/verify-scenarios.mjs",
181
+ "audit:demos": "node scripts/audit-demos.mjs",
182
+ "serve:demo": "node scripts/serve-demo.cjs",
183
+ "demo": "pnpm build:demo && node scripts/serve-demo.cjs",
184
+ "prepublishOnly": "npm run build",
185
+ "audit:controls": "node scripts/audit-controls.mjs"
186
+ },
171
187
  "peerDependencies": {
172
188
  "react": ">=16.8.0",
173
- "react-dom": ">=16.8.0",
174
- "@vane/plugin-core": "0.1.0"
189
+ "react-dom": ">=16.8.0"
175
190
  },
176
191
  "devDependencies": {
177
192
  "@types/node": "^20.19.18",
178
193
  "@types/react": "^18.3.3",
179
194
  "@types/react-dom": "^18.3.0",
180
195
  "@types/react-syntax-highlighter": "^15.5.13",
196
+ "@vane/build-config": "*",
197
+ "@vane/eslint-config": "*",
198
+ "vane-plugin-core": "*",
199
+ "@vane/tsconfig": "*",
200
+ "@vane/vitest-config": "*",
181
201
  "@vitejs/plugin-react": "^4.3.1",
182
202
  "happy-dom": "^15.11.7",
183
203
  "react": "^18.3.1",
@@ -187,14 +207,16 @@
187
207
  "typescript": "^5.5.3",
188
208
  "vite": "^5.4.1",
189
209
  "vite-plugin-dts": "^4.5.4",
190
- "vitest": "^2.1.9",
191
- "@vane/build-config": "0.1.0",
192
- "@vane/plugin-core": "0.1.0",
193
- "@vane/eslint-config": "0.1.0",
194
- "@vane/tsconfig": "0.1.0",
195
- "@vane/vitest-config": "0.1.0"
210
+ "vitest": "^2.1.9"
196
211
  },
197
212
  "vane": {
213
+ "demo": {
214
+ "brand": "V",
215
+ "subtitle": "排版台 / plugin index",
216
+ "title": "瀑布流排版台",
217
+ "accent": "#ccf24b",
218
+ "bg": "#080a09"
219
+ },
198
220
  "sizeBudgetKb": 14,
199
221
  "coreSizeBudgetKb": 12
200
222
  },
@@ -203,20 +225,5 @@
203
225
  },
204
226
  "publishConfig": {
205
227
  "access": "public"
206
- },
207
- "scripts": {
208
- "dev": "vite --config demo/vite.config.ts",
209
- "build": "vite build",
210
- "build:demo": "vite build --config demo/vite.config.ts",
211
- "typecheck": "tsc --noEmit -p tsconfig.json",
212
- "test": "vitest run --pool=threads",
213
- "lint": "eslint .",
214
- "sync:exports": "node ../../scripts/sync-exports.mjs",
215
- "docs:plugins": "node ../../scripts/generate-plugin-docs.mjs",
216
- "verify:scenarios": "node scripts/verify-scenarios.mjs",
217
- "audit:demos": "node scripts/audit-demos.mjs",
218
- "serve:demo": "node scripts/serve-demo.cjs",
219
- "demo": "pnpm build:demo && node scripts/serve-demo.cjs",
220
- "audit:controls": "node scripts/audit-controls.mjs"
221
228
  }
222
- }
229
+ }