Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
# Conflicts:
#	app/package.json
#	draft-rte/package.json
#	epam-assets/package.json
#	epam-electric/package.json
#	epam-promo/package.json
#	extra/package.json
#	lerna.json
#	loveship/package.json
#	templates/uui-cra-template/package.json
#	test-utils/package.json
#	uui-build/package.json
#	uui-components/package.json
#	uui-core/package.json
#	uui-db/package.json
#	uui-docs/package.json
#	uui-e2e-tests/package.json
#	uui-editor/package.json
#	uui-timeline/package.json
#	uui/package.json
  • Loading branch information
AlekseyManetov committed Oct 22, 2024
2 parents d9d920d + c3d5573 commit be656d5
Show file tree
Hide file tree
Showing 20 changed files with 85 additions and 70 deletions.
26 changes: 13 additions & 13 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/app",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "EPAM Unified UI landing",
"author": "EPAM",
"license": "MIT",
Expand All @@ -17,19 +17,19 @@
"dependencies": {
"@babel/plugin-proposal-private-property-in-object": "7.21.11",
"@elastic/apm-rum": "^5.14.0",
"@epam/assets": "5.11.0-alpha.0",
"@epam/draft-rte": "5.11.0-alpha.0",
"@epam/electric": "5.11.0-alpha.0",
"@epam/assets": "5.10.2-alpha.0",
"@epam/draft-rte": "5.10.2-alpha.0",
"@epam/electric": "5.10.2-alpha.0",
"@epam/internal": "0.0.2",
"@epam/loveship": "5.11.0-alpha.0",
"@epam/promo": "5.11.0-alpha.0",
"@epam/uui": "5.11.0-alpha.0",
"@epam/uui-components": "5.11.0-alpha.0",
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/uui-db": "5.11.0-alpha.0",
"@epam/uui-docs": "5.11.0-alpha.0",
"@epam/uui-editor": "5.11.0-alpha.0",
"@epam/uui-timeline": "5.11.0-alpha.0",
"@epam/loveship": "5.10.2-alpha.0",
"@epam/promo": "5.10.2-alpha.0",
"@epam/uui": "5.10.2-alpha.0",
"@epam/uui-components": "5.10.2-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"@epam/uui-db": "5.10.2-alpha.0",
"@epam/uui-docs": "5.10.2-alpha.0",
"@epam/uui-editor": "5.10.2-alpha.0",
"@epam/uui-timeline": "5.10.2-alpha.0",
"@tanstack/react-query": "^5.17.19",
"@udecode/plate-common": "31.3.2",
"amplitude-js": "8.9.1",
Expand Down
10 changes: 5 additions & 5 deletions draft-rte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/draft-rte",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"author": "EPAM",
"license": "MIT",
"main": "index.js",
Expand All @@ -11,10 +11,10 @@
"prepublish": "yarn build"
},
"dependencies": {
"@epam/assets": "5.11.0-alpha.0",
"@epam/loveship": "5.11.0-alpha.0",
"@epam/uui-components": "5.11.0-alpha.0",
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/assets": "5.10.2-alpha.0",
"@epam/loveship": "5.10.2-alpha.0",
"@epam/uui-components": "5.10.2-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"@types/draft-js": "0.10.23",
"classnames": "^2.2.6",
"draft-convert": "^2.1.2",
Expand Down
4 changes: 2 additions & 2 deletions epam-assets/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@epam/assets",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "EPAM Assets Library",
"author": "EPAM",
"license": "MIT",
"scripts": {
"build": "ts-node -T ../uui-build/ts/scripts/buildUuiModule.ts && yarn buildTheme",
"buildTheme": "yarn --cwd ../uui-build compile-theme-scss --dirs=./epam-assets/theme:./epam-assets/build/css/theme --recursive",
"buildTheme": "yarn --cwd ../uui-build compile-theme-scss --dirs=./epam-assets/theme:./epam-assets/build/css/theme",
"prepublish": "yarn build"
},
"repository": {
Expand Down
8 changes: 4 additions & 4 deletions epam-electric/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/electric",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "EPAM UUI components set branded with 'electric' style",
"author": "EPAM",
"license": "MIT",
Expand All @@ -12,9 +12,9 @@
"prepublish": "yarn build"
},
"dependencies": {
"@epam/uui": "5.11.0-alpha.0",
"@epam/uui-components": "5.11.0-alpha.0",
"@epam/uui-core": "5.11.0-alpha.0"
"@epam/uui": "5.10.2-alpha.0",
"@epam/uui-components": "5.10.2-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0"
},
"devDependencies": {
"mockdate": "^3.0.5"
Expand Down
10 changes: 5 additions & 5 deletions epam-promo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/promo",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "EPAM UUI4 components set",
"author": "EPAM",
"license": "MIT",
Expand All @@ -12,10 +12,10 @@
"prepublish": "yarn build"
},
"dependencies": {
"@epam/assets": "5.11.0-alpha.0",
"@epam/uui": "5.11.0-alpha.0",
"@epam/uui-components": "5.11.0-alpha.0",
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/assets": "5.10.2-alpha.0",
"@epam/uui": "5.10.2-alpha.0",
"@epam/uui-components": "5.10.2-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"@types/classnames": "2.2.6",
"classnames": "2.2.6"
},
Expand Down
8 changes: 4 additions & 4 deletions extra/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/uui-extra",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "EPAM UUI components set branded with 'loveship' style",
"author": "EPAM",
"license": "MIT",
Expand All @@ -11,9 +11,9 @@
"build": "ts-node ../uui-build/ts/scripts/buildUuiModule.ts"
},
"dependencies": {
"@epam/loveship": "5.11.0-alpha.0",
"@epam/promo": "5.11.0-alpha.0",
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/loveship": "5.10.2-alpha.0",
"@epam/promo": "5.10.2-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"immutable": "3.8.2"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"npmClient": "yarn",
"useWorkspaces": true,
"exact": true
Expand Down
10 changes: 5 additions & 5 deletions loveship/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/loveship",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "EPAM UUI components set branded with 'loveship' style",
"author": "EPAM",
"license": "MIT",
Expand All @@ -12,10 +12,10 @@
"prepublish": "yarn build"
},
"dependencies": {
"@epam/assets": "5.11.0-alpha.0",
"@epam/uui": "5.11.0-alpha.0",
"@epam/uui-components": "5.11.0-alpha.0",
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/assets": "5.10.2-alpha.0",
"@epam/uui": "5.10.2-alpha.0",
"@epam/uui-components": "5.10.2-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"@types/classnames": "2.2.6",
"classnames": "2.2.6"
},
Expand Down
2 changes: 1 addition & 1 deletion templates/uui-cra-template/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/cra-template-uui",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"keywords": [
"UUI",
"react",
Expand Down
4 changes: 2 additions & 2 deletions test-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/uui-test-utils",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"author": "EPAM",
"license": "MIT",
"private": false,
Expand All @@ -11,7 +11,7 @@
"prepublish": "yarn build"
},
"dependencies": {
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "14.4.3",
"@types/react-test-renderer": "18.0.0",
Expand Down
4 changes: 2 additions & 2 deletions uui-build/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@epam/uui-build",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"bin": {
"epam-uui-build": "./bin/cli.js"
},
"scripts": {
"build": "yarn build-module",
"build-module": "ts-node -T ts/scripts/buildUuiModule.ts",
"generate-components-api": "ts-node ts/scripts/docsGen.ts",
"generate-theme-tokens": "ts-node ts/scripts/themeTokensGen.ts --tokens=../public/docs/figmaTokensGen/Theme.json --out-tokens=../public/docs/figmaTokensGen/ThemeOutput.json --out-tokens-data=../public/docs/figmaTokensGen/ThemeTokens.json --out=../epam-assets/theme/variables/tokens",
"generate-theme-tokens": "ts-node ts/scripts/themeTokensGen.ts --tokens=../public/docs/figmaTokensGen/Theme.json --out-tokens=../public/docs/figmaTokensGen/ThemeOutput.json --out-tokens-data=../public/docs/figmaTokensGen/ThemeTokens.json --out=../epam-assets/theme/tokens",
"compile-theme-scss": "ts-node ts/scripts/compileThemeScss.ts",
"track-bundle-size": "ts-node ts/scripts/trackBundleSize.ts",
"prepublish": "yarn build",
Expand Down
4 changes: 2 additions & 2 deletions uui-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/uui-components",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "EPAM UUI Components",
"author": "EPAM",
"license": "MIT",
Expand All @@ -13,7 +13,7 @@
"prepublish": "yarn build"
},
"dependencies": {
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"@popperjs/core": "2.9.0",
"@types/classnames": "2.2.6",
"@types/react-measure": "2.0.8",
Expand Down
19 changes: 17 additions & 2 deletions uui-components/src/pickers/hooks/usePicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,23 @@ export function usePicker<TItem, TId, TProps extends PickerBaseProps<TItem, TId>
&& dataSourceState.selectedId !== prevDataSourceState.selectedId)
))
) {
if (!isEqual(value, newValue)) {
handleSelectionValueChange(newValue);
// For entity mode we should check only ids because external entity can be different from ds entity
if (props.valueType === 'entity') {
if (props.selectionMode === 'single') {
if (props.dataSource.getId(value as TItem) !== props.dataSource.getId(newValue as TItem)) {
handleSelectionValueChange(newValue);
}
} else {
const newIds = (newValue as TItem[])?.map((i) =>props.dataSource.getId(i));
const prevIds = (value as TItem[])?.map((i) =>props.dataSource.getId(i));
if (!isEqual(newIds, prevIds)) {
handleSelectionValueChange(newValue);
}
}
} else {
if (!isEqual(value, newValue)) {
handleSelectionValueChange(newValue);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion uui-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/uui-core",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "EPAM UUI Core",
"author": "EPAM",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions uui-db/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/uui-db",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "UUI - client-side relational state cache",
"author": "EPAM",
"license": "MIT",
Expand All @@ -14,7 +14,7 @@
"prepublish": "yarn build"
},
"dependencies": {
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"@types/lodash.countby": "4.6.6",
"@types/lodash.filter": "4.6.6",
"@types/lodash.foreach": "4.5.6",
Expand Down
12 changes: 6 additions & 6 deletions uui-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/uui-docs",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "EPAM UUI Documentation infrastructure",
"author": "EPAM",
"license": "MIT",
Expand All @@ -12,11 +12,11 @@
"prepublish": "yarn build"
},
"dependencies": {
"@epam/assets": "5.11.0-alpha.0",
"@epam/promo": "5.11.0-alpha.0",
"@epam/uui": "5.11.0-alpha.0",
"@epam/uui-components": "5.11.0-alpha.0",
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/assets": "5.10.2-alpha.0",
"@epam/promo": "5.10.2-alpha.0",
"@epam/uui": "5.10.2-alpha.0",
"@epam/uui-components": "5.10.2-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"@types/classnames": "2.2.6",
"classnames": "^2.2.6"
},
Expand Down
2 changes: 1 addition & 1 deletion uui-e2e-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/uui-e2e-tests",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "",
"author": "EPAM",
"license": "MIT",
Expand Down
10 changes: 5 additions & 5 deletions uui-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/uui-editor",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"author": "EPAM",
"license": "MIT",
"main": "index.js",
Expand All @@ -12,10 +12,10 @@
},
"dependencies": {
"@braintree/sanitize-url": "7.0.0",
"@epam/assets": "5.11.0-alpha.0",
"@epam/uui": "5.11.0-alpha.0",
"@epam/uui-components": "5.11.0-alpha.0",
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/assets": "5.10.2-alpha.0",
"@epam/uui": "5.10.2-alpha.0",
"@epam/uui-components": "5.10.2-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"@udecode/plate-autoformat": "31.0.0",
"@udecode/plate-basic-marks": "31.0.0",
"@udecode/plate-block-quote": "31.0.0",
Expand Down
6 changes: 3 additions & 3 deletions uui-timeline/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/uui-timeline",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"author": "EPAM",
"license": "MIT",
"main": "index.js",
Expand All @@ -11,8 +11,8 @@
"prepublish": "yarn build"
},
"dependencies": {
"@epam/uui-components": "5.11.0-alpha.0",
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/uui-components": "5.10.2-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"@types/lodash.sortedindex": "^4.1.9",
"classnames": "^2.2.6",
"lodash.sortedindex": "^4.1.0"
Expand Down
8 changes: 4 additions & 4 deletions uui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epam/uui",
"version": "5.11.0-alpha.0",
"version": "5.10.2-alpha.0",
"description": "EPAM UUI components set",
"author": "EPAM",
"license": "MIT",
Expand All @@ -12,9 +12,9 @@
"prepublish": "yarn build"
},
"dependencies": {
"@epam/assets": "5.11.0-alpha.0",
"@epam/uui-components": "5.11.0-alpha.0",
"@epam/uui-core": "5.11.0-alpha.0",
"@epam/assets": "5.10.2-alpha.0",
"@epam/uui-components": "5.10.2-alpha.0",
"@epam/uui-core": "5.10.2-alpha.0",
"@popperjs/core": "2.9.0",
"classnames": "2.2.6",
"dayjs": "1.11.12",
Expand Down

0 comments on commit be656d5

Please sign in to comment.