@paro.io/expert-shared-components 1.11.5 → 1.11.7
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 +21 -21
- package/README.md +2 -2
- package/lib/components/ClientReferencesSection/DeleteButton.js +11 -11
- package/lib/components/ClientReferencesSection/ParoError.js +10 -10
- package/lib/components/ClientReferencesSection/TagsSection.js +2 -2
- package/lib/components/ClientReferencesSection/styles/BrandedTypography.js +2 -2
- package/lib/components/ClientReferencesSection/styles/Buttons.js +15 -15
- package/lib/components/ClientReferencesSection/styles/Name.js +5 -5
- package/lib/components/ClientReferencesSection/styles/NullContentConditionalColor.js +4 -4
- package/lib/components/ClientReferencesSection/styles/SectionBody.js +11 -11
- package/lib/components/ClientReferencesSection/styles/SectionTitle.js +6 -6
- package/lib/components/ClientReferencesSection/styles/Tags.js +2 -2
- package/lib/components/DocumentCenter/DocumentTable.d.ts +15 -15
- package/lib/components/DocumentCenter/DocumentTable.js +350 -350
- package/lib/components/DocumentCenter/UploadFilesButton.d.ts +6 -6
- package/lib/components/DocumentCenter/UploadFilesButton.js +29 -29
- package/lib/components/EarningsTracker/ActiveProjectCard.d.ts +52 -52
- package/lib/components/EarningsTracker/ActiveProjectCard.js +161 -161
- package/lib/components/EarningsTracker/CenterCardUI.d.ts +13 -13
- package/lib/components/EarningsTracker/CenterCardUI.js +134 -134
- package/lib/components/EarningsTracker/EarningsTracker.d.ts +52 -52
- package/lib/components/EarningsTracker/EarningsTracker.js +508 -508
- package/lib/components/EarningsTracker/EditDateModal.d.ts +22 -22
- package/lib/components/EarningsTracker/EditDateModal.js +149 -149
- package/lib/components/EarningsTracker/EmailModal.d.ts +14 -14
- package/lib/components/EarningsTracker/EmailModal.js +79 -79
- package/lib/components/EarningsTracker/EndProjectModal.d.ts +56 -56
- package/lib/components/EarningsTracker/EndProjectModal.js +221 -221
- package/lib/components/EarningsTracker/LeftCardUI.d.ts +18 -18
- package/lib/components/EarningsTracker/LeftCardUI.js +189 -189
- package/lib/components/EarningsTracker/LogTimeModalAuthenticated.d.ts +52 -52
- package/lib/components/EarningsTracker/LogTimeModalAuthenticated.js +358 -358
- package/lib/components/EarningsTracker/ProgressBar.d.ts +4 -4
- package/lib/components/EarningsTracker/ProgressBar.js +66 -66
- package/lib/components/EarningsTracker/ReviewRequestModal.d.ts +17 -17
- package/lib/components/EarningsTracker/ReviewRequestModal.js +135 -135
- package/lib/components/EarningsTracker/RightCardUI.d.ts +46 -46
- package/lib/components/EarningsTracker/RightCardUI.js +231 -231
- package/lib/components/EarningsTracker/index.d.ts +1 -1
- package/lib/components/EarningsTracker/index.js +5 -5
- package/lib/components/ExpertProfileHeader/ActionButtonSection.js +6 -6
- package/lib/components/ExpertProfileHeader/ProfileSection.js +7 -7
- package/lib/components/FileUploader/index.d.ts +4 -2
- package/lib/components/FileUploader/index.js +27 -42
- package/lib/components/Invoices/DecisionSection.d.ts +0 -1
- package/lib/components/Invoices/DecisionSection.js +4 -4
- package/lib/components/Invoices/DiscussionSection.d.ts +2 -1
- package/lib/components/Invoices/DiscussionSection.js +6 -19
- package/lib/components/Invoices/DisputeSection.d.ts +2 -4
- package/lib/components/Invoices/DisputeSection.js +32 -18
- package/lib/components/Invoices/InvoiceCard.d.ts +3 -4
- package/lib/components/Invoices/InvoiceCard.js +6 -6
- package/lib/components/Invoices/InvoiceDetails.js +8 -6
- package/lib/components/Invoices/InvoiceHeader.js +2 -2
- package/lib/components/OrganizationChart/OrganizationChart.d.ts +15 -15
- package/lib/components/OrganizationChart/OrganizationChart.js +312 -312
- package/lib/components/OrganizationChart/PersonCard.js +5 -5
- package/lib/components/OrganizationChart/utils.js +79 -79
- package/lib/components/ProjectCard/ProgressBar.js +4 -4
- package/lib/components/ProjectCard/ReviewRequestModal.js +5 -5
- package/lib/components/Reviews/Pagination.js +6 -6
- package/lib/components/ReviewsTab/RatingHeader.js +6 -6
- package/lib/components/ReviewsTab/expert-shared-components.code-workspace +20 -20
- package/lib/components/ReviewsTab/reviewRequestModal.js +5 -5
- package/lib/components/shared/Image.js +13 -13
- package/lib/components/shared/ProfileTextField.d.ts +18 -18
- package/lib/components/shared/ProfileTextField.js +16 -16
- package/lib/components/shared/StyledActionButtons.d.ts +7 -7
- package/lib/components/shared/StyledActionButtons.js +15 -15
- package/lib/components/shared/ToastNotification.d.ts +10 -10
- package/lib/components/shared/ToastNotification.js +63 -63
- package/lib/components/shared/UploadClient.d.ts +1 -0
- package/lib/components/shared/UploadClient.js +5 -3
- package/package.json +61 -61
|
@@ -17,6 +17,7 @@ class UploadClient {
|
|
|
17
17
|
fileName: props.fileName,
|
|
18
18
|
documentUploadUrl: props.documentUploadUrl,
|
|
19
19
|
projectId: props.projectId,
|
|
20
|
+
bucketName: props.bucketName,
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
generateS3Key(projectId, fileName) {
|
|
@@ -34,6 +35,7 @@ class UploadClient {
|
|
|
34
35
|
const params = {
|
|
35
36
|
fileName: this.state.fileName,
|
|
36
37
|
fileType: this.state.fileSelected.type,
|
|
38
|
+
bucketName: this.state.bucketName,
|
|
37
39
|
method: 'start-upload',
|
|
38
40
|
};
|
|
39
41
|
const response = yield fetch(`${this.state.documentUploadUrl}`, {
|
|
@@ -67,7 +69,7 @@ class UploadClient {
|
|
|
67
69
|
// Get presigned URL for each part from backend lambda
|
|
68
70
|
let presignedUrlResponse = yield fetch(`${this.state.documentUploadUrl}`, {
|
|
69
71
|
method: 'POST',
|
|
70
|
-
body: JSON.stringify({ fileName: this.state.fileName, uploadId: this.state.uploadId, partNumber: index, method: 'get-presigned-url' }),
|
|
72
|
+
body: JSON.stringify({ fileName: this.state.fileName, uploadId: this.state.uploadId, partNumber: index, method: 'get-presigned-url', bucketName: this.state.bucketName }),
|
|
71
73
|
});
|
|
72
74
|
const { responseData } = yield presignedUrlResponse.json();
|
|
73
75
|
// Add each upload part to promise array using presigned URL
|
|
@@ -100,11 +102,11 @@ class UploadClient {
|
|
|
100
102
|
headers: {
|
|
101
103
|
'Content-Type': 'application/json',
|
|
102
104
|
},
|
|
103
|
-
body: JSON.stringify({ fileName: this.state.fileName, uploadId: this.state.uploadId, parts: partsArray, method: 'complete-upload' }),
|
|
105
|
+
body: JSON.stringify({ fileName: this.state.fileName, uploadId: this.state.uploadId, parts: partsArray, method: 'complete-upload', bucketName: this.state.bucketName }),
|
|
104
106
|
});
|
|
105
107
|
const { responseData } = yield response.json();
|
|
106
108
|
console.log('Upload Complete', responseData);
|
|
107
|
-
return
|
|
109
|
+
return `${JSON.stringify(responseData)}`;
|
|
108
110
|
}
|
|
109
111
|
catch (error) {
|
|
110
112
|
console.log(`Error Completing Multipart Upload ${error}`);
|
package/package.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@paro.io/expert-shared-components",
|
|
3
|
-
"version": "1.11.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc",
|
|
8
|
-
"prepare": "yarn build",
|
|
9
|
-
"test": "yarn test:build",
|
|
10
|
-
"test:build": "yarn build",
|
|
11
|
-
"clean": "yarn -rf lib",
|
|
12
|
-
"predeploy": "tsc && cp package.json README.md ./lib",
|
|
13
|
-
"link-local": "yarn link && cd node_modules/react && yarn link && cd ../react-dom && yarn link",
|
|
14
|
-
"unlink-local": "yarn unlink && cd node_modules/react && yarn unlink && cd ../react-dom && yarn unlink"
|
|
15
|
-
},
|
|
16
|
-
"repository": "https://github.com/paroadmin/expert-shared-components.git",
|
|
17
|
-
"keywords": ["react", "components", "shared"],
|
|
18
|
-
"author": "apande@paro.io",
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"@date-io/dayjs": "1.x",
|
|
22
|
-
"@fortawesome/fontawesome-svg-core": "^6.6.0",
|
|
23
|
-
"@fortawesome/free-solid-svg-icons": "^6.6.0",
|
|
24
|
-
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
25
|
-
"@hookform/resolvers": "3.3.4",
|
|
26
|
-
"@material-ui/core": "^4.11.0",
|
|
27
|
-
"@material-ui/icons": "^4.11.3",
|
|
28
|
-
"@material-ui/lab": "^4.0.0-alpha.61",
|
|
29
|
-
"@material-ui/pickers": "^3.3.11",
|
|
30
|
-
"@paro.io/base-icons": "^1.0.4",
|
|
31
|
-
"@paro.io/base-ui": "^1.8.3",
|
|
32
|
-
"@types/react-input-mask": "^3.0.5",
|
|
33
|
-
"dayjs": "^1.10.7",
|
|
34
|
-
"lodash": "^4.17.21",
|
|
35
|
-
"react": "^18.2.0",
|
|
36
|
-
"react-copy-to-clipboard": "^5.0.4",
|
|
37
|
-
"react-datepicker": "^4.6.0",
|
|
38
|
-
"react-dom": "^17.0.2",
|
|
39
|
-
"react-hook-form": "7.51.1",
|
|
40
|
-
"react-hot-toast": "^2.4.1",
|
|
41
|
-
"react-input-mask": "^3.0.0-alpha.2",
|
|
42
|
-
"styled-components": "^5.3.3",
|
|
43
|
-
"yup": "^0.32.11"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@types/lodash": "^4.14.170",
|
|
47
|
-
"@types/react": "18.3.12",
|
|
48
|
-
"@types/react-copy-to-clipboard": "^5.0.2",
|
|
49
|
-
"@types/react-datepicker": "^4.19.6",
|
|
50
|
-
"@types/react-dom": "^18.2.22",
|
|
51
|
-
"@types/styled-components": "^5.1.22",
|
|
52
|
-
"@types/yup": "^0.29.13",
|
|
53
|
-
"typescript": "^5.3.3"
|
|
54
|
-
},
|
|
55
|
-
"files": [
|
|
56
|
-
"lib/**/*"
|
|
57
|
-
],
|
|
58
|
-
"directories": {
|
|
59
|
-
"lib": "lib"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@paro.io/expert-shared-components",
|
|
3
|
+
"version": "1.11.7",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"prepare": "yarn build",
|
|
9
|
+
"test": "yarn test:build",
|
|
10
|
+
"test:build": "yarn build",
|
|
11
|
+
"clean": "yarn -rf lib",
|
|
12
|
+
"predeploy": "tsc && cp package.json README.md ./lib",
|
|
13
|
+
"link-local": "yarn link && cd node_modules/react && yarn link && cd ../react-dom && yarn link",
|
|
14
|
+
"unlink-local": "yarn unlink && cd node_modules/react && yarn unlink && cd ../react-dom && yarn unlink"
|
|
15
|
+
},
|
|
16
|
+
"repository": "https://github.com/paroadmin/expert-shared-components.git",
|
|
17
|
+
"keywords": ["react", "components", "shared"],
|
|
18
|
+
"author": "apande@paro.io",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@date-io/dayjs": "1.x",
|
|
22
|
+
"@fortawesome/fontawesome-svg-core": "^6.6.0",
|
|
23
|
+
"@fortawesome/free-solid-svg-icons": "^6.6.0",
|
|
24
|
+
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
25
|
+
"@hookform/resolvers": "3.3.4",
|
|
26
|
+
"@material-ui/core": "^4.11.0",
|
|
27
|
+
"@material-ui/icons": "^4.11.3",
|
|
28
|
+
"@material-ui/lab": "^4.0.0-alpha.61",
|
|
29
|
+
"@material-ui/pickers": "^3.3.11",
|
|
30
|
+
"@paro.io/base-icons": "^1.0.4",
|
|
31
|
+
"@paro.io/base-ui": "^1.8.3",
|
|
32
|
+
"@types/react-input-mask": "^3.0.5",
|
|
33
|
+
"dayjs": "^1.10.7",
|
|
34
|
+
"lodash": "^4.17.21",
|
|
35
|
+
"react": "^18.2.0",
|
|
36
|
+
"react-copy-to-clipboard": "^5.0.4",
|
|
37
|
+
"react-datepicker": "^4.6.0",
|
|
38
|
+
"react-dom": "^17.0.2",
|
|
39
|
+
"react-hook-form": "7.51.1",
|
|
40
|
+
"react-hot-toast": "^2.4.1",
|
|
41
|
+
"react-input-mask": "^3.0.0-alpha.2",
|
|
42
|
+
"styled-components": "^5.3.3",
|
|
43
|
+
"yup": "^0.32.11"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/lodash": "^4.14.170",
|
|
47
|
+
"@types/react": "18.3.12",
|
|
48
|
+
"@types/react-copy-to-clipboard": "^5.0.2",
|
|
49
|
+
"@types/react-datepicker": "^4.19.6",
|
|
50
|
+
"@types/react-dom": "^18.2.22",
|
|
51
|
+
"@types/styled-components": "^5.1.22",
|
|
52
|
+
"@types/yup": "^0.29.13",
|
|
53
|
+
"typescript": "^5.3.3"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"lib/**/*"
|
|
57
|
+
],
|
|
58
|
+
"directories": {
|
|
59
|
+
"lib": "lib"
|
|
60
|
+
}
|
|
61
|
+
}
|