Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update codegen ui version and add processFile util function #12670

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/amplify-util-uibuilder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"dependencies": {
"@aws-amplify/amplify-cli-core": "4.0.5",
"@aws-amplify/amplify-prompts": "2.7.0",
"@aws-amplify/codegen-ui": "2.13.1",
"@aws-amplify/codegen-ui-react": "2.13.1",
"@aws-amplify/codegen-ui": "2.14.1",
"@aws-amplify/codegen-ui-react": "2.14.1",
"amplify-codegen": "^3.4.3",
"aws-sdk": "^2.1354.0",
"fs-extra": "^8.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('can create a ui builder component', () => {
it('calls the renderManager for utils file w/ validation, formatter, and fetchByPath helpers if there is a form', () => {
generateAmplifyUiBuilderUtilFile(context, { hasForms: true, hasViews: false });
expect(new codegenMock.StudioTemplateRendererManager().renderSchemaToTemplate).toBeCalledWith(
expect.arrayContaining(['validation', 'formatter', 'fetchByPath']),
expect.arrayContaining(['validation', 'formatter', 'fetchByPath', 'processFile']),
);
});
it('calls the renderManager for utils file w/ formatter helper if there is a view', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export const generateAmplifyUiBuilderUtilFile = (context: $TSContext, { hasForms
utils.add('validation');
utils.add('formatter');
utils.add('fetchByPath');
utils.add('processFile');
}

if (hasViews) {
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -194,21 +194,21 @@
dependencies:
"@aws-amplify/core" "4.3.11"

"@aws-amplify/codegen-ui-react@2.13.1":
version "2.13.1"
resolved "https://registry.npmjs.org/@aws-amplify/codegen-ui-react/-/codegen-ui-react-2.13.1.tgz#afaf78ed60d5bfae108d5d2d55f8b493fd5c2c99"
integrity sha512-69DpPuIrCfd6HWrrorH/0NnIn/XlBW7M/f6lXLn0NLnUWcn0sGIFIqt08HJccISt+ZlqmGLxAf+a8abZPW4Pmw==
"@aws-amplify/codegen-ui-react@2.14.1":
version "2.14.1"
resolved "https://registry.npmjs.org/@aws-amplify/codegen-ui-react/-/codegen-ui-react-2.14.1.tgz#ee3eac296c0136496b162a464495bd2e49e2d9d6"
integrity sha512-CoDOwfzRR75OpjTOGd8nbQS7L0x48F4Vlp/06c2r1VME/KoyGZaE2lxAZugPwFCcoEWNKfhHJyXj8SZGTWg2GA==
dependencies:
"@aws-amplify/codegen-ui" "2.13.1"
"@aws-amplify/codegen-ui" "2.14.1"
"@typescript/vfs" "~1.3.5"
typescript "<=4.5.0"
optionalDependencies:
prettier "2.3.2"

"@aws-amplify/codegen-ui@2.13.1":
version "2.13.1"
resolved "https://registry.npmjs.org/@aws-amplify/codegen-ui/-/codegen-ui-2.13.1.tgz#5ea375cee4b81c60fa3378a55f565055297021e3"
integrity sha512-E348akzfNse6vtYMWW1ZFJwmI5km4TUzr7zW+mhw3/7gqqCE5ARG2gy6voL9+w8oC+XAg0g7H3GstpxdLhCVKA==
"@aws-amplify/codegen-ui@2.14.1":
version "2.14.1"
resolved "https://registry.npmjs.org/@aws-amplify/codegen-ui/-/codegen-ui-2.14.1.tgz#79051747b0f9144bced3f31ea7ee9b8da504c4d3"
integrity sha512-RbjUg2H/iOY7r4G70YEw3S5DQW4QRT7ikO9gSA04ifn6zymNMtRn4rU7vICCa1rPLtXRvZIiz9oQ7+DUlF7Mcg==
dependencies:
change-case "^4.1.2"
yup "^0.32.11"
Expand Down