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.
- package/README.md +174 -365
- package/dist/chunks/WaterfallCore-BSXw7bl_.js +581 -0
- package/dist/chunks/doc-3Fpag2G8.js +84 -0
- package/dist/chunks/doc-78xF08vt.js +82 -0
- package/dist/chunks/doc-B-7dugGv.js +79 -0
- package/dist/chunks/doc-B6kLfMPv.js +121 -0
- package/dist/chunks/doc-BCGQ8Cp5.js +114 -0
- package/dist/chunks/doc-BIzjYAZW.js +50 -0
- package/dist/chunks/doc-BP0DmB7-.js +91 -0
- package/dist/chunks/doc-BXElhF2h.js +138 -0
- package/dist/chunks/doc-BXSy2aPP.js +59 -0
- package/dist/chunks/doc-BfWnfTst.js +83 -0
- package/dist/chunks/doc-BtzhgTYj.js +85 -0
- package/dist/chunks/doc-C5xrHNoC.js +70 -0
- package/dist/chunks/doc-CBHjiDG7.js +88 -0
- package/dist/chunks/doc-CTUoMe7o.js +79 -0
- package/dist/chunks/doc-CcPFavOs.js +56 -0
- package/dist/chunks/doc-CraXjOaA.js +68 -0
- package/dist/chunks/doc-DElLNjIc.js +61 -0
- package/dist/chunks/doc-DJjxOYzW.js +111 -0
- package/dist/chunks/doc-DukOmDCo.js +95 -0
- package/dist/chunks/doc-DzvTrZ13.js +60 -0
- package/dist/chunks/doc-NhL4Ux8q.js +125 -0
- package/dist/chunks/doc-bTHwfIVb.js +78 -0
- package/dist/chunks/doc-f4Uijujv.js +102 -0
- package/dist/chunks/doc-gTAsLjVx.js +55 -0
- package/dist/chunks/doc-j4W9SUrY.js +76 -0
- package/dist/chunks/doc-kTbJE7rY.js +92 -0
- package/dist/chunks/index-BAWlVYr3.js +5 -0
- package/dist/chunks/index-COaun3nf.js +15 -0
- package/dist/chunks/index-DXAtA2f6.js +11 -0
- package/dist/chunks/index-DsRLmBW-.js +13 -0
- package/dist/chunks/index-gjoCq0yC.js +21 -0
- package/dist/chunks/index-wLI6UXkY.js +5 -0
- package/dist/chunks/withPlugins-DLoKg4AP.js +559 -0
- package/dist/components/WaterfallPlugin/WaterfallCore.d.ts +124 -0
- package/dist/components/WaterfallPlugin/WaterfallCore.d.ts.map +1 -0
- package/dist/components/WaterfallPlugin/index.d.ts +9 -10
- package/dist/components/WaterfallPlugin/index.d.ts.map +1 -0
- package/dist/components/WaterfallPlugin/layout.d.ts +41 -0
- package/dist/components/WaterfallPlugin/layout.d.ts.map +1 -0
- package/dist/components/WaterfallPlugin/plugins/types.d.ts +76 -380
- package/dist/components/WaterfallPlugin/plugins/types.d.ts.map +1 -0
- package/dist/components/WaterfallPlugin/virtualize.d.ts +62 -0
- package/dist/components/WaterfallPlugin/virtualize.d.ts.map +1 -0
- package/dist/components/WaterfallPlugin/{plugins/withPlugins.d.ts → withPlugins.d.ts} +4 -2
- package/dist/components/WaterfallPlugin/withPlugins.d.ts.map +1 -0
- package/dist/custom-plugins/A11yPlugin/create.d.ts +23 -0
- package/dist/custom-plugins/A11yPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/A11yPlugin/doc.json.d.ts +52 -0
- package/dist/custom-plugins/A11yPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/A11yPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/A11yPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/Alignment/index.d.ts → custom-plugins/AlignmentPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/AlignmentPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/AlignmentPlugin/doc.json.d.ts +34 -0
- package/dist/custom-plugins/AlignmentPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/AlignmentPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/AlignmentPlugin/index.js +5 -0
- package/dist/custom-plugins/AutoColumnPlugin/create.d.ts +18 -0
- package/dist/custom-plugins/AutoColumnPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/AutoColumnPlugin/doc.json.d.ts +50 -0
- package/dist/custom-plugins/AutoColumnPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/AutoColumnPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/AutoColumnPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/Bookmark/index.d.ts → custom-plugins/BookmarkPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/BookmarkPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/BookmarkPlugin/doc.json.d.ts +41 -0
- package/dist/custom-plugins/BookmarkPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/BookmarkPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/BookmarkPlugin/index.js +5 -0
- package/dist/custom-plugins/ClickAnalyticsPlugin/create.d.ts +25 -0
- package/dist/custom-plugins/ClickAnalyticsPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/ClickAnalyticsPlugin/doc.json.d.ts +41 -0
- package/dist/custom-plugins/ClickAnalyticsPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/ClickAnalyticsPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/ClickAnalyticsPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/DebounceLayout/index.d.ts → custom-plugins/DebounceLayoutPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/DebounceLayoutPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/DebounceLayoutPlugin/doc.json.d.ts +34 -0
- package/dist/custom-plugins/DebounceLayoutPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/DebounceLayoutPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/DebounceLayoutPlugin/index.js +5 -0
- package/dist/custom-plugins/DragReorderPlugin/create.d.ts +33 -0
- package/dist/custom-plugins/DragReorderPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/DragReorderPlugin/doc.json.d.ts +53 -0
- package/dist/custom-plugins/DragReorderPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/DragReorderPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/DragReorderPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/Filter/index.d.ts → custom-plugins/FilterPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/FilterPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/FilterPlugin/doc.json.d.ts +47 -0
- package/dist/custom-plugins/FilterPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/FilterPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/FilterPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/FixedHeight/index.d.ts → custom-plugins/FixedHeightPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/FixedHeightPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/FixedHeightPlugin/doc.json.d.ts +34 -0
- package/dist/custom-plugins/FixedHeightPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/FixedHeightPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/FixedHeightPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/Gap/index.d.ts → custom-plugins/GapPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/GapPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/GapPlugin/doc.json.d.ts +47 -0
- package/dist/custom-plugins/GapPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/GapPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/GapPlugin/index.js +5 -0
- package/dist/custom-plugins/GroupingPlugin/create.d.ts +16 -0
- package/dist/custom-plugins/GroupingPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/GroupingPlugin/doc.json.d.ts +40 -0
- package/dist/custom-plugins/GroupingPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/GroupingPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/GroupingPlugin/index.js +5 -0
- package/dist/custom-plugins/HeatmapAnalyticsPlugin/create.d.ts +31 -0
- package/dist/custom-plugins/HeatmapAnalyticsPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/HeatmapAnalyticsPlugin/doc.json.d.ts +43 -0
- package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.js +5 -0
- package/dist/custom-plugins/InfiniteScrollPlugin/create.d.ts +17 -0
- package/dist/custom-plugins/InfiniteScrollPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/InfiniteScrollPlugin/doc.json.d.ts +44 -0
- package/dist/custom-plugins/InfiniteScrollPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/InfiniteScrollPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/InfiniteScrollPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/Pagination/index.d.ts → custom-plugins/PaginationPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/PaginationPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/PaginationPlugin/doc.json.d.ts +50 -0
- package/dist/custom-plugins/PaginationPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/PaginationPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/PaginationPlugin/index.js +5 -0
- package/dist/custom-plugins/PinItemPlugin/create.d.ts +23 -0
- package/dist/custom-plugins/PinItemPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/PinItemPlugin/doc.json.d.ts +43 -0
- package/dist/custom-plugins/PinItemPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/PinItemPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/PinItemPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/Recycle/index.d.ts → custom-plugins/RecyclePlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/RecyclePlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/RecyclePlugin/doc.json.d.ts +35 -0
- package/dist/custom-plugins/RecyclePlugin/index.d.ts +11 -0
- package/dist/custom-plugins/RecyclePlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/RecyclePlugin/index.js +5 -0
- package/dist/custom-plugins/ReducedMotionPlugin/create.d.ts +25 -0
- package/dist/custom-plugins/ReducedMotionPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/ReducedMotionPlugin/doc.json.d.ts +42 -0
- package/dist/custom-plugins/ReducedMotionPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/ReducedMotionPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/ReducedMotionPlugin/index.js +5 -0
- package/dist/custom-plugins/ResponsiveColumnsPlugin/create.d.ts +22 -0
- package/dist/custom-plugins/ResponsiveColumnsPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/ResponsiveColumnsPlugin/doc.json.d.ts +37 -0
- package/dist/custom-plugins/ResponsiveColumnsPlugin/index.d.ts +10 -0
- package/dist/custom-plugins/ResponsiveColumnsPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/ResponsiveColumnsPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/ScrollAnchor/index.d.ts → custom-plugins/ScrollAnchorPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/ScrollAnchorPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/ScrollAnchorPlugin/doc.json.d.ts +34 -0
- package/dist/custom-plugins/ScrollAnchorPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/ScrollAnchorPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/ScrollAnchorPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/Search/index.d.ts → custom-plugins/SearchPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/SearchPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/SearchPlugin/doc.json.d.ts +47 -0
- package/dist/custom-plugins/SearchPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/SearchPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/SearchPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/Sort/index.d.ts → custom-plugins/SortPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/SortPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/SortPlugin/doc.json.d.ts +46 -0
- package/dist/custom-plugins/SortPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/SortPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/SortPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/StatePersistence/index.d.ts → custom-plugins/StatePersistencePlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/StatePersistencePlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/StatePersistencePlugin/doc.json.d.ts +47 -0
- package/dist/custom-plugins/StatePersistencePlugin/index.d.ts +11 -0
- package/dist/custom-plugins/StatePersistencePlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/StatePersistencePlugin/index.js +5 -0
- package/dist/custom-plugins/StickyHeaderPlugin/create.d.ts +13 -0
- package/dist/custom-plugins/StickyHeaderPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/StickyHeaderPlugin/doc.json.d.ts +40 -0
- package/dist/custom-plugins/StickyHeaderPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/StickyHeaderPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/StickyHeaderPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/Throttle/index.d.ts → custom-plugins/ThrottlePlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/ThrottlePlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/ThrottlePlugin/doc.json.d.ts +40 -0
- package/dist/custom-plugins/ThrottlePlugin/index.d.ts +11 -0
- package/dist/custom-plugins/ThrottlePlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/ThrottlePlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/Transition/index.d.ts → custom-plugins/TransitionPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/TransitionPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/TransitionPlugin/doc.json.d.ts +43 -0
- package/dist/custom-plugins/TransitionPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/TransitionPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/TransitionPlugin/index.js +5 -0
- package/dist/{components/WaterfallPlugin/custom-plugins/URLSync/index.d.ts → custom-plugins/URLSyncPlugin/create.d.ts} +3 -3
- package/dist/custom-plugins/URLSyncPlugin/create.d.ts.map +1 -0
- package/dist/custom-plugins/URLSyncPlugin/doc.json.d.ts +41 -0
- package/dist/custom-plugins/URLSyncPlugin/index.d.ts +11 -0
- package/dist/custom-plugins/URLSyncPlugin/index.d.ts.map +1 -0
- package/dist/custom-plugins/URLSyncPlugin/index.js +5 -0
- package/dist/custom-plugins/index.d.ts +61 -0
- package/dist/custom-plugins/index.d.ts.map +1 -0
- package/dist/custom-plugins/index.js +34 -0
- package/dist/entries/core.d.ts +8 -0
- package/dist/entries/core.d.ts.map +1 -0
- package/dist/entries/core.js +7 -0
- package/dist/entries/plugins.d.ts +7 -0
- package/dist/entries/plugins.d.ts.map +1 -0
- package/dist/entries/plugins.js +36 -0
- package/dist/index.d.ts +14 -9
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/presets/dashboard/index.d.ts +13 -0
- package/dist/presets/dashboard/index.d.ts.map +1 -0
- package/dist/presets/dashboard/index.js +21 -0
- package/dist/presets/photo-feed/index.d.ts +13 -0
- package/dist/presets/photo-feed/index.d.ts.map +1 -0
- package/dist/presets/photo-feed/index.js +17 -0
- package/dist/presets/product-feed/index.d.ts +9 -0
- package/dist/presets/product-feed/index.d.ts.map +1 -0
- package/dist/presets/product-feed/index.js +23 -0
- package/package.json +222 -82
- package/dist/404.jpg +0 -0
- package/dist/components/WaterfallPlugin/core/WaterfallCore.d.ts +0 -174
- package/dist/components/WaterfallPlugin/custom-plugins/A11y/index.d.ts +0 -16
- package/dist/components/WaterfallPlugin/custom-plugins/AutoColumn/index.d.ts +0 -17
- package/dist/components/WaterfallPlugin/custom-plugins/ClickAnalytics/index.d.ts +0 -12
- package/dist/components/WaterfallPlugin/custom-plugins/DragReorder/index.d.ts +0 -13
- package/dist/components/WaterfallPlugin/custom-plugins/Grouping/index.d.ts +0 -12
- package/dist/components/WaterfallPlugin/custom-plugins/HeatmapAnalytics/index.d.ts +0 -14
- package/dist/components/WaterfallPlugin/custom-plugins/InfiniteScroll/index.d.ts +0 -13
- package/dist/components/WaterfallPlugin/custom-plugins/PinItem/index.d.ts +0 -13
- package/dist/components/WaterfallPlugin/custom-plugins/ReducedMotion/index.d.ts +0 -13
- package/dist/components/WaterfallPlugin/custom-plugins/ResponsiveColumns/index.d.ts +0 -10
- package/dist/components/WaterfallPlugin/custom-plugins/StickyHeader/index.d.ts +0 -11
- package/dist/components/WaterfallPlugin/custom-plugins/VirtualWaterfall/index.d.ts +0 -12
- package/dist/components/WaterfallPlugin/custom-plugins/index.d.ts +0 -30
- package/dist/components/WaterfallPlugin/plugins/PluginBus.d.ts +0 -2
- package/dist/components/WaterfallPlugin/plugins/PluginManager.d.ts +0 -2
- package/dist/components/WaterfallPlugin/plugins/index.d.ts +0 -8
- package/dist/index.es.js +0 -2382
- package/dist/index.umd.js +0 -30
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** ./core —— 只要核心组件时导入这里,体积最小(不含插件系统与任何插件) */
|
|
2
|
+
export { default as WaterfallCore } from '../components/WaterfallPlugin/WaterfallCore';
|
|
3
|
+
export type { WaterfallCoreProps, WaterfallCoreRef, ScrollToItemOptions, ScrollToOptions, } from '../components/WaterfallPlugin/WaterfallCore';
|
|
4
|
+
export type { ItemPosition, ItemVisibility, LayoutInfo, ViewportInfo, } from '../components/WaterfallPlugin/plugins/types';
|
|
5
|
+
export { computeLayout, computeScrollTopForItem } from '../components/WaterfallPlugin/layout';
|
|
6
|
+
export { computeVisibleRange } from '../components/WaterfallPlugin/virtualize';
|
|
7
|
+
export type { VirtualizeOptions } from '../components/WaterfallPlugin/virtualize';
|
|
8
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/entries/core.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACvF,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,GAChB,MAAM,6CAA6C,CAAC;AACrD,YAAY,EACV,YAAY,EACZ,cAAc,EACd,UAAU,EACV,YAAY,GACb,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** ./plugins —— 插件系统 + 官方插件全家桶 */
|
|
2
|
+
export { withPlugins } from '../components/WaterfallPlugin/withPlugins';
|
|
3
|
+
export type { WithPluginsConfig } from '../components/WaterfallPlugin/withPlugins';
|
|
4
|
+
export type { Plugin, PluginContext, PluginCreator, PluginDoc, } from '@vane/plugin-core';
|
|
5
|
+
export type { WaterfallPlugin, WaterfallPluginCreator, WaterfallPluginContext, WaterfallPluginHooks, } from '../components/WaterfallPlugin/plugins/types';
|
|
6
|
+
export * from '../custom-plugins';
|
|
7
|
+
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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";
|
|
8
|
+
export {
|
|
9
|
+
i as createA11yPlugin,
|
|
10
|
+
c as createAlignmentPlugin,
|
|
11
|
+
d as createAutoColumnPlugin,
|
|
12
|
+
A as createBookmarkPlugin,
|
|
13
|
+
w as createClickAnalyticsPlugin,
|
|
14
|
+
b as createDebounceLayoutPlugin,
|
|
15
|
+
l as createDragReorderPlugin,
|
|
16
|
+
D as createFilterPlugin,
|
|
17
|
+
F as createFixedHeightPlugin,
|
|
18
|
+
x as createGapPlugin,
|
|
19
|
+
s as createGroupingPlugin,
|
|
20
|
+
u as createHeatmapAnalyticsPlugin,
|
|
21
|
+
y as createInfiniteScrollPlugin,
|
|
22
|
+
G as createPaginationPlugin,
|
|
23
|
+
g as createPinItemPlugin,
|
|
24
|
+
R as createRecyclePlugin,
|
|
25
|
+
S as createReducedMotionPlugin,
|
|
26
|
+
I as createResponsiveColumnsPlugin,
|
|
27
|
+
o as createScrollAnchorPlugin,
|
|
28
|
+
P as createSearchPlugin,
|
|
29
|
+
L as createSortPlugin,
|
|
30
|
+
k as createStatePersistencePlugin,
|
|
31
|
+
m as createStickyHeaderPlugin,
|
|
32
|
+
C as createThrottlePlugin,
|
|
33
|
+
v as createTransitionPlugin,
|
|
34
|
+
p as createURLSyncPlugin,
|
|
35
|
+
r as withPlugins
|
|
36
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vane-waterfall
|
|
3
|
-
*
|
|
2
|
+
* vane-waterfall 主入口
|
|
3
|
+
* 只导出「核心 + 装配 + 类型」,保持默认导入体积最小;
|
|
4
|
+
* 插件请走子路径 `vane-waterfall/custom-plugins/<XxxPlugin>` 或 `vane-waterfall/plugins`。
|
|
4
5
|
*/
|
|
5
|
-
export { WaterfallCore } from './components/WaterfallPlugin';
|
|
6
|
-
export type { WaterfallCoreProps, WaterfallCoreRef,
|
|
7
|
-
export
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export
|
|
6
|
+
export { default as WaterfallCore } from './components/WaterfallPlugin/WaterfallCore';
|
|
7
|
+
export type { WaterfallCoreProps, WaterfallCoreRef, ScrollToItemOptions, ScrollToOptions, } from './components/WaterfallPlugin/WaterfallCore';
|
|
8
|
+
export { withPlugins } from './components/WaterfallPlugin/withPlugins';
|
|
9
|
+
export type { WithPluginsConfig } from './components/WaterfallPlugin/withPlugins';
|
|
10
|
+
export type { ItemPosition, ItemVisibility, LayoutInfo, ViewportInfo, WaterfallPlugin, WaterfallPluginCreator, WaterfallPluginContext, WaterfallPluginHooks, } from './components/WaterfallPlugin/plugins/types';
|
|
11
|
+
export { computeLayout } from './components/WaterfallPlugin/layout';
|
|
12
|
+
export type { AlignmentMode } from './components/WaterfallPlugin/layout';
|
|
13
|
+
export { computeVisibleRange } from './components/WaterfallPlugin/virtualize';
|
|
14
|
+
export type { VirtualizeOptions, VisibleRange } from './components/WaterfallPlugin/virtualize';
|
|
15
|
+
export type { Plugin, PluginContext, PluginDoc } from '@vane/plugin-core';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WaterfallPlugin } from '../../components/WaterfallPlugin/plugins/types';
|
|
2
|
+
export interface DashboardPresetOptions {
|
|
3
|
+
/** 滚动节流,默认 24ms */
|
|
4
|
+
scrollThrottle?: number;
|
|
5
|
+
/** 布局防抖,默认 200ms */
|
|
6
|
+
layoutDebounce?: number;
|
|
7
|
+
/** 同时保持可见的项数,默认 60 */
|
|
8
|
+
poolSize?: number;
|
|
9
|
+
/** 持久化键名前缀,默认 dashboard */
|
|
10
|
+
storageKey?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function dashboardPreset(options?: DashboardPresetOptions): WaterfallPlugin[];
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presets/dashboard/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEtF,MAAM,WAAW,sBAAsB;IACrC,mBAAmB;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,eAAe,EAAE,CAgBvF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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";
|
|
3
|
+
function P(r = {}) {
|
|
4
|
+
const {
|
|
5
|
+
scrollThrottle: t = 24,
|
|
6
|
+
layoutDebounce: e = 200,
|
|
7
|
+
poolSize: o = 60,
|
|
8
|
+
storageKey: a = "dashboard"
|
|
9
|
+
} = r;
|
|
10
|
+
return [
|
|
11
|
+
s({ scroll: t, resize: e }),
|
|
12
|
+
c({ delay: e }),
|
|
13
|
+
l({ poolSize: o }),
|
|
14
|
+
n({ storageKey: `${a}-state` }),
|
|
15
|
+
i({ storageKey: `${a}-bookmark` }),
|
|
16
|
+
u()
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
P as dashboardPreset
|
|
21
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WaterfallPlugin } from '../../components/WaterfallPlugin/plugins/types';
|
|
2
|
+
export interface PhotoFeedPresetOptions {
|
|
3
|
+
/** 每列最小宽度,默认 240 */
|
|
4
|
+
minColumnWidth?: number;
|
|
5
|
+
/** 列数上限,默认 4 */
|
|
6
|
+
maxColumns?: number;
|
|
7
|
+
/** 间距,默认 16 */
|
|
8
|
+
gap?: number;
|
|
9
|
+
/** 距底多少 px 预加载,默认 400 */
|
|
10
|
+
threshold?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function photoFeedPreset(options?: PhotoFeedPresetOptions): WaterfallPlugin[];
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presets/photo-feed/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEtF,MAAM,WAAW,sBAAsB;IACrC,oBAAoB;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,eAAe,EAAE,CAWvF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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";
|
|
4
|
+
function g(a = {}) {
|
|
5
|
+
const { minColumnWidth: n = 240, maxColumns: o = 4, gap: e = 16, threshold: t = 400 } = a;
|
|
6
|
+
return [
|
|
7
|
+
i({ minColumnWidth: n, maxColumns: o }),
|
|
8
|
+
l({ columnGap: e, rowGap: e }),
|
|
9
|
+
m({ duration: 260 }),
|
|
10
|
+
u(),
|
|
11
|
+
c({ threshold: t }),
|
|
12
|
+
r({ enableTabIndex: !1 })
|
|
13
|
+
];
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
g as photoFeedPreset
|
|
17
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WaterfallPlugin } from '../../components/WaterfallPlugin/plugins/types';
|
|
2
|
+
export interface ProductFeedPresetOptions {
|
|
3
|
+
/** 统一卡片高度,默认 300 */
|
|
4
|
+
itemHeight?: number;
|
|
5
|
+
/** 每页条数,默认 24 */
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function productFeedPreset(options?: ProductFeedPresetOptions): WaterfallPlugin[];
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presets/product-feed/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEtF,MAAM,WAAW,wBAAwB;IACvC,oBAAoB;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B,GAAG,eAAe,EAAE,CAkB3F"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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";
|
|
3
|
+
function p(e = {}) {
|
|
4
|
+
const { itemHeight: t = 300, pageSize: i = 24 } = e;
|
|
5
|
+
return [
|
|
6
|
+
o({
|
|
7
|
+
breakpoints: {
|
|
8
|
+
mobile: { width: 0, columns: 2 },
|
|
9
|
+
tablet: { width: 720, columns: 3 },
|
|
10
|
+
desktop: { width: 1100, columns: 4 }
|
|
11
|
+
}
|
|
12
|
+
}),
|
|
13
|
+
r({ itemHeight: t }),
|
|
14
|
+
a({ scrollToTop: !0 }),
|
|
15
|
+
n({ scrollToTop: !0 }),
|
|
16
|
+
l({ pageSize: i, scrollToTop: !0 }),
|
|
17
|
+
c({ duration: 200 }),
|
|
18
|
+
s()
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
p as productFeedPreset
|
|
23
|
+
};
|
package/package.json
CHANGED
|
@@ -1,82 +1,222 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vane-waterfall",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.
|
|
7
|
-
"module": "dist/index.
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "vane-waterfall",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "React 瀑布流布局组件:插件化、可变高、虚拟化,27 个领域插件",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./entries/core": {
|
|
15
|
+
"types": "./dist/entries/core.d.ts",
|
|
16
|
+
"import": "./dist/entries/core.js"
|
|
17
|
+
},
|
|
18
|
+
"./entries/plugins": {
|
|
19
|
+
"types": "./dist/entries/plugins.d.ts",
|
|
20
|
+
"import": "./dist/entries/plugins.js"
|
|
21
|
+
},
|
|
22
|
+
"./custom-plugins/A11yPlugin": {
|
|
23
|
+
"types": "./dist/custom-plugins/A11yPlugin/index.d.ts",
|
|
24
|
+
"import": "./dist/custom-plugins/A11yPlugin/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./custom-plugins/AlignmentPlugin": {
|
|
27
|
+
"types": "./dist/custom-plugins/AlignmentPlugin/index.d.ts",
|
|
28
|
+
"import": "./dist/custom-plugins/AlignmentPlugin/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./custom-plugins/AutoColumnPlugin": {
|
|
31
|
+
"types": "./dist/custom-plugins/AutoColumnPlugin/index.d.ts",
|
|
32
|
+
"import": "./dist/custom-plugins/AutoColumnPlugin/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./custom-plugins/BookmarkPlugin": {
|
|
35
|
+
"types": "./dist/custom-plugins/BookmarkPlugin/index.d.ts",
|
|
36
|
+
"import": "./dist/custom-plugins/BookmarkPlugin/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./custom-plugins/ClickAnalyticsPlugin": {
|
|
39
|
+
"types": "./dist/custom-plugins/ClickAnalyticsPlugin/index.d.ts",
|
|
40
|
+
"import": "./dist/custom-plugins/ClickAnalyticsPlugin/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./custom-plugins/DebounceLayoutPlugin": {
|
|
43
|
+
"types": "./dist/custom-plugins/DebounceLayoutPlugin/index.d.ts",
|
|
44
|
+
"import": "./dist/custom-plugins/DebounceLayoutPlugin/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./custom-plugins/DragReorderPlugin": {
|
|
47
|
+
"types": "./dist/custom-plugins/DragReorderPlugin/index.d.ts",
|
|
48
|
+
"import": "./dist/custom-plugins/DragReorderPlugin/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./custom-plugins/FilterPlugin": {
|
|
51
|
+
"types": "./dist/custom-plugins/FilterPlugin/index.d.ts",
|
|
52
|
+
"import": "./dist/custom-plugins/FilterPlugin/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./custom-plugins/FixedHeightPlugin": {
|
|
55
|
+
"types": "./dist/custom-plugins/FixedHeightPlugin/index.d.ts",
|
|
56
|
+
"import": "./dist/custom-plugins/FixedHeightPlugin/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./custom-plugins/GapPlugin": {
|
|
59
|
+
"types": "./dist/custom-plugins/GapPlugin/index.d.ts",
|
|
60
|
+
"import": "./dist/custom-plugins/GapPlugin/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./custom-plugins/GroupingPlugin": {
|
|
63
|
+
"types": "./dist/custom-plugins/GroupingPlugin/index.d.ts",
|
|
64
|
+
"import": "./dist/custom-plugins/GroupingPlugin/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./custom-plugins/HeatmapAnalyticsPlugin": {
|
|
67
|
+
"types": "./dist/custom-plugins/HeatmapAnalyticsPlugin/index.d.ts",
|
|
68
|
+
"import": "./dist/custom-plugins/HeatmapAnalyticsPlugin/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./custom-plugins/InfiniteScrollPlugin": {
|
|
71
|
+
"types": "./dist/custom-plugins/InfiniteScrollPlugin/index.d.ts",
|
|
72
|
+
"import": "./dist/custom-plugins/InfiniteScrollPlugin/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./custom-plugins/PaginationPlugin": {
|
|
75
|
+
"types": "./dist/custom-plugins/PaginationPlugin/index.d.ts",
|
|
76
|
+
"import": "./dist/custom-plugins/PaginationPlugin/index.js"
|
|
77
|
+
},
|
|
78
|
+
"./custom-plugins/PinItemPlugin": {
|
|
79
|
+
"types": "./dist/custom-plugins/PinItemPlugin/index.d.ts",
|
|
80
|
+
"import": "./dist/custom-plugins/PinItemPlugin/index.js"
|
|
81
|
+
},
|
|
82
|
+
"./custom-plugins/RecyclePlugin": {
|
|
83
|
+
"types": "./dist/custom-plugins/RecyclePlugin/index.d.ts",
|
|
84
|
+
"import": "./dist/custom-plugins/RecyclePlugin/index.js"
|
|
85
|
+
},
|
|
86
|
+
"./custom-plugins/ReducedMotionPlugin": {
|
|
87
|
+
"types": "./dist/custom-plugins/ReducedMotionPlugin/index.d.ts",
|
|
88
|
+
"import": "./dist/custom-plugins/ReducedMotionPlugin/index.js"
|
|
89
|
+
},
|
|
90
|
+
"./custom-plugins/ResponsiveColumnsPlugin": {
|
|
91
|
+
"types": "./dist/custom-plugins/ResponsiveColumnsPlugin/index.d.ts",
|
|
92
|
+
"import": "./dist/custom-plugins/ResponsiveColumnsPlugin/index.js"
|
|
93
|
+
},
|
|
94
|
+
"./custom-plugins/ScrollAnchorPlugin": {
|
|
95
|
+
"types": "./dist/custom-plugins/ScrollAnchorPlugin/index.d.ts",
|
|
96
|
+
"import": "./dist/custom-plugins/ScrollAnchorPlugin/index.js"
|
|
97
|
+
},
|
|
98
|
+
"./custom-plugins/SearchPlugin": {
|
|
99
|
+
"types": "./dist/custom-plugins/SearchPlugin/index.d.ts",
|
|
100
|
+
"import": "./dist/custom-plugins/SearchPlugin/index.js"
|
|
101
|
+
},
|
|
102
|
+
"./custom-plugins/SortPlugin": {
|
|
103
|
+
"types": "./dist/custom-plugins/SortPlugin/index.d.ts",
|
|
104
|
+
"import": "./dist/custom-plugins/SortPlugin/index.js"
|
|
105
|
+
},
|
|
106
|
+
"./custom-plugins/StatePersistencePlugin": {
|
|
107
|
+
"types": "./dist/custom-plugins/StatePersistencePlugin/index.d.ts",
|
|
108
|
+
"import": "./dist/custom-plugins/StatePersistencePlugin/index.js"
|
|
109
|
+
},
|
|
110
|
+
"./custom-plugins/StickyHeaderPlugin": {
|
|
111
|
+
"types": "./dist/custom-plugins/StickyHeaderPlugin/index.d.ts",
|
|
112
|
+
"import": "./dist/custom-plugins/StickyHeaderPlugin/index.js"
|
|
113
|
+
},
|
|
114
|
+
"./custom-plugins/ThrottlePlugin": {
|
|
115
|
+
"types": "./dist/custom-plugins/ThrottlePlugin/index.d.ts",
|
|
116
|
+
"import": "./dist/custom-plugins/ThrottlePlugin/index.js"
|
|
117
|
+
},
|
|
118
|
+
"./custom-plugins/TransitionPlugin": {
|
|
119
|
+
"types": "./dist/custom-plugins/TransitionPlugin/index.d.ts",
|
|
120
|
+
"import": "./dist/custom-plugins/TransitionPlugin/index.js"
|
|
121
|
+
},
|
|
122
|
+
"./custom-plugins/URLSyncPlugin": {
|
|
123
|
+
"types": "./dist/custom-plugins/URLSyncPlugin/index.d.ts",
|
|
124
|
+
"import": "./dist/custom-plugins/URLSyncPlugin/index.js"
|
|
125
|
+
},
|
|
126
|
+
"./custom-plugins": {
|
|
127
|
+
"types": "./dist/custom-plugins/index.d.ts",
|
|
128
|
+
"import": "./dist/custom-plugins/index.js"
|
|
129
|
+
},
|
|
130
|
+
"./presets/dashboard": {
|
|
131
|
+
"types": "./dist/presets/dashboard/index.d.ts",
|
|
132
|
+
"import": "./dist/presets/dashboard/index.js"
|
|
133
|
+
},
|
|
134
|
+
"./presets/photo-feed": {
|
|
135
|
+
"types": "./dist/presets/photo-feed/index.d.ts",
|
|
136
|
+
"import": "./dist/presets/photo-feed/index.js"
|
|
137
|
+
},
|
|
138
|
+
"./presets/product-feed": {
|
|
139
|
+
"types": "./dist/presets/product-feed/index.d.ts",
|
|
140
|
+
"import": "./dist/presets/product-feed/index.js"
|
|
141
|
+
},
|
|
142
|
+
"./custom-plugins/*": {
|
|
143
|
+
"types": "./dist/custom-plugins/*/index.d.ts",
|
|
144
|
+
"import": "./dist/custom-plugins/*/index.js"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"files": [
|
|
148
|
+
"dist"
|
|
149
|
+
],
|
|
150
|
+
"sideEffects": false,
|
|
151
|
+
"keywords": [
|
|
152
|
+
"react",
|
|
153
|
+
"waterfall",
|
|
154
|
+
"masonry",
|
|
155
|
+
"virtual-scroll",
|
|
156
|
+
"plugin",
|
|
157
|
+
"layout",
|
|
158
|
+
"typescript"
|
|
159
|
+
],
|
|
160
|
+
"author": "vane",
|
|
161
|
+
"license": "MIT",
|
|
162
|
+
"repository": {
|
|
163
|
+
"type": "git",
|
|
164
|
+
"url": "https://github.com/frankvane/vane-components.git",
|
|
165
|
+
"directory": "packages/vane-waterfall"
|
|
166
|
+
},
|
|
167
|
+
"bugs": {
|
|
168
|
+
"url": "https://github.com/frankvane/vane-components/issues"
|
|
169
|
+
},
|
|
170
|
+
"homepage": "https://github.com/frankvane/vane-components/tree/main/packages/vane-waterfall#readme",
|
|
171
|
+
"peerDependencies": {
|
|
172
|
+
"react": ">=16.8.0",
|
|
173
|
+
"react-dom": ">=16.8.0",
|
|
174
|
+
"@vane/plugin-core": "0.1.0"
|
|
175
|
+
},
|
|
176
|
+
"devDependencies": {
|
|
177
|
+
"@types/node": "^20.19.18",
|
|
178
|
+
"@types/react": "^18.3.3",
|
|
179
|
+
"@types/react-dom": "^18.3.0",
|
|
180
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
181
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
182
|
+
"happy-dom": "^15.11.7",
|
|
183
|
+
"react": "^18.3.1",
|
|
184
|
+
"react-dom": "^18.3.1",
|
|
185
|
+
"react-router-dom": "^6",
|
|
186
|
+
"react-syntax-highlighter": "^15.6.6",
|
|
187
|
+
"typescript": "^5.5.3",
|
|
188
|
+
"vite": "^5.4.1",
|
|
189
|
+
"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"
|
|
196
|
+
},
|
|
197
|
+
"vane": {
|
|
198
|
+
"sizeBudgetKb": 14,
|
|
199
|
+
"coreSizeBudgetKb": 12
|
|
200
|
+
},
|
|
201
|
+
"engines": {
|
|
202
|
+
"node": ">=18"
|
|
203
|
+
},
|
|
204
|
+
"publishConfig": {
|
|
205
|
+
"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
|
+
}
|
|
222
|
+
}
|
package/dist/404.jpg
DELETED
|
Binary file
|