-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit dece775
# 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
(@​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[#​1555](https://redirect.github.com/clauderic/dnd-kit/pull/1555)\n[`62f632a`](https://redirect.github.com/clauderic/dnd-kit/commit/62f632a0c8f06ff020eb90d98770a374c705001d)\nThanks
[@​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[#​1539](https://redirect.github.com/clauderic/dnd-kit/pull/1539)\n[`0c6a28d`](https://redirect.github.com/clauderic/dnd-kit/commit/0c6a28d1b32c72cfbc6e103c9f430a1e8ebe7301)\nThanks
[@​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[#​1140](https://redirect.github.com/clauderic/dnd-kit/pull/1140)\n[`545a41c`](https://redirect.github.com/clauderic/dnd-kit/commit/545a41c27c6919e4ca22a58a67f3fa02a7caab8a)\nThanks
[@​anilanar](https://redirect.github.com/anilanar)! -
Add\n`activatorEvent` to `DragStartEvent`\n\n##### Patch
Changes\n\n-\n[#​1494](https://redirect.github.com/clauderic/dnd-kit/pull/1494)\n[`00ec286`](https://redirect.github.com/clauderic/dnd-kit/commit/00ec286ab2fc7969549a4b19ffd42a09b5171dbe)\nThanks\n[@​dinkinflickaa](https://redirect.github.com/dinkinflickaa)!
-\nImproves performance by eliminating wasteful re-renders on every
child\nitem on
click\n\n-\n[#​1400](https://redirect.github.com/clauderic/dnd-kit/pull/1400)\n[`995dc23`](https://redirect.github.com/clauderic/dnd-kit/commit/995dc23b7cd9019f3a920676cbe4e141e917e82c)\nThanks
[@​12joan](https://redirect.github.com/12joan)! -
Export\n`defaultKeyboardCoordinateGetter`\n\n-\n[#​1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks
[@​clauderic](https://redirect.github.com/clauderic)! - Fix\nbug
with draggable and sortable elements with an `id` equal to
`0`.\n\n-\n[#​1541](https://redirect.github.com/clauderic/dnd-kit/pull/1541)\n[`99643f6`](https://redirect.github.com/clauderic/dnd-kit/commit/99643f634cd55fa0bf0898365883507b28637659)\nThanks
[@​clauderic](https://redirect.github.com/clauderic)! -\nHandle
`touchcancel` and `pointercancel`
events.\n\n-\n[#​1435](https://redirect.github.com/clauderic/dnd-kit/pull/1435)\n[`6bbe39b`](https://redirect.github.com/clauderic/dnd-kit/commit/6bbe39bba6ad9afd0bc6db1c345ad4e6b58f5e5e)\nThanks\n[@​knaveenkumar3576](https://redirect.github.com/knaveenkumar3576)!\n-
Faster Paint with delayed flush of
Effects\n\n-\n[#​1543](https://redirect.github.com/clauderic/dnd-kit/pull/1543)\n[`bcaf7c4`](https://redirect.github.com/clauderic/dnd-kit/commit/bcaf7c4e57b34dfc8ff9c4eea7a01c6e525e7874)\nThanks
[@​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[@​dnd-kit/accessibility](https://redirect.github.com/dnd-kit/accessibility)[@​3](https://redirect.github.com/3).1.1\n\n</details>\n\n<details>\n<summary>clauderic/dnd-kit
(@​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[@​dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@​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[#​1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks
[@​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[@​dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@​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
(@​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[#​1555](https://redirect.github.com/clauderic/dnd-kit/pull/1555)\n[`62f632a`](https://redirect.github.com/clauderic/dnd-kit/commit/62f632a0c8f06ff020eb90d98770a374c705001d)\nThanks
[@​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[#​1539](https://redirect.github.com/clauderic/dnd-kit/pull/1539)\n[`0c6a28d`](https://redirect.github.com/clauderic/dnd-kit/commit/0c6a28d1b32c72cfbc6e103c9f430a1e8ebe7301)\nThanks
[@​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[#​1140](https://redirect.github.com/clauderic/dnd-kit/pull/1140)\n[`545a41c`](https://redirect.github.com/clauderic/dnd-kit/commit/545a41c27c6919e4ca22a58a67f3fa02a7caab8a)\nThanks
[@​anilanar](https://redirect.github.com/anilanar)! -
Add\n`activatorEvent` to `DragStartEvent`\n\n##### Patch
Changes\n\n-\n[#​1494](https://redirect.github.com/clauderic/dnd-kit/pull/1494)\n[`00ec286`](https://redirect.github.com/clauderic/dnd-kit/commit/00ec286ab2fc7969549a4b19ffd42a09b5171dbe)\nThanks\n[@​dinkinflickaa](https://redirect.github.com/dinkinflickaa)!
-\nImproves performance by eliminating wasteful re-renders on every
child\nitem on
click\n\n-\n[#​1400](https://redirect.github.com/clauderic/dnd-kit/pull/1400)\n[`995dc23`](https://redirect.github.com/clauderic/dnd-kit/commit/995dc23b7cd9019f3a920676cbe4e141e917e82c)\nThanks
[@​12joan](https://redirect.github.com/12joan)! -
Export\n`defaultKeyboardCoordinateGetter`\n\n-\n[#​1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks
[@​clauderic](https://redirect.github.com/clauderic)! - Fix\nbug
with draggable and sortable elements with an `id` equal to
`0`.\n\n-\n[#​1541](https://redirect.github.com/clauderic/dnd-kit/pull/1541)\n[`99643f6`](https://redirect.github.com/clauderic/dnd-kit/commit/99643f634cd55fa0bf0898365883507b28637659)\nThanks
[@​clauderic](https://redirect.github.com/clauderic)! -\nHandle
`touchcancel` and `pointercancel`
events.\n\n-\n[#​1435](https://redirect.github.com/clauderic/dnd-kit/pull/1435)\n[`6bbe39b`](https://redirect.github.com/clauderic/dnd-kit/commit/6bbe39bba6ad9afd0bc6db1c345ad4e6b58f5e5e)\nThanks\n[@​knaveenkumar3576](https://redirect.github.com/knaveenkumar3576)!\n-
Faster Paint with delayed flush of
Effects\n\n-\n[#​1543](https://redirect.github.com/clauderic/dnd-kit/pull/1543)\n[`bcaf7c4`](https://redirect.github.com/clauderic/dnd-kit/commit/bcaf7c4e57b34dfc8ff9c4eea7a01c6e525e7874)\nThanks
[@​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[@​dnd-kit/accessibility](https://redirect.github.com/dnd-kit/accessibility)[@​3](https://redirect.github.com/3).1.1\n\n</details>\n\n<details>\n<summary>clauderic/dnd-kit
(@​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[@​dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@​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[#​1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks
[@​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[@​dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@​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
(@​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[#​1555](https://redirect.github.com/clauderic/dnd-kit/pull/1555)\n[`62f632a`](https://redirect.github.com/clauderic/dnd-kit/commit/62f632a0c8f06ff020eb90d98770a374c705001d)\nThanks
[@​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[#​1539](https://redirect.github.com/clauderic/dnd-kit/pull/1539)\n[`0c6a28d`](https://redirect.github.com/clauderic/dnd-kit/commit/0c6a28d1b32c72cfbc6e103c9f430a1e8ebe7301)\nThanks
[@​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[#​1140](https://redirect.github.com/clauderic/dnd-kit/pull/1140)\n[`545a41c`](https://redirect.github.com/clauderic/dnd-kit/commit/545a41c27c6919e4ca22a58a67f3fa02a7caab8a)\nThanks
[@​anilanar](https://redirect.github.com/anilanar)! -
Add\n`activatorEvent` to `DragStartEvent`\n\n##### Patch
Changes\n\n-\n[#​1494](https://redirect.github.com/clauderic/dnd-kit/pull/1494)\n[`00ec286`](https://redirect.github.com/clauderic/dnd-kit/commit/00ec286ab2fc7969549a4b19ffd42a09b5171dbe)\nThanks\n[@​dinkinflickaa](https://redirect.github.com/dinkinflickaa)!
-\nImproves performance by eliminating wasteful re-renders on every
child\nitem on
click\n\n-\n[#​1400](https://redirect.github.com/clauderic/dnd-kit/pull/1400)\n[`995dc23`](https://redirect.github.com/clauderic/dnd-kit/commit/995dc23b7cd9019f3a920676cbe4e141e917e82c)\nThanks
[@​12joan](https://redirect.github.com/12joan)! -
Export\n`defaultKeyboardCoordinateGetter`\n\n-\n[#​1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks
[@​clauderic](https://redirect.github.com/clauderic)! - Fix\nbug
with draggable and sortable elements with an `id` equal to
`0`.\n\n-\n[#​1541](https://redirect.github.com/clauderic/dnd-kit/pull/1541)\n[`99643f6`](https://redirect.github.com/clauderic/dnd-kit/commit/99643f634cd55fa0bf0898365883507b28637659)\nThanks
[@​clauderic](https://redirect.github.com/clauderic)! -\nHandle
`touchcancel` and `pointercancel`
events.\n\n-\n[#​1435](https://redirect.github.com/clauderic/dnd-kit/pull/1435)\n[`6bbe39b`](https://redirect.github.com/clauderic/dnd-kit/commit/6bbe39bba6ad9afd0bc6db1c345ad4e6b58f5e5e)\nThanks\n[@​knaveenkumar3576](https://redirect.github.com/knaveenkumar3576)!\n-
Faster Paint with delayed flush of
Effects\n\n-\n[#​1543](https://redirect.github.com/clauderic/dnd-kit/pull/1543)\n[`bcaf7c4`](https://redirect.github.com/clauderic/dnd-kit/commit/bcaf7c4e57b34dfc8ff9c4eea7a01c6e525e7874)\nThanks
[@​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[@​dnd-kit/accessibility](https://redirect.github.com/dnd-kit/accessibility)[@​3](https://redirect.github.com/3).1.1\n\n</details>\n\n<details>\n<summary>clauderic/dnd-kit
(@​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[@​dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@​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[#​1542](https://redirect.github.com/clauderic/dnd-kit/pull/1542)\n[`f629ec6`](https://redirect.github.com/clauderic/dnd-kit/commit/f629ec6a9c3c25b749561fac31741046d96c28dc)\nThanks
[@​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[@​dnd-kit/core](https://redirect.github.com/dnd-kit/core)[@​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 dece775Copy full SHA for dece775
File tree
Expand file treeCollapse file tree
2 files changed
+15
-15
lines changedFilter options
Expand file treeCollapse file tree
2 files changed
+15
-15
lines changedCollapse file: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
112 |
| - | |
| 111 | + | |
| 112 | + | |
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
|
Collapse file: yarn.lock
+13-13Lines changed: 13 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1983 | 1983 |
| |
1984 | 1984 |
| |
1985 | 1985 |
| |
1986 |
| - | |
1987 |
| - | |
1988 |
| - | |
1989 |
| - | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
1990 | 1990 |
| |
1991 | 1991 |
| |
1992 | 1992 |
| |
1993 |
| - | |
1994 |
| - | |
1995 |
| - | |
1996 |
| - | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
1997 | 1997 |
| |
1998 |
| - | |
| 1998 | + | |
1999 | 1999 |
| |
2000 | 2000 |
| |
2001 | 2001 |
| |
2002 |
| - | |
2003 |
| - | |
2004 |
| - | |
2005 |
| - | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
2006 | 2006 |
| |
2007 | 2007 |
| |
2008 | 2008 |
| |
|
0 commit comments