@cccsaurora/howler-ui 2.19.0-dev.1148 → 2.19.0-dev.1181

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.
@@ -4,7 +4,7 @@ import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
4
4
  import useMyLocalStorage, { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
5
5
  import dayjs from 'dayjs';
6
6
  import i18n from '@cccsaurora/howler-ui/i18n';
7
- import { cloneDeep } from 'lodash-es';
7
+ import { cloneDeep, isNil } from 'lodash-es';
8
8
  import isNull from 'lodash-es/isNull';
9
9
  import isUndefined from 'lodash-es/isUndefined';
10
10
  import { useCallback, useEffect, useMemo, useState } from 'react';
@@ -106,7 +106,7 @@ const HitSearchProvider = ({ children }) => {
106
106
  setError(null);
107
107
  try {
108
108
  const _response = await dispatchApi(api.search.hit.post({
109
- offset: appendResults && response ? response.rows : offset,
109
+ offset: appendResults && !isNil(response?.rows) ? response.rows : offset,
110
110
  rows: pageCount,
111
111
  query: _query || DEFAULT_QUERY,
112
112
  sort,
@@ -139,28 +139,21 @@ const HitSearchProvider = ({ children }) => {
139
139
  setSearching(false);
140
140
  }
141
141
  });
142
- },
143
- // We skip reloading when the response changes
144
- // eslint-disable-next-line react-hooks/exhaustive-deps
145
- [
142
+ }, [
146
143
  sort,
147
144
  span,
148
145
  query,
149
- startDate,
150
- endDate,
151
- filters,
152
146
  setQuery,
153
- location.pathname,
154
- routeParams.id,
155
- views,
156
- dispatchApi,
147
+ setQueryHistory,
148
+ queryHistory,
149
+ response?.rows,
157
150
  offset,
151
+ dispatchApi,
158
152
  pageCount,
153
+ getFilters,
159
154
  trackTotalHits,
160
155
  loadHits,
161
- getCurrentViews,
162
- setOffset,
163
- getFilters
156
+ setOffset
164
157
  ]);
165
158
  // We only run this when ancillary properties (i.e. filters, sorting) change
166
159
  useEffect(() => {
package/package.json CHANGED
@@ -21,20 +21,20 @@
21
21
  "@iconify/icons-logos": "^1.2.36",
22
22
  "@iconify/icons-simple-icons": "^1.2.74",
23
23
  "@iconify/react": "^4.1.1",
24
- "@jsonforms/core": "^3.7.0",
25
- "@jsonforms/material-renderers": "^3.7.0",
26
- "@jsonforms/react": "^3.7.0",
27
- "@microlink/react-json-view": "^1.31.20",
24
+ "@jsonforms/core": "^3.8.0",
25
+ "@jsonforms/material-renderers": "^3.8.0",
26
+ "@jsonforms/react": "^3.8.0",
27
+ "@microlink/react-json-view": "^1.31.22",
28
28
  "@monaco-editor/react": "^4.7.0",
29
29
  "ajv": "^8.20.0",
30
30
  "ajv-i18n": "^4.2.0",
31
- "axios": "^1.17.0",
31
+ "axios": "^1.18.1",
32
32
  "axios-retry": "^3.9.1",
33
33
  "chart.js": "^4.5.1",
34
34
  "chartjs-adapter-dayjs-4": "^1.0.4",
35
35
  "chartjs-plugin-zoom": "^2.2.0",
36
36
  "dayjs": "^1.11.21",
37
- "dompurify": "^3.4.9",
37
+ "dompurify": "^3.4.11",
38
38
  "flat": "^6.0.1",
39
39
  "fuse.js": "^7.4.2",
40
40
  "handlebars": "^4.7.9",
@@ -44,7 +44,7 @@
44
44
  "json-schema": "^0.4.0",
45
45
  "lodash-es": "^4.18.1",
46
46
  "md5": "^2.3.0",
47
- "mermaid": "^11.15.0",
47
+ "mermaid": "^11.16.0",
48
48
  "monaco-editor": "0.49.0",
49
49
  "notistack": "^3.0.2",
50
50
  "react": "^18.3.1",
@@ -67,7 +67,7 @@
67
67
  "unist-util-visit": "^5.1.0",
68
68
  "url-join": "^5.0.0",
69
69
  "use-context-selector": "^2.0.0",
70
- "uuid": "^14.0.0",
70
+ "uuid": "^14.0.1",
71
71
  "web-vitals": "^4.2.4"
72
72
  },
73
73
  "jest": {
@@ -93,7 +93,7 @@
93
93
  "url": "https://github.com/CybercentreCanada/howler"
94
94
  },
95
95
  "type": "module",
96
- "version": "2.19.0-dev.1148",
96
+ "version": "2.19.0-dev.1181",
97
97
  "exports": {
98
98
  "./i18n": "./i18n.js",
99
99
  "./index.css": "./index.css",