@opengeoweb/taf 10.2.0 → 10.2.1-spike-ol.0

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/index.esm.js CHANGED
@@ -6531,7 +6531,7 @@ var getApiRoutes$1 = function getApiRoutes(axiosInstance) {
6531
6531
  }));
6532
6532
  },
6533
6533
  patchTaf: function patchTaf(formData) {
6534
- return axiosInstance.patch('/taf', Object.assign({}, formData));
6534
+ return axiosInstance.patch('/taf?force=true', Object.assign({}, formData));
6535
6535
  }
6536
6536
  };
6537
6537
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "10.2.0",
3
+ "version": "10.2.1-spike-ol.0",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,23 +1,7 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const TafModuleLightTheme: {
7
- (): React.ReactElement;
8
- parameters: {
9
- zeplinLink: {
10
- name: string;
11
- link: string;
12
- }[];
13
- };
14
- };
15
- export declare const TafModuleDarkTheme: {
16
- (): React.ReactElement;
17
- parameters: {
18
- zeplinLink: {
19
- name: string;
20
- link: string;
21
- }[];
22
- };
23
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { TafModule } from './components/TafModule';
3
+ type Story = StoryObj<typeof TafModule>;
4
+ declare const meta: Meta<typeof TafModule>;
5
+ export default meta;
6
+ export declare const TafModuleLightTheme: Story;
7
+ export declare const TafModuleDarkTheme: Story;
@@ -1,17 +1,9 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const NoIssues: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const OneIssue: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
14
- export declare const MultipleIssues: {
15
- (): React.ReactElement;
16
- storyName: string;
17
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import IssuesPane from './IssuesPane';
3
+ declare const meta: Meta<typeof IssuesPane>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof IssuesPane>;
6
+ export declare const Component: Story;
7
+ export declare const NoIssues: Story;
8
+ export declare const OneIssue: Story;
9
+ export declare const MultipleIssues: Story;
@@ -10,7 +10,12 @@ export interface TafThemeApiProviderProps {
10
10
  children: React.ReactNode;
11
11
  theme?: Theme;
12
12
  store?: Store;
13
+ shouldIncludeTheme?: boolean;
13
14
  }
15
+ export declare const TafThemeWrapper: React.FC<{
16
+ children: React.ReactNode;
17
+ theme?: Theme;
18
+ }>;
14
19
  export declare const TafThemeApiProvider: React.FC<TafThemeApiProviderProps>;
15
20
  interface TafThemeFormProviderProps {
16
21
  children: React.ReactNode;
@@ -1,6 +1,10 @@
1
1
  import * as React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
+ component: React.FC<import("@mui/material").CircularProgressProps>;
4
5
  };
5
6
  export default _default;
6
- export declare const SpinnerDemo: () => React.ReactElement;
7
+ export declare const SpinnerDemo: {
8
+ render: () => React.ReactElement;
9
+ tags: string[];
10
+ };
@@ -1,45 +1,25 @@
1
1
  import React from 'react';
2
+ import type { StoryObj } from '@storybook/react';
3
+ import { TafFromBackend } from '../../types';
4
+ interface WrapperProps {
5
+ tafFromBackend: TafFromBackend;
6
+ isDisabled?: boolean;
7
+ }
8
+ declare const Wrapper: React.FC<WrapperProps>;
2
9
  declare const _default: {
3
10
  title: string;
4
- };
5
- export default _default;
6
- export declare const NewTafFormLight: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const NewTafFormDark: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
14
- export declare const EditTafFormLight: {
15
- (): React.ReactElement;
16
- tags: string[];
17
- };
18
- export declare const EditTafFormDark: {
19
- (): React.ReactElement;
20
- tags: string[];
21
- };
22
- export declare const ViewTafFormLight: {
23
- (): React.ReactElement;
24
- tags: string[];
25
- };
26
- export declare const ViewTafFormDark: {
27
- (): React.ReactElement;
28
- tags: string[];
29
- };
30
- export declare const EditTafFormWithMultipleSameStartDatesLight: {
31
- (): React.ReactElement;
32
- tags: string[];
33
- };
34
- export declare const EditTafFormWithMultipleSameStartDatesDark: {
35
- (): React.ReactElement;
36
- tags: string[];
37
- };
38
- export declare const EditTafFormWithFMOverlapLight: {
39
- (): React.ReactElement;
40
- tags: string[];
41
- };
42
- export declare const EditTafFormWithFMOverlapDark: {
43
- (): React.ReactElement;
11
+ component: React.FC<WrapperProps>;
44
12
  tags: string[];
45
13
  };
14
+ export default _default;
15
+ type Story = StoryObj<typeof Wrapper>;
16
+ export declare const NewTafFormLight: Story;
17
+ export declare const NewTafFormDark: Story;
18
+ export declare const EditTafFormLight: Story;
19
+ export declare const EditTafFormDark: Story;
20
+ export declare const ViewTafFormLight: Story;
21
+ export declare const ViewTafFormDark: Story;
22
+ export declare const EditTafFormWithMultipleSameStartDatesLight: Story;
23
+ export declare const EditTafFormWithMultipleSameStartDatesDark: Story;
24
+ export declare const EditTafFormWithFMOverlapLight: Story;
25
+ export declare const EditTafFormWithFMOverlapDark: Story;
@@ -1,13 +1,8 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const LocationTabsLight: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const LocationTabsDark: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import LocationTabs from './LocationTabs';
3
+ declare const meta: Meta<typeof LocationTabs>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof LocationTabs>;
6
+ export declare const Component: Story;
7
+ export declare const LocationTabsLight: Story;
8
+ export declare const LocationTabsDark: Story;
@@ -1,25 +1,8 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const TacContainerLight: {
7
- (): React.ReactElement;
8
- storyName: string;
9
- parameters: {
10
- zeplinLink: {
11
- name: string;
12
- link: string;
13
- }[];
14
- };
15
- };
16
- export declare const TacContainerDark: {
17
- (): React.ReactElement;
18
- storyName: string;
19
- parameters: {
20
- zeplinLink: {
21
- name: string;
22
- link: string;
23
- }[];
24
- };
25
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { AdverseWeatherTACMessage } from './AdverseWeatherTacMessage';
3
+ declare const meta: Meta<typeof AdverseWeatherTACMessage>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AdverseWeatherTACMessage>;
6
+ export declare const Component: Story;
7
+ export declare const TacContainerLight: Story;
8
+ export declare const TacContainerDark: Story;
@@ -1,23 +1,12 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const TacOverviewWithError: () => React.ReactElement;
7
- export declare const TacOverviewWithDifferentTAC: () => React.ReactElement;
8
- export declare const TacOverviewAdverseWeatherLight: {
9
- (): React.ReactElement;
10
- tags: string[];
11
- };
12
- export declare const TacOverviewAdverseWeatherDark: {
13
- (): React.ReactElement;
14
- tags: string[];
15
- };
16
- export declare const TacOverviewLightTheme: {
17
- (): React.ReactElement;
18
- storyName: string;
19
- };
20
- export declare const TacOverviewDarkTheme: {
21
- (): React.ReactElement;
22
- storyName: string;
23
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import TacOverview from './TacOverview';
3
+ declare const meta: Meta<typeof TacOverview>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TacOverview>;
6
+ export declare const Component: Story;
7
+ export declare const TacOverviewWithError: Story;
8
+ export declare const TacOverviewWithDifferentTAC: Story;
9
+ export declare const TacOverviewAdverseWeatherLight: Story;
10
+ export declare const TacOverviewAdverseWeatherDark: Story;
11
+ export declare const TacOverviewLightTheme: Story;
12
+ export declare const TacOverviewDarkTheme: Story;
@@ -1,23 +1,7 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const TacOverviewMobileLight: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- parameters: {
10
- viewport: {
11
- defaultViewport: string;
12
- };
13
- };
14
- };
15
- export declare const TacOverviewMobileDark: {
16
- (): React.ReactElement;
17
- tags: string[];
18
- parameters: {
19
- viewport: {
20
- defaultViewport: string;
21
- };
22
- };
23
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import TacOverviewMobile from './TacOverviewMobile';
3
+ declare const meta: Meta<typeof TacOverviewMobile>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TacOverviewMobile>;
6
+ export declare const TacOverviewMobileLight: Story;
7
+ export declare const TacOverviewMobileDark: Story;
@@ -1,15 +1,9 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const DemoTafLayoutLightTheme: () => React.ReactElement;
7
- export declare const DemoTafLayoutDarkTheme: () => React.ReactElement;
8
- export declare const TafLayoutLight: {
9
- (): React.ReactElement;
10
- tags: string[];
11
- };
12
- export declare const TafLayoutDark: {
13
- (): React.ReactElement;
14
- tags: string[];
15
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import TafLayout from './TafLayout';
3
+ declare const meta: Meta<typeof TafLayout>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TafLayout>;
6
+ export declare const DemoTafLayoutLightTheme: Story;
7
+ export declare const DemoTafLayoutDarkTheme: Story;
8
+ export declare const TafLayoutLight: Story;
9
+ export declare const TafLayoutDark: Story;
@@ -1,22 +1,11 @@
1
1
  import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const TafPanelSaveErrorLight: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const TafPanelSaveErrorDark: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
14
- export declare const TafPanelTakeOverErrorLight: {
15
- (): React.ReactElement;
16
- tags: string[];
17
- };
18
- export declare const TafPanelTakeOverErrorDark: {
19
- (): React.ReactElement;
20
- tags: string[];
21
- };
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ import TafPanel from './TafPanel';
4
+ declare const meta: Meta<typeof TafPanel>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof TafPanel>;
7
+ export declare const TafPanelSaveErrorLight: Story;
8
+ export declare const TafPanelSaveErrorDark: Story;
9
+ export declare const TafPanelTakeOverErrorLight: Story;
10
+ export declare const TafPanelTakeOverErrorDark: Story;
22
11
  export declare const TafPanelMultipleRowsWithSameDates: () => React.ReactElement;
@@ -1,13 +1,8 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const TopTabsLight: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const TopTabsDark: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import TopTabs from './TopTabs';
3
+ declare const meta: Meta<typeof TopTabs>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TopTabs>;
6
+ export declare const Component: Story;
7
+ export declare const TopTabsLight: Story;
8
+ export declare const TopTabsDark: Story;
@@ -1,28 +1,13 @@
1
1
  import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ import TafModule from './TafModule';
4
+ declare const meta: Meta<typeof TafModule>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof TafModule>;
6
7
  export declare const TafModuleLightThemeWithErrorOnAction: () => React.ReactElement;
7
8
  export declare const TafModuleLightThemeWithErrorOnLoadingList: () => React.ReactElement;
8
9
  export declare const TafModuleWithNewData: () => React.ReactElement;
9
- export declare const TafModuleLightTheme: {
10
- (): React.ReactElement;
11
- parameters: {
12
- zeplinLink: {
13
- name: string;
14
- link: string;
15
- }[];
16
- };
17
- };
18
- export declare const TafModuleDarkTheme: {
19
- (): React.ReactElement;
20
- parameters: {
21
- zeplinLink: {
22
- name: string;
23
- link: string;
24
- }[];
25
- };
26
- };
27
- export declare const TafModuleToolContainerExample: () => React.ReactElement;
10
+ export declare const TafModuleLightTheme: Story;
11
+ export declare const TafModuleDarkTheme: Story;
12
+ export declare const TafModuleToolContainerExample: Story;
28
13
  export declare const TafModulePublishDraftAmendmentExample: () => React.ReactElement;