kibana/docs
Ryland Herrick ac07ebba87
[Security Solution] kbn package for generic hook utils (#101976)
* Adds boilerplate for new hook-utils package

* Move existing, identified utils into our hook-utils package

Updates references, and fixes a few missing config that were preventing
packages from building.

* Extracts a common type and adds a little more JSdoc for clarity

* Adds new useObservable hook

Similar to useAsync (a nearly identical interface), this is meant to
wrap a thunk returning an observable, allowing conditional invocation
and progressive updates as the observable continues to emit.

* Remove orphaned test

This function (and its tests) were moved to the hook-utils package; this
was simply missed.

* Remove optional chaining from kbn package

The build system does not currently support these typescript features.
While a valid fix would also have been to build separate browser and
node targets a la #99390, the use here was very minimal and so changing
to a supported syntax was the most pragmatic fix.

* Update old reference in test file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 12:09:17 -05:00
..
api [Alerting][Docs] Combine rule creation and management pages (#101498) 2021-06-10 17:46:53 -04:00
apm [Alerting][Docs] Combine rule creation and management pages (#101498) 2021-06-10 17:46:53 -04:00
canvas [Lens] Create mathColumn function to improve performance (#101908) 2021-06-16 10:35:55 -04:00
concepts [DOCS] Dashboard changes for 7.13 (#99681) 2021-05-24 15:14:37 -05:00
dev-tools
developer [Security Solution] kbn package for generic hook utils (#101976) 2021-06-17 12:09:17 -05:00
development [Kuery] Move json utils (#102058) 2021-06-16 18:15:47 +03:00
discover background session limitation docs (#102050) 2021-06-15 14:33:29 +02:00
fleet
getting-started
management [Alerting][Docs] Combine rule creation and management pages (#101498) 2021-06-10 17:46:53 -04:00
maps [DOCS] Updates video in Intor & Maps take 2 (#101330) 2021-06-03 13:36:45 -07:00
migration
observability
settings [Task Manager] Log at different levels based on the state (#101751) 2021-06-16 15:20:28 -04:00
setup [DOCS] Adding file upload to add data page (#101674) 2021-06-09 12:36:27 -07:00
siem [DOCS] Updating Elastic Security Overview topic (#101922) 2021-06-16 15:45:12 -04:00
spaces
user [Lens] Add some more documentation for dynamic coloring (#101369) 2021-06-17 10:27:25 +02:00
visualize/images
accessibility.asciidoc
action-type-template.asciidoc
CHANGELOG.asciidoc
glossary.asciidoc
gs-index.asciidoc
index-extra-title-page.html [DOCS] Adds link to video landing page (#101413) 2021-06-08 13:17:59 -07:00
index.asciidoc
index.x.asciidoc
limitations.asciidoc
migration.asciidoc
redirects.asciidoc
rule-type-template.asciidoc [Alerting][Docs] Combine rule creation and management pages (#101498) 2021-06-10 17:46:53 -04:00
template.asciidoc