@paro.io/expert-shared-components 1.12.10 → 1.12.11

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.
Files changed (65) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +2 -2
  3. package/lib/components/ClientReferencesSection/DeleteButton.js +11 -11
  4. package/lib/components/ClientReferencesSection/ParoError.js +10 -10
  5. package/lib/components/ClientReferencesSection/TagsSection.js +2 -2
  6. package/lib/components/ClientReferencesSection/styles/BrandedTypography.js +2 -2
  7. package/lib/components/ClientReferencesSection/styles/Buttons.js +15 -15
  8. package/lib/components/ClientReferencesSection/styles/Name.js +5 -5
  9. package/lib/components/ClientReferencesSection/styles/NullContentConditionalColor.js +4 -4
  10. package/lib/components/ClientReferencesSection/styles/SectionBody.js +11 -11
  11. package/lib/components/ClientReferencesSection/styles/SectionTitle.js +6 -6
  12. package/lib/components/ClientReferencesSection/styles/Tags.js +2 -2
  13. package/lib/components/DiscussionThread/chat.d.ts +22 -22
  14. package/lib/components/DiscussionThread/chat.js +106 -106
  15. package/lib/components/DocumentCenter/DocumentTable.d.ts +15 -15
  16. package/lib/components/DocumentCenter/DocumentTable.js +350 -350
  17. package/lib/components/DocumentCenter/UploadFilesButton.d.ts +6 -6
  18. package/lib/components/DocumentCenter/UploadFilesButton.js +29 -29
  19. package/lib/components/EarningsTracker/ActiveProjectCard.d.ts +52 -52
  20. package/lib/components/EarningsTracker/ActiveProjectCard.js +161 -161
  21. package/lib/components/EarningsTracker/CenterCardUI.d.ts +13 -13
  22. package/lib/components/EarningsTracker/CenterCardUI.js +134 -134
  23. package/lib/components/EarningsTracker/EarningsTracker.d.ts +52 -52
  24. package/lib/components/EarningsTracker/EarningsTracker.js +508 -508
  25. package/lib/components/EarningsTracker/EditDateModal.d.ts +22 -22
  26. package/lib/components/EarningsTracker/EditDateModal.js +149 -149
  27. package/lib/components/EarningsTracker/EmailModal.d.ts +14 -14
  28. package/lib/components/EarningsTracker/EmailModal.js +79 -79
  29. package/lib/components/EarningsTracker/EndProjectModal.d.ts +56 -56
  30. package/lib/components/EarningsTracker/EndProjectModal.js +221 -221
  31. package/lib/components/EarningsTracker/LeftCardUI.d.ts +18 -18
  32. package/lib/components/EarningsTracker/LeftCardUI.js +189 -189
  33. package/lib/components/EarningsTracker/LogTimeModalAuthenticated.d.ts +52 -52
  34. package/lib/components/EarningsTracker/LogTimeModalAuthenticated.js +358 -358
  35. package/lib/components/EarningsTracker/ProgressBar.d.ts +4 -4
  36. package/lib/components/EarningsTracker/ProgressBar.js +66 -66
  37. package/lib/components/EarningsTracker/ReviewRequestModal.d.ts +17 -17
  38. package/lib/components/EarningsTracker/ReviewRequestModal.js +135 -135
  39. package/lib/components/EarningsTracker/RightCardUI.d.ts +46 -46
  40. package/lib/components/EarningsTracker/RightCardUI.js +231 -231
  41. package/lib/components/EarningsTracker/index.d.ts +1 -1
  42. package/lib/components/EarningsTracker/index.js +5 -5
  43. package/lib/components/ExpertProfileHeader/ActionButtonSection.js +6 -6
  44. package/lib/components/ExpertProfileHeader/ProfileSection.js +7 -7
  45. package/lib/components/FileUploader/index.d.ts +1 -1
  46. package/lib/components/FileUploader/index.js +5 -5
  47. package/lib/components/Invoices/ClientDisputeProjectCard.js +2 -11
  48. package/lib/components/OrganizationChart/OrganizationChart.d.ts +15 -15
  49. package/lib/components/OrganizationChart/OrganizationChart.js +312 -312
  50. package/lib/components/OrganizationChart/PersonCard.js +5 -5
  51. package/lib/components/OrganizationChart/utils.js +79 -79
  52. package/lib/components/ProjectCard/ProgressBar.js +4 -4
  53. package/lib/components/ProjectCard/ReviewRequestModal.js +5 -5
  54. package/lib/components/Reviews/Pagination.js +6 -6
  55. package/lib/components/ReviewsTab/RatingHeader.js +6 -6
  56. package/lib/components/ReviewsTab/expert-shared-components.code-workspace +20 -20
  57. package/lib/components/ReviewsTab/reviewRequestModal.js +5 -5
  58. package/lib/components/shared/Image.js +13 -13
  59. package/lib/components/shared/ProfileTextField.d.ts +18 -18
  60. package/lib/components/shared/ProfileTextField.js +16 -16
  61. package/lib/components/shared/StyledActionButtons.d.ts +7 -7
  62. package/lib/components/shared/StyledActionButtons.js +15 -15
  63. package/lib/components/shared/ToastNotification.d.ts +10 -10
  64. package/lib/components/shared/ToastNotification.js +63 -63
  65. package/package.json +61 -61
@@ -194,7 +194,7 @@ const ClientDisputeProjectCard = ({ clientInvoice, updateClientInvoiceDisputeMut
194
194
  reader.onloadend = () => __awaiter(void 0, void 0, void 0, function* () {
195
195
  var _a, _b, _c, _d, _e;
196
196
  try {
197
- const res = yield (0, FileUploader_1.fileUploader)({
197
+ yield (0, FileUploader_1.fileUploader)({
198
198
  file: selectedFile,
199
199
  documentName: selectedFile.name,
200
200
  disputeId: clientInvoice.disputeId,
@@ -204,20 +204,11 @@ const ClientDisputeProjectCard = ({ clientInvoice, updateClientInvoiceDisputeMut
204
204
  previousFiles: (_e = (_d = (_c = clientInvoice === null || clientInvoice === void 0 ? void 0 : clientInvoice.disputeProjects) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.clientDocumentLinks) !== null && _e !== void 0 ? _e : [],
205
205
  isExpert: false,
206
206
  });
207
- if (res) {
208
- setProjects((prevProjects) => prevProjects.map((p) => {
209
- var _a, _b;
210
- return p.projectId === ((_b = (_a = clientInvoice === null || clientInvoice === void 0 ? void 0 : clientInvoice.disputeProjects) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.projectId)
211
- ? Object.assign(Object.assign({}, p), { clientDocumentLinks: res.join(",") }) : p;
212
- }));
213
- }
207
+ resolve();
214
208
  }
215
209
  catch (error) {
216
210
  reject(error);
217
211
  }
218
- finally {
219
- resolve();
220
- }
221
212
  });
222
213
  reader.readAsDataURL(selectedFile);
223
214
  });
@@ -1,15 +1,15 @@
1
- interface OrgChartProps {
2
- openModal: boolean;
3
- setOpenModal: (openModal: boolean) => void;
4
- expertFirms: any;
5
- firstName: string;
6
- lastName: string;
7
- imageUrl?: string;
8
- primaryServiceLine: string;
9
- city: string;
10
- stateAbbreviation: string;
11
- paroTenure?: string;
12
- isPublicProfile?: boolean;
13
- }
14
- export declare const OrganizationChart: ({ openModal, setOpenModal, expertFirms, firstName, lastName, imageUrl, primaryServiceLine, city, stateAbbreviation, paroTenure, isPublicProfile }: OrgChartProps) => JSX.Element;
15
- export {};
1
+ interface OrgChartProps {
2
+ openModal: boolean;
3
+ setOpenModal: (openModal: boolean) => void;
4
+ expertFirms: any;
5
+ firstName: string;
6
+ lastName: string;
7
+ imageUrl?: string;
8
+ primaryServiceLine: string;
9
+ city: string;
10
+ stateAbbreviation: string;
11
+ paroTenure?: string;
12
+ isPublicProfile?: boolean;
13
+ }
14
+ export declare const OrganizationChart: ({ openModal, setOpenModal, expertFirms, firstName, lastName, imageUrl, primaryServiceLine, city, stateAbbreviation, paroTenure, isPublicProfile }: OrgChartProps) => JSX.Element;
15
+ export {};