@aws/nx-plugin 0.32.0 → 0.32.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/package.json
CHANGED
|
@@ -241,23 +241,10 @@ import { I18nProvider } from '@cloudscape-design/components/i18n';
|
|
|
241
241
|
import messages from '@cloudscape-design/components/i18n/messages/all.en';
|
|
242
242
|
import { RouterProvider, createRouter } from '@tanstack/react-router';
|
|
243
243
|
import { routeTree } from './routeTree.gen';
|
|
244
|
-
import { useAuth } from 'react-oidc-context';
|
|
245
|
-
import { useRuntimeConfig } from './hooks/useRuntimeConfig';
|
|
246
244
|
|
|
247
245
|
import '@cloudscape-design/global-styles/index.css';
|
|
248
246
|
|
|
249
|
-
|
|
250
|
-
auth: ReturnType<typeof useAuth> | undefined;
|
|
251
|
-
runtimeConfig: ReturnType<typeof useRuntimeConfig> | undefined;
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
const router = createRouter({
|
|
255
|
-
routeTree,
|
|
256
|
-
context: {
|
|
257
|
-
auth: undefined,
|
|
258
|
-
runtimeConfig: undefined,
|
|
259
|
-
},
|
|
260
|
-
});
|
|
247
|
+
const router = createRouter({ routeTree });
|
|
261
248
|
|
|
262
249
|
// Register the router instance for type safety
|
|
263
250
|
declare module '@tanstack/react-router' {
|
|
@@ -267,9 +254,7 @@ declare module '@tanstack/react-router' {
|
|
|
267
254
|
}
|
|
268
255
|
|
|
269
256
|
const App = () => {
|
|
270
|
-
|
|
271
|
-
const runtimeConfig = useRuntimeConfig();
|
|
272
|
-
return <RouterProvider router={router} context={{ auth, runtimeConfig }} />;
|
|
257
|
+
return <RouterProvider router={router} />;
|
|
273
258
|
};
|
|
274
259
|
|
|
275
260
|
const root = document.getElementById('root');
|
|
@@ -551,23 +536,10 @@ import { I18nProvider } from '@cloudscape-design/components/i18n';
|
|
|
551
536
|
import messages from '@cloudscape-design/components/i18n/messages/all.en';
|
|
552
537
|
import { RouterProvider, createRouter } from '@tanstack/react-router';
|
|
553
538
|
import { routeTree } from './routeTree.gen';
|
|
554
|
-
import { useAuth } from 'react-oidc-context';
|
|
555
|
-
import { useRuntimeConfig } from './hooks/useRuntimeConfig';
|
|
556
539
|
|
|
557
540
|
import '@cloudscape-design/global-styles/index.css';
|
|
558
541
|
|
|
559
|
-
|
|
560
|
-
auth: ReturnType<typeof useAuth> | undefined;
|
|
561
|
-
runtimeConfig: ReturnType<typeof useRuntimeConfig> | undefined;
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
const router = createRouter({
|
|
565
|
-
routeTree,
|
|
566
|
-
context: {
|
|
567
|
-
auth: undefined,
|
|
568
|
-
runtimeConfig: undefined,
|
|
569
|
-
},
|
|
570
|
-
});
|
|
542
|
+
const router = createRouter({ routeTree });
|
|
571
543
|
|
|
572
544
|
// Register the router instance for type safety
|
|
573
545
|
declare module '@tanstack/react-router' {
|
|
@@ -577,9 +549,7 @@ declare module '@tanstack/react-router' {
|
|
|
577
549
|
}
|
|
578
550
|
|
|
579
551
|
const App = () => {
|
|
580
|
-
|
|
581
|
-
const runtimeConfig = useRuntimeConfig();
|
|
582
|
-
return <RouterProvider router={router} context={{ auth, runtimeConfig }} />;
|
|
552
|
+
return <RouterProvider router={router} />;
|
|
583
553
|
};
|
|
584
554
|
|
|
585
555
|
const root = document.getElementById('root');
|
|
@@ -4,23 +4,10 @@ import { I18nProvider } from '@cloudscape-design/components/i18n';
|
|
|
4
4
|
import messages from '@cloudscape-design/components/i18n/messages/all.en';
|
|
5
5
|
import { RouterProvider, createRouter } from '@tanstack/react-router';
|
|
6
6
|
import { routeTree } from './routeTree.gen';
|
|
7
|
-
import { useAuth } from 'react-oidc-context';
|
|
8
|
-
import { useRuntimeConfig } from './hooks/useRuntimeConfig';
|
|
9
7
|
|
|
10
8
|
import '@cloudscape-design/global-styles/index.css';
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
auth: ReturnType<typeof useAuth> | undefined;
|
|
14
|
-
runtimeConfig: ReturnType<typeof useRuntimeConfig> | undefined;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const router = createRouter({
|
|
18
|
-
routeTree,
|
|
19
|
-
context: {
|
|
20
|
-
auth: undefined,
|
|
21
|
-
runtimeConfig: undefined,
|
|
22
|
-
},
|
|
23
|
-
});
|
|
10
|
+
const router = createRouter({ routeTree });
|
|
24
11
|
|
|
25
12
|
// Register the router instance for type safety
|
|
26
13
|
declare module '@tanstack/react-router' {
|
|
@@ -30,9 +17,7 @@ declare module '@tanstack/react-router' {
|
|
|
30
17
|
}
|
|
31
18
|
|
|
32
19
|
const App = () => {
|
|
33
|
-
|
|
34
|
-
const runtimeConfig = useRuntimeConfig();
|
|
35
|
-
return <RouterProvider router={router} context={{ auth, runtimeConfig }} />;
|
|
20
|
+
return <RouterProvider router={router}/>;
|
|
36
21
|
};
|
|
37
22
|
|
|
38
23
|
const root = document.getElementById('root');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createRootRoute } from '@tanstack/react-router';
|
|
2
2
|
import AppLayout from '../components/AppLayout';
|
|
3
|
-
import { RouterProviderContextType } from '../main';
|
|
4
3
|
|
|
5
|
-
export const Route =
|
|
4
|
+
export const Route = createRootRoute({
|
|
6
5
|
component: () => <AppLayout />,
|
|
7
6
|
});
|