@truedat/cx 4.44.4 → 4.45.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/cx",
3
- "version": "4.44.4",
3
+ "version": "4.45.1",
4
4
  "description": "Truedat Web Connectors",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -22,17 +22,20 @@
22
22
  "eslint:fix": "eslint --fix src/**"
23
23
  },
24
24
  "devDependencies": {
25
- "@babel/cli": "^7.14.8",
26
- "@babel/core": "^7.15.0",
27
- "@babel/plugin-proposal-class-properties": "^7.14.5",
28
- "@babel/plugin-proposal-object-rest-spread": "^7.14.7",
29
- "@babel/plugin-proposal-optional-chaining": "^7.14.5",
25
+ "@babel/cli": "^7.17.10",
26
+ "@babel/core": "^7.18.0",
27
+ "@babel/plugin-proposal-class-properties": "^7.17.12",
28
+ "@babel/plugin-proposal-object-rest-spread": "^7.18.0",
29
+ "@babel/plugin-proposal-optional-chaining": "^7.17.12",
30
30
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
31
- "@babel/plugin-transform-modules-commonjs": "^7.15.0",
32
- "@babel/preset-env": "^7.15.0",
33
- "@babel/preset-react": "^7.14.5",
34
- "@truedat/test": "4.44.4",
35
- "babel-jest": "^27.0.6",
31
+ "@babel/plugin-transform-modules-commonjs": "^7.18.0",
32
+ "@babel/preset-env": "^7.18.0",
33
+ "@babel/preset-react": "^7.17.12",
34
+ "@testing-library/jest-dom": "^5.16.4",
35
+ "@testing-library/react": "^12.0.0",
36
+ "@testing-library/user-event": "^13.2.1",
37
+ "@truedat/test": "4.45.1",
38
+ "babel-jest": "^28.1.0",
36
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
37
40
  "babel-plugin-lodash": "^3.3.4",
38
41
  "babel-plugin-react-intl": "^5.1.18",
@@ -41,7 +44,8 @@
41
44
  "enzyme-adapter-react-16": "^1.15.6",
42
45
  "enzyme-to-json": "^3.6.2",
43
46
  "identity-obj-proxy": "^3.0.0",
44
- "jest": "^27.0.6",
47
+ "jest": "^28.1.0",
48
+ "jest-environment-jsdom": "^28.1.0",
45
49
  "jest-localstorage-mock": "^2.4.14",
46
50
  "react": "^16.14.0",
47
51
  "react-dom": "^16.14.0",
@@ -50,6 +54,8 @@
50
54
  "semantic-ui-react": "^2.0.3"
51
55
  },
52
56
  "jest": {
57
+ "maxWorkers": "50%",
58
+ "testTimeout": 10000,
53
59
  "moduleDirectories": [
54
60
  "<rootDir>/src",
55
61
  "../../node_modules"
@@ -85,12 +91,14 @@
85
91
  ]
86
92
  },
87
93
  "dependencies": {
88
- "@truedat/core": "4.44.4",
94
+ "@apollo/client": "^3.6.4",
95
+ "@truedat/core": "4.45.1",
89
96
  "lodash": "^4.17.21",
90
97
  "match-sorter": "^6.3.1",
91
98
  "path-to-regexp": "^1.7.0",
92
- "prop-types": "^15.7.2",
99
+ "prop-types": "^15.8.1",
93
100
  "react-intl": "^5.20.10",
101
+ "react-moment": "^1.1.2",
94
102
  "react-redux": "^7.2.4",
95
103
  "react-router-dom": "^5.2.0",
96
104
  "redux": "^4.1.1",
@@ -103,5 +111,5 @@
103
111
  "react-dom": ">= 16.8.6 < 17",
104
112
  "semantic-ui-react": ">= 0.88.2 < 2.1"
105
113
  },
106
- "gitHead": "36fb183e1d22181e6a15b3bac2c01b39214eacdb"
114
+ "gitHead": "c13f37ee357bf4a5e8c8c99eb6bd0c798f468c49"
107
115
  }
@@ -1,13 +1,9 @@
1
- import React from "react";
2
1
  import { connect } from "react-redux";
3
2
  import { bindActionCreators } from "redux";
3
+ import { AvailableFilters } from "@truedat/core/components";
4
4
  import { addJobFilter, resetJobFilters } from "../routines";
5
5
  import { getJobAvailableFilters } from "../selectors";
6
6
 
7
- const AvailableFilters = React.lazy(() =>
8
- import("@truedat/core/components/AvailableFilters")
9
- );
10
-
11
7
  const mapStateToProps = (state) => ({
12
8
  filters: getJobAvailableFilters(state),
13
9
  disabled: state.jobFiltersLoading,
@@ -4,7 +4,6 @@ exports[`<Jobs /> matches the latest snapshot 1`] = `
4
4
  <div>
5
5
  <div
6
6
  class="ui action left icon input"
7
- style="display: none;"
8
7
  >
9
8
  <input
10
9
  placeholder="Search jobs..."
@@ -15,14 +14,43 @@ exports[`<Jobs /> matches the latest snapshot 1`] = `
15
14
  aria-hidden="true"
16
15
  class="search link icon"
17
16
  />
17
+ <div
18
+ aria-expanded="false"
19
+ class="ui button floating labeled scrolling dropdown icon"
20
+ role="listbox"
21
+ tabindex="0"
22
+ >
23
+ <div
24
+ aria-atomic="true"
25
+ aria-live="polite"
26
+ class="divider text"
27
+ role="alert"
28
+ >
29
+ Filters
30
+ </div>
31
+ <i
32
+ aria-hidden="true"
33
+ class="filter icon"
34
+ />
35
+ <div
36
+ class="menu transition"
37
+ >
38
+ <div
39
+ class="item"
40
+ role="option"
41
+ >
42
+ <em>
43
+ (reset all filters)
44
+ </em>
45
+ </div>
46
+ </div>
47
+ </div>
18
48
  </div>
19
49
  <div
20
50
  class="selectedFilters"
21
- style="display: none;"
22
51
  />
23
52
  <div
24
53
  class="dimmable"
25
- style="display: none;"
26
54
  >
27
55
  <div
28
56
  class="ui inverted dimmer"
@@ -38,13 +66,11 @@ exports[`<Jobs /> matches the latest snapshot 1`] = `
38
66
  </div>
39
67
  <div
40
68
  class="ui label jobs-label-results"
41
- style="display: none;"
42
69
  >
43
70
  42 jobs found
44
71
  </div>
45
72
  <table
46
73
  class="ui selectable sortable table"
47
- style="display: none;"
48
74
  >
49
75
  <thead
50
76
  class=""
@@ -4,7 +4,6 @@ exports[`<JobsView /> matches the latest snapshot 1`] = `
4
4
  <div>
5
5
  <div
6
6
  class="ui segment"
7
- style="display: none;"
8
7
  >
9
8
  <h2
10
9
  class="ui header"
@@ -39,6 +38,37 @@ exports[`<JobsView /> matches the latest snapshot 1`] = `
39
38
  aria-hidden="true"
40
39
  class="search link icon"
41
40
  />
41
+ <div
42
+ aria-expanded="false"
43
+ class="ui button floating labeled scrolling dropdown icon"
44
+ role="listbox"
45
+ tabindex="0"
46
+ >
47
+ <div
48
+ aria-atomic="true"
49
+ aria-live="polite"
50
+ class="divider text"
51
+ role="alert"
52
+ >
53
+ Filters
54
+ </div>
55
+ <i
56
+ aria-hidden="true"
57
+ class="filter icon"
58
+ />
59
+ <div
60
+ class="menu transition"
61
+ >
62
+ <div
63
+ class="item"
64
+ role="option"
65
+ >
66
+ <em>
67
+ (reset all filters)
68
+ </em>
69
+ </div>
70
+ </div>
71
+ </div>
42
72
  </div>
43
73
  <div
44
74
  class="selectedFilters"
@@ -4,7 +4,6 @@ exports[`<SourceJobs /> matches the latest snapshot 1`] = `
4
4
  <div>
5
5
  <div
6
6
  class="ui action left icon input"
7
- style="display: none;"
8
7
  >
9
8
  <input
10
9
  placeholder="Search jobs..."
@@ -15,14 +14,43 @@ exports[`<SourceJobs /> matches the latest snapshot 1`] = `
15
14
  aria-hidden="true"
16
15
  class="search link icon"
17
16
  />
17
+ <div
18
+ aria-expanded="false"
19
+ class="ui button floating labeled scrolling dropdown icon"
20
+ role="listbox"
21
+ tabindex="0"
22
+ >
23
+ <div
24
+ aria-atomic="true"
25
+ aria-live="polite"
26
+ class="divider text"
27
+ role="alert"
28
+ >
29
+ Filters
30
+ </div>
31
+ <i
32
+ aria-hidden="true"
33
+ class="filter icon"
34
+ />
35
+ <div
36
+ class="menu transition"
37
+ >
38
+ <div
39
+ class="item"
40
+ role="option"
41
+ >
42
+ <em>
43
+ (reset all filters)
44
+ </em>
45
+ </div>
46
+ </div>
47
+ </div>
18
48
  </div>
19
49
  <div
20
50
  class="selectedFilters"
21
- style="display: none;"
22
51
  />
23
52
  <div
24
53
  class="dimmable"
25
- style="display: none;"
26
54
  >
27
55
  <div
28
56
  class="ui inverted dimmer"
@@ -38,13 +66,11 @@ exports[`<SourceJobs /> matches the latest snapshot 1`] = `
38
66
  </div>
39
67
  <div
40
68
  class="ui label jobs-label-results"
41
- style="display: none;"
42
69
  >
43
70
  42 jobs found
44
71
  </div>
45
72
  <table
46
73
  class="ui selectable sortable table"
47
- style="display: none;"
48
74
  >
49
75
  <thead
50
76
  class=""
@@ -1,13 +1,13 @@
1
1
  import React from "react";
2
- import { shallowWithIntl } from "@truedat/test/intl-stub";
3
- import { SourceBreadcrumbs } from "../SourceBreadcrumbs";
2
+ import { render } from "@truedat/test/render";
3
+ import SourceBreadcrumbs from "../SourceBreadcrumbs";
4
4
 
5
5
  describe("<SourceBreadcrumbs />", () => {
6
6
  const text = "edit";
7
7
  const props = { text };
8
8
 
9
9
  it("matches the latest snapshot", () => {
10
- const wrapper = shallowWithIntl(<SourceBreadcrumbs {...props} />);
11
- expect(wrapper).toMatchSnapshot();
10
+ const { container } = render(<SourceBreadcrumbs {...props} />);
11
+ expect(container).toMatchSnapshot();
12
12
  });
13
13
  });
@@ -1,36 +1,25 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<SourceBreadcrumbs /> matches the latest snapshot 1`] = `
4
- <Breadcrumb>
5
- <BreadcrumbSection
6
- active={false}
7
- as={
8
- Object {
9
- "$$typeof": Symbol(react.forward_ref),
10
- "displayName": "Link",
11
- "propTypes": Object {
12
- "innerRef": [Function],
13
- "onClick": [Function],
14
- "replace": [Function],
15
- "target": [Function],
16
- "to": [Function],
17
- },
18
- "render": [Function],
19
- }
20
- }
21
- to="/sources"
4
+ <div>
5
+ <div
6
+ class="ui breadcrumb"
22
7
  >
23
- <MemoizedFormattedMessage
24
- id="navigation.admin.sources"
8
+ <a
9
+ class="section"
10
+ href="/sources"
11
+ >
12
+ Sources
13
+ </a>
14
+ <i
15
+ aria-hidden="true"
16
+ class="right angle icon divider"
25
17
  />
26
- </BreadcrumbSection>
27
- <BreadcrumbDivider
28
- icon="right angle"
29
- />
30
- <BreadcrumbSection
31
- active={true}
32
- >
33
- edit
34
- </BreadcrumbSection>
35
- </Breadcrumb>
18
+ <div
19
+ class="active section"
20
+ >
21
+ edit
22
+ </div>
23
+ </div>
24
+ </div>
36
25
  `;
@@ -4,7 +4,6 @@ exports[`<SourceDetail /> matches the latest snapshot (jobs tab) 1`] = `
4
4
  <div>
5
5
  <div
6
6
  class="ui pointing secondary top attached tabular menu"
7
- style="display: none;"
8
7
  >
9
8
  <a
10
9
  class="item"
@@ -21,7 +20,6 @@ exports[`<SourceDetail /> matches the latest snapshot (jobs tab) 1`] = `
21
20
  </div>
22
21
  <div
23
22
  class="ui bottom attached segment"
24
- style="display: none;"
25
23
  >
26
24
  <div
27
25
  class="ui action left icon input"
@@ -35,6 +33,37 @@ exports[`<SourceDetail /> matches the latest snapshot (jobs tab) 1`] = `
35
33
  aria-hidden="true"
36
34
  class="search link icon"
37
35
  />
36
+ <div
37
+ aria-expanded="false"
38
+ class="ui button floating labeled scrolling dropdown icon"
39
+ role="listbox"
40
+ tabindex="0"
41
+ >
42
+ <div
43
+ aria-atomic="true"
44
+ aria-live="polite"
45
+ class="divider text"
46
+ role="alert"
47
+ >
48
+ Filters
49
+ </div>
50
+ <i
51
+ aria-hidden="true"
52
+ class="filter icon"
53
+ />
54
+ <div
55
+ class="menu transition"
56
+ >
57
+ <div
58
+ class="item"
59
+ role="option"
60
+ >
61
+ <em>
62
+ (reset all filters)
63
+ </em>
64
+ </div>
65
+ </div>
66
+ </div>
38
67
  </div>
39
68
  <div
40
69
  class="selectedFilters"