Files
flipper/flipper-js-client-sdk
dependabot[bot] dc14d62fa5 Bump eslint-plugin-react from 7.21.4 to 7.21.5 in /flipper-js-client-sdk (#1615)
Summary:
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.21.4 to 7.21.5.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md">eslint-plugin-react's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.21.4...v7.21.5">7.21.5</a> - 2020.10.19</h2>
<h3>Fixed</h3>
<ul>
<li>[<code>jsx-indent-props</code>]: Apply indentation when using brackets (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2826">#2826</a>[] <a href="https://github.com/Moong0122">Moong0122</a>)</li>
<li>[<code>jsx-handler-names</code>]: Skip inline handlers when checkInlineFunction=false (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2833">#2833</a>[] <a href="https://github.com/onigoetz">onigoetz</a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>[Tests] <code>jsx-indent-props</code>: Add passing test (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2823">#2823</a>[] <a href="https://github.com/Hypnosphi">Hypnosphi</a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2833">#2833</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2833">yannickcr/eslint-plugin-react#2833</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2826">#2826</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2826">yannickcr/eslint-plugin-react#2826</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2823">#2823</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2823">yannickcr/eslint-plugin-react#2823</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3aa3ce9b9f"><code>3aa3ce9</code></a> Update CHANGELOG and bump version</li>
<li><a href="7ac05f016d"><code>7ac05f0</code></a> [Deps] update <code>resolve</code></li>
<li><a href="efd3da3dee"><code>efd3da3</code></a> [Fix] <code>jsx-handler-names</code>: Skip inline handlers when checkInlineFunction=false</li>
<li><a href="aeff5ea719"><code>aeff5ea</code></a> [Tests] Add passing test for js-indent props</li>
<li><a href="237547e345"><code>237547e</code></a> [Fix] <code>jsx-indent-props</code>: Apply indentation when using brackets</li>
<li>See full diff in <a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.21.4...v7.21.5">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint-plugin-react&package-manager=npm_and_yarn&previous-version=7.21.4&new-version=7.21.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1615

Reviewed By: cekkaewnumchai

Differential Revision: D24590114

Pulled By: passy

fbshipit-source-id: 08340c341e4c61284d33e736aadd8558a00da970
2020-10-29 04:33:00 -07:00
..
2020-06-11 08:45:35 -07:00
2020-06-11 08:45:35 -07:00

flipper-sdk-api

SDK to build Flipper clients for JS based apps

Installation

yarn add flipper-client-sdk

Usage

Example

class SeaMammalPlugin extends AbsctractFlipperPlugin {
  getId(): string {
    return 'sea-mammals';
  }

  runInBackground(): boolean {
    return true;
  }

  newRow(row: {id: string, url: string, title: string}) {
    this.connection?.send("newRow", row)
  }
}

const flipperClient = newWebviewClient();
cosnt plugin = new SeaMammalPlugin();
flipperClient.addPlugin();
flipperClient.start('Example JS App');
plugin.newRow({id: '1', title: 'Dolphin', url: 'example.com'})