@truedat/cx 7.6.2 → 7.6.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/cx",
3
- "version": "7.6.2",
3
+ "version": "7.6.3",
4
4
  "description": "Truedat Web Connectors",
5
5
  "sideEffects": false,
6
6
  "module": "src/index.js",
@@ -48,7 +48,7 @@
48
48
  "@testing-library/jest-dom": "^6.6.3",
49
49
  "@testing-library/react": "^16.3.0",
50
50
  "@testing-library/user-event": "^14.6.1",
51
- "@truedat/test": "7.6.2",
51
+ "@truedat/test": "7.6.3",
52
52
  "identity-obj-proxy": "^3.0.0",
53
53
  "jest": "^29.7.0",
54
54
  "redux-saga-test-plan": "^4.0.6"
@@ -81,5 +81,5 @@
81
81
  "semantic-ui-react": "^3.0.0-beta.2",
82
82
  "swr": "^2.3.3"
83
83
  },
84
- "gitHead": "413392c768bdc4e352be8863a70b031483b9ca88"
84
+ "gitHead": "bfd5e53aeb7fb8da6ad19e9403fc6d141fbe9693"
85
85
  }
@@ -14,9 +14,9 @@ import { ProtectedRoute, Loader } from "@truedat/core/router";
14
14
  import NewConfiguration from "./NewConfiguration";
15
15
  import EditConfiguration from "./EditConfiguration";
16
16
  import Configurations from "./Configurations";
17
- import ConfigurationsLoader from "./ConfigurationsLoader";
18
17
  import ConfigurationLoader from "./ConfigurationLoader";
19
18
  import Configuration from "./Configuration";
19
+ import ConfigurationsLoader from "./ConfigurationsLoader";
20
20
 
21
21
  const TemplateLoader = React.lazy(
22
22
  () => import("@truedat/df/templates/components/TemplateLoader")
@@ -31,59 +31,55 @@ export const ConfigurationRoutes = ({
31
31
  templatesLoading,
32
32
  }) => {
33
33
  return (
34
- <Routes>
35
- <Route
36
- path={CONFIGURATIONS}
37
- element={
38
- <ProtectedRoute>
39
- <Loader loaders={<ConfigurationsLoader />} />
40
- </ProtectedRoute>
41
- }
42
- >
43
- <Route index element={<Configurations />} />
44
- <Route
45
- path="new"
46
- element={
47
- <>
48
- <TemplatesLoader scope="ca" />
49
- <TemplateLoader />
50
- <NewConfiguration />
51
- </>
52
- }
53
- />
54
- <Route
55
- path=":external_id"
56
- element={
57
- <Loader
58
- loaders={
59
- <>
60
- <ConfigurationLoader />
61
- <TemplatesLoader scope="ca" />
62
- </>
63
- }
64
- />
65
- }
66
- >
34
+ <>
35
+ <ConfigurationsLoader />
36
+ <Routes>
37
+ <Route path={CONFIGURATIONS} element={<ProtectedRoute />}>
38
+ <Route index element={<Configurations />} />
67
39
  <Route
68
- index
40
+ path="new"
69
41
  element={
70
- <Segment>{!templatesLoading && <Configuration />}</Segment>
42
+ <>
43
+ <TemplatesLoader scope="ca" />
44
+ <TemplateLoader />
45
+ <NewConfiguration />
46
+ </>
71
47
  }
72
48
  />
73
49
  <Route
74
- path="edit"
50
+ path=":external_id"
75
51
  element={
76
- !_.isEmpty(configuration) &&
77
- !configurationLoading &&
78
- !templatesLoading ? (
79
- <EditConfiguration />
80
- ) : null
52
+ <Loader
53
+ loaders={
54
+ <>
55
+ <ConfigurationLoader />
56
+ <TemplatesLoader scope="ca" />
57
+ </>
58
+ }
59
+ />
81
60
  }
82
- />
61
+ >
62
+ <Route
63
+ index
64
+ element={
65
+ <Segment>{!templatesLoading && <Configuration />}</Segment>
66
+ }
67
+ />
68
+ <Route
69
+ path="edit"
70
+ element={
71
+ !_.isEmpty(configuration) &&
72
+ !configurationLoading &&
73
+ !templatesLoading ? (
74
+ <EditConfiguration />
75
+ ) : null
76
+ }
77
+ />
78
+ </Route>
83
79
  </Route>
84
- </Route>
85
- <Route path="*" element={null} />
86
- </Routes>
80
+ <Route path="*" element={null} />
81
+ </Routes>
82
+ </>
87
83
  );
88
84
  };
89
85