Commit Graph

420 Commits

Author SHA1 Message Date
Krist Wongsuphasawat
6ae05114ca build: fix lints (#289)
* build: remove no-test-callback override

* fix: no-callback auto-fix

* fix: lint issues import/extension
2021-11-26 11:45:01 +08:00
dependabot-preview[bot]
aabbb3d5ab build(deps-dev): bump husky from 3.1.0 to 4.2.1 (#283)
Bumps [husky](https://github.com/typicode/husky) from 3.1.0 to 4.2.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v3.1.0...v4.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:45:00 +08:00
dependabot-preview[bot]
75797faf6f build(deps-dev): bump lint-staged from 9.5.0 to 10.0.3 (#285)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.5.0 to 10.0.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v9.5.0...v10.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:45:00 +08:00
Krist Wongsuphasawat
97f18e686b build: migrate build tool to nimbus (#281)
* build: migrate to nimbus

* build: update gitignore

* build: update package.json

* build: update travis config

* build: lower engine requirements

* build: adjust typescript config

* fix: errors

* fix: change yarn run to yarn

* fix: lint

(cherry picked from commit 22328c349c9b987eecc5e46fb306e459b6a9cadc)

* fix: eslint rules

* fix: lint

* fix: setup file

* fix: more lint

* fix: lint - pass build and lint

* fix: test setup and babel transform runtime

(cherry picked from commit dd55fd88ced045a8f83ca771705721bf2f930ff0)

* fix: timeout issues

* fix: some broken test due to jest.setTimeout

* fix: computeMaxFontSize tests

* fix: createLoadableRenderer test

* fix: loadble and broken tests due to warnings

* fix: test coverage

* fix: coverage of generator tests

* fix: all unit tests pass

* fix: remove yeutech-lab/react-loadable
2021-11-26 11:45:00 +08:00
Ville Brofeldt
00ede940dc docs(number-format): add durationFormatter example README (#266)
* docs: add durationFormatter example to number-format README.md

* docs: refactor example to use registry
2021-11-26 11:45:00 +08:00
Ville Brofeldt
7212d1240b feat(number-format): bump pretty-ms to 5.1.0 (#262) 2021-11-26 11:45:00 +08:00
Krist Wongsuphasawat
2d91764c60 v0.12.7 2021-11-26 11:45:00 +08:00
Chris Williams
d6a46c1265 fix(dimension): set 0 width/height in createHiddenSvgNode (#261) 2021-11-26 11:45:00 +08:00
Krist Wongsuphasawat
09442bbfe0 v0.12.6 2021-11-26 11:45:00 +08:00
Krist Wongsuphasawat
62e801fd07 fix: typing issues surfaced by typescript 3.7 (#260) 2021-11-26 11:45:00 +08:00
Krist Wongsuphasawat
6aedef7447 docs: update readme and changelog 2021-11-26 11:45:00 +08:00
Krist Wongsuphasawat
28acf608c8 v0.12.5 2021-11-26 11:45:00 +08:00
Krist Wongsuphasawat
4274520781 feat: add @superset-ui/superset-ui package as one-stop install (#255) 2021-11-26 11:45:00 +08:00
dependabot-preview[bot]
934d6a7031 build(deps): bump @types/lodash from 4.14.147 to 4.14.149 (#259)
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.147 to 4.14.149.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:45:00 +08:00
Krist Wongsuphasawat
2745d8b513 build: migrate encodable to separate repo 2021-11-26 11:44:59 +08:00
Krist Wongsuphasawat
1772b671cf feat(encodable): add function for setting domain (#256)
* feat: add scale helper

* feat: add functions

* fix: remove unused import

* fix: add unit tests

* fix: unit tes
2021-11-26 11:44:59 +08:00
Krist Wongsuphasawat
e719c19365 feat(encodable): handle edge cases when making domain includes zero (#257)
* feat: handle edge cases when making domain includes zero

* test: remove redundant tests
2021-11-26 11:44:59 +08:00
Krist Wongsuphasawat
9ef831829b feat(encodable): implement axis functions for ChannelEncoder (#247)
* feat: add axis encoder

* test: add unit test

* fix: params

* refactor: rename

* fix: address comments

* fix: update import

* fix: error

* fix: lint
2021-11-26 11:44:59 +08:00
Krist Wongsuphasawat
f5f944b405 feat(encodable): make applyDomain() able to handle domain from dataset (#254)
* feat: make applyDomain() able to handle domain from dataset

* test: add unit tests

* fix: rename variable
2021-11-26 11:44:59 +08:00
dependabot-preview[bot]
497a4b0ea6 build(deps): bump chalk from 2.4.2 to 3.0.0 (#252)
Bumps [chalk](https://github.com/chalk/chalk) from 2.4.2 to 3.0.0.
- [Release notes](https://github.com/chalk/chalk/releases)
- [Commits](https://github.com/chalk/chalk/compare/v2.4.2...v3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:59 +08:00
Krist Wongsuphasawat
b6723737a3 feat(encodable): only set scale domain if both bounds are defined (#250)
* feat: only set scale domain if both bounds are presented

* fix: unit test

* fix: more optimize
2021-11-26 11:44:59 +08:00
dependabot-preview[bot]
f5f876fc32 build(deps): bump @types/lodash from 4.14.108 to 4.14.147 (#253)
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.108 to 4.14.147.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:59 +08:00
Krist Wongsuphasawat
2726e4a1b1 build: fix lodash type dependencies (#251) 2021-11-26 11:44:59 +08:00
Krist Wongsuphasawat
9300c2b40b refactor(encodable): rename .getDomain() to .getDomainFromDataset() (#248) 2021-11-26 11:44:59 +08:00
Krist Wongsuphasawat
f8bd7c6065 fix: d3 scale types (#246) 2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
20452b1cfc v0.12.4 2021-11-26 11:44:58 +08:00
Erik Ritter
9b0d77adea feat(time-format): bump d3-time-format (#244) 2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
a5a4f1bcec build: fix lint (#245) 2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
2923a9318d feat: add function for getting legend information (#236)
* feat: add .getLegendInformation()

* fix: lint

* test: add unit test

* feat: revise how legend information is computed

* fix: address comments
2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
6a5fcfd8ef build: fix vega and vega-lite version 2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
a1aa26d97c build: bump node version on travis 2021-11-26 11:44:58 +08:00
dependabot-preview[bot]
1e3f4bdf73 build(deps): bump @vx/responsive from 0.0.189 to 0.0.192 (#232)
Bumps [@vx/responsive](https://github.com/hshoff/vx) from 0.0.189 to 0.0.192.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hshoff/vx/compare/v0.0.189...v0.0.192)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
ac99cd0efb fix: build error (#235) 2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
e11071cd9c feat: Add Encoder (#230)
* feat: add encoder

* feat: add encoder

* refactor: revamp encoding types and derivations

* test: add unit tests

* fix: unit tests

* test: add unit tests

* fix: remove unused code

* fix: channeltype
2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
e07b6210bd build: fix lint errors (#231) 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
937a7ecb10 feat: Add channel encoder (#224)
* feat: add channel encoder

* fix: all errors

* fix: test

* feat: complete channel encoder implementation and unit tests

* fix: lint

* fix: address comments

* fix: lint
2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
1f70765f40 docs: update storybook doc 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
2e607e74c0 docs: add contributing guidelines 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
be9a396c02 docs: update README 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
be802de20d docs: update README 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
6cd7beed69 build: fix storybook type (#227) 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
1978d9bc2e feat(encodable): fill missing fields in user-specified channel definition (#222)
* feat: fill missing fields in user-specified channel definition

* fix: type

* test: add unit tests

* fix: lint

* test: add more unit tests

* test: add unit tests

* test: fix unit tests

* fix: unit tests

* refactor: change order of parameters

* fix: type annotation

* fix: type annotation

* feat: add generic support

* refactor: reorder params

* fix: rename variables
2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
c0c45c2d3c feat: add promiseTimeout (#223) 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
e6c3fad721 build: suppress logs from intentionally thrown/caught errors (#221) 2021-11-26 11:44:57 +08:00
Krist Wongsuphasawat
ba9f4b71f4 docs: update changelog 2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
e5377abbab v0.12.3 2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
885e4e9785 fix: fix React.Fragment complaining about width/height (#219) 2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
99532444f2 build: add missing unit test for callApi (#218)
* build: add missing unit test for callApi

* fix: test
2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
095c1839b2 feat: add Wrapper support and bounding box for dynamic width/height (#215)
* feat: add Wrapper support and bounding box for dynamic width/height

* fix: unit tests

* fix: address comments and update unit tests

* docs: update storybook
2021-11-26 11:44:56 +08:00
dependabot-preview[bot]
ed45bdfc06 build(deps): update @superset-ui/legacy-plugin-chart-sankey requirement (#217)
Updates the requirements on [@superset-ui/legacy-plugin-chart-sankey](https://github.com/apache-superset/superset-ui-plugins) to permit the latest version.
- [Release notes](https://github.com/apache-superset/superset-ui-plugins/releases)
- [Changelog](https://github.com/apache-superset/superset-ui-plugins/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apache-superset/superset-ui-plugins/compare/v0.10.0...v0.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:56 +08:00
dependabot-preview[bot]
10c1998c61 build(deps): update @superset-ui/legacy-plugin-chart-word-cloud requirement (#216)
Updates the requirements on [@superset-ui/legacy-plugin-chart-word-cloud](https://github.com/apache-superset/superset-ui-plugins) to permit the latest version.
- [Release notes](https://github.com/apache-superset/superset-ui-plugins/releases)
- [Changelog](https://github.com/apache-superset/superset-ui-plugins/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apache-superset/superset-ui-plugins/compare/v0.10.0...v0.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
74679623b0 refactor: rename encodeable to encodable (#214) 2021-11-26 11:44:56 +08:00
Krist Wongsuphasawat
024b318dd2 feat: add functions for parsing scales (#207)
* feat: add more util functions

* feat: add unit test

* feat: define HasToString

* fix: unit test

* fix: update unit tests

* feat: add scale types

* feat: update scale parsing

* fix: enum

* feat: add color scale extraction

* refactor: create scale from config

* feat: parse more scales and add more test

* feat: add tests for band and point

* test: add more unit tests

* refactor: separate applyXXX into multiple files

* feat: parse nice time

* test: add unit tests

* test: make 100% coverage

* fix: complete coverage

* refactor: update type definitions

* fix: address comments

* fix: add comments for date parts

* fix: build issue

* fix: broken tests
2021-11-26 11:44:56 +08:00
dependabot-preview[bot]
3138aaa229 build(deps): update @superset-ui/legacy-preset-chart-big-number requirement (#213)
Updates the requirements on [@superset-ui/legacy-preset-chart-big-number](https://github.com/apache-superset/superset-ui-plugins) to permit the latest version.
- [Release notes](https://github.com/apache-superset/superset-ui-plugins/releases)
- [Changelog](https://github.com/apache-superset/superset-ui-plugins/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apache-superset/superset-ui-plugins/compare/v0.10.0...v0.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:55 +08:00
dependabot-preview[bot]
59affbc29e build(deps): update @superset-ui/legacy-plugin-chart-sunburst requirement (#212)
Updates the requirements on [@superset-ui/legacy-plugin-chart-sunburst](https://github.com/apache-superset/superset-ui-plugins) to permit the latest version.
- [Release notes](https://github.com/apache-superset/superset-ui-plugins/releases)
- [Changelog](https://github.com/apache-superset/superset-ui-plugins/blob/master/CHANGELOG.md)
- [Commits](https://github.com/apache-superset/superset-ui-plugins/compare/v0.10.0...v0.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
51e6d05301 docs: update changelog 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
d70e634d32 v0.12.2 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
bffc760ac8 fix: remove is_prequery and prequeries (#208) 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
3928e063ae v0.12.1 2021-11-26 11:44:55 +08:00
Ville Brofeldt
dc9d0a0d40 feat: add duration formatter (#209)
* feat: add duration formatter

* fix: address review comments
2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
13ceb8dc70 fix: peerDependencies version (#210) 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
3e5789d150 docs: update readme 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
129042b6af docs: update changelog 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
287ee479e0 v0.12.0 2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
be65a04238 feat: add functions for parsing formatters from encoding (#205)
* feat: add function for parsing formatters from encoding

* fix: add unit test

* feat: add getter

* fix: update type
2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
3df26ae76d refactor(chart): remove and rename fields in ChartProps (#174)
* refactor(chart): remove and remove fields in ChartProps

BREAKING CHANGE: ChartProps fields are removed and renamed.

* test: update tests

* fix: unit tests

* fix: type
2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
cb9e617d90 feat: Add types and type guards for encodeable (#201)
* feat: scaffold superset-ui-encodeable

* feat: add type and typeguards

* fix: remove unused

* docs: update comments

* fix: address comments
2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
a7a12c79a2 feat: add control panel support to chart plugin (#203) 2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
0fb91c0e6b feat: deprecate old SuperChart API that accepts chartProps (#202)
BREAKING CHANGE: No longer accept chartProps as a single prop in <SuperChart>. Developers must specify each field in chartProps individually.
2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
9decd815ec feat: split superset-ui/query from superset-ui/chart (#178)
BREAKING CHANGE: some api and types are removed from @superset-ui/chart and moved to /query

* feat: split superset-ui/query from superset-ui/chart

* fix: update references

* test: fix broken tests

* refactor: rename ChartFormData to QueryFormData

* fix: rename file

* fix: remove annotation layer from query package
2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
fa70a61f50 docs: update change log 2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
277c2fb457 v0.11.15 2021-11-26 11:44:54 +08:00
Krist Wongsuphasawat
77e7a5319a feat: optimize functions for getting text dimension (#199)
* feat: add function for getting multiple text dimensions

* feat: lazy deletion

* feat: use lazy factory

* fix: comments

* fix: rename variable
2021-11-26 11:44:54 +08:00
erik_ritter
5badd26abb docs: update changelog 2021-11-26 11:44:53 +08:00
erik_ritter
02265669b3 v0.11.14 2021-11-26 11:44:53 +08:00
Erik Ritter
f0204ea9bd feat: allow reactify callbacks to access props (#200) 2021-11-26 11:44:53 +08:00
dependabot-preview[bot]
37e08a7a9d build(deps-dev): update lint-staged requirement from ^8.0.4 to ^9.2.1 (#197)
Updates the requirements on [lint-staged](https://github.com/okonet/lint-staged) to permit the latest version.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.0.4...v9.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:53 +08:00
Krist Wongsuphasawat
e48b445bfe fix: eslint issues (#198) 2021-11-26 11:44:53 +08:00
schoel-bis
fb4a3c2ec5 fix(connection): disable caching when on an insecure connection (#194)
When the page is served over an insecure connection, some browsers (Firefox) will disable the
CacheStorage API for security reasons and will throw an error when an attempt is made to use it.
Thus, do not even attempt to use CacheStorage on such connections in the first place.

fix #193
2021-11-26 11:44:53 +08:00
dependabot-preview[bot]
69238f0f07 build(deps-dev): update husky requirement from ^2.3.0 to ^3.0.1 (#195)
Updates the requirements on [husky](https://github.com/typicode/husky) to permit the latest version.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v2.3.0...v3.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:53 +08:00
Erik Ritter
e1c635d9e2 fix: clean up unneeded Promise.resolves() (#185) 2021-11-26 11:44:53 +08:00
dependabot-preview[bot]
e9c2b7146a build(deps): update whatwg-fetch requirement from ^2.0.4 to ^3.0.0 (#150)
Updates the requirements on [whatwg-fetch](https://github.com/github/fetch) to permit the latest version.
- [Release notes](https://github.com/github/fetch/releases)
- [Commits](https://github.com/github/fetch/compare/v2.0.4...v3.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2021-11-26 11:44:53 +08:00
Erik Ritter
3d6ef61658 fix: move eslint disable comment in reactify test (#184) 2021-11-26 11:44:53 +08:00
Krist Wongsuphasawat
3fc8551014 feat: support locale in number and time format (#182)
* feat: support locale in number and time format

* test: improve coverage

* test: merge js and ts test
2021-11-26 11:44:52 +08:00
Krist Wongsuphasawat
9b82cd203f v0.11.13 2021-11-26 11:44:52 +08:00
Krist Wongsuphasawat
3d6d622b18 fix: wrong type for filters field (#183) 2021-11-26 11:44:52 +08:00
Krist Wongsuphasawat
34e2e621e9 docs: update changelog 2021-11-26 11:44:52 +08:00
Krist Wongsuphasawat
b2b3bf639c v0.11.12 2021-11-26 11:44:52 +08:00
dependabot-preview[bot]
8d05924e75 build(deps-dev): update fast-glob requirement from ^2.2.6 to ^3.0.1 (#179)
Updates the requirements on [fast-glob](https://github.com/mrmlnc/fast-glob) to permit the latest version.
- [Release notes](https://github.com/mrmlnc/fast-glob/releases)
- [Commits](https://github.com/mrmlnc/fast-glob/compare/2.2.6...3.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-11-26 11:44:52 +08:00
Krist Wongsuphasawat
9f8461b965 feat: store reference to container and update bindings (#180)
* feat: store reference to container

* fix: minor adjustment

* feat: forward ref from shell to superchart
2021-11-26 11:44:52 +08:00
Krist Wongsuphasawat
135084c5ed v0.11.11 2021-11-26 11:44:52 +08:00
Krist Wongsuphasawat
34d475fac7 feat: add error boundary and responsiveness to SuperChart (#175)
* feat: add fallback component

* feat: add superchart shell

* feat: add vx/responsive type declaration

* fix: path and dependencies

* test: add unit tests

* test: add more tests

* docs: add storybook

* test: fix FallBackComponent test

* feat: make fallback accepts width and height

* test: reach 100%

* fix: test

* fix: add more checks

* refactor: rename SuperChartKernel to SuperChartCore

* refactor: separate backward-compatibility code into another wrapper
2021-11-26 11:44:52 +08:00
Krist Wongsuphasawat
420321ca7b v0.11.10 2021-11-26 11:44:51 +08:00
Krist Wongsuphasawat
5a79a7000f feat: add parseLength function to @superset-ui/dimension (#171)
* feat: add parseLength function

* feat: export

* fix: address Kim's comment
2021-11-26 11:44:51 +08:00
Krist Wongsuphasawat
4f23311813 test: extract mock plugins into separate file (#172)
* test: extract mock plugins into separate file

* fix: use constants

* fix: test coverage
2021-11-26 11:44:51 +08:00
Krist Wongsuphasawat
bbf13fd0d0 refactor: separate transform function types into a new file (#169)
* refactor: separate transform function types into a new file

* fix: import
2021-11-26 11:44:51 +08:00
Krist Wongsuphasawat
09f9405334 feat: allow chart plugin to be unregistered (#168)
* feat: allow chart plugin to be unregistered

* test: address edge cases
2021-11-26 11:44:51 +08:00
Krist Wongsuphasawat
62204a9dde build: bump build-config with beemo 1.0.0 2021-11-26 11:44:51 +08:00
Krist Wongsuphasawat
9810dad834 build: bump build-config (#167)
* build: bump build-config

* test: fix typings in mock data
2021-11-26 11:44:51 +08:00
Krist Wongsuphasawat
4b711eb299 v0.11.9 2021-11-26 11:44:51 +08:00
Krist Wongsuphasawat
70d210ca5d fix: remove padding in WithLegend 2021-11-26 11:44:51 +08:00
Krist Wongsuphasawat
7d6d5dcf4a docs: update changelog 2021-11-26 11:44:51 +08:00
dependabot-preview[bot]
e514f3efa5 build(deps-dev): update jest-mock-console requirement (#165)
Updates the requirements on [jest-mock-console](https://github.com/bpedersen/jest-mock-console) to permit the latest version.
- [Release notes](https://github.com/bpedersen/jest-mock-console/releases)
- [Commits](https://github.com/bpedersen/jest-mock-console/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2021-11-26 11:44:51 +08:00
dependabot-preview[bot]
5d3d688f4b build(deps): update d3-scale requirement from ^2.1.2 to ^3.0.0 (#146)
Updates the requirements on [d3-scale](https://github.com/d3/d3-scale) to permit the latest version.
- [Release notes](https://github.com/d3/d3-scale/releases)
- [Commits](https://github.com/d3/d3-scale/compare/v2.1.2...v3.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2021-11-26 11:44:50 +08:00
dependabot-preview[bot]
958e6160de build(deps): update yeoman-generator requirement from ^3.1.1 to ^4.0.0 (#152)
Updates the requirements on [yeoman-generator](https://github.com/yeoman/generator) to permit the latest version.
- [Release notes](https://github.com/yeoman/generator/releases)
- [Commits](https://github.com/yeoman/generator/compare/v3.1.1...v4.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2021-11-26 11:44:50 +08:00
Krist Wongsuphasawat
0669fca4fd v0.11.8 2021-11-26 11:44:50 +08:00
Krist Wongsuphasawat
c9e3e73f2e feat: update ChartFormData and QueryObject to support filters. (#164)
* feat: update types to include filters

* refactor: remove namespace

* refactor: split function

* feat: add filter processing and refactor

* feat: revise metrics processing

* test: add unit tests

* refactor: move type files back

* test: add unit tests

* fix: unit test

* fix: remove exports

* docs: add field info

* fix: type check undefined

* docs: add more comments

* build: speed up storybook build
2021-11-26 11:44:50 +08:00
dependabot[bot]
1d42434894 build(deps-dev): update husky requirement from ^1.1.2 to ^2.3.0 (#157)
Updates the requirements on [husky](https://github.com/typicode/husky) to permit the latest version.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v1.1.2...v2.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2021-11-26 11:44:50 +08:00
dependabot[bot]
4dad70ed8b build(deps): update @types/storybook__addon-knobs requirement (#147)
Updates the requirements on [@types/storybook__addon-knobs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/storybook__addon-knobs) to permit the latest version.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/storybook__addon-knobs)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2021-11-26 11:44:50 +08:00
dependabot[bot]
d68b3b9f76 build(deps-dev): update yeoman-test requirement from ^1.9.1 to ^2.0.0 (#161)
Updates the requirements on [yeoman-test](https://github.com/yeoman/yeoman-test) to permit the latest version.
- [Release notes](https://github.com/yeoman/yeoman-test/releases)
- [Commits](https://github.com/yeoman/yeoman-test/compare/v1.9.1...v2.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2021-11-26 11:44:50 +08:00
dependabot[bot]
ed2c4a6bf1 build(deps-dev): update fs-extra requirement from ^7.0.1 to ^8.0.1 (#155)
Updates the requirements on [fs-extra](https://github.com/jprichardson/node-fs-extra) to permit the latest version.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases)
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jprichardson/node-fs-extra/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2021-11-26 11:44:50 +08:00
dependabot[bot]
c393bc8247 build(deps): update @vx/responsive requirement from ^0.0.188 to ^0.0.189 (#160)
Updates the requirements on [@vx/responsive](https://github.com/hshoff/vx) to permit the latest version.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hshoff/vx/compare/v0.0.188...v0.0.189)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2021-11-26 11:44:50 +08:00
Krist Wongsuphasawat
01dd0f7ce5 v0.11.7 2021-11-26 11:44:50 +08:00
dependabot[bot]
5d0a693e3f build(deps): update @vx/responsive requirement from ^0.0.184 to ^0.0.188 (#145)
Updates the requirements on [@vx/responsive](https://github.com/hshoff/vx) to permit the latest version.
- [Release notes](https://github.com/hshoff/vx/releases)
- [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hshoff/vx/compare/v0.0.184...v0.0.188)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2021-11-26 11:44:49 +08:00
Krist Wongsuphasawat
aedc1b405d feat: improve margin merging (#159) 2021-11-26 11:44:49 +08:00
Krist Wongsuphasawat
58f606be88 v0.11.6 2021-11-26 11:44:49 +08:00
Krist Wongsuphasawat
eaa7851428 feat: add hooks (#158) 2021-11-26 11:44:49 +08:00
Saajan
3922193f57 docs: update Readme with missing yarn build command. (#156) 2021-11-26 11:44:49 +08:00
Krist Wongsuphasawat
8028c73cce fix: lint (#144) 2021-11-26 11:44:49 +08:00
Krist Wongsuphasawat
a148a2952b docs: update changelog 2021-11-26 11:44:49 +08:00
Krist Wongsuphasawat
3c8dd8cec0 v0.11.5 2021-11-26 11:44:49 +08:00
Krist Wongsuphasawat
80c46b0da3 chore: prepare to publish chart-composition 2021-11-26 11:44:49 +08:00
Krist Wongsuphasawat
e5e09f9f26 feat: add chart companion components (#139)
* feat: add chart companion components

* test: add more tests

* test: improve coverage

* test: fix failed test

* test: mock ResizeObserver

* fix: test coverage

* test: fix set dimension

* feat: make keyColumn optional

* fix: address comments

* fix: test delay
2021-11-26 11:44:49 +08:00
Krist Wongsuphasawat
d6f39335d8 fix: broken build due to failing unit tests (#141)
* fix: callapi unit test

* test: fix async calls

* fix: remaining test

* refactor: do not declare unused var
2021-11-26 11:44:48 +08:00
Krist Wongsuphasawat
6421d4b514 build: update build config 2021-11-26 11:44:48 +08:00
Krist Wongsuphasawat
3499761137 v0.11.4 2021-11-26 11:44:48 +08:00
Krist Wongsuphasawat
a35f88a69e fix: make translation module type check correctly (#140) 2021-11-26 11:44:48 +08:00
Krist Wongsuphasawat
368ed3cb5b build: fix changelog script 2021-11-26 11:44:48 +08:00
Krist Wongsuphasawat
f0d55c313f docs: update changelog 2021-11-26 11:44:48 +08:00
Krist Wongsuphasawat
847655a4ef v0.11.3 2021-11-26 11:44:48 +08:00
Krist Wongsuphasawat
99c2e4c875 fix: bump peer dependencies (#136) 2021-11-26 11:44:48 +08:00
Hamel Husain
4d317fc021 chore: create issue_label_bot.yaml (#135) 2021-11-26 11:44:48 +08:00
Krist Wongsuphasawat
f878e62e29 docs: readme (#134) 2021-11-26 11:44:48 +08:00
Krist Wongsuphasawat
2feb8948bf build: migrate to storybook 5 (#133)
* build: storybook 5

* feat: configure js/jsx storybook

* chore: modify storybook webpack config

* fix: type

* fix: packages.json dep order
2021-11-26 11:44:47 +08:00
Krist Wongsuphasawat
921fb90fa0 chore: add config for no-response bot (#130) 2021-11-26 11:44:47 +08:00
Christine Chambers
61c7e691b6 v0.11.2 2021-11-26 11:44:47 +08:00
Thomas Wang
cbc1de5c76 fix: smartDateVerbose at seconds (#132)
* fix: smartDateVerbose at seconds

* revert the version increment
2021-11-26 11:44:47 +08:00
Christine Chambers
49edfb4efe v0.11.1 2021-11-26 11:44:47 +08:00
Christine Chambers
2ac3c082ab feat: callback hooks for Reactified components (#131)
* feat: callback hooks for Reactified components

Add a second argument to the exported `reactify` method to allow wrapped component to pass in callback hooks for React lifecycle methods. This PR only exposes the willUnmount hook. Other hooks can be added in the future.

* fix: improve code coverage

* chore: rename willUnmount hook to componentWillUnmount
2021-11-26 11:44:47 +08:00
Krist Wongsuphasawat
bd8b699a7d docs: update changelog (#129)
* docs: update changelog

* chore: update changelog script

* docs: update changelog
2021-11-26 11:44:47 +08:00
Christine Chambers
684e56b43e v0.11.0 2021-11-26 11:44:47 +08:00
Christine Chambers
f71180e251 Revert "Handle BigNumber conversions in JSON properly (without loss of precision) (#71)" (#126)
* revert: revert "Handle BigNumber conversions in JSON properly (without loss of precision) (#71)"

This reverts commit e3866129b2b3cbd6e099fe4ab66319c4fe6ae485.

* fix: type errors

* fix: typescript errors in superset-ui-demo
2021-11-26 11:44:47 +08:00
Krist Wongsuphasawat
fef6466f74 v0.10.10 2021-11-26 11:44:47 +08:00
Beto Dealmeida
a63f947ff5 feat: add support for conditional get requests (#119)
* feat: add support for conditional requests

* feat: add unit tests for conditional requests

* feat: use invariant

* feat: add type guard

* feat: fix lint

* feat: add more unit tests
2021-11-26 11:44:46 +08:00
Krist Wongsuphasawat
27941b673f docs: update changelog 2021-11-26 11:44:46 +08:00
Krist Wongsuphasawat
e4beba91a2 v0.10.9 2021-11-26 11:44:46 +08:00
Krist Wongsuphasawat
82a142f542 chore: enforce check on PR title to be conventional commit (#113) 2021-11-26 11:44:46 +08:00
Kim Truong
c9b9935551 feat: add labels to color scheme (#125) 2021-11-26 11:44:46 +08:00
Conglei Shi
3113023b0f v0.10.8 2021-11-26 11:44:46 +08:00
Conglei
fdd10fa062 fix: 🐛 Fixed type definition for chart plugin (#123)
* fix: 🐛 Fixed typ definiton for chart plugin

This PR is to fix the type definiton for transformProps and LoadData.

* fix: 🐛 Type compatibility

Change the output of preTransformProps to ChartProps

* fix: 🐛 Fixed Test

Fixed the test according to the changes:
2021-11-26 11:44:46 +08:00