Commit graph

1168 commits

Author SHA1 Message Date
Vadim Dalecky
23fedcf636
feat: 🎸 navigate from maps embeddable to app in SPA way (#74102) 2020-08-04 15:25:53 +02:00
Nathan Reese
cd1b1b3a95
[Maps] convert dynamic icon style to TS (#73903)
* [Maps] convert dynmaic icon style to TS

* tslint

* fix snapsshot name changes caused by file name changes

* revert change that is not part of PR

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-03 16:15:43 -06:00
Nathan Reese
01e6a4f1c0
[maps] convert top nav config to TS (#73851)
* [maps] convert top nav config to TS

* tslint

* one more tslint change

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-31 20:44:21 -06:00
Nathan Reese
330212e955
[maps] fix fit to bounds for ES document layers with joins (#73985) 2020-07-31 20:39:07 -06:00
Nathan Reese
7e2e78b54e
[Maps] upgrade turf (#73816)
* [Maps] upgrade turf

* clean up ts-ignore comments

* fix license check and review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 15:51:01 -06:00
Nathan Reese
c09216b669
[Maps] fix application state filters transfer from other kibana application to maps application (#73516)
* [Maps] fix application state filters transfer from other kibana application to maps application

* clean up comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 10:30:57 -06:00
Nathan Reese
d8d830657b
[maps] clean up maps app state (#73337)
* [maps] clean up maps app state

* remove time, query and refreshConfig from react state

* clean up

* move getInitialLayersFromUrlParam out of MapsAppView

* clean up _updateFromGlobalState to just call _onQueryChange

* inline _getAppStateFilters

* tslint cleanup and fix refresh config

* fix functional test

* fix functional tests take 2

* review feedback

* fix timing issue by not providing default query context value from props

* minor cleanup

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 08:37:10 -06:00
Nathan Reese
57dc9c01f7
[maps] rename GisMap to MapContainer and convert to TS (#73690)
* [maps] rename GisMap to MapContainer and convert to TS

* fix typo in _index.scss
2020-07-29 11:33:47 -06:00
Nathan Reese
2f93a6e6b6
[Maps] fix fit to data for Point to Point layer (#73563)
* [Maps] fix fit to data for Point to Point layer

* tslint

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-29 10:19:11 -06:00
Liza Katz
14144156f6
[Data] Query Input String manager (#72093)
* improve test stability

* query string input manager (needed for search demo)

* docs

* dashboard

* Fix jest

* mock fix

* Allow restoring a saved query

* sync url

* Luke's fix to test

* cleanup

* lens jest tests

* docs

* use queryStringManager.getDefaultQuery
Don't sync query to global state

* Update app.test.tsx

lens mock

* jest fix

* jest

* use new api in the example

* Rename state param to query to match url state

* Apply changes to discover

* Update src/plugins/data/public/query/query_string/index.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Improve query string state manager

* Cleanup dashboard code

* Handle refresh button

* Set initial dashboard state

* visualize state

* remove unused

* docs

* fix example

* fix jest

* fix filter app state in discover

* fix maps test

* jest

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-29 10:48:23 +03:00
Nathan Reese
5f4b1a3689
[Maps] fix tile layer attibution text and attribution link validation errors (#73160)
* [Maps] fix tile layer attibution text and attribution link validation errors

* clean up jest test

* tslint

* one more tslint
2020-07-23 18:30:42 -06:00
Nathan Reese
b5c0d5f250
[maps] fix data driven style properties not working when cloned layer contains joins (#73124)
* [maps] fix data driven style properties not working when cloned layer contains joins

* tslint

* handle case where metrics is not provided

* tslint
2020-07-23 17:20:24 -06:00
Nathan Reese
cb48e6e98e
[maps] fix un-hiding layer not syncing data (#73039)
* [maps] fix un-hiding layer not syncing data

* revert syncDataForLayer to syncDataForLayerId

* remove unused method
2020-07-23 11:14:54 -06:00
Nathan Reese
e1a3dccf03
[Maps] fix cloned clustered documents layer returns error (#72975)
* [Maps] fix cloned clustered documents layer returns error

* tslint
2020-07-23 11:01:59 -06:00
Nathan Reese
8b27b1e83c
[Maps] fix removing global filter from layer can cause app to start thrashing (#72763) 2020-07-22 13:37:18 -06:00
Nathan Reese
80da1c6a54
[Maps] fix blended layer aggregation error when using composite aggregation (#72759) 2020-07-22 13:26:22 -06:00
Nathan Reese
fa11161fd0
[Maps] fix zoom in/zoom out buttons are not visible in dark mode (#72699)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-22 09:04:18 -06:00
Alexey Antonov
e1ffcccb96
Add inspector for VEGA (#70941)
* [WIP] Add inspector for VEGA

Closes: #31189

* view -> dataset

* cleanup

* add spec viewer

* cleanup code

* use rx to retrieve data from adapters

* Make custom inspector adapters registerable from the visType

* fix flex-box size

* cleanup

* remove visTypesWithoutInspector from visualize_embeddable

* fix PR comments

* add vega folder to sass-lint

* fix jest

* Update src/plugins/vis_type_vega/public/vega_inspector/components/data_viewer.tsx

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* use addSignalListener

* cleanup

* add onColumnResize handler

* EuiCodeEditor -> CodeEditor

* fix type_check

* fix issue with pagination

* fix extra vertical scroll

* add area-label for EuiButtonIcon

* add area-label for EuiComboBox

* Design Commit

- Fixing up layout trying to remove any `.eui` classes and uses flex instead of percentage
- Fixing text to use `Sentence case` not `Title Case`

* Wrapper around signal viewer table

* fix Jest snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-07-21 14:45:51 +03:00
Nathan Reese
9947c671ec
[Maps] auto-fit to data bounds (#72129)
* [Maps] auto-fit to data bounds

* update jest snapshot

* add buffer to fit to bounds

* sync join layers prior to fitting to bounds

* clean-up comment

* better names

* fix tslint errors

* update functional test expect

* add functional tests

* clean-up

* change test run location

* fix test expect

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-20 15:24:32 -06:00
Nathan Reese
dc7db09533
[Maps] convert SavedGisMap to TS (#72286)
* [Maps] convert SavedGisMap to TS

* i18n translate new map title
2020-07-17 16:29:23 -06:00
Aaron Caldwell
63e6666b13
[Maps] Fix issue preventing TMS from rendering correctly (#71946)
* Ensure getColors selector modifies and returns the same object

* Call onSourceConfigChange on CreateSourceEditor mount

* Back out selector update

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 17:02:15 -06:00
Nathan Reese
d510263666
[Maps] fix 'New Map' from getting added to recently accessed (#72125) 2020-07-16 14:25:25 -06:00
Nathan Reese
52597b203b
[Maps] typescript vector style phase 1 (#69994)
* [Maps] typescript vector style phase 1

* tslint

* unify Ordinal and Categorical field meta since they are mixed in real data

* field formatter type

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 13:31:43 -06:00
Nathan Reese
46eba14669
[Maps] fix notifying user about losing unsaved changes when navigating away from map (#72003)
* [Maps] fix notifying user about losing unsaved changes when navigating away from map

* clean up

* tslint fixes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 12:16:29 -06:00
Thomas Neirynck
06355e8bb7
[Maps] Improve language for mvt card (#71947)
This reduces ambiguity about the source type.
2020-07-15 21:10:24 -04:00
Thomas Neirynck
8a21d11f08
[Maps] Track geo_shape agg usage (#71759)
Tracks how many users are using geo_shape aggs.
2020-07-15 15:15:51 -04:00
Thomas Neirynck
b75bf5f585
[Maps] Add unit tests for geo_grid_source (#71336) 2020-07-15 15:07:17 -04:00
Thomas Neirynck
ba0a4b13dc
[Maps] Add readme (#71912) 2020-07-15 14:08:57 -04:00
Thomas Neirynck
de4d65cc75
[Maps] Remove .mvt feature flag (#71779)
The layer wizard to add 3rd party .mvt tiles now shows by default.
2020-07-14 19:41:13 -04:00
Nathan Reese
0e7c3c7ff0
[Maps] increase DEFAULT_MAX_BUCKETS_LIMIT to 65535 (#70313)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-14 16:07:22 -06:00
Nathan Reese
34c54ed31b
[Maps] fix custom icon palettes UI not being displayed (#71482)
* [Maps] fix custom icon palettes UI not being displayed

* cleanup test

* remove uneeded change to vector style defaults

* fix jest tests

* review feedback

* fix jest tests
2020-07-14 15:19:51 -06:00
Nathan Reese
301d9cecf6
[Maps] get isClustered from count request instead of source data request (#71528)
* [Maps] get isClustered from count request instead of source data request

* better naming

* tslint

* review feedback
2020-07-14 09:58:14 -06:00
Nathan Reese
385e4d0a21
[Maps] expose registerLayerWizard and registerSource in maps plugin start (#71553) 2020-07-14 09:56:05 -06:00
Elizabet Oliveira
19920cb9ad
[Maps] 7.9 design improvements (#71563)
* Design improvements

* more improvements

* Updated snapshots

* Removing unecessary flex item

* Updated snapshot

* Addressing pr review

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-14 15:55:54 +01:00
Aaron Caldwell
d7a679ba8c
[Maps] Fix proxy handling issues (#71182) 2020-07-13 14:27:19 -06:00
Nathan Reese
f95ab33cbe
[Maps] use EuiColorPalettePicker (#69190)
* [Maps] use EuiColorPalettePicker and Eui palettes

* use new ramps to create mb style

* update ColorMapSelect to use EuiColorPalettePicker

* move color_utils test to color_palettes

* clean up heatmap constants

* tslint

* fix test expects

* fix merge mistake

* update jest expects

* remove .chromium folder

* another jest expect update

* remove charts from kibana.json

* remove unneeded jest.mock

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-13 12:53:00 -06:00
Thomas Neirynck
c44f019790
[Maps] Show joins disabled message (#70826)
Show feedback in the layer-settings when the scaling-method does not support Term-joins.
2020-07-13 11:55:36 -04:00
Greg Thompson
9537a823eb
Upgrade EUI to v26.3.1 (#70243)
* eui to 26.1.0

* Breadcrumb -> EuiBreadcrumb

* keyCode -> key

* src snapshot updates

* update header variables file location

* keyCode -> key in tests

* x-pack simple snapshot updates

* euitooltip updates

* euioverlaymask updates

* testbed keycode -> key

* fixed header sass mixin

* euidatagrid test workaround

* euioverlapmask mock

* euipaginationbutton markup

* nav snapshot update

* eui to 26.3.0

* flyout z-index fix

* euiflyout snapshot updates

* style snapshot updates

* table actions have machine readable text

* table actions have machine readable text

* core api docs update

* table actions snapshot update

* eui to 26.3.1

* update table actions type

* mock issue links; timeout done

* breadcrumb -> euibreadcrumb

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-09 19:51:45 -07:00
Spencer
fa93a81ba6
[kbn/optimizer] implement "requiredBundles" property of KP plugins (#70911)
Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-09 18:43:17 -07:00
Nathan Reese
ebcec3a904
[Maps] show vector tile labels on top (#69444)
* [Maps] show vector tile labels on top

* experiment with new sort algorithm

* clean up

* remove old sort method

* add unit test for sort layer

* tslint

* clean up

* make labelsOnTop configurable

* tslint

* more tslint

* add another test case for single layer move

* clarify should messages

* fix assert not null operators

* review feedback

* update snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-02 18:50:50 -06:00
Tiago Costa
6c62c686cf
chore(NA): upgrade to lodash@4 (#69868)
* chore(NA): upgrade oss to lodash4

chore(NA): migrate cli, cli_plugin, cli_keystore,  dev, test_utils and apm src script to lodash4

chore(NA): missing file for cli plugin

chore(NA): add src core

chore(NA): es archiver and fixtures

chore(NA): try to fix functional test failure

chore(NA): migrate src/legacy entirely to lodash4 except src/legacy/core_plugins

chore(NA): move legacy core plugins to lodash4

chore(NA): upgrade optimize to lodash4

chore(NA): upgrade to lodash4 on advanced_settings, charts, console and dashboard

chore(NA): migrate to lodash4 on dev_tools, discover, embeddable, es_ui)shared, expressions, home plugins

chore(NA): upgrade data plugin to lodash4

chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4

chore(NA): missing data upgrades to lodash4

Revert "chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4"

This reverts commit 137055c5fed2fc52bb26547e0bc1ad2e3d4fe309.

Revert "Revert "chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4""

This reverts commit f7e73688782998513d9fb6d7e8f0765e9beb28d1.

Revert "chore(NA): missing data upgrades to lodash4"

This reverts commit 92b85bf947a89bfc70cc4052738a6b2128ffb076.

Revert "chore(NA): upgrade data plugin to lodash4"

This reverts commit 88fdb075ee1e26c4ac979b6681d8a2b002df74c6.

chore(NA): upgrade idx_pattern_mgt, input_control_vis, inspector, kbn_legacy, kbn_react, kbn_usage_collections, kbn_utils, management and maps_legacy to lodash4

chore(NA): map src plugin data to lodash3

chore(NA): missing lodash.clonedeep dep

chore(NA): change packages kbn-config-schema deps

chore(NA): update renovate config

chore(NA): upgrade vis_type plugins to lodash4

chore(NA): move vis_type_vislib to lodash3

chore(NA): update visualizations and visualize to lodash4

chore(NA): remove lodash 3 types from src and move test to lodash4

chore(NA): move home, usage_collection and management to lodash 3

Revert "chore(NA): move home, usage_collection and management to lodash 3"

This reverts commit f86e8585f02d21550746569af54215b076a79a3d.

chore(NA): move kibana_legacy, saved_objects saved_objects_management into lodash3

chore(NA): update x-pack test to mock lodash4

Revert "chore(NA): move kibana_legacy, saved_objects saved_objects_management into lodash3"

This reverts commit 2d10fe450533e1b36db21d99cfae3ce996a244e0.

* chore(NA): move x-pack and packages to lodash 4

* chore(NA): remove mention to lodash from main package.json

* chore(NA): remove helper alias for lodash4 and make it the default lodash

* chore(NA): fix last failing types in the repo

* chore(NA): fix public api

* chore(NA): fix types for agg_row.tsx

* chore(NA): fix increment of optimizer modules in the rollup plugin

* chore(NA): migrate `src/core/public/http/fetch.ts` (#5)

* omit undefined query props

* just remove merge usage

* fix types

* chore(NA): fixes for feedback from apm team

* chore(NA): recover old behaviour on apm LoadingIndeicatorContext.tsx

* chore(NA): fixes for feedback from watson

* Platform lodash4 tweaks (#6)

* chore(NA): fix types and behaviour on src/core/server/elasticsearch/errors.ts

* Canvas fixes for lodash upgrade

* [APM] Adds unit test for APM service maps transform (#7)

* Adds a snapshot unit test for getConnections and rearranges some code to make testing easier

* reverts `ArrayList` back to `String[]` in the painless script within `fetch_service_paths_from_trace_ids.ts`

* chore(NA): update yarn.lock

* chore(NA): remove any and use a real type for alerts task runner

Co-authored-by: Gidi Meir Morris <github@gidi.io>

* chore(NA): used named import for triggers_actions_ui file

* chore(NA): fix eslint

* chore(NA): fix types

* Delete most uptime lodash references.

* Simplify. Clean up types.

* [Uptime] Delete most uptime lodash references (#8)

* Delete most uptime lodash references.

* Simplify. Clean up types.

* chore(NA): add eslint rule to avoid using lodash3

* chore(NA): apply changes on feedback from es-ui team

* fix some types (#9)

* Clean up some expressions types.

* chore(NA): missing ts-expect-error statements

* Upgrade lodash 4 vislib (#11)

* replace lodash 3 with lodash 4 on vislib plugin

* Further changes

* further replacement of lodash3 to 4

* further work on upgrading to lodash 4

* final changes to update lodash

* chore(NA): upgrade data plugin to lodash4

chore(NA): upgrade data plugin public to lodash4

chore(NA): fix typecheck task

chore(NA): fix agg_config with hasIn

chore(NA): assign to assignIn and has to hasIn

chore(NA): upgrade data plugin server to lodash4

chore(NA): new signature for core api

fix(NA): match behaviour between lodash3 and lodash4 for set in search_source

* chore(NA): remove lodash3 completely from the repo

* chore(NA): fix x-pack/test/api_integration/apis/metrics_ui/snapshot.ts missing content

* chore(NA): fix lodash usage on apm

* chore(NA): fix typecheck for maps

* Patch lodash template (#12)

* Applying changes from https://github.com/elastic/kibana/pull/64985

* Using isIterateeCall, because it seems less brittle

* Also patching `lodash/template` and `lodash/fp/template`

* Reorganizing some files...

* Revising comment

* Ends up `_` is a function also... I hate JavaScript

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: Oliver Gupte <ogupte@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Stratoula Kalafateli <stratoula1@gmail.com>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: kobelb <brandon.kobel@elastic.co>
2020-07-03 01:30:13 +01:00
Nathan Reese
23ea7acb15
[Maps] Fix cannot select Solid fill-color when removing fields (#70621)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-02 16:35:16 -06:00
Spencer
f5b280007f
[kbn/optimizer] only build specified themes (#70389)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-07-02 15:06:32 -07:00
Nathan Reese
e7749210b4
[Maps] fix unable to edit heatmap metric (#70606)
* [Maps] fix unable to edit heatmap metric

* add comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-02 14:48:04 -06:00
Thomas Neirynck
9c76f19186
[Maps] Add styling and tooltip support to mapbox mvt vector tile sources (#64488)
* tmp commit

* rename

* more boilerpalte

* more boiler

* more boilerpalte

* typing

* fix import

* boilerplate

* more boiler

* enable custom palettes

* fix label text and orientation

* fix merge errors

* remove dupe import

* stash commit

* tmp commit

* debounce settings

* return null

* slight rearrangement

* tooltip guard

* minor tweaks

* feedback

* ts fixes

* ts fixes

* more ts fixes

* ts fixes

* jest test

* fix typo

* spacing

* fix typing

* add unit test

* add more tests

* add snapshot test

* add snapshot

* add field editor snapshot test

* fix snapshot

* add snapshot

* remove unused import

* test stub for mvt layer

fix optional param

more checks

* add snapshot test

more unit tests

more unit tests

ts fixes

* add data syncing unit test

* fix autorefactor

* fix merge and replace snapshots

* field editor changes

* field editor changes

* ts fixes

* update snapshots

* fix things

* fix names

* fix tooltip

* add more error handling

* improve copy

* styling changes

* style option box a little better

* ts fixes

* fix console error

* remove mbProperties from interface

* remove unused method

* remove cruft

* rename for consistency

* remove unused param

* feedback

* feedback

* ensure properties are always present

* handle possible null values

* feedback

* typo

* update SIEM

* feedback

* remove cruft

* remove unused translations

* feedback

* improve readability

* fix brittle test

* fix snapshot after master merge

* remove unused method

* feedback

* revert some feedback

* remove micro-optimization

* initialize in constructor

* simplify wording

* add snapshot

* naming

* add clarifying comment

* remove unused import

* sanitize tooltips

* remove cruft

* feedback

* fix typo

* remove export

* Design fixes

* clean up supportsAutoDomain

* remove patch.txt

* cleanup

* clean-up

* Merge in styling changes

* Tweak message format

* fix broken import

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: miukimiu <elizabet.oliveira@elastic.co>
Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2020-07-02 09:24:56 -04:00
Nathan Reese
006670244a
[Maps] convert GeojsonFileSource to typescript (#70365)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-01 10:46:50 -06:00
Matthew Kime
2fe0051ec2
Index patterns - Server API (#69105)
* index patterns on the server
2020-06-30 10:14:29 -05:00
Aaron Caldwell
3caab366c7
[Maps] Add maps telemetry saved object in with mappings disabled (#69995)
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-30 08:04:48 -06:00
Nathan Reese
917598141f
[Maps] choropleth layer wizard (#69699)
* [Maps] choropleth layer wizard

* add boundaries radio group

* geo_index_pattern_select

* consolidate more logic into geo_index_pattern_select

* small clean-up

* left geo field and join field

* move EuiPanel into render wizard

* cleanup

* right panel

* createEmsChoroplethLayerDescriptor

* createEsChoroplethLayerDescriptor

* i18n cleanup

* tslint

* snapshot update

* review feedback

* review feedback

* update snapshot

* make EMS default source

* tslint

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:12:09 -06:00
Nathan Reese
8aa2206e04
[Maps] remove indexing state from redux (#69765)
* [Maps] remove indexing state from redux

* add indexing step

* tslint

* tslint fixes

* tslint item

* clear preview when file changes

* review feedback

* use prevState instead of this.state in setState

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 12:12:35 -06:00