@amp-labs/react 1.4.2 → 1.4.4
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/build/generated-sources/api/src/apis/OperationEventApi.d.ts +28 -0
- package/build/generated-sources/api/src/apis/OperationEventApi.js +30 -0
- package/build/generated-sources/api/src/apis/OrgApi.d.ts +226 -0
- package/build/generated-sources/api/src/apis/OrgApi.js +253 -0
- package/build/generated-sources/api/src/apis/ProjectApi.d.ts +4 -4
- package/build/generated-sources/api/src/apis/ProjectApi.js +3 -2
- package/build/generated-sources/api/src/apis/UserApi.d.ts +70 -0
- package/build/generated-sources/api/src/apis/UserApi.js +94 -0
- package/build/generated-sources/api/src/apis/index.d.ts +2 -0
- package/build/generated-sources/api/src/apis/index.js +2 -0
- package/build/generated-sources/api/src/models/AcceptInviteRequest.d.ts +31 -0
- package/build/generated-sources/api/src/models/AcceptInviteRequest.js +50 -0
- package/build/generated-sources/api/src/models/ApiProblem.d.ts +130 -0
- package/build/generated-sources/api/src/models/ApiProblem.js +82 -0
- package/build/generated-sources/api/src/models/AuthType.d.ts +1 -0
- package/build/generated-sources/api/src/models/AuthType.js +2 -1
- package/build/generated-sources/api/src/models/Builder.d.ts +73 -0
- package/build/generated-sources/api/src/models/Builder.js +68 -0
- package/build/generated-sources/api/src/models/BuilderInfo.d.ts +48 -0
- package/build/generated-sources/api/src/models/BuilderInfo.js +59 -0
- package/build/generated-sources/api/src/models/BuilderInfoOrgRole.d.ts +58 -0
- package/build/generated-sources/api/src/models/BuilderInfoOrgRole.js +67 -0
- package/build/generated-sources/api/src/models/BuilderInfoProjectRolesValue.d.ts +58 -0
- package/build/generated-sources/api/src/models/BuilderInfoProjectRolesValue.js +67 -0
- package/build/generated-sources/api/src/models/BulkWriteSupport.d.ts +49 -0
- package/build/generated-sources/api/src/models/BulkWriteSupport.js +59 -0
- package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +1 -1
- package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.d.ts +1 -1
- package/build/generated-sources/api/src/models/CreateOrgInviteRequest.d.ts +31 -0
- package/build/generated-sources/api/src/models/CreateOrgInviteRequest.js +50 -0
- package/build/generated-sources/api/src/models/CreateOrgRequest.d.ts +31 -0
- package/build/generated-sources/api/src/models/CreateOrgRequest.js +50 -0
- package/build/generated-sources/api/src/models/CreateProjectRequest.d.ts +6 -0
- package/build/generated-sources/api/src/models/CreateProjectRequest.js +3 -0
- package/build/generated-sources/api/src/models/Destination.d.ts +3 -3
- package/build/generated-sources/api/src/models/Destination.js +3 -3
- package/build/generated-sources/api/src/models/InputValidationIssue.d.ts +89 -0
- package/build/generated-sources/api/src/models/InputValidationIssue.js +75 -0
- package/build/generated-sources/api/src/models/InputValidationProblem.d.ts +68 -0
- package/build/generated-sources/api/src/models/InputValidationProblem.js +63 -0
- package/build/generated-sources/api/src/models/Invite.d.ts +84 -0
- package/build/generated-sources/api/src/models/Invite.js +83 -0
- package/build/generated-sources/api/src/models/Log.d.ts +4 -3
- package/build/generated-sources/api/src/models/Log.js +3 -2
- package/build/generated-sources/api/src/models/LogMessage.d.ts +43 -0
- package/build/generated-sources/api/src/models/LogMessage.js +55 -0
- package/build/generated-sources/api/src/models/OauthOpts.d.ts +15 -0
- package/build/generated-sources/api/src/models/OauthOpts.js +12 -1
- package/build/generated-sources/api/src/models/Org.d.ts +55 -0
- package/build/generated-sources/api/src/models/Org.js +62 -0
- package/build/generated-sources/api/src/models/Problem.d.ts +63 -0
- package/build/generated-sources/api/src/models/Problem.js +60 -0
- package/build/generated-sources/api/src/models/Project.d.ts +6 -0
- package/build/generated-sources/api/src/models/Project.js +2 -0
- package/build/generated-sources/api/src/models/Support.d.ts +3 -2
- package/build/generated-sources/api/src/models/Support.js +3 -2
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.d.ts +3 -3
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.js +3 -3
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestinationMetadata.d.ts +39 -0
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestinationMetadata.js +52 -0
- package/build/generated-sources/api/src/models/UpdateOrgRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateOrgRequest.js +54 -0
- package/build/generated-sources/api/src/models/UpdateOrgRequestOrg.d.ts +31 -0
- package/build/generated-sources/api/src/models/UpdateOrgRequestOrg.js +50 -0
- package/build/generated-sources/api/src/models/index.d.ts +18 -0
- package/build/generated-sources/api/src/models/index.js +18 -0
- package/build/src/components/Configure/content/ConfigureInstallationBase.js +1 -1
- package/build/src/components/Configure/content/fields/OptionalFields/OptionalFields.js +2 -2
- package/build/src/components/Configure/content/fields/WriteFields/WriteFields.js +14 -2
- package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.js +2 -2
- package/build/src/services/version.d.ts +1 -1
- package/build/src/services/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
export * from './AcceptInviteRequest';
|
|
1
2
|
export * from './ApiKey';
|
|
2
3
|
export * from './ApiKeyRequest';
|
|
4
|
+
export * from './ApiProblem';
|
|
3
5
|
export * from './AuthType';
|
|
4
6
|
export * from './BaseConfigContent';
|
|
5
7
|
export * from './BaseProxyConfig';
|
|
@@ -8,6 +10,11 @@ export * from './BaseReadConfigStandardObject';
|
|
|
8
10
|
export * from './BaseWriteConfig';
|
|
9
11
|
export * from './BaseWriteConfigObject';
|
|
10
12
|
export * from './BatchUpsertIntegrationsRequest';
|
|
13
|
+
export * from './Builder';
|
|
14
|
+
export * from './BuilderInfo';
|
|
15
|
+
export * from './BuilderInfoOrgRole';
|
|
16
|
+
export * from './BuilderInfoProjectRolesValue';
|
|
17
|
+
export * from './BulkWriteSupport';
|
|
11
18
|
export * from './Config';
|
|
12
19
|
export * from './ConfigContent';
|
|
13
20
|
export * from './ConfigContentAllOf';
|
|
@@ -21,6 +28,8 @@ export * from './CreateInstallationRequest';
|
|
|
21
28
|
export * from './CreateInstallationRequestConfig';
|
|
22
29
|
export * from './CreateIntegrationRequest';
|
|
23
30
|
export * from './CreateIntegrationRequestLatestRevision';
|
|
31
|
+
export * from './CreateOrgInviteRequest';
|
|
32
|
+
export * from './CreateOrgRequest';
|
|
24
33
|
export * from './CreateProjectRequest';
|
|
25
34
|
export * from './CreateProviderAppRequest';
|
|
26
35
|
export * from './Destination';
|
|
@@ -37,6 +46,8 @@ export * from './HydratedRevision';
|
|
|
37
46
|
export * from './ImportConnectionRequest';
|
|
38
47
|
export * from './ImportInstallationRequest';
|
|
39
48
|
export * from './ImportInstallationRequestConfig';
|
|
49
|
+
export * from './InputValidationIssue';
|
|
50
|
+
export * from './InputValidationProblem';
|
|
40
51
|
export * from './Installation';
|
|
41
52
|
export * from './Integration';
|
|
42
53
|
export * from './Integration1';
|
|
@@ -48,14 +59,18 @@ export * from './IntegrationProxy';
|
|
|
48
59
|
export * from './IntegrationRead';
|
|
49
60
|
export * from './IntegrationWrite';
|
|
50
61
|
export * from './IntegrationWriteObject';
|
|
62
|
+
export * from './Invite';
|
|
51
63
|
export * from './Log';
|
|
64
|
+
export * from './LogMessage';
|
|
52
65
|
export * from './OauthConnectRequest';
|
|
53
66
|
export * from './OauthOpts';
|
|
54
67
|
export * from './Operation';
|
|
55
68
|
export * from './OperationEvent';
|
|
56
69
|
export * from './OptionalFieldsAutoOption';
|
|
70
|
+
export * from './Org';
|
|
57
71
|
export * from './PatchApiKeyRequest';
|
|
58
72
|
export * from './PatchApiKeyRequestApiKey';
|
|
73
|
+
export * from './Problem';
|
|
59
74
|
export * from './Project';
|
|
60
75
|
export * from './ProjectMembership';
|
|
61
76
|
export * from './ProviderApp';
|
|
@@ -66,10 +81,13 @@ export * from './Support';
|
|
|
66
81
|
export * from './TokenMetadataFields';
|
|
67
82
|
export * from './UpdateDestinationRequest';
|
|
68
83
|
export * from './UpdateDestinationRequestDestination';
|
|
84
|
+
export * from './UpdateDestinationRequestDestinationMetadata';
|
|
69
85
|
export * from './UpdateInstallationConfigContent';
|
|
70
86
|
export * from './UpdateInstallationRequest';
|
|
71
87
|
export * from './UpdateInstallationRequestInstallation';
|
|
72
88
|
export * from './UpdateInstallationRequestInstallationConfig';
|
|
89
|
+
export * from './UpdateOrgRequest';
|
|
90
|
+
export * from './UpdateOrgRequestOrg';
|
|
73
91
|
export * from './UpdateProjectRequest';
|
|
74
92
|
export * from './UpdateProjectRequestProject';
|
|
75
93
|
export * from './UpdateProviderAppRequest';
|
|
@@ -16,8 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AcceptInviteRequest"), exports);
|
|
19
20
|
__exportStar(require("./ApiKey"), exports);
|
|
20
21
|
__exportStar(require("./ApiKeyRequest"), exports);
|
|
22
|
+
__exportStar(require("./ApiProblem"), exports);
|
|
21
23
|
__exportStar(require("./AuthType"), exports);
|
|
22
24
|
__exportStar(require("./BaseConfigContent"), exports);
|
|
23
25
|
__exportStar(require("./BaseProxyConfig"), exports);
|
|
@@ -26,6 +28,11 @@ __exportStar(require("./BaseReadConfigStandardObject"), exports);
|
|
|
26
28
|
__exportStar(require("./BaseWriteConfig"), exports);
|
|
27
29
|
__exportStar(require("./BaseWriteConfigObject"), exports);
|
|
28
30
|
__exportStar(require("./BatchUpsertIntegrationsRequest"), exports);
|
|
31
|
+
__exportStar(require("./Builder"), exports);
|
|
32
|
+
__exportStar(require("./BuilderInfo"), exports);
|
|
33
|
+
__exportStar(require("./BuilderInfoOrgRole"), exports);
|
|
34
|
+
__exportStar(require("./BuilderInfoProjectRolesValue"), exports);
|
|
35
|
+
__exportStar(require("./BulkWriteSupport"), exports);
|
|
29
36
|
__exportStar(require("./Config"), exports);
|
|
30
37
|
__exportStar(require("./ConfigContent"), exports);
|
|
31
38
|
__exportStar(require("./ConfigContentAllOf"), exports);
|
|
@@ -39,6 +46,8 @@ __exportStar(require("./CreateInstallationRequest"), exports);
|
|
|
39
46
|
__exportStar(require("./CreateInstallationRequestConfig"), exports);
|
|
40
47
|
__exportStar(require("./CreateIntegrationRequest"), exports);
|
|
41
48
|
__exportStar(require("./CreateIntegrationRequestLatestRevision"), exports);
|
|
49
|
+
__exportStar(require("./CreateOrgInviteRequest"), exports);
|
|
50
|
+
__exportStar(require("./CreateOrgRequest"), exports);
|
|
42
51
|
__exportStar(require("./CreateProjectRequest"), exports);
|
|
43
52
|
__exportStar(require("./CreateProviderAppRequest"), exports);
|
|
44
53
|
__exportStar(require("./Destination"), exports);
|
|
@@ -55,6 +64,8 @@ __exportStar(require("./HydratedRevision"), exports);
|
|
|
55
64
|
__exportStar(require("./ImportConnectionRequest"), exports);
|
|
56
65
|
__exportStar(require("./ImportInstallationRequest"), exports);
|
|
57
66
|
__exportStar(require("./ImportInstallationRequestConfig"), exports);
|
|
67
|
+
__exportStar(require("./InputValidationIssue"), exports);
|
|
68
|
+
__exportStar(require("./InputValidationProblem"), exports);
|
|
58
69
|
__exportStar(require("./Installation"), exports);
|
|
59
70
|
__exportStar(require("./Integration"), exports);
|
|
60
71
|
__exportStar(require("./Integration1"), exports);
|
|
@@ -66,14 +77,18 @@ __exportStar(require("./IntegrationProxy"), exports);
|
|
|
66
77
|
__exportStar(require("./IntegrationRead"), exports);
|
|
67
78
|
__exportStar(require("./IntegrationWrite"), exports);
|
|
68
79
|
__exportStar(require("./IntegrationWriteObject"), exports);
|
|
80
|
+
__exportStar(require("./Invite"), exports);
|
|
69
81
|
__exportStar(require("./Log"), exports);
|
|
82
|
+
__exportStar(require("./LogMessage"), exports);
|
|
70
83
|
__exportStar(require("./OauthConnectRequest"), exports);
|
|
71
84
|
__exportStar(require("./OauthOpts"), exports);
|
|
72
85
|
__exportStar(require("./Operation"), exports);
|
|
73
86
|
__exportStar(require("./OperationEvent"), exports);
|
|
74
87
|
__exportStar(require("./OptionalFieldsAutoOption"), exports);
|
|
88
|
+
__exportStar(require("./Org"), exports);
|
|
75
89
|
__exportStar(require("./PatchApiKeyRequest"), exports);
|
|
76
90
|
__exportStar(require("./PatchApiKeyRequestApiKey"), exports);
|
|
91
|
+
__exportStar(require("./Problem"), exports);
|
|
77
92
|
__exportStar(require("./Project"), exports);
|
|
78
93
|
__exportStar(require("./ProjectMembership"), exports);
|
|
79
94
|
__exportStar(require("./ProviderApp"), exports);
|
|
@@ -84,10 +99,13 @@ __exportStar(require("./Support"), exports);
|
|
|
84
99
|
__exportStar(require("./TokenMetadataFields"), exports);
|
|
85
100
|
__exportStar(require("./UpdateDestinationRequest"), exports);
|
|
86
101
|
__exportStar(require("./UpdateDestinationRequestDestination"), exports);
|
|
102
|
+
__exportStar(require("./UpdateDestinationRequestDestinationMetadata"), exports);
|
|
87
103
|
__exportStar(require("./UpdateInstallationConfigContent"), exports);
|
|
88
104
|
__exportStar(require("./UpdateInstallationRequest"), exports);
|
|
89
105
|
__exportStar(require("./UpdateInstallationRequestInstallation"), exports);
|
|
90
106
|
__exportStar(require("./UpdateInstallationRequestInstallationConfig"), exports);
|
|
107
|
+
__exportStar(require("./UpdateOrgRequest"), exports);
|
|
108
|
+
__exportStar(require("./UpdateOrgRequestOrg"), exports);
|
|
91
109
|
__exportStar(require("./UpdateProjectRequest"), exports);
|
|
92
110
|
__exportStar(require("./UpdateProjectRequestProject"), exports);
|
|
93
111
|
__exportStar(require("./UpdateProviderAppRequest"), exports);
|
|
@@ -31,6 +31,6 @@ function ConfigureInstallationBase({ onSave, onReset, isLoading, isCreateMode =
|
|
|
31
31
|
// is the form in the uninstall case?
|
|
32
32
|
const isUninstall = selectedObjectName === UninstallInstallation_1.UNINSTALL_INSTALLATION_CONST;
|
|
33
33
|
return (isLoading ? (0, jsx_runtime_1.jsx)(LoadingIcon_1.LoadingIcon, {})
|
|
34
|
-
: ((0, jsx_runtime_1.jsxs)("form", { style: { width: '100%', maxWidth: '50rem' }, onSubmit: onSave, children: [(0, jsx_runtime_1.jsxs)(react_1.Stack, { direction: "row", spacing: 4, marginBottom: "20px", flexDir: "row-reverse", children: [(0, jsx_runtime_1.jsx)(react_1.Button, { backgroundColor: "gray.800", _hover: { backgroundColor: 'gray.600' }, type: "submit", isDisabled: isDisabled, children: isCreateMode ? 'Install' : 'Save' }), (0, jsx_runtime_1.jsx)(react_1.Button, { backgroundColor: "gray.200", color: "blackAlpha.700", _hover: { backgroundColor: 'gray.300' }, isDisabled: isDisabled, onClick: onReset, children: "Reset" })] }), (0, jsx_runtime_1.jsxs)(react_1.Box, { p: 8, width: "100%", border: "1px solid #EFEFEF", borderRadius: 8, boxShadow: "md", textAlign: ['left'], margin: "auto", bgColor: "white", maxHeight: "100%", overflowY: "scroll", children: [loading && (0, jsx_runtime_1.jsx)(LoadingIcon_1.LoadingIcon, {}), hydratedRevision && !isUninstall && !isNonConfigurableWrite && (0, jsx_runtime_1.jsx)(ReadFields_1.ReadFields, {}), hydratedRevision && !isUninstall && isNonConfigurableWrite && (0, jsx_runtime_1.jsx)(WriteFields_1.WriteFields, {}), !loading && isUninstall && (0, jsx_runtime_1.jsx)(UninstallContent_1.UninstallContent, {})] })] })));
|
|
34
|
+
: ((0, jsx_runtime_1.jsxs)("form", { style: { width: '100%', maxWidth: '50rem' }, onSubmit: onSave, children: [(0, jsx_runtime_1.jsxs)(react_1.Stack, { direction: "row", spacing: 4, marginBottom: "20px", flexDir: "row-reverse", children: [(0, jsx_runtime_1.jsx)(react_1.Button, { backgroundColor: "gray.800", _hover: { backgroundColor: 'gray.600' }, type: "submit", isDisabled: isDisabled, children: isCreateMode ? 'Install' : 'Save' }), (0, jsx_runtime_1.jsx)(react_1.Button, { backgroundColor: "gray.200", color: "blackAlpha.700", _hover: { backgroundColor: 'gray.300' }, isDisabled: isDisabled, onClick: onReset, children: "Reset" })] }), (0, jsx_runtime_1.jsxs)(react_1.Box, { p: 8, width: "100%", border: "1px solid #EFEFEF", borderRadius: 8, boxShadow: "md", textAlign: ['left'], margin: "auto", bgColor: "white", maxHeight: "100%", overflowY: "scroll", minHeight: 300, children: [loading && (0, jsx_runtime_1.jsx)(LoadingIcon_1.LoadingIcon, {}), hydratedRevision && !isUninstall && !isNonConfigurableWrite && (0, jsx_runtime_1.jsx)(ReadFields_1.ReadFields, {}), hydratedRevision && !isUninstall && isNonConfigurableWrite && (0, jsx_runtime_1.jsx)(WriteFields_1.WriteFields, {}), !loading && isUninstall && (0, jsx_runtime_1.jsx)(UninstallContent_1.UninstallContent, {})] })] })));
|
|
35
35
|
}
|
|
36
36
|
exports.ConfigureInstallationBase = ConfigureInstallationBase;
|
|
@@ -19,9 +19,9 @@ function OptionalFields() {
|
|
|
19
19
|
};
|
|
20
20
|
const shouldRender = !!(((_b = configureState === null || configureState === void 0 ? void 0 : configureState.read) === null || _b === void 0 ? void 0 : _b.optionalFields)
|
|
21
21
|
&& ((_c = configureState === null || configureState === void 0 ? void 0 : configureState.read) === null || _c === void 0 ? void 0 : _c.optionalFields));
|
|
22
|
-
return (shouldRender && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(FieldHeader_1.FieldHeader, { string: `${appName} reads the following optional fields` }), (0, jsx_runtime_1.jsx)(react_1.Stack, { marginBottom: 10,
|
|
22
|
+
return (shouldRender && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(FieldHeader_1.FieldHeader, { string: `${appName} reads the following optional fields` }), (0, jsx_runtime_1.jsx)(react_1.Stack, { marginBottom: 10, maxHeight: 300, overflowY: "scroll", border: "2px solid #EFEFEF", borderRadius: 8, gap: 0, children: (_e = (_d = configureState === null || configureState === void 0 ? void 0 : configureState.read) === null || _d === void 0 ? void 0 : _d.optionalFields) === null || _e === void 0 ? void 0 : _e.map((field) => {
|
|
23
23
|
if (!(0, utils_1.isIntegrationFieldMapping)(field)) {
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)(react_1.Box, {
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Box, { paddingX: 4, paddingY: 2, borderBottom: "1px", borderColor: "gray.100", children: (0, jsx_runtime_1.jsx)(react_1.Checkbox, { name: field.fieldName, id: field.fieldName, isChecked: !!(selectedOptionalFields === null || selectedOptionalFields === void 0 ? void 0 : selectedOptionalFields[field === null || field === void 0 ? void 0 : field.fieldName]), onChange: onCheckboxChange, children: field.displayName }) }, field.fieldName));
|
|
25
25
|
}
|
|
26
26
|
return null; // fallback for customed mapped fields
|
|
27
27
|
}) })] })));
|
|
@@ -10,13 +10,25 @@ function WriteFields() {
|
|
|
10
10
|
var _a, _b, _c, _d;
|
|
11
11
|
const { appName, selectedObjectName, configureState, setConfigureState, } = (0, useSelectedConfigureState_1.useSelectedConfigureState)();
|
|
12
12
|
const selectedWriteFields = (_a = configureState === null || configureState === void 0 ? void 0 : configureState.write) === null || _a === void 0 ? void 0 : _a.selectedNonConfigurableWriteFields;
|
|
13
|
+
const writeObjects = (_b = configureState === null || configureState === void 0 ? void 0 : configureState.write) === null || _b === void 0 ? void 0 : _b.writeObjects;
|
|
13
14
|
const onCheckboxChange = (e) => {
|
|
14
15
|
const { name, checked } = e.target;
|
|
15
16
|
if (selectedObjectName && configureState) {
|
|
16
17
|
(0, setNonConfigurableWriteField_1.setNonConfigurableWriteField)(selectedObjectName, setConfigureState, name, checked);
|
|
17
18
|
}
|
|
18
19
|
};
|
|
19
|
-
const
|
|
20
|
-
|
|
20
|
+
const onSelectAllCheckboxChange = (e) => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const { checked } = e.target;
|
|
23
|
+
if (selectedObjectName && configureState) {
|
|
24
|
+
(_b = (_a = configureState === null || configureState === void 0 ? void 0 : configureState.write) === null || _a === void 0 ? void 0 : _a.writeObjects) === null || _b === void 0 ? void 0 : _b.forEach((field) => {
|
|
25
|
+
(0, setNonConfigurableWriteField_1.setNonConfigurableWriteField)(selectedObjectName, setConfigureState, field.objectName, checked);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const shouldRender = !!(writeObjects);
|
|
30
|
+
const isAllChecked = Object.keys(selectedWriteFields || {}).length === ((_d = (_c = configureState === null || configureState === void 0 ? void 0 : configureState.write) === null || _c === void 0 ? void 0 : _c.writeObjects) === null || _d === void 0 ? void 0 : _d.length);
|
|
31
|
+
const isIndeterminate = !isAllChecked && Object.keys(selectedWriteFields || {}).length > 0;
|
|
32
|
+
return (shouldRender && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(FieldHeader_1.FieldHeader, { string: `Allow ${appName} to write to these object` }), (0, jsx_runtime_1.jsxs)(react_1.Stack, { marginBottom: 10, maxHeight: 300, overflowY: "scroll", border: "2px solid #EFEFEF", borderRadius: 8, gap: 0, children: [((writeObjects === null || writeObjects === void 0 ? void 0 : writeObjects.length) || 0) >= 2 && ((0, jsx_runtime_1.jsx)(react_1.Box, { backgroundColor: "gray.50", paddingX: 4, paddingY: 2, children: (0, jsx_runtime_1.jsx)(react_1.Checkbox, { name: "selectAll", id: "selectAll", onChange: onSelectAllCheckboxChange, isIndeterminate: isIndeterminate, isChecked: isAllChecked, children: "Select all" }) })), writeObjects.map((field) => ((0, jsx_runtime_1.jsx)(react_1.Box, { display: "flex", alignItems: "center", borderBottom: "1px", borderColor: "gray.100", paddingX: 4, paddingY: 2, children: (0, jsx_runtime_1.jsx)(react_1.Checkbox, { name: field.objectName, id: field.objectName, onChange: onCheckboxChange, isChecked: !!(selectedWriteFields === null || selectedWriteFields === void 0 ? void 0 : selectedWriteFields[field.objectName]), children: field.displayName }) }, field.objectName)))] })] })));
|
|
21
33
|
}
|
|
22
34
|
exports.WriteFields = WriteFields;
|
package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.js
CHANGED
|
@@ -36,7 +36,7 @@ function ConditionalProxyLayout({ children }) {
|
|
|
36
36
|
const provider = (_a = hydratedRevision === null || hydratedRevision === void 0 ? void 0 : hydratedRevision.content) === null || _a === void 0 ? void 0 : _a.provider;
|
|
37
37
|
const isProxyOnly = getIsProxyOnly(hydratedRevision);
|
|
38
38
|
(0, react_1.useEffect)(() => {
|
|
39
|
-
if (hydratedRevision && isProxyOnly && !installation && selectedConnection && apiKey && (integrationObj === null || integrationObj === void 0 ? void 0 : integrationObj.id)) {
|
|
39
|
+
if (!isLoading && hydratedRevision && isProxyOnly && !installation && selectedConnection && apiKey && (integrationObj === null || integrationObj === void 0 ? void 0 : integrationObj.id)) {
|
|
40
40
|
setCreateInstallLoading(true);
|
|
41
41
|
(0, onCreateInstallationProxyOnly_1.onCreateInstallationProxyOnly)({
|
|
42
42
|
apiKey,
|
|
@@ -55,7 +55,7 @@ function ConditionalProxyLayout({ children }) {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}, [hydratedRevision, isProxyOnly, installation,
|
|
58
|
-
selectedConnection, apiKey, projectId, integrationObj === null || integrationObj === void 0 ? void 0 : integrationObj.id, groupRef, consumerRef, setInstallation]);
|
|
58
|
+
selectedConnection, apiKey, projectId, integrationObj === null || integrationObj === void 0 ? void 0 : integrationObj.id, groupRef, consumerRef, setInstallation, isLoading]);
|
|
59
59
|
if (!integrationObj)
|
|
60
60
|
return (0, jsx_runtime_1.jsx)(ErrorTextBox_1.ErrorTextBox, { message: "We can't load the integration" });
|
|
61
61
|
if (isLoading)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "1.4.
|
|
1
|
+
export declare const LIB_VERSION = "1.4.4";
|