@aws-sdk/client-amplifyuibuilder 3.67.0 → 3.74.0
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.74.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.73.0...v3.74.0) (2022-04-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-amplifyuibuilder
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.72.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.71.0...v3.72.0) (2022-04-15)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-amplifyuibuilder
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.68.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.67.0...v3.68.0) (2022-04-11)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **client-amplifyuibuilder:** In this release, we have added the ability to bind events to component level actions. ([b7a8349](https://github.com/aws/aws-sdk-js-v3/commit/b7a83498370892c2eaa56c7757d22a53b16b8162))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.67.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.66.0...v3.67.0) (2022-04-08)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-amplifyuibuilder
|
|
@@ -1367,6 +1367,7 @@ const serializeAws_restJson1ComponentChild = (input, context) => {
|
|
|
1367
1367
|
input.properties !== null && {
|
|
1368
1368
|
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1369
1369
|
}),
|
|
1370
|
+
...(input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId }),
|
|
1370
1371
|
};
|
|
1371
1372
|
};
|
|
1372
1373
|
const serializeAws_restJson1ComponentChildList = (input, context) => {
|
|
@@ -1417,6 +1418,7 @@ const serializeAws_restJson1ComponentDataConfiguration = (input, context) => {
|
|
|
1417
1418
|
const serializeAws_restJson1ComponentEvent = (input, context) => {
|
|
1418
1419
|
return {
|
|
1419
1420
|
...(input.action !== undefined && input.action !== null && { action: input.action }),
|
|
1421
|
+
...(input.bindingEvent !== undefined && input.bindingEvent !== null && { bindingEvent: input.bindingEvent }),
|
|
1420
1422
|
...(input.parameters !== undefined &&
|
|
1421
1423
|
input.parameters !== null && { parameters: serializeAws_restJson1ActionParameters(input.parameters, context) }),
|
|
1422
1424
|
};
|
|
@@ -1853,6 +1855,7 @@ const deserializeAws_restJson1ComponentChild = (output, context) => {
|
|
|
1853
1855
|
properties: output.properties !== undefined && output.properties !== null
|
|
1854
1856
|
? deserializeAws_restJson1ComponentProperties(output.properties, context)
|
|
1855
1857
|
: undefined,
|
|
1858
|
+
sourceId: (0, smithy_client_1.expectString)(output.sourceId),
|
|
1856
1859
|
};
|
|
1857
1860
|
};
|
|
1858
1861
|
const deserializeAws_restJson1ComponentChildList = (output, context) => {
|
|
@@ -1909,6 +1912,7 @@ const deserializeAws_restJson1ComponentDataConfiguration = (output, context) =>
|
|
|
1909
1912
|
const deserializeAws_restJson1ComponentEvent = (output, context) => {
|
|
1910
1913
|
return {
|
|
1911
1914
|
action: (0, smithy_client_1.expectString)(output.action),
|
|
1915
|
+
bindingEvent: (0, smithy_client_1.expectString)(output.bindingEvent),
|
|
1912
1916
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
1913
1917
|
? deserializeAws_restJson1ActionParameters(output.parameters, context)
|
|
1914
1918
|
: undefined,
|
|
@@ -1661,12 +1661,12 @@ var serializeAws_restJson1ComponentBindingPropertiesValueProperties = function (
|
|
|
1661
1661
|
input.predicates !== null && { predicates: serializeAws_restJson1PredicateList(input.predicates, context) })), (input.userAttribute !== undefined && input.userAttribute !== null && { userAttribute: input.userAttribute }));
|
|
1662
1662
|
};
|
|
1663
1663
|
var serializeAws_restJson1ComponentChild = function (input, context) {
|
|
1664
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.children !== undefined &&
|
|
1664
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.children !== undefined &&
|
|
1665
1665
|
input.children !== null && { children: serializeAws_restJson1ComponentChildList(input.children, context) })), (input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType })), (input.events !== undefined &&
|
|
1666
1666
|
input.events !== null && { events: serializeAws_restJson1ComponentEvents(input.events, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.properties !== undefined &&
|
|
1667
1667
|
input.properties !== null && {
|
|
1668
1668
|
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1669
|
-
}));
|
|
1669
|
+
})), (input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId }));
|
|
1670
1670
|
};
|
|
1671
1671
|
var serializeAws_restJson1ComponentChildList = function (input, context) {
|
|
1672
1672
|
return input
|
|
@@ -1700,7 +1700,7 @@ var serializeAws_restJson1ComponentDataConfiguration = function (input, context)
|
|
|
1700
1700
|
input.sort !== null && { sort: serializeAws_restJson1SortPropertyList(input.sort, context) }));
|
|
1701
1701
|
};
|
|
1702
1702
|
var serializeAws_restJson1ComponentEvent = function (input, context) {
|
|
1703
|
-
return __assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), (input.parameters !== undefined &&
|
|
1703
|
+
return __assign(__assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), (input.bindingEvent !== undefined && input.bindingEvent !== null && { bindingEvent: input.bindingEvent })), (input.parameters !== undefined &&
|
|
1704
1704
|
input.parameters !== null && { parameters: serializeAws_restJson1ActionParameters(input.parameters, context) }));
|
|
1705
1705
|
};
|
|
1706
1706
|
var serializeAws_restJson1ComponentEvents = function (input, context) {
|
|
@@ -2042,6 +2042,7 @@ var deserializeAws_restJson1ComponentChild = function (output, context) {
|
|
|
2042
2042
|
properties: output.properties !== undefined && output.properties !== null
|
|
2043
2043
|
? deserializeAws_restJson1ComponentProperties(output.properties, context)
|
|
2044
2044
|
: undefined,
|
|
2045
|
+
sourceId: __expectString(output.sourceId),
|
|
2045
2046
|
};
|
|
2046
2047
|
};
|
|
2047
2048
|
var deserializeAws_restJson1ComponentChildList = function (output, context) {
|
|
@@ -2097,6 +2098,7 @@ var deserializeAws_restJson1ComponentDataConfiguration = function (output, conte
|
|
|
2097
2098
|
var deserializeAws_restJson1ComponentEvent = function (output, context) {
|
|
2098
2099
|
return {
|
|
2099
2100
|
action: __expectString(output.action),
|
|
2101
|
+
bindingEvent: __expectString(output.bindingEvent),
|
|
2100
2102
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
2101
2103
|
? deserializeAws_restJson1ActionParameters(output.parameters, context)
|
|
2102
2104
|
: undefined,
|
|
@@ -874,8 +874,8 @@ export declare namespace UpdateThemeData {
|
|
|
874
874
|
const filterSensitiveLog: (obj: UpdateThemeData) => any;
|
|
875
875
|
}
|
|
876
876
|
/**
|
|
877
|
-
* <p>Represents the state configuration when an action modifies a property of another
|
|
878
|
-
*
|
|
877
|
+
* <p>Represents the state configuration when an action modifies a property of another element
|
|
878
|
+
* within the same component.</p>
|
|
879
879
|
*/
|
|
880
880
|
export interface MutationActionSetStateParameter {
|
|
881
881
|
/**
|
|
@@ -1045,14 +1045,15 @@ export declare namespace ExportThemesResponse {
|
|
|
1045
1045
|
const filterSensitiveLog: (obj: ExportThemesResponse) => any;
|
|
1046
1046
|
}
|
|
1047
1047
|
/**
|
|
1048
|
-
* <p>Represents the event action configuration for an element of a <code>Component</code>
|
|
1049
|
-
*
|
|
1048
|
+
* <p>Represents the event action configuration for an element of a <code>Component</code> or
|
|
1049
|
+
* <code>ComponentChild</code>. Use for the workflow feature in Amplify Studio
|
|
1050
1050
|
* that allows you to bind events and actions to components. <code>ActionParameters</code>
|
|
1051
1051
|
* defines the action that is performed when an event occurs on the component.</p>
|
|
1052
1052
|
*/
|
|
1053
1053
|
export interface ActionParameters {
|
|
1054
1054
|
/**
|
|
1055
|
-
* <p>The type of navigation action. Valid values are <code>url</code> and <code>anchor</code>.
|
|
1055
|
+
* <p>The type of navigation action. Valid values are <code>url</code> and <code>anchor</code>.
|
|
1056
|
+
* This value is required for a navigation action.</p>
|
|
1056
1057
|
*/
|
|
1057
1058
|
type?: ComponentProperty;
|
|
1058
1059
|
/**
|
|
@@ -1060,7 +1061,8 @@ export interface ActionParameters {
|
|
|
1060
1061
|
*/
|
|
1061
1062
|
url?: ComponentProperty;
|
|
1062
1063
|
/**
|
|
1063
|
-
* <p>The HTML anchor link to the location to open. Specify this value for a navigation
|
|
1064
|
+
* <p>The HTML anchor link to the location to open. Specify this value for a navigation
|
|
1065
|
+
* action.</p>
|
|
1064
1066
|
*/
|
|
1065
1067
|
anchor?: ComponentProperty;
|
|
1066
1068
|
/**
|
|
@@ -1068,12 +1070,12 @@ export interface ActionParameters {
|
|
|
1068
1070
|
*/
|
|
1069
1071
|
target?: ComponentProperty;
|
|
1070
1072
|
/**
|
|
1071
|
-
* <p>Specifies whether the user should be signed out globally. Specify this value for an auth
|
|
1073
|
+
* <p>Specifies whether the user should be signed out globally. Specify this value for an auth
|
|
1074
|
+
* sign out action.</p>
|
|
1072
1075
|
*/
|
|
1073
1076
|
global?: ComponentProperty;
|
|
1074
1077
|
/**
|
|
1075
|
-
* <p>The name of the data model. Use when the action performs an operation on an Amplify DataStore
|
|
1076
|
-
* model.</p>
|
|
1078
|
+
* <p>The name of the data model. Use when the action performs an operation on an Amplify DataStore model.</p>
|
|
1077
1079
|
*/
|
|
1078
1080
|
model?: string;
|
|
1079
1081
|
/**
|
|
@@ -1081,8 +1083,9 @@ export interface ActionParameters {
|
|
|
1081
1083
|
*/
|
|
1082
1084
|
id?: ComponentProperty;
|
|
1083
1085
|
/**
|
|
1084
|
-
* <p>A dictionary of key-value pairs mapping Amplify Studio properties to fields
|
|
1085
|
-
* performs an operation on an Amplify
|
|
1086
|
+
* <p>A dictionary of key-value pairs mapping Amplify Studio properties to fields
|
|
1087
|
+
* in a data model. Use when the action performs an operation on an Amplify
|
|
1088
|
+
* DataStore model.</p>
|
|
1086
1089
|
*/
|
|
1087
1090
|
fields?: {
|
|
1088
1091
|
[key: string]: ComponentProperty;
|
|
@@ -1099,9 +1102,9 @@ export declare namespace ActionParameters {
|
|
|
1099
1102
|
const filterSensitiveLog: (obj: ActionParameters) => any;
|
|
1100
1103
|
}
|
|
1101
1104
|
/**
|
|
1102
|
-
* <p>Describes the configuration of an event. You can bind an event and a corresponding
|
|
1103
|
-
*
|
|
1104
|
-
*
|
|
1105
|
+
* <p>Describes the configuration of an event. You can bind an event and a corresponding action
|
|
1106
|
+
* to a <code>Component</code> or a <code>ComponentChild</code>. A button click is an example of
|
|
1107
|
+
* an event. </p>
|
|
1105
1108
|
*/
|
|
1106
1109
|
export interface ComponentEvent {
|
|
1107
1110
|
/**
|
|
@@ -1112,6 +1115,10 @@ export interface ComponentEvent {
|
|
|
1112
1115
|
* <p>Describes information about the action.</p>
|
|
1113
1116
|
*/
|
|
1114
1117
|
parameters?: ActionParameters;
|
|
1118
|
+
/**
|
|
1119
|
+
* <p>Binds an event to an action on a component. When you specify a <code>bindingEvent</code>, the event is called when the action is performed.</p>
|
|
1120
|
+
*/
|
|
1121
|
+
bindingEvent?: string;
|
|
1115
1122
|
}
|
|
1116
1123
|
export declare namespace ComponentEvent {
|
|
1117
1124
|
/**
|
|
@@ -1143,12 +1150,17 @@ export interface ComponentChild {
|
|
|
1143
1150
|
*/
|
|
1144
1151
|
children?: ComponentChild[];
|
|
1145
1152
|
/**
|
|
1146
|
-
* <p>Describes the events that can be raised on the child component. Use for the workflow
|
|
1147
|
-
* bind events and actions to
|
|
1153
|
+
* <p>Describes the events that can be raised on the child component. Use for the workflow
|
|
1154
|
+
* feature in Amplify Studio that allows you to bind events and actions to
|
|
1155
|
+
* components.</p>
|
|
1148
1156
|
*/
|
|
1149
1157
|
events?: {
|
|
1150
1158
|
[key: string]: ComponentEvent;
|
|
1151
1159
|
};
|
|
1160
|
+
/**
|
|
1161
|
+
* <p>The unique ID of the child component in its original source system, such as Figma.</p>
|
|
1162
|
+
*/
|
|
1163
|
+
sourceId?: string;
|
|
1152
1164
|
}
|
|
1153
1165
|
export declare namespace ComponentChild {
|
|
1154
1166
|
/**
|
|
@@ -1246,8 +1258,9 @@ export interface Component {
|
|
|
1246
1258
|
[key: string]: string;
|
|
1247
1259
|
};
|
|
1248
1260
|
/**
|
|
1249
|
-
* <p>Describes the events that can be raised on the component. Use for the workflow feature in
|
|
1250
|
-
*
|
|
1261
|
+
* <p>Describes the events that can be raised on the component. Use for the workflow feature in
|
|
1262
|
+
* Amplify Studio that allows you to bind events and actions to
|
|
1263
|
+
* components.</p>
|
|
1251
1264
|
*/
|
|
1252
1265
|
events?: {
|
|
1253
1266
|
[key: string]: ComponentEvent;
|
|
@@ -621,6 +621,8 @@ export interface ComponentEvent {
|
|
|
621
621
|
action?: string;
|
|
622
622
|
|
|
623
623
|
parameters?: ActionParameters;
|
|
624
|
+
|
|
625
|
+
bindingEvent?: string;
|
|
624
626
|
}
|
|
625
627
|
export declare namespace ComponentEvent {
|
|
626
628
|
|
|
@@ -642,6 +644,8 @@ export interface ComponentChild {
|
|
|
642
644
|
events?: {
|
|
643
645
|
[key: string]: ComponentEvent;
|
|
644
646
|
};
|
|
647
|
+
|
|
648
|
+
sourceId?: string;
|
|
645
649
|
}
|
|
646
650
|
export declare namespace ComponentChild {
|
|
647
651
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-amplifyuibuilder",
|
|
3
3
|
"description": "AWS SDK for JavaScript Amplifyuibuilder Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.74.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.74.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.58.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.74.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.58.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.55.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"@aws-sdk/middleware-stack": "3.55.0",
|
|
34
34
|
"@aws-sdk/middleware-user-agent": "3.58.0",
|
|
35
35
|
"@aws-sdk/node-config-provider": "3.58.0",
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.74.0",
|
|
37
37
|
"@aws-sdk/protocol-http": "3.58.0",
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
38
|
+
"@aws-sdk/smithy-client": "3.72.0",
|
|
39
39
|
"@aws-sdk/types": "3.55.0",
|
|
40
40
|
"@aws-sdk/url-parser": "3.55.0",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.58.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
43
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.72.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.72.0",
|
|
47
47
|
"@aws-sdk/util-user-agent-browser": "3.58.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-node": "3.58.0",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.55.0",
|