Files
flipper/flipper-js-client-sdk
dependabot[bot] bd379b76f1 Bump eslint-plugin-jsx-a11y from 6.3.1 to 6.4.0 in /flipper-js-client-sdk (#1630)
Summary:
Bumps [eslint-plugin-jsx-a11y](https://github.com/evcohen/eslint-plugin-jsx-a11y) from 6.3.1 to 6.4.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/CHANGELOG.md">eslint-plugin-jsx-a11y's changelog</a>.</em></p>
<blockquote>
<h1>6.4.0 / 2020-10-26</h1>
<ul>
<li>83e4ff2 [Deps] update <code>axe-core</code>, <code>jsx-ast-utils</code></li>
<li>eb92b07 [Dev Deps] update <code>babel/cli</code>, <code>babel/core</code>, <code>babel/plugin-transform-flow-strip-types</code>, <code>eslint-plugin-flowtype</code>, <code>eslint-plugin-import</code>, <code>estraverse</code>, <code>expect</code>, <code>object.assign</code></li>
<li>3d98d7a [Deps] update <code>babel/runtime</code>, <code>axe-core</code></li>
<li>f702f62 [readme] add Spanish translation</li>
<li>c2ae092 [Docs] <code>no-static-element-interactions</code>: Fixed rule name in comments</li>
<li>b90e20d Fix screenreader -&gt; screen reader</li>
<li>645900a Fixed rule name in comments</li>
<li>381b9d6 [fix:634] Ignore control elements that are hidden</li>
<li>2c47f0a [Fix] <code>autocomplete-valid</code>: workaround for axe not being able to handle <code>null</code></li>
<li>00bd6d8 Add failing test for autocomplete with dynamic type</li>
<li>3c49c9a Add WCAG guidelines to rule documentation</li>
<li>4ecaf35 Add a testcase for tablist to interactive supports focus</li>
<li>dac6864 Deprecate the accessible-emoji rule</li>
<li>5191053 Update to axobject-query@2.2.0</li>
<li>b315698 Allow negative tabindex in aria-activedescendant-has-tabindex</li>
<li>8e6fcd0 docs: fix travis badge now points to correct location at travis-ci.com</li>
<li>2234df7 Account for additional control elements in label-has-associated-control</li>
<li>5cbb718 Adding test cases for label tests</li>
<li>66c425c Additional test case for no-redundant-roles</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="78080d432d"><code>78080d4</code></a> 6.4.0</li>
<li><a href="737e492959"><code>737e492</code></a> CHANGELOG update for v6.4.0</li>
<li><a href="83e4ff2870"><code>83e4ff2</code></a> [Deps] update <code>axe-core</code>, <code>jsx-ast-utils</code></li>
<li><a href="eb92b071ef"><code>eb92b07</code></a> [Dev Deps] update <code>babel/cli</code>, <code>babel/core</code>, `babel/plugin-transform-flow-...</li>
<li><a href="3d98d7a03a"><code>3d98d7a</code></a> [Deps] update <code>babel/runtime</code>, <code>axe-core</code></li>
<li><a href="f702f627a2"><code>f702f62</code></a> [readme] add Spanish translation</li>
<li><a href="5b35bb0c98"><code>5b35bb0</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/evcohen/eslint-plugin-jsx-a11y/issues/725">https://github.com/facebook/flipper/issues/725</a> from piperchester/patch-1</li>
<li><a href="36523578a6"><code>3652357</code></a> Merge branch 'master' into patch-1</li>
<li><a href="c2ae0924c8"><code>c2ae092</code></a> [Docs] <code>no-static-element-interactions</code>: Fixed rule name in comments</li>
<li><a href="b90e20d6ab"><code>b90e20d</code></a> Fix screenreader -&gt; screen reader</li>
<li>Additional commits viewable in <a href="https://github.com/evcohen/eslint-plugin-jsx-a11y/compare/v6.3.1...v6.4.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint-plugin-jsx-a11y&package-manager=npm_and_yarn&previous-version=6.3.1&new-version=6.4.0)](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/1630

Reviewed By: cekkaewnumchai

Differential Revision: D24590110

Pulled By: passy

fbshipit-source-id: 7a3f411025c6df142c814ed534a0da15ef9f03df
2020-10-28 08:08:21 -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'})