From d963f18cc68920c7ea1c20fd4e0f802f7715560d Mon Sep 17 00:00:00 2001 From: Elena Martynova Date: Fri, 12 Apr 2024 12:21:41 +0300 Subject: [PATCH] fix: change types setting path to common one (#138) * chore: improve changelog * fix: change types setting path to common one --- CHANGELOG.md | 12 +++++++++--- package.json | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c104d5..4c2fddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,15 @@ * separated helpers export from ui ([#133](https://github.com/gravity-ui/dashkit/issues/133)) -### refactor - -* separated helpers export from ui ([#133](https://github.com/gravity-ui/dashkit/issues/133)) ([5786de8](https://github.com/gravity-ui/dashkit/commit/5786de8f2658fa3dd441b93bb0973b5725649808)) +Functions and constants from `src/utils`, `src/shared` and `src/constants` are available for export from another endpoint `helpers`. +For example, previously you could use: +``` +import {transformParamsToActionParams} from '@gravity-ui/dashkit'; +``` +now you should use: +``` +import {transformParamsToActionParams} from '@gravity-ui/dashkit/helpers'; +``` ### Features diff --git a/package.json b/package.json index c76a05a..a5ae14d 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ }, "main": "./build/cjs/index.js", "module": "./build/esm/index.js", - "types": "build/esm/index.d.ts", + "types": "./build/esm/index.d.ts", "typesVersions": { "*": { "index.d.ts": [