dependabot[bot] opened a new pull request #16805:
URL: https://github.com/apache/superset/pull/16805


   Bumps [react-dnd](https://github.com/react-dnd/react-dnd) from 11.1.3 to 
14.0.3.
   <details>
   <summary>Release notes</summary>
   <p><em>Sourced from <a 
href="https://github.com/react-dnd/react-dnd/releases";>react-dnd's 
releases</a>.</em></p>
   <blockquote>
   <h2>v14.0.3</h2>
   <h2>Updated</h2>
   <p>react-dnd: 14.0.3
   react-dnd-html5-backend: 14.0.1
   react-dnd-touch-backend: 14.1.0</p>
   <h2>Patch Updates</h2>
   <ul>
   <li>Fix drop operations in iframes &amp; child windows (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3181";>#3181</a>)
 (thanks <a href="https://github.com/eramdam";><code>@​eramdam</code></a>!)</li>
   <li>Refactor TouchBackend OptionsReader (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3291";>#3291</a>)</li>
   <li>Cleanup connected DOM elements from react-dnd internals when hook-based 
components unmount (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3290";>#3290</a>)</li>
   <li>Fix issue where custom drag-sources where triggering native drops in 
Firefox (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3272";>#3272</a>)
 (thanks <a 
href="https://github.com/istateside";><code>@​istateside</code></a>)</li>
   </ul>
   <h2>v14.0.2</h2>
   <h3>Patch</h3>
   <p>This PR will throw a developer exception if a user specifies a 
<code>useDrag::spec.begin</code> method.</p>
   <h2>14.0.1</h2>
   <h2>Patch</h2>
   <p>Update internal hook <code>useDragType()</code> to align with updated 
typings. Check 14.0.0 release for API changes</p>
   <h2>14.0.0</h2>
   <p>This release addresses a handful of nagging liveness and ergonomic issues 
with the hooks API.</p>
   <p>The liveness issues affect all hooks, and were discovered on deeper 
inspection of certain stress tests in the documentation. The internal 
<code>useCollector()</code> hook is used to collect props from the DnD system 
when <em>things change</em>. Prior to this update, we subscribed to updates 
from the DnD monitor to trigger prop collection. However, state on <em>the 
react side</em> was only accounted for on the first render. This release 
improves that liveness by collecting props whenever react state changes.</p>
   <p>The ergonomics of the <code>useDrag</code> have been refactored. In 
short:</p>
   <ul>
   <li><code>spec.type</code> is required</li>
   <li><code>spec.item</code> can be a function or static object.</li>
   <li>The function version of <code>spec.item</code> replaces 
<code>spec.begin</code></li>
   </ul>
   <p>Since the release of the hooks API, we packed <code>type</code> under 
<code>spec.item</code>. However, this led to nonintuitive situations where an 
<code>item</code> field was required to be specified even though items are 
created in the <code>begin</code> method.</p>
   <p>Additionally, in the original React-DnD design, <code>beginDrag()</code> 
was optional and the <strong>type</strong> of the draggables had to be defined. 
If no explicit DragObject was created, an implicit object was created by the 
system..</p>
   <p>The change we've made here decouples <code>type</code> from 
<code>item</code>, and collapses <code>begin</code> into <code>item</code>.</p>
   <pre lang="js"><code>// Pre-v14
   useDrag({
      // item defined here to get a type
      item: { type: BOX } },
      // ...but the actual item is created here
      begin: () =&gt; ({ id })
   })
   <p>// v14
   useDrag({
   type: BOX,
   item: () =&gt; ({id})
   })
   &lt;/tr&gt;&lt;/table&gt;
   </code></pre></p>
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a 
href="https://github.com/react-dnd/react-dnd/commit/4964b533cab962e01cc5e899c66c838df7957a13";><code>4964b53</code></a>
 chore: apply semver (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3295";>#3295</a>)</li>
   <li><a 
href="https://github.com/react-dnd/react-dnd/commit/ce9dd69ff577e8e45afd43e95b7ce3ac7a8eac26";><code>ce9dd69</code></a>
 Upgrade Testing Library (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3294";>#3294</a>)</li>
   <li><a 
href="https://github.com/react-dnd/react-dnd/commit/32e462082194402a43794be76661cab7a5610315";><code>32e4620</code></a>
 Upgrade to Jest 27 (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3293";>#3293</a>)</li>
   <li><a 
href="https://github.com/react-dnd/react-dnd/commit/0961b40deee208676f78b66566f6b9f3142256ab";><code>0961b40</code></a>
 Fixes <a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3179";>#3179</a>
 - handle custom drag sources triggering native drops (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3272";>#3272</a>)</li>
   <li><a 
href="https://github.com/react-dnd/react-dnd/commit/a08ae8d5bbc58f8c18570292104a6b8b5273a0cb";><code>a08ae8d</code></a>
 Improve TouchBackend Options &amp; OptionsReader (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3291";>#3291</a>)</li>
   <li><a 
href="https://github.com/react-dnd/react-dnd/commit/b774ebcb07cef9d037714642c8243221f9b3979e";><code>b774ebc</code></a>
 Cleanup Connected Items in Unmount (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3290";>#3290</a>)</li>
   <li><a 
href="https://github.com/react-dnd/react-dnd/commit/24cbe244a9d44684703142e4641ff3105d8b8ce7";><code>24cbe24</code></a>
 Task/upgrade ts yarn (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3283";>#3283</a>)</li>
   <li><a 
href="https://github.com/react-dnd/react-dnd/commit/4daab881432db0a63c3a1650c0db63b566264cfe";><code>4daab88</code></a>
 use vscode workspace (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3282";>#3282</a>)</li>
   <li><a 
href="https://github.com/react-dnd/react-dnd/commit/1ed2a13f49baea3b92ffe1eb15d737741e38ff5b";><code>1ed2a13</code></a>
 Update useDragDropManager.md (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3209";>#3209</a>)</li>
   <li><a 
href="https://github.com/react-dnd/react-dnd/commit/c5619950b70f7cbce874074a5d557495f651b7c7";><code>c561995</code></a>
 Fix missing closing tag (<a 
href="https://github-redirect.dependabot.com/react-dnd/react-dnd/issues/3222";>#3222</a>)</li>
   <li>Additional commits viewable in <a 
href="https://github.com/react-dnd/react-dnd/compare/v11.1.3...v14.0.3";>compare 
view</a></li>
   </ul>
   </details>
   <br />
   
   
   [![Dependabot compatibility 
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-dnd&package-manager=npm_and_yarn&previous-version=11.1.3&new-version=14.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
   
   Dependabot will resolve any conflicts with this PR as long as you don't 
alter it yourself. You can also trigger a rebase manually by commenting 
`@dependabot rebase`.
   
   [//]: # (dependabot-automerge-start)
   [//]: # (dependabot-automerge-end)
   
   ---
   
   <details>
   <summary>Dependabot commands and options</summary>
   <br />
   
   You can trigger Dependabot actions by commenting on this PR:
   - `@dependabot rebase` will rebase this PR
   - `@dependabot recreate` will recreate this PR, overwriting any edits that 
have been made to it
   - `@dependabot merge` will merge this PR after your CI passes on it
   - `@dependabot squash and merge` will squash and merge this PR after your CI 
passes on it
   - `@dependabot cancel merge` will cancel a previously requested merge and 
block automerging
   - `@dependabot reopen` will reopen this PR if it is closed
   - `@dependabot close` will close this PR and stop Dependabot recreating it. 
You can achieve the same result by closing it manually
   - `@dependabot ignore this major version` will close this PR and stop 
Dependabot creating any more for this major version (unless you reopen the PR 
or upgrade to it yourself)
   - `@dependabot ignore this minor version` will close this PR and stop 
Dependabot creating any more for this minor version (unless you reopen the PR 
or upgrade to it yourself)
   - `@dependabot ignore this dependency` will close this PR and stop 
Dependabot creating any more for this dependency (unless you reopen the PR or 
upgrade to it yourself)
   
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to