@opengeoweb/taf 5.0.1 → 5.1.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.
- package/README.md +0 -0
- package/index.js +47 -13
- package/package.json +8 -8
- package/src/index.d.ts +0 -0
- package/src/lib/TafDemo.stories.d.ts +0 -0
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +0 -0
- package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +0 -0
- package/src/lib/components/ComponentsLookUp/index.d.ts +0 -0
- package/src/lib/components/IssuesPane/IssuesButton.d.ts +0 -0
- package/src/lib/components/IssuesPane/IssuesButton.spec.d.ts +0 -0
- package/src/lib/components/IssuesPane/IssuesPane.d.ts +0 -0
- package/src/lib/components/IssuesPane/IssuesPane.spec.d.ts +0 -0
- package/src/lib/components/IssuesPane/IssuesPane.stories.d.ts +0 -0
- package/src/lib/components/IssuesPane/IssuesPaneWrapper.d.ts +0 -0
- package/src/lib/components/IssuesPane/IssuesPaneWrapper.spec.d.ts +0 -0
- package/src/lib/components/IssuesPane/index.d.ts +0 -0
- package/src/lib/components/IssuesPane/types.d.ts +0 -0
- package/src/lib/components/IssuesPane/utils.d.ts +0 -0
- package/src/lib/components/IssuesPane/utils.spec.d.ts +0 -0
- package/src/lib/components/Providers/Providers.d.ts +0 -0
- package/src/lib/components/Providers/index.d.ts +0 -0
- package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.d.ts +0 -0
- package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.spec.d.ts +0 -0
- package/src/lib/components/Spinner/Spinner.d.ts +0 -0
- package/src/lib/components/Spinner/Spinner.spec.d.ts +0 -0
- package/src/lib/components/Spinner/Spinner.stories.d.ts +0 -0
- package/src/lib/components/StatusIcon/StatusIcon.d.ts +0 -0
- package/src/lib/components/StatusIcon/StatusIcon.spec.d.ts +0 -0
- package/src/lib/components/SwitchButton/SwitchButton.d.ts +0 -0
- package/src/lib/components/SwitchButton/SwitchButton.spec.d.ts +0 -0
- package/src/lib/components/SwitchButton/index.d.ts +0 -0
- package/src/lib/components/TabPanel/TabPanel.d.ts +0 -0
- package/src/lib/components/TabPanel/TabPanel.spec.d.ts +0 -0
- package/src/lib/components/TabPanel/index.d.ts +0 -0
- package/src/lib/components/TafAvatar/TafAvatar.d.ts +0 -0
- package/src/lib/components/TafAvatar/index.d.ts +0 -0
- package/src/lib/components/TafForm/TafForm.d.ts +0 -0
- package/src/lib/components/TafForm/TafForm.editor.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafForm.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafForm.statusChanges.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafForm.stories.d.ts +0 -0
- package/src/lib/components/TafForm/TafForm.validations.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/DragHandle.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/DragHandle.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/TafFormRow.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/TafFormRow.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/TafFormTextField.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/TafFormTextField.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/types.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/change.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/change.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/clouds.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/clouds.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/probability.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/probability.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/utils.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/utils.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/validField.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/validField.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/visibility.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/visibility.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/weather.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/weather.spec.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/wind.d.ts +0 -0
- package/src/lib/components/TafForm/TafFormRow/validations/wind.spec.d.ts +0 -0
- package/src/lib/components/TafForm/index.d.ts +0 -0
- package/src/lib/components/TafForm/utils.d.ts +0 -0
- package/src/lib/components/TafForm/utils.spec.d.ts +0 -0
- package/src/lib/components/TafHeader/TafHeader.d.ts +0 -0
- package/src/lib/components/TafHeader/TafHeader.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/LastUpdateTime/LastUpdateTime.d.ts +0 -0
- package/src/lib/components/TafLayout/LastUpdateTime/LastUpdateTime.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/LastUpdateTime/LastUpdateTime.stories.d.ts +0 -0
- package/src/lib/components/TafLayout/LastUpdateTime/index.d.ts +0 -0
- package/src/lib/components/TafLayout/LocationTabs/LocationTabs.d.ts +0 -0
- package/src/lib/components/TafLayout/LocationTabs/LocationTabs.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/LocationTabs/LocationTabs.stories.d.ts +0 -0
- package/src/lib/components/TafLayout/LocationTabs/index.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.stories.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/ExportButton.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/ExportButton.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/TacContainer.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/TacContainer.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/TacOverview.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/TacOverview.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/TacOverview.stories.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.stories.d.ts +0 -0
- package/src/lib/components/TafLayout/TacOverview/index.d.ts +0 -0
- package/src/lib/components/TafLayout/TafLayout.d.ts +0 -0
- package/src/lib/components/TafLayout/TafLayout.issuespane.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/TafLayout.snackbar.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/TafLayout.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/TafLayout.stories.d.ts +0 -0
- package/src/lib/components/TafLayout/TafLayout.tacoverview.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/TafPanel/TafPanel.d.ts +0 -0
- package/src/lib/components/TafLayout/TafPanel/TafPanel.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/TafPanel/TafPanel.stories.d.ts +0 -0
- package/src/lib/components/TafLayout/TafPanel/index.d.ts +0 -0
- package/src/lib/components/TafLayout/TopTabs/TopTabs.d.ts +0 -0
- package/src/lib/components/TafLayout/TopTabs/TopTabs.spec.d.ts +0 -0
- package/src/lib/components/TafLayout/TopTabs/TopTabs.stories.d.ts +0 -0
- package/src/lib/components/TafLayout/TopTabs/index.d.ts +0 -0
- package/src/lib/components/TafLayout/utils.d.ts +0 -0
- package/src/lib/components/TafLayout/utils.spec.d.ts +0 -0
- package/src/lib/components/TafModule/TafModule.d.ts +0 -0
- package/src/lib/components/TafModule/TafModule.spec.d.ts +0 -0
- package/src/lib/components/TafModule/TafModule.stories.d.ts +0 -0
- package/src/lib/components/TafModule/TafModuleProvider.d.ts +0 -0
- package/src/lib/components/TafModule/index.d.ts +0 -0
- package/src/lib/components/TafWrapper/TafWrapper.d.ts +0 -0
- package/src/lib/components/TafWrapper/TafWrapper.spec.d.ts +0 -0
- package/src/lib/components/TafWrapper/index.d.ts +0 -0
- package/src/lib/storyshots/Storyshots.spec.d.ts +0 -0
- package/src/lib/types.d.ts +0 -0
- package/src/lib/utils/__mocks__/api.d.ts +0 -0
- package/src/lib/utils/api.d.ts +0 -0
- package/src/lib/utils/api.spec.d.ts +0 -0
- package/src/lib/utils/fakeApi.d.ts +0 -0
- package/src/lib/utils/fakeApi.spec.d.ts +0 -0
- package/src/lib/utils/mockdata/fakeTafList.d.ts +0 -0
- package/src/lib/utils/weatherPhenomena.d.ts +0 -0
package/README.md
CHANGED
|
File without changes
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { createContext, useContext, createElement, Fragment, forwardRef } from 'react';
|
|
2
|
+
import React__default, { createContext, version as version$1, useContext, createElement, Fragment, forwardRef } from 'react';
|
|
3
3
|
import { Grid, Button, Chip, Box, Typography, FormLabel, Switch, TextField, Card, Tabs, Tab, Dialog, MenuList, MenuItem, Backdrop, CircularProgress } from '@mui/material';
|
|
4
4
|
import { useFormContext, Controller, useFieldArray } from 'react-hook-form';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
@@ -897,12 +897,52 @@ if (
|
|
|
897
897
|
|
|
898
898
|
if (process.env.NODE_ENV === 'production') ;
|
|
899
899
|
|
|
900
|
-
const
|
|
900
|
+
const ContextKey = Symbol.for(`react-redux-context-${version$1}`);
|
|
901
|
+
const gT = globalThis;
|
|
901
902
|
|
|
902
|
-
|
|
903
|
-
|
|
903
|
+
function getContext() {
|
|
904
|
+
let realContext = gT[ContextKey];
|
|
905
|
+
|
|
906
|
+
if (!realContext) {
|
|
907
|
+
realContext = createContext(null);
|
|
908
|
+
|
|
909
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
910
|
+
realContext.displayName = 'ReactRedux';
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
gT[ContextKey] = realContext;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
return realContext;
|
|
904
917
|
}
|
|
905
918
|
|
|
919
|
+
const ReactReduxContext = /*#__PURE__*/new Proxy({}, /*#__PURE__*/new Proxy({}, {
|
|
920
|
+
get(_, handler) {
|
|
921
|
+
const target = getContext(); // @ts-ignore
|
|
922
|
+
|
|
923
|
+
return (_target, ...args) => Reflect[handler](target, ...args);
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
}));
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
|
|
930
|
+
* hook that you should usually not need to call directly.
|
|
931
|
+
*
|
|
932
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
933
|
+
* @returns {Function} A `useReduxContext` hook bound to the specified context.
|
|
934
|
+
*/
|
|
935
|
+
function createReduxContextHook(context = ReactReduxContext) {
|
|
936
|
+
return function useReduxContext() {
|
|
937
|
+
const contextValue = useContext(context);
|
|
938
|
+
|
|
939
|
+
if (process.env.NODE_ENV !== 'production' && !contextValue) {
|
|
940
|
+
throw new Error('could not find react-redux context value; please ensure the component is wrapped in a <Provider>');
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
return contextValue;
|
|
944
|
+
};
|
|
945
|
+
}
|
|
906
946
|
/**
|
|
907
947
|
* A hook to access the value of the `ReactReduxContext`. This is a low-level
|
|
908
948
|
* hook that you should usually not need to call directly.
|
|
@@ -919,15 +959,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
919
959
|
* return <div>{store.getState()}</div>
|
|
920
960
|
* }
|
|
921
961
|
*/
|
|
922
|
-
function useReduxContext() {
|
|
923
|
-
const contextValue = useContext(ReactReduxContext);
|
|
924
962
|
|
|
925
|
-
|
|
926
|
-
throw new Error('could not find react-redux context value; please ensure the component is wrapped in a <Provider>');
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
return contextValue;
|
|
930
|
-
}
|
|
963
|
+
const useReduxContext = /*#__PURE__*/createReduxContextHook();
|
|
931
964
|
|
|
932
965
|
var reactIs$1 = {exports: {}};
|
|
933
966
|
|
|
@@ -1404,7 +1437,8 @@ if (process.env.NODE_ENV === 'production') ;
|
|
|
1404
1437
|
|
|
1405
1438
|
function createStoreHook(context = ReactReduxContext) {
|
|
1406
1439
|
const useReduxContext$1 = // @ts-ignore
|
|
1407
|
-
context === ReactReduxContext ? useReduxContext :
|
|
1440
|
+
context === ReactReduxContext ? useReduxContext : // @ts-ignore
|
|
1441
|
+
createReduxContextHook(context);
|
|
1408
1442
|
return function useStore() {
|
|
1409
1443
|
const {
|
|
1410
1444
|
store
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/taf",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "GeoWeb TAF library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@emotion/react": "11.10.6",
|
|
17
17
|
"@mui/material": "5.12.0",
|
|
18
|
-
"@opengeoweb/api": "5.
|
|
19
|
-
"@opengeoweb/authentication": "5.
|
|
20
|
-
"@opengeoweb/core": "5.
|
|
21
|
-
"@opengeoweb/form-fields": "5.
|
|
22
|
-
"@opengeoweb/shared": "5.
|
|
23
|
-
"@opengeoweb/theme": "5.
|
|
18
|
+
"@opengeoweb/api": "5.1.1",
|
|
19
|
+
"@opengeoweb/authentication": "5.1.1",
|
|
20
|
+
"@opengeoweb/core": "5.1.1",
|
|
21
|
+
"@opengeoweb/form-fields": "5.1.1",
|
|
22
|
+
"@opengeoweb/shared": "5.1.1",
|
|
23
|
+
"@opengeoweb/theme": "5.1.1",
|
|
24
24
|
"@reduxjs/toolkit": "1.9.5",
|
|
25
25
|
"axios": "1.4.0",
|
|
26
26
|
"lodash": "4.17.21",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"react": "18.2.0",
|
|
29
29
|
"react-dom": "18.2.0",
|
|
30
30
|
"react-hook-form": "7.41.5",
|
|
31
|
-
"react-redux": "8.
|
|
31
|
+
"react-redux": "8.1.1",
|
|
32
32
|
"react-sortablejs": "6.1.4",
|
|
33
33
|
"sortablejs": "1.15.0"
|
|
34
34
|
}
|
package/src/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/lib/types.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/src/lib/utils/api.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|