@aws/nx-plugin 0.62.0 → 0.62.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/LICENSE-THIRD-PARTY +30 -3
- package/package.json +3 -4
- package/src/infra/app/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/mcp-server/schema.d.ts +7 -2
- package/src/mcp-server/schema.js +2 -2
- package/src/mcp-server/schema.js.map +1 -1
- package/src/mcp-server/tools/create-workspace-command.js +8 -2
- package/src/mcp-server/tools/create-workspace-command.js.map +1 -1
- package/src/mcp-server/tools/general-guidance.js +4 -1
- package/src/mcp-server/tools/general-guidance.js.map +1 -1
- package/src/mcp-server/tools/generator-guide.js +7 -4
- package/src/mcp-server/tools/generator-guide.js.map +1 -1
- package/src/mcp-server/tools/list-generators.js +4 -1
- package/src/mcp-server/tools/list-generators.js.map +1 -1
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/py/strands-agent/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/mcp-server/files/resources/sample-guidance.ts.template +1 -1
- package/src/ts/mcp-server/files/tools/add.ts.template +6 -4
- package/src/ts/mcp-server/generator.js +1 -5
- package/src/ts/mcp-server/generator.js.map +1 -1
- package/src/ts/nx-plugin/__snapshots__/generator.spec.ts.snap +35 -20
- package/src/ts/nx-plugin/files/mcp-server/schema.ts.template +1 -1
- package/src/ts/nx-plugin/files/mcp-server/tools/create-workspace-command.ts.template +7 -5
- package/src/ts/nx-plugin/files/mcp-server/tools/general-guidance.ts.template +5 -3
- package/src/ts/nx-plugin/files/mcp-server/tools/generator-guide.ts.template +9 -7
- package/src/ts/nx-plugin/files/mcp-server/tools/list-generators.ts.template +6 -4
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +883 -85
- package/src/ts/react-website/app/files/app/{src → cloudscape/src}/app.tsx.template +1 -1
- package/src/ts/react-website/app/files/app/cloudscape/src/components/alert.tsx.template +3 -0
- package/src/ts/react-website/app/files/app/cloudscape/src/components/spinner.tsx.template +3 -0
- package/src/ts/react-website/app/files/app/{src → common/src}/config.ts.template +1 -1
- package/src/ts/react-website/app/files/app/none/src/app.tsx.template +8 -0
- package/src/ts/react-website/app/files/app/none/src/components/AppLayout/index.tsx.template +124 -0
- package/src/ts/react-website/app/files/app/none/src/components/alert.tsx.template +14 -0
- package/src/ts/react-website/app/files/app/none/src/components/spinner.tsx.template +7 -0
- package/src/ts/react-website/app/files/app/none/src/main.tsx.template +31 -0
- package/src/ts/react-website/app/files/app/none/src/styles.css.template +201 -0
- package/src/ts/react-website/app/files/tanstack-router/common/src/routeTree.gen.ts.template +59 -0
- package/src/ts/react-website/app/files/tanstack-router/none/src/routes/index.tsx.template +14 -0
- package/src/ts/react-website/app/generator.d.ts +2 -0
- package/src/ts/react-website/app/generator.js +30 -16
- package/src/ts/react-website/app/generator.js.map +1 -1
- package/src/ts/react-website/app/schema.d.ts +2 -1
- package/src/ts/react-website/app/schema.json +22 -0
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.spec.ts.snap +348 -185
- package/src/ts/react-website/cognito-auth/files/app/components/CognitoAuth/index.tsx.template +15 -15
- package/src/ts/react-website/cognito-auth/generator.js +14 -40
- package/src/ts/react-website/cognito-auth/generator.js.map +1 -1
- package/src/ts/react-website/cognito-auth/utils.d.ts +7 -0
- package/src/ts/react-website/cognito-auth/utils.js +92 -0
- package/src/ts/react-website/cognito-auth/utils.js.map +1 -0
- package/src/ts/react-website/runtime-config/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/react-website/runtime-config/files/app/components/RuntimeConfig/index.tsx.template +1 -1
- package/src/utils/versions.d.ts +9 -10
- package/src/utils/versions.js +9 -12
- package/src/utils/versions.js.map +1 -1
- package/src/ts/react-website/app/files/tanstack-router/src/routeTree.gen.ts.template +0 -111
- /package/src/ts/react-website/app/files/app/{src → cloudscape/src}/components/AppLayout/index.tsx.template +0 -0
- /package/src/ts/react-website/app/files/app/{src → cloudscape/src}/hooks/useAppLayout.tsx.template +0 -0
- /package/src/ts/react-website/app/files/app/{src → cloudscape/src}/main.tsx.template +0 -0
- /package/src/ts/react-website/app/files/app/{src → cloudscape/src}/styles.css.template +0 -0
- /package/src/ts/react-website/app/files/app/{README.md.template → common/README.md.template} +0 -0
- /package/src/ts/react-website/app/files/tanstack-router/{src → cloudscape/src}/routes/index.tsx.template +0 -0
- /package/src/ts/react-website/app/files/tanstack-router/{src → common/src}/routes/__root.tsx.template +0 -0
|
@@ -19,9 +19,11 @@ const metrics_1 = require("../../../utils/metrics");
|
|
|
19
19
|
const website_1 = require("../../../utils/ast/website");
|
|
20
20
|
const identity_constructs_1 = require("../../../utils/identity-constructs/identity-constructs");
|
|
21
21
|
const iac_1 = require("../../../utils/iac");
|
|
22
|
+
const utils_1 = require("./utils");
|
|
22
23
|
exports.COGNITO_AUTH_GENERATOR_INFO = (0, nx_1.getGeneratorInfo)(__filename);
|
|
23
24
|
function tsReactWebsiteAuthGenerator(tree, options) {
|
|
24
25
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
var _a, _b;
|
|
25
27
|
const srcRoot = (0, nx_1.readProjectConfigurationUnqualified)(tree, options.project).sourceRoot;
|
|
26
28
|
if (tree.exists((0, devkit_1.joinPathFragments)(srcRoot, 'components/CognitoAuth/index.tsx'))) {
|
|
27
29
|
throw new Error(`This generator has already been run on ${options.project}.`);
|
|
@@ -52,6 +54,8 @@ function tsReactWebsiteAuthGenerator(tree, options) {
|
|
|
52
54
|
module: 'react-oidc-context',
|
|
53
55
|
contextProp: 'auth',
|
|
54
56
|
});
|
|
57
|
+
const projectConfiguration = (0, nx_1.readProjectConfigurationUnqualified)(tree, options.project);
|
|
58
|
+
const uxProvider = (_b = (_a = projectConfiguration.metadata) === null || _a === void 0 ? void 0 : _a.uxProvider) !== null && _b !== void 0 ? _b : 'Cloudscape';
|
|
55
59
|
(0, ast_1.replace)(tree, mainTsxPath, 'JsxElement[openingElement.tagName.name="RuntimeConfigProvider"]', (node) => (0, ast_1.createJsxElement)(node.openingElement, [(0, ast_1.createJsxElementFromIdentifier)('CognitoAuth', node.children)], node.closingElement));
|
|
56
60
|
// Update App Layout
|
|
57
61
|
const appLayoutTsxPath = (0, devkit_1.joinPathFragments)(srcRoot, 'components', 'AppLayout', 'index.tsx');
|
|
@@ -81,46 +85,16 @@ function tsReactWebsiteAuthGenerator(tree, options) {
|
|
|
81
85
|
return typescript_1.factory.updateVariableDeclaration(node, node.name, node.exclamationToken, node.type, newArrowFunction);
|
|
82
86
|
});
|
|
83
87
|
// TODO: update utils if they exist by appending to the array
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
typescript_1.factory.createParameterDeclaration(undefined, undefined, typescript_1.factory.createIdentifier('e'), undefined, undefined, undefined),
|
|
95
|
-
], undefined, typescript_1.factory.createToken(typescript_1.SyntaxKind.EqualsGreaterThanToken), typescript_1.factory.createBlock([
|
|
96
|
-
typescript_1.factory.createIfStatement(typescript_1.factory.createBinaryExpression(typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createIdentifier('e'), typescript_1.factory.createIdentifier('detail')), typescript_1.factory.createIdentifier('id')), typescript_1.factory.createToken(typescript_1.SyntaxKind.EqualsEqualsEqualsToken), typescript_1.factory.createStringLiteral('signout')), typescript_1.factory.createBlock([
|
|
97
|
-
typescript_1.factory.createExpressionStatement(typescript_1.factory.createCallExpression(typescript_1.factory.createIdentifier('removeUser'), undefined, [])),
|
|
98
|
-
typescript_1.factory.createExpressionStatement(typescript_1.factory.createCallExpression(typescript_1.factory.createIdentifier('signoutRedirect'), undefined, [
|
|
99
|
-
typescript_1.factory.createObjectLiteralExpression([
|
|
100
|
-
typescript_1.factory.createPropertyAssignment('post_logout_redirect_uri', typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createIdentifier('window'), typescript_1.factory.createIdentifier('location')), typescript_1.factory.createIdentifier('origin'))),
|
|
101
|
-
typescript_1.factory.createPropertyAssignment('extraQueryParams', typescript_1.factory.createObjectLiteralExpression([
|
|
102
|
-
typescript_1.factory.createPropertyAssignment('redirect_uri', typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createIdentifier('window'), typescript_1.factory.createIdentifier('location')), typescript_1.factory.createIdentifier('origin'))),
|
|
103
|
-
typescript_1.factory.createPropertyAssignment('response_type', typescript_1.factory.createStringLiteral('code')),
|
|
104
|
-
])),
|
|
105
|
-
]),
|
|
106
|
-
])),
|
|
107
|
-
typescript_1.factory.createExpressionStatement(typescript_1.factory.createCallExpression(typescript_1.factory.createIdentifier('clearStaleState'), undefined, [])),
|
|
108
|
-
], true)),
|
|
109
|
-
], true))),
|
|
110
|
-
typescript_1.factory.createPropertyAssignment('items', typescript_1.factory.createArrayLiteralExpression([
|
|
111
|
-
typescript_1.factory.createObjectLiteralExpression([
|
|
112
|
-
typescript_1.factory.createPropertyAssignment('id', typescript_1.factory.createStringLiteral('signout')),
|
|
113
|
-
typescript_1.factory.createPropertyAssignment('text', typescript_1.factory.createStringLiteral('Sign out')),
|
|
114
|
-
]),
|
|
115
|
-
])),
|
|
116
|
-
]),
|
|
117
|
-
], true)));
|
|
118
|
-
// Add the utilities attribute to existing attributes
|
|
119
|
-
return typescript_1.factory.createJsxSelfClosingElement(node.tagName, node.typeArguments, typescript_1.factory.createJsxAttributes([
|
|
120
|
-
...node.attributes.properties,
|
|
121
|
-
utilitiesAttribute,
|
|
122
|
-
]));
|
|
123
|
-
});
|
|
88
|
+
// Add a top-level navigation menu that shows the signed-in user's profile and actions
|
|
89
|
+
if (uxProvider === 'Cloudscape') {
|
|
90
|
+
(0, utils_1.addCloudscapeAuthMenu)(tree, appLayoutTsxPath);
|
|
91
|
+
}
|
|
92
|
+
else if (uxProvider === 'None') {
|
|
93
|
+
(0, utils_1.addNoneAuthMenu)(tree, appLayoutTsxPath);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
throw new Error(`Top-level navigation menu to show the signed-in user for uxProvider "${uxProvider}" is not implemented.`);
|
|
97
|
+
}
|
|
124
98
|
}
|
|
125
99
|
else {
|
|
126
100
|
console.info(`Skipping update to ${appLayoutTsxPath} as it does not exist.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/nx-plugin/src/ts/react-website/cognito-auth/generator.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/nx-plugin/src/ts/react-website/cognito-auth/generator.ts"],"names":[],"mappings":";;;AA+CA,kEA0MC;;AAzPD;;;GAGG;AACH,uCAOoB;AACpB,wEAA6E;AAE7E,2DAAqE;AACrE,2CAOoB;AACpB,sDAAuD;AACvD,4CAM4B;AAC5B,kDAA6D;AAC7D,0CAK2B;AAC3B,oDAAyE;AACzE,wDAAkF;AAClF,gGAA0F;AAC1F,4CAAwD;AACxD,mCAAiE;AAEpD,QAAA,2BAA2B,GACtC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAE/B,SAAsB,2BAA2B,CAC/C,IAAU,EACV,OAA0C;;;QAE1C,MAAM,OAAO,GAAG,IAAA,wCAAmC,EACjD,IAAI,EACJ,OAAO,CAAC,OAAO,CAChB,CAAC,UAAU,CAAC;QACb,IACE,IAAI,CAAC,MAAM,CAAC,IAAA,0BAAiB,EAAC,OAAO,EAAE,kCAAkC,CAAC,CAAC,EAC3E,CAAC;YACD,MAAM,IAAI,KAAK,CACb,0CAA0C,OAAO,CAAC,OAAO,GAAG,CAC7D,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YAC3B,MAA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AAM,CAAC;gBACN,MAAM,IAAI,KAAK,CACb,wEAAwE,UAAU,uBAAuB,CAC1G,CAAC;YACJ,CAAC;QACH,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,IAAI,CACV,sBAAsB,gBAAgB,wBAAwB,CAC/D,CAAC;QACJ,CAAC;QACD,wBAAwB;QAExB,IAAA,kCAA6B,EAC3B,IAAI,EACJ,OAAO,CAAC,OAAO,EACf,mCAA2B,CAC5B,CAAC;QAEF,MAAM,IAAA,yCAA+B,EAAC,IAAI,EAAE,CAAC,mCAA2B,CAAC,CAAC,CAAC;QAE3E,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;QACjC,OAAO,GAAG,EAAE;YACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;IACJ,CAAC;CAAA;AACD,kBAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { Tree } from '@nx/devkit';
|
|
6
|
+
export declare function addNoneAuthMenu(tree: Tree, appLayoutTsxPath: string): void;
|
|
7
|
+
export declare function addCloudscapeAuthMenu(tree: Tree, appLayoutTsxPath: string): void;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addNoneAuthMenu = addNoneAuthMenu;
|
|
4
|
+
exports.addCloudscapeAuthMenu = addCloudscapeAuthMenu;
|
|
5
|
+
const ast_1 = require("../../../utils/ast");
|
|
6
|
+
const typescript_1 = require("typescript");
|
|
7
|
+
// Adds a user greeting and sign-out button to the default AppLayout header when using the None UX provider.
|
|
8
|
+
function addNoneAuthMenu(tree, appLayoutTsxPath) {
|
|
9
|
+
function isAppHeaderInner(node) {
|
|
10
|
+
const opening = node.openingElement;
|
|
11
|
+
const classAttr = opening.attributes.properties.find((prop) => (0, typescript_1.isJsxAttribute)(prop) && prop.name.getText() === 'className');
|
|
12
|
+
const classValue = (classAttr === null || classAttr === void 0 ? void 0 : classAttr.initializer) && (0, typescript_1.isStringLiteral)(classAttr.initializer)
|
|
13
|
+
? classAttr.initializer.text
|
|
14
|
+
: undefined;
|
|
15
|
+
return classValue === 'app-header-inner';
|
|
16
|
+
}
|
|
17
|
+
(0, ast_1.replace)(tree, appLayoutTsxPath, 'JsxElement:has(JsxOpeningElement JsxAttribute[name.text="className"] StringLiteral[text="app-header-inner"])', (node) => {
|
|
18
|
+
if (!isAppHeaderInner(node)) {
|
|
19
|
+
return node;
|
|
20
|
+
}
|
|
21
|
+
const userGreeting = typescript_1.factory.createJsxElement(typescript_1.factory.createJsxOpeningElement(typescript_1.factory.createIdentifier('div'), undefined, typescript_1.factory.createJsxAttributes([
|
|
22
|
+
typescript_1.factory.createJsxAttribute(typescript_1.factory.createIdentifier('className'), typescript_1.factory.createStringLiteral('user-greeting')),
|
|
23
|
+
])), [
|
|
24
|
+
typescript_1.factory.createJsxElement(typescript_1.factory.createJsxOpeningElement(typescript_1.factory.createIdentifier('span'), undefined, typescript_1.factory.createJsxAttributes([])), [
|
|
25
|
+
typescript_1.factory.createJsxText('Hi, '),
|
|
26
|
+
typescript_1.factory.createJsxExpression(undefined, typescript_1.factory.createTemplateExpression(typescript_1.factory.createTemplateHead(''), [
|
|
27
|
+
typescript_1.factory.createTemplateSpan(typescript_1.factory.createElementAccessChain(typescript_1.factory.createPropertyAccessChain(typescript_1.factory.createIdentifier('user'), typescript_1.factory.createToken(typescript_1.SyntaxKind.QuestionDotToken), typescript_1.factory.createIdentifier('profile')), typescript_1.factory.createToken(typescript_1.SyntaxKind.QuestionDotToken), typescript_1.factory.createStringLiteral('cognito:username')), typescript_1.factory.createTemplateTail('')),
|
|
28
|
+
])),
|
|
29
|
+
], typescript_1.factory.createJsxClosingElement(typescript_1.factory.createIdentifier('span'))),
|
|
30
|
+
typescript_1.factory.createJsxElement(typescript_1.factory.createJsxOpeningElement(typescript_1.factory.createIdentifier('button'), undefined, typescript_1.factory.createJsxAttributes([
|
|
31
|
+
typescript_1.factory.createJsxAttribute(typescript_1.factory.createIdentifier('type'), typescript_1.factory.createStringLiteral('button')),
|
|
32
|
+
typescript_1.factory.createJsxAttribute(typescript_1.factory.createIdentifier('className'), typescript_1.factory.createStringLiteral('signout-link')),
|
|
33
|
+
typescript_1.factory.createJsxAttribute(typescript_1.factory.createIdentifier('onClick'), typescript_1.factory.createJsxExpression(undefined, typescript_1.factory.createArrowFunction(undefined, undefined, [], undefined, typescript_1.factory.createToken(typescript_1.SyntaxKind.EqualsGreaterThanToken), typescript_1.factory.createBlock([
|
|
34
|
+
typescript_1.factory.createExpressionStatement(typescript_1.factory.createCallExpression(typescript_1.factory.createIdentifier('removeUser'), undefined, [])),
|
|
35
|
+
typescript_1.factory.createExpressionStatement(typescript_1.factory.createCallExpression(typescript_1.factory.createIdentifier('signoutRedirect'), undefined, [
|
|
36
|
+
typescript_1.factory.createObjectLiteralExpression([
|
|
37
|
+
typescript_1.factory.createPropertyAssignment('post_logout_redirect_uri', typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createIdentifier('window'), typescript_1.factory.createIdentifier('location')), typescript_1.factory.createIdentifier('origin'))),
|
|
38
|
+
typescript_1.factory.createPropertyAssignment('extraQueryParams', typescript_1.factory.createObjectLiteralExpression([
|
|
39
|
+
typescript_1.factory.createPropertyAssignment('redirect_uri', typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createIdentifier('window'), typescript_1.factory.createIdentifier('location')), typescript_1.factory.createIdentifier('origin'))),
|
|
40
|
+
typescript_1.factory.createPropertyAssignment('response_type', typescript_1.factory.createStringLiteral('code')),
|
|
41
|
+
], true)),
|
|
42
|
+
], true),
|
|
43
|
+
])),
|
|
44
|
+
typescript_1.factory.createExpressionStatement(typescript_1.factory.createCallExpression(typescript_1.factory.createIdentifier('clearStaleState'), undefined, [])),
|
|
45
|
+
], true)))),
|
|
46
|
+
])), [typescript_1.factory.createJsxText('Sign out')], typescript_1.factory.createJsxClosingElement(typescript_1.factory.createIdentifier('button'))),
|
|
47
|
+
], typescript_1.factory.createJsxClosingElement(typescript_1.factory.createIdentifier('div')));
|
|
48
|
+
return typescript_1.factory.createJsxElement(node.openingElement, [...node.children, userGreeting], node.closingElement);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
// Adds a top navigation dropdown with sign-out when using the Cloudscape UX provider..
|
|
52
|
+
function addCloudscapeAuthMenu(tree, appLayoutTsxPath) {
|
|
53
|
+
(0, ast_1.replace)(tree, appLayoutTsxPath, 'JsxSelfClosingElement[tagName.text="TopNavigation"]', (node) => {
|
|
54
|
+
const utilitiesAttribute = typescript_1.factory.createJsxAttribute(typescript_1.factory.createIdentifier('utilities'), typescript_1.factory.createJsxExpression(undefined, typescript_1.factory.createArrayLiteralExpression([
|
|
55
|
+
typescript_1.factory.createObjectLiteralExpression([
|
|
56
|
+
typescript_1.factory.createPropertyAssignment('type', typescript_1.factory.createStringLiteral('menu-dropdown')),
|
|
57
|
+
typescript_1.factory.createPropertyAssignment('text', typescript_1.factory.createTemplateExpression(typescript_1.factory.createTemplateHead(''), [
|
|
58
|
+
typescript_1.factory.createTemplateSpan(typescript_1.factory.createElementAccessChain(typescript_1.factory.createPropertyAccessChain(typescript_1.factory.createIdentifier('user'), typescript_1.factory.createToken(typescript_1.SyntaxKind.QuestionDotToken), typescript_1.factory.createIdentifier('profile')), typescript_1.factory.createToken(typescript_1.SyntaxKind.QuestionDotToken), typescript_1.factory.createStringLiteral('cognito:username')), typescript_1.factory.createTemplateTail('')),
|
|
59
|
+
])),
|
|
60
|
+
typescript_1.factory.createPropertyAssignment('iconName', typescript_1.factory.createStringLiteral('user-profile-active')),
|
|
61
|
+
typescript_1.factory.createPropertyAssignment('onItemClick', typescript_1.factory.createArrowFunction(undefined, undefined, [
|
|
62
|
+
typescript_1.factory.createParameterDeclaration(undefined, undefined, typescript_1.factory.createIdentifier('e'), undefined, undefined, undefined),
|
|
63
|
+
], undefined, typescript_1.factory.createToken(typescript_1.SyntaxKind.EqualsGreaterThanToken), typescript_1.factory.createBlock([
|
|
64
|
+
typescript_1.factory.createIfStatement(typescript_1.factory.createBinaryExpression(typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createIdentifier('e'), typescript_1.factory.createIdentifier('detail')), typescript_1.factory.createIdentifier('id')), typescript_1.factory.createToken(typescript_1.SyntaxKind.EqualsEqualsEqualsToken), typescript_1.factory.createStringLiteral('signout')), typescript_1.factory.createBlock([
|
|
65
|
+
typescript_1.factory.createExpressionStatement(typescript_1.factory.createCallExpression(typescript_1.factory.createIdentifier('removeUser'), undefined, [])),
|
|
66
|
+
typescript_1.factory.createExpressionStatement(typescript_1.factory.createCallExpression(typescript_1.factory.createIdentifier('signoutRedirect'), undefined, [
|
|
67
|
+
typescript_1.factory.createObjectLiteralExpression([
|
|
68
|
+
typescript_1.factory.createPropertyAssignment('post_logout_redirect_uri', typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createIdentifier('window'), typescript_1.factory.createIdentifier('location')), typescript_1.factory.createIdentifier('origin'))),
|
|
69
|
+
typescript_1.factory.createPropertyAssignment('extraQueryParams', typescript_1.factory.createObjectLiteralExpression([
|
|
70
|
+
typescript_1.factory.createPropertyAssignment('redirect_uri', typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createPropertyAccessExpression(typescript_1.factory.createIdentifier('window'), typescript_1.factory.createIdentifier('location')), typescript_1.factory.createIdentifier('origin'))),
|
|
71
|
+
typescript_1.factory.createPropertyAssignment('response_type', typescript_1.factory.createStringLiteral('code')),
|
|
72
|
+
])),
|
|
73
|
+
]),
|
|
74
|
+
])),
|
|
75
|
+
typescript_1.factory.createExpressionStatement(typescript_1.factory.createCallExpression(typescript_1.factory.createIdentifier('clearStaleState'), undefined, [])),
|
|
76
|
+
], true)),
|
|
77
|
+
], true))),
|
|
78
|
+
typescript_1.factory.createPropertyAssignment('items', typescript_1.factory.createArrayLiteralExpression([
|
|
79
|
+
typescript_1.factory.createObjectLiteralExpression([
|
|
80
|
+
typescript_1.factory.createPropertyAssignment('id', typescript_1.factory.createStringLiteral('signout')),
|
|
81
|
+
typescript_1.factory.createPropertyAssignment('text', typescript_1.factory.createStringLiteral('Sign out')),
|
|
82
|
+
]),
|
|
83
|
+
])),
|
|
84
|
+
]),
|
|
85
|
+
], true)));
|
|
86
|
+
return typescript_1.factory.createJsxSelfClosingElement(node.tagName, node.typeArguments, typescript_1.factory.createJsxAttributes([
|
|
87
|
+
...node.attributes.properties,
|
|
88
|
+
utilitiesAttribute,
|
|
89
|
+
]));
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../../packages/nx-plugin/src/ts/react-website/cognito-auth/utils.ts"],"names":[],"mappings":";;AAiBA,0CAkLC;AAGD,sDAiLC;AAlXD,4CAA6C;AAC7C,2CAQoB;AAEpB,4GAA4G;AAC5G,SAAgB,eAAe,CAAC,IAAU,EAAE,gBAAwB;IAClE,SAAS,gBAAgB,CAAC,IAAgB;QACxC,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC;QACpC,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAClD,CAAC,IAAI,EAAwB,EAAE,CAC7B,IAAA,2BAAc,EAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,WAAW,CAC9D,CAAC;QAEF,MAAM,UAAU,GACd,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,K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B;SACnB,CAAC,CACH,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
3
|
exports[`runtime-config generator > should generate runtime config files > runtime-config-component.tsx 1`] = `
|
|
4
|
-
"import { Spinner } from '
|
|
4
|
+
"import { Spinner } from '../spinner';
|
|
5
5
|
import React, {
|
|
6
6
|
createContext,
|
|
7
7
|
PropsWithChildren,
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -22,15 +22,15 @@ export declare const TS_VERSIONS: {
|
|
|
22
22
|
readonly '@nx/devkit': "22.1.3";
|
|
23
23
|
readonly '@nx/react': "22.1.3";
|
|
24
24
|
readonly 'create-nx-workspace': "22.1.3";
|
|
25
|
-
readonly '@modelcontextprotocol/sdk': "1.
|
|
25
|
+
readonly '@modelcontextprotocol/sdk': "1.24.0";
|
|
26
26
|
readonly '@modelcontextprotocol/inspector': "0.17.2";
|
|
27
|
-
readonly '@tanstack/react-router': "1.139.
|
|
28
|
-
readonly '@tanstack/router-plugin': "1.139.
|
|
29
|
-
readonly '@tanstack/router-generator': "1.139.
|
|
27
|
+
readonly '@tanstack/react-router': "1.139.7";
|
|
28
|
+
readonly '@tanstack/router-plugin': "1.139.7";
|
|
29
|
+
readonly '@tanstack/router-generator': "1.139.7";
|
|
30
30
|
readonly '@tanstack/virtual-file-routes': "1.139.0";
|
|
31
31
|
readonly '@tanstack/router-utils': "1.139.0";
|
|
32
32
|
readonly '@cloudscape-design/board-components': "3.0.130";
|
|
33
|
-
readonly '@cloudscape-design/components': "3.0.
|
|
33
|
+
readonly '@cloudscape-design/components': "3.0.1144";
|
|
34
34
|
readonly '@cloudscape-design/global-styles': "1.0.49";
|
|
35
35
|
readonly '@tanstack/react-query': "5.90.11";
|
|
36
36
|
readonly '@tanstack/react-query-devtools': "5.91.1";
|
|
@@ -44,7 +44,7 @@ export declare const TS_VERSIONS: {
|
|
|
44
44
|
readonly '@smithy/types': "4.9.0";
|
|
45
45
|
readonly aws4fetch: "1.0.20";
|
|
46
46
|
readonly 'aws-cdk': "2.1033.0";
|
|
47
|
-
readonly 'aws-cdk-lib': "2.
|
|
47
|
+
readonly 'aws-cdk-lib': "2.230.0";
|
|
48
48
|
readonly '@aws-cdk/aws-bedrock-agentcore-alpha': "2.229.1-alpha.0";
|
|
49
49
|
readonly 'aws-xray-sdk-core': "3.12.0";
|
|
50
50
|
readonly constructs: "10.4.3";
|
|
@@ -63,21 +63,20 @@ export declare const TS_VERSIONS: {
|
|
|
63
63
|
readonly react: "19.2.0";
|
|
64
64
|
readonly 'react-dom': "19.2.0";
|
|
65
65
|
readonly rimraf: "6.1.2";
|
|
66
|
-
readonly rolldown: "1.0.0-beta.
|
|
66
|
+
readonly rolldown: "1.0.0-beta.52";
|
|
67
67
|
readonly 'source-map-support': "0.5.21";
|
|
68
68
|
readonly tailwindcss: "4.1.17";
|
|
69
69
|
readonly '@tailwindcss/vite': "4.1.17";
|
|
70
70
|
readonly tsx: "4.20.6";
|
|
71
71
|
readonly 'vite-tsconfig-paths': "5.1.4";
|
|
72
72
|
readonly zod: "4.1.13";
|
|
73
|
-
readonly 'zod-v3': "npm:zod@^3";
|
|
74
73
|
};
|
|
75
74
|
export type ITsDepVersion = keyof typeof TS_VERSIONS;
|
|
76
75
|
/**
|
|
77
76
|
* Add versions to the given dependencies
|
|
78
77
|
*/
|
|
79
78
|
export declare const withVersions: (deps: ITsDepVersion[]) => {
|
|
80
|
-
[k: string]: "3.940.0" | "1.0.0-alpha.10" | "2.29.0" | "6.4.5" | "21.2.0" | "9.0.1" | "22.1.3" | "1.
|
|
79
|
+
[k: string]: "3.940.0" | "1.0.0-alpha.10" | "2.29.0" | "6.4.5" | "21.2.0" | "9.0.1" | "22.1.3" | "1.24.0" | "0.17.2" | "1.139.7" | "1.139.0" | "3.0.130" | "3.0.1144" | "1.0.49" | "5.90.11" | "5.91.1" | "11.7.2" | "22.19.1" | "8.10.159" | "2.8.19" | "5.0.5" | "4.9.0" | "1.0.20" | "2.1033.0" | "2.230.0" | "2.229.1-alpha.0" | "3.12.0" | "10.4.3" | "2.8.5" | "3.5.0" | "0.27.0" | "5.5.4" | "5.1.0" | "2.4.1" | "4.0.0" | "2.0.0" | "19.1.2" | "3.4.1" | "3.6.2" | "3.3.0" | "19.2.0" | "6.1.2" | "1.0.0-beta.52" | "0.5.21" | "4.1.17" | "4.20.6" | "5.1.4" | "4.1.13";
|
|
81
80
|
};
|
|
82
81
|
/**
|
|
83
82
|
* Versions for Python dependencies added by generators
|
|
@@ -88,7 +87,7 @@ export declare const PY_VERSIONS: {
|
|
|
88
87
|
readonly 'aws-lambda-powertools[parser]': "==3.23.0";
|
|
89
88
|
readonly 'aws-opentelemetry-distro': "==0.14.0";
|
|
90
89
|
readonly 'bedrock-agentcore': "==0.1.7";
|
|
91
|
-
readonly boto3: "==1.
|
|
90
|
+
readonly boto3: "==1.42.0";
|
|
92
91
|
readonly checkov: "==3.2.495";
|
|
93
92
|
readonly fastapi: "==0.123.0";
|
|
94
93
|
readonly 'fastapi[standard]': "==0.123.0";
|
package/src/utils/versions.js
CHANGED
|
@@ -25,15 +25,15 @@ exports.TS_VERSIONS = {
|
|
|
25
25
|
'@nx/devkit': '22.1.3',
|
|
26
26
|
'@nx/react': '22.1.3',
|
|
27
27
|
'create-nx-workspace': '22.1.3',
|
|
28
|
-
'@modelcontextprotocol/sdk': '1.
|
|
28
|
+
'@modelcontextprotocol/sdk': '1.24.0',
|
|
29
29
|
'@modelcontextprotocol/inspector': '0.17.2',
|
|
30
|
-
'@tanstack/react-router': '1.139.
|
|
31
|
-
'@tanstack/router-plugin': '1.139.
|
|
32
|
-
'@tanstack/router-generator': '1.139.
|
|
30
|
+
'@tanstack/react-router': '1.139.7',
|
|
31
|
+
'@tanstack/router-plugin': '1.139.7',
|
|
32
|
+
'@tanstack/router-generator': '1.139.7',
|
|
33
33
|
'@tanstack/virtual-file-routes': '1.139.0',
|
|
34
34
|
'@tanstack/router-utils': '1.139.0',
|
|
35
35
|
'@cloudscape-design/board-components': '3.0.130',
|
|
36
|
-
'@cloudscape-design/components': '3.0.
|
|
36
|
+
'@cloudscape-design/components': '3.0.1144',
|
|
37
37
|
'@cloudscape-design/global-styles': '1.0.49',
|
|
38
38
|
'@tanstack/react-query': '5.90.11',
|
|
39
39
|
'@tanstack/react-query-devtools': '5.91.1',
|
|
@@ -47,7 +47,7 @@ exports.TS_VERSIONS = {
|
|
|
47
47
|
'@smithy/types': '4.9.0',
|
|
48
48
|
aws4fetch: '1.0.20',
|
|
49
49
|
'aws-cdk': '2.1033.0',
|
|
50
|
-
'aws-cdk-lib': '2.
|
|
50
|
+
'aws-cdk-lib': '2.230.0',
|
|
51
51
|
'@aws-cdk/aws-bedrock-agentcore-alpha': '2.229.1-alpha.0',
|
|
52
52
|
'aws-xray-sdk-core': '3.12.0',
|
|
53
53
|
constructs: '10.4.3',
|
|
@@ -66,16 +66,13 @@ exports.TS_VERSIONS = {
|
|
|
66
66
|
react: '19.2.0',
|
|
67
67
|
'react-dom': '19.2.0',
|
|
68
68
|
rimraf: '6.1.2',
|
|
69
|
-
rolldown: '1.0.0-beta.
|
|
69
|
+
rolldown: '1.0.0-beta.52',
|
|
70
70
|
'source-map-support': '0.5.21',
|
|
71
71
|
tailwindcss: '4.1.17',
|
|
72
72
|
'@tailwindcss/vite': '4.1.17',
|
|
73
|
-
tsx: '4.20.6',
|
|
73
|
+
tsx: '4.20.6',
|
|
74
74
|
'vite-tsconfig-paths': '5.1.4',
|
|
75
75
|
zod: '4.1.13',
|
|
76
|
-
// TODO: remove zod-v3 when @modelcontextprotocol/sdk upgrades to Zod v4 or standard schema
|
|
77
|
-
// https://github.com/modelcontextprotocol/typescript-sdk/issues/164
|
|
78
|
-
'zod-v3': 'npm:zod@^3',
|
|
79
76
|
};
|
|
80
77
|
/**
|
|
81
78
|
* Add versions to the given dependencies
|
|
@@ -91,7 +88,7 @@ exports.PY_VERSIONS = {
|
|
|
91
88
|
'aws-lambda-powertools[parser]': '==3.23.0',
|
|
92
89
|
'aws-opentelemetry-distro': '==0.14.0',
|
|
93
90
|
'bedrock-agentcore': '==0.1.7',
|
|
94
|
-
boto3: '==1.
|
|
91
|
+
boto3: '==1.42.0',
|
|
95
92
|
checkov: '==3.2.495',
|
|
96
93
|
fastapi: '==0.123.0',
|
|
97
94
|
'fastapi[standard]': '==0.123.0',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/utils/versions.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,kCAAkC,EAAE,SAAS;IAC7C,0BAA0B,EAAE,SAAS;IACrC,+BAA+B,EAAE,SAAS;IAC1C,+CAA+C,EAAE,SAAS;IAC1D,+BAA+B,EAAE,gBAAgB;IACjD,yBAAyB,EAAE,gBAAgB;IAC3C,+BAA+B,EAAE,QAAQ;IACzC,gCAAgC,EAAE,QAAQ;IAC1C,+BAA+B,EAAE,QAAQ;IACzC,+BAA+B,EAAE,QAAQ;IACzC,aAAa,EAAE,OAAO;IACtB,cAAc,EAAE,QAAQ;IACxB,sBAAsB,EAAE,OAAO;IAC/B,YAAY,EAAE,QAAQ;IACtB,WAAW,EAAE,QAAQ;IACrB,qBAAqB,EAAE,QAAQ;IAC/B,2BAA2B,EAAE,QAAQ;IACrC,iCAAiC,EAAE,QAAQ;IAC3C,wBAAwB,EAAE,SAAS;IACnC,yBAAyB,EAAE,SAAS;IACpC,4BAA4B,EAAE,SAAS;IACvC,+BAA+B,EAAE,SAAS;IAC1C,wBAAwB,EAAE,SAAS;IACnC,qCAAqC,EAAE,SAAS;IAChD,+BAA+B,EAAE,UAAU;IAC3C,kCAAkC,EAAE,QAAQ;IAC5C,uBAAuB,EAAE,SAAS;IAClC,gCAAgC,EAAE,QAAQ;IAC1C,4BAA4B,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
|
-
// noinspection JSUnusedGlobalSymbols
|
|
6
|
-
|
|
7
|
-
// This file was automatically generated by TanStack Router.
|
|
8
|
-
// You should NOT make any changes in this file as it will be overwritten.
|
|
9
|
-
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
10
|
-
|
|
11
|
-
// Import Routes
|
|
12
|
-
|
|
13
|
-
import { Route as rootRoute } from './routes/__root'
|
|
14
|
-
import { Route as IndexImport } from './routes/index'
|
|
15
|
-
import { Route as WelcomeIndexImport } from './routes/welcome/index'
|
|
16
|
-
|
|
17
|
-
// Create/Update Routes
|
|
18
|
-
|
|
19
|
-
const IndexRoute = IndexImport.update({
|
|
20
|
-
id: '/',
|
|
21
|
-
path: '/',
|
|
22
|
-
getParentRoute: () => rootRoute,
|
|
23
|
-
} as any)
|
|
24
|
-
|
|
25
|
-
const WelcomeIndexRoute = WelcomeIndexImport.update({
|
|
26
|
-
id: '/welcome/',
|
|
27
|
-
path: '/welcome/',
|
|
28
|
-
getParentRoute: () => rootRoute,
|
|
29
|
-
} as any)
|
|
30
|
-
|
|
31
|
-
// Populate the FileRoutesByPath interface
|
|
32
|
-
|
|
33
|
-
declare module '@tanstack/react-router' {
|
|
34
|
-
interface FileRoutesByPath {
|
|
35
|
-
'/': {
|
|
36
|
-
id: '/'
|
|
37
|
-
path: '/'
|
|
38
|
-
fullPath: '/'
|
|
39
|
-
preLoaderRoute: typeof IndexImport
|
|
40
|
-
parentRoute: typeof rootRoute
|
|
41
|
-
}
|
|
42
|
-
'/welcome/': {
|
|
43
|
-
id: '/welcome/'
|
|
44
|
-
path: '/welcome'
|
|
45
|
-
fullPath: '/welcome'
|
|
46
|
-
preLoaderRoute: typeof WelcomeIndexImport
|
|
47
|
-
parentRoute: typeof rootRoute
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Create and export the route tree
|
|
53
|
-
|
|
54
|
-
export interface FileRoutesByFullPath {
|
|
55
|
-
'/': typeof IndexRoute
|
|
56
|
-
'/welcome': typeof WelcomeIndexRoute
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface FileRoutesByTo {
|
|
60
|
-
'/': typeof IndexRoute
|
|
61
|
-
'/welcome': typeof WelcomeIndexRoute
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface FileRoutesById {
|
|
65
|
-
__root__: typeof rootRoute
|
|
66
|
-
'/': typeof IndexRoute
|
|
67
|
-
'/welcome/': typeof WelcomeIndexRoute
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface FileRouteTypes {
|
|
71
|
-
fileRoutesByFullPath: FileRoutesByFullPath
|
|
72
|
-
fullPaths: '/' | '/welcome'
|
|
73
|
-
fileRoutesByTo: FileRoutesByTo
|
|
74
|
-
to: '/' | '/welcome'
|
|
75
|
-
id: '__root__' | '/' | '/welcome/'
|
|
76
|
-
fileRoutesById: FileRoutesById
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface RootRouteChildren {
|
|
80
|
-
IndexRoute: typeof IndexRoute
|
|
81
|
-
WelcomeIndexRoute: typeof WelcomeIndexRoute
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const rootRouteChildren: RootRouteChildren = {
|
|
85
|
-
IndexRoute: IndexRoute,
|
|
86
|
-
WelcomeIndexRoute: WelcomeIndexRoute,
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export const routeTree = rootRoute
|
|
90
|
-
._addFileChildren(rootRouteChildren)
|
|
91
|
-
._addFileTypes<FileRouteTypes>()
|
|
92
|
-
|
|
93
|
-
/* ROUTE_MANIFEST_START
|
|
94
|
-
{
|
|
95
|
-
"routes": {
|
|
96
|
-
"__root__": {
|
|
97
|
-
"filePath": "__root.tsx",
|
|
98
|
-
"children": [
|
|
99
|
-
"/",
|
|
100
|
-
"/welcome/"
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
"/": {
|
|
104
|
-
"filePath": "index.tsx"
|
|
105
|
-
},
|
|
106
|
-
"/welcome/": {
|
|
107
|
-
"filePath": "welcome/index.tsx"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
ROUTE_MANIFEST_END */
|
|
File without changes
|
/package/src/ts/react-website/app/files/app/{src → cloudscape/src}/hooks/useAppLayout.tsx.template
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/ts/react-website/app/files/app/{README.md.template → common/README.md.template}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|