Commit Graph

1973 Commits

Author SHA1 Message Date
Benjamin Elo
cfcd0f060c Migrated components/index to TypeScript
Summary: Migrated components/index.js to components/index.tsx.

Reviewed By: danielbuechele

Differential Revision: D17132215

fbshipit-source-id: 76e03f9b4a509ad9c8faac484dc5b0ba7d1574e1
2019-09-02 04:13:42 -07:00
Benjamin Elo
a615259961 Migrated SearchBar to Typescript
Summary: Migrated SearchBar.js to SearchBar.tsx

Reviewed By: danielbuechele

Differential Revision: D17132221

fbshipit-source-id: ce1728bf06ba2a314c027e92456f947ab4781660
2019-09-02 04:13:41 -07:00
Benjamin Elo
10e90f3f57 Migrated Timeline to TypeScript
Summary: Migrated Timeline.js to Timeline.tsx

Reviewed By: danielbuechele

Differential Revision: D17132222

fbshipit-source-id: ffe5b74459d1f3ec48873a94a95c40e855aa45da
2019-09-02 04:13:41 -07:00
Benjamin Elo
d3023946da Removed ScollableFlexColumn component
Summary: This functionality already existed in FlexColumn by adding the prop grow.

Reviewed By: danielbuechele

Differential Revision: D17132219

fbshipit-source-id: d284f2c5e219beff743525abd344a8b9d1955d0b
2019-09-02 04:13:41 -07:00
Benjamin Elo
cdd7793428 Migrated SaveBookmarkDialog to TypeScript
Summary: Migrated SaveBookmarkDialog.js to SaveBookmarkDialog.tsx

Reviewed By: danielbuechele

Differential Revision: D17132225

fbshipit-source-id: 34de69069197718055ec8cc31f539cd8e1aa5b2e
2019-09-02 04:13:40 -07:00
Benjamin Elo
0a9c4bdcf4 Migrated RequiredParametersDialog to TypeScript
Summary: Migrated RequiredParametersDialog.js to RequiredParametersDialog.tsx

Reviewed By: danielbuechele

Differential Revision: D17132223

fbshipit-source-id: a4a592ba58b8c8b94b3106c3a2c0916b2776697f
2019-09-02 04:13:40 -07:00
Benjamin Elo
d957f45314 Migrated AutoCompleteSheet to TypeScript
Summary: Migrated AutoCompleteSheet from AutoCompleteSheet.js to AutoCompleteSheet.tsx

Reviewed By: danielbuechele

Differential Revision: D17132216

fbshipit-source-id: 2ce269cbd5a77353002958650c25d7297cc4e99e
2019-09-02 04:13:40 -07:00
Benjamin Elo
7d0710a0c8 Migrated BookmarksSidebar to TypeScript
Summary: Migrated BookmarksSidebar.js to BookmarksSidebar.tsx

Reviewed By: danielbuechele

Differential Revision: D17132218

fbshipit-source-id: 0e95201b5fe7c17e4acc93926325e953d8859d6c
2019-09-02 04:13:39 -07:00
Benjamin Elo
434ed4ec7d Migrated NavigationInfoBox to TypeScript
Summary: Migrated NavigationInfoBox,js to NavigationInfoBox.tsx

Reviewed By: danielbuechele

Differential Revision: D17132217

fbshipit-source-id: 9a9cd3c186efdcf7a8efc5eeaec608ff8cb4d6f1
2019-09-02 04:13:39 -07:00
Benjamin Elo
4c68750058 Migrated FavoriteButton to TypeScript
Summary: Migrated FavoriteButton.js to FavoriteButton.tsx

Reviewed By: danielbuechele

Differential Revision: D17132220

fbshipit-source-id: af1a3de4b272a57975486233f699e390677784fb
2019-09-02 04:13:39 -07:00
Benjamin Elo
36a8dfc1f6 Migrate IconButton to TypeScript
Summary: Migrated IconButton.js to IconButton.tsx

Reviewed By: danielbuechele

Differential Revision: D17132224

fbshipit-source-id: d4f14050385c7c25900e9a9d01f3b9a0dcff3a31
2019-09-02 04:13:39 -07:00
Benjamin Elo
a0696692e2 Migrated hooks/requiredParametes to TypeScript
Summary: Migrated requiredParameters.js to requiredParameters.tsx

Reviewed By: danielbuechele

Differential Revision: D17133609

fbshipit-source-id: 8926921481bf587b51a09c18eca71ca6132ad89a
2019-09-02 04:13:38 -07:00
Benjamin Elo
5877c1df96 Migrated hooks/autoCompleteSheet to TypeScript
Summary: Migrated autoCompleteSheet.js to autoCompleteSheet.tsx

Reviewed By: danielbuechele

Differential Revision: D17133608

fbshipit-source-id: eba06c5add7687e013b8f0e2b430b359dbf1cb48
2019-09-02 04:13:38 -07:00
Benjamin Elo
950bbbf97d Migrate util/appMatchPatterns to TypeScript
Summary: Migrated appMatchPatterns.js to appMatchPatterns.tsx

Reviewed By: danielbuechele

Differential Revision: D17133610

fbshipit-source-id: 1a819e2b32a233372e08578352290eff1264ef43
2019-09-02 04:13:38 -07:00
Benjamin Elo
d5d0b0cd49 Migrate util/autoCompleteProvider to TypeScript
Summary: Migrated autoCompleteProvider.js to autoCompleteProvider.tsx

Reviewed By: danielbuechele

Differential Revision: D17133612

fbshipit-source-id: 7d4da17bd639fdd4fc7a79cc931abeab62be2086
2019-09-02 04:13:37 -07:00
Benjamin Elo
8269d128d6 Migrate util/indexedDB to TypeScript
Summary: Migrated indexedDB.js to indexedDB.tsx

Reviewed By: danielbuechele

Differential Revision: D17133611

fbshipit-source-id: 819eccc12c8cbacee5e9cdf8fbfce4f5fbb08813
2019-09-02 04:13:37 -07:00
Benjamin Elo
332821d315 Migrated util/uri to TypeScript
Summary: Migrated uri.js to uri.tsx

Reviewed By: danielbuechele

Differential Revision: D17133606

fbshipit-source-id: d278c293c6040a522f5cc0c5462c6682dc634328
2019-09-02 04:13:37 -07:00
Benjamin Elo
61ddbd9950 Added TypeScript types file
Summary: Luckily I put all my types in one file, so this was very easy to convert over.

Reviewed By: danielbuechele

Differential Revision: D17132226

fbshipit-source-id: cacd0d66e15504d6f82ccc4aaaa4e27339e513f1
2019-09-02 04:13:36 -07:00
Daniel Büchele
4453dec778 interactive
Summary: _typescript_

Reviewed By: passy

Differential Revision: D17096587

fbshipit-source-id: 22ada6ef8f544b0c02bdf5a01e798b123fa6b238
2019-09-02 02:29:31 -07:00
Mihaela Ogrezeanu
f716c34295 Show prev and next data for a SingleComponentSection
Summary: The SingleComponentSection doesn't store anything in the data field unless it's set manually by the dev; this adds custom info about the prev and next data so we can use it for debugging

Reviewed By: pasqualeanatriello

Differential Revision: D17112284

fbshipit-source-id: 55aa49583e3bc7d046661d34841b7c3283972d76
2019-08-30 05:44:58 -07:00
Pascal Hartig
3cdc32c18b Update binary
Summary: allow-large-files

Reviewed By: danielbuechele

Differential Revision: D17112954

fbshipit-source-id: d0c53e3f5c5502d291212557ac808359e2a925b6
2019-08-30 03:32:47 -07:00
Paul O'Shannessy
dfefb1ff65 Adopt Contributor Covenant
Summary:
In order to foster healthy open source communities, we're adopting the
[Contributor Covenant](https://www.contributor-covenant.org/). It has been
built by open source community members and represents a shared understanding of
what is expected from a healthy community.

Reviewed By: josephsavona, danobi, rdzhabarov

Differential Revision: D17104640

fbshipit-source-id: d210000de686c5f0d97d602b50472d5869bc6a49
2019-08-29 23:21:14 -07:00
Pascal Hartig
31ce78b128 Add stack.yaml.lock
Summary: Stack has lock files now. Let's use them.

Reviewed By: danielbuechele

Differential Revision: D17112200

fbshipit-source-id: 898fff67ac74cbad918dbe1be6667523c4392b35
2019-08-29 09:23:57 -07:00
Pascal Hartig
f4f7245732 Add README
Summary: Per title.

Reviewed By: danielbuechele

Differential Revision: D17111990

fbshipit-source-id: f5a14b7f0ce544cec324b70b74eeed8d6efb42b0
2019-08-29 09:19:01 -07:00
Daniel Büchele
5868946818 certificate provider
Summary: _typescript_

Reviewed By: passy

Differential Revision: D17096517

fbshipit-source-id: a6e69e8b9a82fe76bb1de51a3a93182f35f40b3f
2019-08-28 20:34:59 -07:00
Daniel Büchele
9970c50daf gylphs
Summary: Adding type declaration for glyphs

Reviewed By: passy

Differential Revision: D17096295

fbshipit-source-id: e8994e0c81c3668fa909479dbaea613ec2b86dc4
2019-08-28 19:50:29 -07:00
Pascal Hartig
bc4fc12ea4 Add prebuilt version of stricter
Summary:
Adds a binary we can run on Sandcastle.

allow-large-files

Reviewed By: danielbuechele

Differential Revision: D17093672

fbshipit-source-id: 3695739a65aea72bc8c8268404c9d3e025349e16
2019-08-28 14:31:33 -07:00
Pascal Hartig
a612792995 Add script to watch for TSC strict mode regressions
Summary:
This is a simple script that runs `tsc --strict` twice: on the current revision and the previous one, compares the number of errors and if there are more, prints them out and raises a failure exit code.

This should help us ensure that while we clean up the 500-odd errors we don't land more in the process.

Reviewed By: danielbuechele

Differential Revision: D17093671

fbshipit-source-id: 6c5d1424c729d15d66a32ae17f15b17c3b76fc68
2019-08-28 14:31:33 -07:00
Daniel Büchele
ff31ac0b45 fix strict errors
Summary: fixing some errors for strict mode enabled files

Reviewed By: passy

Differential Revision: D16988271

fbshipit-source-id: 09834cad9c2dd8abb987e4f708ae7a30922d90c7
2019-08-28 11:12:22 -07:00
Daniel Büchele
8d653672f2 fix keyboard navigation
Summary: Keyboard events were not handled correctly. This was because the tabIndex was not set correctly. Maybe a regression from the TypeScript conversion.

Reviewed By: passy

Differential Revision: D17079157

fbshipit-source-id: 752853c0d761da67c7b09f50b531abf58bc7feec
2019-08-28 10:36:44 -07:00
dependabot[bot]
fe87fd9346 Bump eslint-utils from 1.4.0 to 1.4.2 (#526)
Summary:
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.4.0 to 1.4.2.
<details>
<summary>Commits</summary>

- [`4e1bc07`](4e1bc077c2) 1.4.2
- [`e4cb014`](e4cb01498d) 🐛 add null test
- [`230a4e2`](230a4e2275) 1.4.1
- [`08158db`](08158db1c9) 🐛 fix getStaticValue security issue
- [`587cca2`](587cca2f82) 🐛 fix getStringIfConstant to handle literals correctly
- [`c119e83`](c119e83295) 🐛 fix getStaticValue to handle bigint correctly
- See full diff in [compare view](https://github.com/mysticatea/eslint-utils/compare/v1.4.0...v1.4.2)
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint-utils&package-manager=npm_and_yarn&previous-version=1.4.0&new-version=1.4.2)](https://help.github.com/articles/configuring-automated-security-fixes)

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 ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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)
- `dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/flipper/network/alerts).

</details>
Pull Request resolved: https://github.com/facebook/flipper/pull/526

Reviewed By: danielbuechele

Differential Revision: D17074295

Pulled By: passy

fbshipit-source-id: f416d2c5b5f300c60694a3e411f16c585fb52afb
2019-08-28 07:37:39 -07:00
Benjamin Elo
ec47c93ea0 Display class name of view if available
Summary: This commit provides the navigation plugin with more value, showing the ViewController of the rendered view.This allows the user to quickly start working on that view controller once they have the name. This works on nearly all views in the iOS app.

Reviewed By: passy

Differential Revision: D17071558

fbshipit-source-id: 22a22d4a0991e9f20bc85eb106a98a42214d4d0c
2019-08-28 05:05:34 -07:00
Benjamin Elo
a2ec178456 Added ability to navigate to deeplinks for iOS
Summary: Added ability to navigate to deeplinks from Flipper for iOS. This is done through the "xcrun simctl" command, much like how we handle screenshots on iOS.

Reviewed By: passy

Differential Revision: D17071428

fbshipit-source-id: 86cb375e750e89ddf598a42ce33d3099bb08803a
2019-08-28 05:05:33 -07:00
Pascal Hartig
9a63ee9fff Make exportMetrics strict
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17074932

fbshipit-source-id: 1a6a8e81a9d15021dd9b51a0c3a394a2cf349e9c
2019-08-28 03:01:58 -07:00
Pascal Hartig
5c69ad8e8b Make LowPassFilter strict
Summary: Per title.

Reviewed By: danielbuechele

Differential Revision: D17073163

fbshipit-source-id: 08127d85af317ff701f4d131fd41df095f50f6a4
2019-08-28 03:01:58 -07:00
Pascal Hartig
78a7789f49 Add types for promise-retry
Summary: Per title.

Reviewed By: danielbuechele

Differential Revision: D17073128

fbshipit-source-id: 0c93a63f0419dcbef209f0ae203906457481529f
2019-08-28 03:01:57 -07:00
Pascal Hartig
b6df5ecb83 Make onRegisterDevice strict
Summary: Needed relaxing some types in pluginUtils, but it's actually fine.

Reviewed By: danielbuechele

Differential Revision: D17072974

fbshipit-source-id: c3d3923ed70f71964aa10cf35f1b9ea2f30a8fa1
2019-08-28 03:01:57 -07:00
Pascal Hartig
5cac2edc37 Make processConfig pass strict mode
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17072572

fbshipit-source-id: fed0d93e7a4cfe04f339370dbace7181bec73ca1
2019-08-28 03:01:57 -07:00
Pascal Hartig
f548844df5 Extend travis_wait time (#528)
Summary:
Sigh ... https://travis-ci.com/facebook/flipper/jobs/228611726
Pull Request resolved: https://github.com/facebook/flipper/pull/528

Reviewed By: danielbuechele

Differential Revision: D17075766

Pulled By: passy

fbshipit-source-id: c26ac08e25c9a537d2a62ac02da74d0ae1094b42
2019-08-28 02:18:22 -07:00
Pascal Hartig
268aee897c Remove Litho references
Summary: There were some leftover Litho references.

Reviewed By: danielbuechele

Differential Revision: D17071513

fbshipit-source-id: feec9a5748c359a830746c2f9944e0256b16bc09
2019-08-27 08:49:51 -07:00
Brian Vaughn
85d098e695 React DevTools v4 integration
Summary:
This Diff is being posted for discussion purposes. It will not be ready to land until React DevTools v4 has been published to NPM.

Update React Native to be compatible with the [new version 4 React DevTools extension](https://github.com/bvaughn/react-devtools-experimental).

**Note that this is a breaking change**, as the version 3 and version 4 backends are **not compatible**. Once this update ships (in React Native) users will be required to update their version of the [`react-devtools` NPM package](https://www.npmjs.com/package/react-devtools). The same will be true for IDEs like Nuclide as well as other developer tools like Flipper and [React Native Debugger](https://github.com/jhen0409/react-native-debugger).

Related changes also included in this diff are:
* Pass an explicit whitelist of style props for the React Native style editor (to improve developer experience when adding new styles).
* Update `YellowBox` console patching to coordinate with DevTools own console patching.
  * Also improved formatting slightly by not calling `stringifySafe` for strings (since this adds visible quotation marks).

Regarding the console patching- component stacks will be appended by default when there's no DevTools frontend open. The frontend will provide an option to turn this behavior off though:

{F168852162}

React DevTools will detect if the new version is used with an older version of React Native, and offer inline upgrade instructions:

{F169306863}

**Note that the change to the `RCTEnableTurboModule` will not be included in this Diff**. I've just turned those off temporarily so I can use v8+Chrome for debugging.

Reviewed By: rickhanlonii

Differential Revision: D15973709

fbshipit-source-id: bb9d83fc829af4693e7a10a622acc95a411a48e4
2019-08-26 23:56:55 -07:00
Ron Edelstein
0f503f40ac Apply java formatting
Reviewed By: zertosh

Differential Revision: D17006136

fbshipit-source-id: 356442170cee830f4794bff456a6d2162f45d6b3
2019-08-24 20:33:38 -07:00
Daniel Büchele
378638a451 website updates for TS
Summary: update website to use TS instead of JS

Reviewed By: passy

Differential Revision: D16986666

fbshipit-source-id: 969de3ffcdf4aa594d9811947e5b440e594838e7
2019-08-24 03:28:28 -07:00
Daniel Büchele
f69bfab0f4 npm
Summary:
Publishing flipper to npm via Sandcastle.
- NPM token added to secrets tool
- removing private flag from package JSON
- adding publish script

Reviewed By: passy

Differential Revision: D16984934

fbshipit-source-id: 334991381d4035928af9a9d98d3905280938736a
2019-08-23 09:33:56 -07:00
Daniel Büchele
853d80f182 headless
Summary: _typescript_

Reviewed By: passy

Differential Revision: D16962733

fbshipit-source-id: 6583c5a4471b12f91895f6449ed9c510265a63e2
2019-08-23 09:33:56 -07:00
Daniel Büchele
7ed9e8e670 migrate workflow to TS
Summary: Updates scarf workflow to generate TypeScript plugins

Reviewed By: passy

Differential Revision: D16940711

fbshipit-source-id: 5005013512bad969833669c6b0b911d55ea5cd79
2019-08-23 09:33:56 -07:00
Alexander Blom
acf7eb1080 Initialize instance to nullptr
Summary:
In tests, the instance is never initialized and it's hard to guard against null when the
instance isn't initialized to nullptr (instead being random data).

Reviewed By: ximyu

Differential Revision: D16984717

fbshipit-source-id: 414539e1117abaad16df9f9b7d3b8dbb328e38d0
2019-08-23 08:15:06 -07:00
Daniel Büchele
651c9db5c4 seamammals plugin
Summary: _typescript_

Reviewed By: passy

Differential Revision: D16936889

fbshipit-source-id: 68ec6a14e1ee4517d76816b4156f0eebaca27ab4
2019-08-23 07:19:12 -07:00
Pascal Hartig
f824329151 Upgrade to Node 11 in Travis (#525)
Summary:
I hope this fixes the obnoxious libuv IO error we see quite often.
Pull Request resolved: https://github.com/facebook/flipper/pull/525

Test Plan: Travis

Reviewed By: priteshrnandgaonkar

Differential Revision: D16984266

Pulled By: passy

fbshipit-source-id: 3e4c6ccd1f3e92a08875f7770202d8909e446ac8
2019-08-23 05:58:18 -07:00
Prathamesh Deshmukh
eb875845b5 Add missing imports in getting-started.md (#514)
Summary:
Added some missing imports in the Android getting started documentation.

By adding these imports, the compilation will not fail.
## Changelog

Updated the getting-started documentation for android
Pull Request resolved: https://github.com/facebook/flipper/pull/514

Test Plan: Add the imports and the build should run successfully

Reviewed By: passy

Differential Revision: D16919073

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 30144f440d312effec289b60af6ca537df344cd2
2019-08-23 04:47:36 -07:00