Commit Graph

1109 Commits

Author SHA1 Message Date
Anton Nikolaev
fa74502a8a Show disconnected status in plugin list
Summary: Connectivity indicator on plugin panel.

Reviewed By: passy

Differential Revision: D28843182

fbshipit-source-id: 49130e6b40c1bfcc4449b8a98b092d44dbda78bf
2021-06-03 06:37:29 -07:00
Anton Nikolaev
b7d7326bae Differentiate connectivity and auth related errors
Summary: Cleaning up login session and connectivity handling.

Reviewed By: passy

Differential Revision: D28795342

fbshipit-source-id: ddc659d681f730c7183f364d8924e5c680f8a418
2021-06-02 11:30:37 -07:00
Anton Nikolaev
fff489091e Paste oauth token using deeplink
Reviewed By: passy

Differential Revision: D28790868

fbshipit-source-id: 6a22809444462af15915fa4f06e76e64ebb7f590
2021-06-02 11:30:37 -07:00
Anton Nikolaev
cf14f0808f SignInSheet refactored to use hooks
Reviewed By: passy

Differential Revision: D28788914

fbshipit-source-id: 5b000bff57d0fec7b8fafa4f5efd1c3e15caa766
2021-06-02 11:30:37 -07:00
Anton Nikolaev
bb0271a1a0 Persisted logged out state
Reviewed By: passy

Differential Revision: D28788916

fbshipit-source-id: 88ca6a069d4915e71cd7c271b6bbbea37838f4f5
2021-06-02 11:30:36 -07:00
Anton Nikolaev
48b0eb8f18 Show login dialog on Flipper startup if user is not logged
Reviewed By: passy

Differential Revision: D28780529

fbshipit-source-id: 7f4c38d8461619fe5995654e23dc5739fc852ccc
2021-06-02 11:30:36 -07:00
Anton Nikolaev
c1f161045c Move sign-in sheet under fb folder
Summary: SignInSheet and "dispatcher/user" are not used in public build, so it doesn't make sense to keep them on github.

Reviewed By: passy

Differential Revision: D28789384

fbshipit-source-id: aa1ab0fc70f2211260017be42762714b753ea877
2021-06-02 11:30:36 -07:00
dependabot[bot]
ef1434db75 Bump react-transition-group from 4.4.1 to 4.4.2 in /desktop (#2397)
Summary:
Bumps [react-transition-group](https://github.com/reactjs/react-transition-group) from 4.4.1 to 4.4.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/reactjs/react-transition-group/releases">react-transition-group's releases</a>.</em></p>
<blockquote>
<h2>v4.4.2</h2>
<h2><a href="https://github.com/reactjs/react-transition-group/compare/v4.4.1...v4.4.2">4.4.2</a> (2021-05-29)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><code>nodeRef</code> prop type for cross-realm elements (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/732">https://github.com/facebook/flipper/issues/732</a>) (<a href="8710c01549">8710c01</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/reactjs/react-transition-group/blob/master/CHANGELOG.md">react-transition-group's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/reactjs/react-transition-group/compare/v4.4.1...v4.4.2">4.4.2</a> (2021-05-29)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><code>nodeRef</code> prop type for cross-realm elements (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/732">https://github.com/facebook/flipper/issues/732</a>) (<a href="8710c01549">8710c01</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="8dc9ad8d94"><code>8dc9ad8</code></a> chore(release): 4.4.2 [skip ci]</li>
<li><a href="8710c01549"><code>8710c01</code></a> fix: <code>nodeRef</code> prop type for cross-realm elements (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/732">https://github.com/facebook/flipper/issues/732</a>)</li>
<li><a href="7b2360382d"><code>7b23603</code></a> build(deps): bump ws from 7.2.3 to 7.4.6 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/733">https://github.com/facebook/flipper/issues/733</a>)</li>
<li><a href="5a9aeecc61"><code>5a9aeec</code></a> build(deps): bump dns-packet from 1.3.1 to 1.3.4 in /www (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/731">https://github.com/facebook/flipper/issues/731</a>)</li>
<li><a href="ffa33d2c61"><code>ffa33d2</code></a> build(deps): bump browserslist from 4.16.3 to 4.16.6 in /www (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/728">#728</a>)</li>
<li><a href="bbd913b5a1"><code>bbd913b</code></a> build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/722">https://github.com/facebook/flipper/issues/722</a>)</li>
<li><a href="5de4da59ad"><code>5de4da5</code></a> build(deps): bump lodash from 4.17.19 to 4.17.21 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/721">https://github.com/facebook/flipper/issues/721</a>)</li>
<li><a href="13571800d9"><code>1357180</code></a> build(deps): bump url-parse from 1.4.7 to 1.5.1 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/720">https://github.com/facebook/flipper/issues/720</a>)</li>
<li><a href="ce1816baf5"><code>ce1816b</code></a> build(deps): bump handlebars from 4.7.6 to 4.7.7 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/719">https://github.com/facebook/flipper/issues/719</a>)</li>
<li><a href="708ebbf965"><code>708ebbf</code></a> build(deps): bump ssri from 6.0.1 to 6.0.2 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/715">https://github.com/facebook/flipper/issues/715</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/reactjs/react-transition-group/compare/v4.4.1...v4.4.2">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-transition-group&package-manager=npm_and_yarn&previous-version=4.4.1&new-version=4.4.2)](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>

Pull Request resolved: https://github.com/facebook/flipper/pull/2397

Reviewed By: nikoant

Differential Revision: D28795380

Pulled By: passy

fbshipit-source-id: 5c54fe693f30e74f48d3df4fbb983c60816ccbdd
2021-06-02 03:45:57 -07:00
Anton Nikolaev
eb788aaf43 Added "Zoom in", "Zoom out" and "Actual size" commands similarly to Google Chrome
Summary: Changelog: allow zooming Flipper window content in and out either using View menu or hotkeys (Cmd+Plus) and (Cmd+Minus)

Reviewed By: passy

Differential Revision: D28748567

fbshipit-source-id: a214c708cae2c82d04eb53fc879518a0106517de
2021-05-27 08:50:27 -07:00
dependabot[bot]
6902e55256 Bump ws from 7.3.0 to 7.4.6 in /desktop (#2371)
Summary:
Bumps [ws](https://github.com/websockets/ws) from 7.3.0 to 7.4.6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/websockets/ws/releases">ws's releases</a>.</em></p>
<blockquote>
<h2>7.4.6</h2>
<h1>Bug fixes</h1>
<ul>
<li>Fixed a ReDoS vulnerability (00c425ec).</li>
</ul>
<p>A specially crafted value of the <code>Sec-Websocket-Protocol</code> header could be used
to significantly slow down a ws server.</p>
<pre lang="js"><code>for (const length of [1000, 2000, 4000, 8000, 16000, 32000]) {
  const value = 'b' + ' '.repeat(length) + 'x';
  const start = process.hrtime.bigint();
<p>value.trim().split(/ *, */);</p>
<p>const end = process.hrtime.bigint();</p>
<p>console.log('length = %d, time = %f ns', length, end - start);
}
</code></pre></p>
<p>The vulnerability was responsibly disclosed along with a fix in private by
Robert McLaughlin from University of California, Santa Barbara.</p>
<p>In vulnerable versions of ws, the issue can be mitigated by reducing the maximum
allowed length of the request headers using the <a href="https://nodejs.org/api/cli.html#cli_max_http_header_size_size"><code>--max-http-header-size=size</code></a>
and/or the <a href="https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener"><code>maxHeaderSize</code></a> options.</p>
<h2>7.4.5</h2>
<h1>Bug fixes</h1>
<ul>
<li>UTF-8 validation is now done even if <code>utf-8-validate</code> is not installed
(23ba6b29).</li>
<li>Fixed an edge case where <code>websocket.close()</code> and <code>websocket.terminate()</code> did
not close the connection (67e25ff5).</li>
</ul>
<h2>7.4.4</h2>
<h1>Bug fixes</h1>
<ul>
<li>Fixed a bug that could cause the process to crash when using the
permessage-deflate extension (92774377).</li>
</ul>
<h2>7.4.3</h2>
<h1>Bug fixes</h1>
<ul>
<li>The deflate/inflate stream is now reset instead of reinitialized when context
takeover is disabled (<a href="https://github-redirect.dependabot.com/websockets/ws/issues/1840">https://github.com/facebook/flipper/issues/1840</a>).</li>
</ul>
<h2>7.4.2</h2>
<h1>Bug fixes</h1>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="f5297f7090"><code>f5297f7</code></a> [dist] 7.4.6</li>
<li><a href="00c425ec77"><code>00c425e</code></a> [security] Fix ReDoS vulnerability</li>
<li><a href="990306d144"><code>990306d</code></a> [lint] Fix prettier error</li>
<li><a href="32e3a8439b"><code>32e3a84</code></a> [security] Remove reference to Node Security Project</li>
<li><a href="8c914d18b8"><code>8c914d1</code></a> [minor] Fix nits</li>
<li><a href="fc7e27d12a"><code>fc7e27d</code></a> [ci] Test on node 16</li>
<li><a href="587c201bfc"><code>587c201</code></a> [ci] Do not test on node 15</li>
<li><a href="f672710797"><code>f672710</code></a> [dist] 7.4.5</li>
<li><a href="67e25ff502"><code>67e25ff</code></a> [fix] Fix case where <code>abortHandshake()</code> does not close the connection</li>
<li><a href="23ba6b2922"><code>23ba6b2</code></a> [fix] Make UTF-8 validation work even if utf-8-validate is not installed</li>
<li>Additional commits viewable in <a href="https://github.com/websockets/ws/compare/7.3.0...7.4.6">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ws&package-manager=npm_and_yarn&previous-version=7.3.0&new-version=7.4.6)](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>

Pull Request resolved: https://github.com/facebook/flipper/pull/2371

Reviewed By: passy

Differential Revision: D28714468

Pulled By: nikoant

fbshipit-source-id: c2a3a7091599f29d453a35bf89bab4a03817509c
2021-05-27 03:51:53 -07:00
Pascal Hartig
bca8030df8 Dep bump
Summary:
Daily bump keeps the yada yada. Only patch updates or safe ones.

allow-large-files

Reviewed By: nikoant

Differential Revision: D28636754

fbshipit-source-id: d2a8c7fc0779bea30ff6532ae076694ce0e1fffa
2021-05-25 08:53:36 -07:00
Michel Weststrate
d9c986fcf8 Fix test flakiness by using jest timers
Summary: Some tests were occasionally flaky, by emulating delays, time variation should no longer influence tests.

Reviewed By: passy

Differential Revision: D28572946

fbshipit-source-id: f4134a6509a0ec0be2e8f36e5623c4882b5531b8
2021-05-25 02:22:21 -07:00
Pascal Hartig
bf32eca8fc Remove console.error for login
Summary:
This is in fact correctly handled, shown in the UI and we don't
need a task if someone pastes the wrong token.

Reviewed By: priteshrnandgaonkar

Differential Revision: D28569896

fbshipit-source-id: 689bff06b4a488be7ad4c58eb4f2e91018da31cf
2021-05-20 08:55:55 -07:00
Anton Nikolaev
fe7bb7cedd Fix null reference on isError check
Summary: Fixed new error which appeared in logview after last release. See task T91245438 for details.

Reviewed By: passy

Differential Revision: D28569848

fbshipit-source-id: a4b622d4387aa41ecc4db269e05c5315669df250
2021-05-20 07:13:35 -07:00
Anton Nikolaev
25ae4a0535 Include information about selected device, app and plugin into analytics events and error reports
Summary:
This diff generalises computation of the currently selected plugin, app, device etc. and adds this information to all the analytics events and error reports.

Slicing of events by os, device, app or selected plugin can be very useful. This is especially true for errors which often affects only certain types of devices, e.g. android only or physical devices only. Having such information can help to narrow down such issues.

Reviewed By: passy

Differential Revision: D28511441

fbshipit-source-id: ed9dc57927c70ed8cc6fe093e21604eae54c2f60
2021-05-19 05:17:41 -07:00
Pascal Hartig
3b6b684f10 Demote user errors
Summary:
One is keytar, which just needed a context.

The second one is happening every time someone uses Flipper
and not being on Lighthouse, spamming our log category besides
actually being properly handled.

Reviewed By: nikoant

Differential Revision: D28479791

fbshipit-source-id: 029721df46d12b2942b590a232618ef039a2323d
2021-05-18 08:34:19 -07:00
Anton Nikolaev
cfedabcdef Attribute error reports with plugin id and version
Summary: This diff adds attributing of all error reports with the information about the plugins caused them. To do that we try to map error stack trace to plugins by searching for plugin directories in it. We can do this only for plugins loaded from disk as we are looking for their physical locations in stack. To make it possible to search for multiple plugins in one go we build and maintain a trie containing all the loaded plugins locations.

Reviewed By: passy

Differential Revision: D28475938

fbshipit-source-id: 59c8ac39ffe54262b1d57f21fad44eb89748dff2
2021-05-18 08:08:30 -07:00
Anton Nikolaev
853ee24c9b Add info about interactions to error reports
Summary: When reporting errors we could add info about interactions which caused errors. Ability to connect errors and interactions could be quite helpful for analysing and debugging errors and where they are coming from.

Reviewed By: passy, mweststrate

Differential Revision: D28467575

fbshipit-source-id: bef69917a4d6c786d762a2f6eb75a47fd4e46b0f
2021-05-18 08:08:30 -07:00
Anton Nikolaev
03a1add092 Fix extracting errors from console.error data
Summary: Flipper logs all errors reported by "console.error", but I found that stack traces are broken for them. It is because a bug in `extractError` function which extracts errors from the data logged to console. It fails to extract original error stack trace and instead always logs stack trace where "console.error" was called.  This diff fixes the issue, so errors are properly reported with their original stack traces. However, sometimes stack trace of console.error call can also be useful to find where the error was actually catched and logged, so we're now writing this stack trace into addition field "log_stack_trace".

Reviewed By: passy

Differential Revision: D28466569

fbshipit-source-id: 55fb8ab52c05e8196efc1e47aec95cc1fbc0e594
2021-05-18 08:08:30 -07:00
Anton Nikolaev
8bbf9c46a3 Keep promise rejections unhandled after catching them for logging
Summary: Tracked component catches rejected promises under it to log them. After catching promises become "handled". This might hide potential promise error handling mistakes, so it's better to ensure we keep promises unhandled after catching them for tracking, so they are properly catched by the unhandled promise handler after that. The easiest solution seems to just make new rejected promise and return it instead of the catched one.

Reviewed By: passy

Differential Revision: D28466570

fbshipit-source-id: 26c1e7af3d6e4f7067b95f20e646462d808bb497
2021-05-18 08:08:30 -07:00
Anton Nikolaev
a4eb2a56d6 Option for "yarn start" and "yarn build" scripts to pre-install default plugin packages instead of bundling them
Summary:
Sorry for long diff! I can try to split it if necessary, but many changes here are 1-1 replacements / renames.

**Preambule**
Currently we bundle default plugins into the Flipper main bundle. This helps us to reduce bundle size, because of plugin dependencies re-use. E.g. if multiple plugins use "lodash" when they are bundled together, only one copy of "lodash" added. When they are bundled separately, the same dependency might be added to each of them. However as we're not going to include most of plugins into Flipper distributive anymore and going to rely on Marketplace instead, this bundling doesn't provide significant size benefits anymore. In addition to that, bundling makes it impossible to differentiate whether thrown errors are originated from Flipper core or one of its plugins.

Why don't we remove plugin bundling at all? Because for "dev mode" it actually quite useful. It makes dev build start much faster and also enables using of Fast Refresh for plugin development (fast refresh won't work for plugins loaded from disk).

**Changes**
This diff introduces new option "no-bundled-plugins" for "yarn start" and "yarn build" commands. For now, by default, we will continue bundling default plugins into the Flipper main bundle, but if this option provided then we will build each default plugin separately and include their packages into the Flipper distributive as "pre-installed" to be able to load them from disk even without access to Marketplace.

For "yarn start", we're adding symlinks to plugin folders in "static/defaultPlugins" and then they are loaded by Flipper. For "yarn build" we are dereferencing these symlinks to include physical files of plugins into folder "defaultPlugins" of the produced distributive. Folder "defaultPlugins" is excluded from asar, because loading of plugins from asar archive might introduce some unexpected issues depending on their implementation.

Reviewed By: mweststrate

Differential Revision: D28431838

fbshipit-source-id: f7757e9f5ba9183ed918d70252de3ce0e823177d
2021-05-18 08:08:30 -07:00
dependabot[bot]
26209a0134 Bump @testing-library/dom from 7.30.4 to 7.31.0 in /desktop (#2333)
Summary:
Bumps [testing-library/dom](https://github.com/testing-library/dom-testing-library) from 7.30.4 to 7.31.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/testing-library/dom-testing-library/releases"><code>@​testing-library/dom</code>'s releases</a>.</em></p>
<blockquote>
<h2>v7.31.0</h2>
<h1><a href="https://github.com/testing-library/dom-testing-library/compare/v7.30.4...v7.31.0">7.31.0</a> (2021-05-10)</h1>
<h3>Features</h3>
<ul>
<li>Add extra error messages when <code>screen</code> was passed instead of a DOM element (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/949">https://github.com/facebook/flipper/issues/949</a>) (<a href="c273ed518c">c273ed5</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="c273ed518c"><code>c273ed5</code></a> feat: Add extra error messages when <code>screen</code> was passed instead of a DOM elem...</li>
<li><a href="4b2976d516"><code>4b2976d</code></a> chore: Format codebase with prettier (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/955">https://github.com/facebook/flipper/issues/955</a>)</li>
<li><a href="13efbb3b1d"><code>13efbb3</code></a> chore: Remove unused Nullish type (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/953">https://github.com/facebook/flipper/issues/953</a>)</li>
<li><a href="e061cd1fdd"><code>e061cd1</code></a> docs: add amitmiran137 as a contributor (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/952">https://github.com/facebook/flipper/issues/952</a>)</li>
<li><a href="37d1cc48d9"><code>37d1cc4</code></a> chore: rename master to main (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/942">https://github.com/facebook/flipper/issues/942</a>)</li>
<li><a href="d8a8d581b0"><code>d8a8d58</code></a> docs: add simcha90 as a contributor (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/951">https://github.com/facebook/flipper/issues/951</a>)</li>
<li><a href="b00dff949f"><code>b00dff9</code></a> chore(refactor): move queries to TS / prettify some code according ABC (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/948">https://github.com/facebook/flipper/issues/948</a>)</li>
<li><a href="ffc8f26d48"><code>ffc8f26</code></a> docs: add nickmccurdy as a contributor (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/936">https://github.com/facebook/flipper/issues/936</a>)</li>
<li><a href="9c03efa5f3"><code>9c03efa</code></a> chore: continue testing on Node 15 (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/935">https://github.com/facebook/flipper/issues/935</a>)</li>
<li>See full diff in <a href="https://github.com/testing-library/dom-testing-library/compare/v7.30.4...v7.31.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@testing-library/dom&package-manager=npm_and_yarn&previous-version=7.30.4&new-version=7.31.0)](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>

Pull Request resolved: https://github.com/facebook/flipper/pull/2333

Reviewed By: priteshrnandgaonkar

Differential Revision: D28474761

Pulled By: mweststrate

fbshipit-source-id: e6d59ad2aef69c7df066c2a01d769083a1f042a4
2021-05-18 06:42:10 -07:00
dependabot[bot]
ac25787c0c Bump @types/split2 from 2.1.6 to 3.2.0 in /desktop (#2332)
Summary:
Bumps [types/split2](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/split2) from 2.1.6 to 3.2.0.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/split2">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/split2&package-manager=npm_and_yarn&previous-version=2.1.6&new-version=3.2.0)](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>

Pull Request resolved: https://github.com/facebook/flipper/pull/2332

Reviewed By: priteshrnandgaonkar

Differential Revision: D28474759

Pulled By: mweststrate

fbshipit-source-id: adf85edf7a04928d3b335e698c547c6bb592e219
2021-05-18 06:42:10 -07:00
Pascal Hartig
6e206fc054 Fix icon fetching
Reviewed By: nikoant

Differential Revision: D28505372

fbshipit-source-id: e0b001ae56cd9014bd830630ae354ad4d76c2588
2021-05-18 03:45:31 -07:00
Pascal Hartig
b797fec6cc Daily dep bump
Summary: A bump a day keeps the dependabot away.

Reviewed By: mweststrate

Differential Revision: D28387658

fbshipit-source-id: 5b38b260c3a29b12ea942f18266d5ba74c16d4a1
2021-05-14 05:46:19 -07:00
dependabot[bot]
0de4f11e15 Bump react-markdown from 5.0.3 to 6.0.2 in /desktop (#2298)
Summary:
Bumps [react-markdown](https://github.com/remarkjs/react-markdown) from 5.0.3 to 6.0.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/remarkjs/react-markdown/releases">react-markdown's releases</a>.</em></p>
<blockquote>
<h2>6.0.0</h2>
<p>Please see <a href="https://github.com/remarkjs/react-markdown/blob/main/changelog.md#600---2021-04-15"><code>changelog.md</code></a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/remarkjs/react-markdown/blob/main/changelog.md">react-markdown's changelog</a>.</em></p>
<blockquote>
<h2>6.0.2 - 2021-05-06</h2>
<ul>
<li><a href="https://github.com/remarkjs/react-markdown/commit/cefc02d"><code>cefc02d</code></a>
Add string type for <code>className</code>s</li>
<li><a href="https://github.com/remarkjs/react-markdown/commit/6355e45"><code>6355e45</code></a>
Fix to pass <code>vfile</code> to plugins</li>
<li><a href="https://github.com/remarkjs/react-markdown/commit/5cf6e1b"><code>5cf6e1b</code></a>
Fix to add warning when non-strings are given as <code>children</code></li>
</ul>
<h2>6.0.1 - 2021-04-23</h2>
<ul>
<li><a href="https://github.com/remarkjs/react-markdown/commit/2e956be"><code>2e956be</code></a>
Fix whitespace in table elements</li>
<li><a href="https://github.com/remarkjs/react-markdown/commit/d36048a"><code>d36048a</code></a>
Add architecture section to readme</li>
</ul>
<h2>6.0.0 - 2021-04-15</h2>
<p>Welcome to version 6.
This a major release and therefore contains breaking changes.</p>
<h3>Change <code>renderers</code> to <code>components</code></h3>
<p><code>react-markdown</code> used to let you define components for <em>markdown</em> constructs
(<code>link</code>, <code>delete</code>, <code>break</code>, etc).
This proved complex as users didn’t know about those names or markdown
peculiarities (such as that there are fully formed links <em>and</em> link references).</p>
<p>See [<strong><a href="https://github-redirect.dependabot.com/remarkjs/react-markdown/issues/549">GH-549</a></strong>](<a href="https://github-redirect.dependabot.com/remarkjs/react-markdown/issues/549">remarkjs/react-markdown#549</a>) for more
on why this changed.
See <a href="https://github.com/remarkjs/react-markdown#appendix-b-components"><strong>Appendix B: Components</strong> in
<code>readme.md</code></a>
for more on components.</p>

<p>Before (<strong>broken</strong>):</p>
<pre lang="jsx"><code>&lt;Markdown
  renderers={{
    // Use a fancy hr
    thematicBreak: ({node, ...props}) =&gt; &lt;MyFancyRule {...props} /&gt;
  }}
&gt;{`***`}&lt;/Markdown&gt;
</code></pre>
<p>Now (<strong>fixed</strong>):</p>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="8ed18dafa8"><code>8ed18da</code></a> 6.0.2</li>
<li><a href="cefc02d749"><code>cefc02d</code></a> Add string type for <code>className</code>s</li>
<li><a href="6355e45179"><code>6355e45</code></a> Fix to pass <code>vfile</code> to plugins</li>
<li><a href="5cf6e1b18f"><code>5cf6e1b</code></a> Fix to add warning when non-strings are given as <code>children</code></li>
<li><a href="592599fda4"><code>592599f</code></a> Update dev-dependencies</li>
<li><a href="15b4757082"><code>15b4757</code></a> 6.0.1</li>
<li><a href="4f5e62aa13"><code>4f5e62a</code></a> Fix unneeded <code>ts-ignore</code></li>
<li><a href="2e956be119"><code>2e956be</code></a> Fix whitespace in table elements</li>
<li><a href="d36048a6cb"><code>d36048a</code></a> Add architecture section to readme</li>
<li><a href="a2b611babc"><code>a2b611b</code></a> Update <code>react-syntax-highlighter</code> example</li>
<li>Additional commits viewable in <a href="https://github.com/remarkjs/react-markdown/compare/5.0.3...6.0.2">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-markdown&package-manager=npm_and_yarn&previous-version=5.0.3&new-version=6.0.2)](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>

Pull Request resolved: https://github.com/facebook/flipper/pull/2298

Reviewed By: mweststrate

Differential Revision: D28323791

Pulled By: cekkaewnumchai

fbshipit-source-id: c5582e7cd357eb5f3c93c7c3d2df81bb2818e105
2021-05-12 15:10:48 -07:00
Michel Weststrate
96cbc81e63 Fix connection and DOM management of React DevTools
Summary:
This diff fixes several existing issues in the React DevTools:

Every time the user opened the plugin we re-instantiated the devtools, which has a few problems: 1) it looses all state (e.g. selection), and 2) this causes the tools to start a websocket listener on a new port, that was never cleaned up, or ever used, since React Native always connects to port 8097 anyway.

To preserve the state the idea of the original implementation was to move the devTools out of the current view, without disposing it. This actually didn't work in practice due to a faulty implementation, causing a full reinialization of the tools every time. Addressed this by reusing the mechanism that is used by the Hermes debugger tools as well.

By properly managing the port (e.g. closing it), there is no need to start (in vain) the devTools on a random port.

Port reversal for physical devices needs to happen only once, in principle upon connecting the device, so moved it to the device logic, which also avoids the need to hack into the global Flipper store.

Avoiding recreating the devTools makes plugin switching near instant, instead of needing to wait for a few seconds until the devTools connect.

When multiple apps are connected the behavior is now consistent: the application that refreshed last will be the one visible in the devTools. (That is still pretty suboptimal, but at least predicable and not a use case that is requested / supported in the DevTools themselves atm)

There is still ugly DOM business going on, did put that in a stand alone component for now.
Didn't extract the shared logic with Hermes plugin yet, but did verify both are still working correctly.

Changelog: [React DevTools] Several improvements that should improve the overal experience, the plugin should load much quicker and behave more predictably.

Reviewed By: bvaughn

Differential Revision: D28382587

fbshipit-source-id: 0f2787b24fa2afdf5014dbf1d79240606405199a
2021-05-12 14:21:53 -07:00
Michel Weststrate
4062950fbe Convert React DevTools to Sandy
Summary:
Converted ReactDevTools to Sandy, no real semantic changes. Will add those in next diffs.

Made some minor flow optimizations.

The port forwarding setup interacted directly with the Flipper store, so made an escape hatch for that. Will clean that up again in next diffs.

Reviewed By: passy

Differential Revision: D28380055

fbshipit-source-id: 053979fd10bf3b62089a4f1e27b0e02b4b05e2e1
2021-05-12 14:21:53 -07:00
Anton Nikolaev
e7670e4e42 Fix retrieving versions for release builds
Summary: Fixed release build version retrieval

Reviewed By: passy, cekkaewnumchai

Differential Revision: D28378502

fbshipit-source-id: 345e7fac327a072a5c84cfa92bf4af78b6829654
2021-05-12 07:49:14 -07:00
Anton Nikolaev
a8ca142c9a Load only compatible plugins on startup
Summary: We currently filtering out incompatible versions from marketplace. This diff also add filtering for incompatible installed plugins on Flipper startup to ensure we always load the latest compatible version.

Reviewed By: passy

Differential Revision: D28341891

fbshipit-source-id: 83afc14a3c07e1763e1bd146251e6d3b71a66248
2021-05-12 07:49:13 -07:00
Anton Nikolaev
252322f525 Fix a bug with duplicated device plugins in "Detected in App" list
Summary: When crash reporter plugin is not installed in Flipper, it can appear duplicated in "Detected in App" list. This diff fixes that.

Reviewed By: passy

Differential Revision: D28325072

fbshipit-source-id: 92011f1f10c6633fbd31ea886fe53f352057f4f8
2021-05-12 07:49:13 -07:00
Anton Nikolaev
00851c6b5d Fix bug with plugin re-installation after uninstallation
Summary:
Fixed a bug when plugin installation status wouldn't be saved between sessions when plugin uninstalled and then re-installed again. Before the fix, after Flipper restart, such plugin was uninstalled again because its package name was not removed from "uninstalledPlugins" state. This was because plugin id was used by mistake instead of name in few places.

To try avoiding this issue in future I've also renamed "uninstalledPlugins" to "uninstalledPluginNames" to make it more clear than package name should be used there rather than ID. As this field is persisted, I also added migration which moves data to the renamed field.

Reviewed By: passy

Differential Revision: D28314447

fbshipit-source-id: fbe3edc258b78fe7fbb0d966f93aabcdf3b66d4b
2021-05-12 07:49:13 -07:00
Anton Nikolaev
0dce247741 Fix bug with unnecessary plugin auto-update attempts
Summary: I've noticed that Flipper is trying to schedule auto-update for some plugins on every startup even though they are already updated. I found this happens because of a race condition when the auto-updater can be triggered before plugins initialised. This diff fixes that.

Reviewed By: passy

Differential Revision: D28312086

fbshipit-source-id: 66b0bd2aa9dfede1737d565b1e7e7845c940405e
2021-05-12 07:49:13 -07:00
Anton Nikolaev
28fd8da615 Install only compatible plugins
Summary: Currently, when user installs a new plugin which was not installed before that, Flipper always takes the latest available version of it. This is not correct, because the latest version might be incompatible with the currently running version of Flipper. To avoid that, instead of always using just the latest version we will be using the most recent version which is compatible with the current Flipper version.

Reviewed By: passy

Differential Revision: D28306505

fbshipit-source-id: 4258a456d6a5d92cbf48af55c0efb17ecf560b57
2021-05-12 07:49:13 -07:00
Anton Nikolaev
2b41fba704 Change Flipper version retrieving
Summary:
Changed retrieving of Flipper version. Now it will be always retrieved from package.json. Before this change we used "remote.app.getVersion()" API which instead returned electron version for dev builds, e.g. "11.2.3". This is not convenient, because we now use Flipper version to check plugin compatibility and unrelated Electron version here makes things more complicated. After this change, if version is not properly bumped then "0.0.0" will be used: 1) when running using "yarn start", 2) when local building with "yarn build --mac" without setting new version, 3) when running tests "yarn test".

In addition to that I added a new command-line argument and env var which allow overriding version number for Flipper. This is useful for testing plugin updates, because compatibility between plugins and Flipper is checked by comparing Flipper version with the min version set in the plugin metadata.

Reviewed By: passy

Differential Revision: D28287354

fbshipit-source-id: 2f9482080e3612b95a24300050d98150c6db6cb7
2021-05-12 07:49:13 -07:00
Anton Nikolaev
21ce694fd5 Retrieve multiple plugin versions from marketplace
Summary: Retrieve multiple plugin versions so we later can choose a version which is compatible with the current version of Flipper (e.g. if user is on old version of Flipper).

Reviewed By: passy

Differential Revision: D28284121

fbshipit-source-id: 3ed9cffb3e9702fc65d19b73fc8cc162b776b7c9
2021-05-12 07:49:13 -07:00
Pascal Hartig
69c7876be9 Enforce react/jsx-boolean-value
Summary: yarn fix results.

Reviewed By: nikoant

Differential Revision: D28329714

fbshipit-source-id: 564aa24bcdb4bc6cdea67dfad10a077a9c817a2d
2021-05-11 10:14:05 -07:00
dependabot[bot]
674f71a426 Bump prettier from 2.2.1 to 2.3.0 in /desktop (#2300)
Summary:
Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/releases">prettier's releases</a>.</em></p>
<blockquote>
<h2>2.3.0</h2>
<p><a href="https://github.com/prettier/prettier/compare/2.2.1...2.3.0">diff</a></p>
<p>{emoji:1f517} <a href="https://prettier.io/blog/2021/05/09/2.3.0.html">Release Notes</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's changelog</a>.</em></p>
<blockquote>
<h1>2.3.0</h1>
<p><a href="https://github.com/prettier/prettier/compare/2.2.1...2.3.0">diff</a></p>
<p>{emoji:1f517} <a href="https://prettier.io/blog/2021/05/09/2.3.0.html">Release Notes</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="2afc3b9ae6"><code>2afc3b9</code></a> Release 2.3.0</li>
<li><a href="7cfa9aa89b"><code>7cfa9aa</code></a> Fix pre-commit hook setup command (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10710">#10710</a>)</li>
<li><a href="c8c02b4753"><code>c8c02b4</code></a> Build(deps-dev): Bump concurrently from 6.0.2 to 6.1.0 in /website (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10834">#10834</a>)</li>
<li><a href="6506e0f50e"><code>6506e0f</code></a> Build(deps-dev): Bump webpack-cli from 4.6.0 to 4.7.0 in /website (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10836">#10836</a>)</li>
<li><a href="69fae9c291"><code>69fae9c</code></a> Build(deps): Bump flow-parser from 0.150.0 to 0.150.1 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10839">#10839</a>)</li>
<li><a href="164a6e2351"><code>164a6e2</code></a> Switch CLI to async (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10804">#10804</a>)</li>
<li><a href="d3e7e2f634"><code>d3e7e2f</code></a> Build(deps): Bump codecov/codecov-action from v1.4.1 to v1.5.0 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10833">#10833</a>)</li>
<li><a href="9e09845da0"><code>9e09845</code></a> Build(deps): Bump <code>@​angular/compiler</code> from 11.2.12 to 11.2.13 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10838">#10838</a>)</li>
<li><a href="1bfab3d045"><code>1bfab3d</code></a> Build(deps-dev): Bump eslint from 7.25.0 to 7.26.0 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10840">#10840</a>)</li>
<li><a href="387fce4ed8"><code>387fce4</code></a> Minor formatting tweaks (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/10807">#10807</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/2.2.1...2.3.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=prettier&package-manager=npm_and_yarn&previous-version=2.2.1&new-version=2.3.0)](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>

Pull Request resolved: https://github.com/facebook/flipper/pull/2300

Reviewed By: passy

Differential Revision: D28323849

Pulled By: cekkaewnumchai

fbshipit-source-id: 1842877ccc9a9587af7f0d9ff9432c2075c8ee22
2021-05-11 05:51:56 -07:00
dependabot[bot]
ef242a2b76 Bump antd from 4.12.2 to 4.15.4 in /desktop (#2301)
Summary:
allow-large-files
Bumps [antd](https://github.com/ant-design/ant-design) from 4.12.2 to 4.15.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/ant-design/ant-design/releases">antd's releases</a>.</em></p>
<blockquote>
<h2>4.15.4</h2>
<ul>
<li>{emoji:1f41e} Fix Menu.Item width issue when <code>collapsedWidth</code> is set. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30357">#30357</a> <a href="https://github.com/Map1en"><code>@​Map1en</code></a></li>
<li>{emoji:1f41e} Fix Radio check spin style sometime height too long. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30367">#30367</a></li>
<li>{emoji:1f41e} Fix Typography.Link open link when trigger <code>editable</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30354">#30354</a> <a href="https://github.com/John60676"><code>@​John60676</code></a></li>
<li>{emoji:1f41e} InputNumber clean up input will trigger <code>onChange(null)</code> now. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30337">#30337</a></li>
<li>{emoji:1f41e} Fix Dropdown.Button broken style when inside Modal <code>footer</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30328">#30328</a> <a href="https://github.com/Map1en"><code>@​Map1en</code></a></li>
<li>{emoji:1f484} Replace Anchor default background from <code>#FFFFFF</code> to <code>transparent</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30336">#30336</a></li>
<li>{emoji:1f310} Add <code>ko_KR</code> and <code>ja_JP</code> TimePicker.RangePicker placeholder. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30285">#30285</a> <a href="https://github.com/ChalkPE"><code>@​ChalkPE</code></a></li>
<li>TypeScript
<ul>
<li>� Fix Upload type definition of <code>beforeUpload</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30351">#30351</a> <a href="https://github.com/kerm1it"><code>@​kerm1it</code></a></li>
</ul>
</li>
</ul>
<hr />
<ul>
<li>{emoji:1f41e} 修复 Menu.Item 设置 <code>collapsedWidth</code> 时宽度错误的问题。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30357">#30357</a> <a href="https://github.com/Map1en"><code>@​Map1en</code></a></li>
<li>{emoji:1f41e} 修复 Radio 选中样式有时高度略长的问题。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30367">#30367</a></li>
<li>{emoji:1f41e} 修复 Typography.Link  在 <code>editable</code> 模式下点击编辑会触发链接跳转的问题。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30354">#30354</a> <a href="https://github.com/John60676"><code>@​John60676</code></a></li>
<li>{emoji:1f41e} InputNumber 现在清空输入框时会触发 <code>onChange(null)</code>。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30337">#30337</a></li>
<li>{emoji:1f41e} 修复 Modal <code>footer</code> 里放置 Dropdown.Button 的样式错乱问题。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30328">#30328</a> <a href="https://github.com/Map1en"><code>@​Map1en</code></a></li>
<li>{emoji:1f484} 替换 Anchor 默认背景颜色从 <code>#FFFFFF</code> 改至 <code>transparent</code>。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30336">#30336</a></li>
<li>{emoji:1f310} 添加 TimePicker.RangePicker  <code>ko_KR</code> 和 <code>ja_JP</code> 的 <code>placeholder</code> 国际化。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30285">#30285</a> <a href="https://github.com/ChalkPE"><code>@​ChalkPE</code></a></li>
<li>TypeScript
<ul>
<li>� 修复 Upload 组件 <code>beforeUpload</code> 类型声明。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30351">#30351</a> <a href="https://github.com/kerm1it"><code>@​kerm1it</code></a></li>
</ul>
</li>
</ul>
<h2>4.15.3</h2>
<ul>
<li>Table
<ul>
<li>{emoji:1f41e} Fix Table selection column width when bordered is true. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30304">#30304</a></li>
<li>{emoji:1f6a8} Add warning when Table <code>current</code> is negative number. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30242">#30242</a> <a href="https://github.com/wadezhan"><code>@​wadezhan</code></a></li>
</ul>
</li>
<li>{emoji:1f41e} Fix Button <code>type=&quot;link&quot;</code> should not redirect when it is <code>disabled</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30209">#30209</a></li>
<li>{emoji:1f41e} Fix Upload appear errors when url of file is <code>null</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30215">#30215</a></li>
<li>{emoji:1f41e} Fix padding on a SubMenu inside an ItemGroup. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30218">#30218</a> <a href="https://github.com/sebakerckhof"><code>@​sebakerckhof</code></a></li>
<li>{emoji:1f41e} Fix Checkbox &amp; Radio align issue in flex box. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30260">#30260</a></li>
<li>{emoji:1f41e} Fix Badge broken animation on spin icon. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30275">#30275</a></li>
<li>{emoji:1f41e} Fix Input <code>disabled</code> hover style in Form. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30302">#30302</a> <a href="https://github.com/Fog3211"><code>@​Fog3211</code></a></li>
<li>TypeScript
<ul>
<li>� Fix Upload type definition of <code>beforeUpload</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30213">#30213</a></li>
</ul>
</li>
</ul>
<hr />
<ul>
<li>Table
<ul>
<li>{emoji:1f41e} 修复选择列和边框冲突的问题。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30304">#30304</a></li>
<li>{emoji:1f6a8} 当 <code>current</code> 为负数时将在显示控制台警告。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30242">#30242</a> <a href="https://github.com/wadezhan"><code>@​wadezhan</code></a></li>
</ul>
</li>
<li>{emoji:1f41e} 修复 Button <code>type=&quot;link&quot;</code> 添加 <code>disabled</code> 后仍然可点击跳转的问题。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30209">#30209</a></li>
<li>{emoji:1f41e} 修复 Upload 当文件 url 为 <code>null</code> 时渲染出错问题。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30215">#30215</a></li>
<li>{emoji:1f41e} 修复 SubMenu 在 ItemGroup 内时的内边距。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30218">#30218</a> <a href="https://github.com/sebakerckhof"><code>@​sebakerckhof</code></a></li>
<li>{emoji:1f41e} 修复 Checkbox 和 Radio 在 flex 布局下的对齐问题。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30260">#30260</a></li>
<li>{emoji:1f41e} 修复 Badge 上放置旋转图标的动画问题。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30275">#30275</a></li>
<li>{emoji:1f41e} 修复 Form 错误校验状态下 Input <code>disabled</code> 的 hover 样式。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30302">#30302</a> <a href="https://github.com/Fog3211"><code>@​Fog3211</code></a></li>
<li>TypeScript
<ul>
<li>� 修复 Upload 组件 <code>beforeUpload</code> 类型声明。<a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30213">#30213</a></li>
</ul>
</li>
</ul>
<h2>4.15.3-alpha.0</h2>
<h2>4.15.2</h2>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/ant-design/ant-design/blob/master/CHANGELOG.en-US.md">antd's changelog</a>.</em></p>
<blockquote>
<h2>4.15.4</h2>
<p><code>2021-04-30</code></p>
<ul>
<li>{emoji:1f41e} Fix Menu.Item width issue when <code>collapsedWidth</code> is set. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30357">#30357</a> <a href="https://github.com/Map1en"><code>@​Map1en</code></a></li>
<li>{emoji:1f41e} Fix Radio check spin style sometime height too long. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30367">#30367</a></li>
<li>{emoji:1f41e} Fix Typography.Link open link when trigger <code>editable</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30354">#30354</a> <a href="https://github.com/John60676"><code>@​John60676</code></a></li>
<li>{emoji:1f41e} InputNumber clean up input will trigger <code>onChange(null)</code> now. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30337">#30337</a></li>
<li>{emoji:1f41e} Fix Dropdown.Button broken style when inside Modal <code>footer</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30328">#30328</a> <a href="https://github.com/Map1en"><code>@​Map1en</code></a></li>
<li>{emoji:1f484} Replace Anchor default background from <code>#FFFFFF</code> to <code>transparent</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30336">#30336</a></li>
<li>{emoji:1f310} Add <code>ko_KR</code> and <code>ja_JP</code> TimePicker.RangePicker placeholder. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30285">#30285</a> <a href="https://github.com/ChalkPE"><code>@​ChalkPE</code></a></li>
<li>TypeScript
<ul>
<li>� Fix Upload type definition of <code>beforeUpload</code> and <code>UploadFile</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30351">#30351</a> <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30343">#30343</a> <a href="https://github.com/kerm1it"><code>@​kerm1it</code></a></li>
</ul>
</li>
</ul>
<h2>4.15.3</h2>
<p><code>2021-04-25</code></p>
<ul>
<li>Table
<ul>
<li>{emoji:1f41e} Fix Table selection column width when bordered is true. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30304">#30304</a></li>
<li>{emoji:1f6a8} Add warning when Table <code>current</code> is negative number. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30242">#30242</a> <a href="https://github.com/wadezhan"><code>@​wadezhan</code></a></li>
</ul>
</li>
<li>{emoji:1f41e} Fix Button <code>type=&quot;link&quot;</code> should not redirect when it is <code>disabled</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30209">#30209</a></li>
<li>{emoji:1f41e} Fix Upload appear errors when url of file is <code>null</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30215">#30215</a></li>
<li>{emoji:1f41e} Fix padding on a SubMenu inside an ItemGroup. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30218">#30218</a> <a href="https://github.com/sebakerckhof"><code>@​sebakerckhof</code></a></li>
<li>{emoji:1f41e} Fix Checkbox &amp; Radio align issue in flex box. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30260">#30260</a></li>
<li>{emoji:1f41e} Fix Badge broken animation on spin icon. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30275">#30275</a></li>
<li>{emoji:1f41e} Fix Input <code>disabled</code> hover style in Form. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30302">#30302</a> <a href="https://github.com/Fog3211"><code>@​Fog3211</code></a></li>
<li>TypeScript
<ul>
<li>� Fix Upload type definition of <code>beforeUpload</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30213">#30213</a> <a href="https://github.com/hello-chinese"><code>@​hello-chinese</code></a></li>
</ul>
</li>
</ul>
<h2>4.15.2</h2>
<p><code>2021-04-19</code></p>
<ul>
<li>{emoji:1f41e} Fix Tabs <code>centered</code> doesn't work. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30106">#30106</a> <a href="https://github.com/kerm1it"><code>@​kerm1it</code></a></li>
<li>{emoji:1f484} Fix Button <code>type=&quot;link&quot;</code> disabled cursor style missing. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30197">#30197</a></li>
<li>{emoji:1f41e} Fix TextArea <code>onChange</code> event return <code>target</code> object is not a HTMLTextArea object. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30124">#30124</a></li>
<li>{emoji:1f41e} Files in Upload <code>fileList</code> will always have uid. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30087">#30087</a> <a href="https://github.com/jameslahm"><code>@​jameslahm</code></a></li>
<li>{emoji:1f484} Fix Badge toggle style when <code>status</code> is <code>warning</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30090">#30090</a> <a href="https://github.com/jameslahm"><code>@​jameslahm</code></a></li>
<li>{emoji:1f310} Add Image component <code>preview</code> text in zh_HK and zh_TW. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30100">#30100</a> <a href="https://github.com/jameslahm"><code>@​jameslahm</code></a></li>
<li>{emoji:1f310} add da_DK locale TimePicker.RangePicker. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30128">#30128</a> <a href="https://github.com/themitvp"><code>@​themitvp</code></a></li>
<li>TypeScript
<ul>
<li>� Modify LIST_IGNORE field is of string type. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/30188">#30188</a> <a href="https://github.com/hello-chinese"><code>@​hello-chinese</code></a></li>
</ul>
</li>
</ul>
<h2>4.15.1</h2>
<p><code>2021-04-10</code></p>
<ul>
<li>{emoji:1f41e} Fix Descriptions <code>labelStyle</code> <code>contentStyle</code> unsuccessful when <code>layout=&quot;vertical&quot;</code> and <code>bordered={true}</code>. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/29942">#29942</a></li>
<li>{emoji:1f41e} Upload won't crash when <code>fileList</code> is a frozen object now. <a href="https://github-redirect.dependabot.com/ant-design/ant-design/pull/29944">#29944</a></li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d9f41aaa06"><code>d9f41aa</code></a> docs: 4.15.4 changelog (<a href="https://github-redirect.dependabot.com/ant-design/ant-design/issues/30376">#30376</a>)</li>
<li><a href="a39e51a8c1"><code>a39e51a</code></a> fix(layout-sider): menu-item width is wrong when collapsedWidth is set (<a href="https://github-redirect.dependabot.com/ant-design/ant-design/issues/30357">#30357</a>)</li>
<li><a href="3b51792f9c"><code>3b51792</code></a> chore(deps-dev): bump css-minimizer-webpack-plugin from 1.3.0 to 2.0.0 (<a href="https://github-redirect.dependabot.com/ant-design/ant-design/issues/30108">#30108</a>)</li>
<li><a href="a4f503c720"><code>a4f503c</code></a> test: add more space test coverage (<a href="https://github-redirect.dependabot.com/ant-design/ant-design/issues/30369">#30369</a>)</li>
<li><a href="da7f8a7bf1"><code>da7f8a7</code></a> chore: Adjust Radio spin style (<a href="https://github-redirect.dependabot.com/ant-design/ant-design/issues/30367">#30367</a>)</li>
<li><a href="dd88e30586"><code>dd88e30</code></a> fix(upload): beforeUpload type definition (<a href="https://github-redirect.dependabot.com/ant-design/ant-design/issues/30351">#30351</a>)</li>
<li><a href="60cad5a765"><code>60cad5a</code></a> fix(typography): <code>editable</code> should not trigger links (<a href="https://github-redirect.dependabot.com/ant-design/ant-design/issues/30354">#30354</a>)</li>
<li><a href="ab83346a5a"><code>ab83346</code></a> Update avatar.md</li>
<li><a href="4ccbf1fd0f"><code>4ccbf1f</code></a> fix(upload): UploadFile type definition (<a href="https://github-redirect.dependabot.com/ant-design/ant-design/issues/30343">#30343</a>)</li>
<li><a href="fa80ae5a0a"><code>fa80ae5</code></a> test: more test case (<a href="https://github-redirect.dependabot.com/ant-design/ant-design/issues/30340">#30340</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/ant-design/ant-design/compare/4.12.2...4.15.4">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=antd&package-manager=npm_and_yarn&previous-version=4.12.2&new-version=4.15.4)](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>

Pull Request resolved: https://github.com/facebook/flipper/pull/2301

Reviewed By: passy

Differential Revision: D28323870

Pulled By: cekkaewnumchai

fbshipit-source-id: 81ce65d6cce44d8ac32730125844ac9dff68da3c
2021-05-11 05:51:56 -07:00
dependabot[bot]
ec356309c0 Bump @emotion/react from 11.1.5 to 11.4.0 in /desktop (#2302)
Summary:
Bumps [emotion/react](https://github.com/emotion-js/emotion) from 11.1.5 to 11.4.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/emotion-js/emotion/releases"><code>@​emotion/react</code>'s releases</a>.</em></p>
<blockquote>
<h2><code>@​emotion/react</code><a href="https://github.com/11"><code>@​11</code></a>.4.0</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a href="https://github-redirect.dependabot.com/emotion-js/emotion/pull/2334">#2334</a> <a href="7d9e74f8f0"><code>7d9e74f8</code></a> Thanks <a href="https://github.com/Andarist"><code>@​Andarist</code></a>! - The Global component no longer replaces style elements from server-rendering on first mount and instead reuses the server-side rendered style element</p>
</li>
<li>
<p>Updated dependencies [<a href="38f9d44f91"><code>38f9d44f</code></a>]:</p>
<ul>
<li><code>@​emotion/cache</code><a href="https://github.com/11"><code>@​11</code></a>.4.0</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3a8eaac14c"><code>3a8eaac</code></a> Version Packages (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2365">#2365</a>)</li>
<li><a href="7d9e74f8f0"><code>7d9e74f</code></a> feat(server): add extractCriticalToChunks (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2334">#2334</a>)</li>
<li><a href="38f9d44f91"><code>38f9d44</code></a> Fix moving of client-side inserted style tags from Emotion 10 when intending ...</li>
<li><a href="780bc17cc7"><code>780bc17</code></a> Upgrade Changesets</li>
<li><a href="2463507409"><code>2463507</code></a> Added Frontity to the in the wild list (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2362">#2362</a>)</li>
<li><a href="6c4a9e50f1"><code>6c4a9e5</code></a> Fix slack invite link</li>
<li><a href="f3c51e8aca"><code>f3c51e8</code></a> 📝 Updated readme of <code>@​emotion/cache</code> for key attribute. (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2346">#2346</a>)</li>
<li><a href="d759ae1298"><code>d759ae1</code></a> Switch to GitHub actions (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2347">#2347</a>)</li>
<li><a href="4d7efcb33c"><code>4d7efcb</code></a> Run Windows on CI (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2341">#2341</a>)</li>
<li><a href="f36b946b4b"><code>f36b946</code></a> Version Packages (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2339">#2339</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/emotion-js/emotion/compare/emotion/react@11.1.5...@emotion/react@11.4.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@emotion/react&package-manager=npm_and_yarn&previous-version=11.1.5&new-version=11.4.0)](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>

Pull Request resolved: https://github.com/facebook/flipper/pull/2302

Reviewed By: mweststrate

Differential Revision: D28323892

Pulled By: cekkaewnumchai

fbshipit-source-id: 94464b2230470c1aa945121eae85fbc6715d4b6a
2021-05-11 05:51:56 -07:00
Pascal Hartig
b6fa34b7c7 Daily bumps
Summary: Trying to make some bumps a daily habit.

Reviewed By: mweststrate

Differential Revision: D28260273

fbshipit-source-id: 29d163af3e3acc55139b52320992123b72de22c4
2021-05-07 03:52:55 -07:00
Michel Weststrate
ac0e28a2b1 Introduce some warnings if plugins send to much data
Reviewed By: passy

Differential Revision: D28253456

fbshipit-source-id: 00259076a86cf53ee80282c798c229460d7e4633
2021-05-06 08:23:23 -07:00
Pascal Hartig
8e80ae980d Improve error handling for corrupt images/videos
Summary: We can't fix the underlying issue but it's quite frustrating when you get an error from Preview or QuickTime after the file was pulled. This improves the messaging a little.

Reviewed By: mweststrate

Differential Revision: D28096087

fbshipit-source-id: 0428fa821a225a02e81574f16d066085e8775251
2021-05-06 07:20:16 -07:00
Pascal Hartig
92bed19131 Bump fs-extra
Summary: Nothing crazy in the changelog.

Reviewed By: mweststrate

Differential Revision: D28228756

fbshipit-source-id: 0f71badee0312dcb479ab1f20b25fc0e45e18c10
2021-05-06 05:53:48 -07:00
Pascal Hartig
c97e422e5f Bump deps
Summary: Bump a few more devDeps that are safe.

Reviewed By: mweststrate

Differential Revision: D28227971

fbshipit-source-id: 3b35b098230b604930d875ddf8867cfc6f56a9c7
2021-05-06 05:53:48 -07:00
Anthony Dubis
bb2342a2b9 Re-integrate bug report traces after Sandy Migration
Summary:
The migration to Sandy (D28060888) breaks the existing integration we have with importing Flipper traces from bug reports. Given that, I broke this diff out from that one just to highlight the changes.

`pluginStates2` appears to be the field to use for Sandy traces (rather than `store`, which we were using before)

Differential Revision: D28209561

fbshipit-source-id: 9803e1a60b1b1deba6403b50b4079aac2a19efa6
2021-05-05 07:39:43 -07:00
Michel Weststrate
01ea822341 Code shuffle
Summary:
Moved a lot of utility logic in separate files for Android and iOS, to make cleanup in next diffs easier by having a bit smaller files.

Purely a code shuffle, no functional changes

Reviewed By: passy

Differential Revision: D28102399

fbshipit-source-id: 2fd8f6669bdd2804fa8a7e1791c610ae7883eda6
2021-05-04 13:50:31 -07:00
Michel Weststrate
c0633652e8 Fix notification handling
Summary:
Changelog: Fixed application crash notifications not opening the crash log

Crashlog notifications were quite blatantly broken:
1. Because I force all GK's to true locally during testing, and the feature gate is negative, I never had any crash reports in the first place. The GK was empty so removed it.
2. The notifications overview would always cause a NPE when the notification came from a device plugin (it assumed a client to be present). This made the button do nothing and the device name not show up near the notification
3. The OS level notifications would link to the notification screen, which was a static screen in the classic UI and would always render to an empty page in Sandy. Removed that screen from the code base. Instead the click the notification will now trigger the notification action.

Reviewed By: passy

Differential Revision: D28119719

fbshipit-source-id: 5b28dd854260fd479d09e3ee6206301cc669ab40
2021-05-04 13:50:31 -07:00
Michel Weststrate
5bf9541e05 Standardize CodeBlock component
Summary:
Code blocks are quite common in Flipper, and a bit verbose in Ant, so let's standardize!

Changelog: Standardize CodeBlock component

Reviewed By: passy

Differential Revision: D28117560

fbshipit-source-id: 5a5538a49b59ef40c814d22055fac56e7598cbbb
2021-05-04 13:50:31 -07:00
Anton Nikolaev
368dd4a5ab Remove Value/renderValue public API from "flipper"
Summary:
Moving Value/renderValue API to "database" plugin as these APIs used exclusively by this plugin.

Alternative to that could be moving this API to "flipper-plugin" instead, but I think it doesn't make sense to expose public API which is only used in one plugin.

Reviewed By: mweststrate

Differential Revision: D28110483

fbshipit-source-id: 1576444681c1e0531fe45f0c15f442d65a28f803
2021-04-30 09:38:15 -07:00