@truedat/bg 4.44.2 → 4.44.5

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 (23) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +21 -18
  3. package/src/concepts/components/ConceptEdit.js +5 -3
  4. package/src/concepts/components/ConceptFiltersDefault.js +1 -5
  5. package/src/concepts/components/ConceptFiltersPublished.js +1 -5
  6. package/src/concepts/components/ConceptForm.js +84 -159
  7. package/src/concepts/components/ConceptRoutes.js +14 -10
  8. package/src/concepts/components/ConceptsBulkUpdate.js +1 -1
  9. package/src/concepts/components/SharedToForm.js +1 -1
  10. package/src/concepts/components/__tests__/ConceptFilters.spec.js +10 -4
  11. package/src/concepts/components/__tests__/ConceptForm.spec.js +49 -109
  12. package/src/concepts/components/__tests__/ConceptsBulkUpdate.spec.js +41 -44
  13. package/src/concepts/components/__tests__/ConceptsLabelResults.spec.js +3 -3
  14. package/src/concepts/components/__tests__/SharedToForm.spec.js +8 -24
  15. package/src/concepts/components/__tests__/__snapshots__/ConceptFilters.spec.js.snap +43 -10
  16. package/src/concepts/components/__tests__/__snapshots__/ConceptForm.spec.js.snap +603 -163
  17. package/src/concepts/components/__tests__/__snapshots__/ConceptsLabelResults.spec.js.snap +7 -12
  18. package/src/concepts/components/__tests__/__snapshots__/SharedToForm.spec.js.snap +3 -3
  19. package/src/taxonomy/components/AddMemberForm.js +1 -3
  20. package/src/taxonomy/components/__tests__/DomainActions.spec.js +3 -3
  21. package/src/taxonomy/components/__tests__/DomainCrumbs.spec.js +4 -4
  22. package/src/taxonomy/components/__tests__/__snapshots__/DomainActions.spec.js.snap +5 -10
  23. package/src/taxonomy/components/__tests__/__snapshots__/DomainCrumbs.spec.js.snap +37 -74
@@ -1,16 +1,11 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<ConceptsLabelResults /> matches the latest snapshot 1`] = `
4
- <Label
5
- className="concepts-label-results"
6
- >
7
- <MemoizedFormattedMessage
8
- id="concepts.retrieved.results"
9
- values={
10
- Object {
11
- "count": 22,
12
- }
13
- }
14
- />
15
- </Label>
4
+ <div>
5
+ <div
6
+ class="ui label concepts-label-results"
7
+ >
8
+ 22 concepts found
9
+ </div>
10
+ </div>
16
11
  `;
@@ -9,7 +9,7 @@ exports[`<SharedToForm /> matches the latest snapshot 1`] = `
9
9
  <h2
10
10
  class="ui header"
11
11
  >
12
- shared to
12
+ Share in
13
13
  </h2>
14
14
  <form
15
15
  class="ui form"
@@ -18,7 +18,7 @@ exports[`<SharedToForm /> matches the latest snapshot 1`] = `
18
18
  class="required field"
19
19
  >
20
20
  <label>
21
- domain
21
+ Domain
22
22
  </label>
23
23
  <div
24
24
  aria-expanded="false"
@@ -117,7 +117,7 @@ exports[`<SharedToForm /> matches the latest snapshot 1`] = `
117
117
  tabindex="-1"
118
118
  type="submit"
119
119
  >
120
- submit
120
+ Share
121
121
  </button>
122
122
  </div>
123
123
  </form>
@@ -7,7 +7,7 @@ import { useIntl } from "react-intl";
7
7
  import { connect } from "react-redux";
8
8
  import {
9
9
  accentInsensitivePathOrder,
10
- lowerDeburr,
10
+ lowerDeburrTrim,
11
11
  } from "@truedat/core/services/sort";
12
12
  import { HistoryBackButton } from "@truedat/core/components";
13
13
  import { getRecipients } from "@truedat/audit/selectors";
@@ -20,8 +20,6 @@ const GroupsSearchLoader = React.lazy(() =>
20
20
  import("@truedat/auth/groups/components/GroupsSearchLoader")
21
21
  );
22
22
 
23
- const lowerDeburrTrim = _.flow(_.trim, lowerDeburr);
24
-
25
23
  const MIN_SEARCH_CHARACTERS = 2;
26
24
 
27
25
  const roleOption = ({ id, name }) => ({ key: id, text: name, value: name });
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { shallowWithIntl } from "@truedat/test/intl-stub";
2
+ import { render } from "@truedat/test/render";
3
3
  import { DomainActions } from "../DomainActions";
4
4
 
5
5
  describe("<DomainActions />", () => {
@@ -10,7 +10,7 @@ describe("<DomainActions />", () => {
10
10
  const props = { domain, domainActions };
11
11
 
12
12
  it("matches the latest snapshot", () => {
13
- const wrapper = shallowWithIntl(<DomainActions {...props} />);
14
- expect(wrapper).toMatchSnapshot();
13
+ const { container } = render(<DomainActions {...props} />);
14
+ expect(container).toMatchSnapshot();
15
15
  });
16
16
  });
@@ -1,17 +1,17 @@
1
1
  import React from "react";
2
- import { shallowWithIntl } from "@truedat/test/intl-stub";
2
+ import { render } from "@truedat/test/render";
3
3
  import { DomainCrumbs } from "../DomainCrumbs";
4
4
 
5
5
  describe("<DomainCrumbs />", () => {
6
6
  const parents = [
7
7
  { id: 1, name: "p1" },
8
- { id: 2, text: "p2" }
8
+ { id: 2, text: "p2" },
9
9
  ];
10
10
  const domain = { id: 3, name: "domain" };
11
11
  const props = { parents, domain };
12
12
 
13
13
  it("matches the latest snapshot", () => {
14
- const wrapper = shallowWithIntl(<DomainCrumbs {...props} />);
15
- expect(wrapper).toMatchSnapshot();
14
+ const { container } = render(<DomainCrumbs {...props} />);
15
+ expect(container).toMatchSnapshot();
16
16
  });
17
17
  });
@@ -1,14 +1,9 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<DomainActions /> matches the latest snapshot 1`] = `
4
- <ActionButtons
5
- domainActions={
6
- Object {
7
- "create": [MockFunction],
8
- "delete": [MockFunction],
9
- }
10
- }
11
- id={3}
12
- onConfirm={[Function]}
13
- />
4
+ <div>
5
+ <div
6
+ class="actions"
7
+ />
8
+ </div>
14
9
  `;
@@ -1,80 +1,43 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<DomainCrumbs /> 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="/domains"
4
+ <div>
5
+ <div
6
+ class="ui breadcrumb"
22
7
  >
23
- <MemoizedFormattedMessage
24
- id="navigation.glossary.taxonomy"
8
+ <a
9
+ class="section"
10
+ href="/domains"
11
+ >
12
+ Taxonomy
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
- as={
32
- Object {
33
- "$$typeof": Symbol(react.forward_ref),
34
- "displayName": "Link",
35
- "propTypes": Object {
36
- "innerRef": [Function],
37
- "onClick": [Function],
38
- "replace": [Function],
39
- "target": [Function],
40
- "to": [Function],
41
- },
42
- "render": [Function],
43
- }
44
- }
45
- key="0"
46
- to="/domains/1"
47
- >
48
- p1
49
- </BreadcrumbSection>
50
- <BreadcrumbDivider
51
- icon="right angle"
52
- />
53
- <BreadcrumbSection
54
- as={
55
- Object {
56
- "$$typeof": Symbol(react.forward_ref),
57
- "displayName": "Link",
58
- "propTypes": Object {
59
- "innerRef": [Function],
60
- "onClick": [Function],
61
- "replace": [Function],
62
- "target": [Function],
63
- "to": [Function],
64
- },
65
- "render": [Function],
66
- }
67
- }
68
- key="1"
69
- to="/domains/2"
70
- />
71
- <BreadcrumbDivider
72
- icon="right angle"
73
- />
74
- <BreadcrumbSection
75
- active={true}
76
- >
77
- domain
78
- </BreadcrumbSection>
79
- </Breadcrumb>
18
+ <a
19
+ class="section"
20
+ href="/domains/1"
21
+ >
22
+ p1
23
+ </a>
24
+ <i
25
+ aria-hidden="true"
26
+ class="right angle icon divider"
27
+ />
28
+ <a
29
+ class="section"
30
+ href="/domains/2"
31
+ />
32
+ <i
33
+ aria-hidden="true"
34
+ class="right angle icon divider"
35
+ />
36
+ <div
37
+ class="active section"
38
+ >
39
+ domain
40
+ </div>
41
+ </div>
42
+ </div>
80
43
  `;