diff --git a/.changeset/red-moles-exist.md b/.changeset/red-moles-exist.md new file mode 100644 index 00000000000..bf44f323f99 --- /dev/null +++ b/.changeset/red-moles-exist.md @@ -0,0 +1,8 @@ +--- +'@talend/react-faceted-search': patch +'@talend/react-components': patch +'@talend/react-forms': patch +'@talend/utils': patch +--- + +fix: loadash imports diff --git a/packages/components/src/FormatValue/FormatValue.component.js b/packages/components/src/FormatValue/FormatValue.component.js index b620b9fd0fc..3b354132b30 100644 --- a/packages/components/src/FormatValue/FormatValue.component.js +++ b/packages/components/src/FormatValue/FormatValue.component.js @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next'; import classNames from 'classnames'; -import { escapeRegExp } from 'lodash'; +import escapeRegExp from 'lodash/escapeRegExp'; import PropTypes from 'prop-types'; import I18N_DOMAIN_COMPONENTS from '../constants'; diff --git a/packages/faceted-search/src/components/Badges/BadgeFaceted/BadgeFaceted.component.js b/packages/faceted-search/src/components/Badges/BadgeFaceted/BadgeFaceted.component.js index 1c1647393a0..e048b1b95ac 100644 --- a/packages/faceted-search/src/components/Badges/BadgeFaceted/BadgeFaceted.component.js +++ b/packages/faceted-search/src/components/Badges/BadgeFaceted/BadgeFaceted.component.js @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react'; import classNames from 'classnames'; -import { isEqual } from 'lodash'; +import isEqual from 'lodash/isEqual'; import PropTypes from 'prop-types'; import Badge from '@talend/react-components/lib/Badge'; diff --git a/packages/faceted-search/src/components/BasicSearch/BasicSearch.component.js b/packages/faceted-search/src/components/BasicSearch/BasicSearch.component.js index e60bbe094a8..b7eb0eda923 100644 --- a/packages/faceted-search/src/components/BasicSearch/BasicSearch.component.js +++ b/packages/faceted-search/src/components/BasicSearch/BasicSearch.component.js @@ -1,6 +1,7 @@ import { useEffect, useMemo, useState } from 'react'; -import { get, isEqual } from 'lodash'; +import get from 'lodash/get'; +import isEqual from 'lodash/isEqual'; import PropTypes from 'prop-types'; import { ButtonIcon, ButtonSecondary, Popover } from '@talend/design-system'; diff --git a/packages/forms/__mocks__/data.js b/packages/forms/__mocks__/data.js index 036c93b42f8..245653f2f03 100644 --- a/packages/forms/__mocks__/data.js +++ b/packages/forms/__mocks__/data.js @@ -1,4 +1,4 @@ -import { cloneDeep } from 'lodash'; +import cloneDeep from 'lodash/cloneDeep'; export const data = { jsonSchema: { diff --git a/packages/forms/src/UIForm/fieldsets/Array/Array.component.js b/packages/forms/src/UIForm/fieldsets/Array/Array.component.js index f02b1b7b8eb..978a3e9dcdd 100644 --- a/packages/forms/src/UIForm/fieldsets/Array/Array.component.js +++ b/packages/forms/src/UIForm/fieldsets/Array/Array.component.js @@ -1,6 +1,7 @@ import { Component } from 'react'; -import { get, head } from 'lodash'; +import get from 'lodash/get'; +import head from 'lodash/head'; import PropTypes from 'prop-types'; import { getArrayElementSchema } from '../../utils/array'; diff --git a/packages/utils/src/getDataAttrFromProps.ts b/packages/utils/src/getDataAttrFromProps.ts index d9ffc99e28f..b82a5d96ed0 100644 --- a/packages/utils/src/getDataAttrFromProps.ts +++ b/packages/utils/src/getDataAttrFromProps.ts @@ -1,4 +1,4 @@ -import { pick } from 'lodash'; +import pick from 'lodash/pick'; /** * get data attributes from props