Commit Graph

3280 Commits

Author SHA1 Message Date
Pascal Hartig
22e28a4f3e Bump prettier from 2.6.2 to 2.8.7 in /desktop
Summary: Updates prettier and applies the fixes.

Reviewed By: antonk52

Differential Revision: D45087515

fbshipit-source-id: 226814ab4805eb12e64c2134407164498c708c0a
2023-04-19 03:04:19 -07:00
Pascal Hartig
0c85da8651 Demote unhelpful "Network Error" from axios to warning
Summary:
Axios can create rather unhelpful errors, e.g. https://www.internalfb.com/logview/details/flipper_javascript/3201603bcb7148a3f37775f184dbda44?trace_key=f2a7f3d0e7b914b8a3adf30648263313&selected-logview-tab=shared

This should hopefully turn them into warnings.

Reviewed By: antonk52

Differential Revision: D45043390

fbshipit-source-id: 90108b7056943214d78ec9c235ac11aae9a7ecdc
2023-04-17 05:06:50 -07:00
Andrey Goncharov
ff85744911 Make DataView report window changes
Summary: Project: https://docs.google.com/document/d/1x-1ShlxXCM2od9JMO6PP14Cuqq0OrVe1Qd7FUwTos9A/edit

Reviewed By: antonk52

Differential Revision: D44748055

fbshipit-source-id: 409c272b12fb29c156efdaa1ab26d4d6a2936645
2023-04-06 10:10:34 -07:00
Andrey Goncharov
4e898eb01a Allow passing external virtualizedRef to DataTable
Summary: External virtualRef allows us to scroll the table programmatically whenever we want

Reviewed By: antonk52

Differential Revision: D44746968

fbshipit-source-id: ad8e0fb3b43881ed8f4ba114cd35c08643ef0d3b
2023-04-06 10:10:34 -07:00
Michel Weststrate
f63ea1f9bd fixed unhandled errors in React DevTools bridge
Summary:
Unhandled errors from this plugin where showing up in our monitoring, made sure the error is handled now. Lowered to warning as this is probably a transient / connection issue.

See https://www.internalfb.com/logview/details/flipper_javascript/e7180deffd12e5900be754026780edbe/?trace_key=6abbef91dc1324bab958ca420ca70356&selected-logview-tab=All+Traces

Reviewed By: lblasa

Differential Revision: D44729212

fbshipit-source-id: 4c83eeab13bd2eb5c6f8ec563a35092eaf15fe30
2023-04-06 03:20:42 -07:00
Michel Weststrate
d19fcb19a8 Don't die on timeout on fetching plugins
Summary: The error below was uncaught, showing up in our error monitoring, however, since it is a transient problem (probably an app not responding, too slow in startup, paused in a debuggger, emu being slow, whatever, this isn't actionable from our side, so lowered to warning

Reviewed By: lblasa

Differential Revision: D44717738

fbshipit-source-id: aefd5e58b4953f563ed155f7a252c130aaafe7ab
2023-04-06 03:20:42 -07:00
Michel Weststrate
cd7a6bfc40 Log queue overflows
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D44705144

fbshipit-source-id: 9a31d18c1f433bd09d399c3b4dce28726e1e9c72
2023-04-06 03:20:42 -07:00
generatedunixname89002005306973
8b33b25eda Flipper Release: v0.189.0
Summary: Releasing version 0.189.0

Reviewed By: ivanmisuno

Differential Revision: D44703759

fbshipit-source-id: 447ecacea6f9ae59ddedb405e5fa3915193bc50c
2023-04-06 03:15:40 -07:00
Andrey Goncharov
794c29f320 Add "overlay" sidebar position to MaterDetail
Summary: Project: https://docs.google.com/document/d/1x-1ShlxXCM2od9JMO6PP14Cuqq0OrVe1Qd7FUwTos9A/edit

Reviewed By: ivanmisuno

Differential Revision: D44706158

fbshipit-source-id: 16c70a7c9a414a6c32d690eb05ae5b08818dd400
2023-04-05 07:22:15 -07:00
Lorenzo Blasa
985a9eda33 Fix Visualiser cropping issue
Summary:
An issue was reported for the visualiser whereas there seemed to be some cropping taking place on the right hand side.

https://pxl.cl/2BhPT

The issue was the resizable panel and visualiser both were set with the same width.

The resizable panel was set as to have a gutter which was not taken into consideration, add this width to the panel width and that fixes the issue.

Also change box sizing model as to not affect the dimensions of the wireframe.

Reviewed By: LukeDefeo

Differential Revision: D44664377

fbshipit-source-id: e640af2090f7c3378e624626fe3ea5df631caa11
2023-04-04 22:10:39 -07:00
Lorenzo Blasa
a419aaaf1b Outer Border removal
Summary: Not in use, remove.

Reviewed By: LukeDefeo

Differential Revision: D44664459

fbshipit-source-id: 226fa7b36eea6696057f46ae482c16ca1959e099
2023-04-04 22:10:39 -07:00
Luke De Feo
a9b17ac637 Add log tailing infra and downgrade resize observer error to warn
Summary: Resize oberserver limit exceeded appears to be a benign error that we can safely ignore, added ability to change log level. Given we report errors to our user logs, fb log view and console the console log patching has been centralised and now logs are pushed to whatever destinations we have.

Reviewed By: lblasa

Differential Revision: D44666836

fbshipit-source-id: e028dbc52b00947097833f9f3619189226247e1d
2023-04-04 07:58:57 -07:00
Lorenzo Blasa
8f5fcf9444 FrameworkEventsInspector
Summary:
As events get bigger, this change includes the following:
- Dedicated event inspector
- Stacktrace viewer for events with stacktrace attribution
- Stacktrace viewer is displayed within a new BottomPanel. BottomPanel can display any React component and can be reused in the future in different use cases.

Reviewed By: LukeDefeo

Differential Revision: D44628768

fbshipit-source-id: 71a9ef87e71c9a17f58c2544a1aa356eed14ed27
2023-04-04 05:54:42 -07:00
Andrey Goncharov
7f111a11de Expose isConnected and currentUser
Summary: Requested by antonk52 and MSYS team

Reviewed By: passy

Differential Revision: D44662243

fbshipit-source-id: 2bace476c4e79b6a05bfb89ddc3e6acb437c6c3b
2023-04-04 05:26:31 -07:00
Andrey Goncharov
f8a1f38c0a Set flipperLib implementation automatically in unit tests
Summary: This way plugins get something meaningful when they call `getFlipperLib()` in their tests

Reviewed By: LukeDefeo

Differential Revision: D44662821

fbshipit-source-id: c13800f9d8e905ae4a89955f2186adb816730b77
2023-04-04 05:26:31 -07:00
Andrey Goncharov
b3307baafe Make isLoggedIn report user value instead of bool
Summary: It makes little sense to hide this info from developers. It was also requested by antonk52

Reviewed By: LukeDefeo

Differential Revision: D44631235

fbshipit-source-id: 1756c5ca2a95b2f815f8c4336621d3c057b704f2
2023-04-04 05:26:31 -07:00
Andrey Goncharov
7edaf24d5c Deprecate isLoggedIn request
Summary: It no longer makes sense since we are going to export "isLoggedIn" atom that always stays up-to-date in subsequent diffs

Reviewed By: LukeDefeo

Differential Revision: D44631234

fbshipit-source-id: 3e3b29b77d250eef430e81eef80098afe38a1538
2023-04-04 05:26:31 -07:00
Lorenzo Blasa
b0a8dbca01 MarkerTimeline to show a more obvious selected state
Summary:
When a marker is selected, it was difficult to notice any style differences.

This changes makes it more obvious when a marker is selected.

Reviewed By: antonk52, aigoncharov

Differential Revision: D44628828

fbshipit-source-id: c4634338e04969f3d973137ad861cb999b28c139
2023-04-04 04:05:15 -07:00
Lorenzo Blasa
d127ac76ac Remove console logs for events
Summary:
May be a debugging left-over, remove.

https://pxl.cl/2B9bg

Reviewed By: LukeDefeo

Differential Revision: D44630930

fbshipit-source-id: a585a54f807259d50b38fc62df21c30cefcb6510
2023-04-04 03:55:44 -07:00
Lorenzo Blasa
f210ec809f Propagate onClick for TimelineDataDescription
Summary:
`onClick` was not getting called if it wasn't paired with `canSetCurrent`.

Ultimately, we can benefit from propagating this event in all cases as to give indication of whenever a marker has been selected.

Reviewed By: antonk52, aigoncharov

Differential Revision: D44628819

fbshipit-source-id: bee910b48ad065d7479e247fbacdcd738f281b26
2023-04-03 10:35:15 -07:00
Lorenzo Blasa
e4eecc53c4 EventAttribution -> FrameworkEventAttribution
Summary:
Make it more specific as to keep it consistent with the other types.
Do not export JSON.

Reviewed By: antonk52

Differential Revision: D44625218

fbshipit-source-id: 9cab52ee7e7be21d13f85102597a60c9be967fd0
2023-04-03 10:35:15 -07:00
Lorenzo Blasa
0c4ec03e69 Add event payload as event properties for the timeline view
Summary: Leverage the properties prop of `TimelineDataDescription`. Whenever an event is selected, the event payload is shown as the event properties.

Reviewed By: antonk52

Differential Revision: D44497058

fbshipit-source-id: 09782d583957a0df8c3efd3f5a62af6b321a26e3
2023-04-03 10:35:15 -07:00
Lorenzo Blasa
ce2bfe320b Payload and attribution for framework events
Summary: ^

Reviewed By: LukeDefeo

Differential Revision: D44496975

fbshipit-source-id: 4f633d0f00239cac16ee332d35755b343d46b124
2023-04-03 10:35:15 -07:00
generatedunixname89002005306973
af1842a027 Flipper Release: v0.188.0
Summary: Releasing version 0.188.0

Reviewed By: LukeDefeo

Differential Revision: D44628090

fbshipit-source-id: a6f22b743331e3e18f2a2787e2fb6471b32cd430
2023-04-03 08:52:01 -07:00
Lorenzo Blasa
04911d9d85 Tabs need key now
Summary: Because Tabs now depend on the selected node (i.e. some nodes have events, some don't) they need to use a key.

Reviewed By: antonk52

Differential Revision: D44624658

fbshipit-source-id: 693983f6a82c090adae3a2e009873d903626ab75
2023-04-03 04:39:25 -07:00
Andrey Goncharov
5b0ae2a4f8 Fix NPE when activeChildIdx points to the non-existent entry
Summary:
Based on the stack trace in T145744183, `activeChildIdx` could point to a non-existent array element.
Previously, we used to:
1) Find the index of the activeChild in the non-filtered array of children
2) Filter the array

As a result, it could lead to some of the elements in the child array to be filtered and shifting activeChildIdx, making it invalid.

Now, we search activeChild in the already filtered array.

Reviewed By: LukeDefeo

Differential Revision: D44575170

fbshipit-source-id: 2cb9a0b24badc8509a859011694f77b048d93316
2023-03-31 07:21:28 -07:00
Lorenzo Blasa
695c669e0c TimelineDataDescription to accept any properties
Summary: DataInspector can use `any` value to inspect. Lift the constraint from TimelineDataDescription as ultimately is not necessary i.e. the right inspector will be used based on the type of properties.

Reviewed By: antonk52

Differential Revision: D44572963

fbshipit-source-id: ad8a257020c90e18468e905f2beda44c2ee06368
2023-03-31 04:15:29 -07:00
Luke De Feo
2e8427f26b Add getUser back as deprecated method
Summary: On downloading  the new flipper update some of the older plugins which are on a different release cycle may try to call getUser which was removed in this stack in favour of getCached user and fetchUser, adding this back temporarily so those calls dont fail. This can be removed down the road once those plugins have soaked into the user base

Reviewed By: ivanmisuno, aigoncharov

Differential Revision: D44541277

fbshipit-source-id: 95e67d5ba11bbc26590d2789127cbf6a68c54f16
2023-03-30 10:05:59 -07:00
Luke De Feo
140ca5991e Dont show token notification when sign in sheet open
Summary: This is an edge case where if we make a intern call  to fetch user with an invalid token we would imply that the token may have expired. Since we already have a error message in the sign in sheet we dont show the notification

Reviewed By: aigoncharov

Differential Revision: D44502480

fbshipit-source-id: 531df6db28bc2a6f36ffcf0a3903ee0e8e40be0f
2023-03-30 10:05:59 -07:00
Luke De Feo
e47d99a69e Remove unused plugin update command / redux action
Summary:
This command is never actually dispatched so removing to avoid future confusion.

When new plugins are downloaded a check is done here https://fburl.com/code/e3zedljb to see if pluginIsDisabledForAllConnectedClients, if so, load command is queued, which internally calls update (which resets state)

If the plugin is not disabled then a message appears asking user to manually reload.

Reviewed By: aigoncharov

Differential Revision: D44502476

fbshipit-source-id: b796b77f843218c07ee612d9f45cacba073362d3
2023-03-30 10:05:59 -07:00
Luke De Feo
f8e326f4d5 Rename login/logout of reducer to setUserProfile
Summary: The source of truth for logging in is the atom, the userprofile is a side effect and is cached so calling these actions login/logout is very confusing, especially considering those functions exist elsewhere that manage the atoms

Reviewed By: aigoncharov

Differential Revision: D44502481

fbshipit-source-id: 77080cc02134684a58f52fcad74041b4508a22f0
2023-03-30 10:05:59 -07:00
Luke De Feo
ea22ed8f56 Force logged in
Summary:
This diff introduces a few changes:
The login sheet is no longer closable via the x or clicking outside the modal, the cancel button is removed
On startup we check if we have a toke and throw up the sheet
if logout occurs for any reason we throw up the sheet

renamed write_keychain to login, to be consstent with the logout method. It does more than write to key chain since it manages the logged in atom also

Reviewed By: aigoncharov

Differential Revision: D44502483

fbshipit-source-id: 1d91d4eaae65ca523a08e205d1ad730d4d4d090f
2023-03-30 10:05:59 -07:00
Luke De Feo
90069381e8 Clean up cache and redux store after logout
Summary: There were redundant places we were cleaning up and logging out, now all syncronisation between the atom world and everything else is done via the atom subscription.

Reviewed By: aigoncharov

Differential Revision: D44463888

fbshipit-source-id: 9fc2af64b1e0667dd852096557107a48f2fa924c
2023-03-30 10:05:59 -07:00
Luke De Feo
91c5a11e1b Add state to login button when disconnected
Summary: Indicate intern connection state via an icon, now that we are polling when offline this icon automatically goes away one we reconnect

Reviewed By: aigoncharov

Differential Revision: D44502479

fbshipit-source-id: fb411940f1e4cad50539fe08df6d6194b176404a
2023-03-30 10:05:59 -07:00
Luke De Feo
3a85835a9a Sync login atom to prescense of token
Summary:
Logged in state now means that we have a valid token. On startup we try to retrieve a token, if its there then we are logged in, if we remove the tokem, due to explicit logout, or if its expired we are logged out.

Connected is more dynamic, it means we can actually hit intern with a sucessful response. It implicitly requires a token / being logged in

Reviewed By: aigoncharov

Differential Revision: D44502482

fbshipit-source-id: e3077101766cba5128a61d62be3bbd1ca1f00b4f
2023-03-30 10:05:59 -07:00
Luke De Feo
5a6091f6f8 Left rail log in icon decided by atom, cache user profile
Summary:
Previously the left rail state was decided by prescense of user profile but we are moving to logged in state being based on the atom.

As a result we need to cache the user profile so we have something to display when user not on vpn on startup

Reviewed By: aigoncharov

Differential Revision: D44502477

fbshipit-source-id: 11462d24c773d6d364e844b4f606e124e5278348
2023-03-30 10:05:59 -07:00
Lorenzo Blasa
cb11b360fc Use theme colours
Summary:
Stacktrace component was not properly displaying on Light/Dark mode as it was using colours not from the theme.

This change addresses that.

Reviewed By: ivanmisuno

Differential Revision: D44537750

fbshipit-source-id: 1d95313bfc9b5ef386864fa230348b76dce6d648
2023-03-30 08:43:54 -07:00
Anton Kastritskiy
2a52656d0b do not strip comments with tsc
Summary: Since tsc strips comments when writing plugins the dx is lacking as the doumentated comments are not discoverable via hovers in text editors

Reviewed By: aigoncharov

Differential Revision: D44498403

fbshipit-source-id: 8fe262f2d815adfbe989ece5d783359c9af4d180
2023-03-29 06:19:26 -07:00
Andrey Goncharov
35c145463a Limit notification length
Summary: See https://fb.workplace.com/groups/flippersupport/permalink/1593262167821102/

Reviewed By: antonk52

Differential Revision: D44459787

fbshipit-source-id: ef14e560c523fddf4f815d0faafa37e44dc416b8
2023-03-28 07:00:20 -07:00
Andrey Goncharov
13275f77be Use Buffer polyfill
Summary: Buffer is not available in the browser

Reviewed By: lblasa

Differential Revision: D44416645

fbshipit-source-id: 9cca069b8b0111f96bb47628e5f2196a22c9812d
2023-03-28 04:45:06 -07:00
Andrey Goncharov
4b5357da7e Allow relative import from package root inside of top-level fb folder
Reviewed By: LukeDefeo

Differential Revision: D44415645

fbshipit-source-id: d19c5144f9ee374cde0727f93f583552664bc806
2023-03-28 02:16:43 -07:00
Lorenzo Blasa
7f2a0c94f9 Deprecate Layout plugin
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D44417781

fbshipit-source-id: 7ffb369d88771901c9ffca2bbe8ecbd571373a77
2023-03-27 07:32:23 -07:00
generatedunixname89002005306973
bc9d53660a Flipper Release: v0.187.1
Summary: Releasing version 0.187.1

Reviewed By: aigoncharov

Differential Revision: D44416758

fbshipit-source-id: 2c390e1124c63d873fc442dcdfba7a9ac272530e
2023-03-27 06:51:43 -07:00
Andrey Goncharov
09f7bcf878 Fail fast if DataSourceRendererVirtual references an non-existent value
Reviewed By: ivanmisuno

Differential Revision: D44417205

fbshipit-source-id: 043b3b12ea44d85f1fb02e2cf030b4c9cc7e5087
2023-03-27 06:50:59 -07:00
Andrey Goncharov
ccdc6735c6 Log mock errors only for connected devices
Reviewed By: antonk52

Differential Revision: D44367935

fbshipit-source-id: e6de3bf08d9daef9e607b9d24200892f4d04ecd2
2023-03-24 06:34:38 -07:00
Andrey Goncharov
905f5eea0f Back out "Bump @oclif/command from 1.8.16 to 1.8.22 in /desktop"
Summary:
Original commit changeset: a9b2be74bd3f

Original Phabricator Diff: D43905200

It seems that ti caused NPM publishing to start failing
https://github.com/facebook/flipper/actions/workflows/publish-npm.yml

Reviewed By: passy

Differential Revision: D44367845

fbshipit-source-id: eef31c80561872d40babe03227a3ce0fc32eee72
2023-03-24 06:13:54 -07:00
Luke De Feo
77905f30c8 Add context to AbstractClient rawCall errors
Summary: Attempting to fix T146503217. There is no context to the error so this should make it easier in the future. In the MID it says that the layout plugin was selected i made sure to handle any promise rejections in that plugin

Reviewed By: passy

Differential Revision: D44302939

fbshipit-source-id: 987e2c4efd2dc47d2e032d1b21f90458ec5a2df5
2023-03-24 04:28:58 -07:00
dependabot[bot]
075de45076 Bump react-refresh from 0.11.0 to 0.14.0 in /desktop (#4540)
Summary:
Bumps [react-refresh](https://github.com/facebook/react/tree/HEAD/packages/react) from 0.11.0 to 0.14.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/react/releases">react-refresh's releases</a>.</em></p>
<blockquote>
<h2>v0.14.0</h2>
<p>See <a href="http://facebook.github.io/react/blog/2015/10/07/react-v0.14.html">http://facebook.github.io/react/blog/2015/10/07/react-v0.14.html</a>.</p>
<h2>v0.13.3</h2>
<h3>React Core</h3>
<h4>New Features</h4>
<ul>
<li>Added <code>clipPath</code> element and attribute for SVG</li>
<li>Improved warnings for deprecated methods in plain JS classes</li>
</ul>
<h4>Bug Fixes</h4>
<ul>
<li>Loosened <code>dangerouslySetInnerHTML</code> restrictions so <code>{__html: undefined}</code> will no longer throw</li>
<li>Fixed extraneous context warning with non-pure <code>getChildContext</code></li>
<li>Ensure <code>replaceState(obj)</code> retains prototype of <code>obj</code></li>
</ul>
<h3>React with Add-ons</h3>
<h3>Bug Fixes</h3>
<ul>
<li>Test Utils: Ensure that shallow rendering works when components define <code>contextTypes</code></li>
</ul>
<h2>v0.13.2</h2>
<h3>React Core</h3>
<h4>New Features</h4>
<ul>
<li>Added <code>strokeDashoffset</code>, <code>flexPositive</code>, <code>flexNegative</code> to the list of unitless CSS properties</li>
<li>Added support for more DOM properties:
<ul>
<li><code>scoped</code> - for <code>&lt;style&gt;</code> elements</li>
<li><code>high</code>, <code>low</code>, <code>optimum</code> - for <code>&lt;meter&gt;</code> elements</li>
<li><code>unselectable</code> - IE-specific property to prevent user selection</li>
</ul>
</li>
</ul>
<h4>Bug Fixes</h4>
<ul>
<li>Fixed a case where re-rendering after rendering null didn't properly pass context</li>
<li>Fixed a case where re-rendering after rendering with <code>style={null}</code> didn't properly update <code>style</code></li>
<li>Update <code>uglify</code> dependency to prevent a bug in IE8</li>
<li>Improved warnings</li>
</ul>
<h3>React with Add-Ons</h3>
<h4>Bug Fixes</h4>
<ul>
<li>Immutabilty Helpers: Ensure it supports <code>hasOwnProperty</code> as an object key</li>
</ul>
<h3>React Tools</h3>
<ul>
<li>Improve documentation for new options</li>
</ul>
<h2>v0.13.1</h2>
<h3>React Core</h3>
<h4>Bug Fixes</h4>
<ul>
<li>Don't throw when rendering empty <code>&lt;select&gt;</code> elements</li>
<li>Ensure updating <code>style</code> works when transitioning from <code>null</code></li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/react/blob/main/CHANGELOG.md">react-refresh's changelog</a>.</em></p>
<blockquote>
<h2>0.14.0 (October 7, 2015)</h2>
<h3>Major changes</h3>
<ul>
<li>Split the main <code>react</code> package into two: <code>react</code> and <code>react-dom</code>.  This paves the way to writing components that can be shared between the web version of React and React Native.  This means you will need to include both files and some functions have been moved from <code>React</code> to <code>ReactDOM</code>.</li>
<li>Addons have been moved to separate packages (<code>react-addons-clone-with-props</code>, <code>react-addons-create-fragment</code>, <code>react-addons-css-transition-group</code>, <code>react-addons-linked-state-mixin</code>, <code>react-addons-perf</code>, <code>react-addons-pure-render-mixin</code>, <code>react-addons-shallow-compare</code>, <code>react-addons-test-utils</code>, <code>react-addons-transition-group</code>, <code>react-addons-update</code>, <code>ReactDOM.unstable_batchedUpdates</code>).</li>
<li>Stateless functional components - React components were previously created using React.createClass or using ES6 classes.  This release adds a <a href="https://reactjs.org/docs/reusable-components.html#stateless-functions">new syntax</a> where a user defines a single <a href="https://reactjs.org/docs/reusable-components.html#stateless-functions">stateless render function</a> (with one parameter: <code>props</code>) which returns a JSX element, and this function may be used as a component.</li>
<li>Refs to DOM components as the DOM node itself. Previously the only useful thing you can do with a DOM component is call <code>getDOMNode()</code> to get the underlying DOM node. Starting with this release, a ref to a DOM component <em>is</em> the actual DOM node. <strong>Note that refs to custom (user-defined) components work exactly as before; only the built-in DOM components are affected by this change.</strong></li>
</ul>
<h3>Breaking changes</h3>
<ul>
<li><code>React.initializeTouchEvents</code> is no longer necessary and has been removed completely. Touch events now work automatically.</li>
<li>Add-Ons: Due to the DOM node refs change mentioned above, <code>TestUtils.findAllInRenderedTree</code> and related helpers are no longer able to take a DOM component, only a custom component.</li>
<li>The <code>props</code> object is now frozen, so mutating props after creating a component element is no longer supported. In most cases, <a href="https://reactjs.org/docs/react-api.html#cloneelement"><code>React.cloneElement</code></a> should be used instead. This change makes your components easier to reason about and enables the compiler optimizations mentioned above.</li>
<li>Plain objects are no longer supported as React children; arrays should be used instead. You can use the <a href="https://reactjs.org/docs/create-fragment.html"><code>createFragment</code></a> helper to migrate, which now returns an array.</li>
<li>Add-Ons: <code>classSet</code> has been removed. Use <a href="https://github.com/JedWatson/classnames">classnames</a> instead.</li>
<li>Web components (custom elements) now use native property names.  Eg: <code>class</code> instead of <code>className</code>.</li>
</ul>
<h3>Deprecations</h3>
<ul>
<li><code>this.getDOMNode()</code> is now deprecated and <code>ReactDOM.findDOMNode(this)</code> can be used instead. Note that in the common case, <code>findDOMNode</code> is now unnecessary since a ref to the DOM component is now the actual DOM node.</li>
<li><code>setProps</code> and <code>replaceProps</code> are now deprecated. Instead, call ReactDOM.render again at the top level with the new props.</li>
<li>ES6 component classes must now extend <code>React.Component</code> in order to enable stateless function components. The <a href="https://reactjs.org/blog/2015/01/27/react-v0.13.0-beta-1.html#other-languages">ES3 module pattern</a> will continue to work.</li>
<li>Reusing and mutating a <code>style</code> object between renders has been deprecated. This mirrors our change to freeze the <code>props</code> object.</li>
<li>Add-Ons: <code>cloneWithProps</code> is now deprecated. Use <a href="https://reactjs.org/docs/react-api.html#cloneelement"><code>React.cloneElement</code></a> instead (unlike <code>cloneWithProps</code>, <code>cloneElement</code> does not merge <code>className</code> or <code>style</code> automatically; you can merge them manually if needed).</li>
<li>Add-Ons: To improve reliability, <code>CSSTransitionGroup</code> will no longer listen to transition events. Instead, you should specify transition durations manually using props such as <code>transitionEnterTimeout={500}</code>.</li>
</ul>
<h3>Notable enhancements</h3>
<ul>
<li>Added <code>React.Children.toArray</code> which takes a nested children object and returns a flat array with keys assigned to each child. This helper makes it easier to manipulate collections of children in your <code>render</code> methods, especially if you want to reorder or slice <code>this.props.children</code> before passing it down. In addition, <code>React.Children.map</code> now returns plain arrays too.</li>
<li>React uses <code>console.error</code> instead of <code>console.warn</code> for warnings so that browsers show a full stack trace in the console. (Our warnings appear when you use patterns that will break in future releases and for code that is likely to behave unexpectedly, so we do consider our warnings to be “must-fix” errors.)</li>
<li>Previously, including untrusted objects as React children <a href="http://danlec.com/blog/xss-via-a-spoofed-react-element">could result in an XSS security vulnerability</a>. This problem should be avoided by properly validating input at the application layer and by never passing untrusted objects around your application code. As an additional layer of protection, <a href="https://github-redirect.dependabot.com/facebook/react/pull/4832">React now tags elements</a> with a specific <a href="http://www.2ality.com/2014/12/es6-symbols.html">ES2015 (ES6) <code>Symbol</code></a> in browsers that support it, in order to ensure that React never considers untrusted JSON to be a valid element. If this extra security protection is important to you, you should add a <code>Symbol</code> polyfill for older browsers, such as the one included by <a href="https://babeljs.io/docs/usage/polyfill/">Babel’s polyfill</a>.</li>
<li>When possible, React DOM now generates XHTML-compatible markup.</li>
<li>React DOM now supports these standard HTML attributes: <code>capture</code>, <code>challenge</code>, <code>inputMode</code>, <code>is</code>, <code>keyParams</code>, <code>keyType</code>, <code>minLength</code>, <code>summary</code>, <code>wrap</code>. It also now supports these non-standard attributes: <code>autoSave</code>, <code>results</code>, <code>security</code>.</li>
<li>React DOM now supports these SVG attributes, which render into namespaced attributes: <code>xlinkActuate</code>, <code>xlinkArcrole</code>, <code>xlinkHref</code>, <code>xlinkRole</code>, <code>xlinkShow</code>, <code>xlinkTitle</code>, <code>xlinkType</code>, <code>xmlBase</code>, <code>xmlLang</code>, <code>xmlSpace</code>.</li>
<li>The <code>image</code> SVG tag is now supported by React DOM.</li>
<li>In React DOM, arbitrary attributes are supported on custom elements (those with a hyphen in the tag name or an <code>is=&quot;...&quot;</code> attribute).</li>
<li>React DOM now supports these media events on <code>audio</code> and <code>video</code> tags: <code>onAbort</code>, <code>onCanPlay</code>, <code>onCanPlayThrough</code>, <code>onDurationChange</code>, <code>onEmptied</code>, <code>onEncrypted</code>, <code>onEnded</code>, <code>onError</code>, <code>onLoadedData</code>, <code>onLoadedMetadata</code>, <code>onLoadStart</code>, <code>onPause</code>, <code>onPlay</code>, <code>onPlaying</code>, <code>onProgress</code>, <code>onRateChange</code>, <code>onSeeked</code>, <code>onSeeking</code>, <code>onStalled</code>, <code>onSuspend</code>, <code>onTimeUpdate</code>, <code>onVolumeChange</code>, <code>onWaiting</code>.</li>
<li>Many small performance improvements have been made.</li>
<li>Many warnings show more context than before.</li>
<li>Add-Ons: A <a href="https://github-redirect.dependabot.com/facebook/react/pull/3355"><code>shallowCompare</code></a> add-on has been added as a migration path for <code>PureRenderMixin</code> in ES6 classes.</li>
<li>Add-Ons: <code>CSSTransitionGroup</code> can now use <a href="https://github.com/facebook/react/blob/48942b85/docs/docs/10.1-animation.md#custom-classes">custom class names</a> instead of appending <code>-enter-active</code> or similar to the transition name.</li>
</ul>
<h3>New helpful warnings</h3>
<ul>
<li>React DOM now warns you when nesting HTML elements invalidly, which helps you avoid surprising errors during updates.</li>
<li>Passing <code>document.body</code> directly as the container to <code>ReactDOM.render</code> now gives a warning as doing so can cause problems with browser extensions that modify the DOM.</li>
<li>Using multiple instances of React together is not supported, so we now warn when we detect this case to help you avoid running into the resulting problems.</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3603d45157"><code>3603d45</code></a> v0.14.0</li>
<li><a href="693dd3567b"><code>693dd35</code></a> Update to fbjs@0.3</li>
<li><a href="4a4174b9e8"><code>4a4174b</code></a> 0.14.0-rc1</li>
<li><a href="c04d02e5e8"><code>c04d02e</code></a> Add warnings to React module</li>
<li><a href="52b4c9eabf"><code>52b4c9e</code></a> Upgrade to fbjs, fbjs-scripts @ 0.2</li>
<li><a href="b38509cade"><code>b38509c</code></a> Merge pull request <a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/4540">https://github.com/facebook/flipper/issues/4540</a> from scottburch/ie8-fix</li>
<li><a href="ecb34de574"><code>ecb34de</code></a> Upgrade ESLint, fix code</li>
<li><a href="3f6bca7b16"><code>3f6bca7</code></a> 0.14.0-beta3</li>
<li><a href="5f01a90954"><code>5f01a90</code></a> Update addons.js</li>
<li><a href="1da2b29897"><code>1da2b29</code></a> added suggested comment to get file to pass es-lint</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/react/commits/v0.14.0/packages/react">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~gnoff">gnoff</a>, a new releaser for react-refresh since your current version.</p>
</details>
<br />

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

Reviewed By: ivanmisuno

Differential Revision: D44215184

Pulled By: mweststrate

fbshipit-source-id: e8f33dfbfbe887d49c27f2dabbbc1548de3d10e9
2023-03-24 04:04:16 -07:00
dependabot[bot]
15e1c99245 Bump reselect from 4.1.5 to 4.1.7 in /desktop (#4541)
Summary:
Bumps [reselect](https://github.com/reduxjs/reselect) from 4.1.5 to 4.1.7.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/reduxjs/reselect/releases">reselect's releases</a>.</em></p>
<blockquote>
<h2>v4.1.7</h2>
<p>This release updates the TS types to work correctly with TS 4.9, which made a change that broke the existing <code>MergeParameters</code> type implementation.  Happily, the TS team <a href="https://github-redirect.dependabot.com/microsoft/TypeScript/pull/50831#issuecomment-1253830522">provided a better (and simpler!) <code>MergeParameters</code> implementation</a>.  Since that only works with TS 4.7+, we've reworked the internals to handle providing the old implementation to TS 4.2..4.6, and the new implementation to TS 4.7 and greater.</p>
<p>As a user, there should be no visible change - just update to 4.1.7.</p>
<h2>What's Changed</h2>
<ul>
<li>Include 4.6 in the TS test matrix by <a href="https://github.com/lukeapage"><code>@​lukeapage</code></a> in <a href="https://github-redirect.dependabot.com/reduxjs/reselect/pull/576">reduxjs/reselect#576</a></li>
<li>TS 4.9 compat by <a href="https://github.com/markerikson"><code>@​markerikson</code></a> in <a href="https://github-redirect.dependabot.com/reduxjs/reselect/pull/587">reduxjs/reselect#587</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/reduxjs/reselect/compare/v4.1.6...v4.1.7">https://github.com/reduxjs/reselect/compare/v4.1.6...v4.1.7</a></p>
<h2>v4.1.6</h2>
<p>This release updates the TS types to better handle cases with default parameters, or <code>any/unknown</code> types.</p>
<h2>What's Changed</h2>
<ul>
<li>Fix <a href="https://github-redirect.dependabot.com/reduxjs/reselect/issues/563">https://github.com/facebook/flipper/issues/563</a> - Make it an error when the typings become incorrect by <a href="https://github.com/lukeapage"><code>@​lukeapage</code></a> in <a href="https://github-redirect.dependabot.com/reduxjs/reselect/pull/572">reduxjs/reselect#572</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/reduxjs/reselect/compare/v4.1.5...v4.1.6">https://github.com/reduxjs/reselect/compare/v4.1.5...v4.1.6</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="32b66389b9"><code>32b6638</code></a> Release 4.1.7</li>
<li><a href="e4c2ace5cf"><code>e4c2ace</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/reduxjs/reselect/issues/587">https://github.com/facebook/flipper/issues/587</a> from reduxjs/feature/ts-4.9-compat</li>
<li><a href="11ed107b50"><code>11ed107</code></a> Rewrite <code>MergeParameters</code> to work with TS 4.9</li>
<li><a href="5b83d04e08"><code>5b83d04</code></a> Bump TS to 4.8</li>
<li><a href="f57ef857d4"><code>f57ef85</code></a> Move TS 4.1 types into <code>src/legacyTypes</code></li>
<li><a href="69a4ff4fab"><code>69a4ff4</code></a> Bump Prettier and RTK</li>
<li><a href="e5d99b9948"><code>e5d99b9</code></a> Update TS test matrix to 4.9 RC</li>
<li><a href="f53eb41d76"><code>f53eb41</code></a> Merge branch 'master' of github.com:reduxjs/reselect</li>
<li><a href="9d62d03456"><code>9d62d03</code></a> Release 4.1.6</li>
<li><a href="d49e4e1145"><code>d49e4e1</code></a> Give internal memoize callback functions names for dev readability</li>
<li>Additional commits viewable in <a href="https://github.com/reduxjs/reselect/compare/v4.1.5...v4.1.7">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: ivanmisuno

Differential Revision: D44215180

Pulled By: mweststrate

fbshipit-source-id: 9c39c40132f825a6dcffa74b7daad3dcb776d766
2023-03-24 04:04:16 -07:00
dependabot[bot]
fa8f108c01 Bump @emotion/babel-plugin from 11.10.2 to 11.10.6 in /desktop (#4554)
Summary:
Bumps [emotion/babel-plugin](https://github.com/emotion-js/emotion) from 11.10.2 to 11.10.6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/emotion-js/emotion/releases"><code>@​emotion/babel-plugin</code>'s releases</a>.</em></p>
<blockquote>
<h2><code>@​emotion/babel-plugin</code><a href="https://github.com/11"><code>@​11</code></a>.10.6</h2>
<h3>Patch Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/emotion-js/emotion/pull/2985">https://github.com/facebook/flipper/issues/2985</a> <a href="4e172c2ae4"><code>4e172c2a</code></a> Thanks <a href="https://github.com/emmatown"><code>@​emmatown</code></a>! - Remove peer dependency on <code>babel/core</code></li>
</ul>
<h2><code>@​emotion/babel-plugin</code><a href="https://github.com/11"><code>@​11</code></a>.10.5</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a href="https://github-redirect.dependabot.com/emotion-js/emotion/pull/2929">https://github.com/facebook/flipper/issues/2929</a> <a href="13afe0303e"><code>13afe030</code></a> Thanks <a href="https://github.com/Andarist"><code>@​Andarist</code></a>! - Updated the underlying parser (<a href="https://github.com/thysultan/stylis">stylis</a>).</p>
</li>
<li>
<p>Updated dependencies [<a href="c02b12145a"><code>c02b1214</code></a>]:</p>
<ul>
<li><code>@​emotion/serialize</code><a href="https://github.com/1"><code>@​1</code></a>.1.1</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="0283f88aa0"><code>0283f88</code></a> Version Packages (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2999">https://github.com/facebook/flipper/issues/2999</a>)</li>
<li><a href="4e172c2ae4"><code>4e172c2</code></a> Remove peer dependency on <code>babel/core</code> from most packages (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2985">https://github.com/facebook/flipper/issues/2985</a>)</li>
<li><a href="88ce707647"><code>88ce707</code></a> Add Feathery to the in the wild list (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2990">https://github.com/facebook/flipper/issues/2990</a>)</li>
<li><a href="acb72a4559"><code>acb72a4</code></a> Add explicit <code>permissions</code> to GitHub workflows (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2899">https://github.com/facebook/flipper/issues/2899</a>)</li>
<li><a href="92be52d894"><code>92be52d</code></a> Version Packages (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2885">https://github.com/facebook/flipper/issues/2885</a>)</li>
<li><a href="13afe0303e"><code>13afe03</code></a> Upgrade Stylis to a version with container queries support (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2929">https://github.com/facebook/flipper/issues/2929</a>)</li>
<li><a href="d8a13bcae8"><code>d8a13bc</code></a> Fork Stylis prefixer (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2890">https://github.com/facebook/flipper/issues/2890</a>)</li>
<li><a href="c1ee578cf1"><code>c1ee578</code></a> Remove unused <code>cx</code> import in a doc example (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2915">https://github.com/facebook/flipper/issues/2915</a>)</li>
<li><a href="4c0005f677"><code>4c0005f</code></a> Do not warn about <code>emotion/react</code> being loaded twice in Vitest (<a href="https://github-redirect.dependabot.com/emotion-js/emotion/issues/2905">https://github.com/facebook/flipper/issues/2905</a>)</li>
<li><a href="61c66963dd"><code>61c6696</code></a> Do not log failed rule insertions in the speedy mode for <code>-ms-expand</code> and `-m...</li>
<li>Additional commits viewable in <a href="https://github.com/emotion-js/emotion/compare/emotion/babel-plugin@11.10.2...@emotion/babel-plugin@11.10.6">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: ivanmisuno

Differential Revision: D44215177

Pulled By: mweststrate

fbshipit-source-id: beaf102cd8dd8937260f32ebb8760b1a51d68860
2023-03-24 04:04:16 -07:00