@opengeoweb/cap 14.4.0 → 14.5.1

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 (28) hide show
  1. package/index.esm.js +820 -482
  2. package/package.json +9 -9
  3. package/src/lib/CapDemo.stories.d.ts +1 -2
  4. package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +2 -2
  5. package/src/lib/components/GanttChart/Gantt.d.ts +1 -1
  6. package/src/lib/components/GanttChart/GanttModule.d.ts +1 -1
  7. package/src/lib/components/GanttChart/GanttWrapper.d.ts +1 -1
  8. package/src/lib/components/GanttChart/mockTasks.d.ts +1 -1
  9. package/src/lib/components/GanttChart/utils.d.ts +2 -2
  10. package/src/lib/components/MapViewCap/MapViewCapConnect.d.ts +2 -2
  11. package/src/lib/components/MapViewCap/MapViewCapConnectWrapper.d.ts +1 -1
  12. package/src/lib/components/Providers/Providers.d.ts +5 -5
  13. package/src/lib/components/WarningListCap/WarningListCap.d.ts +2 -2
  14. package/src/lib/components/WarningListCap/WarningListCapConnect.d.ts +1 -1
  15. package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCapConnect.d.ts +2 -2
  16. package/src/lib/store/store.d.ts +3 -2
  17. package/src/lib/store/types.d.ts +1 -1
  18. package/src/lib/utils/addColors.d.ts +1 -1
  19. package/src/lib/utils/addFeedAddressToCustomGeoJsonFeature.d.ts +1 -1
  20. package/src/lib/utils/cap-api/api.d.ts +1 -1
  21. package/src/lib/utils/cap-api/hooks.d.ts +3 -3
  22. package/src/lib/utils/findEventIndexInLanguage.d.ts +1 -1
  23. package/src/lib/utils/highlightGeoJson.d.ts +2 -2
  24. package/src/lib/utils/i18n.d.ts +1 -1
  25. package/src/lib/utils/mockAlert.d.ts +1 -1
  26. package/src/lib/utils/mockCapData.d.ts +1 -1
  27. package/src/lib/utils/mockGeoJson.d.ts +1 -1
  28. package/src/lib/utils/mockGeoJsonMultipleFeatures.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/cap",
3
- "version": "14.4.0",
3
+ "version": "14.5.1",
4
4
  "description": "GeoWeb Common Alerting Protocol (CAP) library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,20 +8,20 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "14.4.0",
12
- "@opengeoweb/core": "14.4.0",
11
+ "@opengeoweb/api": "14.5.1",
12
+ "@opengeoweb/core": "14.5.1",
13
13
  "frappe-gantt": "^0.6.1",
14
- "@opengeoweb/shared": "14.4.0",
15
- "@opengeoweb/store": "14.4.0",
14
+ "@opengeoweb/shared": "14.5.1",
15
+ "@opengeoweb/store": "14.5.1",
16
16
  "react-redux": "^9.2.0",
17
- "@opengeoweb/webmap": "14.4.0",
18
- "@opengeoweb/webmap-react": "14.4.0",
17
+ "@opengeoweb/webmap": "14.5.1",
18
+ "@opengeoweb/webmap-react": "14.5.1",
19
19
  "@mui/system": "^7.3.2",
20
20
  "react-i18next": "^15.1.1",
21
21
  "@reduxjs/toolkit": "^2.6.1",
22
- "@opengeoweb/theme": "14.4.0",
22
+ "@opengeoweb/theme": "14.5.1",
23
23
  "i18next": "^25.0.1",
24
- "@opengeoweb/time-slider": "14.4.0",
24
+ "@opengeoweb/time-slider": "14.5.1",
25
25
  "@mui/material": "^7.0.1",
26
26
  "ol": "^10.4.0",
27
27
  "@tanstack/react-query": "^5.85.5"
@@ -1,5 +1,4 @@
1
- import * as React from 'react';
2
- import { StoryObj } from '@storybook/react/*';
1
+ import type { StoryObj } from '@storybook/react/*';
3
2
  declare const _default: {
4
3
  title: string;
5
4
  tags: string[];
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { InitialMapProps } from '@opengeoweb/core';
3
- import { CapFeatures } from '../types';
2
+ import type { InitialMapProps } from '@opengeoweb/core';
3
+ import type { CapFeatures } from '../types';
4
4
  export type SupportedComponentTypes = 'CapWarningList' | 'CapWarningMap';
5
5
  interface InitialProps {
6
6
  mapPreset: {
@@ -1,5 +1,5 @@
1
1
  import Gantt from 'frappe-gantt';
2
- import { Task } from './Task';
2
+ import type { Task } from './Task';
3
3
  import { ViewMode } from './ViewMode';
4
4
  interface Options {
5
5
  view_mode?: ViewMode;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CapPresets } from '../types';
2
+ import type { CapPresets } from '../types';
3
3
  interface GanttModuleProps {
4
4
  capWarningPresets: CapPresets;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Task } from './Task';
2
+ import type { Task } from './Task';
3
3
  import { ViewMode } from './ViewMode';
4
4
  interface GantWrapperProps {
5
5
  tasks: Task[];
@@ -1,2 +1,2 @@
1
- import { Task } from './Task';
1
+ import type { Task } from './Task';
2
2
  export declare const tasks: Task[];
@@ -1,5 +1,5 @@
1
- import { CustomFeature } from '../types';
2
- import { Task } from './Task';
1
+ import type { CustomFeature } from '../types';
2
+ import type { Task } from './Task';
3
3
  export declare const convertSeverityToColorClass: (severity: Task["severity"]) => string;
4
4
  export declare const getEndDateFromHeadline: (headline: string) => Date;
5
5
  export declare const convertFeaturesToTasks: (features: CustomFeature[]) => Task[];
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { InitialMapProps } from '@opengeoweb/core';
3
- import { CapPresets } from '../types';
2
+ import type { InitialMapProps } from '@opengeoweb/core';
3
+ import type { CapPresets } from '../types';
4
4
  export interface MapViewCapConnectProps {
5
5
  id?: string;
6
6
  title?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { InitialMapProps } from '@opengeoweb/core';
2
+ import type { InitialMapProps } from '@opengeoweb/core';
3
3
  interface MapViewCapConnectWrapperProps {
4
4
  id?: string;
5
5
  title?: string;
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- import { Store } from '@reduxjs/toolkit';
3
- import { ThemeProviderProps } from '@opengeoweb/theme';
4
- import { Theme } from '@mui/material';
5
- import i18n from 'i18next';
1
+ import type { Theme } from '@mui/material';
2
+ import type { Store } from '@reduxjs/toolkit';
6
3
  import { QueryClient } from '@tanstack/react-query';
4
+ import type i18n from 'i18next';
5
+ import React from 'react';
6
+ import type { ThemeProviderProps } from '@opengeoweb/theme';
7
7
  export declare const CapThemeWrapper: React.FC<ThemeProviderProps>;
8
8
  interface CapQueryClientProviderProps {
9
9
  children: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { CapPresets } from '../types';
3
- import { CapAlert } from '../../store/types';
2
+ import type { CapPresets } from '../types';
3
+ import type { CapAlert } from '../../store/types';
4
4
  interface WarningListCapProps {
5
5
  capWarningPresets: CapPresets;
6
6
  alerts: CapAlert[];
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CapPresets } from '../types';
2
+ import type { CapPresets } from '../types';
3
3
  interface WarningListCapConnectProps {
4
4
  capWarningPresets: CapPresets;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { CapAlert } from '../../../store/types';
3
- import { CapPresets } from '../../types';
2
+ import type { CapAlert } from '../../../store/types';
3
+ import type { CapPresets } from '../../types';
4
4
  interface WarningListRowCapConnectProps {
5
5
  alert: CapAlert;
6
6
  capWarningPresets: CapPresets;
@@ -1,2 +1,3 @@
1
- import { Store } from '@reduxjs/toolkit';
2
- export declare const createMockStore: (mockState?: any) => Store;
1
+ import type { Store } from '@reduxjs/toolkit';
2
+ import type { CoreAppStore } from '@opengeoweb/store';
3
+ export declare const createMockStore: (mockState?: CoreAppStore) => Store;
@@ -1,4 +1,4 @@
1
- import { Language } from '../components/types';
1
+ import type { Language } from '../components/types';
2
2
  export interface CapAlert {
3
3
  feedAddress: string;
4
4
  identifier: string;
@@ -1,2 +1,2 @@
1
- import { CustomFeature } from '../components/types';
1
+ import type { CustomFeature } from '../components/types';
2
2
  export declare const addColors: (features: CustomFeature[]) => CustomFeature[];
@@ -1,2 +1,2 @@
1
- import { CustomFeature } from '../components/types';
1
+ import type { CustomFeature } from '../components/types';
2
2
  export declare const addFeedAddressToCustomGeoJSonFeature: (feedAddress: string, features: CustomFeature[]) => CustomFeature[];
@@ -1,4 +1,4 @@
1
- import { CapAlert, CapPresets, CustomFeature } from '../../components/types';
1
+ import type { CapAlert, CapPresets, CustomFeature } from '../../components/types';
2
2
  export interface FeedAddressLink {
3
3
  feedAddress: string;
4
4
  link: string;
@@ -1,6 +1,6 @@
1
- import { UseQueryResult } from '@tanstack/react-query';
2
- import { CapPresets } from '../../components/types';
3
- import { CapAlertAndFeatures } from './api';
1
+ import type { UseQueryResult } from '@tanstack/react-query';
2
+ import type { CapAlertAndFeatures } from './api';
3
+ import type { CapPresets } from '../../components/types';
4
4
  interface CombinePendingResult<T> {
5
5
  results: T;
6
6
  pending: boolean;
@@ -1,4 +1,4 @@
1
- import { CapPresets } from '../components/types';
1
+ import type { CapPresets } from '../components/types';
2
2
  interface Language {
3
3
  language: string;
4
4
  event: string;
@@ -1,3 +1,3 @@
1
- import { FeatureEvent } from '@opengeoweb/webmap-react';
2
- import { CustomFeature } from '../components/types';
1
+ import type { FeatureEvent } from '@opengeoweb/webmap-react';
2
+ import type { CustomFeature } from '../components/types';
3
3
  export declare const highlightGeoJson: (currentFeatures: Record<string, CustomFeature[]>, featureResults?: FeatureEvent) => Record<string, CustomFeature[]>;
@@ -1,5 +1,5 @@
1
1
  import i18n from 'i18next';
2
- import { UseTranslationResponse } from 'react-i18next';
2
+ import type { UseTranslationResponse } from 'react-i18next';
3
3
  export declare const CAP_NAMESPACE = "cap";
4
4
  export declare const initCapI18n: () => typeof i18n;
5
5
  export declare const useCapTranslation: () => UseTranslationResponse<typeof CAP_NAMESPACE, typeof i18n>;
@@ -1,2 +1,2 @@
1
- import { CapAlert } from '../components/types';
1
+ import type { CapAlert } from '../components/types';
2
2
  export declare const mockAlert: CapAlert;
@@ -1,3 +1,3 @@
1
- import { CapPresets, CapWarnings } from '../components/types';
1
+ import type { CapPresets, CapWarnings } from '../components/types';
2
2
  export declare const mockCapWarningPresets: CapPresets;
3
3
  export declare const mockCapWarnings: CapWarnings;
@@ -1,2 +1,2 @@
1
- import { CapFeatures } from '../components/types';
1
+ import type { CapFeatures } from '../components/types';
2
2
  export declare const mockGeoJson: CapFeatures;
@@ -1,3 +1,3 @@
1
- import { CapFeatures, CustomFeature } from '../components/types';
1
+ import type { CapFeatures, CustomFeature } from '../components/types';
2
2
  export declare const mockGeoJsonMultipleFeatures: CapFeatures;
3
3
  export declare const mockGeoJsonMultipleFeaturesById: Record<string, CustomFeature[]>;