@reltio/sources 1.4.1586-mui5 → 1.4.1586-mui5-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +21 -38
- package/index.ts +0 -1
- package/public/package.json +0 -22
- package/scripts/build/index.js +0 -20
- package/src/components/CrosswalkTreeView/CrosswalkTreeView.tsx +0 -47
- package/src/components/CrosswalkTreeView/__tests__/CrosswalkTreeView.spec.tsx +0 -72
- package/src/components/CrosswalkTreeView/__tests__/helpers.spec.ts +0 -961
- package/src/components/CrosswalkTreeView/helpers.ts +0 -91
- package/src/components/CrosswalkTreeView/styles.ts +0 -10
- package/src/components/EmptyState/EmptyState.tsx +0 -20
- package/src/components/EmptyState/__tests__/EmptyState.test.tsx +0 -13
- package/src/components/EmptyState/icons/EmptySources.svg +0 -43
- package/src/components/EmptyState/styles.ts +0 -19
- package/src/components/LegendTable/LegendTable.tsx +0 -124
- package/src/components/LegendTable/LegendTableRow/ContributorRow/ContributorRow.tsx +0 -46
- package/src/components/LegendTable/LegendTableRow/ContributorRow/__tests__/ContributorRow.test.tsx +0 -103
- package/src/components/LegendTable/LegendTableRow/ContributorRow/styles.ts +0 -31
- package/src/components/LegendTable/LegendTableRow/LegendTableRow.tsx +0 -179
- package/src/components/LegendTable/LegendTableRow/__tests__/LegendTableRow.test.tsx +0 -371
- package/src/components/LegendTable/LegendTableRow/styles.ts +0 -31
- package/src/components/LegendTable/__tests__/LegendTable.test.tsx +0 -273
- package/src/components/LegendTable/__tests__/helpers.test.ts +0 -541
- package/src/components/LegendTable/helpers.ts +0 -64
- package/src/components/LegendTable/styles.ts +0 -17
- package/src/components/LegendView/LegendView.tsx +0 -201
- package/src/components/LegendView/__tests__/LegendView.test.tsx +0 -307
- package/src/components/LegendView/styles.ts +0 -51
- package/src/components/RightSidePanel/RightSidePanel.tsx +0 -25
- package/src/components/RightSidePanel/__tests__/RightSidePanel.test.tsx +0 -28
- package/src/components/RightSidePanel/styles.ts +0 -14
- package/src/components/RulesestsSelector/RulesestsSelector.tsx +0 -31
- package/src/components/RulesestsSelector/RulesetOption/RulesetOption.tsx +0 -25
- package/src/components/RulesestsSelector/RulesetOption/__tests__/RulesetOption.test.tsx +0 -25
- package/src/components/RulesestsSelector/RulesetOption/styles.ts +0 -27
- package/src/components/RulesestsSelector/RulesetsMenuList/RulesetsMenuList.tsx +0 -14
- package/src/components/RulesestsSelector/__tests__/RulesetsSelector.test.tsx +0 -91
- package/src/components/RulesestsSelector/styles.ts +0 -7
- package/src/components/SankeyChart/Link.tsx +0 -31
- package/src/components/SankeyChart/MergeTooltip.tsx +0 -37
- package/src/components/SankeyChart/Node.tsx +0 -137
- package/src/components/SankeyChart/SankeyChart.tsx +0 -103
- package/src/components/SankeyChart/__tests__/Link.spec.tsx +0 -127
- package/src/components/SankeyChart/__tests__/MergeTooltip.spec.tsx +0 -22
- package/src/components/SankeyChart/__tests__/Node.spec.tsx +0 -248
- package/src/components/SankeyChart/__tests__/SankeyChart.spec.tsx +0 -161
- package/src/components/SankeyChart/__tests__/__snapshots__/SankeyChart.spec.tsx.snap +0 -183
- package/src/components/SankeyChart/sankey.ts +0 -322
- package/src/components/SankeyChart/styles.ts +0 -41
- package/src/components/SankeyChart/useSankey.tsx +0 -44
- package/src/components/SelectableTree/SelectableTree.tsx +0 -46
- package/src/components/SelectableTree/__tests__/SelectableTree.test.tsx +0 -28
- package/src/components/SelectableTree/__tests__/__snapshots__/SelectableTree.test.tsx.snap +0 -59
- package/src/components/SelectableTree/styles.ts +0 -42
- package/src/components/SourcesView/SourcesView.tsx +0 -318
- package/src/components/SourcesView/__tests__/IntegrationSourcesView.spec.tsx +0 -199
- package/src/components/SourcesView/__tests__/SourcesView.spec.tsx +0 -903
- package/src/components/SourcesView/__tests__/data/metadata.data.ts +0 -27
- package/src/components/SourcesView/__tests__/data/store.data.ts +0 -65
- package/src/components/SourcesView/icons/LegendIcon.svg +0 -8
- package/src/components/SourcesView/index.tsx +0 -57
- package/src/components/SourcesView/styles.ts +0 -44
- package/src/components/TreeActionSnackbar/TreeActionSnackbar.tsx +0 -38
- package/src/components/TreeActionSnackbar/__tests__/TreeActionSnackbar.test.tsx +0 -38
- package/src/components/TreeActionSnackbar/styles.ts +0 -11
- package/src/components/UnmergeDialog/UnmergeDialog.tsx +0 -78
- package/src/components/UnmergeDialog/__tests__/UnmergeDialog.test.tsx +0 -124
- package/src/components/UnmergeDialog/__tests__/testData.data.ts +0 -271
- package/src/components/UnmergeDialog/styles.ts +0 -34
- package/src/components/UnsubscribeDialog/UnsubscribeDialog.tsx +0 -64
- package/src/components/UnsubscribeDialog/__tests__/UnsubscribeDialog.test.tsx +0 -59
- package/src/components/UnsubscribeDialog/styles.ts +0 -31
- package/src/hooks/__tests__/useCrosswalkTree.specs.tsx +0 -68
- package/src/hooks/__tests__/useCrosswalkTreeActions.specs.ts +0 -110
- package/src/hooks/__tests__/useCrosswalksDisplay.specs.tsx +0 -213
- package/src/hooks/__tests__/useEntityWithSurvivorshipGroups.specs.ts +0 -160
- package/src/hooks/useCrosswalkTree.ts +0 -38
- package/src/hooks/useCrosswalkTreeActions.ts +0 -83
- package/src/hooks/useCrosswalksDisplay.ts +0 -110
- package/src/hooks/useEntityWithSurvivorshipGroups.tsx +0 -51
- package/src/icons/notMatch.svg +0 -14
- package/src/index.ts +0 -1
- package/src/services/errors.ts +0 -11
- package/src/types/LegendMode.ts +0 -5
- package/src/types/SankeyChartData.ts +0 -31
- package/src/types/SourcesSavedState.ts +0 -3
- package/src/types/UnmergeContributorEvent.ts +0 -7
- package/src/types/UnsubscribeContributorEvent.ts +0 -6
- package/src/types/index.ts +0 -4
- package/tsconfig.json +0 -4
- package/webpack.config.js +0 -10
- /package/{public/bundle.js → bundle.js} +0 -0
- /package/{public/bundle.js.LICENSE.txt → bundle.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,39 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"@date-io/moment": "^1.3.5",
|
|
24
|
-
"@reltio/mdm-module": "^1.4.1586-mui5",
|
|
25
|
-
"@reltio/mdm-sdk": "^1.4.1586-mui5",
|
|
26
|
-
"classnames": "^2.2.5",
|
|
27
|
-
"object-hash": "^2.1.1",
|
|
28
|
-
"prop-types": "^15.6.2",
|
|
29
|
-
"ramda": "^0.28.0",
|
|
30
|
-
"react-redux": "^7.2.3",
|
|
31
|
-
"react-resize-detector": "^4.2.0",
|
|
32
|
-
"redux": "^4.1.2",
|
|
33
|
-
"ui-i18n": "bitbucket:reltio-ondemand/ui-i18n#v1.4.0"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@reltio/components": "^1.4.1586-mui5"
|
|
37
|
-
},
|
|
38
|
-
"gitHead": "746e04a2ebbd1e190caf6e7b504eede0fd54d100"
|
|
39
|
-
}
|
|
2
|
+
"name": "@reltio/sources",
|
|
3
|
+
"version": "1.4.1586-mui5-2",
|
|
4
|
+
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
|
+
"main": "bundle.js",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@date-io/moment": "^1.3.5",
|
|
8
|
+
"@reltio/mdm-module": "^1.4.1586-mui5-2",
|
|
9
|
+
"@reltio/mdm-sdk": "^1.4.1586-mui5-2",
|
|
10
|
+
"classnames": "^2.2.5",
|
|
11
|
+
"object-hash": "^2.1.1",
|
|
12
|
+
"prop-types": "^15.6.2",
|
|
13
|
+
"ramda": "^0.28.0",
|
|
14
|
+
"react-redux": "^7.2.3",
|
|
15
|
+
"react-resize-detector": "^4.2.0",
|
|
16
|
+
"redux": "^4.1.2",
|
|
17
|
+
"ui-i18n": "bitbucket:reltio-ondemand/ui-i18n#v1.4.0"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
}
|
|
22
|
+
}
|
package/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {SourcesView} from './src/index';
|
package/public/package.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@reltio/sources",
|
|
3
|
-
"version": "1.4.1586-mui5",
|
|
4
|
-
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
|
-
"main": "bundle.js",
|
|
6
|
-
"dependencies": {
|
|
7
|
-
"@date-io/moment": "^1.3.5",
|
|
8
|
-
"@reltio/mdm-module": "^1.4.1586-mui5",
|
|
9
|
-
"@reltio/mdm-sdk": "^1.4.1586-mui5",
|
|
10
|
-
"classnames": "^2.2.5",
|
|
11
|
-
"object-hash": "^2.1.1",
|
|
12
|
-
"prop-types": "^15.6.2",
|
|
13
|
-
"ramda": "^0.28.0",
|
|
14
|
-
"react-redux": "^7.2.3",
|
|
15
|
-
"react-resize-detector": "^4.2.0",
|
|
16
|
-
"redux": "^4.1.2",
|
|
17
|
-
"ui-i18n": "bitbucket:reltio-ondemand/ui-i18n#v1.4.0"
|
|
18
|
-
},
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
21
|
-
}
|
|
22
|
-
}
|
package/scripts/build/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
|
|
4
|
-
const outputDir = path.resolve(process.cwd(), 'public');
|
|
5
|
-
const generatePackageJson = () => {
|
|
6
|
-
const packageJson = require('../../package.json');
|
|
7
|
-
const result = {
|
|
8
|
-
name: packageJson.name,
|
|
9
|
-
version: packageJson.version,
|
|
10
|
-
license: 'SEE LICENSE IN LICENSE FILE',
|
|
11
|
-
main: 'bundle.js',
|
|
12
|
-
dependencies: packageJson.dependencies,
|
|
13
|
-
peerDependencies: packageJson.peerDependencies,
|
|
14
|
-
publishConfig: packageJson.publishConfig
|
|
15
|
-
};
|
|
16
|
-
const source = JSON.stringify(result, null, 2);
|
|
17
|
-
fs.writeFileSync(path.join(outputDir, 'package.json'), source);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
generatePackageJson();
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React, {memo} from 'react';
|
|
2
|
-
import ReactResizeDetector from 'react-resize-detector';
|
|
3
|
-
import {noop} from '@reltio/components';
|
|
4
|
-
import SankeyChart from '../SankeyChart/SankeyChart';
|
|
5
|
-
import {getSankeyData} from './helpers';
|
|
6
|
-
import {CrosswalkBase, CrosswalkTree} from '@reltio/mdm-sdk';
|
|
7
|
-
import {useStyles} from './styles';
|
|
8
|
-
|
|
9
|
-
type Props = {
|
|
10
|
-
crosswalkTree: CrosswalkTree;
|
|
11
|
-
entityLabel?: string;
|
|
12
|
-
visibleCrosswalks?: CrosswalkBase[];
|
|
13
|
-
accentContributors?: boolean;
|
|
14
|
-
disableUnmerge?: boolean;
|
|
15
|
-
onUnmerge?: (contributorUri: string) => void;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const CrosswalkTreeView = ({
|
|
19
|
-
crosswalkTree,
|
|
20
|
-
entityLabel,
|
|
21
|
-
visibleCrosswalks,
|
|
22
|
-
accentContributors,
|
|
23
|
-
disableUnmerge = false,
|
|
24
|
-
onUnmerge = noop
|
|
25
|
-
}: Props) => {
|
|
26
|
-
const styles = useStyles();
|
|
27
|
-
const sankeyData = getSankeyData(crosswalkTree, entityLabel, visibleCrosswalks);
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<div className={styles.graph} data-reltio-id="reltio-crosswalk-tree">
|
|
31
|
-
<ReactResizeDetector refreshMode="debounce" refreshRate={100} handleWidth handleHeight>
|
|
32
|
-
{({width = 0, height = 200}: {width: number; height: number}) => (
|
|
33
|
-
<SankeyChart
|
|
34
|
-
width={width}
|
|
35
|
-
height={height}
|
|
36
|
-
data={sankeyData}
|
|
37
|
-
accentContributors={accentContributors}
|
|
38
|
-
disableUnmerge={disableUnmerge}
|
|
39
|
-
onUnmerge={onUnmerge}
|
|
40
|
-
/>
|
|
41
|
-
)}
|
|
42
|
-
</ReactResizeDetector>
|
|
43
|
-
</div>
|
|
44
|
-
);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export default memo(CrosswalkTreeView);
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {mount} from 'enzyme';
|
|
3
|
-
import CrosswalkTreeView from '../CrosswalkTreeView';
|
|
4
|
-
import {EmptyStub} from '@reltio/components';
|
|
5
|
-
import * as SankeyChartImport from '../../SankeyChart/SankeyChart';
|
|
6
|
-
import SankeyChart from '../../SankeyChart/SankeyChart';
|
|
7
|
-
import * as helpers from '../helpers';
|
|
8
|
-
|
|
9
|
-
describe('CrosswalkTreeView', () => {
|
|
10
|
-
const crosswalkTree = {
|
|
11
|
-
merges: [
|
|
12
|
-
{
|
|
13
|
-
time: 1619116318362,
|
|
14
|
-
mergeReason: 'Merge by hand',
|
|
15
|
-
mergeRules: '',
|
|
16
|
-
user: 'carina.alabanza@reltio.com',
|
|
17
|
-
losers: [
|
|
18
|
-
{
|
|
19
|
-
uri: 'entities/1u04ksx9',
|
|
20
|
-
crosswalks: [
|
|
21
|
-
{
|
|
22
|
-
uri: 'entities/1O8x1gO0/crosswalks/2rinpYq8x',
|
|
23
|
-
type: 'configuration/sources/Reltio',
|
|
24
|
-
ownerType: 'entity',
|
|
25
|
-
value: '1u04ksx9'
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
uri: 'entities/1O8x1gO0',
|
|
33
|
-
crosswalks: [
|
|
34
|
-
{
|
|
35
|
-
uri: 'entities/1O8x1gO0/crosswalks/2gghyKRrU',
|
|
36
|
-
type: 'configuration/sources/Reltio',
|
|
37
|
-
ownerType: 'entity',
|
|
38
|
-
value: '1O8x1gO0'
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const props = {
|
|
44
|
-
crosswalkTree,
|
|
45
|
-
accentContributors: true,
|
|
46
|
-
entityLabel: 'testLabel',
|
|
47
|
-
visibleCrosswalks: [
|
|
48
|
-
{
|
|
49
|
-
uri: 'entities/1O8x1gO0/crosswalks/2gghyKRrU',
|
|
50
|
-
type: 'configuration/sources/Reltio',
|
|
51
|
-
ownerType: 'entity',
|
|
52
|
-
value: '1O8x1gO0'
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
disableUnmerge: false
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
const SANKEY_DATA_MOCK = {nodes: [], links: []};
|
|
59
|
-
|
|
60
|
-
beforeEach(() => {
|
|
61
|
-
jest.spyOn(helpers, 'getSankeyData').mockReturnValue(SANKEY_DATA_MOCK);
|
|
62
|
-
jest.spyOn(SankeyChartImport, 'default').mockImplementation(EmptyStub);
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
it('should render correctly', () => {
|
|
66
|
-
const wrapper = mount(<CrosswalkTreeView {...props} />);
|
|
67
|
-
expect(helpers.getSankeyData).toBeCalledWith(props.crosswalkTree, props.entityLabel, props.visibleCrosswalks);
|
|
68
|
-
expect(wrapper.find(SankeyChart).prop('data')).toBe(SANKEY_DATA_MOCK);
|
|
69
|
-
expect(wrapper.find(SankeyChart).prop('accentContributors')).toBe(props.accentContributors);
|
|
70
|
-
expect(wrapper.find(SankeyChart).prop('disableUnmerge')).toBe(props.disableUnmerge);
|
|
71
|
-
});
|
|
72
|
-
});
|