@cccsaurora/howler-ui 3.1.0-dev.1602 → 3.1.0-dev.1609

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.
@@ -40,7 +40,8 @@ const FavouriteProvider = ({ children }) => {
40
40
  icon: _jsx(SavedSearch, {}),
41
41
  items
42
42
  };
43
- }, [favouriteViews, fetchViews, t]);
43
+ // oxlint-disable-next-line react-hooks/exhaustive-deps
44
+ }, [favouriteViews, t]);
44
45
  const processAnalyticMenu = useCallback(() => {
45
46
  const favourites = favouriteAnalytics ?? [];
46
47
  if (favourites.length < 1) {
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  ]
13
13
  },
14
14
  "dependencies": {
15
- "@cccsaurora/clue-ui": "1.4.1",
15
+ "@cccsaurora/clue-ui": "1.4.2",
16
16
  "@dnd-kit/core": "^6.3.1",
17
17
  "@dnd-kit/modifiers": "^7.0.0",
18
18
  "@dnd-kit/sortable": "^8.0.0",
@@ -97,7 +97,7 @@
97
97
  "url": "https://github.com/CybercentreCanada/howler"
98
98
  },
99
99
  "type": "module",
100
- "version": "3.1.0-dev.1602",
100
+ "version": "3.1.0-dev.1609",
101
101
  "exports": {
102
102
  "./i18n": "./i18n.js",
103
103
  "./index.css": "./index.css",
@@ -57,7 +57,7 @@ declare abstract class HowlerPlugin implements IPlugin {
57
57
  addRoute(path: string, element: ReactElement, children?: []): void;
58
58
  addMainMenuItem(operation: MainMenuItemOperation): void;
59
59
  addOperation(format: string, form: (props: CustomActionProps) => React.ReactNode, documentation: PluginDocumentation): void;
60
- on(_event: string, _hit: Hit): null;
60
+ on(_event: string, _hit: Hit): React.ReactNode;
61
61
  provider(): React.FC<PropsWithChildren<{}>> | null;
62
62
  setup(): void;
63
63
  localization(_i18n: I18N): void;
@@ -7,7 +7,7 @@ import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
7
7
  import { getStored } from '@cccsaurora/howler-ui/utils/localStorage';
8
8
  const Provider = ({ children }) => {
9
9
  const { config } = useContext(ApiConfigContext);
10
- const features = config.configuration?.features ?? {};
10
+ const features = config?.configuration?.features ?? {};
11
11
  return (_jsx(ClueProvider, { baseURL: location.origin + '/api/v1/clue', getToken: () => getStored(StorageKey.APP_TOKEN) ?? '', enabled: features.clue, publicIconify: location.origin.includes('localhost'), customIconify: location.origin.replace(/howler(-stg)?/, 'icons'), defaultTimeout: 5, i18next: useTranslation('clue'), chunkSize: 50, children: children }));
12
12
  };
13
13
  export default Provider;