react-grid-layout 1.5.3 → 2.1.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.
Files changed (95) hide show
  1. package/README.md +1156 -442
  2. package/css/styles.css +5 -4
  3. package/dist/ResponsiveGridLayout-BkHF9YHa.d.mts +133 -0
  4. package/dist/ResponsiveGridLayout-CLn16-X3.d.ts +133 -0
  5. package/dist/calculate-DsVTldEE.d.ts +196 -0
  6. package/dist/calculate-DwbL1D06.d.mts +196 -0
  7. package/dist/chunk-2O3ZME4Q.mjs +703 -0
  8. package/dist/chunk-2O3ZME4Q.mjs.map +1 -0
  9. package/dist/chunk-526JND3R.mjs +3 -0
  10. package/dist/chunk-526JND3R.mjs.map +1 -0
  11. package/dist/chunk-7ELO5FRW.js +4 -0
  12. package/dist/chunk-7ELO5FRW.js.map +1 -0
  13. package/dist/chunk-AWM66AWF.mjs +422 -0
  14. package/dist/chunk-AWM66AWF.mjs.map +1 -0
  15. package/dist/chunk-BJFPTW5Q.js +449 -0
  16. package/dist/chunk-BJFPTW5Q.js.map +1 -0
  17. package/dist/chunk-FN6MIZ24.js +744 -0
  18. package/dist/chunk-FN6MIZ24.js.map +1 -0
  19. package/dist/chunk-GPZBANOK.js +435 -0
  20. package/dist/chunk-GPZBANOK.js.map +1 -0
  21. package/dist/chunk-LWF5EYMO.mjs +429 -0
  22. package/dist/chunk-LWF5EYMO.mjs.map +1 -0
  23. package/dist/chunk-MXXN7GUE.mjs +1408 -0
  24. package/dist/chunk-MXXN7GUE.mjs.map +1 -0
  25. package/dist/chunk-QRW3ND4U.js +1417 -0
  26. package/dist/chunk-QRW3ND4U.js.map +1 -0
  27. package/dist/core.d.mts +186 -0
  28. package/dist/core.d.ts +186 -0
  29. package/dist/core.js +274 -0
  30. package/dist/core.js.map +1 -0
  31. package/dist/core.mjs +5 -0
  32. package/dist/core.mjs.map +1 -0
  33. package/dist/extras.d.mts +208 -0
  34. package/dist/extras.d.ts +208 -0
  35. package/dist/extras.js +462 -0
  36. package/dist/extras.js.map +1 -0
  37. package/dist/extras.mjs +454 -0
  38. package/dist/extras.mjs.map +1 -0
  39. package/dist/index.d.mts +7 -0
  40. package/dist/index.d.ts +7 -0
  41. package/dist/index.js +154 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/index.mjs +7 -0
  44. package/dist/index.mjs.map +1 -0
  45. package/dist/legacy.d.mts +163 -0
  46. package/dist/legacy.d.ts +163 -0
  47. package/dist/legacy.js +320 -0
  48. package/dist/legacy.js.map +1 -0
  49. package/dist/legacy.mjs +308 -0
  50. package/dist/legacy.mjs.map +1 -0
  51. package/dist/position-C8a5g6bb.d.mts +324 -0
  52. package/dist/position-H8tBL91b.d.ts +324 -0
  53. package/dist/react.d.mts +357 -0
  54. package/dist/react.d.ts +357 -0
  55. package/dist/react.js +96 -0
  56. package/dist/react.js.map +1 -0
  57. package/dist/react.mjs +7 -0
  58. package/dist/react.mjs.map +1 -0
  59. package/dist/responsive-BB5d98xz.d.mts +145 -0
  60. package/dist/responsive-BXI-GCXG.d.ts +145 -0
  61. package/dist/types-CokovIMH.d.mts +469 -0
  62. package/dist/types-CokovIMH.d.ts +469 -0
  63. package/index-dev.js +24 -0
  64. package/package.json +133 -40
  65. package/.babelrc.js +0 -22
  66. package/.browserslistrc +0 -3
  67. package/.eslintignore +0 -4
  68. package/.flowconfig +0 -20
  69. package/.prettierignore +0 -4
  70. package/.prettierrc +0 -17
  71. package/CHANGELOG.md +0 -985
  72. package/build/GridItem.js +0 -638
  73. package/build/ReactGridLayout.js +0 -741
  74. package/build/ReactGridLayoutPropTypes.js +0 -210
  75. package/build/ResponsiveReactGridLayout.js +0 -297
  76. package/build/calculateUtils.js +0 -165
  77. package/build/components/WidthProvider.js +0 -115
  78. package/build/fastRGLPropsEqual.js +0 -5
  79. package/build/responsiveUtils.js +0 -101
  80. package/build/utils.js +0 -842
  81. package/dist/react-grid-layout.min.js +0 -2
  82. package/dist/react-grid-layout.min.js.map +0 -1
  83. package/index.js.flow +0 -8
  84. package/ip_fetcher +0 -0
  85. package/ip_fetcher.c +0 -47
  86. package/lib/GridItem.jsx +0 -689
  87. package/lib/ReactGridLayout.jsx +0 -855
  88. package/lib/ReactGridLayoutPropTypes.js +0 -241
  89. package/lib/ResponsiveReactGridLayout.jsx +0 -349
  90. package/lib/calculateUtils.js +0 -169
  91. package/lib/components/WidthProvider.jsx +0 -110
  92. package/lib/fastRGLPropsEqual.js +0 -46
  93. package/lib/responsiveUtils.js +0 -118
  94. package/lib/utils.js +0 -995
  95. package/yarn-error.log +0 -7780
@@ -0,0 +1,469 @@
1
+ /**
2
+ * Core types for react-grid-layout v2
3
+ *
4
+ * These types are framework-agnostic and define the data structures
5
+ * used by the layout algorithms.
6
+ */
7
+ /**
8
+ * Axis identifiers for resize handles.
9
+ * - Cardinal: 'n', 's', 'e', 'w' (north, south, east, west)
10
+ * - Diagonal: 'ne', 'nw', 'se', 'sw'
11
+ */
12
+ type ResizeHandleAxis = "s" | "w" | "e" | "n" | "sw" | "nw" | "se" | "ne";
13
+ /**
14
+ * A single item in the grid layout.
15
+ *
16
+ * Position (x, y) is in grid units, not pixels.
17
+ * Size (w, h) is in grid units.
18
+ */
19
+ interface LayoutItem {
20
+ /** Unique identifier for this item */
21
+ i: string;
22
+ /** X position in grid units (0-indexed from left) */
23
+ x: number;
24
+ /** Y position in grid units (0-indexed from top) */
25
+ y: number;
26
+ /** Width in grid units */
27
+ w: number;
28
+ /** Height in grid units */
29
+ h: number;
30
+ /** Minimum width in grid units */
31
+ minW?: number;
32
+ /** Minimum height in grid units */
33
+ minH?: number;
34
+ /** Maximum width in grid units */
35
+ maxW?: number;
36
+ /** Maximum height in grid units */
37
+ maxH?: number;
38
+ /**
39
+ * If true, item cannot be dragged or resized, and other items
40
+ * will move around it during compaction.
41
+ */
42
+ static?: boolean;
43
+ /**
44
+ * If false, item cannot be dragged (but may still be resizable).
45
+ * Overrides grid-level isDraggable for this item.
46
+ */
47
+ isDraggable?: boolean;
48
+ /**
49
+ * If false, item cannot be resized (but may still be draggable).
50
+ * Overrides grid-level isResizable for this item.
51
+ */
52
+ isResizable?: boolean;
53
+ /**
54
+ * Which resize handles to show for this item.
55
+ * Overrides grid-level resizeHandles for this item.
56
+ */
57
+ resizeHandles?: ResizeHandleAxis[];
58
+ /**
59
+ * If true, item is constrained to the grid container bounds.
60
+ * Overrides grid-level isBounded for this item.
61
+ */
62
+ isBounded?: boolean;
63
+ /**
64
+ * Internal flag set during drag/resize operations to indicate
65
+ * the item has moved from its original position.
66
+ * @internal
67
+ */
68
+ moved?: boolean;
69
+ /**
70
+ * Per-item layout constraints.
71
+ * Applied in addition to grid-level constraints.
72
+ */
73
+ constraints?: LayoutConstraint[];
74
+ }
75
+ /**
76
+ * A layout is a readonly array of layout items.
77
+ * Layouts should be treated as immutable.
78
+ */
79
+ type Layout = readonly LayoutItem[];
80
+ /**
81
+ * Pixel position and size of an element.
82
+ */
83
+ interface Position {
84
+ left: number;
85
+ top: number;
86
+ width: number;
87
+ height: number;
88
+ }
89
+ /**
90
+ * Partial position (just coordinates, no size).
91
+ */
92
+ interface PartialPosition {
93
+ left: number;
94
+ top: number;
95
+ }
96
+ /**
97
+ * Size in pixels.
98
+ */
99
+ interface Size {
100
+ width: number;
101
+ height: number;
102
+ }
103
+ /**
104
+ * Position when dropping an external element onto the grid.
105
+ */
106
+ interface DroppingPosition {
107
+ left: number;
108
+ top: number;
109
+ e: Event;
110
+ }
111
+ /**
112
+ * Data provided by react-draggable during drag operations.
113
+ */
114
+ interface ReactDraggableCallbackData {
115
+ node: HTMLElement;
116
+ x?: number;
117
+ y?: number;
118
+ deltaX: number;
119
+ deltaY: number;
120
+ lastX?: number;
121
+ lastY?: number;
122
+ }
123
+ /**
124
+ * Grid-level drag event data.
125
+ */
126
+ interface GridDragEvent {
127
+ e: Event;
128
+ node: HTMLElement;
129
+ newPosition: PartialPosition;
130
+ }
131
+ /**
132
+ * Grid-level resize event data.
133
+ */
134
+ interface GridResizeEvent {
135
+ e: Event;
136
+ node: HTMLElement;
137
+ size: Size;
138
+ handle: ResizeHandleAxis;
139
+ }
140
+ /**
141
+ * Drag-over event with layer coordinates.
142
+ */
143
+ interface DragOverEvent extends MouseEvent {
144
+ nativeEvent: Event & {
145
+ layerX: number;
146
+ layerY: number;
147
+ };
148
+ }
149
+ /**
150
+ * Type of compaction to apply to the layout.
151
+ * - 'vertical': Items compact upward (default)
152
+ * - 'horizontal': Items compact leftward
153
+ * - 'wrap': Items arranged in wrapped-paragraph style (like words in text)
154
+ * - null: No compaction (free-form positioning)
155
+ */
156
+ type CompactType = "horizontal" | "vertical" | "wrap" | null;
157
+ /**
158
+ * Standard callback signature for layout change events.
159
+ *
160
+ * @param layout - The current layout after the change
161
+ * @param oldItem - The item before the change (null if not applicable)
162
+ * @param newItem - The item after the change (null if not applicable)
163
+ * @param placeholder - The placeholder item during drag/resize (null at start)
164
+ * @param event - The DOM event that triggered the change
165
+ * @param element - The DOM element being manipulated (null if not applicable)
166
+ */
167
+ type EventCallback = (layout: Layout, oldItem: LayoutItem | null, newItem: LayoutItem | null, placeholder: LayoutItem | null, event: Event, element: HTMLElement | null) => void;
168
+ /**
169
+ * Callback when layout changes for any reason.
170
+ */
171
+ type OnLayoutChangeCallback = (layout: Layout) => void;
172
+ /**
173
+ * Interface for layout compaction strategies.
174
+ *
175
+ * Implement this interface to create custom compaction algorithms.
176
+ *
177
+ * @example
178
+ * ```typescript
179
+ * const myCompactor: Compactor = {
180
+ * type: 'vertical',
181
+ * allowOverlap: false,
182
+ * compact(layout, cols) {
183
+ * // Custom compaction logic
184
+ * return compactedLayout;
185
+ * },
186
+ * onMove(layout, item, x, y, cols) {
187
+ * // Handle item movement
188
+ * return updatedLayout;
189
+ * }
190
+ * };
191
+ * ```
192
+ */
193
+ interface Compactor {
194
+ /** Compaction type identifier */
195
+ readonly type: CompactType;
196
+ /**
197
+ * Whether items can overlap (stack on top of each other).
198
+ *
199
+ * When true:
200
+ * - Items can be placed on top of other items
201
+ * - Dragging into another item does NOT push it away
202
+ * - Compaction is skipped after drag/resize
203
+ */
204
+ readonly allowOverlap: boolean;
205
+ /**
206
+ * Whether to block movement that would cause collision.
207
+ *
208
+ * When true (and allowOverlap is false):
209
+ * - Dragging into another item is blocked (item snaps back)
210
+ * - Other items are NOT pushed away
211
+ * - Only affects drag/resize, not compaction
212
+ *
213
+ * Has no effect when allowOverlap is true.
214
+ */
215
+ readonly preventCollision?: boolean;
216
+ /**
217
+ * Compact the layout.
218
+ *
219
+ * @param layout - The layout to compact
220
+ * @param cols - Number of columns in the grid
221
+ * @returns The compacted layout
222
+ */
223
+ compact(layout: Layout, cols: number): Layout;
224
+ /**
225
+ * Handle item movement, returning the updated layout.
226
+ *
227
+ * @param layout - Current layout
228
+ * @param item - The item being moved
229
+ * @param x - New x position
230
+ * @param y - New y position
231
+ * @param cols - Number of columns
232
+ * @returns Updated layout after the move
233
+ */
234
+ onMove(layout: Layout, item: LayoutItem, x: number, y: number, cols: number): Layout;
235
+ }
236
+ /**
237
+ * Interface for CSS positioning strategies.
238
+ *
239
+ * Implement this interface to customize how items are positioned in the DOM.
240
+ * Built-in strategies: transformStrategy, absoluteStrategy.
241
+ *
242
+ * @example
243
+ * ```typescript
244
+ * // Use transform-based positioning (default, better performance)
245
+ * <GridLayout positionStrategy={transformStrategy} />
246
+ *
247
+ * // Use top/left positioning (for environments where transforms cause issues)
248
+ * <GridLayout positionStrategy={absoluteStrategy} />
249
+ *
250
+ * // Use scaled transforms (for scaled containers)
251
+ * <GridLayout positionStrategy={createScaledStrategy(0.5)} />
252
+ * ```
253
+ */
254
+ interface PositionStrategy {
255
+ /** Strategy type identifier */
256
+ readonly type: "transform" | "absolute";
257
+ /** Scale factor for drag/resize calculations */
258
+ readonly scale: number;
259
+ /**
260
+ * Convert pixel position to CSS style object.
261
+ *
262
+ * @param pos - Position in pixels
263
+ * @returns CSS properties for positioning the element
264
+ */
265
+ calcStyle(pos: Position): React.CSSProperties;
266
+ /**
267
+ * Calculate position during drag operations, accounting for transforms and scale.
268
+ *
269
+ * @param clientX - Mouse client X position
270
+ * @param clientY - Mouse client Y position
271
+ * @param offsetX - Offset from element origin X
272
+ * @param offsetY - Offset from element origin Y
273
+ * @returns Adjusted left/top position
274
+ */
275
+ calcDragPosition(clientX: number, clientY: number, offsetX: number, offsetY: number): PartialPosition;
276
+ }
277
+ /**
278
+ * Context provided to constraint functions during drag/resize operations.
279
+ */
280
+ interface ConstraintContext {
281
+ /** Number of columns in the grid */
282
+ cols: number;
283
+ /** Maximum number of rows (Infinity if unbounded) */
284
+ maxRows: number;
285
+ /** Container width in pixels */
286
+ containerWidth: number;
287
+ /** Container height in pixels (may be 0 if auto-height) */
288
+ containerHeight: number;
289
+ /** Row height in pixels */
290
+ rowHeight: number;
291
+ /** Margin between items [x, y] in pixels */
292
+ margin: readonly [number, number];
293
+ /** Current layout state */
294
+ layout: Layout;
295
+ }
296
+ /**
297
+ * Interface for layout constraints.
298
+ *
299
+ * Implement this interface to create custom position/size constraints.
300
+ * Built-in constraints: gridBounds, minMaxSize, containerBounds, boundedX, boundedY.
301
+ *
302
+ * @example
303
+ * ```typescript
304
+ * // Grid-level constraints
305
+ * <GridLayout constraints={[gridBounds, minMaxSize, aspectRatio(16/9)]} />
306
+ *
307
+ * // Per-item constraints
308
+ * const layout = [
309
+ * { i: 'video', x: 0, y: 0, w: 4, h: 2, constraints: [aspectRatio(16/9)] }
310
+ * ];
311
+ * ```
312
+ */
313
+ interface LayoutConstraint {
314
+ /** Constraint identifier for debugging */
315
+ readonly name: string;
316
+ /**
317
+ * Constrain position during drag operations.
318
+ * Called after grid unit conversion, before layout update.
319
+ *
320
+ * @param item - The item being dragged
321
+ * @param x - Proposed x position in grid units
322
+ * @param y - Proposed y position in grid units
323
+ * @param context - Grid context (cols, maxRows, etc.)
324
+ * @returns Constrained x, y position
325
+ */
326
+ constrainPosition?(item: LayoutItem, x: number, y: number, context: ConstraintContext): {
327
+ x: number;
328
+ y: number;
329
+ };
330
+ /**
331
+ * Constrain size during resize operations.
332
+ * Called after grid unit conversion, before layout update.
333
+ *
334
+ * @param item - The item being resized
335
+ * @param w - Proposed width in grid units
336
+ * @param h - Proposed height in grid units
337
+ * @param handle - Which resize handle is being used
338
+ * @param context - Grid context (cols, maxRows, etc.)
339
+ * @returns Constrained w, h size
340
+ */
341
+ constrainSize?(item: LayoutItem, w: number, h: number, handle: ResizeHandleAxis, context: ConstraintContext): {
342
+ w: number;
343
+ h: number;
344
+ };
345
+ }
346
+ /**
347
+ * Grid measurement configuration.
348
+ * Groups all grid metrics (columns, row height, margins).
349
+ */
350
+ interface GridConfig {
351
+ /** Number of columns in the grid (default: 12) */
352
+ cols: number;
353
+ /** Height of a single row in pixels (default: 150) */
354
+ rowHeight: number;
355
+ /** [horizontal, vertical] margin between items in pixels (default: [10, 10]) */
356
+ margin: readonly [number, number];
357
+ /** [horizontal, vertical] padding inside the container (default: null, uses margin) */
358
+ containerPadding: readonly [number, number] | null;
359
+ /** Maximum number of rows (default: Infinity) */
360
+ maxRows: number;
361
+ }
362
+ /** Default grid configuration */
363
+ declare const defaultGridConfig: GridConfig;
364
+ /**
365
+ * Drag behavior configuration.
366
+ * Groups all drag-related settings.
367
+ */
368
+ interface DragConfig {
369
+ /** Whether items can be dragged (default: true) */
370
+ enabled: boolean;
371
+ /** Whether items are bounded to the container (default: false) */
372
+ bounded: boolean;
373
+ /** CSS selector for drag handle (e.g., '.drag-handle') */
374
+ handle?: string;
375
+ /** CSS selector for elements that should not trigger drag */
376
+ cancel?: string;
377
+ /**
378
+ * Minimum pixels to move before drag starts.
379
+ * Helps distinguish click from drag (fixes #1341, #1401).
380
+ * @default 3
381
+ */
382
+ threshold: number;
383
+ }
384
+ /** Default drag configuration */
385
+ declare const defaultDragConfig: DragConfig;
386
+ /**
387
+ * Resize behavior configuration.
388
+ * Groups all resize-related settings.
389
+ */
390
+ interface ResizeConfig {
391
+ /** Whether items can be resized (default: true) */
392
+ enabled: boolean;
393
+ /** Which resize handles to show (default: ['se']) */
394
+ handles: readonly ResizeHandleAxis[];
395
+ /**
396
+ * Custom resize handle component.
397
+ * Can be a React node or a function that receives the axis.
398
+ */
399
+ handleComponent?: React.ReactNode | ((axis: ResizeHandleAxis, ref: React.Ref<HTMLElement>) => React.ReactNode);
400
+ }
401
+ /** Default resize configuration */
402
+ declare const defaultResizeConfig: ResizeConfig;
403
+ /**
404
+ * Drop configuration (for dropping external elements).
405
+ * Groups all drop-related settings.
406
+ */
407
+ interface DropConfig {
408
+ /** Whether external elements can be dropped on the grid (default: false) */
409
+ enabled: boolean;
410
+ /** Default size for dropped items (default: { w: 1, h: 1 }) */
411
+ defaultItem: {
412
+ w: number;
413
+ h: number;
414
+ };
415
+ /**
416
+ * Called when dragging over the grid.
417
+ * Return dimensions to override defaultItem, or false to reject the drop.
418
+ * Can also return dragOffsetX/dragOffsetY to specify cursor offset for centering.
419
+ */
420
+ onDragOver?: (e: DragEvent) => {
421
+ w?: number;
422
+ h?: number;
423
+ dragOffsetX?: number;
424
+ dragOffsetY?: number;
425
+ } | false | void;
426
+ }
427
+ /** Default drop configuration */
428
+ declare const defaultDropConfig: DropConfig;
429
+ /**
430
+ * Breakpoint name (e.g., 'lg', 'md', 'sm', 'xs', 'xxs').
431
+ */
432
+ type Breakpoint = string;
433
+ /**
434
+ * Map of breakpoint name to pixel width.
435
+ * Generic type B allows custom breakpoint strings.
436
+ */
437
+ type Breakpoints<B extends Breakpoint = Breakpoint> = Record<B, number>;
438
+ /**
439
+ * Map of breakpoint name to number of columns.
440
+ * Generic type B allows custom breakpoint strings.
441
+ */
442
+ type BreakpointCols<B extends Breakpoint = Breakpoint> = Record<B, number>;
443
+ /**
444
+ * Map of breakpoint name to layout.
445
+ * Generic type B allows custom breakpoint strings.
446
+ */
447
+ type ResponsiveLayouts<B extends Breakpoint = Breakpoint> = Partial<Record<B, Layout>>;
448
+ /**
449
+ * Callback when breakpoint changes.
450
+ */
451
+ type OnBreakpointChangeCallback<B extends Breakpoint = Breakpoint> = (newBreakpoint: B, cols: number) => void;
452
+ /**
453
+ * Makes all properties in T mutable (removes readonly).
454
+ */
455
+ type Mutable<T> = {
456
+ -readonly [P in keyof T]: T[P];
457
+ };
458
+ /**
459
+ * Deep partial - all properties and nested properties are optional.
460
+ */
461
+ type DeepPartial<T> = {
462
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
463
+ };
464
+ /**
465
+ * Extract the element type from an array type.
466
+ */
467
+ type ArrayElement<T> = T extends readonly (infer U)[] ? U : never;
468
+
469
+ export { type ArrayElement as A, type Breakpoint as B, type CompactType as C, type DroppingPosition as D, type EventCallback as E, type GridDragEvent as G, type Layout as L, type Mutable as M, type OnLayoutChangeCallback as O, type Position as P, type ResponsiveLayouts as R, type Size as S, type LayoutItem as a, type Breakpoints as b, type Compactor as c, type ResizeHandleAxis as d, type GridResizeEvent as e, type LayoutConstraint as f, type ConstraintContext as g, type PartialPosition as h, type ReactDraggableCallbackData as i, type DragOverEvent as j, type PositionStrategy as k, type GridConfig as l, type DragConfig as m, type ResizeConfig as n, type DropConfig as o, type BreakpointCols as p, type OnBreakpointChangeCallback as q, type DeepPartial as r, defaultGridConfig as s, defaultDragConfig as t, defaultResizeConfig as u, defaultDropConfig as v };
package/index-dev.js ADDED
@@ -0,0 +1,24 @@
1
+ // Development entry point - uses new TypeScript source directly
2
+
3
+ // Legacy API (default)
4
+ module.exports = require("./src/legacy/ReactGridLayout").default;
5
+ module.exports.utils = require("./src/legacy/utils-compat");
6
+ module.exports.calculateUtils = require("./src/legacy/calculate-compat");
7
+ module.exports.Responsive =
8
+ require("./src/legacy/ResponsiveReactGridLayout").default;
9
+ module.exports.Responsive.utils = require("./src/legacy/responsive-compat");
10
+ module.exports.WidthProvider = require("./src/legacy/WidthProvider").default;
11
+
12
+ // v2 API additions
13
+ module.exports.useContainerWidth =
14
+ require("./src/react/hooks/useContainerWidth").useContainerWidth;
15
+ module.exports.GridLayout =
16
+ require("./src/react/components/GridLayout").GridLayout;
17
+ module.exports.ResponsiveGridLayout =
18
+ require("./src/react/components/ResponsiveGridLayout").ResponsiveGridLayout;
19
+
20
+ // Constraint exports
21
+ Object.assign(module.exports, require("./src/core/constraints"));
22
+
23
+ // Compactor exports
24
+ Object.assign(module.exports, require("./src/core/compactors"));