react-grid-layout 2.2.4 → 2.3.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 +5 -0
- package/dist/{ResponsiveGridLayout-BjVraYMQ.d.mts → ResponsiveGridLayout-BSYEMZ9d.d.ts} +4 -4
- package/dist/{ResponsiveGridLayout-BrhkSyZk.d.ts → ResponsiveGridLayout-RNuyRTPe.d.mts} +4 -4
- package/dist/{calculate-DH4EVtn1.d.mts → calculate-BXoe3Mfz.d.mts} +1 -1
- package/dist/{calculate-rP3DHexe.d.ts → calculate-Tc1WkIxl.d.ts} +1 -1
- package/dist/{chunk-QAWP6PEK.js → chunk-CUP5Y2ZG.js} +495 -154
- package/dist/{chunk-55DQUWLA.js → chunk-QAIA5KAO.js} +33 -22
- package/dist/{chunk-BMN6M2VL.js → chunk-SL4EZ2NU.js} +49 -34
- package/dist/{chunk-LY5GT7Q2.mjs → chunk-TW4BCTKD.mjs} +19 -4
- package/dist/{chunk-KDANGDDL.mjs → chunk-VBU6B7II.mjs} +13 -2
- package/dist/{chunk-A5WIFECI.js → chunk-VJJIA3HC.js} +7 -3
- package/dist/{chunk-7ZM5LVH2.mjs → chunk-Z6CWRR74.mjs} +426 -85
- package/dist/{chunk-76RTO6EO.mjs → chunk-ZYNFVPDS.mjs} +7 -3
- package/dist/core.d.mts +5 -5
- package/dist/core.d.ts +5 -5
- package/dist/core.js +67 -67
- package/dist/core.mjs +2 -2
- package/dist/extras.d.mts +2 -2
- package/dist/extras.d.ts +2 -2
- package/dist/extras.js +8 -8
- package/dist/extras.mjs +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +39 -39
- package/dist/index.mjs +4 -4
- package/dist/legacy.d.mts +18 -9
- package/dist/legacy.d.ts +18 -9
- package/dist/legacy.js +33 -23
- package/dist/legacy.mjs +16 -7
- package/dist/{position-CSgQSjwQ.d.ts → position-VdYnMJql.d.ts} +1 -1
- package/dist/{position-BV-g3Ezg.d.mts → position-iPly-ecb.d.mts} +1 -1
- package/dist/react.d.mts +24 -6
- package/dist/react.d.ts +24 -6
- package/dist/react.js +25 -25
- package/dist/react.mjs +4 -4
- package/dist/{responsive-BrTV_0tK.d.mts → responsive-BVtXrrTF.d.mts} +1 -1
- package/dist/{responsive-C_YtBQYq.d.ts → responsive-C6s9JAJU.d.ts} +1 -1
- package/dist/{types-jd8MiKM1.d.mts → types-DlzNckle.d.mts} +22 -0
- package/dist/{types-jd8MiKM1.d.ts → types-DlzNckle.d.ts} +22 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -32,6 +32,7 @@ RGL is React-only and does not require jQuery.
|
|
|
32
32
|
- [Extending: Custom Compactors & Position Strategies](#extending-custom-compactors--position-strategies)
|
|
33
33
|
- [Extras](#extras)
|
|
34
34
|
- [Performance](#performance)
|
|
35
|
+
- [Architecture maps](#architecture-maps)
|
|
35
36
|
- [Contribute](#contribute)
|
|
36
37
|
|
|
37
38
|
## What's New in v2
|
|
@@ -1305,6 +1306,10 @@ const CustomItem = forwardRef<HTMLDivElement, CustomItemProps>(
|
|
|
1305
1306
|
);
|
|
1306
1307
|
```
|
|
1307
1308
|
|
|
1309
|
+
## Architecture maps
|
|
1310
|
+
|
|
1311
|
+
Token-lean architecture maps live in [`codemaps/`](codemaps/) and are loaded at session start by AI tooling. They cover the module boundaries, public API surface, data models, and recent behavioral changes. Regenerate with `/update-codemaps` after substantial changes.
|
|
1312
|
+
|
|
1308
1313
|
## Contribute
|
|
1309
1314
|
|
|
1310
1315
|
If you have a feature request, please add it as an issue or make a pull request.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { CSSProperties, DragEvent, ReactElement } from 'react';
|
|
2
|
-
import { m as GridConfig, j as DragConfig, r as ResizeConfig, l as DropConfig, p as PositionStrategy, b as Compactor, f as LayoutConstraint, L as Layout, d as LayoutItem, E as EventCallback, B as Breakpoint, a as Breakpoints, e as ResponsiveLayouts } from './types-
|
|
2
|
+
import { m as GridConfig, j as DragConfig, r as ResizeConfig, l as DropConfig, p as PositionStrategy, b as Compactor, f as LayoutConstraint, L as Layout, d as LayoutItem, E as EventCallback, B as Breakpoint, a as Breakpoints, e as ResponsiveLayouts } from './types-DlzNckle.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* GridLayout component
|
|
@@ -125,8 +125,8 @@ interface ResponsiveGridLayoutProps<B extends Breakpoint = string> extends Omit<
|
|
|
125
125
|
onWidthChange?: (containerWidth: number, margin: readonly [number, number], cols: number, containerPadding: readonly [number, number] | null) => void;
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* The forwardRef wrapper so consumers can capture the container div ref (#2244).
|
|
129
129
|
*/
|
|
130
|
-
declare
|
|
130
|
+
declare const ResponsiveGridLayoutWithRef: React__default.ForwardRefExoticComponent<ResponsiveGridLayoutProps<string> & React__default.RefAttributes<HTMLDivElement>>;
|
|
131
131
|
|
|
132
|
-
export { GridLayout as G,
|
|
132
|
+
export { GridLayout as G, ResponsiveGridLayoutWithRef as R, type GridLayoutProps as a, type ResponsiveGridLayoutProps as b };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { CSSProperties, DragEvent, ReactElement } from 'react';
|
|
2
|
-
import { m as GridConfig, j as DragConfig, r as ResizeConfig, l as DropConfig, p as PositionStrategy, b as Compactor, f as LayoutConstraint, L as Layout, d as LayoutItem, E as EventCallback, B as Breakpoint, a as Breakpoints, e as ResponsiveLayouts } from './types-
|
|
2
|
+
import { m as GridConfig, j as DragConfig, r as ResizeConfig, l as DropConfig, p as PositionStrategy, b as Compactor, f as LayoutConstraint, L as Layout, d as LayoutItem, E as EventCallback, B as Breakpoint, a as Breakpoints, e as ResponsiveLayouts } from './types-DlzNckle.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* GridLayout component
|
|
@@ -125,8 +125,8 @@ interface ResponsiveGridLayoutProps<B extends Breakpoint = string> extends Omit<
|
|
|
125
125
|
onWidthChange?: (containerWidth: number, margin: readonly [number, number], cols: number, containerPadding: readonly [number, number] | null) => void;
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* The forwardRef wrapper so consumers can capture the container div ref (#2244).
|
|
129
129
|
*/
|
|
130
|
-
declare
|
|
130
|
+
declare const ResponsiveGridLayoutWithRef: React__default.ForwardRefExoticComponent<ResponsiveGridLayoutProps<string> & React__default.RefAttributes<HTMLDivElement>>;
|
|
131
131
|
|
|
132
|
-
export { GridLayout as G,
|
|
132
|
+
export { GridLayout as G, ResponsiveGridLayoutWithRef as R, type GridLayoutProps as a, type ResponsiveGridLayoutProps as b };
|