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.
- package/README.md +6 -6
- package/dist/chunks/WaterfallCore-EdAZuWAY.js +695 -0
- package/dist/chunks/{doc-kTbJE7rY.js → doc-BCmEnh39.js} +31 -29
- package/dist/chunks/doc-BQQoKNto.js +126 -0
- package/dist/chunks/{doc-j4W9SUrY.js → doc-BSnWbrkH.js} +39 -27
- package/dist/chunks/{doc-BCGQ8Cp5.js → doc-BXaJl1By.js} +54 -41
- package/dist/chunks/{doc-CraXjOaA.js → doc-BindRMfO.js} +30 -26
- package/dist/chunks/{doc-78xF08vt.js → doc-BmoijI6q.js} +35 -35
- package/dist/chunks/{doc-BtzhgTYj.js → doc-CN4edvn_.js} +27 -27
- package/dist/chunks/{doc-NhL4Ux8q.js → doc-CkU5GtLw.js} +65 -54
- package/dist/chunks/doc-DAieSXLy.js +86 -0
- package/dist/chunks/{doc-BP0DmB7-.js → doc-D_ozEn0Q.js} +27 -27
- package/dist/chunks/{doc-f4Uijujv.js → doc-KN6Bvmty.js} +54 -32
- package/dist/chunks/{doc-B6kLfMPv.js → doc-a0MK2S3n.js} +61 -40
- package/dist/chunks/{index-COaun3nf.js → index-B8o6R4RZ.js} +2 -2
- package/dist/chunks/{index-DXAtA2f6.js → index-BFyYpEY_.js} +2 -2
- package/dist/chunks/{index-wLI6UXkY.js → index-CF0tYRop.js} +1 -1
- package/dist/chunks/{index-gjoCq0yC.js → index-CJR0Buju.js} +4 -4
- package/dist/chunks/{index-DsRLmBW-.js → index-DHTB3QEP.js} +3 -3
- package/dist/chunks/withPlugins-DG3YpSgL.js +655 -0
- package/dist/components/WaterfallPlugin/WaterfallCore.d.ts +19 -0
- package/dist/components/WaterfallPlugin/WaterfallCore.d.ts.map +1 -1
- package/dist/components/WaterfallPlugin/layout.d.ts +7 -0
- package/dist/components/WaterfallPlugin/layout.d.ts.map +1 -1
- package/dist/components/WaterfallPlugin/plugins/types.d.ts +4 -1
- package/dist/components/WaterfallPlugin/plugins/types.d.ts.map +1 -1
- package/dist/components/WaterfallPlugin/withPlugins.d.ts.map +1 -1
- package/dist/custom-plugins/A11yPlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/A11yPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/A11yPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/A11yPlugin/index.js +1 -1
- package/dist/custom-plugins/AlignmentPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/AlignmentPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/AutoColumnPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/AutoColumnPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/BookmarkPlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/BookmarkPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/BookmarkPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/BookmarkPlugin/index.js +1 -1
- package/dist/custom-plugins/ClickAnalyticsPlugin/create.d.ts +2 -0
- package/dist/custom-plugins/ClickAnalyticsPlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/ClickAnalyticsPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/ClickAnalyticsPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/ClickAnalyticsPlugin/index.js +1 -1
- package/dist/custom-plugins/DebounceLayoutPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/DebounceLayoutPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/DragReorderPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/DragReorderPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/FilterPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/FilterPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/FixedHeightPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/FixedHeightPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/GapPlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/GapPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/GapPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/GapPlugin/index.js +1 -1
- package/dist/custom-plugins/GroupingPlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/GroupingPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/GroupingPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/GroupingPlugin/index.js +1 -1
- package/dist/custom-plugins/HeatmapAnalyticsPlugin/create.d.ts +2 -0
- package/dist/custom-plugins/HeatmapAnalyticsPlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/HeatmapAnalyticsPlugin/index.js +1 -1
- package/dist/custom-plugins/InfiniteScrollPlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/InfiniteScrollPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/InfiniteScrollPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/InfiniteScrollPlugin/index.js +1 -1
- package/dist/custom-plugins/PaginationPlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/PaginationPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/PaginationPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/PaginationPlugin/index.js +1 -1
- package/dist/custom-plugins/PinItemPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/PinItemPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/RecyclePlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/RecyclePlugin/index.d.ts +1 -1
- package/dist/custom-plugins/RecyclePlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/RecyclePlugin/index.js +1 -1
- package/dist/custom-plugins/ReducedMotionPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/ReducedMotionPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/ResponsiveColumnsPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/ResponsiveColumnsPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/ScrollAnchorPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/ScrollAnchorPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/SearchPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/SearchPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/SortPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/SortPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/StatePersistencePlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/StatePersistencePlugin/index.d.ts +1 -1
- package/dist/custom-plugins/StatePersistencePlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/StatePersistencePlugin/index.js +1 -1
- package/dist/custom-plugins/StickyHeaderPlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/StickyHeaderPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/StickyHeaderPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/StickyHeaderPlugin/index.js +1 -1
- package/dist/custom-plugins/ThrottlePlugin/index.d.ts +1 -1
- package/dist/custom-plugins/ThrottlePlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/TransitionPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/TransitionPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/URLSyncPlugin/create.d.ts.map +1 -1
- package/dist/custom-plugins/URLSyncPlugin/index.d.ts +1 -1
- package/dist/custom-plugins/URLSyncPlugin/index.d.ts.map +1 -1
- package/dist/custom-plugins/URLSyncPlugin/index.js +1 -1
- package/dist/custom-plugins/index.js +5 -5
- package/dist/entries/core.js +1 -1
- package/dist/entries/plugins.d.ts +1 -1
- package/dist/entries/plugins.d.ts.map +1 -1
- package/dist/entries/plugins.js +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/presets/dashboard/index.js +2 -2
- package/dist/presets/photo-feed/index.js +2 -2
- package/dist/presets/product-feed/index.js +1 -1
- package/package.json +32 -25
- package/dist/chunks/WaterfallCore-BSXw7bl_.js +0 -581
- package/dist/chunks/doc-B-7dugGv.js +0 -79
- package/dist/chunks/doc-DJjxOYzW.js +0 -111
- 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 '
|
|
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,
|
|
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 +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,
|
|
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 '
|
|
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,
|
|
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 +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,
|
|
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 +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,
|
|
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,
|
|
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 +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,
|
|
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,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-
|
|
2
|
-
import { c as P, a as m, b as p, d } from "../chunks/index-
|
|
3
|
-
import { c as x, a as y, b as S, d as A, e as b, f as h } from "../chunks/index-
|
|
4
|
-
import { c as k, a as C, b as H, d as D, e as F } from "../chunks/index-
|
|
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-
|
|
6
|
+
import { c as T } from "../chunks/index-CF0tYRop.js";
|
|
7
7
|
export {
|
|
8
8
|
T as createA11yPlugin,
|
|
9
9
|
r as createAlignmentPlugin,
|
package/dist/entries/core.js
CHANGED
|
@@ -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 '
|
|
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,
|
|
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"}
|
package/dist/entries/plugins.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { w as r } from "../chunks/withPlugins-
|
|
2
|
-
import { c as i } from "../chunks/index-
|
|
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-
|
|
4
|
-
import { c as d, a as x, b as y, d as S } from "../chunks/index-
|
|
5
|
-
import { c as A, a as b, b as R, d as k, e as C } from "../chunks/index-
|
|
6
|
-
import { c as w, a as D, b as F, d as G, e as I, f as L } from "../chunks/index-
|
|
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 '
|
|
15
|
+
export type { Plugin, PluginContext, PluginDoc } from 'vane-plugin-core';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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-
|
|
2
|
-
import { w as i } from "./chunks/withPlugins-
|
|
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-
|
|
2
|
-
import { c as u } from "../../chunks/index-
|
|
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-
|
|
2
|
-
import { c as i, a as l, d as u, b as c } from "../../chunks/index-
|
|
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-
|
|
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.
|
|
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
|
+
}
|