@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.
Files changed (92) hide show
  1. package/package.json +21 -38
  2. package/index.ts +0 -1
  3. package/public/package.json +0 -22
  4. package/scripts/build/index.js +0 -20
  5. package/src/components/CrosswalkTreeView/CrosswalkTreeView.tsx +0 -47
  6. package/src/components/CrosswalkTreeView/__tests__/CrosswalkTreeView.spec.tsx +0 -72
  7. package/src/components/CrosswalkTreeView/__tests__/helpers.spec.ts +0 -961
  8. package/src/components/CrosswalkTreeView/helpers.ts +0 -91
  9. package/src/components/CrosswalkTreeView/styles.ts +0 -10
  10. package/src/components/EmptyState/EmptyState.tsx +0 -20
  11. package/src/components/EmptyState/__tests__/EmptyState.test.tsx +0 -13
  12. package/src/components/EmptyState/icons/EmptySources.svg +0 -43
  13. package/src/components/EmptyState/styles.ts +0 -19
  14. package/src/components/LegendTable/LegendTable.tsx +0 -124
  15. package/src/components/LegendTable/LegendTableRow/ContributorRow/ContributorRow.tsx +0 -46
  16. package/src/components/LegendTable/LegendTableRow/ContributorRow/__tests__/ContributorRow.test.tsx +0 -103
  17. package/src/components/LegendTable/LegendTableRow/ContributorRow/styles.ts +0 -31
  18. package/src/components/LegendTable/LegendTableRow/LegendTableRow.tsx +0 -179
  19. package/src/components/LegendTable/LegendTableRow/__tests__/LegendTableRow.test.tsx +0 -371
  20. package/src/components/LegendTable/LegendTableRow/styles.ts +0 -31
  21. package/src/components/LegendTable/__tests__/LegendTable.test.tsx +0 -273
  22. package/src/components/LegendTable/__tests__/helpers.test.ts +0 -541
  23. package/src/components/LegendTable/helpers.ts +0 -64
  24. package/src/components/LegendTable/styles.ts +0 -17
  25. package/src/components/LegendView/LegendView.tsx +0 -201
  26. package/src/components/LegendView/__tests__/LegendView.test.tsx +0 -307
  27. package/src/components/LegendView/styles.ts +0 -51
  28. package/src/components/RightSidePanel/RightSidePanel.tsx +0 -25
  29. package/src/components/RightSidePanel/__tests__/RightSidePanel.test.tsx +0 -28
  30. package/src/components/RightSidePanel/styles.ts +0 -14
  31. package/src/components/RulesestsSelector/RulesestsSelector.tsx +0 -31
  32. package/src/components/RulesestsSelector/RulesetOption/RulesetOption.tsx +0 -25
  33. package/src/components/RulesestsSelector/RulesetOption/__tests__/RulesetOption.test.tsx +0 -25
  34. package/src/components/RulesestsSelector/RulesetOption/styles.ts +0 -27
  35. package/src/components/RulesestsSelector/RulesetsMenuList/RulesetsMenuList.tsx +0 -14
  36. package/src/components/RulesestsSelector/__tests__/RulesetsSelector.test.tsx +0 -91
  37. package/src/components/RulesestsSelector/styles.ts +0 -7
  38. package/src/components/SankeyChart/Link.tsx +0 -31
  39. package/src/components/SankeyChart/MergeTooltip.tsx +0 -37
  40. package/src/components/SankeyChart/Node.tsx +0 -137
  41. package/src/components/SankeyChart/SankeyChart.tsx +0 -103
  42. package/src/components/SankeyChart/__tests__/Link.spec.tsx +0 -127
  43. package/src/components/SankeyChart/__tests__/MergeTooltip.spec.tsx +0 -22
  44. package/src/components/SankeyChart/__tests__/Node.spec.tsx +0 -248
  45. package/src/components/SankeyChart/__tests__/SankeyChart.spec.tsx +0 -161
  46. package/src/components/SankeyChart/__tests__/__snapshots__/SankeyChart.spec.tsx.snap +0 -183
  47. package/src/components/SankeyChart/sankey.ts +0 -322
  48. package/src/components/SankeyChart/styles.ts +0 -41
  49. package/src/components/SankeyChart/useSankey.tsx +0 -44
  50. package/src/components/SelectableTree/SelectableTree.tsx +0 -46
  51. package/src/components/SelectableTree/__tests__/SelectableTree.test.tsx +0 -28
  52. package/src/components/SelectableTree/__tests__/__snapshots__/SelectableTree.test.tsx.snap +0 -59
  53. package/src/components/SelectableTree/styles.ts +0 -42
  54. package/src/components/SourcesView/SourcesView.tsx +0 -318
  55. package/src/components/SourcesView/__tests__/IntegrationSourcesView.spec.tsx +0 -199
  56. package/src/components/SourcesView/__tests__/SourcesView.spec.tsx +0 -903
  57. package/src/components/SourcesView/__tests__/data/metadata.data.ts +0 -27
  58. package/src/components/SourcesView/__tests__/data/store.data.ts +0 -65
  59. package/src/components/SourcesView/icons/LegendIcon.svg +0 -8
  60. package/src/components/SourcesView/index.tsx +0 -57
  61. package/src/components/SourcesView/styles.ts +0 -44
  62. package/src/components/TreeActionSnackbar/TreeActionSnackbar.tsx +0 -38
  63. package/src/components/TreeActionSnackbar/__tests__/TreeActionSnackbar.test.tsx +0 -38
  64. package/src/components/TreeActionSnackbar/styles.ts +0 -11
  65. package/src/components/UnmergeDialog/UnmergeDialog.tsx +0 -78
  66. package/src/components/UnmergeDialog/__tests__/UnmergeDialog.test.tsx +0 -124
  67. package/src/components/UnmergeDialog/__tests__/testData.data.ts +0 -271
  68. package/src/components/UnmergeDialog/styles.ts +0 -34
  69. package/src/components/UnsubscribeDialog/UnsubscribeDialog.tsx +0 -64
  70. package/src/components/UnsubscribeDialog/__tests__/UnsubscribeDialog.test.tsx +0 -59
  71. package/src/components/UnsubscribeDialog/styles.ts +0 -31
  72. package/src/hooks/__tests__/useCrosswalkTree.specs.tsx +0 -68
  73. package/src/hooks/__tests__/useCrosswalkTreeActions.specs.ts +0 -110
  74. package/src/hooks/__tests__/useCrosswalksDisplay.specs.tsx +0 -213
  75. package/src/hooks/__tests__/useEntityWithSurvivorshipGroups.specs.ts +0 -160
  76. package/src/hooks/useCrosswalkTree.ts +0 -38
  77. package/src/hooks/useCrosswalkTreeActions.ts +0 -83
  78. package/src/hooks/useCrosswalksDisplay.ts +0 -110
  79. package/src/hooks/useEntityWithSurvivorshipGroups.tsx +0 -51
  80. package/src/icons/notMatch.svg +0 -14
  81. package/src/index.ts +0 -1
  82. package/src/services/errors.ts +0 -11
  83. package/src/types/LegendMode.ts +0 -5
  84. package/src/types/SankeyChartData.ts +0 -31
  85. package/src/types/SourcesSavedState.ts +0 -3
  86. package/src/types/UnmergeContributorEvent.ts +0 -7
  87. package/src/types/UnsubscribeContributorEvent.ts +0 -6
  88. package/src/types/index.ts +0 -4
  89. package/tsconfig.json +0 -4
  90. package/webpack.config.js +0 -10
  91. /package/{public/bundle.js → bundle.js} +0 -0
  92. /package/{public/bundle.js.LICENSE.txt → bundle.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,39 +1,22 @@
1
1
  {
2
- "name": "@reltio/sources",
3
- "version": "1.4.1586-mui5",
4
- "description": "",
5
- "main": "index.ts",
6
- "author": "",
7
- "license": "SEE LICENSE IN LICENSE FILE",
8
- "scripts": {
9
- "build": "cross-env NODE_ENV=production webpack && node ./scripts/build",
10
- "postinstall": "cross-env NODE_ENV=production webpack",
11
- "prepublishOnly": "npm run build",
12
- "watch": "webpack -w",
13
- "dev": "webpack serve",
14
- "test": "tsc && jest --config=../../jest.config.js",
15
- "test:ci": "tsc && jest --config=../../jest.config.js --maxWorkers=50%",
16
- "i18n": "ui-i18n bundle --src=./src/**/*.js --out=./baseline.json",
17
- "analyze": "cross-env NODE_ENV=production webpack --analyze"
18
- },
19
- "publishConfig": {
20
- "access": "public"
21
- },
22
- "dependencies": {
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';
@@ -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
- }
@@ -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
- });