@opengeoweb/taf 5.0.1 → 5.1.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.
Files changed (129) hide show
  1. package/README.md +0 -0
  2. package/index.js +47 -13
  3. package/package.json +8 -8
  4. package/src/index.d.ts +0 -0
  5. package/src/lib/TafDemo.stories.d.ts +0 -0
  6. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +0 -0
  7. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +0 -0
  8. package/src/lib/components/ComponentsLookUp/index.d.ts +0 -0
  9. package/src/lib/components/IssuesPane/IssuesButton.d.ts +0 -0
  10. package/src/lib/components/IssuesPane/IssuesButton.spec.d.ts +0 -0
  11. package/src/lib/components/IssuesPane/IssuesPane.d.ts +0 -0
  12. package/src/lib/components/IssuesPane/IssuesPane.spec.d.ts +0 -0
  13. package/src/lib/components/IssuesPane/IssuesPane.stories.d.ts +0 -0
  14. package/src/lib/components/IssuesPane/IssuesPaneWrapper.d.ts +0 -0
  15. package/src/lib/components/IssuesPane/IssuesPaneWrapper.spec.d.ts +0 -0
  16. package/src/lib/components/IssuesPane/index.d.ts +0 -0
  17. package/src/lib/components/IssuesPane/types.d.ts +0 -0
  18. package/src/lib/components/IssuesPane/utils.d.ts +0 -0
  19. package/src/lib/components/IssuesPane/utils.spec.d.ts +0 -0
  20. package/src/lib/components/Providers/Providers.d.ts +0 -0
  21. package/src/lib/components/Providers/index.d.ts +0 -0
  22. package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.d.ts +0 -0
  23. package/src/lib/components/ResponsiveWrapper/ResponsiveWrapper.spec.d.ts +0 -0
  24. package/src/lib/components/Spinner/Spinner.d.ts +0 -0
  25. package/src/lib/components/Spinner/Spinner.spec.d.ts +0 -0
  26. package/src/lib/components/Spinner/Spinner.stories.d.ts +0 -0
  27. package/src/lib/components/StatusIcon/StatusIcon.d.ts +0 -0
  28. package/src/lib/components/StatusIcon/StatusIcon.spec.d.ts +0 -0
  29. package/src/lib/components/SwitchButton/SwitchButton.d.ts +0 -0
  30. package/src/lib/components/SwitchButton/SwitchButton.spec.d.ts +0 -0
  31. package/src/lib/components/SwitchButton/index.d.ts +0 -0
  32. package/src/lib/components/TabPanel/TabPanel.d.ts +0 -0
  33. package/src/lib/components/TabPanel/TabPanel.spec.d.ts +0 -0
  34. package/src/lib/components/TabPanel/index.d.ts +0 -0
  35. package/src/lib/components/TafAvatar/TafAvatar.d.ts +0 -0
  36. package/src/lib/components/TafAvatar/index.d.ts +0 -0
  37. package/src/lib/components/TafForm/TafForm.d.ts +0 -0
  38. package/src/lib/components/TafForm/TafForm.editor.spec.d.ts +0 -0
  39. package/src/lib/components/TafForm/TafForm.spec.d.ts +0 -0
  40. package/src/lib/components/TafForm/TafForm.statusChanges.spec.d.ts +0 -0
  41. package/src/lib/components/TafForm/TafForm.stories.d.ts +0 -0
  42. package/src/lib/components/TafForm/TafForm.validations.spec.d.ts +0 -0
  43. package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.d.ts +0 -0
  44. package/src/lib/components/TafForm/TafFormButtons/TafFormButtons.spec.d.ts +0 -0
  45. package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.d.ts +0 -0
  46. package/src/lib/components/TafForm/TafFormButtons/TafFormOptionsButton.spec.d.ts +0 -0
  47. package/src/lib/components/TafForm/TafFormRow/DragHandle.d.ts +0 -0
  48. package/src/lib/components/TafForm/TafFormRow/DragHandle.spec.d.ts +0 -0
  49. package/src/lib/components/TafForm/TafFormRow/TafFormRow.d.ts +0 -0
  50. package/src/lib/components/TafForm/TafFormRow/TafFormRow.spec.d.ts +0 -0
  51. package/src/lib/components/TafForm/TafFormRow/TafFormTextField.d.ts +0 -0
  52. package/src/lib/components/TafForm/TafFormRow/TafFormTextField.spec.d.ts +0 -0
  53. package/src/lib/components/TafForm/TafFormRow/types.d.ts +0 -0
  54. package/src/lib/components/TafForm/TafFormRow/validations/change.d.ts +0 -0
  55. package/src/lib/components/TafForm/TafFormRow/validations/change.spec.d.ts +0 -0
  56. package/src/lib/components/TafForm/TafFormRow/validations/clouds.d.ts +0 -0
  57. package/src/lib/components/TafForm/TafFormRow/validations/clouds.spec.d.ts +0 -0
  58. package/src/lib/components/TafForm/TafFormRow/validations/probability.d.ts +0 -0
  59. package/src/lib/components/TafForm/TafFormRow/validations/probability.spec.d.ts +0 -0
  60. package/src/lib/components/TafForm/TafFormRow/validations/utils.d.ts +0 -0
  61. package/src/lib/components/TafForm/TafFormRow/validations/utils.spec.d.ts +0 -0
  62. package/src/lib/components/TafForm/TafFormRow/validations/validField.d.ts +0 -0
  63. package/src/lib/components/TafForm/TafFormRow/validations/validField.spec.d.ts +0 -0
  64. package/src/lib/components/TafForm/TafFormRow/validations/visibility.d.ts +0 -0
  65. package/src/lib/components/TafForm/TafFormRow/validations/visibility.spec.d.ts +0 -0
  66. package/src/lib/components/TafForm/TafFormRow/validations/weather.d.ts +0 -0
  67. package/src/lib/components/TafForm/TafFormRow/validations/weather.spec.d.ts +0 -0
  68. package/src/lib/components/TafForm/TafFormRow/validations/wind.d.ts +0 -0
  69. package/src/lib/components/TafForm/TafFormRow/validations/wind.spec.d.ts +0 -0
  70. package/src/lib/components/TafForm/index.d.ts +0 -0
  71. package/src/lib/components/TafForm/utils.d.ts +0 -0
  72. package/src/lib/components/TafForm/utils.spec.d.ts +0 -0
  73. package/src/lib/components/TafHeader/TafHeader.d.ts +0 -0
  74. package/src/lib/components/TafHeader/TafHeader.spec.d.ts +0 -0
  75. package/src/lib/components/TafLayout/LastUpdateTime/LastUpdateTime.d.ts +0 -0
  76. package/src/lib/components/TafLayout/LastUpdateTime/LastUpdateTime.spec.d.ts +0 -0
  77. package/src/lib/components/TafLayout/LastUpdateTime/LastUpdateTime.stories.d.ts +0 -0
  78. package/src/lib/components/TafLayout/LastUpdateTime/index.d.ts +0 -0
  79. package/src/lib/components/TafLayout/LocationTabs/LocationTabs.d.ts +0 -0
  80. package/src/lib/components/TafLayout/LocationTabs/LocationTabs.spec.d.ts +0 -0
  81. package/src/lib/components/TafLayout/LocationTabs/LocationTabs.stories.d.ts +0 -0
  82. package/src/lib/components/TafLayout/LocationTabs/index.d.ts +0 -0
  83. package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.d.ts +0 -0
  84. package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.spec.d.ts +0 -0
  85. package/src/lib/components/TafLayout/TacOverview/AdverseWeatherTacMessage.stories.d.ts +0 -0
  86. package/src/lib/components/TafLayout/TacOverview/ExportButton.d.ts +0 -0
  87. package/src/lib/components/TafLayout/TacOverview/ExportButton.spec.d.ts +0 -0
  88. package/src/lib/components/TafLayout/TacOverview/TacContainer.d.ts +0 -0
  89. package/src/lib/components/TafLayout/TacOverview/TacContainer.spec.d.ts +0 -0
  90. package/src/lib/components/TafLayout/TacOverview/TacOverview.d.ts +0 -0
  91. package/src/lib/components/TafLayout/TacOverview/TacOverview.spec.d.ts +0 -0
  92. package/src/lib/components/TafLayout/TacOverview/TacOverview.stories.d.ts +0 -0
  93. package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.d.ts +0 -0
  94. package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.spec.d.ts +0 -0
  95. package/src/lib/components/TafLayout/TacOverview/TacOverviewMobile.stories.d.ts +0 -0
  96. package/src/lib/components/TafLayout/TacOverview/index.d.ts +0 -0
  97. package/src/lib/components/TafLayout/TafLayout.d.ts +0 -0
  98. package/src/lib/components/TafLayout/TafLayout.issuespane.spec.d.ts +0 -0
  99. package/src/lib/components/TafLayout/TafLayout.snackbar.spec.d.ts +0 -0
  100. package/src/lib/components/TafLayout/TafLayout.spec.d.ts +0 -0
  101. package/src/lib/components/TafLayout/TafLayout.stories.d.ts +0 -0
  102. package/src/lib/components/TafLayout/TafLayout.tacoverview.spec.d.ts +0 -0
  103. package/src/lib/components/TafLayout/TafPanel/TafPanel.d.ts +0 -0
  104. package/src/lib/components/TafLayout/TafPanel/TafPanel.spec.d.ts +0 -0
  105. package/src/lib/components/TafLayout/TafPanel/TafPanel.stories.d.ts +0 -0
  106. package/src/lib/components/TafLayout/TafPanel/index.d.ts +0 -0
  107. package/src/lib/components/TafLayout/TopTabs/TopTabs.d.ts +0 -0
  108. package/src/lib/components/TafLayout/TopTabs/TopTabs.spec.d.ts +0 -0
  109. package/src/lib/components/TafLayout/TopTabs/TopTabs.stories.d.ts +0 -0
  110. package/src/lib/components/TafLayout/TopTabs/index.d.ts +0 -0
  111. package/src/lib/components/TafLayout/utils.d.ts +0 -0
  112. package/src/lib/components/TafLayout/utils.spec.d.ts +0 -0
  113. package/src/lib/components/TafModule/TafModule.d.ts +0 -0
  114. package/src/lib/components/TafModule/TafModule.spec.d.ts +0 -0
  115. package/src/lib/components/TafModule/TafModule.stories.d.ts +0 -0
  116. package/src/lib/components/TafModule/TafModuleProvider.d.ts +0 -0
  117. package/src/lib/components/TafModule/index.d.ts +0 -0
  118. package/src/lib/components/TafWrapper/TafWrapper.d.ts +0 -0
  119. package/src/lib/components/TafWrapper/TafWrapper.spec.d.ts +0 -0
  120. package/src/lib/components/TafWrapper/index.d.ts +0 -0
  121. package/src/lib/storyshots/Storyshots.spec.d.ts +0 -0
  122. package/src/lib/types.d.ts +0 -0
  123. package/src/lib/utils/__mocks__/api.d.ts +0 -0
  124. package/src/lib/utils/api.d.ts +0 -0
  125. package/src/lib/utils/api.spec.d.ts +0 -0
  126. package/src/lib/utils/fakeApi.d.ts +0 -0
  127. package/src/lib/utils/fakeApi.spec.d.ts +0 -0
  128. package/src/lib/utils/mockdata/fakeTafList.d.ts +0 -0
  129. 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 ReactReduxContext = /*#__PURE__*/createContext(null);
900
+ const ContextKey = Symbol.for(`react-redux-context-${version$1}`);
901
+ const gT = globalThis;
901
902
 
902
- if (process.env.NODE_ENV !== 'production') {
903
- ReactReduxContext.displayName = 'ReactRedux';
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
- if (process.env.NODE_ENV !== 'production' && !contextValue) {
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 : () => useContext(context);
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.0.1",
3
+ "version": "5.1.0",
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.0.1",
19
- "@opengeoweb/authentication": "5.0.1",
20
- "@opengeoweb/core": "5.0.1",
21
- "@opengeoweb/form-fields": "5.0.1",
22
- "@opengeoweb/shared": "5.0.1",
23
- "@opengeoweb/theme": "5.0.1",
18
+ "@opengeoweb/api": "5.1.0",
19
+ "@opengeoweb/authentication": "5.1.0",
20
+ "@opengeoweb/core": "5.1.0",
21
+ "@opengeoweb/form-fields": "5.1.0",
22
+ "@opengeoweb/shared": "5.1.0",
23
+ "@opengeoweb/theme": "5.1.0",
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.0.4",
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