Skip to content

Commit 4fb3cb7

Browse files
JshhhhJustin Shih
andauthored
feat: add navigation and state mutation actions (#1105)
Co-authored-by: Justin Shih <[email protected]>
1 parent 85ecd5e commit 4fb3cb7

20 files changed

+14393
-18723
lines changed

packages/codegen-ui-react/lib/__tests__/__snapshots__/react-studio-template-renderer-helper.test.ts.snap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ exports[`react-studio-template-renderer-helper transpile fails to transpile with
1414

1515
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES3 1`] = `
1616
"import * as React from \\"react\\";
17-
import { EscapeHatchProps } from \\"./utils\\";
1817
import { CustomButtonProps } from \\"./CustomButton\\";
1918
import { ViewTestProps } from \\"./ViewTest\\";
19+
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
2020
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
2121
export declare type CustomParentAndChildrenOverridesProps = {
2222
CustomParentAndChildren?: ViewTestProps;
@@ -31,9 +31,9 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
3131
3232
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES5 1`] = `
3333
"import * as React from \\"react\\";
34-
import { EscapeHatchProps } from \\"./utils\\";
3534
import { CustomButtonProps } from \\"./CustomButton\\";
3635
import { ViewTestProps } from \\"./ViewTest\\";
36+
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
3737
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
3838
export declare type CustomParentAndChildrenOverridesProps = {
3939
CustomParentAndChildren?: ViewTestProps;
@@ -48,9 +48,9 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
4848
4949
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2015 1`] = `
5050
"import * as React from \\"react\\";
51-
import { EscapeHatchProps } from \\"./utils\\";
5251
import { CustomButtonProps } from \\"./CustomButton\\";
5352
import { ViewTestProps } from \\"./ViewTest\\";
53+
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
5454
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
5555
export declare type CustomParentAndChildrenOverridesProps = {
5656
CustomParentAndChildren?: ViewTestProps;
@@ -65,9 +65,9 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
6565
6666
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2016 1`] = `
6767
"import * as React from \\"react\\";
68-
import { EscapeHatchProps } from \\"./utils\\";
6968
import { CustomButtonProps } from \\"./CustomButton\\";
7069
import { ViewTestProps } from \\"./ViewTest\\";
70+
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
7171
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
7272
export declare type CustomParentAndChildrenOverridesProps = {
7373
CustomParentAndChildren?: ViewTestProps;
@@ -82,9 +82,9 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
8282
8383
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2017 1`] = `
8484
"import * as React from \\"react\\";
85-
import { EscapeHatchProps } from \\"./utils\\";
8685
import { CustomButtonProps } from \\"./CustomButton\\";
8786
import { ViewTestProps } from \\"./ViewTest\\";
87+
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
8888
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
8989
export declare type CustomParentAndChildrenOverridesProps = {
9090
CustomParentAndChildren?: ViewTestProps;
@@ -99,9 +99,9 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
9999
100100
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2018 1`] = `
101101
"import * as React from \\"react\\";
102-
import { EscapeHatchProps } from \\"./utils\\";
103102
import { CustomButtonProps } from \\"./CustomButton\\";
104103
import { ViewTestProps } from \\"./ViewTest\\";
104+
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
105105
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
106106
export declare type CustomParentAndChildrenOverridesProps = {
107107
CustomParentAndChildren?: ViewTestProps;
@@ -116,9 +116,9 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
116116
117117
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2019 1`] = `
118118
"import * as React from \\"react\\";
119-
import { EscapeHatchProps } from \\"./utils\\";
120119
import { CustomButtonProps } from \\"./CustomButton\\";
121120
import { ViewTestProps } from \\"./ViewTest\\";
121+
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
122122
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
123123
export declare type CustomParentAndChildrenOverridesProps = {
124124
CustomParentAndChildren?: ViewTestProps;
@@ -133,9 +133,9 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
133133
134134
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2020 1`] = `
135135
"import * as React from \\"react\\";
136-
import { EscapeHatchProps } from \\"./utils\\";
137136
import { CustomButtonProps } from \\"./CustomButton\\";
138137
import { ViewTestProps } from \\"./ViewTest\\";
138+
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
139139
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
140140
export declare type CustomParentAndChildrenOverridesProps = {
141141
CustomParentAndChildren?: ViewTestProps;
@@ -150,9 +150,9 @@ export default function CustomParentAndChildren(props: CustomParentAndChildrenPr
150150
151151
exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2021 1`] = `
152152
"import * as React from \\"react\\";
153-
import { EscapeHatchProps } from \\"./utils\\";
154153
import { CustomButtonProps } from \\"./CustomButton\\";
155154
import { ViewTestProps } from \\"./ViewTest\\";
155+
import { EscapeHatchProps } from \\"@aws-amplify/ui-react/internal\\";
156156
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
157157
export declare type CustomParentAndChildrenOverridesProps = {
158158
CustomParentAndChildren?: ViewTestProps;

0 commit comments

Comments
 (0)