From 8646f8e44344eca76c59be4d18c953fe83e84012 Mon Sep 17 00:00:00 2001 From: Samuel Reed Date: Fri, 9 Jan 2026 14:50:23 -0500 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74218=20Remove?= =?UTF-8?q?=20react-grid-layout:=20package=20provides=20its=20own=20types?= =?UTF-8?q?=20by=20@STRML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notNeededPackages.json | 4 + types/react-grid-layout/.npmignore | 5 - types/react-grid-layout/index.d.ts | 422 ------------------ types/react-grid-layout/package.json | 40 -- .../react-grid-layout-tests.tsx | 140 ------ types/react-grid-layout/tsconfig.json | 21 - 6 files changed, 4 insertions(+), 628 deletions(-) delete mode 100644 types/react-grid-layout/.npmignore delete mode 100644 types/react-grid-layout/index.d.ts delete mode 100644 types/react-grid-layout/package.json delete mode 100644 types/react-grid-layout/react-grid-layout-tests.tsx delete mode 100644 types/react-grid-layout/tsconfig.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 0d0604dc5bc44a..81314a4802c99c 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -6063,6 +6063,10 @@ "libraryName": "react-ga", "asOfVersion": "2.3.0" }, + "react-grid-layout": { + "libraryName": "react-grid-layout", + "asOfVersion": "2.1.0" + }, "react-helmet-async": { "libraryName": "react-helmet-async", "asOfVersion": "1.0.2" diff --git a/types/react-grid-layout/.npmignore b/types/react-grid-layout/.npmignore deleted file mode 100644 index 93e307400a5456..00000000000000 --- a/types/react-grid-layout/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -* -!**/*.d.ts -!**/*.d.cts -!**/*.d.mts -!**/*.d.*.ts diff --git a/types/react-grid-layout/index.d.ts b/types/react-grid-layout/index.d.ts deleted file mode 100644 index 51f98b39733daa..00000000000000 --- a/types/react-grid-layout/index.d.ts +++ /dev/null @@ -1,422 +0,0 @@ -import * as React from "react"; - -export as namespace ReactGridLayout; -export = ReactGridLayout; - -declare class ReactGridLayout extends React.Component {} - -type ResizeHandle = "s" | "w" | "e" | "n" | "sw" | "nw" | "se" | "ne"; - -declare namespace ReactGridLayout { - interface Layout { - /** - * A string corresponding to the component key. - * Uses the index of components instead if not provided. - */ - i: string; - - /** - * X position in grid units. - */ - x: number; - - /** - * Y position in grid units. - */ - y: number; - - /** - * Width in grid units. - */ - w: number; - - /** - * Height in grid units. - */ - h: number; - - /** - * Minimum width in grid units. - */ - minW?: number | undefined; - - /** - * Maximum width in grid units. - */ - maxW?: number | undefined; - - /** - * Minimum height in grid units. - */ - minH?: number | undefined; - - /** - * Maximum height in grid units. - */ - maxH?: number | undefined; - - /** - * set by DragEvents (onDragStart, onDrag, onDragStop) and ResizeEvents (onResizeStart, onResize, onResizeStop) - */ - moved?: boolean | undefined; - - /** - * If true, equal to `isDraggable: false` and `isResizable: false`. - */ - static?: boolean | undefined; - - /** - * If false, will not be draggable. Overrides `static`. - */ - isDraggable?: boolean | undefined; - - /** - * If false, will not be resizable. Overrides `static`. - */ - isResizable?: boolean | undefined; - - /** - * By default, a handle is only shown on the bottom-right (southeast) corner. - * Note that resizing from the top or left is generally not intuitive. - */ - resizeHandles?: ResizeHandle[] | undefined; - - /** - * If true and draggable, item will be moved only within grid. - */ - isBounded?: boolean | undefined; - } - - interface Layouts { - [P: string]: Layout[]; - } - - type ItemCallback = ( - layout: Layout[], - oldItem: Layout, - newItem: Layout, - placeholder: Layout, - event: MouseEvent, - element: HTMLElement, - ) => void; - - type DragOverEvent = MouseEvent & { - nativeEvent: { - layerX: number; - layerY: number; - } & Event; - }; - - interface CoreProps { - /** - * The classname to add to the root element. - */ - className?: string | undefined; - - /** - * Inline-style object to pass to the root element. - */ - style?: React.CSSProperties | undefined; - - /** - * This allows setting the initial width on the server side. - * This is required unless using the HOC or similar. - */ - width?: number | undefined; - - /** - * If true, the container height swells and contracts to fit contents. - */ - autoSize?: boolean | undefined; - - /** - * A CSS selector for tags that will not be draggable. - * For example: `draggableCancel: '.MyNonDraggableAreaClassName'` - * If you forget the leading. it will not work. - * "".react-resizable-handle" is always prepended to this value. - */ - draggableCancel?: string | undefined; - - /** - * A CSS selector for tags that will act as the draggable handle. - * For example: `draggableHandle: '.MyDragHandleClassName'` - * If you forget the leading . it will not work. - */ - draggableHandle?: string | undefined; - - /** - * Compaction type. - */ - compactType?: "vertical" | "horizontal" | null | undefined; - - /** - * Rows have a static height, but you can change this based on breakpoints if you like. - */ - rowHeight?: number | undefined; - - /** - * Configuration of a dropping element. Dropping element is a "virtual" element - * which appears when you drag over some element from outside. - */ - droppingItem?: { - i: string; - w: number; - h: number; - } | undefined; - - /** - * If true, the layout will compact vertically. - */ - verticalCompact?: boolean | undefined; - - /** - * Default Infinity, but you can specify a max here if you like. - * Note that this isn't fully fleshed out and won't error if you specify a layout that - * extends beyond the row capacity. It will, however, not allow users to drag/resize - * an item past the barrier. They can push items beyond the barrier, though. - * Intentionally not documented for this reason. - */ - maxRows?: number | undefined; - - // Flags: - - /** - * If set to false it will disable dragging on all children. - */ - isDraggable?: boolean | undefined; - - /** - * If set to false it will disable resizing on all children. - */ - isResizable?: boolean | undefined; - - /** - * If true and draggable, all items will be moved only within grid. - */ - isBounded?: boolean | undefined; - - /** - * Uses CSS3 `translate()` instead of position top/left. - * This makes about 6x faster paint performance. - */ - useCSSTransforms?: boolean | undefined; - - /** - * If parent DOM node of ResponsiveReactGridLayout or ReactGridLayout has "transform: scale(n)" css property, - * we should set scale coefficient to avoid render artefacts while dragging. - */ - transformScale?: number | undefined; - - /** - * If true, grid can be placed one over the other. - */ - allowOverlap?: boolean | undefined; - - /** - * If true, grid items won't change position when being dragged over. - */ - preventCollision?: boolean | undefined; - - /** - * If true, droppable elements (with `draggable={true}` attribute) - * can be dropped on the grid. It triggers "onDrop" callback - * with position and event object as parameters. - * It can be useful for dropping an element in a specific position - * NOTE: In case of using Firefox you should add - * `onDragStart={e => e.dataTransfer.setData('text/plain', '')}` attribute - * along with `draggable={true}` otherwise this feature will work incorrect. - * onDragStart attribute is required for Firefox for a dragging initialization - * @see https://bugzilla.mozilla.org/show_bug.cgi?id=568313 - */ - isDroppable?: boolean | undefined; - - /** - * Defines which resize handles should be rendered - * Allows for any combination of: - * 's' - South handle (bottom-center) - * 'w' - West handle (left-center) - * 'e' - East handle (right-center) - * 'n' - North handle (top-center) - * 'sw' - Southwest handle (bottom-left) - * 'nw' - Northwest handle (top-left) - * 'se' - Southeast handle (bottom-right) - * 'ne' - Northeast handle (top-right) - */ - resizeHandles?: ResizeHandle[] | undefined; - - /** - * Defines custom component for resize handle - */ - resizeHandle?: - | React.ReactNode - | ((resizeHandleAxis: ResizeHandle, ref: React.Ref) => React.ReactNode) - | undefined; - - /** - * Calls when drag starts. - */ - onDragStart?: ItemCallback | undefined; - - /** - * Calls on each drag movement. - */ - onDrag?: ItemCallback | undefined; - - /** - * Calls when drag is complete. - */ - onDragStop?: ItemCallback | undefined; - - /** - * Calls when resize starts. - */ - onResizeStart?: ItemCallback | undefined; - - /** - * Calls when resize movement happens. - */ - onResize?: ItemCallback | undefined; - - /** - * Calls when resize is complete. - */ - onResizeStop?: ItemCallback | undefined; - - /** - * Calls when some element has been dropped - */ - onDrop?(layout: Layout[], item: Layout, e: Event): void; - - /** - * Calls when an element is being dragged over the grid from outside as above. - * This callback should return an object to dynamically change the droppingItem size - * Return false to short-circuit the dragover - */ - onDropDragOver?(e: DragOverEvent): { w?: number; h?: number } | false | undefined; - - /** - * Ref for getting a reference for the grid's wrapping div. - * You can use this instead of a regular ref and the deprecated `ReactDOM.findDOMNode()`` function. - */ - innerRef?: React.Ref; - } - - interface ReactGridLayoutProps extends CoreProps { - children?: React.ReactNode; - - /** - * Number of columns in this layout. - */ - cols?: number | undefined; - - /** - * Margin between items `[x, y]` in px. - */ - margin?: [number, number] | undefined; - - /** - * Padding inside the container `[x, y]` in px. - */ - containerPadding?: [number, number] | undefined; - - /** - * Layout is an array of object with the format: - * - * `{x: number, y: number, w: number, h: number}` - * - * The index into the layout must match the key used on each item component. - * If you choose to use custom keys, you can specify that key in the layout - * array objects like so: - * - * `{i: string, x: number, y: number, w: number, h: number}` - * - * If not provided, use data-grid props on children. - */ - layout?: Layout[] | undefined; - - /** - * Callback so you can save the layout. - * Calls back with (currentLayout) after every drag or resize stop. - */ - onLayoutChange?(layout: Layout[]): void; - } - - interface ResponsiveProps extends CoreProps { - /** - * Optional, but if you are managing width yourself you may want to set the breakpoint - * yourself as well. - */ - breakpoint?: string | undefined; - /** - * `{name: pxVal}, e.g. {lg: 1200, md: 996, sm: 768, xs: 480}` - * Breakpoint names are arbitrary but must match in the cols and layouts objects. - */ - breakpoints?: { [P: string]: number } | undefined; - - children?: React.ReactNode; - - /** - * Number of cols. This is a breakpoint -> cols map, e.g. `{lg: 12, md: 10, ...}`. - */ - cols?: { [P: string]: number } | undefined; - - /** - * Number of containerPadding. This is a breakpoint -> containerPadding map - * e.g. { lg: [5, 5], md: [10, 10], sm: [15, 15] } - * Padding inside the container [x, y] in px - * e.g. [10, 10] - */ - containerPadding?: [number, number] | { [P: string]: [number, number] } | undefined; - - /** - * Layouts is an object mapping breakpoints to layouts. - * e.g. `{lg: Layout[], md: Layout[], ...}` - */ - layouts?: Layouts | undefined; - - /** - * Number of margin. This is a breakpoint -> margin map - * e.g. { lg: [5, 5], md: [10, 10], sm: [15, 15] } - * Margin between items [x, y] in px - * e.g. [10, 10] - */ - margin?: [number, number] | { [P: string]: [number, number] } | undefined; - - /** - * Calls back with breakpoint and new number pf cols. - */ - onBreakpointChange?(newBreakpoint: string, newCols: number): void; - - /** - * Callback so you can save the layout. - * Calls back with (currentLayout, allLayouts). allLayouts are keyed by breakpoint. - */ - onLayoutChange?(currentLayout: Layout[], allLayouts: Layouts): void; - - /** - * Callback that triggers when the width changes, so you can modify the layout as needed. - * Calls back with (containerWidth, margin, cols, containerPadding) - */ - onWidthChange?( - containerWidth: number, - margin: [number, number], - cols: number, - containerPadding: [number, number], - ): void; - } - - class Responsive extends React.Component {} - - interface WidthProviderProps { - /** - * If true, WidthProvider will measure the container's width before mounting children. - * Use this if you'd like to completely eliminate any resizing animation on - * application/component mount. - */ - measureBeforeMount?: boolean | undefined; - } - - function WidthProvider

( - component: React.ComponentClass

| React.FunctionComponent

, - ): React.ComponentClass

; -} diff --git a/types/react-grid-layout/package.json b/types/react-grid-layout/package.json deleted file mode 100644 index bb4dcaeab80f34..00000000000000 --- a/types/react-grid-layout/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "private": true, - "name": "@types/react-grid-layout", - "version": "1.3.9999", - "projects": [ - "https://github.com/STRML/react-grid-layout" - ], - "dependencies": { - "@types/react": "*" - }, - "devDependencies": { - "@types/react-grid-layout": "workspace:." - }, - "owners": [ - { - "name": "Andrew Birkholz", - "githubUsername": "abirkholz" - }, - { - "name": "Ali Taheri", - "githubUsername": "alitaheri" - }, - { - "name": "Zheyang Song", - "githubUsername": "ZheyangSong" - }, - { - "name": "Andrew Hathaway", - "githubUsername": "andrewhathaway" - }, - { - "name": "Manav Mishra", - "githubUsername": "manav-m" - }, - { - "name": "Alexey Fyodorov", - "githubUsername": "al-fyodorov" - } - ] -} diff --git a/types/react-grid-layout/react-grid-layout-tests.tsx b/types/react-grid-layout/react-grid-layout-tests.tsx deleted file mode 100644 index 72b2768091d1e6..00000000000000 --- a/types/react-grid-layout/react-grid-layout-tests.tsx +++ /dev/null @@ -1,140 +0,0 @@ -import * as React from "react"; -import ReactGridLayout = require("react-grid-layout"); -import { Responsive, WidthProvider } from "react-grid-layout"; - -const ResponsiveWidth = WidthProvider(Responsive); - -class DefaultGridTest extends React.Component { - render() { - const layout = [ - { i: "a", x: 0, y: 0, w: 1, h: 2, static: true }, - { i: "b", x: 1, y: 0, w: 3, h: 2, minW: 2, maxW: 4 }, - { i: "c", x: 4, y: 0, w: 1, h: 2 }, - ]; - - return ( - false} - resizeHandles={["e"]} - resizeHandle={

} - > -
a
-
b
-
c
- - ); - } -} - -class ResponsiveGridTest extends React.Component { - render() { - const layouts = { - lg: [ - { i: "1", x: 0, y: 0, w: 1, h: 2, static: true }, - { i: "2", x: 1, y: 0, w: 3, h: 2, minW: 2, maxW: 4 }, - { i: "3", x: 4, y: 0, w: 1, h: 2 }, - ], - }; - - return ( - -
a
-
b
-
c
-
- ); - } -} - -class ResponsiveGridTestWithCustomBreakpoints extends React.Component { - render() { - const layouts = { - lg: [ - { i: "1", x: 0, y: 0, w: 1, h: 2, static: true }, - { i: "2", x: 1, y: 0, w: 3, h: 2, minW: 2, maxW: 4 }, - { i: "3", x: 4, y: 0, w: 1, h: 2 }, - ], - }; - - return ( - -
a
-
b
-
c
-
- ); - } -} - -class ResponsiveGridWidthProviderTest extends React.Component { - render() { - return ( - -
a
-
b
-
c
-
- ); - } -} - -class InnerRefObjectTest extends React.Component { - render() { - return ()} />; - } -} - -class InnerRefCallbackTest extends React.Component { - render() { - return {}} />; - } -} - -class ResizeHandleFunctionTest extends React.Component { - render() { - return ( - ( -
} className={`custom-handle-${resizeHandleAxis}`}> - {resizeHandleAxis} -
- )} - /> - ); - } -} - -class ResizeHandleElementTest extends React.Component { - render() { - return } />; - } -} - -class ResizeHandleResponsiveTest extends React.Component { - render() { - return ( - { - return ; - }} - /> - ); - } -} diff --git a/types/react-grid-layout/tsconfig.json b/types/react-grid-layout/tsconfig.json deleted file mode 100644 index 45975d7041769a..00000000000000 --- a/types/react-grid-layout/tsconfig.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compilerOptions": { - "module": "node16", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "jsx": "react" - }, - "files": [ - "index.d.ts", - "react-grid-layout-tests.tsx" - ] -} From 1e2a93754e54a228a69725bf21da0f05018b4756 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 9 Jan 2026 11:52:08 -0800 Subject: [PATCH 2/2] Remove contributors with deleted accounts (#74219) Co-authored-by: TypeScript Bot --- types/fast-crc32c/package.json | 7 +------ types/injectpromise/package.json | 7 +------ types/sse4_crc32/package.json | 7 +------ 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/types/fast-crc32c/package.json b/types/fast-crc32c/package.json index 1c623931ba6c99..2fa76af4c70997 100644 --- a/types/fast-crc32c/package.json +++ b/types/fast-crc32c/package.json @@ -11,10 +11,5 @@ "devDependencies": { "@types/fast-crc32c": "workspace:." }, - "owners": [ - { - "name": "naeem", - "githubUsername": "naeemy" - } - ] + "owners": [] } diff --git a/types/injectpromise/package.json b/types/injectpromise/package.json index ab215cce5cbdc1..e0a8a35f9059da 100644 --- a/types/injectpromise/package.json +++ b/types/injectpromise/package.json @@ -8,10 +8,5 @@ "devDependencies": { "@types/injectpromise": "workspace:." }, - "owners": [ - { - "name": "naeemy", - "githubUsername": "naeemy" - } - ] + "owners": [] } diff --git a/types/sse4_crc32/package.json b/types/sse4_crc32/package.json index 2cf1ca34efa98d..c10a37127d91e5 100644 --- a/types/sse4_crc32/package.json +++ b/types/sse4_crc32/package.json @@ -11,10 +11,5 @@ "devDependencies": { "@types/sse4_crc32": "workspace:." }, - "owners": [ - { - "name": "naeemy", - "githubUsername": "naeemy" - } - ] + "owners": [] }