@truedat/core 8.4.4 → 8.4.6

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/core",
3
- "version": "8.4.4",
3
+ "version": "8.4.6",
4
4
  "description": "Truedat Web Core",
5
5
  "sideEffects": false,
6
6
  "module": "src/index.js",
@@ -51,7 +51,7 @@
51
51
  "@testing-library/jest-dom": "^6.6.3",
52
52
  "@testing-library/react": "^16.3.0",
53
53
  "@testing-library/user-event": "^14.6.1",
54
- "@truedat/test": "8.4.4",
54
+ "@truedat/test": "8.4.6",
55
55
  "identity-obj-proxy": "^3.0.0",
56
56
  "jest": "^29.7.0",
57
57
  "redux-saga-test-plan": "^4.0.6"
@@ -65,7 +65,7 @@
65
65
  "@tiptap/react": "^3.20.0",
66
66
  "@tiptap/starter-kit": "^3.20.0",
67
67
  "@xyflow/react": "^12.6.4",
68
- "axios": "^1.13.5",
68
+ "axios": "^1.15.0",
69
69
  "dompurify": "^3.3.3",
70
70
  "elkjs": "^0.10.0",
71
71
  "graphql": "^16.11.0",
@@ -97,5 +97,5 @@
97
97
  "swr": "^2.3.3",
98
98
  "turndown": "^7.2.2"
99
99
  },
100
- "gitHead": "0d8d2a2f4526c425fcef656a6004484cbd755774"
100
+ "gitHead": "958ab0a57f628c19a7aee905a8f4ae624a3cdf59"
101
101
  }
@@ -29,7 +29,7 @@ const getChildOrRootDomains = createSelector(
29
29
  return _.isEmpty(domain)
30
30
  ? _.filter(hasNoParentIn(domains))(domains)
31
31
  : _.filter(isChildOf(domain))(domains);
32
- }
32
+ },
33
33
  );
34
34
 
35
35
  const findParentsIn = (domains) => (child) =>
@@ -51,7 +51,7 @@ const findDescendents = (parents) => (domains) => {
51
51
  const getDescendents = createSelector(
52
52
  [getDomain, getDomains],
53
53
  (domain, domains) =>
54
- _.isEmpty(domain) ? domains : findDescendents([domain])(domains)
54
+ _.isEmpty(domain) ? domains : findDescendents([domain])(domains),
55
55
  );
56
56
 
57
57
  const toSearchable = _.flow(_.deburr, _.toLower, _.trim);
@@ -62,7 +62,7 @@ const matchesFilter = (filter) =>
62
62
  _.flow(
63
63
  _.at(["name", "description"]),
64
64
  _.map(toSearchable),
65
- _.some(_.includes(toSearchable(filter)))
65
+ _.some(_.includes(toSearchable(filter))),
66
66
  );
67
67
 
68
68
  /**
@@ -75,13 +75,13 @@ const getFilteredDomains = createSelector(
75
75
  (descendents, domainsFilter) =>
76
76
  isValidFilter(domainsFilter)
77
77
  ? _.filter(matchesFilter(domainsFilter))(descendents)
78
- : []
78
+ : [],
79
79
  );
80
80
 
81
81
  const _getVisibleDomains = createSelector(
82
82
  [getDomainsFilter, getFilteredDomains, getChildOrRootDomains],
83
83
  (filter, filteredDomains, childOrRootDomains) =>
84
- _.isEmpty(filter) ? childOrRootDomains : filteredDomains
84
+ _.isEmpty(filter) ? childOrRootDomains : filteredDomains,
85
85
  );
86
86
 
87
87
  /**
@@ -99,7 +99,7 @@ const getVisibleDomains = createSelector(
99
99
  ...d,
100
100
  children: _.filter(isChildOf(d))(domains),
101
101
  }))
102
- .map(({ children, ...d }) => ({ childCount: children.length, ...d }))
102
+ .map(({ children, ...d }) => ({ childCount: children.length, ...d })),
103
103
  );
104
104
 
105
105
  const findAncestorsIn = (domains) => (children) => {
@@ -115,7 +115,7 @@ const findAncestorsIn = (domains) => (children) => {
115
115
  const getAncestorDomains = createSelector(
116
116
  [getDomains, getDomain],
117
117
  (domains, domain) =>
118
- _.isEmpty(domain) ? [] : findAncestorsIn(domains)([domain])
118
+ _.isEmpty(domain) ? [] : findAncestorsIn(domains)([domain]),
119
119
  );
120
120
 
121
121
  const reduceTaxonomy = (domains) => (domainsInLevel, level) => {
@@ -140,7 +140,7 @@ const reduceTaxonomy = (domains) => (domainsInLevel, level) => {
140
140
  const getDomainSelectorOptions = createSelector([getDomains], (domains) => {
141
141
  const roots = _.flow(
142
142
  _.filter(hasNoParentIn(domains)),
143
- _.sortBy(accentInsensitivePathOrder("name"))
143
+ _.sortBy(accentInsensitivePathOrder("name")),
144
144
  )(domains);
145
145
  const emptyDomain = _.contains("")(domains)
146
146
  ? [
@@ -167,4 +167,5 @@ export {
167
167
  getFilteredDomains,
168
168
  getVisibleDomains,
169
169
  getAncestorDomains,
170
+ getDomains,
170
171
  };