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