@cccsaurora/howler-ui 2.19.0-cases.1131 → 2.19.0-cases.1136
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/components/elements/PluginChip.d.ts +1 -1
- package/components/elements/PluginChip.js +0 -1
- package/components/elements/addons/lists/TuiListElement.d.ts +1 -1
- package/components/elements/addons/lists/TuiListElement.js +0 -1
- package/components/routes/cases/detail/CaseDetails.test.js +0 -1
- package/components/routes/cases/detail/sidebar/FolderEntry.d.ts +1 -1
- package/components/routes/cases/detail/sidebar/FolderEntry.js +0 -1
- package/components/routes/cases/detail/utils.d.ts +1 -1
- package/components/routes/cases/detail/utils.js +0 -1
- package/components/routes/cases/modals/ResolveModal.test.js +0 -1
- package/components/routes/help/OverviewDocumentation.d.ts +1 -1
- package/components/routes/help/OverviewDocumentation.js +0 -1
- package/components/routes/hits/search/ViewLink.test.js +0 -1
- package/components/routes/hits/search/shared/CustomSpan.test.js +3 -4
- package/components/routes/views/ViewComposer.js +0 -1
- package/package.json +1 -1
- package/plugins/clue/index.d.ts +1 -1
- package/plugins/clue/index.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ChipProps } from '@mui/material';
|
|
2
2
|
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
3
|
-
import {
|
|
3
|
+
import type { FC } from 'react';
|
|
4
4
|
export type PluginChipProps = ChipProps & {
|
|
5
5
|
value: string;
|
|
6
6
|
context: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Chip } from '@mui/material';
|
|
3
3
|
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
4
|
-
import {} from 'react';
|
|
5
4
|
import { usePluginStore } from 'react-pluggable';
|
|
6
5
|
const PluginChip = ({ children, value, context, field, hit, ...props }) => {
|
|
7
6
|
const pluginStore = usePluginStore();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useCallback, useRef } from 'react';
|
|
3
|
-
import {} from '.';
|
|
4
3
|
import VSBoxElement from '../layout/vsbox/VSBoxElement';
|
|
5
4
|
const TuiListElement = ({ position, item, onSelect: onClick, children }) => {
|
|
6
5
|
const elementEl = useRef();
|
|
@@ -4,7 +4,6 @@ import { render, screen, waitFor } from '@testing-library/react';
|
|
|
4
4
|
import userEvent, {} from '@testing-library/user-event';
|
|
5
5
|
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
6
6
|
import { SocketContext } from '@cccsaurora/howler-ui/components/app/providers/SocketProvider';
|
|
7
|
-
import {} from 'react';
|
|
8
7
|
import { createMockCase } from '@cccsaurora/howler-ui/tests/utils';
|
|
9
8
|
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
10
9
|
globalThis.IS_REACT_ACT_ENVIRONMENT = true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SvgIconProps } from '@mui/material';
|
|
2
2
|
import type { Item } from '@cccsaurora/howler-ui/models/entities/generated/Item';
|
|
3
|
-
import {
|
|
3
|
+
import type { FC } from 'react';
|
|
4
4
|
import type { Tree } from './types';
|
|
5
5
|
interface FolderEntryProps {
|
|
6
6
|
caseId?: string | null;
|
|
@@ -3,7 +3,6 @@ import { useDraggable, useDroppable } from '@dnd-kit/core';
|
|
|
3
3
|
import { CSS } from '@dnd-kit/utilities';
|
|
4
4
|
import { BookRounded, CheckCircle, ChevronRight, Folder, Lightbulb, Link as LinkIcon, TableChart, Visibility } from '@mui/icons-material';
|
|
5
5
|
import { alpha, Box, Stack, Typography, useTheme } from '@mui/material';
|
|
6
|
-
import {} from 'react';
|
|
7
6
|
import { Link, useLocation } from 'react-router-dom';
|
|
8
7
|
// Static map: item type → MUI icon component (avoids re-creating closures on each render)
|
|
9
8
|
const ICON_FOR_TYPE = {
|
|
@@ -2,7 +2,7 @@ import type { Case } from '@cccsaurora/howler-ui/models/entities/generated/Case'
|
|
|
2
2
|
import type { Event } from '@cccsaurora/howler-ui/models/entities/generated/Event';
|
|
3
3
|
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
4
4
|
import type { Related } from '@cccsaurora/howler-ui/models/entities/generated/Related';
|
|
5
|
-
import {
|
|
5
|
+
import type { ObservableEntry, ObservableRole, ObservableSource, ObservableType } from './types';
|
|
6
6
|
/** All Related fields that carry asset values */
|
|
7
7
|
export declare const OBSERVABLE_FIELDS: ObservableType[];
|
|
8
8
|
/** Extract (type, value, seenInId) triples from a record's related field */
|
|
@@ -6,7 +6,6 @@ import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers
|
|
|
6
6
|
import { ModalContext } from '@cccsaurora/howler-ui/components/app/providers/ModalProvider';
|
|
7
7
|
import { RecordContext } from '@cccsaurora/howler-ui/components/app/providers/RecordProvider';
|
|
8
8
|
import i18n from '@cccsaurora/howler-ui/i18n';
|
|
9
|
-
import {} from 'react';
|
|
10
9
|
import { I18nextProvider } from 'react-i18next';
|
|
11
10
|
import { MemoryRouter } from 'react-router-dom';
|
|
12
11
|
import { createMockCase, createMockHit } from '@cccsaurora/howler-ui/tests/utils';
|
|
@@ -2,7 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import PageCenter from '@cccsaurora/howler-ui/commons/components/pages/PageCenter';
|
|
3
3
|
import HandlebarsMarkdown from '@cccsaurora/howler-ui/components/elements/display/HandlebarsMarkdown';
|
|
4
4
|
import { useScrollRestoration } from '@cccsaurora/howler-ui/components/hooks/useScrollRestoration';
|
|
5
|
-
import {} from 'react';
|
|
6
5
|
import ErrorBoundary from '../ErrorBoundary';
|
|
7
6
|
import { useStartingTemplate } from '../overviews/startingTemplate';
|
|
8
7
|
const OverviewDocumentation = () => {
|
|
@@ -2,7 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
/// <reference types="vitest" />
|
|
3
3
|
import { render, screen, waitFor } from '@testing-library/react';
|
|
4
4
|
import userEvent, {} from '@testing-library/user-event';
|
|
5
|
-
import {} from 'react';
|
|
6
5
|
import { setupReactRouterMock } from '@cccsaurora/howler-ui/tests/mocks';
|
|
7
6
|
import { vi } from 'vitest';
|
|
8
7
|
setupReactRouterMock();
|
|
@@ -15,7 +15,6 @@ import { render, screen, waitFor } from '@testing-library/react';
|
|
|
15
15
|
import { ParameterContext } from '@cccsaurora/howler-ui/components/app/providers/ParameterProvider';
|
|
16
16
|
import dayjs from 'dayjs';
|
|
17
17
|
import minMax from 'dayjs/plugin/minMax';
|
|
18
|
-
import {} from 'react';
|
|
19
18
|
dayjs.extend(minMax);
|
|
20
19
|
globalThis.IS_REACT_ACT_ENVIRONMENT = true;
|
|
21
20
|
// Import after mocks
|
|
@@ -27,9 +26,9 @@ const defaultCtx = {
|
|
|
27
26
|
endDate: undefined,
|
|
28
27
|
setCustomSpan: mockSetCustomSpan
|
|
29
28
|
};
|
|
30
|
-
const makeWrapper = (ctx) =>
|
|
31
|
-
|
|
32
|
-
};
|
|
29
|
+
const makeWrapper = (ctx) =>
|
|
30
|
+
// eslint-disable-next-line react/function-component-definition
|
|
31
|
+
({ children }) => (_jsx(ParameterContext.Provider, { value: { ...defaultCtx, ...ctx }, children: children }));
|
|
33
32
|
describe('CustomSpan', () => {
|
|
34
33
|
beforeEach(() => {
|
|
35
34
|
vi.clearAllMocks();
|
|
@@ -4,7 +4,6 @@ import { useTranslation } from 'react-i18next';
|
|
|
4
4
|
import { HelpOutline, Save } from '@mui/icons-material';
|
|
5
5
|
import { Alert, Checkbox, CircularProgress, LinearProgress, Stack, TextField, ToggleButton, ToggleButtonGroup, Tooltip, Typography } from '@mui/material';
|
|
6
6
|
import api from '@cccsaurora/howler-ui/api';
|
|
7
|
-
import {} from '@cccsaurora/howler-ui/api/search';
|
|
8
7
|
import AppListEmpty from '@cccsaurora/howler-ui/commons/components/display/AppListEmpty';
|
|
9
8
|
import PageCenter from '@cccsaurora/howler-ui/commons/components/pages/PageCenter';
|
|
10
9
|
import { ParameterContext } from '@cccsaurora/howler-ui/components/app/providers/ParameterProvider';
|
package/package.json
CHANGED
package/plugins/clue/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HowlerHelper } from '@cccsaurora/howler-ui/components/elements/display/handlebars/helpers';
|
|
2
2
|
import type { PluginChipProps } from '@cccsaurora/howler-ui/components/elements/PluginChip';
|
|
3
3
|
import type { PluginTypographyProps } from '@cccsaurora/howler-ui/components/elements/PluginTypography';
|
|
4
|
-
import {
|
|
4
|
+
import type { i18n as I18N } from 'i18next';
|
|
5
5
|
import HowlerPlugin from '@cccsaurora/howler-ui/plugins/HowlerPlugin';
|
|
6
6
|
declare class CluePlugin extends HowlerPlugin {
|
|
7
7
|
name: string;
|
package/plugins/clue/index.js
CHANGED
|
@@ -3,7 +3,6 @@ import Fetcher from '@cccsaurora/clue-ui/components/fetchers/Fetcher';
|
|
|
3
3
|
import clueEN from '@cccsaurora/clue-ui/en/translation.json';
|
|
4
4
|
import clueFR from '@cccsaurora/clue-ui/fr/translation.json';
|
|
5
5
|
import { Box } from '@mui/material';
|
|
6
|
-
import {} from 'i18next';
|
|
7
6
|
import get from 'lodash-es/get';
|
|
8
7
|
import HowlerPlugin from '@cccsaurora/howler-ui/plugins/HowlerPlugin';
|
|
9
8
|
import ClueChip from './components/ClueChip';
|