Skip to content

Commit dece775

Browse files
kibanamachineelastic-renovate-prod[bot]Heenawter
authored
[9.0] Update dnd-kit (main) (#235569) (#236366)
# Backport This will backport the following commits from `main` to `9.0`: - [Update dnd-kit (main) (#235569)](#235569) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"elastic-renovate-prod[bot]","email":"174716857+elastic-renovate-prod[bot]@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-09-24T18:49:44Z","message":"Update dnd-kit (main) (#235569)\n\nThis PR contains the following updates:\n\n| Package | Type | Update | Change |\n|---|---|---|---|\n| [@dnd-kit/core](https://redirect.github.com/clauderic/dnd-kit)\n([source](https://redirect.github.com/clauderic/dnd-kit/tree/HEAD/packages/core))\n| dependencies | minor | [`^6.1.0` ->\n`^6.3.1`](https://renovatebot.com/diffs/npm/@dnd-kit%2fcore/6.1.0/6.3.1)\n|\n| [@dnd-kit/sortable](https://redirect.github.com/clauderic/dnd-kit)\n([source](https://redirect.github.com/clauderic/dnd-kit/tree/HEAD/packages/sortable))\n| dependencies | major | [`^8.0.0` ->\n`^10.0.0`](https://renovatebot.com/diffs/npm/@dnd-kit%2fsortable/8.0.0/10.0.0)\n|\n\n---\n\n### Release Notes\n\n<details>\n<summary>clauderic/dnd-kit (@&#8203;dnd-kit/core)</summary>\n\n###\n[`v6.3.1`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/core/CHANGELOG.md#631)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/core@6.3.0...@dnd-kit/core@6.3.1)\n\n##### Patch Changes\n\n-\n[#&#8203;1555](https://redirect.github.com/clauderic/dnd-kit/pull/1555)\n[`62f632a`](https://redirect.github.com/clauderic/dnd-kit/commit/62f632a0c8f06ff020eb90d98770a374c705001d)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! -\nAdded `Tab` to the list of default key codes that end a drag and drop\noperation. Can be customized by passing in a custom list of `keyCodes`\nto the KeyboardSensor options.\n\n###\n[`v6.3.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/core/CHANGELOG.md#630)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/core@6.2.0...@dnd-kit/core@6.3.0)\n\n##### Minor Changes\n\n-\n[#&#8203;1539](https://redirect.github.com/clauderic/dnd-kit/pull/1539)\n[`0c6a28d`](https://redirect.github.com/clauderic/dnd-kit/commit/0c6a28d1b32c72cfbc6e103c9f430a1e8ebe7301)\nThanks [@&#8203;irobot](https://redirect.github.com/irobot)! - Make it\npossible to add visual cues when using activation constraints.\n\n##### Context\n\nActivation constraints are used when we want to prevent accidental\ndragging or when\npointer press can mean more than \"start dragging\".\n\nA typical use case is a button that needs to respond to both \"click\" and\n\"drag\" gestures.\nClicks can be distinguished from drags based on how long the pointer was\nheld pressed.\n\n##### The problem\n\nA control that responds differently to a pointer press based on duration\nor distance can\nbe confusing to use -- the user has to guess how long to keep holding or\nhow far to keep\ndragging until their intent is acknowledged.\n\nImplementing such cues is currently possible by attaching extra event\nlisteners so that\nwe know when a drag is pending. Furthermore, the listener needs to have\naccess to\nthe same constraints that were applied to the sensor initiating the\ndrag. This can be\nmade to work in simple cases, but it becomes error-prone and difficult\nto maintain in\ncomplex scenarios.\n\n##### Solution\n\nThis changeset proposes the addition of two new events: `onDragPending`\nand `onDragAbort`.\n\n##### `onDragPending`\n\nA drag is considered to be pending when the pointer has been pressed and\nthere are\nactivation constraints that need to be satisfied before a drag can\nstart.\n\nThis event is initially fired on pointer press. At this time `offset`\n(see below) will be\n`undefined`.\n\nIt will subsequently be fired every time the pointer is moved. This is\nto enable\nvisual cues for distance-based activation.\n\nThe event's payload contains all the information necessary for providing\nvisual feedback:\n\n```typescript\nexport interface DragPendingEvent {\n id: UniqueIdentifier;\n constraint: PointerActivationConstraint;\n initialCoordinates: Coordinates;\n offset?: Coordinates | undefined;\n}\n```\n\n##### `onDragAbort`\n\nA drag is considered aborted when an activation constraint for a pending\ndrag was violated.\nUseful as a prompt to cancel any visual cue animations currently in\nprogress.\nNote that this event will *not* be fired when dragging ends or is\ncanceled.\n\n###\n[`v6.2.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/core/CHANGELOG.md#620)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/core@6.1.0...@dnd-kit/core@6.2.0)\n\n##### Minor Changes\n\n-\n[#&#8203;1140](https://redirect.github.com/clauderic/dnd-kit/pull/1140)\n[`545a41c`](https://redirect.github.com/clauderic/dnd-kit/commit/545a41c27c6919e4ca22a58a67f3fa02a7caab8a)\nThanks [@&#8203;anilanar](https://redirect.github.com/anilanar)! - Add\n`activatorEvent` to `DragStartEvent`\n\n##### Patch Changes\n\n-\n[#&#8203;1494](https://redirect.github.com/clauderic/dnd-kit/pull/1494)\n[`00ec286`](https://redirect.github.com/clauderic/dnd-kit/commit/00ec286ab2fc7969549a4b19ffd42a09b5171dbe)\nThanks\n[@&#8203;dinkinflickaa](https://redirect.github.com/dinkinflickaa)! -\nImproves performance by eliminating wasteful re-renders on every child\nitem on click\n\n-\n[#&#8203;1400](https://redirect.github.com/clauderic/dnd-kit/pull/1400)\n[`995dc23`](https://redirect.github.com/clauderic/dnd-kit/commit/995dc23b7cd9019f3a920676cbe4e141e917e82c)\nThanks [@&#8203;12joan](https://redirect.github.com/12joan)! - Export\n`defaultKeyboardCoordinateGetter`\n\n-\n[#&#8203;1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! - Fix\nbug with draggable and sortable elements with an `id` equal to `0`.\n\n-\n[#&#8203;1541](https://redirect.github.com/clauderic/dnd-kit/pull/1541)\n[`99643f6`](https://redirect.github.com/clauderic/dnd-kit/commit/99643f634cd55fa0bf0898365883507b28637659)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! -\nHandle `touchcancel` and `pointercancel` events.\n\n-\n[#&#8203;1435](https://redirect.github.com/clauderic/dnd-kit/pull/1435)\n[`6bbe39b`](https://redirect.github.com/clauderic/dnd-kit/commit/6bbe39bba6ad9afd0bc6db1c345ad4e6b58f5e5e)\nThanks\n[@&#8203;knaveenkumar3576](https://redirect.github.com/knaveenkumar3576)!\n- Faster Paint with delayed flush of Effects\n\n-\n[#&#8203;1543](https://redirect.github.com/clauderic/dnd-kit/pull/1543)\n[`bcaf7c4`](https://redirect.github.com/clauderic/dnd-kit/commit/bcaf7c4e57b34dfc8ff9c4eea7a01c6e525e7874)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! - Fix\na bug with auto-scroller continuing to observe stale elements, causing\nthem to be considered as scrollable.\n\n- Updated dependencies\n\\[[`93602df`](https://redirect.github.com/clauderic/dnd-kit/commit/93602df08498b28749e8146e0f6143ab987bc178)]:\n-\n[@&#8203;dnd-kit/accessibility](https://redirect.github.com/dnd-kit/accessibility)[@&#8203;3](https://redirect.github.com/3).1.1\n\n</details>\n\n<details>\n<summary>clauderic/dnd-kit (@&#8203;dnd-kit/sortable)</summary>\n\n###\n[`v10.0.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/sortable/CHANGELOG.md#1000)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/sortable@9.0.0...@dnd-kit/sortable@10.0.0)\n\n##### Patch Changes\n\n- Updated dependencies\n\\[[`0c6a28d`](https://redirect.github.com/clauderic/dnd-kit/commit/0c6a28d1b32c72cfbc6e103c9f430a1e8ebe7301)]:\n-\n[@&#8203;dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@&#8203;6](https://redirect.github.com/6).3.0\n\n###\n[`v9.0.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/sortable/CHANGELOG.md#900)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/sortable@8.0.0...@dnd-kit/sortable@9.0.0)\n\n##### Patch Changes\n\n-\n[#&#8203;1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! - Fix\nbug with draggable and sortable elements with an `id` equal to `0`.\n\n- Updated dependencies\n\\[[`00ec286`](https://redirect.github.com/clauderic/dnd-kit/commit/00ec286ab2fc7969549a4b19ffd42a09b5171dbe),\n[`995dc23`](https://redirect.github.com/clauderic/dnd-kit/commit/995dc23b7cd9019f3a920676cbe4e141e917e82c),\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc),\n[`99643f6`](https://redirect.github.com/clauderic/dnd-kit/commit/99643f634cd55fa0bf0898365883507b28637659),\n[`6bbe39b`](https://redirect.github.com/clauderic/dnd-kit/commit/6bbe39bba6ad9afd0bc6db1c345ad4e6b58f5e5e),\n[`545a41c`](https://redirect.github.com/clauderic/dnd-kit/commit/545a41c27c6919e4ca22a58a67f3fa02a7caab8a),\n[`bcaf7c4`](https://redirect.github.com/clauderic/dnd-kit/commit/bcaf7c4e57b34dfc8ff9c4eea7a01c6e525e7874)]:\n-\n[@&#8203;dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@&#8203;6](https://redirect.github.com/6).2.0\n\n</details>\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - At any time (no schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the\nrebase/retry checkbox.\n\n👻 **Immortal**: This PR will be recreated if closed unmerged. Get\n[config help](https://elastic.slack.com/archives/C07AMD4CNUR) if that's\nundesired.\n\n---\n\n- [ ] If you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has been generated by [Renovate\nBot](https://redirect.github.com/renovatebot/renovate).\n\n\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>","sha":"bd0cc5445e7efea424d33f687c071f185c3dea98","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","release_note:skip","backport:all-open","v9.2.0"],"title":"Update dnd-kit (main)","number":235569,"url":"https://github.com/elastic/kibana/pull/235569","mergeCommit":{"message":"Update dnd-kit (main) (#235569)\n\nThis PR contains the following updates:\n\n| Package | Type | Update | Change |\n|---|---|---|---|\n| [@dnd-kit/core](https://redirect.github.com/clauderic/dnd-kit)\n([source](https://redirect.github.com/clauderic/dnd-kit/tree/HEAD/packages/core))\n| dependencies | minor | [`^6.1.0` ->\n`^6.3.1`](https://renovatebot.com/diffs/npm/@dnd-kit%2fcore/6.1.0/6.3.1)\n|\n| [@dnd-kit/sortable](https://redirect.github.com/clauderic/dnd-kit)\n([source](https://redirect.github.com/clauderic/dnd-kit/tree/HEAD/packages/sortable))\n| dependencies | major | [`^8.0.0` ->\n`^10.0.0`](https://renovatebot.com/diffs/npm/@dnd-kit%2fsortable/8.0.0/10.0.0)\n|\n\n---\n\n### Release Notes\n\n<details>\n<summary>clauderic/dnd-kit (@&#8203;dnd-kit/core)</summary>\n\n###\n[`v6.3.1`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/core/CHANGELOG.md#631)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/core@6.3.0...@dnd-kit/core@6.3.1)\n\n##### Patch Changes\n\n-\n[#&#8203;1555](https://redirect.github.com/clauderic/dnd-kit/pull/1555)\n[`62f632a`](https://redirect.github.com/clauderic/dnd-kit/commit/62f632a0c8f06ff020eb90d98770a374c705001d)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! -\nAdded `Tab` to the list of default key codes that end a drag and drop\noperation. Can be customized by passing in a custom list of `keyCodes`\nto the KeyboardSensor options.\n\n###\n[`v6.3.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/core/CHANGELOG.md#630)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/core@6.2.0...@dnd-kit/core@6.3.0)\n\n##### Minor Changes\n\n-\n[#&#8203;1539](https://redirect.github.com/clauderic/dnd-kit/pull/1539)\n[`0c6a28d`](https://redirect.github.com/clauderic/dnd-kit/commit/0c6a28d1b32c72cfbc6e103c9f430a1e8ebe7301)\nThanks [@&#8203;irobot](https://redirect.github.com/irobot)! - Make it\npossible to add visual cues when using activation constraints.\n\n##### Context\n\nActivation constraints are used when we want to prevent accidental\ndragging or when\npointer press can mean more than \"start dragging\".\n\nA typical use case is a button that needs to respond to both \"click\" and\n\"drag\" gestures.\nClicks can be distinguished from drags based on how long the pointer was\nheld pressed.\n\n##### The problem\n\nA control that responds differently to a pointer press based on duration\nor distance can\nbe confusing to use -- the user has to guess how long to keep holding or\nhow far to keep\ndragging until their intent is acknowledged.\n\nImplementing such cues is currently possible by attaching extra event\nlisteners so that\nwe know when a drag is pending. Furthermore, the listener needs to have\naccess to\nthe same constraints that were applied to the sensor initiating the\ndrag. This can be\nmade to work in simple cases, but it becomes error-prone and difficult\nto maintain in\ncomplex scenarios.\n\n##### Solution\n\nThis changeset proposes the addition of two new events: `onDragPending`\nand `onDragAbort`.\n\n##### `onDragPending`\n\nA drag is considered to be pending when the pointer has been pressed and\nthere are\nactivation constraints that need to be satisfied before a drag can\nstart.\n\nThis event is initially fired on pointer press. At this time `offset`\n(see below) will be\n`undefined`.\n\nIt will subsequently be fired every time the pointer is moved. This is\nto enable\nvisual cues for distance-based activation.\n\nThe event's payload contains all the information necessary for providing\nvisual feedback:\n\n```typescript\nexport interface DragPendingEvent {\n id: UniqueIdentifier;\n constraint: PointerActivationConstraint;\n initialCoordinates: Coordinates;\n offset?: Coordinates | undefined;\n}\n```\n\n##### `onDragAbort`\n\nA drag is considered aborted when an activation constraint for a pending\ndrag was violated.\nUseful as a prompt to cancel any visual cue animations currently in\nprogress.\nNote that this event will *not* be fired when dragging ends or is\ncanceled.\n\n###\n[`v6.2.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/core/CHANGELOG.md#620)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/core@6.1.0...@dnd-kit/core@6.2.0)\n\n##### Minor Changes\n\n-\n[#&#8203;1140](https://redirect.github.com/clauderic/dnd-kit/pull/1140)\n[`545a41c`](https://redirect.github.com/clauderic/dnd-kit/commit/545a41c27c6919e4ca22a58a67f3fa02a7caab8a)\nThanks [@&#8203;anilanar](https://redirect.github.com/anilanar)! - Add\n`activatorEvent` to `DragStartEvent`\n\n##### Patch Changes\n\n-\n[#&#8203;1494](https://redirect.github.com/clauderic/dnd-kit/pull/1494)\n[`00ec286`](https://redirect.github.com/clauderic/dnd-kit/commit/00ec286ab2fc7969549a4b19ffd42a09b5171dbe)\nThanks\n[@&#8203;dinkinflickaa](https://redirect.github.com/dinkinflickaa)! -\nImproves performance by eliminating wasteful re-renders on every child\nitem on click\n\n-\n[#&#8203;1400](https://redirect.github.com/clauderic/dnd-kit/pull/1400)\n[`995dc23`](https://redirect.github.com/clauderic/dnd-kit/commit/995dc23b7cd9019f3a920676cbe4e141e917e82c)\nThanks [@&#8203;12joan](https://redirect.github.com/12joan)! - Export\n`defaultKeyboardCoordinateGetter`\n\n-\n[#&#8203;1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! - Fix\nbug with draggable and sortable elements with an `id` equal to `0`.\n\n-\n[#&#8203;1541](https://redirect.github.com/clauderic/dnd-kit/pull/1541)\n[`99643f6`](https://redirect.github.com/clauderic/dnd-kit/commit/99643f634cd55fa0bf0898365883507b28637659)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! -\nHandle `touchcancel` and `pointercancel` events.\n\n-\n[#&#8203;1435](https://redirect.github.com/clauderic/dnd-kit/pull/1435)\n[`6bbe39b`](https://redirect.github.com/clauderic/dnd-kit/commit/6bbe39bba6ad9afd0bc6db1c345ad4e6b58f5e5e)\nThanks\n[@&#8203;knaveenkumar3576](https://redirect.github.com/knaveenkumar3576)!\n- Faster Paint with delayed flush of Effects\n\n-\n[#&#8203;1543](https://redirect.github.com/clauderic/dnd-kit/pull/1543)\n[`bcaf7c4`](https://redirect.github.com/clauderic/dnd-kit/commit/bcaf7c4e57b34dfc8ff9c4eea7a01c6e525e7874)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! - Fix\na bug with auto-scroller continuing to observe stale elements, causing\nthem to be considered as scrollable.\n\n- Updated dependencies\n\\[[`93602df`](https://redirect.github.com/clauderic/dnd-kit/commit/93602df08498b28749e8146e0f6143ab987bc178)]:\n-\n[@&#8203;dnd-kit/accessibility](https://redirect.github.com/dnd-kit/accessibility)[@&#8203;3](https://redirect.github.com/3).1.1\n\n</details>\n\n<details>\n<summary>clauderic/dnd-kit (@&#8203;dnd-kit/sortable)</summary>\n\n###\n[`v10.0.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/sortable/CHANGELOG.md#1000)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/sortable@9.0.0...@dnd-kit/sortable@10.0.0)\n\n##### Patch Changes\n\n- Updated dependencies\n\\[[`0c6a28d`](https://redirect.github.com/clauderic/dnd-kit/commit/0c6a28d1b32c72cfbc6e103c9f430a1e8ebe7301)]:\n-\n[@&#8203;dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@&#8203;6](https://redirect.github.com/6).3.0\n\n###\n[`v9.0.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/sortable/CHANGELOG.md#900)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/sortable@8.0.0...@dnd-kit/sortable@9.0.0)\n\n##### Patch Changes\n\n-\n[#&#8203;1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! - Fix\nbug with draggable and sortable elements with an `id` equal to `0`.\n\n- Updated dependencies\n\\[[`00ec286`](https://redirect.github.com/clauderic/dnd-kit/commit/00ec286ab2fc7969549a4b19ffd42a09b5171dbe),\n[`995dc23`](https://redirect.github.com/clauderic/dnd-kit/commit/995dc23b7cd9019f3a920676cbe4e141e917e82c),\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc),\n[`99643f6`](https://redirect.github.com/clauderic/dnd-kit/commit/99643f634cd55fa0bf0898365883507b28637659),\n[`6bbe39b`](https://redirect.github.com/clauderic/dnd-kit/commit/6bbe39bba6ad9afd0bc6db1c345ad4e6b58f5e5e),\n[`545a41c`](https://redirect.github.com/clauderic/dnd-kit/commit/545a41c27c6919e4ca22a58a67f3fa02a7caab8a),\n[`bcaf7c4`](https://redirect.github.com/clauderic/dnd-kit/commit/bcaf7c4e57b34dfc8ff9c4eea7a01c6e525e7874)]:\n-\n[@&#8203;dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@&#8203;6](https://redirect.github.com/6).2.0\n\n</details>\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - At any time (no schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the\nrebase/retry checkbox.\n\n👻 **Immortal**: This PR will be recreated if closed unmerged. Get\n[config help](https://elastic.slack.com/archives/C07AMD4CNUR) if that's\nundesired.\n\n---\n\n- [ ] If you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has been generated by [Renovate\nBot](https://redirect.github.com/renovatebot/renovate).\n\n\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>","sha":"bd0cc5445e7efea424d33f687c071f185c3dea98"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235569","number":235569,"mergeCommit":{"message":"Update dnd-kit (main) (#235569)\n\nThis PR contains the following updates:\n\n| Package | Type | Update | Change |\n|---|---|---|---|\n| [@dnd-kit/core](https://redirect.github.com/clauderic/dnd-kit)\n([source](https://redirect.github.com/clauderic/dnd-kit/tree/HEAD/packages/core))\n| dependencies | minor | [`^6.1.0` ->\n`^6.3.1`](https://renovatebot.com/diffs/npm/@dnd-kit%2fcore/6.1.0/6.3.1)\n|\n| [@dnd-kit/sortable](https://redirect.github.com/clauderic/dnd-kit)\n([source](https://redirect.github.com/clauderic/dnd-kit/tree/HEAD/packages/sortable))\n| dependencies | major | [`^8.0.0` ->\n`^10.0.0`](https://renovatebot.com/diffs/npm/@dnd-kit%2fsortable/8.0.0/10.0.0)\n|\n\n---\n\n### Release Notes\n\n<details>\n<summary>clauderic/dnd-kit (@&#8203;dnd-kit/core)</summary>\n\n###\n[`v6.3.1`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/core/CHANGELOG.md#631)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/core@6.3.0...@dnd-kit/core@6.3.1)\n\n##### Patch Changes\n\n-\n[#&#8203;1555](https://redirect.github.com/clauderic/dnd-kit/pull/1555)\n[`62f632a`](https://redirect.github.com/clauderic/dnd-kit/commit/62f632a0c8f06ff020eb90d98770a374c705001d)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! -\nAdded `Tab` to the list of default key codes that end a drag and drop\noperation. Can be customized by passing in a custom list of `keyCodes`\nto the KeyboardSensor options.\n\n###\n[`v6.3.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/core/CHANGELOG.md#630)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/core@6.2.0...@dnd-kit/core@6.3.0)\n\n##### Minor Changes\n\n-\n[#&#8203;1539](https://redirect.github.com/clauderic/dnd-kit/pull/1539)\n[`0c6a28d`](https://redirect.github.com/clauderic/dnd-kit/commit/0c6a28d1b32c72cfbc6e103c9f430a1e8ebe7301)\nThanks [@&#8203;irobot](https://redirect.github.com/irobot)! - Make it\npossible to add visual cues when using activation constraints.\n\n##### Context\n\nActivation constraints are used when we want to prevent accidental\ndragging or when\npointer press can mean more than \"start dragging\".\n\nA typical use case is a button that needs to respond to both \"click\" and\n\"drag\" gestures.\nClicks can be distinguished from drags based on how long the pointer was\nheld pressed.\n\n##### The problem\n\nA control that responds differently to a pointer press based on duration\nor distance can\nbe confusing to use -- the user has to guess how long to keep holding or\nhow far to keep\ndragging until their intent is acknowledged.\n\nImplementing such cues is currently possible by attaching extra event\nlisteners so that\nwe know when a drag is pending. Furthermore, the listener needs to have\naccess to\nthe same constraints that were applied to the sensor initiating the\ndrag. This can be\nmade to work in simple cases, but it becomes error-prone and difficult\nto maintain in\ncomplex scenarios.\n\n##### Solution\n\nThis changeset proposes the addition of two new events: `onDragPending`\nand `onDragAbort`.\n\n##### `onDragPending`\n\nA drag is considered to be pending when the pointer has been pressed and\nthere are\nactivation constraints that need to be satisfied before a drag can\nstart.\n\nThis event is initially fired on pointer press. At this time `offset`\n(see below) will be\n`undefined`.\n\nIt will subsequently be fired every time the pointer is moved. This is\nto enable\nvisual cues for distance-based activation.\n\nThe event's payload contains all the information necessary for providing\nvisual feedback:\n\n```typescript\nexport interface DragPendingEvent {\n id: UniqueIdentifier;\n constraint: PointerActivationConstraint;\n initialCoordinates: Coordinates;\n offset?: Coordinates | undefined;\n}\n```\n\n##### `onDragAbort`\n\nA drag is considered aborted when an activation constraint for a pending\ndrag was violated.\nUseful as a prompt to cancel any visual cue animations currently in\nprogress.\nNote that this event will *not* be fired when dragging ends or is\ncanceled.\n\n###\n[`v6.2.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/core/CHANGELOG.md#620)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/core@6.1.0...@dnd-kit/core@6.2.0)\n\n##### Minor Changes\n\n-\n[#&#8203;1140](https://redirect.github.com/clauderic/dnd-kit/pull/1140)\n[`545a41c`](https://redirect.github.com/clauderic/dnd-kit/commit/545a41c27c6919e4ca22a58a67f3fa02a7caab8a)\nThanks [@&#8203;anilanar](https://redirect.github.com/anilanar)! - Add\n`activatorEvent` to `DragStartEvent`\n\n##### Patch Changes\n\n-\n[#&#8203;1494](https://redirect.github.com/clauderic/dnd-kit/pull/1494)\n[`00ec286`](https://redirect.github.com/clauderic/dnd-kit/commit/00ec286ab2fc7969549a4b19ffd42a09b5171dbe)\nThanks\n[@&#8203;dinkinflickaa](https://redirect.github.com/dinkinflickaa)! -\nImproves performance by eliminating wasteful re-renders on every child\nitem on click\n\n-\n[#&#8203;1400](https://redirect.github.com/clauderic/dnd-kit/pull/1400)\n[`995dc23`](https://redirect.github.com/clauderic/dnd-kit/commit/995dc23b7cd9019f3a920676cbe4e141e917e82c)\nThanks [@&#8203;12joan](https://redirect.github.com/12joan)! - Export\n`defaultKeyboardCoordinateGetter`\n\n-\n[#&#8203;1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! - Fix\nbug with draggable and sortable elements with an `id` equal to `0`.\n\n-\n[#&#8203;1541](https://redirect.github.com/clauderic/dnd-kit/pull/1541)\n[`99643f6`](https://redirect.github.com/clauderic/dnd-kit/commit/99643f634cd55fa0bf0898365883507b28637659)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! -\nHandle `touchcancel` and `pointercancel` events.\n\n-\n[#&#8203;1435](https://redirect.github.com/clauderic/dnd-kit/pull/1435)\n[`6bbe39b`](https://redirect.github.com/clauderic/dnd-kit/commit/6bbe39bba6ad9afd0bc6db1c345ad4e6b58f5e5e)\nThanks\n[@&#8203;knaveenkumar3576](https://redirect.github.com/knaveenkumar3576)!\n- Faster Paint with delayed flush of Effects\n\n-\n[#&#8203;1543](https://redirect.github.com/clauderic/dnd-kit/pull/1543)\n[`bcaf7c4`](https://redirect.github.com/clauderic/dnd-kit/commit/bcaf7c4e57b34dfc8ff9c4eea7a01c6e525e7874)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! - Fix\na bug with auto-scroller continuing to observe stale elements, causing\nthem to be considered as scrollable.\n\n- Updated dependencies\n\\[[`93602df`](https://redirect.github.com/clauderic/dnd-kit/commit/93602df08498b28749e8146e0f6143ab987bc178)]:\n-\n[@&#8203;dnd-kit/accessibility](https://redirect.github.com/dnd-kit/accessibility)[@&#8203;3](https://redirect.github.com/3).1.1\n\n</details>\n\n<details>\n<summary>clauderic/dnd-kit (@&#8203;dnd-kit/sortable)</summary>\n\n###\n[`v10.0.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/sortable/CHANGELOG.md#1000)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/sortable@9.0.0...@dnd-kit/sortable@10.0.0)\n\n##### Patch Changes\n\n- Updated dependencies\n\\[[`0c6a28d`](https://redirect.github.com/clauderic/dnd-kit/commit/0c6a28d1b32c72cfbc6e103c9f430a1e8ebe7301)]:\n-\n[@&#8203;dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@&#8203;6](https://redirect.github.com/6).3.0\n\n###\n[`v9.0.0`](https://redirect.github.com/clauderic/dnd-kit/blob/HEAD/packages/sortable/CHANGELOG.md#900)\n\n[Compare\nSource](https://redirect.github.com/clauderic/dnd-kit/compare/@dnd-kit/sortable@8.0.0...@dnd-kit/sortable@9.0.0)\n\n##### Patch Changes\n\n-\n[#&#8203;1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks [@&#8203;clauderic](https://redirect.github.com/clauderic)! - Fix\nbug with draggable and sortable elements with an `id` equal to `0`.\n\n- Updated dependencies\n\\[[`00ec286`](https://redirect.github.com/clauderic/dnd-kit/commit/00ec286ab2fc7969549a4b19ffd42a09b5171dbe),\n[`995dc23`](https://redirect.github.com/clauderic/dnd-kit/commit/995dc23b7cd9019f3a920676cbe4e141e917e82c),\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc),\n[`99643f6`](https://redirect.github.com/clauderic/dnd-kit/commit/99643f634cd55fa0bf0898365883507b28637659),\n[`6bbe39b`](https://redirect.github.com/clauderic/dnd-kit/commit/6bbe39bba6ad9afd0bc6db1c345ad4e6b58f5e5e),\n[`545a41c`](https://redirect.github.com/clauderic/dnd-kit/commit/545a41c27c6919e4ca22a58a67f3fa02a7caab8a),\n[`bcaf7c4`](https://redirect.github.com/clauderic/dnd-kit/commit/bcaf7c4e57b34dfc8ff9c4eea7a01c6e525e7874)]:\n-\n[@&#8203;dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@&#8203;6](https://redirect.github.com/6).2.0\n\n</details>\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - At any time (no schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the\nrebase/retry checkbox.\n\n👻 **Immortal**: This PR will be recreated if closed unmerged. Get\n[config help](https://elastic.slack.com/archives/C07AMD4CNUR) if that's\nundesired.\n\n---\n\n- [ ] If you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has been generated by [Renovate\nBot](https://redirect.github.com/renovatebot/renovate).\n\n\n\nCo-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>","sha":"bd0cc5445e7efea424d33f687c071f185c3dea98"}}]}] BACKPORT--> Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com> Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>
1 parent 146572b commit dece775

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@
108108
"@aws-sdk/client-bedrock-runtime": "^3.744.0",
109109
"@babel/runtime": "^7.24.7",
110110
"@dagrejs/dagre": "^1.1.5",
111-
"@dnd-kit/core": "^6.1.0",
112-
"@dnd-kit/sortable": "^8.0.0",
111+
"@dnd-kit/core": "^6.3.1",
112+
"@dnd-kit/sortable": "^10.0.0",
113113
"@dnd-kit/utilities": "^3.2.2",
114114
"@elastic/apm-rum": "^5.17.0",
115115
"@elastic/apm-rum-core": "^5.23.0",

yarn.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,26 +1983,26 @@
19831983
resolved "https://registry.yarnpkg.com/@discoveryjs/natural-compare/-/natural-compare-1.1.0.tgz#75f0642ad64701ffa9d42f1d7ada3b83f4e67cf3"
19841984
integrity sha512-yuctPJs5lRXoI8LkpVZGAV6n+DKOuEsfpfcIDQ8ZjWHwazqk1QjBc4jMlof0UlZHyUqv4dwsOTooMiAmtzvwXA==
19851985

1986-
"@dnd-kit/accessibility@^3.1.0":
1987-
version "3.1.0"
1988-
resolved "https://registry.yarnpkg.com/@dnd-kit/accessibility/-/accessibility-3.1.0.tgz#1054e19be276b5f1154ced7947fc0cb5d99192e0"
1989-
integrity sha512-ea7IkhKvlJUv9iSHJOnxinBcoOI3ppGnnL+VDJ75O45Nss6HtZd8IdN8touXPDtASfeI2T2LImb8VOZcL47wjQ==
1986+
"@dnd-kit/accessibility@^3.1.1":
1987+
version "3.1.1"
1988+
resolved "https://registry.yarnpkg.com/@dnd-kit/accessibility/-/accessibility-3.1.1.tgz#3b4202bd6bb370a0730f6734867785919beac6af"
1989+
integrity sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw==
19901990
dependencies:
19911991
tslib "^2.0.0"
19921992

1993-
"@dnd-kit/core@^6.1.0":
1994-
version "6.1.0"
1995-
resolved "https://registry.yarnpkg.com/@dnd-kit/core/-/core-6.1.0.tgz#e81a3d10d9eca5d3b01cbf054171273a3fe01def"
1996-
integrity sha512-J3cQBClB4TVxwGo3KEjssGEXNJqGVWx17aRTZ1ob0FliR5IjYgTxl5YJbKTzA6IzrtelotH19v6y7uoIRUZPSg==
1993+
"@dnd-kit/core@^6.3.1":
1994+
version "6.3.1"
1995+
resolved "https://registry.yarnpkg.com/@dnd-kit/core/-/core-6.3.1.tgz#4c36406a62c7baac499726f899935f93f0e6d003"
1996+
integrity sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==
19971997
dependencies:
1998-
"@dnd-kit/accessibility" "^3.1.0"
1998+
"@dnd-kit/accessibility" "^3.1.1"
19991999
"@dnd-kit/utilities" "^3.2.2"
20002000
tslib "^2.0.0"
20012001

2002-
"@dnd-kit/sortable@^8.0.0":
2003-
version "8.0.0"
2004-
resolved "https://registry.yarnpkg.com/@dnd-kit/sortable/-/sortable-8.0.0.tgz#086b7ac6723d4618a4ccb6f0227406d8a8862a96"
2005-
integrity sha512-U3jk5ebVXe1Lr7c2wU7SBZjcWdQP+j7peHJfCspnA81enlu88Mgd7CC8Q+pub9ubP7eKVETzJW+IBAhsqbSu/g==
2002+
"@dnd-kit/sortable@^10.0.0":
2003+
version "10.0.0"
2004+
resolved "https://registry.yarnpkg.com/@dnd-kit/sortable/-/sortable-10.0.0.tgz#1f9382b90d835cd5c65d92824fa9dafb78c4c3e8"
2005+
integrity sha512-+xqhmIIzvAYMGfBYYnbKuNicfSsk4RksY2XdmJhT+HAC01nix6fHCztU68jooFiMUB01Ky3F0FyOvhG/BZrWkg==
20062006
dependencies:
20072007
"@dnd-kit/utilities" "^3.2.2"
20082008
tslib "^2.0.0"

0 commit comments

Comments
 (0)